All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ml-modules.root.data-hub.5.impl.consts.mjs Maven / Gradle / Ivy

There is a newer version: 6.1.1
Show newest version
/**
  Copyright (c) 2021 MarkLogic Corporation

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
*/

const FLOW_COLLECTION = "http://marklogic.com/data-hub/flow";
const CONCEPT_COLLECTION = "http://marklogic.com/data-hub/concept";
const DRAFT_CONCEPT_COLLECTION = `${CONCEPT_COLLECTION}/draft`;
const ENTITY_MODEL_COLLECTION = "http://marklogic.com/entity-services/models";
const DRAFT_ENTITY_MODEL_COLLECTION = `${ENTITY_MODEL_COLLECTION}/draft`;
const STEP_DEFINITION_COLLECTION = "http://marklogic.com/data-hub/step-definition";
const STEP_COLLECTION = "http://marklogic.com/data-hub/steps";
const ENTITY_MODEL_UI_CONFIG_COLLECTION = "http://marklogic.com/hub-central/ui-config";

export default {
    XQUERY: "xqy",
    JAVASCRIPT: "sjs",
    XML: "xml",
    JSON: "json",
    BINARY: "binary",
    TEXT: 'text',
    DEFAULT_FORMAT: "json",

    //predefined functions, may want to break this out soon
    CURRENT_DATE_TIME: "currentDateTime",
    CURRENT_USER: "currentUser",

    //predefined metadata may want to break this out soon
    CREATED_ON: "datahubCreatedOn",
    CREATED_BY: "datahubCreatedBy",

    CREATED_IN_FLOW: "datahubCreatedInFlow",
    CREATED_BY_STEP: "datahubCreatedByStep",
    RAN_BY_STEPS: "datahubRanBySteps",

    CREATED_BY_JOB: "datahubCreatedByJob",

    PROPERTY_KEY_MAP: new Map([
        ["currentDateTime", "currentDateTime"],
        ["createdOn", "currentDateTime"],
        ["datahubCreatedOn", "currentDateTime"],
        ["currentUser", "currentUser"],
        ["createdBy", "currentUser"],
        ["datahubCreatedBy", "currentUser"]
    ]),

    DATA_HUB_COMMON_ROLE: "data-hub-common",
    DATA_HUB_COMMON_WRITER_ROLE: "data-hub-common-writer",
    DATA_HUB_OPERATOR_ROLE: "data-hub-operator",
    DATA_HUB_DEVELOPER_ROLE: "data-hub-developer",
    DATA_HUB_MODULE_READER_ROLE: "data-hub-module-reader",
    DATA_HUB_MODULE_WRITER_ROLE: "data-hub-module-writer",
    DATA_HUB_FLOW_READ_ROLE: "data-hub-flow-reader",
    DATA_HUB_FLOW_WRITE_ROLE: "data-hub-flow-writer",
    DATA_HUB_LOAD_DATA_READ_ROLE: "data-hub-ingestion-reader",
    DATA_HUB_LOAD_DATA_WRITE_ROLE: "data-hub-ingestion-writer",
    DATA_HUB_MAPPING_READ_ROLE: "data-hub-mapping-reader",
    DATA_HUB_MAPPING_WRITE_ROLE: "data-hub-mapping-writer",
    DATA_HUB_MATCHING_READ_ROLE: "data-hub-match-merge-reader",
    DATA_HUB_MATCHING_WRITE_ROLE: "data-hub-match-merge-writer",
    DATA_HUB_CUSTOM_READ_ROLE: "data-hub-custom-reader",
    DATA_HUB_CUSTOM_WRITE_ROLE: "data-hub-custom-writer",
    DATA_HUB_STEP_DEFINITION_READ_ROLE: "data-hub-step-definition-reader",
    DATA_HUB_STEP_DEFINITION_WRITE_ROLE: "data-hub-step-definition-writer",

    HUB_ARTIFACT_COLLECTION: "hub-core-artifact",

    FLOW_COLLECTION,
    CONCEPT_COLLECTION,
    DRAFT_CONCEPT_COLLECTION,
    ENTITY_MODEL_COLLECTION,
    DRAFT_ENTITY_MODEL_COLLECTION,
    STEP_DEFINITION_COLLECTION,
    STEP_COLLECTION,
    ENTITY_MODEL_UI_CONFIG_COLLECTION,

    USER_ARTIFACT_COLLECTIONS: [
        FLOW_COLLECTION,
        CONCEPT_COLLECTION,
        ENTITY_MODEL_COLLECTION,
        STEP_DEFINITION_COLLECTION,
        STEP_COLLECTION,
        ENTITY_MODEL_UI_CONFIG_COLLECTION
    ],

    PROVENANCE_OFF: "off",
    PROVENANCE_COARSE: "coarse",
    PROVENANCE_FINE: "fine",

    // Define all DH trace events here
    TRACE_STEP: "hub-step",
    TRACE_FLOW: "hub-flow",
    TRACE_FLOW_DEBUG: "hub-flow-debug",
    TRACE_MAPPING: "hub-mapping",
    TRACE_ENTITY: "hub-entity",
    TRACE_CONCEPT: "hub-concept",
    TRACE_ENTITY_DEBUG: "hub-entity-debug",
    TRACE_MAPPING_DEBUG: "hub-mapping-debug",
    TRACE_MATCHING: "hub-matching",
    TRACE_MATCHING_DEBUG: "hub-matching-debug",
    TRACE_MERGING: "hub-merging",
    TRACE_MERGING_DEBUG: "hub-merging-debug",
    TRACE_GRAPH: "hub-graph",
    TRACE_GRAPH_DEBUG: "hub-graph-debug",
    TRACE_CORE: "hub-core",
    TRACE_CORE_DEBUG: "hub-code-debug"
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy