lucid-extension-sdk
Advanced tools
Comparing version 0.0.258 to 0.0.259
@@ -45,3 +45,4 @@ import { SemanticCollection } from '../core/data/datasource/semanticcollection'; | ||
type serializedPropertiesForApi = { | ||
'Represents': SemanticCollection[]; | ||
'Represents'?: SemanticCollection[]; | ||
'Name'?: string; | ||
}; | ||
@@ -118,2 +119,4 @@ export interface SerializedCollectionPatch { | ||
represents?: SemanticCollection[]; | ||
/** The collection's display name */ | ||
name?: string | undefined; | ||
} | ||
@@ -120,0 +123,0 @@ /** @ignore */ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.schemaOKStatus = exports.schemaOutOfSyncStatus = exports.serializeCollectionPatch = exports.serializeFieldDefinitionForApi = exports.serializeItemsPatch = exports.ItemsPatchExhaustive = exports.ItemsPatchInexhaustive = void 0; | ||
const checks_1 = require("../core/checks"); | ||
const fieldtypedefinition_1 = require("../core/data/fieldtypedefinition/fieldtypedefinition"); | ||
@@ -75,7 +76,15 @@ const object_1 = require("../core/object"); | ||
} | ||
function serializeNameAsPropertyForApi(name) { | ||
return { | ||
'Name': name, // key needs to match 'Name' key in cake/app/webroot/ts/property/collection/collectionproperties.ts | ||
}; | ||
} | ||
function serializeCollectionPatch(patch) { | ||
const representsProperty = patch.represents && serializeRepresentsAsPropertyForApi(patch.represents); | ||
const nameProperty = (0, checks_1.isString)(patch.name) ? serializeNameAsPropertyForApi(patch.name) : undefined; | ||
const properties = (representsProperty || nameProperty) && Object.assign(Object.assign({}, representsProperty), nameProperty); | ||
return { | ||
'schema': patch.schema && serializeSchemaForApi(patch.schema), | ||
'itemsPatch': serializeItemsPatch(patch.patch), | ||
'properties': patch.represents && serializeRepresentsAsPropertyForApi(patch.represents), | ||
'properties': properties, | ||
}; | ||
@@ -82,0 +91,0 @@ } |
{ | ||
"name": "lucid-extension-sdk", | ||
"version": "0.0.258", | ||
"version": "0.0.259", | ||
"description": "Utility classes for writing Lucid Software editor extensions", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
750876
17445