@api-client/core 0.18.52 → 0.18.53
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.
- package/build/src/amf/definitions/Shapes.d.ts +1 -1
- package/build/src/amf/definitions/Shapes.js.map +1 -1
- package/build/src/modeling/Semantics.d.ts +12 -2
- package/build/src/modeling/Semantics.d.ts.map +1 -1
- package/build/src/modeling/Semantics.js +24 -1
- package/build/src/modeling/Semantics.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/data/models/example-generator-api.json +16 -16
- package/package.json +1 -1
- package/src/amf/definitions/Shapes.ts +1 -1
- package/src/modeling/Semantics.ts +24 -1
|
@@ -42068,10 +42068,10 @@
|
|
|
42068
42068
|
"@id": "#194"
|
|
42069
42069
|
},
|
|
42070
42070
|
{
|
|
42071
|
-
"@id": "#
|
|
42071
|
+
"@id": "#197"
|
|
42072
42072
|
},
|
|
42073
42073
|
{
|
|
42074
|
-
"@id": "#
|
|
42074
|
+
"@id": "#200"
|
|
42075
42075
|
},
|
|
42076
42076
|
{
|
|
42077
42077
|
"@id": "#203"
|
|
@@ -42810,9 +42810,6 @@
|
|
|
42810
42810
|
"@id": "#219"
|
|
42811
42811
|
},
|
|
42812
42812
|
{
|
|
42813
|
-
"@id": "#219"
|
|
42814
|
-
},
|
|
42815
|
-
{
|
|
42816
42813
|
"@id": "#210"
|
|
42817
42814
|
},
|
|
42818
42815
|
{
|
|
@@ -42820,6 +42817,9 @@
|
|
|
42820
42817
|
},
|
|
42821
42818
|
{
|
|
42822
42819
|
"@id": "#216"
|
|
42820
|
+
},
|
|
42821
|
+
{
|
|
42822
|
+
"@id": "#219"
|
|
42823
42823
|
}
|
|
42824
42824
|
],
|
|
42825
42825
|
"doc:root": false,
|
|
@@ -43478,7 +43478,7 @@
|
|
|
43478
43478
|
"doc:ExternalDomainElement",
|
|
43479
43479
|
"doc:DomainElement"
|
|
43480
43480
|
],
|
|
43481
|
-
"doc:raw": "
|
|
43481
|
+
"doc:raw": "code: '5'\ndescription: 'Limited company'\n",
|
|
43482
43482
|
"core:mediaType": "application/yaml",
|
|
43483
43483
|
"sourcemaps:sources": [
|
|
43484
43484
|
{
|
|
@@ -43499,7 +43499,7 @@
|
|
|
43499
43499
|
"doc:ExternalDomainElement",
|
|
43500
43500
|
"doc:DomainElement"
|
|
43501
43501
|
],
|
|
43502
|
-
"doc:raw": "
|
|
43502
|
+
"doc:raw": "class: '3'\ndescription: '150 - 300'\nnumberOfFte: 5500\nnumberOfEmployees: 5232\n",
|
|
43503
43503
|
"core:mediaType": "application/yaml",
|
|
43504
43504
|
"sourcemaps:sources": [
|
|
43505
43505
|
{
|
|
@@ -44232,7 +44232,7 @@
|
|
|
44232
44232
|
"doc:ExternalDomainElement",
|
|
44233
44233
|
"doc:DomainElement"
|
|
44234
44234
|
],
|
|
44235
|
-
"doc:raw": "type: 'GENERAL'\ncountryDialCode : '+32'\nareaCode : '
|
|
44235
|
+
"doc:raw": "type: 'GENERAL'\ncountryDialCode : '+32'\nareaCode : '22'\nsubscriberNumber: '12.87.00'\nformatted: '+32-(0)22 000000'\n",
|
|
44236
44236
|
"core:mediaType": "application/yaml",
|
|
44237
44237
|
"sourcemaps:sources": [
|
|
44238
44238
|
{
|
|
@@ -44253,7 +44253,7 @@
|
|
|
44253
44253
|
"doc:ExternalDomainElement",
|
|
44254
44254
|
"doc:DomainElement"
|
|
44255
44255
|
],
|
|
44256
|
-
"doc:raw": "
|
|
44256
|
+
"doc:raw": "type: 'GENERAL'\ncountryDialCode : '+32'\nareaCode : '21'\nsubscriberNumber: '12.87.00'\nformatted: '+32-(0)21 302099'\n",
|
|
44257
44257
|
"core:mediaType": "application/yaml",
|
|
44258
44258
|
"sourcemaps:sources": [
|
|
44259
44259
|
{
|
|
@@ -44274,7 +44274,7 @@
|
|
|
44274
44274
|
"doc:ExternalDomainElement",
|
|
44275
44275
|
"doc:DomainElement"
|
|
44276
44276
|
],
|
|
44277
|
-
"doc:raw": "type:
|
|
44277
|
+
"doc:raw": "-\n type: 'GENERAL'\n value: 'info@company.be'\n-\n type: 'IT_DEPT'\n value: 'it-service@company.be'\n",
|
|
44278
44278
|
"core:mediaType": "application/yaml",
|
|
44279
44279
|
"sourcemaps:sources": [
|
|
44280
44280
|
{
|
|
@@ -44295,7 +44295,7 @@
|
|
|
44295
44295
|
"doc:ExternalDomainElement",
|
|
44296
44296
|
"doc:DomainElement"
|
|
44297
44297
|
],
|
|
44298
|
-
"doc:raw": "type:
|
|
44298
|
+
"doc:raw": "type: \"GENERAL\"\nvalue: \"www.company.be\"\n",
|
|
44299
44299
|
"core:mediaType": "application/yaml",
|
|
44300
44300
|
"sourcemaps:sources": [
|
|
44301
44301
|
{
|
|
@@ -44766,12 +44766,12 @@
|
|
|
44766
44766
|
{
|
|
44767
44767
|
"@id": "#199/source-map/lexical/element_0",
|
|
44768
44768
|
"sourcemaps:element": "amf://id#199",
|
|
44769
|
-
"sourcemaps:value": "[(1,0)-(
|
|
44769
|
+
"sourcemaps:value": "[(1,0)-(3,0)]"
|
|
44770
44770
|
},
|
|
44771
44771
|
{
|
|
44772
44772
|
"@id": "#202/source-map/lexical/element_0",
|
|
44773
44773
|
"sourcemaps:element": "amf://id#202",
|
|
44774
|
-
"sourcemaps:value": "[(1,0)-(
|
|
44774
|
+
"sourcemaps:value": "[(1,0)-(5,0)]"
|
|
44775
44775
|
},
|
|
44776
44776
|
{
|
|
44777
44777
|
"@id": "#205/source-map/lexical/element_0",
|
|
@@ -45121,17 +45121,17 @@
|
|
|
45121
45121
|
{
|
|
45122
45122
|
"@id": "#215/source-map/lexical/element_0",
|
|
45123
45123
|
"sourcemaps:element": "amf://id#215",
|
|
45124
|
-
"sourcemaps:value": "[(1,0)-(
|
|
45124
|
+
"sourcemaps:value": "[(1,0)-(6,0)]"
|
|
45125
45125
|
},
|
|
45126
45126
|
{
|
|
45127
45127
|
"@id": "#218/source-map/lexical/element_0",
|
|
45128
45128
|
"sourcemaps:element": "amf://id#218",
|
|
45129
|
-
"sourcemaps:value": "[(1,0)-(
|
|
45129
|
+
"sourcemaps:value": "[(1,0)-(7,0)]"
|
|
45130
45130
|
},
|
|
45131
45131
|
{
|
|
45132
45132
|
"@id": "#221/source-map/lexical/element_0",
|
|
45133
45133
|
"sourcemaps:element": "amf://id#221",
|
|
45134
|
-
"sourcemaps:value": "[(1,0)-(
|
|
45134
|
+
"sourcemaps:value": "[(1,0)-(3,0)]"
|
|
45135
45135
|
},
|
|
45136
45136
|
{
|
|
45137
45137
|
"@id": "#338/source-map/synthesized-field/element_1",
|
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@ export type IShapeUnion =
|
|
|
26
26
|
|
|
27
27
|
export interface IApiAssociationShape {
|
|
28
28
|
/**
|
|
29
|
-
* This is custom property not available in AMF and used with data associations.
|
|
29
|
+
* This is a custom property that not available in the AMF library and is used with data associations.
|
|
30
30
|
*
|
|
31
31
|
* Whether the target entity should be embedded under the property name.
|
|
32
32
|
* When false, this association is just an information that one entity depend on another.
|
|
@@ -71,6 +71,12 @@ export enum SemanticType {
|
|
|
71
71
|
* we may add more automation related to the `title` property in the future.
|
|
72
72
|
*/
|
|
73
73
|
Title = 'Semantic#Title',
|
|
74
|
+
/**
|
|
75
|
+
* A semantic that describes a name of a person or pet. This semantic is used with
|
|
76
|
+
* the `PublicUniqueName` to determine which field is responsible for the slug generation. However,
|
|
77
|
+
* we may add more automation related to the `name` property in the future.
|
|
78
|
+
*/
|
|
79
|
+
Name = 'Semantic#Name',
|
|
74
80
|
/**
|
|
75
81
|
* Designates a Data Property as the `role` of a user within the system.
|
|
76
82
|
* This is used to define the user's permissions and access levels.
|
|
@@ -314,9 +320,13 @@ export enum SemanticOperation {
|
|
|
314
320
|
Update = 'Update',
|
|
315
321
|
Delete = 'Delete',
|
|
316
322
|
/**
|
|
317
|
-
* Special operation for list
|
|
323
|
+
* Special operation for list operations
|
|
318
324
|
*/
|
|
319
325
|
List = 'List',
|
|
326
|
+
/**
|
|
327
|
+
* Special operation for search operations
|
|
328
|
+
*/
|
|
329
|
+
Search = 'Search',
|
|
320
330
|
}
|
|
321
331
|
|
|
322
332
|
/**
|
|
@@ -814,6 +824,19 @@ export const DataSemantics: Record<SemanticType, DataSemantic> = {
|
|
|
814
824
|
operations: [],
|
|
815
825
|
},
|
|
816
826
|
},
|
|
827
|
+
[SemanticType.Name]: {
|
|
828
|
+
id: SemanticType.Name,
|
|
829
|
+
displayName: 'Name',
|
|
830
|
+
scope: SemanticScope.Property,
|
|
831
|
+
description: 'A person or pet name',
|
|
832
|
+
category: SemanticCategory.Content,
|
|
833
|
+
applicableDataTypes: ['string'],
|
|
834
|
+
hasConfig: false,
|
|
835
|
+
runtime: {
|
|
836
|
+
timing: SemanticTiming.None,
|
|
837
|
+
operations: [],
|
|
838
|
+
},
|
|
839
|
+
},
|
|
817
840
|
[SemanticType.Description]: {
|
|
818
841
|
id: SemanticType.Description,
|
|
819
842
|
displayName: 'Description',
|