lucid-extension-sdk 0.0.257 → 0.0.259

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -169,12 +169,16 @@ export declare function serializeLucidCardFieldDisplaySettings(settings: LucidCa
169
169
  /** @ignore */
170
170
  export declare function deserializeLucidCardFieldDisplaySettings(settings: SerializedLucidCardFieldDisplaySettings): LucidCardFieldDisplaySettings;
171
171
  /**
172
- * These are the three possible values for the status of a basic card block.
172
+ * These are the six possible values for the status of a basic card block.
173
+ * Must be kept in sync with cake/app/webroot/ts/libraries/lucidcards/lucidcarddefaultstatus.ts
173
174
  */
174
175
  export declare enum StatusValues {
176
+ New = "New",
175
177
  Todo = "To Do",
176
178
  InProgress = "In Progress",
177
- Done = "Done"
179
+ Done = "Done",
180
+ NotDoing = "Not Doing",
181
+ Blocked = "Blocked"
178
182
  }
179
183
  export declare enum LucidCardFields {
180
184
  Title = "Title",
@@ -102,13 +102,17 @@ function deserializeLucidCardFieldDisplaySettings(settings) {
102
102
  }
103
103
  exports.deserializeLucidCardFieldDisplaySettings = deserializeLucidCardFieldDisplaySettings;
104
104
  /**
105
- * These are the three possible values for the status of a basic card block.
105
+ * These are the six possible values for the status of a basic card block.
106
+ * Must be kept in sync with cake/app/webroot/ts/libraries/lucidcards/lucidcarddefaultstatus.ts
106
107
  */
107
108
  var StatusValues;
108
109
  (function (StatusValues) {
110
+ StatusValues["New"] = "New";
109
111
  StatusValues["Todo"] = "To Do";
110
112
  StatusValues["InProgress"] = "In Progress";
111
113
  StatusValues["Done"] = "Done";
114
+ StatusValues["NotDoing"] = "Not Doing";
115
+ StatusValues["Blocked"] = "Blocked";
112
116
  })(StatusValues || (exports.StatusValues = StatusValues = {}));
113
117
  var LucidCardFields;
114
118
  (function (LucidCardFields) {
@@ -42,7 +42,8 @@ type SerializedSchemaForApi = {
42
42
  'fieldLabelOverrides'?: SerializedLabelOverrides | undefined;
43
43
  };
44
44
  type serializedPropertiesForApi = {
45
- 'Represents': SemanticCollection[];
45
+ 'Represents'?: SemanticCollection[];
46
+ 'Name'?: string;
46
47
  };
47
48
  export interface SerializedCollectionPatch {
48
49
  'schema'?: SerializedSchemaForApi;
@@ -114,6 +115,8 @@ export interface CollectionPatch {
114
115
  patch: ItemsPatch;
115
116
  /** What the collection implicitly represents **/
116
117
  represents?: SemanticCollection[];
118
+ /** The collection's display name */
119
+ name?: string | undefined;
117
120
  }
118
121
  /** @ignore */
119
122
  export declare function serializeFieldDefinitionForApi(field: FieldDefinition): SerializedFieldDefinitionForApi;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.schemaOKStatus = exports.schemaOutOfSyncStatus = exports.serializeCollectionPatch = exports.serializeFieldDefinitionForApi = exports.serializeItemsPatch = exports.ItemsPatchExhaustive = exports.ItemsPatchInexhaustive = void 0;
4
+ const checks_1 = require("../core/checks");
4
5
  const fieldtypedefinition_1 = require("../core/data/fieldtypedefinition/fieldtypedefinition");
5
6
  const object_1 = require("../core/object");
6
7
  const collectionerrortypes_1 = require("../data/collectionerrortypes");
@@ -72,11 +73,19 @@ function serializeRepresentsAsPropertyForApi(represents) {
72
73
  'Represents': represents, // key needs to match 'Represents' key in cake/app/webroot/ts/property/collection/collectionproperties.ts
73
74
  };
74
75
  }
76
+ function serializeNameAsPropertyForApi(name) {
77
+ return {
78
+ 'Name': name, // key needs to match 'Name' key in cake/app/webroot/ts/property/collection/collectionproperties.ts
79
+ };
80
+ }
75
81
  function serializeCollectionPatch(patch) {
82
+ const representsProperty = patch.represents && serializeRepresentsAsPropertyForApi(patch.represents);
83
+ const nameProperty = (0, checks_1.isString)(patch.name) ? serializeNameAsPropertyForApi(patch.name) : undefined;
84
+ const properties = (representsProperty || nameProperty) && Object.assign(Object.assign({}, representsProperty), nameProperty);
76
85
  return {
77
86
  'schema': patch.schema && serializeSchemaForApi(patch.schema),
78
87
  'itemsPatch': serializeItemsPatch(patch.patch),
79
- 'properties': patch.represents && serializeRepresentsAsPropertyForApi(patch.represents),
88
+ 'properties': properties,
80
89
  };
81
90
  }
82
91
  exports.serializeCollectionPatch = serializeCollectionPatch;
@@ -25,7 +25,6 @@ export declare class CardBlockProxy extends BlockProxy {
25
25
  setDescription(description: string): void;
26
26
  /**
27
27
  * @param status The status that you want to set for this card.
28
- * This can be one of three values: "To Do", "In Progress", or "Done".
29
28
  */
30
29
  setStatus(status: StatusValues): void;
31
30
  /**
@@ -50,7 +50,6 @@ class CardBlockProxy extends blockproxy_1.BlockProxy {
50
50
  }
51
51
  /**
52
52
  * @param status The status that you want to set for this card.
53
- * This can be one of three values: "To Do", "In Progress", or "Done".
54
53
  */
55
54
  setStatus(status) {
56
55
  const settings = this.getSettings();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-extension-sdk",
3
- "version": "0.0.257",
3
+ "version": "0.0.259",
4
4
  "description": "Utility classes for writing Lucid Software editor extensions",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",