sitecoredxg-serialization
Version:
Node.js module for SitecoreDXG that provides serialization and deserialization functionalities to read and parse Rainbow (Unicorn) YAML files and to serialize and deserialize parsed data to/from circular JSON
72 lines (54 loc) • 2.77 kB
JavaScript
#!/usr/local/env node
/*
* Copyright (c) 2018 Zachary Kniebel. All rights reserved.
*
* NOTICE: All information contained herein is, and remains the
* property of Zachary Kniebel. The intellectual and technical
* concepts contained herein are proprietary to Zachary Kniebel and
* may be covered by U.S. and Foreign Patents, patents in process,
* and are protected by trade secret or copyright law. Dissemination
* of this information or reproduction of this material is strictly
* forbidden unless prior written permission is obtained from Zachary
* Kniebel (contact@zacharykniebel.com).
*
*/
/**
* TEMPLATE IDS
*/
const FOLDER_TEMPLATE_ID = "a87a00b1-e6db-45ab-8b54-636fec3b5523";
const TEMPLATE_FOLDER_TEMPLATE_ID = "0437fee2-44c9-46a6-abe9-28858d9fee8c";
const TEMPLATE_TEMPLATE_ID = "ab86861a-6030-46c5-b394-e8f99e8b87db";
const TEMPLATE_SECTION_TEMPLATE_ID = "e269fbb5-3750-427a-9149-7aa950b49301";
const TEMPLATE_FIELD_TEMPLATE_ID = "455a3e98-a627-4b40-8035-e683a0331ac7";
/**
* FIELD IDS
*/
const TEMPLATE_FIELD_TITLE_FIELD_ID = "19a69332-a23e-4e70-8d16-b2640cb24cc8";
const TEMPLATE_FIELD_TYPE_FIELD_ID = "ab162cc0-dc80-4abf-8871-998ee5d7ba32";
const TEMPLATE_FIELD_SORTORDER_FIELD_ID = "ba3f86a2-4a1c-4d78-b63d-91c2779c1b5e";
const TEMPLATE_FIELD_SOURCE_FIELD_ID = "1eb8ae32-e190-44a6-968d-ed904c794ebf";
const TEMPLATE_FIELD_SHARED_FIELD_ID = "be351a73-fcb0-4213-93fa-c302d8ab4f51";
const TEMPLATE_FIELD_UNVERSIONED_FIELD_ID = "39847666-389d-409b-95bd-f2016f11eed5";
const TEMPLATE_BASE_TEMPLATE_FIELD_ID = "12c33f3f-86c5-43a5-aeb4-5598cec45116";
/**
* PATHS
*/
const TEMPLATES_ROOT_PATH = "/sitecore/templates";
const TEMPLATES_BRANCHES_ROOT_PATH = "/sitecore/templates/Branches";
/**
* EXPORTS
*/
exports.FOLDER_TEMPLATE_ID = FOLDER_TEMPLATE_ID;
exports.TEMPLATE_FOLDER_TEMPLATE_ID = TEMPLATE_FOLDER_TEMPLATE_ID;
exports.TEMPLATE_TEMPLATE_ID = TEMPLATE_TEMPLATE_ID;
exports.TEMPLATE_SECTION_TEMPLATE_ID = TEMPLATE_SECTION_TEMPLATE_ID;
exports.TEMPLATE_FIELD_TEMPLATE_ID = TEMPLATE_FIELD_TEMPLATE_ID;
exports.TEMPLATE_FIELD_TITLE_FIELD_ID = TEMPLATE_FIELD_TITLE_FIELD_ID;
exports.TEMPLATE_FIELD_TYPE_FIELD_ID = TEMPLATE_FIELD_TYPE_FIELD_ID;
exports.TEMPLATE_FIELD_SORTORDER_FIELD_ID = TEMPLATE_FIELD_SORTORDER_FIELD_ID;
exports.TEMPLATE_FIELD_SOURCE_FIELD_ID = TEMPLATE_FIELD_SOURCE_FIELD_ID;
exports.TEMPLATE_FIELD_SHARED_FIELD_ID = TEMPLATE_FIELD_SHARED_FIELD_ID;
exports.TEMPLATE_FIELD_UNVERSIONED_FIELD_ID = TEMPLATE_FIELD_UNVERSIONED_FIELD_ID;
exports.TEMPLATE_BASE_TEMPLATE_FIELD_ID = TEMPLATE_BASE_TEMPLATE_FIELD_ID;
exports.TEMPLATES_ROOT_PATH = TEMPLATES_ROOT_PATH;
exports.TEMPLATES_BRANCHES_ROOT_PATH = TEMPLATES_BRANCHES_ROOT_PATH;