@api-client/core 0.8.0 → 0.8.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 (195) hide show
  1. package/build/browser.d.ts +5 -4
  2. package/build/browser.js +1 -0
  3. package/build/browser.js.map +1 -1
  4. package/build/index.d.ts +5 -4
  5. package/build/index.js +1 -0
  6. package/build/index.js.map +1 -1
  7. package/build/oauth-popup.html +29 -0
  8. package/build/src/amf/AmfMixin.d.ts +2 -1
  9. package/build/src/amf/AmfMixin.js.map +1 -1
  10. package/build/src/amf/AmfShapeGenerator.d.ts +2 -0
  11. package/build/src/amf/AmfShapeGenerator.js +2 -0
  12. package/build/src/amf/AmfShapeGenerator.js.map +1 -1
  13. package/build/src/amf/ApiSchemaValues.d.ts +4 -4
  14. package/build/src/amf/ApiSchemaValues.js.map +1 -1
  15. package/build/src/amf/Utils.js +3 -1
  16. package/build/src/amf/Utils.js.map +1 -1
  17. package/build/src/amf/data-node/XmlDataNodeGenerator.js +2 -1
  18. package/build/src/amf/data-node/XmlDataNodeGenerator.js.map +1 -1
  19. package/build/src/amf/shape/ShapeBase.d.ts +1 -1
  20. package/build/src/amf/shape/ShapeJsonSchemaGenerator.js +4 -2
  21. package/build/src/amf/shape/ShapeJsonSchemaGenerator.js.map +1 -1
  22. package/build/src/amf/shape/ShapeXmlSchemaGenerator.d.ts +13 -13
  23. package/build/src/amf/shape/ShapeXmlSchemaGenerator.js +25 -7
  24. package/build/src/amf/shape/ShapeXmlSchemaGenerator.js.map +1 -1
  25. package/build/src/authorization/OAuth2Authorization.d.ts +4 -4
  26. package/build/src/authorization/OAuth2Authorization.js +7 -7
  27. package/build/src/authorization/OAuth2Authorization.js.map +1 -1
  28. package/build/src/authorization/OidcAuthorization.js +0 -1
  29. package/build/src/authorization/OidcAuthorization.js.map +1 -1
  30. package/build/src/data/XmlReader.js +2 -0
  31. package/build/src/data/XmlReader.js.map +1 -1
  32. package/build/src/events/CustomEvent.d.ts +1 -1
  33. package/build/src/events/CustomEvent.js +1 -1
  34. package/build/src/lib/logging/DefaultLogger.js +1 -0
  35. package/build/src/lib/logging/DefaultLogger.js.map +1 -1
  36. package/build/src/lib/parsers/UriTemplate.js +1 -1
  37. package/build/src/lib/parsers/UrlEncoder.js +1 -0
  38. package/build/src/lib/parsers/UrlEncoder.js.map +1 -1
  39. package/build/src/lib/timers/Timers.d.ts +9 -0
  40. package/build/src/lib/timers/Timers.js +13 -0
  41. package/build/src/lib/timers/Timers.js.map +1 -1
  42. package/build/src/mocking/LegacyInterfaces.d.ts +1 -2
  43. package/build/src/mocking/LegacyMock.js +0 -1
  44. package/build/src/mocking/LegacyMock.js.map +1 -1
  45. package/build/src/mocking/legacy/Http.js +1 -1
  46. package/build/src/mocking/legacy/Http.js.map +1 -1
  47. package/build/src/models/data/DataNamespace.d.ts +0 -1
  48. package/build/src/models/data/DataNamespace.js +1 -1
  49. package/build/src/models/data/DataNamespace.js.map +1 -1
  50. package/build/src/models/store/Permission.js.map +1 -1
  51. package/build/src/models/transformers/ArcLegacyTransformer.js +1 -0
  52. package/build/src/models/transformers/ArcLegacyTransformer.js.map +1 -1
  53. package/build/src/models/transformers/PostmanV21Transformer.d.ts +1 -2
  54. package/build/src/models/transformers/PostmanV21Transformer.js +2 -0
  55. package/build/src/models/transformers/PostmanV21Transformer.js.map +1 -1
  56. package/build/src/models/transformers/PostmanV2Transformer.js +2 -0
  57. package/build/src/models/transformers/PostmanV2Transformer.js.map +1 -1
  58. package/build/src/runtime/store/AuthSdk.js +1 -0
  59. package/build/src/runtime/store/AuthSdk.js.map +1 -1
  60. package/build/src/runtime/store/SdkBase.js.map +1 -1
  61. package/build/src/testing/TestCliHelper.js.map +1 -1
  62. package/data/apis/APIC-187/APIC-187.raml +21 -0
  63. package/data/apis/APIC-187/dataType.raml +132 -0
  64. package/data/apis/APIC-187/example.raml +84 -0
  65. package/data/apis/APIC-188/APIC-188.raml +21 -0
  66. package/data/apis/APIC-188/dataType.raml +132 -0
  67. package/data/apis/APIC-188/example.raml +84 -0
  68. package/data/apis/APIC-233/APIC-233.raml +15 -0
  69. package/data/apis/APIC-391/APIC-391.raml +44 -0
  70. package/data/apis/APIC-391/examples/post-body-request-example.raml +7 -0
  71. package/data/apis/APIC-487/APIC-487.raml +36 -0
  72. package/data/apis/APIC-655/APIC-655.raml +44 -0
  73. package/data/apis/APIC-655/delivery.json +12 -0
  74. package/data/apis/APIC-689/APIC-689.raml +20 -0
  75. package/data/apis/APIC-690/APIC-690.raml +17 -0
  76. package/data/apis/APIC-690/datatypes/Address.raml +10 -0
  77. package/data/apis/APIC-690/datatypes/Customer.raml +17 -0
  78. package/data/apis/APIC-690/examples/CustomerExample2.raml +17 -0
  79. package/data/apis/APIC-690/examples/CustomersExample.raml +34 -0
  80. package/data/apis/SE-10469/Purchase-Order-oagis-id-dd32f9c6c01048a19e15c423c9c741ae.json +1383 -0
  81. package/data/apis/SE-10469/SE-10469.raml +11 -0
  82. package/data/apis/SE-13092/Examples/PersonExample.raml +7 -0
  83. package/data/apis/SE-13092/SE-13092.raml +37 -0
  84. package/data/apis/SE-13092/datatypes/Address.raml +5 -0
  85. package/data/apis/SE-13092/datatypes/InlineType.raml +5 -0
  86. package/data/apis/SE-13092/datatypes/Person.raml +15 -0
  87. package/data/apis/SE-22063/SE-22063.raml +14 -0
  88. package/data/apis/SE-22063/stock.raml +41 -0
  89. package/data/apis/amf-helper-api/amf-helper-api.raml +1024 -0
  90. package/data/apis/amf-helper-api/examples/comment-example.json +42 -0
  91. package/data/apis/amf-helper-api/examples/commentCreateRequest-example.json +7 -0
  92. package/data/apis/amf-helper-api/examples/commentList-example.json +48 -0
  93. package/data/apis/amf-helper-api/examples/person.json +14 -0
  94. package/data/apis/amf-helper-api/examples/person.raml +13 -0
  95. package/data/apis/amf-helper-api/examples/person.xml +14 -0
  96. package/data/apis/amf-helper-api/libraries/comment-lib.raml +143 -0
  97. package/data/apis/amf-helper-api/library.raml +7 -0
  98. package/data/apis/amf-helper-api/schemas/person.json +104 -0
  99. package/data/apis/amf-helper-api/schemas/person.xsd +26 -0
  100. package/data/apis/amf-helper-api/traits/file.raml +33 -0
  101. package/data/apis/amf-helper-api/traits/pagination.raml +80 -0
  102. package/data/apis/amf-helper-api/traits/results.raml +19 -0
  103. package/data/apis/amf-helper-api/traits/visibility.raml +14 -0
  104. package/data/apis/amf-helper-api/types/app-person.raml +101 -0
  105. package/data/apis/amf-helper-api/types/dimensions.raml +24 -0
  106. package/data/apis/amf-helper-api/types/external-type.raml +7 -0
  107. package/data/apis/amf-helper-api/types/image.raml +23 -0
  108. package/data/apis/amf-helper-api/types/product.raml +52 -0
  109. package/data/apis/amf-helper-api/types/resource.raml +11 -0
  110. package/data/apis/amf-helper-api/types/standard-request.raml +50 -0
  111. package/data/apis/amf-helper-api/types/user.raml +37 -0
  112. package/data/apis/async-api/async-api.yaml +96 -0
  113. package/data/apis/example-generator-api/contact-email-example.raml +6 -0
  114. package/data/apis/example-generator-api/contact-example.raml +5 -0
  115. package/data/apis/example-generator-api/contact-fax-example.raml +5 -0
  116. package/data/apis/example-generator-api/contact-website-example.raml +2 -0
  117. package/data/apis/example-generator-api/example-1.raml +6 -0
  118. package/data/apis/example-generator-api/example-2.raml +9 -0
  119. package/data/apis/example-generator-api/example-3.raml +4 -0
  120. package/data/apis/example-generator-api/example-4.raml +2 -0
  121. package/data/apis/example-generator-api/example-5.raml +4 -0
  122. package/data/apis/example-generator-api/example-6.raml +2 -0
  123. package/data/apis/example-generator-api/example-7.raml +5 -0
  124. package/data/apis/example-generator-api/example-generator-api.raml +423 -0
  125. package/data/apis/example-generator-api/example.json +14 -0
  126. package/data/apis/example-generator-api/example.xml +15 -0
  127. package/data/apis/example-generator-api/example.xsd +26 -0
  128. package/data/apis/example-generator-api/examples/employee.raml +7 -0
  129. package/data/apis/example-generator-api/examples/employees.raml +7 -0
  130. package/data/apis/example-generator-api/linked-named-example.raml +21 -0
  131. package/data/apis/example-generator-api/named-example-with-link.raml +5 -0
  132. package/data/apis/example-generator-api/named-example.raml +9 -0
  133. package/data/apis/example-generator-api/user-json-example.raml +17 -0
  134. package/data/apis/example-generator-api/user-raml-example.raml +37 -0
  135. package/data/apis/example-generator-api/user.json +8 -0
  136. package/data/apis/example-generator-api/user.raml +18 -0
  137. package/data/apis/example-generator-api/users-json-example.raml +17 -0
  138. package/data/apis/example-generator-api/users-raml-example.raml +32 -0
  139. package/data/apis/example-generator-api/users.json +8 -0
  140. package/data/apis/expanded-api/expanded-api.raml +8 -0
  141. package/data/apis/flattened-api/flattened-api.raml +8 -0
  142. package/data/apis/multiple-servers/multiple-servers.yaml +112 -0
  143. package/data/apis/schema-api/schema-api.raml +13 -1
  144. package/data/apis/tracked-examples/datatypes/employee.raml +5 -0
  145. package/data/apis/tracked-examples/examples/employee.raml +4 -0
  146. package/data/apis/tracked-examples/examples/employees.raml +8 -0
  147. package/data/apis/tracked-examples/tracked-to-linked.raml +28 -0
  148. package/data/model.js +19 -0
  149. package/data/models/APIC-187.json +11398 -0
  150. package/data/models/APIC-188.json +11398 -0
  151. package/data/models/APIC-233.json +539 -0
  152. package/data/models/APIC-391.json +1872 -0
  153. package/data/models/APIC-487.json +1225 -0
  154. package/data/models/APIC-655.json +3109 -0
  155. package/data/models/APIC-689.json +761 -0
  156. package/data/models/APIC-690.json +5992 -0
  157. package/data/models/SE-10469.json +22882 -0
  158. package/data/models/SE-13092.json +2715 -0
  159. package/data/models/SE-22063.json +2276 -0
  160. package/data/models/amf-helper-api.json +85908 -0
  161. package/data/models/async-api.json +3108 -0
  162. package/data/models/example-generator-api.json +44978 -0
  163. package/data/models/expanded-api.json +251 -0
  164. package/data/models/flattened-api.json +251 -0
  165. package/data/models/multiple-servers.json +2753 -0
  166. package/data/models/schema-api.json +436 -428
  167. package/data/models/tracked-to-linked.json +1790 -0
  168. package/package.json +6 -5
  169. package/src/amf/AmfMixin.ts +3 -2
  170. package/src/amf/AmfShapeGenerator.ts +5 -3
  171. package/src/amf/ApiSchemaValues.ts +5 -5
  172. package/src/amf/Utils.ts +6 -4
  173. package/src/amf/data-node/XmlDataNodeGenerator.ts +2 -1
  174. package/src/amf/shape/ShapeBase.ts +1 -1
  175. package/src/amf/shape/ShapeJsonSchemaGenerator.ts +4 -2
  176. package/src/amf/shape/ShapeXmlSchemaGenerator.ts +85 -66
  177. package/src/authorization/OAuth2Authorization.ts +33 -32
  178. package/src/authorization/OidcAuthorization.ts +3 -4
  179. package/src/data/XmlReader.ts +7 -5
  180. package/src/events/CustomEvent.ts +1 -1
  181. package/src/lib/logging/DefaultLogger.ts +1 -0
  182. package/src/lib/parsers/UriTemplate.ts +1 -1
  183. package/src/lib/parsers/UrlEncoder.ts +1 -0
  184. package/src/lib/timers/Timers.ts +14 -0
  185. package/src/mocking/LegacyInterfaces.ts +1 -2
  186. package/src/mocking/LegacyMock.ts +0 -1
  187. package/src/mocking/legacy/Http.ts +1 -1
  188. package/src/models/data/DataNamespace.ts +2 -2
  189. package/src/models/store/Permission.ts +1 -1
  190. package/src/models/transformers/ArcLegacyTransformer.ts +1 -0
  191. package/src/models/transformers/PostmanV21Transformer.ts +3 -2
  192. package/src/models/transformers/PostmanV2Transformer.ts +2 -0
  193. package/src/runtime/store/AuthSdk.ts +1 -0
  194. package/src/runtime/store/SdkBase.ts +1 -0
  195. package/src/testing/TestCliHelper.ts +1 -0
@@ -0,0 +1,11 @@
1
+ #%RAML 1.0
2
+ version: v1
3
+ title: Purina-Supplier-PurchaseOrder
4
+ # types:
5
+ # purchaseOrder: !include Purchase-Order-oagis-id-dd32f9c6c01048a19e15c423c9c741ae.json
6
+
7
+ /purina/b2b/supplier/purchaseOrder:
8
+ post:
9
+ body:
10
+ application/json:
11
+ type: !include Purchase-Order-oagis-id-dd32f9c6c01048a19e15c423c9c741ae.json
@@ -0,0 +1,7 @@
1
+ #%RAML 1.0 NamedExample
2
+ value:
3
+ name: TestName
4
+ addresses:
5
+ -
6
+ street: TestStreet 1
7
+ city: TestCity
@@ -0,0 +1,37 @@
1
+ #%RAML 1.0
2
+ baseUri: https://anypoint.mulesoft.com/mocking/api/v1/links/fc7ea85e-02e7-43f3-b5e2-750d94d34915/ #
3
+ title: 00224662
4
+ version: 1
5
+ types:
6
+ Person: !include datatypes/Person.raml
7
+ Address: !include datatypes/Address.raml
8
+ /customer:
9
+ post:
10
+ body:
11
+ application/xml:
12
+ type: !include datatypes/Person.raml
13
+ responses:
14
+ 200:
15
+ body:
16
+ application/xml:
17
+ type: Person
18
+ /should-be-incorrect:
19
+ post:
20
+ body:
21
+ application/xml:
22
+ type: !include datatypes/Person.raml
23
+ responses:
24
+ 200:
25
+ body:
26
+ application/xml:
27
+ type: !include datatypes/Person.raml
28
+ /incorrect-way:
29
+ post:
30
+ body:
31
+ application/xml:
32
+ type: !include datatypes/InlineType.raml
33
+ responses:
34
+ 200:
35
+ body:
36
+ application/xml:
37
+ type: !include datatypes/InlineType.raml
@@ -0,0 +1,5 @@
1
+ #%RAML 1.0 DataType
2
+ type: object
3
+ properties:
4
+ street: string
5
+ city: string
@@ -0,0 +1,5 @@
1
+ #%RAML 1.0 DataType
2
+ type: object
3
+ properties:
4
+ prop1: string
5
+ prop2: string
@@ -0,0 +1,15 @@
1
+ #%RAML 1.0 DataType
2
+ type: object
3
+ properties:
4
+ name:
5
+ type: string
6
+ xml:
7
+ attribute: true # serialize it as an XML attribute
8
+ name: fullname # attribute should be called fullname
9
+ addresses:
10
+ type: Address[]
11
+ xml:
12
+ wrapped: true
13
+ examples:
14
+ ex1:
15
+ !include ../Examples/PersonExample.raml
@@ -0,0 +1,14 @@
1
+ #%RAML 1.0
2
+ title: error-demo
3
+
4
+ uses:
5
+ dataModel: stock.raml
6
+
7
+ /demo:
8
+ post:
9
+ body:
10
+ application/json:
11
+ type: dataModel.StockBalance
12
+ application/xml:
13
+ type: dataModel.StockBalance
14
+
@@ -0,0 +1,41 @@
1
+ #%RAML 1.0 Library
2
+
3
+ types:
4
+ StockBalance:
5
+ description: Holder stock balance information.
6
+ properties:
7
+ sourceType:
8
+ type:
9
+ enum: [site]
10
+ example: site
11
+ items:
12
+ type: StockLine[]
13
+ description: Individual inventories.
14
+ minItems: 1
15
+ xml:
16
+ wrapped: true
17
+ name: item
18
+ StockLine:
19
+ type: object
20
+ description: Stock line.
21
+ properties:
22
+ ssccNumber?:
23
+ type: string
24
+ description: Palet number
25
+ example: P19227
26
+ materialReference:
27
+ type: string
28
+ description: Product sku.
29
+ example: CL54B
30
+ variantId?:
31
+ type: string
32
+ description: Identification of product variant (or recipe)
33
+ example: R0029
34
+ batch?:
35
+ type: string
36
+ description: Batch number.
37
+ example: BA02931
38
+ quantity:
39
+ type: number
40
+ description: Product quantity to be despatched.
41
+ example: 1