lucid-extension-sdk
Advanced tools
Comparing version 0.0.237 to 0.0.238
@@ -0,1 +1,2 @@ | ||
import { SemanticCollection } from '../core/data/datasource/semanticcollection'; | ||
import { UpstreamPatchType } from '../core/data/datasource/upstreampatchtype'; | ||
@@ -43,5 +44,9 @@ import { SerializedFieldTypeDefinition } from '../core/data/fieldtypedefinition/fieldtypedefinition'; | ||
}; | ||
type serializedPropertiesForApi = { | ||
'Represents': SemanticCollection[]; | ||
}; | ||
export interface SerializedCollectionPatch { | ||
'schema'?: SerializedSchemaForApi; | ||
'itemsPatch': SerializedItemsPatch; | ||
'properties'?: serializedPropertiesForApi; | ||
} | ||
@@ -109,2 +114,4 @@ export declare class ItemsPatchInexhaustive { | ||
patch: ItemsPatch; | ||
/** What the collection implicitly represents **/ | ||
represents?: SemanticCollection[]; | ||
} | ||
@@ -111,0 +118,0 @@ /** @ignore */ |
@@ -71,2 +71,7 @@ "use strict"; | ||
} | ||
function serializeRepresentsAsPropertyForApi(represents) { | ||
return { | ||
'Represents': represents, // key needs to match 'Represents' key in cake/app/webroot/ts/property/collection/collectionproperties.ts | ||
}; | ||
} | ||
function serializeCollectionPatch(patch) { | ||
@@ -76,2 +81,3 @@ return { | ||
'itemsPatch': serializeItemsPatch(patch.patch), | ||
'properties': patch.represents && serializeRepresentsAsPropertyForApi(patch.represents), | ||
}; | ||
@@ -78,0 +84,0 @@ } |
{ | ||
"name": "lucid-extension-sdk", | ||
"version": "0.0.237", | ||
"version": "0.0.238", | ||
"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
733813
286
17022