UNPKG

@sitecore/sc-contenthub-webclient-sdk

Version:

Sitecore Content Hub WebClient SDK.

175 lines 5.93 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SETTING = exports.COPY_ENTITY = exports.UPLOAD_FINALIZE = exports.UPLOAD = exports.ALL_FACETS = exports.SEARCH = exports.PAGE_BY_ID = exports.PAGE_BY_IDENTIFIER = exports.AGGREGATES = exports.RESET_PASSWORD = exports.SET_USER_PASSWORD = exports.EXECUTE_SCRIPT = exports.PACKAGE = exports.DOWNLOAD_ORDER_BY_ID = exports.SEND_NOTIFICATION = exports.SEND_CONFIRMATION_MAIL = exports.COMMANDS = exports.EXPLAIN_USER_PERMISSIONS_FOR_ENTITY = exports.PERMISSIONS_FOR_ENTITY = exports.FETCH_JOB_BY_ID = exports.FETCH_JOBS = exports.ENTITY_DEFINITION_BY_ID = exports.ENTITY_DEFINITION_BY_NAME_V2 = exports.ENTITY_DEFINITION_BY_NAME = exports.ENTITY_DEFINITIONS = exports.POLICY_BY_ID = exports.ENTITY_RELATION_BY_NAME = exports.ENTITY_BY_IDENTIFIER = exports.ENTITY_BY_ID = exports.ENTITIES = exports.DATA_SOURCE_BY_NAME = exports.DATA_SOURCES = exports.SEARCH_AFTER = exports.SCROLL = exports.QUERY = exports.EXTENSION_DATA_KEYS = exports.HEADERS = exports.API_ROOT = void 0; exports.API_ROOT = "/api"; exports.HEADERS = Object.freeze({ apiVersion: "X-ApiVersion", minimalSchema: "minimalSchema", location: "Location", }); exports.EXTENSION_DATA_KEYS = Object.freeze({ minimalSchema: "minimal_schema_list", }); exports.QUERY = Object.freeze({ templateName: "entities_by_query", }); exports.SCROLL = Object.freeze({ templateName: "entities_by_scroll", }); exports.SEARCH_AFTER = Object.freeze({ templateName: "entities_by_SearchAfter", }); exports.DATA_SOURCES = Object.freeze({ templateName: "datasources", }); exports.DATA_SOURCE_BY_NAME = Object.freeze({ templateName: "datasource_by_name", name: "name", }); exports.ENTITIES = Object.freeze({ templateName: "entities", }); exports.ENTITY_BY_ID = Object.freeze({ templateName: "entity_by_id", id: "id", culture: "culture", }); exports.ENTITY_BY_IDENTIFIER = Object.freeze({ templateName: "entity_by_identifier", identifier: "identifier", }); exports.ENTITY_RELATION_BY_NAME = Object.freeze({ templateName: "entity_relation_by_name", id: "id", name: "name", }); exports.POLICY_BY_ID = Object.freeze({ templateName: "policy_by_id", id: "id", }); exports.ENTITY_DEFINITIONS = Object.freeze({ templateName: "entitydefinitions", skip: "skip", take: "take", filter: "filter", definitionsToLoad: "definitionsToLoad", definitionsToLoadByName: "definitionsToLoadByName", definitionsToLoadById: "definitionsToLoadById", viewMode: "viewMode", loadPermissions: "loadPermissions", includeConditionalMembers: "includeConditionalMembers", excludeTaxonomyDefinitions: "excludeTaxonomyDefinitions", excludeSystemOwnedDefinitions: "excludeSystemOwnedDefinitions", excludeLightDefinitions: "excludeLightDefinitions", }); exports.ENTITY_DEFINITION_BY_NAME = Object.freeze({ templateName: "entitydefinition_by_name", name: "name", includeConditionalMembers: "includeConditionalMembers", loadPermissions: "loadPermissions", }); exports.ENTITY_DEFINITION_BY_NAME_V2 = Object.freeze({ templateName: "entitydefinition_by_name_v2", name: "name", includeConditionalMembers: "includeConditionalMembers", loadPermissions: "loadPermissions", }); exports.ENTITY_DEFINITION_BY_ID = Object.freeze({ templateName: "entitydefinition_by_id", id: "id", includeConditionalMembers: "includeConditionalMembers", loadPermissions: "loadPermissions", }); exports.FETCH_JOBS = Object.freeze({ templateName: "fetchjobs", }); exports.FETCH_JOB_BY_ID = Object.freeze({ templateName: "fetchjobs_by_id", id: "id", }); exports.PERMISSIONS_FOR_ENTITY = Object.freeze({ templateName: "permissions_for_entity", id: "id", }); exports.EXPLAIN_USER_PERMISSIONS_FOR_ENTITY = Object.freeze({ templateName: "explain_permissions", id: "id", userId: "userId", }); exports.COMMANDS = Object.freeze({ templateName: "commands", folder: "folder", command: "command", }); exports.SEND_CONFIRMATION_MAIL = Object.freeze({ templateName: "send_confirmation_email", userId: "userId", }); exports.SEND_NOTIFICATION = Object.freeze({ templateName: "send_notification", type: "type", }); exports.DOWNLOAD_ORDER_BY_ID = Object.freeze({ templateName: "download_orders_by_id", id: "id", }); exports.PACKAGE = Object.freeze({ templateName: "package", }); exports.EXECUTE_SCRIPT = Object.freeze({ templateName: "execute_script", identifier: "identifier", }); exports.SET_USER_PASSWORD = Object.freeze({ templateName: "set_user_password", userId: "userId", }); exports.RESET_PASSWORD = Object.freeze({ templateName: "reset_password", userId: "userId", }); exports.AGGREGATES = Object.freeze({ templateName: "aggregates", name: "name", id: "id", culture: "culture", loadPermissions: "loadPermissions", loadOptionLists: "loadOptionLists", loadSettings: "loadSettings", loadDefinitions: "loadDefinitions", loadEntities: "loadEntities", }); exports.PAGE_BY_IDENTIFIER = Object.freeze({ templateName: "page_by_identifier", identifier: "identifier", culture: "culture", entityId: "entityId", }); exports.PAGE_BY_ID = Object.freeze({ templateName: "page_by_id", id: "id", culture: "culture", entityId: "entityId", }); exports.SEARCH = Object.freeze({ templateName: "search", }); exports.ALL_FACETS = Object.freeze({ templateName: "allfacets", }); exports.UPLOAD = Object.freeze({ templateName: "upload", }); exports.UPLOAD_FINALIZE = Object.freeze({ templateName: "upload_finalize", }); exports.COPY_ENTITY = Object.freeze({ templateName: "copy", id: "id", }); exports.SETTING = Object.freeze({ templateName: "setting_by_name", category: "category", name: "name", }); //# sourceMappingURL=api.js.map