@opencxh/domain 1.227.0 → 1.228.0

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.
@@ -170,6 +170,15 @@ export interface WorkItem {
170
170
  /** {@link WorkResolution.key}. Only meaningful when the status falls in category `done`. */
171
171
  resolution?: string;
172
172
  parentId?: string;
173
+ /**
174
+ * The id of the parent **at the source**, for an imported item.
175
+ *
176
+ * Kept next to `parentId` because the two do not arrive together: a subtask can land before its
177
+ * parent does — a page is ordered by "last changed", not by hierarchy — and then there is no
178
+ * local id to point at yet. Storing what the source said is what lets the parent's own landing
179
+ * adopt it afterwards, instead of leaving a subtask flat forever.
180
+ */
181
+ parentExternalId?: string;
173
182
  /**
174
183
  * The scopeKeys of *all* ancestors, flattened at write time
175
184
  * (`["work_item:program-1", "work_item:project-7"]`, top to bottom).
@@ -271,6 +271,16 @@ export interface FieldDescriptor {
271
271
  value: string;
272
272
  label: string;
273
273
  }[];
274
+ /** `select` only: several at once — Jira's labels, a multi-select custom field. */
275
+ multiValued?: boolean;
276
+ /**
277
+ * What the record holds now, in the same vocabulary as {@link FieldDescriptor.options}.
278
+ *
279
+ * Here and not in {@link ConnectorGetResponse.extra} because this is the *editable* view: an
280
+ * editor has to start from the current value, and a display string cannot be edited back into
281
+ * an option id. A connector that only wants to show something uses `extra`.
282
+ */
283
+ value?: unknown;
274
284
  required?: boolean;
275
285
  /** Shown, never sent. A vendor field a person may read but not change. */
276
286
  readOnly?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencxh/domain",
3
- "version": "1.227.0",
3
+ "version": "1.228.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",