Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/graphql / dist / src / graphql-modules / studio / schema / Studio.graphql.js
Size: Mime:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const apollo_server_1 = require("apollo-server");
/**
 * @note - this contains HomePage + Catalog
 * @example - User.graphql contains RegisterUser + GetProfile + ...
 */
exports.default = apollo_server_1.gql `
  type MarketingPage {
    index: Int
    pageId: String
    pageName: String
    layoutType: String
    dimensions: Dimension
    views: [PageViews]

    # should flatten this... later...
    gridLayout: GridLayout
  }
  type PageViews {
    cellId: String
    widget: Widget
  }
  type Dimension {
    width: Int
    height: Int
  }
  type GridLayout {
    properties: Properties
    cells: [Cells]
  }
  type Properties {
    columns: Int
    gutterSize: Int
    margin: Int
    padding: Int
  }
  type Cells {
    index: Int
    cellId: String
    cellNumber: Int
    properties: GridCellProperties
  }
  type GridCellProperties {
    columns: Int
    hidden: Boolean
  }
  type Widget {
    widgetId: String
    pageId: String
    componentName: String
    properties: [WidgetProperties]
  }

  # String, Boolean, Int
  scalar Primitive

  type WidgetProperties {
    # incorrect currently
    # idx: String

    # generic
    # title: String
    # buttonLabel: String
    # logo: String
    # # used but yeah meh
    # layoutHeight: Int
    # layoutWidth: Int
    # backgroundImage: String

    label: String
    value: String
  }
  type HomePage {
    pages: [Pages]
    views: [CatalogViews]
    width: Int
    height: Int
  }
  type Pages {
    id: Int
    name: String
    url: String
  }
  type CatalogViews {
    viewId: Int
    viewName: String
    width: String
    height: String
    defaultView: Boolean
  }

  #HasStudioPage typings
  type HasStudioPage {
    hasPage: Boolean
  }
`;
//# sourceMappingURL=Studio.graphql.js.map