@pgpmjs/core 6.2.0 → 6.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -138,7 +138,7 @@ const config = {
138
138
  database_id: 'uuid',
139
139
  table_id: 'uuid',
140
140
  name: 'text',
141
- role_name: 'text',
141
+ grantee_name: 'text',
142
142
  privilege: 'text',
143
143
  permissive: 'boolean',
144
144
  disabled: 'boolean',
@@ -315,8 +315,22 @@ const config = {
315
315
  database_id: 'uuid',
316
316
  table_id: 'uuid',
317
317
  privilege: 'text',
318
- role_name: 'text',
319
- field_ids: 'uuid[]'
318
+ grantee_name: 'text',
319
+ field_ids: 'uuid[]',
320
+ is_grant: 'boolean'
321
+ }
322
+ },
323
+ default_privilege: {
324
+ schema: 'metaschema_public',
325
+ table: 'default_privilege',
326
+ fields: {
327
+ id: 'uuid',
328
+ database_id: 'uuid',
329
+ schema_id: 'uuid',
330
+ object_type: 'text',
331
+ privilege: 'text',
332
+ grantee_name: 'text',
333
+ is_grant: 'boolean'
320
334
  }
321
335
  },
322
336
  // =============================================================================
@@ -833,6 +847,28 @@ const config = {
833
847
  fields: 'uuid[]'
834
848
  }
835
849
  },
850
+ secure_table_provision: {
851
+ schema: 'metaschema_modules_public',
852
+ table: 'secure_table_provision',
853
+ fields: {
854
+ id: 'uuid',
855
+ database_id: 'uuid',
856
+ schema_id: 'uuid',
857
+ table_id: 'uuid',
858
+ table_name: 'text',
859
+ node_type: 'text',
860
+ use_rls: 'boolean',
861
+ node_data: 'jsonb',
862
+ grant_roles: 'text[]',
863
+ grant_privileges: 'jsonb',
864
+ policy_type: 'text',
865
+ policy_privileges: 'text[]',
866
+ policy_role: 'text',
867
+ policy_permissive: 'boolean',
868
+ policy_data: 'jsonb',
869
+ out_fields: 'uuid[]'
870
+ }
871
+ },
836
872
  table_template_module: {
837
873
  schema: 'metaschema_modules_public',
838
874
  table: 'table_template_module',
@@ -962,6 +998,7 @@ export const exportMeta = async ({ opts, dbname, database_id }) => {
962
998
  await queryAndParse('full_text_search', `SELECT * FROM metaschema_public.full_text_search WHERE database_id = $1`);
963
999
  await queryAndParse('schema_grant', `SELECT * FROM metaschema_public.schema_grant WHERE database_id = $1`);
964
1000
  await queryAndParse('table_grant', `SELECT * FROM metaschema_public.table_grant WHERE database_id = $1`);
1001
+ await queryAndParse('default_privilege', `SELECT * FROM metaschema_public.default_privilege WHERE database_id = $1`);
965
1002
  // =============================================================================
966
1003
  // services_public tables
967
1004
  // =============================================================================
@@ -999,6 +1036,7 @@ export const exportMeta = async ({ opts, dbname, database_id }) => {
999
1036
  await queryAndParse('crypto_auth_module', `SELECT * FROM metaschema_modules_public.crypto_auth_module WHERE database_id = $1`);
1000
1037
  await queryAndParse('field_module', `SELECT * FROM metaschema_modules_public.field_module WHERE database_id = $1`);
1001
1038
  await queryAndParse('table_template_module', `SELECT * FROM metaschema_modules_public.table_template_module WHERE database_id = $1`);
1039
+ await queryAndParse('secure_table_provision', `SELECT * FROM metaschema_modules_public.secure_table_provision WHERE database_id = $1`);
1002
1040
  await queryAndParse('uuid_module', `SELECT * FROM metaschema_modules_public.uuid_module WHERE database_id = $1`);
1003
1041
  await queryAndParse('default_ids_module', `SELECT * FROM metaschema_modules_public.default_ids_module WHERE database_id = $1`);
1004
1042
  await queryAndParse('denormalized_table_field', `SELECT * FROM metaschema_modules_public.denormalized_table_field WHERE database_id = $1`);
@@ -229,6 +229,7 @@ SET session_replication_role TO DEFAULT;`;
229
229
  'full_text_search',
230
230
  'schema_grant',
231
231
  'table_grant',
232
+ 'default_privilege',
232
233
  'domains',
233
234
  'sites',
234
235
  'apis',
@@ -259,6 +260,7 @@ SET session_replication_role TO DEFAULT;`;
259
260
  'crypto_auth_module',
260
261
  'field_module',
261
262
  'table_module',
263
+ 'secure_table_provision',
262
264
  'user_profiles_module',
263
265
  'user_settings_module',
264
266
  'organization_settings_module',
@@ -141,7 +141,7 @@ const config = {
141
141
  database_id: 'uuid',
142
142
  table_id: 'uuid',
143
143
  name: 'text',
144
- role_name: 'text',
144
+ grantee_name: 'text',
145
145
  privilege: 'text',
146
146
  permissive: 'boolean',
147
147
  disabled: 'boolean',
@@ -318,8 +318,22 @@ const config = {
318
318
  database_id: 'uuid',
319
319
  table_id: 'uuid',
320
320
  privilege: 'text',
321
- role_name: 'text',
322
- field_ids: 'uuid[]'
321
+ grantee_name: 'text',
322
+ field_ids: 'uuid[]',
323
+ is_grant: 'boolean'
324
+ }
325
+ },
326
+ default_privilege: {
327
+ schema: 'metaschema_public',
328
+ table: 'default_privilege',
329
+ fields: {
330
+ id: 'uuid',
331
+ database_id: 'uuid',
332
+ schema_id: 'uuid',
333
+ object_type: 'text',
334
+ privilege: 'text',
335
+ grantee_name: 'text',
336
+ is_grant: 'boolean'
323
337
  }
324
338
  },
325
339
  // =============================================================================
@@ -836,6 +850,28 @@ const config = {
836
850
  fields: 'uuid[]'
837
851
  }
838
852
  },
853
+ secure_table_provision: {
854
+ schema: 'metaschema_modules_public',
855
+ table: 'secure_table_provision',
856
+ fields: {
857
+ id: 'uuid',
858
+ database_id: 'uuid',
859
+ schema_id: 'uuid',
860
+ table_id: 'uuid',
861
+ table_name: 'text',
862
+ node_type: 'text',
863
+ use_rls: 'boolean',
864
+ node_data: 'jsonb',
865
+ grant_roles: 'text[]',
866
+ grant_privileges: 'jsonb',
867
+ policy_type: 'text',
868
+ policy_privileges: 'text[]',
869
+ policy_role: 'text',
870
+ policy_permissive: 'boolean',
871
+ policy_data: 'jsonb',
872
+ out_fields: 'uuid[]'
873
+ }
874
+ },
839
875
  table_template_module: {
840
876
  schema: 'metaschema_modules_public',
841
877
  table: 'table_template_module',
@@ -965,6 +1001,7 @@ const exportMeta = async ({ opts, dbname, database_id }) => {
965
1001
  await queryAndParse('full_text_search', `SELECT * FROM metaschema_public.full_text_search WHERE database_id = $1`);
966
1002
  await queryAndParse('schema_grant', `SELECT * FROM metaschema_public.schema_grant WHERE database_id = $1`);
967
1003
  await queryAndParse('table_grant', `SELECT * FROM metaschema_public.table_grant WHERE database_id = $1`);
1004
+ await queryAndParse('default_privilege', `SELECT * FROM metaschema_public.default_privilege WHERE database_id = $1`);
968
1005
  // =============================================================================
969
1006
  // services_public tables
970
1007
  // =============================================================================
@@ -1002,6 +1039,7 @@ const exportMeta = async ({ opts, dbname, database_id }) => {
1002
1039
  await queryAndParse('crypto_auth_module', `SELECT * FROM metaschema_modules_public.crypto_auth_module WHERE database_id = $1`);
1003
1040
  await queryAndParse('field_module', `SELECT * FROM metaschema_modules_public.field_module WHERE database_id = $1`);
1004
1041
  await queryAndParse('table_template_module', `SELECT * FROM metaschema_modules_public.table_template_module WHERE database_id = $1`);
1042
+ await queryAndParse('secure_table_provision', `SELECT * FROM metaschema_modules_public.secure_table_provision WHERE database_id = $1`);
1005
1043
  await queryAndParse('uuid_module', `SELECT * FROM metaschema_modules_public.uuid_module WHERE database_id = $1`);
1006
1044
  await queryAndParse('default_ids_module', `SELECT * FROM metaschema_modules_public.default_ids_module WHERE database_id = $1`);
1007
1045
  await queryAndParse('denormalized_table_field', `SELECT * FROM metaschema_modules_public.denormalized_table_field WHERE database_id = $1`);
@@ -235,6 +235,7 @@ SET session_replication_role TO DEFAULT;`;
235
235
  'full_text_search',
236
236
  'schema_grant',
237
237
  'table_grant',
238
+ 'default_privilege',
238
239
  'domains',
239
240
  'sites',
240
241
  'apis',
@@ -265,6 +266,7 @@ SET session_replication_role TO DEFAULT;`;
265
266
  'crypto_auth_module',
266
267
  'field_module',
267
268
  'table_module',
269
+ 'secure_table_provision',
268
270
  'user_profiles_module',
269
271
  'user_settings_module',
270
272
  'organization_settings_module',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpmjs/core",
3
- "version": "6.2.0",
3
+ "version": "6.3.1",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "PGPM Package and Migration Tools",
6
6
  "main": "index.js",
@@ -65,5 +65,5 @@
65
65
  "pgsql-parser": "^17.9.11",
66
66
  "yanse": "^0.2.0"
67
67
  },
68
- "gitHead": "b758178b808ce0bf451e86c0bd7e92079155db7c"
68
+ "gitHead": "0deec313ff9af77b02cb749be9ef34e236e8cab8"
69
69
  }