{"version":3,"sources":["jsdelivr-header.js","/npm/typescript-rest-swagger@1.1.7/dist/decorators.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aA0BA,SAAS,SAAS,EAAM,EAAa,GACjC,OAAO,WAAsB,CACjC,CAmBA,SAAS,QAAQ,GACb,OAAO,WAAsB,CACjC,CAgBA,SAAS,OAEL,IADA,IAAI,EAAS,GACJ,EAAK,EAAG,EAAK,UAAU,OAAQ,IACpC,EAAO,GAAM,UAAU,GAE3B,OAAO,WAAsB,CACjC,CAKA,SAAS,WAEL,IADA,IAAI,EAAS,GACJ,EAAK,EAAG,EAAK,UAAU,OAAQ,IACpC,EAAO,GAAM,UAAU,GAE3B,OAAO,WAAsB,CACjC,CAKA,SAAS,WAEL,IADA,IAAI,EAAS,GACJ,EAAK,EAAG,EAAK,UAAU,OAAQ,IACpC,EAAO,GAAM,UAAU,GAE3B,OAAO,WAAsB,CACjC,CAKA,SAAS,SACL,OAAO,WAAsB,CACjC,CAKA,SAAS,MAAM,EAAQ,EAAa,GAEpC,CAKA,SAAS,OAAO,EAAQ,EAAa,GAErC,CAKA,SAAS,QAAQ,EAAQ,EAAa,GAEtC,CAMA,SAAS,SAAS,EAAQ,EAAa,GAEvC,CAhIA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IACtD,QAAQ,SAAW,QAAQ,QAAU,QAAQ,OAAS,QAAQ,MAAQ,QAAQ,OAAS,QAAQ,SAAW,QAAQ,SAAW,QAAQ,KAAO,QAAQ,QAAU,QAAQ,cAAW,EA2BjL,QAAQ,SAAW,SAqBnB,QAAQ,QAAU,QAsBlB,QAAQ,KAAO,KAWf,QAAQ,SAAW,SAWnB,QAAQ,SAAW,SAOnB,QAAQ,OAAS,OAOjB,QAAQ,MAAQ,MAOhB,QAAQ,OAAS,OAOjB,QAAQ,QAAU,QAQlB,QAAQ,SAAW","file":"/npm/typescript-rest-swagger@1.1.7/dist/decorators.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/typescript-rest-swagger@1.1.7/dist/decorators.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.IsDouble = exports.IsFloat = exports.IsLong = exports.IsInt = exports.Hidden = exports.Produces = exports.Consumes = exports.Tags = exports.Example = exports.Response = void 0;\n/**\n * A decorator to document the responses that a given service method can return. It is used to generate\n * documentation for the REST service.\n * ```typescript\n * interface MyError {\n *    message: string\n * }\n * @ Path('people')\n * class PeopleService {\n *   @ Response<string>(200, 'Retrieve a list of people.')\n *   @ Response<MyError>(401, 'The user is unauthorized.', {message: 'The user is not authorized to access this operation.'})\n *   @ GET\n *   getPeople(@ Param('name') name: string) {\n *      // ...\n *   }\n * }\n * ```\n * A Default response is created in swagger documentation from the method return analisys. So any response declared\n * through this decorator is an additional response created.\n * @param status The response status code\n * @param description A description for this response\n * @param example An optional example of response to be added to method documentation.\n */\nfunction Response(name, description, example) {\n    return function () { return; };\n}\nexports.Response = Response;\n/**\n * Used to provide an example of method return to be added into the method response section of the\n * generated documentation for this method.\n * ```typescript\n * @ Path('people')\n * class PeopleService {\n *   @ Example<Array<Person>>([{\n *     name: 'Joe'\n *   }])\n *   @ GET\n *   getPeople(@ Param('name') name: string): Person[] {\n *      // ...\n *   }\n * }\n * ```\n * @param example The example returned object\n */\nfunction Example(example) {\n    return function () { return; };\n}\nexports.Example = Example;\n/**\n * Add tags for a given method on generated swagger documentation.\n * ```typescript\n * @ Path('people')\n * class PeopleService {\n *   @ Tags('adiministrative', 'department1')\n *   @ GET\n *   getPeople(@ Param('name') name: string) {\n *      // ...\n *   }\n * }\n * ```\n * @param values a list of tags\n */\nfunction Tags() {\n    var values = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        values[_i] = arguments[_i];\n    }\n    return function () { return; };\n}\nexports.Tags = Tags;\n/**\n * Document the method or class comsumes property in generated swagger docs\n */\nfunction Consumes() {\n    var values = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        values[_i] = arguments[_i];\n    }\n    return function () { return; };\n}\nexports.Consumes = Consumes;\n/**\n * Document the method or class produces property in generated swagger docs\n */\nfunction Produces() {\n    var values = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        values[_i] = arguments[_i];\n    }\n    return function () { return; };\n}\nexports.Produces = Produces;\n/**\n * Document the method or class produces property in generated swagger docs\n */\nfunction Hidden() {\n    return function () { return; };\n}\nexports.Hidden = Hidden;\n/**\n * Document the type of a property or parameter as `integer ($int32)` in generated swagger docs\n */\nfunction IsInt(target, propertyKey, parameterIndex) {\n    return;\n}\nexports.IsInt = IsInt;\n/**\n * Document the type of a property or parameter as `integer ($int64)` in generated swagger docs\n */\nfunction IsLong(target, propertyKey, parameterIndex) {\n    return;\n}\nexports.IsLong = IsLong;\n/**\n * Document the type of a property or parameter as `number ($float)` in generated swagger docs\n */\nfunction IsFloat(target, propertyKey, parameterIndex) {\n    return;\n}\nexports.IsFloat = IsFloat;\n/**\n * Document the type of a property or parameter as `number ($double)` in generated swagger docs.\n * This is the default for `number` types without a specifying decorator.\n */\nfunction IsDouble(target, propertyKey, parameterIndex) {\n    return;\n}\nexports.IsDouble = IsDouble;\n"]}