@vepler/sdk 0.1.0
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.
- package/.claude/settings.local.json +14 -0
- package/FUNCTIONS.md +87 -0
- package/README.md +479 -0
- package/RUNTIMES.md +48 -0
- package/dist/commonjs/core.d.ts +10 -0
- package/dist/commonjs/core.d.ts.map +1 -0
- package/dist/commonjs/core.js +17 -0
- package/dist/commonjs/core.js.map +1 -0
- package/dist/commonjs/funcs/healthGetV1PlanningHealth.d.ts +17 -0
- package/dist/commonjs/funcs/healthGetV1PlanningHealth.d.ts.map +1 -0
- package/dist/commonjs/funcs/healthGetV1PlanningHealth.js +104 -0
- package/dist/commonjs/funcs/healthGetV1PlanningHealth.js.map +1 -0
- package/dist/commonjs/funcs/healthGetV1PropertyHealth.d.ts +17 -0
- package/dist/commonjs/funcs/healthGetV1PropertyHealth.d.ts.map +1 -0
- package/dist/commonjs/funcs/healthGetV1PropertyHealth.js +104 -0
- package/dist/commonjs/funcs/healthGetV1PropertyHealth.js.map +1 -0
- package/dist/commonjs/funcs/planningGetV1PlanningApplicationIds.d.ts +17 -0
- package/dist/commonjs/funcs/planningGetV1PlanningApplicationIds.d.ts.map +1 -0
- package/dist/commonjs/funcs/planningGetV1PlanningApplicationIds.js +119 -0
- package/dist/commonjs/funcs/planningGetV1PlanningApplicationIds.js.map +1 -0
- package/dist/commonjs/funcs/planningGetV1PlanningSourcesSourceIds.d.ts +17 -0
- package/dist/commonjs/funcs/planningGetV1PlanningSourcesSourceIds.d.ts.map +1 -0
- package/dist/commonjs/funcs/planningGetV1PlanningSourcesSourceIds.js +119 -0
- package/dist/commonjs/funcs/planningGetV1PlanningSourcesSourceIds.js.map +1 -0
- package/dist/commonjs/funcs/planningPostV1PlanningQuery.d.ts +18 -0
- package/dist/commonjs/funcs/planningPostV1PlanningQuery.d.ts.map +1 -0
- package/dist/commonjs/funcs/planningPostV1PlanningQuery.js +117 -0
- package/dist/commonjs/funcs/planningPostV1PlanningQuery.js.map +1 -0
- package/dist/commonjs/funcs/propertyGetV1PropertyLocationIds.d.ts +17 -0
- package/dist/commonjs/funcs/propertyGetV1PropertyLocationIds.d.ts.map +1 -0
- package/dist/commonjs/funcs/propertyGetV1PropertyLocationIds.js +125 -0
- package/dist/commonjs/funcs/propertyGetV1PropertyLocationIds.js.map +1 -0
- package/dist/commonjs/funcs/propertyGetV1PropertyPropertyIdPropertyIds.d.ts +17 -0
- package/dist/commonjs/funcs/propertyGetV1PropertyPropertyIdPropertyIds.d.ts.map +1 -0
- package/dist/commonjs/funcs/propertyGetV1PropertyPropertyIdPropertyIds.js +125 -0
- package/dist/commonjs/funcs/propertyGetV1PropertyPropertyIdPropertyIds.js.map +1 -0
- package/dist/commonjs/funcs/propertyGetV1PropertySourcesSourceIds.d.ts +17 -0
- package/dist/commonjs/funcs/propertyGetV1PropertySourcesSourceIds.d.ts.map +1 -0
- package/dist/commonjs/funcs/propertyGetV1PropertySourcesSourceIds.js +125 -0
- package/dist/commonjs/funcs/propertyGetV1PropertySourcesSourceIds.js.map +1 -0
- package/dist/commonjs/funcs/propertyPostV1PropertyPropertiesBySlugs.d.ts +18 -0
- package/dist/commonjs/funcs/propertyPostV1PropertyPropertiesBySlugs.d.ts.map +1 -0
- package/dist/commonjs/funcs/propertyPostV1PropertyPropertiesBySlugs.js +117 -0
- package/dist/commonjs/funcs/propertyPostV1PropertyPropertiesBySlugs.js.map +1 -0
- package/dist/commonjs/funcs/propertyPostV1PropertyQuery.d.ts +18 -0
- package/dist/commonjs/funcs/propertyPostV1PropertyQuery.d.ts.map +1 -0
- package/dist/commonjs/funcs/propertyPostV1PropertyQuery.js +117 -0
- package/dist/commonjs/funcs/propertyPostV1PropertyQuery.js.map +1 -0
- package/dist/commonjs/hooks/hooks.d.ts +24 -0
- package/dist/commonjs/hooks/hooks.d.ts.map +1 -0
- package/dist/commonjs/hooks/hooks.js +84 -0
- package/dist/commonjs/hooks/hooks.js.map +1 -0
- package/dist/commonjs/hooks/index.d.ts +3 -0
- package/dist/commonjs/hooks/index.d.ts.map +1 -0
- package/dist/commonjs/hooks/index.js +22 -0
- package/dist/commonjs/hooks/index.js.map +1 -0
- package/dist/commonjs/hooks/registration.d.ts +3 -0
- package/dist/commonjs/hooks/registration.d.ts.map +1 -0
- package/dist/commonjs/hooks/registration.js +15 -0
- package/dist/commonjs/hooks/registration.js.map +1 -0
- package/dist/commonjs/hooks/types.d.ts +80 -0
- package/dist/commonjs/hooks/types.d.ts.map +1 -0
- package/dist/commonjs/hooks/types.js +6 -0
- package/dist/commonjs/hooks/types.js.map +1 -0
- package/dist/commonjs/index.d.ts +6 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +48 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/lib/base64.d.ts +10 -0
- package/dist/commonjs/lib/base64.d.ts.map +1 -0
- package/dist/commonjs/lib/base64.js +71 -0
- package/dist/commonjs/lib/base64.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +38 -0
- package/dist/commonjs/lib/config.d.ts.map +1 -0
- package/dist/commonjs/lib/config.js +38 -0
- package/dist/commonjs/lib/config.js.map +1 -0
- package/dist/commonjs/lib/dlv.d.ts +14 -0
- package/dist/commonjs/lib/dlv.d.ts.map +1 -0
- package/dist/commonjs/lib/dlv.js +49 -0
- package/dist/commonjs/lib/dlv.js.map +1 -0
- package/dist/commonjs/lib/encodings.d.ts +52 -0
- package/dist/commonjs/lib/encodings.d.ts.map +1 -0
- package/dist/commonjs/lib/encodings.js +368 -0
- package/dist/commonjs/lib/encodings.js.map +1 -0
- package/dist/commonjs/lib/files.d.ts +13 -0
- package/dist/commonjs/lib/files.d.ts.map +1 -0
- package/dist/commonjs/lib/files.js +77 -0
- package/dist/commonjs/lib/files.js.map +1 -0
- package/dist/commonjs/lib/http.d.ts +67 -0
- package/dist/commonjs/lib/http.d.ts.map +1 -0
- package/dist/commonjs/lib/http.js +217 -0
- package/dist/commonjs/lib/http.js.map +1 -0
- package/dist/commonjs/lib/is-plain-object.d.ts +2 -0
- package/dist/commonjs/lib/is-plain-object.d.ts.map +1 -0
- package/dist/commonjs/lib/is-plain-object.js +41 -0
- package/dist/commonjs/lib/is-plain-object.js.map +1 -0
- package/dist/commonjs/lib/logger.d.ts +6 -0
- package/dist/commonjs/lib/logger.d.ts.map +1 -0
- package/dist/commonjs/lib/logger.js +6 -0
- package/dist/commonjs/lib/logger.js.map +1 -0
- package/dist/commonjs/lib/matchers.d.ts +59 -0
- package/dist/commonjs/lib/matchers.d.ts.map +1 -0
- package/dist/commonjs/lib/matchers.js +218 -0
- package/dist/commonjs/lib/matchers.js.map +1 -0
- package/dist/commonjs/lib/primitives.d.ts +26 -0
- package/dist/commonjs/lib/primitives.d.ts.map +1 -0
- package/dist/commonjs/lib/primitives.js +111 -0
- package/dist/commonjs/lib/primitives.js.map +1 -0
- package/dist/commonjs/lib/retries.d.ts +38 -0
- package/dist/commonjs/lib/retries.d.ts.map +1 -0
- package/dist/commonjs/lib/retries.js +153 -0
- package/dist/commonjs/lib/retries.js.map +1 -0
- package/dist/commonjs/lib/schemas.d.ts +19 -0
- package/dist/commonjs/lib/schemas.d.ts.map +1 -0
- package/dist/commonjs/lib/schemas.js +62 -0
- package/dist/commonjs/lib/schemas.js.map +1 -0
- package/dist/commonjs/lib/sdks.d.ts +63 -0
- package/dist/commonjs/lib/sdks.d.ts.map +1 -0
- package/dist/commonjs/lib/sdks.js +270 -0
- package/dist/commonjs/lib/sdks.js.map +1 -0
- package/dist/commonjs/lib/security.d.ts +83 -0
- package/dist/commonjs/lib/security.d.ts.map +1 -0
- package/dist/commonjs/lib/security.js +143 -0
- package/dist/commonjs/lib/security.js.map +1 -0
- package/dist/commonjs/lib/url.d.ts +5 -0
- package/dist/commonjs/lib/url.d.ts.map +1 -0
- package/dist/commonjs/lib/url.js +25 -0
- package/dist/commonjs/lib/url.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/sdk/health.d.ts +19 -0
- package/dist/commonjs/sdk/health.d.ts.map +1 -0
- package/dist/commonjs/sdk/health.js +32 -0
- package/dist/commonjs/sdk/health.js.map +1 -0
- package/dist/commonjs/sdk/index.d.ts +2 -0
- package/dist/commonjs/sdk/index.d.ts.map +1 -0
- package/dist/commonjs/sdk/index.js +21 -0
- package/dist/commonjs/sdk/index.js.map +1 -0
- package/dist/commonjs/sdk/models/errors/httpclienterrors.d.ts +44 -0
- package/dist/commonjs/sdk/models/errors/httpclienterrors.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/errors/httpclienterrors.js +78 -0
- package/dist/commonjs/sdk/models/errors/httpclienterrors.js.map +1 -0
- package/dist/commonjs/sdk/models/errors/index.d.ts +5 -0
- package/dist/commonjs/sdk/models/errors/index.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/errors/index.js +24 -0
- package/dist/commonjs/sdk/models/errors/index.js.map +1 -0
- package/dist/commonjs/sdk/models/errors/responsevalidationerror.d.ts +26 -0
- package/dist/commonjs/sdk/models/errors/responsevalidationerror.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/errors/responsevalidationerror.js +66 -0
- package/dist/commonjs/sdk/models/errors/responsevalidationerror.js.map +1 -0
- package/dist/commonjs/sdk/models/errors/sdkbaseerror.d.ts +19 -0
- package/dist/commonjs/sdk/models/errors/sdkbaseerror.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/errors/sdkbaseerror.js +20 -0
- package/dist/commonjs/sdk/models/errors/sdkbaseerror.js.map +1 -0
- package/dist/commonjs/sdk/models/errors/sdkerror.d.ts +10 -0
- package/dist/commonjs/sdk/models/errors/sdkerror.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/errors/sdkerror.js +34 -0
- package/dist/commonjs/sdk/models/errors/sdkerror.js.map +1 -0
- package/dist/commonjs/sdk/models/errors/sdkvalidationerror.d.ts +21 -0
- package/dist/commonjs/sdk/models/errors/sdkvalidationerror.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/errors/sdkvalidationerror.js +129 -0
- package/dist/commonjs/sdk/models/errors/sdkvalidationerror.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/getv1planningapplicationids.d.ts +54 -0
- package/dist/commonjs/sdk/models/operations/getv1planningapplicationids.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/getv1planningapplicationids.js +99 -0
- package/dist/commonjs/sdk/models/operations/getv1planningapplicationids.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/getv1planningsourcessourceids.d.ts +54 -0
- package/dist/commonjs/sdk/models/operations/getv1planningsourcessourceids.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/getv1planningsourcessourceids.js +99 -0
- package/dist/commonjs/sdk/models/operations/getv1planningsourcessourceids.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/getv1propertylocationids.d.ts +69 -0
- package/dist/commonjs/sdk/models/operations/getv1propertylocationids.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/getv1propertylocationids.js +105 -0
- package/dist/commonjs/sdk/models/operations/getv1propertylocationids.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/getv1propertypropertyidpropertyids.d.ts +69 -0
- package/dist/commonjs/sdk/models/operations/getv1propertypropertyidpropertyids.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/getv1propertypropertyidpropertyids.js +105 -0
- package/dist/commonjs/sdk/models/operations/getv1propertypropertyidpropertyids.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/getv1propertysourcessourceids.d.ts +69 -0
- package/dist/commonjs/sdk/models/operations/getv1propertysourcessourceids.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/getv1propertysourcessourceids.js +105 -0
- package/dist/commonjs/sdk/models/operations/getv1propertysourcessourceids.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/index.d.ts +9 -0
- package/dist/commonjs/sdk/models/operations/index.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/index.js +28 -0
- package/dist/commonjs/sdk/models/operations/index.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/postv1planningquery.d.ts +26 -0
- package/dist/commonjs/sdk/models/operations/postv1planningquery.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/postv1planningquery.js +72 -0
- package/dist/commonjs/sdk/models/operations/postv1planningquery.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/postv1propertypropertiesbyslugs.d.ts +26 -0
- package/dist/commonjs/sdk/models/operations/postv1propertypropertiesbyslugs.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/postv1propertypropertiesbyslugs.js +72 -0
- package/dist/commonjs/sdk/models/operations/postv1propertypropertiesbyslugs.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/postv1propertyquery.d.ts +26 -0
- package/dist/commonjs/sdk/models/operations/postv1propertyquery.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/postv1propertyquery.js +72 -0
- package/dist/commonjs/sdk/models/operations/postv1propertyquery.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/areafilter.d.ts +69 -0
- package/dist/commonjs/sdk/models/shared/areafilter.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/areafilter.js +97 -0
- package/dist/commonjs/sdk/models/shared/areafilter.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/errorresponse.d.ts +35 -0
- package/dist/commonjs/sdk/models/shared/errorresponse.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/errorresponse.js +75 -0
- package/dist/commonjs/sdk/models/shared/errorresponse.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/healthresponse.d.ts +35 -0
- package/dist/commonjs/sdk/models/shared/healthresponse.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/healthresponse.js +75 -0
- package/dist/commonjs/sdk/models/shared/healthresponse.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts +16 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/index.js +35 -0
- package/dist/commonjs/sdk/models/shared/index.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/planningapplication.d.ts +184 -0
- package/dist/commonjs/sdk/models/shared/planningapplication.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/planningapplication.js +186 -0
- package/dist/commonjs/sdk/models/shared/planningapplication.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/planninglistresponse.d.ts +38 -0
- package/dist/commonjs/sdk/models/shared/planninglistresponse.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/planninglistresponse.js +78 -0
- package/dist/commonjs/sdk/models/shared/planninglistresponse.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/planningqueryfilters.d.ts +82 -0
- package/dist/commonjs/sdk/models/shared/planningqueryfilters.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/planningqueryfilters.js +89 -0
- package/dist/commonjs/sdk/models/shared/planningqueryfilters.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/planningqueryrequest.d.ts +98 -0
- package/dist/commonjs/sdk/models/shared/planningqueryrequest.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/planningqueryrequest.js +121 -0
- package/dist/commonjs/sdk/models/shared/planningqueryrequest.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/pricingdata.d.ts +35 -0
- package/dist/commonjs/sdk/models/shared/pricingdata.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/pricingdata.js +75 -0
- package/dist/commonjs/sdk/models/shared/pricingdata.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/propertyaddress.d.ts +43 -0
- package/dist/commonjs/sdk/models/shared/propertyaddress.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/propertyaddress.js +83 -0
- package/dist/commonjs/sdk/models/shared/propertyaddress.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/propertybyslugsrequest.d.ts +47 -0
- package/dist/commonjs/sdk/models/shared/propertybyslugsrequest.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/propertybyslugsrequest.js +75 -0
- package/dist/commonjs/sdk/models/shared/propertybyslugsrequest.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/propertydata.d.ts +95 -0
- package/dist/commonjs/sdk/models/shared/propertydata.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/propertydata.js +139 -0
- package/dist/commonjs/sdk/models/shared/propertydata.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/propertyfilters.d.ts +41 -0
- package/dist/commonjs/sdk/models/shared/propertyfilters.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/propertyfilters.js +81 -0
- package/dist/commonjs/sdk/models/shared/propertyfilters.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/propertylistresponse.d.ts +36 -0
- package/dist/commonjs/sdk/models/shared/propertylistresponse.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/propertylistresponse.js +76 -0
- package/dist/commonjs/sdk/models/shared/propertylistresponse.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/propertyqueryrequest.d.ts +39 -0
- package/dist/commonjs/sdk/models/shared/propertyqueryrequest.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/propertyqueryrequest.js +79 -0
- package/dist/commonjs/sdk/models/shared/propertyqueryrequest.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/security.d.ts +29 -0
- package/dist/commonjs/sdk/models/shared/security.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/security.js +78 -0
- package/dist/commonjs/sdk/models/shared/security.js.map +1 -0
- package/dist/commonjs/sdk/planning.d.ts +27 -0
- package/dist/commonjs/sdk/planning.d.ts.map +1 -0
- package/dist/commonjs/sdk/planning.js +42 -0
- package/dist/commonjs/sdk/planning.js.map +1 -0
- package/dist/commonjs/sdk/property.d.ts +41 -0
- package/dist/commonjs/sdk/property.d.ts.map +1 -0
- package/dist/commonjs/sdk/property.js +62 -0
- package/dist/commonjs/sdk/property.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +13 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -0
- package/dist/commonjs/sdk/sdk.js +23 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -0
- package/dist/commonjs/sdk/types/async.d.ts +23 -0
- package/dist/commonjs/sdk/types/async.d.ts.map +1 -0
- package/dist/commonjs/sdk/types/async.js +44 -0
- package/dist/commonjs/sdk/types/async.js.map +1 -0
- package/dist/commonjs/sdk/types/blobs.d.ts +4 -0
- package/dist/commonjs/sdk/types/blobs.d.ts.map +1 -0
- package/dist/commonjs/sdk/types/blobs.js +62 -0
- package/dist/commonjs/sdk/types/blobs.js.map +1 -0
- package/dist/commonjs/sdk/types/constdatetime.d.ts +3 -0
- package/dist/commonjs/sdk/types/constdatetime.d.ts.map +1 -0
- package/dist/commonjs/sdk/types/constdatetime.js +46 -0
- package/dist/commonjs/sdk/types/constdatetime.js.map +1 -0
- package/dist/commonjs/sdk/types/enums.d.ts +12 -0
- package/dist/commonjs/sdk/types/enums.d.ts.map +1 -0
- package/dist/commonjs/sdk/types/enums.js +10 -0
- package/dist/commonjs/sdk/types/enums.js.map +1 -0
- package/dist/commonjs/sdk/types/fp.d.ts +31 -0
- package/dist/commonjs/sdk/types/fp.d.ts.map +1 -0
- package/dist/commonjs/sdk/types/fp.js +37 -0
- package/dist/commonjs/sdk/types/fp.js.map +1 -0
- package/dist/commonjs/sdk/types/index.d.ts +8 -0
- package/dist/commonjs/sdk/types/index.d.ts.map +1 -0
- package/dist/commonjs/sdk/types/index.js +16 -0
- package/dist/commonjs/sdk/types/index.js.map +1 -0
- package/dist/commonjs/sdk/types/operations.d.ts +27 -0
- package/dist/commonjs/sdk/types/operations.d.ts.map +1 -0
- package/dist/commonjs/sdk/types/operations.js +83 -0
- package/dist/commonjs/sdk/types/operations.js.map +1 -0
- package/dist/commonjs/sdk/types/rfcdate.d.ts +21 -0
- package/dist/commonjs/sdk/types/rfcdate.d.ts.map +1 -0
- package/dist/commonjs/sdk/types/rfcdate.js +46 -0
- package/dist/commonjs/sdk/types/rfcdate.js.map +1 -0
- package/dist/commonjs/sdk/types/streams.d.ts +2 -0
- package/dist/commonjs/sdk/types/streams.d.ts.map +1 -0
- package/dist/commonjs/sdk/types/streams.js +18 -0
- package/dist/commonjs/sdk/types/streams.js.map +1 -0
- package/dist/esm/core.d.ts +10 -0
- package/dist/esm/core.d.ts.map +1 -0
- package/dist/esm/core.js +13 -0
- package/dist/esm/core.js.map +1 -0
- package/dist/esm/funcs/healthGetV1PlanningHealth.d.ts +17 -0
- package/dist/esm/funcs/healthGetV1PlanningHealth.d.ts.map +1 -0
- package/dist/esm/funcs/healthGetV1PlanningHealth.js +68 -0
- package/dist/esm/funcs/healthGetV1PlanningHealth.js.map +1 -0
- package/dist/esm/funcs/healthGetV1PropertyHealth.d.ts +17 -0
- package/dist/esm/funcs/healthGetV1PropertyHealth.d.ts.map +1 -0
- package/dist/esm/funcs/healthGetV1PropertyHealth.js +68 -0
- package/dist/esm/funcs/healthGetV1PropertyHealth.js.map +1 -0
- package/dist/esm/funcs/planningGetV1PlanningApplicationIds.d.ts +17 -0
- package/dist/esm/funcs/planningGetV1PlanningApplicationIds.d.ts.map +1 -0
- package/dist/esm/funcs/planningGetV1PlanningApplicationIds.js +83 -0
- package/dist/esm/funcs/planningGetV1PlanningApplicationIds.js.map +1 -0
- package/dist/esm/funcs/planningGetV1PlanningSourcesSourceIds.d.ts +17 -0
- package/dist/esm/funcs/planningGetV1PlanningSourcesSourceIds.d.ts.map +1 -0
- package/dist/esm/funcs/planningGetV1PlanningSourcesSourceIds.js +83 -0
- package/dist/esm/funcs/planningGetV1PlanningSourcesSourceIds.js.map +1 -0
- package/dist/esm/funcs/planningPostV1PlanningQuery.d.ts +18 -0
- package/dist/esm/funcs/planningPostV1PlanningQuery.d.ts.map +1 -0
- package/dist/esm/funcs/planningPostV1PlanningQuery.js +81 -0
- package/dist/esm/funcs/planningPostV1PlanningQuery.js.map +1 -0
- package/dist/esm/funcs/propertyGetV1PropertyLocationIds.d.ts +17 -0
- package/dist/esm/funcs/propertyGetV1PropertyLocationIds.d.ts.map +1 -0
- package/dist/esm/funcs/propertyGetV1PropertyLocationIds.js +89 -0
- package/dist/esm/funcs/propertyGetV1PropertyLocationIds.js.map +1 -0
- package/dist/esm/funcs/propertyGetV1PropertyPropertyIdPropertyIds.d.ts +17 -0
- package/dist/esm/funcs/propertyGetV1PropertyPropertyIdPropertyIds.d.ts.map +1 -0
- package/dist/esm/funcs/propertyGetV1PropertyPropertyIdPropertyIds.js +89 -0
- package/dist/esm/funcs/propertyGetV1PropertyPropertyIdPropertyIds.js.map +1 -0
- package/dist/esm/funcs/propertyGetV1PropertySourcesSourceIds.d.ts +17 -0
- package/dist/esm/funcs/propertyGetV1PropertySourcesSourceIds.d.ts.map +1 -0
- package/dist/esm/funcs/propertyGetV1PropertySourcesSourceIds.js +89 -0
- package/dist/esm/funcs/propertyGetV1PropertySourcesSourceIds.js.map +1 -0
- package/dist/esm/funcs/propertyPostV1PropertyPropertiesBySlugs.d.ts +18 -0
- package/dist/esm/funcs/propertyPostV1PropertyPropertiesBySlugs.d.ts.map +1 -0
- package/dist/esm/funcs/propertyPostV1PropertyPropertiesBySlugs.js +81 -0
- package/dist/esm/funcs/propertyPostV1PropertyPropertiesBySlugs.js.map +1 -0
- package/dist/esm/funcs/propertyPostV1PropertyQuery.d.ts +18 -0
- package/dist/esm/funcs/propertyPostV1PropertyQuery.d.ts.map +1 -0
- package/dist/esm/funcs/propertyPostV1PropertyQuery.js +81 -0
- package/dist/esm/funcs/propertyPostV1PropertyQuery.js.map +1 -0
- package/dist/esm/hooks/hooks.d.ts +24 -0
- package/dist/esm/hooks/hooks.d.ts.map +1 -0
- package/dist/esm/hooks/hooks.js +80 -0
- package/dist/esm/hooks/hooks.js.map +1 -0
- package/dist/esm/hooks/index.d.ts +3 -0
- package/dist/esm/hooks/index.d.ts.map +1 -0
- package/dist/esm/hooks/index.js +6 -0
- package/dist/esm/hooks/index.js.map +1 -0
- package/dist/esm/hooks/registration.d.ts +3 -0
- package/dist/esm/hooks/registration.d.ts.map +1 -0
- package/dist/esm/hooks/registration.js +12 -0
- package/dist/esm/hooks/registration.js.map +1 -0
- package/dist/esm/hooks/types.d.ts +80 -0
- package/dist/esm/hooks/types.d.ts.map +1 -0
- package/dist/esm/hooks/types.js +5 -0
- package/dist/esm/hooks/types.js.map +1 -0
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +8 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lib/base64.d.ts +10 -0
- package/dist/esm/lib/base64.d.ts.map +1 -0
- package/dist/esm/lib/base64.js +29 -0
- package/dist/esm/lib/base64.js.map +1 -0
- package/dist/esm/lib/config.d.ts +38 -0
- package/dist/esm/lib/config.d.ts.map +1 -0
- package/dist/esm/lib/config.js +34 -0
- package/dist/esm/lib/config.js.map +1 -0
- package/dist/esm/lib/dlv.d.ts +14 -0
- package/dist/esm/lib/dlv.d.ts.map +1 -0
- package/dist/esm/lib/dlv.js +46 -0
- package/dist/esm/lib/dlv.js.map +1 -0
- package/dist/esm/lib/encodings.d.ts +52 -0
- package/dist/esm/lib/encodings.d.ts.map +1 -0
- package/dist/esm/lib/encodings.js +354 -0
- package/dist/esm/lib/encodings.js.map +1 -0
- package/dist/esm/lib/files.d.ts +13 -0
- package/dist/esm/lib/files.d.ts.map +1 -0
- package/dist/esm/lib/files.js +73 -0
- package/dist/esm/lib/files.js.map +1 -0
- package/dist/esm/lib/http.d.ts +67 -0
- package/dist/esm/lib/http.d.ts.map +1 -0
- package/dist/esm/lib/http.js +207 -0
- package/dist/esm/lib/http.js.map +1 -0
- package/dist/esm/lib/is-plain-object.d.ts +2 -0
- package/dist/esm/lib/is-plain-object.d.ts.map +1 -0
- package/dist/esm/lib/is-plain-object.js +38 -0
- package/dist/esm/lib/is-plain-object.js.map +1 -0
- package/dist/esm/lib/logger.d.ts +6 -0
- package/dist/esm/lib/logger.d.ts.map +1 -0
- package/dist/esm/lib/logger.js +5 -0
- package/dist/esm/lib/logger.js.map +1 -0
- package/dist/esm/lib/matchers.d.ts +59 -0
- package/dist/esm/lib/matchers.d.ts.map +1 -0
- package/dist/esm/lib/matchers.js +199 -0
- package/dist/esm/lib/matchers.js.map +1 -0
- package/dist/esm/lib/primitives.d.ts +26 -0
- package/dist/esm/lib/primitives.d.ts.map +1 -0
- package/dist/esm/lib/primitives.js +103 -0
- package/dist/esm/lib/primitives.js.map +1 -0
- package/dist/esm/lib/retries.d.ts +38 -0
- package/dist/esm/lib/retries.d.ts.map +1 -0
- package/dist/esm/lib/retries.js +147 -0
- package/dist/esm/lib/retries.js.map +1 -0
- package/dist/esm/lib/schemas.d.ts +19 -0
- package/dist/esm/lib/schemas.d.ts.map +1 -0
- package/dist/esm/lib/schemas.js +57 -0
- package/dist/esm/lib/schemas.js.map +1 -0
- package/dist/esm/lib/sdks.d.ts +63 -0
- package/dist/esm/lib/sdks.d.ts.map +1 -0
- package/dist/esm/lib/sdks.js +266 -0
- package/dist/esm/lib/sdks.js.map +1 -0
- package/dist/esm/lib/security.d.ts +83 -0
- package/dist/esm/lib/security.d.ts.map +1 -0
- package/dist/esm/lib/security.js +136 -0
- package/dist/esm/lib/security.js.map +1 -0
- package/dist/esm/lib/url.d.ts +5 -0
- package/dist/esm/lib/url.d.ts.map +1 -0
- package/dist/esm/lib/url.js +22 -0
- package/dist/esm/lib/url.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/sdk/health.d.ts +19 -0
- package/dist/esm/sdk/health.d.ts.map +1 -0
- package/dist/esm/sdk/health.js +28 -0
- package/dist/esm/sdk/health.js.map +1 -0
- package/dist/esm/sdk/index.d.ts +2 -0
- package/dist/esm/sdk/index.d.ts.map +1 -0
- package/dist/esm/sdk/index.js +5 -0
- package/dist/esm/sdk/index.js.map +1 -0
- package/dist/esm/sdk/models/errors/httpclienterrors.d.ts +44 -0
- package/dist/esm/sdk/models/errors/httpclienterrors.d.ts.map +1 -0
- package/dist/esm/sdk/models/errors/httpclienterrors.js +69 -0
- package/dist/esm/sdk/models/errors/httpclienterrors.js.map +1 -0
- package/dist/esm/sdk/models/errors/index.d.ts +5 -0
- package/dist/esm/sdk/models/errors/index.d.ts.map +1 -0
- package/dist/esm/sdk/models/errors/index.js +8 -0
- package/dist/esm/sdk/models/errors/index.js.map +1 -0
- package/dist/esm/sdk/models/errors/responsevalidationerror.d.ts +26 -0
- package/dist/esm/sdk/models/errors/responsevalidationerror.d.ts.map +1 -0
- package/dist/esm/sdk/models/errors/responsevalidationerror.js +29 -0
- package/dist/esm/sdk/models/errors/responsevalidationerror.js.map +1 -0
- package/dist/esm/sdk/models/errors/sdkbaseerror.d.ts +19 -0
- package/dist/esm/sdk/models/errors/sdkbaseerror.d.ts.map +1 -0
- package/dist/esm/sdk/models/errors/sdkbaseerror.js +16 -0
- package/dist/esm/sdk/models/errors/sdkbaseerror.js.map +1 -0
- package/dist/esm/sdk/models/errors/sdkerror.d.ts +10 -0
- package/dist/esm/sdk/models/errors/sdkerror.d.ts.map +1 -0
- package/dist/esm/sdk/models/errors/sdkerror.js +30 -0
- package/dist/esm/sdk/models/errors/sdkerror.js.map +1 -0
- package/dist/esm/sdk/models/errors/sdkvalidationerror.d.ts +21 -0
- package/dist/esm/sdk/models/errors/sdkvalidationerror.d.ts.map +1 -0
- package/dist/esm/sdk/models/errors/sdkvalidationerror.js +91 -0
- package/dist/esm/sdk/models/errors/sdkvalidationerror.js.map +1 -0
- package/dist/esm/sdk/models/operations/getv1planningapplicationids.d.ts +54 -0
- package/dist/esm/sdk/models/operations/getv1planningapplicationids.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/getv1planningapplicationids.js +59 -0
- package/dist/esm/sdk/models/operations/getv1planningapplicationids.js.map +1 -0
- package/dist/esm/sdk/models/operations/getv1planningsourcessourceids.d.ts +54 -0
- package/dist/esm/sdk/models/operations/getv1planningsourcessourceids.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/getv1planningsourcessourceids.js +59 -0
- package/dist/esm/sdk/models/operations/getv1planningsourcessourceids.js.map +1 -0
- package/dist/esm/sdk/models/operations/getv1propertylocationids.d.ts +69 -0
- package/dist/esm/sdk/models/operations/getv1propertylocationids.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/getv1propertylocationids.js +65 -0
- package/dist/esm/sdk/models/operations/getv1propertylocationids.js.map +1 -0
- package/dist/esm/sdk/models/operations/getv1propertypropertyidpropertyids.d.ts +69 -0
- package/dist/esm/sdk/models/operations/getv1propertypropertyidpropertyids.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/getv1propertypropertyidpropertyids.js +65 -0
- package/dist/esm/sdk/models/operations/getv1propertypropertyidpropertyids.js.map +1 -0
- package/dist/esm/sdk/models/operations/getv1propertysourcessourceids.d.ts +69 -0
- package/dist/esm/sdk/models/operations/getv1propertysourcessourceids.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/getv1propertysourcessourceids.js +65 -0
- package/dist/esm/sdk/models/operations/getv1propertysourcessourceids.js.map +1 -0
- package/dist/esm/sdk/models/operations/index.d.ts +9 -0
- package/dist/esm/sdk/models/operations/index.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/index.js +12 -0
- package/dist/esm/sdk/models/operations/index.js.map +1 -0
- package/dist/esm/sdk/models/operations/postv1planningquery.d.ts +26 -0
- package/dist/esm/sdk/models/operations/postv1planningquery.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/postv1planningquery.js +34 -0
- package/dist/esm/sdk/models/operations/postv1planningquery.js.map +1 -0
- package/dist/esm/sdk/models/operations/postv1propertypropertiesbyslugs.d.ts +26 -0
- package/dist/esm/sdk/models/operations/postv1propertypropertiesbyslugs.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/postv1propertypropertiesbyslugs.js +34 -0
- package/dist/esm/sdk/models/operations/postv1propertypropertiesbyslugs.js.map +1 -0
- package/dist/esm/sdk/models/operations/postv1propertyquery.d.ts +26 -0
- package/dist/esm/sdk/models/operations/postv1propertyquery.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/postv1propertyquery.js +34 -0
- package/dist/esm/sdk/models/operations/postv1propertyquery.js.map +1 -0
- package/dist/esm/sdk/models/shared/areafilter.d.ts +69 -0
- package/dist/esm/sdk/models/shared/areafilter.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/areafilter.js +59 -0
- package/dist/esm/sdk/models/shared/areafilter.js.map +1 -0
- package/dist/esm/sdk/models/shared/errorresponse.d.ts +35 -0
- package/dist/esm/sdk/models/shared/errorresponse.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/errorresponse.js +37 -0
- package/dist/esm/sdk/models/shared/errorresponse.js.map +1 -0
- package/dist/esm/sdk/models/shared/healthresponse.d.ts +35 -0
- package/dist/esm/sdk/models/shared/healthresponse.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/healthresponse.js +37 -0
- package/dist/esm/sdk/models/shared/healthresponse.js.map +1 -0
- package/dist/esm/sdk/models/shared/index.d.ts +16 -0
- package/dist/esm/sdk/models/shared/index.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/index.js +19 -0
- package/dist/esm/sdk/models/shared/index.js.map +1 -0
- package/dist/esm/sdk/models/shared/planningapplication.d.ts +184 -0
- package/dist/esm/sdk/models/shared/planningapplication.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/planningapplication.js +146 -0
- package/dist/esm/sdk/models/shared/planningapplication.js.map +1 -0
- package/dist/esm/sdk/models/shared/planninglistresponse.d.ts +38 -0
- package/dist/esm/sdk/models/shared/planninglistresponse.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/planninglistresponse.js +40 -0
- package/dist/esm/sdk/models/shared/planninglistresponse.js.map +1 -0
- package/dist/esm/sdk/models/shared/planningqueryfilters.d.ts +82 -0
- package/dist/esm/sdk/models/shared/planningqueryfilters.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/planningqueryfilters.js +51 -0
- package/dist/esm/sdk/models/shared/planningqueryfilters.js.map +1 -0
- package/dist/esm/sdk/models/shared/planningqueryrequest.d.ts +98 -0
- package/dist/esm/sdk/models/shared/planningqueryrequest.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/planningqueryrequest.js +83 -0
- package/dist/esm/sdk/models/shared/planningqueryrequest.js.map +1 -0
- package/dist/esm/sdk/models/shared/pricingdata.d.ts +35 -0
- package/dist/esm/sdk/models/shared/pricingdata.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/pricingdata.js +37 -0
- package/dist/esm/sdk/models/shared/pricingdata.js.map +1 -0
- package/dist/esm/sdk/models/shared/propertyaddress.d.ts +43 -0
- package/dist/esm/sdk/models/shared/propertyaddress.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/propertyaddress.js +45 -0
- package/dist/esm/sdk/models/shared/propertyaddress.js.map +1 -0
- package/dist/esm/sdk/models/shared/propertybyslugsrequest.d.ts +47 -0
- package/dist/esm/sdk/models/shared/propertybyslugsrequest.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/propertybyslugsrequest.js +37 -0
- package/dist/esm/sdk/models/shared/propertybyslugsrequest.js.map +1 -0
- package/dist/esm/sdk/models/shared/propertydata.d.ts +95 -0
- package/dist/esm/sdk/models/shared/propertydata.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/propertydata.js +97 -0
- package/dist/esm/sdk/models/shared/propertydata.js.map +1 -0
- package/dist/esm/sdk/models/shared/propertyfilters.d.ts +41 -0
- package/dist/esm/sdk/models/shared/propertyfilters.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/propertyfilters.js +43 -0
- package/dist/esm/sdk/models/shared/propertyfilters.js.map +1 -0
- package/dist/esm/sdk/models/shared/propertylistresponse.d.ts +36 -0
- package/dist/esm/sdk/models/shared/propertylistresponse.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/propertylistresponse.js +38 -0
- package/dist/esm/sdk/models/shared/propertylistresponse.js.map +1 -0
- package/dist/esm/sdk/models/shared/propertyqueryrequest.d.ts +39 -0
- package/dist/esm/sdk/models/shared/propertyqueryrequest.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/propertyqueryrequest.js +41 -0
- package/dist/esm/sdk/models/shared/propertyqueryrequest.js.map +1 -0
- package/dist/esm/sdk/models/shared/security.d.ts +29 -0
- package/dist/esm/sdk/models/shared/security.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/security.js +40 -0
- package/dist/esm/sdk/models/shared/security.js.map +1 -0
- package/dist/esm/sdk/planning.d.ts +27 -0
- package/dist/esm/sdk/planning.d.ts.map +1 -0
- package/dist/esm/sdk/planning.js +38 -0
- package/dist/esm/sdk/planning.js.map +1 -0
- package/dist/esm/sdk/property.d.ts +41 -0
- package/dist/esm/sdk/property.d.ts.map +1 -0
- package/dist/esm/sdk/property.js +58 -0
- package/dist/esm/sdk/property.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +13 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -0
- package/dist/esm/sdk/sdk.js +19 -0
- package/dist/esm/sdk/sdk.js.map +1 -0
- package/dist/esm/sdk/types/async.d.ts +23 -0
- package/dist/esm/sdk/types/async.d.ts.map +1 -0
- package/dist/esm/sdk/types/async.js +40 -0
- package/dist/esm/sdk/types/async.js.map +1 -0
- package/dist/esm/sdk/types/blobs.d.ts +4 -0
- package/dist/esm/sdk/types/blobs.d.ts.map +1 -0
- package/dist/esm/sdk/types/blobs.js +25 -0
- package/dist/esm/sdk/types/blobs.js.map +1 -0
- package/dist/esm/sdk/types/constdatetime.d.ts +3 -0
- package/dist/esm/sdk/types/constdatetime.d.ts.map +1 -0
- package/dist/esm/sdk/types/constdatetime.js +10 -0
- package/dist/esm/sdk/types/constdatetime.js.map +1 -0
- package/dist/esm/sdk/types/enums.d.ts +12 -0
- package/dist/esm/sdk/types/enums.d.ts.map +1 -0
- package/dist/esm/sdk/types/enums.js +7 -0
- package/dist/esm/sdk/types/enums.js.map +1 -0
- package/dist/esm/sdk/types/fp.d.ts +31 -0
- package/dist/esm/sdk/types/fp.d.ts.map +1 -0
- package/dist/esm/sdk/types/fp.js +31 -0
- package/dist/esm/sdk/types/fp.js.map +1 -0
- package/dist/esm/sdk/types/index.d.ts +8 -0
- package/dist/esm/sdk/types/index.d.ts.map +1 -0
- package/dist/esm/sdk/types/index.js +8 -0
- package/dist/esm/sdk/types/index.js.map +1 -0
- package/dist/esm/sdk/types/operations.d.ts +27 -0
- package/dist/esm/sdk/types/operations.d.ts.map +1 -0
- package/dist/esm/sdk/types/operations.js +77 -0
- package/dist/esm/sdk/types/operations.js.map +1 -0
- package/dist/esm/sdk/types/rfcdate.d.ts +21 -0
- package/dist/esm/sdk/types/rfcdate.d.ts.map +1 -0
- package/dist/esm/sdk/types/rfcdate.js +42 -0
- package/dist/esm/sdk/types/rfcdate.js.map +1 -0
- package/dist/esm/sdk/types/streams.d.ts +2 -0
- package/dist/esm/sdk/types/streams.d.ts.map +1 -0
- package/dist/esm/sdk/types/streams.js +15 -0
- package/dist/esm/sdk/types/streams.js.map +1 -0
- package/examples/healthGetV1PlanningHealth.example.ts +26 -0
- package/examples/package.json +18 -0
- package/jsr.json +27 -0
- package/openapi.json +1 -0
- package/package.json +122 -0
- package/src/core.ts +13 -0
- package/src/funcs/healthGetV1PlanningHealth.ts +140 -0
- package/src/funcs/healthGetV1PropertyHealth.ts +140 -0
- package/src/funcs/planningGetV1PlanningApplicationIds.ts +167 -0
- package/src/funcs/planningGetV1PlanningSourcesSourceIds.ts +169 -0
- package/src/funcs/planningPostV1PlanningQuery.ts +164 -0
- package/src/funcs/propertyGetV1PropertyLocationIds.ts +174 -0
- package/src/funcs/propertyGetV1PropertyPropertyIdPropertyIds.ts +185 -0
- package/src/funcs/propertyGetV1PropertySourcesSourceIds.ts +176 -0
- package/src/funcs/propertyPostV1PropertyPropertiesBySlugs.ts +173 -0
- package/src/funcs/propertyPostV1PropertyQuery.ts +164 -0
- package/src/hooks/hooks.ts +129 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/registration.ts +14 -0
- package/src/hooks/types.ts +112 -0
- package/src/index.ts +9 -0
- package/src/lib/base64.ts +37 -0
- package/src/lib/config.ts +67 -0
- package/src/lib/dlv.ts +53 -0
- package/src/lib/encodings.ts +483 -0
- package/src/lib/files.ts +82 -0
- package/src/lib/http.ts +323 -0
- package/src/lib/is-plain-object.ts +43 -0
- package/src/lib/logger.ts +9 -0
- package/src/lib/matchers.ts +345 -0
- package/src/lib/primitives.ts +150 -0
- package/src/lib/retries.ts +218 -0
- package/src/lib/schemas.ts +91 -0
- package/src/lib/sdks.ts +403 -0
- package/src/lib/security.ts +263 -0
- package/src/lib/url.ts +33 -0
- package/src/sdk/health.ts +41 -0
- package/src/sdk/index.ts +5 -0
- package/src/sdk/models/errors/httpclienterrors.ts +62 -0
- package/src/sdk/models/errors/index.ts +8 -0
- package/src/sdk/models/errors/responsevalidationerror.ts +50 -0
- package/src/sdk/models/errors/sdkbaseerror.ts +35 -0
- package/src/sdk/models/errors/sdkerror.ts +40 -0
- package/src/sdk/models/errors/sdkvalidationerror.ts +109 -0
- package/src/sdk/models/operations/getv1planningapplicationids.ts +139 -0
- package/src/sdk/models/operations/getv1planningsourcessourceids.ts +140 -0
- package/src/sdk/models/operations/getv1propertylocationids.ts +155 -0
- package/src/sdk/models/operations/getv1propertypropertyidpropertyids.ts +173 -0
- package/src/sdk/models/operations/getv1propertysourcessourceids.ts +161 -0
- package/src/sdk/models/operations/index.ts +12 -0
- package/src/sdk/models/operations/postv1planningquery.ts +71 -0
- package/src/sdk/models/operations/postv1propertypropertiesbyslugs.ts +80 -0
- package/src/sdk/models/operations/postv1propertyquery.ts +71 -0
- package/src/sdk/models/shared/areafilter.ts +109 -0
- package/src/sdk/models/shared/errorresponse.ts +74 -0
- package/src/sdk/models/shared/healthresponse.ts +74 -0
- package/src/sdk/models/shared/index.ts +19 -0
- package/src/sdk/models/shared/planningapplication.ts +269 -0
- package/src/sdk/models/shared/planninglistresponse.ts +88 -0
- package/src/sdk/models/shared/planningqueryfilters.ts +139 -0
- package/src/sdk/models/shared/planningqueryrequest.ts +142 -0
- package/src/sdk/models/shared/pricingdata.ts +74 -0
- package/src/sdk/models/shared/propertyaddress.ts +92 -0
- package/src/sdk/models/shared/propertybyslugsrequest.ts +90 -0
- package/src/sdk/models/shared/propertydata.ts +214 -0
- package/src/sdk/models/shared/propertyfilters.ts +88 -0
- package/src/sdk/models/shared/propertylistresponse.ts +84 -0
- package/src/sdk/models/shared/propertyqueryrequest.ts +94 -0
- package/src/sdk/models/shared/security.ts +71 -0
- package/src/sdk/planning.ts +64 -0
- package/src/sdk/property.ts +100 -0
- package/src/sdk/sdk.ts +25 -0
- package/src/sdk/types/async.ts +68 -0
- package/src/sdk/types/blobs.ts +31 -0
- package/src/sdk/types/constdatetime.ts +15 -0
- package/src/sdk/types/enums.ts +16 -0
- package/src/sdk/types/fp.ts +50 -0
- package/src/sdk/types/index.ts +11 -0
- package/src/sdk/types/operations.ts +105 -0
- package/src/sdk/types/rfcdate.ts +54 -0
- package/src/sdk/types/streams.ts +21 -0
- package/test-local.ts +145 -0
- package/tsconfig.json +41 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"WebFetch(domain:traveltime.com)",
|
|
5
|
+
"WebSearch",
|
|
6
|
+
"WebFetch(domain:github.com)",
|
|
7
|
+
"Read(//Users/goran/Projects/vepler-stack/**)",
|
|
8
|
+
"Bash(git add:*)",
|
|
9
|
+
"Bash(npm view:*)"
|
|
10
|
+
],
|
|
11
|
+
"deny": [],
|
|
12
|
+
"ask": []
|
|
13
|
+
}
|
|
14
|
+
}
|
package/FUNCTIONS.md
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# Standalone Functions
|
|
2
|
+
|
|
3
|
+
> [!NOTE]
|
|
4
|
+
> This section is useful if you are using a bundler and targetting browsers and
|
|
5
|
+
> runtimes where the size of an application affects performance and load times.
|
|
6
|
+
|
|
7
|
+
Every method in this SDK is also available as a standalone function. This
|
|
8
|
+
alternative API is suitable when targetting the browser or serverless runtimes
|
|
9
|
+
and using a bundler to build your application since all unused functionality
|
|
10
|
+
will be tree-shaken away. This includes code for unused methods, Zod schemas,
|
|
11
|
+
encoding helpers and response handlers. The result is dramatically smaller
|
|
12
|
+
impact on the application's final bundle size which grows very slowly as you use
|
|
13
|
+
more and more functionality from this SDK.
|
|
14
|
+
|
|
15
|
+
Calling methods through the main SDK class remains a valid and generally more
|
|
16
|
+
more ergonomic option. Standalone functions represent an optimisation for a
|
|
17
|
+
specific category of applications.
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { SDKCore } from "@vepler/sdk/core.js";
|
|
23
|
+
import { healthGetV1PlanningHealth } from "@vepler/sdk/funcs/healthGetV1PlanningHealth.js";
|
|
24
|
+
|
|
25
|
+
// Use `SDKCore` for best tree-shaking performance.
|
|
26
|
+
// You can create one instance of it to use across an application.
|
|
27
|
+
const sdk = new SDKCore({
|
|
28
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
async function run() {
|
|
32
|
+
const res = await healthGetV1PlanningHealth(sdk);
|
|
33
|
+
if (res.ok) {
|
|
34
|
+
const { value: result } = res;
|
|
35
|
+
console.log(result);
|
|
36
|
+
} else {
|
|
37
|
+
console.log("healthGetV1PlanningHealth failed:", res.error);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
run();
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Result types
|
|
45
|
+
|
|
46
|
+
Standalone functions differ from SDK methods in that they return a
|
|
47
|
+
`Result<Value, Error>` type to capture _known errors_ and document them using
|
|
48
|
+
the type system. By avoiding throwing errors, application code maintains clear
|
|
49
|
+
control flow and error-handling become part of the regular flow of application
|
|
50
|
+
code.
|
|
51
|
+
|
|
52
|
+
> We use the term "known errors" because standalone functions, and JavaScript
|
|
53
|
+
> code in general, can still throw unexpected errors such as `TypeError`s,
|
|
54
|
+
> `RangeError`s and `DOMException`s. Exhaustively catching all errors may be
|
|
55
|
+
> something this SDK addresses in the future. Nevertheless, there is still a lot
|
|
56
|
+
> of benefit from capturing most errors and turning them into values.
|
|
57
|
+
|
|
58
|
+
The second reason for this style of programming is because these functions will
|
|
59
|
+
typically be used in front-end applications where exception throwing is
|
|
60
|
+
sometimes discouraged or considered unidiomatic. React and similar ecosystems
|
|
61
|
+
and libraries tend to promote this style of programming so that components
|
|
62
|
+
render useful content under all states (loading, success, error and so on).
|
|
63
|
+
|
|
64
|
+
The general pattern when calling standalone functions looks like this:
|
|
65
|
+
|
|
66
|
+
```typescript
|
|
67
|
+
import { Core } from "<sdk-package-name>";
|
|
68
|
+
import { fetchSomething } from "<sdk-package-name>/funcs/fetchSomething.js";
|
|
69
|
+
|
|
70
|
+
const client = new Core();
|
|
71
|
+
|
|
72
|
+
async function run() {
|
|
73
|
+
const result = await fetchSomething(client, { id: "123" });
|
|
74
|
+
if (!result.ok) {
|
|
75
|
+
// You can throw the error or handle it. It's your choice now.
|
|
76
|
+
throw result.error;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
console.log(result.value);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
run();
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Notably, `result.error` above will have an explicit type compared to a try-catch
|
|
86
|
+
variation where the error in the catch block can only be of type `unknown` (or
|
|
87
|
+
`any` depending on your TypeScript settings).
|
package/README.md
ADDED
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
# @vepler/sdk
|
|
2
|
+
|
|
3
|
+
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@vepler/sdk* API.
|
|
4
|
+
|
|
5
|
+
<div align="left">
|
|
6
|
+
<a href="https://www.speakeasy.com/?utm_source=@vepler/sdk&utm_campaign=typescript"><img src="https://custom-icon-badges.demolab.com/badge/-Built%20By%20Speakeasy-212015?style=for-the-badge&logoColor=FBE331&logo=speakeasy&labelColor=545454" /></a>
|
|
7
|
+
<a href="https://opensource.org/licenses/MIT">
|
|
8
|
+
<img src="https://img.shields.io/badge/License-MIT-blue.svg" style="width: 100px; height: 28px;" />
|
|
9
|
+
</a>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<br /><br />
|
|
14
|
+
|
|
15
|
+
<!-- Start Summary [summary] -->
|
|
16
|
+
## Summary
|
|
17
|
+
|
|
18
|
+
Vepler Public API: The definitive public API for UK property technology. Access comprehensive property data, EPC certificates, price register, and more. Private endpoints (webhooks, admin) are not included in this specification.
|
|
19
|
+
<!-- End Summary [summary] -->
|
|
20
|
+
|
|
21
|
+
<!-- Start Table of Contents [toc] -->
|
|
22
|
+
## Table of Contents
|
|
23
|
+
<!-- $toc-max-depth=2 -->
|
|
24
|
+
* [@vepler/sdk](#veplersdk)
|
|
25
|
+
* [SDK Installation](#sdk-installation)
|
|
26
|
+
* [Authentication](#authentication)
|
|
27
|
+
* [Requirements](#requirements)
|
|
28
|
+
* [SDK Example Usage](#sdk-example-usage)
|
|
29
|
+
* [Authentication](#authentication-1)
|
|
30
|
+
* [Available Resources and Operations](#available-resources-and-operations)
|
|
31
|
+
* [Standalone functions](#standalone-functions)
|
|
32
|
+
* [Retries](#retries)
|
|
33
|
+
* [Error Handling](#error-handling)
|
|
34
|
+
* [Server Selection](#server-selection)
|
|
35
|
+
* [Custom HTTP Client](#custom-http-client)
|
|
36
|
+
* [Debugging](#debugging)
|
|
37
|
+
* [Testing](#testing)
|
|
38
|
+
* [Development](#development)
|
|
39
|
+
* [Maturity](#maturity)
|
|
40
|
+
* [Contributions](#contributions)
|
|
41
|
+
|
|
42
|
+
<!-- End Table of Contents [toc] -->
|
|
43
|
+
|
|
44
|
+
<!-- Start SDK Installation [installation] -->
|
|
45
|
+
## SDK Installation
|
|
46
|
+
|
|
47
|
+
> [!TIP]
|
|
48
|
+
> To finish publishing your SDK to npm and others you must [run your first generation action](https://www.speakeasy.com/docs/github-setup#step-by-step-guide).
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
The SDK can be installed with either [npm](https://www.npmjs.com/), [pnpm](https://pnpm.io/), [bun](https://bun.sh/) or [yarn](https://classic.yarnpkg.com/en/) package managers.
|
|
52
|
+
|
|
53
|
+
### NPM
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
npm add <UNSET>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### PNPM
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
pnpm add <UNSET>
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Bun
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
bun add <UNSET>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Yarn
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
yarn add <UNSET> zod
|
|
75
|
+
|
|
76
|
+
# Note that Yarn does not install peer dependencies automatically. You will need
|
|
77
|
+
# to install zod as shown above.
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
> [!NOTE]
|
|
81
|
+
> This package is published with CommonJS and ES Modules (ESM) support.
|
|
82
|
+
<!-- End SDK Installation [installation] -->
|
|
83
|
+
|
|
84
|
+
## Authentication
|
|
85
|
+
|
|
86
|
+
To use the Vepler SDK, you need an API key. You can obtain one by contacting support@vepler.com.
|
|
87
|
+
|
|
88
|
+
Once you have your API key, you can initialize the SDK:
|
|
89
|
+
|
|
90
|
+
```typescript
|
|
91
|
+
import { SDK } from "@vepler/sdk";
|
|
92
|
+
|
|
93
|
+
const sdk = new SDK({
|
|
94
|
+
apiKey: "your-api-key-here",
|
|
95
|
+
// Optional: specify a different server URL
|
|
96
|
+
serverURL: "https://api.vepler.com",
|
|
97
|
+
});
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
For security, we recommend storing your API key in environment variables:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
export VEPLER_API_KEY=your-api-key-here
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
```typescript
|
|
107
|
+
const sdk = new SDK({
|
|
108
|
+
apiKey: process.env.VEPLER_API_KEY,
|
|
109
|
+
});
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
<!-- Start Requirements [requirements] -->
|
|
113
|
+
## Requirements
|
|
114
|
+
|
|
115
|
+
For supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md).
|
|
116
|
+
<!-- End Requirements [requirements] -->
|
|
117
|
+
|
|
118
|
+
<!-- Start SDK Example Usage [usage] -->
|
|
119
|
+
## SDK Example Usage
|
|
120
|
+
|
|
121
|
+
### Example
|
|
122
|
+
|
|
123
|
+
```typescript
|
|
124
|
+
import { SDK } from "@vepler/sdk";
|
|
125
|
+
|
|
126
|
+
const sdk = new SDK({
|
|
127
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
async function run() {
|
|
131
|
+
const result = await sdk.health.getV1PlanningHealth();
|
|
132
|
+
|
|
133
|
+
console.log(result);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
run();
|
|
137
|
+
|
|
138
|
+
```
|
|
139
|
+
<!-- End SDK Example Usage [usage] -->
|
|
140
|
+
|
|
141
|
+
<!-- Start Authentication [security] -->
|
|
142
|
+
## Authentication
|
|
143
|
+
|
|
144
|
+
### Per-Client Security Schemes
|
|
145
|
+
|
|
146
|
+
This SDK supports the following security scheme globally:
|
|
147
|
+
|
|
148
|
+
| Name | Type | Scheme |
|
|
149
|
+
| ------------ | ------ | ------- |
|
|
150
|
+
| `apiKeyAuth` | apiKey | API key |
|
|
151
|
+
|
|
152
|
+
To authenticate with the API the `apiKeyAuth` parameter must be set when initializing the SDK client instance. For example:
|
|
153
|
+
```typescript
|
|
154
|
+
import { SDK } from "@vepler/sdk";
|
|
155
|
+
|
|
156
|
+
const sdk = new SDK({
|
|
157
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
async function run() {
|
|
161
|
+
const result = await sdk.health.getV1PlanningHealth();
|
|
162
|
+
|
|
163
|
+
console.log(result);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
run();
|
|
167
|
+
|
|
168
|
+
```
|
|
169
|
+
<!-- End Authentication [security] -->
|
|
170
|
+
|
|
171
|
+
<!-- Start Available Resources and Operations [operations] -->
|
|
172
|
+
## Available Resources and Operations
|
|
173
|
+
|
|
174
|
+
<details open>
|
|
175
|
+
<summary>Available methods</summary>
|
|
176
|
+
|
|
177
|
+
### [health](docs/sdks/health/README.md)
|
|
178
|
+
|
|
179
|
+
* [getV1PlanningHealth](docs/sdks/health/README.md#getv1planninghealth) - Planning service health check
|
|
180
|
+
* [getV1PropertyHealth](docs/sdks/health/README.md#getv1propertyhealth) - Property service health check
|
|
181
|
+
|
|
182
|
+
### [planning](docs/sdks/planning/README.md)
|
|
183
|
+
|
|
184
|
+
* [getV1PlanningSourcesSourceIds](docs/sdks/planning/README.md#getv1planningsourcessourceids) - Get planning applications by source IDs
|
|
185
|
+
* [getV1PlanningApplicationIds](docs/sdks/planning/README.md#getv1planningapplicationids) - Get planning applications by application IDs
|
|
186
|
+
* [postV1PlanningQuery](docs/sdks/planning/README.md#postv1planningquery) - Query planning applications with advanced filters
|
|
187
|
+
|
|
188
|
+
### [property](docs/sdks/property/README.md)
|
|
189
|
+
|
|
190
|
+
* [getV1PropertyPropertyIdPropertyIds](docs/sdks/property/README.md#getv1propertypropertyidpropertyids) - Get properties by property IDs
|
|
191
|
+
* [getV1PropertySourcesSourceIds](docs/sdks/property/README.md#getv1propertysourcessourceids) - Get properties by source IDs
|
|
192
|
+
* [getV1PropertyLocationIds](docs/sdks/property/README.md#getv1propertylocationids) - Get properties by location IDs
|
|
193
|
+
* [postV1PropertyPropertiesBySlugs](docs/sdks/property/README.md#postv1propertypropertiesbyslugs) - Get properties by slugs
|
|
194
|
+
* [postV1PropertyQuery](docs/sdks/property/README.md#postv1propertyquery) - Query properties with advanced filters
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
</details>
|
|
198
|
+
<!-- End Available Resources and Operations [operations] -->
|
|
199
|
+
|
|
200
|
+
<!-- Start Standalone functions [standalone-funcs] -->
|
|
201
|
+
## Standalone functions
|
|
202
|
+
|
|
203
|
+
All the methods listed above are available as standalone functions. These
|
|
204
|
+
functions are ideal for use in applications running in the browser, serverless
|
|
205
|
+
runtimes or other environments where application bundle size is a primary
|
|
206
|
+
concern. When using a bundler to build your application, all unused
|
|
207
|
+
functionality will be either excluded from the final bundle or tree-shaken away.
|
|
208
|
+
|
|
209
|
+
To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
210
|
+
|
|
211
|
+
<details>
|
|
212
|
+
|
|
213
|
+
<summary>Available standalone functions</summary>
|
|
214
|
+
|
|
215
|
+
- [`healthGetV1PlanningHealth`](docs/sdks/health/README.md#getv1planninghealth) - Planning service health check
|
|
216
|
+
- [`healthGetV1PropertyHealth`](docs/sdks/health/README.md#getv1propertyhealth) - Property service health check
|
|
217
|
+
- [`planningGetV1PlanningApplicationIds`](docs/sdks/planning/README.md#getv1planningapplicationids) - Get planning applications by application IDs
|
|
218
|
+
- [`planningGetV1PlanningSourcesSourceIds`](docs/sdks/planning/README.md#getv1planningsourcessourceids) - Get planning applications by source IDs
|
|
219
|
+
- [`planningPostV1PlanningQuery`](docs/sdks/planning/README.md#postv1planningquery) - Query planning applications with advanced filters
|
|
220
|
+
- [`propertyGetV1PropertyLocationIds`](docs/sdks/property/README.md#getv1propertylocationids) - Get properties by location IDs
|
|
221
|
+
- [`propertyGetV1PropertyPropertyIdPropertyIds`](docs/sdks/property/README.md#getv1propertypropertyidpropertyids) - Get properties by property IDs
|
|
222
|
+
- [`propertyGetV1PropertySourcesSourceIds`](docs/sdks/property/README.md#getv1propertysourcessourceids) - Get properties by source IDs
|
|
223
|
+
- [`propertyPostV1PropertyPropertiesBySlugs`](docs/sdks/property/README.md#postv1propertypropertiesbyslugs) - Get properties by slugs
|
|
224
|
+
- [`propertyPostV1PropertyQuery`](docs/sdks/property/README.md#postv1propertyquery) - Query properties with advanced filters
|
|
225
|
+
|
|
226
|
+
</details>
|
|
227
|
+
<!-- End Standalone functions [standalone-funcs] -->
|
|
228
|
+
|
|
229
|
+
<!-- Start Retries [retries] -->
|
|
230
|
+
## Retries
|
|
231
|
+
|
|
232
|
+
Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.
|
|
233
|
+
|
|
234
|
+
To change the default retry strategy for a single API call, simply provide a retryConfig object to the call:
|
|
235
|
+
```typescript
|
|
236
|
+
import { SDK } from "@vepler/sdk";
|
|
237
|
+
|
|
238
|
+
const sdk = new SDK({
|
|
239
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
async function run() {
|
|
243
|
+
const result = await sdk.health.getV1PlanningHealth({
|
|
244
|
+
retries: {
|
|
245
|
+
strategy: "backoff",
|
|
246
|
+
backoff: {
|
|
247
|
+
initialInterval: 1,
|
|
248
|
+
maxInterval: 50,
|
|
249
|
+
exponent: 1.1,
|
|
250
|
+
maxElapsedTime: 100,
|
|
251
|
+
},
|
|
252
|
+
retryConnectionErrors: false,
|
|
253
|
+
},
|
|
254
|
+
});
|
|
255
|
+
|
|
256
|
+
console.log(result);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
run();
|
|
260
|
+
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
If you'd like to override the default retry strategy for all operations that support retries, you can provide a retryConfig at SDK initialization:
|
|
264
|
+
```typescript
|
|
265
|
+
import { SDK } from "@vepler/sdk";
|
|
266
|
+
|
|
267
|
+
const sdk = new SDK({
|
|
268
|
+
retryConfig: {
|
|
269
|
+
strategy: "backoff",
|
|
270
|
+
backoff: {
|
|
271
|
+
initialInterval: 1,
|
|
272
|
+
maxInterval: 50,
|
|
273
|
+
exponent: 1.1,
|
|
274
|
+
maxElapsedTime: 100,
|
|
275
|
+
},
|
|
276
|
+
retryConnectionErrors: false,
|
|
277
|
+
},
|
|
278
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
279
|
+
});
|
|
280
|
+
|
|
281
|
+
async function run() {
|
|
282
|
+
const result = await sdk.health.getV1PlanningHealth();
|
|
283
|
+
|
|
284
|
+
console.log(result);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
run();
|
|
288
|
+
|
|
289
|
+
```
|
|
290
|
+
<!-- End Retries [retries] -->
|
|
291
|
+
|
|
292
|
+
<!-- Start Error Handling [errors] -->
|
|
293
|
+
## Error Handling
|
|
294
|
+
|
|
295
|
+
[`SDKBaseError`](./src/sdk/models/errors/sdkbaseerror.ts) is the base class for all HTTP error responses. It has the following properties:
|
|
296
|
+
|
|
297
|
+
| Property | Type | Description |
|
|
298
|
+
| ------------------- | ---------- | ------------------------------------------------------ |
|
|
299
|
+
| `error.message` | `string` | Error message |
|
|
300
|
+
| `error.statusCode` | `number` | HTTP response status code eg `404` |
|
|
301
|
+
| `error.headers` | `Headers` | HTTP response headers |
|
|
302
|
+
| `error.body` | `string` | HTTP body. Can be empty string if no body is returned. |
|
|
303
|
+
| `error.rawResponse` | `Response` | Raw HTTP response |
|
|
304
|
+
|
|
305
|
+
### Example
|
|
306
|
+
```typescript
|
|
307
|
+
import { SDK } from "@vepler/sdk";
|
|
308
|
+
import * as errors from "@vepler/sdk/sdk/models/errors";
|
|
309
|
+
|
|
310
|
+
const sdk = new SDK({
|
|
311
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
312
|
+
});
|
|
313
|
+
|
|
314
|
+
async function run() {
|
|
315
|
+
try {
|
|
316
|
+
const result = await sdk.health.getV1PlanningHealth();
|
|
317
|
+
|
|
318
|
+
console.log(result);
|
|
319
|
+
} catch (error) {
|
|
320
|
+
if (error instanceof errors.SDKBaseError) {
|
|
321
|
+
console.log(error.message);
|
|
322
|
+
console.log(error.statusCode);
|
|
323
|
+
console.log(error.body);
|
|
324
|
+
console.log(error.headers);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
run();
|
|
330
|
+
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
### Error Classes
|
|
334
|
+
**Primary error:**
|
|
335
|
+
* [`SDKBaseError`](./src/sdk/models/errors/sdkbaseerror.ts): The base class for HTTP error responses.
|
|
336
|
+
|
|
337
|
+
<details><summary>Less common errors (6)</summary>
|
|
338
|
+
|
|
339
|
+
<br />
|
|
340
|
+
|
|
341
|
+
**Network errors:**
|
|
342
|
+
* [`ConnectionError`](./src/sdk/models/errors/httpclienterrors.ts): HTTP client was unable to make a request to a server.
|
|
343
|
+
* [`RequestTimeoutError`](./src/sdk/models/errors/httpclienterrors.ts): HTTP request timed out due to an AbortSignal signal.
|
|
344
|
+
* [`RequestAbortedError`](./src/sdk/models/errors/httpclienterrors.ts): HTTP request was aborted by the client.
|
|
345
|
+
* [`InvalidRequestError`](./src/sdk/models/errors/httpclienterrors.ts): Any input used to create a request is invalid.
|
|
346
|
+
* [`UnexpectedClientError`](./src/sdk/models/errors/httpclienterrors.ts): Unrecognised or unexpected error.
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
**Inherit from [`SDKBaseError`](./src/sdk/models/errors/sdkbaseerror.ts)**:
|
|
350
|
+
* [`ResponseValidationError`](./src/sdk/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
|
|
351
|
+
|
|
352
|
+
</details>
|
|
353
|
+
<!-- End Error Handling [errors] -->
|
|
354
|
+
|
|
355
|
+
<!-- Start Server Selection [server] -->
|
|
356
|
+
## Server Selection
|
|
357
|
+
|
|
358
|
+
### Override Server URL Per-Client
|
|
359
|
+
|
|
360
|
+
The default server can be overridden globally by passing a URL to the `serverURL: string` optional parameter when initializing the SDK client instance. For example:
|
|
361
|
+
```typescript
|
|
362
|
+
import { SDK } from "@vepler/sdk";
|
|
363
|
+
|
|
364
|
+
const sdk = new SDK({
|
|
365
|
+
serverURL: "https://api.vepler.com/v1",
|
|
366
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
367
|
+
});
|
|
368
|
+
|
|
369
|
+
async function run() {
|
|
370
|
+
const result = await sdk.health.getV1PlanningHealth();
|
|
371
|
+
|
|
372
|
+
console.log(result);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
run();
|
|
376
|
+
|
|
377
|
+
```
|
|
378
|
+
<!-- End Server Selection [server] -->
|
|
379
|
+
|
|
380
|
+
<!-- Start Custom HTTP Client [http-client] -->
|
|
381
|
+
## Custom HTTP Client
|
|
382
|
+
|
|
383
|
+
The TypeScript SDK makes API calls using an `HTTPClient` that wraps the native
|
|
384
|
+
[Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API). This
|
|
385
|
+
client is a thin wrapper around `fetch` and provides the ability to attach hooks
|
|
386
|
+
around the request lifecycle that can be used to modify the request or handle
|
|
387
|
+
errors and response.
|
|
388
|
+
|
|
389
|
+
The `HTTPClient` constructor takes an optional `fetcher` argument that can be
|
|
390
|
+
used to integrate a third-party HTTP client or when writing tests to mock out
|
|
391
|
+
the HTTP client and feed in fixtures.
|
|
392
|
+
|
|
393
|
+
The following example shows how to use the `"beforeRequest"` hook to to add a
|
|
394
|
+
custom header and a timeout to requests and how to use the `"requestError"` hook
|
|
395
|
+
to log errors:
|
|
396
|
+
|
|
397
|
+
```typescript
|
|
398
|
+
import { SDK } from "@vepler/sdk";
|
|
399
|
+
import { HTTPClient } from "@vepler/sdk/lib/http";
|
|
400
|
+
|
|
401
|
+
const httpClient = new HTTPClient({
|
|
402
|
+
// fetcher takes a function that has the same signature as native `fetch`.
|
|
403
|
+
fetcher: (request) => {
|
|
404
|
+
return fetch(request);
|
|
405
|
+
}
|
|
406
|
+
});
|
|
407
|
+
|
|
408
|
+
httpClient.addHook("beforeRequest", (request) => {
|
|
409
|
+
const nextRequest = new Request(request, {
|
|
410
|
+
signal: request.signal || AbortSignal.timeout(5000)
|
|
411
|
+
});
|
|
412
|
+
|
|
413
|
+
nextRequest.headers.set("x-custom-header", "custom value");
|
|
414
|
+
|
|
415
|
+
return nextRequest;
|
|
416
|
+
});
|
|
417
|
+
|
|
418
|
+
httpClient.addHook("requestError", (error, request) => {
|
|
419
|
+
console.group("Request Error");
|
|
420
|
+
console.log("Reason:", `${error}`);
|
|
421
|
+
console.log("Endpoint:", `${request.method} ${request.url}`);
|
|
422
|
+
console.groupEnd();
|
|
423
|
+
});
|
|
424
|
+
|
|
425
|
+
const sdk = new SDK({ httpClient });
|
|
426
|
+
```
|
|
427
|
+
<!-- End Custom HTTP Client [http-client] -->
|
|
428
|
+
|
|
429
|
+
<!-- Start Debugging [debug] -->
|
|
430
|
+
## Debugging
|
|
431
|
+
|
|
432
|
+
You can setup your SDK to emit debug logs for SDK requests and responses.
|
|
433
|
+
|
|
434
|
+
You can pass a logger that matches `console`'s interface as an SDK option.
|
|
435
|
+
|
|
436
|
+
> [!WARNING]
|
|
437
|
+
> Beware that debug logging will reveal secrets, like API tokens in headers, in log messages printed to a console or files. It's recommended to use this feature only during local development and not in production.
|
|
438
|
+
|
|
439
|
+
```typescript
|
|
440
|
+
import { SDK } from "@vepler/sdk";
|
|
441
|
+
|
|
442
|
+
const sdk = new SDK({ debugLogger: console });
|
|
443
|
+
```
|
|
444
|
+
<!-- End Debugging [debug] -->
|
|
445
|
+
|
|
446
|
+
<!-- Placeholder for Future Speakeasy SDK Sections -->
|
|
447
|
+
|
|
448
|
+
## Testing
|
|
449
|
+
|
|
450
|
+
For local testing, use the provided test script:
|
|
451
|
+
|
|
452
|
+
```bash
|
|
453
|
+
# Set your API key
|
|
454
|
+
export VEPLER_API_KEY=your-api-key-here
|
|
455
|
+
|
|
456
|
+
# Run the test script
|
|
457
|
+
bun run test-local.ts
|
|
458
|
+
```
|
|
459
|
+
|
|
460
|
+
The test script will verify:
|
|
461
|
+
- API connectivity
|
|
462
|
+
- Authentication
|
|
463
|
+
- Basic CRUD operations
|
|
464
|
+
- Error handling
|
|
465
|
+
|
|
466
|
+
# Development
|
|
467
|
+
|
|
468
|
+
## Maturity
|
|
469
|
+
|
|
470
|
+
This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage
|
|
471
|
+
to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally
|
|
472
|
+
looking for the latest version.
|
|
473
|
+
|
|
474
|
+
## Contributions
|
|
475
|
+
|
|
476
|
+
While we value open-source contributions to this SDK, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation.
|
|
477
|
+
We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release.
|
|
478
|
+
|
|
479
|
+
### SDK Created by [Speakeasy](https://www.speakeasy.com/?utm_source=@vepler/sdk&utm_campaign=typescript)
|
package/RUNTIMES.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Supported JavaScript runtimes
|
|
2
|
+
|
|
3
|
+
This SDK is intended to be used in JavaScript runtimes that support ECMAScript 2020 or newer. The SDK uses the following features:
|
|
4
|
+
|
|
5
|
+
* [Web Fetch API][web-fetch]
|
|
6
|
+
* [Web Streams API][web-streams] and in particular `ReadableStream`
|
|
7
|
+
* [Async iterables][async-iter] using `Symbol.asyncIterator`
|
|
8
|
+
|
|
9
|
+
[web-fetch]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
|
|
10
|
+
[web-streams]: https://developer.mozilla.org/en-US/docs/Web/API/Streams_API
|
|
11
|
+
[async-iter]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#the_async_iterator_and_async_iterable_protocols
|
|
12
|
+
|
|
13
|
+
Runtime environments that are explicitly supported are:
|
|
14
|
+
|
|
15
|
+
- Evergreen browsers which include: Chrome, Safari, Edge, Firefox
|
|
16
|
+
- Node.js active and maintenance LTS releases
|
|
17
|
+
- Currently, this is v18 and v20
|
|
18
|
+
- Bun v1 and above
|
|
19
|
+
- Deno v1.39
|
|
20
|
+
- Note that Deno does not currently have native support for streaming file uploads backed by the filesystem ([issue link][deno-file-streaming])
|
|
21
|
+
|
|
22
|
+
[deno-file-streaming]: https://github.com/denoland/deno/issues/11018
|
|
23
|
+
|
|
24
|
+
## Recommended TypeScript compiler options
|
|
25
|
+
|
|
26
|
+
The following `tsconfig.json` options are recommended for projects using this
|
|
27
|
+
SDK in order to get static type support for features like async iterables,
|
|
28
|
+
streams and `fetch`-related APIs ([`for await...of`][for-await-of],
|
|
29
|
+
[`AbortSignal`][abort-signal], [`Request`][request], [`Response`][response] and
|
|
30
|
+
so on):
|
|
31
|
+
|
|
32
|
+
[for-await-of]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of
|
|
33
|
+
[abort-signal]: https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal
|
|
34
|
+
[request]: https://developer.mozilla.org/en-US/docs/Web/API/Request
|
|
35
|
+
[response]: https://developer.mozilla.org/en-US/docs/Web/API/Response
|
|
36
|
+
|
|
37
|
+
```jsonc
|
|
38
|
+
{
|
|
39
|
+
"compilerOptions": {
|
|
40
|
+
"target": "es2020", // or higher
|
|
41
|
+
"lib": ["es2020", "dom", "dom.iterable"],
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
While `target` can be set to older ECMAScript versions, it may result in extra,
|
|
47
|
+
unnecessary compatibility code being generated if you are not targeting old
|
|
48
|
+
runtimes.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ClientSDK } from "./lib/sdks.js";
|
|
2
|
+
/**
|
|
3
|
+
* A minimal client to use when calling standalone SDK functions. Typically, an
|
|
4
|
+
* instance of this class would be instantiated once at the start of an
|
|
5
|
+
* application and passed around through some dependency injection mechanism to
|
|
6
|
+
* parts of an application that need to make SDK calls.
|
|
7
|
+
*/
|
|
8
|
+
export declare class SDKCore extends ClientSDK {
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=core.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/core.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C;;;;;GAKG;AACH,qBAAa,OAAQ,SAAQ,SAAS;CAAG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.SDKCore = void 0;
|
|
7
|
+
const sdks_js_1 = require("./lib/sdks.js");
|
|
8
|
+
/**
|
|
9
|
+
* A minimal client to use when calling standalone SDK functions. Typically, an
|
|
10
|
+
* instance of this class would be instantiated once at the start of an
|
|
11
|
+
* application and passed around through some dependency injection mechanism to
|
|
12
|
+
* parts of an application that need to make SDK calls.
|
|
13
|
+
*/
|
|
14
|
+
class SDKCore extends sdks_js_1.ClientSDK {
|
|
15
|
+
}
|
|
16
|
+
exports.SDKCore = SDKCore;
|
|
17
|
+
//# sourceMappingURL=core.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.js","sourceRoot":"","sources":["../../src/core.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,2CAA0C;AAE1C;;;;;GAKG;AACH,MAAa,OAAQ,SAAQ,mBAAS;CAAG;AAAzC,0BAAyC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SDKCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/errors/httpclienterrors.js";
|
|
4
|
+
import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js";
|
|
5
|
+
import { SDKBaseError } from "../sdk/models/errors/sdkbaseerror.js";
|
|
6
|
+
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
|
7
|
+
import * as shared from "../sdk/models/shared/index.js";
|
|
8
|
+
import { APIPromise } from "../sdk/types/async.js";
|
|
9
|
+
import { Result } from "../sdk/types/fp.js";
|
|
10
|
+
/**
|
|
11
|
+
* Planning service health check
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* Check if the planning service is operational
|
|
15
|
+
*/
|
|
16
|
+
export declare function healthGetV1PlanningHealth(client: SDKCore, options?: RequestOptions): APIPromise<Result<shared.HealthResponse, SDKBaseError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
|
+
//# sourceMappingURL=healthGetV1PlanningHealth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"healthGetV1PlanningHealth.d.ts","sourceRoot":"","sources":["../../../src/funcs/healthGetV1PlanningHealth.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAC1F,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAW,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,OAAO,EACf,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,cAAc,EACnB,YAAY,GACZ,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAKA"}
|