@xoxno/sdk-js 1.0.68 → 1.0.70
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/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/interactor.cjs.js +1 -1
- package/dist/interactor.esm.js +1 -1
- package/dist/sdk/types.d.ts +2 -1
- package/dist/utils/api.d.ts +2 -2
- package/package.json +1 -1
package/dist/sdk/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { OurRequestInit } from '../utils/api';
|
|
2
|
-
import type { endpoints as routes } from './swagger';
|
|
2
|
+
import type { endpoints, endpoints as routes } from './swagger';
|
|
3
3
|
type RemoveColon<S extends string> = S extends `:${infer R}` ? R : S;
|
|
4
4
|
type CamelCase<S extends string> = S extends `${infer Head}-${infer Tail}` ? `${Head}${CamelCase<Capitalize<Tail>>}` : S;
|
|
5
5
|
type IsEmptyObj<T> = keyof T extends never ? true : false;
|
|
@@ -77,4 +77,5 @@ type SDKUnion = {
|
|
|
77
77
|
[R in keyof typeof routes]: PathToTree<R, (typeof routes)[R]['input'], (typeof routes)[R]['output'], (typeof routes)[R]>;
|
|
78
78
|
}[keyof typeof routes];
|
|
79
79
|
export type SDK = SimplifyDeep<MergeRec<SDKUnion>>;
|
|
80
|
+
export type SDKTags = keyof typeof endpoints;
|
|
80
81
|
export {};
|
package/dist/utils/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IChainID } from '@multiversx/sdk-core/out/interface';
|
|
2
|
-
type SafeHeaders = Record<string, string> & {
|
|
2
|
+
export type SafeHeaders = Record<string, string> & {
|
|
3
3
|
authorization?: never;
|
|
4
4
|
Authorization?: never;
|
|
5
5
|
};
|
|
@@ -31,7 +31,7 @@ export declare class XOXNOClient {
|
|
|
31
31
|
apiUrl?: string;
|
|
32
32
|
} & OurRequestInit);
|
|
33
33
|
fetchWithTimeout: <T>(path: string, { params, ...options }?: RequestInit & {
|
|
34
|
+
debug?: boolean;
|
|
34
35
|
params?: Record<string, any>;
|
|
35
36
|
}) => Promise<T>;
|
|
36
37
|
}
|
|
37
|
-
export {};
|