@bytekit/autofetch
Version:
A TypeScript-first, decorator-based HTTP client for building elegant and modular API clients with fetch under the hood. Inspired by Spring's `@RestClient` and OpenFeign.
32 lines (31 loc) • 2.21 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HttpMethod = exports.Init = exports.QueryParam = exports.IgnoreParam = exports.URLEncodedFormParam = exports.FormParam = exports.PathParam = exports.HeaderParam = exports.BodyParam = exports.DeleteMapping = exports.PatchMapping = exports.PutMapping = exports.PostMapping = exports.GetMapping = exports.Mapping = exports.Client = void 0;
require("reflect-metadata");
const Client_ts_1 = require("./Client.js");
exports.Client = Client_ts_1.default;
const Mapping_ts_1 = require("./Mapping.js");
exports.Mapping = Mapping_ts_1.default;
Object.defineProperty(exports, "GetMapping", { enumerable: true, get: function () { return Mapping_ts_1.GetMapping; } });
Object.defineProperty(exports, "PostMapping", { enumerable: true, get: function () { return Mapping_ts_1.PostMapping; } });
Object.defineProperty(exports, "PutMapping", { enumerable: true, get: function () { return Mapping_ts_1.PutMapping; } });
Object.defineProperty(exports, "PatchMapping", { enumerable: true, get: function () { return Mapping_ts_1.PatchMapping; } });
Object.defineProperty(exports, "DeleteMapping", { enumerable: true, get: function () { return Mapping_ts_1.DeleteMapping; } });
const BodyParam_ts_1 = require("./BodyParam.js");
exports.BodyParam = BodyParam_ts_1.default;
const HeaderParam_ts_1 = require("./HeaderParam.js");
exports.HeaderParam = HeaderParam_ts_1.default;
const PathParam_ts_1 = require("./PathParam.js");
exports.PathParam = PathParam_ts_1.default;
const FormParam_ts_1 = require("./FormParam.js");
exports.FormParam = FormParam_ts_1.default;
const URLEncodedFormParam_ts_1 = require("./URLEncodedFormParam.js");
exports.URLEncodedFormParam = URLEncodedFormParam_ts_1.default;
const QueryParam_ts_1 = require("./QueryParam.js");
exports.QueryParam = QueryParam_ts_1.default;
const Init_ts_1 = require("./Init.js");
exports.Init = Init_ts_1.default;
const HttpMethod_ts_1 = require("./HttpMethod.js");
Object.defineProperty(exports, "HttpMethod", { enumerable: true, get: function () { return HttpMethod_ts_1.HttpMethod; } });
const IgnoreParam_ts_1 = require("./IgnoreParam.js");
exports.IgnoreParam = IgnoreParam_ts_1.default;