"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;function a(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function b(b){for(var d,e=1;e<arguments.length;e++)d=null==arguments[e]?{}:arguments[e],e%2?a(Object(d),!0).forEach(function(a){c(b,a,d[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(d)):a(Object(d)).forEach(function(a){Object.defineProperty(b,a,Object.getOwnPropertyDescriptor(d,a))});return b}function c(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function d(a,b,c,d,e,f,g){try{var h=a[f](g),i=h.value}catch(a){return void c(a)}h.done?b(i):Promise.resolve(i).then(d,e)}function e(a){return function(){var b=this,c=arguments;return new Promise(function(e,f){function g(a){d(i,e,f,g,h,"next",a)}function h(a){d(i,e,f,g,h,"throw",a)}var i=a.apply(b,c);g(void 0)})}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function h(a,b,c){return b&&g(a.prototype,b),c&&g(a,c),a}var i=require("apiconnect-example-generator"),j=i.generatorInner,k=function(){function a(){f(this,a)}return h(a,[{key:"generateExampleParameter",value:function(){var a=e(regeneratorRuntime.mark(function a(){var c,d=arguments;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return c=0<d.length&&void 0!==d[0]?d[0]:{api:{},pathName:"",verb:"",parameter:{},contentTypeHeader:"",skipBeautify:!1,maxDepth:9,references:[],numItems:3},a.abrupt("return",j(b(b({},c),{},{type:"parameter"})));case 2:case"end":return a.stop();}},a)}));return function generateExampleParameter(){return a.apply(this,arguments)}}()},{key:"generateExampleResponse",value:function(){var a=e(regeneratorRuntime.mark(function a(){var c,d=arguments;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return c=0<d.length&&void 0!==d[0]?d[0]:{api:{},path:"",verb:"",response:"",contentType:"",config:{},maxDepth:9,references:[],numItems:3},a.abrupt("return",j(b(b({},c),{},{type:c.api.openapi?"oai3response":"response"})));case 2:case"end":return a.stop();}},a)}));return function generateExampleResponse(){return a.apply(this,arguments)}}()},{key:"generateAsyncApiResponse",value:function(){var a=e(regeneratorRuntime.mark(function a(){var c,d=arguments;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return c=0<d.length&&void 0!==d[0]?d[0]:{api:{},schema:{},contentType:"",highlight:!0},a.abrupt("return",j(b(b({},c),{},{type:"eventResponse"})));case 2:case"end":return a.stop();}},a)}));return function generateAsyncApiResponse(){return a.apply(this,arguments)}}()},{key:"generateFlattenedSchema",value:function(){var a=e(regeneratorRuntime.mark(function a(){var b,c,d=arguments;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return b=0<d.length&&void 0!==d[0]?d[0]:{},a.next=3,j({schema:b,type:"resolveReferences"});case 3:return c=a.sent,a.abrupt("return",c.schema);case 5:case"end":return a.stop();}},a)}));return function generateFlattenedSchema(){return a.apply(this,arguments)}}()}]),a}(),l=new k;exports["default"]=l;