@api-client/core 0.19.10 → 0.19.11

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 (429) hide show
  1. package/LICENSE.md +9 -63
  2. package/bin/test.ts +1 -12
  3. package/build/src/browser.d.ts +0 -15
  4. package/build/src/browser.d.ts.map +1 -1
  5. package/build/src/browser.js +0 -17
  6. package/build/src/browser.js.map +1 -1
  7. package/build/src/events/EventTypes.d.ts +0 -6
  8. package/build/src/events/EventTypes.d.ts.map +1 -1
  9. package/build/src/events/EventTypes.js +0 -2
  10. package/build/src/events/EventTypes.js.map +1 -1
  11. package/build/src/events/Events.d.ts +0 -2
  12. package/build/src/events/Events.d.ts.map +1 -1
  13. package/build/src/events/Events.js +0 -2
  14. package/build/src/events/Events.js.map +1 -1
  15. package/build/src/index.d.ts +0 -15
  16. package/build/src/index.d.ts.map +1 -1
  17. package/build/src/index.js +0 -17
  18. package/build/src/index.js.map +1 -1
  19. package/build/src/modeling/Bindings.d.ts +3 -3
  20. package/build/src/modeling/Bindings.d.ts.map +1 -1
  21. package/build/src/modeling/Bindings.js.map +1 -1
  22. package/build/src/modeling/DomainAssociation.d.ts +5 -5
  23. package/build/src/modeling/DomainAssociation.d.ts.map +1 -1
  24. package/build/src/modeling/DomainAssociation.js.map +1 -1
  25. package/build/src/modeling/DomainEntity.d.ts +2 -3
  26. package/build/src/modeling/DomainEntity.d.ts.map +1 -1
  27. package/build/src/modeling/DomainEntity.js +1 -1
  28. package/build/src/modeling/DomainEntity.js.map +1 -1
  29. package/build/src/modeling/DomainProperty.d.ts +2 -3
  30. package/build/src/modeling/DomainProperty.d.ts.map +1 -1
  31. package/build/src/modeling/DomainProperty.js +1 -1
  32. package/build/src/modeling/DomainProperty.js.map +1 -1
  33. package/build/src/modeling/ai/types.d.ts +2 -2
  34. package/build/src/modeling/ai/types.d.ts.map +1 -1
  35. package/build/src/modeling/ai/types.js.map +1 -1
  36. package/build/src/{amf → modeling/amf}/DataValueGenerator.d.ts +1 -1
  37. package/build/src/modeling/amf/DataValueGenerator.d.ts.map +1 -0
  38. package/build/src/{amf → modeling/amf}/DataValueGenerator.js +2 -3
  39. package/build/src/modeling/amf/DataValueGenerator.js.map +1 -0
  40. package/build/src/modeling/amf/ShapeGenerator.d.ts +20 -20
  41. package/build/src/modeling/amf/ShapeGenerator.d.ts.map +1 -1
  42. package/build/src/modeling/amf/ShapeGenerator.js +16 -18
  43. package/build/src/modeling/amf/ShapeGenerator.js.map +1 -1
  44. package/build/src/modeling/amf/core_types.d.ts +9 -0
  45. package/build/src/modeling/amf/core_types.d.ts.map +1 -0
  46. package/build/src/modeling/amf/core_types.js +45 -0
  47. package/build/src/modeling/amf/core_types.js.map +1 -0
  48. package/build/src/models/http-flows/LegacyTranslator.js +1 -1
  49. package/build/src/models/http-flows/LegacyTranslator.js.map +1 -1
  50. package/build/src/runtime/http-runner/HttpFlows.js +1 -1
  51. package/build/src/runtime/http-runner/HttpFlows.js.map +1 -1
  52. package/build/tsconfig.tsbuildinfo +1 -1
  53. package/eslint.config.js +0 -1
  54. package/package.json +11 -14
  55. package/src/events/EventTypes.ts +0 -2
  56. package/src/events/Events.ts +0 -2
  57. package/src/modeling/Bindings.ts +3 -3
  58. package/src/modeling/DomainAssociation.ts +5 -5
  59. package/src/modeling/DomainEntity.ts +3 -4
  60. package/src/modeling/DomainProperty.ts +3 -4
  61. package/src/modeling/ai/types.ts +2 -2
  62. package/src/{amf → modeling/amf}/DataValueGenerator.ts +3 -4
  63. package/src/modeling/amf/ShapeGenerator.ts +45 -61
  64. package/src/modeling/amf/core_types.ts +47 -0
  65. package/src/models/http-flows/LegacyTranslator.ts +1 -1
  66. package/src/runtime/http-runner/HttpFlows.ts +1 -1
  67. package/tests/unit/{amf → modeling/amf}/data_value_generator.spec.ts +2 -2
  68. package/tests/unit/modeling/amf/shape_generator.spec.ts +146 -167
  69. package/tests/unit/modeling/domain_asociation.spec.ts +13 -13
  70. package/tests/unit/runtime/runners/http_assertion_runner.spec.ts +1 -1
  71. package/tests/unit/runtime/runners/http_flow_runner.spec.ts +1 -1
  72. package/tests/unit/runtime/runners/project_runner.spec.ts +1 -1
  73. package/tests/unit/runtime/runners/request_runner.spec.ts +1 -1
  74. package/tests/unit/runtime/runners/serial_runner.spec.ts +1 -1
  75. package/build/src/amf/AmfMixin.d.ts +0 -396
  76. package/build/src/amf/AmfMixin.d.ts.map +0 -1
  77. package/build/src/amf/AmfMixin.js +0 -1138
  78. package/build/src/amf/AmfMixin.js.map +0 -1
  79. package/build/src/amf/AmfSerializer.d.ts +0 -137
  80. package/build/src/amf/AmfSerializer.d.ts.map +0 -1
  81. package/build/src/amf/AmfSerializer.js +0 -1947
  82. package/build/src/amf/AmfSerializer.js.map +0 -1
  83. package/build/src/amf/AmfTypes.d.ts +0 -25
  84. package/build/src/amf/AmfTypes.d.ts.map +0 -1
  85. package/build/src/amf/AmfTypes.js +0 -143
  86. package/build/src/amf/AmfTypes.js.map +0 -1
  87. package/build/src/amf/ApiExampleGenerator.d.ts +0 -40
  88. package/build/src/amf/ApiExampleGenerator.d.ts.map +0 -1
  89. package/build/src/amf/ApiExampleGenerator.js +0 -112
  90. package/build/src/amf/ApiExampleGenerator.js.map +0 -1
  91. package/build/src/amf/ApiMonacoSchemaGenerator.d.ts +0 -68
  92. package/build/src/amf/ApiMonacoSchemaGenerator.d.ts.map +0 -1
  93. package/build/src/amf/ApiMonacoSchemaGenerator.js +0 -248
  94. package/build/src/amf/ApiMonacoSchemaGenerator.js.map +0 -1
  95. package/build/src/amf/ApiSchemaGenerator.d.ts +0 -56
  96. package/build/src/amf/ApiSchemaGenerator.d.ts.map +0 -1
  97. package/build/src/amf/ApiSchemaGenerator.js +0 -94
  98. package/build/src/amf/ApiSchemaGenerator.js.map +0 -1
  99. package/build/src/amf/ApiSchemaValues.d.ts +0 -111
  100. package/build/src/amf/ApiSchemaValues.d.ts.map +0 -1
  101. package/build/src/amf/ApiSchemaValues.js +0 -463
  102. package/build/src/amf/ApiSchemaValues.js.map +0 -1
  103. package/build/src/amf/DataValueGenerator.d.ts.map +0 -1
  104. package/build/src/amf/DataValueGenerator.js.map +0 -1
  105. package/build/src/amf/Parsing.d.ts +0 -48
  106. package/build/src/amf/Parsing.d.ts.map +0 -1
  107. package/build/src/amf/Parsing.js +0 -2
  108. package/build/src/amf/Parsing.js.map +0 -1
  109. package/build/src/amf/Utils.d.ts +0 -37
  110. package/build/src/amf/Utils.d.ts.map +0 -1
  111. package/build/src/amf/Utils.js +0 -169
  112. package/build/src/amf/Utils.js.map +0 -1
  113. package/build/src/amf/data-node/DataNodeBase.d.ts +0 -34
  114. package/build/src/amf/data-node/DataNodeBase.d.ts.map +0 -1
  115. package/build/src/amf/data-node/DataNodeBase.js +0 -77
  116. package/build/src/amf/data-node/DataNodeBase.js.map +0 -1
  117. package/build/src/amf/data-node/JsonDataNodeGenerator.d.ts +0 -15
  118. package/build/src/amf/data-node/JsonDataNodeGenerator.d.ts.map +0 -1
  119. package/build/src/amf/data-node/JsonDataNodeGenerator.js +0 -23
  120. package/build/src/amf/data-node/JsonDataNodeGenerator.js.map +0 -1
  121. package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.d.ts +0 -14
  122. package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.d.ts.map +0 -1
  123. package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.js +0 -48
  124. package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.js.map +0 -1
  125. package/build/src/amf/data-node/XmlDataNodeGenerator.d.ts +0 -22
  126. package/build/src/amf/data-node/XmlDataNodeGenerator.d.ts.map +0 -1
  127. package/build/src/amf/data-node/XmlDataNodeGenerator.js +0 -34
  128. package/build/src/amf/data-node/XmlDataNodeGenerator.js.map +0 -1
  129. package/build/src/amf/definitions/Amf.d.ts +0 -363
  130. package/build/src/amf/definitions/Amf.d.ts.map +0 -1
  131. package/build/src/amf/definitions/Amf.js +0 -3
  132. package/build/src/amf/definitions/Amf.js.map +0 -1
  133. package/build/src/amf/definitions/Api.d.ts +0 -383
  134. package/build/src/amf/definitions/Api.d.ts.map +0 -1
  135. package/build/src/amf/definitions/Api.js +0 -2
  136. package/build/src/amf/definitions/Api.js.map +0 -1
  137. package/build/src/amf/definitions/Base.d.ts +0 -12
  138. package/build/src/amf/definitions/Base.d.ts.map +0 -1
  139. package/build/src/amf/definitions/Base.js +0 -2
  140. package/build/src/amf/definitions/Base.js.map +0 -1
  141. package/build/src/amf/definitions/Namespace.d.ts +0 -327
  142. package/build/src/amf/definitions/Namespace.d.ts.map +0 -1
  143. package/build/src/amf/definitions/Namespace.js +0 -346
  144. package/build/src/amf/definitions/Namespace.js.map +0 -1
  145. package/build/src/amf/definitions/Shapes.d.ts +0 -312
  146. package/build/src/amf/definitions/Shapes.d.ts.map +0 -1
  147. package/build/src/amf/definitions/Shapes.js +0 -87
  148. package/build/src/amf/definitions/Shapes.js.map +0 -1
  149. package/build/src/amf/models/AmfDataNode.d.ts +0 -67
  150. package/build/src/amf/models/AmfDataNode.d.ts.map +0 -1
  151. package/build/src/amf/models/AmfDataNode.js +0 -192
  152. package/build/src/amf/models/AmfDataNode.js.map +0 -1
  153. package/build/src/amf/shape/ShapeBase.d.ts +0 -74
  154. package/build/src/amf/shape/ShapeBase.d.ts.map +0 -1
  155. package/build/src/amf/shape/ShapeBase.js +0 -93
  156. package/build/src/amf/shape/ShapeBase.js.map +0 -1
  157. package/build/src/amf/shape/ShapeJsonSchemaGenerator.d.ts +0 -47
  158. package/build/src/amf/shape/ShapeJsonSchemaGenerator.d.ts.map +0 -1
  159. package/build/src/amf/shape/ShapeJsonSchemaGenerator.js +0 -420
  160. package/build/src/amf/shape/ShapeJsonSchemaGenerator.js.map +0 -1
  161. package/build/src/amf/shape/ShapeXmlSchemaGenerator.d.ts +0 -85
  162. package/build/src/amf/shape/ShapeXmlSchemaGenerator.d.ts.map +0 -1
  163. package/build/src/amf/shape/ShapeXmlSchemaGenerator.js +0 -852
  164. package/build/src/amf/shape/ShapeXmlSchemaGenerator.js.map +0 -1
  165. package/build/src/events/amf/AmfEventTypes.d.ts +0 -7
  166. package/build/src/events/amf/AmfEventTypes.d.ts.map +0 -1
  167. package/build/src/events/amf/AmfEventTypes.js +0 -7
  168. package/build/src/events/amf/AmfEventTypes.js.map +0 -1
  169. package/build/src/events/amf/AmfEvents.d.ts +0 -34
  170. package/build/src/events/amf/AmfEvents.d.ts.map +0 -1
  171. package/build/src/events/amf/AmfEvents.js +0 -63
  172. package/build/src/events/amf/AmfEvents.js.map +0 -1
  173. package/build/src/mocking/RandExp.d.ts +0 -55
  174. package/build/src/mocking/RandExp.d.ts.map +0 -1
  175. package/build/src/mocking/RandExp.js +0 -302
  176. package/build/src/mocking/RandExp.js.map +0 -1
  177. package/build/src/mocking/lib/ret.d.ts +0 -16
  178. package/build/src/mocking/lib/ret.d.ts.map +0 -1
  179. package/build/src/mocking/lib/ret.js +0 -284
  180. package/build/src/mocking/lib/ret.js.map +0 -1
  181. package/data/apis/APIC-187/APIC-187.raml +0 -21
  182. package/data/apis/APIC-187/dataType.raml +0 -132
  183. package/data/apis/APIC-187/example.raml +0 -84
  184. package/data/apis/APIC-188/APIC-188.raml +0 -21
  185. package/data/apis/APIC-188/dataType.raml +0 -132
  186. package/data/apis/APIC-188/example.raml +0 -84
  187. package/data/apis/APIC-233/APIC-233.raml +0 -15
  188. package/data/apis/APIC-391/APIC-391.raml +0 -44
  189. package/data/apis/APIC-391/examples/post-body-request-example.raml +0 -7
  190. package/data/apis/APIC-483/APIC-483.raml +0 -16
  191. package/data/apis/APIC-483/example/list-of-bank-succ.json +0 -32
  192. package/data/apis/APIC-483/schema/response-retrieve-list-bank.json +0 -68
  193. package/data/apis/APIC-487/APIC-487.raml +0 -36
  194. package/data/apis/APIC-655/APIC-655.raml +0 -44
  195. package/data/apis/APIC-655/delivery.json +0 -12
  196. package/data/apis/APIC-689/APIC-689.raml +0 -20
  197. package/data/apis/APIC-690/APIC-690.raml +0 -17
  198. package/data/apis/APIC-690/datatypes/Address.raml +0 -10
  199. package/data/apis/APIC-690/datatypes/Customer.raml +0 -17
  200. package/data/apis/APIC-690/examples/CustomerExample2.raml +0 -17
  201. package/data/apis/APIC-690/examples/CustomersExample.raml +0 -34
  202. package/data/apis/SE-10469/Purchase-Order-oagis-id-dd32f9c6c01048a19e15c423c9c741ae.json +0 -1383
  203. package/data/apis/SE-10469/SE-10469.raml +0 -11
  204. package/data/apis/SE-13092/Examples/PersonExample.raml +0 -7
  205. package/data/apis/SE-13092/SE-13092.raml +0 -37
  206. package/data/apis/SE-13092/datatypes/Address.raml +0 -5
  207. package/data/apis/SE-13092/datatypes/InlineType.raml +0 -5
  208. package/data/apis/SE-13092/datatypes/Person.raml +0 -15
  209. package/data/apis/SE-22063/SE-22063.raml +0 -14
  210. package/data/apis/SE-22063/stock.raml +0 -41
  211. package/data/apis/amf-helper-api/amf-helper-api.raml +0 -1024
  212. package/data/apis/amf-helper-api/examples/comment-example.json +0 -42
  213. package/data/apis/amf-helper-api/examples/commentCreateRequest-example.json +0 -7
  214. package/data/apis/amf-helper-api/examples/commentList-example.json +0 -48
  215. package/data/apis/amf-helper-api/examples/person.json +0 -14
  216. package/data/apis/amf-helper-api/examples/person.raml +0 -13
  217. package/data/apis/amf-helper-api/examples/person.xml +0 -14
  218. package/data/apis/amf-helper-api/libraries/comment-lib.raml +0 -143
  219. package/data/apis/amf-helper-api/library.raml +0 -7
  220. package/data/apis/amf-helper-api/schemas/person.json +0 -104
  221. package/data/apis/amf-helper-api/schemas/person.xsd +0 -26
  222. package/data/apis/amf-helper-api/traits/file.raml +0 -33
  223. package/data/apis/amf-helper-api/traits/pagination.raml +0 -80
  224. package/data/apis/amf-helper-api/traits/results.raml +0 -19
  225. package/data/apis/amf-helper-api/traits/visibility.raml +0 -14
  226. package/data/apis/amf-helper-api/types/app-person.raml +0 -101
  227. package/data/apis/amf-helper-api/types/dimensions.raml +0 -24
  228. package/data/apis/amf-helper-api/types/external-type.raml +0 -7
  229. package/data/apis/amf-helper-api/types/image.raml +0 -23
  230. package/data/apis/amf-helper-api/types/product.raml +0 -52
  231. package/data/apis/amf-helper-api/types/resource.raml +0 -11
  232. package/data/apis/amf-helper-api/types/standard-request.raml +0 -50
  233. package/data/apis/amf-helper-api/types/user.raml +0 -37
  234. package/data/apis/arc-demo-api/arc-demo-api.raml +0 -468
  235. package/data/apis/arc-demo-api/examples/e400.xml +0 -4
  236. package/data/apis/arc-demo-api/examples/e401.xml +0 -4
  237. package/data/apis/arc-demo-api/examples/e404.xml +0 -4
  238. package/data/apis/arc-demo-api/examples/image.xml +0 -5
  239. package/data/apis/arc-demo-api/examples/messages-example.json +0 -22
  240. package/data/apis/arc-demo-api/examples/messages-sent-example.json +0 -15
  241. package/data/apis/arc-demo-api/examples/person.json +0 -14
  242. package/data/apis/arc-demo-api/examples/person.url.encoded +0 -1
  243. package/data/apis/arc-demo-api/examples/person.xml +0 -14
  244. package/data/apis/arc-demo-api/examples/product.xml +0 -9
  245. package/data/apis/arc-demo-api/library.raml +0 -36
  246. package/data/apis/arc-demo-api/resourceTypes/app-person.raml +0 -49
  247. package/data/apis/arc-demo-api/resourceTypes/example-types.raml +0 -45
  248. package/data/apis/arc-demo-api/resourceTypes/image.raml +0 -23
  249. package/data/apis/arc-demo-api/resourceTypes/message-sent-type.raml +0 -23
  250. package/data/apis/arc-demo-api/resourceTypes/message-type.raml +0 -33
  251. package/data/apis/arc-demo-api/resourceTypes/product.raml +0 -52
  252. package/data/apis/arc-demo-api/resourceTypes/resource.raml +0 -11
  253. package/data/apis/arc-demo-api/schemas/error-response.xsd +0 -11
  254. package/data/apis/arc-demo-api/schemas/image.xsd +0 -11
  255. package/data/apis/arc-demo-api/schemas/person.json +0 -104
  256. package/data/apis/arc-demo-api/schemas/person.xsd +0 -26
  257. package/data/apis/arc-demo-api/schemas/product.xsd +0 -17
  258. package/data/apis/arc-demo-api/securitySchemes/basic.raml +0 -5
  259. package/data/apis/arc-demo-api/securitySchemes/oauth_2_0.raml +0 -29
  260. package/data/apis/arc-demo-api/securitySchemes/x-custom.raml +0 -26
  261. package/data/apis/arc-demo-api/traits/adminable.raml +0 -23
  262. package/data/apis/arc-demo-api/traits/pagination.raml +0 -83
  263. package/data/apis/arc-demo-api/traits/rate-limited.raml +0 -9
  264. package/data/apis/async-api/async-api.yaml +0 -96
  265. package/data/apis/example-generator-api/contact-email-example.raml +0 -6
  266. package/data/apis/example-generator-api/contact-example.raml +0 -5
  267. package/data/apis/example-generator-api/contact-fax-example.raml +0 -5
  268. package/data/apis/example-generator-api/contact-website-example.raml +0 -2
  269. package/data/apis/example-generator-api/example-1.raml +0 -6
  270. package/data/apis/example-generator-api/example-2.raml +0 -9
  271. package/data/apis/example-generator-api/example-3.raml +0 -4
  272. package/data/apis/example-generator-api/example-4.raml +0 -2
  273. package/data/apis/example-generator-api/example-5.raml +0 -4
  274. package/data/apis/example-generator-api/example-6.raml +0 -2
  275. package/data/apis/example-generator-api/example-7.raml +0 -5
  276. package/data/apis/example-generator-api/example-generator-api.raml +0 -423
  277. package/data/apis/example-generator-api/example.json +0 -14
  278. package/data/apis/example-generator-api/example.xml +0 -15
  279. package/data/apis/example-generator-api/example.xsd +0 -26
  280. package/data/apis/example-generator-api/examples/employee.raml +0 -7
  281. package/data/apis/example-generator-api/examples/employees.raml +0 -7
  282. package/data/apis/example-generator-api/linked-named-example.raml +0 -21
  283. package/data/apis/example-generator-api/named-example-with-link.raml +0 -5
  284. package/data/apis/example-generator-api/named-example.raml +0 -9
  285. package/data/apis/example-generator-api/user-json-example.raml +0 -17
  286. package/data/apis/example-generator-api/user-raml-example.raml +0 -37
  287. package/data/apis/example-generator-api/user.json +0 -8
  288. package/data/apis/example-generator-api/user.raml +0 -18
  289. package/data/apis/example-generator-api/users-json-example.raml +0 -17
  290. package/data/apis/example-generator-api/users-raml-example.raml +0 -32
  291. package/data/apis/example-generator-api/users.json +0 -8
  292. package/data/apis/expanded-api/expanded-api.raml +0 -8
  293. package/data/apis/flattened-api/flattened-api.raml +0 -8
  294. package/data/apis/multiple-servers/multiple-servers.yaml +0 -112
  295. package/data/apis/oas-3-api/oas-3-api.yaml +0 -356
  296. package/data/apis/oas-date/oas-date.yaml +0 -28
  297. package/data/apis/oas-types/oas-types.yaml +0 -159
  298. package/data/apis/oas-unions/oas-unions.yaml +0 -75
  299. package/data/apis/petstore/petstore.yaml +0 -954
  300. package/data/apis/raml-date/raml-date.raml +0 -28
  301. package/data/apis/recursive/recursive.raml +0 -14
  302. package/data/apis/schema-api/examples/person.json +0 -14
  303. package/data/apis/schema-api/examples/person.raml +0 -14
  304. package/data/apis/schema-api/examples/person.url.encoded +0 -1
  305. package/data/apis/schema-api/examples/person.xml +0 -14
  306. package/data/apis/schema-api/library/demo-types.raml +0 -43
  307. package/data/apis/schema-api/schema-api.raml +0 -656
  308. package/data/apis/schema-api/schemas/person.json +0 -104
  309. package/data/apis/schema-api/schemas/person.xsd +0 -26
  310. package/data/apis/schema-api/types/DemoPerson.raml +0 -67
  311. package/data/apis/secured-api/oauth-2-custom-settings.raml +0 -143
  312. package/data/apis/secured-api/oauth2-header-delivery.raml +0 -13
  313. package/data/apis/secured-api/oauth2-no-delivery.raml +0 -8
  314. package/data/apis/secured-api/oauth2-no-grants.raml +0 -12
  315. package/data/apis/secured-api/oauth2-pkce.raml +0 -13
  316. package/data/apis/secured-api/oauth2-query-delivery.raml +0 -13
  317. package/data/apis/secured-api/oauth_1_0.raml +0 -8
  318. package/data/apis/secured-api/oauth_1_0_no-settings.raml +0 -3
  319. package/data/apis/secured-api/oauth_1_0_no-signature.raml +0 -7
  320. package/data/apis/secured-api/oauth_1_0_signature.raml +0 -8
  321. package/data/apis/secured-api/passthrough-querystring.raml +0 -16
  322. package/data/apis/secured-api/passthrough.raml +0 -24
  323. package/data/apis/secured-api/secured-api.raml +0 -231
  324. package/data/apis/secured-api/x-custom.raml +0 -33
  325. package/data/apis/secured-api/x-other.raml +0 -29
  326. package/data/apis/secured-api/x-query-string.raml +0 -16
  327. package/data/apis/tracked-examples/datatypes/employee.raml +0 -5
  328. package/data/apis/tracked-examples/examples/employee.raml +0 -4
  329. package/data/apis/tracked-examples/examples/employees.raml +0 -8
  330. package/data/apis/tracked-examples/tracked-to-linked.raml +0 -28
  331. package/data/model.js +0 -129
  332. package/data/models/APIC-187.json +0 -11416
  333. package/data/models/APIC-188.json +0 -11416
  334. package/data/models/APIC-233.json +0 -539
  335. package/data/models/APIC-391.json +0 -1903
  336. package/data/models/APIC-483.json +0 -3110
  337. package/data/models/APIC-487.json +0 -1225
  338. package/data/models/APIC-655.json +0 -3145
  339. package/data/models/APIC-689.json +0 -797
  340. package/data/models/APIC-690.json +0 -5992
  341. package/data/models/SE-10469.json +0 -22898
  342. package/data/models/SE-13092.json +0 -2769
  343. package/data/models/SE-22063.json +0 -2314
  344. package/data/models/amf-helper-api.json +0 -84457
  345. package/data/models/arc-demo-api.json +0 -52041
  346. package/data/models/async-api.json +0 -3227
  347. package/data/models/example-generator-api.json +0 -45209
  348. package/data/models/expanded-api.json +0 -251
  349. package/data/models/flattened-api.json +0 -251
  350. package/data/models/multiple-servers.json +0 -2769
  351. package/data/models/oas-3-api.json +0 -10590
  352. package/data/models/oas-date.json +0 -637
  353. package/data/models/oas-types.json +0 -5352
  354. package/data/models/oas-unions.json +0 -1935
  355. package/data/models/petstore.json +0 -27712
  356. package/data/models/raml-date.json +0 -1114
  357. package/data/models/recursive.json +0 -610
  358. package/data/models/schema-api.json +0 -35527
  359. package/data/models/secured-api.json +0 -21071
  360. package/data/models/tracked-to-linked.json +0 -1914
  361. package/src/amf/AmfMixin.ts +0 -1726
  362. package/src/amf/AmfSerializer.ts +0 -2358
  363. package/src/amf/AmfTypes.ts +0 -147
  364. package/src/amf/ApiExampleGenerator.ts +0 -122
  365. package/src/amf/ApiMonacoSchemaGenerator.ts +0 -332
  366. package/src/amf/ApiSchemaGenerator.ts +0 -115
  367. package/src/amf/ApiSchemaValues.ts +0 -509
  368. package/src/amf/Parsing.ts +0 -50
  369. package/src/amf/Utils.ts +0 -172
  370. package/src/amf/data-node/DataNodeBase.ts +0 -83
  371. package/src/amf/data-node/JsonDataNodeGenerator.ts +0 -24
  372. package/src/amf/data-node/README.md +0 -3
  373. package/src/amf/data-node/UrlEncodedDataNodeGenerator.ts +0 -49
  374. package/src/amf/data-node/XmlDataNodeGenerator.ts +0 -46
  375. package/src/amf/definitions/Amf.ts +0 -440
  376. package/src/amf/definitions/Api.ts +0 -445
  377. package/src/amf/definitions/Base.ts +0 -13
  378. package/src/amf/definitions/Namespace.ts +0 -357
  379. package/src/amf/definitions/Shapes.ts +0 -438
  380. package/src/amf/models/AmfDataNode.ts +0 -210
  381. package/src/amf/shape/README.md +0 -4
  382. package/src/amf/shape/ShapeBase.ts +0 -174
  383. package/src/amf/shape/ShapeJsonSchemaGenerator.ts +0 -457
  384. package/src/amf/shape/ShapeXmlSchemaGenerator.ts +0 -933
  385. package/src/events/amf/AmfEventTypes.ts +0 -6
  386. package/src/events/amf/AmfEvents.ts +0 -78
  387. package/src/mocking/RandExp.ts +0 -335
  388. package/src/mocking/lib/ret.ts +0 -279
  389. package/tests/unit/amf/APIC-187.spec.ts +0 -41
  390. package/tests/unit/amf/APIC-188.spec.ts +0 -30
  391. package/tests/unit/amf/APIC-233.spec.ts +0 -32
  392. package/tests/unit/amf/APIC-391.spec.ts +0 -39
  393. package/tests/unit/amf/APIC-487.spec.ts +0 -44
  394. package/tests/unit/amf/APIC-655.spec.ts +0 -41
  395. package/tests/unit/amf/APIC-689.spec.ts +0 -28
  396. package/tests/unit/amf/APIC-690.spec.ts +0 -93
  397. package/tests/unit/amf/AmfLoader.ts +0 -538
  398. package/tests/unit/amf/AmfMixin.spec.ts +0 -1707
  399. package/tests/unit/amf/ApiExampleGenerator.spec.ts +0 -250
  400. package/tests/unit/amf/ApiMonacoSchemaGenerator.spec.ts +0 -183
  401. package/tests/unit/amf/ApiSchemaValues.spec.ts +0 -602
  402. package/tests/unit/amf/Namepsace.spec.ts +0 -494
  403. package/tests/unit/amf/SE-10469.spec.ts +0 -35
  404. package/tests/unit/amf/SE-13092.spec.ts +0 -64
  405. package/tests/unit/amf/SE-22063.spec.ts +0 -45
  406. package/tests/unit/amf/raml-examples.spec.ts +0 -43
  407. package/tests/unit/amf/schema_gen_array.spec.ts +0 -199
  408. package/tests/unit/amf/schema_gen_oas.spec.ts +0 -140
  409. package/tests/unit/amf/schema_gen_object.spec.ts +0 -279
  410. package/tests/unit/amf/schema_gen_scalar.spec.ts +0 -143
  411. package/tests/unit/amf/schema_gen_union.spec.ts +0 -401
  412. package/tests/unit/amf/schema_gen_unknown.spec.ts +0 -42
  413. package/tests/unit/amf/schema_gen_xml.spec.ts +0 -726
  414. package/tests/unit/amf/serializer/APIC-483.spec.ts +0 -36
  415. package/tests/unit/amf/serializer/Anotations.spec.ts +0 -50
  416. package/tests/unit/amf/serializer/Api.spec.ts +0 -210
  417. package/tests/unit/amf/serializer/Documentation.spec.ts +0 -52
  418. package/tests/unit/amf/serializer/Endpoints.spec.ts +0 -172
  419. package/tests/unit/amf/serializer/Operations.spec.ts +0 -330
  420. package/tests/unit/amf/serializer/Parameters.spec.ts +0 -149
  421. package/tests/unit/amf/serializer/PayloadExamples.spec.ts +0 -152
  422. package/tests/unit/amf/serializer/Security.spec.ts +0 -626
  423. package/tests/unit/amf/serializer/Server.spec.ts +0 -78
  424. package/tests/unit/amf/serializer/Shapes.spec.ts +0 -304
  425. package/tests/unit/amf/serializer/SourceMaps.spec.ts +0 -52
  426. package/tests/unit/amf/shapes/ShapeXmlSchemaGenerator.spec.ts +0 -28
  427. package/tests/unit/amf/tracked-to-linked.spec.ts +0 -90
  428. package/tests/unit/amf/xml-data-processing.spec.ts +0 -217
  429. package/tests/unit/events/amf.spec.ts +0 -151
@@ -1,1383 +0,0 @@
1
- {
2
- "$schema" : "http://json-schema.org/draft-04/schema#",
3
- "id" : "http://www.openapplications.org/oagis/10",
4
- "required" : [ "purchaseOrder" ],
5
- "additionalProperties" : false,
6
- "properties" : {
7
- "purchaseOrder" : {
8
- "id" : "#purchaseOrder",
9
- "type" : "object",
10
- "additionalProperties" : false,
11
- "properties" : {
12
- "typeCode" : {
13
- "description" : "valid types include DirectShip, Normal, TransferOrder (e.g., the PO side of the transfer order)",
14
- "$ref" : "#/definitions/token"
15
- },
16
- "actionCode" : {
17
- "description" : "options include Original, Change, Cancel",
18
- "$ref" : "#/definitions/token"
19
- },
20
- "purchaseOrderHeader" : {
21
- "type" : "object",
22
- "additionalProperties" : false,
23
- "properties" : {
24
- "identifier" : {
25
- "description" : "This is the PurchaseOrder identifier generated by the sender's business application.",
26
- "$ref" : "#/definitions/normalizedString"
27
- },
28
- "documentIdentifierSet" : {
29
- "type" : "array",
30
- "items" : {
31
- "type" : "object",
32
- "required" : [ "identifier" ],
33
- "additionalProperties" : false,
34
- "properties" : {
35
- "identifier" : {
36
- "description" : "This is an alternate identifier for the PurchaseOrder, requires the use of the typeCode qualifier. This could be a system level key.",
37
- "type" : "array",
38
- "minItems" : 1,
39
- "items" : {
40
- "type" : "object",
41
- "required" : [ "content", "typeCode" ],
42
- "additionalProperties" : false,
43
- "properties" : {
44
- "content" : {
45
- "$ref" : "#/definitions/normalizedString"
46
- },
47
- "typeCode" : {
48
- "$ref" : "#/definitions/token"
49
- },
50
- "schemeAgencyIdentifier" : {
51
- "$ref" : "#/definitions/token"
52
- }
53
- }
54
- }
55
- }
56
- }
57
- }
58
- },
59
- "lastModificationDateTime" : {
60
- "description" : "ISO 8601 formatted update timestamp for the document, if the action code is changed or deleted. \r\nExample - '2018-01-02T10:08:11.000-06:00'",
61
- "$ref" : "#/definitions/token"
62
- },
63
- "description" : {
64
- "$ref" : "#/definitions/string"
65
- },
66
- "note" : {
67
- "description" : "This is a note that may be placed on the purchase order by the sender, such as special packing, messages, or other instructions that cannot normally be mapped into other fields. This should not be overloaded when existing fields can be mapped.",
68
- "$ref" : "#/definitions/string"
69
- },
70
- "status" : {
71
- "type" : "array",
72
- "items" : {
73
- "type" : "object",
74
- "additionalProperties" : false,
75
- "properties" : {
76
- "code" : {
77
- "description" : "codified value for the status",
78
- "$ref" : "#/definitions/normalizedString"
79
- },
80
- "description" : {
81
- "description" : "Description of the status code sent.",
82
- "$ref" : "#/definitions/string"
83
- },
84
- "reasonCode" : {
85
- "description" : "codified reason for the reason the status code has been applied or the if the effective time period has changed.",
86
- "$ref" : "#/definitions/normalizedString"
87
- },
88
- "reason" : {
89
- "description" : "additional textual reason for the reason the status code has been applied or the if the effective time period has changed.",
90
- "type" : "array",
91
- "items" : {
92
- "$ref" : "#/definitions/string"
93
- }
94
- },
95
- "effectiveTimePeriod" : {
96
- "type" : "object",
97
- "additionalProperties" : false,
98
- "properties" : {
99
- "startDateTime" : {
100
- "description" : "Effective start time for which the order should be fulfilled",
101
- "$ref" : "#/definitions/token"
102
- },
103
- "endDateTime" : {
104
- "description" : "Effective end time for which the order should be fulfilled",
105
- "$ref" : "#/definitions/token"
106
- }
107
- }
108
- }
109
- }
110
- }
111
- },
112
- "customerParty" : {
113
- "type" : "object",
114
- "additionalProperties" : false,
115
- "properties" : {
116
- "identifier" : {
117
- "type" : "array",
118
- "items" : {
119
- "$ref" : "#/definitions/normalizedString"
120
- }
121
- },
122
- "accountIdentifier" : {
123
- "type" : "array",
124
- "items" : {
125
- "$ref" : "#/definitions/normalizedString"
126
- }
127
- },
128
- "name" : {
129
- "type" : "array",
130
- "items" : {
131
- "$ref" : "#/definitions/string"
132
- }
133
- },
134
- "location" : {
135
- "type" : "array",
136
- "items" : {
137
- "type" : "object",
138
- "additionalProperties" : false,
139
- "properties" : {
140
- "contact" : {
141
- "description" : "This is the customer representative placing the order, including name, phone and email contact information",
142
- "type" : "array",
143
- "items" : {
144
- "type" : "object",
145
- "additionalProperties" : false,
146
- "properties" : {
147
- "personName" : {
148
- "type" : "array",
149
- "items" : {
150
- "type" : "object",
151
- "additionalProperties" : false,
152
- "properties" : {
153
- "formattedName" : {
154
- "description" : "Formatted string; <familyName>, <givenName> <middleName>\r\nIf you can populate these fields directly, use givenName, familyName, middleName instead.",
155
- "$ref" : "#/definitions/string"
156
- },
157
- "givenName" : {
158
- "$ref" : "#/definitions/string"
159
- },
160
- "middleName" : {
161
- "type" : "array",
162
- "items" : {
163
- "$ref" : "#/definitions/string"
164
- }
165
- },
166
- "familyName" : {
167
- "type" : "array",
168
- "items" : {
169
- "$ref" : "#/definitions/string"
170
- }
171
- }
172
- }
173
- }
174
- },
175
- "telephoneCommunication" : {
176
- "type" : "array",
177
- "items" : {
178
- "type" : "object",
179
- "additionalProperties" : false,
180
- "properties" : {
181
- "identifier" : {
182
- "type" : "array",
183
- "items" : {
184
- "$ref" : "#/definitions/normalizedString"
185
- }
186
- }
187
- }
188
- }
189
- },
190
- "emailAddressCommunication" : {
191
- "type" : "array",
192
- "items" : {
193
- "type" : "object",
194
- "additionalProperties" : false,
195
- "properties" : {
196
- "identifier" : {
197
- "type" : "array",
198
- "items" : {
199
- "$ref" : "#/definitions/normalizedString"
200
- }
201
- }
202
- }
203
- }
204
- }
205
- }
206
- }
207
- }
208
- }
209
- }
210
- }
211
- }
212
- },
213
- "supplierParty" : {
214
- "type" : "object",
215
- "additionalProperties" : false,
216
- "properties" : {
217
- "identifier" : {
218
- "type" : "array",
219
- "items" : {
220
- "$ref" : "#/definitions/normalizedString"
221
- }
222
- },
223
- "accountIdentifier" : {
224
- "type" : "array",
225
- "items" : {
226
- "$ref" : "#/definitions/normalizedString"
227
- }
228
- },
229
- "name" : {
230
- "type" : "array",
231
- "items" : {
232
- "$ref" : "#/definitions/string"
233
- }
234
- }
235
- }
236
- },
237
- "shipToParty" : {
238
- "type" : "object",
239
- "additionalProperties" : false,
240
- "properties" : {
241
- "identifier" : {
242
- "type" : "array",
243
- "items" : {
244
- "$ref" : "#/definitions/normalizedString"
245
- }
246
- },
247
- "location" : {
248
- "type" : "array",
249
- "items" : {
250
- "type" : "object",
251
- "additionalProperties" : false,
252
- "properties" : {
253
- "identifier" : {
254
- "type" : "array",
255
- "items" : {
256
- "$ref" : "#/definitions/normalizedString"
257
- }
258
- },
259
- "directions" : {
260
- "description" : "Directions for the location, especially in the case of direct ship",
261
- "type" : "array",
262
- "items" : {
263
- "$ref" : "#/definitions/string"
264
- }
265
- },
266
- "coordinate" : {
267
- "type" : "array",
268
- "items" : {
269
- "type" : "object",
270
- "additionalProperties" : false,
271
- "properties" : {
272
- "uri" : {
273
- "description" : "URI link to a mapping service showing the exact location on a map",
274
- "type" : "array",
275
- "items" : {
276
- "$ref" : "#/definitions/normalizedString"
277
- }
278
- },
279
- "latitudeMeasure" : {
280
- "description" : "Lat",
281
- "$ref" : "#/definitions/decimal"
282
- },
283
- "longitudeMeasure" : {
284
- "description" : "long",
285
- "$ref" : "#/definitions/decimal"
286
- }
287
- }
288
- }
289
- },
290
- "contact" : {
291
- "description" : "This is the key contact at the ShipTo location, in case there are delivery questions.",
292
- "type" : "array",
293
- "items" : {
294
- "type" : "object",
295
- "additionalProperties" : false,
296
- "properties" : {
297
- "identifier" : {
298
- "type" : "array",
299
- "items" : {
300
- "$ref" : "#/definitions/normalizedString"
301
- }
302
- },
303
- "personName" : {
304
- "type" : "array",
305
- "items" : {
306
- "type" : "object",
307
- "additionalProperties" : false,
308
- "properties" : {
309
- "formattedName" : {
310
- "description" : "Formatted string; <familyName>, <givenName> <middleName>\r\nIf you can populate these fields directly, use givenName, familyName, middleName instead.",
311
- "$ref" : "#/definitions/string"
312
- },
313
- "givenName" : {
314
- "$ref" : "#/definitions/string"
315
- },
316
- "middleName" : {
317
- "type" : "array",
318
- "items" : {
319
- "$ref" : "#/definitions/string"
320
- }
321
- },
322
- "familyName" : {
323
- "type" : "array",
324
- "items" : {
325
- "$ref" : "#/definitions/string"
326
- }
327
- }
328
- }
329
- }
330
- },
331
- "telephoneCommunication" : {
332
- "type" : "array",
333
- "items" : {
334
- "type" : "object",
335
- "additionalProperties" : false,
336
- "properties" : {
337
- "identifier" : {
338
- "type" : "array",
339
- "items" : {
340
- "$ref" : "#/definitions/normalizedString"
341
- }
342
- }
343
- }
344
- }
345
- },
346
- "emailAddressCommunication" : {
347
- "type" : "array",
348
- "items" : {
349
- "type" : "object",
350
- "additionalProperties" : false,
351
- "properties" : {
352
- "identifier" : {
353
- "type" : "array",
354
- "items" : {
355
- "$ref" : "#/definitions/normalizedString"
356
- }
357
- }
358
- }
359
- }
360
- }
361
- }
362
- }
363
- },
364
- "physicalAddress" : {
365
- "description" : "This is the physical address for the shipment",
366
- "type" : "array",
367
- "items" : {
368
- "type" : "object",
369
- "additionalProperties" : false,
370
- "properties" : {
371
- "identifier" : {
372
- "type" : "array",
373
- "items" : {
374
- "$ref" : "#/definitions/normalizedString"
375
- }
376
- },
377
- "name" : {
378
- "type" : "array",
379
- "items" : {
380
- "$ref" : "#/definitions/string"
381
- }
382
- },
383
- "addressLine" : {
384
- "type" : "array",
385
- "items" : {
386
- "type" : "object",
387
- "required" : [ "content" ],
388
- "additionalProperties" : false,
389
- "properties" : {
390
- "content" : {
391
- "$ref" : "#/definitions/string"
392
- },
393
- "sequenceNumberNumber" : {
394
- "$ref" : "#/definitions/integer"
395
- }
396
- }
397
- }
398
- },
399
- "deliveryPointIdentifier" : {
400
- "description" : "delivery point may be a loading dock, etc.",
401
- "type" : "array",
402
- "items" : {
403
- "$ref" : "#/definitions/normalizedString"
404
- }
405
- },
406
- "cityName" : {
407
- "$ref" : "#/definitions/string"
408
- },
409
- "countrySubDivisionCode" : {
410
- "description" : "Two character state code in the United States, Province in Canada, etc. See ISO 3166-2.",
411
- "type" : "array",
412
- "items" : {
413
- "$ref" : "#/definitions/token"
414
- }
415
- },
416
- "countryCode" : {
417
- "description" : "ISO ALPHA-2 two character country code see countrycode.org",
418
- "$ref" : "#/definitions/token"
419
- },
420
- "postalCode" : {
421
- "$ref" : "#/definitions/normalizedString"
422
- }
423
- }
424
- }
425
- },
426
- "availableTimePeriod" : {
427
- "type" : "array",
428
- "items" : {
429
- "type" : "object",
430
- "additionalProperties" : false,
431
- "properties" : {
432
- "startTime" : {
433
- "description" : "Start time for shipment window",
434
- "$ref" : "#/definitions/token"
435
- },
436
- "endTime" : {
437
- "description" : "End time for shipment window",
438
- "$ref" : "#/definitions/token"
439
- }
440
- }
441
- }
442
- },
443
- "glnid" : {
444
- "description" : "GS1 global location identifier",
445
- "$ref" : "#/definitions/normalizedString"
446
- }
447
- }
448
- }
449
- }
450
- }
451
- },
452
- "contractReference" : {
453
- "type" : "object",
454
- "additionalProperties" : false,
455
- "properties" : {
456
- "identifier" : {
457
- "$ref" : "#/definitions/normalizedString"
458
- }
459
- }
460
- },
461
- "totalAmount" : {
462
- "description" : "This is the total amount of the purchase order, which is the sum of each purchase order lines, plus calculated tax.",
463
- "type" : "object",
464
- "required" : [ "content" ],
465
- "additionalProperties" : false,
466
- "properties" : {
467
- "content" : {
468
- "$ref" : "#/definitions/decimal"
469
- },
470
- "typeCode" : {
471
- "$ref" : "#/definitions/token"
472
- },
473
- "currencyCode" : {
474
- "$ref" : "#/definitions/token"
475
- }
476
- }
477
- },
478
- "billToParty" : {
479
- "type" : "object",
480
- "additionalProperties" : false,
481
- "properties" : {
482
- "identifier" : {
483
- "description" : "Identifier for the BillTo party",
484
- "type" : "array",
485
- "items" : {
486
- "type" : "object",
487
- "required" : [ "content" ],
488
- "additionalProperties" : false,
489
- "properties" : {
490
- "content" : {
491
- "$ref" : "#/definitions/normalizedString"
492
- },
493
- "typeCode" : {
494
- "$ref" : "#/definitions/token"
495
- },
496
- "schemeAgencyIdentifier" : {
497
- "$ref" : "#/definitions/token"
498
- }
499
- }
500
- }
501
- },
502
- "taxIdentifier" : {
503
- "type" : "array",
504
- "items" : {
505
- "$ref" : "#/definitions/normalizedString"
506
- }
507
- },
508
- "dunsid" : {
509
- "$ref" : "#/definitions/normalizedString"
510
- },
511
- "accountIdentifier" : {
512
- "description" : "Specific Account for the customer BillTo",
513
- "type" : "array",
514
- "items" : {
515
- "$ref" : "#/definitions/normalizedString"
516
- }
517
- },
518
- "location" : {
519
- "type" : "array",
520
- "items" : {
521
- "type" : "object",
522
- "additionalProperties" : false,
523
- "properties" : {
524
- "identifier" : {
525
- "description" : "Identifier for the location, if no GLN is used.",
526
- "type" : "array",
527
- "items" : {
528
- "$ref" : "#/definitions/normalizedString"
529
- }
530
- },
531
- "name" : {
532
- "type" : "array",
533
- "items" : {
534
- "$ref" : "#/definitions/string"
535
- }
536
- },
537
- "postalAddress" : {
538
- "description" : "This is the mailing address for which invoices should be sent, if not electronically sent.",
539
- "type" : "array",
540
- "items" : {
541
- "type" : "object",
542
- "additionalProperties" : false,
543
- "properties" : {
544
- "identifier" : {
545
- "type" : "array",
546
- "items" : {
547
- "$ref" : "#/definitions/normalizedString"
548
- }
549
- },
550
- "name" : {
551
- "type" : "array",
552
- "items" : {
553
- "$ref" : "#/definitions/string"
554
- }
555
- },
556
- "attentionOfName" : {
557
- "type" : "array",
558
- "items" : {
559
- "$ref" : "#/definitions/string"
560
- }
561
- },
562
- "addressLine" : {
563
- "type" : "array",
564
- "items" : {
565
- "type" : "object",
566
- "required" : [ "content" ],
567
- "additionalProperties" : false,
568
- "properties" : {
569
- "content" : {
570
- "$ref" : "#/definitions/string"
571
- },
572
- "sequenceNumberNumber" : {
573
- "$ref" : "#/definitions/integer"
574
- }
575
- }
576
- }
577
- },
578
- "postOfficeBox" : {
579
- "$ref" : "#/definitions/string"
580
- },
581
- "cityName" : {
582
- "$ref" : "#/definitions/string"
583
- },
584
- "countrySubDivisionCode" : {
585
- "description" : "Two character state code in the United States, Province in Canada, etc. See ISO 3166-2.",
586
- "type" : "array",
587
- "items" : {
588
- "type" : "object",
589
- "required" : [ "content" ],
590
- "additionalProperties" : false,
591
- "properties" : {
592
- "content" : {
593
- "$ref" : "#/definitions/token"
594
- },
595
- "listAgencyIdentifier" : {
596
- "$ref" : "#/definitions/token"
597
- }
598
- }
599
- }
600
- },
601
- "countryCode" : {
602
- "$ref" : "#/definitions/token"
603
- },
604
- "postalCode" : {
605
- "description" : "ISO ALPHA-2 two character country code see countrycode.org",
606
- "$ref" : "#/definitions/normalizedString"
607
- }
608
- }
609
- }
610
- },
611
- "note" : {
612
- "description" : "Note on the BillTo lcoation\r\nExample:",
613
- "type" : "array",
614
- "items" : {
615
- "$ref" : "#/definitions/string"
616
- }
617
- }
618
- }
619
- }
620
- },
621
- "contact" : {
622
- "description" : "This is the BillTo contact ",
623
- "type" : "array",
624
- "items" : {
625
- "type" : "object",
626
- "additionalProperties" : false,
627
- "properties" : {
628
- "personName" : {
629
- "type" : "array",
630
- "items" : {
631
- "type" : "object",
632
- "additionalProperties" : false,
633
- "properties" : {
634
- "formattedName" : {
635
- "$ref" : "#/definitions/string"
636
- }
637
- }
638
- }
639
- },
640
- "telephoneCommunication" : {
641
- "type" : "array",
642
- "items" : {
643
- "type" : "object",
644
- "additionalProperties" : false,
645
- "properties" : {
646
- "identifier" : {
647
- "type" : "array",
648
- "items" : {
649
- "$ref" : "#/definitions/normalizedString"
650
- }
651
- }
652
- }
653
- }
654
- },
655
- "emailAddressCommunication" : {
656
- "type" : "array",
657
- "items" : {
658
- "type" : "object",
659
- "additionalProperties" : false,
660
- "properties" : {
661
- "identifier" : {
662
- "type" : "array",
663
- "items" : {
664
- "$ref" : "#/definitions/normalizedString"
665
- }
666
- }
667
- }
668
- }
669
- }
670
- }
671
- }
672
- }
673
- }
674
- },
675
- "carrierParty" : {
676
- "type" : "object",
677
- "additionalProperties" : false,
678
- "properties" : {
679
- "scacid" : {
680
- "description" : "This is only used if the customer is arranging transportation to pickup the order, or if there is a carrier preference",
681
- "$ref" : "#/definitions/normalizedString"
682
- },
683
- "accountIdentifier" : {
684
- "description" : "customer's account number with the carrier if the customer is specifying a carrier",
685
- "type" : "array",
686
- "items" : {
687
- "$ref" : "#/definitions/normalizedString"
688
- }
689
- }
690
- }
691
- },
692
- "partialShipmentAllowedIndicator" : {
693
- "$ref" : "#/definitions/xbt_BooleanType"
694
- },
695
- "earlyShipmentAllowedIndicator" : {
696
- "$ref" : "#/definitions/xbt_BooleanType"
697
- },
698
- "taxExemptIndicator" : {
699
- "$ref" : "#/definitions/xbt_BooleanType"
700
- },
701
- "transportationTerm" : {
702
- "type" : "array",
703
- "items" : {
704
- "type" : "object",
705
- "additionalProperties" : false,
706
- "properties" : {
707
- "identifier" : {
708
- "type" : "array",
709
- "items" : {
710
- "$ref" : "#/definitions/normalizedString"
711
- }
712
- },
713
- "incotermsCode" : {
714
- "$ref" : "#/definitions/token"
715
- },
716
- "freightTermCode" : {
717
- "description" : "Freight Handling Code",
718
- "$ref" : "#/definitions/token"
719
- },
720
- "description" : {
721
- "$ref" : "#/definitions/string"
722
- }
723
- }
724
- }
725
- },
726
- "transportStep" : {
727
- "type" : "array",
728
- "items" : {
729
- "type" : "object",
730
- "additionalProperties" : false,
731
- "properties" : {
732
- "transportationMethodCode" : {
733
- "description" : "Mode of Transportation",
734
- "$ref" : "#/definitions/normalizedString"
735
- }
736
- }
737
- }
738
- },
739
- "paymentTerm" : {
740
- "type" : "array",
741
- "items" : {
742
- "type" : "object",
743
- "additionalProperties" : false,
744
- "properties" : {
745
- "paymentBasisCode" : {
746
- "$ref" : "#/definitions/token"
747
- },
748
- "duration" : {
749
- "$ref" : "#/definitions/token"
750
- }
751
- }
752
- }
753
- },
754
- "tax" : {
755
- "description" : "These are various taxes that may be applied. There may be multiple tax values for VAT, etc.",
756
- "type" : "array",
757
- "items" : {
758
- "type" : "object",
759
- "additionalProperties" : false,
760
- "properties" : {
761
- "taxJurisdicationCodes" : {
762
- "type" : "object",
763
- "required" : [ "code" ],
764
- "additionalProperties" : false,
765
- "properties" : {
766
- "code" : {
767
- "description" : "state or province from which the tax applies.",
768
- "type" : "array",
769
- "minItems" : 1,
770
- "items" : {
771
- "$ref" : "#/definitions/normalizedString"
772
- }
773
- }
774
- }
775
- },
776
- "basisAmount" : {
777
- "description" : "sum of the individual items without tax",
778
- "type" : "object",
779
- "required" : [ "content" ],
780
- "additionalProperties" : false,
781
- "properties" : {
782
- "content" : {
783
- "$ref" : "#/definitions/decimal"
784
- },
785
- "currencyCode" : {
786
- "$ref" : "#/definitions/token"
787
- }
788
- }
789
- },
790
- "calculation" : {
791
- "type" : "object",
792
- "additionalProperties" : false,
793
- "properties" : { }
794
- },
795
- "amount" : {
796
- "description" : "Total estimated amount of tax for the order",
797
- "$ref" : "#/definitions/decimal"
798
- },
799
- "currencyExchangeRate" : {
800
- "description" : "current exchange rate at the time of the transaciton",
801
- "type" : "object",
802
- "additionalProperties" : false,
803
- "properties" : { }
804
- }
805
- }
806
- }
807
- },
808
- "requestedShipDateTime" : {
809
- "$ref" : "#/definitions/token"
810
- },
811
- "shippingInstructions" : {
812
- "$ref" : "#/definitions/string"
813
- },
814
- "orderDateTime" : {
815
- "description" : "ISO 8601 formatted original date of the Purchase Order as created in the sender's business application.. \r\nExample - '2018-01-01T09:08:01.000-06:00'",
816
- "$ref" : "#/definitions/token"
817
- },
818
- "buyerParty" : {
819
- "type" : "object",
820
- "additionalProperties" : false,
821
- "properties" : {
822
- "identifier" : {
823
- "description" : "Identifier for the buyer",
824
- "type" : "array",
825
- "items" : {
826
- "$ref" : "#/definitions/normalizedString"
827
- }
828
- }
829
- }
830
- },
831
- "shipFromParty" : {
832
- "type" : "array",
833
- "items" : {
834
- "type" : "object",
835
- "additionalProperties" : false,
836
- "properties" : {
837
- "identifier" : {
838
- "description" : "This is often not known at the time the order is place, but will appear on the AcknowledgePurchaseOrder Callback API or \r\nGET //AcknowledgePurchaseOrder request response service",
839
- "type" : "array",
840
- "items" : {
841
- "$ref" : "#/definitions/normalizedString"
842
- }
843
- }
844
- }
845
- }
846
- }
847
- }
848
- },
849
- "purchaseOrderLine" : {
850
- "type" : "array",
851
- "items" : {
852
- "type" : "object",
853
- "additionalProperties" : false,
854
- "properties" : {
855
- "actionCode" : {
856
- "description" : "options include (Add, Change, Cancel)",
857
- "$ref" : "#/definitions/token"
858
- },
859
- "lineNumberIdentifier" : {
860
- "$ref" : "#/definitions/normalizedString"
861
- },
862
- "description" : {
863
- "$ref" : "#/definitions/string"
864
- },
865
- "item" : {
866
- "type" : "object",
867
- "additionalProperties" : false,
868
- "properties" : {
869
- "identifier" : {
870
- "description" : "This is the buyer's identifier for the item",
871
- "$ref" : "#/definitions/normalizedString"
872
- },
873
- "itemIdentifierSet" : {
874
- "type" : "array",
875
- "items" : {
876
- "type" : "object",
877
- "required" : [ "identifier" ],
878
- "additionalProperties" : false,
879
- "properties" : {
880
- "identifier" : {
881
- "type" : "array",
882
- "minItems" : 1,
883
- "items" : {
884
- "$ref" : "#/definitions/normalizedString"
885
- }
886
- }
887
- }
888
- }
889
- },
890
- "customerItemIdentification" : {
891
- "type" : "object",
892
- "additionalProperties" : false,
893
- "properties" : {
894
- "identifier" : {
895
- "$ref" : "#/definitions/normalizedString"
896
- }
897
- }
898
- },
899
- "supplierItemIdentification" : {
900
- "type" : "object",
901
- "additionalProperties" : false,
902
- "properties" : {
903
- "identifier" : {
904
- "$ref" : "#/definitions/normalizedString"
905
- }
906
- }
907
- },
908
- "upcid" : {
909
- "$ref" : "#/definitions/normalizedString"
910
- },
911
- "gtinid" : {
912
- "$ref" : "#/definitions/normalizedString"
913
- },
914
- "description" : {
915
- "type" : "array",
916
- "items" : {
917
- "$ref" : "#/definitions/string"
918
- }
919
- },
920
- "note" : {
921
- "type" : "array",
922
- "items" : {
923
- "$ref" : "#/definitions/string"
924
- }
925
- },
926
- "classification" : {
927
- "type" : "array",
928
- "items" : {
929
- "type" : "object",
930
- "additionalProperties" : false,
931
- "properties" : {
932
- "unspscCode" : {
933
- "description" : "Used for international trade",
934
- "$ref" : "#/definitions/normalizedString"
935
- },
936
- "codes" : {
937
- "type" : "object",
938
- "required" : [ "code" ],
939
- "additionalProperties" : false,
940
- "properties" : {
941
- "code" : {
942
- "description" : "Code used to classify the item being purchased.\r\nIf code is mapped, the typeCode should also be mapped since this a generic code. ",
943
- "type" : "array",
944
- "minItems" : 1,
945
- "items" : {
946
- "type" : "object",
947
- "required" : [ "content", "typeCode" ],
948
- "additionalProperties" : false,
949
- "properties" : {
950
- "content" : {
951
- "$ref" : "#/definitions/normalizedString"
952
- },
953
- "typeCode" : {
954
- "$ref" : "#/definitions/token"
955
- },
956
- "listAgencyIdentifier" : {
957
- "$ref" : "#/definitions/token"
958
- }
959
- }
960
- }
961
- }
962
- }
963
- }
964
- }
965
- }
966
- },
967
- "hazardousMaterial" : {
968
- "type" : "array",
969
- "items" : {
970
- "type" : "object",
971
- "additionalProperties" : false,
972
- "properties" : {
973
- "placardEndorsement" : {
974
- "$ref" : "#/definitions/string"
975
- },
976
- "placardNotation" : {
977
- "$ref" : "#/definitions/string"
978
- },
979
- "temperature" : {
980
- "type" : "array",
981
- "items" : {
982
- "$ref" : "#/definitions/decimal"
983
- }
984
- },
985
- "flashpointTemperature" : {
986
- "$ref" : "#/definitions/decimal"
987
- }
988
- }
989
- }
990
- },
991
- "exportControl" : {
992
- "description" : "If the ShipTo defines an import of the product into the country, the identifiers for customs clearance are required.",
993
- "type" : "array",
994
- "items" : {
995
- "type" : "object",
996
- "additionalProperties" : false,
997
- "properties" : {
998
- "identifier" : {
999
- "type" : "array",
1000
- "items" : {
1001
- "$ref" : "#/definitions/normalizedString"
1002
- }
1003
- },
1004
- "countryCode" : {
1005
- "$ref" : "#/definitions/token"
1006
- }
1007
- }
1008
- }
1009
- }
1010
- }
1011
- },
1012
- "quantity" : {
1013
- "type" : "array",
1014
- "items" : {
1015
- "type" : "object",
1016
- "required" : [ "content" ],
1017
- "additionalProperties" : false,
1018
- "properties" : {
1019
- "content" : {
1020
- "$ref" : "#/definitions/decimal"
1021
- },
1022
- "unitCode" : {
1023
- "$ref" : "#/definitions/token"
1024
- }
1025
- }
1026
- }
1027
- },
1028
- "unitPrice" : {
1029
- "type" : "object",
1030
- "additionalProperties" : false,
1031
- "properties" : {
1032
- "chargeAmount" : {
1033
- "type" : "object",
1034
- "required" : [ "content" ],
1035
- "additionalProperties" : false,
1036
- "properties" : {
1037
- "content" : {
1038
- "$ref" : "#/definitions/decimal"
1039
- },
1040
- "currencyCode" : {
1041
- "$ref" : "#/definitions/token"
1042
- }
1043
- }
1044
- },
1045
- "quantityRange" : {
1046
- "type" : "object",
1047
- "additionalProperties" : false,
1048
- "properties" : {
1049
- "minimumQuantity" : {
1050
- "type" : "object",
1051
- "required" : [ "content" ],
1052
- "additionalProperties" : false,
1053
- "properties" : {
1054
- "content" : {
1055
- "$ref" : "#/definitions/decimal"
1056
- },
1057
- "unitCode" : {
1058
- "$ref" : "#/definitions/token"
1059
- }
1060
- }
1061
- },
1062
- "maximumQuantity" : {
1063
- "type" : "object",
1064
- "required" : [ "content" ],
1065
- "additionalProperties" : false,
1066
- "properties" : {
1067
- "content" : {
1068
- "$ref" : "#/definitions/decimal"
1069
- },
1070
- "unitCode" : {
1071
- "$ref" : "#/definitions/token"
1072
- }
1073
- }
1074
- }
1075
- }
1076
- },
1077
- "unitAmount" : {
1078
- "$ref" : "#/definitions/decimal"
1079
- }
1080
- }
1081
- },
1082
- "extendedAmount" : {
1083
- "type" : "object",
1084
- "required" : [ "content" ],
1085
- "additionalProperties" : false,
1086
- "properties" : {
1087
- "content" : {
1088
- "$ref" : "#/definitions/decimal"
1089
- },
1090
- "currencyCode" : {
1091
- "$ref" : "#/definitions/token"
1092
- }
1093
- }
1094
- },
1095
- "totalAmount" : {
1096
- "type" : "object",
1097
- "required" : [ "content" ],
1098
- "additionalProperties" : false,
1099
- "properties" : {
1100
- "content" : {
1101
- "$ref" : "#/definitions/decimal"
1102
- },
1103
- "currencyCode" : {
1104
- "$ref" : "#/definitions/token"
1105
- }
1106
- }
1107
- },
1108
- "contractReference" : {
1109
- "type" : "object",
1110
- "additionalProperties" : false,
1111
- "properties" : {
1112
- "identifier" : {
1113
- "$ref" : "#/definitions/normalizedString"
1114
- }
1115
- }
1116
- },
1117
- "requiredDeliveryDateTime" : {
1118
- "$ref" : "#/definitions/token"
1119
- },
1120
- "shipToParty" : {
1121
- "type" : "object",
1122
- "additionalProperties" : false,
1123
- "properties" : {
1124
- "identifier" : {
1125
- "type" : "array",
1126
- "items" : {
1127
- "$ref" : "#/definitions/normalizedString"
1128
- }
1129
- },
1130
- "name" : {
1131
- "type" : "array",
1132
- "items" : {
1133
- "$ref" : "#/definitions/string"
1134
- }
1135
- },
1136
- "location" : {
1137
- "type" : "array",
1138
- "items" : {
1139
- "type" : "object",
1140
- "additionalProperties" : false,
1141
- "properties" : {
1142
- "contact" : {
1143
- "type" : "array",
1144
- "items" : {
1145
- "type" : "object",
1146
- "additionalProperties" : false,
1147
- "properties" : {
1148
- "personName" : {
1149
- "type" : "array",
1150
- "items" : {
1151
- "type" : "object",
1152
- "additionalProperties" : false,
1153
- "properties" : {
1154
- "formattedName" : {
1155
- "$ref" : "#/definitions/string"
1156
- },
1157
- "givenName" : {
1158
- "$ref" : "#/definitions/string"
1159
- },
1160
- "middleName" : {
1161
- "type" : "array",
1162
- "items" : {
1163
- "$ref" : "#/definitions/string"
1164
- }
1165
- },
1166
- "familyName" : {
1167
- "type" : "array",
1168
- "items" : {
1169
- "$ref" : "#/definitions/string"
1170
- }
1171
- }
1172
- }
1173
- }
1174
- },
1175
- "telephoneCommunication" : {
1176
- "type" : "array",
1177
- "items" : {
1178
- "type" : "object",
1179
- "additionalProperties" : false,
1180
- "properties" : {
1181
- "identifier" : {
1182
- "type" : "array",
1183
- "items" : {
1184
- "$ref" : "#/definitions/normalizedString"
1185
- }
1186
- }
1187
- }
1188
- }
1189
- },
1190
- "emailAddressCommunication" : {
1191
- "type" : "array",
1192
- "items" : {
1193
- "type" : "object",
1194
- "additionalProperties" : false,
1195
- "properties" : {
1196
- "identifier" : {
1197
- "type" : "array",
1198
- "items" : {
1199
- "$ref" : "#/definitions/normalizedString"
1200
- }
1201
- }
1202
- }
1203
- }
1204
- }
1205
- }
1206
- }
1207
- },
1208
- "physicalAddress" : {
1209
- "type" : "array",
1210
- "items" : {
1211
- "type" : "object",
1212
- "additionalProperties" : false,
1213
- "properties" : {
1214
- "identifier" : {
1215
- "type" : "array",
1216
- "items" : {
1217
- "$ref" : "#/definitions/normalizedString"
1218
- }
1219
- },
1220
- "attentionOfName" : {
1221
- "type" : "array",
1222
- "items" : {
1223
- "$ref" : "#/definitions/string"
1224
- }
1225
- },
1226
- "addressLine" : {
1227
- "type" : "array",
1228
- "items" : {
1229
- "$ref" : "#/definitions/string"
1230
- }
1231
- },
1232
- "cityName" : {
1233
- "$ref" : "#/definitions/string"
1234
- },
1235
- "countrySubDivisionCode" : {
1236
- "type" : "array",
1237
- "items" : {
1238
- "$ref" : "#/definitions/token"
1239
- }
1240
- },
1241
- "countryCode" : {
1242
- "$ref" : "#/definitions/token"
1243
- },
1244
- "postalCode" : {
1245
- "$ref" : "#/definitions/normalizedString"
1246
- },
1247
- "geographicalCoordinate" : {
1248
- "type" : "array",
1249
- "items" : {
1250
- "type" : "object",
1251
- "additionalProperties" : false,
1252
- "properties" : {
1253
- "verticalMeasure" : {
1254
- "$ref" : "#/definitions/decimal"
1255
- },
1256
- "latitudeMeasure" : {
1257
- "$ref" : "#/definitions/decimal"
1258
- },
1259
- "longitudeMeasure" : {
1260
- "$ref" : "#/definitions/decimal"
1261
- }
1262
- }
1263
- }
1264
- }
1265
- }
1266
- }
1267
- },
1268
- "availableTimePeriod" : {
1269
- "type" : "array",
1270
- "items" : {
1271
- "type" : "object",
1272
- "additionalProperties" : false,
1273
- "properties" : {
1274
- "startTime" : {
1275
- "$ref" : "#/definitions/token"
1276
- },
1277
- "endTime" : {
1278
- "$ref" : "#/definitions/token"
1279
- }
1280
- }
1281
- }
1282
- },
1283
- "glnid" : {
1284
- "$ref" : "#/definitions/normalizedString"
1285
- }
1286
- }
1287
- }
1288
- }
1289
- }
1290
- },
1291
- "partialShipmentAllowedIndicator" : {
1292
- "$ref" : "#/definitions/xbt_BooleanType"
1293
- },
1294
- "transportationTerm" : {
1295
- "type" : "array",
1296
- "items" : {
1297
- "type" : "object",
1298
- "additionalProperties" : false,
1299
- "properties" : {
1300
- "freightTermCode" : {
1301
- "$ref" : "#/definitions/token"
1302
- }
1303
- }
1304
- }
1305
- },
1306
- "transportStep" : {
1307
- "type" : "array",
1308
- "items" : {
1309
- "type" : "object",
1310
- "additionalProperties" : false,
1311
- "properties" : {
1312
- "transportationMethodCode" : {
1313
- "$ref" : "#/definitions/normalizedString"
1314
- }
1315
- }
1316
- }
1317
- },
1318
- "purchaseOrderSubLine" : {
1319
- "type" : "array",
1320
- "items" : {
1321
- "type" : "object",
1322
- "additionalProperties" : false,
1323
- "properties" : {
1324
- "amountDiscount" : {
1325
- "description" : "If provided, customer service will evaluate for applicability.",
1326
- "type" : "object",
1327
- "additionalProperties" : false,
1328
- "properties" : {
1329
- "identifier" : {
1330
- "type" : "array",
1331
- "items" : {
1332
- "$ref" : "#/definitions/normalizedString"
1333
- }
1334
- },
1335
- "discountAmount" : {
1336
- "description" : "Calculated amount based on percentage.",
1337
- "type" : "array",
1338
- "items" : {
1339
- "$ref" : "#/definitions/decimal"
1340
- }
1341
- },
1342
- "percentage" : {
1343
- "$ref" : "#/definitions/decimal"
1344
- },
1345
- "description" : {
1346
- "type" : "array",
1347
- "items" : {
1348
- "$ref" : "#/definitions/string"
1349
- }
1350
- }
1351
- }
1352
- }
1353
- }
1354
- }
1355
- }
1356
- }
1357
- }
1358
- }
1359
- }
1360
- }
1361
- },
1362
- "definitions" : {
1363
- "token" : {
1364
- "type" : "string"
1365
- },
1366
- "normalizedString" : {
1367
- "type" : "string"
1368
- },
1369
- "string" : {
1370
- "type" : "string"
1371
- },
1372
- "decimal" : {
1373
- "type" : "number"
1374
- },
1375
- "integer" : {
1376
- "type" : "number",
1377
- "multipleOf" : 1
1378
- },
1379
- "xbt_BooleanType" : {
1380
- "type" : "boolean"
1381
- }
1382
- }
1383
- }