@lootlog/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.
@@ -0,0 +1,10 @@
1
+ import { n as executeApiRequest } from "./transport-CIfewyM7.js";
2
+ //#region src/mutators.ts
3
+ const mainFetch = (path, options) => executeApiRequest("main", path, options);
4
+ const activityFetch = (path, options) => executeApiRequest("activity", path, options);
5
+ const battlelogFetch = (path, options) => executeApiRequest("battlelog", path, options);
6
+ const searchFetch = (path, options) => executeApiRequest("search", path, options);
7
+ //#endregion
8
+ export { searchFetch as i, battlelogFetch as n, mainFetch as r, activityFetch as t };
9
+
10
+ //# sourceMappingURL=mutators-CaBTxpi-.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutators-CaBTxpi-.js","names":[],"sources":["../src/mutators.ts"],"sourcesContent":["import {\n executeApiRequest,\n type ApiRequestOptions,\n type ApiError,\n} from \"@lootlog/client/transport\";\n\nexport type ErrorType<T> = ApiError<T>;\n\nexport type BodyType<T> = T;\n\nexport const mainFetch = <T>(\n path: string,\n options?: ApiRequestOptions,\n): Promise<T> => executeApiRequest<T>(\"main\", path, options);\n\nexport const activityFetch = <T>(\n path: string,\n options?: ApiRequestOptions,\n): Promise<T> => executeApiRequest<T>(\"activity\", path, options);\n\nexport const battlelogFetch = <T>(\n path: string,\n options?: ApiRequestOptions,\n): Promise<T> => executeApiRequest<T>(\"battlelog\", path, options);\n\nexport const searchFetch = <T>(\n path: string,\n options?: ApiRequestOptions,\n): Promise<T> => executeApiRequest<T>(\"search\", path, options);\n"],"mappings":";;AAUA,MAAa,aACX,MACA,YACe,kBAAqB,QAAQ,MAAM,OAAO;AAE3D,MAAa,iBACX,MACA,YACe,kBAAqB,YAAY,MAAM,OAAO;AAE/D,MAAa,kBACX,MACA,YACe,kBAAqB,aAAa,MAAM,OAAO;AAEhE,MAAa,eACX,MACA,YACe,kBAAqB,UAAU,MAAM,OAAO"}
@@ -0,0 +1,9 @@
1
+ import { t as ApiRequestOptions } from "./transport-BHbtsYo_.js";
2
+ //#region src/mutators.d.ts
3
+ declare const mainFetch: <T>(path: string, options?: ApiRequestOptions) => Promise<T>;
4
+ declare const activityFetch: <T>(path: string, options?: ApiRequestOptions) => Promise<T>;
5
+ declare const battlelogFetch: <T>(path: string, options?: ApiRequestOptions) => Promise<T>;
6
+ declare const searchFetch: <T>(path: string, options?: ApiRequestOptions) => Promise<T>;
7
+ //#endregion
8
+ export { searchFetch as i, battlelogFetch as n, mainFetch as r, activityFetch as t };
9
+ //# sourceMappingURL=mutators-Da_vMUva.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutators-Da_vMUva.d.ts","names":[],"sources":["../src/mutators.ts"],"mappings":";;cAUa,YAAa,GAAC,cACb,UACF,sBACT,QAAQ;cAEE,gBAAiB,GAAC,cACjB,UACF,sBACT,QAAQ;cAEE,iBAAkB,GAAC,cAClB,UACF,sBACT,QAAQ;cAEE,cAAe,GAAC,cACf,UACF,sBACT,QAAQ"}