@zayne-labs/callapi 1.11.42 → 1.11.43
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as HTTPError, B as CallApiSchema, C as CallApiRequestOptions, H as CallApiSchemaType, R as BaseCallApiSchemaRoutes, V as CallApiSchemaConfig, W as InferSchemaOutput, _ as BaseCallApiConfig, a as CallApiPlugin, ct as Writeable, f as PossibleHTTPError, j as ValidationError, l as CallApiResultErrorVariant, m as PossibleValidationError, ot as AnyFunction, p as PossibleJavaScriptError, st as Satisfies } from "../../index-UfuQFNcf.js";
|
|
1
|
+
import { A as HTTPError, B as CallApiSchema, C as CallApiRequestOptions, H as CallApiSchemaType, R as BaseCallApiSchemaRoutes, V as CallApiSchemaConfig, W as InferSchemaOutput, _ as BaseCallApiConfig, a as CallApiPlugin, ct as Writeable, f as PossibleHTTPError, j as ValidationError, l as CallApiResultErrorVariant, m as PossibleValidationError, ot as AnyFunction, p as PossibleJavaScriptError, st as Satisfies, y as CallApiConfig } from "../../index-UfuQFNcf.js";
|
|
2
2
|
|
|
3
3
|
//#region src/utils/external/body.d.ts
|
|
4
4
|
type BodyType = NonNullable<CallApiRequestOptions["body"]>;
|
|
@@ -58,6 +58,7 @@ type DefineBaseConfig = {
|
|
|
58
58
|
<TBaseConfigFn extends BaseConfigFn>(baseConfig: TBaseConfigFn): TBaseConfigFn;
|
|
59
59
|
};
|
|
60
60
|
declare const defineBaseConfig: DefineBaseConfig;
|
|
61
|
+
declare const defineInstanceConfig: <const TInstanceConfig extends CallApiConfig>(config: TInstanceConfig) => Writeable<typeof config, "deep">;
|
|
61
62
|
//#endregion
|
|
62
63
|
//#region src/utils/external/guards.d.ts
|
|
63
64
|
declare const isHTTPError: <TErrorData>(error: CallApiResultErrorVariant<TErrorData>["error"] | null) => error is PossibleHTTPError<TErrorData>;
|
|
@@ -66,5 +67,5 @@ declare const isValidationError: (error: CallApiResultErrorVariant<unknown>["err
|
|
|
66
67
|
declare const isValidationErrorInstance: (error: unknown) => error is ValidationError;
|
|
67
68
|
declare const isJavascriptError: (error: CallApiResultErrorVariant<unknown>["error"] | null) => error is PossibleJavaScriptError;
|
|
68
69
|
//#endregion
|
|
69
|
-
export { HTTPError, ValidationError, defineBaseConfig, defineMainSchema, definePlugin, defineSchema, defineSchemaConfig, defineSchemaRoutes, isHTTPError, isHTTPErrorInstance, isJavascriptError, isValidationError, isValidationErrorInstance, toFormData, toQueryString, toSearchParams };
|
|
70
|
+
export { HTTPError, ValidationError, defineBaseConfig, defineInstanceConfig, defineMainSchema, definePlugin, defineSchema, defineSchemaConfig, defineSchemaRoutes, isHTTPError, isHTTPErrorInstance, isJavascriptError, isValidationError, isValidationErrorInstance, toFormData, toQueryString, toSearchParams };
|
|
70
71
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -110,7 +110,10 @@ const definePlugin = (plugin) => {
|
|
|
110
110
|
const defineBaseConfig = (baseConfig) => {
|
|
111
111
|
return baseConfig;
|
|
112
112
|
};
|
|
113
|
+
const defineInstanceConfig = (config) => {
|
|
114
|
+
return config;
|
|
115
|
+
};
|
|
113
116
|
|
|
114
117
|
//#endregion
|
|
115
|
-
export { HTTPError, ValidationError, defineBaseConfig, defineMainSchema, definePlugin, defineSchema, defineSchemaConfig, defineSchemaRoutes, isHTTPError, isHTTPErrorInstance, isJavascriptError, isValidationError, isValidationErrorInstance, toFormData, toQueryString, toSearchParams };
|
|
118
|
+
export { HTTPError, ValidationError, defineBaseConfig, defineInstanceConfig, defineMainSchema, definePlugin, defineSchema, defineSchemaConfig, defineSchemaRoutes, isHTTPError, isHTTPErrorInstance, isJavascriptError, isValidationError, isValidationErrorInstance, toFormData, toQueryString, toSearchParams };
|
|
116
119
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/utils/external/body.ts","../../../src/utils/external/define.ts"],"sourcesContent":["import type { CallApiRequestOptions } from \"../../types/common\";\nimport { getValidatedValue, type CallApiSchemaType, type InferSchemaOutput } from \"../../validation\";\nimport { isArray, isBlob, isObject, isString } from \"../guards\";\nimport { ValidationError } from \"./error\";\n\nconst toStringOrStringify = (value: unknown): string => {\n\treturn isString(value) ? value : JSON.stringify(value);\n};\n\ntype BodyType = NonNullable<CallApiRequestOptions[\"body\"]>;\n\nexport const toSearchParams = <TSchema extends CallApiSchemaType<BodyType>>(\n\tdata: InferSchemaOutput<TSchema>,\n\tschema?: TSchema\n) => {\n\tconst result = getValidatedValue(data, schema, { variant: \"sync\" });\n\n\tif (result.issues) {\n\t\tthrow new ValidationError({\n\t\t\tissueCause: \"toQueryString\",\n\t\t\tissues: result.issues,\n\t\t\tresponse: null,\n\t\t});\n\t}\n\n\tconst searchParams = new URLSearchParams();\n\n\tfor (const [key, value] of Object.entries(result.value as Record<string, unknown>)) {\n\t\tif (value == null) continue;\n\n\t\tif (isArray(value)) {\n\t\t\t// eslint-disable-next-line max-depth -- Allow\n\t\t\tfor (const innerValue of value) {\n\t\t\t\tsearchParams.append(key, toStringOrStringify(innerValue));\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\n\t\tsearchParams.set(key, toStringOrStringify(value));\n\t}\n\n\treturn searchParams;\n};\n\nexport const toQueryString = <TSchema extends CallApiSchemaType<BodyType>>(\n\t...parameters: Parameters<typeof toSearchParams<TSchema>>\n) => {\n\tconst searchParams = toSearchParams(...parameters);\n\n\treturn searchParams.toString();\n};\n\nconst toBlobOrString = (value: unknown): string | Blob => {\n\treturn isBlob(value) ? value : String(value);\n};\n\n/**\n * @description Converts a plain object to FormData.\n *\n * Handles various data types:\n * - **Primitives** (string, number, boolean): Converted to strings\n * - **Blobs/Files**: Added directly to FormData\n * - **Arrays**: Each item is appended (allows multiple values for same key)\n * - **Objects**: JSON stringified before adding to FormData\n *\n * @example\n * ```ts\n * // Basic usage\n * const formData = toFormData({\n * name: \"John\",\n * age: 30,\n * active: true\n * });\n *\n * // With arrays\n * const formData = toFormData({\n * tags: [\"javascript\", \"typescript\"],\n * name: \"John\"\n * });\n *\n * // With files\n * const formData = toFormData({\n * avatar: fileBlob,\n * name: \"John\"\n * });\n *\n * // With nested objects (one level only)\n * const formData = toFormData({\n * user: { name: \"John\", age: 30 },\n * settings: { theme: \"dark\" }\n * });\n */\nexport const toFormData = <TSchema extends CallApiSchemaType<BodyType>>(\n\tdata: InferSchemaOutput<TSchema>,\n\tschema?: TSchema\n) => {\n\tconst formData = new FormData();\n\n\tconst result = getValidatedValue(data, schema, { variant: \"sync\" });\n\n\tif (result.issues) {\n\t\tthrow new ValidationError({\n\t\t\tissueCause: \"toFormData\",\n\t\t\tissues: result.issues,\n\t\t\tresponse: null,\n\t\t});\n\t}\n\n\tfor (const [key, value] of Object.entries(result.value as Record<string, unknown>)) {\n\t\tif (isArray(value)) {\n\t\t\t// eslint-disable-next-line max-depth -- Allow for now\n\t\t\tfor (const innerValue of value) {\n\t\t\t\tformData.append(key, toBlobOrString(innerValue));\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (isObject(value) && !isBlob(value)) {\n\t\t\tformData.set(key, JSON.stringify(value));\n\t\t\tcontinue;\n\t\t}\n\n\t\tformData.set(key, toBlobOrString(value));\n\t}\n\n\treturn formData;\n};\n","import type { CallApiPlugin } from \"../../plugins\";\nimport type { BaseCallApiConfig } from \"../../types/common\";\nimport type { AnyFunction, Satisfies, Writeable } from \"../../types/type-helpers\";\nimport type {\n\tBaseCallApiSchemaAndConfig,\n\tBaseCallApiSchemaRoutes,\n\tCallApiSchema,\n\tCallApiSchemaConfig,\n} from \"../../validation\";\n\nexport const defineSchema = <\n\tconst TBaseSchemaRoutes extends BaseCallApiSchemaRoutes,\n\tconst TSchemaConfig extends CallApiSchemaConfig,\n>(\n\troutes: TBaseSchemaRoutes,\n\tconfig?: Satisfies<TSchemaConfig, CallApiSchemaConfig>\n) => {\n\treturn {\n\t\tconfig: defineSchemaConfig(config as NonNullable<typeof config>),\n\t\troutes: defineSchemaRoutes(routes),\n\t} satisfies BaseCallApiSchemaAndConfig;\n};\n\nexport const defineSchemaRoutes = <const TSchemaRoutes extends BaseCallApiSchemaRoutes>(\n\troutes: TSchemaRoutes\n) => {\n\treturn routes as Writeable<typeof routes, \"deep\">;\n};\n\nexport const defineMainSchema = <const TSchema extends CallApiSchema>(\n\tmainSchema: Satisfies<TSchema, CallApiSchema>\n) => {\n\treturn mainSchema as Writeable<typeof mainSchema, \"deep\">;\n};\n\nexport const defineSchemaConfig = <const TSchemaConfig extends CallApiSchemaConfig>(\n\tconfig: Satisfies<TSchemaConfig, CallApiSchemaConfig>\n) => {\n\treturn config as Writeable<typeof config, \"deep\">;\n};\n\nexport const definePlugin = <const TPlugin extends CallApiPlugin>(plugin: TPlugin) => {\n\treturn plugin as Writeable<typeof plugin, \"deep\">;\n};\n\ntype BaseConfigObject = Exclude<BaseCallApiConfig, AnyFunction>;\n\ntype BaseConfigFn = Extract<BaseCallApiConfig, AnyFunction>;\n\ntype DefineBaseConfig = {\n\t<const TBaseConfig extends BaseConfigObject>(\n\t\tbaseConfig: Satisfies<TBaseConfig, BaseConfigObject>\n\t): Writeable<typeof baseConfig, \"deep\">;\n\t<TBaseConfigFn extends BaseConfigFn>(baseConfig: TBaseConfigFn): TBaseConfigFn;\n};\n\nexport const defineBaseConfig: DefineBaseConfig = <const TBaseConfig extends BaseCallApiConfig>(\n\tbaseConfig: TBaseConfig\n) => {\n\treturn baseConfig;\n};\n"],"mappings":";;;;AAKA,MAAM,uBAAuB,UAA2B;AACvD,QAAO,SAAS,MAAM,GAAG,QAAQ,KAAK,UAAU,MAAM;;AAKvD,MAAa,kBACZ,MACA,WACI;CACJ,MAAM,SAAS,kBAAkB,MAAM,QAAQ,EAAE,SAAS,QAAQ,CAAC;AAEnE,KAAI,OAAO,OACV,OAAM,IAAI,gBAAgB;EACzB,YAAY;EACZ,QAAQ,OAAO;EACf,UAAU;EACV,CAAC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ACI;AACJ,QAAO;;AAGR,MAAa,sBACZ,WACI;AACJ,QAAO;;AAGR,MAAa,gBAAqD,WAAoB;AACrF,QAAO;;AAcR,MAAa,oBACZ,eACI;AACJ,QAAO"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/utils/external/body.ts","../../../src/utils/external/define.ts"],"sourcesContent":["import type { CallApiRequestOptions } from \"../../types/common\";\nimport { getValidatedValue, type CallApiSchemaType, type InferSchemaOutput } from \"../../validation\";\nimport { isArray, isBlob, isObject, isString } from \"../guards\";\nimport { ValidationError } from \"./error\";\n\nconst toStringOrStringify = (value: unknown): string => {\n\treturn isString(value) ? value : JSON.stringify(value);\n};\n\ntype BodyType = NonNullable<CallApiRequestOptions[\"body\"]>;\n\nexport const toSearchParams = <TSchema extends CallApiSchemaType<BodyType>>(\n\tdata: InferSchemaOutput<TSchema>,\n\tschema?: TSchema\n) => {\n\tconst result = getValidatedValue(data, schema, { variant: \"sync\" });\n\n\tif (result.issues) {\n\t\tthrow new ValidationError({\n\t\t\tissueCause: \"toQueryString\",\n\t\t\tissues: result.issues,\n\t\t\tresponse: null,\n\t\t});\n\t}\n\n\tconst searchParams = new URLSearchParams();\n\n\tfor (const [key, value] of Object.entries(result.value as Record<string, unknown>)) {\n\t\tif (value == null) continue;\n\n\t\tif (isArray(value)) {\n\t\t\t// eslint-disable-next-line max-depth -- Allow\n\t\t\tfor (const innerValue of value) {\n\t\t\t\tsearchParams.append(key, toStringOrStringify(innerValue));\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\n\t\tsearchParams.set(key, toStringOrStringify(value));\n\t}\n\n\treturn searchParams;\n};\n\nexport const toQueryString = <TSchema extends CallApiSchemaType<BodyType>>(\n\t...parameters: Parameters<typeof toSearchParams<TSchema>>\n) => {\n\tconst searchParams = toSearchParams(...parameters);\n\n\treturn searchParams.toString();\n};\n\nconst toBlobOrString = (value: unknown): string | Blob => {\n\treturn isBlob(value) ? value : String(value);\n};\n\n/**\n * @description Converts a plain object to FormData.\n *\n * Handles various data types:\n * - **Primitives** (string, number, boolean): Converted to strings\n * - **Blobs/Files**: Added directly to FormData\n * - **Arrays**: Each item is appended (allows multiple values for same key)\n * - **Objects**: JSON stringified before adding to FormData\n *\n * @example\n * ```ts\n * // Basic usage\n * const formData = toFormData({\n * name: \"John\",\n * age: 30,\n * active: true\n * });\n *\n * // With arrays\n * const formData = toFormData({\n * tags: [\"javascript\", \"typescript\"],\n * name: \"John\"\n * });\n *\n * // With files\n * const formData = toFormData({\n * avatar: fileBlob,\n * name: \"John\"\n * });\n *\n * // With nested objects (one level only)\n * const formData = toFormData({\n * user: { name: \"John\", age: 30 },\n * settings: { theme: \"dark\" }\n * });\n */\nexport const toFormData = <TSchema extends CallApiSchemaType<BodyType>>(\n\tdata: InferSchemaOutput<TSchema>,\n\tschema?: TSchema\n) => {\n\tconst formData = new FormData();\n\n\tconst result = getValidatedValue(data, schema, { variant: \"sync\" });\n\n\tif (result.issues) {\n\t\tthrow new ValidationError({\n\t\t\tissueCause: \"toFormData\",\n\t\t\tissues: result.issues,\n\t\t\tresponse: null,\n\t\t});\n\t}\n\n\tfor (const [key, value] of Object.entries(result.value as Record<string, unknown>)) {\n\t\tif (isArray(value)) {\n\t\t\t// eslint-disable-next-line max-depth -- Allow for now\n\t\t\tfor (const innerValue of value) {\n\t\t\t\tformData.append(key, toBlobOrString(innerValue));\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (isObject(value) && !isBlob(value)) {\n\t\t\tformData.set(key, JSON.stringify(value));\n\t\t\tcontinue;\n\t\t}\n\n\t\tformData.set(key, toBlobOrString(value));\n\t}\n\n\treturn formData;\n};\n","import type { CallApiPlugin } from \"../../plugins\";\nimport type { BaseCallApiConfig, CallApiConfig } from \"../../types/common\";\nimport type { AnyFunction, Satisfies, Writeable } from \"../../types/type-helpers\";\nimport type {\n\tBaseCallApiSchemaAndConfig,\n\tBaseCallApiSchemaRoutes,\n\tCallApiSchema,\n\tCallApiSchemaConfig,\n} from \"../../validation\";\n\nexport const defineSchema = <\n\tconst TBaseSchemaRoutes extends BaseCallApiSchemaRoutes,\n\tconst TSchemaConfig extends CallApiSchemaConfig,\n>(\n\troutes: TBaseSchemaRoutes,\n\tconfig?: Satisfies<TSchemaConfig, CallApiSchemaConfig>\n) => {\n\treturn {\n\t\tconfig: defineSchemaConfig(config as NonNullable<typeof config>),\n\t\troutes: defineSchemaRoutes(routes),\n\t} satisfies BaseCallApiSchemaAndConfig;\n};\n\nexport const defineSchemaRoutes = <const TSchemaRoutes extends BaseCallApiSchemaRoutes>(\n\troutes: TSchemaRoutes\n) => {\n\treturn routes as Writeable<typeof routes, \"deep\">;\n};\n\nexport const defineMainSchema = <const TSchema extends CallApiSchema>(\n\tmainSchema: Satisfies<TSchema, CallApiSchema>\n) => {\n\treturn mainSchema as Writeable<typeof mainSchema, \"deep\">;\n};\n\nexport const defineSchemaConfig = <const TSchemaConfig extends CallApiSchemaConfig>(\n\tconfig: Satisfies<TSchemaConfig, CallApiSchemaConfig>\n) => {\n\treturn config as Writeable<typeof config, \"deep\">;\n};\n\nexport const definePlugin = <const TPlugin extends CallApiPlugin>(plugin: TPlugin) => {\n\treturn plugin as Writeable<typeof plugin, \"deep\">;\n};\n\ntype BaseConfigObject = Exclude<BaseCallApiConfig, AnyFunction>;\n\ntype BaseConfigFn = Extract<BaseCallApiConfig, AnyFunction>;\n\ntype DefineBaseConfig = {\n\t<const TBaseConfig extends BaseConfigObject>(\n\t\tbaseConfig: Satisfies<TBaseConfig, BaseConfigObject>\n\t): Writeable<typeof baseConfig, \"deep\">;\n\t<TBaseConfigFn extends BaseConfigFn>(baseConfig: TBaseConfigFn): TBaseConfigFn;\n};\n\nexport const defineBaseConfig: DefineBaseConfig = <const TBaseConfig extends BaseCallApiConfig>(\n\tbaseConfig: TBaseConfig\n) => {\n\treturn baseConfig;\n};\n\nexport const defineInstanceConfig = <const TInstanceConfig extends CallApiConfig>(\n\tconfig: TInstanceConfig\n) =>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AI,SAAS,MAAM,IAAI,CAAC,OAAO,MAAM,EAAE;AACtC,YAAS,IAAI,KAAK,KAAK,UAAU,MAAM,CAAC;AACxC;;AAGD,WAAS,IAAI,KAAK,eAAe,MAAM,CAAC;;AAGzC,QAAO;;;;;ACnHR,MAAa,gBAIZ,QACA,WACI;AACJ,QAAO;EACN,QAAQ,mBAAmB,OAAqC;EAChE,QAAQ,mBAAmB,OAAO;EAClC;;AAGF,MAAa,sBACZ,WACI;AACJ,QAAO;;AAGR,MAAa,oBACZ,eACI;AACJ,QAAO;;AAGR,MAAa,sBACZ,WACI;AACJ,QAAO;;AAGR,MAAa,gBAAqD,WAAoB;AACrF,QAAO;;AAcR,MAAa,oBACZ,eACI;AACJ,QAAO;;AAGR,MAAa,wBACZ,WACI;AACJ,QAAO"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zayne-labs/callapi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.11.
|
|
4
|
+
"version": "1.11.43",
|
|
5
5
|
"description": "A lightweight wrapper over fetch with quality of life improvements like built-in request cancellation, retries, interceptors and more",
|
|
6
6
|
"author": "Ryan Zayne",
|
|
7
7
|
"license": "MIT",
|