@api-client/core 0.14.0 → 0.14.2

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.
Files changed (169) hide show
  1. package/build/src/amf/AmfTypes.d.ts +1 -1
  2. package/build/src/amf/AmfTypes.js +1 -1
  3. package/build/src/amf/AmfTypes.js.map +1 -1
  4. package/build/src/amf/Utils.d.ts +0 -6
  5. package/build/src/amf/Utils.d.ts.map +1 -1
  6. package/build/src/amf/Utils.js +0 -14
  7. package/build/src/amf/Utils.js.map +1 -1
  8. package/build/src/browser.d.ts +2 -1
  9. package/build/src/browser.d.ts.map +1 -1
  10. package/build/src/browser.js +1 -0
  11. package/build/src/browser.js.map +1 -1
  12. package/build/src/index.d.ts +2 -1
  13. package/build/src/index.d.ts.map +1 -1
  14. package/build/src/index.js +1 -0
  15. package/build/src/index.js.map +1 -1
  16. package/build/src/legacy.d.ts +0 -8
  17. package/build/src/legacy.d.ts.map +1 -1
  18. package/build/src/legacy.js +0 -9
  19. package/build/src/legacy.js.map +1 -1
  20. package/build/src/modeling/Bindings.d.ts +1 -1
  21. package/build/src/modeling/Bindings.js.map +1 -1
  22. package/build/src/modeling/DataDomain.js +2 -2
  23. package/build/src/modeling/DataDomain.js.map +1 -1
  24. package/build/src/modeling/DataFormat.d.ts +0 -40
  25. package/build/src/modeling/DataFormat.d.ts.map +1 -1
  26. package/build/src/modeling/DataFormat.js +0 -27
  27. package/build/src/modeling/DataFormat.js.map +1 -1
  28. package/build/src/modeling/DomainAssociation.d.ts +63 -0
  29. package/build/src/modeling/DomainAssociation.d.ts.map +1 -1
  30. package/build/src/modeling/DomainAssociation.js +110 -4
  31. package/build/src/modeling/DomainAssociation.js.map +1 -1
  32. package/build/src/modeling/DomainEntity.d.ts +25 -9
  33. package/build/src/modeling/DomainEntity.d.ts.map +1 -1
  34. package/build/src/modeling/DomainEntity.js +65 -21
  35. package/build/src/modeling/DomainEntity.js.map +1 -1
  36. package/build/src/modeling/DomainFile.d.ts +1 -1
  37. package/build/src/modeling/DomainFile.js +1 -1
  38. package/build/src/modeling/DomainFile.js.map +1 -1
  39. package/build/src/modeling/DomainImpactAnalysis.d.ts +1 -1
  40. package/build/src/modeling/DomainImpactAnalysis.d.ts.map +1 -1
  41. package/build/src/modeling/DomainImpactAnalysis.js +3 -3
  42. package/build/src/modeling/DomainImpactAnalysis.js.map +1 -1
  43. package/build/src/modeling/DomainModel.d.ts +2 -2
  44. package/build/src/modeling/DomainModel.js +2 -2
  45. package/build/src/modeling/DomainModel.js.map +1 -1
  46. package/build/src/modeling/DomainProperty.d.ts +28 -12
  47. package/build/src/modeling/DomainProperty.d.ts.map +1 -1
  48. package/build/src/modeling/DomainProperty.js +61 -26
  49. package/build/src/modeling/DomainProperty.js.map +1 -1
  50. package/build/src/modeling/Semantics.d.ts +117 -0
  51. package/build/src/modeling/Semantics.d.ts.map +1 -0
  52. package/build/src/modeling/Semantics.js +112 -0
  53. package/build/src/modeling/Semantics.js.map +1 -0
  54. package/build/src/models/kinds.d.ts +0 -24
  55. package/build/src/models/kinds.d.ts.map +1 -1
  56. package/build/src/models/kinds.js +0 -24
  57. package/build/src/models/kinds.js.map +1 -1
  58. package/build/src/models/store/data_catalog.d.ts +1 -1
  59. package/build/src/models/store/data_catalog.js.map +1 -1
  60. package/build/tsconfig.tsbuildinfo +1 -1
  61. package/data/models/APIC-187.json +3 -3
  62. package/data/models/APIC-188.json +3 -3
  63. package/data/models/APIC-233.json +1 -1
  64. package/data/models/APIC-391.json +2 -2
  65. package/data/models/APIC-483.json +1 -1
  66. package/data/models/APIC-487.json +1 -1
  67. package/data/models/APIC-655.json +1 -1
  68. package/data/models/APIC-689.json +1 -1
  69. package/data/models/APIC-690.json +5 -5
  70. package/data/models/SE-10469.json +1 -1
  71. package/data/models/SE-13092.json +5 -5
  72. package/data/models/SE-22063.json +12 -2
  73. package/data/models/amf-helper-api.json +154 -14
  74. package/data/models/arc-demo-api.json +95 -15
  75. package/data/models/async-api.json +1 -1
  76. package/data/models/example-generator-api.json +369 -29
  77. package/data/models/expanded-api.json +1 -1
  78. package/data/models/flattened-api.json +1 -1
  79. package/data/models/multiple-servers.json +1 -1
  80. package/data/models/oas-3-api.json +1 -1
  81. package/data/models/oas-date.json +1 -1
  82. package/data/models/oas-types.json +1 -1
  83. package/data/models/oas-unions.json +1 -1
  84. package/data/models/petstore.json +1 -1
  85. package/data/models/raml-date.json +1 -1
  86. package/data/models/recursive.json +1 -1
  87. package/data/models/schema-api.json +62 -2
  88. package/data/models/secured-api.json +16 -16
  89. package/data/models/tracked-to-linked.json +4 -4
  90. package/package.json +2 -2
  91. package/src/amf/AmfTypes.ts +1 -1
  92. package/src/amf/Utils.ts +0 -15
  93. package/src/modeling/Bindings.ts +1 -1
  94. package/src/modeling/DataDomain.ts +2 -2
  95. package/src/modeling/DataFormat.ts +0 -48
  96. package/src/modeling/DomainAssociation.ts +122 -3
  97. package/src/modeling/DomainEntity.ts +56 -17
  98. package/src/modeling/DomainFile.ts +1 -1
  99. package/src/modeling/DomainImpactAnalysis.ts +3 -3
  100. package/src/modeling/DomainModel.ts +2 -2
  101. package/src/modeling/DomainProperty.ts +60 -21
  102. package/src/modeling/Semantics.ts +195 -0
  103. package/src/modeling/graph.md +14 -14
  104. package/src/modeling/readme.md +29 -29
  105. package/src/models/kinds.ts +0 -25
  106. package/src/models/store/data_catalog.ts +1 -1
  107. package/tests/unit/modeling/data_domain_change_observers.spec.ts +11 -10
  108. package/tests/unit/modeling/data_domain_entities.spec.ts +129 -1
  109. package/tests/unit/modeling/data_domain_property.spec.ts +1 -1
  110. package/tests/unit/modeling/domain_asociation.spec.ts +267 -0
  111. package/tests/unit/modeling/domain_entity.spec.ts +27 -26
  112. package/tests/unit/modeling/domain_entity_example_generator_json.spec.ts +11 -11
  113. package/tests/unit/modeling/domain_entity_example_generator_xml.spec.ts +10 -10
  114. package/tests/unit/modeling/{domain.property.spec.ts → domain_property.spec.ts} +139 -23
  115. package/tests/unit/modeling/semantics.spec.ts +149 -0
  116. package/build/src/amf/AmfShapeGenerator.d.ts +0 -103
  117. package/build/src/amf/AmfShapeGenerator.d.ts.map +0 -1
  118. package/build/src/amf/AmfShapeGenerator.js +0 -416
  119. package/build/src/amf/AmfShapeGenerator.js.map +0 -1
  120. package/build/src/modeling/legacy/DataAssociation.d.ts +0 -284
  121. package/build/src/modeling/legacy/DataAssociation.d.ts.map +0 -1
  122. package/build/src/modeling/legacy/DataAssociation.js +0 -443
  123. package/build/src/modeling/legacy/DataAssociation.js.map +0 -1
  124. package/build/src/modeling/legacy/DataEntity.d.ts +0 -358
  125. package/build/src/modeling/legacy/DataEntity.d.ts.map +0 -1
  126. package/build/src/modeling/legacy/DataEntity.js +0 -855
  127. package/build/src/modeling/legacy/DataEntity.js.map +0 -1
  128. package/build/src/modeling/legacy/DataEntityBuilder.d.ts +0 -162
  129. package/build/src/modeling/legacy/DataEntityBuilder.d.ts.map +0 -1
  130. package/build/src/modeling/legacy/DataEntityBuilder.js +0 -221
  131. package/build/src/modeling/legacy/DataEntityBuilder.js.map +0 -1
  132. package/build/src/modeling/legacy/DataImpactAnalysis.d.ts +0 -298
  133. package/build/src/modeling/legacy/DataImpactAnalysis.d.ts.map +0 -1
  134. package/build/src/modeling/legacy/DataImpactAnalysis.js +0 -441
  135. package/build/src/modeling/legacy/DataImpactAnalysis.js.map +0 -1
  136. package/build/src/modeling/legacy/DataModel.d.ts +0 -99
  137. package/build/src/modeling/legacy/DataModel.d.ts.map +0 -1
  138. package/build/src/modeling/legacy/DataModel.js +0 -237
  139. package/build/src/modeling/legacy/DataModel.js.map +0 -1
  140. package/build/src/modeling/legacy/DataNamespace.d.ts +0 -340
  141. package/build/src/modeling/legacy/DataNamespace.d.ts.map +0 -1
  142. package/build/src/modeling/legacy/DataNamespace.js +0 -784
  143. package/build/src/modeling/legacy/DataNamespace.js.map +0 -1
  144. package/build/src/modeling/legacy/DataProperty.d.ts +0 -332
  145. package/build/src/modeling/legacy/DataProperty.d.ts.map +0 -1
  146. package/build/src/modeling/legacy/DataProperty.js +0 -415
  147. package/build/src/modeling/legacy/DataProperty.js.map +0 -1
  148. package/build/src/models/store/DataFile.d.ts +0 -29
  149. package/build/src/models/store/DataFile.d.ts.map +0 -1
  150. package/build/src/models/store/DataFile.js +0 -87
  151. package/build/src/models/store/DataFile.js.map +0 -1
  152. package/src/amf/AmfShapeGenerator.ts +0 -477
  153. package/src/modeling/legacy/DataAssociation.ts +0 -554
  154. package/src/modeling/legacy/DataEntity.ts +0 -1019
  155. package/src/modeling/legacy/DataEntityBuilder.ts +0 -236
  156. package/src/modeling/legacy/DataImpactAnalysis.ts +0 -530
  157. package/src/modeling/legacy/DataModel.ts +0 -276
  158. package/src/modeling/legacy/DataNamespace.ts +0 -929
  159. package/src/modeling/legacy/DataProperty.ts +0 -630
  160. package/src/models/store/DataFile.ts +0 -95
  161. package/tests/unit/modeling/legacy/amf_shape_generator.spec.ts +0 -1041
  162. package/tests/unit/modeling/legacy/data_association.spec.ts +0 -710
  163. package/tests/unit/modeling/legacy/data_entity.spec.ts +0 -2061
  164. package/tests/unit/modeling/legacy/data_entity_generator_json.spec.ts +0 -987
  165. package/tests/unit/modeling/legacy/data_entity_generator_xml.spec.ts +0 -1451
  166. package/tests/unit/modeling/legacy/data_model.spec.ts +0 -395
  167. package/tests/unit/modeling/legacy/data_namespace.spec.ts +0 -1312
  168. package/tests/unit/modeling/legacy/data_property.spec.ts +0 -887
  169. package/tests/unit/modeling/legacy/impact_analysis.spec.ts +0 -373
@@ -5,7 +5,7 @@
5
5
  "@type": [
6
6
  "doc:APIContractProcessingData"
7
7
  ],
8
- "apiContract:modelVersion": "3.10.0",
8
+ "apiContract:modelVersion": "3.11.0",
9
9
  "doc:transformed": true,
10
10
  "doc:sourceSpec": "RAML 1.0"
11
11
  },
@@ -5,7 +5,7 @@
5
5
  "@type": [
6
6
  "doc:APIContractProcessingData"
7
7
  ],
8
- "apiContract:modelVersion": "3.10.0",
8
+ "apiContract:modelVersion": "3.11.0",
9
9
  "doc:transformed": true,
10
10
  "doc:sourceSpec": "RAML 1.0"
11
11
  },
@@ -5,7 +5,7 @@
5
5
  "@type": [
6
6
  "doc:APIContractProcessingData"
7
7
  ],
8
- "apiContract:modelVersion": "3.10.0",
8
+ "apiContract:modelVersion": "3.11.0",
9
9
  "doc:transformed": true,
10
10
  "doc:sourceSpec": "OAS 3.0"
11
11
  },
@@ -5,7 +5,7 @@
5
5
  "@type": [
6
6
  "doc:APIContractProcessingData"
7
7
  ],
8
- "apiContract:modelVersion": "3.10.0",
8
+ "apiContract:modelVersion": "3.11.0",
9
9
  "doc:transformed": true,
10
10
  "doc:sourceSpec": "OAS 3.0"
11
11
  },
@@ -5,7 +5,7 @@
5
5
  "@type": [
6
6
  "doc:APIContractProcessingData"
7
7
  ],
8
- "apiContract:modelVersion": "3.10.0",
8
+ "apiContract:modelVersion": "3.11.0",
9
9
  "doc:transformed": true,
10
10
  "doc:sourceSpec": "OAS 3.0"
11
11
  },
@@ -5,7 +5,7 @@
5
5
  "@type": [
6
6
  "doc:APIContractProcessingData"
7
7
  ],
8
- "apiContract:modelVersion": "3.10.0",
8
+ "apiContract:modelVersion": "3.11.0",
9
9
  "doc:transformed": true,
10
10
  "doc:sourceSpec": "OAS 3.0"
11
11
  },
@@ -5,7 +5,7 @@
5
5
  "@type": [
6
6
  "doc:APIContractProcessingData"
7
7
  ],
8
- "apiContract:modelVersion": "3.10.0",
8
+ "apiContract:modelVersion": "3.11.0",
9
9
  "doc:transformed": true,
10
10
  "doc:sourceSpec": "OAS 3.0"
11
11
  },
@@ -5,7 +5,7 @@
5
5
  "@type": [
6
6
  "doc:APIContractProcessingData"
7
7
  ],
8
- "apiContract:modelVersion": "3.10.0",
8
+ "apiContract:modelVersion": "3.11.0",
9
9
  "doc:transformed": true,
10
10
  "doc:sourceSpec": "OAS 3.0"
11
11
  },
@@ -5,7 +5,7 @@
5
5
  "@type": [
6
6
  "doc:APIContractProcessingData"
7
7
  ],
8
- "apiContract:modelVersion": "3.10.0",
8
+ "apiContract:modelVersion": "3.11.0",
9
9
  "doc:transformed": true,
10
10
  "doc:sourceSpec": "RAML 1.0"
11
11
  },
@@ -5,7 +5,7 @@
5
5
  "@type": [
6
6
  "doc:APIContractProcessingData"
7
7
  ],
8
- "apiContract:modelVersion": "3.10.0",
8
+ "apiContract:modelVersion": "3.11.0",
9
9
  "doc:transformed": true,
10
10
  "doc:sourceSpec": "RAML 1.0"
11
11
  },
@@ -5,7 +5,7 @@
5
5
  "@type": [
6
6
  "doc:APIContractProcessingData"
7
7
  ],
8
- "apiContract:modelVersion": "3.10.0",
8
+ "apiContract:modelVersion": "3.11.0",
9
9
  "doc:transformed": true,
10
10
  "doc:sourceSpec": "RAML 1.0"
11
11
  },
@@ -12732,7 +12732,7 @@
12732
12732
  "@type": [
12733
12733
  "doc:APIContractProcessingData"
12734
12734
  ],
12735
- "apiContract:modelVersion": "3.10.0",
12735
+ "apiContract:modelVersion": "3.11.0",
12736
12736
  "doc:sourceSpec": "RAML 1.0"
12737
12737
  },
12738
12738
  {
@@ -26128,6 +26128,11 @@
26128
26128
  "@id": "#331/source-map/inherited-shapes/element_0"
26129
26129
  }
26130
26130
  ],
26131
+ "sourcemaps:default-node": [
26132
+ {
26133
+ "@id": "#331/source-map/default-node/element_0"
26134
+ }
26135
+ ],
26131
26136
  "sourcemaps:synthesized-field": [
26132
26137
  {
26133
26138
  "@id": "#331/source-map/synthesized-field/element_0"
@@ -26226,6 +26231,11 @@
26226
26231
  "@id": "#334/source-map/inherited-shapes/element_0"
26227
26232
  }
26228
26233
  ],
26234
+ "sourcemaps:default-node": [
26235
+ {
26236
+ "@id": "#334/source-map/default-node/element_0"
26237
+ }
26238
+ ],
26229
26239
  "sourcemaps:synthesized-field": [
26230
26240
  {
26231
26241
  "@id": "#334/source-map/synthesized-field/element_0"
@@ -28525,6 +28535,11 @@
28525
28535
  "@id": "#19/source-map/inherited-shapes/element_0"
28526
28536
  }
28527
28537
  ],
28538
+ "sourcemaps:default-node": [
28539
+ {
28540
+ "@id": "#19/source-map/default-node/element_0"
28541
+ }
28542
+ ],
28528
28543
  "sourcemaps:synthesized-field": [
28529
28544
  {
28530
28545
  "@id": "#19/source-map/synthesized-field/element_0"
@@ -28639,6 +28654,11 @@
28639
28654
  "@id": "#25/source-map/inherited-shapes/element_0"
28640
28655
  }
28641
28656
  ],
28657
+ "sourcemaps:default-node": [
28658
+ {
28659
+ "@id": "#25/source-map/default-node/element_0"
28660
+ }
28661
+ ],
28642
28662
  "sourcemaps:synthesized-field": [
28643
28663
  {
28644
28664
  "@id": "#25/source-map/synthesized-field/element_0"
@@ -28719,6 +28739,11 @@
28719
28739
  "@id": "#28/source-map/inherited-shapes/element_0"
28720
28740
  }
28721
28741
  ],
28742
+ "sourcemaps:default-node": [
28743
+ {
28744
+ "@id": "#28/source-map/default-node/element_0"
28745
+ }
28746
+ ],
28722
28747
  "sourcemaps:synthesized-field": [
28723
28748
  {
28724
28749
  "@id": "#28/source-map/synthesized-field/element_0"
@@ -30399,6 +30424,11 @@
30399
30424
  "sourcemaps:value": "amf://id#11"
30400
30425
  },
30401
30426
  {
30427
+ "@id": "#331/source-map/default-node/element_0",
30428
+ "sourcemaps:element": "amf://id#331",
30429
+ "sourcemaps:value": ""
30430
+ },
30431
+ {
30402
30432
  "@id": "#331/source-map/synthesized-field/element_0",
30403
30433
  "sourcemaps:element": "shacl:datatype",
30404
30434
  "sourcemaps:value": "true"
@@ -30472,6 +30502,11 @@
30472
30502
  "sourcemaps:value": "amf://id#13"
30473
30503
  },
30474
30504
  {
30505
+ "@id": "#334/source-map/default-node/element_0",
30506
+ "sourcemaps:element": "amf://id#334",
30507
+ "sourcemaps:value": ""
30508
+ },
30509
+ {
30475
30510
  "@id": "#334/source-map/synthesized-field/element_0",
30476
30511
  "sourcemaps:element": "shacl:datatype",
30477
30512
  "sourcemaps:value": "true"
@@ -32263,6 +32298,11 @@
32263
32298
  "sourcemaps:value": "amf://id#13"
32264
32299
  },
32265
32300
  {
32301
+ "@id": "#19/source-map/default-node/element_0",
32302
+ "sourcemaps:element": "amf://id#19",
32303
+ "sourcemaps:value": ""
32304
+ },
32305
+ {
32266
32306
  "@id": "#19/source-map/synthesized-field/element_0",
32267
32307
  "sourcemaps:element": "shacl:datatype",
32268
32308
  "sourcemaps:value": "true"
@@ -32327,6 +32367,11 @@
32327
32367
  "sourcemaps:value": "amf://id#11"
32328
32368
  },
32329
32369
  {
32370
+ "@id": "#25/source-map/default-node/element_0",
32371
+ "sourcemaps:element": "amf://id#25",
32372
+ "sourcemaps:value": ""
32373
+ },
32374
+ {
32330
32375
  "@id": "#25/source-map/synthesized-field/element_0",
32331
32376
  "sourcemaps:element": "shacl:datatype",
32332
32377
  "sourcemaps:value": "true"
@@ -32381,6 +32426,11 @@
32381
32426
  "sourcemaps:value": "amf://id#13"
32382
32427
  },
32383
32428
  {
32429
+ "@id": "#28/source-map/default-node/element_0",
32430
+ "sourcemaps:element": "amf://id#28",
32431
+ "sourcemaps:value": ""
32432
+ },
32433
+ {
32384
32434
  "@id": "#28/source-map/synthesized-field/element_0",
32385
32435
  "sourcemaps:element": "shacl:datatype",
32386
32436
  "sourcemaps:value": "true"
@@ -33397,6 +33447,11 @@
33397
33447
  "@id": "#373/source-map/synthesized-field/element_0"
33398
33448
  }
33399
33449
  ],
33450
+ "sourcemaps:default-node": [
33451
+ {
33452
+ "@id": "#373/source-map/default-node/element_0"
33453
+ }
33454
+ ],
33400
33455
  "sourcemaps:lexical": [
33401
33456
  {
33402
33457
  "@id": "#373/source-map/lexical/element_1"
@@ -34765,6 +34820,11 @@
34765
34820
  "sourcemaps:value": "true"
34766
34821
  },
34767
34822
  {
34823
+ "@id": "#373/source-map/default-node/element_0",
34824
+ "sourcemaps:element": "amf://id#373",
34825
+ "sourcemaps:value": ""
34826
+ },
34827
+ {
34768
34828
  "@id": "#373/source-map/lexical/element_1",
34769
34829
  "sourcemaps:element": "amf://id#373",
34770
34830
  "sourcemaps:value": "[(486,10)-(490,0)]"
@@ -5,7 +5,7 @@
5
5
  "@type": [
6
6
  "doc:APIContractProcessingData"
7
7
  ],
8
- "apiContract:modelVersion": "3.10.0",
8
+ "apiContract:modelVersion": "3.11.0",
9
9
  "doc:transformed": true,
10
10
  "doc:sourceSpec": "RAML 1.0"
11
11
  },
@@ -17110,7 +17110,7 @@
17110
17110
  "@type": [
17111
17111
  "doc:APIContractProcessingData"
17112
17112
  ],
17113
- "apiContract:modelVersion": "3.10.0",
17113
+ "apiContract:modelVersion": "3.11.0",
17114
17114
  "doc:sourceSpec": "RAML 1.0"
17115
17115
  },
17116
17116
  {
@@ -17156,7 +17156,7 @@
17156
17156
  "@type": [
17157
17157
  "doc:APIContractProcessingData"
17158
17158
  ],
17159
- "apiContract:modelVersion": "3.10.0",
17159
+ "apiContract:modelVersion": "3.11.0",
17160
17160
  "doc:sourceSpec": "RAML 1.0"
17161
17161
  },
17162
17162
  {
@@ -17192,7 +17192,7 @@
17192
17192
  "@type": [
17193
17193
  "doc:APIContractProcessingData"
17194
17194
  ],
17195
- "apiContract:modelVersion": "3.10.0",
17195
+ "apiContract:modelVersion": "3.11.0",
17196
17196
  "doc:sourceSpec": "RAML 1.0"
17197
17197
  },
17198
17198
  {
@@ -17246,7 +17246,7 @@
17246
17246
  "@type": [
17247
17247
  "doc:APIContractProcessingData"
17248
17248
  ],
17249
- "apiContract:modelVersion": "3.10.0",
17249
+ "apiContract:modelVersion": "3.11.0",
17250
17250
  "doc:sourceSpec": "RAML 1.0"
17251
17251
  },
17252
17252
  {
@@ -17292,7 +17292,7 @@
17292
17292
  "@type": [
17293
17293
  "doc:APIContractProcessingData"
17294
17294
  ],
17295
- "apiContract:modelVersion": "3.10.0",
17295
+ "apiContract:modelVersion": "3.11.0",
17296
17296
  "doc:sourceSpec": "RAML 1.0"
17297
17297
  },
17298
17298
  {
@@ -17328,7 +17328,7 @@
17328
17328
  "@type": [
17329
17329
  "doc:APIContractProcessingData"
17330
17330
  ],
17331
- "apiContract:modelVersion": "3.10.0",
17331
+ "apiContract:modelVersion": "3.11.0",
17332
17332
  "doc:sourceSpec": "RAML 1.0"
17333
17333
  },
17334
17334
  {
@@ -17369,7 +17369,7 @@
17369
17369
  "@type": [
17370
17370
  "doc:APIContractProcessingData"
17371
17371
  ],
17372
- "apiContract:modelVersion": "3.10.0",
17372
+ "apiContract:modelVersion": "3.11.0",
17373
17373
  "doc:sourceSpec": "RAML 1.0"
17374
17374
  },
17375
17375
  {
@@ -17410,7 +17410,7 @@
17410
17410
  "@type": [
17411
17411
  "doc:APIContractProcessingData"
17412
17412
  ],
17413
- "apiContract:modelVersion": "3.10.0",
17413
+ "apiContract:modelVersion": "3.11.0",
17414
17414
  "doc:sourceSpec": "RAML 1.0"
17415
17415
  },
17416
17416
  {
@@ -17446,7 +17446,7 @@
17446
17446
  "@type": [
17447
17447
  "doc:APIContractProcessingData"
17448
17448
  ],
17449
- "apiContract:modelVersion": "3.10.0",
17449
+ "apiContract:modelVersion": "3.11.0",
17450
17450
  "doc:sourceSpec": "RAML 1.0"
17451
17451
  },
17452
17452
  {
@@ -17487,7 +17487,7 @@
17487
17487
  "@type": [
17488
17488
  "doc:APIContractProcessingData"
17489
17489
  ],
17490
- "apiContract:modelVersion": "3.10.0",
17490
+ "apiContract:modelVersion": "3.11.0",
17491
17491
  "doc:sourceSpec": "RAML 1.0"
17492
17492
  },
17493
17493
  {
@@ -17528,7 +17528,7 @@
17528
17528
  "@type": [
17529
17529
  "doc:APIContractProcessingData"
17530
17530
  ],
17531
- "apiContract:modelVersion": "3.10.0",
17531
+ "apiContract:modelVersion": "3.11.0",
17532
17532
  "doc:sourceSpec": "RAML 1.0"
17533
17533
  },
17534
17534
  {
@@ -17564,7 +17564,7 @@
17564
17564
  "@type": [
17565
17565
  "doc:APIContractProcessingData"
17566
17566
  ],
17567
- "apiContract:modelVersion": "3.10.0",
17567
+ "apiContract:modelVersion": "3.11.0",
17568
17568
  "doc:sourceSpec": "RAML 1.0"
17569
17569
  },
17570
17570
  {
@@ -17600,7 +17600,7 @@
17600
17600
  "@type": [
17601
17601
  "doc:APIContractProcessingData"
17602
17602
  ],
17603
- "apiContract:modelVersion": "3.10.0",
17603
+ "apiContract:modelVersion": "3.11.0",
17604
17604
  "doc:sourceSpec": "RAML 1.0"
17605
17605
  },
17606
17606
  {
@@ -17636,7 +17636,7 @@
17636
17636
  "@type": [
17637
17637
  "doc:APIContractProcessingData"
17638
17638
  ],
17639
- "apiContract:modelVersion": "3.10.0",
17639
+ "apiContract:modelVersion": "3.11.0",
17640
17640
  "doc:sourceSpec": "RAML 1.0"
17641
17641
  },
17642
17642
  {
@@ -17669,7 +17669,7 @@
17669
17669
  "@type": [
17670
17670
  "doc:APIContractProcessingData"
17671
17671
  ],
17672
- "apiContract:modelVersion": "3.10.0",
17672
+ "apiContract:modelVersion": "3.11.0",
17673
17673
  "doc:sourceSpec": "RAML 1.0"
17674
17674
  },
17675
17675
  {
@@ -5,7 +5,7 @@
5
5
  "@type": [
6
6
  "doc:APIContractProcessingData"
7
7
  ],
8
- "apiContract:modelVersion": "3.10.0",
8
+ "apiContract:modelVersion": "3.11.0",
9
9
  "doc:transformed": true,
10
10
  "doc:sourceSpec": "RAML 1.0"
11
11
  },
@@ -1777,7 +1777,7 @@
1777
1777
  "@type": [
1778
1778
  "doc:APIContractProcessingData"
1779
1779
  ],
1780
- "apiContract:modelVersion": "3.10.0",
1780
+ "apiContract:modelVersion": "3.11.0",
1781
1781
  "doc:sourceSpec": "RAML 1.0"
1782
1782
  },
1783
1783
  {
@@ -1805,7 +1805,7 @@
1805
1805
  "@type": [
1806
1806
  "doc:APIContractProcessingData"
1807
1807
  ],
1808
- "apiContract:modelVersion": "3.10.0",
1808
+ "apiContract:modelVersion": "3.11.0",
1809
1809
  "doc:sourceSpec": "RAML 1.0"
1810
1810
  },
1811
1811
  {
@@ -1833,7 +1833,7 @@
1833
1833
  "@type": [
1834
1834
  "doc:APIContractProcessingData"
1835
1835
  ],
1836
- "apiContract:modelVersion": "3.10.0",
1836
+ "apiContract:modelVersion": "3.11.0",
1837
1837
  "doc:sourceSpec": "RAML 1.0"
1838
1838
  },
1839
1839
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@api-client/core",
3
3
  "description": "The API Client's core client library. Works in NodeJS and in a ES enabled browser.",
4
- "version": "0.14.0",
4
+ "version": "0.14.2",
5
5
  "license": "Apache-2.0",
6
6
  "exports": {
7
7
  "./browser.js": {
@@ -111,7 +111,7 @@
111
111
  "@types/express-ntlm": "^2.3.3",
112
112
  "@types/jsdom": "^21.1.7",
113
113
  "@types/mocha": "^10.0.10",
114
- "@types/node": "^22.13.4",
114
+ "@types/node": "^24.0.1",
115
115
  "@types/sinon": "^17.0.1",
116
116
  "@web/dev-server": "^0.4.6",
117
117
  "@web/dev-server-rollup": "^0.6.4",
@@ -103,7 +103,7 @@ export const IAmfExampleTypes = [
103
103
  ]
104
104
 
105
105
  /**
106
- * Translates the DataProperty type to an AMF data type.
106
+ * Translates the DomainProperty type to an AMF data type.
107
107
  * @param type The property data type
108
108
  * @returns AMF shape dataType
109
109
  */
package/src/amf/Utils.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { UrlEncoder } from '../lib/parsers/UrlEncoder.js'
2
1
  import { AmfNamespace } from './definitions/Namespace.js'
3
2
  import { IApiNodeShape, IApiPropertyShape, IShapeUnion, IApiUnionShape } from './definitions/Shapes.js'
4
3
 
@@ -45,20 +44,6 @@ export function formatXmlValue(fill: string, value: unknown): string {
45
44
  return formatted
46
45
  }
47
46
 
48
- /**
49
- * @param str A key or value to encode as x-www-form-urlencoded.
50
- * @param replacePlus When set it replaces `%20` with `+`.
51
- * @deprecated Use `UrlEncoder.encodeQueryString()` instead.
52
- */
53
- export function wwwFormUrlEncode(str: string, replacePlus?: boolean): string {
54
- // Spec says to normalize newlines to \r\n and replace %20 spaces with +.
55
- // jQuery does this as well, so this is likely to be widely compatible.
56
- if (str === undefined) {
57
- return ''
58
- }
59
- return UrlEncoder.encodeQueryString(String(str), replacePlus)
60
- }
61
-
62
47
  /**
63
48
  * Processes a value that should be a number.
64
49
  */
@@ -139,7 +139,7 @@ export type PropertyBindings = PropertyWebBindings | PropertyProtobufBindings
139
139
  export interface PropertyBinding extends Binding {
140
140
  /**
141
141
  * The definition of the bindings.
142
- * The bindings tells how to translated the DataProperty to a specific format.
142
+ * The bindings tells how to translated the DomainProperty to a specific format.
143
143
  * For example, it allows to define the `dataType` and `format` for RAML / OAS (via the AMF shapes)
144
144
  * or the field number for protocol buffer.
145
145
  */
@@ -800,7 +800,7 @@ export class DataDomain extends EventTarget {
800
800
  */
801
801
  addEntity(parent: string, input?: Partial<DomainEntitySchema>): DomainEntity {
802
802
  if (!parent) {
803
- throw new Error(`An entity expects a DataModel parent`)
803
+ throw new Error(`An entity expects a DomainModel parent`)
804
804
  }
805
805
  if (!this.graph.hasNode(parent)) {
806
806
  throw new Error(`The parent ${parent} does not exist`)
@@ -1047,7 +1047,7 @@ export class DataDomain extends EventTarget {
1047
1047
  */
1048
1048
  addProperty(parent: string, property?: Partial<DomainPropertySchema>): DomainProperty {
1049
1049
  if (!parent) {
1050
- throw new Error(`A property expects a DataEntity parent`)
1050
+ throw new Error(`A property expects a DomainEntity parent`)
1051
1051
  }
1052
1052
  if (!this.graph.hasNode(parent)) {
1053
1053
  throw new Error(`Parent entity ${parent} does not exist`)
@@ -9,11 +9,6 @@ export type DomainPropertyType =
9
9
  // | 'any'
10
10
  | 'binary'
11
11
 
12
- /**
13
- * @deprecated Use the {@link DomainPropertyType} instead.
14
- */
15
- export type DataPropertyType = DomainPropertyType
16
-
17
12
  export const DomainPropertyTypes: DomainPropertyType[] = [
18
13
  'string',
19
14
  'number',
@@ -36,11 +31,6 @@ export const DomainPropertyTypes: DomainPropertyType[] = [
36
31
  'binary',
37
32
  ]
38
33
 
39
- /**
40
- * @deprecated Use the {@link DomainPropertyTypes} instead.
41
- */
42
- export const DataPropertyTypes: DataPropertyType[] = DomainPropertyTypes
43
-
44
34
  export enum DomainPropertyList {
45
35
  string = 'string',
46
36
  number = 'number',
@@ -53,21 +43,6 @@ export enum DomainPropertyList {
53
43
  file = 'binary',
54
44
  }
55
45
 
56
- /**
57
- * @deprecated Use the {@link DomainPropertyList} instead.
58
- */
59
- export enum DataPropertyList {
60
- string = 'string',
61
- number = 'number',
62
- // nil = 'nil',
63
- boolean = 'boolean',
64
- date = 'date',
65
- datetime = 'datetime',
66
- time = 'time',
67
- // any = 'any',
68
- file = 'binary',
69
- }
70
-
71
46
  /**
72
47
  * The data property "attributes".
73
48
  */
@@ -80,11 +55,6 @@ export type DomainPropertyAttribute =
80
55
  | 'writeOnly'
81
56
  | 'deprecated'
82
57
 
83
- /**
84
- * @deprecated Use the {@link DomainPropertyAttribute} instead.
85
- */
86
- export type DataPropertyAttribute = DomainPropertyAttribute
87
-
88
58
  export const DomainPropertyAttributes: DomainPropertyAttribute[] = [
89
59
  'required',
90
60
  'multiple',
@@ -95,26 +65,12 @@ export const DomainPropertyAttributes: DomainPropertyAttribute[] = [
95
65
  'deprecated',
96
66
  ]
97
67
 
98
- /**
99
- * @deprecated Use the {@link DomainPropertyAttributes} instead.
100
- */
101
- export const DataPropertyAttributes: DataPropertyAttribute[] = DomainPropertyAttributes
102
-
103
68
  /**
104
69
  * The data attribute "attributes".
105
70
  */
106
71
  export type DomainAttributeAttribute = 'required' | 'multiple'
107
72
 
108
- /**
109
- * @deprecated Use the {@link DomainAttributeAttribute} instead.
110
- */
111
- export type DataAttributeAttribute = DomainAttributeAttribute
112
-
113
73
  export const DomainAttributeAttributes: DomainAttributeAttribute[] = ['required', 'multiple']
114
- /**
115
- * @deprecated Use the {@link DomainAttributeAttributes} instead.
116
- */
117
- export const DataAttributeAttributes: DataAttributeAttribute[] = DomainAttributeAttributes
118
74
 
119
75
  /**
120
76
  * Note, OAS supports the `integer` data type and not format.
@@ -138,7 +94,3 @@ export type BinaryFormat = 'hex' | 'base64'
138
94
  export const BinaryFormats: BinaryFormat[] = ['hex', 'base64']
139
95
 
140
96
  export type DomainPropertyFormat = NumberFormat | BinaryFormat
141
- /**
142
- * @deprecated Use the {@link DomainPropertyFormat} instead.
143
- */
144
- export type DataPropertyFormat = NumberFormat | BinaryFormat