@pgpmjs/export 0.26.8 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -265,6 +265,7 @@ export const exportGraphQLMeta = async ({ client, database_id }) => {
265
265
  queryAndParse('billing_provider_module'),
266
266
  queryAndParse('devices_module'),
267
267
  queryAndParse('identity_providers_module'),
268
+ queryAndParse('integration_providers_module'),
268
269
  queryAndParse('notifications_module'),
269
270
  queryAndParse('plans_module'),
270
271
  queryAndParse('realtime_module'),
@@ -217,6 +217,7 @@ export const exportMeta = async ({ opts, dbname, database_id }) => {
217
217
  await queryAndParse('billing_provider_module', `SELECT * FROM metaschema_modules_public.billing_provider_module WHERE database_id = $1 ORDER BY id`);
218
218
  await queryAndParse('devices_module', `SELECT * FROM metaschema_modules_public.devices_module WHERE database_id = $1 ORDER BY id`);
219
219
  await queryAndParse('identity_providers_module', `SELECT * FROM metaschema_modules_public.identity_providers_module WHERE database_id = $1 ORDER BY id`);
220
+ await queryAndParse('integration_providers_module', `SELECT * FROM metaschema_modules_public.integration_providers_module WHERE database_id = $1 ORDER BY id`);
220
221
  await queryAndParse('notifications_module', `SELECT * FROM metaschema_modules_public.notifications_module WHERE database_id = $1 ORDER BY id`);
221
222
  await queryAndParse('plans_module', `SELECT * FROM metaschema_modules_public.plans_module WHERE database_id = $1 ORDER BY id`);
222
223
  await queryAndParse('realtime_module', `SELECT * FROM metaschema_modules_public.realtime_module WHERE database_id = $1 ORDER BY id`);
@@ -158,6 +158,7 @@ export const META_TABLE_ORDER = [
158
158
  'billing_provider_module',
159
159
  'devices_module',
160
160
  'identity_providers_module',
161
+ 'integration_providers_module',
161
162
  'notifications_module',
162
163
  'plans_module',
163
164
  'realtime_module',
@@ -506,6 +507,10 @@ export const META_TABLE_CONFIG = {
506
507
  schema: 'metaschema_modules_public',
507
508
  table: 'identity_providers_module'
508
509
  },
510
+ integration_providers_module: {
511
+ schema: 'metaschema_modules_public',
512
+ table: 'integration_providers_module'
513
+ },
509
514
  notifications_module: {
510
515
  schema: 'metaschema_modules_public',
511
516
  table: 'notifications_module'
@@ -268,6 +268,7 @@ const exportGraphQLMeta = async ({ client, database_id }) => {
268
268
  queryAndParse('billing_provider_module'),
269
269
  queryAndParse('devices_module'),
270
270
  queryAndParse('identity_providers_module'),
271
+ queryAndParse('integration_providers_module'),
271
272
  queryAndParse('notifications_module'),
272
273
  queryAndParse('plans_module'),
273
274
  queryAndParse('realtime_module'),
package/export-meta.js CHANGED
@@ -220,6 +220,7 @@ const exportMeta = async ({ opts, dbname, database_id }) => {
220
220
  await queryAndParse('billing_provider_module', `SELECT * FROM metaschema_modules_public.billing_provider_module WHERE database_id = $1 ORDER BY id`);
221
221
  await queryAndParse('devices_module', `SELECT * FROM metaschema_modules_public.devices_module WHERE database_id = $1 ORDER BY id`);
222
222
  await queryAndParse('identity_providers_module', `SELECT * FROM metaschema_modules_public.identity_providers_module WHERE database_id = $1 ORDER BY id`);
223
+ await queryAndParse('integration_providers_module', `SELECT * FROM metaschema_modules_public.integration_providers_module WHERE database_id = $1 ORDER BY id`);
223
224
  await queryAndParse('notifications_module', `SELECT * FROM metaschema_modules_public.notifications_module WHERE database_id = $1 ORDER BY id`);
224
225
  await queryAndParse('plans_module', `SELECT * FROM metaschema_modules_public.plans_module WHERE database_id = $1 ORDER BY id`);
225
226
  await queryAndParse('realtime_module', `SELECT * FROM metaschema_modules_public.realtime_module WHERE database_id = $1 ORDER BY id`);
package/export-utils.d.ts CHANGED
@@ -29,7 +29,7 @@ export declare const META_COMMON_FOOTER = "\nSET session_replication_role TO DEF
29
29
  * Ordered list of meta tables for export.
30
30
  * Tables are processed in this order to satisfy foreign key dependencies.
31
31
  */
32
- export declare const META_TABLE_ORDER: readonly ["database", "schema", "function", "table", "field", "spatial_relation", "policy", "index", "trigger", "trigger_function", "rls_function", "foreign_key_constraint", "primary_key_constraint", "unique_constraint", "check_constraint", "full_text_search", "schema_grant", "table_grant", "default_privilege", "domains", "sites", "apis", "apps", "site_modules", "site_themes", "site_metadata", "api_modules", "api_extensions", "api_schemas", "database_settings", "api_settings", "rls_settings", "cors_settings", "pubkey_settings", "webauthn_settings", "rls_module", "user_auth_module", "memberships_module", "permissions_module", "limits_module", "levels_module", "events_module", "users_module", "hierarchy_module", "membership_types_module", "invites_module", "emails_module", "sessions_module", "user_state_module", "profiles_module", "config_secrets_user_module", "user_credentials_module", "user_settings_module", "connected_accounts_module", "phone_numbers_module", "crypto_addresses_module", "crypto_auth_module", "field_module", "table_module", "secure_table_provision", "uuid_module", "default_ids_module", "denormalized_table_field", "relation_provision", "entity_type_provision", "rate_limits_module", "storage_module", "billing_module", "billing_provider_module", "devices_module", "identity_providers_module", "notifications_module", "plans_module", "realtime_module", "session_secrets_module", "infra_secrets_module", "infra_config_module", "internal_secrets_module", "i18n_module", "agent_module", "function_module", "namespace_module", "merkle_store_module", "graph_module", "graph_execution_module", "function_deployment_module", "function_invocation_module", "compute_log_module", "db_usage_module", "storage_log_module", "transfer_log_module", "webauthn_auth_module", "webauthn_credentials_module", "inference_log_module", "rate_limit_meters_module"];
32
+ export declare const META_TABLE_ORDER: readonly ["database", "schema", "function", "table", "field", "spatial_relation", "policy", "index", "trigger", "trigger_function", "rls_function", "foreign_key_constraint", "primary_key_constraint", "unique_constraint", "check_constraint", "full_text_search", "schema_grant", "table_grant", "default_privilege", "domains", "sites", "apis", "apps", "site_modules", "site_themes", "site_metadata", "api_modules", "api_extensions", "api_schemas", "database_settings", "api_settings", "rls_settings", "cors_settings", "pubkey_settings", "webauthn_settings", "rls_module", "user_auth_module", "memberships_module", "permissions_module", "limits_module", "levels_module", "events_module", "users_module", "hierarchy_module", "membership_types_module", "invites_module", "emails_module", "sessions_module", "user_state_module", "profiles_module", "config_secrets_user_module", "user_credentials_module", "user_settings_module", "connected_accounts_module", "phone_numbers_module", "crypto_addresses_module", "crypto_auth_module", "field_module", "table_module", "secure_table_provision", "uuid_module", "default_ids_module", "denormalized_table_field", "relation_provision", "entity_type_provision", "rate_limits_module", "storage_module", "billing_module", "billing_provider_module", "devices_module", "identity_providers_module", "integration_providers_module", "notifications_module", "plans_module", "realtime_module", "session_secrets_module", "infra_secrets_module", "infra_config_module", "internal_secrets_module", "i18n_module", "agent_module", "function_module", "namespace_module", "merkle_store_module", "graph_module", "graph_execution_module", "function_deployment_module", "function_invocation_module", "compute_log_module", "db_usage_module", "storage_log_module", "transfer_log_module", "webauthn_auth_module", "webauthn_credentials_module", "inference_log_module", "rate_limit_meters_module"];
33
33
  export type FieldType = 'uuid' | 'uuid[]' | 'text' | 'text[]' | 'boolean' | 'image' | 'upload' | 'url' | 'jsonb' | 'jsonb[]' | 'int' | 'interval' | 'timestamptz';
34
34
  export interface TableConfig {
35
35
  schema: string;
package/export-utils.js CHANGED
@@ -165,6 +165,7 @@ exports.META_TABLE_ORDER = [
165
165
  'billing_provider_module',
166
166
  'devices_module',
167
167
  'identity_providers_module',
168
+ 'integration_providers_module',
168
169
  'notifications_module',
169
170
  'plans_module',
170
171
  'realtime_module',
@@ -513,6 +514,10 @@ exports.META_TABLE_CONFIG = {
513
514
  schema: 'metaschema_modules_public',
514
515
  table: 'identity_providers_module'
515
516
  },
517
+ integration_providers_module: {
518
+ schema: 'metaschema_modules_public',
519
+ table: 'integration_providers_module'
520
+ },
516
521
  notifications_module: {
517
522
  schema: 'metaschema_modules_public',
518
523
  table: 'notifications_module'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpmjs/export",
3
- "version": "0.26.8",
3
+ "version": "0.27.0",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "PGPM export tools for SQL and GraphQL database migration extraction",
6
6
  "main": "index.js",
@@ -55,5 +55,5 @@
55
55
  "pg-cache": "^3.14.3",
56
56
  "pg-env": "^1.17.1"
57
57
  },
58
- "gitHead": "43b73b3014cb9388ca3218611455c7e0f202f042"
58
+ "gitHead": "3671ed68a36bd97f8fc205c547d5a730f57c9dcc"
59
59
  }