From 064af8933a60156d6ea268607ecdd494d1d22a0e Mon Sep 17 00:00:00 2001 From: Teamcity Date: Thu, 16 May 2024 09:39:31 +0000 Subject: [PATCH] Release: 0.1.5 --- .github/workflows/fake-pr-tests.yml | 18 ---------- .npmrc | 1 + central_pane/dtdAbbreviation.json | 2 +- forward_engineering/api.js | 0 jsonSchemaProperties.json | 11 ++++-- localization/en.json | 2 +- package.json | 27 +++++++++++++-- .../container_level/containerLevelConfig.json | 34 +++++++++---------- properties_pane/defaultData.json | 2 +- .../entity_level/entityLevelConfig.json | 2 +- .../field_level/fieldLevelConfig.json | 8 +++-- .../model_level/modelLevelConfig.json | 9 ++--- .../view_level/viewLevelConfig.json | 2 +- reverse_engineering/api.js | 16 +-------- reverse_engineering/config.json | 2 +- .../connectionSettingsModalConfig.json | 3 +- reverse_engineering/package.json | 10 +++--- snippets/geopoint-object.json | 17 ++++++---- types/geopoint.json | 6 ++-- types/object.json | 2 +- types/string.json | 2 +- types/timestamp.json | 2 +- validation/validationRegularExpressions.json | 4 +-- 23 files changed, 89 insertions(+), 93 deletions(-) delete mode 100644 .github/workflows/fake-pr-tests.yml create mode 100644 .npmrc create mode 100644 forward_engineering/api.js diff --git a/.github/workflows/fake-pr-tests.yml b/.github/workflows/fake-pr-tests.yml deleted file mode 100644 index 2274166..0000000 --- a/.github/workflows/fake-pr-tests.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: PR tests -on: - pull_request: - types: [auto_merge_enabled] - workflow_dispatch: - -jobs: - skip: - name: Report fake success for PR tests - runs-on: ubuntu-latest - permissions: - checks: write - steps: - - uses: LouisBrunner/checks-action@v2.0.0 - with: - name: Run PR tests (Plugins) (Plugins) - conclusion: success - token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..449691b --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +save-exact=true \ No newline at end of file diff --git a/central_pane/dtdAbbreviation.json b/central_pane/dtdAbbreviation.json index 19894de..ffb24e7 100644 --- a/central_pane/dtdAbbreviation.json +++ b/central_pane/dtdAbbreviation.json @@ -6,4 +6,4 @@ "bool": "{0/1}", "bytes": "{BYTES}", "null": "{null}" -} \ No newline at end of file +} diff --git a/forward_engineering/api.js b/forward_engineering/api.js new file mode 100644 index 0000000..e69de29 diff --git a/jsonSchemaProperties.json b/jsonSchemaProperties.json index ea6a87b..f9220a2 100644 --- a/jsonSchemaProperties.json +++ b/jsonSchemaProperties.json @@ -1,4 +1,11 @@ { - "unneededFieldProps": ["collectionName", "name", "users", "indexes", "collectionUsers", "additionalPropertieserties"], + "unneededFieldProps": [ + "collectionName", + "name", + "users", + "indexes", + "collectionUsers", + "additionalPropertieserties" + ], "removeIfPropsNegative": ["partitionKey", "sortKey"] -} \ No newline at end of file +} diff --git a/localization/en.json b/localization/en.json index 83fecfa..823e828 100644 --- a/localization/en.json +++ b/localization/en.json @@ -141,4 +141,4 @@ "DOCUMENTATION___DB_DEFINITIONS": "Model Definitions", "CONTEXT_MENU___CONVERT_TO_PATTERN_FIELD": "Convert to Pattern Field", "CONTEXT_MENU___CONVERT_PATTERN_TO_REGULAR_FIELD": "Convert to Regular Field" -} \ No newline at end of file +} diff --git a/package.json b/package.json index 86792d7..1875513 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Firestore", - "version": "0.1.4", + "version": "0.1.5", "versionDate": "2020-01-10", "author": "hackolade", "engines": { @@ -26,5 +26,28 @@ } }, "description": "Hackolade plugin for Google Cloud Firestore", - "disabled": false + "disabled": false, + "lint-staged": { + "*.{js,json}": "prettier --write" + }, + "simple-git-hooks": { + "pre-commit": "npx lint-staged", + "pre-push": "npx eslint ." + }, + "scripts": { + "lint": "eslint . --max-warnings=0", + "package": "node esbuild.package.js" + }, + "devDependencies": { + "@hackolade/hck-esbuild-plugins-pack": "0.0.1", + "esbuild": "0.21.3", + "esbuild-plugin-clean": "1.0.1", + "eslint": "9.2.0", + "eslint-config-prettier": "9.1.0", + "eslint-plugin-prettier": "5.1.3", + "lint-staged": "14.0.1", + "prettier": "3.2.5", + "simple-git-hooks": "2.11.1" + }, + "release": true } \ No newline at end of file diff --git a/properties_pane/container_level/containerLevelConfig.json b/properties_pane/container_level/containerLevelConfig.json index 495199d..334d557 100644 --- a/properties_pane/container_level/containerLevelConfig.json +++ b/properties_pane/container_level/containerLevelConfig.json @@ -83,23 +83,23 @@ making sure that you maintain a proper JSON format. [ { "lowerTab": "Details", - "containerLevelKeys": [{ - "labelName": "Document id", - "propertyName": "Document ID", - "propertyKeyword": "documentId", - "defaultName": "^[a-zA-Z0-9_.-]{20}$", - "propertyPrimaryKey": true, - "propertyType": "text", - "typeName": "Data type", - "typeOptions": [ - "object" - ], - "defaultType": "object", - "valueType": "object", - "disabledFieldOption": true, - "entityType": "patternField", - "propertiesRoot": true - }], + "containerLevelKeys": [ + { + "labelName": "Document id", + "propertyName": "Document ID", + "propertyKeyword": "documentId", + "defaultName": "^[a-zA-Z0-9_.-]{20}$", + "propertyPrimaryKey": true, + "propertyType": "text", + "typeName": "Data type", + "typeOptions": ["object"], + "defaultType": "object", + "valueType": "object", + "disabledFieldOption": true, + "entityType": "patternField", + "propertiesRoot": true + } + ], "structure": [ { "propertyName": "Description", diff --git a/properties_pane/defaultData.json b/properties_pane/defaultData.json index fd8202e..bcc788c 100644 --- a/properties_pane/defaultData.json +++ b/properties_pane/defaultData.json @@ -31,4 +31,4 @@ "viewOn": "", "pipeline": "" } -} \ No newline at end of file +} diff --git a/properties_pane/entity_level/entityLevelConfig.json b/properties_pane/entity_level/entityLevelConfig.json index b7474a4..74b9f2d 100644 --- a/properties_pane/entity_level/entityLevelConfig.json +++ b/properties_pane/entity_level/entityLevelConfig.json @@ -95,4 +95,4 @@ making sure that you maintain a proper JSON format. } ] } -] \ No newline at end of file +] diff --git a/properties_pane/field_level/fieldLevelConfig.json b/properties_pane/field_level/fieldLevelConfig.json index 3f81857..1666dd6 100644 --- a/properties_pane/field_level/fieldLevelConfig.json +++ b/properties_pane/field_level/fieldLevelConfig.json @@ -109,10 +109,12 @@ making sure that you maintain a proper JSON format. "propertyType": "text", "arrayItemDisabled": true, "enableForReference": true, - "disabledOnCondition": [{ + "disabledOnCondition": [ + { "key": "key", "value": true - }, { + }, + { "key": "documentKind", "value": true } @@ -147,4 +149,4 @@ making sure that you maintain a proper JSON format. "array": "array", "null": "null" } -} \ No newline at end of file +} diff --git a/properties_pane/model_level/modelLevelConfig.json b/properties_pane/model_level/modelLevelConfig.json index 2daeeee..32888c4 100644 --- a/properties_pane/model_level/modelLevelConfig.json +++ b/properties_pane/model_level/modelLevelConfig.json @@ -90,9 +90,7 @@ making sure that you maintain a proper JSON format. "shouldValidate": false, "propertyTooltip": "DB vendor", "propertyType": "select", - "options": [ - "Cloud Firestore" - ], + "options": ["Cloud Firestore"], "disabledOption": true }, { @@ -101,8 +99,7 @@ making sure that you maintain a proper JSON format. "shouldValidate": false, "propertyTooltip": "DB version", "propertyType": "select", - "options": [ - ], + "options": [], "disabledOption": true }, { @@ -127,4 +124,4 @@ making sure that you maintain a proper JSON format. } ] } -] \ No newline at end of file +] diff --git a/properties_pane/view_level/viewLevelConfig.json b/properties_pane/view_level/viewLevelConfig.json index 37ad202..1f38268 100644 --- a/properties_pane/view_level/viewLevelConfig.json +++ b/properties_pane/view_level/viewLevelConfig.json @@ -94,4 +94,4 @@ making sure that you maintain a proper JSON format. } ] } -] \ No newline at end of file +] diff --git a/reverse_engineering/api.js b/reverse_engineering/api.js index a060094..87d6ad9 100644 --- a/reverse_engineering/api.js +++ b/reverse_engineering/api.js @@ -1,15 +1 @@ -'use strict'; - -module.exports = { - connect: function(connectionInfo, cb){ - cb() - }, - - disconnect: function(connectionInfo, cb){ - cb() - }, - - testConnection: function(connectionInfo, cb){ - cb(true); - } -}; \ No newline at end of file +"use strict";var t=Object.defineProperty;var c=(o,n)=>t(o,"name",{value:n,configurable:!0});module.exports={connect:c(function(o,n){n()},"connect"),disconnect:c(function(o,n){n()},"disconnect"),testConnection:c(function(o,n){n(!0)},"testConnection")}; diff --git a/reverse_engineering/config.json b/reverse_engineering/config.json index 1ffa7cc..e6e155c 100644 --- a/reverse_engineering/config.json +++ b/reverse_engineering/config.json @@ -4,4 +4,4 @@ "WRONG_CONNECTION": "Can not connect to Google Cloud Firestore instance" }, "excludeDocKind": ["id"] -} \ No newline at end of file +} diff --git a/reverse_engineering/connection_settings_modal/connectionSettingsModalConfig.json b/reverse_engineering/connection_settings_modal/connectionSettingsModalConfig.json index faceedb..e712c3e 100644 --- a/reverse_engineering/connection_settings_modal/connectionSettingsModalConfig.json +++ b/reverse_engineering/connection_settings_modal/connectionSettingsModalConfig.json @@ -7,7 +7,6 @@ "inputKeyword": "name", "inputType": "text", "inputPlaceholder": "Name" - }, { "inputLabel": "Host", @@ -21,4 +20,4 @@ } ] } -] \ No newline at end of file +] diff --git a/reverse_engineering/package.json b/reverse_engineering/package.json index 8b3af98..0b29b3c 100644 --- a/reverse_engineering/package.json +++ b/reverse_engineering/package.json @@ -1,7 +1,7 @@ { - "name": "FIRESTORE", - "version": "1.0.0", - "description": "", - "author": "Hackolade", - "installed": true + "name": "FIRESTORE", + "version": "1.0.0", + "description": "", + "author": "Hackolade", + "installed": true } \ No newline at end of file diff --git a/snippets/geopoint-object.json b/snippets/geopoint-object.json index 44531d4..862829b 100644 --- a/snippets/geopoint-object.json +++ b/snippets/geopoint-object.json @@ -1,11 +1,14 @@ { "name": "geopoint-object", "parentType": "document", - "properties": [{ - "name": "lat", - "type": "number" - }, { - "name": "lon", - "type": "number" - }] + "properties": [ + { + "name": "lat", + "type": "number" + }, + { + "name": "lon", + "type": "number" + } + ] } diff --git a/types/geopoint.json b/types/geopoint.json index 9b2036d..2518176 100644 --- a/types/geopoint.json +++ b/types/geopoint.json @@ -15,8 +15,6 @@ "maxProperties": "", "additionalProperties": false, "enum": [], - "subTypes": [ - { "name": "object", "snippet": "geopoint-object" } - ] + "subTypes": [{ "name": "object", "snippet": "geopoint-object" }] } -} \ No newline at end of file +} diff --git a/types/object.json b/types/object.json index eb1e71d..ace12dc 100644 --- a/types/object.json +++ b/types/object.json @@ -17,4 +17,4 @@ "additionalProperties": false, "enum": [] } -} \ No newline at end of file +} diff --git a/types/string.json b/types/string.json index 9322364..1577238 100644 --- a/types/string.json +++ b/types/string.json @@ -17,4 +17,4 @@ "enum": [], "sample": "" } -} \ No newline at end of file +} diff --git a/types/timestamp.json b/types/timestamp.json index f5e97e7..85e1765 100644 --- a/types/timestamp.json +++ b/types/timestamp.json @@ -13,4 +13,4 @@ "default": "", "sample": "" } -} \ No newline at end of file +} diff --git a/validation/validationRegularExpressions.json b/validation/validationRegularExpressions.json index 4eb7c3f..0967ef4 100644 --- a/validation/validationRegularExpressions.json +++ b/validation/validationRegularExpressions.json @@ -1,3 +1 @@ -{ - -} \ No newline at end of file +{}