@oapiex/sdk-kit 0.1.9 → 0.1.11
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/dist/contracts.d.ts +1 -1
- package/dist/contracts.mjs +1 -0
- package/dist/index.cjs +76 -17975
- package/dist/index.d.ts +10 -6
- package/dist/index.mjs +1159 -0
- package/package.json +5 -5
- package/dist/chunk-BLWcukCW.js +0 -33
- package/dist/chunk-BncF-t-1.cjs +0 -48
- package/dist/contracts.d.cts +0 -2
- package/dist/find-up-simple-BGJv1vWM.cjs +0 -34
- package/dist/find-up-simple-eHmrWCoZ.js +0 -30
- package/dist/index-BM1p0FMj.d.ts +0 -164
- package/dist/index.d.cts +0 -621
- package/dist/index.js +0 -19081
- /package/dist/{index-BA7Ul1Pi.d.cts → index-CZOi0v1m.d.ts} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { A as CountryCodeRestricted, C as UnifiedResponse, D as ValidationErrorResponse, E as ValidationError, O as XGenericObject, S as SuccessResponse, T as UserUrls, _ as NormalPagination, a as AuthErrorResponse, b as Response, c as BasicAuthConfig, d as CustomAuthConfig, f as DebugLevel, g as InitOptions, h as HttpMethod, i as AuthConfig, j as CurrencyCode, k as CountryCode, l as BearerAuthConfig, m as ErrorResponse, n as AccessValidationResult, o as AuthRequestConfig, p as Environment, r as ApiKeyAuthConfig, s as AuthResponse, t as AccessValidationConfigUpdate, u as CursorPagination, v as OAuth2AuthConfig, w as UserConfig, x as ResponseStatus, y as PageInfoMeta } from "./index-
|
|
2
|
-
import "dotenv/config";
|
|
1
|
+
import { A as CountryCodeRestricted, C as UnifiedResponse, D as ValidationErrorResponse, E as ValidationError, O as XGenericObject, S as SuccessResponse, T as UserUrls, _ as NormalPagination, a as AuthErrorResponse, b as Response, c as BasicAuthConfig, d as CustomAuthConfig, f as DebugLevel, g as InitOptions, h as HttpMethod, i as AuthConfig, j as CurrencyCode, k as CountryCode, l as BearerAuthConfig, m as ErrorResponse, n as AccessValidationResult, o as AuthRequestConfig, p as Environment, r as ApiKeyAuthConfig, s as AuthResponse, t as AccessValidationConfigUpdate, u as CursorPagination, v as OAuth2AuthConfig, w as UserConfig, x as ResponseStatus, y as PageInfoMeta } from "./index-CZOi0v1m.js";
|
|
3
2
|
import * as axios0 from "axios";
|
|
4
3
|
import { RawAxiosRequestHeaders } from "axios";
|
|
5
4
|
|
|
@@ -321,7 +320,7 @@ declare class HttpException extends Error {
|
|
|
321
320
|
* @param code
|
|
322
321
|
* @param data
|
|
323
322
|
*/
|
|
324
|
-
static fromCode(code: number, data: Required<UnifiedResponse>, parent?: Error): BadRequestException |
|
|
323
|
+
static fromCode(code: number, data: Required<UnifiedResponse>, parent?: Error): BadRequestException | HttpException | UnauthorizedRequestException | ForbiddenRequestException;
|
|
325
324
|
}
|
|
326
325
|
//#endregion
|
|
327
326
|
//#region src/Apis/BaseApi.d.ts
|
|
@@ -369,6 +368,12 @@ declare class BaseApi {
|
|
|
369
368
|
static initialize<T extends BaseApi>(this: new (coreInstance: Core) => T, coreInstance: Core): T;
|
|
370
369
|
}
|
|
371
370
|
//#endregion
|
|
371
|
+
//#region src/config.d.ts
|
|
372
|
+
declare const defaultConfig: UserConfig;
|
|
373
|
+
declare const createDefaultConfig: () => UserConfig;
|
|
374
|
+
declare const mergeConfig: (baseConfig: UserConfig, config: Partial<UserConfig>) => UserConfig;
|
|
375
|
+
declare const defineConfig: <TConfig extends Partial<UserConfig>>(config: TConfig) => TConfig;
|
|
376
|
+
//#endregion
|
|
372
377
|
//#region src/global.d.ts
|
|
373
378
|
declare global {
|
|
374
379
|
interface String {
|
|
@@ -571,10 +576,9 @@ declare const normalizeValue: <T>(value: T | T[]) => T[];
|
|
|
571
576
|
declare const buildUrl: (baseUrl: string, ...endpoint: string[]) => string;
|
|
572
577
|
//#endregion
|
|
573
578
|
//#region src/utilities/Manager.d.ts
|
|
574
|
-
declare const defaultConfig: UserConfig;
|
|
575
579
|
declare let globalConfig: UserConfig;
|
|
576
580
|
declare const loadUserConfig: (rootDir?: string) => Partial<UserConfig> | null;
|
|
577
|
-
declare const
|
|
581
|
+
declare const updateConfig: (config: Partial<UserConfig>) => UserConfig;
|
|
578
582
|
declare const getConfig: () => UserConfig;
|
|
579
583
|
declare const resetConfig: () => UserConfig;
|
|
580
584
|
//#endregion
|
|
@@ -619,4 +623,4 @@ declare class WebhookValidator<Options extends XGenericObject = XGenericObject>
|
|
|
619
623
|
};
|
|
620
624
|
}
|
|
621
625
|
//#endregion
|
|
622
|
-
export { AccessTokenCacheLoader, AccessValidationConfigUpdate, AccessValidationResult, ApiKeyAuthConfig, AuthCacheLoader, AuthConfig, AuthErrorResponse, AuthRequestConfig, AuthResponse, BadRequestException, BaseApi, BasicAuthConfig, BearerAuthConfig, Builder, CachedAccessTokenValue, CachedAuthValue, Core, CountryCode, CountryCodeRestricted, CurrencyCode, CursorPagination, CustomAuthConfig, DebugLevel, Environment, ErrorResponse, ForbiddenRequestException, Http, HttpException, HttpMethod, InferRuntimeSdkApi, InitOptions, NormalPagination, OAuth2AuthConfig, PageInfoMeta, Response, ResponseStatus, RuntimeSdkBundle, RuntimeSdkGroupManifest, RuntimeSdkManifest, RuntimeSdkOperationManifest, RuntimeSdkParameterManifest, RuntimeSdkSecurityRequirementManifest, RuntimeSdkSecurityRequirementSchemeManifest, RuntimeSdkSecuritySchemeManifest, SuccessResponse, UnauthorizedRequestException, UnifiedResponse, UserConfig, UserUrls, ValidationError, ValidationErrorResponse, WebhookValidator, XGenericObject, buildUrl, createAccessTokenCache, createAuthCache, createRuntimeApi, createSdk, defaultConfig, defineConfig, getConfig, globalConfig, loadUserConfig, normalizeValue, resetConfig };
|
|
626
|
+
export { AccessTokenCacheLoader, AccessValidationConfigUpdate, AccessValidationResult, ApiKeyAuthConfig, AuthCacheLoader, AuthConfig, AuthErrorResponse, AuthRequestConfig, AuthResponse, BadRequestException, BaseApi, BasicAuthConfig, BearerAuthConfig, Builder, CachedAccessTokenValue, CachedAuthValue, Core, CountryCode, CountryCodeRestricted, CurrencyCode, CursorPagination, CustomAuthConfig, DebugLevel, Environment, ErrorResponse, ForbiddenRequestException, Http, HttpException, HttpMethod, InferRuntimeSdkApi, InitOptions, NormalPagination, OAuth2AuthConfig, PageInfoMeta, Response, ResponseStatus, RuntimeSdkBundle, RuntimeSdkGroupManifest, RuntimeSdkManifest, RuntimeSdkOperationManifest, RuntimeSdkParameterManifest, RuntimeSdkSecurityRequirementManifest, RuntimeSdkSecurityRequirementSchemeManifest, RuntimeSdkSecuritySchemeManifest, SuccessResponse, UnauthorizedRequestException, UnifiedResponse, UserConfig, UserUrls, ValidationError, ValidationErrorResponse, WebhookValidator, XGenericObject, buildUrl, createAccessTokenCache, createAuthCache, createDefaultConfig, createRuntimeApi, createSdk, defaultConfig, defineConfig, getConfig, globalConfig, loadUserConfig, mergeConfig, normalizeValue, resetConfig, updateConfig };
|