gdc-common-utils-ts 2.7.4 → 2.7.5

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.
@@ -3,9 +3,6 @@ export declare function buildExampleIpsBundleDocumentRequestFromController(): Re
3
3
  body: Readonly<{
4
4
  data: ReadonlyArray<{
5
5
  type: string;
6
- meta: {
7
- claims: Record<string, unknown>;
8
- };
9
6
  resource: Record<string, unknown>;
10
7
  }>;
11
8
  }>;
@@ -15,9 +12,6 @@ export declare function buildExampleIpsBundleDocumentRequestFromDoctor(): Readon
15
12
  body: Readonly<{
16
13
  data: ReadonlyArray<{
17
14
  type: string;
18
- meta: {
19
- claims: Record<string, unknown>;
20
- };
21
15
  resource: Record<string, unknown>;
22
16
  }>;
23
17
  }>;
@@ -107,9 +107,11 @@ export declare const EXAMPLE_CONSENT_GRANT_RESPONSE: {
107
107
  export declare const EXAMPLE_COMMUNICATION_INGESTION_PAYLOAD: {
108
108
  readonly body: {
109
109
  readonly data: readonly [{
110
- readonly meta: {
111
- readonly claims: {
112
- readonly a: 1;
110
+ readonly resource: {
111
+ readonly meta: {
112
+ readonly claims: {
113
+ readonly a: 1;
114
+ };
113
115
  };
114
116
  };
115
117
  }];
@@ -132,18 +134,18 @@ export declare const EXAMPLE_FAMILY_ORGANIZATION_SEARCH_RESPONSE_BODY: {
132
134
  readonly body: {
133
135
  readonly data: readonly [{
134
136
  readonly type: "Family-search-result-v1.0";
135
- readonly meta: {
136
- readonly claims: {
137
- readonly 'org.schema.FamilyRegistration.status': "already_exists";
138
- readonly 'org.schema.Offer.identifier': "offer-uuid-001";
139
- readonly 'org.schema.Organization.identifier.value': "org-uuid-001";
140
- readonly 'org.schema.Organization.alternateName': "Ana";
141
- readonly 'org.schema.Organization.owner.telephone': "+34600000001";
142
- readonly 'org.schema.Organization.foundingDate': "2010-05-20";
143
- };
144
- };
145
137
  readonly resource: {
146
138
  readonly id: "org-uuid-001";
139
+ readonly meta: {
140
+ readonly claims: {
141
+ readonly 'org.schema.FamilyRegistration.status': "already_exists";
142
+ readonly 'org.schema.Offer.identifier': "offer-uuid-001";
143
+ readonly 'org.schema.Organization.identifier.value': "org-uuid-001";
144
+ readonly 'org.schema.Organization.alternateName': "Ana";
145
+ readonly 'org.schema.Organization.owner.telephone': "+34600000001";
146
+ readonly 'org.schema.Organization.foundingDate': "2010-05-20";
147
+ };
148
+ };
147
149
  };
148
150
  }];
149
151
  };
@@ -70,9 +70,11 @@ export const EXAMPLE_COMMUNICATION_INGESTION_PAYLOAD = {
70
70
  body: {
71
71
  data: [
72
72
  {
73
- meta: {
74
- claims: {
75
- a: 1,
73
+ resource: {
74
+ meta: {
75
+ claims: {
76
+ a: 1,
77
+ },
76
78
  },
77
79
  },
78
80
  },
@@ -105,17 +107,19 @@ export const EXAMPLE_FAMILY_ORGANIZATION_SEARCH_RESPONSE_BODY = {
105
107
  body: {
106
108
  data: [{
107
109
  type: 'Family-search-result-v1.0',
108
- meta: {
109
- claims: {
110
- 'org.schema.FamilyRegistration.status': 'already_exists',
111
- 'org.schema.Offer.identifier': 'offer-uuid-001',
112
- 'org.schema.Organization.identifier.value': 'org-uuid-001',
113
- 'org.schema.Organization.alternateName': EXAMPLE_FAMILY_ORGANIZATION_SEARCH_INPUT.usualname,
114
- 'org.schema.Organization.owner.telephone': EXAMPLE_FAMILY_ORGANIZATION_SEARCH_INPUT.controllerPhone,
115
- 'org.schema.Organization.foundingDate': EXAMPLE_FAMILY_ORGANIZATION_SEARCH_INPUT.birthDate,
110
+ resource: {
111
+ id: 'org-uuid-001',
112
+ meta: {
113
+ claims: {
114
+ 'org.schema.FamilyRegistration.status': 'already_exists',
115
+ 'org.schema.Offer.identifier': 'offer-uuid-001',
116
+ 'org.schema.Organization.identifier.value': 'org-uuid-001',
117
+ 'org.schema.Organization.alternateName': EXAMPLE_FAMILY_ORGANIZATION_SEARCH_INPUT.usualname,
118
+ 'org.schema.Organization.owner.telephone': EXAMPLE_FAMILY_ORGANIZATION_SEARCH_INPUT.controllerPhone,
119
+ 'org.schema.Organization.foundingDate': EXAMPLE_FAMILY_ORGANIZATION_SEARCH_INPUT.birthDate,
120
+ },
116
121
  },
117
122
  },
118
- resource: { id: 'org-uuid-001' },
119
123
  }],
120
124
  },
121
125
  };
@@ -95,29 +95,33 @@ export declare const EXAMPLE_DEVICE_LICENSE_AVAILABLE: Readonly<{
95
95
  }>;
96
96
  export declare const EXAMPLE_LICENSE_LIST_RESPONSE_BODY: Readonly<{
97
97
  readonly data: readonly [{
98
- readonly meta: {
99
- readonly status: "active";
100
- readonly subjectId: "urn:uuid:employee-controller-active-001";
101
- readonly claims: {
102
- readonly '@context': "org.schema";
103
- readonly "org.schema.IndividualProduct.serialNumber": "8a8a5e1b-0d8e-4a7c-8c39-3b8034440001";
104
- readonly "org.schema.IndividualProduct.category": "professional";
105
- readonly "org.schema.IndividualProduct.additionalType": "mobile";
106
- readonly "org.schema.Person.email": "controller@acme.org";
107
- readonly "org.schema.Person.hasOccupation.identifier.value": "ISCO-08|2211";
98
+ readonly resource: {
99
+ readonly meta: {
100
+ readonly status: "active";
101
+ readonly subjectId: "urn:uuid:employee-controller-active-001";
102
+ readonly claims: {
103
+ readonly '@context': "org.schema";
104
+ readonly "org.schema.IndividualProduct.serialNumber": "8a8a5e1b-0d8e-4a7c-8c39-3b8034440001";
105
+ readonly "org.schema.IndividualProduct.category": "professional";
106
+ readonly "org.schema.IndividualProduct.additionalType": "mobile";
107
+ readonly "org.schema.Person.email": "controller@acme.org";
108
+ readonly "org.schema.Person.hasOccupation.identifier.value": "ISCO-08|2211";
109
+ };
108
110
  };
109
111
  };
110
112
  }, {
111
- readonly meta: {
112
- readonly status: "available";
113
- readonly subjectId: "urn:uuid:subject-license-available-001";
114
- readonly claims: {
115
- readonly "org.schema.IndividualProduct.serialNumber": "8a8a5e1b-0d8e-4a7c-8c39-3b8034440009";
116
- readonly '@context': "org.schema";
117
- readonly "org.schema.IndividualProduct.category": "professional";
118
- readonly "org.schema.IndividualProduct.additionalType": "mobile";
119
- readonly "org.schema.Person.email": "controller@acme.org";
120
- readonly "org.schema.Person.hasOccupation.identifier.value": "ISCO-08|2211";
113
+ readonly resource: {
114
+ readonly meta: {
115
+ readonly status: "available";
116
+ readonly subjectId: "urn:uuid:subject-license-available-001";
117
+ readonly claims: {
118
+ readonly "org.schema.IndividualProduct.serialNumber": "8a8a5e1b-0d8e-4a7c-8c39-3b8034440009";
119
+ readonly '@context': "org.schema";
120
+ readonly "org.schema.IndividualProduct.category": "professional";
121
+ readonly "org.schema.IndividualProduct.additionalType": "mobile";
122
+ readonly "org.schema.Person.email": "controller@acme.org";
123
+ readonly "org.schema.Person.hasOccupation.identifier.value": "ISCO-08|2211";
124
+ };
121
125
  };
122
126
  };
123
127
  }];
@@ -130,9 +134,11 @@ export declare const EXAMPLE_LICENSE_ISSUE_RESPONSE_BODY: Readonly<{
130
134
  readonly data: readonly [{
131
135
  readonly type: "License:Issued";
132
136
  readonly id: "ACT-001";
133
- readonly meta: {
134
- readonly claims: {
135
- readonly "org.schema.IndividualProduct.serialNumber": "ACT-001";
137
+ readonly resource: {
138
+ readonly meta: {
139
+ readonly claims: {
140
+ readonly "org.schema.IndividualProduct.serialNumber": "ACT-001";
141
+ };
136
142
  };
137
143
  };
138
144
  }];
@@ -278,16 +284,18 @@ export declare const EXAMPLE_LICENSE_RUNTIME_DEFAULTS: Readonly<{
278
284
  }>;
279
285
  export declare const EXAMPLE_LICENSE_OFFER_RESPONSE_BODY: Readonly<{
280
286
  readonly data: readonly [{
281
- readonly meta: {
282
- readonly claims: {
283
- readonly "org.schema.Offer.identifier": "urn:offer:family-003";
284
- readonly "org.schema.Offer.price": "9.99";
285
- readonly "org.schema.Offer.priceCurrency": "EUR";
286
- readonly "org.schema.Offer.eligibleQuantity.value": 2;
287
- readonly "org.schema.Offer.itemOffered.name": "Family starter";
288
- readonly "org.schema.Offer.itemOffered.sku": "FAM-START";
289
- readonly "org.schema.Offer.acceptedPaymentMethod": "invoice";
290
- readonly "org.schema.Offer.checkoutPageURLTemplate": "https://pay.example/offer-001";
287
+ readonly resource: {
288
+ readonly meta: {
289
+ readonly claims: {
290
+ readonly "org.schema.Offer.identifier": "urn:offer:family-003";
291
+ readonly "org.schema.Offer.price": "9.99";
292
+ readonly "org.schema.Offer.priceCurrency": "EUR";
293
+ readonly "org.schema.Offer.eligibleQuantity.value": 2;
294
+ readonly "org.schema.Offer.itemOffered.name": "Family starter";
295
+ readonly "org.schema.Offer.itemOffered.sku": "FAM-START";
296
+ readonly "org.schema.Offer.acceptedPaymentMethod": "invoice";
297
+ readonly "org.schema.Offer.checkoutPageURLTemplate": "https://pay.example/offer-001";
298
+ };
291
299
  };
292
300
  };
293
301
  }];
@@ -315,46 +323,40 @@ export declare const EXAMPLE_LICENSE_ORDER_RESPONSE_BODY: Readonly<{
315
323
  export declare const EXAMPLE_LICENSE_OFFER_LIST_RESPONSE_BODY: Readonly<{
316
324
  readonly data: readonly [{
317
325
  readonly resource: {
318
- readonly total: 1;
319
- readonly data: readonly [{
320
- readonly id: "urn:offer:family-003";
321
- readonly meta: {
322
- readonly status: "active";
323
- readonly claims: {
324
- readonly "org.schema.Offer.identifier": "urn:offer:family-003";
325
- readonly "org.schema.Offer.price": "9.99";
326
- readonly "org.schema.Offer.priceCurrency": "EUR";
327
- readonly "org.schema.Offer.eligibleQuantity.value": 2;
328
- readonly "org.schema.Offer.itemOffered.name": "Family starter";
329
- readonly "org.schema.Offer.itemOffered.sku": "FAM-START";
330
- readonly "org.schema.Offer.acceptedPaymentMethod": "invoice";
331
- readonly "org.schema.Offer.checkoutPageURLTemplate": "https://pay.example/offer-001";
332
- };
326
+ readonly id: "urn:offer:family-003";
327
+ readonly meta: {
328
+ readonly status: "active";
329
+ readonly claims: {
330
+ readonly "org.schema.Offer.identifier": "urn:offer:family-003";
331
+ readonly "org.schema.Offer.price": "9.99";
332
+ readonly "org.schema.Offer.priceCurrency": "EUR";
333
+ readonly "org.schema.Offer.eligibleQuantity.value": 2;
334
+ readonly "org.schema.Offer.itemOffered.name": "Family starter";
335
+ readonly "org.schema.Offer.itemOffered.sku": "FAM-START";
336
+ readonly "org.schema.Offer.acceptedPaymentMethod": "invoice";
337
+ readonly "org.schema.Offer.checkoutPageURLTemplate": "https://pay.example/offer-001";
333
338
  };
334
- }];
339
+ };
335
340
  };
336
341
  }];
337
342
  }>;
338
343
  export declare const EXAMPLE_LICENSE_ORDER_LIST_RESPONSE_BODY: Readonly<{
339
344
  readonly data: readonly [{
340
345
  readonly resource: {
341
- readonly total: 1;
342
- readonly data: readonly [{
343
- readonly id: "urn:offer:family-003";
344
- readonly meta: {
345
- readonly status: "active";
346
- readonly claims: {
347
- readonly "org.schema.Order.acceptedOffer.identifier": "urn:offer:family-003";
348
- readonly "org.schema.Order.paymentUrl": "https://pay.example/invoice-001";
349
- readonly "org.schema.Order.partOfInvoice": "invoice-001";
350
- readonly "org.schema.Order.paymentMethod": "invoice";
351
- readonly "org.schema.Offer.price": "9.99";
352
- readonly "org.schema.Offer.priceCurrency": "EUR";
353
- readonly "org.schema.Offer.eligibleQuantity.value": string;
354
- readonly "org.schema.IndividualProduct.serialNumber": "ACT-001";
355
- };
346
+ readonly id: "urn:offer:family-003";
347
+ readonly meta: {
348
+ readonly status: "active";
349
+ readonly claims: {
350
+ readonly "org.schema.Order.acceptedOffer.identifier": "urn:offer:family-003";
351
+ readonly "org.schema.Order.paymentUrl": "https://pay.example/invoice-001";
352
+ readonly "org.schema.Order.partOfInvoice": "invoice-001";
353
+ readonly "org.schema.Order.paymentMethod": "invoice";
354
+ readonly "org.schema.Offer.price": "9.99";
355
+ readonly "org.schema.Offer.priceCurrency": "EUR";
356
+ readonly "org.schema.Offer.eligibleQuantity.value": string;
357
+ readonly "org.schema.IndividualProduct.serialNumber": "ACT-001";
356
358
  };
357
- }];
359
+ };
358
360
  };
359
361
  }];
360
362
  }>;
@@ -89,18 +89,18 @@ export const EXAMPLE_DEVICE_LICENSE_AVAILABLE = Object.freeze({
89
89
  export const EXAMPLE_LICENSE_LIST_RESPONSE_BODY = Object.freeze({
90
90
  data: [
91
91
  {
92
- meta: {
93
- status: EXAMPLE_LICENSE_ACTIVE_RECORD.status,
94
- subjectId: EXAMPLE_LICENSE_ACTIVE_RECORD.subjectId,
95
- claims: EXAMPLE_LICENSE_ACTIVE_RECORD.claims,
96
- },
92
+ resource: { meta: {
93
+ status: EXAMPLE_LICENSE_ACTIVE_RECORD.status,
94
+ subjectId: EXAMPLE_LICENSE_ACTIVE_RECORD.subjectId,
95
+ claims: EXAMPLE_LICENSE_ACTIVE_RECORD.claims,
96
+ } },
97
97
  },
98
98
  {
99
- meta: {
100
- status: EXAMPLE_LICENSE_AVAILABLE_RECORD.status,
101
- subjectId: EXAMPLE_LICENSE_AVAILABLE_RECORD.subjectId,
102
- claims: EXAMPLE_LICENSE_AVAILABLE_RECORD.claims,
103
- },
99
+ resource: { meta: {
100
+ status: EXAMPLE_LICENSE_AVAILABLE_RECORD.status,
101
+ subjectId: EXAMPLE_LICENSE_AVAILABLE_RECORD.subjectId,
102
+ claims: EXAMPLE_LICENSE_AVAILABLE_RECORD.claims,
103
+ } },
104
104
  },
105
105
  ],
106
106
  });
@@ -112,9 +112,11 @@ export const EXAMPLE_LICENSE_ISSUE_RESPONSE_BODY = Object.freeze({
112
112
  data: [{
113
113
  type: 'License:Issued',
114
114
  id: EXAMPLE_EMPLOYEE_ACTIVATION_CODE,
115
- meta: {
116
- claims: {
117
- [ClaimsIndividualProductSchemaorg.serialNumber]: EXAMPLE_EMPLOYEE_ACTIVATION_CODE,
115
+ resource: {
116
+ meta: {
117
+ claims: {
118
+ [ClaimsIndividualProductSchemaorg.serialNumber]: EXAMPLE_EMPLOYEE_ACTIVATION_CODE,
119
+ },
118
120
  },
119
121
  },
120
122
  }],
@@ -220,16 +222,18 @@ export const EXAMPLE_LICENSE_RUNTIME_DEFAULTS = Object.freeze({
220
222
  });
221
223
  export const EXAMPLE_LICENSE_OFFER_RESPONSE_BODY = Object.freeze({
222
224
  data: [{
223
- meta: {
224
- claims: {
225
- [ClaimsOfferSchemaorg.identifier]: EXAMPLE_LICENSE_OFFER_ID,
226
- [ClaimsOfferSchemaorg.price]: EXAMPLE_LICENSE_AMOUNT,
227
- [ClaimsOfferSchemaorg.priceCurrency]: EXAMPLE_LICENSE_CURRENCY,
228
- [ClaimsOfferSchemaorg.eligibleQuantityValue]: EXAMPLE_LICENSE_SEAT_UUIDS.length,
229
- [ClaimsOfferSchemaorg.itemOfferedName]: EXAMPLE_LICENSE_PLAN_NAME,
230
- [ClaimsOfferSchemaorg.itemOfferedSku]: EXAMPLE_LICENSE_SKU,
231
- [ClaimsOfferSchemaorg.acceptedPaymentMethod]: EXAMPLE_LICENSE_PAYMENT_METHOD_INVOICE,
232
- [ClaimsOfferSchemaorg.checkoutPageURLTemplate]: EXAMPLE_LICENSE_CHECKOUT_URL,
225
+ resource: {
226
+ meta: {
227
+ claims: {
228
+ [ClaimsOfferSchemaorg.identifier]: EXAMPLE_LICENSE_OFFER_ID,
229
+ [ClaimsOfferSchemaorg.price]: EXAMPLE_LICENSE_AMOUNT,
230
+ [ClaimsOfferSchemaorg.priceCurrency]: EXAMPLE_LICENSE_CURRENCY,
231
+ [ClaimsOfferSchemaorg.eligibleQuantityValue]: EXAMPLE_LICENSE_SEAT_UUIDS.length,
232
+ [ClaimsOfferSchemaorg.itemOfferedName]: EXAMPLE_LICENSE_PLAN_NAME,
233
+ [ClaimsOfferSchemaorg.itemOfferedSku]: EXAMPLE_LICENSE_SKU,
234
+ [ClaimsOfferSchemaorg.acceptedPaymentMethod]: EXAMPLE_LICENSE_PAYMENT_METHOD_INVOICE,
235
+ [ClaimsOfferSchemaorg.checkoutPageURLTemplate]: EXAMPLE_LICENSE_CHECKOUT_URL,
236
+ },
233
237
  },
234
238
  },
235
239
  }],
@@ -257,28 +261,22 @@ export const EXAMPLE_LICENSE_ORDER_RESPONSE_BODY = Object.freeze({
257
261
  export const EXAMPLE_LICENSE_OFFER_LIST_RESPONSE_BODY = Object.freeze({
258
262
  data: [{
259
263
  resource: {
260
- total: 1,
261
- data: [{
262
- id: EXAMPLE_LICENSE_OFFER_ID,
263
- meta: {
264
- status: 'active',
265
- claims: EXAMPLE_LICENSE_OFFER_RESPONSE_BODY.data[0].meta.claims,
266
- },
267
- }],
264
+ id: EXAMPLE_LICENSE_OFFER_ID,
265
+ meta: {
266
+ status: 'active',
267
+ claims: EXAMPLE_LICENSE_OFFER_RESPONSE_BODY.data[0].resource.meta.claims,
268
+ },
268
269
  },
269
270
  }],
270
271
  });
271
272
  export const EXAMPLE_LICENSE_ORDER_LIST_RESPONSE_BODY = Object.freeze({
272
273
  data: [{
273
274
  resource: {
274
- total: 1,
275
- data: [{
276
- id: EXAMPLE_LICENSE_ACCEPTED_OFFER_ID,
277
- meta: {
278
- status: 'active',
279
- claims: EXAMPLE_LICENSE_ORDER_RESPONSE_BODY.body.data[0].resource.meta.claims,
280
- },
281
- }],
275
+ id: EXAMPLE_LICENSE_ACCEPTED_OFFER_ID,
276
+ meta: {
277
+ status: 'active',
278
+ claims: EXAMPLE_LICENSE_ORDER_RESPONSE_BODY.body.data[0].resource.meta.claims,
279
+ },
282
280
  },
283
281
  }],
284
282
  });
@@ -192,9 +192,6 @@ export declare const EXAMPLE_INDIVIDUAL_ORGANIZATION_DISABLE_ENTRY: Readonly<{
192
192
  request: {
193
193
  method: "POST";
194
194
  };
195
- meta: {
196
- claims: import("..").IndividualOrganizationLifecycleClaims;
197
- };
198
195
  resource: {
199
196
  id?: string;
200
197
  meta: {
@@ -233,9 +230,6 @@ export declare const EXAMPLE_INDIVIDUAL_ORGANIZATION_PURGE_ENTRY: Readonly<{
233
230
  request: {
234
231
  method: "POST";
235
232
  };
236
- meta: {
237
- claims: import("..").IndividualOrganizationLifecycleClaims;
238
- };
239
233
  resource: {
240
234
  id?: string;
241
235
  meta: {
@@ -61,15 +61,6 @@ export declare const EXAMPLE_RELATED_PERSON_DISABLE_BUNDLE_ENTRY: {
61
61
  readonly request: {
62
62
  readonly method: "POST";
63
63
  };
64
- readonly meta: {
65
- readonly claims: {
66
- readonly '@context': "org.hl7.fhir.api";
67
- readonly "RelatedPerson.identifier": "rel-001";
68
- readonly "RelatedPerson.patient": string;
69
- readonly "RelatedPerson.telecom": "mailto:parent.guardian@example.org";
70
- readonly "RelatedPerson.relationship": "v3-RoleCode|RESPRSN";
71
- };
72
- };
73
64
  readonly resource: {
74
65
  readonly id: "rel-001";
75
66
  readonly resourceType: string;
@@ -95,15 +86,6 @@ export declare const EXAMPLE_RELATED_PERSON_DISABLE_BUNDLE_PAYLOAD: {
95
86
  readonly request: {
96
87
  readonly method: "POST";
97
88
  };
98
- readonly meta: {
99
- readonly claims: {
100
- readonly '@context': "org.hl7.fhir.api";
101
- readonly "RelatedPerson.identifier": "rel-001";
102
- readonly "RelatedPerson.patient": string;
103
- readonly "RelatedPerson.telecom": "mailto:parent.guardian@example.org";
104
- readonly "RelatedPerson.relationship": "v3-RoleCode|RESPRSN";
105
- };
106
- };
107
89
  readonly resource: {
108
90
  readonly id: "rel-001";
109
91
  readonly resourceType: string;
@@ -136,15 +118,6 @@ export declare const EXAMPLE_RELATED_PERSON_PURGE_BUNDLE_ENTRY: {
136
118
  readonly request: {
137
119
  readonly method: "POST";
138
120
  };
139
- readonly meta: {
140
- readonly claims: {
141
- readonly '@context': "org.hl7.fhir.api";
142
- readonly "RelatedPerson.identifier": "rel-001";
143
- readonly "RelatedPerson.patient": string;
144
- readonly "RelatedPerson.telecom": "mailto:parent.guardian@example.org";
145
- readonly "RelatedPerson.relationship": "v3-RoleCode|RESPRSN";
146
- };
147
- };
148
121
  readonly resource: {
149
122
  readonly id: "rel-001";
150
123
  readonly resourceType: string;
@@ -168,15 +141,6 @@ export declare const EXAMPLE_RELATED_PERSON_PURGE_BUNDLE_PAYLOAD: {
168
141
  readonly request: {
169
142
  readonly method: "POST";
170
143
  };
171
- readonly meta: {
172
- readonly claims: {
173
- readonly '@context': "org.hl7.fhir.api";
174
- readonly "RelatedPerson.identifier": "rel-001";
175
- readonly "RelatedPerson.patient": string;
176
- readonly "RelatedPerson.telecom": "mailto:parent.guardian@example.org";
177
- readonly "RelatedPerson.relationship": "v3-RoleCode|RESPRSN";
178
- };
179
- };
180
144
  readonly resource: {
181
145
  readonly id: "rel-001";
182
146
  readonly resourceType: string;
@@ -61,7 +61,6 @@ export const EXAMPLE_RELATED_PERSON_DISABLE_LIFECYCLE_RESOURCE = createInteroper
61
61
  */
62
62
  export const EXAMPLE_RELATED_PERSON_DISABLE_BUNDLE_ENTRY = {
63
63
  request: { method: InteroperableOperationMethods.Post },
64
- meta: { claims: { ...EXAMPLE_RELATED_PERSON_DISABLE_INPUT.memberClaims } },
65
64
  resource: {
66
65
  ...EXAMPLE_RELATED_PERSON_DISABLE_LIFECYCLE_RESOURCE,
67
66
  id: EXAMPLE_RELATED_PERSON_DISABLE_INPUT.resourceId,
@@ -88,7 +87,6 @@ export const EXAMPLE_RELATED_PERSON_PURGE_LIFECYCLE_RESOURCE = createInteroperab
88
87
  export const EXAMPLE_RELATED_PERSON_PURGE_BUNDLE_ENTRY = {
89
88
  type: EXAMPLE_RELATED_PERSON_PURGE_REQUEST_TYPE,
90
89
  request: { method: InteroperableOperationMethods.Post },
91
- meta: { claims: { ...EXAMPLE_RELATED_PERSON_DISABLE_INPUT.memberClaims } },
92
90
  resource: {
93
91
  ...EXAMPLE_RELATED_PERSON_PURGE_LIFECYCLE_RESOURCE,
94
92
  id: EXAMPLE_RELATED_PERSON_DISABLE_INPUT.resourceId,
@@ -33,9 +33,6 @@ export type BundleDocumentRequestCommunicationPayload = Readonly<{
33
33
  body: Readonly<{
34
34
  data: ReadonlyArray<{
35
35
  type: string;
36
- meta: {
37
- claims: Record<string, unknown>;
38
- };
39
36
  resource: Record<string, unknown>;
40
37
  }>;
41
38
  }>;
@@ -108,7 +108,6 @@ export function buildBundleDocumentRequestCommunicationPayload(input) {
108
108
  data: [
109
109
  {
110
110
  type: BundleDocumentRequestMessageTypes.CommunicationRequestSearchWithReferenceUrl,
111
- meta: { claims },
112
111
  resource,
113
112
  },
114
113
  ],
@@ -200,7 +199,6 @@ export function createIpsSummarySearchDidcommMessage(input) {
200
199
  data: [
201
200
  {
202
201
  type: BundleDocumentRequestMessageTypes.CommunicationRequestSearchWithReferenceUrl,
203
- meta: { claims },
204
202
  resource,
205
203
  },
206
204
  ],
@@ -32,9 +32,6 @@ export function buildDidcommPayloadFromCommunicationClaims(input) {
32
32
  {
33
33
  id: String(claims[CommunicationClaim.Identifier] || input.jti || '').trim(),
34
34
  type: String(input.entryType || CommunicationDidcommEntryTypes.AttachedBundle).trim(),
35
- meta: {
36
- claims,
37
- },
38
35
  resource: communicationResource,
39
36
  },
40
37
  ],
@@ -31,9 +31,6 @@ export type IndividualOrganizationLifecycleDataEntry = Readonly<{
31
31
  request: {
32
32
  method: typeof IndividualOrganizationLifecycleRequestMethods.Post;
33
33
  };
34
- meta: {
35
- claims: IndividualOrganizationLifecycleClaims;
36
- };
37
34
  resource: {
38
35
  id?: string;
39
36
  meta: {
@@ -63,7 +60,7 @@ export type IndividualOrganizationLifecycleEditorState = Readonly<{
63
60
  * - `purge` still goes through the explicit `/_purge` route
64
61
  * - both current routes expect `request.method = POST`
65
62
  * - both use canonical flat `org.schema.Organization.*` claims in
66
- * `meta.claims` and `resource.meta.claims`
63
+ * `resource.meta.claims`
67
64
  */
68
65
  export declare function buildCurrentIndividualOrganizationLifecycleDataEntry(input: IndividualOrganizationLifecycleDataEntryInput): IndividualOrganizationLifecycleDataEntry;
69
66
  /**
@@ -45,7 +45,7 @@ function createLifecycleThreadId(operation) {
45
45
  * - `purge` still goes through the explicit `/_purge` route
46
46
  * - both current routes expect `request.method = POST`
47
47
  * - both use canonical flat `org.schema.Organization.*` claims in
48
- * `meta.claims` and `resource.meta.claims`
48
+ * `resource.meta.claims`
49
49
  */
50
50
  export function buildCurrentIndividualOrganizationLifecycleDataEntry(input) {
51
51
  const claims = cloneClaims(input.claims);
@@ -54,7 +54,6 @@ export function buildCurrentIndividualOrganizationLifecycleDataEntry(input) {
54
54
  request: {
55
55
  method: input.requestMethod || IndividualOrganizationLifecycleRequestMethods.Post,
56
56
  },
57
- meta: { claims },
58
57
  resource: {
59
58
  ...(normalizeText(input.resourceId) ? { id: normalizeText(input.resourceId) } : {}),
60
59
  meta: { claims },
@@ -56,7 +56,6 @@ export declare class LicenseOfferSearchEditor {
56
56
  method: 'POST';
57
57
  };
58
58
  meta: {
59
- claims: LicenseClaims;
60
59
  status?: string;
61
60
  };
62
61
  resource: {
@@ -85,7 +84,6 @@ export declare class LicenseOrderSearchEditor {
85
84
  method: 'POST';
86
85
  };
87
86
  meta: {
88
- claims: LicenseClaims;
89
87
  status?: string;
90
88
  };
91
89
  resource: {
@@ -81,13 +81,7 @@ export class LicenseOfferSearchEditor {
81
81
  return {
82
82
  type: LicenseCommercialSearchEntryType.Offer,
83
83
  request: { method: 'POST' },
84
- meta: {
85
- claims: {
86
- ...claims,
87
- '@type': LicenseCommercialSearchOperation.Offer,
88
- },
89
- ...(this.draft.status ? { status: this.draft.status } : {}),
90
- },
84
+ meta: { ...(this.draft.status ? { status: this.draft.status } : {}) },
91
85
  resource: {
92
86
  meta: {
93
87
  claims: {
@@ -144,13 +138,7 @@ export class LicenseOrderSearchEditor {
144
138
  return {
145
139
  type: LicenseCommercialSearchEntryType.Order,
146
140
  request: { method: 'POST' },
147
- meta: {
148
- claims: {
149
- ...claims,
150
- '@type': LicenseCommercialSearchOperation.Order,
151
- },
152
- ...(this.draft.status ? { status: this.draft.status } : {}),
153
- },
141
+ meta: { ...(this.draft.status ? { status: this.draft.status } : {}) },
154
142
  resource: {
155
143
  meta: {
156
144
  claims: {
@@ -177,7 +165,7 @@ function extractClaims(entry) {
177
165
  const resourceMeta = resource.meta && typeof resource.meta === 'object' ? resource.meta : {};
178
166
  const metaClaims = meta.claims && typeof meta.claims === 'object' ? meta.claims : undefined;
179
167
  const resourceClaims = resourceMeta.claims && typeof resourceMeta.claims === 'object' ? resourceMeta.claims : undefined;
180
- return { ...(resourceClaims || {}), ...(metaClaims || {}) };
168
+ return { ...(metaClaims || {}), ...(resourceClaims || {}) };
181
169
  }
182
170
  /**
183
171
  * Reads normalized offer rows from one GW-style search/list response body.
@@ -188,7 +176,7 @@ export function readLicenseOfferRecords(body) {
188
176
  return {
189
177
  id: normalizeText(entry.id) || normalizeText(claims[ClaimsOfferSchemaorg.identifier]),
190
178
  status: normalizeText(entry.meta?.status),
191
- offer: readLicenseOfferPreviewFromResponseBody({ data: [{ meta: { claims } }] }),
179
+ offer: readLicenseOfferPreviewFromResponseBody({ data: [{ resource: { meta: { claims } } }] }),
192
180
  claims,
193
181
  };
194
182
  });
@@ -203,7 +191,7 @@ export function readLicenseOrderRecords(body) {
203
191
  return {
204
192
  id: normalizeText(entry.id) || normalizeText(claims[ClaimsOrderSchemaorg.acceptedOfferIdentifier]),
205
193
  status: normalizeText(entry.meta?.status),
206
- order: readLicenseOrderSummaryFromResponseBody({ data: [{ meta: { claims } }] }),
194
+ order: readLicenseOrderSummaryFromResponseBody({ data: [{ resource: { meta: { claims } } }] }),
207
195
  claims,
208
196
  };
209
197
  });
@@ -137,7 +137,7 @@ function extractClaims(entry) {
137
137
  const resourceMeta = resource.meta && typeof resource.meta === 'object' ? resource.meta : {};
138
138
  const metaClaims = meta.claims && typeof meta.claims === 'object' ? meta.claims : undefined;
139
139
  const resourceClaims = resourceMeta.claims && typeof resourceMeta.claims === 'object' ? resourceMeta.claims : undefined;
140
- return { ...(resourceClaims || {}), ...(metaClaims || {}) };
140
+ return { ...(metaClaims || {}), ...(resourceClaims || {}) };
141
141
  }
142
142
  function isLicenseListEntry(entry) {
143
143
  const meta = entry.meta && typeof entry.meta === 'object'
@@ -65,7 +65,7 @@ export function extractPrimaryClaims(body) {
65
65
  const firstMeta = asRecord(first.meta) || {};
66
66
  const resource = asRecord(first.resource) || {};
67
67
  const resourceMeta = asRecord(resource.meta) || {};
68
- return asRecord(firstMeta.claims) || asRecord(resourceMeta.claims) || {};
68
+ return asRecord(resourceMeta.claims) || asRecord(firstMeta.claims) || {};
69
69
  }
70
70
  /**
71
71
  * Reads the current public/persisted `Offer.*` claim family from one GW poll
@@ -157,13 +157,17 @@ export declare function buildLicenseIssueEntry(input: LicenseIssueInput): {
157
157
  method: 'POST';
158
158
  };
159
159
  meta: {
160
- claims: LicenseClaims;
161
160
  ownerOrganizationId?: string;
162
161
  subjectDid?: string;
163
162
  subjectId?: string;
164
163
  relatedPersonId?: string;
165
164
  invitationId?: string;
166
165
  };
166
+ resource: {
167
+ meta: {
168
+ claims: LicenseClaims;
169
+ };
170
+ };
167
171
  };
168
172
  /**
169
173
  * Builds canonical schema.org claims for a license purchase / seat-creation
@@ -186,15 +190,19 @@ export declare function buildLicensePurchaseEntry(input: LicensePurchaseInput):
186
190
  method: 'POST';
187
191
  };
188
192
  meta: {
189
- claims: LicenseClaims;
190
193
  ownerOrganizationId?: string;
191
194
  };
195
+ resource: {
196
+ meta: {
197
+ claims: LicenseClaims;
198
+ };
199
+ };
192
200
  };
193
201
  /**
194
202
  * Builds the canonical search envelope for license listing.
195
203
  *
196
204
  * Split of concerns:
197
- * - schema.org-compatible selectors stay in `meta.claims`
205
+ * - schema.org-compatible selectors stay in `resource.meta.claims`
198
206
  * - document lifecycle stays in `meta.status`, mirroring the current
199
207
  * `ConfidentialStorageDoc.status` usage
200
208
  * - `subjectId` remains an explicit side-field until a canonical indexed claim
@@ -206,9 +214,13 @@ export declare function buildLicenseSearchEntry(input: LicenseSearchInput): {
206
214
  method: 'POST';
207
215
  };
208
216
  meta: {
209
- claims: LicenseClaims;
210
217
  status?: LicenseStatus;
211
218
  subjectId?: string;
212
219
  ownerOrganizationId?: string;
213
220
  };
221
+ resource: {
222
+ meta: {
223
+ claims: LicenseClaims;
224
+ };
225
+ };
214
226
  };
@@ -191,14 +191,14 @@ export function buildLicenseIssueClaims(input) {
191
191
  * Builds the canonical batch entry for `License/_issue`.
192
192
  */
193
193
  export function buildLicenseIssueEntry(input) {
194
+ const claims = {
195
+ ...buildLicenseIssueClaims(input),
196
+ '@type': LicenseEntryOperations.Issue,
197
+ };
194
198
  return {
195
199
  type: LicenseEntryTypes.Issue,
196
200
  request: { method: LicenseRequestMethods.Post },
197
201
  meta: {
198
- claims: {
199
- ...buildLicenseIssueClaims(input),
200
- '@type': LicenseEntryOperations.Issue,
201
- },
202
202
  ...(String(input.ownerOrganizationId || '').trim()
203
203
  ? { ownerOrganizationId: String(input.ownerOrganizationId).trim() }
204
204
  : {}),
@@ -215,6 +215,7 @@ export function buildLicenseIssueEntry(input) {
215
215
  ? { invitationId: String(input.invitationId).trim() }
216
216
  : {}),
217
217
  },
218
+ resource: { meta: { claims } },
218
219
  };
219
220
  }
220
221
  /**
@@ -252,25 +253,26 @@ export function buildLicensePurchaseClaims(input) {
252
253
  * request.
253
254
  */
254
255
  export function buildLicensePurchaseEntry(input) {
256
+ const claims = {
257
+ ...buildLicensePurchaseClaims(input),
258
+ '@type': LicenseEntryOperations.Purchase,
259
+ };
255
260
  return {
256
261
  type: LicenseEntryTypes.Purchase,
257
262
  request: { method: LicenseRequestMethods.Post },
258
263
  meta: {
259
- claims: {
260
- ...buildLicensePurchaseClaims(input),
261
- '@type': LicenseEntryOperations.Purchase,
262
- },
263
264
  ...(String(input.ownerOrganizationId || '').trim()
264
265
  ? { ownerOrganizationId: String(input.ownerOrganizationId).trim() }
265
266
  : {}),
266
267
  },
268
+ resource: { meta: { claims } },
267
269
  };
268
270
  }
269
271
  /**
270
272
  * Builds the canonical search envelope for license listing.
271
273
  *
272
274
  * Split of concerns:
273
- * - schema.org-compatible selectors stay in `meta.claims`
275
+ * - schema.org-compatible selectors stay in `resource.meta.claims`
274
276
  * - document lifecycle stays in `meta.status`, mirroring the current
275
277
  * `ConfidentialStorageDoc.status` usage
276
278
  * - `subjectId` remains an explicit side-field until a canonical indexed claim
@@ -300,10 +302,6 @@ export function buildLicenseSearchEntry(input) {
300
302
  type: LicenseEntryTypes.Search,
301
303
  request: { method: LicenseRequestMethods.Post },
302
304
  meta: {
303
- claims: {
304
- ...claims,
305
- '@type': LicenseEntryOperations.Search,
306
- },
307
305
  ...(input.status ? { status: input.status } : {}),
308
306
  ...(typeof input.subjectId === 'string' && input.subjectId.trim()
309
307
  ? { subjectId: input.subjectId.trim() }
@@ -312,5 +310,13 @@ export function buildLicenseSearchEntry(input) {
312
310
  ? { ownerOrganizationId: input.ownerOrganizationId.trim() }
313
311
  : {}),
314
312
  },
313
+ resource: {
314
+ meta: {
315
+ claims: {
316
+ ...claims,
317
+ '@type': LicenseEntryOperations.Search,
318
+ },
319
+ },
320
+ },
315
321
  };
316
322
  }
@@ -16,9 +16,6 @@ export type OrganizationLifecycleDataEntry = Readonly<{
16
16
  request: {
17
17
  method: 'POST';
18
18
  };
19
- meta: {
20
- claims: OrganizationLifecycleClaims;
21
- };
22
19
  resource: {
23
20
  resourceType: 'Organization';
24
21
  meta: {
@@ -147,7 +147,6 @@ export class OrganizationLifecycleEditor {
147
147
  return {
148
148
  type: requestType,
149
149
  request: { method: 'POST' },
150
- meta: { claims },
151
150
  resource: {
152
151
  resourceType: 'Organization',
153
152
  meta: { claims },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdc-common-utils-ts",
3
- "version": "2.7.4",
3
+ "version": "2.7.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },