gdc-common-utils-ts 2.7.2 → 2.7.3

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.
@@ -44,6 +44,7 @@ export declare const EXAMPLE_LICENSE_ISSUE_INPUT: Readonly<{
44
44
  readonly role: "ISCO-08|2211";
45
45
  readonly userClass: "employee";
46
46
  readonly type: "mobile";
47
+ readonly subjectId: "urn:uuid:employee-controller-active-001";
47
48
  }>;
48
49
  export declare const EXAMPLE_LICENSE_PURCHASE_INPUT: Readonly<{
49
50
  readonly quantity: 2;
@@ -41,6 +41,7 @@ export const EXAMPLE_LICENSE_ISSUE_INPUT = Object.freeze({
41
41
  role: EXAMPLE_HEALTHCARE_ACTOR_ROLE_GENERALIST_MEDICAL_PRACTITIONER,
42
42
  userClass: DeviceUserClasses.Employee,
43
43
  type: DeviceAppTypes.Mobile,
44
+ subjectId: EXAMPLE_LICENSE_SUBJECT_ID_ACTIVE,
44
45
  });
45
46
  export const EXAMPLE_LICENSE_PURCHASE_INPUT = Object.freeze({
46
47
  quantity: EXAMPLE_LICENSE_SEAT_UUIDS.length,
@@ -100,6 +100,8 @@ export type LicenseIssueInput = Readonly<{
100
100
  ownerOrganizationId?: string;
101
101
  /** Card/individual DID granted by the invitation after acceptance. */
102
102
  subjectDid?: string;
103
+ /** Technical resource id of the employee/member that consumes the seat. */
104
+ subjectId?: string;
103
105
  /** Existing RelatedPerson/contact selected before the invitation. */
104
106
  relatedPersonId?: string;
105
107
  /** Stable invitation workflow identifier; not the license id or code. */
@@ -158,6 +160,7 @@ export declare function buildLicenseIssueEntry(input: LicenseIssueInput): {
158
160
  claims: LicenseClaims;
159
161
  ownerOrganizationId?: string;
160
162
  subjectDid?: string;
163
+ subjectId?: string;
161
164
  relatedPersonId?: string;
162
165
  invitationId?: string;
163
166
  };
@@ -205,6 +205,9 @@ export function buildLicenseIssueEntry(input) {
205
205
  ...(String(input.subjectDid || '').trim()
206
206
  ? { subjectDid: String(input.subjectDid).trim() }
207
207
  : {}),
208
+ ...(String(input.subjectId || '').trim()
209
+ ? { subjectId: String(input.subjectId).trim() }
210
+ : {}),
208
211
  ...(String(input.relatedPersonId || '').trim()
209
212
  ? { relatedPersonId: String(input.relatedPersonId).trim() }
210
213
  : {}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdc-common-utils-ts",
3
- "version": "2.7.2",
3
+ "version": "2.7.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },