diff --git a/.agents/skills/cli-api/SKILL.md b/.agents/skills/cli-api/SKILL.md index 17f77d205d..29fb246fdf 100644 --- a/.agents/skills/cli-api/SKILL.md +++ b/.agents/skills/cli-api/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-api -description: CLI tool (csdk) for the api API — provides CRUD commands for 92 tables and 46 custom operations +description: CLI tool (csdk) for the api API — provides CRUD commands for 90 tables and 46 custom operations --- # cli-api -CLI tool (csdk) for the api API — provides CRUD commands for 92 tables and 46 custom operations +CLI tool (csdk) for the api API — provides CRUD commands for 90 tables and 46 custom operations ## Usage @@ -85,7 +85,6 @@ See the `references/` directory for detailed per-entity API documentation: - [full-text-search](references/full-text-search.md) - [function](references/function.md) - [get-site-previews-record](references/get-site-previews-record.md) -- [hostname-binding](references/hostname-binding.md) - [identity-provider-registry](references/identity-provider-registry.md) - [index](references/index.md) - [list-suspended-databases-record](references/list-suspended-databases-record.md) @@ -120,7 +119,6 @@ See the `references/` directory for detailed per-entity API documentation: - [pubkey-setting](references/pubkey-setting.md) - [redirect](references/redirect.md) - [rls-setting](references/rls-setting.md) -- [route-binding](references/route-binding.md) - [route](references/route.md) - [schema](references/schema.md) - [schema-grant](references/schema-grant.md) diff --git a/.agents/skills/cli-api/references/managed-domain.md b/.agents/skills/cli-api/references/managed-domain.md index ad953c3c51..ca9e7f00c1 100644 --- a/.agents/skills/cli-api/references/managed-domain.md +++ b/.agents/skills/cli-api/references/managed-domain.md @@ -12,8 +12,8 @@ csdk managed-domain list --where.. --orderBy csdk managed-domain list --limit 10 --after csdk managed-domain find-first --where.. csdk managed-domain get --id -csdk managed-domain create --databaseId --domain [--allowPublicUsage ] [--annotations ] [--certStatus ] [--createdByPrincipal ] [--isWildcard ] [--tlsReadyAt ] [--tlsStatus ] [--updatedByPrincipal ] [--verificationStatus ] [--verifiedAt ] -csdk managed-domain update --id [--allowPublicUsage ] [--annotations ] [--certStatus ] [--createdByPrincipal ] [--databaseId ] [--domain ] [--isWildcard ] [--tlsReadyAt ] [--tlsStatus ] [--updatedByPrincipal ] [--verificationStatus ] [--verifiedAt ] +csdk managed-domain create --databaseId --domain [--allowPublicUsage ] [--annotations ] [--certStatus ] [--createdByPrincipal ] [--isWildcard ] [--publicPort ] [--tlsReadyAt ] [--tlsStatus ] [--updatedByPrincipal ] [--verificationStatus ] [--verifiedAt ] +csdk managed-domain update --id [--allowPublicUsage ] [--annotations ] [--certStatus ] [--createdByPrincipal ] [--databaseId ] [--domain ] [--isWildcard ] [--publicPort ] [--tlsReadyAt ] [--tlsStatus ] [--updatedByPrincipal ] [--verificationStatus ] [--verifiedAt ] csdk managed-domain delete --id ``` @@ -58,7 +58,7 @@ csdk managed-domain list --where.id.equalTo --orderBy ID_ASC ### Create a managedDomain ```bash -csdk managed-domain create --databaseId --domain [--allowPublicUsage ] [--annotations ] [--certStatus ] [--createdByPrincipal ] [--isWildcard ] [--tlsReadyAt ] [--tlsStatus ] [--updatedByPrincipal ] [--verificationStatus ] [--verifiedAt ] +csdk managed-domain create --databaseId --domain [--allowPublicUsage ] [--annotations ] [--certStatus ] [--createdByPrincipal ] [--isWildcard ] [--publicPort ] [--tlsReadyAt ] [--tlsStatus ] [--updatedByPrincipal ] [--verificationStatus ] [--verifiedAt ] ``` ### Get a managedDomain by id diff --git a/.agents/skills/cli-api/references/platform-managed-domain.md b/.agents/skills/cli-api/references/platform-managed-domain.md index d44126c5ac..5a359cabeb 100644 --- a/.agents/skills/cli-api/references/platform-managed-domain.md +++ b/.agents/skills/cli-api/references/platform-managed-domain.md @@ -12,8 +12,8 @@ csdk platform-managed-domain list --where.. --orderBy csdk platform-managed-domain find-first --where.. csdk platform-managed-domain get --id -csdk platform-managed-domain create --domain [--allowPublicUsage ] [--annotations ] [--certStatus ] [--createdByPrincipal ] [--isWildcard ] [--tlsReadyAt ] [--tlsStatus ] [--updatedByPrincipal ] [--verificationStatus ] [--verifiedAt ] -csdk platform-managed-domain update --id [--allowPublicUsage ] [--annotations ] [--certStatus ] [--createdByPrincipal ] [--domain ] [--isWildcard ] [--tlsReadyAt ] [--tlsStatus ] [--updatedByPrincipal ] [--verificationStatus ] [--verifiedAt ] +csdk platform-managed-domain create --domain [--allowPublicUsage ] [--annotations ] [--certStatus ] [--createdByPrincipal ] [--isWildcard ] [--publicPort ] [--tlsReadyAt ] [--tlsStatus ] [--updatedByPrincipal ] [--verificationStatus ] [--verifiedAt ] +csdk platform-managed-domain update --id [--allowPublicUsage ] [--annotations ] [--certStatus ] [--createdByPrincipal ] [--domain ] [--isWildcard ] [--publicPort ] [--tlsReadyAt ] [--tlsStatus ] [--updatedByPrincipal ] [--verificationStatus ] [--verifiedAt ] csdk platform-managed-domain delete --id ``` @@ -58,7 +58,7 @@ csdk platform-managed-domain list --where.id.equalTo --orderBy ID_ASC ### Create a platformManagedDomain ```bash -csdk platform-managed-domain create --domain [--allowPublicUsage ] [--annotations ] [--certStatus ] [--createdByPrincipal ] [--isWildcard ] [--tlsReadyAt ] [--tlsStatus ] [--updatedByPrincipal ] [--verificationStatus ] [--verifiedAt ] +csdk platform-managed-domain create --domain [--allowPublicUsage ] [--annotations ] [--certStatus ] [--createdByPrincipal ] [--isWildcard ] [--publicPort ] [--tlsReadyAt ] [--tlsStatus ] [--updatedByPrincipal ] [--verificationStatus ] [--verifiedAt ] ``` ### Get a platformManagedDomain by id diff --git a/.agents/skills/cli-api/references/unique-constraint.md b/.agents/skills/cli-api/references/unique-constraint.md index 3eb9fcb429..2bdae7569d 100644 --- a/.agents/skills/cli-api/references/unique-constraint.md +++ b/.agents/skills/cli-api/references/unique-constraint.md @@ -12,8 +12,8 @@ csdk unique-constraint list --where.. --orderBy csdk unique-constraint list --limit 10 --after csdk unique-constraint find-first --where.. csdk unique-constraint get --id -csdk unique-constraint create --fieldIds --tableId [--category ] [--databaseId ] [--description ] [--initiallyDeferred ] [--isDeferrable ] [--name ] [--smartTags ] [--tags ] [--type ] [--withoutOverlaps ] -csdk unique-constraint update --id [--category ] [--databaseId ] [--description ] [--fieldIds ] [--initiallyDeferred ] [--isDeferrable ] [--name ] [--smartTags ] [--tableId ] [--tags ] [--type ] [--withoutOverlaps ] +csdk unique-constraint create --fieldIds --tableId [--category ] [--databaseId ] [--description ] [--initiallyDeferred ] [--isDeferrable ] [--name ] [--nullsNotDistinct ] [--smartTags ] [--tags ] [--type ] [--withoutOverlaps ] +csdk unique-constraint update --id [--category ] [--databaseId ] [--description ] [--fieldIds ] [--initiallyDeferred ] [--isDeferrable ] [--name ] [--nullsNotDistinct ] [--smartTags ] [--tableId ] [--tags ] [--type ] [--withoutOverlaps ] csdk unique-constraint delete --id ``` @@ -58,7 +58,7 @@ csdk unique-constraint list --where.id.equalTo --orderBy ID_ASC ### Create a uniqueConstraint ```bash -csdk unique-constraint create --fieldIds --tableId [--category ] [--databaseId ] [--description ] [--initiallyDeferred ] [--isDeferrable ] [--name ] [--smartTags ] [--tags ] [--type ] [--withoutOverlaps ] +csdk unique-constraint create --fieldIds --tableId [--category ] [--databaseId ] [--description ] [--initiallyDeferred ] [--isDeferrable ] [--name ] [--nullsNotDistinct ] [--smartTags ] [--tags ] [--type ] [--withoutOverlaps ] ``` ### Get a uniqueConstraint by id diff --git a/.agents/skills/cli-modules/references/billing-provider-module.md b/.agents/skills/cli-modules/references/billing-provider-module.md index af2d81272d..080d05cfdf 100644 --- a/.agents/skills/cli-modules/references/billing-provider-module.md +++ b/.agents/skills/cli-modules/references/billing-provider-module.md @@ -12,8 +12,8 @@ csdk billing-provider-module list --where.. --orderBy csdk billing-provider-module find-first --where.. csdk billing-provider-module get --id -csdk billing-provider-module create --databaseId [--activatePlanSubscriptionFunction ] [--apiName ] [--applyProviderObservationFunction ] [--billingCustomersTableId ] [--billingCustomersTableName ] [--billingDisputesTableId ] [--billingDisputesTableName ] [--billingHealthTableId ] [--billingHealthTableName ] [--billingInvoicesTableId ] [--billingInvoicesTableName ] [--billingOperationsTableId ] [--billingOperationsTableName ] [--billingPricesTableId ] [--billingPricesTableName ] [--billingProductsTableId ] [--billingProductsTableName ] [--billingProviderStateTableId ] [--billingProviderStateTableName ] [--billingRefundsTableId ] [--billingRefundsTableName ] [--billingSubscriptionsTableId ] [--billingSubscriptionsTableName ] [--billingWebhookEventsTableId ] [--billingWebhookEventsTableName ] [--bindCheckoutSessionFunction ] [--clearScheduledChangeFunction ] [--finishBillingOperationFunction ] [--getActivePlanPricingFunction ] [--getActivePlanSubscriptionFunction ] [--getBillingCustomerFunction ] [--getBillingPriceFunction ] [--getBillingProductFunction ] [--getBillingProviderStateFunction ] [--getBillingSubscriptionByEntityFunction ] [--getBillingSubscriptionByExternalIdFunction ] [--getBillingSubscriptionFunction ] [--getFallbackFreePlanFunction ] [--getPlanPricingByExternalPriceFunction ] [--hasDueReconciliationsFunction ] [--listDueReconciliationsFunction ] [--listPendingUsageSyncFunction ] [--markUsageSyncedFunction ] [--prefix ] [--prepareScheduledChangeFunction ] [--pricesTableId ] [--privateApiName ] [--privateSchemaId ] [--processBillingEventFunction ] [--productsTableId ] [--provider ] [--recordBillingHealthFunction ] [--recordDisputeFunction ] [--recordRefundFunction ] [--reserveBillingOperationFunction ] [--schemaId ] [--subscriptionsTableId ] [--sweepOverdueSubscriptionsFunction ] [--upsertBillingCustomerFunction ] [--upsertBillingPriceFunction ] [--upsertBillingProductFunction ] [--upsertBillingSubscriptionFunction ] [--upsertInvoiceFunction ] [--usageSyncShardCount ] -csdk billing-provider-module update --id [--activatePlanSubscriptionFunction ] [--apiName ] [--applyProviderObservationFunction ] [--billingCustomersTableId ] [--billingCustomersTableName ] [--billingDisputesTableId ] [--billingDisputesTableName ] [--billingHealthTableId ] [--billingHealthTableName ] [--billingInvoicesTableId ] [--billingInvoicesTableName ] [--billingOperationsTableId ] [--billingOperationsTableName ] [--billingPricesTableId ] [--billingPricesTableName ] [--billingProductsTableId ] [--billingProductsTableName ] [--billingProviderStateTableId ] [--billingProviderStateTableName ] [--billingRefundsTableId ] [--billingRefundsTableName ] [--billingSubscriptionsTableId ] [--billingSubscriptionsTableName ] [--billingWebhookEventsTableId ] [--billingWebhookEventsTableName ] [--bindCheckoutSessionFunction ] [--clearScheduledChangeFunction ] [--databaseId ] [--finishBillingOperationFunction ] [--getActivePlanPricingFunction ] [--getActivePlanSubscriptionFunction ] [--getBillingCustomerFunction ] [--getBillingPriceFunction ] [--getBillingProductFunction ] [--getBillingProviderStateFunction ] [--getBillingSubscriptionByEntityFunction ] [--getBillingSubscriptionByExternalIdFunction ] [--getBillingSubscriptionFunction ] [--getFallbackFreePlanFunction ] [--getPlanPricingByExternalPriceFunction ] [--hasDueReconciliationsFunction ] [--listDueReconciliationsFunction ] [--listPendingUsageSyncFunction ] [--markUsageSyncedFunction ] [--prefix ] [--prepareScheduledChangeFunction ] [--pricesTableId ] [--privateApiName ] [--privateSchemaId ] [--processBillingEventFunction ] [--productsTableId ] [--provider ] [--recordBillingHealthFunction ] [--recordDisputeFunction ] [--recordRefundFunction ] [--reserveBillingOperationFunction ] [--schemaId ] [--subscriptionsTableId ] [--sweepOverdueSubscriptionsFunction ] [--upsertBillingCustomerFunction ] [--upsertBillingPriceFunction ] [--upsertBillingProductFunction ] [--upsertBillingSubscriptionFunction ] [--upsertInvoiceFunction ] [--usageSyncShardCount ] +csdk billing-provider-module create --databaseId [--activatePlanSubscriptionFunction ] [--apiName ] [--applyProviderObservationFunction ] [--billingConnectionTableId ] [--billingConnectionTableName ] [--billingCustomersTableId ] [--billingCustomersTableName ] [--billingDisputesTableId ] [--billingDisputesTableName ] [--billingHealthTableId ] [--billingHealthTableName ] [--billingInvoicesTableId ] [--billingInvoicesTableName ] [--billingOperationsTableId ] [--billingOperationsTableName ] [--billingPricesTableId ] [--billingPricesTableName ] [--billingProductsTableId ] [--billingProductsTableName ] [--billingProviderConnectedFunction ] [--billingProviderStateTableId ] [--billingProviderStateTableName ] [--billingRefundsTableId ] [--billingRefundsTableName ] [--billingSubscriptionsTableId ] [--billingSubscriptionsTableName ] [--billingWebhookEventsTableId ] [--billingWebhookEventsTableName ] [--bindCheckoutSessionFunction ] [--clearScheduledChangeFunction ] [--finishBillingOperationFunction ] [--getActivePlanPricingFunction ] [--getActivePlanSubscriptionFunction ] [--getBillingCustomerFunction ] [--getBillingPriceFunction ] [--getBillingProductFunction ] [--getBillingProviderStateFunction ] [--getBillingSubscriptionByEntityFunction ] [--getBillingSubscriptionByExternalIdFunction ] [--getBillingSubscriptionFunction ] [--getFallbackFreePlanFunction ] [--getPlanPricingByExternalPriceFunction ] [--hasDueReconciliationsFunction ] [--listDueReconciliationsFunction ] [--listPendingUsageSyncFunction ] [--markUsageSyncedFunction ] [--prefix ] [--prepareScheduledChangeFunction ] [--pricesTableId ] [--privateApiName ] [--privateSchemaId ] [--processBillingEventFunction ] [--productsTableId ] [--provider ] [--recordBillingConnectionFunction ] [--recordBillingHealthFunction ] [--recordDisputeFunction ] [--recordRefundFunction ] [--reserveBillingOperationFunction ] [--schemaId ] [--subscriptionsTableId ] [--sweepOverdueSubscriptionsFunction ] [--upsertBillingCustomerFunction ] [--upsertBillingPriceFunction ] [--upsertBillingProductFunction ] [--upsertBillingSubscriptionFunction ] [--upsertInvoiceFunction ] [--usageSyncShardCount ] +csdk billing-provider-module update --id [--activatePlanSubscriptionFunction ] [--apiName ] [--applyProviderObservationFunction ] [--billingConnectionTableId ] [--billingConnectionTableName ] [--billingCustomersTableId ] [--billingCustomersTableName ] [--billingDisputesTableId ] [--billingDisputesTableName ] [--billingHealthTableId ] [--billingHealthTableName ] [--billingInvoicesTableId ] [--billingInvoicesTableName ] [--billingOperationsTableId ] [--billingOperationsTableName ] [--billingPricesTableId ] [--billingPricesTableName ] [--billingProductsTableId ] [--billingProductsTableName ] [--billingProviderConnectedFunction ] [--billingProviderStateTableId ] [--billingProviderStateTableName ] [--billingRefundsTableId ] [--billingRefundsTableName ] [--billingSubscriptionsTableId ] [--billingSubscriptionsTableName ] [--billingWebhookEventsTableId ] [--billingWebhookEventsTableName ] [--bindCheckoutSessionFunction ] [--clearScheduledChangeFunction ] [--databaseId ] [--finishBillingOperationFunction ] [--getActivePlanPricingFunction ] [--getActivePlanSubscriptionFunction ] [--getBillingCustomerFunction ] [--getBillingPriceFunction ] [--getBillingProductFunction ] [--getBillingProviderStateFunction ] [--getBillingSubscriptionByEntityFunction ] [--getBillingSubscriptionByExternalIdFunction ] [--getBillingSubscriptionFunction ] [--getFallbackFreePlanFunction ] [--getPlanPricingByExternalPriceFunction ] [--hasDueReconciliationsFunction ] [--listDueReconciliationsFunction ] [--listPendingUsageSyncFunction ] [--markUsageSyncedFunction ] [--prefix ] [--prepareScheduledChangeFunction ] [--pricesTableId ] [--privateApiName ] [--privateSchemaId ] [--processBillingEventFunction ] [--productsTableId ] [--provider ] [--recordBillingConnectionFunction ] [--recordBillingHealthFunction ] [--recordDisputeFunction ] [--recordRefundFunction ] [--reserveBillingOperationFunction ] [--schemaId ] [--subscriptionsTableId ] [--sweepOverdueSubscriptionsFunction ] [--upsertBillingCustomerFunction ] [--upsertBillingPriceFunction ] [--upsertBillingProductFunction ] [--upsertBillingSubscriptionFunction ] [--upsertInvoiceFunction ] [--usageSyncShardCount ] csdk billing-provider-module delete --id ``` @@ -58,7 +58,7 @@ csdk billing-provider-module list --where.id.equalTo --orderBy ID_ASC ### Create a billingProviderModule ```bash -csdk billing-provider-module create --databaseId [--activatePlanSubscriptionFunction ] [--apiName ] [--applyProviderObservationFunction ] [--billingCustomersTableId ] [--billingCustomersTableName ] [--billingDisputesTableId ] [--billingDisputesTableName ] [--billingHealthTableId ] [--billingHealthTableName ] [--billingInvoicesTableId ] [--billingInvoicesTableName ] [--billingOperationsTableId ] [--billingOperationsTableName ] [--billingPricesTableId ] [--billingPricesTableName ] [--billingProductsTableId ] [--billingProductsTableName ] [--billingProviderStateTableId ] [--billingProviderStateTableName ] [--billingRefundsTableId ] [--billingRefundsTableName ] [--billingSubscriptionsTableId ] [--billingSubscriptionsTableName ] [--billingWebhookEventsTableId ] [--billingWebhookEventsTableName ] [--bindCheckoutSessionFunction ] [--clearScheduledChangeFunction ] [--finishBillingOperationFunction ] [--getActivePlanPricingFunction ] [--getActivePlanSubscriptionFunction ] [--getBillingCustomerFunction ] [--getBillingPriceFunction ] [--getBillingProductFunction ] [--getBillingProviderStateFunction ] [--getBillingSubscriptionByEntityFunction ] [--getBillingSubscriptionByExternalIdFunction ] [--getBillingSubscriptionFunction ] [--getFallbackFreePlanFunction ] [--getPlanPricingByExternalPriceFunction ] [--hasDueReconciliationsFunction ] [--listDueReconciliationsFunction ] [--listPendingUsageSyncFunction ] [--markUsageSyncedFunction ] [--prefix ] [--prepareScheduledChangeFunction ] [--pricesTableId ] [--privateApiName ] [--privateSchemaId ] [--processBillingEventFunction ] [--productsTableId ] [--provider ] [--recordBillingHealthFunction ] [--recordDisputeFunction ] [--recordRefundFunction ] [--reserveBillingOperationFunction ] [--schemaId ] [--subscriptionsTableId ] [--sweepOverdueSubscriptionsFunction ] [--upsertBillingCustomerFunction ] [--upsertBillingPriceFunction ] [--upsertBillingProductFunction ] [--upsertBillingSubscriptionFunction ] [--upsertInvoiceFunction ] [--usageSyncShardCount ] +csdk billing-provider-module create --databaseId [--activatePlanSubscriptionFunction ] [--apiName ] [--applyProviderObservationFunction ] [--billingConnectionTableId ] [--billingConnectionTableName ] [--billingCustomersTableId ] [--billingCustomersTableName ] [--billingDisputesTableId ] [--billingDisputesTableName ] [--billingHealthTableId ] [--billingHealthTableName ] [--billingInvoicesTableId ] [--billingInvoicesTableName ] [--billingOperationsTableId ] [--billingOperationsTableName ] [--billingPricesTableId ] [--billingPricesTableName ] [--billingProductsTableId ] [--billingProductsTableName ] [--billingProviderConnectedFunction ] [--billingProviderStateTableId ] [--billingProviderStateTableName ] [--billingRefundsTableId ] [--billingRefundsTableName ] [--billingSubscriptionsTableId ] [--billingSubscriptionsTableName ] [--billingWebhookEventsTableId ] [--billingWebhookEventsTableName ] [--bindCheckoutSessionFunction ] [--clearScheduledChangeFunction ] [--finishBillingOperationFunction ] [--getActivePlanPricingFunction ] [--getActivePlanSubscriptionFunction ] [--getBillingCustomerFunction ] [--getBillingPriceFunction ] [--getBillingProductFunction ] [--getBillingProviderStateFunction ] [--getBillingSubscriptionByEntityFunction ] [--getBillingSubscriptionByExternalIdFunction ] [--getBillingSubscriptionFunction ] [--getFallbackFreePlanFunction ] [--getPlanPricingByExternalPriceFunction ] [--hasDueReconciliationsFunction ] [--listDueReconciliationsFunction ] [--listPendingUsageSyncFunction ] [--markUsageSyncedFunction ] [--prefix ] [--prepareScheduledChangeFunction ] [--pricesTableId ] [--privateApiName ] [--privateSchemaId ] [--processBillingEventFunction ] [--productsTableId ] [--provider ] [--recordBillingConnectionFunction ] [--recordBillingHealthFunction ] [--recordDisputeFunction ] [--recordRefundFunction ] [--reserveBillingOperationFunction ] [--schemaId ] [--subscriptionsTableId ] [--sweepOverdueSubscriptionsFunction ] [--upsertBillingCustomerFunction ] [--upsertBillingPriceFunction ] [--upsertBillingProductFunction ] [--upsertBillingSubscriptionFunction ] [--upsertInvoiceFunction ] [--usageSyncShardCount ] ``` ### Get a billingProviderModule by id diff --git a/.agents/skills/cli-modules/references/storage-module.md b/.agents/skills/cli-modules/references/storage-module.md index 4d4f655476..2e02f73639 100644 --- a/.agents/skills/cli-modules/references/storage-module.md +++ b/.agents/skills/cli-modules/references/storage-module.md @@ -12,8 +12,8 @@ csdk storage-module list --where.. --orderBy csdk storage-module list --limit 10 --after csdk storage-module find-first --where.. csdk storage-module get --id -csdk storage-module create --databaseId --scope [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--defaultCapabilities ] [--defaultMaxFileSize ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasConfirmUpload ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--key ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--restrictReads ] [--schemaId ] [--uploadUrlExpirySeconds ] -csdk storage-module update --id [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--databaseId ] [--defaultCapabilities ] [--defaultMaxFileSize ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasConfirmUpload ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--key ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--restrictReads ] [--schemaId ] [--scope ] [--uploadUrlExpirySeconds ] +csdk storage-module create --databaseId --scope [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--defaultCapabilities ] [--defaultMaxFileSize ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasConfirmUpload ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--key ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--region ] [--restrictReads ] [--schemaId ] [--uploadUrlExpirySeconds ] +csdk storage-module update --id [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--databaseId ] [--defaultCapabilities ] [--defaultMaxFileSize ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasConfirmUpload ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--key ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--region ] [--restrictReads ] [--schemaId ] [--scope ] [--uploadUrlExpirySeconds ] csdk storage-module delete --id ``` @@ -58,7 +58,7 @@ csdk storage-module list --where.id.equalTo --orderBy ID_ASC ### Create a storageModule ```bash -csdk storage-module create --databaseId --scope [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--defaultCapabilities ] [--defaultMaxFileSize ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasConfirmUpload ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--key ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--restrictReads ] [--schemaId ] [--uploadUrlExpirySeconds ] +csdk storage-module create --databaseId --scope [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--defaultCapabilities ] [--defaultMaxFileSize ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasConfirmUpload ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--key ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--region ] [--restrictReads ] [--schemaId ] [--uploadUrlExpirySeconds ] ``` ### Get a storageModule by id diff --git a/.agents/skills/cli-storage/references/upload-files.md b/.agents/skills/cli-storage/references/upload-files.md index 897b012d42..a10316506f 100644 --- a/.agents/skills/cli-storage/references/upload-files.md +++ b/.agents/skills/cli-storage/references/upload-files.md @@ -2,7 +2,7 @@ -Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. Accepts at most the bucket's `maxBulkFiles` files per call. ## Usage diff --git a/.agents/skills/cli-storage/references/upload-platform-files.md b/.agents/skills/cli-storage/references/upload-platform-files.md index 8a67e7a0ad..2e853969e6 100644 --- a/.agents/skills/cli-storage/references/upload-platform-files.md +++ b/.agents/skills/cli-storage/references/upload-platform-files.md @@ -2,7 +2,7 @@ -Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. Accepts at most the bucket's `maxBulkFiles` files per call. ## Usage diff --git a/.agents/skills/hooks-api/SKILL.md b/.agents/skills/hooks-api/SKILL.md index d6f56b834a..2b813738a0 100644 --- a/.agents/skills/hooks-api/SKILL.md +++ b/.agents/skills/hooks-api/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-api -description: React Query hooks for the api API — provides typed query and mutation hooks for 92 tables and 46 custom operations +description: React Query hooks for the api API — provides typed query and mutation hooks for 90 tables and 46 custom operations --- # hooks-api -React Query hooks for the api API — provides typed query and mutation hooks for 92 tables and 46 custom operations +React Query hooks for the api API — provides typed query and mutation hooks for 90 tables and 46 custom operations ## Usage @@ -67,7 +67,6 @@ See the `references/` directory for detailed per-entity API documentation: - [full-text-search](references/full-text-search.md) - [function](references/function.md) - [get-site-previews-record](references/get-site-previews-record.md) -- [hostname-binding](references/hostname-binding.md) - [identity-provider-registry](references/identity-provider-registry.md) - [index](references/index.md) - [list-suspended-databases-record](references/list-suspended-databases-record.md) @@ -102,7 +101,6 @@ See the `references/` directory for detailed per-entity API documentation: - [pubkey-setting](references/pubkey-setting.md) - [redirect](references/redirect.md) - [rls-setting](references/rls-setting.md) -- [route-binding](references/route-binding.md) - [route](references/route.md) - [schema](references/schema.md) - [schema-grant](references/schema-grant.md) diff --git a/.agents/skills/hooks-api/references/managed-domain.md b/.agents/skills/hooks-api/references/managed-domain.md index f44fe8c981..282fc84531 100644 --- a/.agents/skills/hooks-api/references/managed-domain.md +++ b/.agents/skills/hooks-api/references/managed-domain.md @@ -7,8 +7,8 @@ Platform-operated hostnames whose DNS and certificate lifecycle the platform dri ## Usage ```typescript -useManagedDomainsQuery({ selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } } }) -useManagedDomainQuery({ id: '', selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } } }) +useManagedDomainsQuery({ selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } } }) +useManagedDomainQuery({ id: '', selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } } }) useCreateManagedDomainMutation({ selection: { fields: { id: true } } }) useUpdateManagedDomainMutation({ selection: { fields: { id: true } } }) useDeleteManagedDomainMutation({}) @@ -20,7 +20,7 @@ useDeleteManagedDomainMutation({}) ```typescript const { data, isLoading } = useManagedDomainsQuery({ - selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, + selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useManagedDomainsQuery({ const { mutate } = useCreateManagedDomainMutation({ selection: { fields: { id: true } }, }); -mutate({ allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', databaseId: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }); +mutate({ allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', databaseId: '', domain: '', isWildcard: '', publicPort: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }); ``` diff --git a/.agents/skills/hooks-api/references/platform-managed-domain.md b/.agents/skills/hooks-api/references/platform-managed-domain.md index a8dbe6a037..bf0acf7e53 100644 --- a/.agents/skills/hooks-api/references/platform-managed-domain.md +++ b/.agents/skills/hooks-api/references/platform-managed-domain.md @@ -7,8 +7,8 @@ Platform-operated hostnames whose DNS and certificate lifecycle the platform dri ## Usage ```typescript -usePlatformManagedDomainsQuery({ selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } } }) -usePlatformManagedDomainQuery({ id: '', selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } } }) +usePlatformManagedDomainsQuery({ selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } } }) +usePlatformManagedDomainQuery({ id: '', selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } } }) useCreatePlatformManagedDomainMutation({ selection: { fields: { id: true } } }) useUpdatePlatformManagedDomainMutation({ selection: { fields: { id: true } } }) useDeletePlatformManagedDomainMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformManagedDomainMutation({}) ```typescript const { data, isLoading } = usePlatformManagedDomainsQuery({ - selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, + selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformManagedDomainsQuery({ const { mutate } = useCreatePlatformManagedDomainMutation({ selection: { fields: { id: true } }, }); -mutate({ allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }); +mutate({ allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', domain: '', isWildcard: '', publicPort: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }); ``` diff --git a/.agents/skills/hooks-api/references/unique-constraint.md b/.agents/skills/hooks-api/references/unique-constraint.md index 5060d2dfdf..b606cf263d 100644 --- a/.agents/skills/hooks-api/references/unique-constraint.md +++ b/.agents/skills/hooks-api/references/unique-constraint.md @@ -7,8 +7,8 @@ React Query hooks for UniqueConstraint data operations ## Usage ```typescript -useUniqueConstraintsQuery({ selection: { fields: { category: true, createdAt: true, databaseId: true, description: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, withoutOverlaps: true } } }) -useUniqueConstraintQuery({ id: '', selection: { fields: { category: true, createdAt: true, databaseId: true, description: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, withoutOverlaps: true } } }) +useUniqueConstraintsQuery({ selection: { fields: { category: true, createdAt: true, databaseId: true, description: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, nullsNotDistinct: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, withoutOverlaps: true } } }) +useUniqueConstraintQuery({ id: '', selection: { fields: { category: true, createdAt: true, databaseId: true, description: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, nullsNotDistinct: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, withoutOverlaps: true } } }) useCreateUniqueConstraintMutation({ selection: { fields: { id: true } } }) useUpdateUniqueConstraintMutation({ selection: { fields: { id: true } } }) useDeleteUniqueConstraintMutation({}) @@ -20,7 +20,7 @@ useDeleteUniqueConstraintMutation({}) ```typescript const { data, isLoading } = useUniqueConstraintsQuery({ - selection: { fields: { category: true, createdAt: true, databaseId: true, description: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, withoutOverlaps: true } }, + selection: { fields: { category: true, createdAt: true, databaseId: true, description: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, nullsNotDistinct: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, withoutOverlaps: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useUniqueConstraintsQuery({ const { mutate } = useCreateUniqueConstraintMutation({ selection: { fields: { id: true } }, }); -mutate({ category: '', databaseId: '', description: '', fieldIds: '', initiallyDeferred: '', isDeferrable: '', name: '', smartTags: '', tableId: '', tags: '', type: '', withoutOverlaps: '' }); +mutate({ category: '', databaseId: '', description: '', fieldIds: '', initiallyDeferred: '', isDeferrable: '', name: '', nullsNotDistinct: '', smartTags: '', tableId: '', tags: '', type: '', withoutOverlaps: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/billing-provider-module.md b/.agents/skills/hooks-modules/references/billing-provider-module.md index cd8e0547ea..12faff7760 100644 --- a/.agents/skills/hooks-modules/references/billing-provider-module.md +++ b/.agents/skills/hooks-modules/references/billing-provider-module.md @@ -7,8 +7,8 @@ React Query hooks for BillingProviderModule data operations ## Usage ```typescript -useBillingProviderModulesQuery({ selection: { fields: { activatePlanSubscriptionFunction: true, apiName: true, applyProviderObservationFunction: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: true, billingHealthTableId: true, billingHealthTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingOperationsTableId: true, billingOperationsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingProviderStateTableId: true, billingProviderStateTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, bindCheckoutSessionFunction: true, clearScheduledChangeFunction: true, databaseId: true, finishBillingOperationFunction: true, getActivePlanPricingFunction: true, getActivePlanSubscriptionFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingProviderStateFunction: true, getBillingSubscriptionByEntityFunction: true, getBillingSubscriptionByExternalIdFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, getPlanPricingByExternalPriceFunction: true, hasDueReconciliationsFunction: true, id: true, listDueReconciliationsFunction: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, prepareScheduledChangeFunction: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordBillingHealthFunction: true, recordDisputeFunction: true, recordRefundFunction: true, reserveBillingOperationFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: true, upsertInvoiceFunction: true, usageSyncShardCount: true } } }) -useBillingProviderModuleQuery({ id: '', selection: { fields: { activatePlanSubscriptionFunction: true, apiName: true, applyProviderObservationFunction: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: true, billingHealthTableId: true, billingHealthTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingOperationsTableId: true, billingOperationsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingProviderStateTableId: true, billingProviderStateTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, bindCheckoutSessionFunction: true, clearScheduledChangeFunction: true, databaseId: true, finishBillingOperationFunction: true, getActivePlanPricingFunction: true, getActivePlanSubscriptionFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingProviderStateFunction: true, getBillingSubscriptionByEntityFunction: true, getBillingSubscriptionByExternalIdFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, getPlanPricingByExternalPriceFunction: true, hasDueReconciliationsFunction: true, id: true, listDueReconciliationsFunction: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, prepareScheduledChangeFunction: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordBillingHealthFunction: true, recordDisputeFunction: true, recordRefundFunction: true, reserveBillingOperationFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: true, upsertInvoiceFunction: true, usageSyncShardCount: true } } }) +useBillingProviderModulesQuery({ selection: { fields: { activatePlanSubscriptionFunction: true, apiName: true, applyProviderObservationFunction: true, billingConnectionTableId: true, billingConnectionTableName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: true, billingHealthTableId: true, billingHealthTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingOperationsTableId: true, billingOperationsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingProviderConnectedFunction: true, billingProviderStateTableId: true, billingProviderStateTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, bindCheckoutSessionFunction: true, clearScheduledChangeFunction: true, databaseId: true, finishBillingOperationFunction: true, getActivePlanPricingFunction: true, getActivePlanSubscriptionFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingProviderStateFunction: true, getBillingSubscriptionByEntityFunction: true, getBillingSubscriptionByExternalIdFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, getPlanPricingByExternalPriceFunction: true, hasDueReconciliationsFunction: true, id: true, listDueReconciliationsFunction: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, prepareScheduledChangeFunction: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordBillingConnectionFunction: true, recordBillingHealthFunction: true, recordDisputeFunction: true, recordRefundFunction: true, reserveBillingOperationFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: true, upsertInvoiceFunction: true, usageSyncShardCount: true } } }) +useBillingProviderModuleQuery({ id: '', selection: { fields: { activatePlanSubscriptionFunction: true, apiName: true, applyProviderObservationFunction: true, billingConnectionTableId: true, billingConnectionTableName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: true, billingHealthTableId: true, billingHealthTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingOperationsTableId: true, billingOperationsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingProviderConnectedFunction: true, billingProviderStateTableId: true, billingProviderStateTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, bindCheckoutSessionFunction: true, clearScheduledChangeFunction: true, databaseId: true, finishBillingOperationFunction: true, getActivePlanPricingFunction: true, getActivePlanSubscriptionFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingProviderStateFunction: true, getBillingSubscriptionByEntityFunction: true, getBillingSubscriptionByExternalIdFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, getPlanPricingByExternalPriceFunction: true, hasDueReconciliationsFunction: true, id: true, listDueReconciliationsFunction: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, prepareScheduledChangeFunction: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordBillingConnectionFunction: true, recordBillingHealthFunction: true, recordDisputeFunction: true, recordRefundFunction: true, reserveBillingOperationFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: true, upsertInvoiceFunction: true, usageSyncShardCount: true } } }) useCreateBillingProviderModuleMutation({ selection: { fields: { id: true } } }) useUpdateBillingProviderModuleMutation({ selection: { fields: { id: true } } }) useDeleteBillingProviderModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteBillingProviderModuleMutation({}) ```typescript const { data, isLoading } = useBillingProviderModulesQuery({ - selection: { fields: { activatePlanSubscriptionFunction: true, apiName: true, applyProviderObservationFunction: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: true, billingHealthTableId: true, billingHealthTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingOperationsTableId: true, billingOperationsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingProviderStateTableId: true, billingProviderStateTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, bindCheckoutSessionFunction: true, clearScheduledChangeFunction: true, databaseId: true, finishBillingOperationFunction: true, getActivePlanPricingFunction: true, getActivePlanSubscriptionFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingProviderStateFunction: true, getBillingSubscriptionByEntityFunction: true, getBillingSubscriptionByExternalIdFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, getPlanPricingByExternalPriceFunction: true, hasDueReconciliationsFunction: true, id: true, listDueReconciliationsFunction: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, prepareScheduledChangeFunction: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordBillingHealthFunction: true, recordDisputeFunction: true, recordRefundFunction: true, reserveBillingOperationFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: true, upsertInvoiceFunction: true, usageSyncShardCount: true } }, + selection: { fields: { activatePlanSubscriptionFunction: true, apiName: true, applyProviderObservationFunction: true, billingConnectionTableId: true, billingConnectionTableName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: true, billingHealthTableId: true, billingHealthTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingOperationsTableId: true, billingOperationsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingProviderConnectedFunction: true, billingProviderStateTableId: true, billingProviderStateTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, bindCheckoutSessionFunction: true, clearScheduledChangeFunction: true, databaseId: true, finishBillingOperationFunction: true, getActivePlanPricingFunction: true, getActivePlanSubscriptionFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingProviderStateFunction: true, getBillingSubscriptionByEntityFunction: true, getBillingSubscriptionByExternalIdFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, getPlanPricingByExternalPriceFunction: true, hasDueReconciliationsFunction: true, id: true, listDueReconciliationsFunction: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, prepareScheduledChangeFunction: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordBillingConnectionFunction: true, recordBillingHealthFunction: true, recordDisputeFunction: true, recordRefundFunction: true, reserveBillingOperationFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: true, upsertInvoiceFunction: true, usageSyncShardCount: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useBillingProviderModulesQuery({ const { mutate } = useCreateBillingProviderModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ activatePlanSubscriptionFunction: '', apiName: '', applyProviderObservationFunction: '', billingCustomersTableId: '', billingCustomersTableName: '', billingDisputesTableId: '', billingDisputesTableName: '', billingHealthTableId: '', billingHealthTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingOperationsTableId: '', billingOperationsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingProviderStateTableId: '', billingProviderStateTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', bindCheckoutSessionFunction: '', clearScheduledChangeFunction: '', databaseId: '', finishBillingOperationFunction: '', getActivePlanPricingFunction: '', getActivePlanSubscriptionFunction: '', getBillingCustomerFunction: '', getBillingPriceFunction: '', getBillingProductFunction: '', getBillingProviderStateFunction: '', getBillingSubscriptionByEntityFunction: '', getBillingSubscriptionByExternalIdFunction: '', getBillingSubscriptionFunction: '', getFallbackFreePlanFunction: '', getPlanPricingByExternalPriceFunction: '', hasDueReconciliationsFunction: '', listDueReconciliationsFunction: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', prepareScheduledChangeFunction: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordBillingHealthFunction: '', recordDisputeFunction: '', recordRefundFunction: '', reserveBillingOperationFunction: '', schemaId: '', subscriptionsTableId: '', sweepOverdueSubscriptionsFunction: '', upsertBillingCustomerFunction: '', upsertBillingPriceFunction: '', upsertBillingProductFunction: '', upsertBillingSubscriptionFunction: '', upsertInvoiceFunction: '', usageSyncShardCount: '' }); +mutate({ activatePlanSubscriptionFunction: '', apiName: '', applyProviderObservationFunction: '', billingConnectionTableId: '', billingConnectionTableName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingDisputesTableId: '', billingDisputesTableName: '', billingHealthTableId: '', billingHealthTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingOperationsTableId: '', billingOperationsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingProviderConnectedFunction: '', billingProviderStateTableId: '', billingProviderStateTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', bindCheckoutSessionFunction: '', clearScheduledChangeFunction: '', databaseId: '', finishBillingOperationFunction: '', getActivePlanPricingFunction: '', getActivePlanSubscriptionFunction: '', getBillingCustomerFunction: '', getBillingPriceFunction: '', getBillingProductFunction: '', getBillingProviderStateFunction: '', getBillingSubscriptionByEntityFunction: '', getBillingSubscriptionByExternalIdFunction: '', getBillingSubscriptionFunction: '', getFallbackFreePlanFunction: '', getPlanPricingByExternalPriceFunction: '', hasDueReconciliationsFunction: '', listDueReconciliationsFunction: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', prepareScheduledChangeFunction: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordBillingConnectionFunction: '', recordBillingHealthFunction: '', recordDisputeFunction: '', recordRefundFunction: '', reserveBillingOperationFunction: '', schemaId: '', subscriptionsTableId: '', sweepOverdueSubscriptionsFunction: '', upsertBillingCustomerFunction: '', upsertBillingPriceFunction: '', upsertBillingProductFunction: '', upsertBillingSubscriptionFunction: '', upsertInvoiceFunction: '', usageSyncShardCount: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/storage-module.md b/.agents/skills/hooks-modules/references/storage-module.md index deb56cb29d..772da59447 100644 --- a/.agents/skills/hooks-modules/references/storage-module.md +++ b/.agents/skills/hooks-modules/references/storage-module.md @@ -7,8 +7,8 @@ React Query hooks for StorageModule data operations ## Usage ```typescript -useStorageModulesQuery({ selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } } }) -useStorageModuleQuery({ id: '', selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } } }) +useStorageModulesQuery({ selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } } }) +useStorageModuleQuery({ id: '', selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } } }) useCreateStorageModuleMutation({ selection: { fields: { id: true } } }) useUpdateStorageModuleMutation({ selection: { fields: { id: true } } }) useDeleteStorageModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteStorageModuleMutation({}) ```typescript const { data, isLoading } = useStorageModulesQuery({ - selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }, + selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useStorageModulesQuery({ const { mutate } = useCreateStorageModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }); +mutate({ allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }); ``` diff --git a/.agents/skills/hooks-storage/references/bucket.md b/.agents/skills/hooks-storage/references/bucket.md index d30b108458..cf537c4c2f 100644 --- a/.agents/skills/hooks-storage/references/bucket.md +++ b/.agents/skills/hooks-storage/references/bucket.md @@ -7,8 +7,8 @@ Logical storage containers that group files with shared access policies and CDN ## Usage ```typescript -useBucketsQuery({ selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } } }) -useBucketQuery({ id: '', selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } } }) +useBucketsQuery({ selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } } }) +useBucketQuery({ id: '', selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } } }) useCreateBucketMutation({ selection: { fields: { id: true } } }) useUpdateBucketMutation({ selection: { fields: { id: true } } }) useDeleteBucketMutation({}) @@ -20,7 +20,7 @@ useDeleteBucketMutation({}) ```typescript const { data, isLoading } = useBucketsQuery({ - selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }, + selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useBucketsQuery({ const { mutate } = useCreateBucketMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }); +mutate({ actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }); ``` diff --git a/.agents/skills/hooks-storage/references/platform-bucket.md b/.agents/skills/hooks-storage/references/platform-bucket.md index 0c11336c9a..fca1733077 100644 --- a/.agents/skills/hooks-storage/references/platform-bucket.md +++ b/.agents/skills/hooks-storage/references/platform-bucket.md @@ -7,8 +7,8 @@ Logical storage containers that group files with shared access policies and CDN ## Usage ```typescript -usePlatformBucketsQuery({ selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } } }) -usePlatformBucketQuery({ id: '', selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } } }) +usePlatformBucketsQuery({ selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } } }) +usePlatformBucketQuery({ id: '', selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } } }) useCreatePlatformBucketMutation({ selection: { fields: { id: true } } }) useUpdatePlatformBucketMutation({ selection: { fields: { id: true } } }) useDeletePlatformBucketMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformBucketMutation({}) ```typescript const { data, isLoading } = usePlatformBucketsQuery({ - selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }, + selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformBucketsQuery({ const { mutate } = useCreatePlatformBucketMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }); +mutate({ actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }); ``` diff --git a/.agents/skills/hooks-storage/references/upload-files.md b/.agents/skills/hooks-storage/references/upload-files.md index 76e752fbbb..8ad18d676f 100644 --- a/.agents/skills/hooks-storage/references/upload-files.md +++ b/.agents/skills/hooks-storage/references/upload-files.md @@ -2,7 +2,7 @@ -Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. Accepts at most the bucket's `maxBulkFiles` files per call. ## Usage diff --git a/.agents/skills/hooks-storage/references/upload-platform-files.md b/.agents/skills/hooks-storage/references/upload-platform-files.md index 50b86d89f7..513a96bc18 100644 --- a/.agents/skills/hooks-storage/references/upload-platform-files.md +++ b/.agents/skills/hooks-storage/references/upload-platform-files.md @@ -2,7 +2,7 @@ -Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. Accepts at most the bucket's `maxBulkFiles` files per call. ## Usage diff --git a/.agents/skills/orm-api/SKILL.md b/.agents/skills/orm-api/SKILL.md index 95c9726a9c..302adee800 100644 --- a/.agents/skills/orm-api/SKILL.md +++ b/.agents/skills/orm-api/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-api -description: ORM client for the api API — provides typed CRUD operations for 92 tables and 46 custom operations +description: ORM client for the api API — provides typed CRUD operations for 90 tables and 46 custom operations --- # orm-api -ORM client for the api API — provides typed CRUD operations for 92 tables and 46 custom operations +ORM client for the api API — provides typed CRUD operations for 90 tables and 46 custom operations ## Usage @@ -66,7 +66,6 @@ See the `references/` directory for detailed per-entity API documentation: - [full-text-search](references/full-text-search.md) - [function](references/function.md) - [get-site-previews-record](references/get-site-previews-record.md) -- [hostname-binding](references/hostname-binding.md) - [identity-provider-registry](references/identity-provider-registry.md) - [index](references/index.md) - [list-suspended-databases-record](references/list-suspended-databases-record.md) @@ -101,7 +100,6 @@ See the `references/` directory for detailed per-entity API documentation: - [pubkey-setting](references/pubkey-setting.md) - [redirect](references/redirect.md) - [rls-setting](references/rls-setting.md) -- [route-binding](references/route-binding.md) - [route](references/route.md) - [schema](references/schema.md) - [schema-grant](references/schema-grant.md) diff --git a/.agents/skills/orm-api/references/managed-domain.md b/.agents/skills/orm-api/references/managed-domain.md index d9ec52f3fa..c84f624d5b 100644 --- a/.agents/skills/orm-api/references/managed-domain.md +++ b/.agents/skills/orm-api/references/managed-domain.md @@ -9,7 +9,7 @@ Platform-operated hostnames whose DNS and certificate lifecycle the platform dri ```typescript db.managedDomain.findMany({ select: { id: true } }).execute() db.managedDomain.findOne({ id: '', select: { id: true } }).execute() -db.managedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', databaseId: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute() +db.managedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', databaseId: '', domain: '', isWildcard: '', publicPort: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute() db.managedDomain.update({ where: { id: '' }, data: { allowPublicUsage: '' }, select: { id: true } }).execute() db.managedDomain.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.managedDomain.findMany({ ```typescript const item = await db.managedDomain.create({ - data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', databaseId: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, + data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', databaseId: '', domain: '', isWildcard: '', publicPort: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/platform-managed-domain.md b/.agents/skills/orm-api/references/platform-managed-domain.md index 0ed864c9c5..6f561db1fd 100644 --- a/.agents/skills/orm-api/references/platform-managed-domain.md +++ b/.agents/skills/orm-api/references/platform-managed-domain.md @@ -9,7 +9,7 @@ Platform-operated hostnames whose DNS and certificate lifecycle the platform dri ```typescript db.platformManagedDomain.findMany({ select: { id: true } }).execute() db.platformManagedDomain.findOne({ id: '', select: { id: true } }).execute() -db.platformManagedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute() +db.platformManagedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', domain: '', isWildcard: '', publicPort: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute() db.platformManagedDomain.update({ where: { id: '' }, data: { allowPublicUsage: '' }, select: { id: true } }).execute() db.platformManagedDomain.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformManagedDomain.findMany({ ```typescript const item = await db.platformManagedDomain.create({ - data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, + data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', domain: '', isWildcard: '', publicPort: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/unique-constraint.md b/.agents/skills/orm-api/references/unique-constraint.md index d8a9a3c4a1..fda04f9082 100644 --- a/.agents/skills/orm-api/references/unique-constraint.md +++ b/.agents/skills/orm-api/references/unique-constraint.md @@ -9,7 +9,7 @@ ORM operations for UniqueConstraint records ```typescript db.uniqueConstraint.findMany({ select: { id: true } }).execute() db.uniqueConstraint.findOne({ id: '', select: { id: true } }).execute() -db.uniqueConstraint.create({ data: { category: '', databaseId: '', description: '', fieldIds: '', initiallyDeferred: '', isDeferrable: '', name: '', smartTags: '', tableId: '', tags: '', type: '', withoutOverlaps: '' }, select: { id: true } }).execute() +db.uniqueConstraint.create({ data: { category: '', databaseId: '', description: '', fieldIds: '', initiallyDeferred: '', isDeferrable: '', name: '', nullsNotDistinct: '', smartTags: '', tableId: '', tags: '', type: '', withoutOverlaps: '' }, select: { id: true } }).execute() db.uniqueConstraint.update({ where: { id: '' }, data: { category: '' }, select: { id: true } }).execute() db.uniqueConstraint.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.uniqueConstraint.findMany({ ```typescript const item = await db.uniqueConstraint.create({ - data: { category: '', databaseId: '', description: '', fieldIds: '', initiallyDeferred: '', isDeferrable: '', name: '', smartTags: '', tableId: '', tags: '', type: '', withoutOverlaps: '' }, + data: { category: '', databaseId: '', description: '', fieldIds: '', initiallyDeferred: '', isDeferrable: '', name: '', nullsNotDistinct: '', smartTags: '', tableId: '', tags: '', type: '', withoutOverlaps: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/billing-provider-module.md b/.agents/skills/orm-modules/references/billing-provider-module.md index d31eb39888..fe7299c15f 100644 --- a/.agents/skills/orm-modules/references/billing-provider-module.md +++ b/.agents/skills/orm-modules/references/billing-provider-module.md @@ -9,7 +9,7 @@ ORM operations for BillingProviderModule records ```typescript db.billingProviderModule.findMany({ select: { id: true } }).execute() db.billingProviderModule.findOne({ id: '', select: { id: true } }).execute() -db.billingProviderModule.create({ data: { activatePlanSubscriptionFunction: '', apiName: '', applyProviderObservationFunction: '', billingCustomersTableId: '', billingCustomersTableName: '', billingDisputesTableId: '', billingDisputesTableName: '', billingHealthTableId: '', billingHealthTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingOperationsTableId: '', billingOperationsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingProviderStateTableId: '', billingProviderStateTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', bindCheckoutSessionFunction: '', clearScheduledChangeFunction: '', databaseId: '', finishBillingOperationFunction: '', getActivePlanPricingFunction: '', getActivePlanSubscriptionFunction: '', getBillingCustomerFunction: '', getBillingPriceFunction: '', getBillingProductFunction: '', getBillingProviderStateFunction: '', getBillingSubscriptionByEntityFunction: '', getBillingSubscriptionByExternalIdFunction: '', getBillingSubscriptionFunction: '', getFallbackFreePlanFunction: '', getPlanPricingByExternalPriceFunction: '', hasDueReconciliationsFunction: '', listDueReconciliationsFunction: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', prepareScheduledChangeFunction: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordBillingHealthFunction: '', recordDisputeFunction: '', recordRefundFunction: '', reserveBillingOperationFunction: '', schemaId: '', subscriptionsTableId: '', sweepOverdueSubscriptionsFunction: '', upsertBillingCustomerFunction: '', upsertBillingPriceFunction: '', upsertBillingProductFunction: '', upsertBillingSubscriptionFunction: '', upsertInvoiceFunction: '', usageSyncShardCount: '' }, select: { id: true } }).execute() +db.billingProviderModule.create({ data: { activatePlanSubscriptionFunction: '', apiName: '', applyProviderObservationFunction: '', billingConnectionTableId: '', billingConnectionTableName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingDisputesTableId: '', billingDisputesTableName: '', billingHealthTableId: '', billingHealthTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingOperationsTableId: '', billingOperationsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingProviderConnectedFunction: '', billingProviderStateTableId: '', billingProviderStateTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', bindCheckoutSessionFunction: '', clearScheduledChangeFunction: '', databaseId: '', finishBillingOperationFunction: '', getActivePlanPricingFunction: '', getActivePlanSubscriptionFunction: '', getBillingCustomerFunction: '', getBillingPriceFunction: '', getBillingProductFunction: '', getBillingProviderStateFunction: '', getBillingSubscriptionByEntityFunction: '', getBillingSubscriptionByExternalIdFunction: '', getBillingSubscriptionFunction: '', getFallbackFreePlanFunction: '', getPlanPricingByExternalPriceFunction: '', hasDueReconciliationsFunction: '', listDueReconciliationsFunction: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', prepareScheduledChangeFunction: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordBillingConnectionFunction: '', recordBillingHealthFunction: '', recordDisputeFunction: '', recordRefundFunction: '', reserveBillingOperationFunction: '', schemaId: '', subscriptionsTableId: '', sweepOverdueSubscriptionsFunction: '', upsertBillingCustomerFunction: '', upsertBillingPriceFunction: '', upsertBillingProductFunction: '', upsertBillingSubscriptionFunction: '', upsertInvoiceFunction: '', usageSyncShardCount: '' }, select: { id: true } }).execute() db.billingProviderModule.update({ where: { id: '' }, data: { activatePlanSubscriptionFunction: '' }, select: { id: true } }).execute() db.billingProviderModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.billingProviderModule.findMany({ ```typescript const item = await db.billingProviderModule.create({ - data: { activatePlanSubscriptionFunction: '', apiName: '', applyProviderObservationFunction: '', billingCustomersTableId: '', billingCustomersTableName: '', billingDisputesTableId: '', billingDisputesTableName: '', billingHealthTableId: '', billingHealthTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingOperationsTableId: '', billingOperationsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingProviderStateTableId: '', billingProviderStateTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', bindCheckoutSessionFunction: '', clearScheduledChangeFunction: '', databaseId: '', finishBillingOperationFunction: '', getActivePlanPricingFunction: '', getActivePlanSubscriptionFunction: '', getBillingCustomerFunction: '', getBillingPriceFunction: '', getBillingProductFunction: '', getBillingProviderStateFunction: '', getBillingSubscriptionByEntityFunction: '', getBillingSubscriptionByExternalIdFunction: '', getBillingSubscriptionFunction: '', getFallbackFreePlanFunction: '', getPlanPricingByExternalPriceFunction: '', hasDueReconciliationsFunction: '', listDueReconciliationsFunction: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', prepareScheduledChangeFunction: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordBillingHealthFunction: '', recordDisputeFunction: '', recordRefundFunction: '', reserveBillingOperationFunction: '', schemaId: '', subscriptionsTableId: '', sweepOverdueSubscriptionsFunction: '', upsertBillingCustomerFunction: '', upsertBillingPriceFunction: '', upsertBillingProductFunction: '', upsertBillingSubscriptionFunction: '', upsertInvoiceFunction: '', usageSyncShardCount: '' }, + data: { activatePlanSubscriptionFunction: '', apiName: '', applyProviderObservationFunction: '', billingConnectionTableId: '', billingConnectionTableName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingDisputesTableId: '', billingDisputesTableName: '', billingHealthTableId: '', billingHealthTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingOperationsTableId: '', billingOperationsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingProviderConnectedFunction: '', billingProviderStateTableId: '', billingProviderStateTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', bindCheckoutSessionFunction: '', clearScheduledChangeFunction: '', databaseId: '', finishBillingOperationFunction: '', getActivePlanPricingFunction: '', getActivePlanSubscriptionFunction: '', getBillingCustomerFunction: '', getBillingPriceFunction: '', getBillingProductFunction: '', getBillingProviderStateFunction: '', getBillingSubscriptionByEntityFunction: '', getBillingSubscriptionByExternalIdFunction: '', getBillingSubscriptionFunction: '', getFallbackFreePlanFunction: '', getPlanPricingByExternalPriceFunction: '', hasDueReconciliationsFunction: '', listDueReconciliationsFunction: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', prepareScheduledChangeFunction: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordBillingConnectionFunction: '', recordBillingHealthFunction: '', recordDisputeFunction: '', recordRefundFunction: '', reserveBillingOperationFunction: '', schemaId: '', subscriptionsTableId: '', sweepOverdueSubscriptionsFunction: '', upsertBillingCustomerFunction: '', upsertBillingPriceFunction: '', upsertBillingProductFunction: '', upsertBillingSubscriptionFunction: '', upsertInvoiceFunction: '', usageSyncShardCount: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/storage-module.md b/.agents/skills/orm-modules/references/storage-module.md index 2ad969d248..f3e3acf8a7 100644 --- a/.agents/skills/orm-modules/references/storage-module.md +++ b/.agents/skills/orm-modules/references/storage-module.md @@ -9,7 +9,7 @@ ORM operations for StorageModule records ```typescript db.storageModule.findMany({ select: { id: true } }).execute() db.storageModule.findOne({ id: '', select: { id: true } }).execute() -db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute() +db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute() db.storageModule.update({ where: { id: '' }, data: { allowedOrigins: '' }, select: { id: true } }).execute() db.storageModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.storageModule.findMany({ ```typescript const item = await db.storageModule.create({ - data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, + data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-storage/references/bucket.md b/.agents/skills/orm-storage/references/bucket.md index 64d1d95245..0b26213ecc 100644 --- a/.agents/skills/orm-storage/references/bucket.md +++ b/.agents/skills/orm-storage/references/bucket.md @@ -9,7 +9,7 @@ Logical storage containers that group files with shared access policies and CDN ```typescript db.bucket.findMany({ select: { id: true } }).execute() db.bucket.findOne({ id: '', select: { id: true } }).execute() -db.bucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute() +db.bucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute() db.bucket.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.bucket.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.bucket.findMany({ ```typescript const item = await db.bucket.create({ - data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, + data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-storage/references/platform-bucket.md b/.agents/skills/orm-storage/references/platform-bucket.md index 5518235f61..56d49fc4e5 100644 --- a/.agents/skills/orm-storage/references/platform-bucket.md +++ b/.agents/skills/orm-storage/references/platform-bucket.md @@ -9,7 +9,7 @@ Logical storage containers that group files with shared access policies and CDN ```typescript db.platformBucket.findMany({ select: { id: true } }).execute() db.platformBucket.findOne({ id: '', select: { id: true } }).execute() -db.platformBucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute() +db.platformBucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute() db.platformBucket.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.platformBucket.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformBucket.findMany({ ```typescript const item = await db.platformBucket.create({ - data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, + data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-storage/references/upload-files.md b/.agents/skills/orm-storage/references/upload-files.md index 7be60502e9..811de7b398 100644 --- a/.agents/skills/orm-storage/references/upload-files.md +++ b/.agents/skills/orm-storage/references/upload-files.md @@ -2,7 +2,7 @@ -Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. Accepts at most the bucket's `maxBulkFiles` files per call. ## Usage diff --git a/.agents/skills/orm-storage/references/upload-platform-files.md b/.agents/skills/orm-storage/references/upload-platform-files.md index fbfa1b5e8f..06e61a442a 100644 --- a/.agents/skills/orm-storage/references/upload-platform-files.md +++ b/.agents/skills/orm-storage/references/upload-platform-files.md @@ -2,7 +2,7 @@ -Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. Accepts at most the bucket's `maxBulkFiles` files per call. ## Usage diff --git a/sdk/constructive-cli/src/api/README.md b/sdk/constructive-cli/src/api/README.md index 1b82e21f6a..db4ec0e179 100644 --- a/sdk/constructive-cli/src/api/README.md +++ b/sdk/constructive-cli/src/api/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 92 +- **Tables:** 90 - **Custom queries:** 17 - **Custom mutations:** 29 diff --git a/sdk/constructive-cli/src/api/cli/README.md b/sdk/constructive-cli/src/api/cli/README.md index 14a1453729..5501979e10 100644 --- a/sdk/constructive-cli/src/api/cli/README.md +++ b/sdk/constructive-cli/src/api/cli/README.md @@ -55,7 +55,6 @@ csdk auth set-token | `full-text-search` | fullTextSearch CRUD operations | | `function` | function CRUD operations | | `get-site-previews-record` | getSitePreviewsRecord CRUD operations | -| `hostname-binding` | hostnameBinding CRUD operations | | `identity-provider-registry` | identityProviderRegistry CRUD operations | | `index` | index CRUD operations | | `list-suspended-databases-record` | listSuspendedDatabasesRecord CRUD operations | @@ -90,7 +89,6 @@ csdk auth set-token | `pubkey-setting` | pubkeySetting CRUD operations | | `redirect` | redirect CRUD operations | | `rls-setting` | rlsSetting CRUD operations | -| `route-binding` | routeBinding CRUD operations | | `route` | route CRUD operations | | `schema` | schema CRUD operations | | `schema-grant` | schemaGrant CRUD operations | @@ -1212,37 +1210,6 @@ CRUD operations for GetSitePreviewsRecord records. **Required create fields:** `commitId`, `name` -### `hostname-binding` - -CRUD operations for HostnameBinding records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all hostnameBinding records | -| `find-first` | Find first matching hostnameBinding record | -| `get` | Get a hostnameBinding by id | -| `create` | Create a new hostnameBinding | -| `update` | Update an existing hostnameBinding | -| `delete` | Delete a hostnameBinding | - -**Fields:** - -| Field | Type | -|-------|------| -| `domainId` | UUID | -| `hostname` | String | -| `id` | UUID | -| `isWildcard` | Boolean | -| `managed` | Boolean | -| `parentHostname` | String | -| `tlsSecretName` | String | -| `tlsStatus` | String | -| `updatedAt` | Datetime | -| `verificationStatus` | String | - -**Required create fields:** `domainId`, `hostname` -**Optional create fields (backend defaults):** `isWildcard`, `managed`, `parentHostname`, `tlsSecretName`, `tlsStatus`, `verificationStatus` - ### `identity-provider-registry` CRUD operations for IdentityProviderRegistry records. @@ -1362,6 +1329,7 @@ CRUD operations for ManagedDomain records. | `domain` | String | | `id` | UUID | | `isWildcard` | Boolean | +| `publicPort` | Int | | `tlsReadyAt` | Datetime | | `tlsStatus` | String | | `updatedAt` | Datetime | @@ -1370,7 +1338,7 @@ CRUD operations for ManagedDomain records. | `verifiedAt` | Datetime | **Required create fields:** `databaseId`, `domain` -**Optional create fields (backend defaults):** `allowPublicUsage`, `annotations`, `certStatus`, `createdByPrincipal`, `isWildcard`, `tlsReadyAt`, `tlsStatus`, `updatedByPrincipal`, `verificationStatus`, `verifiedAt` +**Optional create fields (backend defaults):** `allowPublicUsage`, `annotations`, `certStatus`, `createdByPrincipal`, `isWildcard`, `publicPort`, `tlsReadyAt`, `tlsStatus`, `updatedByPrincipal`, `verificationStatus`, `verifiedAt` ### `node-type-registry` @@ -1839,6 +1807,7 @@ CRUD operations for PlatformManagedDomain records. | `domain` | String | | `id` | UUID | | `isWildcard` | Boolean | +| `publicPort` | Int | | `tlsReadyAt` | Datetime | | `tlsStatus` | String | | `updatedAt` | Datetime | @@ -1847,7 +1816,7 @@ CRUD operations for PlatformManagedDomain records. | `verifiedAt` | Datetime | **Required create fields:** `domain` -**Optional create fields (backend defaults):** `allowPublicUsage`, `annotations`, `certStatus`, `createdByPrincipal`, `isWildcard`, `tlsReadyAt`, `tlsStatus`, `updatedByPrincipal`, `verificationStatus`, `verifiedAt` +**Optional create fields (backend defaults):** `allowPublicUsage`, `annotations`, `certStatus`, `createdByPrincipal`, `isWildcard`, `publicPort`, `tlsReadyAt`, `tlsStatus`, `updatedByPrincipal`, `verificationStatus`, `verifiedAt` ### `platform-page` @@ -2322,41 +2291,6 @@ CRUD operations for RlsSetting records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `authenticateFunctionId`, `authenticateSchemaId`, `authenticateStrictFunctionId`, `currentIpAddressFunctionId`, `currentRoleFunctionId`, `currentRoleIdFunctionId`, `currentUserAgentFunctionId`, `roleSchemaId` -### `route-binding` - -CRUD operations for RouteBinding records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all routeBinding records | -| `find-first` | Find first matching routeBinding record | -| `get` | Get a routeBinding by id | -| `create` | Create a new routeBinding | -| `update` | Update an existing routeBinding | -| `delete` | Delete a routeBinding | - -**Fields:** - -| Field | Type | -|-------|------| -| `domainId` | UUID | -| `id` | UUID | -| `isActive` | Boolean | -| `method` | String | -| `path` | String | -| `priority` | Int | -| `servingSiteId` | UUID | -| `targetApiId` | UUID | -| `targetBucketId` | UUID | -| `targetFunctionId` | UUID | -| `targetRedirectId` | UUID | -| `targetServiceId` | UUID | -| `targetSiteId` | UUID | -| `updatedAt` | Datetime | - -**Required create fields:** `domainId`, `path` -**Optional create fields (backend defaults):** `isActive`, `method`, `priority`, `servingSiteId`, `targetApiId`, `targetBucketId`, `targetFunctionId`, `targetRedirectId`, `targetServiceId`, `targetSiteId` - ### `route` CRUD operations for Route records. @@ -3029,6 +2963,7 @@ CRUD operations for UniqueConstraint records. | `initiallyDeferred` | Boolean | | `isDeferrable` | Boolean | | `name` | String | +| `nullsNotDistinct` | Boolean | | `smartTags` | JSON | | `tableId` | UUID | | `tags` | String | @@ -3037,7 +2972,7 @@ CRUD operations for UniqueConstraint records. | `withoutOverlaps` | Boolean | **Required create fields:** `fieldIds`, `tableId` -**Optional create fields (backend defaults):** `category`, `databaseId`, `description`, `initiallyDeferred`, `isDeferrable`, `name`, `smartTags`, `tags`, `type`, `withoutOverlaps` +**Optional create fields (backend defaults):** `category`, `databaseId`, `description`, `initiallyDeferred`, `isDeferrable`, `name`, `nullsNotDistinct`, `smartTags`, `tags`, `type`, `withoutOverlaps` ### `view-behavior` diff --git a/sdk/constructive-cli/src/api/cli/commands.ts b/sdk/constructive-cli/src/api/cli/commands.ts index 3c7c701e97..e8522249db 100644 --- a/sdk/constructive-cli/src/api/cli/commands.ts +++ b/sdk/constructive-cli/src/api/cli/commands.ts @@ -35,7 +35,6 @@ import foreignKeyConstraintCmd from './commands/foreign-key-constraint'; import fullTextSearchCmd from './commands/full-text-search'; import functionCmd from './commands/function'; import getSitePreviewsRecordCmd from './commands/get-site-previews-record'; -import hostnameBindingCmd from './commands/hostname-binding'; import identityProviderRegistryCmd from './commands/identity-provider-registry'; import indexCmd from './commands/index'; import listSuspendedDatabasesRecordCmd from './commands/list-suspended-databases-record'; @@ -70,7 +69,6 @@ import primaryKeyConstraintCmd from './commands/primary-key-constraint'; import pubkeySettingCmd from './commands/pubkey-setting'; import redirectCmd from './commands/redirect'; import rlsSettingCmd from './commands/rls-setting'; -import routeBindingCmd from './commands/route-binding'; import routeCmd from './commands/route'; import schemaCmd from './commands/schema'; import schemaGrantCmd from './commands/schema-grant'; @@ -183,7 +181,6 @@ const createCommandMap: () => Record< 'full-text-search': fullTextSearchCmd, function: functionCmd, 'get-site-previews-record': getSitePreviewsRecordCmd, - 'hostname-binding': hostnameBindingCmd, 'identity-provider-registry': identityProviderRegistryCmd, index: indexCmd, 'list-suspended-databases-record': listSuspendedDatabasesRecordCmd, @@ -218,7 +215,6 @@ const createCommandMap: () => Record< 'pubkey-setting': pubkeySettingCmd, redirect: redirectCmd, 'rls-setting': rlsSettingCmd, - 'route-binding': routeBindingCmd, route: routeCmd, schema: schemaCmd, 'schema-grant': schemaGrantCmd, @@ -294,7 +290,7 @@ const createCommandMap: () => Record< 'unsuspend-database': unsuspendDatabaseCmd, }); const usage = - "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n api api CRUD operations\n api-schema apiSchema CRUD operations\n api-setting apiSetting CRUD operations\n ast-migration astMigration CRUD operations\n check-constraint checkConstraint CRUD operations\n composite-type compositeType CRUD operations\n cors-setting corsSetting CRUD operations\n database database CRUD operations\n database-setting databaseSetting CRUD operations\n database-transfer databaseTransfer CRUD operations\n default-privilege defaultPrivilege CRUD operations\n derive derive CRUD operations\n domain domain CRUD operations\n domain-event domainEvent CRUD operations\n domain-type domainType CRUD operations\n domain-verification domainVerification CRUD operations\n email-identity emailIdentity CRUD operations\n email-provider-account emailProviderAccount CRUD operations\n email-site-identity emailSiteIdentity CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n enum enum CRUD operations\n exclusion-constraint exclusionConstraint CRUD operations\n field-behavior fieldBehavior CRUD operations\n field field CRUD operations\n foreign-key-constraint-behavior foreignKeyConstraintBehavior CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n function function CRUD operations\n get-site-previews-record getSitePreviewsRecord CRUD operations\n hostname-binding hostnameBinding CRUD operations\n identity-provider-registry identityProviderRegistry CRUD operations\n index index CRUD operations\n list-suspended-databases-record listSuspendedDatabasesRecord CRUD operations\n managed-domain managedDomain CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n page page CRUD operations\n partition partition CRUD operations\n platform-api platformApi CRUD operations\n platform-api-schema platformApiSchema CRUD operations\n platform-api-setting platformApiSetting CRUD operations\n platform-cors-setting platformCorsSetting CRUD operations\n platform-domain platformDomain CRUD operations\n platform-domain-event platformDomainEvent CRUD operations\n platform-domain-verification platformDomainVerification CRUD operations\n platform-email-identity platformEmailIdentity CRUD operations\n platform-email-provider-account platformEmailProviderAccount CRUD operations\n platform-email-site-identity platformEmailSiteIdentity CRUD operations\n platform-get-site-previews-record platformGetSitePreviewsRecord CRUD operations\n platform-managed-domain platformManagedDomain CRUD operations\n platform-page platformPage CRUD operations\n platform-site-app-link platformSiteAppLink CRUD operations\n platform-site platformSite CRUD operations\n platform-site-deep-link platformSiteDeepLink CRUD operations\n platform-site-error-page platformSiteErrorPage CRUD operations\n platform-site-metadatum platformSiteMetadatum CRUD operations\n platform-site-module platformSiteModule CRUD operations\n platform-site-release platformSiteRelease CRUD operations\n platform-site-theme platformSiteTheme CRUD operations\n platform-site-web-config platformSiteWebConfig CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n redirect redirect CRUD operations\n rls-setting rlsSetting CRUD operations\n route-binding routeBinding CRUD operations\n route route CRUD operations\n schema schema CRUD operations\n schema-grant schemaGrant CRUD operations\n site-app-link siteAppLink CRUD operations\n site site CRUD operations\n site-deep-link siteDeepLink CRUD operations\n site-error-page siteErrorPage CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-release siteRelease CRUD operations\n site-theme siteTheme CRUD operations\n site-web-config siteWebConfig CRUD operations\n spatial-relation spatialRelation CRUD operations\n sql-action sqlAction CRUD operations\n table-behavior tableBehavior CRUD operations\n table table CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n trigger-function triggerFunction CRUD operations\n unique-constraint-behavior uniqueConstraintBehavior CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view-behavior viewBehavior CRUD operations\n view view CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n view-table viewTable CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n api-schema-names apiSchemaNames\n apply-registry-defaults applyRegistryDefaults\n get-site-preview-commit getSitePreviewCommit\n get-site-release-manifest getSiteReleaseManifest\n page-published pagePublished\n platform-get-site-preview-commit platformGetSitePreviewCommit\n platform-get-site-release-manifest platformGetSiteReleaseManifest\n platform-page-published platformPagePublished\n platform-sites-deep-link-url platformSitesDeepLinkUrl\n platform-sites-site-origin platformSitesSiteOrigin\n platform-verify-site-preview-token platformVerifySitePreviewToken\n resolve-deep-link resolveDeepLink\n resolve-route resolveRoute\n resolve-site-app-links resolveSiteAppLinks\n sites-deep-link-url sitesDeepLinkUrl\n sites-site-origin sitesSiteOrigin\n verify-site-preview-token verifySitePreviewToken\n accept-database-transfer acceptDatabaseTransfer\n apply-rls applyRls\n cancel-database-transfer cancelDatabaseTransfer\n delete-site-preview deleteSitePreview\n domains-assign-subdomain domainsAssignSubdomain\n mint-site-preview-token mintSitePreviewToken\n pages-install-pages pagesInstallPages\n platform-delete-site-preview platformDeleteSitePreview\n platform-domains-assign-subdomain platformDomainsAssignSubdomain\n platform-mint-site-preview-token platformMintSitePreviewToken\n platform-pages-install-pages platformPagesInstallPages\n platform-provision-site-preview platformProvisionSitePreview\n platform-set-site-preview platformSetSitePreview\n platform-site-metadata-install-robots platformSiteMetadataInstallRobots\n platform-sites-install-content-preset platformSitesInstallContentPreset\n platform-sites-install-mantra platformSitesInstallMantra\n platform-sites-provision-static-site platformSitesProvisionStaticSite\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\n provision-site-preview provisionSitePreview\n reject-database-transfer rejectDatabaseTransfer\n request-database Requests a database and returns a ticket (database_provision_module row) to poll.\n\nPass exactly one of preset_slug or modules. Pass organization_id to have the organization own the database from the start (the caller must be an owner of that organization); the requesting user is still the identity bootstrapped into the new database. Omit it for a personal database. The pool, presets, and owner bootstrap are private implementation details: a warm pool hit fulfills the ticket immediately (fulfilled_at set, deferred owner bootstrap), otherwise the database is cold-provisioned asynchronously with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at.\n\nExample usage:\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full');\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '[\"users_module\", \"emails_module\"]'::jsonb);\n SELECT * FROM metaschema_public.request_database('team_app', 'example.com', preset_slug := 'full', organization_id := '00000000-0000-0000-0000-000000000000'::uuid);\n set-field-order setFieldOrder\n set-site-preview setSitePreview\n site-metadata-install-robots siteMetadataInstallRobots\n sites-install-content-preset sitesInstallContentPreset\n sites-install-mantra sitesInstallMantra\n sites-provision-static-site sitesProvisionStaticSite\n suspend-database suspendDatabase\n unsuspend-database unsuspendDatabase\n\n --help, -h Show this help message\n --version, -v Show version\n"; + "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n api api CRUD operations\n api-schema apiSchema CRUD operations\n api-setting apiSetting CRUD operations\n ast-migration astMigration CRUD operations\n check-constraint checkConstraint CRUD operations\n composite-type compositeType CRUD operations\n cors-setting corsSetting CRUD operations\n database database CRUD operations\n database-setting databaseSetting CRUD operations\n database-transfer databaseTransfer CRUD operations\n default-privilege defaultPrivilege CRUD operations\n derive derive CRUD operations\n domain domain CRUD operations\n domain-event domainEvent CRUD operations\n domain-type domainType CRUD operations\n domain-verification domainVerification CRUD operations\n email-identity emailIdentity CRUD operations\n email-provider-account emailProviderAccount CRUD operations\n email-site-identity emailSiteIdentity CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n enum enum CRUD operations\n exclusion-constraint exclusionConstraint CRUD operations\n field-behavior fieldBehavior CRUD operations\n field field CRUD operations\n foreign-key-constraint-behavior foreignKeyConstraintBehavior CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n function function CRUD operations\n get-site-previews-record getSitePreviewsRecord CRUD operations\n identity-provider-registry identityProviderRegistry CRUD operations\n index index CRUD operations\n list-suspended-databases-record listSuspendedDatabasesRecord CRUD operations\n managed-domain managedDomain CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n page page CRUD operations\n partition partition CRUD operations\n platform-api platformApi CRUD operations\n platform-api-schema platformApiSchema CRUD operations\n platform-api-setting platformApiSetting CRUD operations\n platform-cors-setting platformCorsSetting CRUD operations\n platform-domain platformDomain CRUD operations\n platform-domain-event platformDomainEvent CRUD operations\n platform-domain-verification platformDomainVerification CRUD operations\n platform-email-identity platformEmailIdentity CRUD operations\n platform-email-provider-account platformEmailProviderAccount CRUD operations\n platform-email-site-identity platformEmailSiteIdentity CRUD operations\n platform-get-site-previews-record platformGetSitePreviewsRecord CRUD operations\n platform-managed-domain platformManagedDomain CRUD operations\n platform-page platformPage CRUD operations\n platform-site-app-link platformSiteAppLink CRUD operations\n platform-site platformSite CRUD operations\n platform-site-deep-link platformSiteDeepLink CRUD operations\n platform-site-error-page platformSiteErrorPage CRUD operations\n platform-site-metadatum platformSiteMetadatum CRUD operations\n platform-site-module platformSiteModule CRUD operations\n platform-site-release platformSiteRelease CRUD operations\n platform-site-theme platformSiteTheme CRUD operations\n platform-site-web-config platformSiteWebConfig CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n redirect redirect CRUD operations\n rls-setting rlsSetting CRUD operations\n route route CRUD operations\n schema schema CRUD operations\n schema-grant schemaGrant CRUD operations\n site-app-link siteAppLink CRUD operations\n site site CRUD operations\n site-deep-link siteDeepLink CRUD operations\n site-error-page siteErrorPage CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-release siteRelease CRUD operations\n site-theme siteTheme CRUD operations\n site-web-config siteWebConfig CRUD operations\n spatial-relation spatialRelation CRUD operations\n sql-action sqlAction CRUD operations\n table-behavior tableBehavior CRUD operations\n table table CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n trigger-function triggerFunction CRUD operations\n unique-constraint-behavior uniqueConstraintBehavior CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view-behavior viewBehavior CRUD operations\n view view CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n view-table viewTable CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n api-schema-names apiSchemaNames\n apply-registry-defaults applyRegistryDefaults\n get-site-preview-commit getSitePreviewCommit\n get-site-release-manifest getSiteReleaseManifest\n page-published pagePublished\n platform-get-site-preview-commit platformGetSitePreviewCommit\n platform-get-site-release-manifest platformGetSiteReleaseManifest\n platform-page-published platformPagePublished\n platform-sites-deep-link-url platformSitesDeepLinkUrl\n platform-sites-site-origin platformSitesSiteOrigin\n platform-verify-site-preview-token platformVerifySitePreviewToken\n resolve-deep-link resolveDeepLink\n resolve-route resolveRoute\n resolve-site-app-links resolveSiteAppLinks\n sites-deep-link-url sitesDeepLinkUrl\n sites-site-origin sitesSiteOrigin\n verify-site-preview-token verifySitePreviewToken\n accept-database-transfer acceptDatabaseTransfer\n apply-rls applyRls\n cancel-database-transfer cancelDatabaseTransfer\n delete-site-preview deleteSitePreview\n domains-assign-subdomain domainsAssignSubdomain\n mint-site-preview-token mintSitePreviewToken\n pages-install-pages pagesInstallPages\n platform-delete-site-preview platformDeleteSitePreview\n platform-domains-assign-subdomain platformDomainsAssignSubdomain\n platform-mint-site-preview-token platformMintSitePreviewToken\n platform-pages-install-pages platformPagesInstallPages\n platform-provision-site-preview platformProvisionSitePreview\n platform-set-site-preview platformSetSitePreview\n platform-site-metadata-install-robots platformSiteMetadataInstallRobots\n platform-sites-install-content-preset platformSitesInstallContentPreset\n platform-sites-install-mantra platformSitesInstallMantra\n platform-sites-provision-static-site platformSitesProvisionStaticSite\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\n provision-site-preview provisionSitePreview\n reject-database-transfer rejectDatabaseTransfer\n request-database Requests a database and returns a ticket (database_provision_module row) to poll.\n\nPass exactly one of preset_slug or modules. Pass organization_id to have the organization own the database from the start (the caller must be an owner of that organization); the requesting user is still the identity bootstrapped into the new database. Omit it for a personal database. The pool, presets, and owner bootstrap are private implementation details: a warm pool hit fulfills the ticket immediately (fulfilled_at set, deferred owner bootstrap), otherwise the database is cold-provisioned asynchronously with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at.\n\nExample usage:\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full');\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '[\"users_module\", \"emails_module\"]'::jsonb);\n SELECT * FROM metaschema_public.request_database('team_app', 'example.com', preset_slug := 'full', organization_id := '00000000-0000-0000-0000-000000000000'::uuid);\n set-field-order setFieldOrder\n set-site-preview setSitePreview\n site-metadata-install-robots siteMetadataInstallRobots\n sites-install-content-preset sitesInstallContentPreset\n sites-install-mantra sitesInstallMantra\n sites-provision-static-site sitesProvisionStaticSite\n suspend-database suspendDatabase\n unsuspend-database unsuspendDatabase\n\n --help, -h Show this help message\n --version, -v Show version\n"; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/api/cli/commands/hostname-binding.ts b/sdk/constructive-cli/src/api/cli/commands/hostname-binding.ts deleted file mode 100644 index fae7b2e3e8..0000000000 --- a/sdk/constructive-cli/src/api/cli/commands/hostname-binding.ts +++ /dev/null @@ -1,409 +0,0 @@ -/** - * CLI commands for HostnameBinding - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateHostnameBindingInput, - HostnameBindingPatch, - HostnameBindingSelect, - HostnameBindingFilter, - HostnameBindingOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - domainId: 'uuid', - hostname: 'string', - id: 'uuid', - isWildcard: 'boolean', - managed: 'boolean', - parentHostname: 'string', - tlsSecretName: 'string', - tlsStatus: 'string', - updatedAt: 'string', - verificationStatus: 'string', -}; -const usage = - '\nhostname-binding \n\nCommands:\n list List hostnameBinding records\n find-first Find first matching hostnameBinding record\n get Get a hostnameBinding by ID\n create Create a new hostnameBinding\n update Update an existing hostnameBinding\n delete Delete a hostnameBinding\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(argv); - if (!subcommand) { - const answer = await prompter.prompt(argv, [ - { - type: 'autocomplete', - name: 'subcommand', - message: 'What do you want to do?', - options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], - }, - ]); - return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); - } - return handleTableSubcommand(subcommand, newArgv, prompter); -}; -async function handleTableSubcommand( - subcommand: string, - argv: Partial>, - prompter: Inquirerer -) { - switch (subcommand) { - case 'list': - return handleList(argv, prompter); - case 'find-first': - return handleFindFirst(argv, prompter); - case 'get': - return handleGet(argv, prompter); - case 'create': - return handleCreate(argv, prompter); - case 'update': - return handleUpdate(argv, prompter); - case 'delete': - return handleDelete(argv, prompter); - default: - console.log(usage); - process.exit(1); - } -} -async function handleList(argv: Partial>, _prompter: Inquirerer) { - try { - const defaultSelect = { - domainId: true, - hostname: true, - id: true, - isWildcard: true, - managed: true, - parentHostname: true, - tlsSecretName: true, - tlsStatus: true, - updatedAt: true, - verificationStatus: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: HostnameBindingSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.hostnameBinding.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to list records.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { - try { - const defaultSelect = { - domainId: true, - hostname: true, - id: true, - isWildcard: true, - managed: true, - parentHostname: true, - tlsSecretName: true, - tlsStatus: true, - updatedAt: true, - verificationStatus: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: HostnameBindingSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.hostnameBinding.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to find record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleGet(argv: Partial>, prompter: Inquirerer) { - try { - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - ]); - const client = getClient(); - const result = await client.hostnameBinding - .findOne({ - id: answers.id as string, - select: { - domainId: true, - hostname: true, - id: true, - isWildcard: true, - managed: true, - parentHostname: true, - tlsSecretName: true, - tlsStatus: true, - updatedAt: true, - verificationStatus: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'domainId', - message: 'domainId', - required: true, - }, - { - type: 'text', - name: 'hostname', - message: 'hostname', - required: true, - }, - { - type: 'boolean', - name: 'isWildcard', - message: 'isWildcard', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'managed', - message: 'managed', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'parentHostname', - message: 'parentHostname', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'tlsSecretName', - message: 'tlsSecretName', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'tlsStatus', - message: 'tlsStatus', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'verificationStatus', - message: 'verificationStatus', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateHostnameBindingInput['hostnameBinding']; - const client = getClient(); - const result = await client.hostnameBinding - .create({ - data: { - domainId: cleanedData.domainId, - hostname: cleanedData.hostname, - isWildcard: cleanedData.isWildcard, - managed: cleanedData.managed, - parentHostname: cleanedData.parentHostname, - tlsSecretName: cleanedData.tlsSecretName, - tlsStatus: cleanedData.tlsStatus, - verificationStatus: cleanedData.verificationStatus, - }, - select: { - domainId: true, - hostname: true, - id: true, - isWildcard: true, - managed: true, - parentHostname: true, - tlsSecretName: true, - tlsStatus: true, - updatedAt: true, - verificationStatus: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleUpdate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - { - type: 'text', - name: 'domainId', - message: 'domainId', - required: false, - }, - { - type: 'text', - name: 'hostname', - message: 'hostname', - required: false, - }, - { - type: 'boolean', - name: 'isWildcard', - message: 'isWildcard', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'managed', - message: 'managed', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'parentHostname', - message: 'parentHostname', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'tlsSecretName', - message: 'tlsSecretName', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'tlsStatus', - message: 'tlsStatus', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'verificationStatus', - message: 'verificationStatus', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as HostnameBindingPatch; - const client = getClient(); - const result = await client.hostnameBinding - .update({ - where: { - id: answers.id as string, - }, - data: { - domainId: cleanedData.domainId, - hostname: cleanedData.hostname, - isWildcard: cleanedData.isWildcard, - managed: cleanedData.managed, - parentHostname: cleanedData.parentHostname, - tlsSecretName: cleanedData.tlsSecretName, - tlsStatus: cleanedData.tlsStatus, - verificationStatus: cleanedData.verificationStatus, - }, - select: { - domainId: true, - hostname: true, - id: true, - isWildcard: true, - managed: true, - parentHostname: true, - tlsSecretName: true, - tlsStatus: true, - updatedAt: true, - verificationStatus: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleDelete(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const client = getClient(); - const result = await client.hostnameBinding - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/api/cli/commands/managed-domain.ts b/sdk/constructive-cli/src/api/cli/commands/managed-domain.ts index 12c4f69f53..39ad7475f0 100644 --- a/sdk/constructive-cli/src/api/cli/commands/managed-domain.ts +++ b/sdk/constructive-cli/src/api/cli/commands/managed-domain.ts @@ -25,6 +25,7 @@ const fieldSchema: FieldSchema = { domain: 'string', id: 'uuid', isWildcard: 'boolean', + publicPort: 'int', tlsReadyAt: 'string', tlsStatus: 'string', updatedAt: 'string', @@ -92,6 +93,7 @@ async function handleList(argv: Partial>, _prompter: Inq domain: true, id: true, isWildcard: true, + publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, @@ -127,6 +129,7 @@ async function handleFindFirst(argv: Partial>, _prompter domain: true, id: true, isWildcard: true, + publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, @@ -174,6 +177,7 @@ async function handleGet(argv: Partial>, prompter: Inqui domain: true, id: true, isWildcard: true, + publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, @@ -242,6 +246,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicPort', + message: 'publicPort', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'tlsReadyAt', @@ -294,6 +305,7 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, domain: cleanedData.domain, isWildcard: cleanedData.isWildcard, + publicPort: cleanedData.publicPort, tlsReadyAt: cleanedData.tlsReadyAt, tlsStatus: cleanedData.tlsStatus, updatedByPrincipal: cleanedData.updatedByPrincipal, @@ -310,6 +322,7 @@ async function handleCreate(argv: Partial>, prompter: In domain: true, id: true, isWildcard: true, + publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, @@ -384,6 +397,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicPort', + message: 'publicPort', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'tlsReadyAt', @@ -436,6 +456,7 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, domain: cleanedData.domain, isWildcard: cleanedData.isWildcard, + publicPort: cleanedData.publicPort, tlsReadyAt: cleanedData.tlsReadyAt, tlsStatus: cleanedData.tlsStatus, updatedByPrincipal: cleanedData.updatedByPrincipal, @@ -452,6 +473,7 @@ async function handleUpdate(argv: Partial>, prompter: In domain: true, id: true, isWildcard: true, + publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-managed-domain.ts b/sdk/constructive-cli/src/api/cli/commands/platform-managed-domain.ts index 07528518ae..61f8e05ab0 100644 --- a/sdk/constructive-cli/src/api/cli/commands/platform-managed-domain.ts +++ b/sdk/constructive-cli/src/api/cli/commands/platform-managed-domain.ts @@ -24,6 +24,7 @@ const fieldSchema: FieldSchema = { domain: 'string', id: 'uuid', isWildcard: 'boolean', + publicPort: 'int', tlsReadyAt: 'string', tlsStatus: 'string', updatedAt: 'string', @@ -90,6 +91,7 @@ async function handleList(argv: Partial>, _prompter: Inq domain: true, id: true, isWildcard: true, + publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, @@ -128,6 +130,7 @@ async function handleFindFirst(argv: Partial>, _prompter domain: true, id: true, isWildcard: true, + publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, @@ -178,6 +181,7 @@ async function handleGet(argv: Partial>, prompter: Inqui domain: true, id: true, isWildcard: true, + publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, @@ -240,6 +244,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicPort', + message: 'publicPort', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'tlsReadyAt', @@ -291,6 +302,7 @@ async function handleCreate(argv: Partial>, prompter: In createdByPrincipal: cleanedData.createdByPrincipal, domain: cleanedData.domain, isWildcard: cleanedData.isWildcard, + publicPort: cleanedData.publicPort, tlsReadyAt: cleanedData.tlsReadyAt, tlsStatus: cleanedData.tlsStatus, updatedByPrincipal: cleanedData.updatedByPrincipal, @@ -306,6 +318,7 @@ async function handleCreate(argv: Partial>, prompter: In domain: true, id: true, isWildcard: true, + publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, @@ -374,6 +387,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicPort', + message: 'publicPort', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'tlsReadyAt', @@ -425,6 +445,7 @@ async function handleUpdate(argv: Partial>, prompter: In createdByPrincipal: cleanedData.createdByPrincipal, domain: cleanedData.domain, isWildcard: cleanedData.isWildcard, + publicPort: cleanedData.publicPort, tlsReadyAt: cleanedData.tlsReadyAt, tlsStatus: cleanedData.tlsStatus, updatedByPrincipal: cleanedData.updatedByPrincipal, @@ -440,6 +461,7 @@ async function handleUpdate(argv: Partial>, prompter: In domain: true, id: true, isWildcard: true, + publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/route-binding.ts b/sdk/constructive-cli/src/api/cli/commands/route-binding.ts deleted file mode 100644 index bb62d9067b..0000000000 --- a/sdk/constructive-cli/src/api/cli/commands/route-binding.ts +++ /dev/null @@ -1,497 +0,0 @@ -/** - * CLI commands for RouteBinding - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateRouteBindingInput, - RouteBindingPatch, - RouteBindingSelect, - RouteBindingFilter, - RouteBindingOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - domainId: 'uuid', - id: 'uuid', - isActive: 'boolean', - method: 'string', - path: 'string', - priority: 'int', - servingSiteId: 'uuid', - targetApiId: 'uuid', - targetBucketId: 'uuid', - targetFunctionId: 'uuid', - targetRedirectId: 'uuid', - targetServiceId: 'uuid', - targetSiteId: 'uuid', - updatedAt: 'string', -}; -const usage = - '\nroute-binding \n\nCommands:\n list List routeBinding records\n find-first Find first matching routeBinding record\n get Get a routeBinding by ID\n create Create a new routeBinding\n update Update an existing routeBinding\n delete Delete a routeBinding\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(argv); - if (!subcommand) { - const answer = await prompter.prompt(argv, [ - { - type: 'autocomplete', - name: 'subcommand', - message: 'What do you want to do?', - options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], - }, - ]); - return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); - } - return handleTableSubcommand(subcommand, newArgv, prompter); -}; -async function handleTableSubcommand( - subcommand: string, - argv: Partial>, - prompter: Inquirerer -) { - switch (subcommand) { - case 'list': - return handleList(argv, prompter); - case 'find-first': - return handleFindFirst(argv, prompter); - case 'get': - return handleGet(argv, prompter); - case 'create': - return handleCreate(argv, prompter); - case 'update': - return handleUpdate(argv, prompter); - case 'delete': - return handleDelete(argv, prompter); - default: - console.log(usage); - process.exit(1); - } -} -async function handleList(argv: Partial>, _prompter: Inquirerer) { - try { - const defaultSelect = { - domainId: true, - id: true, - isActive: true, - method: true, - path: true, - priority: true, - servingSiteId: true, - targetApiId: true, - targetBucketId: true, - targetFunctionId: true, - targetRedirectId: true, - targetServiceId: true, - targetSiteId: true, - updatedAt: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: RouteBindingSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.routeBinding.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to list records.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { - try { - const defaultSelect = { - domainId: true, - id: true, - isActive: true, - method: true, - path: true, - priority: true, - servingSiteId: true, - targetApiId: true, - targetBucketId: true, - targetFunctionId: true, - targetRedirectId: true, - targetServiceId: true, - targetSiteId: true, - updatedAt: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: RouteBindingSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.routeBinding.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to find record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleGet(argv: Partial>, prompter: Inquirerer) { - try { - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - ]); - const client = getClient(); - const result = await client.routeBinding - .findOne({ - id: answers.id as string, - select: { - domainId: true, - id: true, - isActive: true, - method: true, - path: true, - priority: true, - servingSiteId: true, - targetApiId: true, - targetBucketId: true, - targetFunctionId: true, - targetRedirectId: true, - targetServiceId: true, - targetSiteId: true, - updatedAt: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'domainId', - message: 'domainId', - required: true, - }, - { - type: 'boolean', - name: 'isActive', - message: 'isActive', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'method', - message: 'method', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'path', - message: 'path', - required: true, - }, - { - type: 'text', - name: 'priority', - message: 'priority', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'servingSiteId', - message: 'servingSiteId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'targetApiId', - message: 'targetApiId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'targetBucketId', - message: 'targetBucketId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'targetFunctionId', - message: 'targetFunctionId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'targetRedirectId', - message: 'targetRedirectId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'targetServiceId', - message: 'targetServiceId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'targetSiteId', - message: 'targetSiteId', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateRouteBindingInput['routeBinding']; - const client = getClient(); - const result = await client.routeBinding - .create({ - data: { - domainId: cleanedData.domainId, - isActive: cleanedData.isActive, - method: cleanedData.method, - path: cleanedData.path, - priority: cleanedData.priority, - servingSiteId: cleanedData.servingSiteId, - targetApiId: cleanedData.targetApiId, - targetBucketId: cleanedData.targetBucketId, - targetFunctionId: cleanedData.targetFunctionId, - targetRedirectId: cleanedData.targetRedirectId, - targetServiceId: cleanedData.targetServiceId, - targetSiteId: cleanedData.targetSiteId, - }, - select: { - domainId: true, - id: true, - isActive: true, - method: true, - path: true, - priority: true, - servingSiteId: true, - targetApiId: true, - targetBucketId: true, - targetFunctionId: true, - targetRedirectId: true, - targetServiceId: true, - targetSiteId: true, - updatedAt: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleUpdate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - { - type: 'text', - name: 'domainId', - message: 'domainId', - required: false, - }, - { - type: 'boolean', - name: 'isActive', - message: 'isActive', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'method', - message: 'method', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'path', - message: 'path', - required: false, - }, - { - type: 'text', - name: 'priority', - message: 'priority', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'servingSiteId', - message: 'servingSiteId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'targetApiId', - message: 'targetApiId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'targetBucketId', - message: 'targetBucketId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'targetFunctionId', - message: 'targetFunctionId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'targetRedirectId', - message: 'targetRedirectId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'targetServiceId', - message: 'targetServiceId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'targetSiteId', - message: 'targetSiteId', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as RouteBindingPatch; - const client = getClient(); - const result = await client.routeBinding - .update({ - where: { - id: answers.id as string, - }, - data: { - domainId: cleanedData.domainId, - isActive: cleanedData.isActive, - method: cleanedData.method, - path: cleanedData.path, - priority: cleanedData.priority, - servingSiteId: cleanedData.servingSiteId, - targetApiId: cleanedData.targetApiId, - targetBucketId: cleanedData.targetBucketId, - targetFunctionId: cleanedData.targetFunctionId, - targetRedirectId: cleanedData.targetRedirectId, - targetServiceId: cleanedData.targetServiceId, - targetSiteId: cleanedData.targetSiteId, - }, - select: { - domainId: true, - id: true, - isActive: true, - method: true, - path: true, - priority: true, - servingSiteId: true, - targetApiId: true, - targetBucketId: true, - targetFunctionId: true, - targetRedirectId: true, - targetServiceId: true, - targetSiteId: true, - updatedAt: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleDelete(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const client = getClient(); - const result = await client.routeBinding - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/api/cli/commands/unique-constraint.ts b/sdk/constructive-cli/src/api/cli/commands/unique-constraint.ts index 7c45f37692..2203e2e7c1 100644 --- a/sdk/constructive-cli/src/api/cli/commands/unique-constraint.ts +++ b/sdk/constructive-cli/src/api/cli/commands/unique-constraint.ts @@ -25,6 +25,7 @@ const fieldSchema: FieldSchema = { initiallyDeferred: 'boolean', isDeferrable: 'boolean', name: 'string', + nullsNotDistinct: 'boolean', smartTags: 'json', tableId: 'uuid', tags: 'string', @@ -92,6 +93,7 @@ async function handleList(argv: Partial>, _prompter: Inq initiallyDeferred: true, isDeferrable: true, name: true, + nullsNotDistinct: true, smartTags: true, tableId: true, tags: true, @@ -127,6 +129,7 @@ async function handleFindFirst(argv: Partial>, _prompter initiallyDeferred: true, isDeferrable: true, name: true, + nullsNotDistinct: true, smartTags: true, tableId: true, tags: true, @@ -174,6 +177,7 @@ async function handleGet(argv: Partial>, prompter: Inqui initiallyDeferred: true, isDeferrable: true, name: true, + nullsNotDistinct: true, smartTags: true, tableId: true, tags: true, @@ -243,6 +247,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'nullsNotDistinct', + message: 'nullsNotDistinct', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'smartTags', @@ -294,6 +305,7 @@ async function handleCreate(argv: Partial>, prompter: In initiallyDeferred: cleanedData.initiallyDeferred, isDeferrable: cleanedData.isDeferrable, name: cleanedData.name, + nullsNotDistinct: cleanedData.nullsNotDistinct, smartTags: cleanedData.smartTags, tableId: cleanedData.tableId, tags: cleanedData.tags, @@ -310,6 +322,7 @@ async function handleCreate(argv: Partial>, prompter: In initiallyDeferred: true, isDeferrable: true, name: true, + nullsNotDistinct: true, smartTags: true, tableId: true, tags: true, @@ -385,6 +398,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'nullsNotDistinct', + message: 'nullsNotDistinct', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'smartTags', @@ -436,6 +456,7 @@ async function handleUpdate(argv: Partial>, prompter: In initiallyDeferred: cleanedData.initiallyDeferred, isDeferrable: cleanedData.isDeferrable, name: cleanedData.name, + nullsNotDistinct: cleanedData.nullsNotDistinct, smartTags: cleanedData.smartTags, tableId: cleanedData.tableId, tags: cleanedData.tags, @@ -452,6 +473,7 @@ async function handleUpdate(argv: Partial>, prompter: In initiallyDeferred: true, isDeferrable: true, name: true, + nullsNotDistinct: true, smartTags: true, tableId: true, tags: true, diff --git a/sdk/constructive-cli/src/api/orm/README.md b/sdk/constructive-cli/src/api/orm/README.md index 2439802945..b6bcbc6efe 100644 --- a/sdk/constructive-cli/src/api/orm/README.md +++ b/sdk/constructive-cli/src/api/orm/README.md @@ -50,7 +50,6 @@ const db = createClient({ | `fullTextSearch` | findMany, findOne, create, update, delete | | `function` | findMany, findOne, create, update, delete | | `getSitePreviewsRecord` | findMany, findOne, create, update, delete | -| `hostnameBinding` | findMany, findOne, create, update, delete | | `identityProviderRegistry` | findMany, findOne, create, update, delete | | `index` | findMany, findOne, create, update, delete | | `listSuspendedDatabasesRecord` | findMany, findOne, create, update, delete | @@ -85,7 +84,6 @@ const db = createClient({ | `pubkeySetting` | findMany, findOne, create, update, delete | | `redirect` | findMany, findOne, create, update, delete | | `rlsSetting` | findMany, findOne, create, update, delete | -| `routeBinding` | findMany, findOne, create, update, delete | | `route` | findMany, findOne, create, update, delete | | `schema` | findMany, findOne, create, update, delete | | `schemaGrant` | findMany, findOne, create, update, delete | @@ -1319,44 +1317,6 @@ const updated = await db.getSitePreviewsRecord.update({ where: { id: '' }, const deleted = await db.getSitePreviewsRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.hostnameBinding` - -CRUD operations for HostnameBinding records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `domainId` | UUID | Yes | -| `hostname` | String | Yes | -| `id` | UUID | No | -| `isWildcard` | Boolean | Yes | -| `managed` | Boolean | Yes | -| `parentHostname` | String | Yes | -| `tlsSecretName` | String | Yes | -| `tlsStatus` | String | Yes | -| `updatedAt` | Datetime | No | -| `verificationStatus` | String | Yes | - -**Operations:** - -```typescript -// List all hostnameBinding records -const items = await db.hostnameBinding.findMany({ select: { domainId: true, hostname: true, id: true, isWildcard: true, managed: true, parentHostname: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true } }).execute(); - -// Get one by id -const item = await db.hostnameBinding.findOne({ id: '', select: { domainId: true, hostname: true, id: true, isWildcard: true, managed: true, parentHostname: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true } }).execute(); - -// Create -const created = await db.hostnameBinding.create({ data: { domainId: '', hostname: '', isWildcard: '', managed: '', parentHostname: '', tlsSecretName: '', tlsStatus: '', verificationStatus: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.hostnameBinding.update({ where: { id: '' }, data: { domainId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.hostnameBinding.delete({ where: { id: '' } }).execute(); -``` - ### `db.identityProviderRegistry` CRUD operations for IdentityProviderRegistry records. @@ -1489,6 +1449,7 @@ CRUD operations for ManagedDomain records. | `domain` | String | Yes | | `id` | UUID | No | | `isWildcard` | Boolean | Yes | +| `publicPort` | Int | Yes | | `tlsReadyAt` | Datetime | Yes | | `tlsStatus` | String | Yes | | `updatedAt` | Datetime | No | @@ -1500,13 +1461,13 @@ CRUD operations for ManagedDomain records. ```typescript // List all managedDomain records -const items = await db.managedDomain.findMany({ select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); +const items = await db.managedDomain.findMany({ select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Get one by id -const item = await db.managedDomain.findOne({ id: '', select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); +const item = await db.managedDomain.findOne({ id: '', select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Create -const created = await db.managedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', databaseId: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); +const created = await db.managedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', databaseId: '', domain: '', isWildcard: '', publicPort: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); // Update const updated = await db.managedDomain.update({ where: { id: '' }, data: { allowPublicUsage: '' }, select: { id: true } }).execute(); @@ -2075,6 +2036,7 @@ CRUD operations for PlatformManagedDomain records. | `domain` | String | Yes | | `id` | UUID | No | | `isWildcard` | Boolean | Yes | +| `publicPort` | Int | Yes | | `tlsReadyAt` | Datetime | Yes | | `tlsStatus` | String | Yes | | `updatedAt` | Datetime | No | @@ -2086,13 +2048,13 @@ CRUD operations for PlatformManagedDomain records. ```typescript // List all platformManagedDomain records -const items = await db.platformManagedDomain.findMany({ select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); +const items = await db.platformManagedDomain.findMany({ select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Get one by id -const item = await db.platformManagedDomain.findOne({ id: '', select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); +const item = await db.platformManagedDomain.findOne({ id: '', select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Create -const created = await db.platformManagedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); +const created = await db.platformManagedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', domain: '', isWildcard: '', publicPort: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformManagedDomain.update({ where: { id: '' }, data: { allowPublicUsage: '' }, select: { id: true } }).execute(); @@ -2680,48 +2642,6 @@ const updated = await db.rlsSetting.update({ where: { id: '' }, data: { au const deleted = await db.rlsSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.routeBinding` - -CRUD operations for RouteBinding records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `domainId` | UUID | Yes | -| `id` | UUID | No | -| `isActive` | Boolean | Yes | -| `method` | String | Yes | -| `path` | String | Yes | -| `priority` | Int | Yes | -| `servingSiteId` | UUID | Yes | -| `targetApiId` | UUID | Yes | -| `targetBucketId` | UUID | Yes | -| `targetFunctionId` | UUID | Yes | -| `targetRedirectId` | UUID | Yes | -| `targetServiceId` | UUID | Yes | -| `targetSiteId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all routeBinding records -const items = await db.routeBinding.findMany({ select: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.routeBinding.findOne({ id: '', select: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.routeBinding.create({ data: { domainId: '', isActive: '', method: '', path: '', priority: '', servingSiteId: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetRedirectId: '', targetServiceId: '', targetSiteId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.routeBinding.update({ where: { id: '' }, data: { domainId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.routeBinding.delete({ where: { id: '' } }).execute(); -``` - ### `db.route` CRUD operations for Route records. @@ -3527,6 +3447,7 @@ CRUD operations for UniqueConstraint records. | `initiallyDeferred` | Boolean | Yes | | `isDeferrable` | Boolean | Yes | | `name` | String | Yes | +| `nullsNotDistinct` | Boolean | Yes | | `smartTags` | JSON | Yes | | `tableId` | UUID | Yes | | `tags` | String | Yes | @@ -3538,13 +3459,13 @@ CRUD operations for UniqueConstraint records. ```typescript // List all uniqueConstraint records -const items = await db.uniqueConstraint.findMany({ select: { category: true, createdAt: true, databaseId: true, description: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, withoutOverlaps: true } }).execute(); +const items = await db.uniqueConstraint.findMany({ select: { category: true, createdAt: true, databaseId: true, description: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, nullsNotDistinct: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, withoutOverlaps: true } }).execute(); // Get one by id -const item = await db.uniqueConstraint.findOne({ id: '', select: { category: true, createdAt: true, databaseId: true, description: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, withoutOverlaps: true } }).execute(); +const item = await db.uniqueConstraint.findOne({ id: '', select: { category: true, createdAt: true, databaseId: true, description: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, nullsNotDistinct: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, withoutOverlaps: true } }).execute(); // Create -const created = await db.uniqueConstraint.create({ data: { category: '', databaseId: '', description: '', fieldIds: '', initiallyDeferred: '', isDeferrable: '', name: '', smartTags: '', tableId: '', tags: '', type: '', withoutOverlaps: '' }, select: { id: true } }).execute(); +const created = await db.uniqueConstraint.create({ data: { category: '', databaseId: '', description: '', fieldIds: '', initiallyDeferred: '', isDeferrable: '', name: '', nullsNotDistinct: '', smartTags: '', tableId: '', tags: '', type: '', withoutOverlaps: '' }, select: { id: true } }).execute(); // Update const updated = await db.uniqueConstraint.update({ where: { id: '' }, data: { category: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-cli/src/api/orm/index.ts b/sdk/constructive-cli/src/api/orm/index.ts index 444db1275d..038b8785ac 100644 --- a/sdk/constructive-cli/src/api/orm/index.ts +++ b/sdk/constructive-cli/src/api/orm/index.ts @@ -34,7 +34,6 @@ import { ForeignKeyConstraintModel } from './models/foreignKeyConstraint'; import { FullTextSearchModel } from './models/fullTextSearch'; import { FunctionModel } from './models/function'; import { GetSitePreviewsRecordModel } from './models/getSitePreviewsRecord'; -import { HostnameBindingModel } from './models/hostnameBinding'; import { IdentityProviderRegistryModel } from './models/identityProviderRegistry'; import { IndexModel } from './models/index'; import { ListSuspendedDatabasesRecordModel } from './models/listSuspendedDatabasesRecord'; @@ -69,7 +68,6 @@ import { PrimaryKeyConstraintModel } from './models/primaryKeyConstraint'; import { PubkeySettingModel } from './models/pubkeySetting'; import { RedirectModel } from './models/redirect'; import { RlsSettingModel } from './models/rlsSetting'; -import { RouteBindingModel } from './models/routeBinding'; import { RouteModel } from './models/route'; import { SchemaModel } from './models/schema'; import { SchemaGrantModel } from './models/schemaGrant'; @@ -161,7 +159,6 @@ export function createClient(config: OrmClientConfig) { fullTextSearch: new FullTextSearchModel(client), function: new FunctionModel(client), getSitePreviewsRecord: new GetSitePreviewsRecordModel(client), - hostnameBinding: new HostnameBindingModel(client), identityProviderRegistry: new IdentityProviderRegistryModel(client), index: new IndexModel(client), listSuspendedDatabasesRecord: new ListSuspendedDatabasesRecordModel(client), @@ -196,7 +193,6 @@ export function createClient(config: OrmClientConfig) { pubkeySetting: new PubkeySettingModel(client), redirect: new RedirectModel(client), rlsSetting: new RlsSettingModel(client), - routeBinding: new RouteBindingModel(client), route: new RouteModel(client), schema: new SchemaModel(client), schemaGrant: new SchemaGrantModel(client), diff --git a/sdk/constructive-cli/src/api/orm/input-types.ts b/sdk/constructive-cli/src/api/orm/input-types.ts index ff96fdb8a4..d9fd64ac28 100644 --- a/sdk/constructive-cli/src/api/orm/input-types.ts +++ b/sdk/constructive-cli/src/api/orm/input-types.ts @@ -824,28 +824,6 @@ export interface GetSitePreviewsRecord { commitId?: string | null; name?: string | null; } -/** Compiled hostname index maintained by domain sync triggers; read only through the resolver */ -export interface HostnameBinding { - /** Domain row this binding was compiled from */ - domainId?: string | null; - /** Lowercase hostname (exact or *.parent wildcard) */ - hostname?: string | null; - id: string; - /** Whether this binding is a wildcard claim */ - isWildcard?: boolean | null; - /** Whether the platform drives this hostname's lifecycle */ - managed?: boolean | null; - /** Parent hostname a wildcard binding covers */ - parentHostname?: string | null; - /** TLS secret name compiled from the domain row */ - tlsSecretName?: string | null; - /** Certificate lifecycle state compiled from the domain row */ - tlsStatus?: string | null; - /** When this binding was last recompiled */ - updatedAt?: string | null; - /** Ownership verification state compiled from the domain row */ - verificationStatus?: string | null; -} export interface IdentityProviderRegistry { authorizationUrl?: string | null; displayName?: string | null; @@ -900,6 +878,8 @@ export interface ManagedDomain { id: string; /** Whether this managed hostname is a *.parent wildcard */ isWildcard?: boolean | null; + /** Port the edge serves this hostname on when it is not the scheme default; NULL on a standard edge */ + publicPort?: number | null; /** When TLS last became ready */ tlsReadyAt?: string | null; /** TLS provisioning state for this managed hostname */ @@ -1215,6 +1195,8 @@ export interface PlatformManagedDomain { id: string; /** Whether this managed hostname is a *.parent wildcard */ isWildcard?: boolean | null; + /** Port the edge serves this hostname on when it is not the scheme default; NULL on a standard edge */ + publicPort?: number | null; /** When TLS last became ready */ tlsReadyAt?: string | null; /** TLS provisioning state for this managed hostname */ @@ -1518,36 +1500,6 @@ export interface RlsSetting { roleSchemaId?: string | null; updatedAt?: string | null; } -/** Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver */ -export interface RouteBinding { - /** Domain row the source route binds */ - domainId?: string | null; - id: string; - /** Active flag compiled from the source route */ - isActive?: boolean | null; - /** HTTP method this binding matches; NULL matches any method */ - method?: string | null; - /** Path prefix this binding matches */ - path?: string | null; - /** Priority compiled from the source route */ - priority?: number | null; - /** Site whose surface the source route serves; NULL when it serves no site */ - servingSiteId?: string | null; - /** Api catalog row the source route targets */ - targetApiId?: string | null; - /** Bucket catalog row the source route targets */ - targetBucketId?: string | null; - /** Function catalog row the source route targets */ - targetFunctionId?: string | null; - /** Redirect catalog row the source route targets */ - targetRedirectId?: string | null; - /** Resource catalog row (a Service resource) the source route targets */ - targetServiceId?: string | null; - /** Site catalog row the source route targets */ - targetSiteId?: string | null; - /** When this binding was last recompiled */ - updatedAt?: string | null; -} /** Routes binding a domain hostname and path to a typed catalog target */ export interface Route { /** Whether this route answers callers with no identity. Requires the target function to declare anonymous_callable; default false = an identity is required */ @@ -1917,6 +1869,7 @@ export interface UniqueConstraint { initiallyDeferred?: boolean | null; isDeferrable?: boolean | null; name?: string | null; + nullsNotDistinct?: boolean | null; smartTags?: Record | null; tableId?: string | null; tags?: string[] | null; @@ -2184,7 +2137,6 @@ export interface FunctionRelations { triggers?: ConnectionResult; } export interface GetSitePreviewsRecordRelations {} -export interface HostnameBindingRelations {} export interface IdentityProviderRegistryRelations {} export interface IndexRelations { database?: Database | null; @@ -2317,7 +2269,6 @@ export interface RlsSettingRelations { currentUserAgentFunction?: Function | null; roleSchema?: Schema | null; } -export interface RouteBindingRelations {} export interface RouteRelations { domain?: Domain | null; servingSite?: Site | null; @@ -2511,7 +2462,6 @@ export type FullTextSearchWithRelations = FullTextSearch & FullTextSearchRelatio export type FunctionWithRelations = Function & FunctionRelations; export type GetSitePreviewsRecordWithRelations = GetSitePreviewsRecord & GetSitePreviewsRecordRelations; -export type HostnameBindingWithRelations = HostnameBinding & HostnameBindingRelations; export type IdentityProviderRegistryWithRelations = IdentityProviderRegistry & IdentityProviderRegistryRelations; export type IndexWithRelations = Index & IndexRelations; @@ -2559,7 +2509,6 @@ export type PrimaryKeyConstraintWithRelations = PrimaryKeyConstraint & export type PubkeySettingWithRelations = PubkeySetting & PubkeySettingRelations; export type RedirectWithRelations = Redirect & RedirectRelations; export type RlsSettingWithRelations = RlsSetting & RlsSettingRelations; -export type RouteBindingWithRelations = RouteBinding & RouteBindingRelations; export type RouteWithRelations = Route & RouteRelations; export type SchemaWithRelations = Schema & SchemaRelations; export type SchemaGrantWithRelations = SchemaGrant & SchemaGrantRelations; @@ -3473,18 +3422,6 @@ export type GetSitePreviewsRecordSelect = { commitId?: boolean; name?: boolean; }; -export type HostnameBindingSelect = { - domainId?: boolean; - hostname?: boolean; - id?: boolean; - isWildcard?: boolean; - managed?: boolean; - parentHostname?: boolean; - tlsSecretName?: boolean; - tlsStatus?: boolean; - updatedAt?: boolean; - verificationStatus?: boolean; -}; export type IdentityProviderRegistrySelect = { authorizationUrl?: boolean; displayName?: boolean; @@ -3538,6 +3475,7 @@ export type ManagedDomainSelect = { domain?: boolean; id?: boolean; isWildcard?: boolean; + publicPort?: boolean; tlsReadyAt?: boolean; tlsStatus?: boolean; updatedAt?: boolean; @@ -3830,6 +3768,7 @@ export type PlatformManagedDomainSelect = { domain?: boolean; id?: boolean; isWildcard?: boolean; + publicPort?: boolean; tlsReadyAt?: boolean; tlsStatus?: boolean; updatedAt?: boolean; @@ -4176,22 +4115,6 @@ export type RlsSettingSelect = { select: SchemaSelect; }; }; -export type RouteBindingSelect = { - domainId?: boolean; - id?: boolean; - isActive?: boolean; - method?: boolean; - path?: boolean; - priority?: boolean; - servingSiteId?: boolean; - targetApiId?: boolean; - targetBucketId?: boolean; - targetFunctionId?: boolean; - targetRedirectId?: boolean; - targetServiceId?: boolean; - targetSiteId?: boolean; - updatedAt?: boolean; -}; export type RouteSelect = { anonymous?: boolean; config?: boolean; @@ -4821,6 +4744,7 @@ export type UniqueConstraintSelect = { initiallyDeferred?: boolean; isDeferrable?: boolean; name?: boolean; + nullsNotDistinct?: boolean; smartTags?: boolean; tableId?: boolean; tags?: boolean; @@ -6323,34 +6247,6 @@ export interface GetSitePreviewsRecordFilter { or?: GetSitePreviewsRecordFilter[]; not?: GetSitePreviewsRecordFilter; } -export interface HostnameBindingFilter { - /** Checks for all expressions in this list. */ - and?: HostnameBindingFilter[]; - /** Filter by the object’s `domainId` field. */ - domainId?: UUIDFilter; - /** Filter by the object’s `hostname` field. */ - hostname?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isWildcard` field. */ - isWildcard?: BooleanFilter; - /** Filter by the object’s `managed` field. */ - managed?: BooleanFilter; - /** Negates the expression. */ - not?: HostnameBindingFilter; - /** Checks for any expressions in this list. */ - or?: HostnameBindingFilter[]; - /** Filter by the object’s `parentHostname` field. */ - parentHostname?: StringFilter; - /** Filter by the object’s `tlsSecretName` field. */ - tlsSecretName?: StringFilter; - /** Filter by the object’s `tlsStatus` field. */ - tlsStatus?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `verificationStatus` field. */ - verificationStatus?: StringFilter; -} export interface IdentityProviderRegistryFilter { /** Checks for all expressions in this list. */ and?: IdentityProviderRegistryFilter[]; @@ -6466,6 +6362,8 @@ export interface ManagedDomainFilter { not?: ManagedDomainFilter; /** Checks for any expressions in this list. */ or?: ManagedDomainFilter[]; + /** Filter by the object’s `publicPort` field. */ + publicPort?: IntFilter; /** Filter by the object’s `tlsReadyAt` field. */ tlsReadyAt?: DatetimeFilter; /** Filter by the object’s `tlsStatus` field. */ @@ -6995,6 +6893,8 @@ export interface PlatformManagedDomainFilter { platformDomainVerificationsByManagedDomainId?: PlatformManagedDomainToManyPlatformDomainVerificationFilter; /** `platformDomainVerificationsByManagedDomainId` exist. */ platformDomainVerificationsByManagedDomainIdExist?: boolean; + /** Filter by the object’s `publicPort` field. */ + publicPort?: IntFilter; /** Filter by the object’s `tlsReadyAt` field. */ tlsReadyAt?: DatetimeFilter; /** Filter by the object’s `tlsStatus` field. */ @@ -7574,42 +7474,6 @@ export interface RlsSettingFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface RouteBindingFilter { - /** Checks for all expressions in this list. */ - and?: RouteBindingFilter[]; - /** Filter by the object’s `domainId` field. */ - domainId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `method` field. */ - method?: StringFilter; - /** Negates the expression. */ - not?: RouteBindingFilter; - /** Checks for any expressions in this list. */ - or?: RouteBindingFilter[]; - /** Filter by the object’s `path` field. */ - path?: StringFilter; - /** Filter by the object’s `priority` field. */ - priority?: IntFilter; - /** Filter by the object’s `servingSiteId` field. */ - servingSiteId?: UUIDFilter; - /** Filter by the object’s `targetApiId` field. */ - targetApiId?: UUIDFilter; - /** Filter by the object’s `targetBucketId` field. */ - targetBucketId?: UUIDFilter; - /** Filter by the object’s `targetFunctionId` field. */ - targetFunctionId?: UUIDFilter; - /** Filter by the object’s `targetRedirectId` field. */ - targetRedirectId?: UUIDFilter; - /** Filter by the object’s `targetServiceId` field. */ - targetServiceId?: UUIDFilter; - /** Filter by the object’s `targetSiteId` field. */ - targetSiteId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} export interface RouteFilter { /** Checks for all expressions in this list. */ and?: RouteFilter[]; @@ -8503,6 +8367,8 @@ export interface UniqueConstraintFilter { name?: StringFilter; /** Negates the expression. */ not?: UniqueConstraintFilter; + /** Filter by the object’s `nullsNotDistinct` field. */ + nullsNotDistinct?: BooleanFilter; /** Checks for any expressions in this list. */ or?: UniqueConstraintFilter[]; /** Filter by the object’s `smartTags` field. */ @@ -9671,30 +9537,6 @@ export type GetSitePreviewsRecordsOrderBy = | 'COMMIT_ID_DESC' | 'NAME_ASC' | 'NAME_DESC'; -export type HostnameBindingOrderBy = - | 'DOMAIN_ID_ASC' - | 'DOMAIN_ID_DESC' - | 'HOSTNAME_ASC' - | 'HOSTNAME_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_WILDCARD_ASC' - | 'IS_WILDCARD_DESC' - | 'MANAGED_ASC' - | 'MANAGED_DESC' - | 'NATURAL' - | 'PARENT_HOSTNAME_ASC' - | 'PARENT_HOSTNAME_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'TLS_SECRET_NAME_ASC' - | 'TLS_SECRET_NAME_DESC' - | 'TLS_STATUS_ASC' - | 'TLS_STATUS_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'VERIFICATION_STATUS_ASC' - | 'VERIFICATION_STATUS_DESC'; export type IdentityProviderRegistryOrderBy = | 'AUTHORIZATION_URL_ASC' | 'AUTHORIZATION_URL_DESC' @@ -9791,6 +9633,8 @@ export type ManagedDomainOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'PUBLIC_PORT_ASC' + | 'PUBLIC_PORT_DESC' | 'TLS_READY_AT_ASC' | 'TLS_READY_AT_DESC' | 'TLS_STATUS_ASC' @@ -10183,6 +10027,8 @@ export type PlatformManagedDomainOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'PUBLIC_PORT_ASC' + | 'PUBLIC_PORT_DESC' | 'TLS_READY_AT_ASC' | 'TLS_READY_AT_DESC' | 'TLS_STATUS_ASC' @@ -10573,38 +10419,6 @@ export type RlsSettingOrderBy = | 'ROLE_SCHEMA_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type RouteBindingOrderBy = - | 'DOMAIN_ID_ASC' - | 'DOMAIN_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'METHOD_ASC' - | 'METHOD_DESC' - | 'NATURAL' - | 'PATH_ASC' - | 'PATH_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PRIORITY_ASC' - | 'PRIORITY_DESC' - | 'SERVING_SITE_ID_ASC' - | 'SERVING_SITE_ID_DESC' - | 'TARGET_API_ID_ASC' - | 'TARGET_API_ID_DESC' - | 'TARGET_BUCKET_ID_ASC' - | 'TARGET_BUCKET_ID_DESC' - | 'TARGET_FUNCTION_ID_ASC' - | 'TARGET_FUNCTION_ID_DESC' - | 'TARGET_REDIRECT_ID_ASC' - | 'TARGET_REDIRECT_ID_DESC' - | 'TARGET_SERVICE_ID_ASC' - | 'TARGET_SERVICE_ID_DESC' - | 'TARGET_SITE_ID_ASC' - | 'TARGET_SITE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type RouteOrderBy = | 'ANONYMOUS_ASC' | 'ANONYMOUS_DESC' @@ -11159,6 +10973,8 @@ export type UniqueConstraintOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' + | 'NULLS_NOT_DISTINCT_ASC' + | 'NULLS_NOT_DISTINCT_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SMART_TAGS_ASC' @@ -12418,38 +12234,6 @@ export interface DeleteGetSitePreviewsRecordInput { clientMutationId?: string; id: string; } -export interface CreateHostnameBindingInput { - clientMutationId?: string; - hostnameBinding: { - domainId: string; - hostname: string; - isWildcard?: boolean; - managed?: boolean; - parentHostname?: string; - tlsSecretName?: string; - tlsStatus?: string; - verificationStatus?: string; - }; -} -export interface HostnameBindingPatch { - domainId?: string | null; - hostname?: string | null; - isWildcard?: boolean | null; - managed?: boolean | null; - parentHostname?: string | null; - tlsSecretName?: string | null; - tlsStatus?: string | null; - verificationStatus?: string | null; -} -export interface UpdateHostnameBindingInput { - clientMutationId?: string; - id: string; - hostnameBindingPatch: HostnameBindingPatch; -} -export interface DeleteHostnameBindingInput { - clientMutationId?: string; - id: string; -} export interface CreateIdentityProviderRegistryInput { clientMutationId?: string; identityProviderRegistry: { @@ -12562,6 +12346,7 @@ export interface CreateManagedDomainInput { databaseId: string; domain: string; isWildcard?: boolean; + publicPort?: number; tlsReadyAt?: string; tlsStatus?: string; updatedByPrincipal?: string; @@ -12577,6 +12362,7 @@ export interface ManagedDomainPatch { databaseId?: string | null; domain?: string | null; isWildcard?: boolean | null; + publicPort?: number | null; tlsReadyAt?: string | null; tlsStatus?: string | null; updatedByPrincipal?: string | null; @@ -13057,6 +12843,7 @@ export interface CreatePlatformManagedDomainInput { createdByPrincipal?: string; domain: string; isWildcard?: boolean; + publicPort?: number; tlsReadyAt?: string; tlsStatus?: string; updatedByPrincipal?: string; @@ -13071,6 +12858,7 @@ export interface PlatformManagedDomainPatch { createdByPrincipal?: string | null; domain?: string | null; isWildcard?: boolean | null; + publicPort?: number | null; tlsReadyAt?: string | null; tlsStatus?: string | null; updatedByPrincipal?: string | null; @@ -13558,46 +13346,6 @@ export interface DeleteRlsSettingInput { clientMutationId?: string; id: string; } -export interface CreateRouteBindingInput { - clientMutationId?: string; - routeBinding: { - domainId: string; - isActive?: boolean; - method?: string; - path: string; - priority?: number; - servingSiteId?: string; - targetApiId?: string; - targetBucketId?: string; - targetFunctionId?: string; - targetRedirectId?: string; - targetServiceId?: string; - targetSiteId?: string; - }; -} -export interface RouteBindingPatch { - domainId?: string | null; - isActive?: boolean | null; - method?: string | null; - path?: string | null; - priority?: number | null; - servingSiteId?: string | null; - targetApiId?: string | null; - targetBucketId?: string | null; - targetFunctionId?: string | null; - targetRedirectId?: string | null; - targetServiceId?: string | null; - targetSiteId?: string | null; -} -export interface UpdateRouteBindingInput { - clientMutationId?: string; - id: string; - routeBindingPatch: RouteBindingPatch; -} -export interface DeleteRouteBindingInput { - clientMutationId?: string; - id: string; -} export interface CreateRouteInput { clientMutationId?: string; route: { @@ -14270,6 +14018,7 @@ export interface CreateUniqueConstraintInput { initiallyDeferred?: boolean; isDeferrable?: boolean; name?: string; + nullsNotDistinct?: boolean; smartTags?: Record; tableId: string; tags?: string[]; @@ -14285,6 +14034,7 @@ export interface UniqueConstraintPatch { initiallyDeferred?: boolean | null; isDeferrable?: boolean | null; name?: string | null; + nullsNotDistinct?: boolean | null; smartTags?: Record | null; tableId?: string | null; tags?: string[] | null; @@ -16435,28 +16185,6 @@ export interface FunctionInput { tags?: string[]; volatility?: string; } -/** An input for mutations affecting `HostnameBinding` */ -export interface HostnameBindingInput { - /** Domain row this binding was compiled from */ - domainId: string; - /** Lowercase hostname (exact or *.parent wildcard) */ - hostname: string; - id?: string; - /** Whether this binding is a wildcard claim */ - isWildcard?: boolean; - /** Whether the platform drives this hostname's lifecycle */ - managed?: boolean; - /** Parent hostname a wildcard binding covers */ - parentHostname?: string; - /** TLS secret name compiled from the domain row */ - tlsSecretName?: string; - /** Certificate lifecycle state compiled from the domain row */ - tlsStatus?: string; - /** When this binding was last recompiled */ - updatedAt?: string; - /** Ownership verification state compiled from the domain row */ - verificationStatus?: string; -} /** An input for mutations affecting `IdentityProviderRegistry` */ export interface IdentityProviderRegistryInput { authorizationUrl?: string; @@ -16506,6 +16234,8 @@ export interface ManagedDomainInput { id?: string; /** Whether this managed hostname is a *.parent wildcard */ isWildcard?: boolean; + /** Port the edge serves this hostname on when it is not the scheme default; NULL on a standard edge */ + publicPort?: number; /** When TLS last became ready */ tlsReadyAt?: string; /** TLS provisioning state for this managed hostname */ @@ -16819,6 +16549,8 @@ export interface PlatformManagedDomainInput { id?: string; /** Whether this managed hostname is a *.parent wildcard */ isWildcard?: boolean; + /** Port the edge serves this hostname on when it is not the scheme default; NULL on a standard edge */ + publicPort?: number; /** When TLS last became ready */ tlsReadyAt?: string; /** TLS provisioning state for this managed hostname */ @@ -17124,36 +16856,6 @@ export interface RlsSettingInput { roleSchemaId?: string; updatedAt?: string; } -/** An input for mutations affecting `RouteBinding` */ -export interface RouteBindingInput { - /** Domain row the source route binds */ - domainId: string; - id?: string; - /** Active flag compiled from the source route */ - isActive?: boolean; - /** HTTP method this binding matches; NULL matches any method */ - method?: string; - /** Path prefix this binding matches */ - path: string; - /** Priority compiled from the source route */ - priority?: number; - /** Site whose surface the source route serves; NULL when it serves no site */ - servingSiteId?: string; - /** Api catalog row the source route targets */ - targetApiId?: string; - /** Bucket catalog row the source route targets */ - targetBucketId?: string; - /** Function catalog row the source route targets */ - targetFunctionId?: string; - /** Redirect catalog row the source route targets */ - targetRedirectId?: string; - /** Resource catalog row (a Service resource) the source route targets */ - targetServiceId?: string; - /** Site catalog row the source route targets */ - targetSiteId?: string; - /** When this binding was last recompiled */ - updatedAt?: string; -} /** An input for mutations affecting `Route` */ export interface RouteInput { /** Whether this route answers callers with no identity. Requires the target function to declare anonymous_callable; default false = an identity is required */ @@ -17518,6 +17220,7 @@ export interface UniqueConstraintInput { initiallyDeferred?: boolean; isDeferrable?: boolean; name?: string; + nullsNotDistinct?: boolean; smartTags?: Record; tableId: string; tags?: string[]; @@ -19002,6 +18705,8 @@ export interface UniqueConstraintFilter { name?: StringFilter; /** Negates the expression. */ not?: UniqueConstraintFilter; + /** Filter by the object’s `nullsNotDistinct` field. */ + nullsNotDistinct?: BooleanFilter; /** Checks for any expressions in this list. */ or?: UniqueConstraintFilter[]; /** Filter by the object’s `smartTags` field. */ @@ -20540,6 +20245,8 @@ export interface ManagedDomainFilter { not?: ManagedDomainFilter; /** Checks for any expressions in this list. */ or?: ManagedDomainFilter[]; + /** Filter by the object’s `publicPort` field. */ + publicPort?: IntFilter; /** Filter by the object’s `tlsReadyAt` field. */ tlsReadyAt?: DatetimeFilter; /** Filter by the object’s `tlsStatus` field. */ @@ -20832,6 +20539,8 @@ export interface PlatformManagedDomainFilter { platformDomainVerificationsByManagedDomainId?: PlatformManagedDomainToManyPlatformDomainVerificationFilter; /** `platformDomainVerificationsByManagedDomainId` exist. */ platformDomainVerificationsByManagedDomainIdExist?: boolean; + /** Filter by the object’s `publicPort` field. */ + publicPort?: IntFilter; /** Filter by the object’s `tlsReadyAt` field. */ tlsReadyAt?: DatetimeFilter; /** Filter by the object’s `tlsStatus` field. */ @@ -22886,51 +22595,6 @@ export type DeleteFunctionPayloadSelect = { select: FunctionEdgeSelect; }; }; -export interface CreateHostnameBindingPayload { - clientMutationId?: string | null; - /** The `HostnameBinding` that was created by this mutation. */ - hostnameBinding?: HostnameBinding | null; - hostnameBindingEdge?: HostnameBindingEdge | null; -} -export type CreateHostnameBindingPayloadSelect = { - clientMutationId?: boolean; - hostnameBinding?: { - select: HostnameBindingSelect; - }; - hostnameBindingEdge?: { - select: HostnameBindingEdgeSelect; - }; -}; -export interface UpdateHostnameBindingPayload { - clientMutationId?: string | null; - /** The `HostnameBinding` that was updated by this mutation. */ - hostnameBinding?: HostnameBinding | null; - hostnameBindingEdge?: HostnameBindingEdge | null; -} -export type UpdateHostnameBindingPayloadSelect = { - clientMutationId?: boolean; - hostnameBinding?: { - select: HostnameBindingSelect; - }; - hostnameBindingEdge?: { - select: HostnameBindingEdgeSelect; - }; -}; -export interface DeleteHostnameBindingPayload { - clientMutationId?: string | null; - /** The `HostnameBinding` that was deleted by this mutation. */ - hostnameBinding?: HostnameBinding | null; - hostnameBindingEdge?: HostnameBindingEdge | null; -} -export type DeleteHostnameBindingPayloadSelect = { - clientMutationId?: boolean; - hostnameBinding?: { - select: HostnameBindingSelect; - }; - hostnameBindingEdge?: { - select: HostnameBindingEdgeSelect; - }; -}; export interface CreateIdentityProviderRegistryPayload { clientMutationId?: string | null; /** The `IdentityProviderRegistry` that was created by this mutation. */ @@ -24371,51 +24035,6 @@ export type DeleteRlsSettingPayloadSelect = { select: RlsSettingEdgeSelect; }; }; -export interface CreateRouteBindingPayload { - clientMutationId?: string | null; - /** The `RouteBinding` that was created by this mutation. */ - routeBinding?: RouteBinding | null; - routeBindingEdge?: RouteBindingEdge | null; -} -export type CreateRouteBindingPayloadSelect = { - clientMutationId?: boolean; - routeBinding?: { - select: RouteBindingSelect; - }; - routeBindingEdge?: { - select: RouteBindingEdgeSelect; - }; -}; -export interface UpdateRouteBindingPayload { - clientMutationId?: string | null; - /** The `RouteBinding` that was updated by this mutation. */ - routeBinding?: RouteBinding | null; - routeBindingEdge?: RouteBindingEdge | null; -} -export type UpdateRouteBindingPayloadSelect = { - clientMutationId?: boolean; - routeBinding?: { - select: RouteBindingSelect; - }; - routeBindingEdge?: { - select: RouteBindingEdgeSelect; - }; -}; -export interface DeleteRouteBindingPayload { - clientMutationId?: string | null; - /** The `RouteBinding` that was deleted by this mutation. */ - routeBinding?: RouteBinding | null; - routeBindingEdge?: RouteBindingEdge | null; -} -export type DeleteRouteBindingPayloadSelect = { - clientMutationId?: boolean; - routeBinding?: { - select: RouteBindingSelect; - }; - routeBindingEdge?: { - select: RouteBindingEdgeSelect; - }; -}; export interface CreateRoutePayload { clientMutationId?: string | null; /** The `Route` that was created by this mutation. */ @@ -26090,18 +25709,6 @@ export type FunctionEdgeSelect = { select: FunctionSelect; }; }; -/** A `HostnameBinding` edge in the connection. */ -export interface HostnameBindingEdge { - cursor?: string | null; - /** The `HostnameBinding` at the end of the edge. */ - node?: HostnameBinding | null; -} -export type HostnameBindingEdgeSelect = { - cursor?: boolean; - node?: { - select: HostnameBindingSelect; - }; -}; /** A `IdentityProviderRegistry` edge in the connection. */ export interface IdentityProviderRegistryEdge { cursor?: string | null; @@ -26462,18 +26069,6 @@ export type RlsSettingEdgeSelect = { select: RlsSettingSelect; }; }; -/** A `RouteBinding` edge in the connection. */ -export interface RouteBindingEdge { - cursor?: string | null; - /** The `RouteBinding` at the end of the edge. */ - node?: RouteBinding | null; -} -export type RouteBindingEdgeSelect = { - cursor?: boolean; - node?: { - select: RouteBindingSelect; - }; -}; /** A `Schema` edge in the connection. */ export interface SchemaEdge { cursor?: string | null; diff --git a/sdk/constructive-cli/src/api/orm/models/hostnameBinding.ts b/sdk/constructive-cli/src/api/orm/models/hostnameBinding.ts deleted file mode 100644 index f720f177ad..0000000000 --- a/sdk/constructive-cli/src/api/orm/models/hostnameBinding.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * HostnameBinding model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - HostnameBinding, - HostnameBindingWithRelations, - HostnameBindingSelect, - HostnameBindingFilter, - HostnameBindingOrderBy, - CreateHostnameBindingInput, - UpdateHostnameBindingInput, - HostnameBindingPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class HostnameBindingModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - hostnameBindings: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'HostnameBinding', - 'hostnameBindings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'HostnameBindingFilter', - 'HostnameBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'HostnameBinding', - fieldName: 'hostnameBindings', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - hostnameBinding: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'HostnameBinding', - 'hostnameBindings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'HostnameBindingFilter', - 'HostnameBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'HostnameBinding', - fieldName: 'hostnameBinding', - document, - variables, - transform: (data: { - hostnameBindings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - hostnameBinding: data.hostnameBindings?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - hostnameBinding: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'HostnameBinding', - 'hostnameBindings', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'HostnameBindingFilter', - 'HostnameBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'HostnameBinding', - fieldName: 'hostnameBinding', - document, - variables, - transform: (data: { - hostnameBindings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - hostnameBinding: data.hostnameBindings?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createHostnameBinding: { - hostnameBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'HostnameBinding', - 'createHostnameBinding', - 'hostnameBinding', - args.select, - args.data, - 'CreateHostnameBindingInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'HostnameBinding', - fieldName: 'createHostnameBinding', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - HostnameBindingPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateHostnameBinding: { - hostnameBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'HostnameBinding', - 'updateHostnameBinding', - 'hostnameBinding', - args.select, - args.where.id, - args.data, - 'UpdateHostnameBindingInput', - 'id', - 'hostnameBindingPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'HostnameBinding', - fieldName: 'updateHostnameBinding', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteHostnameBinding: { - hostnameBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'HostnameBinding', - 'deleteHostnameBinding', - 'hostnameBinding', - { - id: args.where.id, - }, - 'DeleteHostnameBindingInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'HostnameBinding', - fieldName: 'deleteHostnameBinding', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/api/orm/models/index.ts b/sdk/constructive-cli/src/api/orm/models/index.ts index 0ef42de592..207f507c84 100644 --- a/sdk/constructive-cli/src/api/orm/models/index.ts +++ b/sdk/constructive-cli/src/api/orm/models/index.ts @@ -32,7 +32,6 @@ export { ForeignKeyConstraintModel } from './foreignKeyConstraint'; export { FullTextSearchModel } from './fullTextSearch'; export { FunctionModel } from './function'; export { GetSitePreviewsRecordModel } from './getSitePreviewsRecord'; -export { HostnameBindingModel } from './hostnameBinding'; export { IdentityProviderRegistryModel } from './identityProviderRegistry'; export { IndexModel } from './indexModel'; export { ListSuspendedDatabasesRecordModel } from './listSuspendedDatabasesRecord'; @@ -67,7 +66,6 @@ export { PrimaryKeyConstraintModel } from './primaryKeyConstraint'; export { PubkeySettingModel } from './pubkeySetting'; export { RedirectModel } from './redirect'; export { RlsSettingModel } from './rlsSetting'; -export { RouteBindingModel } from './routeBinding'; export { RouteModel } from './route'; export { SchemaModel } from './schema'; export { SchemaGrantModel } from './schemaGrant'; diff --git a/sdk/constructive-cli/src/api/orm/models/routeBinding.ts b/sdk/constructive-cli/src/api/orm/models/routeBinding.ts deleted file mode 100644 index 3389ee7e37..0000000000 --- a/sdk/constructive-cli/src/api/orm/models/routeBinding.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * RouteBinding model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - RouteBinding, - RouteBindingWithRelations, - RouteBindingSelect, - RouteBindingFilter, - RouteBindingOrderBy, - CreateRouteBindingInput, - UpdateRouteBindingInput, - RouteBindingPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class RouteBindingModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - routeBindings: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'RouteBinding', - 'routeBindings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'RouteBindingFilter', - 'RouteBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'RouteBinding', - fieldName: 'routeBindings', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - routeBinding: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'RouteBinding', - 'routeBindings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'RouteBindingFilter', - 'RouteBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'RouteBinding', - fieldName: 'routeBinding', - document, - variables, - transform: (data: { - routeBindings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - routeBinding: data.routeBindings?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - routeBinding: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'RouteBinding', - 'routeBindings', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'RouteBindingFilter', - 'RouteBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'RouteBinding', - fieldName: 'routeBinding', - document, - variables, - transform: (data: { - routeBindings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - routeBinding: data.routeBindings?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createRouteBinding: { - routeBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'RouteBinding', - 'createRouteBinding', - 'routeBinding', - args.select, - args.data, - 'CreateRouteBindingInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'RouteBinding', - fieldName: 'createRouteBinding', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - RouteBindingPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateRouteBinding: { - routeBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'RouteBinding', - 'updateRouteBinding', - 'routeBinding', - args.select, - args.where.id, - args.data, - 'UpdateRouteBindingInput', - 'id', - 'routeBindingPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'RouteBinding', - fieldName: 'updateRouteBinding', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteRouteBinding: { - routeBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'RouteBinding', - 'deleteRouteBinding', - 'routeBinding', - { - id: args.where.id, - }, - 'DeleteRouteBindingInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'RouteBinding', - fieldName: 'deleteRouteBinding', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/auth/orm/input-types.ts b/sdk/constructive-cli/src/auth/orm/input-types.ts index 82e2d1a346..e4ee1db136 100644 --- a/sdk/constructive-cli/src/auth/orm/input-types.ts +++ b/sdk/constructive-cli/src/auth/orm/input-types.ts @@ -4689,6 +4689,7 @@ export interface SignUpRecord { accessTokenExpiresAt?: string | null; id?: string | null; isVerified?: boolean | null; + mfaSetupRequired?: boolean | null; outDeviceToken?: string | null; totpEnabled?: boolean | null; userId?: string | null; @@ -4698,6 +4699,7 @@ export type SignUpRecordSelect = { accessTokenExpiresAt?: boolean; id?: boolean; isVerified?: boolean; + mfaSetupRequired?: boolean; outDeviceToken?: boolean; totpEnabled?: boolean; userId?: boolean; diff --git a/sdk/constructive-cli/src/modules/cli/README.md b/sdk/constructive-cli/src/modules/cli/README.md index c2c78aef03..1f503fe896 100644 --- a/sdk/constructive-cli/src/modules/cli/README.md +++ b/sdk/constructive-cli/src/modules/cli/README.md @@ -389,6 +389,8 @@ CRUD operations for BillingProviderModule records. | `activatePlanSubscriptionFunction` | String | | `apiName` | String | | `applyProviderObservationFunction` | String | +| `billingConnectionTableId` | UUID | +| `billingConnectionTableName` | String | | `billingCustomersTableId` | UUID | | `billingCustomersTableName` | String | | `billingDisputesTableId` | UUID | @@ -403,6 +405,7 @@ CRUD operations for BillingProviderModule records. | `billingPricesTableName` | String | | `billingProductsTableId` | UUID | | `billingProductsTableName` | String | +| `billingProviderConnectedFunction` | String | | `billingProviderStateTableId` | UUID | | `billingProviderStateTableName` | String | | `billingRefundsTableId` | UUID | @@ -439,6 +442,7 @@ CRUD operations for BillingProviderModule records. | `processBillingEventFunction` | String | | `productsTableId` | UUID | | `provider` | String | +| `recordBillingConnectionFunction` | String | | `recordBillingHealthFunction` | String | | `recordDisputeFunction` | String | | `recordRefundFunction` | String | @@ -454,7 +458,7 @@ CRUD operations for BillingProviderModule records. | `usageSyncShardCount` | Int | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `activatePlanSubscriptionFunction`, `apiName`, `applyProviderObservationFunction`, `billingCustomersTableId`, `billingCustomersTableName`, `billingDisputesTableId`, `billingDisputesTableName`, `billingHealthTableId`, `billingHealthTableName`, `billingInvoicesTableId`, `billingInvoicesTableName`, `billingOperationsTableId`, `billingOperationsTableName`, `billingPricesTableId`, `billingPricesTableName`, `billingProductsTableId`, `billingProductsTableName`, `billingProviderStateTableId`, `billingProviderStateTableName`, `billingRefundsTableId`, `billingRefundsTableName`, `billingSubscriptionsTableId`, `billingSubscriptionsTableName`, `billingWebhookEventsTableId`, `billingWebhookEventsTableName`, `bindCheckoutSessionFunction`, `clearScheduledChangeFunction`, `finishBillingOperationFunction`, `getActivePlanPricingFunction`, `getActivePlanSubscriptionFunction`, `getBillingCustomerFunction`, `getBillingPriceFunction`, `getBillingProductFunction`, `getBillingProviderStateFunction`, `getBillingSubscriptionByEntityFunction`, `getBillingSubscriptionByExternalIdFunction`, `getBillingSubscriptionFunction`, `getFallbackFreePlanFunction`, `getPlanPricingByExternalPriceFunction`, `hasDueReconciliationsFunction`, `listDueReconciliationsFunction`, `listPendingUsageSyncFunction`, `markUsageSyncedFunction`, `prefix`, `prepareScheduledChangeFunction`, `pricesTableId`, `privateApiName`, `privateSchemaId`, `processBillingEventFunction`, `productsTableId`, `provider`, `recordBillingHealthFunction`, `recordDisputeFunction`, `recordRefundFunction`, `reserveBillingOperationFunction`, `schemaId`, `subscriptionsTableId`, `sweepOverdueSubscriptionsFunction`, `upsertBillingCustomerFunction`, `upsertBillingPriceFunction`, `upsertBillingProductFunction`, `upsertBillingSubscriptionFunction`, `upsertInvoiceFunction`, `usageSyncShardCount` +**Optional create fields (backend defaults):** `activatePlanSubscriptionFunction`, `apiName`, `applyProviderObservationFunction`, `billingConnectionTableId`, `billingConnectionTableName`, `billingCustomersTableId`, `billingCustomersTableName`, `billingDisputesTableId`, `billingDisputesTableName`, `billingHealthTableId`, `billingHealthTableName`, `billingInvoicesTableId`, `billingInvoicesTableName`, `billingOperationsTableId`, `billingOperationsTableName`, `billingPricesTableId`, `billingPricesTableName`, `billingProductsTableId`, `billingProductsTableName`, `billingProviderConnectedFunction`, `billingProviderStateTableId`, `billingProviderStateTableName`, `billingRefundsTableId`, `billingRefundsTableName`, `billingSubscriptionsTableId`, `billingSubscriptionsTableName`, `billingWebhookEventsTableId`, `billingWebhookEventsTableName`, `bindCheckoutSessionFunction`, `clearScheduledChangeFunction`, `finishBillingOperationFunction`, `getActivePlanPricingFunction`, `getActivePlanSubscriptionFunction`, `getBillingCustomerFunction`, `getBillingPriceFunction`, `getBillingProductFunction`, `getBillingProviderStateFunction`, `getBillingSubscriptionByEntityFunction`, `getBillingSubscriptionByExternalIdFunction`, `getBillingSubscriptionFunction`, `getFallbackFreePlanFunction`, `getPlanPricingByExternalPriceFunction`, `hasDueReconciliationsFunction`, `listDueReconciliationsFunction`, `listPendingUsageSyncFunction`, `markUsageSyncedFunction`, `prefix`, `prepareScheduledChangeFunction`, `pricesTableId`, `privateApiName`, `privateSchemaId`, `processBillingEventFunction`, `productsTableId`, `provider`, `recordBillingConnectionFunction`, `recordBillingHealthFunction`, `recordDisputeFunction`, `recordRefundFunction`, `reserveBillingOperationFunction`, `schemaId`, `subscriptionsTableId`, `sweepOverdueSubscriptionsFunction`, `upsertBillingCustomerFunction`, `upsertBillingPriceFunction`, `upsertBillingProductFunction`, `upsertBillingSubscriptionFunction`, `upsertInvoiceFunction`, `usageSyncShardCount` ### `blueprint` @@ -3410,13 +3414,14 @@ CRUD operations for StorageModule records. | `provisions` | JSON | | `publicSchemaName` | String | | `publicUrlPrefix` | String | +| `region` | String | | `restrictReads` | Boolean | | `schemaId` | UUID | | `scope` | String | | `uploadUrlExpirySeconds` | Int | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `allowedOrigins`, `apiName`, `bucketsTableId`, `bucketsTableName`, `cacheTtlSeconds`, `catalogModuleId`, `confirmUploadDelay`, `defaultCapabilities`, `defaultMaxFileSize`, `downloadUrlExpirySeconds`, `endpoint`, `entityField`, `entityTableId`, `fileEventsTableId`, `filesTableId`, `filesTableName`, `hasAuditLog`, `hasConfirmUpload`, `hasContentHash`, `hasCustomKeys`, `hasPathShares`, `hasVersioning`, `key`, `maxBulkFiles`, `maxBulkTotalSize`, `maxFilenameLength`, `pathSharesTableId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provider`, `provisions`, `publicSchemaName`, `publicUrlPrefix`, `restrictReads`, `schemaId`, `uploadUrlExpirySeconds` +**Optional create fields (backend defaults):** `allowedOrigins`, `apiName`, `bucketsTableId`, `bucketsTableName`, `cacheTtlSeconds`, `catalogModuleId`, `confirmUploadDelay`, `defaultCapabilities`, `defaultMaxFileSize`, `downloadUrlExpirySeconds`, `endpoint`, `entityField`, `entityTableId`, `fileEventsTableId`, `filesTableId`, `filesTableName`, `hasAuditLog`, `hasConfirmUpload`, `hasContentHash`, `hasCustomKeys`, `hasPathShares`, `hasVersioning`, `key`, `maxBulkFiles`, `maxBulkTotalSize`, `maxFilenameLength`, `pathSharesTableId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provider`, `provisions`, `publicSchemaName`, `publicUrlPrefix`, `region`, `restrictReads`, `schemaId`, `uploadUrlExpirySeconds` ### `transfer-log-module` diff --git a/sdk/constructive-cli/src/modules/cli/commands/billing-provider-module.ts b/sdk/constructive-cli/src/modules/cli/commands/billing-provider-module.ts index d40123f79f..8c141496e4 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/billing-provider-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/billing-provider-module.ts @@ -19,6 +19,8 @@ const fieldSchema: FieldSchema = { activatePlanSubscriptionFunction: 'string', apiName: 'string', applyProviderObservationFunction: 'string', + billingConnectionTableId: 'uuid', + billingConnectionTableName: 'string', billingCustomersTableId: 'uuid', billingCustomersTableName: 'string', billingDisputesTableId: 'uuid', @@ -33,6 +35,7 @@ const fieldSchema: FieldSchema = { billingPricesTableName: 'string', billingProductsTableId: 'uuid', billingProductsTableName: 'string', + billingProviderConnectedFunction: 'string', billingProviderStateTableId: 'uuid', billingProviderStateTableName: 'string', billingRefundsTableId: 'uuid', @@ -69,6 +72,7 @@ const fieldSchema: FieldSchema = { processBillingEventFunction: 'string', productsTableId: 'uuid', provider: 'string', + recordBillingConnectionFunction: 'string', recordBillingHealthFunction: 'string', recordDisputeFunction: 'string', recordRefundFunction: 'string', @@ -137,6 +141,8 @@ async function handleList(argv: Partial>, _prompter: Inq activatePlanSubscriptionFunction: true, apiName: true, applyProviderObservationFunction: true, + billingConnectionTableId: true, + billingConnectionTableName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, @@ -151,6 +157,7 @@ async function handleList(argv: Partial>, _prompter: Inq billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, + billingProviderConnectedFunction: true, billingProviderStateTableId: true, billingProviderStateTableName: true, billingRefundsTableId: true, @@ -187,6 +194,7 @@ async function handleList(argv: Partial>, _prompter: Inq processBillingEventFunction: true, productsTableId: true, provider: true, + recordBillingConnectionFunction: true, recordBillingHealthFunction: true, recordDisputeFunction: true, recordRefundFunction: true, @@ -227,6 +235,8 @@ async function handleFindFirst(argv: Partial>, _prompter activatePlanSubscriptionFunction: true, apiName: true, applyProviderObservationFunction: true, + billingConnectionTableId: true, + billingConnectionTableName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, @@ -241,6 +251,7 @@ async function handleFindFirst(argv: Partial>, _prompter billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, + billingProviderConnectedFunction: true, billingProviderStateTableId: true, billingProviderStateTableName: true, billingRefundsTableId: true, @@ -277,6 +288,7 @@ async function handleFindFirst(argv: Partial>, _prompter processBillingEventFunction: true, productsTableId: true, provider: true, + recordBillingConnectionFunction: true, recordBillingHealthFunction: true, recordDisputeFunction: true, recordRefundFunction: true, @@ -329,6 +341,8 @@ async function handleGet(argv: Partial>, prompter: Inqui activatePlanSubscriptionFunction: true, apiName: true, applyProviderObservationFunction: true, + billingConnectionTableId: true, + billingConnectionTableName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, @@ -343,6 +357,7 @@ async function handleGet(argv: Partial>, prompter: Inqui billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, + billingProviderConnectedFunction: true, billingProviderStateTableId: true, billingProviderStateTableName: true, billingRefundsTableId: true, @@ -379,6 +394,7 @@ async function handleGet(argv: Partial>, prompter: Inqui processBillingEventFunction: true, productsTableId: true, provider: true, + recordBillingConnectionFunction: true, recordBillingHealthFunction: true, recordDisputeFunction: true, recordRefundFunction: true, @@ -428,6 +444,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'billingConnectionTableId', + message: 'billingConnectionTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'billingConnectionTableName', + message: 'billingConnectionTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'billingCustomersTableId', @@ -526,6 +556,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'billingProviderConnectedFunction', + message: 'billingProviderConnectedFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'billingProviderStateTableId', @@ -770,6 +807,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'recordBillingConnectionFunction', + message: 'recordBillingConnectionFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'recordBillingHealthFunction', @@ -874,6 +918,8 @@ async function handleCreate(argv: Partial>, prompter: In activatePlanSubscriptionFunction: cleanedData.activatePlanSubscriptionFunction, apiName: cleanedData.apiName, applyProviderObservationFunction: cleanedData.applyProviderObservationFunction, + billingConnectionTableId: cleanedData.billingConnectionTableId, + billingConnectionTableName: cleanedData.billingConnectionTableName, billingCustomersTableId: cleanedData.billingCustomersTableId, billingCustomersTableName: cleanedData.billingCustomersTableName, billingDisputesTableId: cleanedData.billingDisputesTableId, @@ -888,6 +934,7 @@ async function handleCreate(argv: Partial>, prompter: In billingPricesTableName: cleanedData.billingPricesTableName, billingProductsTableId: cleanedData.billingProductsTableId, billingProductsTableName: cleanedData.billingProductsTableName, + billingProviderConnectedFunction: cleanedData.billingProviderConnectedFunction, billingProviderStateTableId: cleanedData.billingProviderStateTableId, billingProviderStateTableName: cleanedData.billingProviderStateTableName, billingRefundsTableId: cleanedData.billingRefundsTableId, @@ -925,6 +972,7 @@ async function handleCreate(argv: Partial>, prompter: In processBillingEventFunction: cleanedData.processBillingEventFunction, productsTableId: cleanedData.productsTableId, provider: cleanedData.provider, + recordBillingConnectionFunction: cleanedData.recordBillingConnectionFunction, recordBillingHealthFunction: cleanedData.recordBillingHealthFunction, recordDisputeFunction: cleanedData.recordDisputeFunction, recordRefundFunction: cleanedData.recordRefundFunction, @@ -943,6 +991,8 @@ async function handleCreate(argv: Partial>, prompter: In activatePlanSubscriptionFunction: true, apiName: true, applyProviderObservationFunction: true, + billingConnectionTableId: true, + billingConnectionTableName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, @@ -957,6 +1007,7 @@ async function handleCreate(argv: Partial>, prompter: In billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, + billingProviderConnectedFunction: true, billingProviderStateTableId: true, billingProviderStateTableName: true, billingRefundsTableId: true, @@ -993,6 +1044,7 @@ async function handleCreate(argv: Partial>, prompter: In processBillingEventFunction: true, productsTableId: true, provider: true, + recordBillingConnectionFunction: true, recordBillingHealthFunction: true, recordDisputeFunction: true, recordRefundFunction: true, @@ -1048,6 +1100,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'billingConnectionTableId', + message: 'billingConnectionTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'billingConnectionTableName', + message: 'billingConnectionTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'billingCustomersTableId', @@ -1146,6 +1212,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'billingProviderConnectedFunction', + message: 'billingProviderConnectedFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'billingProviderStateTableId', @@ -1390,6 +1463,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'recordBillingConnectionFunction', + message: 'recordBillingConnectionFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'recordBillingHealthFunction', @@ -1494,6 +1574,8 @@ async function handleUpdate(argv: Partial>, prompter: In activatePlanSubscriptionFunction: cleanedData.activatePlanSubscriptionFunction, apiName: cleanedData.apiName, applyProviderObservationFunction: cleanedData.applyProviderObservationFunction, + billingConnectionTableId: cleanedData.billingConnectionTableId, + billingConnectionTableName: cleanedData.billingConnectionTableName, billingCustomersTableId: cleanedData.billingCustomersTableId, billingCustomersTableName: cleanedData.billingCustomersTableName, billingDisputesTableId: cleanedData.billingDisputesTableId, @@ -1508,6 +1590,7 @@ async function handleUpdate(argv: Partial>, prompter: In billingPricesTableName: cleanedData.billingPricesTableName, billingProductsTableId: cleanedData.billingProductsTableId, billingProductsTableName: cleanedData.billingProductsTableName, + billingProviderConnectedFunction: cleanedData.billingProviderConnectedFunction, billingProviderStateTableId: cleanedData.billingProviderStateTableId, billingProviderStateTableName: cleanedData.billingProviderStateTableName, billingRefundsTableId: cleanedData.billingRefundsTableId, @@ -1545,6 +1628,7 @@ async function handleUpdate(argv: Partial>, prompter: In processBillingEventFunction: cleanedData.processBillingEventFunction, productsTableId: cleanedData.productsTableId, provider: cleanedData.provider, + recordBillingConnectionFunction: cleanedData.recordBillingConnectionFunction, recordBillingHealthFunction: cleanedData.recordBillingHealthFunction, recordDisputeFunction: cleanedData.recordDisputeFunction, recordRefundFunction: cleanedData.recordRefundFunction, @@ -1563,6 +1647,8 @@ async function handleUpdate(argv: Partial>, prompter: In activatePlanSubscriptionFunction: true, apiName: true, applyProviderObservationFunction: true, + billingConnectionTableId: true, + billingConnectionTableName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, @@ -1577,6 +1663,7 @@ async function handleUpdate(argv: Partial>, prompter: In billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, + billingProviderConnectedFunction: true, billingProviderStateTableId: true, billingProviderStateTableName: true, billingRefundsTableId: true, @@ -1613,6 +1700,7 @@ async function handleUpdate(argv: Partial>, prompter: In processBillingEventFunction: true, productsTableId: true, provider: true, + recordBillingConnectionFunction: true, recordBillingHealthFunction: true, recordDisputeFunction: true, recordRefundFunction: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/storage-module.ts b/sdk/constructive-cli/src/modules/cli/commands/storage-module.ts index 86898301fa..dfd0941682 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/storage-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/storage-module.ts @@ -54,6 +54,7 @@ const fieldSchema: FieldSchema = { provisions: 'json', publicSchemaName: 'string', publicUrlPrefix: 'string', + region: 'string', restrictReads: 'boolean', schemaId: 'uuid', scope: 'string', @@ -148,6 +149,7 @@ async function handleList(argv: Partial>, _prompter: Inq provisions: true, publicSchemaName: true, publicUrlPrefix: true, + region: true, restrictReads: true, schemaId: true, scope: true, @@ -210,6 +212,7 @@ async function handleFindFirst(argv: Partial>, _prompter provisions: true, publicSchemaName: true, publicUrlPrefix: true, + region: true, restrictReads: true, schemaId: true, scope: true, @@ -284,6 +287,7 @@ async function handleGet(argv: Partial>, prompter: Inqui provisions: true, publicSchemaName: true, publicUrlPrefix: true, + region: true, restrictReads: true, schemaId: true, scope: true, @@ -561,6 +565,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'region', + message: 'region', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'restrictReads', @@ -635,6 +646,7 @@ async function handleCreate(argv: Partial>, prompter: In provisions: cleanedData.provisions, publicSchemaName: cleanedData.publicSchemaName, publicUrlPrefix: cleanedData.publicUrlPrefix, + region: cleanedData.region, restrictReads: cleanedData.restrictReads, schemaId: cleanedData.schemaId, scope: cleanedData.scope, @@ -679,6 +691,7 @@ async function handleCreate(argv: Partial>, prompter: In provisions: true, publicSchemaName: true, publicUrlPrefix: true, + region: true, restrictReads: true, schemaId: true, scope: true, @@ -962,6 +975,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'region', + message: 'region', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'restrictReads', @@ -1036,6 +1056,7 @@ async function handleUpdate(argv: Partial>, prompter: In provisions: cleanedData.provisions, publicSchemaName: cleanedData.publicSchemaName, publicUrlPrefix: cleanedData.publicUrlPrefix, + region: cleanedData.region, restrictReads: cleanedData.restrictReads, schemaId: cleanedData.schemaId, scope: cleanedData.scope, @@ -1080,6 +1101,7 @@ async function handleUpdate(argv: Partial>, prompter: In provisions: true, publicSchemaName: true, publicUrlPrefix: true, + region: true, restrictReads: true, schemaId: true, scope: true, diff --git a/sdk/constructive-cli/src/modules/orm/README.md b/sdk/constructive-cli/src/modules/orm/README.md index 10eaf83b29..ec0c34eee6 100644 --- a/sdk/constructive-cli/src/modules/orm/README.md +++ b/sdk/constructive-cli/src/modules/orm/README.md @@ -357,6 +357,8 @@ CRUD operations for BillingProviderModule records. | `activatePlanSubscriptionFunction` | String | Yes | | `apiName` | String | Yes | | `applyProviderObservationFunction` | String | Yes | +| `billingConnectionTableId` | UUID | Yes | +| `billingConnectionTableName` | String | Yes | | `billingCustomersTableId` | UUID | Yes | | `billingCustomersTableName` | String | Yes | | `billingDisputesTableId` | UUID | Yes | @@ -371,6 +373,7 @@ CRUD operations for BillingProviderModule records. | `billingPricesTableName` | String | Yes | | `billingProductsTableId` | UUID | Yes | | `billingProductsTableName` | String | Yes | +| `billingProviderConnectedFunction` | String | Yes | | `billingProviderStateTableId` | UUID | Yes | | `billingProviderStateTableName` | String | Yes | | `billingRefundsTableId` | UUID | Yes | @@ -407,6 +410,7 @@ CRUD operations for BillingProviderModule records. | `processBillingEventFunction` | String | Yes | | `productsTableId` | UUID | Yes | | `provider` | String | Yes | +| `recordBillingConnectionFunction` | String | Yes | | `recordBillingHealthFunction` | String | Yes | | `recordDisputeFunction` | String | Yes | | `recordRefundFunction` | String | Yes | @@ -425,13 +429,13 @@ CRUD operations for BillingProviderModule records. ```typescript // List all billingProviderModule records -const items = await db.billingProviderModule.findMany({ select: { activatePlanSubscriptionFunction: true, apiName: true, applyProviderObservationFunction: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: true, billingHealthTableId: true, billingHealthTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingOperationsTableId: true, billingOperationsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingProviderStateTableId: true, billingProviderStateTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, bindCheckoutSessionFunction: true, clearScheduledChangeFunction: true, databaseId: true, finishBillingOperationFunction: true, getActivePlanPricingFunction: true, getActivePlanSubscriptionFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingProviderStateFunction: true, getBillingSubscriptionByEntityFunction: true, getBillingSubscriptionByExternalIdFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, getPlanPricingByExternalPriceFunction: true, hasDueReconciliationsFunction: true, id: true, listDueReconciliationsFunction: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, prepareScheduledChangeFunction: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordBillingHealthFunction: true, recordDisputeFunction: true, recordRefundFunction: true, reserveBillingOperationFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: true, upsertInvoiceFunction: true, usageSyncShardCount: true } }).execute(); +const items = await db.billingProviderModule.findMany({ select: { activatePlanSubscriptionFunction: true, apiName: true, applyProviderObservationFunction: true, billingConnectionTableId: true, billingConnectionTableName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: true, billingHealthTableId: true, billingHealthTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingOperationsTableId: true, billingOperationsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingProviderConnectedFunction: true, billingProviderStateTableId: true, billingProviderStateTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, bindCheckoutSessionFunction: true, clearScheduledChangeFunction: true, databaseId: true, finishBillingOperationFunction: true, getActivePlanPricingFunction: true, getActivePlanSubscriptionFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingProviderStateFunction: true, getBillingSubscriptionByEntityFunction: true, getBillingSubscriptionByExternalIdFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, getPlanPricingByExternalPriceFunction: true, hasDueReconciliationsFunction: true, id: true, listDueReconciliationsFunction: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, prepareScheduledChangeFunction: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordBillingConnectionFunction: true, recordBillingHealthFunction: true, recordDisputeFunction: true, recordRefundFunction: true, reserveBillingOperationFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: true, upsertInvoiceFunction: true, usageSyncShardCount: true } }).execute(); // Get one by id -const item = await db.billingProviderModule.findOne({ id: '', select: { activatePlanSubscriptionFunction: true, apiName: true, applyProviderObservationFunction: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: true, billingHealthTableId: true, billingHealthTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingOperationsTableId: true, billingOperationsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingProviderStateTableId: true, billingProviderStateTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, bindCheckoutSessionFunction: true, clearScheduledChangeFunction: true, databaseId: true, finishBillingOperationFunction: true, getActivePlanPricingFunction: true, getActivePlanSubscriptionFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingProviderStateFunction: true, getBillingSubscriptionByEntityFunction: true, getBillingSubscriptionByExternalIdFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, getPlanPricingByExternalPriceFunction: true, hasDueReconciliationsFunction: true, id: true, listDueReconciliationsFunction: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, prepareScheduledChangeFunction: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordBillingHealthFunction: true, recordDisputeFunction: true, recordRefundFunction: true, reserveBillingOperationFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: true, upsertInvoiceFunction: true, usageSyncShardCount: true } }).execute(); +const item = await db.billingProviderModule.findOne({ id: '', select: { activatePlanSubscriptionFunction: true, apiName: true, applyProviderObservationFunction: true, billingConnectionTableId: true, billingConnectionTableName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: true, billingHealthTableId: true, billingHealthTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingOperationsTableId: true, billingOperationsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingProviderConnectedFunction: true, billingProviderStateTableId: true, billingProviderStateTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, bindCheckoutSessionFunction: true, clearScheduledChangeFunction: true, databaseId: true, finishBillingOperationFunction: true, getActivePlanPricingFunction: true, getActivePlanSubscriptionFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingProviderStateFunction: true, getBillingSubscriptionByEntityFunction: true, getBillingSubscriptionByExternalIdFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, getPlanPricingByExternalPriceFunction: true, hasDueReconciliationsFunction: true, id: true, listDueReconciliationsFunction: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, prepareScheduledChangeFunction: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordBillingConnectionFunction: true, recordBillingHealthFunction: true, recordDisputeFunction: true, recordRefundFunction: true, reserveBillingOperationFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: true, upsertInvoiceFunction: true, usageSyncShardCount: true } }).execute(); // Create -const created = await db.billingProviderModule.create({ data: { activatePlanSubscriptionFunction: '', apiName: '', applyProviderObservationFunction: '', billingCustomersTableId: '', billingCustomersTableName: '', billingDisputesTableId: '', billingDisputesTableName: '', billingHealthTableId: '', billingHealthTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingOperationsTableId: '', billingOperationsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingProviderStateTableId: '', billingProviderStateTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', bindCheckoutSessionFunction: '', clearScheduledChangeFunction: '', databaseId: '', finishBillingOperationFunction: '', getActivePlanPricingFunction: '', getActivePlanSubscriptionFunction: '', getBillingCustomerFunction: '', getBillingPriceFunction: '', getBillingProductFunction: '', getBillingProviderStateFunction: '', getBillingSubscriptionByEntityFunction: '', getBillingSubscriptionByExternalIdFunction: '', getBillingSubscriptionFunction: '', getFallbackFreePlanFunction: '', getPlanPricingByExternalPriceFunction: '', hasDueReconciliationsFunction: '', listDueReconciliationsFunction: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', prepareScheduledChangeFunction: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordBillingHealthFunction: '', recordDisputeFunction: '', recordRefundFunction: '', reserveBillingOperationFunction: '', schemaId: '', subscriptionsTableId: '', sweepOverdueSubscriptionsFunction: '', upsertBillingCustomerFunction: '', upsertBillingPriceFunction: '', upsertBillingProductFunction: '', upsertBillingSubscriptionFunction: '', upsertInvoiceFunction: '', usageSyncShardCount: '' }, select: { id: true } }).execute(); +const created = await db.billingProviderModule.create({ data: { activatePlanSubscriptionFunction: '', apiName: '', applyProviderObservationFunction: '', billingConnectionTableId: '', billingConnectionTableName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingDisputesTableId: '', billingDisputesTableName: '', billingHealthTableId: '', billingHealthTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingOperationsTableId: '', billingOperationsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingProviderConnectedFunction: '', billingProviderStateTableId: '', billingProviderStateTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', bindCheckoutSessionFunction: '', clearScheduledChangeFunction: '', databaseId: '', finishBillingOperationFunction: '', getActivePlanPricingFunction: '', getActivePlanSubscriptionFunction: '', getBillingCustomerFunction: '', getBillingPriceFunction: '', getBillingProductFunction: '', getBillingProviderStateFunction: '', getBillingSubscriptionByEntityFunction: '', getBillingSubscriptionByExternalIdFunction: '', getBillingSubscriptionFunction: '', getFallbackFreePlanFunction: '', getPlanPricingByExternalPriceFunction: '', hasDueReconciliationsFunction: '', listDueReconciliationsFunction: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', prepareScheduledChangeFunction: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordBillingConnectionFunction: '', recordBillingHealthFunction: '', recordDisputeFunction: '', recordRefundFunction: '', reserveBillingOperationFunction: '', schemaId: '', subscriptionsTableId: '', sweepOverdueSubscriptionsFunction: '', upsertBillingCustomerFunction: '', upsertBillingPriceFunction: '', upsertBillingProductFunction: '', upsertBillingSubscriptionFunction: '', upsertInvoiceFunction: '', usageSyncShardCount: '' }, select: { id: true } }).execute(); // Update const updated = await db.billingProviderModule.update({ where: { id: '' }, data: { activatePlanSubscriptionFunction: '' }, select: { id: true } }).execute(); @@ -3890,6 +3894,7 @@ CRUD operations for StorageModule records. | `provisions` | JSON | Yes | | `publicSchemaName` | String | Yes | | `publicUrlPrefix` | String | Yes | +| `region` | String | Yes | | `restrictReads` | Boolean | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | @@ -3899,13 +3904,13 @@ CRUD operations for StorageModule records. ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); +const items = await db.storageModule.findMany({ select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { allowedOrigins: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-cli/src/modules/orm/input-types.ts b/sdk/constructive-cli/src/modules/orm/input-types.ts index 4a8fcc7f04..1605f02b05 100644 --- a/sdk/constructive-cli/src/modules/orm/input-types.ts +++ b/sdk/constructive-cli/src/modules/orm/input-types.ts @@ -365,6 +365,8 @@ export interface BillingProviderModule { activatePlanSubscriptionFunction?: string | null; apiName?: string | null; applyProviderObservationFunction?: string | null; + billingConnectionTableId?: string | null; + billingConnectionTableName?: string | null; billingCustomersTableId?: string | null; billingCustomersTableName?: string | null; billingDisputesTableId?: string | null; @@ -379,6 +381,7 @@ export interface BillingProviderModule { billingPricesTableName?: string | null; billingProductsTableId?: string | null; billingProductsTableName?: string | null; + billingProviderConnectedFunction?: string | null; billingProviderStateTableId?: string | null; billingProviderStateTableName?: string | null; billingRefundsTableId?: string | null; @@ -415,6 +418,7 @@ export interface BillingProviderModule { processBillingEventFunction?: string | null; productsTableId?: string | null; provider?: string | null; + recordBillingConnectionFunction?: string | null; recordBillingHealthFunction?: string | null; recordDisputeFunction?: string | null; recordRefundFunction?: string | null; @@ -2452,6 +2456,7 @@ export interface StorageModule { provisions?: Record | null; publicSchemaName?: string | null; publicUrlPrefix?: string | null; + region?: string | null; restrictReads?: boolean | null; schemaId?: string | null; scope?: string | null; @@ -3054,6 +3059,8 @@ export type BillingProviderModuleSelect = { activatePlanSubscriptionFunction?: boolean; apiName?: boolean; applyProviderObservationFunction?: boolean; + billingConnectionTableId?: boolean; + billingConnectionTableName?: boolean; billingCustomersTableId?: boolean; billingCustomersTableName?: boolean; billingDisputesTableId?: boolean; @@ -3068,6 +3075,7 @@ export type BillingProviderModuleSelect = { billingPricesTableName?: boolean; billingProductsTableId?: boolean; billingProductsTableName?: boolean; + billingProviderConnectedFunction?: boolean; billingProviderStateTableId?: boolean; billingProviderStateTableName?: boolean; billingRefundsTableId?: boolean; @@ -3104,6 +3112,7 @@ export type BillingProviderModuleSelect = { processBillingEventFunction?: boolean; productsTableId?: boolean; provider?: boolean; + recordBillingConnectionFunction?: boolean; recordBillingHealthFunction?: boolean; recordDisputeFunction?: boolean; recordRefundFunction?: boolean; @@ -4908,6 +4917,7 @@ export type StorageModuleSelect = { provisions?: boolean; publicSchemaName?: boolean; publicUrlPrefix?: boolean; + region?: boolean; restrictReads?: boolean; schemaId?: boolean; scope?: boolean; @@ -5380,6 +5390,10 @@ export interface BillingProviderModuleFilter { apiName?: StringFilter; /** Filter by the object’s `applyProviderObservationFunction` field. */ applyProviderObservationFunction?: StringFilter; + /** Filter by the object’s `billingConnectionTableId` field. */ + billingConnectionTableId?: UUIDFilter; + /** Filter by the object’s `billingConnectionTableName` field. */ + billingConnectionTableName?: StringFilter; /** Filter by the object’s `billingCustomersTableId` field. */ billingCustomersTableId?: UUIDFilter; /** Filter by the object’s `billingCustomersTableName` field. */ @@ -5408,6 +5422,8 @@ export interface BillingProviderModuleFilter { billingProductsTableId?: UUIDFilter; /** Filter by the object’s `billingProductsTableName` field. */ billingProductsTableName?: StringFilter; + /** Filter by the object’s `billingProviderConnectedFunction` field. */ + billingProviderConnectedFunction?: StringFilter; /** Filter by the object’s `billingProviderStateTableId` field. */ billingProviderStateTableId?: UUIDFilter; /** Filter by the object’s `billingProviderStateTableName` field. */ @@ -5484,6 +5500,8 @@ export interface BillingProviderModuleFilter { productsTableId?: UUIDFilter; /** Filter by the object’s `provider` field. */ provider?: StringFilter; + /** Filter by the object’s `recordBillingConnectionFunction` field. */ + recordBillingConnectionFunction?: StringFilter; /** Filter by the object’s `recordBillingHealthFunction` field. */ recordBillingHealthFunction?: StringFilter; /** Filter by the object’s `recordDisputeFunction` field. */ @@ -9120,6 +9138,8 @@ export interface StorageModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `publicUrlPrefix` field. */ publicUrlPrefix?: StringFilter; + /** Filter by the object’s `region` field. */ + region?: StringFilter; /** Filter by the object’s `restrictReads` field. */ restrictReads?: BooleanFilter; /** Filter by the object’s `schemaId` field. */ @@ -9763,6 +9783,10 @@ export type BillingProviderModuleOrderBy = | 'API_NAME_DESC' | 'APPLY_PROVIDER_OBSERVATION_FUNCTION_ASC' | 'APPLY_PROVIDER_OBSERVATION_FUNCTION_DESC' + | 'BILLING_CONNECTION_TABLE_ID_ASC' + | 'BILLING_CONNECTION_TABLE_ID_DESC' + | 'BILLING_CONNECTION_TABLE_NAME_ASC' + | 'BILLING_CONNECTION_TABLE_NAME_DESC' | 'BILLING_CUSTOMERS_TABLE_ID_ASC' | 'BILLING_CUSTOMERS_TABLE_ID_DESC' | 'BILLING_CUSTOMERS_TABLE_NAME_ASC' @@ -9791,6 +9815,8 @@ export type BillingProviderModuleOrderBy = | 'BILLING_PRODUCTS_TABLE_ID_DESC' | 'BILLING_PRODUCTS_TABLE_NAME_ASC' | 'BILLING_PRODUCTS_TABLE_NAME_DESC' + | 'BILLING_PROVIDER_CONNECTED_FUNCTION_ASC' + | 'BILLING_PROVIDER_CONNECTED_FUNCTION_DESC' | 'BILLING_PROVIDER_STATE_TABLE_ID_ASC' | 'BILLING_PROVIDER_STATE_TABLE_ID_DESC' | 'BILLING_PROVIDER_STATE_TABLE_NAME_ASC' @@ -9866,6 +9892,8 @@ export type BillingProviderModuleOrderBy = | 'PRODUCTS_TABLE_ID_DESC' | 'PROVIDER_ASC' | 'PROVIDER_DESC' + | 'RECORD_BILLING_CONNECTION_FUNCTION_ASC' + | 'RECORD_BILLING_CONNECTION_FUNCTION_DESC' | 'RECORD_BILLING_HEALTH_FUNCTION_ASC' | 'RECORD_BILLING_HEALTH_FUNCTION_DESC' | 'RECORD_DISPUTE_FUNCTION_ASC' @@ -13036,6 +13064,8 @@ export type StorageModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PUBLIC_URL_PREFIX_ASC' | 'PUBLIC_URL_PREFIX_DESC' + | 'REGION_ASC' + | 'REGION_DESC' | 'RESTRICT_READS_ASC' | 'RESTRICT_READS_DESC' | 'SCHEMA_ID_ASC' @@ -13661,6 +13691,8 @@ export interface CreateBillingProviderModuleInput { activatePlanSubscriptionFunction?: string; apiName?: string; applyProviderObservationFunction?: string; + billingConnectionTableId?: string; + billingConnectionTableName?: string; billingCustomersTableId?: string; billingCustomersTableName?: string; billingDisputesTableId?: string; @@ -13675,6 +13707,7 @@ export interface CreateBillingProviderModuleInput { billingPricesTableName?: string; billingProductsTableId?: string; billingProductsTableName?: string; + billingProviderConnectedFunction?: string; billingProviderStateTableId?: string; billingProviderStateTableName?: string; billingRefundsTableId?: string; @@ -13710,6 +13743,7 @@ export interface CreateBillingProviderModuleInput { processBillingEventFunction?: string; productsTableId?: string; provider?: string; + recordBillingConnectionFunction?: string; recordBillingHealthFunction?: string; recordDisputeFunction?: string; recordRefundFunction?: string; @@ -13729,6 +13763,8 @@ export interface BillingProviderModulePatch { activatePlanSubscriptionFunction?: string | null; apiName?: string | null; applyProviderObservationFunction?: string | null; + billingConnectionTableId?: string | null; + billingConnectionTableName?: string | null; billingCustomersTableId?: string | null; billingCustomersTableName?: string | null; billingDisputesTableId?: string | null; @@ -13743,6 +13779,7 @@ export interface BillingProviderModulePatch { billingPricesTableName?: string | null; billingProductsTableId?: string | null; billingProductsTableName?: string | null; + billingProviderConnectedFunction?: string | null; billingProviderStateTableId?: string | null; billingProviderStateTableName?: string | null; billingRefundsTableId?: string | null; @@ -13778,6 +13815,7 @@ export interface BillingProviderModulePatch { processBillingEventFunction?: string | null; productsTableId?: string | null; provider?: string | null; + recordBillingConnectionFunction?: string | null; recordBillingHealthFunction?: string | null; recordDisputeFunction?: string | null; recordRefundFunction?: string | null; @@ -17585,6 +17623,7 @@ export interface CreateStorageModuleInput { provisions?: Record; publicSchemaName?: string; publicUrlPrefix?: string; + region?: string; restrictReads?: boolean; schemaId?: string; scope: string; @@ -17629,6 +17668,7 @@ export interface StorageModulePatch { provisions?: Record | null; publicSchemaName?: string | null; publicUrlPrefix?: string | null; + region?: string | null; restrictReads?: boolean | null; schemaId?: string | null; scope?: string | null; @@ -18578,6 +18618,8 @@ export interface BillingProviderModuleInput { activatePlanSubscriptionFunction?: string; apiName?: string; applyProviderObservationFunction?: string; + billingConnectionTableId?: string; + billingConnectionTableName?: string; billingCustomersTableId?: string; billingCustomersTableName?: string; billingDisputesTableId?: string; @@ -18592,6 +18634,7 @@ export interface BillingProviderModuleInput { billingPricesTableName?: string; billingProductsTableId?: string; billingProductsTableName?: string; + billingProviderConnectedFunction?: string; billingProviderStateTableId?: string; billingProviderStateTableName?: string; billingRefundsTableId?: string; @@ -18628,6 +18671,7 @@ export interface BillingProviderModuleInput { processBillingEventFunction?: string; productsTableId?: string; provider?: string; + recordBillingConnectionFunction?: string; recordBillingHealthFunction?: string; recordDisputeFunction?: string; recordRefundFunction?: string; @@ -20697,6 +20741,7 @@ export interface StorageModuleInput { provisions?: Record; publicSchemaName?: string; publicUrlPrefix?: string; + region?: string; restrictReads?: boolean; schemaId?: string; scope: string; @@ -22814,6 +22859,8 @@ export interface StorageModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `publicUrlPrefix` field. */ publicUrlPrefix?: StringFilter; + /** Filter by the object’s `region` field. */ + region?: StringFilter; /** Filter by the object’s `restrictReads` field. */ restrictReads?: BooleanFilter; /** Filter by the object’s `schemaId` field. */ diff --git a/sdk/constructive-cli/src/storage/cli/README.md b/sdk/constructive-cli/src/storage/cli/README.md index 81c0a7402a..013551651f 100644 --- a/sdk/constructive-cli/src/storage/cli/README.md +++ b/sdk/constructive-cli/src/storage/cli/README.md @@ -38,9 +38,9 @@ storage:provision_bucket job used by the INSERT trigger. This is idempotent for an already-reconciled bucket; enqueue failures become GraphQL errors. | | `upload-file` | Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. | -| `upload-files` | Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. | +| `upload-files` | Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. Accepts at most the bucket's `maxBulkFiles` files per call. | | `upload-platform-file` | Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. | -| `upload-platform-files` | Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. | +| `upload-platform-files` | Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. Accepts at most the bucket's `maxBulkFiles` files per call. | ## Infrastructure Commands @@ -111,6 +111,7 @@ CRUD operations for Bucket records. | `id` | UUID | | `isPublic` | Boolean | | `key` | String | +| `maxBulkFiles` | Int | | `maxFileSize` | BigInt | | `physicalName` | String | | `stagingTtl` | Interval | @@ -189,6 +190,7 @@ CRUD operations for PlatformBucket records. | `id` | UUID | | `isPublic` | Boolean | | `key` | String | +| `maxBulkFiles` | Int | | `maxFileSize` | BigInt | | `physicalName` | String | | `stagingTtl` | Interval | @@ -302,7 +304,7 @@ Upload a file: resolves the bucket by key, creates the file row, and returns a p ### `upload-files` -Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. Accepts at most the bucket's `maxBulkFiles` files per call. - **Type:** mutation - **Arguments:** @@ -332,7 +334,7 @@ Upload a file: resolves the bucket by key, creates the file row, and returns a p ### `upload-platform-files` -Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. Accepts at most the bucket's `maxBulkFiles` files per call. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-cli/src/storage/cli/commands.ts b/sdk/constructive-cli/src/storage/cli/commands.ts index cccd55c4c7..cd581965f0 100644 --- a/sdk/constructive-cli/src/storage/cli/commands.ts +++ b/sdk/constructive-cli/src/storage/cli/commands.ts @@ -40,7 +40,7 @@ const createCommandMap: () => Record< 'upload-platform-files': uploadPlatformFilesCmd, }); const usage = - '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n bucket bucket CRUD operations\n file file CRUD operations\n platform-bucket platformBucket CRUD operations\n platform-file platformFile CRUD operations\n files-rename filesRename\n platform-files-rename platformFilesRename\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\n upload-file Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL.\n upload-files Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each.\n upload-platform-file Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL.\n upload-platform-files Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each.\n\n --help, -h Show this help message\n --version, -v Show version\n'; + "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n bucket bucket CRUD operations\n file file CRUD operations\n platform-bucket platformBucket CRUD operations\n platform-file platformFile CRUD operations\n files-rename filesRename\n platform-files-rename platformFilesRename\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\n upload-file Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL.\n upload-files Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. Accepts at most the bucket's `maxBulkFiles` files per call.\n upload-platform-file Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL.\n upload-platform-files Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. Accepts at most the bucket's `maxBulkFiles` files per call.\n\n --help, -h Show this help message\n --version, -v Show version\n"; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/storage/cli/commands/bucket.ts b/sdk/constructive-cli/src/storage/cli/commands/bucket.ts index aedb8aafa5..d720ef4324 100644 --- a/sdk/constructive-cli/src/storage/cli/commands/bucket.ts +++ b/sdk/constructive-cli/src/storage/cli/commands/bucket.ts @@ -27,6 +27,7 @@ const fieldSchema: FieldSchema = { id: 'uuid', isPublic: 'boolean', key: 'string', + maxBulkFiles: 'int', maxFileSize: 'int', physicalName: 'string', stagingTtl: 'string', diff --git a/sdk/constructive-cli/src/storage/cli/commands/platform-bucket.ts b/sdk/constructive-cli/src/storage/cli/commands/platform-bucket.ts index cb123ae821..28fa17df2a 100644 --- a/sdk/constructive-cli/src/storage/cli/commands/platform-bucket.ts +++ b/sdk/constructive-cli/src/storage/cli/commands/platform-bucket.ts @@ -26,6 +26,7 @@ const fieldSchema: FieldSchema = { id: 'uuid', isPublic: 'boolean', key: 'string', + maxBulkFiles: 'int', maxFileSize: 'int', physicalName: 'string', stagingTtl: 'string', diff --git a/sdk/constructive-cli/src/storage/cli/commands/upload-files.ts b/sdk/constructive-cli/src/storage/cli/commands/upload-files.ts index d68f275a68..3d439c0af9 100644 --- a/sdk/constructive-cli/src/storage/cli/commands/upload-files.ts +++ b/sdk/constructive-cli/src/storage/cli/commands/upload-files.ts @@ -16,7 +16,7 @@ export default async ( try { if (argv.help || argv.h) { console.log( - 'upload-files - Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each.\n\nUsage: upload-files [OPTIONS]\n' + "upload-files - Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. Accepts at most the bucket's `maxBulkFiles` files per call.\n\nUsage: upload-files [OPTIONS]\n" ); process.exit(0); } diff --git a/sdk/constructive-cli/src/storage/cli/commands/upload-platform-files.ts b/sdk/constructive-cli/src/storage/cli/commands/upload-platform-files.ts index d4228d8b81..2ffa8b8b9d 100644 --- a/sdk/constructive-cli/src/storage/cli/commands/upload-platform-files.ts +++ b/sdk/constructive-cli/src/storage/cli/commands/upload-platform-files.ts @@ -16,7 +16,7 @@ export default async ( try { if (argv.help || argv.h) { console.log( - 'upload-platform-files - Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each.\n\nUsage: upload-platform-files [OPTIONS]\n' + "upload-platform-files - Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. Accepts at most the bucket's `maxBulkFiles` files per call.\n\nUsage: upload-platform-files [OPTIONS]\n" ); process.exit(0); } diff --git a/sdk/constructive-cli/src/storage/orm/README.md b/sdk/constructive-cli/src/storage/orm/README.md index a72925c67d..9445be8f5e 100644 --- a/sdk/constructive-cli/src/storage/orm/README.md +++ b/sdk/constructive-cli/src/storage/orm/README.md @@ -47,6 +47,7 @@ CRUD operations for Bucket records. | `id` | UUID | No | | `isPublic` | Boolean | Yes | | `key` | String | Yes | +| `maxBulkFiles` | Int | Yes | | `maxFileSize` | BigInt | Yes | | `physicalName` | String | Yes | | `stagingTtl` | Interval | Yes | @@ -58,13 +59,13 @@ CRUD operations for Bucket records. ```typescript // List all bucket records -const items = await db.bucket.findMany({ select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); +const items = await db.bucket.findMany({ select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.bucket.findOne({ id: '', select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); +const item = await db.bucket.findOne({ id: '', select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); // Create -const created = await db.bucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); +const created = await db.bucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); // Update const updated = await db.bucket.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -139,6 +140,7 @@ CRUD operations for PlatformBucket records. | `id` | UUID | No | | `isPublic` | Boolean | Yes | | `key` | String | Yes | +| `maxBulkFiles` | Int | Yes | | `maxFileSize` | BigInt | Yes | | `physicalName` | String | Yes | | `stagingTtl` | Interval | Yes | @@ -150,13 +152,13 @@ CRUD operations for PlatformBucket records. ```typescript // List all platformBucket records -const items = await db.platformBucket.findMany({ select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); +const items = await db.platformBucket.findMany({ select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformBucket.findOne({ id: '', select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); +const item = await db.platformBucket.findOne({ id: '', select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); // Create -const created = await db.platformBucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); +const created = await db.platformBucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformBucket.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -280,7 +282,7 @@ const result = await db.mutation.uploadFile({ input: '' }).exec ### `db.mutation.uploadFiles` -Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. Accepts at most the bucket's `maxBulkFiles` files per call. - **Type:** mutation - **Arguments:** @@ -310,7 +312,7 @@ const result = await db.mutation.uploadPlatformFile({ input: '', name: '' }); ``` -### HostnameBinding - -```typescript -// List all hostnameBindings -const { data, isLoading } = useHostnameBindingsQuery({ - selection: { fields: { domainId: true, hostname: true, id: true, isWildcard: true, managed: true, parentHostname: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true } }, -}); - -// Get one hostnameBinding -const { data: item } = useHostnameBindingQuery({ - id: '', - selection: { fields: { domainId: true, hostname: true, id: true, isWildcard: true, managed: true, parentHostname: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true } }, -}); - -// Create a hostnameBinding -const { mutate: create } = useCreateHostnameBindingMutation({ - selection: { fields: { id: true } }, -}); -create({ domainId: '', hostname: '', isWildcard: '', managed: '', parentHostname: '', tlsSecretName: '', tlsStatus: '', verificationStatus: '' }); -``` - ### IdentityProviderRegistry ```typescript @@ -1238,20 +1207,20 @@ create({ name: '', ownerId: '', suspendedAt: '', suspend ```typescript // List all managedDomains const { data, isLoading } = useManagedDomainsQuery({ - selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, + selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, }); // Get one managedDomain const { data: item } = useManagedDomainQuery({ id: '', - selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, + selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, }); // Create a managedDomain const { mutate: create } = useCreateManagedDomainMutation({ selection: { fields: { id: true } }, }); -create({ allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', databaseId: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }); +create({ allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', databaseId: '', domain: '', isWildcard: '', publicPort: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }); ``` ### NodeTypeRegistry @@ -1547,20 +1516,20 @@ create({ commitId: '', name: '' }); ```typescript // List all platformManagedDomains const { data, isLoading } = usePlatformManagedDomainsQuery({ - selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, + selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, }); // Get one platformManagedDomain const { data: item } = usePlatformManagedDomainQuery({ id: '', - selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, + selection: { fields: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }, }); // Create a platformManagedDomain const { mutate: create } = useCreatePlatformManagedDomainMutation({ selection: { fields: { id: true } }, }); -create({ allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }); +create({ allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', domain: '', isWildcard: '', publicPort: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }); ``` ### PlatformPage @@ -1878,27 +1847,6 @@ const { mutate: create } = useCreateRlsSettingMutation({ create({ authenticateFunctionId: '', authenticateSchemaId: '', authenticateStrictFunctionId: '', currentIpAddressFunctionId: '', currentRoleFunctionId: '', currentRoleIdFunctionId: '', currentUserAgentFunctionId: '', databaseId: '', roleSchemaId: '' }); ``` -### RouteBinding - -```typescript -// List all routeBindings -const { data, isLoading } = useRouteBindingsQuery({ - selection: { fields: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }, -}); - -// Get one routeBinding -const { data: item } = useRouteBindingQuery({ - id: '', - selection: { fields: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }, -}); - -// Create a routeBinding -const { mutate: create } = useCreateRouteBindingMutation({ - selection: { fields: { id: true } }, -}); -create({ domainId: '', isActive: '', method: '', path: '', priority: '', servingSiteId: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetRedirectId: '', targetServiceId: '', targetSiteId: '' }); -``` - ### Route ```typescript @@ -2324,20 +2272,20 @@ create({ databaseId: '', modifier: '', scope: '', sortOrde ```typescript // List all uniqueConstraints const { data, isLoading } = useUniqueConstraintsQuery({ - selection: { fields: { category: true, createdAt: true, databaseId: true, description: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, withoutOverlaps: true } }, + selection: { fields: { category: true, createdAt: true, databaseId: true, description: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, nullsNotDistinct: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, withoutOverlaps: true } }, }); // Get one uniqueConstraint const { data: item } = useUniqueConstraintQuery({ id: '', - selection: { fields: { category: true, createdAt: true, databaseId: true, description: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, withoutOverlaps: true } }, + selection: { fields: { category: true, createdAt: true, databaseId: true, description: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, nullsNotDistinct: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, withoutOverlaps: true } }, }); // Create a uniqueConstraint const { mutate: create } = useCreateUniqueConstraintMutation({ selection: { fields: { id: true } }, }); -create({ category: '', databaseId: '', description: '', fieldIds: '', initiallyDeferred: '', isDeferrable: '', name: '', smartTags: '', tableId: '', tags: '', type: '', withoutOverlaps: '' }); +create({ category: '', databaseId: '', description: '', fieldIds: '', initiallyDeferred: '', isDeferrable: '', name: '', nullsNotDistinct: '', smartTags: '', tableId: '', tags: '', type: '', withoutOverlaps: '' }); ``` ### ViewBehavior diff --git a/sdk/constructive-react/src/api/hooks/index.ts b/sdk/constructive-react/src/api/hooks/index.ts index cd2cf49f88..e69ef19c9e 100644 --- a/sdk/constructive-react/src/api/hooks/index.ts +++ b/sdk/constructive-react/src/api/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: Api, ApiSchema, ApiSetting, AstMigration, CheckConstraint, CompositeType, CorsSetting, Database, DatabaseSetting, DatabaseTransfer, DefaultPrivilege, Derive, Domain, DomainEvent, DomainType, DomainVerification, EmailIdentity, EmailProviderAccount, EmailSiteIdentity, EmbeddingChunk, Enum, ExclusionConstraint, FieldBehavior, Field, ForeignKeyConstraintBehavior, ForeignKeyConstraint, FullTextSearch, Function, GetSitePreviewsRecord, HostnameBinding, IdentityProviderRegistry, Index, ListSuspendedDatabasesRecord, ManagedDomain, NodeTypeRegistry, Page, Partition, PlatformApi, PlatformApiSchema, PlatformApiSetting, PlatformCorsSetting, PlatformDomain, PlatformDomainEvent, PlatformDomainVerification, PlatformEmailIdentity, PlatformEmailProviderAccount, PlatformEmailSiteIdentity, PlatformGetSitePreviewsRecord, PlatformManagedDomain, PlatformPage, PlatformSiteAppLink, PlatformSite, PlatformSiteDeepLink, PlatformSiteErrorPage, PlatformSiteMetadatum, PlatformSiteModule, PlatformSiteRelease, PlatformSiteTheme, PlatformSiteWebConfig, Policy, PrimaryKeyConstraint, PubkeySetting, Redirect, RlsSetting, RouteBinding, Route, Schema, SchemaGrant, SiteAppLink, Site, SiteDeepLink, SiteErrorPage, SiteMetadatum, SiteModule, SiteRelease, SiteTheme, SiteWebConfig, SpatialRelation, SqlAction, TableBehavior, Table, TableGrant, Trigger, TriggerFunction, UniqueConstraintBehavior, UniqueConstraint, ViewBehavior, View, ViewGrant, ViewRule, ViewTable, WebauthnSetting + * Tables: Api, ApiSchema, ApiSetting, AstMigration, CheckConstraint, CompositeType, CorsSetting, Database, DatabaseSetting, DatabaseTransfer, DefaultPrivilege, Derive, Domain, DomainEvent, DomainType, DomainVerification, EmailIdentity, EmailProviderAccount, EmailSiteIdentity, EmbeddingChunk, Enum, ExclusionConstraint, FieldBehavior, Field, ForeignKeyConstraintBehavior, ForeignKeyConstraint, FullTextSearch, Function, GetSitePreviewsRecord, IdentityProviderRegistry, Index, ListSuspendedDatabasesRecord, ManagedDomain, NodeTypeRegistry, Page, Partition, PlatformApi, PlatformApiSchema, PlatformApiSetting, PlatformCorsSetting, PlatformDomain, PlatformDomainEvent, PlatformDomainVerification, PlatformEmailIdentity, PlatformEmailProviderAccount, PlatformEmailSiteIdentity, PlatformGetSitePreviewsRecord, PlatformManagedDomain, PlatformPage, PlatformSiteAppLink, PlatformSite, PlatformSiteDeepLink, PlatformSiteErrorPage, PlatformSiteMetadatum, PlatformSiteModule, PlatformSiteRelease, PlatformSiteTheme, PlatformSiteWebConfig, Policy, PrimaryKeyConstraint, PubkeySetting, Redirect, RlsSetting, Route, Schema, SchemaGrant, SiteAppLink, Site, SiteDeepLink, SiteErrorPage, SiteMetadatum, SiteModule, SiteRelease, SiteTheme, SiteWebConfig, SpatialRelation, SqlAction, TableBehavior, Table, TableGrant, Trigger, TriggerFunction, UniqueConstraintBehavior, UniqueConstraint, ViewBehavior, View, ViewGrant, ViewRule, ViewTable, WebauthnSetting * * Usage: * diff --git a/sdk/constructive-react/src/api/hooks/invalidation.ts b/sdk/constructive-react/src/api/hooks/invalidation.ts index 39374ac61d..64a35bc6ca 100644 --- a/sdk/constructive-react/src/api/hooks/invalidation.ts +++ b/sdk/constructive-react/src/api/hooks/invalidation.ts @@ -44,7 +44,6 @@ import { fullTextSearchKeys, functionKeys, getSitePreviewsRecordKeys, - hostnameBindingKeys, identityProviderRegistryKeys, indexKeys, listSuspendedDatabasesRecordKeys, @@ -79,7 +78,6 @@ import { pubkeySettingKeys, redirectKeys, rlsSettingKeys, - routeBindingKeys, routeKeys, schemaKeys, schemaGrantKeys, @@ -600,23 +598,6 @@ export const invalidate = { queryKey: getSitePreviewsRecordKeys.detail(id), }), }, - /** Invalidate hostnameBinding queries */ hostnameBinding: { - /** Invalidate all hostnameBinding queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: hostnameBindingKeys.all, - }), - /** Invalidate hostnameBinding list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: hostnameBindingKeys.lists(), - }), - /** Invalidate a specific hostnameBinding */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: hostnameBindingKeys.detail(id), - }), - }, /** Invalidate identityProviderRegistry queries */ identityProviderRegistry: { /** Invalidate all identityProviderRegistry queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1185,23 +1166,6 @@ export const invalidate = { queryKey: rlsSettingKeys.detail(id), }), }, - /** Invalidate routeBinding queries */ routeBinding: { - /** Invalidate all routeBinding queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: routeBindingKeys.all, - }), - /** Invalidate routeBinding list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: routeBindingKeys.lists(), - }), - /** Invalidate a specific routeBinding */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: routeBindingKeys.detail(id), - }), - }, /** Invalidate route queries */ route: { /** Invalidate all route queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1861,14 +1825,6 @@ export const remove = { queryKey: getSitePreviewsRecordKeys.detail(id), }); }, - /** Remove hostnameBinding from cache */ hostnameBinding: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: hostnameBindingKeys.detail(id), - }); - }, /** Remove identityProviderRegistry from cache */ identityProviderRegistry: ( queryClient: QueryClient, id: string | number @@ -2126,14 +2082,6 @@ export const remove = { queryKey: rlsSettingKeys.detail(id), }); }, - /** Remove routeBinding from cache */ routeBinding: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: routeBindingKeys.detail(id), - }); - }, /** Remove route from cache */ route: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: routeKeys.detail(id), diff --git a/sdk/constructive-react/src/api/hooks/mutation-keys.ts b/sdk/constructive-react/src/api/hooks/mutation-keys.ts index 6f6f69253a..8f00d73908 100644 --- a/sdk/constructive-react/src/api/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/api/hooks/mutation-keys.ts @@ -275,15 +275,6 @@ export const getSitePreviewsRecordMutationKeys = { /** Delete getSitePreviewsRecord mutation key */ delete: (id: string | number) => ['mutation', 'getsitepreviewsrecord', 'delete', id] as const, } as const; -export const hostnameBindingMutationKeys = { - /** All hostnameBinding mutation keys */ all: ['mutation', 'hostnamebinding'] as const, - /** Create hostnameBinding mutation key */ create: () => - ['mutation', 'hostnamebinding', 'create'] as const, - /** Update hostnameBinding mutation key */ update: (id: string | number) => - ['mutation', 'hostnamebinding', 'update', id] as const, - /** Delete hostnameBinding mutation key */ delete: (id: string | number) => - ['mutation', 'hostnamebinding', 'delete', id] as const, -} as const; export const identityProviderRegistryMutationKeys = { /** All identityProviderRegistry mutation keys */ all: [ 'mutation', @@ -617,15 +608,6 @@ export const rlsSettingMutationKeys = { /** Delete rlsSetting mutation key */ delete: (id: string | number) => ['mutation', 'rlssetting', 'delete', id] as const, } as const; -export const routeBindingMutationKeys = { - /** All routeBinding mutation keys */ all: ['mutation', 'routebinding'] as const, - /** Create routeBinding mutation key */ create: () => - ['mutation', 'routebinding', 'create'] as const, - /** Update routeBinding mutation key */ update: (id: string | number) => - ['mutation', 'routebinding', 'update', id] as const, - /** Delete routeBinding mutation key */ delete: (id: string | number) => - ['mutation', 'routebinding', 'delete', id] as const, -} as const; export const routeMutationKeys = { /** All route mutation keys */ all: ['mutation', 'route'] as const, /** Create route mutation key */ create: () => ['mutation', 'route', 'create'] as const, @@ -1058,7 +1040,6 @@ export const mutationKeys = { fullTextSearch: fullTextSearchMutationKeys, function: functionMutationKeys, getSitePreviewsRecord: getSitePreviewsRecordMutationKeys, - hostnameBinding: hostnameBindingMutationKeys, identityProviderRegistry: identityProviderRegistryMutationKeys, index: indexMutationKeys, listSuspendedDatabasesRecord: listSuspendedDatabasesRecordMutationKeys, @@ -1093,7 +1074,6 @@ export const mutationKeys = { pubkeySetting: pubkeySettingMutationKeys, redirect: redirectMutationKeys, rlsSetting: rlsSettingMutationKeys, - routeBinding: routeBindingMutationKeys, route: routeMutationKeys, schema: schemaMutationKeys, schemaGrant: schemaGrantMutationKeys, diff --git a/sdk/constructive-react/src/api/hooks/mutations/index.ts b/sdk/constructive-react/src/api/hooks/mutations/index.ts index 2dfe6981f9..f0a2052063 100644 --- a/sdk/constructive-react/src/api/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/api/hooks/mutations/index.ts @@ -86,9 +86,6 @@ export * from './useCreateFunctionMutation'; export * from './useUpdateFunctionMutation'; export * from './useDeleteFunctionMutation'; export * from './useCreateGetSitePreviewsRecordMutation'; -export * from './useCreateHostnameBindingMutation'; -export * from './useUpdateHostnameBindingMutation'; -export * from './useDeleteHostnameBindingMutation'; export * from './useCreateIdentityProviderRegistryMutation'; export * from './useUpdateIdentityProviderRegistryMutation'; export * from './useDeleteIdentityProviderRegistryMutation'; @@ -187,9 +184,6 @@ export * from './useDeleteRedirectMutation'; export * from './useCreateRlsSettingMutation'; export * from './useUpdateRlsSettingMutation'; export * from './useDeleteRlsSettingMutation'; -export * from './useCreateRouteBindingMutation'; -export * from './useUpdateRouteBindingMutation'; -export * from './useDeleteRouteBindingMutation'; export * from './useCreateRouteMutation'; export * from './useUpdateRouteMutation'; export * from './useDeleteRouteMutation'; diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreateHostnameBindingMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateHostnameBindingMutation.ts deleted file mode 100644 index fc63661581..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useCreateHostnameBindingMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Compiled hostname index maintained by domain sync triggers; read only through the resolver - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { hostnameBindingKeys } from '../query-keys'; -import { hostnameBindingMutationKeys } from '../mutation-keys'; -import type { - HostnameBindingSelect, - HostnameBindingWithRelations, - CreateHostnameBindingInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - HostnameBindingSelect, - HostnameBindingWithRelations, - CreateHostnameBindingInput, -} from '../../orm/input-types'; -/** - * Compiled hostname index maintained by domain sync triggers; read only through the resolver - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateHostnameBindingMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateHostnameBindingMutation( - params: { - selection: { - fields: S & HostnameBindingSelect; - } & HookStrictSelect, HostnameBindingSelect>; - } & Omit< - UseMutationOptions< - { - createHostnameBinding: { - hostnameBinding: InferSelectResult; - }; - }, - Error, - CreateHostnameBindingInput['hostnameBinding'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createHostnameBinding: { - hostnameBinding: InferSelectResult; - }; - }, - Error, - CreateHostnameBindingInput['hostnameBinding'] ->; -export function useCreateHostnameBindingMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: hostnameBindingMutationKeys.create(), - mutationFn: (data: CreateHostnameBindingInput['hostnameBinding']) => - getClient() - .hostnameBinding.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: hostnameBindingKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreateRouteBindingMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateRouteBindingMutation.ts deleted file mode 100644 index 82421aa2f0..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useCreateRouteBindingMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { routeBindingKeys } from '../query-keys'; -import { routeBindingMutationKeys } from '../mutation-keys'; -import type { - RouteBindingSelect, - RouteBindingWithRelations, - CreateRouteBindingInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - RouteBindingSelect, - RouteBindingWithRelations, - CreateRouteBindingInput, -} from '../../orm/input-types'; -/** - * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateRouteBindingMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateRouteBindingMutation( - params: { - selection: { - fields: S & RouteBindingSelect; - } & HookStrictSelect, RouteBindingSelect>; - } & Omit< - UseMutationOptions< - { - createRouteBinding: { - routeBinding: InferSelectResult; - }; - }, - Error, - CreateRouteBindingInput['routeBinding'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createRouteBinding: { - routeBinding: InferSelectResult; - }; - }, - Error, - CreateRouteBindingInput['routeBinding'] ->; -export function useCreateRouteBindingMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: routeBindingMutationKeys.create(), - mutationFn: (data: CreateRouteBindingInput['routeBinding']) => - getClient() - .routeBinding.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: routeBindingKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useDeleteHostnameBindingMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteHostnameBindingMutation.ts deleted file mode 100644 index 4df36c41ed..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useDeleteHostnameBindingMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Compiled hostname index maintained by domain sync triggers; read only through the resolver - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { hostnameBindingKeys } from '../query-keys'; -import { hostnameBindingMutationKeys } from '../mutation-keys'; -import type { HostnameBindingSelect, HostnameBindingWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { HostnameBindingSelect, HostnameBindingWithRelations } from '../../orm/input-types'; -/** - * Compiled hostname index maintained by domain sync triggers; read only through the resolver - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteHostnameBindingMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteHostnameBindingMutation( - params: { - selection: { - fields: S & HostnameBindingSelect; - } & HookStrictSelect, HostnameBindingSelect>; - } & Omit< - UseMutationOptions< - { - deleteHostnameBinding: { - hostnameBinding: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteHostnameBinding: { - hostnameBinding: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteHostnameBindingMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: hostnameBindingMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .hostnameBinding.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: hostnameBindingKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: hostnameBindingKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useDeleteRouteBindingMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteRouteBindingMutation.ts deleted file mode 100644 index e158ed3966..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useDeleteRouteBindingMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { routeBindingKeys } from '../query-keys'; -import { routeBindingMutationKeys } from '../mutation-keys'; -import type { RouteBindingSelect, RouteBindingWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { RouteBindingSelect, RouteBindingWithRelations } from '../../orm/input-types'; -/** - * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteRouteBindingMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteRouteBindingMutation( - params: { - selection: { - fields: S & RouteBindingSelect; - } & HookStrictSelect, RouteBindingSelect>; - } & Omit< - UseMutationOptions< - { - deleteRouteBinding: { - routeBinding: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteRouteBinding: { - routeBinding: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteRouteBindingMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: routeBindingMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .routeBinding.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: routeBindingKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: routeBindingKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useUpdateHostnameBindingMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateHostnameBindingMutation.ts deleted file mode 100644 index a0eb04cd9f..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useUpdateHostnameBindingMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Compiled hostname index maintained by domain sync triggers; read only through the resolver - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { hostnameBindingKeys } from '../query-keys'; -import { hostnameBindingMutationKeys } from '../mutation-keys'; -import type { - HostnameBindingSelect, - HostnameBindingWithRelations, - HostnameBindingPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - HostnameBindingSelect, - HostnameBindingWithRelations, - HostnameBindingPatch, -} from '../../orm/input-types'; -/** - * Compiled hostname index maintained by domain sync triggers; read only through the resolver - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateHostnameBindingMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', hostnameBindingPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateHostnameBindingMutation( - params: { - selection: { - fields: S & HostnameBindingSelect; - } & HookStrictSelect, HostnameBindingSelect>; - } & Omit< - UseMutationOptions< - { - updateHostnameBinding: { - hostnameBinding: InferSelectResult; - }; - }, - Error, - { - id: string; - hostnameBindingPatch: HostnameBindingPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateHostnameBinding: { - hostnameBinding: InferSelectResult; - }; - }, - Error, - { - id: string; - hostnameBindingPatch: HostnameBindingPatch; - } ->; -export function useUpdateHostnameBindingMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - hostnameBindingPatch: HostnameBindingPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: hostnameBindingMutationKeys.all, - mutationFn: ({ - id, - hostnameBindingPatch, - }: { - id: string; - hostnameBindingPatch: HostnameBindingPatch; - }) => - getClient() - .hostnameBinding.update({ - where: { - id, - }, - data: hostnameBindingPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: hostnameBindingKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: hostnameBindingKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useUpdateRouteBindingMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateRouteBindingMutation.ts deleted file mode 100644 index cb3950c98c..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useUpdateRouteBindingMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { routeBindingKeys } from '../query-keys'; -import { routeBindingMutationKeys } from '../mutation-keys'; -import type { - RouteBindingSelect, - RouteBindingWithRelations, - RouteBindingPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - RouteBindingSelect, - RouteBindingWithRelations, - RouteBindingPatch, -} from '../../orm/input-types'; -/** - * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateRouteBindingMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', routeBindingPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateRouteBindingMutation( - params: { - selection: { - fields: S & RouteBindingSelect; - } & HookStrictSelect, RouteBindingSelect>; - } & Omit< - UseMutationOptions< - { - updateRouteBinding: { - routeBinding: InferSelectResult; - }; - }, - Error, - { - id: string; - routeBindingPatch: RouteBindingPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateRouteBinding: { - routeBinding: InferSelectResult; - }; - }, - Error, - { - id: string; - routeBindingPatch: RouteBindingPatch; - } ->; -export function useUpdateRouteBindingMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - routeBindingPatch: RouteBindingPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: routeBindingMutationKeys.all, - mutationFn: ({ id, routeBindingPatch }: { id: string; routeBindingPatch: RouteBindingPatch }) => - getClient() - .routeBinding.update({ - where: { - id, - }, - data: routeBindingPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: routeBindingKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: routeBindingKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/queries/index.ts b/sdk/constructive-react/src/api/hooks/queries/index.ts index c9c9cffe3a..efd229fc1c 100644 --- a/sdk/constructive-react/src/api/hooks/queries/index.ts +++ b/sdk/constructive-react/src/api/hooks/queries/index.ts @@ -60,8 +60,6 @@ export * from './useFullTextSearchQuery'; export * from './useFunctionsQuery'; export * from './useFunctionQuery'; export * from './useGetSitePreviewsQuery'; -export * from './useHostnameBindingsQuery'; -export * from './useHostnameBindingQuery'; export * from './useIdentityProviderRegistriesQuery'; export * from './useIdentityProviderRegistryQuery'; export * from './useIndicesQuery'; @@ -129,8 +127,6 @@ export * from './useRedirectsQuery'; export * from './useRedirectQuery'; export * from './useRlsSettingsQuery'; export * from './useRlsSettingQuery'; -export * from './useRouteBindingsQuery'; -export * from './useRouteBindingQuery'; export * from './useRoutesQuery'; export * from './useRouteQuery'; export * from './useSchemasQuery'; diff --git a/sdk/constructive-react/src/api/hooks/queries/useHostnameBindingQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useHostnameBindingQuery.ts deleted file mode 100644 index d3c7621390..0000000000 --- a/sdk/constructive-react/src/api/hooks/queries/useHostnameBindingQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Compiled hostname index maintained by domain sync triggers; read only through the resolver - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { hostnameBindingKeys } from '../query-keys'; -import type { HostnameBindingSelect, HostnameBindingWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { HostnameBindingSelect, HostnameBindingWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const hostnameBindingQueryKey = hostnameBindingKeys.detail; -/** - * Compiled hostname index maintained by domain sync triggers; read only through the resolver - * - * @example - * ```tsx - * const { data, isLoading } = useHostnameBindingQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useHostnameBindingQuery< - S extends HostnameBindingSelect, - TData = { - hostnameBinding: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, HostnameBindingSelect>; - } & Omit< - UseQueryOptions< - { - hostnameBinding: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useHostnameBindingQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: hostnameBindingKeys.detail(params.id), - queryFn: () => - getClient() - .hostnameBinding.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Compiled hostname index maintained by domain sync triggers; read only through the resolver - * - * @example - * ```ts - * const data = await fetchHostnameBindingQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchHostnameBindingQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, HostnameBindingSelect>; -}): Promise<{ - hostnameBinding: InferSelectResult | null; -}>; -export async function fetchHostnameBindingQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .hostnameBinding.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Compiled hostname index maintained by domain sync triggers; read only through the resolver - * - * @example - * ```ts - * await prefetchHostnameBindingQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchHostnameBindingQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, HostnameBindingSelect>; - } -): Promise; -export async function prefetchHostnameBindingQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: hostnameBindingKeys.detail(params.id), - queryFn: () => - getClient() - .hostnameBinding.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/api/hooks/queries/useHostnameBindingsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useHostnameBindingsQuery.ts deleted file mode 100644 index 44c53bc7a6..0000000000 --- a/sdk/constructive-react/src/api/hooks/queries/useHostnameBindingsQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * Compiled hostname index maintained by domain sync triggers; read only through the resolver - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { hostnameBindingKeys } from '../query-keys'; -import type { - HostnameBindingSelect, - HostnameBindingWithRelations, - HostnameBindingFilter, - HostnameBindingOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - HostnameBindingSelect, - HostnameBindingWithRelations, - HostnameBindingFilter, - HostnameBindingOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const hostnameBindingsQueryKey = hostnameBindingKeys.list; -/** - * Compiled hostname index maintained by domain sync triggers; read only through the resolver - * - * @example - * ```tsx - * const { data, isLoading } = useHostnameBindingsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useHostnameBindingsQuery< - S extends HostnameBindingSelect, - TData = { - hostnameBindings: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, HostnameBindingSelect>; - } & Omit< - UseQueryOptions< - { - hostnameBindings: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useHostnameBindingsQuery( - params: { - selection: ListSelectionConfig< - HostnameBindingSelect, - HostnameBindingFilter, - HostnameBindingOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - HostnameBindingSelect, - HostnameBindingFilter, - HostnameBindingOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: hostnameBindingKeys.list(args), - queryFn: () => getClient().hostnameBinding.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Compiled hostname index maintained by domain sync triggers; read only through the resolver - * - * @example - * ```ts - * const data = await fetchHostnameBindingsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchHostnameBindingsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, HostnameBindingSelect>; -}): Promise<{ - hostnameBindings: ConnectionResult>; -}>; -export async function fetchHostnameBindingsQuery(params: { - selection: ListSelectionConfig< - HostnameBindingSelect, - HostnameBindingFilter, - HostnameBindingOrderBy - >; -}) { - const args = buildListSelectionArgs< - HostnameBindingSelect, - HostnameBindingFilter, - HostnameBindingOrderBy - >(params.selection); - return getClient().hostnameBinding.findMany(args).unwrap(); -} -/** - * Compiled hostname index maintained by domain sync triggers; read only through the resolver - * - * @example - * ```ts - * await prefetchHostnameBindingsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchHostnameBindingsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, HostnameBindingSelect>; - } -): Promise; -export async function prefetchHostnameBindingsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - HostnameBindingSelect, - HostnameBindingFilter, - HostnameBindingOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - HostnameBindingSelect, - HostnameBindingFilter, - HostnameBindingOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: hostnameBindingKeys.list(args), - queryFn: () => getClient().hostnameBinding.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/api/hooks/queries/useRouteBindingQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useRouteBindingQuery.ts deleted file mode 100644 index 5a322c858f..0000000000 --- a/sdk/constructive-react/src/api/hooks/queries/useRouteBindingQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { routeBindingKeys } from '../query-keys'; -import type { RouteBindingSelect, RouteBindingWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { RouteBindingSelect, RouteBindingWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const routeBindingQueryKey = routeBindingKeys.detail; -/** - * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver - * - * @example - * ```tsx - * const { data, isLoading } = useRouteBindingQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useRouteBindingQuery< - S extends RouteBindingSelect, - TData = { - routeBinding: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, RouteBindingSelect>; - } & Omit< - UseQueryOptions< - { - routeBinding: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useRouteBindingQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: routeBindingKeys.detail(params.id), - queryFn: () => - getClient() - .routeBinding.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver - * - * @example - * ```ts - * const data = await fetchRouteBindingQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchRouteBindingQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, RouteBindingSelect>; -}): Promise<{ - routeBinding: InferSelectResult | null; -}>; -export async function fetchRouteBindingQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .routeBinding.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver - * - * @example - * ```ts - * await prefetchRouteBindingQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchRouteBindingQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, RouteBindingSelect>; - } -): Promise; -export async function prefetchRouteBindingQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: routeBindingKeys.detail(params.id), - queryFn: () => - getClient() - .routeBinding.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/api/hooks/queries/useRouteBindingsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useRouteBindingsQuery.ts deleted file mode 100644 index f2915aa8ab..0000000000 --- a/sdk/constructive-react/src/api/hooks/queries/useRouteBindingsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { routeBindingKeys } from '../query-keys'; -import type { - RouteBindingSelect, - RouteBindingWithRelations, - RouteBindingFilter, - RouteBindingOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - RouteBindingSelect, - RouteBindingWithRelations, - RouteBindingFilter, - RouteBindingOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const routeBindingsQueryKey = routeBindingKeys.list; -/** - * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver - * - * @example - * ```tsx - * const { data, isLoading } = useRouteBindingsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useRouteBindingsQuery< - S extends RouteBindingSelect, - TData = { - routeBindings: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, RouteBindingSelect>; - } & Omit< - UseQueryOptions< - { - routeBindings: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useRouteBindingsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: routeBindingKeys.list(args), - queryFn: () => getClient().routeBinding.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver - * - * @example - * ```ts - * const data = await fetchRouteBindingsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchRouteBindingsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, RouteBindingSelect>; -}): Promise<{ - routeBindings: ConnectionResult>; -}>; -export async function fetchRouteBindingsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().routeBinding.findMany(args).unwrap(); -} -/** - * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver - * - * @example - * ```ts - * await prefetchRouteBindingsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchRouteBindingsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, RouteBindingSelect>; - } -): Promise; -export async function prefetchRouteBindingsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: routeBindingKeys.list(args), - queryFn: () => getClient().routeBinding.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/api/hooks/query-keys.ts b/sdk/constructive-react/src/api/hooks/query-keys.ts index 4e0998b79d..bdda6d97c0 100644 --- a/sdk/constructive-react/src/api/hooks/query-keys.ts +++ b/sdk/constructive-react/src/api/hooks/query-keys.ts @@ -281,15 +281,6 @@ export const getSitePreviewsRecordKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...getSitePreviewsRecordKeys.details(), id] as const, } as const; -export const hostnameBindingKeys = { - /** All hostnameBinding queries */ all: ['hostnamebinding'] as const, - /** List query keys */ lists: () => [...hostnameBindingKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...hostnameBindingKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...hostnameBindingKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...hostnameBindingKeys.details(), id] as const, -} as const; export const identityProviderRegistryKeys = { /** All identityProviderRegistry queries */ all: ['identityproviderregistry'] as const, /** List query keys */ lists: () => [...identityProviderRegistryKeys.all, 'list'] as const, @@ -600,15 +591,6 @@ export const rlsSettingKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...rlsSettingKeys.details(), id] as const, } as const; -export const routeBindingKeys = { - /** All routeBinding queries */ all: ['routebinding'] as const, - /** List query keys */ lists: () => [...routeBindingKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...routeBindingKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...routeBindingKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...routeBindingKeys.details(), id] as const, -} as const; export const routeKeys = { /** All route queries */ all: ['route'] as const, /** List query keys */ lists: () => [...routeKeys.all, 'list'] as const, @@ -948,7 +930,6 @@ export const queryKeys = { fullTextSearch: fullTextSearchKeys, function: functionKeys, getSitePreviewsRecord: getSitePreviewsRecordKeys, - hostnameBinding: hostnameBindingKeys, identityProviderRegistry: identityProviderRegistryKeys, index: indexKeys, listSuspendedDatabasesRecord: listSuspendedDatabasesRecordKeys, @@ -983,7 +964,6 @@ export const queryKeys = { pubkeySetting: pubkeySettingKeys, redirect: redirectKeys, rlsSetting: rlsSettingKeys, - routeBinding: routeBindingKeys, route: routeKeys, schema: schemaKeys, schemaGrant: schemaGrantKeys, diff --git a/sdk/constructive-react/src/api/orm/README.md b/sdk/constructive-react/src/api/orm/README.md index 2439802945..b6bcbc6efe 100644 --- a/sdk/constructive-react/src/api/orm/README.md +++ b/sdk/constructive-react/src/api/orm/README.md @@ -50,7 +50,6 @@ const db = createClient({ | `fullTextSearch` | findMany, findOne, create, update, delete | | `function` | findMany, findOne, create, update, delete | | `getSitePreviewsRecord` | findMany, findOne, create, update, delete | -| `hostnameBinding` | findMany, findOne, create, update, delete | | `identityProviderRegistry` | findMany, findOne, create, update, delete | | `index` | findMany, findOne, create, update, delete | | `listSuspendedDatabasesRecord` | findMany, findOne, create, update, delete | @@ -85,7 +84,6 @@ const db = createClient({ | `pubkeySetting` | findMany, findOne, create, update, delete | | `redirect` | findMany, findOne, create, update, delete | | `rlsSetting` | findMany, findOne, create, update, delete | -| `routeBinding` | findMany, findOne, create, update, delete | | `route` | findMany, findOne, create, update, delete | | `schema` | findMany, findOne, create, update, delete | | `schemaGrant` | findMany, findOne, create, update, delete | @@ -1319,44 +1317,6 @@ const updated = await db.getSitePreviewsRecord.update({ where: { id: '' }, const deleted = await db.getSitePreviewsRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.hostnameBinding` - -CRUD operations for HostnameBinding records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `domainId` | UUID | Yes | -| `hostname` | String | Yes | -| `id` | UUID | No | -| `isWildcard` | Boolean | Yes | -| `managed` | Boolean | Yes | -| `parentHostname` | String | Yes | -| `tlsSecretName` | String | Yes | -| `tlsStatus` | String | Yes | -| `updatedAt` | Datetime | No | -| `verificationStatus` | String | Yes | - -**Operations:** - -```typescript -// List all hostnameBinding records -const items = await db.hostnameBinding.findMany({ select: { domainId: true, hostname: true, id: true, isWildcard: true, managed: true, parentHostname: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true } }).execute(); - -// Get one by id -const item = await db.hostnameBinding.findOne({ id: '', select: { domainId: true, hostname: true, id: true, isWildcard: true, managed: true, parentHostname: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true } }).execute(); - -// Create -const created = await db.hostnameBinding.create({ data: { domainId: '', hostname: '', isWildcard: '', managed: '', parentHostname: '', tlsSecretName: '', tlsStatus: '', verificationStatus: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.hostnameBinding.update({ where: { id: '' }, data: { domainId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.hostnameBinding.delete({ where: { id: '' } }).execute(); -``` - ### `db.identityProviderRegistry` CRUD operations for IdentityProviderRegistry records. @@ -1489,6 +1449,7 @@ CRUD operations for ManagedDomain records. | `domain` | String | Yes | | `id` | UUID | No | | `isWildcard` | Boolean | Yes | +| `publicPort` | Int | Yes | | `tlsReadyAt` | Datetime | Yes | | `tlsStatus` | String | Yes | | `updatedAt` | Datetime | No | @@ -1500,13 +1461,13 @@ CRUD operations for ManagedDomain records. ```typescript // List all managedDomain records -const items = await db.managedDomain.findMany({ select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); +const items = await db.managedDomain.findMany({ select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Get one by id -const item = await db.managedDomain.findOne({ id: '', select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); +const item = await db.managedDomain.findOne({ id: '', select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Create -const created = await db.managedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', databaseId: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); +const created = await db.managedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', databaseId: '', domain: '', isWildcard: '', publicPort: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); // Update const updated = await db.managedDomain.update({ where: { id: '' }, data: { allowPublicUsage: '' }, select: { id: true } }).execute(); @@ -2075,6 +2036,7 @@ CRUD operations for PlatformManagedDomain records. | `domain` | String | Yes | | `id` | UUID | No | | `isWildcard` | Boolean | Yes | +| `publicPort` | Int | Yes | | `tlsReadyAt` | Datetime | Yes | | `tlsStatus` | String | Yes | | `updatedAt` | Datetime | No | @@ -2086,13 +2048,13 @@ CRUD operations for PlatformManagedDomain records. ```typescript // List all platformManagedDomain records -const items = await db.platformManagedDomain.findMany({ select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); +const items = await db.platformManagedDomain.findMany({ select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Get one by id -const item = await db.platformManagedDomain.findOne({ id: '', select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); +const item = await db.platformManagedDomain.findOne({ id: '', select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Create -const created = await db.platformManagedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); +const created = await db.platformManagedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', domain: '', isWildcard: '', publicPort: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformManagedDomain.update({ where: { id: '' }, data: { allowPublicUsage: '' }, select: { id: true } }).execute(); @@ -2680,48 +2642,6 @@ const updated = await db.rlsSetting.update({ where: { id: '' }, data: { au const deleted = await db.rlsSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.routeBinding` - -CRUD operations for RouteBinding records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `domainId` | UUID | Yes | -| `id` | UUID | No | -| `isActive` | Boolean | Yes | -| `method` | String | Yes | -| `path` | String | Yes | -| `priority` | Int | Yes | -| `servingSiteId` | UUID | Yes | -| `targetApiId` | UUID | Yes | -| `targetBucketId` | UUID | Yes | -| `targetFunctionId` | UUID | Yes | -| `targetRedirectId` | UUID | Yes | -| `targetServiceId` | UUID | Yes | -| `targetSiteId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all routeBinding records -const items = await db.routeBinding.findMany({ select: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.routeBinding.findOne({ id: '', select: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.routeBinding.create({ data: { domainId: '', isActive: '', method: '', path: '', priority: '', servingSiteId: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetRedirectId: '', targetServiceId: '', targetSiteId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.routeBinding.update({ where: { id: '' }, data: { domainId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.routeBinding.delete({ where: { id: '' } }).execute(); -``` - ### `db.route` CRUD operations for Route records. @@ -3527,6 +3447,7 @@ CRUD operations for UniqueConstraint records. | `initiallyDeferred` | Boolean | Yes | | `isDeferrable` | Boolean | Yes | | `name` | String | Yes | +| `nullsNotDistinct` | Boolean | Yes | | `smartTags` | JSON | Yes | | `tableId` | UUID | Yes | | `tags` | String | Yes | @@ -3538,13 +3459,13 @@ CRUD operations for UniqueConstraint records. ```typescript // List all uniqueConstraint records -const items = await db.uniqueConstraint.findMany({ select: { category: true, createdAt: true, databaseId: true, description: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, withoutOverlaps: true } }).execute(); +const items = await db.uniqueConstraint.findMany({ select: { category: true, createdAt: true, databaseId: true, description: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, nullsNotDistinct: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, withoutOverlaps: true } }).execute(); // Get one by id -const item = await db.uniqueConstraint.findOne({ id: '', select: { category: true, createdAt: true, databaseId: true, description: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, withoutOverlaps: true } }).execute(); +const item = await db.uniqueConstraint.findOne({ id: '', select: { category: true, createdAt: true, databaseId: true, description: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, nullsNotDistinct: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, withoutOverlaps: true } }).execute(); // Create -const created = await db.uniqueConstraint.create({ data: { category: '', databaseId: '', description: '', fieldIds: '', initiallyDeferred: '', isDeferrable: '', name: '', smartTags: '', tableId: '', tags: '', type: '', withoutOverlaps: '' }, select: { id: true } }).execute(); +const created = await db.uniqueConstraint.create({ data: { category: '', databaseId: '', description: '', fieldIds: '', initiallyDeferred: '', isDeferrable: '', name: '', nullsNotDistinct: '', smartTags: '', tableId: '', tags: '', type: '', withoutOverlaps: '' }, select: { id: true } }).execute(); // Update const updated = await db.uniqueConstraint.update({ where: { id: '' }, data: { category: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-react/src/api/orm/index.ts b/sdk/constructive-react/src/api/orm/index.ts index 444db1275d..038b8785ac 100644 --- a/sdk/constructive-react/src/api/orm/index.ts +++ b/sdk/constructive-react/src/api/orm/index.ts @@ -34,7 +34,6 @@ import { ForeignKeyConstraintModel } from './models/foreignKeyConstraint'; import { FullTextSearchModel } from './models/fullTextSearch'; import { FunctionModel } from './models/function'; import { GetSitePreviewsRecordModel } from './models/getSitePreviewsRecord'; -import { HostnameBindingModel } from './models/hostnameBinding'; import { IdentityProviderRegistryModel } from './models/identityProviderRegistry'; import { IndexModel } from './models/index'; import { ListSuspendedDatabasesRecordModel } from './models/listSuspendedDatabasesRecord'; @@ -69,7 +68,6 @@ import { PrimaryKeyConstraintModel } from './models/primaryKeyConstraint'; import { PubkeySettingModel } from './models/pubkeySetting'; import { RedirectModel } from './models/redirect'; import { RlsSettingModel } from './models/rlsSetting'; -import { RouteBindingModel } from './models/routeBinding'; import { RouteModel } from './models/route'; import { SchemaModel } from './models/schema'; import { SchemaGrantModel } from './models/schemaGrant'; @@ -161,7 +159,6 @@ export function createClient(config: OrmClientConfig) { fullTextSearch: new FullTextSearchModel(client), function: new FunctionModel(client), getSitePreviewsRecord: new GetSitePreviewsRecordModel(client), - hostnameBinding: new HostnameBindingModel(client), identityProviderRegistry: new IdentityProviderRegistryModel(client), index: new IndexModel(client), listSuspendedDatabasesRecord: new ListSuspendedDatabasesRecordModel(client), @@ -196,7 +193,6 @@ export function createClient(config: OrmClientConfig) { pubkeySetting: new PubkeySettingModel(client), redirect: new RedirectModel(client), rlsSetting: new RlsSettingModel(client), - routeBinding: new RouteBindingModel(client), route: new RouteModel(client), schema: new SchemaModel(client), schemaGrant: new SchemaGrantModel(client), diff --git a/sdk/constructive-react/src/api/orm/input-types.ts b/sdk/constructive-react/src/api/orm/input-types.ts index ff96fdb8a4..d9fd64ac28 100644 --- a/sdk/constructive-react/src/api/orm/input-types.ts +++ b/sdk/constructive-react/src/api/orm/input-types.ts @@ -824,28 +824,6 @@ export interface GetSitePreviewsRecord { commitId?: string | null; name?: string | null; } -/** Compiled hostname index maintained by domain sync triggers; read only through the resolver */ -export interface HostnameBinding { - /** Domain row this binding was compiled from */ - domainId?: string | null; - /** Lowercase hostname (exact or *.parent wildcard) */ - hostname?: string | null; - id: string; - /** Whether this binding is a wildcard claim */ - isWildcard?: boolean | null; - /** Whether the platform drives this hostname's lifecycle */ - managed?: boolean | null; - /** Parent hostname a wildcard binding covers */ - parentHostname?: string | null; - /** TLS secret name compiled from the domain row */ - tlsSecretName?: string | null; - /** Certificate lifecycle state compiled from the domain row */ - tlsStatus?: string | null; - /** When this binding was last recompiled */ - updatedAt?: string | null; - /** Ownership verification state compiled from the domain row */ - verificationStatus?: string | null; -} export interface IdentityProviderRegistry { authorizationUrl?: string | null; displayName?: string | null; @@ -900,6 +878,8 @@ export interface ManagedDomain { id: string; /** Whether this managed hostname is a *.parent wildcard */ isWildcard?: boolean | null; + /** Port the edge serves this hostname on when it is not the scheme default; NULL on a standard edge */ + publicPort?: number | null; /** When TLS last became ready */ tlsReadyAt?: string | null; /** TLS provisioning state for this managed hostname */ @@ -1215,6 +1195,8 @@ export interface PlatformManagedDomain { id: string; /** Whether this managed hostname is a *.parent wildcard */ isWildcard?: boolean | null; + /** Port the edge serves this hostname on when it is not the scheme default; NULL on a standard edge */ + publicPort?: number | null; /** When TLS last became ready */ tlsReadyAt?: string | null; /** TLS provisioning state for this managed hostname */ @@ -1518,36 +1500,6 @@ export interface RlsSetting { roleSchemaId?: string | null; updatedAt?: string | null; } -/** Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver */ -export interface RouteBinding { - /** Domain row the source route binds */ - domainId?: string | null; - id: string; - /** Active flag compiled from the source route */ - isActive?: boolean | null; - /** HTTP method this binding matches; NULL matches any method */ - method?: string | null; - /** Path prefix this binding matches */ - path?: string | null; - /** Priority compiled from the source route */ - priority?: number | null; - /** Site whose surface the source route serves; NULL when it serves no site */ - servingSiteId?: string | null; - /** Api catalog row the source route targets */ - targetApiId?: string | null; - /** Bucket catalog row the source route targets */ - targetBucketId?: string | null; - /** Function catalog row the source route targets */ - targetFunctionId?: string | null; - /** Redirect catalog row the source route targets */ - targetRedirectId?: string | null; - /** Resource catalog row (a Service resource) the source route targets */ - targetServiceId?: string | null; - /** Site catalog row the source route targets */ - targetSiteId?: string | null; - /** When this binding was last recompiled */ - updatedAt?: string | null; -} /** Routes binding a domain hostname and path to a typed catalog target */ export interface Route { /** Whether this route answers callers with no identity. Requires the target function to declare anonymous_callable; default false = an identity is required */ @@ -1917,6 +1869,7 @@ export interface UniqueConstraint { initiallyDeferred?: boolean | null; isDeferrable?: boolean | null; name?: string | null; + nullsNotDistinct?: boolean | null; smartTags?: Record | null; tableId?: string | null; tags?: string[] | null; @@ -2184,7 +2137,6 @@ export interface FunctionRelations { triggers?: ConnectionResult; } export interface GetSitePreviewsRecordRelations {} -export interface HostnameBindingRelations {} export interface IdentityProviderRegistryRelations {} export interface IndexRelations { database?: Database | null; @@ -2317,7 +2269,6 @@ export interface RlsSettingRelations { currentUserAgentFunction?: Function | null; roleSchema?: Schema | null; } -export interface RouteBindingRelations {} export interface RouteRelations { domain?: Domain | null; servingSite?: Site | null; @@ -2511,7 +2462,6 @@ export type FullTextSearchWithRelations = FullTextSearch & FullTextSearchRelatio export type FunctionWithRelations = Function & FunctionRelations; export type GetSitePreviewsRecordWithRelations = GetSitePreviewsRecord & GetSitePreviewsRecordRelations; -export type HostnameBindingWithRelations = HostnameBinding & HostnameBindingRelations; export type IdentityProviderRegistryWithRelations = IdentityProviderRegistry & IdentityProviderRegistryRelations; export type IndexWithRelations = Index & IndexRelations; @@ -2559,7 +2509,6 @@ export type PrimaryKeyConstraintWithRelations = PrimaryKeyConstraint & export type PubkeySettingWithRelations = PubkeySetting & PubkeySettingRelations; export type RedirectWithRelations = Redirect & RedirectRelations; export type RlsSettingWithRelations = RlsSetting & RlsSettingRelations; -export type RouteBindingWithRelations = RouteBinding & RouteBindingRelations; export type RouteWithRelations = Route & RouteRelations; export type SchemaWithRelations = Schema & SchemaRelations; export type SchemaGrantWithRelations = SchemaGrant & SchemaGrantRelations; @@ -3473,18 +3422,6 @@ export type GetSitePreviewsRecordSelect = { commitId?: boolean; name?: boolean; }; -export type HostnameBindingSelect = { - domainId?: boolean; - hostname?: boolean; - id?: boolean; - isWildcard?: boolean; - managed?: boolean; - parentHostname?: boolean; - tlsSecretName?: boolean; - tlsStatus?: boolean; - updatedAt?: boolean; - verificationStatus?: boolean; -}; export type IdentityProviderRegistrySelect = { authorizationUrl?: boolean; displayName?: boolean; @@ -3538,6 +3475,7 @@ export type ManagedDomainSelect = { domain?: boolean; id?: boolean; isWildcard?: boolean; + publicPort?: boolean; tlsReadyAt?: boolean; tlsStatus?: boolean; updatedAt?: boolean; @@ -3830,6 +3768,7 @@ export type PlatformManagedDomainSelect = { domain?: boolean; id?: boolean; isWildcard?: boolean; + publicPort?: boolean; tlsReadyAt?: boolean; tlsStatus?: boolean; updatedAt?: boolean; @@ -4176,22 +4115,6 @@ export type RlsSettingSelect = { select: SchemaSelect; }; }; -export type RouteBindingSelect = { - domainId?: boolean; - id?: boolean; - isActive?: boolean; - method?: boolean; - path?: boolean; - priority?: boolean; - servingSiteId?: boolean; - targetApiId?: boolean; - targetBucketId?: boolean; - targetFunctionId?: boolean; - targetRedirectId?: boolean; - targetServiceId?: boolean; - targetSiteId?: boolean; - updatedAt?: boolean; -}; export type RouteSelect = { anonymous?: boolean; config?: boolean; @@ -4821,6 +4744,7 @@ export type UniqueConstraintSelect = { initiallyDeferred?: boolean; isDeferrable?: boolean; name?: boolean; + nullsNotDistinct?: boolean; smartTags?: boolean; tableId?: boolean; tags?: boolean; @@ -6323,34 +6247,6 @@ export interface GetSitePreviewsRecordFilter { or?: GetSitePreviewsRecordFilter[]; not?: GetSitePreviewsRecordFilter; } -export interface HostnameBindingFilter { - /** Checks for all expressions in this list. */ - and?: HostnameBindingFilter[]; - /** Filter by the object’s `domainId` field. */ - domainId?: UUIDFilter; - /** Filter by the object’s `hostname` field. */ - hostname?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isWildcard` field. */ - isWildcard?: BooleanFilter; - /** Filter by the object’s `managed` field. */ - managed?: BooleanFilter; - /** Negates the expression. */ - not?: HostnameBindingFilter; - /** Checks for any expressions in this list. */ - or?: HostnameBindingFilter[]; - /** Filter by the object’s `parentHostname` field. */ - parentHostname?: StringFilter; - /** Filter by the object’s `tlsSecretName` field. */ - tlsSecretName?: StringFilter; - /** Filter by the object’s `tlsStatus` field. */ - tlsStatus?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `verificationStatus` field. */ - verificationStatus?: StringFilter; -} export interface IdentityProviderRegistryFilter { /** Checks for all expressions in this list. */ and?: IdentityProviderRegistryFilter[]; @@ -6466,6 +6362,8 @@ export interface ManagedDomainFilter { not?: ManagedDomainFilter; /** Checks for any expressions in this list. */ or?: ManagedDomainFilter[]; + /** Filter by the object’s `publicPort` field. */ + publicPort?: IntFilter; /** Filter by the object’s `tlsReadyAt` field. */ tlsReadyAt?: DatetimeFilter; /** Filter by the object’s `tlsStatus` field. */ @@ -6995,6 +6893,8 @@ export interface PlatformManagedDomainFilter { platformDomainVerificationsByManagedDomainId?: PlatformManagedDomainToManyPlatformDomainVerificationFilter; /** `platformDomainVerificationsByManagedDomainId` exist. */ platformDomainVerificationsByManagedDomainIdExist?: boolean; + /** Filter by the object’s `publicPort` field. */ + publicPort?: IntFilter; /** Filter by the object’s `tlsReadyAt` field. */ tlsReadyAt?: DatetimeFilter; /** Filter by the object’s `tlsStatus` field. */ @@ -7574,42 +7474,6 @@ export interface RlsSettingFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface RouteBindingFilter { - /** Checks for all expressions in this list. */ - and?: RouteBindingFilter[]; - /** Filter by the object’s `domainId` field. */ - domainId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `method` field. */ - method?: StringFilter; - /** Negates the expression. */ - not?: RouteBindingFilter; - /** Checks for any expressions in this list. */ - or?: RouteBindingFilter[]; - /** Filter by the object’s `path` field. */ - path?: StringFilter; - /** Filter by the object’s `priority` field. */ - priority?: IntFilter; - /** Filter by the object’s `servingSiteId` field. */ - servingSiteId?: UUIDFilter; - /** Filter by the object’s `targetApiId` field. */ - targetApiId?: UUIDFilter; - /** Filter by the object’s `targetBucketId` field. */ - targetBucketId?: UUIDFilter; - /** Filter by the object’s `targetFunctionId` field. */ - targetFunctionId?: UUIDFilter; - /** Filter by the object’s `targetRedirectId` field. */ - targetRedirectId?: UUIDFilter; - /** Filter by the object’s `targetServiceId` field. */ - targetServiceId?: UUIDFilter; - /** Filter by the object’s `targetSiteId` field. */ - targetSiteId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} export interface RouteFilter { /** Checks for all expressions in this list. */ and?: RouteFilter[]; @@ -8503,6 +8367,8 @@ export interface UniqueConstraintFilter { name?: StringFilter; /** Negates the expression. */ not?: UniqueConstraintFilter; + /** Filter by the object’s `nullsNotDistinct` field. */ + nullsNotDistinct?: BooleanFilter; /** Checks for any expressions in this list. */ or?: UniqueConstraintFilter[]; /** Filter by the object’s `smartTags` field. */ @@ -9671,30 +9537,6 @@ export type GetSitePreviewsRecordsOrderBy = | 'COMMIT_ID_DESC' | 'NAME_ASC' | 'NAME_DESC'; -export type HostnameBindingOrderBy = - | 'DOMAIN_ID_ASC' - | 'DOMAIN_ID_DESC' - | 'HOSTNAME_ASC' - | 'HOSTNAME_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_WILDCARD_ASC' - | 'IS_WILDCARD_DESC' - | 'MANAGED_ASC' - | 'MANAGED_DESC' - | 'NATURAL' - | 'PARENT_HOSTNAME_ASC' - | 'PARENT_HOSTNAME_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'TLS_SECRET_NAME_ASC' - | 'TLS_SECRET_NAME_DESC' - | 'TLS_STATUS_ASC' - | 'TLS_STATUS_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'VERIFICATION_STATUS_ASC' - | 'VERIFICATION_STATUS_DESC'; export type IdentityProviderRegistryOrderBy = | 'AUTHORIZATION_URL_ASC' | 'AUTHORIZATION_URL_DESC' @@ -9791,6 +9633,8 @@ export type ManagedDomainOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'PUBLIC_PORT_ASC' + | 'PUBLIC_PORT_DESC' | 'TLS_READY_AT_ASC' | 'TLS_READY_AT_DESC' | 'TLS_STATUS_ASC' @@ -10183,6 +10027,8 @@ export type PlatformManagedDomainOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'PUBLIC_PORT_ASC' + | 'PUBLIC_PORT_DESC' | 'TLS_READY_AT_ASC' | 'TLS_READY_AT_DESC' | 'TLS_STATUS_ASC' @@ -10573,38 +10419,6 @@ export type RlsSettingOrderBy = | 'ROLE_SCHEMA_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type RouteBindingOrderBy = - | 'DOMAIN_ID_ASC' - | 'DOMAIN_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'METHOD_ASC' - | 'METHOD_DESC' - | 'NATURAL' - | 'PATH_ASC' - | 'PATH_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PRIORITY_ASC' - | 'PRIORITY_DESC' - | 'SERVING_SITE_ID_ASC' - | 'SERVING_SITE_ID_DESC' - | 'TARGET_API_ID_ASC' - | 'TARGET_API_ID_DESC' - | 'TARGET_BUCKET_ID_ASC' - | 'TARGET_BUCKET_ID_DESC' - | 'TARGET_FUNCTION_ID_ASC' - | 'TARGET_FUNCTION_ID_DESC' - | 'TARGET_REDIRECT_ID_ASC' - | 'TARGET_REDIRECT_ID_DESC' - | 'TARGET_SERVICE_ID_ASC' - | 'TARGET_SERVICE_ID_DESC' - | 'TARGET_SITE_ID_ASC' - | 'TARGET_SITE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type RouteOrderBy = | 'ANONYMOUS_ASC' | 'ANONYMOUS_DESC' @@ -11159,6 +10973,8 @@ export type UniqueConstraintOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' + | 'NULLS_NOT_DISTINCT_ASC' + | 'NULLS_NOT_DISTINCT_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SMART_TAGS_ASC' @@ -12418,38 +12234,6 @@ export interface DeleteGetSitePreviewsRecordInput { clientMutationId?: string; id: string; } -export interface CreateHostnameBindingInput { - clientMutationId?: string; - hostnameBinding: { - domainId: string; - hostname: string; - isWildcard?: boolean; - managed?: boolean; - parentHostname?: string; - tlsSecretName?: string; - tlsStatus?: string; - verificationStatus?: string; - }; -} -export interface HostnameBindingPatch { - domainId?: string | null; - hostname?: string | null; - isWildcard?: boolean | null; - managed?: boolean | null; - parentHostname?: string | null; - tlsSecretName?: string | null; - tlsStatus?: string | null; - verificationStatus?: string | null; -} -export interface UpdateHostnameBindingInput { - clientMutationId?: string; - id: string; - hostnameBindingPatch: HostnameBindingPatch; -} -export interface DeleteHostnameBindingInput { - clientMutationId?: string; - id: string; -} export interface CreateIdentityProviderRegistryInput { clientMutationId?: string; identityProviderRegistry: { @@ -12562,6 +12346,7 @@ export interface CreateManagedDomainInput { databaseId: string; domain: string; isWildcard?: boolean; + publicPort?: number; tlsReadyAt?: string; tlsStatus?: string; updatedByPrincipal?: string; @@ -12577,6 +12362,7 @@ export interface ManagedDomainPatch { databaseId?: string | null; domain?: string | null; isWildcard?: boolean | null; + publicPort?: number | null; tlsReadyAt?: string | null; tlsStatus?: string | null; updatedByPrincipal?: string | null; @@ -13057,6 +12843,7 @@ export interface CreatePlatformManagedDomainInput { createdByPrincipal?: string; domain: string; isWildcard?: boolean; + publicPort?: number; tlsReadyAt?: string; tlsStatus?: string; updatedByPrincipal?: string; @@ -13071,6 +12858,7 @@ export interface PlatformManagedDomainPatch { createdByPrincipal?: string | null; domain?: string | null; isWildcard?: boolean | null; + publicPort?: number | null; tlsReadyAt?: string | null; tlsStatus?: string | null; updatedByPrincipal?: string | null; @@ -13558,46 +13346,6 @@ export interface DeleteRlsSettingInput { clientMutationId?: string; id: string; } -export interface CreateRouteBindingInput { - clientMutationId?: string; - routeBinding: { - domainId: string; - isActive?: boolean; - method?: string; - path: string; - priority?: number; - servingSiteId?: string; - targetApiId?: string; - targetBucketId?: string; - targetFunctionId?: string; - targetRedirectId?: string; - targetServiceId?: string; - targetSiteId?: string; - }; -} -export interface RouteBindingPatch { - domainId?: string | null; - isActive?: boolean | null; - method?: string | null; - path?: string | null; - priority?: number | null; - servingSiteId?: string | null; - targetApiId?: string | null; - targetBucketId?: string | null; - targetFunctionId?: string | null; - targetRedirectId?: string | null; - targetServiceId?: string | null; - targetSiteId?: string | null; -} -export interface UpdateRouteBindingInput { - clientMutationId?: string; - id: string; - routeBindingPatch: RouteBindingPatch; -} -export interface DeleteRouteBindingInput { - clientMutationId?: string; - id: string; -} export interface CreateRouteInput { clientMutationId?: string; route: { @@ -14270,6 +14018,7 @@ export interface CreateUniqueConstraintInput { initiallyDeferred?: boolean; isDeferrable?: boolean; name?: string; + nullsNotDistinct?: boolean; smartTags?: Record; tableId: string; tags?: string[]; @@ -14285,6 +14034,7 @@ export interface UniqueConstraintPatch { initiallyDeferred?: boolean | null; isDeferrable?: boolean | null; name?: string | null; + nullsNotDistinct?: boolean | null; smartTags?: Record | null; tableId?: string | null; tags?: string[] | null; @@ -16435,28 +16185,6 @@ export interface FunctionInput { tags?: string[]; volatility?: string; } -/** An input for mutations affecting `HostnameBinding` */ -export interface HostnameBindingInput { - /** Domain row this binding was compiled from */ - domainId: string; - /** Lowercase hostname (exact or *.parent wildcard) */ - hostname: string; - id?: string; - /** Whether this binding is a wildcard claim */ - isWildcard?: boolean; - /** Whether the platform drives this hostname's lifecycle */ - managed?: boolean; - /** Parent hostname a wildcard binding covers */ - parentHostname?: string; - /** TLS secret name compiled from the domain row */ - tlsSecretName?: string; - /** Certificate lifecycle state compiled from the domain row */ - tlsStatus?: string; - /** When this binding was last recompiled */ - updatedAt?: string; - /** Ownership verification state compiled from the domain row */ - verificationStatus?: string; -} /** An input for mutations affecting `IdentityProviderRegistry` */ export interface IdentityProviderRegistryInput { authorizationUrl?: string; @@ -16506,6 +16234,8 @@ export interface ManagedDomainInput { id?: string; /** Whether this managed hostname is a *.parent wildcard */ isWildcard?: boolean; + /** Port the edge serves this hostname on when it is not the scheme default; NULL on a standard edge */ + publicPort?: number; /** When TLS last became ready */ tlsReadyAt?: string; /** TLS provisioning state for this managed hostname */ @@ -16819,6 +16549,8 @@ export interface PlatformManagedDomainInput { id?: string; /** Whether this managed hostname is a *.parent wildcard */ isWildcard?: boolean; + /** Port the edge serves this hostname on when it is not the scheme default; NULL on a standard edge */ + publicPort?: number; /** When TLS last became ready */ tlsReadyAt?: string; /** TLS provisioning state for this managed hostname */ @@ -17124,36 +16856,6 @@ export interface RlsSettingInput { roleSchemaId?: string; updatedAt?: string; } -/** An input for mutations affecting `RouteBinding` */ -export interface RouteBindingInput { - /** Domain row the source route binds */ - domainId: string; - id?: string; - /** Active flag compiled from the source route */ - isActive?: boolean; - /** HTTP method this binding matches; NULL matches any method */ - method?: string; - /** Path prefix this binding matches */ - path: string; - /** Priority compiled from the source route */ - priority?: number; - /** Site whose surface the source route serves; NULL when it serves no site */ - servingSiteId?: string; - /** Api catalog row the source route targets */ - targetApiId?: string; - /** Bucket catalog row the source route targets */ - targetBucketId?: string; - /** Function catalog row the source route targets */ - targetFunctionId?: string; - /** Redirect catalog row the source route targets */ - targetRedirectId?: string; - /** Resource catalog row (a Service resource) the source route targets */ - targetServiceId?: string; - /** Site catalog row the source route targets */ - targetSiteId?: string; - /** When this binding was last recompiled */ - updatedAt?: string; -} /** An input for mutations affecting `Route` */ export interface RouteInput { /** Whether this route answers callers with no identity. Requires the target function to declare anonymous_callable; default false = an identity is required */ @@ -17518,6 +17220,7 @@ export interface UniqueConstraintInput { initiallyDeferred?: boolean; isDeferrable?: boolean; name?: string; + nullsNotDistinct?: boolean; smartTags?: Record; tableId: string; tags?: string[]; @@ -19002,6 +18705,8 @@ export interface UniqueConstraintFilter { name?: StringFilter; /** Negates the expression. */ not?: UniqueConstraintFilter; + /** Filter by the object’s `nullsNotDistinct` field. */ + nullsNotDistinct?: BooleanFilter; /** Checks for any expressions in this list. */ or?: UniqueConstraintFilter[]; /** Filter by the object’s `smartTags` field. */ @@ -20540,6 +20245,8 @@ export interface ManagedDomainFilter { not?: ManagedDomainFilter; /** Checks for any expressions in this list. */ or?: ManagedDomainFilter[]; + /** Filter by the object’s `publicPort` field. */ + publicPort?: IntFilter; /** Filter by the object’s `tlsReadyAt` field. */ tlsReadyAt?: DatetimeFilter; /** Filter by the object’s `tlsStatus` field. */ @@ -20832,6 +20539,8 @@ export interface PlatformManagedDomainFilter { platformDomainVerificationsByManagedDomainId?: PlatformManagedDomainToManyPlatformDomainVerificationFilter; /** `platformDomainVerificationsByManagedDomainId` exist. */ platformDomainVerificationsByManagedDomainIdExist?: boolean; + /** Filter by the object’s `publicPort` field. */ + publicPort?: IntFilter; /** Filter by the object’s `tlsReadyAt` field. */ tlsReadyAt?: DatetimeFilter; /** Filter by the object’s `tlsStatus` field. */ @@ -22886,51 +22595,6 @@ export type DeleteFunctionPayloadSelect = { select: FunctionEdgeSelect; }; }; -export interface CreateHostnameBindingPayload { - clientMutationId?: string | null; - /** The `HostnameBinding` that was created by this mutation. */ - hostnameBinding?: HostnameBinding | null; - hostnameBindingEdge?: HostnameBindingEdge | null; -} -export type CreateHostnameBindingPayloadSelect = { - clientMutationId?: boolean; - hostnameBinding?: { - select: HostnameBindingSelect; - }; - hostnameBindingEdge?: { - select: HostnameBindingEdgeSelect; - }; -}; -export interface UpdateHostnameBindingPayload { - clientMutationId?: string | null; - /** The `HostnameBinding` that was updated by this mutation. */ - hostnameBinding?: HostnameBinding | null; - hostnameBindingEdge?: HostnameBindingEdge | null; -} -export type UpdateHostnameBindingPayloadSelect = { - clientMutationId?: boolean; - hostnameBinding?: { - select: HostnameBindingSelect; - }; - hostnameBindingEdge?: { - select: HostnameBindingEdgeSelect; - }; -}; -export interface DeleteHostnameBindingPayload { - clientMutationId?: string | null; - /** The `HostnameBinding` that was deleted by this mutation. */ - hostnameBinding?: HostnameBinding | null; - hostnameBindingEdge?: HostnameBindingEdge | null; -} -export type DeleteHostnameBindingPayloadSelect = { - clientMutationId?: boolean; - hostnameBinding?: { - select: HostnameBindingSelect; - }; - hostnameBindingEdge?: { - select: HostnameBindingEdgeSelect; - }; -}; export interface CreateIdentityProviderRegistryPayload { clientMutationId?: string | null; /** The `IdentityProviderRegistry` that was created by this mutation. */ @@ -24371,51 +24035,6 @@ export type DeleteRlsSettingPayloadSelect = { select: RlsSettingEdgeSelect; }; }; -export interface CreateRouteBindingPayload { - clientMutationId?: string | null; - /** The `RouteBinding` that was created by this mutation. */ - routeBinding?: RouteBinding | null; - routeBindingEdge?: RouteBindingEdge | null; -} -export type CreateRouteBindingPayloadSelect = { - clientMutationId?: boolean; - routeBinding?: { - select: RouteBindingSelect; - }; - routeBindingEdge?: { - select: RouteBindingEdgeSelect; - }; -}; -export interface UpdateRouteBindingPayload { - clientMutationId?: string | null; - /** The `RouteBinding` that was updated by this mutation. */ - routeBinding?: RouteBinding | null; - routeBindingEdge?: RouteBindingEdge | null; -} -export type UpdateRouteBindingPayloadSelect = { - clientMutationId?: boolean; - routeBinding?: { - select: RouteBindingSelect; - }; - routeBindingEdge?: { - select: RouteBindingEdgeSelect; - }; -}; -export interface DeleteRouteBindingPayload { - clientMutationId?: string | null; - /** The `RouteBinding` that was deleted by this mutation. */ - routeBinding?: RouteBinding | null; - routeBindingEdge?: RouteBindingEdge | null; -} -export type DeleteRouteBindingPayloadSelect = { - clientMutationId?: boolean; - routeBinding?: { - select: RouteBindingSelect; - }; - routeBindingEdge?: { - select: RouteBindingEdgeSelect; - }; -}; export interface CreateRoutePayload { clientMutationId?: string | null; /** The `Route` that was created by this mutation. */ @@ -26090,18 +25709,6 @@ export type FunctionEdgeSelect = { select: FunctionSelect; }; }; -/** A `HostnameBinding` edge in the connection. */ -export interface HostnameBindingEdge { - cursor?: string | null; - /** The `HostnameBinding` at the end of the edge. */ - node?: HostnameBinding | null; -} -export type HostnameBindingEdgeSelect = { - cursor?: boolean; - node?: { - select: HostnameBindingSelect; - }; -}; /** A `IdentityProviderRegistry` edge in the connection. */ export interface IdentityProviderRegistryEdge { cursor?: string | null; @@ -26462,18 +26069,6 @@ export type RlsSettingEdgeSelect = { select: RlsSettingSelect; }; }; -/** A `RouteBinding` edge in the connection. */ -export interface RouteBindingEdge { - cursor?: string | null; - /** The `RouteBinding` at the end of the edge. */ - node?: RouteBinding | null; -} -export type RouteBindingEdgeSelect = { - cursor?: boolean; - node?: { - select: RouteBindingSelect; - }; -}; /** A `Schema` edge in the connection. */ export interface SchemaEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/api/orm/models/hostnameBinding.ts b/sdk/constructive-react/src/api/orm/models/hostnameBinding.ts deleted file mode 100644 index f720f177ad..0000000000 --- a/sdk/constructive-react/src/api/orm/models/hostnameBinding.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * HostnameBinding model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - HostnameBinding, - HostnameBindingWithRelations, - HostnameBindingSelect, - HostnameBindingFilter, - HostnameBindingOrderBy, - CreateHostnameBindingInput, - UpdateHostnameBindingInput, - HostnameBindingPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class HostnameBindingModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - hostnameBindings: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'HostnameBinding', - 'hostnameBindings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'HostnameBindingFilter', - 'HostnameBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'HostnameBinding', - fieldName: 'hostnameBindings', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - hostnameBinding: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'HostnameBinding', - 'hostnameBindings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'HostnameBindingFilter', - 'HostnameBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'HostnameBinding', - fieldName: 'hostnameBinding', - document, - variables, - transform: (data: { - hostnameBindings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - hostnameBinding: data.hostnameBindings?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - hostnameBinding: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'HostnameBinding', - 'hostnameBindings', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'HostnameBindingFilter', - 'HostnameBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'HostnameBinding', - fieldName: 'hostnameBinding', - document, - variables, - transform: (data: { - hostnameBindings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - hostnameBinding: data.hostnameBindings?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createHostnameBinding: { - hostnameBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'HostnameBinding', - 'createHostnameBinding', - 'hostnameBinding', - args.select, - args.data, - 'CreateHostnameBindingInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'HostnameBinding', - fieldName: 'createHostnameBinding', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - HostnameBindingPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateHostnameBinding: { - hostnameBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'HostnameBinding', - 'updateHostnameBinding', - 'hostnameBinding', - args.select, - args.where.id, - args.data, - 'UpdateHostnameBindingInput', - 'id', - 'hostnameBindingPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'HostnameBinding', - fieldName: 'updateHostnameBinding', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteHostnameBinding: { - hostnameBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'HostnameBinding', - 'deleteHostnameBinding', - 'hostnameBinding', - { - id: args.where.id, - }, - 'DeleteHostnameBindingInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'HostnameBinding', - fieldName: 'deleteHostnameBinding', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/api/orm/models/index.ts b/sdk/constructive-react/src/api/orm/models/index.ts index 0ef42de592..207f507c84 100644 --- a/sdk/constructive-react/src/api/orm/models/index.ts +++ b/sdk/constructive-react/src/api/orm/models/index.ts @@ -32,7 +32,6 @@ export { ForeignKeyConstraintModel } from './foreignKeyConstraint'; export { FullTextSearchModel } from './fullTextSearch'; export { FunctionModel } from './function'; export { GetSitePreviewsRecordModel } from './getSitePreviewsRecord'; -export { HostnameBindingModel } from './hostnameBinding'; export { IdentityProviderRegistryModel } from './identityProviderRegistry'; export { IndexModel } from './indexModel'; export { ListSuspendedDatabasesRecordModel } from './listSuspendedDatabasesRecord'; @@ -67,7 +66,6 @@ export { PrimaryKeyConstraintModel } from './primaryKeyConstraint'; export { PubkeySettingModel } from './pubkeySetting'; export { RedirectModel } from './redirect'; export { RlsSettingModel } from './rlsSetting'; -export { RouteBindingModel } from './routeBinding'; export { RouteModel } from './route'; export { SchemaModel } from './schema'; export { SchemaGrantModel } from './schemaGrant'; diff --git a/sdk/constructive-react/src/api/orm/models/routeBinding.ts b/sdk/constructive-react/src/api/orm/models/routeBinding.ts deleted file mode 100644 index 3389ee7e37..0000000000 --- a/sdk/constructive-react/src/api/orm/models/routeBinding.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * RouteBinding model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - RouteBinding, - RouteBindingWithRelations, - RouteBindingSelect, - RouteBindingFilter, - RouteBindingOrderBy, - CreateRouteBindingInput, - UpdateRouteBindingInput, - RouteBindingPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class RouteBindingModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - routeBindings: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'RouteBinding', - 'routeBindings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'RouteBindingFilter', - 'RouteBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'RouteBinding', - fieldName: 'routeBindings', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - routeBinding: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'RouteBinding', - 'routeBindings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'RouteBindingFilter', - 'RouteBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'RouteBinding', - fieldName: 'routeBinding', - document, - variables, - transform: (data: { - routeBindings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - routeBinding: data.routeBindings?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - routeBinding: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'RouteBinding', - 'routeBindings', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'RouteBindingFilter', - 'RouteBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'RouteBinding', - fieldName: 'routeBinding', - document, - variables, - transform: (data: { - routeBindings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - routeBinding: data.routeBindings?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createRouteBinding: { - routeBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'RouteBinding', - 'createRouteBinding', - 'routeBinding', - args.select, - args.data, - 'CreateRouteBindingInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'RouteBinding', - fieldName: 'createRouteBinding', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - RouteBindingPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateRouteBinding: { - routeBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'RouteBinding', - 'updateRouteBinding', - 'routeBinding', - args.select, - args.where.id, - args.data, - 'UpdateRouteBindingInput', - 'id', - 'routeBindingPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'RouteBinding', - fieldName: 'updateRouteBinding', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteRouteBinding: { - routeBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'RouteBinding', - 'deleteRouteBinding', - 'routeBinding', - { - id: args.where.id, - }, - 'DeleteRouteBindingInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'RouteBinding', - fieldName: 'deleteRouteBinding', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/api/schema-types.ts b/sdk/constructive-react/src/api/schema-types.ts index a96993b34a..4e1c2036b3 100644 --- a/sdk/constructive-react/src/api/schema-types.ts +++ b/sdk/constructive-react/src/api/schema-types.ts @@ -34,7 +34,6 @@ import type { FullTextSearch, Function, GetSitePreviewsRecord, - HostnameBinding, IdentityProviderRegistry, Index, ListSuspendedDatabasesRecord, @@ -70,7 +69,6 @@ import type { Redirect, RlsSetting, Route, - RouteBinding, Schema, SchemaGrant, Site, @@ -1033,31 +1031,6 @@ export type FunctionOrderBy = | 'TAGS_DESC' | 'VOLATILITY_ASC' | 'VOLATILITY_DESC'; -/** Methods to use when ordering `HostnameBinding`. */ -export type HostnameBindingOrderBy = - | 'DOMAIN_ID_ASC' - | 'DOMAIN_ID_DESC' - | 'HOSTNAME_ASC' - | 'HOSTNAME_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_WILDCARD_ASC' - | 'IS_WILDCARD_DESC' - | 'MANAGED_ASC' - | 'MANAGED_DESC' - | 'NATURAL' - | 'PARENT_HOSTNAME_ASC' - | 'PARENT_HOSTNAME_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'TLS_SECRET_NAME_ASC' - | 'TLS_SECRET_NAME_DESC' - | 'TLS_STATUS_ASC' - | 'TLS_STATUS_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'VERIFICATION_STATUS_ASC' - | 'VERIFICATION_STATUS_DESC'; /** Methods to use when ordering `IdentityProviderRegistry`. */ export type IdentityProviderRegistryOrderBy = | 'AUTHORIZATION_URL_ASC' @@ -1143,6 +1116,8 @@ export type ManagedDomainOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'PUBLIC_PORT_ASC' + | 'PUBLIC_PORT_DESC' | 'TLS_READY_AT_ASC' | 'TLS_READY_AT_DESC' | 'TLS_STATUS_ASC' @@ -1542,6 +1517,8 @@ export type PlatformManagedDomainOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'PUBLIC_PORT_ASC' + | 'PUBLIC_PORT_DESC' | 'TLS_READY_AT_ASC' | 'TLS_READY_AT_DESC' | 'TLS_STATUS_ASC' @@ -1947,39 +1924,6 @@ export type RlsSettingOrderBy = | 'ROLE_SCHEMA_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `RouteBinding`. */ -export type RouteBindingOrderBy = - | 'DOMAIN_ID_ASC' - | 'DOMAIN_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'METHOD_ASC' - | 'METHOD_DESC' - | 'NATURAL' - | 'PATH_ASC' - | 'PATH_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PRIORITY_ASC' - | 'PRIORITY_DESC' - | 'SERVING_SITE_ID_ASC' - | 'SERVING_SITE_ID_DESC' - | 'TARGET_API_ID_ASC' - | 'TARGET_API_ID_DESC' - | 'TARGET_BUCKET_ID_ASC' - | 'TARGET_BUCKET_ID_DESC' - | 'TARGET_FUNCTION_ID_ASC' - | 'TARGET_FUNCTION_ID_DESC' - | 'TARGET_REDIRECT_ID_ASC' - | 'TARGET_REDIRECT_ID_DESC' - | 'TARGET_SERVICE_ID_ASC' - | 'TARGET_SERVICE_ID_DESC' - | 'TARGET_SITE_ID_ASC' - | 'TARGET_SITE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; /** Methods to use when ordering `Route`. */ export type RouteOrderBy = | 'ANONYMOUS_ASC' @@ -2555,6 +2499,8 @@ export type UniqueConstraintOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' + | 'NULLS_NOT_DISTINCT_ASC' + | 'NULLS_NOT_DISTINCT_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SMART_TAGS_ASC' @@ -3493,11 +3439,6 @@ export interface CreateFunctionInput { /** The `Function` to be created by this mutation. */ function: FunctionInput; } -export interface CreateHostnameBindingInput { - clientMutationId?: string; - /** The `HostnameBinding` to be created by this mutation. */ - hostnameBinding: HostnameBindingInput; -} export interface CreateIdentityProviderRegistryInput { clientMutationId?: string; /** The `IdentityProviderRegistry` to be created by this mutation. */ @@ -3658,11 +3599,6 @@ export interface CreateRlsSettingInput { /** The `RlsSetting` to be created by this mutation. */ rlsSetting: RlsSettingInput; } -export interface CreateRouteBindingInput { - clientMutationId?: string; - /** The `RouteBinding` to be created by this mutation. */ - routeBinding: RouteBindingInput; -} export interface CreateRouteInput { clientMutationId?: string; /** The `Route` to be created by this mutation. */ @@ -4721,10 +4657,6 @@ export interface DeleteFunctionInput { clientMutationId?: string; id: string; } -export interface DeleteHostnameBindingInput { - clientMutationId?: string; - id: string; -} export interface DeleteIdentityProviderRegistryInput { clientMutationId?: string; slug: string; @@ -4855,10 +4787,6 @@ export interface DeleteRlsSettingInput { clientMutationId?: string; id: string; } -export interface DeleteRouteBindingInput { - clientMutationId?: string; - id: string; -} export interface DeleteRouteInput { clientMutationId?: string; id: string; @@ -6528,79 +6456,6 @@ export interface FunctionToManyTriggerFilter { /** Filters to entities where at least one related entity matches. */ some?: TriggerFilter; } -/** A filter to be used against `HostnameBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface HostnameBindingFilter { - /** Checks for all expressions in this list. */ - and?: HostnameBindingFilter[]; - /** Filter by the object’s `domainId` field. */ - domainId?: UUIDFilter; - /** Filter by the object’s `hostname` field. */ - hostname?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isWildcard` field. */ - isWildcard?: BooleanFilter; - /** Filter by the object’s `managed` field. */ - managed?: BooleanFilter; - /** Negates the expression. */ - not?: HostnameBindingFilter; - /** Checks for any expressions in this list. */ - or?: HostnameBindingFilter[]; - /** Filter by the object’s `parentHostname` field. */ - parentHostname?: StringFilter; - /** Filter by the object’s `tlsSecretName` field. */ - tlsSecretName?: StringFilter; - /** Filter by the object’s `tlsStatus` field. */ - tlsStatus?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `verificationStatus` field. */ - verificationStatus?: StringFilter; -} -/** An input for mutations affecting `HostnameBinding` */ -export interface HostnameBindingInput { - /** Domain row this binding was compiled from */ - domainId: string; - /** Lowercase hostname (exact or *.parent wildcard) */ - hostname: string; - id?: string; - /** Whether this binding is a wildcard claim */ - isWildcard?: boolean; - /** Whether the platform drives this hostname's lifecycle */ - managed?: boolean; - /** Parent hostname a wildcard binding covers */ - parentHostname?: string; - /** TLS secret name compiled from the domain row */ - tlsSecretName?: string; - /** Certificate lifecycle state compiled from the domain row */ - tlsStatus?: string; - /** When this binding was last recompiled */ - updatedAt?: string; - /** Ownership verification state compiled from the domain row */ - verificationStatus?: string; -} -/** Represents an update to a `HostnameBinding`. Fields that are set will be updated. */ -export interface HostnameBindingPatch { - /** Domain row this binding was compiled from */ - domainId?: string; - /** Lowercase hostname (exact or *.parent wildcard) */ - hostname?: string; - id?: string; - /** Whether this binding is a wildcard claim */ - isWildcard?: boolean; - /** Whether the platform drives this hostname's lifecycle */ - managed?: boolean; - /** Parent hostname a wildcard binding covers */ - parentHostname?: string; - /** TLS secret name compiled from the domain row */ - tlsSecretName?: string; - /** Certificate lifecycle state compiled from the domain row */ - tlsStatus?: string; - /** When this binding was last recompiled */ - updatedAt?: string; - /** Ownership verification state compiled from the domain row */ - verificationStatus?: string; -} /** A filter to be used against `IdentityProviderRegistry` object types. All fields are combined with a logical ‘and.’ */ export interface IdentityProviderRegistryFilter { /** Checks for all expressions in this list. */ @@ -6773,6 +6628,8 @@ export interface ManagedDomainFilter { not?: ManagedDomainFilter; /** Checks for any expressions in this list. */ or?: ManagedDomainFilter[]; + /** Filter by the object’s `publicPort` field. */ + publicPort?: IntFilter; /** Filter by the object’s `tlsReadyAt` field. */ tlsReadyAt?: DatetimeFilter; /** Filter by the object’s `tlsStatus` field. */ @@ -6803,6 +6660,8 @@ export interface ManagedDomainInput { id?: string; /** Whether this managed hostname is a *.parent wildcard */ isWildcard?: boolean; + /** Port the edge serves this hostname on when it is not the scheme default; NULL on a standard edge */ + publicPort?: number; /** When TLS last became ready */ tlsReadyAt?: string; /** TLS provisioning state for this managed hostname */ @@ -6831,6 +6690,8 @@ export interface ManagedDomainPatch { id?: string; /** Whether this managed hostname is a *.parent wildcard */ isWildcard?: boolean; + /** Port the edge serves this hostname on when it is not the scheme default; NULL on a standard edge */ + publicPort?: number; /** When TLS last became ready */ tlsReadyAt?: string; /** TLS provisioning state for this managed hostname */ @@ -8051,6 +7912,8 @@ export interface PlatformManagedDomainFilter { platformDomainVerificationsByManagedDomainId?: PlatformManagedDomainToManyPlatformDomainVerificationFilter; /** `platformDomainVerificationsByManagedDomainId` exist. */ platformDomainVerificationsByManagedDomainIdExist?: boolean; + /** Filter by the object’s `publicPort` field. */ + publicPort?: IntFilter; /** Filter by the object’s `tlsReadyAt` field. */ tlsReadyAt?: DatetimeFilter; /** Filter by the object’s `tlsStatus` field. */ @@ -8079,6 +7942,8 @@ export interface PlatformManagedDomainInput { id?: string; /** Whether this managed hostname is a *.parent wildcard */ isWildcard?: boolean; + /** Port the edge serves this hostname on when it is not the scheme default; NULL on a standard edge */ + publicPort?: number; /** When TLS last became ready */ tlsReadyAt?: string; /** TLS provisioning state for this managed hostname */ @@ -8105,6 +7970,8 @@ export interface PlatformManagedDomainPatch { id?: string; /** Whether this managed hostname is a *.parent wildcard */ isWildcard?: boolean; + /** Port the edge serves this hostname on when it is not the scheme default; NULL on a standard edge */ + publicPort?: number; /** When TLS last became ready */ tlsReadyAt?: string; /** TLS provisioning state for this managed hostname */ @@ -9458,103 +9325,6 @@ export interface RlsSettingPatch { roleSchemaId?: string; updatedAt?: string; } -/** A filter to be used against `RouteBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface RouteBindingFilter { - /** Checks for all expressions in this list. */ - and?: RouteBindingFilter[]; - /** Filter by the object’s `domainId` field. */ - domainId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `method` field. */ - method?: StringFilter; - /** Negates the expression. */ - not?: RouteBindingFilter; - /** Checks for any expressions in this list. */ - or?: RouteBindingFilter[]; - /** Filter by the object’s `path` field. */ - path?: StringFilter; - /** Filter by the object’s `priority` field. */ - priority?: IntFilter; - /** Filter by the object’s `servingSiteId` field. */ - servingSiteId?: UUIDFilter; - /** Filter by the object’s `targetApiId` field. */ - targetApiId?: UUIDFilter; - /** Filter by the object’s `targetBucketId` field. */ - targetBucketId?: UUIDFilter; - /** Filter by the object’s `targetFunctionId` field. */ - targetFunctionId?: UUIDFilter; - /** Filter by the object’s `targetRedirectId` field. */ - targetRedirectId?: UUIDFilter; - /** Filter by the object’s `targetServiceId` field. */ - targetServiceId?: UUIDFilter; - /** Filter by the object’s `targetSiteId` field. */ - targetSiteId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `RouteBinding` */ -export interface RouteBindingInput { - /** Domain row the source route binds */ - domainId: string; - id?: string; - /** Active flag compiled from the source route */ - isActive?: boolean; - /** HTTP method this binding matches; NULL matches any method */ - method?: string; - /** Path prefix this binding matches */ - path: string; - /** Priority compiled from the source route */ - priority?: number; - /** Site whose surface the source route serves; NULL when it serves no site */ - servingSiteId?: string; - /** Api catalog row the source route targets */ - targetApiId?: string; - /** Bucket catalog row the source route targets */ - targetBucketId?: string; - /** Function catalog row the source route targets */ - targetFunctionId?: string; - /** Redirect catalog row the source route targets */ - targetRedirectId?: string; - /** Resource catalog row (a Service resource) the source route targets */ - targetServiceId?: string; - /** Site catalog row the source route targets */ - targetSiteId?: string; - /** When this binding was last recompiled */ - updatedAt?: string; -} -/** Represents an update to a `RouteBinding`. Fields that are set will be updated. */ -export interface RouteBindingPatch { - /** Domain row the source route binds */ - domainId?: string; - id?: string; - /** Active flag compiled from the source route */ - isActive?: boolean; - /** HTTP method this binding matches; NULL matches any method */ - method?: string; - /** Path prefix this binding matches */ - path?: string; - /** Priority compiled from the source route */ - priority?: number; - /** Site whose surface the source route serves; NULL when it serves no site */ - servingSiteId?: string; - /** Api catalog row the source route targets */ - targetApiId?: string; - /** Bucket catalog row the source route targets */ - targetBucketId?: string; - /** Function catalog row the source route targets */ - targetFunctionId?: string; - /** Redirect catalog row the source route targets */ - targetRedirectId?: string; - /** Resource catalog row (a Service resource) the source route targets */ - targetServiceId?: string; - /** Site catalog row the source route targets */ - targetSiteId?: string; - /** When this binding was last recompiled */ - updatedAt?: string; -} /** A filter to be used against `Route` object types. All fields are combined with a logical ‘and.’ */ export interface RouteFilter { /** Checks for all expressions in this list. */ @@ -11541,6 +11311,8 @@ export interface UniqueConstraintFilter { name?: StringFilter; /** Negates the expression. */ not?: UniqueConstraintFilter; + /** Filter by the object’s `nullsNotDistinct` field. */ + nullsNotDistinct?: BooleanFilter; /** Checks for any expressions in this list. */ or?: UniqueConstraintFilter[]; /** Filter by the object’s `smartTags` field. */ @@ -11573,6 +11345,7 @@ export interface UniqueConstraintInput { initiallyDeferred?: boolean; isDeferrable?: boolean; name?: string; + nullsNotDistinct?: boolean; smartTags?: unknown; tableId: string; tags?: string[]; @@ -11591,6 +11364,7 @@ export interface UniqueConstraintPatch { initiallyDeferred?: boolean; isDeferrable?: boolean; name?: string; + nullsNotDistinct?: boolean; smartTags?: unknown; tableId?: string; tags?: string[]; @@ -11774,12 +11548,6 @@ export interface UpdateFunctionInput { functionPatch: FunctionPatch; id: string; } -export interface UpdateHostnameBindingInput { - clientMutationId?: string; - /** An object where the defined keys will be set on the `HostnameBinding` being updated. */ - hostnameBindingPatch: HostnameBindingPatch; - id: string; -} export interface UpdateIdentityProviderRegistryInput { clientMutationId?: string; /** An object where the defined keys will be set on the `IdentityProviderRegistry` being updated. */ @@ -11974,12 +11742,6 @@ export interface UpdateRlsSettingInput { /** An object where the defined keys will be set on the `RlsSetting` being updated. */ rlsSettingPatch: RlsSettingPatch; } -export interface UpdateRouteBindingInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `RouteBinding` being updated. */ - routeBindingPatch: RouteBindingPatch; -} export interface UpdateRouteInput { clientMutationId?: string; id: string; @@ -12833,13 +12595,6 @@ export interface GetSitePreviewsConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `HostnameBinding` values. */ -export interface HostnameBindingConnection { - edges: HostnameBindingEdge[]; - nodes: HostnameBinding[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `IdentityProviderRegistry` values. */ export interface IdentityProviderRegistryConnection { edges: IdentityProviderRegistryEdge[]; @@ -13097,13 +12852,6 @@ export interface RlsSettingConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `RouteBinding` values. */ -export interface RouteBindingConnection { - edges: RouteBindingEdge[]; - nodes: RouteBinding[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `Route` values. */ export interface RouteConnection { edges: RouteEdge[]; @@ -13466,12 +13214,6 @@ export interface CreateFunctionPayload { function?: Function | null; functionEdge?: FunctionEdge | null; } -export interface CreateHostnameBindingPayload { - clientMutationId?: string | null; - /** The `HostnameBinding` that was created by this mutation. */ - hostnameBinding?: HostnameBinding | null; - hostnameBindingEdge?: HostnameBindingEdge | null; -} export interface CreateIdentityProviderRegistryPayload { clientMutationId?: string | null; /** The `IdentityProviderRegistry` that was created by this mutation. */ @@ -13670,12 +13412,6 @@ export interface CreateRoutePayload { route?: Route | null; routeEdge?: RouteEdge | null; } -export interface CreateRouteBindingPayload { - clientMutationId?: string | null; - /** The `RouteBinding` that was created by this mutation. */ - routeBinding?: RouteBinding | null; - routeBindingEdge?: RouteBindingEdge | null; -} export interface CreateSchemaPayload { clientMutationId?: string | null; /** The `Schema` that was created by this mutation. */ @@ -13988,12 +13724,6 @@ export interface DeleteFunctionPayload { function?: Function | null; functionEdge?: FunctionEdge | null; } -export interface DeleteHostnameBindingPayload { - clientMutationId?: string | null; - /** The `HostnameBinding` that was deleted by this mutation. */ - hostnameBinding?: HostnameBinding | null; - hostnameBindingEdge?: HostnameBindingEdge | null; -} export interface DeleteIdentityProviderRegistryPayload { clientMutationId?: string | null; /** The `IdentityProviderRegistry` that was deleted by this mutation. */ @@ -14192,12 +13922,6 @@ export interface DeleteRoutePayload { route?: Route | null; routeEdge?: RouteEdge | null; } -export interface DeleteRouteBindingPayload { - clientMutationId?: string | null; - /** The `RouteBinding` that was deleted by this mutation. */ - routeBinding?: RouteBinding | null; - routeBindingEdge?: RouteBindingEdge | null; -} export interface DeleteSchemaPayload { clientMutationId?: string | null; /** The `Schema` that was deleted by this mutation. */ @@ -14624,12 +14348,6 @@ export interface UpdateFunctionPayload { function?: Function | null; functionEdge?: FunctionEdge | null; } -export interface UpdateHostnameBindingPayload { - clientMutationId?: string | null; - /** The `HostnameBinding` that was updated by this mutation. */ - hostnameBinding?: HostnameBinding | null; - hostnameBindingEdge?: HostnameBindingEdge | null; -} export interface UpdateIdentityProviderRegistryPayload { clientMutationId?: string | null; /** The `IdentityProviderRegistry` that was updated by this mutation. */ @@ -14828,12 +14546,6 @@ export interface UpdateRoutePayload { route?: Route | null; routeEdge?: RouteEdge | null; } -export interface UpdateRouteBindingPayload { - clientMutationId?: string | null; - /** The `RouteBinding` that was updated by this mutation. */ - routeBinding?: RouteBinding | null; - routeBindingEdge?: RouteBindingEdge | null; -} export interface UpdateSchemaPayload { clientMutationId?: string | null; /** The `Schema` that was updated by this mutation. */ @@ -15196,12 +14908,6 @@ export interface GetSitePreviewsEdge { /** The `GetSitePreviewsRecord` at the end of the edge. */ node?: GetSitePreviewsRecord | null; } -/** A `HostnameBinding` edge in the connection. */ -export interface HostnameBindingEdge { - cursor?: string | null; - /** The `HostnameBinding` at the end of the edge. */ - node?: HostnameBinding | null; -} /** A `IdentityProviderRegistry` edge in the connection. */ export interface IdentityProviderRegistryEdge { cursor?: string | null; @@ -15406,12 +15112,6 @@ export interface RlsSettingEdge { /** The `RlsSetting` at the end of the edge. */ node?: RlsSetting | null; } -/** A `RouteBinding` edge in the connection. */ -export interface RouteBindingEdge { - cursor?: string | null; - /** The `RouteBinding` at the end of the edge. */ - node?: RouteBinding | null; -} /** A `Route` edge in the connection. */ export interface RouteEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/api/types.ts b/sdk/constructive-react/src/api/types.ts index 2809c2fd40..89bc1cf1c7 100644 --- a/sdk/constructive-react/src/api/types.ts +++ b/sdk/constructive-react/src/api/types.ts @@ -454,18 +454,6 @@ export interface GetSitePreviewsRecord { commitId: string | null; name: string | null; } -export interface HostnameBinding { - domainId: string | null; - hostname: string | null; - id: string | null; - isWildcard: boolean | null; - managed: boolean | null; - parentHostname: string | null; - tlsSecretName: string | null; - tlsStatus: string | null; - updatedAt: string | null; - verificationStatus: string | null; -} export interface IdentityProviderRegistry { authorizationUrl: string | null; displayName: string | null; @@ -513,6 +501,7 @@ export interface ManagedDomain { domain: string | null; id: string | null; isWildcard: boolean | null; + publicPort: number | null; tlsReadyAt: string | null; tlsStatus: string | null; updatedAt: string | null; @@ -709,6 +698,7 @@ export interface PlatformManagedDomain { domain: string | null; id: string | null; isWildcard: boolean | null; + publicPort: number | null; tlsReadyAt: string | null; tlsStatus: string | null; updatedAt: string | null; @@ -905,22 +895,6 @@ export interface RlsSetting { roleSchemaId: string | null; updatedAt: string | null; } -export interface RouteBinding { - domainId: string | null; - id: string | null; - isActive: boolean | null; - method: string | null; - path: string | null; - priority: number | null; - servingSiteId: string | null; - targetApiId: string | null; - targetBucketId: string | null; - targetFunctionId: string | null; - targetRedirectId: string | null; - targetServiceId: string | null; - targetSiteId: string | null; - updatedAt: string | null; -} export interface Route { anonymous: boolean | null; config: unknown | null; @@ -1199,6 +1173,7 @@ export interface UniqueConstraint { initiallyDeferred: boolean | null; isDeferrable: boolean | null; name: string | null; + nullsNotDistinct: boolean | null; smartTags: unknown | null; tableId: string | null; tags: string[] | null; diff --git a/sdk/constructive-react/src/auth/orm/input-types.ts b/sdk/constructive-react/src/auth/orm/input-types.ts index 82e2d1a346..e4ee1db136 100644 --- a/sdk/constructive-react/src/auth/orm/input-types.ts +++ b/sdk/constructive-react/src/auth/orm/input-types.ts @@ -4689,6 +4689,7 @@ export interface SignUpRecord { accessTokenExpiresAt?: string | null; id?: string | null; isVerified?: boolean | null; + mfaSetupRequired?: boolean | null; outDeviceToken?: string | null; totpEnabled?: boolean | null; userId?: string | null; @@ -4698,6 +4699,7 @@ export type SignUpRecordSelect = { accessTokenExpiresAt?: boolean; id?: boolean; isVerified?: boolean; + mfaSetupRequired?: boolean; outDeviceToken?: boolean; totpEnabled?: boolean; userId?: boolean; diff --git a/sdk/constructive-react/src/auth/schema-types.ts b/sdk/constructive-react/src/auth/schema-types.ts index 93c2e2367c..ece6631336 100644 --- a/sdk/constructive-react/src/auth/schema-types.ts +++ b/sdk/constructive-react/src/auth/schema-types.ts @@ -2708,6 +2708,7 @@ export interface SignUpRecord { accessTokenExpiresAt?: string | null; id?: string | null; isVerified?: boolean | null; + mfaSetupRequired?: boolean | null; outDeviceToken?: string | null; totpEnabled?: boolean | null; userId?: string | null; diff --git a/sdk/constructive-react/src/modules/hooks/README.md b/sdk/constructive-react/src/modules/hooks/README.md index 687082f6c5..4e477b25af 100644 --- a/sdk/constructive-react/src/modules/hooks/README.md +++ b/sdk/constructive-react/src/modules/hooks/README.md @@ -736,20 +736,20 @@ create({ apiName: '', balancesTableId: '', balancesTableName: '', - selection: { fields: { activatePlanSubscriptionFunction: true, apiName: true, applyProviderObservationFunction: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: true, billingHealthTableId: true, billingHealthTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingOperationsTableId: true, billingOperationsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingProviderStateTableId: true, billingProviderStateTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, bindCheckoutSessionFunction: true, clearScheduledChangeFunction: true, databaseId: true, finishBillingOperationFunction: true, getActivePlanPricingFunction: true, getActivePlanSubscriptionFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingProviderStateFunction: true, getBillingSubscriptionByEntityFunction: true, getBillingSubscriptionByExternalIdFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, getPlanPricingByExternalPriceFunction: true, hasDueReconciliationsFunction: true, id: true, listDueReconciliationsFunction: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, prepareScheduledChangeFunction: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordBillingHealthFunction: true, recordDisputeFunction: true, recordRefundFunction: true, reserveBillingOperationFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: true, upsertInvoiceFunction: true, usageSyncShardCount: true } }, + selection: { fields: { activatePlanSubscriptionFunction: true, apiName: true, applyProviderObservationFunction: true, billingConnectionTableId: true, billingConnectionTableName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: true, billingHealthTableId: true, billingHealthTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingOperationsTableId: true, billingOperationsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingProviderConnectedFunction: true, billingProviderStateTableId: true, billingProviderStateTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, bindCheckoutSessionFunction: true, clearScheduledChangeFunction: true, databaseId: true, finishBillingOperationFunction: true, getActivePlanPricingFunction: true, getActivePlanSubscriptionFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingProviderStateFunction: true, getBillingSubscriptionByEntityFunction: true, getBillingSubscriptionByExternalIdFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, getPlanPricingByExternalPriceFunction: true, hasDueReconciliationsFunction: true, id: true, listDueReconciliationsFunction: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, prepareScheduledChangeFunction: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordBillingConnectionFunction: true, recordBillingHealthFunction: true, recordDisputeFunction: true, recordRefundFunction: true, reserveBillingOperationFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: true, upsertInvoiceFunction: true, usageSyncShardCount: true } }, }); // Create a billingProviderModule const { mutate: create } = useCreateBillingProviderModuleMutation({ selection: { fields: { id: true } }, }); -create({ activatePlanSubscriptionFunction: '', apiName: '', applyProviderObservationFunction: '', billingCustomersTableId: '', billingCustomersTableName: '', billingDisputesTableId: '', billingDisputesTableName: '', billingHealthTableId: '', billingHealthTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingOperationsTableId: '', billingOperationsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingProviderStateTableId: '', billingProviderStateTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', bindCheckoutSessionFunction: '', clearScheduledChangeFunction: '', databaseId: '', finishBillingOperationFunction: '', getActivePlanPricingFunction: '', getActivePlanSubscriptionFunction: '', getBillingCustomerFunction: '', getBillingPriceFunction: '', getBillingProductFunction: '', getBillingProviderStateFunction: '', getBillingSubscriptionByEntityFunction: '', getBillingSubscriptionByExternalIdFunction: '', getBillingSubscriptionFunction: '', getFallbackFreePlanFunction: '', getPlanPricingByExternalPriceFunction: '', hasDueReconciliationsFunction: '', listDueReconciliationsFunction: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', prepareScheduledChangeFunction: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordBillingHealthFunction: '', recordDisputeFunction: '', recordRefundFunction: '', reserveBillingOperationFunction: '', schemaId: '', subscriptionsTableId: '', sweepOverdueSubscriptionsFunction: '', upsertBillingCustomerFunction: '', upsertBillingPriceFunction: '', upsertBillingProductFunction: '', upsertBillingSubscriptionFunction: '', upsertInvoiceFunction: '', usageSyncShardCount: '' }); +create({ activatePlanSubscriptionFunction: '', apiName: '', applyProviderObservationFunction: '', billingConnectionTableId: '', billingConnectionTableName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingDisputesTableId: '', billingDisputesTableName: '', billingHealthTableId: '', billingHealthTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingOperationsTableId: '', billingOperationsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingProviderConnectedFunction: '', billingProviderStateTableId: '', billingProviderStateTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', bindCheckoutSessionFunction: '', clearScheduledChangeFunction: '', databaseId: '', finishBillingOperationFunction: '', getActivePlanPricingFunction: '', getActivePlanSubscriptionFunction: '', getBillingCustomerFunction: '', getBillingPriceFunction: '', getBillingProductFunction: '', getBillingProviderStateFunction: '', getBillingSubscriptionByEntityFunction: '', getBillingSubscriptionByExternalIdFunction: '', getBillingSubscriptionFunction: '', getFallbackFreePlanFunction: '', getPlanPricingByExternalPriceFunction: '', hasDueReconciliationsFunction: '', listDueReconciliationsFunction: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', prepareScheduledChangeFunction: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordBillingConnectionFunction: '', recordBillingHealthFunction: '', recordDisputeFunction: '', recordRefundFunction: '', reserveBillingOperationFunction: '', schemaId: '', subscriptionsTableId: '', sweepOverdueSubscriptionsFunction: '', upsertBillingCustomerFunction: '', upsertBillingPriceFunction: '', upsertBillingProductFunction: '', upsertBillingSubscriptionFunction: '', upsertInvoiceFunction: '', usageSyncShardCount: '' }); ``` ### Blueprint @@ -2269,20 +2269,20 @@ create({ apiName: '', databaseId: '', entityField: '', int ```typescript // List all storageModules const { data, isLoading } = useStorageModulesQuery({ - selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }, + selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }, }); // Get one storageModule const { data: item } = useStorageModuleQuery({ id: '', - selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }, + selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }, }); // Create a storageModule const { mutate: create } = useCreateStorageModuleMutation({ selection: { fields: { id: true } }, }); -create({ allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }); +create({ allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }); ``` ### TransferLogModule diff --git a/sdk/constructive-react/src/modules/orm/README.md b/sdk/constructive-react/src/modules/orm/README.md index 10eaf83b29..ec0c34eee6 100644 --- a/sdk/constructive-react/src/modules/orm/README.md +++ b/sdk/constructive-react/src/modules/orm/README.md @@ -357,6 +357,8 @@ CRUD operations for BillingProviderModule records. | `activatePlanSubscriptionFunction` | String | Yes | | `apiName` | String | Yes | | `applyProviderObservationFunction` | String | Yes | +| `billingConnectionTableId` | UUID | Yes | +| `billingConnectionTableName` | String | Yes | | `billingCustomersTableId` | UUID | Yes | | `billingCustomersTableName` | String | Yes | | `billingDisputesTableId` | UUID | Yes | @@ -371,6 +373,7 @@ CRUD operations for BillingProviderModule records. | `billingPricesTableName` | String | Yes | | `billingProductsTableId` | UUID | Yes | | `billingProductsTableName` | String | Yes | +| `billingProviderConnectedFunction` | String | Yes | | `billingProviderStateTableId` | UUID | Yes | | `billingProviderStateTableName` | String | Yes | | `billingRefundsTableId` | UUID | Yes | @@ -407,6 +410,7 @@ CRUD operations for BillingProviderModule records. | `processBillingEventFunction` | String | Yes | | `productsTableId` | UUID | Yes | | `provider` | String | Yes | +| `recordBillingConnectionFunction` | String | Yes | | `recordBillingHealthFunction` | String | Yes | | `recordDisputeFunction` | String | Yes | | `recordRefundFunction` | String | Yes | @@ -425,13 +429,13 @@ CRUD operations for BillingProviderModule records. ```typescript // List all billingProviderModule records -const items = await db.billingProviderModule.findMany({ select: { activatePlanSubscriptionFunction: true, apiName: true, applyProviderObservationFunction: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: true, billingHealthTableId: true, billingHealthTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingOperationsTableId: true, billingOperationsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingProviderStateTableId: true, billingProviderStateTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, bindCheckoutSessionFunction: true, clearScheduledChangeFunction: true, databaseId: true, finishBillingOperationFunction: true, getActivePlanPricingFunction: true, getActivePlanSubscriptionFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingProviderStateFunction: true, getBillingSubscriptionByEntityFunction: true, getBillingSubscriptionByExternalIdFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, getPlanPricingByExternalPriceFunction: true, hasDueReconciliationsFunction: true, id: true, listDueReconciliationsFunction: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, prepareScheduledChangeFunction: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordBillingHealthFunction: true, recordDisputeFunction: true, recordRefundFunction: true, reserveBillingOperationFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: true, upsertInvoiceFunction: true, usageSyncShardCount: true } }).execute(); +const items = await db.billingProviderModule.findMany({ select: { activatePlanSubscriptionFunction: true, apiName: true, applyProviderObservationFunction: true, billingConnectionTableId: true, billingConnectionTableName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: true, billingHealthTableId: true, billingHealthTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingOperationsTableId: true, billingOperationsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingProviderConnectedFunction: true, billingProviderStateTableId: true, billingProviderStateTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, bindCheckoutSessionFunction: true, clearScheduledChangeFunction: true, databaseId: true, finishBillingOperationFunction: true, getActivePlanPricingFunction: true, getActivePlanSubscriptionFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingProviderStateFunction: true, getBillingSubscriptionByEntityFunction: true, getBillingSubscriptionByExternalIdFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, getPlanPricingByExternalPriceFunction: true, hasDueReconciliationsFunction: true, id: true, listDueReconciliationsFunction: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, prepareScheduledChangeFunction: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordBillingConnectionFunction: true, recordBillingHealthFunction: true, recordDisputeFunction: true, recordRefundFunction: true, reserveBillingOperationFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: true, upsertInvoiceFunction: true, usageSyncShardCount: true } }).execute(); // Get one by id -const item = await db.billingProviderModule.findOne({ id: '', select: { activatePlanSubscriptionFunction: true, apiName: true, applyProviderObservationFunction: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: true, billingHealthTableId: true, billingHealthTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingOperationsTableId: true, billingOperationsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingProviderStateTableId: true, billingProviderStateTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, bindCheckoutSessionFunction: true, clearScheduledChangeFunction: true, databaseId: true, finishBillingOperationFunction: true, getActivePlanPricingFunction: true, getActivePlanSubscriptionFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingProviderStateFunction: true, getBillingSubscriptionByEntityFunction: true, getBillingSubscriptionByExternalIdFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, getPlanPricingByExternalPriceFunction: true, hasDueReconciliationsFunction: true, id: true, listDueReconciliationsFunction: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, prepareScheduledChangeFunction: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordBillingHealthFunction: true, recordDisputeFunction: true, recordRefundFunction: true, reserveBillingOperationFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: true, upsertInvoiceFunction: true, usageSyncShardCount: true } }).execute(); +const item = await db.billingProviderModule.findOne({ id: '', select: { activatePlanSubscriptionFunction: true, apiName: true, applyProviderObservationFunction: true, billingConnectionTableId: true, billingConnectionTableName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: true, billingHealthTableId: true, billingHealthTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingOperationsTableId: true, billingOperationsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingProviderConnectedFunction: true, billingProviderStateTableId: true, billingProviderStateTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, bindCheckoutSessionFunction: true, clearScheduledChangeFunction: true, databaseId: true, finishBillingOperationFunction: true, getActivePlanPricingFunction: true, getActivePlanSubscriptionFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingProviderStateFunction: true, getBillingSubscriptionByEntityFunction: true, getBillingSubscriptionByExternalIdFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, getPlanPricingByExternalPriceFunction: true, hasDueReconciliationsFunction: true, id: true, listDueReconciliationsFunction: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, prepareScheduledChangeFunction: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordBillingConnectionFunction: true, recordBillingHealthFunction: true, recordDisputeFunction: true, recordRefundFunction: true, reserveBillingOperationFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: true, upsertInvoiceFunction: true, usageSyncShardCount: true } }).execute(); // Create -const created = await db.billingProviderModule.create({ data: { activatePlanSubscriptionFunction: '', apiName: '', applyProviderObservationFunction: '', billingCustomersTableId: '', billingCustomersTableName: '', billingDisputesTableId: '', billingDisputesTableName: '', billingHealthTableId: '', billingHealthTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingOperationsTableId: '', billingOperationsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingProviderStateTableId: '', billingProviderStateTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', bindCheckoutSessionFunction: '', clearScheduledChangeFunction: '', databaseId: '', finishBillingOperationFunction: '', getActivePlanPricingFunction: '', getActivePlanSubscriptionFunction: '', getBillingCustomerFunction: '', getBillingPriceFunction: '', getBillingProductFunction: '', getBillingProviderStateFunction: '', getBillingSubscriptionByEntityFunction: '', getBillingSubscriptionByExternalIdFunction: '', getBillingSubscriptionFunction: '', getFallbackFreePlanFunction: '', getPlanPricingByExternalPriceFunction: '', hasDueReconciliationsFunction: '', listDueReconciliationsFunction: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', prepareScheduledChangeFunction: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordBillingHealthFunction: '', recordDisputeFunction: '', recordRefundFunction: '', reserveBillingOperationFunction: '', schemaId: '', subscriptionsTableId: '', sweepOverdueSubscriptionsFunction: '', upsertBillingCustomerFunction: '', upsertBillingPriceFunction: '', upsertBillingProductFunction: '', upsertBillingSubscriptionFunction: '', upsertInvoiceFunction: '', usageSyncShardCount: '' }, select: { id: true } }).execute(); +const created = await db.billingProviderModule.create({ data: { activatePlanSubscriptionFunction: '', apiName: '', applyProviderObservationFunction: '', billingConnectionTableId: '', billingConnectionTableName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingDisputesTableId: '', billingDisputesTableName: '', billingHealthTableId: '', billingHealthTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingOperationsTableId: '', billingOperationsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingProviderConnectedFunction: '', billingProviderStateTableId: '', billingProviderStateTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', bindCheckoutSessionFunction: '', clearScheduledChangeFunction: '', databaseId: '', finishBillingOperationFunction: '', getActivePlanPricingFunction: '', getActivePlanSubscriptionFunction: '', getBillingCustomerFunction: '', getBillingPriceFunction: '', getBillingProductFunction: '', getBillingProviderStateFunction: '', getBillingSubscriptionByEntityFunction: '', getBillingSubscriptionByExternalIdFunction: '', getBillingSubscriptionFunction: '', getFallbackFreePlanFunction: '', getPlanPricingByExternalPriceFunction: '', hasDueReconciliationsFunction: '', listDueReconciliationsFunction: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', prepareScheduledChangeFunction: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordBillingConnectionFunction: '', recordBillingHealthFunction: '', recordDisputeFunction: '', recordRefundFunction: '', reserveBillingOperationFunction: '', schemaId: '', subscriptionsTableId: '', sweepOverdueSubscriptionsFunction: '', upsertBillingCustomerFunction: '', upsertBillingPriceFunction: '', upsertBillingProductFunction: '', upsertBillingSubscriptionFunction: '', upsertInvoiceFunction: '', usageSyncShardCount: '' }, select: { id: true } }).execute(); // Update const updated = await db.billingProviderModule.update({ where: { id: '' }, data: { activatePlanSubscriptionFunction: '' }, select: { id: true } }).execute(); @@ -3890,6 +3894,7 @@ CRUD operations for StorageModule records. | `provisions` | JSON | Yes | | `publicSchemaName` | String | Yes | | `publicUrlPrefix` | String | Yes | +| `region` | String | Yes | | `restrictReads` | Boolean | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | @@ -3899,13 +3904,13 @@ CRUD operations for StorageModule records. ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); +const items = await db.storageModule.findMany({ select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { allowedOrigins: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-react/src/modules/orm/input-types.ts b/sdk/constructive-react/src/modules/orm/input-types.ts index 4a8fcc7f04..1605f02b05 100644 --- a/sdk/constructive-react/src/modules/orm/input-types.ts +++ b/sdk/constructive-react/src/modules/orm/input-types.ts @@ -365,6 +365,8 @@ export interface BillingProviderModule { activatePlanSubscriptionFunction?: string | null; apiName?: string | null; applyProviderObservationFunction?: string | null; + billingConnectionTableId?: string | null; + billingConnectionTableName?: string | null; billingCustomersTableId?: string | null; billingCustomersTableName?: string | null; billingDisputesTableId?: string | null; @@ -379,6 +381,7 @@ export interface BillingProviderModule { billingPricesTableName?: string | null; billingProductsTableId?: string | null; billingProductsTableName?: string | null; + billingProviderConnectedFunction?: string | null; billingProviderStateTableId?: string | null; billingProviderStateTableName?: string | null; billingRefundsTableId?: string | null; @@ -415,6 +418,7 @@ export interface BillingProviderModule { processBillingEventFunction?: string | null; productsTableId?: string | null; provider?: string | null; + recordBillingConnectionFunction?: string | null; recordBillingHealthFunction?: string | null; recordDisputeFunction?: string | null; recordRefundFunction?: string | null; @@ -2452,6 +2456,7 @@ export interface StorageModule { provisions?: Record | null; publicSchemaName?: string | null; publicUrlPrefix?: string | null; + region?: string | null; restrictReads?: boolean | null; schemaId?: string | null; scope?: string | null; @@ -3054,6 +3059,8 @@ export type BillingProviderModuleSelect = { activatePlanSubscriptionFunction?: boolean; apiName?: boolean; applyProviderObservationFunction?: boolean; + billingConnectionTableId?: boolean; + billingConnectionTableName?: boolean; billingCustomersTableId?: boolean; billingCustomersTableName?: boolean; billingDisputesTableId?: boolean; @@ -3068,6 +3075,7 @@ export type BillingProviderModuleSelect = { billingPricesTableName?: boolean; billingProductsTableId?: boolean; billingProductsTableName?: boolean; + billingProviderConnectedFunction?: boolean; billingProviderStateTableId?: boolean; billingProviderStateTableName?: boolean; billingRefundsTableId?: boolean; @@ -3104,6 +3112,7 @@ export type BillingProviderModuleSelect = { processBillingEventFunction?: boolean; productsTableId?: boolean; provider?: boolean; + recordBillingConnectionFunction?: boolean; recordBillingHealthFunction?: boolean; recordDisputeFunction?: boolean; recordRefundFunction?: boolean; @@ -4908,6 +4917,7 @@ export type StorageModuleSelect = { provisions?: boolean; publicSchemaName?: boolean; publicUrlPrefix?: boolean; + region?: boolean; restrictReads?: boolean; schemaId?: boolean; scope?: boolean; @@ -5380,6 +5390,10 @@ export interface BillingProviderModuleFilter { apiName?: StringFilter; /** Filter by the object’s `applyProviderObservationFunction` field. */ applyProviderObservationFunction?: StringFilter; + /** Filter by the object’s `billingConnectionTableId` field. */ + billingConnectionTableId?: UUIDFilter; + /** Filter by the object’s `billingConnectionTableName` field. */ + billingConnectionTableName?: StringFilter; /** Filter by the object’s `billingCustomersTableId` field. */ billingCustomersTableId?: UUIDFilter; /** Filter by the object’s `billingCustomersTableName` field. */ @@ -5408,6 +5422,8 @@ export interface BillingProviderModuleFilter { billingProductsTableId?: UUIDFilter; /** Filter by the object’s `billingProductsTableName` field. */ billingProductsTableName?: StringFilter; + /** Filter by the object’s `billingProviderConnectedFunction` field. */ + billingProviderConnectedFunction?: StringFilter; /** Filter by the object’s `billingProviderStateTableId` field. */ billingProviderStateTableId?: UUIDFilter; /** Filter by the object’s `billingProviderStateTableName` field. */ @@ -5484,6 +5500,8 @@ export interface BillingProviderModuleFilter { productsTableId?: UUIDFilter; /** Filter by the object’s `provider` field. */ provider?: StringFilter; + /** Filter by the object’s `recordBillingConnectionFunction` field. */ + recordBillingConnectionFunction?: StringFilter; /** Filter by the object’s `recordBillingHealthFunction` field. */ recordBillingHealthFunction?: StringFilter; /** Filter by the object’s `recordDisputeFunction` field. */ @@ -9120,6 +9138,8 @@ export interface StorageModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `publicUrlPrefix` field. */ publicUrlPrefix?: StringFilter; + /** Filter by the object’s `region` field. */ + region?: StringFilter; /** Filter by the object’s `restrictReads` field. */ restrictReads?: BooleanFilter; /** Filter by the object’s `schemaId` field. */ @@ -9763,6 +9783,10 @@ export type BillingProviderModuleOrderBy = | 'API_NAME_DESC' | 'APPLY_PROVIDER_OBSERVATION_FUNCTION_ASC' | 'APPLY_PROVIDER_OBSERVATION_FUNCTION_DESC' + | 'BILLING_CONNECTION_TABLE_ID_ASC' + | 'BILLING_CONNECTION_TABLE_ID_DESC' + | 'BILLING_CONNECTION_TABLE_NAME_ASC' + | 'BILLING_CONNECTION_TABLE_NAME_DESC' | 'BILLING_CUSTOMERS_TABLE_ID_ASC' | 'BILLING_CUSTOMERS_TABLE_ID_DESC' | 'BILLING_CUSTOMERS_TABLE_NAME_ASC' @@ -9791,6 +9815,8 @@ export type BillingProviderModuleOrderBy = | 'BILLING_PRODUCTS_TABLE_ID_DESC' | 'BILLING_PRODUCTS_TABLE_NAME_ASC' | 'BILLING_PRODUCTS_TABLE_NAME_DESC' + | 'BILLING_PROVIDER_CONNECTED_FUNCTION_ASC' + | 'BILLING_PROVIDER_CONNECTED_FUNCTION_DESC' | 'BILLING_PROVIDER_STATE_TABLE_ID_ASC' | 'BILLING_PROVIDER_STATE_TABLE_ID_DESC' | 'BILLING_PROVIDER_STATE_TABLE_NAME_ASC' @@ -9866,6 +9892,8 @@ export type BillingProviderModuleOrderBy = | 'PRODUCTS_TABLE_ID_DESC' | 'PROVIDER_ASC' | 'PROVIDER_DESC' + | 'RECORD_BILLING_CONNECTION_FUNCTION_ASC' + | 'RECORD_BILLING_CONNECTION_FUNCTION_DESC' | 'RECORD_BILLING_HEALTH_FUNCTION_ASC' | 'RECORD_BILLING_HEALTH_FUNCTION_DESC' | 'RECORD_DISPUTE_FUNCTION_ASC' @@ -13036,6 +13064,8 @@ export type StorageModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PUBLIC_URL_PREFIX_ASC' | 'PUBLIC_URL_PREFIX_DESC' + | 'REGION_ASC' + | 'REGION_DESC' | 'RESTRICT_READS_ASC' | 'RESTRICT_READS_DESC' | 'SCHEMA_ID_ASC' @@ -13661,6 +13691,8 @@ export interface CreateBillingProviderModuleInput { activatePlanSubscriptionFunction?: string; apiName?: string; applyProviderObservationFunction?: string; + billingConnectionTableId?: string; + billingConnectionTableName?: string; billingCustomersTableId?: string; billingCustomersTableName?: string; billingDisputesTableId?: string; @@ -13675,6 +13707,7 @@ export interface CreateBillingProviderModuleInput { billingPricesTableName?: string; billingProductsTableId?: string; billingProductsTableName?: string; + billingProviderConnectedFunction?: string; billingProviderStateTableId?: string; billingProviderStateTableName?: string; billingRefundsTableId?: string; @@ -13710,6 +13743,7 @@ export interface CreateBillingProviderModuleInput { processBillingEventFunction?: string; productsTableId?: string; provider?: string; + recordBillingConnectionFunction?: string; recordBillingHealthFunction?: string; recordDisputeFunction?: string; recordRefundFunction?: string; @@ -13729,6 +13763,8 @@ export interface BillingProviderModulePatch { activatePlanSubscriptionFunction?: string | null; apiName?: string | null; applyProviderObservationFunction?: string | null; + billingConnectionTableId?: string | null; + billingConnectionTableName?: string | null; billingCustomersTableId?: string | null; billingCustomersTableName?: string | null; billingDisputesTableId?: string | null; @@ -13743,6 +13779,7 @@ export interface BillingProviderModulePatch { billingPricesTableName?: string | null; billingProductsTableId?: string | null; billingProductsTableName?: string | null; + billingProviderConnectedFunction?: string | null; billingProviderStateTableId?: string | null; billingProviderStateTableName?: string | null; billingRefundsTableId?: string | null; @@ -13778,6 +13815,7 @@ export interface BillingProviderModulePatch { processBillingEventFunction?: string | null; productsTableId?: string | null; provider?: string | null; + recordBillingConnectionFunction?: string | null; recordBillingHealthFunction?: string | null; recordDisputeFunction?: string | null; recordRefundFunction?: string | null; @@ -17585,6 +17623,7 @@ export interface CreateStorageModuleInput { provisions?: Record; publicSchemaName?: string; publicUrlPrefix?: string; + region?: string; restrictReads?: boolean; schemaId?: string; scope: string; @@ -17629,6 +17668,7 @@ export interface StorageModulePatch { provisions?: Record | null; publicSchemaName?: string | null; publicUrlPrefix?: string | null; + region?: string | null; restrictReads?: boolean | null; schemaId?: string | null; scope?: string | null; @@ -18578,6 +18618,8 @@ export interface BillingProviderModuleInput { activatePlanSubscriptionFunction?: string; apiName?: string; applyProviderObservationFunction?: string; + billingConnectionTableId?: string; + billingConnectionTableName?: string; billingCustomersTableId?: string; billingCustomersTableName?: string; billingDisputesTableId?: string; @@ -18592,6 +18634,7 @@ export interface BillingProviderModuleInput { billingPricesTableName?: string; billingProductsTableId?: string; billingProductsTableName?: string; + billingProviderConnectedFunction?: string; billingProviderStateTableId?: string; billingProviderStateTableName?: string; billingRefundsTableId?: string; @@ -18628,6 +18671,7 @@ export interface BillingProviderModuleInput { processBillingEventFunction?: string; productsTableId?: string; provider?: string; + recordBillingConnectionFunction?: string; recordBillingHealthFunction?: string; recordDisputeFunction?: string; recordRefundFunction?: string; @@ -20697,6 +20741,7 @@ export interface StorageModuleInput { provisions?: Record; publicSchemaName?: string; publicUrlPrefix?: string; + region?: string; restrictReads?: boolean; schemaId?: string; scope: string; @@ -22814,6 +22859,8 @@ export interface StorageModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `publicUrlPrefix` field. */ publicUrlPrefix?: StringFilter; + /** Filter by the object’s `region` field. */ + region?: StringFilter; /** Filter by the object’s `restrictReads` field. */ restrictReads?: BooleanFilter; /** Filter by the object’s `schemaId` field. */ diff --git a/sdk/constructive-react/src/modules/schema-types.ts b/sdk/constructive-react/src/modules/schema-types.ts index 63f4fd10d1..44d49156ea 100644 --- a/sdk/constructive-react/src/modules/schema-types.ts +++ b/sdk/constructive-react/src/modules/schema-types.ts @@ -383,6 +383,10 @@ export type BillingProviderModuleOrderBy = | 'API_NAME_DESC' | 'APPLY_PROVIDER_OBSERVATION_FUNCTION_ASC' | 'APPLY_PROVIDER_OBSERVATION_FUNCTION_DESC' + | 'BILLING_CONNECTION_TABLE_ID_ASC' + | 'BILLING_CONNECTION_TABLE_ID_DESC' + | 'BILLING_CONNECTION_TABLE_NAME_ASC' + | 'BILLING_CONNECTION_TABLE_NAME_DESC' | 'BILLING_CUSTOMERS_TABLE_ID_ASC' | 'BILLING_CUSTOMERS_TABLE_ID_DESC' | 'BILLING_CUSTOMERS_TABLE_NAME_ASC' @@ -411,6 +415,8 @@ export type BillingProviderModuleOrderBy = | 'BILLING_PRODUCTS_TABLE_ID_DESC' | 'BILLING_PRODUCTS_TABLE_NAME_ASC' | 'BILLING_PRODUCTS_TABLE_NAME_DESC' + | 'BILLING_PROVIDER_CONNECTED_FUNCTION_ASC' + | 'BILLING_PROVIDER_CONNECTED_FUNCTION_DESC' | 'BILLING_PROVIDER_STATE_TABLE_ID_ASC' | 'BILLING_PROVIDER_STATE_TABLE_ID_DESC' | 'BILLING_PROVIDER_STATE_TABLE_NAME_ASC' @@ -486,6 +492,8 @@ export type BillingProviderModuleOrderBy = | 'PRODUCTS_TABLE_ID_DESC' | 'PROVIDER_ASC' | 'PROVIDER_DESC' + | 'RECORD_BILLING_CONNECTION_FUNCTION_ASC' + | 'RECORD_BILLING_CONNECTION_FUNCTION_DESC' | 'RECORD_BILLING_HEALTH_FUNCTION_ASC' | 'RECORD_BILLING_HEALTH_FUNCTION_DESC' | 'RECORD_DISPUTE_FUNCTION_ASC' @@ -3729,6 +3737,8 @@ export type StorageModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PUBLIC_URL_PREFIX_ASC' | 'PUBLIC_URL_PREFIX_DESC' + | 'REGION_ASC' + | 'REGION_DESC' | 'RESTRICT_READS_ASC' | 'RESTRICT_READS_DESC' | 'SCHEMA_ID_ASC' @@ -4623,6 +4633,10 @@ export interface BillingProviderModuleFilter { apiName?: StringFilter; /** Filter by the object’s `applyProviderObservationFunction` field. */ applyProviderObservationFunction?: StringFilter; + /** Filter by the object’s `billingConnectionTableId` field. */ + billingConnectionTableId?: UUIDFilter; + /** Filter by the object’s `billingConnectionTableName` field. */ + billingConnectionTableName?: StringFilter; /** Filter by the object’s `billingCustomersTableId` field. */ billingCustomersTableId?: UUIDFilter; /** Filter by the object’s `billingCustomersTableName` field. */ @@ -4651,6 +4665,8 @@ export interface BillingProviderModuleFilter { billingProductsTableId?: UUIDFilter; /** Filter by the object’s `billingProductsTableName` field. */ billingProductsTableName?: StringFilter; + /** Filter by the object’s `billingProviderConnectedFunction` field. */ + billingProviderConnectedFunction?: StringFilter; /** Filter by the object’s `billingProviderStateTableId` field. */ billingProviderStateTableId?: UUIDFilter; /** Filter by the object’s `billingProviderStateTableName` field. */ @@ -4727,6 +4743,8 @@ export interface BillingProviderModuleFilter { productsTableId?: UUIDFilter; /** Filter by the object’s `provider` field. */ provider?: StringFilter; + /** Filter by the object’s `recordBillingConnectionFunction` field. */ + recordBillingConnectionFunction?: StringFilter; /** Filter by the object’s `recordBillingHealthFunction` field. */ recordBillingHealthFunction?: StringFilter; /** Filter by the object’s `recordDisputeFunction` field. */ @@ -4759,6 +4777,8 @@ export interface BillingProviderModuleInput { activatePlanSubscriptionFunction?: string; apiName?: string; applyProviderObservationFunction?: string; + billingConnectionTableId?: string; + billingConnectionTableName?: string; billingCustomersTableId?: string; billingCustomersTableName?: string; billingDisputesTableId?: string; @@ -4773,6 +4793,7 @@ export interface BillingProviderModuleInput { billingPricesTableName?: string; billingProductsTableId?: string; billingProductsTableName?: string; + billingProviderConnectedFunction?: string; billingProviderStateTableId?: string; billingProviderStateTableName?: string; billingRefundsTableId?: string; @@ -4809,6 +4830,7 @@ export interface BillingProviderModuleInput { processBillingEventFunction?: string; productsTableId?: string; provider?: string; + recordBillingConnectionFunction?: string; recordBillingHealthFunction?: string; recordDisputeFunction?: string; recordRefundFunction?: string; @@ -4828,6 +4850,8 @@ export interface BillingProviderModulePatch { activatePlanSubscriptionFunction?: string; apiName?: string; applyProviderObservationFunction?: string; + billingConnectionTableId?: string; + billingConnectionTableName?: string; billingCustomersTableId?: string; billingCustomersTableName?: string; billingDisputesTableId?: string; @@ -4842,6 +4866,7 @@ export interface BillingProviderModulePatch { billingPricesTableName?: string; billingProductsTableId?: string; billingProductsTableName?: string; + billingProviderConnectedFunction?: string; billingProviderStateTableId?: string; billingProviderStateTableName?: string; billingRefundsTableId?: string; @@ -4878,6 +4903,7 @@ export interface BillingProviderModulePatch { processBillingEventFunction?: string; productsTableId?: string; provider?: string; + recordBillingConnectionFunction?: string; recordBillingHealthFunction?: string; recordDisputeFunction?: string; recordRefundFunction?: string; @@ -13703,6 +13729,8 @@ export interface StorageModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `publicUrlPrefix` field. */ publicUrlPrefix?: StringFilter; + /** Filter by the object’s `region` field. */ + region?: StringFilter; /** Filter by the object’s `restrictReads` field. */ restrictReads?: BooleanFilter; /** Filter by the object’s `schemaId` field. */ @@ -13752,6 +13780,7 @@ export interface StorageModuleInput { provisions?: unknown; publicSchemaName?: string; publicUrlPrefix?: string; + region?: string; restrictReads?: boolean; schemaId?: string; scope: string; @@ -13797,6 +13826,7 @@ export interface StorageModulePatch { provisions?: unknown; publicSchemaName?: string; publicUrlPrefix?: string; + region?: string; restrictReads?: boolean; schemaId?: string; scope?: string; diff --git a/sdk/constructive-react/src/modules/types.ts b/sdk/constructive-react/src/modules/types.ts index 86994c7b40..25079882e1 100644 --- a/sdk/constructive-react/src/modules/types.ts +++ b/sdk/constructive-react/src/modules/types.ts @@ -137,6 +137,8 @@ export interface BillingProviderModule { activatePlanSubscriptionFunction: string | null; apiName: string | null; applyProviderObservationFunction: string | null; + billingConnectionTableId: string | null; + billingConnectionTableName: string | null; billingCustomersTableId: string | null; billingCustomersTableName: string | null; billingDisputesTableId: string | null; @@ -151,6 +153,7 @@ export interface BillingProviderModule { billingPricesTableName: string | null; billingProductsTableId: string | null; billingProductsTableName: string | null; + billingProviderConnectedFunction: string | null; billingProviderStateTableId: string | null; billingProviderStateTableName: string | null; billingRefundsTableId: string | null; @@ -187,6 +190,7 @@ export interface BillingProviderModule { processBillingEventFunction: string | null; productsTableId: string | null; provider: string | null; + recordBillingConnectionFunction: string | null; recordBillingHealthFunction: string | null; recordDisputeFunction: string | null; recordRefundFunction: string | null; @@ -1772,6 +1776,7 @@ export interface StorageModule { provisions: unknown | null; publicSchemaName: string | null; publicUrlPrefix: string | null; + region: string | null; restrictReads: boolean | null; schemaId: string | null; scope: string | null; diff --git a/sdk/constructive-react/src/storage/hooks/README.md b/sdk/constructive-react/src/storage/hooks/README.md index aad59518df..8317d954fa 100644 --- a/sdk/constructive-react/src/storage/hooks/README.md +++ b/sdk/constructive-react/src/storage/hooks/README.md @@ -60,9 +60,9 @@ storage:provision_bucket job used by the INSERT trigger. This is idempotent for an already-reconciled bucket; enqueue failures become GraphQL errors. | | `useUploadFileMutation` | Mutation | Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. | -| `useUploadFilesMutation` | Mutation | Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. | +| `useUploadFilesMutation` | Mutation | Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. Accepts at most the bucket's `maxBulkFiles` files per call. | | `useUploadPlatformFileMutation` | Mutation | Upload a file: resolves the bucket by key, creates the file row, and returns a presigned PUT URL. | -| `useUploadPlatformFilesMutation` | Mutation | Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. | +| `useUploadPlatformFilesMutation` | Mutation | Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. Accepts at most the bucket's `maxBulkFiles` files per call. | ## Table Hooks @@ -71,20 +71,20 @@ GraphQL errors. | ```typescript // List all buckets const { data, isLoading } = useBucketsQuery({ - selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }, + selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }, }); // Get one bucket const { data: item } = useBucketQuery({ id: '', - selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }, + selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }, }); // Create a bucket const { mutate: create } = useCreateBucketMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }); +create({ actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }); ``` ### File @@ -113,20 +113,20 @@ create({ actorId: '', bucketId: '', contentHash: '', databas ```typescript // List all platformBuckets const { data, isLoading } = usePlatformBucketsQuery({ - selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }, + selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }, }); // Get one platformBucket const { data: item } = usePlatformBucketQuery({ id: '', - selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }, + selection: { fields: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }, }); // Create a platformBucket const { mutate: create } = useCreatePlatformBucketMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }); +create({ actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }); ``` ### PlatformFile @@ -202,7 +202,7 @@ Upload a file: resolves the bucket by key, creates the file row, and returns a p ### `useUploadFilesMutation` -Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. Accepts at most the bucket's `maxBulkFiles` files per call. - **Type:** mutation - **Arguments:** @@ -224,7 +224,7 @@ Upload a file: resolves the bucket by key, creates the file row, and returns a p ### `useUploadPlatformFilesMutation` -Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. Accepts at most the bucket's `maxBulkFiles` files per call. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-react/src/storage/orm/README.md b/sdk/constructive-react/src/storage/orm/README.md index a72925c67d..9445be8f5e 100644 --- a/sdk/constructive-react/src/storage/orm/README.md +++ b/sdk/constructive-react/src/storage/orm/README.md @@ -47,6 +47,7 @@ CRUD operations for Bucket records. | `id` | UUID | No | | `isPublic` | Boolean | Yes | | `key` | String | Yes | +| `maxBulkFiles` | Int | Yes | | `maxFileSize` | BigInt | Yes | | `physicalName` | String | Yes | | `stagingTtl` | Interval | Yes | @@ -58,13 +59,13 @@ CRUD operations for Bucket records. ```typescript // List all bucket records -const items = await db.bucket.findMany({ select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); +const items = await db.bucket.findMany({ select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.bucket.findOne({ id: '', select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); +const item = await db.bucket.findOne({ id: '', select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); // Create -const created = await db.bucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); +const created = await db.bucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); // Update const updated = await db.bucket.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -139,6 +140,7 @@ CRUD operations for PlatformBucket records. | `id` | UUID | No | | `isPublic` | Boolean | Yes | | `key` | String | Yes | +| `maxBulkFiles` | Int | Yes | | `maxFileSize` | BigInt | Yes | | `physicalName` | String | Yes | | `stagingTtl` | Interval | Yes | @@ -150,13 +152,13 @@ CRUD operations for PlatformBucket records. ```typescript // List all platformBucket records -const items = await db.platformBucket.findMany({ select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); +const items = await db.platformBucket.findMany({ select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformBucket.findOne({ id: '', select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); +const item = await db.platformBucket.findOne({ id: '', select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); // Create -const created = await db.platformBucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); +const created = await db.platformBucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformBucket.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -280,7 +282,7 @@ const result = await db.mutation.uploadFile({ input: '' }).exec ### `db.mutation.uploadFiles` -Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. Accepts at most the bucket's `maxBulkFiles` files per call. - **Type:** mutation - **Arguments:** @@ -310,7 +312,7 @@ const result = await db.mutation.uploadPlatformFile({ input: '' }, const deleted = await db.getSitePreviewsRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.hostnameBinding` - -CRUD operations for HostnameBinding records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `domainId` | UUID | Yes | -| `hostname` | String | Yes | -| `id` | UUID | No | -| `isWildcard` | Boolean | Yes | -| `managed` | Boolean | Yes | -| `parentHostname` | String | Yes | -| `tlsSecretName` | String | Yes | -| `tlsStatus` | String | Yes | -| `updatedAt` | Datetime | No | -| `verificationStatus` | String | Yes | - -**Operations:** - -```typescript -// List all hostnameBinding records -const items = await db.hostnameBinding.findMany({ select: { domainId: true, hostname: true, id: true, isWildcard: true, managed: true, parentHostname: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true } }).execute(); - -// Get one by id -const item = await db.hostnameBinding.findOne({ id: '', select: { domainId: true, hostname: true, id: true, isWildcard: true, managed: true, parentHostname: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true } }).execute(); - -// Create -const created = await db.hostnameBinding.create({ data: { domainId: '', hostname: '', isWildcard: '', managed: '', parentHostname: '', tlsSecretName: '', tlsStatus: '', verificationStatus: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.hostnameBinding.update({ where: { id: '' }, data: { domainId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.hostnameBinding.delete({ where: { id: '' } }).execute(); -``` - ### `db.identityProviderRegistry` CRUD operations for IdentityProviderRegistry records. @@ -1489,6 +1449,7 @@ CRUD operations for ManagedDomain records. | `domain` | String | Yes | | `id` | UUID | No | | `isWildcard` | Boolean | Yes | +| `publicPort` | Int | Yes | | `tlsReadyAt` | Datetime | Yes | | `tlsStatus` | String | Yes | | `updatedAt` | Datetime | No | @@ -1500,13 +1461,13 @@ CRUD operations for ManagedDomain records. ```typescript // List all managedDomain records -const items = await db.managedDomain.findMany({ select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); +const items = await db.managedDomain.findMany({ select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Get one by id -const item = await db.managedDomain.findOne({ id: '', select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); +const item = await db.managedDomain.findOne({ id: '', select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, databaseId: true, domain: true, id: true, isWildcard: true, publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Create -const created = await db.managedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', databaseId: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); +const created = await db.managedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', databaseId: '', domain: '', isWildcard: '', publicPort: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); // Update const updated = await db.managedDomain.update({ where: { id: '' }, data: { allowPublicUsage: '' }, select: { id: true } }).execute(); @@ -2075,6 +2036,7 @@ CRUD operations for PlatformManagedDomain records. | `domain` | String | Yes | | `id` | UUID | No | | `isWildcard` | Boolean | Yes | +| `publicPort` | Int | Yes | | `tlsReadyAt` | Datetime | Yes | | `tlsStatus` | String | Yes | | `updatedAt` | Datetime | No | @@ -2086,13 +2048,13 @@ CRUD operations for PlatformManagedDomain records. ```typescript // List all platformManagedDomain records -const items = await db.platformManagedDomain.findMany({ select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); +const items = await db.platformManagedDomain.findMany({ select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Get one by id -const item = await db.platformManagedDomain.findOne({ id: '', select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); +const item = await db.platformManagedDomain.findOne({ id: '', select: { allowPublicUsage: true, annotations: true, certStatus: true, createdAt: true, createdByPrincipal: true, domain: true, id: true, isWildcard: true, publicPort: true, tlsReadyAt: true, tlsStatus: true, updatedAt: true, updatedByPrincipal: true, verificationStatus: true, verifiedAt: true } }).execute(); // Create -const created = await db.platformManagedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', domain: '', isWildcard: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); +const created = await db.platformManagedDomain.create({ data: { allowPublicUsage: '', annotations: '', certStatus: '', createdByPrincipal: '', domain: '', isWildcard: '', publicPort: '', tlsReadyAt: '', tlsStatus: '', updatedByPrincipal: '', verificationStatus: '', verifiedAt: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformManagedDomain.update({ where: { id: '' }, data: { allowPublicUsage: '' }, select: { id: true } }).execute(); @@ -2680,48 +2642,6 @@ const updated = await db.rlsSetting.update({ where: { id: '' }, data: { au const deleted = await db.rlsSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.routeBinding` - -CRUD operations for RouteBinding records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `domainId` | UUID | Yes | -| `id` | UUID | No | -| `isActive` | Boolean | Yes | -| `method` | String | Yes | -| `path` | String | Yes | -| `priority` | Int | Yes | -| `servingSiteId` | UUID | Yes | -| `targetApiId` | UUID | Yes | -| `targetBucketId` | UUID | Yes | -| `targetFunctionId` | UUID | Yes | -| `targetRedirectId` | UUID | Yes | -| `targetServiceId` | UUID | Yes | -| `targetSiteId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all routeBinding records -const items = await db.routeBinding.findMany({ select: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.routeBinding.findOne({ id: '', select: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.routeBinding.create({ data: { domainId: '', isActive: '', method: '', path: '', priority: '', servingSiteId: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetRedirectId: '', targetServiceId: '', targetSiteId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.routeBinding.update({ where: { id: '' }, data: { domainId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.routeBinding.delete({ where: { id: '' } }).execute(); -``` - ### `db.route` CRUD operations for Route records. @@ -3527,6 +3447,7 @@ CRUD operations for UniqueConstraint records. | `initiallyDeferred` | Boolean | Yes | | `isDeferrable` | Boolean | Yes | | `name` | String | Yes | +| `nullsNotDistinct` | Boolean | Yes | | `smartTags` | JSON | Yes | | `tableId` | UUID | Yes | | `tags` | String | Yes | @@ -3538,13 +3459,13 @@ CRUD operations for UniqueConstraint records. ```typescript // List all uniqueConstraint records -const items = await db.uniqueConstraint.findMany({ select: { category: true, createdAt: true, databaseId: true, description: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, withoutOverlaps: true } }).execute(); +const items = await db.uniqueConstraint.findMany({ select: { category: true, createdAt: true, databaseId: true, description: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, nullsNotDistinct: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, withoutOverlaps: true } }).execute(); // Get one by id -const item = await db.uniqueConstraint.findOne({ id: '', select: { category: true, createdAt: true, databaseId: true, description: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, withoutOverlaps: true } }).execute(); +const item = await db.uniqueConstraint.findOne({ id: '', select: { category: true, createdAt: true, databaseId: true, description: true, fieldIds: true, id: true, initiallyDeferred: true, isDeferrable: true, name: true, nullsNotDistinct: true, smartTags: true, tableId: true, tags: true, type: true, updatedAt: true, withoutOverlaps: true } }).execute(); // Create -const created = await db.uniqueConstraint.create({ data: { category: '', databaseId: '', description: '', fieldIds: '', initiallyDeferred: '', isDeferrable: '', name: '', smartTags: '', tableId: '', tags: '', type: '', withoutOverlaps: '' }, select: { id: true } }).execute(); +const created = await db.uniqueConstraint.create({ data: { category: '', databaseId: '', description: '', fieldIds: '', initiallyDeferred: '', isDeferrable: '', name: '', nullsNotDistinct: '', smartTags: '', tableId: '', tags: '', type: '', withoutOverlaps: '' }, select: { id: true } }).execute(); // Update const updated = await db.uniqueConstraint.update({ where: { id: '' }, data: { category: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-sdk/src/api/orm/index.ts b/sdk/constructive-sdk/src/api/orm/index.ts index 444db1275d..038b8785ac 100644 --- a/sdk/constructive-sdk/src/api/orm/index.ts +++ b/sdk/constructive-sdk/src/api/orm/index.ts @@ -34,7 +34,6 @@ import { ForeignKeyConstraintModel } from './models/foreignKeyConstraint'; import { FullTextSearchModel } from './models/fullTextSearch'; import { FunctionModel } from './models/function'; import { GetSitePreviewsRecordModel } from './models/getSitePreviewsRecord'; -import { HostnameBindingModel } from './models/hostnameBinding'; import { IdentityProviderRegistryModel } from './models/identityProviderRegistry'; import { IndexModel } from './models/index'; import { ListSuspendedDatabasesRecordModel } from './models/listSuspendedDatabasesRecord'; @@ -69,7 +68,6 @@ import { PrimaryKeyConstraintModel } from './models/primaryKeyConstraint'; import { PubkeySettingModel } from './models/pubkeySetting'; import { RedirectModel } from './models/redirect'; import { RlsSettingModel } from './models/rlsSetting'; -import { RouteBindingModel } from './models/routeBinding'; import { RouteModel } from './models/route'; import { SchemaModel } from './models/schema'; import { SchemaGrantModel } from './models/schemaGrant'; @@ -161,7 +159,6 @@ export function createClient(config: OrmClientConfig) { fullTextSearch: new FullTextSearchModel(client), function: new FunctionModel(client), getSitePreviewsRecord: new GetSitePreviewsRecordModel(client), - hostnameBinding: new HostnameBindingModel(client), identityProviderRegistry: new IdentityProviderRegistryModel(client), index: new IndexModel(client), listSuspendedDatabasesRecord: new ListSuspendedDatabasesRecordModel(client), @@ -196,7 +193,6 @@ export function createClient(config: OrmClientConfig) { pubkeySetting: new PubkeySettingModel(client), redirect: new RedirectModel(client), rlsSetting: new RlsSettingModel(client), - routeBinding: new RouteBindingModel(client), route: new RouteModel(client), schema: new SchemaModel(client), schemaGrant: new SchemaGrantModel(client), diff --git a/sdk/constructive-sdk/src/api/orm/input-types.ts b/sdk/constructive-sdk/src/api/orm/input-types.ts index ff96fdb8a4..d9fd64ac28 100644 --- a/sdk/constructive-sdk/src/api/orm/input-types.ts +++ b/sdk/constructive-sdk/src/api/orm/input-types.ts @@ -824,28 +824,6 @@ export interface GetSitePreviewsRecord { commitId?: string | null; name?: string | null; } -/** Compiled hostname index maintained by domain sync triggers; read only through the resolver */ -export interface HostnameBinding { - /** Domain row this binding was compiled from */ - domainId?: string | null; - /** Lowercase hostname (exact or *.parent wildcard) */ - hostname?: string | null; - id: string; - /** Whether this binding is a wildcard claim */ - isWildcard?: boolean | null; - /** Whether the platform drives this hostname's lifecycle */ - managed?: boolean | null; - /** Parent hostname a wildcard binding covers */ - parentHostname?: string | null; - /** TLS secret name compiled from the domain row */ - tlsSecretName?: string | null; - /** Certificate lifecycle state compiled from the domain row */ - tlsStatus?: string | null; - /** When this binding was last recompiled */ - updatedAt?: string | null; - /** Ownership verification state compiled from the domain row */ - verificationStatus?: string | null; -} export interface IdentityProviderRegistry { authorizationUrl?: string | null; displayName?: string | null; @@ -900,6 +878,8 @@ export interface ManagedDomain { id: string; /** Whether this managed hostname is a *.parent wildcard */ isWildcard?: boolean | null; + /** Port the edge serves this hostname on when it is not the scheme default; NULL on a standard edge */ + publicPort?: number | null; /** When TLS last became ready */ tlsReadyAt?: string | null; /** TLS provisioning state for this managed hostname */ @@ -1215,6 +1195,8 @@ export interface PlatformManagedDomain { id: string; /** Whether this managed hostname is a *.parent wildcard */ isWildcard?: boolean | null; + /** Port the edge serves this hostname on when it is not the scheme default; NULL on a standard edge */ + publicPort?: number | null; /** When TLS last became ready */ tlsReadyAt?: string | null; /** TLS provisioning state for this managed hostname */ @@ -1518,36 +1500,6 @@ export interface RlsSetting { roleSchemaId?: string | null; updatedAt?: string | null; } -/** Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver */ -export interface RouteBinding { - /** Domain row the source route binds */ - domainId?: string | null; - id: string; - /** Active flag compiled from the source route */ - isActive?: boolean | null; - /** HTTP method this binding matches; NULL matches any method */ - method?: string | null; - /** Path prefix this binding matches */ - path?: string | null; - /** Priority compiled from the source route */ - priority?: number | null; - /** Site whose surface the source route serves; NULL when it serves no site */ - servingSiteId?: string | null; - /** Api catalog row the source route targets */ - targetApiId?: string | null; - /** Bucket catalog row the source route targets */ - targetBucketId?: string | null; - /** Function catalog row the source route targets */ - targetFunctionId?: string | null; - /** Redirect catalog row the source route targets */ - targetRedirectId?: string | null; - /** Resource catalog row (a Service resource) the source route targets */ - targetServiceId?: string | null; - /** Site catalog row the source route targets */ - targetSiteId?: string | null; - /** When this binding was last recompiled */ - updatedAt?: string | null; -} /** Routes binding a domain hostname and path to a typed catalog target */ export interface Route { /** Whether this route answers callers with no identity. Requires the target function to declare anonymous_callable; default false = an identity is required */ @@ -1917,6 +1869,7 @@ export interface UniqueConstraint { initiallyDeferred?: boolean | null; isDeferrable?: boolean | null; name?: string | null; + nullsNotDistinct?: boolean | null; smartTags?: Record | null; tableId?: string | null; tags?: string[] | null; @@ -2184,7 +2137,6 @@ export interface FunctionRelations { triggers?: ConnectionResult; } export interface GetSitePreviewsRecordRelations {} -export interface HostnameBindingRelations {} export interface IdentityProviderRegistryRelations {} export interface IndexRelations { database?: Database | null; @@ -2317,7 +2269,6 @@ export interface RlsSettingRelations { currentUserAgentFunction?: Function | null; roleSchema?: Schema | null; } -export interface RouteBindingRelations {} export interface RouteRelations { domain?: Domain | null; servingSite?: Site | null; @@ -2511,7 +2462,6 @@ export type FullTextSearchWithRelations = FullTextSearch & FullTextSearchRelatio export type FunctionWithRelations = Function & FunctionRelations; export type GetSitePreviewsRecordWithRelations = GetSitePreviewsRecord & GetSitePreviewsRecordRelations; -export type HostnameBindingWithRelations = HostnameBinding & HostnameBindingRelations; export type IdentityProviderRegistryWithRelations = IdentityProviderRegistry & IdentityProviderRegistryRelations; export type IndexWithRelations = Index & IndexRelations; @@ -2559,7 +2509,6 @@ export type PrimaryKeyConstraintWithRelations = PrimaryKeyConstraint & export type PubkeySettingWithRelations = PubkeySetting & PubkeySettingRelations; export type RedirectWithRelations = Redirect & RedirectRelations; export type RlsSettingWithRelations = RlsSetting & RlsSettingRelations; -export type RouteBindingWithRelations = RouteBinding & RouteBindingRelations; export type RouteWithRelations = Route & RouteRelations; export type SchemaWithRelations = Schema & SchemaRelations; export type SchemaGrantWithRelations = SchemaGrant & SchemaGrantRelations; @@ -3473,18 +3422,6 @@ export type GetSitePreviewsRecordSelect = { commitId?: boolean; name?: boolean; }; -export type HostnameBindingSelect = { - domainId?: boolean; - hostname?: boolean; - id?: boolean; - isWildcard?: boolean; - managed?: boolean; - parentHostname?: boolean; - tlsSecretName?: boolean; - tlsStatus?: boolean; - updatedAt?: boolean; - verificationStatus?: boolean; -}; export type IdentityProviderRegistrySelect = { authorizationUrl?: boolean; displayName?: boolean; @@ -3538,6 +3475,7 @@ export type ManagedDomainSelect = { domain?: boolean; id?: boolean; isWildcard?: boolean; + publicPort?: boolean; tlsReadyAt?: boolean; tlsStatus?: boolean; updatedAt?: boolean; @@ -3830,6 +3768,7 @@ export type PlatformManagedDomainSelect = { domain?: boolean; id?: boolean; isWildcard?: boolean; + publicPort?: boolean; tlsReadyAt?: boolean; tlsStatus?: boolean; updatedAt?: boolean; @@ -4176,22 +4115,6 @@ export type RlsSettingSelect = { select: SchemaSelect; }; }; -export type RouteBindingSelect = { - domainId?: boolean; - id?: boolean; - isActive?: boolean; - method?: boolean; - path?: boolean; - priority?: boolean; - servingSiteId?: boolean; - targetApiId?: boolean; - targetBucketId?: boolean; - targetFunctionId?: boolean; - targetRedirectId?: boolean; - targetServiceId?: boolean; - targetSiteId?: boolean; - updatedAt?: boolean; -}; export type RouteSelect = { anonymous?: boolean; config?: boolean; @@ -4821,6 +4744,7 @@ export type UniqueConstraintSelect = { initiallyDeferred?: boolean; isDeferrable?: boolean; name?: boolean; + nullsNotDistinct?: boolean; smartTags?: boolean; tableId?: boolean; tags?: boolean; @@ -6323,34 +6247,6 @@ export interface GetSitePreviewsRecordFilter { or?: GetSitePreviewsRecordFilter[]; not?: GetSitePreviewsRecordFilter; } -export interface HostnameBindingFilter { - /** Checks for all expressions in this list. */ - and?: HostnameBindingFilter[]; - /** Filter by the object’s `domainId` field. */ - domainId?: UUIDFilter; - /** Filter by the object’s `hostname` field. */ - hostname?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isWildcard` field. */ - isWildcard?: BooleanFilter; - /** Filter by the object’s `managed` field. */ - managed?: BooleanFilter; - /** Negates the expression. */ - not?: HostnameBindingFilter; - /** Checks for any expressions in this list. */ - or?: HostnameBindingFilter[]; - /** Filter by the object’s `parentHostname` field. */ - parentHostname?: StringFilter; - /** Filter by the object’s `tlsSecretName` field. */ - tlsSecretName?: StringFilter; - /** Filter by the object’s `tlsStatus` field. */ - tlsStatus?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `verificationStatus` field. */ - verificationStatus?: StringFilter; -} export interface IdentityProviderRegistryFilter { /** Checks for all expressions in this list. */ and?: IdentityProviderRegistryFilter[]; @@ -6466,6 +6362,8 @@ export interface ManagedDomainFilter { not?: ManagedDomainFilter; /** Checks for any expressions in this list. */ or?: ManagedDomainFilter[]; + /** Filter by the object’s `publicPort` field. */ + publicPort?: IntFilter; /** Filter by the object’s `tlsReadyAt` field. */ tlsReadyAt?: DatetimeFilter; /** Filter by the object’s `tlsStatus` field. */ @@ -6995,6 +6893,8 @@ export interface PlatformManagedDomainFilter { platformDomainVerificationsByManagedDomainId?: PlatformManagedDomainToManyPlatformDomainVerificationFilter; /** `platformDomainVerificationsByManagedDomainId` exist. */ platformDomainVerificationsByManagedDomainIdExist?: boolean; + /** Filter by the object’s `publicPort` field. */ + publicPort?: IntFilter; /** Filter by the object’s `tlsReadyAt` field. */ tlsReadyAt?: DatetimeFilter; /** Filter by the object’s `tlsStatus` field. */ @@ -7574,42 +7474,6 @@ export interface RlsSettingFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface RouteBindingFilter { - /** Checks for all expressions in this list. */ - and?: RouteBindingFilter[]; - /** Filter by the object’s `domainId` field. */ - domainId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `method` field. */ - method?: StringFilter; - /** Negates the expression. */ - not?: RouteBindingFilter; - /** Checks for any expressions in this list. */ - or?: RouteBindingFilter[]; - /** Filter by the object’s `path` field. */ - path?: StringFilter; - /** Filter by the object’s `priority` field. */ - priority?: IntFilter; - /** Filter by the object’s `servingSiteId` field. */ - servingSiteId?: UUIDFilter; - /** Filter by the object’s `targetApiId` field. */ - targetApiId?: UUIDFilter; - /** Filter by the object’s `targetBucketId` field. */ - targetBucketId?: UUIDFilter; - /** Filter by the object’s `targetFunctionId` field. */ - targetFunctionId?: UUIDFilter; - /** Filter by the object’s `targetRedirectId` field. */ - targetRedirectId?: UUIDFilter; - /** Filter by the object’s `targetServiceId` field. */ - targetServiceId?: UUIDFilter; - /** Filter by the object’s `targetSiteId` field. */ - targetSiteId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} export interface RouteFilter { /** Checks for all expressions in this list. */ and?: RouteFilter[]; @@ -8503,6 +8367,8 @@ export interface UniqueConstraintFilter { name?: StringFilter; /** Negates the expression. */ not?: UniqueConstraintFilter; + /** Filter by the object’s `nullsNotDistinct` field. */ + nullsNotDistinct?: BooleanFilter; /** Checks for any expressions in this list. */ or?: UniqueConstraintFilter[]; /** Filter by the object’s `smartTags` field. */ @@ -9671,30 +9537,6 @@ export type GetSitePreviewsRecordsOrderBy = | 'COMMIT_ID_DESC' | 'NAME_ASC' | 'NAME_DESC'; -export type HostnameBindingOrderBy = - | 'DOMAIN_ID_ASC' - | 'DOMAIN_ID_DESC' - | 'HOSTNAME_ASC' - | 'HOSTNAME_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_WILDCARD_ASC' - | 'IS_WILDCARD_DESC' - | 'MANAGED_ASC' - | 'MANAGED_DESC' - | 'NATURAL' - | 'PARENT_HOSTNAME_ASC' - | 'PARENT_HOSTNAME_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'TLS_SECRET_NAME_ASC' - | 'TLS_SECRET_NAME_DESC' - | 'TLS_STATUS_ASC' - | 'TLS_STATUS_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'VERIFICATION_STATUS_ASC' - | 'VERIFICATION_STATUS_DESC'; export type IdentityProviderRegistryOrderBy = | 'AUTHORIZATION_URL_ASC' | 'AUTHORIZATION_URL_DESC' @@ -9791,6 +9633,8 @@ export type ManagedDomainOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'PUBLIC_PORT_ASC' + | 'PUBLIC_PORT_DESC' | 'TLS_READY_AT_ASC' | 'TLS_READY_AT_DESC' | 'TLS_STATUS_ASC' @@ -10183,6 +10027,8 @@ export type PlatformManagedDomainOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'PUBLIC_PORT_ASC' + | 'PUBLIC_PORT_DESC' | 'TLS_READY_AT_ASC' | 'TLS_READY_AT_DESC' | 'TLS_STATUS_ASC' @@ -10573,38 +10419,6 @@ export type RlsSettingOrderBy = | 'ROLE_SCHEMA_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type RouteBindingOrderBy = - | 'DOMAIN_ID_ASC' - | 'DOMAIN_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'METHOD_ASC' - | 'METHOD_DESC' - | 'NATURAL' - | 'PATH_ASC' - | 'PATH_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PRIORITY_ASC' - | 'PRIORITY_DESC' - | 'SERVING_SITE_ID_ASC' - | 'SERVING_SITE_ID_DESC' - | 'TARGET_API_ID_ASC' - | 'TARGET_API_ID_DESC' - | 'TARGET_BUCKET_ID_ASC' - | 'TARGET_BUCKET_ID_DESC' - | 'TARGET_FUNCTION_ID_ASC' - | 'TARGET_FUNCTION_ID_DESC' - | 'TARGET_REDIRECT_ID_ASC' - | 'TARGET_REDIRECT_ID_DESC' - | 'TARGET_SERVICE_ID_ASC' - | 'TARGET_SERVICE_ID_DESC' - | 'TARGET_SITE_ID_ASC' - | 'TARGET_SITE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type RouteOrderBy = | 'ANONYMOUS_ASC' | 'ANONYMOUS_DESC' @@ -11159,6 +10973,8 @@ export type UniqueConstraintOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' + | 'NULLS_NOT_DISTINCT_ASC' + | 'NULLS_NOT_DISTINCT_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SMART_TAGS_ASC' @@ -12418,38 +12234,6 @@ export interface DeleteGetSitePreviewsRecordInput { clientMutationId?: string; id: string; } -export interface CreateHostnameBindingInput { - clientMutationId?: string; - hostnameBinding: { - domainId: string; - hostname: string; - isWildcard?: boolean; - managed?: boolean; - parentHostname?: string; - tlsSecretName?: string; - tlsStatus?: string; - verificationStatus?: string; - }; -} -export interface HostnameBindingPatch { - domainId?: string | null; - hostname?: string | null; - isWildcard?: boolean | null; - managed?: boolean | null; - parentHostname?: string | null; - tlsSecretName?: string | null; - tlsStatus?: string | null; - verificationStatus?: string | null; -} -export interface UpdateHostnameBindingInput { - clientMutationId?: string; - id: string; - hostnameBindingPatch: HostnameBindingPatch; -} -export interface DeleteHostnameBindingInput { - clientMutationId?: string; - id: string; -} export interface CreateIdentityProviderRegistryInput { clientMutationId?: string; identityProviderRegistry: { @@ -12562,6 +12346,7 @@ export interface CreateManagedDomainInput { databaseId: string; domain: string; isWildcard?: boolean; + publicPort?: number; tlsReadyAt?: string; tlsStatus?: string; updatedByPrincipal?: string; @@ -12577,6 +12362,7 @@ export interface ManagedDomainPatch { databaseId?: string | null; domain?: string | null; isWildcard?: boolean | null; + publicPort?: number | null; tlsReadyAt?: string | null; tlsStatus?: string | null; updatedByPrincipal?: string | null; @@ -13057,6 +12843,7 @@ export interface CreatePlatformManagedDomainInput { createdByPrincipal?: string; domain: string; isWildcard?: boolean; + publicPort?: number; tlsReadyAt?: string; tlsStatus?: string; updatedByPrincipal?: string; @@ -13071,6 +12858,7 @@ export interface PlatformManagedDomainPatch { createdByPrincipal?: string | null; domain?: string | null; isWildcard?: boolean | null; + publicPort?: number | null; tlsReadyAt?: string | null; tlsStatus?: string | null; updatedByPrincipal?: string | null; @@ -13558,46 +13346,6 @@ export interface DeleteRlsSettingInput { clientMutationId?: string; id: string; } -export interface CreateRouteBindingInput { - clientMutationId?: string; - routeBinding: { - domainId: string; - isActive?: boolean; - method?: string; - path: string; - priority?: number; - servingSiteId?: string; - targetApiId?: string; - targetBucketId?: string; - targetFunctionId?: string; - targetRedirectId?: string; - targetServiceId?: string; - targetSiteId?: string; - }; -} -export interface RouteBindingPatch { - domainId?: string | null; - isActive?: boolean | null; - method?: string | null; - path?: string | null; - priority?: number | null; - servingSiteId?: string | null; - targetApiId?: string | null; - targetBucketId?: string | null; - targetFunctionId?: string | null; - targetRedirectId?: string | null; - targetServiceId?: string | null; - targetSiteId?: string | null; -} -export interface UpdateRouteBindingInput { - clientMutationId?: string; - id: string; - routeBindingPatch: RouteBindingPatch; -} -export interface DeleteRouteBindingInput { - clientMutationId?: string; - id: string; -} export interface CreateRouteInput { clientMutationId?: string; route: { @@ -14270,6 +14018,7 @@ export interface CreateUniqueConstraintInput { initiallyDeferred?: boolean; isDeferrable?: boolean; name?: string; + nullsNotDistinct?: boolean; smartTags?: Record; tableId: string; tags?: string[]; @@ -14285,6 +14034,7 @@ export interface UniqueConstraintPatch { initiallyDeferred?: boolean | null; isDeferrable?: boolean | null; name?: string | null; + nullsNotDistinct?: boolean | null; smartTags?: Record | null; tableId?: string | null; tags?: string[] | null; @@ -16435,28 +16185,6 @@ export interface FunctionInput { tags?: string[]; volatility?: string; } -/** An input for mutations affecting `HostnameBinding` */ -export interface HostnameBindingInput { - /** Domain row this binding was compiled from */ - domainId: string; - /** Lowercase hostname (exact or *.parent wildcard) */ - hostname: string; - id?: string; - /** Whether this binding is a wildcard claim */ - isWildcard?: boolean; - /** Whether the platform drives this hostname's lifecycle */ - managed?: boolean; - /** Parent hostname a wildcard binding covers */ - parentHostname?: string; - /** TLS secret name compiled from the domain row */ - tlsSecretName?: string; - /** Certificate lifecycle state compiled from the domain row */ - tlsStatus?: string; - /** When this binding was last recompiled */ - updatedAt?: string; - /** Ownership verification state compiled from the domain row */ - verificationStatus?: string; -} /** An input for mutations affecting `IdentityProviderRegistry` */ export interface IdentityProviderRegistryInput { authorizationUrl?: string; @@ -16506,6 +16234,8 @@ export interface ManagedDomainInput { id?: string; /** Whether this managed hostname is a *.parent wildcard */ isWildcard?: boolean; + /** Port the edge serves this hostname on when it is not the scheme default; NULL on a standard edge */ + publicPort?: number; /** When TLS last became ready */ tlsReadyAt?: string; /** TLS provisioning state for this managed hostname */ @@ -16819,6 +16549,8 @@ export interface PlatformManagedDomainInput { id?: string; /** Whether this managed hostname is a *.parent wildcard */ isWildcard?: boolean; + /** Port the edge serves this hostname on when it is not the scheme default; NULL on a standard edge */ + publicPort?: number; /** When TLS last became ready */ tlsReadyAt?: string; /** TLS provisioning state for this managed hostname */ @@ -17124,36 +16856,6 @@ export interface RlsSettingInput { roleSchemaId?: string; updatedAt?: string; } -/** An input for mutations affecting `RouteBinding` */ -export interface RouteBindingInput { - /** Domain row the source route binds */ - domainId: string; - id?: string; - /** Active flag compiled from the source route */ - isActive?: boolean; - /** HTTP method this binding matches; NULL matches any method */ - method?: string; - /** Path prefix this binding matches */ - path: string; - /** Priority compiled from the source route */ - priority?: number; - /** Site whose surface the source route serves; NULL when it serves no site */ - servingSiteId?: string; - /** Api catalog row the source route targets */ - targetApiId?: string; - /** Bucket catalog row the source route targets */ - targetBucketId?: string; - /** Function catalog row the source route targets */ - targetFunctionId?: string; - /** Redirect catalog row the source route targets */ - targetRedirectId?: string; - /** Resource catalog row (a Service resource) the source route targets */ - targetServiceId?: string; - /** Site catalog row the source route targets */ - targetSiteId?: string; - /** When this binding was last recompiled */ - updatedAt?: string; -} /** An input for mutations affecting `Route` */ export interface RouteInput { /** Whether this route answers callers with no identity. Requires the target function to declare anonymous_callable; default false = an identity is required */ @@ -17518,6 +17220,7 @@ export interface UniqueConstraintInput { initiallyDeferred?: boolean; isDeferrable?: boolean; name?: string; + nullsNotDistinct?: boolean; smartTags?: Record; tableId: string; tags?: string[]; @@ -19002,6 +18705,8 @@ export interface UniqueConstraintFilter { name?: StringFilter; /** Negates the expression. */ not?: UniqueConstraintFilter; + /** Filter by the object’s `nullsNotDistinct` field. */ + nullsNotDistinct?: BooleanFilter; /** Checks for any expressions in this list. */ or?: UniqueConstraintFilter[]; /** Filter by the object’s `smartTags` field. */ @@ -20540,6 +20245,8 @@ export interface ManagedDomainFilter { not?: ManagedDomainFilter; /** Checks for any expressions in this list. */ or?: ManagedDomainFilter[]; + /** Filter by the object’s `publicPort` field. */ + publicPort?: IntFilter; /** Filter by the object’s `tlsReadyAt` field. */ tlsReadyAt?: DatetimeFilter; /** Filter by the object’s `tlsStatus` field. */ @@ -20832,6 +20539,8 @@ export interface PlatformManagedDomainFilter { platformDomainVerificationsByManagedDomainId?: PlatformManagedDomainToManyPlatformDomainVerificationFilter; /** `platformDomainVerificationsByManagedDomainId` exist. */ platformDomainVerificationsByManagedDomainIdExist?: boolean; + /** Filter by the object’s `publicPort` field. */ + publicPort?: IntFilter; /** Filter by the object’s `tlsReadyAt` field. */ tlsReadyAt?: DatetimeFilter; /** Filter by the object’s `tlsStatus` field. */ @@ -22886,51 +22595,6 @@ export type DeleteFunctionPayloadSelect = { select: FunctionEdgeSelect; }; }; -export interface CreateHostnameBindingPayload { - clientMutationId?: string | null; - /** The `HostnameBinding` that was created by this mutation. */ - hostnameBinding?: HostnameBinding | null; - hostnameBindingEdge?: HostnameBindingEdge | null; -} -export type CreateHostnameBindingPayloadSelect = { - clientMutationId?: boolean; - hostnameBinding?: { - select: HostnameBindingSelect; - }; - hostnameBindingEdge?: { - select: HostnameBindingEdgeSelect; - }; -}; -export interface UpdateHostnameBindingPayload { - clientMutationId?: string | null; - /** The `HostnameBinding` that was updated by this mutation. */ - hostnameBinding?: HostnameBinding | null; - hostnameBindingEdge?: HostnameBindingEdge | null; -} -export type UpdateHostnameBindingPayloadSelect = { - clientMutationId?: boolean; - hostnameBinding?: { - select: HostnameBindingSelect; - }; - hostnameBindingEdge?: { - select: HostnameBindingEdgeSelect; - }; -}; -export interface DeleteHostnameBindingPayload { - clientMutationId?: string | null; - /** The `HostnameBinding` that was deleted by this mutation. */ - hostnameBinding?: HostnameBinding | null; - hostnameBindingEdge?: HostnameBindingEdge | null; -} -export type DeleteHostnameBindingPayloadSelect = { - clientMutationId?: boolean; - hostnameBinding?: { - select: HostnameBindingSelect; - }; - hostnameBindingEdge?: { - select: HostnameBindingEdgeSelect; - }; -}; export interface CreateIdentityProviderRegistryPayload { clientMutationId?: string | null; /** The `IdentityProviderRegistry` that was created by this mutation. */ @@ -24371,51 +24035,6 @@ export type DeleteRlsSettingPayloadSelect = { select: RlsSettingEdgeSelect; }; }; -export interface CreateRouteBindingPayload { - clientMutationId?: string | null; - /** The `RouteBinding` that was created by this mutation. */ - routeBinding?: RouteBinding | null; - routeBindingEdge?: RouteBindingEdge | null; -} -export type CreateRouteBindingPayloadSelect = { - clientMutationId?: boolean; - routeBinding?: { - select: RouteBindingSelect; - }; - routeBindingEdge?: { - select: RouteBindingEdgeSelect; - }; -}; -export interface UpdateRouteBindingPayload { - clientMutationId?: string | null; - /** The `RouteBinding` that was updated by this mutation. */ - routeBinding?: RouteBinding | null; - routeBindingEdge?: RouteBindingEdge | null; -} -export type UpdateRouteBindingPayloadSelect = { - clientMutationId?: boolean; - routeBinding?: { - select: RouteBindingSelect; - }; - routeBindingEdge?: { - select: RouteBindingEdgeSelect; - }; -}; -export interface DeleteRouteBindingPayload { - clientMutationId?: string | null; - /** The `RouteBinding` that was deleted by this mutation. */ - routeBinding?: RouteBinding | null; - routeBindingEdge?: RouteBindingEdge | null; -} -export type DeleteRouteBindingPayloadSelect = { - clientMutationId?: boolean; - routeBinding?: { - select: RouteBindingSelect; - }; - routeBindingEdge?: { - select: RouteBindingEdgeSelect; - }; -}; export interface CreateRoutePayload { clientMutationId?: string | null; /** The `Route` that was created by this mutation. */ @@ -26090,18 +25709,6 @@ export type FunctionEdgeSelect = { select: FunctionSelect; }; }; -/** A `HostnameBinding` edge in the connection. */ -export interface HostnameBindingEdge { - cursor?: string | null; - /** The `HostnameBinding` at the end of the edge. */ - node?: HostnameBinding | null; -} -export type HostnameBindingEdgeSelect = { - cursor?: boolean; - node?: { - select: HostnameBindingSelect; - }; -}; /** A `IdentityProviderRegistry` edge in the connection. */ export interface IdentityProviderRegistryEdge { cursor?: string | null; @@ -26462,18 +26069,6 @@ export type RlsSettingEdgeSelect = { select: RlsSettingSelect; }; }; -/** A `RouteBinding` edge in the connection. */ -export interface RouteBindingEdge { - cursor?: string | null; - /** The `RouteBinding` at the end of the edge. */ - node?: RouteBinding | null; -} -export type RouteBindingEdgeSelect = { - cursor?: boolean; - node?: { - select: RouteBindingSelect; - }; -}; /** A `Schema` edge in the connection. */ export interface SchemaEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/api/orm/models/hostnameBinding.ts b/sdk/constructive-sdk/src/api/orm/models/hostnameBinding.ts deleted file mode 100644 index f720f177ad..0000000000 --- a/sdk/constructive-sdk/src/api/orm/models/hostnameBinding.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * HostnameBinding model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - HostnameBinding, - HostnameBindingWithRelations, - HostnameBindingSelect, - HostnameBindingFilter, - HostnameBindingOrderBy, - CreateHostnameBindingInput, - UpdateHostnameBindingInput, - HostnameBindingPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class HostnameBindingModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - hostnameBindings: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'HostnameBinding', - 'hostnameBindings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'HostnameBindingFilter', - 'HostnameBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'HostnameBinding', - fieldName: 'hostnameBindings', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - hostnameBinding: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'HostnameBinding', - 'hostnameBindings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'HostnameBindingFilter', - 'HostnameBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'HostnameBinding', - fieldName: 'hostnameBinding', - document, - variables, - transform: (data: { - hostnameBindings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - hostnameBinding: data.hostnameBindings?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - hostnameBinding: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'HostnameBinding', - 'hostnameBindings', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'HostnameBindingFilter', - 'HostnameBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'HostnameBinding', - fieldName: 'hostnameBinding', - document, - variables, - transform: (data: { - hostnameBindings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - hostnameBinding: data.hostnameBindings?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createHostnameBinding: { - hostnameBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'HostnameBinding', - 'createHostnameBinding', - 'hostnameBinding', - args.select, - args.data, - 'CreateHostnameBindingInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'HostnameBinding', - fieldName: 'createHostnameBinding', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - HostnameBindingPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateHostnameBinding: { - hostnameBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'HostnameBinding', - 'updateHostnameBinding', - 'hostnameBinding', - args.select, - args.where.id, - args.data, - 'UpdateHostnameBindingInput', - 'id', - 'hostnameBindingPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'HostnameBinding', - fieldName: 'updateHostnameBinding', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteHostnameBinding: { - hostnameBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'HostnameBinding', - 'deleteHostnameBinding', - 'hostnameBinding', - { - id: args.where.id, - }, - 'DeleteHostnameBindingInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'HostnameBinding', - fieldName: 'deleteHostnameBinding', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/api/orm/models/index.ts b/sdk/constructive-sdk/src/api/orm/models/index.ts index 0ef42de592..207f507c84 100644 --- a/sdk/constructive-sdk/src/api/orm/models/index.ts +++ b/sdk/constructive-sdk/src/api/orm/models/index.ts @@ -32,7 +32,6 @@ export { ForeignKeyConstraintModel } from './foreignKeyConstraint'; export { FullTextSearchModel } from './fullTextSearch'; export { FunctionModel } from './function'; export { GetSitePreviewsRecordModel } from './getSitePreviewsRecord'; -export { HostnameBindingModel } from './hostnameBinding'; export { IdentityProviderRegistryModel } from './identityProviderRegistry'; export { IndexModel } from './indexModel'; export { ListSuspendedDatabasesRecordModel } from './listSuspendedDatabasesRecord'; @@ -67,7 +66,6 @@ export { PrimaryKeyConstraintModel } from './primaryKeyConstraint'; export { PubkeySettingModel } from './pubkeySetting'; export { RedirectModel } from './redirect'; export { RlsSettingModel } from './rlsSetting'; -export { RouteBindingModel } from './routeBinding'; export { RouteModel } from './route'; export { SchemaModel } from './schema'; export { SchemaGrantModel } from './schemaGrant'; diff --git a/sdk/constructive-sdk/src/api/orm/models/routeBinding.ts b/sdk/constructive-sdk/src/api/orm/models/routeBinding.ts deleted file mode 100644 index 3389ee7e37..0000000000 --- a/sdk/constructive-sdk/src/api/orm/models/routeBinding.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * RouteBinding model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - RouteBinding, - RouteBindingWithRelations, - RouteBindingSelect, - RouteBindingFilter, - RouteBindingOrderBy, - CreateRouteBindingInput, - UpdateRouteBindingInput, - RouteBindingPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class RouteBindingModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - routeBindings: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'RouteBinding', - 'routeBindings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'RouteBindingFilter', - 'RouteBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'RouteBinding', - fieldName: 'routeBindings', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - routeBinding: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'RouteBinding', - 'routeBindings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'RouteBindingFilter', - 'RouteBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'RouteBinding', - fieldName: 'routeBinding', - document, - variables, - transform: (data: { - routeBindings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - routeBinding: data.routeBindings?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - routeBinding: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'RouteBinding', - 'routeBindings', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'RouteBindingFilter', - 'RouteBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'RouteBinding', - fieldName: 'routeBinding', - document, - variables, - transform: (data: { - routeBindings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - routeBinding: data.routeBindings?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createRouteBinding: { - routeBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'RouteBinding', - 'createRouteBinding', - 'routeBinding', - args.select, - args.data, - 'CreateRouteBindingInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'RouteBinding', - fieldName: 'createRouteBinding', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - RouteBindingPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateRouteBinding: { - routeBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'RouteBinding', - 'updateRouteBinding', - 'routeBinding', - args.select, - args.where.id, - args.data, - 'UpdateRouteBindingInput', - 'id', - 'routeBindingPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'RouteBinding', - fieldName: 'updateRouteBinding', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteRouteBinding: { - routeBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'RouteBinding', - 'deleteRouteBinding', - 'routeBinding', - { - id: args.where.id, - }, - 'DeleteRouteBindingInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'RouteBinding', - fieldName: 'deleteRouteBinding', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/auth/orm/input-types.ts b/sdk/constructive-sdk/src/auth/orm/input-types.ts index 82e2d1a346..e4ee1db136 100644 --- a/sdk/constructive-sdk/src/auth/orm/input-types.ts +++ b/sdk/constructive-sdk/src/auth/orm/input-types.ts @@ -4689,6 +4689,7 @@ export interface SignUpRecord { accessTokenExpiresAt?: string | null; id?: string | null; isVerified?: boolean | null; + mfaSetupRequired?: boolean | null; outDeviceToken?: string | null; totpEnabled?: boolean | null; userId?: string | null; @@ -4698,6 +4699,7 @@ export type SignUpRecordSelect = { accessTokenExpiresAt?: boolean; id?: boolean; isVerified?: boolean; + mfaSetupRequired?: boolean; outDeviceToken?: boolean; totpEnabled?: boolean; userId?: boolean; diff --git a/sdk/constructive-sdk/src/modules/orm/README.md b/sdk/constructive-sdk/src/modules/orm/README.md index 10eaf83b29..ec0c34eee6 100644 --- a/sdk/constructive-sdk/src/modules/orm/README.md +++ b/sdk/constructive-sdk/src/modules/orm/README.md @@ -357,6 +357,8 @@ CRUD operations for BillingProviderModule records. | `activatePlanSubscriptionFunction` | String | Yes | | `apiName` | String | Yes | | `applyProviderObservationFunction` | String | Yes | +| `billingConnectionTableId` | UUID | Yes | +| `billingConnectionTableName` | String | Yes | | `billingCustomersTableId` | UUID | Yes | | `billingCustomersTableName` | String | Yes | | `billingDisputesTableId` | UUID | Yes | @@ -371,6 +373,7 @@ CRUD operations for BillingProviderModule records. | `billingPricesTableName` | String | Yes | | `billingProductsTableId` | UUID | Yes | | `billingProductsTableName` | String | Yes | +| `billingProviderConnectedFunction` | String | Yes | | `billingProviderStateTableId` | UUID | Yes | | `billingProviderStateTableName` | String | Yes | | `billingRefundsTableId` | UUID | Yes | @@ -407,6 +410,7 @@ CRUD operations for BillingProviderModule records. | `processBillingEventFunction` | String | Yes | | `productsTableId` | UUID | Yes | | `provider` | String | Yes | +| `recordBillingConnectionFunction` | String | Yes | | `recordBillingHealthFunction` | String | Yes | | `recordDisputeFunction` | String | Yes | | `recordRefundFunction` | String | Yes | @@ -425,13 +429,13 @@ CRUD operations for BillingProviderModule records. ```typescript // List all billingProviderModule records -const items = await db.billingProviderModule.findMany({ select: { activatePlanSubscriptionFunction: true, apiName: true, applyProviderObservationFunction: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: true, billingHealthTableId: true, billingHealthTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingOperationsTableId: true, billingOperationsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingProviderStateTableId: true, billingProviderStateTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, bindCheckoutSessionFunction: true, clearScheduledChangeFunction: true, databaseId: true, finishBillingOperationFunction: true, getActivePlanPricingFunction: true, getActivePlanSubscriptionFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingProviderStateFunction: true, getBillingSubscriptionByEntityFunction: true, getBillingSubscriptionByExternalIdFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, getPlanPricingByExternalPriceFunction: true, hasDueReconciliationsFunction: true, id: true, listDueReconciliationsFunction: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, prepareScheduledChangeFunction: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordBillingHealthFunction: true, recordDisputeFunction: true, recordRefundFunction: true, reserveBillingOperationFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: true, upsertInvoiceFunction: true, usageSyncShardCount: true } }).execute(); +const items = await db.billingProviderModule.findMany({ select: { activatePlanSubscriptionFunction: true, apiName: true, applyProviderObservationFunction: true, billingConnectionTableId: true, billingConnectionTableName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: true, billingHealthTableId: true, billingHealthTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingOperationsTableId: true, billingOperationsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingProviderConnectedFunction: true, billingProviderStateTableId: true, billingProviderStateTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, bindCheckoutSessionFunction: true, clearScheduledChangeFunction: true, databaseId: true, finishBillingOperationFunction: true, getActivePlanPricingFunction: true, getActivePlanSubscriptionFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingProviderStateFunction: true, getBillingSubscriptionByEntityFunction: true, getBillingSubscriptionByExternalIdFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, getPlanPricingByExternalPriceFunction: true, hasDueReconciliationsFunction: true, id: true, listDueReconciliationsFunction: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, prepareScheduledChangeFunction: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordBillingConnectionFunction: true, recordBillingHealthFunction: true, recordDisputeFunction: true, recordRefundFunction: true, reserveBillingOperationFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: true, upsertInvoiceFunction: true, usageSyncShardCount: true } }).execute(); // Get one by id -const item = await db.billingProviderModule.findOne({ id: '', select: { activatePlanSubscriptionFunction: true, apiName: true, applyProviderObservationFunction: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: true, billingHealthTableId: true, billingHealthTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingOperationsTableId: true, billingOperationsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingProviderStateTableId: true, billingProviderStateTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, bindCheckoutSessionFunction: true, clearScheduledChangeFunction: true, databaseId: true, finishBillingOperationFunction: true, getActivePlanPricingFunction: true, getActivePlanSubscriptionFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingProviderStateFunction: true, getBillingSubscriptionByEntityFunction: true, getBillingSubscriptionByExternalIdFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, getPlanPricingByExternalPriceFunction: true, hasDueReconciliationsFunction: true, id: true, listDueReconciliationsFunction: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, prepareScheduledChangeFunction: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordBillingHealthFunction: true, recordDisputeFunction: true, recordRefundFunction: true, reserveBillingOperationFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: true, upsertInvoiceFunction: true, usageSyncShardCount: true } }).execute(); +const item = await db.billingProviderModule.findOne({ id: '', select: { activatePlanSubscriptionFunction: true, apiName: true, applyProviderObservationFunction: true, billingConnectionTableId: true, billingConnectionTableName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingDisputesTableId: true, billingDisputesTableName: true, billingHealthTableId: true, billingHealthTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingOperationsTableId: true, billingOperationsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingProviderConnectedFunction: true, billingProviderStateTableId: true, billingProviderStateTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, bindCheckoutSessionFunction: true, clearScheduledChangeFunction: true, databaseId: true, finishBillingOperationFunction: true, getActivePlanPricingFunction: true, getActivePlanSubscriptionFunction: true, getBillingCustomerFunction: true, getBillingPriceFunction: true, getBillingProductFunction: true, getBillingProviderStateFunction: true, getBillingSubscriptionByEntityFunction: true, getBillingSubscriptionByExternalIdFunction: true, getBillingSubscriptionFunction: true, getFallbackFreePlanFunction: true, getPlanPricingByExternalPriceFunction: true, hasDueReconciliationsFunction: true, id: true, listDueReconciliationsFunction: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, prepareScheduledChangeFunction: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordBillingConnectionFunction: true, recordBillingHealthFunction: true, recordDisputeFunction: true, recordRefundFunction: true, reserveBillingOperationFunction: true, schemaId: true, subscriptionsTableId: true, sweepOverdueSubscriptionsFunction: true, upsertBillingCustomerFunction: true, upsertBillingPriceFunction: true, upsertBillingProductFunction: true, upsertBillingSubscriptionFunction: true, upsertInvoiceFunction: true, usageSyncShardCount: true } }).execute(); // Create -const created = await db.billingProviderModule.create({ data: { activatePlanSubscriptionFunction: '', apiName: '', applyProviderObservationFunction: '', billingCustomersTableId: '', billingCustomersTableName: '', billingDisputesTableId: '', billingDisputesTableName: '', billingHealthTableId: '', billingHealthTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingOperationsTableId: '', billingOperationsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingProviderStateTableId: '', billingProviderStateTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', bindCheckoutSessionFunction: '', clearScheduledChangeFunction: '', databaseId: '', finishBillingOperationFunction: '', getActivePlanPricingFunction: '', getActivePlanSubscriptionFunction: '', getBillingCustomerFunction: '', getBillingPriceFunction: '', getBillingProductFunction: '', getBillingProviderStateFunction: '', getBillingSubscriptionByEntityFunction: '', getBillingSubscriptionByExternalIdFunction: '', getBillingSubscriptionFunction: '', getFallbackFreePlanFunction: '', getPlanPricingByExternalPriceFunction: '', hasDueReconciliationsFunction: '', listDueReconciliationsFunction: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', prepareScheduledChangeFunction: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordBillingHealthFunction: '', recordDisputeFunction: '', recordRefundFunction: '', reserveBillingOperationFunction: '', schemaId: '', subscriptionsTableId: '', sweepOverdueSubscriptionsFunction: '', upsertBillingCustomerFunction: '', upsertBillingPriceFunction: '', upsertBillingProductFunction: '', upsertBillingSubscriptionFunction: '', upsertInvoiceFunction: '', usageSyncShardCount: '' }, select: { id: true } }).execute(); +const created = await db.billingProviderModule.create({ data: { activatePlanSubscriptionFunction: '', apiName: '', applyProviderObservationFunction: '', billingConnectionTableId: '', billingConnectionTableName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingDisputesTableId: '', billingDisputesTableName: '', billingHealthTableId: '', billingHealthTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingOperationsTableId: '', billingOperationsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingProviderConnectedFunction: '', billingProviderStateTableId: '', billingProviderStateTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', bindCheckoutSessionFunction: '', clearScheduledChangeFunction: '', databaseId: '', finishBillingOperationFunction: '', getActivePlanPricingFunction: '', getActivePlanSubscriptionFunction: '', getBillingCustomerFunction: '', getBillingPriceFunction: '', getBillingProductFunction: '', getBillingProviderStateFunction: '', getBillingSubscriptionByEntityFunction: '', getBillingSubscriptionByExternalIdFunction: '', getBillingSubscriptionFunction: '', getFallbackFreePlanFunction: '', getPlanPricingByExternalPriceFunction: '', hasDueReconciliationsFunction: '', listDueReconciliationsFunction: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', prepareScheduledChangeFunction: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordBillingConnectionFunction: '', recordBillingHealthFunction: '', recordDisputeFunction: '', recordRefundFunction: '', reserveBillingOperationFunction: '', schemaId: '', subscriptionsTableId: '', sweepOverdueSubscriptionsFunction: '', upsertBillingCustomerFunction: '', upsertBillingPriceFunction: '', upsertBillingProductFunction: '', upsertBillingSubscriptionFunction: '', upsertInvoiceFunction: '', usageSyncShardCount: '' }, select: { id: true } }).execute(); // Update const updated = await db.billingProviderModule.update({ where: { id: '' }, data: { activatePlanSubscriptionFunction: '' }, select: { id: true } }).execute(); @@ -3890,6 +3894,7 @@ CRUD operations for StorageModule records. | `provisions` | JSON | Yes | | `publicSchemaName` | String | Yes | | `publicUrlPrefix` | String | Yes | +| `region` | String | Yes | | `restrictReads` | Boolean | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | @@ -3899,13 +3904,13 @@ CRUD operations for StorageModule records. ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); +const items = await db.storageModule.findMany({ select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { allowedOrigins: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-sdk/src/modules/orm/input-types.ts b/sdk/constructive-sdk/src/modules/orm/input-types.ts index 4a8fcc7f04..1605f02b05 100644 --- a/sdk/constructive-sdk/src/modules/orm/input-types.ts +++ b/sdk/constructive-sdk/src/modules/orm/input-types.ts @@ -365,6 +365,8 @@ export interface BillingProviderModule { activatePlanSubscriptionFunction?: string | null; apiName?: string | null; applyProviderObservationFunction?: string | null; + billingConnectionTableId?: string | null; + billingConnectionTableName?: string | null; billingCustomersTableId?: string | null; billingCustomersTableName?: string | null; billingDisputesTableId?: string | null; @@ -379,6 +381,7 @@ export interface BillingProviderModule { billingPricesTableName?: string | null; billingProductsTableId?: string | null; billingProductsTableName?: string | null; + billingProviderConnectedFunction?: string | null; billingProviderStateTableId?: string | null; billingProviderStateTableName?: string | null; billingRefundsTableId?: string | null; @@ -415,6 +418,7 @@ export interface BillingProviderModule { processBillingEventFunction?: string | null; productsTableId?: string | null; provider?: string | null; + recordBillingConnectionFunction?: string | null; recordBillingHealthFunction?: string | null; recordDisputeFunction?: string | null; recordRefundFunction?: string | null; @@ -2452,6 +2456,7 @@ export interface StorageModule { provisions?: Record | null; publicSchemaName?: string | null; publicUrlPrefix?: string | null; + region?: string | null; restrictReads?: boolean | null; schemaId?: string | null; scope?: string | null; @@ -3054,6 +3059,8 @@ export type BillingProviderModuleSelect = { activatePlanSubscriptionFunction?: boolean; apiName?: boolean; applyProviderObservationFunction?: boolean; + billingConnectionTableId?: boolean; + billingConnectionTableName?: boolean; billingCustomersTableId?: boolean; billingCustomersTableName?: boolean; billingDisputesTableId?: boolean; @@ -3068,6 +3075,7 @@ export type BillingProviderModuleSelect = { billingPricesTableName?: boolean; billingProductsTableId?: boolean; billingProductsTableName?: boolean; + billingProviderConnectedFunction?: boolean; billingProviderStateTableId?: boolean; billingProviderStateTableName?: boolean; billingRefundsTableId?: boolean; @@ -3104,6 +3112,7 @@ export type BillingProviderModuleSelect = { processBillingEventFunction?: boolean; productsTableId?: boolean; provider?: boolean; + recordBillingConnectionFunction?: boolean; recordBillingHealthFunction?: boolean; recordDisputeFunction?: boolean; recordRefundFunction?: boolean; @@ -4908,6 +4917,7 @@ export type StorageModuleSelect = { provisions?: boolean; publicSchemaName?: boolean; publicUrlPrefix?: boolean; + region?: boolean; restrictReads?: boolean; schemaId?: boolean; scope?: boolean; @@ -5380,6 +5390,10 @@ export interface BillingProviderModuleFilter { apiName?: StringFilter; /** Filter by the object’s `applyProviderObservationFunction` field. */ applyProviderObservationFunction?: StringFilter; + /** Filter by the object’s `billingConnectionTableId` field. */ + billingConnectionTableId?: UUIDFilter; + /** Filter by the object’s `billingConnectionTableName` field. */ + billingConnectionTableName?: StringFilter; /** Filter by the object’s `billingCustomersTableId` field. */ billingCustomersTableId?: UUIDFilter; /** Filter by the object’s `billingCustomersTableName` field. */ @@ -5408,6 +5422,8 @@ export interface BillingProviderModuleFilter { billingProductsTableId?: UUIDFilter; /** Filter by the object’s `billingProductsTableName` field. */ billingProductsTableName?: StringFilter; + /** Filter by the object’s `billingProviderConnectedFunction` field. */ + billingProviderConnectedFunction?: StringFilter; /** Filter by the object’s `billingProviderStateTableId` field. */ billingProviderStateTableId?: UUIDFilter; /** Filter by the object’s `billingProviderStateTableName` field. */ @@ -5484,6 +5500,8 @@ export interface BillingProviderModuleFilter { productsTableId?: UUIDFilter; /** Filter by the object’s `provider` field. */ provider?: StringFilter; + /** Filter by the object’s `recordBillingConnectionFunction` field. */ + recordBillingConnectionFunction?: StringFilter; /** Filter by the object’s `recordBillingHealthFunction` field. */ recordBillingHealthFunction?: StringFilter; /** Filter by the object’s `recordDisputeFunction` field. */ @@ -9120,6 +9138,8 @@ export interface StorageModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `publicUrlPrefix` field. */ publicUrlPrefix?: StringFilter; + /** Filter by the object’s `region` field. */ + region?: StringFilter; /** Filter by the object’s `restrictReads` field. */ restrictReads?: BooleanFilter; /** Filter by the object’s `schemaId` field. */ @@ -9763,6 +9783,10 @@ export type BillingProviderModuleOrderBy = | 'API_NAME_DESC' | 'APPLY_PROVIDER_OBSERVATION_FUNCTION_ASC' | 'APPLY_PROVIDER_OBSERVATION_FUNCTION_DESC' + | 'BILLING_CONNECTION_TABLE_ID_ASC' + | 'BILLING_CONNECTION_TABLE_ID_DESC' + | 'BILLING_CONNECTION_TABLE_NAME_ASC' + | 'BILLING_CONNECTION_TABLE_NAME_DESC' | 'BILLING_CUSTOMERS_TABLE_ID_ASC' | 'BILLING_CUSTOMERS_TABLE_ID_DESC' | 'BILLING_CUSTOMERS_TABLE_NAME_ASC' @@ -9791,6 +9815,8 @@ export type BillingProviderModuleOrderBy = | 'BILLING_PRODUCTS_TABLE_ID_DESC' | 'BILLING_PRODUCTS_TABLE_NAME_ASC' | 'BILLING_PRODUCTS_TABLE_NAME_DESC' + | 'BILLING_PROVIDER_CONNECTED_FUNCTION_ASC' + | 'BILLING_PROVIDER_CONNECTED_FUNCTION_DESC' | 'BILLING_PROVIDER_STATE_TABLE_ID_ASC' | 'BILLING_PROVIDER_STATE_TABLE_ID_DESC' | 'BILLING_PROVIDER_STATE_TABLE_NAME_ASC' @@ -9866,6 +9892,8 @@ export type BillingProviderModuleOrderBy = | 'PRODUCTS_TABLE_ID_DESC' | 'PROVIDER_ASC' | 'PROVIDER_DESC' + | 'RECORD_BILLING_CONNECTION_FUNCTION_ASC' + | 'RECORD_BILLING_CONNECTION_FUNCTION_DESC' | 'RECORD_BILLING_HEALTH_FUNCTION_ASC' | 'RECORD_BILLING_HEALTH_FUNCTION_DESC' | 'RECORD_DISPUTE_FUNCTION_ASC' @@ -13036,6 +13064,8 @@ export type StorageModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PUBLIC_URL_PREFIX_ASC' | 'PUBLIC_URL_PREFIX_DESC' + | 'REGION_ASC' + | 'REGION_DESC' | 'RESTRICT_READS_ASC' | 'RESTRICT_READS_DESC' | 'SCHEMA_ID_ASC' @@ -13661,6 +13691,8 @@ export interface CreateBillingProviderModuleInput { activatePlanSubscriptionFunction?: string; apiName?: string; applyProviderObservationFunction?: string; + billingConnectionTableId?: string; + billingConnectionTableName?: string; billingCustomersTableId?: string; billingCustomersTableName?: string; billingDisputesTableId?: string; @@ -13675,6 +13707,7 @@ export interface CreateBillingProviderModuleInput { billingPricesTableName?: string; billingProductsTableId?: string; billingProductsTableName?: string; + billingProviderConnectedFunction?: string; billingProviderStateTableId?: string; billingProviderStateTableName?: string; billingRefundsTableId?: string; @@ -13710,6 +13743,7 @@ export interface CreateBillingProviderModuleInput { processBillingEventFunction?: string; productsTableId?: string; provider?: string; + recordBillingConnectionFunction?: string; recordBillingHealthFunction?: string; recordDisputeFunction?: string; recordRefundFunction?: string; @@ -13729,6 +13763,8 @@ export interface BillingProviderModulePatch { activatePlanSubscriptionFunction?: string | null; apiName?: string | null; applyProviderObservationFunction?: string | null; + billingConnectionTableId?: string | null; + billingConnectionTableName?: string | null; billingCustomersTableId?: string | null; billingCustomersTableName?: string | null; billingDisputesTableId?: string | null; @@ -13743,6 +13779,7 @@ export interface BillingProviderModulePatch { billingPricesTableName?: string | null; billingProductsTableId?: string | null; billingProductsTableName?: string | null; + billingProviderConnectedFunction?: string | null; billingProviderStateTableId?: string | null; billingProviderStateTableName?: string | null; billingRefundsTableId?: string | null; @@ -13778,6 +13815,7 @@ export interface BillingProviderModulePatch { processBillingEventFunction?: string | null; productsTableId?: string | null; provider?: string | null; + recordBillingConnectionFunction?: string | null; recordBillingHealthFunction?: string | null; recordDisputeFunction?: string | null; recordRefundFunction?: string | null; @@ -17585,6 +17623,7 @@ export interface CreateStorageModuleInput { provisions?: Record; publicSchemaName?: string; publicUrlPrefix?: string; + region?: string; restrictReads?: boolean; schemaId?: string; scope: string; @@ -17629,6 +17668,7 @@ export interface StorageModulePatch { provisions?: Record | null; publicSchemaName?: string | null; publicUrlPrefix?: string | null; + region?: string | null; restrictReads?: boolean | null; schemaId?: string | null; scope?: string | null; @@ -18578,6 +18618,8 @@ export interface BillingProviderModuleInput { activatePlanSubscriptionFunction?: string; apiName?: string; applyProviderObservationFunction?: string; + billingConnectionTableId?: string; + billingConnectionTableName?: string; billingCustomersTableId?: string; billingCustomersTableName?: string; billingDisputesTableId?: string; @@ -18592,6 +18634,7 @@ export interface BillingProviderModuleInput { billingPricesTableName?: string; billingProductsTableId?: string; billingProductsTableName?: string; + billingProviderConnectedFunction?: string; billingProviderStateTableId?: string; billingProviderStateTableName?: string; billingRefundsTableId?: string; @@ -18628,6 +18671,7 @@ export interface BillingProviderModuleInput { processBillingEventFunction?: string; productsTableId?: string; provider?: string; + recordBillingConnectionFunction?: string; recordBillingHealthFunction?: string; recordDisputeFunction?: string; recordRefundFunction?: string; @@ -20697,6 +20741,7 @@ export interface StorageModuleInput { provisions?: Record; publicSchemaName?: string; publicUrlPrefix?: string; + region?: string; restrictReads?: boolean; schemaId?: string; scope: string; @@ -22814,6 +22859,8 @@ export interface StorageModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `publicUrlPrefix` field. */ publicUrlPrefix?: StringFilter; + /** Filter by the object’s `region` field. */ + region?: StringFilter; /** Filter by the object’s `restrictReads` field. */ restrictReads?: BooleanFilter; /** Filter by the object’s `schemaId` field. */ diff --git a/sdk/constructive-sdk/src/storage/orm/README.md b/sdk/constructive-sdk/src/storage/orm/README.md index a72925c67d..9445be8f5e 100644 --- a/sdk/constructive-sdk/src/storage/orm/README.md +++ b/sdk/constructive-sdk/src/storage/orm/README.md @@ -47,6 +47,7 @@ CRUD operations for Bucket records. | `id` | UUID | No | | `isPublic` | Boolean | Yes | | `key` | String | Yes | +| `maxBulkFiles` | Int | Yes | | `maxFileSize` | BigInt | Yes | | `physicalName` | String | Yes | | `stagingTtl` | Interval | Yes | @@ -58,13 +59,13 @@ CRUD operations for Bucket records. ```typescript // List all bucket records -const items = await db.bucket.findMany({ select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); +const items = await db.bucket.findMany({ select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.bucket.findOne({ id: '', select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); +const item = await db.bucket.findOne({ id: '', select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); // Create -const created = await db.bucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); +const created = await db.bucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); // Update const updated = await db.bucket.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -139,6 +140,7 @@ CRUD operations for PlatformBucket records. | `id` | UUID | No | | `isPublic` | Boolean | Yes | | `key` | String | Yes | +| `maxBulkFiles` | Int | Yes | | `maxFileSize` | BigInt | Yes | | `physicalName` | String | Yes | | `stagingTtl` | Interval | Yes | @@ -150,13 +152,13 @@ CRUD operations for PlatformBucket records. ```typescript // List all platformBucket records -const items = await db.platformBucket.findMany({ select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); +const items = await db.platformBucket.findMany({ select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformBucket.findOne({ id: '', select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); +const item = await db.platformBucket.findOne({ id: '', select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); // Create -const created = await db.platformBucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); +const created = await db.platformBucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformBucket.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -280,7 +282,7 @@ const result = await db.mutation.uploadFile({ input: '' }).exec ### `db.mutation.uploadFiles` -Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. +Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. Accepts at most the bucket's `maxBulkFiles` files per call. - **Type:** mutation - **Arguments:** @@ -310,7 +312,7 @@ const result = await db.mutation.uploadPlatformFile({ input: '