@saltcorn/server 1.6.0-beta.1 → 1.6.0-beta.11
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.
- package/CHANGELOG.md +72 -3
- package/app.js +32 -12
- package/auth/admin.js +109 -22
- package/auth/routes.js +178 -61
- package/auth/testhelp.js +9 -19
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/_saltcorn_admin-models.models_snapshot.Snapshot.html +2 -2
- package/docs/classes/_saltcorn_common-code.relations_relation.Relation.html +3 -3
- package/docs/classes/_saltcorn_common-code.relations_relations_finder.RelationsFinder.html +5 -5
- package/docs/classes/_saltcorn_data.diagram_cy_raster.CytoscapeRaster.html +4 -4
- package/docs/classes/_saltcorn_data.diagram_nodes_dummy_node.DummyNode.html +4 -4
- package/docs/classes/_saltcorn_data.diagram_nodes_node.Node.html +4 -4
- package/docs/classes/_saltcorn_data.diagram_nodes_page_node.PageNode.html +4 -4
- package/docs/classes/_saltcorn_data.diagram_nodes_table_node.TableNode.html +4 -4
- package/docs/classes/_saltcorn_data.diagram_nodes_trigger_node.TriggerNode.html +4 -4
- package/docs/classes/_saltcorn_data.diagram_nodes_view_node.ViewNode.html +4 -4
- package/docs/classes/_saltcorn_data.mobile-mocks_node_async_hooks.AsyncLocalStorage.html +2 -2
- package/docs/classes/_saltcorn_data.models_crash.Crash.html +2 -2
- package/docs/classes/_saltcorn_data.models_eventlog.EventLog.html +2 -2
- package/docs/classes/_saltcorn_data.models_field.Field.html +9 -9
- package/docs/classes/_saltcorn_data.models_fieldrepeat.FieldRepeat.html +2 -2
- package/docs/classes/_saltcorn_data.models_file.File.html +21 -21
- package/docs/classes/_saltcorn_data.models_form.Form.html +2 -2
- package/docs/classes/_saltcorn_data.models_internal_mail_queue.MailQueue.html +4 -4
- package/docs/classes/_saltcorn_data.models_internal_push_message_helper.PushMessageHelper.html +7 -7
- package/docs/classes/_saltcorn_data.models_library.Library.html +2 -2
- package/docs/classes/_saltcorn_data.models_model.Model.html +2 -2
- package/docs/classes/_saltcorn_data.models_model_instance.ModelInstance.html +2 -2
- package/docs/classes/_saltcorn_data.models_notification.Notification.html +2 -2
- package/docs/classes/_saltcorn_data.models_page.Page.html +12 -11
- package/docs/classes/_saltcorn_data.models_page_group.PageGroup.html +16 -16
- package/docs/classes/_saltcorn_data.models_page_group_member.PageGroupMember.html +8 -8
- package/docs/classes/_saltcorn_data.models_plugin.Plugin.html +45 -10
- package/docs/classes/_saltcorn_data.models_role.Role.html +2 -2
- package/docs/classes/_saltcorn_data.models_table.Table.html +67 -65
- package/docs/classes/_saltcorn_data.models_table_constraints.TableConstraint.html +2 -2
- package/docs/classes/_saltcorn_data.models_tag.Tag.html +2 -2
- package/docs/classes/_saltcorn_data.models_tag_entry.TagEntry.html +2 -2
- package/docs/classes/_saltcorn_data.models_trigger.Trigger.html +22 -20
- package/docs/classes/_saltcorn_data.models_user.User.html +32 -32
- package/docs/classes/_saltcorn_data.models_view.View.html +16 -15
- package/docs/classes/_saltcorn_data.models_workflow.Workflow.html +2 -2
- package/docs/classes/_saltcorn_data.models_workflow_run.WorkflowRun.html +2 -2
- package/docs/classes/_saltcorn_data.models_workflow_step.WorkflowStep.html +2 -2
- package/docs/classes/_saltcorn_data.models_workflow_trace.MetaData.html +2 -2
- package/docs/classes/_saltcorn_data.models_workflow_trace.WorkflowTrace.html +2 -2
- package/docs/classes/_saltcorn_mobile-builder.mobile-builder.MobileBuilder.html +2 -3
- package/docs/classes/_saltcorn_mobile-builder.utils_capacitor-helper.CapacitorHelper.html +2 -2
- package/docs/enums/_saltcorn_common-code.relations_relation_types.RelationType.html +2 -2
- package/docs/enums/_saltcorn_common-code.relations_relation_types.ViewDisplayType.html +2 -2
- package/docs/functions/_saltcorn_admin-models.models_config-check.runConfigurationCheck.html +1 -1
- package/docs/functions/_saltcorn_common-code.relations_relation_helpers.buildRelationPath.html +1 -1
- package/docs/functions/_saltcorn_common-code.relations_relation_helpers.buildTableCaches.html +1 -1
- package/docs/functions/_saltcorn_common-code.relations_relation_helpers.parseLegacyRelation.html +1 -1
- package/docs/functions/_saltcorn_common-code.relations_relation_helpers.parseRelationPath.html +1 -1
- package/docs/functions/_saltcorn_common-code.tests_test_data.fixturesData.html +1 -1
- package/docs/functions/_saltcorn_common-code.tests_test_data.withAnotherUserField.html +1 -1
- package/docs/functions/_saltcorn_common-code.tests_test_data.withKeyFromLayerThree.html +1 -1
- package/docs/functions/_saltcorn_common-code.tests_test_data.withKeyFromLayerTwo.html +1 -1
- package/docs/functions/_saltcorn_common-code.tests_test_data.withMultipleInbounds.html +1 -1
- package/docs/functions/_saltcorn_common-code.tests_test_data.withSecondTopicField.html +1 -1
- package/docs/functions/_saltcorn_common-code.tests_test_data.withSimplePostTopicrelation.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.action_link.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.action_url.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.fill_presets.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.getForm.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.get_view_link_query.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.get_viewable_fields.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.get_viewable_fields_from_layout.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.make_link.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.objToQueryString.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.parse_view_select.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.setDateLocales.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.splitUniques.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.standardBlockDispatch.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.standardLayoutRowVisitor.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.transformForm.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.updateViewSelect.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.view_linker.html +1 -1
- package/docs/functions/_saltcorn_data.db_connect_mobile.getConnectObject.html +1 -1
- package/docs/functions/_saltcorn_data.db_reset_schema.reset.html +1 -1
- package/docs/functions/_saltcorn_data.diagram_cy_generate_utils.generateCyCode.html +1 -1
- package/docs/functions/_saltcorn_data.diagram_cy_generate_utils.genereateCyCfg.html +1 -1
- package/docs/functions/_saltcorn_data.diagram_node_extract_utils.buildObjectTrees.html +1 -1
- package/docs/functions/_saltcorn_data.diagram_node_extract_utils.extractFromColumns.html +1 -1
- package/docs/functions/_saltcorn_data.diagram_node_extract_utils.extractFromLayout.html +1 -1
- package/docs/functions/_saltcorn_data.diagram_node_extract_utils.extractViewToCreate.html +1 -1
- package/docs/functions/_saltcorn_data.migrate.create_blank_migration.html +1 -1
- package/docs/functions/_saltcorn_data.migrate.getMigrationsInDB.html +1 -1
- package/docs/functions/_saltcorn_data.migrate.migrate.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202102091312.js.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202210051058.js.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202210101540.js.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202304281224.js.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202307211459.js.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202502131103.js.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202508011455.js.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202510152058.js.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202603101553.sql_pg.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202604111200.js.html +1 -0
- package/docs/functions/_saltcorn_data.migrations_202604141200.js.html +1 -0
- package/docs/functions/_saltcorn_data.mobile-mocks_node_child_process.execSync.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_fs.createReadStream.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_fs.readdirSync.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_fs.writeFileSync.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_fs_promises.mkdir.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_fs_promises.readFile.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_fs_promises.readdir.html +1 -0
- package/docs/functions/_saltcorn_data.mobile-mocks_node_fs_promises.stat.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_fs_promises.unlink.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_fs_promises.writeFile.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_latest-version.latestVersion.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_v8.deserialize.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_v8.serialize.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_npm_env-paths.envPaths.html +1 -1
- package/docs/functions/_saltcorn_data.model-helper.get_predictor.html +1 -1
- package/docs/functions/_saltcorn_data.model-helper.run_jupyter_model.html +1 -1
- package/docs/functions/_saltcorn_data.model-helper.shorten_trackback.html +1 -1
- package/docs/functions/_saltcorn_data.model-helper.write_csv.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_async_json_stream.async_json_stream.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_query.aggregation_query_fields.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_query.getAggAndField.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_query.joinfield_renamer.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_query.process_aggregations.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.buildKeyFromRelative.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.copyObject.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.deleteObject.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.downloadBuffer.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.getPublicFileUrl.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.getResolvedBucket.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.getS3Client.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.getServeUrl.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.getSignedFileUrl.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.headObject.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.isS3Enabled.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.listS3Folder.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.publicUrlToRelativePath.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.relativeKeyToPath.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.setObjectMetadata.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.uploadBuffer.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_table_helper.boolExamples.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_table_helper.colorExamples.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_table_helper.floatExamples.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_table_helper.get_formula_examples.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_table_helper.intExamples.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_table_helper.stringExamples.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.build_schema_data.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.calcfldViewConfig.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.calcfldViewOptions.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.calcrelViewOptions.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.displayType.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.field_picker_fields.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.generate_joined_query.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.getActionConfigFields.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.get_child_views.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.get_inbound_relation_opts.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.get_inbound_self_relation_opts.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.get_link_view_opts.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.get_many_to_many_relation_opts.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.get_parent_views.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.initial_config_all_fields.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.json_list_to_external_table.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.link_view.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.pathToState.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.picked_fields_to_query.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.readState.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.readStateStrict.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.runCollabEvents.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.run_action_column.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.stateFieldsToQuery.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.stateFieldsToWhere.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.stateToQueryString.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.strictParseInt.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-testing.auto_test_plugin.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-testing.check_view_columns.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-testing.generate_attributes.html +1 -1
- package/docs/functions/_saltcorn_data.standard-menu.create_standard_menu.html +1 -1
- package/docs/functions/_saltcorn_data.tests_assertions.assertIsErrorMsg.html +1 -1
- package/docs/functions/_saltcorn_data.tests_assertions.assertIsErrorsMsg.html +1 -1
- package/docs/functions/_saltcorn_data.tests_assertions.assertIsRow.html +1 -1
- package/docs/functions/_saltcorn_data.tests_assertions.assertIsSet.html +1 -1
- package/docs/functions/_saltcorn_data.tests_assertions.assertIsType.html +1 -1
- package/docs/functions/_saltcorn_data.tests_assertions.assertsIsSuccessMessage.html +1 -1
- package/docs/functions/_saltcorn_data.tests_assertions.assertsObjectIsUser.html +1 -1
- package/docs/functions/_saltcorn_data.tests_common_helpers.createAnotherUserField.html +1 -1
- package/docs/functions/_saltcorn_data.tests_common_helpers.createKeyFromLevelTwo.html +1 -1
- package/docs/functions/_saltcorn_data.tests_common_helpers.createLevelThreeInbound.html +1 -1
- package/docs/functions/_saltcorn_data.tests_common_helpers.createMultipleInbounds.html +1 -1
- package/docs/functions/_saltcorn_data.tests_common_helpers.createSecondTopicField.html +1 -1
- package/docs/functions/_saltcorn_data.tests_common_helpers.prepareEmployeeDepartment.html +1 -1
- package/docs/functions/_saltcorn_data.tests_common_helpers.prepareSimpleTopicPostRelation.html +1 -1
- package/docs/functions/_saltcorn_data.tests_remote_query_helper.deleteViewFromServer.html +1 -1
- package/docs/functions/_saltcorn_data.tests_remote_query_helper.prepareQueryEnviroment.html +1 -1
- package/docs/functions/_saltcorn_data.tests_remote_query_helper.sendViewToServer.html +1 -1
- package/docs/functions/_saltcorn_data.translate.hasLLM.html +1 -1
- package/docs/functions/_saltcorn_data.translate.translate.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.ftsFieldsSqlExpr.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.mkSelectOptions.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.mkWhere.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.orderByIsObject.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.orderByIsOperator.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.prefixFieldsInWhere.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.sqlBinOp.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.sqlFun.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.sqlsanitize.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.sqlsanitizeAllowDots.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.subSelectWhere.html +1 -1
- package/docs/functions/_saltcorn_db-common.multi-tenant.enable_multi_tenant.html +1 -1
- package/docs/functions/_saltcorn_db-common.multi-tenant.getRequestContext.html +1 -1
- package/docs/functions/_saltcorn_db-common.multi-tenant.getTenantSchema.html +1 -1
- package/docs/functions/_saltcorn_db-common.multi-tenant.init.html +1 -1
- package/docs/functions/_saltcorn_db-common.multi-tenant.is_it_multi_tenant.html +1 -1
- package/docs/functions/_saltcorn_db-common.multi-tenant.runWithTenant.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.buildInsertBulkSql.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.buildInsertSql.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.commitAndBeginNewTransaction.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.doCount.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.doDeleteWhere.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.doListScTables.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.doListTables.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.doListUserDefinedTables.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.do_add_index.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.do_drop_index.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.mkVal.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.openOrUseTransaction.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.reprAsJson.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.slugify.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.tryCatchInTransaction.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.whenTransactionisFree.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.withTransaction.html +1 -1
- package/docs/functions/_saltcorn_markup.mktag.mkTag.html +1 -1
- package/docs/functions/_saltcorn_markup.tabs.tabs.html +1 -1
- package/docs/functions/_saltcorn_markup.workflow.renderWorkflow.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.androidFeatures.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.androidPermissions.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.buildTablesFile.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.copyPrepopulatedDb.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.copyServerFiles.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.copyShareExtFiles.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.copySiteLogo.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.copyTranslationFiles.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.createSqliteDb.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.extractDomain.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.generateAndroidVersionCode.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.hasAuthMethod.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyAndroidManifest.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyAppDelegate.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyConfigXml.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyGradleConfig.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyInfoPlist.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyShareViewController.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyXcodeProjectFile.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.prepAppIcon.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.prepareAppIcon.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.prepareBuildDir.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.prepareExportOptionsPlist.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.prepareSplashIcon.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.prepareSplashPage.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.runAddEntitlementsScript.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writeCapacitorConfig.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writeCfgFile.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writeDataExtractionRules.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writeEntitlementsPlist.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writeNetworkSecurityConfig.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writePodfile.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writePrivacyInfo.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_package-bundle-utils.bundleMobileAppCode.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_package-bundle-utils.bundlePackagesAndPlugins.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_package-bundle-utils.copyOptionalSource.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_package-bundle-utils.copyPluginMobileAppDirs.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_package-bundle-utils.copyPublicDirs.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.add_index.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.add_unique_constraint.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.count.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.deleteWhere.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.drop_index.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.drop_reset_schema.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.drop_unique_constraint.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.init.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.insert.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.insertRows.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.listScTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.listTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.listUserDefinedTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.query.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.select.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.selectMaybeOne.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.selectOne.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.setConnectionObject.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.tableExists.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.time.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.update.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.add_index.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.add_unique_constraint.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.begin.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.changeConnection.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.close.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.commit.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.count.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.deleteWhere.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.dropTable.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.dropTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.drop_index.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.drop_reset_schema.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.drop_unique_constraint.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.getVersion.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.get_db_filepath.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.get_sql_logging.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.init.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.insert.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.listScTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.listTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.listUserDefinedTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.query.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.rollback.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.select.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.selectMaybeOne.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.selectOne.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.set_sql_logging.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.sql_log.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.update.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.updateWhere.html +1 -1
- package/docs/functions/_saltcorn_types.base_types.instanceOWithHtmlFile.html +1 -1
- package/docs/functions/_saltcorn_types.base_types.instanceOfFieldViewEdit.html +1 -1
- package/docs/functions/_saltcorn_types.base_types.instanceOfFieldViewShow.html +1 -1
- package/docs/functions/_saltcorn_types.base_types.instanceOfPack.html +1 -1
- package/docs/functions/_saltcorn_types.common_types.instanceOfErrorMsg.html +1 -1
- package/docs/functions/_saltcorn_types.common_types.instanceOfSuccessMsg.html +1 -1
- package/docs/functions/_saltcorn_types.common_types.instanceOfType.html +1 -1
- package/docs/functions/_saltcorn_types.model-abstracts_abstract_field.instanceOfField.html +1 -1
- package/docs/functions/_saltcorn_types.model-abstracts_abstract_page.instanceOfPage.html +1 -1
- package/docs/functions/_saltcorn_types.model-abstracts_abstract_plugin.instanceOfPlugin.html +1 -1
- package/docs/functions/_saltcorn_types.model-abstracts_abstract_table.instanceOfTable.html +1 -1
- package/docs/functions/_saltcorn_types.model-abstracts_abstract_view.instanceOfView.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/interfaces/_saltcorn_db-common.dbtypes.UserLike.html +2 -2
- package/docs/interfaces/_saltcorn_markup.types.TagExports.html +2 -2
- package/docs/interfaces/_saltcorn_mobile-builder.utils_common-build-utils.ScCapacitorConfig.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_field.AbstractField.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_field.AbstractFieldRepeat.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_form.AbstractForm.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_page.AbstractPage.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_page_group.AbstractPageGroup.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_page_group_member.AbstractPageGroupMember.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_plugin.AbstractPlugin.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_role.AbstractRole.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_table.AbstractTable.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_tag.AbstractTag.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_tag_entry.AbstractTagEntry.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_trigger.AbstractTrigger.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_user.AbstractUser.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_user.ForUserRequest.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_view.AbstractView.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_workflow.AbstractWorkflow.html +2 -2
- package/docs/modules/_saltcorn_data.html +1 -1
- package/docs/modules/_saltcorn_data.migrations_202604091531.html +1 -0
- package/docs/modules/_saltcorn_data.migrations_202604111200.html +1 -0
- package/docs/modules/_saltcorn_data.migrations_202604141200.html +1 -0
- package/docs/modules/_saltcorn_data.mobile-mocks_node_fs.html +1 -1
- package/docs/modules/_saltcorn_data.mobile-mocks_node_fs_promises.html +1 -1
- package/docs/modules/_saltcorn_data.mobile-mocks_npm_npm-registry-fetch.html +1 -0
- package/docs/modules/_saltcorn_data.mobile-mocks_saltcorn_admin-models-tenant.html +1 -0
- package/docs/modules/_saltcorn_data.mobile-mocks_saltcorn_plugins-loader-plugin-installer.html +1 -0
- package/docs/modules/_saltcorn_data.mobile-mocks_saltcorn_plugins-loader-stable-versioning.html +1 -0
- package/docs/modules/_saltcorn_data.models_index.discovery.html +1 -1
- package/docs/types/_saltcorn_data.diagram_node_extract_utils.ExtractOpts.html +2 -2
- package/docs/types/_saltcorn_data.diagram_node_extract_utils.ExtractResult.html +2 -2
- package/docs/types/_saltcorn_data.diagram_nodes_node.NodeType.html +1 -1
- package/docs/types/_saltcorn_data.models_config.ConfigTypes.html +1 -1
- package/docs/types/_saltcorn_data.models_config.SingleConfig.html +1 -1
- package/docs/types/_saltcorn_data.models_eventlog.EventLogCfg.html +2 -2
- package/docs/types/_saltcorn_data.models_file.FileCfg.html +2 -2
- package/docs/types/_saltcorn_data.models_form.AdditionalButton.html +1 -1
- package/docs/types/_saltcorn_data.models_form.FormCfg.html +2 -2
- package/docs/types/_saltcorn_data.models_internal_push_message_helper.MobileSubscription.html +2 -2
- package/docs/types/_saltcorn_data.models_internal_push_message_helper.WebPushSubscription.html +2 -2
- package/docs/types/_saltcorn_data.models_internal_s3_helpers.S3HeadResult.html +1 -1
- package/docs/types/_saltcorn_data.models_internal_s3_helpers.S3ListResult.html +2 -2
- package/docs/types/_saltcorn_data.models_page_group.ScreenInfoParams.html +2 -2
- package/docs/types/_saltcorn_data.models_table.ChildRelations.html +2 -2
- package/docs/types/_saltcorn_data.models_table.ParentRelations.html +2 -2
- package/docs/types/_saltcorn_data.models_table.RelationData.html +2 -2
- package/docs/types/_saltcorn_data.models_tag_entry.TagEntryCfg.html +1 -1
- package/docs/types/_saltcorn_data.models_view.FindViewsPred.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.AggregationOptions.html +2 -2
- package/docs/types/_saltcorn_db-common.dbtypes.CoordOpts.html +2 -2
- package/docs/types/_saltcorn_db-common.dbtypes.DatabaseClient.html +2 -2
- package/docs/types/_saltcorn_db-common.dbtypes.JoinField.html +2 -2
- package/docs/types/_saltcorn_db-common.dbtypes.JoinFields.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.JoinOptions.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.JsonPath.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.JsonPathElem.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.Operator.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.PartialSome.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.PrimaryKeyValue.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.Row.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.SelectOptions.html +2 -2
- package/docs/types/_saltcorn_db-common.dbtypes.StrongRow.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.SubselectOptions.html +2 -2
- package/docs/types/_saltcorn_db-common.dbtypes.Value.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.Where.html +2 -2
- package/docs/types/_saltcorn_db-common.sqlite-commons.SqlAndValues.html +2 -2
- package/docs/types/_saltcorn_db-common.types.DbExportsType.html +2 -2
- package/docs/types/_saltcorn_db-common.types.GenObj.html +1 -1
- package/docs/types/_saltcorn_markup.emergency_layout.WrapParams.html +2 -2
- package/docs/types/_saltcorn_markup.helpers.CheckBoxGroupOpts.html +2 -2
- package/docs/types/_saltcorn_markup.helpers.PaginationOpts.html +2 -2
- package/docs/types/_saltcorn_markup.helpers.RadioGroupOpts.html +2 -2
- package/docs/types/_saltcorn_markup.helpers.SearchBarOpts.html +2 -2
- package/docs/types/_saltcorn_markup.layout.RenderOpts-1.html +2 -2
- package/docs/types/_saltcorn_markup.layout.RenderOpts.html +2 -2
- package/docs/types/_saltcorn_markup.mjml-layout.RenderOpts.html +2 -2
- package/docs/types/_saltcorn_markup.table.HeadersParams.html +2 -2
- package/docs/types/_saltcorn_markup.table.OptsParams.html +2 -2
- package/docs/types/_saltcorn_markup.types.AttributeVal.html +1 -1
- package/docs/types/_saltcorn_markup.types.Attributes.html +2 -2
- package/docs/types/_saltcorn_markup.types.ClassVal.html +1 -1
- package/docs/types/_saltcorn_markup.types.Element.html +1 -1
- package/docs/types/_saltcorn_markup.types.Falsy.html +1 -1
- package/docs/types/_saltcorn_markup.types.StyleVal.html +1 -1
- package/docs/types/_saltcorn_markup.types.TagFunction.html +1 -1
- package/docs/types/_saltcorn_mobile-builder.mobile-builder.IosCfg.html +2 -2
- package/docs/types/_saltcorn_mobile-builder.utils_capacitor-helper.CapacitorCfg.html +2 -2
- package/docs/types/_saltcorn_types.base_types.Action.html +5 -4
- package/docs/types/_saltcorn_types.base_types.AuthenticationMethod.html +2 -2
- package/docs/types/_saltcorn_types.base_types.CalcJoinfield.html +2 -2
- package/docs/types/_saltcorn_types.base_types.CapacitorPlugin.html +2 -2
- package/docs/types/_saltcorn_types.base_types.CodePagePack.html +2 -2
- package/docs/types/_saltcorn_types.base_types.Column.html +2 -2
- package/docs/types/_saltcorn_types.base_types.ConnectObjType.html +2 -2
- package/docs/types/_saltcorn_types.base_types.ConnectedObjects.html +2 -2
- package/docs/types/_saltcorn_types.base_types.CopilotSkill.html +2 -2
- package/docs/types/_saltcorn_types.base_types.ErrorObj.html +2 -2
- package/docs/types/_saltcorn_types.base_types.FieldLike.html +1 -1
- package/docs/types/_saltcorn_types.base_types.FieldView.html +1 -1
- package/docs/types/_saltcorn_types.base_types.Header.html +2 -2
- package/docs/types/_saltcorn_types.base_types.JoinFieldOption.html +2 -2
- package/docs/types/_saltcorn_types.base_types.Layout.html +1 -1
- package/docs/types/_saltcorn_types.base_types.MenuItem.html +2 -2
- package/docs/types/_saltcorn_types.base_types.MobileConfig.html +2 -3
- package/docs/types/_saltcorn_types.base_types.ModelPattern.html +6 -6
- package/docs/types/_saltcorn_types.base_types.Pack.html +2 -2
- package/docs/types/_saltcorn_types.base_types.Plugin.html +1 -1
- package/docs/types/_saltcorn_types.base_types.PluginFunction.html +3 -2
- package/docs/types/_saltcorn_types.base_types.PluginLayout.html +2 -2
- package/docs/types/_saltcorn_types.base_types.PluginRoute.html +2 -2
- package/docs/types/_saltcorn_types.base_types.PluginSourceType.html +1 -1
- package/docs/types/_saltcorn_types.base_types.PluginType.html +2 -2
- package/docs/types/_saltcorn_types.base_types.PluginWrap.html +1 -1
- package/docs/types/_saltcorn_types.base_types.PluginWrapArg.html +2 -2
- package/docs/types/_saltcorn_types.base_types.RelationOption.html +2 -2
- package/docs/types/_saltcorn_types.base_types.Req.html +2 -2
- package/docs/types/_saltcorn_types.base_types.Res.html +2 -2
- package/docs/types/_saltcorn_types.base_types.ResultType.html +2 -2
- package/docs/types/_saltcorn_types.base_types.RouteAction.html +1 -1
- package/docs/types/_saltcorn_types.base_types.RunExtra.html +1 -1
- package/docs/types/_saltcorn_types.base_types.SlugStepType.html +2 -2
- package/docs/types/_saltcorn_types.base_types.StepResType.html +1 -1
- package/docs/types/_saltcorn_types.base_types.SubField.html +2 -2
- package/docs/types/_saltcorn_types.base_types.TableProvider.html +2 -2
- package/docs/types/_saltcorn_types.base_types.TableQuery.html +2 -2
- package/docs/types/_saltcorn_types.base_types.Tablely.html +1 -1
- package/docs/types/_saltcorn_types.base_types.ViewTemplate.html +3 -2
- package/docs/types/_saltcorn_types.common_types.ErrorMessage.html +2 -2
- package/docs/types/_saltcorn_types.common_types.GenObj.html +1 -1
- package/docs/types/_saltcorn_types.common_types.ReqRes.html +2 -2
- package/docs/types/_saltcorn_types.common_types.ResultMessage.html +1 -1
- package/docs/types/_saltcorn_types.common_types.SuccessMessage.html +2 -2
- package/docs/types/_saltcorn_types.common_types.Type.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_event_log.EventLogPack.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_field.FieldCfg.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_field.InputType.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_form.AdditionalButton.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_library.LibraryCfg.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_library.LibraryPack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_model.ModelCfg.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_model.ModelPack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_model_instance.ModelInstanceCfg.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_model_instance.ModelInstancePack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_page.PageCfg.html +3 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_page.PagePack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_page_group.PageGroupCfg.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_page_group.PageGroupPack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_page_group_member.PageGroupMemberCfg.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_page_group_member.PageGroupMemberPack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_plugin.PluginCfg.html +3 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_plugin.PluginPack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_role.RoleCfg.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_role.RolePack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_table.TableCfg.html +3 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_table.TablePack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_tag.TagPack.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_tag_entry.TagEntryPack.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_trigger.TriggerCfg.html +3 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_trigger.TriggerPack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_view.ViewCfg.html +3 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_view.ViewPack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow.ConfigWorkflowStep.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow.RunResult.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow_run.WorkflowRunCfg.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow_step.WorkflowStepCfg.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow_step.WorkflowStepPack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow_trace.WorkflowTraceCfg.html +2 -2
- package/docs/variables/_saltcorn_admin-models..backup.create_backup.html +1 -1
- package/docs/variables/_saltcorn_admin-models..backup.create_csv_from_rows.html +1 -1
- package/docs/variables/_saltcorn_admin-models..backup.restore.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.add_to_menu.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.can_install_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.fetch_available_packs.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.fetch_pack_by_name.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.install_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.library_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.model_instance_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.model_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.page_group_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.page_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.plugin_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.role_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.table_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.trigger_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.uninstall_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.view_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..tenant.copy_tenant_template.html +1 -1
- package/docs/variables/_saltcorn_admin-models..tenant.create_tenant.html +1 -1
- package/docs/variables/_saltcorn_admin-models..tenant.deleteTenant.html +1 -1
- package/docs/variables/_saltcorn_admin-models..tenant.domain_sanitize.html +1 -1
- package/docs/variables/_saltcorn_admin-models..tenant.eachTenant.html +1 -1
- package/docs/variables/_saltcorn_admin-models..tenant.getAllTenantRows.html +1 -1
- package/docs/variables/_saltcorn_admin-models..tenant.getAllTenants.html +1 -1
- package/docs/variables/_saltcorn_admin-models..tenant.insertTenant.html +1 -1
- package/docs/variables/_saltcorn_admin-models..tenant.switchToTenant.html +1 -1
- package/docs/variables/_saltcorn_admin-models.models_backup.backup.html +1 -1
- package/docs/variables/_saltcorn_admin-models.pack.pack.html +3 -3
- package/docs/variables/_saltcorn_admin-models.tenant.tenant.html +1 -1
- package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedFive.html +1 -1
- package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedFour.html +1 -1
- package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedOne.html +1 -1
- package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedSix.html +1 -1
- package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedThree.html +1 -1
- package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedTwo.html +1 -1
- package/docs/variables/_saltcorn_data..migrations.html +1 -1
- package/docs/variables/_saltcorn_data..plugin_helper.run_action_column.html +1 -1
- package/docs/variables/_saltcorn_data..utils.NotAuthorized.html +1 -1
- package/docs/variables/_saltcorn_data..utils.isPushEnabled.html +1 -1
- package/docs/variables/_saltcorn_data..utils.sleep.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_actions.actions.html +13 -13
- package/docs/variables/_saltcorn_data.base-plugin_fieldviews.fieldviews.html +3 -3
- package/docs/variables/_saltcorn_data.base-plugin_fileview.fileviews.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_index.index.html +15 -15
- package/docs/variables/_saltcorn_data.base-plugin_types.types.html +7 -7
- package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_edit.edit.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_feed.feed.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_filter.filter.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_list.list.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_listshowlist.listshowlist.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_room.room-1.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_room.room.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_show.show.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.edit_build_in_actions.html +1 -1
- package/docs/variables/_saltcorn_data.contract.contract.html +1 -1
- package/docs/variables/_saltcorn_data.db_connect.connect.html +1 -1
- package/docs/variables/_saltcorn_data.db_fa5-icons.fa5Icons.html +1 -1
- package/docs/variables/_saltcorn_data.db_fixtures.fixtures.html +1 -1
- package/docs/variables/_saltcorn_data.db_index.dbExports.html +1 -1
- package/docs/variables/_saltcorn_data.db_state.state.html +3 -3
- package/docs/variables/_saltcorn_data.migrations_202005141503.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202005241712.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202005251037.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202005282134.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202006022156.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202006051507.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202006240906.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202007091707.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202007202144.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202008031500.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202008051415.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202008121149.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202008121149.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202009112140.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202009112140.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202009181655.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202009221105.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202009231331.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202009301531.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202010231444.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202010251412.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202011021749.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202011051353.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202011111127.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202012011203.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202012100841.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202012281835.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202101061051.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202101141128.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202102091312.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202102101624.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202102172148.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202102261650.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202106102347.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202106112120.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202106120012.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202106120220.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202106121701.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202106121703.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202106121703.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202106251126.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202107281619.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202107302158.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202107302158.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202108022257.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202109201624.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202109301031.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202109301031.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202111290253.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202111290253.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202112282254.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202112282254.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202207022002.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202207252150.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202207252150.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202207261221.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202208101144.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202208101144.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202211040031.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202212112152.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202212112152.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202301130917.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202303201126.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202303201126.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202303221944.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202303221944.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202304281224.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202305031518.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202305031518.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202308211648.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202311011755.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202311011755.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202311231356.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202402071125.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202406260915.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202412051957.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202412051957.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202412111526.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202412111526.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202501081226.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202501081226.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202501201239.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202501262157.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202503071353.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202506050958.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202510110312.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202510110312.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202511081024.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202604091531.sql.html +1 -0
- package/docs/variables/_saltcorn_data.mobile-mocks_npm_npm-registry-fetch.npmRegistryFetch.html +1 -0
- package/docs/variables/_saltcorn_data.mobile-mocks_saltcorn_html-pdf-node.htmlPdfNode.html +1 -1
- package/docs/variables/_saltcorn_data.models_config.configExports.html +1 -1
- package/docs/variables/_saltcorn_data.models_discovery.discovery.html +6 -2
- package/docs/variables/_saltcorn_data.models_email.email.html +3 -3
- package/docs/variables/_saltcorn_data.models_expression.expression.html +3 -3
- package/docs/variables/_saltcorn_data.models_index.config.available_languages.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.check_email_mask.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.configTypes.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.deleteConfig.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.getAllConfig.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.getConfig.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.get_base_url.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.get_latest_npm_version.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.remove_from_menu.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.save_menu_items.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.setConfig.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.discovery.discover_tables.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.discovery.discoverable_tables.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.discovery.findType.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.discovery.get_existing_views.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.discovery.implement_discovery.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.discovery.make_field.html +1 -0
- package/docs/variables/_saltcorn_data.models_index.discovery.reconcile_table.html +7 -0
- package/docs/variables/_saltcorn_data.models_index.email.getMailTransport.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.email.send_verification_email.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.email.viewToEmailHtml.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.expression.apply_calculated_fields.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.expression.apply_calculated_fields_stored.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.expression.eval_expression.html +9 -1
- package/docs/variables/_saltcorn_data.models_index.expression.expressionValidator.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.expression.get_async_expression_function.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.expression.get_expression_function.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.expression.jsexprToWhere.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.expression.recalculate_for_stored.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.expression.transform_for_async.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.layout.eachView.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.layout.getStringsForI18n.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.layout.getViews.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.layout.translateLayout.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.layout.traverse.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.layout.traverseSync.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.random.all_views.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.random.fill_table_row.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.random.initial_view.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.random.random_table.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.scheduler.runScheduler.html +1 -1
- package/docs/variables/_saltcorn_data.models_layout.layout.html +1 -1
- package/docs/variables/_saltcorn_data.models_random.random.html +1 -1
- package/docs/variables/_saltcorn_data.models_scheduler.scheduler.html +1 -1
- package/docs/variables/_saltcorn_data.plugin-helper.add_free_variables_to_joinfields.html +1 -1
- package/docs/variables/_saltcorn_data.tests_mocks.mocks.html +1 -1
- package/docs/variables/_saltcorn_data.tests_remote_query_helper.renderEditInEditConfig.html +1 -1
- package/docs/variables/_saltcorn_data.utils.utils.html +11 -5
- package/docs/variables/_saltcorn_data.web-mobile-commons.webMobileCommons.html +1 -1
- package/docs/variables/_saltcorn_db-common.internal.dbCommonModulePath.html +1 -1
- package/docs/variables/_saltcorn_db-common.multi-tenant.tenantNamespace.html +1 -1
- package/docs/variables/_saltcorn_db-common.tenants.tenants.html +1 -1
- package/docs/variables/_saltcorn_markup..export_.html +1 -1
- package/docs/variables/_saltcorn_markup.builder.builder.html +1 -1
- package/docs/variables/_saltcorn_markup.emergency_layout.EmergencyLayoutExports.html +1 -1
- package/docs/variables/_saltcorn_markup.form.form.html +1 -1
- package/docs/variables/_saltcorn_markup.helpers.HelpersExports.html +1 -1
- package/docs/variables/_saltcorn_markup.layout.LayoutExports-1.html +1 -1
- package/docs/variables/_saltcorn_markup.layout.LayoutExports.html +1 -1
- package/docs/variables/_saltcorn_markup.layout_utils.layoutUtils.html +1 -1
- package/docs/variables/_saltcorn_markup.mjml-layout.LayoutExports.html +1 -1
- package/docs/variables/_saltcorn_markup.mjml-tags.tagsExports.html +1 -1
- package/docs/variables/_saltcorn_markup.table.TableExports.html +1 -1
- package/docs/variables/_saltcorn_markup.tags.tagsExports.html +1 -1
- package/docs/variables/_saltcorn_types..generators.generateBool.html +1 -1
- package/docs/variables/_saltcorn_types..generators.generateString.html +1 -1
- package/docs/variables/_saltcorn_types..generators.num_between.html +1 -1
- package/docs/variables/_saltcorn_types..generators.oneOf.html +1 -1
- package/docs/variables/_saltcorn_types.generators.generators.html +1 -1
- package/errors.js +4 -4
- package/help/Event channel and payload.tmd +5 -0
- package/help/Extra state formula.tmd +1 -1
- package/help/Group by formula.tmd +15 -0
- package/help/JavaScript action code.tmd +5 -1
- package/load_plugins.js +7 -398
- package/locales/ar.json +262 -1
- package/locales/de.json +264 -3
- package/locales/en.json +38 -9
- package/locales/es.json +265 -4
- package/locales/fr.json +263 -2
- package/locales/ur.json +273 -4
- package/markup/admin.js +14 -9
- package/markup/expression_blurb.js +1 -1
- package/package.json +14 -14
- package/public/monaco/loader.js +0 -2
- package/public/popper.min.js +0 -1
- package/public/saltcorn-builder.css +82 -0
- package/public/saltcorn-common.js +36 -2
- package/public/saltcorn.css +138 -0
- package/public/saltcorn.js +1458 -29
- package/public/socket.io.min.js +0 -1
- package/public/tabulator.min.js +2 -3
- package/public/tabulator_bootstrap4.min.css +1 -2
- package/public/tabulator_bootstrap5.min.css +1 -2
- package/routes/actions.js +275 -22
- package/routes/admin.js +148 -40
- package/routes/api.js +96 -60
- package/routes/delete.js +2 -5
- package/routes/edit.js +2 -5
- package/routes/entities.js +65 -1245
- package/routes/eventlog.js +47 -0
- package/routes/fields.js +125 -14
- package/routes/files.js +36 -4
- package/routes/homepage.js +4 -1
- package/routes/list.js +69 -11
- package/routes/packs.js +2 -3
- package/routes/page.js +18 -1
- package/routes/pageedit.js +1 -0
- package/routes/plugins.js +56 -21
- package/routes/scapi.js +1 -2
- package/routes/sync.js +183 -54
- package/routes/tables.js +492 -2
- package/routes/tenant.js +3 -3
- package/routes/utils.js +17 -6
- package/routes/viewedit.js +10 -6
- package/serve.js +35 -23
- package/tests/admin.test.js +5 -5
- package/tests/api.test.js +424 -2
- package/tests/auth.test.js +230 -1
- package/tests/fields.test.js +16 -0
- package/tests/files.test.js +43 -7
- package/tests/page.test.js +53 -0
- package/tests/plugin_install.test.js +132 -13
- package/tests/plugins.test.js +1 -2
- package/tests/sync.test.js +900 -18
- package/tests/view.test.js +32 -0
- package/wrapper.js +3 -1
package/routes/admin.js
CHANGED
|
@@ -76,19 +76,20 @@ const {
|
|
|
76
76
|
//get_other_domain_tenant,
|
|
77
77
|
get_process_init_time,
|
|
78
78
|
} = require("@saltcorn/data/db/state");
|
|
79
|
-
const { loadAllPlugins } = require("../load_plugins");
|
|
80
79
|
const {
|
|
81
80
|
create_backup,
|
|
82
81
|
restore,
|
|
83
82
|
auto_backup_now,
|
|
84
83
|
} = require("@saltcorn/admin-models/models/backup");
|
|
85
|
-
const {
|
|
84
|
+
const {
|
|
85
|
+
install_pack,
|
|
86
|
+
filter_pack,
|
|
87
|
+
} = require("@saltcorn/admin-models/models/pack");
|
|
86
88
|
const Snapshot = require("@saltcorn/admin-models/models/snapshot");
|
|
87
89
|
const {
|
|
88
90
|
runConfigurationCheck,
|
|
89
91
|
} = require("@saltcorn/admin-models/models/config-check");
|
|
90
92
|
const fs = require("fs");
|
|
91
|
-
const load_plugins = require("../load_plugins");
|
|
92
93
|
const {
|
|
93
94
|
restore_backup,
|
|
94
95
|
send_admin_page,
|
|
@@ -305,6 +306,7 @@ admin_config_route({
|
|
|
305
306
|
{ section_header: "Custom code" },
|
|
306
307
|
"page_custom_css",
|
|
307
308
|
"page_custom_html",
|
|
309
|
+
"suppress_toasts",
|
|
308
310
|
{ section_header: "Updates and module store" },
|
|
309
311
|
"airgap",
|
|
310
312
|
"plugins_store_endpoint",
|
|
@@ -489,6 +491,7 @@ router.get(
|
|
|
489
491
|
"min_role_edit_search",
|
|
490
492
|
"min_role_edit_menu",
|
|
491
493
|
"min_role_edit_files",
|
|
494
|
+
"min_role_edit_users",
|
|
492
495
|
]),
|
|
493
496
|
error_catcher(async (req, res) => {
|
|
494
497
|
const { topic } = req.params;
|
|
@@ -700,35 +703,14 @@ router.get(
|
|
|
700
703
|
{ href: "/admin/snapshot-list" },
|
|
701
704
|
req.__("List/download snapshots »")
|
|
702
705
|
),
|
|
703
|
-
|
|
706
|
+
a(
|
|
704
707
|
{
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
+
onclick: "ajax_modal('/admin/snapshot-restore-full')",
|
|
709
|
+
class: "d-block",
|
|
710
|
+
href: `javascript:void(0)`,
|
|
708
711
|
},
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
name: "_csrf",
|
|
712
|
-
value: req.csrfToken(),
|
|
713
|
-
}),
|
|
714
|
-
label(
|
|
715
|
-
{
|
|
716
|
-
class: "btn-link",
|
|
717
|
-
for: "upload_to_snapshot",
|
|
718
|
-
style: { cursor: "pointer" },
|
|
719
|
-
},
|
|
720
|
-
i({ class: "fas fa-upload me-2 mt-2" }),
|
|
721
|
-
req.__("Restore a snapshot")
|
|
722
|
-
),
|
|
723
|
-
input({
|
|
724
|
-
id: "upload_to_snapshot",
|
|
725
|
-
class: "d-none",
|
|
726
|
-
name: "file",
|
|
727
|
-
type: "file",
|
|
728
|
-
accept: ".json,application/json",
|
|
729
|
-
onchange:
|
|
730
|
-
"notifyAlert('Restoring snapshot...', true);this.form.submit();",
|
|
731
|
-
})
|
|
712
|
+
i({ class: "fas fa-upload me-2 mt-2" }),
|
|
713
|
+
req.__("Restore a snapshot")
|
|
732
714
|
)
|
|
733
715
|
),
|
|
734
716
|
},
|
|
@@ -908,7 +890,12 @@ router.get(
|
|
|
908
890
|
]),
|
|
909
891
|
error_catcher(async (req, res) => {
|
|
910
892
|
const { type, name } = req.params;
|
|
911
|
-
const
|
|
893
|
+
const snapOffset = parseInt(req.query.snap_offset) || 0;
|
|
894
|
+
const { history: snaps, hasMore } = await Snapshot.entity_history(
|
|
895
|
+
type,
|
|
896
|
+
name,
|
|
897
|
+
snapOffset
|
|
898
|
+
);
|
|
912
899
|
const locale = getState().getConfig("default_locale", "en");
|
|
913
900
|
const auth = checkEditPermission(type + "s", req.user);
|
|
914
901
|
if (!auth) {
|
|
@@ -916,6 +903,9 @@ router.get(
|
|
|
916
903
|
return;
|
|
917
904
|
}
|
|
918
905
|
res.set("Page-Title", `Restore ${text(name)}`);
|
|
906
|
+
let olderUrl = `/admin/snapshot-restore/${type}/${encodeURIComponent(name)}?snap_offset=${snapOffset + 100}`;
|
|
907
|
+
if (req.query.on_done_redirect)
|
|
908
|
+
olderUrl += `&on_done_redirect=${encodeURIComponent(req.query.on_done_redirect)}`;
|
|
919
909
|
res.send(
|
|
920
910
|
mkTable(
|
|
921
911
|
[
|
|
@@ -946,7 +936,10 @@ router.get(
|
|
|
946
936
|
},
|
|
947
937
|
],
|
|
948
938
|
snaps
|
|
949
|
-
)
|
|
939
|
+
) +
|
|
940
|
+
(hasMore
|
|
941
|
+
? `<div class="mt-2 text-center"><button class="btn btn-secondary btn-sm" onclick="ajax_modal('${olderUrl}')">${req.__("Load older snapshots")}</button></div>`
|
|
942
|
+
: "")
|
|
950
943
|
);
|
|
951
944
|
})
|
|
952
945
|
);
|
|
@@ -992,6 +985,69 @@ router.post(
|
|
|
992
985
|
})
|
|
993
986
|
);
|
|
994
987
|
|
|
988
|
+
router.get(
|
|
989
|
+
"/snapshot-restore-full",
|
|
990
|
+
isAdmin,
|
|
991
|
+
error_catcher(async (req, res) => {
|
|
992
|
+
const snapForm = new Form({
|
|
993
|
+
action: "/admin/snapshot-restore-full",
|
|
994
|
+
formStyle: "vert",
|
|
995
|
+
fields: [
|
|
996
|
+
{
|
|
997
|
+
name: "file",
|
|
998
|
+
label: req.__("Snapshot file"),
|
|
999
|
+
class: "form-control",
|
|
1000
|
+
default: true,
|
|
1001
|
+
type: "File",
|
|
1002
|
+
},
|
|
1003
|
+
{
|
|
1004
|
+
name: "configuration",
|
|
1005
|
+
label: req.__("Configuration"),
|
|
1006
|
+
default: true,
|
|
1007
|
+
type: "Bool",
|
|
1008
|
+
},
|
|
1009
|
+
{
|
|
1010
|
+
name: "site_name",
|
|
1011
|
+
label: req.__("Site name"),
|
|
1012
|
+
type: "Bool",
|
|
1013
|
+
default: true,
|
|
1014
|
+
showIf: { configuration: true },
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
name: "base_url",
|
|
1018
|
+
label: req.__("Base URL"),
|
|
1019
|
+
type: "Bool",
|
|
1020
|
+
default: true,
|
|
1021
|
+
showIf: { configuration: true },
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
name: "email_settings",
|
|
1025
|
+
label: req.__("Email settings"),
|
|
1026
|
+
type: "Bool",
|
|
1027
|
+
default: true,
|
|
1028
|
+
showIf: { configuration: true },
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
name: "ssl_settings",
|
|
1032
|
+
label: req.__("SSL settings"),
|
|
1033
|
+
type: "Bool",
|
|
1034
|
+
default: true,
|
|
1035
|
+
showIf: { configuration: true },
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
name: "modules",
|
|
1039
|
+
label: req.__("Modules"),
|
|
1040
|
+
default: true,
|
|
1041
|
+
type: "Bool",
|
|
1042
|
+
},
|
|
1043
|
+
],
|
|
1044
|
+
});
|
|
1045
|
+
res.sendWrap(`Restore snapshot`, {
|
|
1046
|
+
above: [renderForm(snapForm, req.csrfToken())],
|
|
1047
|
+
});
|
|
1048
|
+
})
|
|
1049
|
+
);
|
|
1050
|
+
|
|
995
1051
|
/**
|
|
996
1052
|
* @name post/restore
|
|
997
1053
|
* @function
|
|
@@ -1005,9 +1061,10 @@ router.post(
|
|
|
1005
1061
|
if (req.files?.file?.tempFilePath) {
|
|
1006
1062
|
try {
|
|
1007
1063
|
const pack = JSON.parse(fs.readFileSync(req.files?.file?.tempFilePath));
|
|
1064
|
+
filter_pack(pack, req.body);
|
|
1008
1065
|
await db.withTransaction(async () => {
|
|
1009
1066
|
await install_pack(pack, undefined, (p) =>
|
|
1010
|
-
|
|
1067
|
+
Plugin.loadAndSaveNewPlugin(p)
|
|
1011
1068
|
);
|
|
1012
1069
|
});
|
|
1013
1070
|
await getState().refresh();
|
|
@@ -1647,7 +1704,7 @@ router.post(
|
|
|
1647
1704
|
if (process.send) getState().processSend("RestartServer");
|
|
1648
1705
|
else process.exit(0);
|
|
1649
1706
|
} else {
|
|
1650
|
-
await restart_tenant(loadAllPlugins);
|
|
1707
|
+
await restart_tenant(Plugin.loadAllPlugins);
|
|
1651
1708
|
getState().processSend({
|
|
1652
1709
|
restart_tenant: true,
|
|
1653
1710
|
tenant: db.getTenantSchema(),
|
|
@@ -2028,9 +2085,7 @@ router.post(
|
|
|
2028
2085
|
error_catcher(async (req, res) => {
|
|
2029
2086
|
const newPath = File.get_new_path();
|
|
2030
2087
|
await req.files.file.mv(newPath);
|
|
2031
|
-
const err = await restore(newPath, (p) =>
|
|
2032
|
-
load_plugins.loadAndSaveNewPlugin(p)
|
|
2033
|
-
);
|
|
2088
|
+
const err = await restore(newPath, (p) => Plugin.loadAndSaveNewPlugin(p));
|
|
2034
2089
|
if (err) req.flash("error", err);
|
|
2035
2090
|
else req.flash("success", req.__("Successfully restored backup"));
|
|
2036
2091
|
await getState().refresh_plugins();
|
|
@@ -4549,6 +4604,54 @@ router.post(
|
|
|
4549
4604
|
})
|
|
4550
4605
|
);
|
|
4551
4606
|
|
|
4607
|
+
/**
|
|
4608
|
+
* Validate synced tables: check that all tables reachable via FK from the
|
|
4609
|
+
* selected synced tables are also included in the synced set.
|
|
4610
|
+
*/
|
|
4611
|
+
router.post(
|
|
4612
|
+
"/build-mobile-app/validate-synced-tables",
|
|
4613
|
+
isAdmin,
|
|
4614
|
+
error_catcher(async (req, res) => {
|
|
4615
|
+
const { synchedTables } = req.body || {};
|
|
4616
|
+
if (!Array.isArray(synchedTables) || synchedTables.length === 0) {
|
|
4617
|
+
return res.json({ warnings: [] });
|
|
4618
|
+
}
|
|
4619
|
+
|
|
4620
|
+
const syncedSet = new Set(synchedTables);
|
|
4621
|
+
const visited = new Set();
|
|
4622
|
+
const queue = [...synchedTables];
|
|
4623
|
+
const missing = new Set();
|
|
4624
|
+
|
|
4625
|
+
while (queue.length > 0) {
|
|
4626
|
+
const tblName = queue.shift();
|
|
4627
|
+
if (visited.has(tblName)) continue;
|
|
4628
|
+
visited.add(tblName);
|
|
4629
|
+
|
|
4630
|
+
const table = Table.findOne({ name: tblName });
|
|
4631
|
+
if (!table) continue;
|
|
4632
|
+
|
|
4633
|
+
for (const field of table.getFields()) {
|
|
4634
|
+
if (field.reftable_name && !field.calculated) {
|
|
4635
|
+
const refName = field.reftable_name;
|
|
4636
|
+
if (refName === "users") continue;
|
|
4637
|
+
if (!syncedSet.has(refName)) {
|
|
4638
|
+
missing.add(refName);
|
|
4639
|
+
}
|
|
4640
|
+
if (!visited.has(refName)) {
|
|
4641
|
+
queue.push(refName);
|
|
4642
|
+
}
|
|
4643
|
+
}
|
|
4644
|
+
}
|
|
4645
|
+
}
|
|
4646
|
+
|
|
4647
|
+
const warnings = [...missing].map(
|
|
4648
|
+
(tblName) =>
|
|
4649
|
+
`Table "${tblName}" is referenced by a synced table but is not itself synced.`
|
|
4650
|
+
);
|
|
4651
|
+
res.json({ warnings });
|
|
4652
|
+
})
|
|
4653
|
+
);
|
|
4654
|
+
|
|
4552
4655
|
/**
|
|
4553
4656
|
* Do Build Mobile App
|
|
4554
4657
|
*/
|
|
@@ -5253,7 +5356,8 @@ router.get(
|
|
|
5253
5356
|
declare var console: Console;
|
|
5254
5357
|
function setTimeout(f:Function, timeout?:number)
|
|
5255
5358
|
declare const page_load_tag: string
|
|
5256
|
-
function emit_to_client(message: object, to_user_ids?: number | number[])
|
|
5359
|
+
function emit_to_client(message: object, to_user_ids?: number | number[] | null)
|
|
5360
|
+
function emitEvent(eventType: ${Trigger.when_options.map((o) => `"${o}"`).join(" | ")}, channel?: string, payload?: any)
|
|
5257
5361
|
async function sleep(milliseconds: number)
|
|
5258
5362
|
function interpolate(s: string,
|
|
5259
5363
|
row: Row,
|
|
@@ -5364,7 +5468,7 @@ async function refreshSystemCache(entities?: "codepages" | "tables" | "views" |
|
|
|
5364
5468
|
}
|
|
5365
5469
|
});
|
|
5366
5470
|
};
|
|
5367
|
-
addTsFields(table, "", 2);
|
|
5471
|
+
addTsFields(table, "", req.query.nojoins ? -1 : 2);
|
|
5368
5472
|
ds.push(`declare const table: Table`);
|
|
5369
5473
|
ds.push(`declare const row: {
|
|
5370
5474
|
${tsFields.join("\n")}
|
|
@@ -5632,7 +5736,11 @@ router.post(
|
|
|
5632
5736
|
//ignore
|
|
5633
5737
|
}
|
|
5634
5738
|
try {
|
|
5635
|
-
res.json({
|
|
5739
|
+
res.json({
|
|
5740
|
+
success: true,
|
|
5741
|
+
code: stripTypes(`async () =>{${code}
|
|
5742
|
+
}`),
|
|
5743
|
+
});
|
|
5636
5744
|
} catch (error) {
|
|
5637
5745
|
res.json({ success: false, error: error.message });
|
|
5638
5746
|
}
|
package/routes/api.js
CHANGED
|
@@ -68,13 +68,13 @@ const limitFields = (fields) => (r) => {
|
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
|
-
* Check that user has right to read table data (only read in terms of CRUD)
|
|
71
|
+
* Check that user potentially has right to read table data (only read in terms of CRUD). In case of ownership fields/formula, further checks are needed.
|
|
72
72
|
* @param {object} req httprequest
|
|
73
73
|
* @param {object} user - user based on access token
|
|
74
74
|
* @param {Table} table
|
|
75
75
|
* @returns {boolean}
|
|
76
76
|
*/
|
|
77
|
-
function
|
|
77
|
+
function potentiallyAccessAllowedRead(req, user, table, allow_ownership) {
|
|
78
78
|
const role =
|
|
79
79
|
req.user && req.user.id
|
|
80
80
|
? req.user.role_id
|
|
@@ -91,13 +91,13 @@ function accessAllowedRead(req, user, table, allow_ownership) {
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
|
-
* Check that user has right to write table data (create, update, delete in terms of CRUD)
|
|
94
|
+
* Check that user potentially has right to write table data (create, update, delete in terms of CRUD). In case of ownership fields/formula, further checks are needed.
|
|
95
95
|
* @param {object} req httprequest
|
|
96
96
|
* @param {object} user user based on access token
|
|
97
97
|
* @param {Table} table
|
|
98
98
|
* @returns {boolean}
|
|
99
99
|
*/
|
|
100
|
-
function
|
|
100
|
+
function potentiallyAccessAllowedWrite(req, user, table) {
|
|
101
101
|
const role =
|
|
102
102
|
req.user && req.user.id
|
|
103
103
|
? req.user.role_id
|
|
@@ -278,7 +278,8 @@ router.post(
|
|
|
278
278
|
folder ? File.normalise(folder) : undefined
|
|
279
279
|
);
|
|
280
280
|
const many = Array.isArray(f);
|
|
281
|
-
const formatLocation = (fl) =>
|
|
281
|
+
const formatLocation = (fl) =>
|
|
282
|
+
File.fieldValueFromRelative(fl.path_to_serve);
|
|
282
283
|
const formatUrl = (loc, filename) =>
|
|
283
284
|
File.pathToServeUrl(loc, { filename });
|
|
284
285
|
jsonResp = {
|
|
@@ -288,9 +289,7 @@ router.post(
|
|
|
288
289
|
? f.map((fl) => formatLocation(fl))
|
|
289
290
|
: formatLocation(f),
|
|
290
291
|
url: many
|
|
291
|
-
? f.map((fl) =>
|
|
292
|
-
formatUrl(formatLocation(fl), fl.filename)
|
|
293
|
-
)
|
|
292
|
+
? f.map((fl) => formatUrl(formatLocation(fl), fl.filename))
|
|
294
293
|
: formatUrl(formatLocation(f), f.filename),
|
|
295
294
|
},
|
|
296
295
|
};
|
|
@@ -326,7 +325,8 @@ router.get(
|
|
|
326
325
|
"api-bearer",
|
|
327
326
|
{ session: false },
|
|
328
327
|
async function (err, user, info) {
|
|
329
|
-
if (
|
|
328
|
+
if (potentiallyAccessAllowedRead(req, user, table)) {
|
|
329
|
+
const myReq = { user: user || req.user, __: req.__ };
|
|
330
330
|
const field = table.getFields().find((f) => f.name === fieldName);
|
|
331
331
|
if (!field) {
|
|
332
332
|
res.status(404).json({ error: req.__("Not found") });
|
|
@@ -337,9 +337,9 @@ router.get(
|
|
|
337
337
|
field.is_fkey ||
|
|
338
338
|
(field.type.name === "String" && field.attributes?.options)
|
|
339
339
|
) {
|
|
340
|
-
dvs = await field.distinct_values();
|
|
340
|
+
dvs = await field.distinct_values(myReq);
|
|
341
341
|
} else {
|
|
342
|
-
dvs = await table.distinctValues(fieldName);
|
|
342
|
+
dvs = await table.distinctValues(fieldName, {}, user || req.user);
|
|
343
343
|
}
|
|
344
344
|
res.json({ success: dvs });
|
|
345
345
|
} else {
|
|
@@ -442,7 +442,7 @@ router.get(
|
|
|
442
442
|
["api-bearer", "jwt"],
|
|
443
443
|
{ session: false },
|
|
444
444
|
async function (err, user, info) {
|
|
445
|
-
if (
|
|
445
|
+
if (potentiallyAccessAllowedRead(req, user, table, true)) {
|
|
446
446
|
let rows;
|
|
447
447
|
if (versioncount === "on") {
|
|
448
448
|
const joinOpts = {
|
|
@@ -472,6 +472,7 @@ router.get(
|
|
|
472
472
|
state: req_query,
|
|
473
473
|
table,
|
|
474
474
|
prefix: "a.",
|
|
475
|
+
user: req.user || user,
|
|
475
476
|
});
|
|
476
477
|
const joinFields = {};
|
|
477
478
|
const derefs = Array.isArray(dereference)
|
|
@@ -526,50 +527,56 @@ router.get(
|
|
|
526
527
|
})
|
|
527
528
|
);
|
|
528
529
|
|
|
529
|
-
router.get(
|
|
530
|
-
|
|
531
|
-
|
|
530
|
+
router.get(
|
|
531
|
+
"/:tableName/count",
|
|
532
|
+
error_catcher(async (req, res, next) => {
|
|
533
|
+
const { tableName } = req.params;
|
|
534
|
+
const { approximate, ...req_query } = req.query;
|
|
532
535
|
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
}
|
|
543
|
-
await passport.authenticate(
|
|
544
|
-
["api-bearer", "jwt"],
|
|
545
|
-
{ session: false },
|
|
546
|
-
async function (err, user, info) {
|
|
547
|
-
if (accessAllowedRead(req, user, table)) {
|
|
548
|
-
const tbl_fields = table.getFields();
|
|
549
|
-
readState(req_query, tbl_fields, req);
|
|
550
|
-
const qstate = stateFieldsToWhere({
|
|
551
|
-
fields: tbl_fields,
|
|
552
|
-
approximate: !!approximate,
|
|
553
|
-
state: req_query,
|
|
554
|
-
table,
|
|
555
|
-
prefix: "a.",
|
|
556
|
-
});
|
|
557
|
-
const count = await table.countRows(qstate);
|
|
558
|
-
res.json({ success: count });
|
|
559
|
-
} else {
|
|
560
|
-
getState().log(3, `API get ${table.name} not authorized`);
|
|
561
|
-
res.status(401).json({ error: req.__("Not authorized") });
|
|
562
|
-
}
|
|
536
|
+
const table = Table.findOne(
|
|
537
|
+
strictParseInt(tableName)
|
|
538
|
+
? { id: strictParseInt(tableName) }
|
|
539
|
+
: { name: tableName }
|
|
540
|
+
);
|
|
541
|
+
if (!table) {
|
|
542
|
+
getState().log(3, `API get ${tableName} table not found`);
|
|
543
|
+
res.status(404).json({ error: req.__("Not found") });
|
|
544
|
+
return;
|
|
563
545
|
}
|
|
564
|
-
|
|
565
|
-
|
|
546
|
+
await passport.authenticate(
|
|
547
|
+
["api-bearer", "jwt"],
|
|
548
|
+
{ session: false },
|
|
549
|
+
async function (err, user, info) {
|
|
550
|
+
if (potentiallyAccessAllowedRead(req, user, table)) {
|
|
551
|
+
const tbl_fields = table.getFields();
|
|
552
|
+
readState(req_query, tbl_fields, req);
|
|
553
|
+
const qstate = stateFieldsToWhere({
|
|
554
|
+
fields: tbl_fields,
|
|
555
|
+
approximate: !!approximate,
|
|
556
|
+
state: req_query,
|
|
557
|
+
table,
|
|
558
|
+
prefix: "a.",
|
|
559
|
+
user: req.user || user,
|
|
560
|
+
});
|
|
561
|
+
const count = await table.countRows(qstate);
|
|
562
|
+
res.json({ success: count });
|
|
563
|
+
} else {
|
|
564
|
+
getState().log(3, `API get ${table.name} not authorized`);
|
|
565
|
+
res.status(401).json({ error: req.__("Not authorized") });
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
)(req, res, next);
|
|
569
|
+
})
|
|
570
|
+
);
|
|
566
571
|
|
|
567
572
|
/**
|
|
568
573
|
* Emit Event using POST
|
|
569
574
|
* This is used from the mobile app to send an event to the server.
|
|
570
575
|
*
|
|
571
|
-
*
|
|
572
|
-
*
|
|
576
|
+
* Authenticated users may only emit events listed in the
|
|
577
|
+
* `mobile_emit_allowed_events` config.
|
|
578
|
+
* Public users (role_id=100, no id) may only emit events listed in the
|
|
579
|
+
* `mobile_emit_public_events` config (default: empty — disabled).
|
|
573
580
|
*/
|
|
574
581
|
router.post(
|
|
575
582
|
"/emit-event/:eventname",
|
|
@@ -578,15 +585,44 @@ router.post(
|
|
|
578
585
|
"jwt",
|
|
579
586
|
{ session: false },
|
|
580
587
|
async function (err, user, info) {
|
|
581
|
-
if (user) {
|
|
582
|
-
const { eventname } = req.params;
|
|
583
|
-
const { channel, payload } = req.body;
|
|
584
|
-
Trigger.emitEvent(eventname, channel, user, payload);
|
|
585
|
-
res.json({ success: true });
|
|
586
|
-
} else {
|
|
588
|
+
if (!user) {
|
|
587
589
|
getState().log(3, `API POST emit-event not authorized`);
|
|
588
|
-
res.status(401).json({ error: req.__("Not authorized") });
|
|
590
|
+
return res.status(401).json({ error: req.__("Not authorized") });
|
|
591
|
+
}
|
|
592
|
+
const { eventname } = req.params;
|
|
593
|
+
const { channel, payload } = req.body;
|
|
594
|
+
const state = getState();
|
|
595
|
+
if (!user.id) {
|
|
596
|
+
// public user — only allowed if explicitly configured
|
|
597
|
+
const publicAllowed = state.getConfig(
|
|
598
|
+
"mobile_emit_public_events",
|
|
599
|
+
[]
|
|
600
|
+
);
|
|
601
|
+
if (!publicAllowed.includes(eventname)) {
|
|
602
|
+
state.log(3, `API POST emit-event not authorized for public user`);
|
|
603
|
+
return res.status(401).json({ error: req.__("Not authorized") });
|
|
604
|
+
}
|
|
605
|
+
} else {
|
|
606
|
+
// authenticated user — ReceiveMobileShareData always allowed, rest requires config
|
|
607
|
+
const configAllowed = state.getConfig(
|
|
608
|
+
"mobile_emit_allowed_events",
|
|
609
|
+
[]
|
|
610
|
+
);
|
|
611
|
+
if (
|
|
612
|
+
eventname !== "ReceiveMobileShareData" &&
|
|
613
|
+
!configAllowed.includes(eventname)
|
|
614
|
+
) {
|
|
615
|
+
state.log(
|
|
616
|
+
3,
|
|
617
|
+
`API POST emit-event: event type '${eventname}' not allowed`
|
|
618
|
+
);
|
|
619
|
+
return res
|
|
620
|
+
.status(403)
|
|
621
|
+
.json({ error: req.__("Event type not allowed") });
|
|
622
|
+
}
|
|
589
623
|
}
|
|
624
|
+
Trigger.emitEvent(eventname, channel, user, payload);
|
|
625
|
+
res.json({ success: true });
|
|
590
626
|
}
|
|
591
627
|
)(req, res, next);
|
|
592
628
|
})
|
|
@@ -700,7 +736,7 @@ router.post(
|
|
|
700
736
|
"api-bearer",
|
|
701
737
|
{ session: false },
|
|
702
738
|
async function (err, user, info) {
|
|
703
|
-
if (
|
|
739
|
+
if (potentiallyAccessAllowedWrite(req, user, table)) {
|
|
704
740
|
const { _versions, ...row } = req.body || {};
|
|
705
741
|
const fields = table.getFields();
|
|
706
742
|
readState(row, fields, req);
|
|
@@ -754,7 +790,7 @@ router.post(
|
|
|
754
790
|
"api-bearer",
|
|
755
791
|
{ session: false },
|
|
756
792
|
async function (err, user, info) {
|
|
757
|
-
if (
|
|
793
|
+
if (potentiallyAccessAllowedWrite(req, user, table)) {
|
|
758
794
|
try {
|
|
759
795
|
await db.withTransaction(async () => {
|
|
760
796
|
if (id === "undefined") {
|
|
@@ -807,7 +843,7 @@ router.post(
|
|
|
807
843
|
["api-bearer", "jwt"],
|
|
808
844
|
{ session: false },
|
|
809
845
|
async function (err, user, info) {
|
|
810
|
-
if (
|
|
846
|
+
if (potentiallyAccessAllowedWrite(req, user, table)) {
|
|
811
847
|
const { _versions, ...row } = req.body || {};
|
|
812
848
|
const fields = table.getFields();
|
|
813
849
|
readState(row, fields, req);
|
|
@@ -862,7 +898,7 @@ router.delete(
|
|
|
862
898
|
"api-bearer",
|
|
863
899
|
{ session: false },
|
|
864
900
|
async function (err, user, info) {
|
|
865
|
-
if (
|
|
901
|
+
if (potentiallyAccessAllowedWrite(req, user, table)) {
|
|
866
902
|
try {
|
|
867
903
|
//await db.withTransaction(async () => {
|
|
868
904
|
if (id === "undefined") {
|
package/routes/delete.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
const Router = require("express-promise-router");
|
|
8
8
|
|
|
9
|
-
const { error_catcher, is_relative_url } = require("./utils.js");
|
|
9
|
+
const { error_catcher, is_relative_url, safe_redirect } = require("./utils.js");
|
|
10
10
|
const Table = require("@saltcorn/data/models/table");
|
|
11
11
|
const { readState } = require("@saltcorn/data/plugin-helper");
|
|
12
12
|
const {
|
|
@@ -86,10 +86,7 @@ router.post(
|
|
|
86
86
|
}
|
|
87
87
|
if (req.xhr) {
|
|
88
88
|
res.json({ success, ...resultCollector });
|
|
89
|
-
} else
|
|
90
|
-
res.redirect(
|
|
91
|
-
(is_relative_url(redirect) && redirect) || `/list/${table.name}`
|
|
92
|
-
);
|
|
89
|
+
} else safe_redirect(res, redirect, `/list/${table.name}`);
|
|
93
90
|
})
|
|
94
91
|
);
|
|
95
92
|
router.post(
|
package/routes/edit.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
const Router = require("express-promise-router");
|
|
8
8
|
|
|
9
|
-
const { error_catcher, is_relative_url } = require("./utils.js");
|
|
9
|
+
const { error_catcher, is_relative_url, safe_redirect } = require("./utils.js");
|
|
10
10
|
const Table = require("@saltcorn/data/models/table");
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -46,9 +46,6 @@ router.post(
|
|
|
46
46
|
|
|
47
47
|
if (req.xhr) res.send("OK");
|
|
48
48
|
else if (req.get("referer")) res.redirect(req.get("referer"));
|
|
49
|
-
else
|
|
50
|
-
res.redirect(
|
|
51
|
-
(is_relative_url(redirect) && redirect) || `/list/${table.name}`
|
|
52
|
-
);
|
|
49
|
+
else safe_redirect(res, redirect, `/list/${table.name}`);
|
|
53
50
|
})
|
|
54
51
|
);
|