gdc-sdk-node-ts 2.4.8 → 2.4.9

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.
@@ -43,10 +43,15 @@ export type DigitalTwinMaterializationInput = {
43
43
  pollOptions?: PollOptions;
44
44
  };
45
45
  /** Ledger-safe employee-defined marker attached to a research working copy. */
46
- export type DigitalTwinResearchTag = Required<Pick<MetaTagCoding, 'system' | 'code'>> & Pick<MetaTagCoding, 'version' | 'userSelected'> & {
46
+ export type DigitalTwinResearchTag = Required<Pick<MetaTagCoding, 'system' | 'code' | 'userSelected'>> & Pick<MetaTagCoding, 'version'> & {
47
47
  /** Stable position/name for the tag in the Composition metadata. */
48
48
  id?: string;
49
49
  };
50
+ /**
51
+ * Tag chosen by a professional when saving a personal workset.
52
+ * `userSelected` is intentionally absent: the SDK persists it as `true`.
53
+ */
54
+ export type DigitalTwinWorksetTagInput = Omit<DigitalTwinResearchTag, 'userSelected'>;
50
55
  /**
51
56
  * Saves a researcher-owned Composition working selection for one twin.
52
57
  *
@@ -58,7 +63,7 @@ export type DigitalTwinSelectionInput = {
58
63
  accessToken?: string;
59
64
  twinSubjectId: string;
60
65
  section: string;
61
- tags: readonly DigitalTwinResearchTag[];
66
+ tags: readonly DigitalTwinWorksetTagInput[];
62
67
  /**
63
68
  * Operational hosted employee DID. High-level callers should omit this:
64
69
  * `DigitalTwinSdk` binds it to the authenticated actor session.
@@ -36,8 +36,8 @@ function normalizeResearchTags(tags) {
36
36
  id: String(tag.id || `Composition.meta.tag[${index}]`).trim(),
37
37
  system,
38
38
  code,
39
+ userSelected: true,
39
40
  ...(tag.version ? { version: String(tag.version) } : {}),
40
- ...(typeof tag.userSelected === 'boolean' ? { userSelected: tag.userSelected } : {}),
41
41
  };
42
42
  });
43
43
  if (new Set(normalized.map((tag) => tag.id)).size !== normalized.length) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdc-sdk-node-ts",
3
- "version": "2.4.8",
3
+ "version": "2.4.9",
4
4
  "description": "Next-generation Node runtime package for the GDC SDK family",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Antifraud Services Inc.",