1.1.16 • Published 1 year ago

@kollorg/occaecati-totam v1.1.16

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@kollorg/occaecati-totam

Declarative library for describing endpoints.

Install

npm:

npm install @kollorg/occaecati-totam

yarn:

yarn add @kollorg/occaecati-totam

Usage

Describe your request scheme

import @kollorg/occaecati-totam from '@kollorg/occaecati-totam';

export const requests = @kollorg/occaecati-totam('10.16.0.140', 9001)
    .group('list', {
        get: {
            all: 'get-all-lists',
        },
        post: {
            save: 'save-list',
            create: 'get-empty-list'
        }
    })
    .group('ports', {
        get: {
            ports: (count) => `get-ports?count=${count}`,
        }
    })
    .end();

And send your requests to any place

import { requests } from 'requests';

const showLists = async () => {
    try {
        const response = await fetch(requests.list.get.all);
        const answer = await response.json();
        console.log(answer);
    } catch (error) {
        console.error(error);
    }
}
import { requests } from 'requests';
import axios from 'axios';

const showLists = async () => {
    try {
        const response = await axios.get(requests.list.get.all);
        console.log(response.data);
    } catch (error) {
        console.error(error);
    }
}

License

MIT

tddpushclassesqueryregular expressionremovedescriptioncharactervalueURLSearchParamsassertionlockfileArray.prototype.includesrandomawsObjectcallbacknegativeendersearchECMAScript 2022ObservablesES5chromerfc4122createfunctionairbnbstreamsimpledbprotocol-buffersnodejsexpressArray.prototype.flatMapprotobufesdirectoryobjjsonschemapathdataagentdeepcopyprivate dataasyncebsECMAScript 6coercibleutil.inspectPromiseeffect-tswriteStyleSheetequalityproxysnscloudformationmapredactregularastresolveassertsgroupByES7inputsettingslogtypedarraytoSortedchildArrayBuffer.prototype.slicebinarycontainsObject.valuessymlinkstacitUnderscorespeedapisethardlinkslookjson-schema-validatorhelpersymbolInt16Arrayshrinkwraploggingtypeerrorregexpemojijsonsafedirdefinearktypecode pointssesdebugappString.prototype.trimlibphonenumberstarterdropwaitparentstrimEndes2015framerio-tsiteratorarraycallboundatomarttouchtrimLeftcolourzeromodulebrowserslistcolorsinternalfnmatchfind-upoptimist256pruneinternal slotiteratewindowrequireES6kinesisnodeflagutilbannercollectionjsx__proto__transportplugincurrieddynamodbselfECMAScript 2018WeakSetcensoreast-asian-widthwalkingramdacore-jsphone6to5Microsoftismrucompareformatescaperedux-toolkitoptioncommanderlinktrimRight0reactreducercall-boundArray.prototype.flatTypedArrayspringdotenvcompilersyntaxreact-hook-formroutespinnersIteratorsubprocessfunctionsnegative zeroRegExp#flagsruntimetypedfullmatchesReactiveXtypanionECMAScript 2015es-shimsECMAScriptscheme-validationtranspilefile systemtapesymbolsvaluesES2015gdprredirecthttpyupwafeventsroutingfpsspawninstallfpindicatorexecutetostringtagclassnameglobal objectautoscalingasteriskspackagesmodulesespreenamesfantasy-landoncetapqueueistanbuldescriptorsdiffperformantcorejshintxhrmovecircularomitquotextermES8colorfindupmapreduceapollotyped arraygetformweakmapimmerfast-deep-clonevarvarsworkspace:*execfileletlastreadablemakeinspectprefixmochafast-clonelengthextendformattingmanagerrapides-shim APIlanguagepropertyguidcodesimmutableslotclassnamesECMAScript 2020HyBihookformArray.prototype.containsfetchdeep-clonesinatrabintimeponyfillStreameslintconfigargumentgraphqlpositivequerystringglacierpackage managersortedparseforEachjsajaxflatMapsameValueZeroreuserequestfolderlinttraversecachedataViewsource mapincludestc39restreact-hookspinobundlerWebSocketsasciibindES2018terminalform-validationgesturestypeofObject.assignJSON-Schemadeepcloneshellcomputed-typesgetterpropObject.israngeerrorfssqsparserhelpersacornObject.fromEntriesArray.prototype.findLastvalidatezodimportexport_.extendchecki18ndayjses5mkdirssyntaxerrorES2022keyskarmabusyweaksetprettyposestableconsumearrayseventDispatchernative@@toStringTagregular-expressionoutputenvspecvariablesglobalThisamazoneslint-pluginrobustvisualoptimizerCSSStyleDeclarationcall-bindjasminemanipulationsharedfastcloneintrinsicbrowserlistspinnergetOwnPropertyDescriptorignorergbsomecryptowgetdebuggerpostcssjapaneseES2017accessorstringgitignoredatees2018ReactiveExtensionsnpmString.prototype.matchAllECMAScript 2019look-upAsyncIteratorglobSymbolstylesmetadataboundArray.prototype.flattenECMAScript 2023trimStarterrorflatemrvalidArray.prototype.findLastIndexECMAScript 7upwhatwgpoint-freefastifyttyglobal this valueTypeScriptcss-in-jscollection.es6Function.prototype.namefigletcolumnsstyled-componentsglobalBigInt64Arrayfilegenericslocationes2017fixed-widthminimaltslibextraecmascriptFloat32Arrayes7execawesomesaucegroupinstrumentationshimtexts3listenersArrayreducefilterloggerdefinePropertyviewstyleguidecloneserializationhttpsfullwidthcharacterspackage.jsonsetterurlpopmotionmatchAlleslintreduxFloat64ArraysharedarraybufferrsssidermtypescriptES2019byteOffsetrm -rfSymbol.toStringTagchaijsdomdeterministicArrayBufferserializeReflect.getPrototypeOfefficientavamulti-packagecommand-linekeyfeedbabel-coreutilsdomfroma11ymake dircloudfrontobjectcjk.gitignoretoArrayfast-copyRFC-6455bddxmlsuperagenttoolkitelbmergenumbergetintrinsicimportfastparentprocessconcatArray.prototype.filterbufferstoragegatewayenvironmentsstringifyObservablermdirmomentframeworkarraybuffertoReversedshamtesthooksCSSqueueMicrotasksortES2020writablejsdiffcloudsearchargvbabelswfbytenametsprototypetypespatchjestforkPushcloudwatchjson-schemardstakefindLastIndexes8YAMLtypesafeECMAScript 2021htmlObject.keysUint32Arraydependenciestestingfunction.lengthidentifiershasOwnworkflowdescriptoridharmonycoveragepyyamltypeperformancebyteLengthajvcolumnreal-timeieconcatMapdataviewchanneltranspilerautoprefixerconfigurablehas-ownfast-deep-copydom-testing-libraryschemathreeroute53higher-ordershebangRxvesttesterpostcss-pluginwhichreworktermelasticacheendpointloadingObject.entriessuperstructeventEmitterclientInt8Arraychromiumvalidator-0toolsconfigURLcloudtrailuser-streamsassigneveryentriesUint8ArrayfunctionalfindLastjavascriptUint8ClampedArrayloadbalancingec2vpcmkdirutilityzxfastcopypackageStreamsECMAScript 3browseranimationstreamstypedarraysmatchinstallerECMAScript 5iamstructuredClonedependency managercliinaccessibilityWeakMapflatten[[Prototype]]stylingdeleteJSONtransformES3joimkdirptelephoneES2016monoreposetPrototypeOfwalkprotoESnextWebSocketes2016
1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago