@marcohefti/request-network-api-client 0.5.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/LICENSE +22 -0
- package/README.md +97 -0
- package/dist/cjs/domains/client-ids/index.js +309 -0
- package/dist/cjs/domains/client-ids/index.js.map +1 -0
- package/dist/cjs/domains/currencies/index.js +347 -0
- package/dist/cjs/domains/currencies/index.js.map +1 -0
- package/dist/cjs/domains/payer/index.js +450 -0
- package/dist/cjs/domains/payer/index.js.map +1 -0
- package/dist/cjs/domains/payouts/index.js +304 -0
- package/dist/cjs/domains/payouts/index.js.map +1 -0
- package/dist/cjs/domains/requests/index.js +544 -0
- package/dist/cjs/domains/requests/index.js.map +1 -0
- package/dist/cjs/index.js +3466 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/esm/domains/client-ids/index.d.mts +2 -0
- package/dist/esm/domains/client-ids/index.js +307 -0
- package/dist/esm/domains/client-ids/index.js.map +1 -0
- package/dist/esm/domains/currencies/index.d.mts +3 -0
- package/dist/esm/domains/currencies/index.js +344 -0
- package/dist/esm/domains/currencies/index.js.map +1 -0
- package/dist/esm/domains/payer/index.d.mts +2 -0
- package/dist/esm/domains/payer/index.js +446 -0
- package/dist/esm/domains/payer/index.js.map +1 -0
- package/dist/esm/domains/payouts/index.d.mts +2 -0
- package/dist/esm/domains/payouts/index.js +302 -0
- package/dist/esm/domains/payouts/index.js.map +1 -0
- package/dist/esm/domains/requests/index.d.mts +2 -0
- package/dist/esm/domains/requests/index.js +542 -0
- package/dist/esm/domains/requests/index.js.map +1 -0
- package/dist/esm/index-BmWmfcnn.d.mts +113 -0
- package/dist/esm/index-CNK36ZX5.d.mts +26 -0
- package/dist/esm/index-Cd7x0Hv-.d.mts +39 -0
- package/dist/esm/index-Q2g0D7V8.d.mts +79 -0
- package/dist/esm/index-ziziGrHN.d.mts +220 -0
- package/dist/esm/index.d.mts +5478 -0
- package/dist/esm/index.js +3435 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/openapi-types-CtUFCrk4.d.mts +3368 -0
- package/package.json +168 -0
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { o as operations, a as RuntimeValidationOption, b as HttpClient } from './openapi-types-CtUFCrk4.mjs';
|
|
3
|
+
|
|
4
|
+
declare const CurrencyTokenSchema: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
symbol: z.ZodString;
|
|
8
|
+
decimals: z.ZodNumber;
|
|
9
|
+
address: z.ZodOptional<z.ZodString>;
|
|
10
|
+
network: z.ZodOptional<z.ZodString>;
|
|
11
|
+
type: z.ZodOptional<z.ZodString>;
|
|
12
|
+
hash: z.ZodOptional<z.ZodString>;
|
|
13
|
+
chainId: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
15
|
+
id: z.ZodString;
|
|
16
|
+
name: z.ZodString;
|
|
17
|
+
symbol: z.ZodString;
|
|
18
|
+
decimals: z.ZodNumber;
|
|
19
|
+
address: z.ZodOptional<z.ZodString>;
|
|
20
|
+
network: z.ZodOptional<z.ZodString>;
|
|
21
|
+
type: z.ZodOptional<z.ZodString>;
|
|
22
|
+
hash: z.ZodOptional<z.ZodString>;
|
|
23
|
+
chainId: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
25
|
+
id: z.ZodString;
|
|
26
|
+
name: z.ZodString;
|
|
27
|
+
symbol: z.ZodString;
|
|
28
|
+
decimals: z.ZodNumber;
|
|
29
|
+
address: z.ZodOptional<z.ZodString>;
|
|
30
|
+
network: z.ZodOptional<z.ZodString>;
|
|
31
|
+
type: z.ZodOptional<z.ZodString>;
|
|
32
|
+
hash: z.ZodOptional<z.ZodString>;
|
|
33
|
+
chainId: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
35
|
+
declare const CurrenciesListSchema: z.ZodArray<z.ZodObject<{
|
|
36
|
+
id: z.ZodString;
|
|
37
|
+
name: z.ZodString;
|
|
38
|
+
symbol: z.ZodString;
|
|
39
|
+
decimals: z.ZodNumber;
|
|
40
|
+
address: z.ZodOptional<z.ZodString>;
|
|
41
|
+
network: z.ZodOptional<z.ZodString>;
|
|
42
|
+
type: z.ZodOptional<z.ZodString>;
|
|
43
|
+
hash: z.ZodOptional<z.ZodString>;
|
|
44
|
+
chainId: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
46
|
+
id: z.ZodString;
|
|
47
|
+
name: z.ZodString;
|
|
48
|
+
symbol: z.ZodString;
|
|
49
|
+
decimals: z.ZodNumber;
|
|
50
|
+
address: z.ZodOptional<z.ZodString>;
|
|
51
|
+
network: z.ZodOptional<z.ZodString>;
|
|
52
|
+
type: z.ZodOptional<z.ZodString>;
|
|
53
|
+
hash: z.ZodOptional<z.ZodString>;
|
|
54
|
+
chainId: z.ZodOptional<z.ZodNumber>;
|
|
55
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
56
|
+
id: z.ZodString;
|
|
57
|
+
name: z.ZodString;
|
|
58
|
+
symbol: z.ZodString;
|
|
59
|
+
decimals: z.ZodNumber;
|
|
60
|
+
address: z.ZodOptional<z.ZodString>;
|
|
61
|
+
network: z.ZodOptional<z.ZodString>;
|
|
62
|
+
type: z.ZodOptional<z.ZodString>;
|
|
63
|
+
hash: z.ZodOptional<z.ZodString>;
|
|
64
|
+
chainId: z.ZodOptional<z.ZodNumber>;
|
|
65
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
66
|
+
type CurrencyToken = z.infer<typeof CurrencyTokenSchema>;
|
|
67
|
+
type CurrencyList = z.infer<typeof CurrenciesListSchema>;
|
|
68
|
+
declare const ConversionRoutesSchema: z.ZodObject<{
|
|
69
|
+
currencyId: z.ZodString;
|
|
70
|
+
network: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
|
+
conversionRoutes: z.ZodArray<z.ZodObject<{
|
|
72
|
+
id: z.ZodString;
|
|
73
|
+
name: z.ZodString;
|
|
74
|
+
symbol: z.ZodString;
|
|
75
|
+
decimals: z.ZodNumber;
|
|
76
|
+
address: z.ZodOptional<z.ZodString>;
|
|
77
|
+
network: z.ZodOptional<z.ZodString>;
|
|
78
|
+
type: z.ZodOptional<z.ZodString>;
|
|
79
|
+
hash: z.ZodOptional<z.ZodString>;
|
|
80
|
+
chainId: z.ZodOptional<z.ZodNumber>;
|
|
81
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
82
|
+
id: z.ZodString;
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
symbol: z.ZodString;
|
|
85
|
+
decimals: z.ZodNumber;
|
|
86
|
+
address: z.ZodOptional<z.ZodString>;
|
|
87
|
+
network: z.ZodOptional<z.ZodString>;
|
|
88
|
+
type: z.ZodOptional<z.ZodString>;
|
|
89
|
+
hash: z.ZodOptional<z.ZodString>;
|
|
90
|
+
chainId: z.ZodOptional<z.ZodNumber>;
|
|
91
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
92
|
+
id: z.ZodString;
|
|
93
|
+
name: z.ZodString;
|
|
94
|
+
symbol: z.ZodString;
|
|
95
|
+
decimals: z.ZodNumber;
|
|
96
|
+
address: z.ZodOptional<z.ZodString>;
|
|
97
|
+
network: z.ZodOptional<z.ZodString>;
|
|
98
|
+
type: z.ZodOptional<z.ZodString>;
|
|
99
|
+
hash: z.ZodOptional<z.ZodString>;
|
|
100
|
+
chainId: z.ZodOptional<z.ZodNumber>;
|
|
101
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
102
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
103
|
+
currencyId: z.ZodString;
|
|
104
|
+
network: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
|
+
conversionRoutes: z.ZodArray<z.ZodObject<{
|
|
106
|
+
id: z.ZodString;
|
|
107
|
+
name: z.ZodString;
|
|
108
|
+
symbol: z.ZodString;
|
|
109
|
+
decimals: z.ZodNumber;
|
|
110
|
+
address: z.ZodOptional<z.ZodString>;
|
|
111
|
+
network: z.ZodOptional<z.ZodString>;
|
|
112
|
+
type: z.ZodOptional<z.ZodString>;
|
|
113
|
+
hash: z.ZodOptional<z.ZodString>;
|
|
114
|
+
chainId: z.ZodOptional<z.ZodNumber>;
|
|
115
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
116
|
+
id: z.ZodString;
|
|
117
|
+
name: z.ZodString;
|
|
118
|
+
symbol: z.ZodString;
|
|
119
|
+
decimals: z.ZodNumber;
|
|
120
|
+
address: z.ZodOptional<z.ZodString>;
|
|
121
|
+
network: z.ZodOptional<z.ZodString>;
|
|
122
|
+
type: z.ZodOptional<z.ZodString>;
|
|
123
|
+
hash: z.ZodOptional<z.ZodString>;
|
|
124
|
+
chainId: z.ZodOptional<z.ZodNumber>;
|
|
125
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
126
|
+
id: z.ZodString;
|
|
127
|
+
name: z.ZodString;
|
|
128
|
+
symbol: z.ZodString;
|
|
129
|
+
decimals: z.ZodNumber;
|
|
130
|
+
address: z.ZodOptional<z.ZodString>;
|
|
131
|
+
network: z.ZodOptional<z.ZodString>;
|
|
132
|
+
type: z.ZodOptional<z.ZodString>;
|
|
133
|
+
hash: z.ZodOptional<z.ZodString>;
|
|
134
|
+
chainId: z.ZodOptional<z.ZodNumber>;
|
|
135
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
136
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
137
|
+
currencyId: z.ZodString;
|
|
138
|
+
network: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
139
|
+
conversionRoutes: z.ZodArray<z.ZodObject<{
|
|
140
|
+
id: z.ZodString;
|
|
141
|
+
name: z.ZodString;
|
|
142
|
+
symbol: z.ZodString;
|
|
143
|
+
decimals: z.ZodNumber;
|
|
144
|
+
address: z.ZodOptional<z.ZodString>;
|
|
145
|
+
network: z.ZodOptional<z.ZodString>;
|
|
146
|
+
type: z.ZodOptional<z.ZodString>;
|
|
147
|
+
hash: z.ZodOptional<z.ZodString>;
|
|
148
|
+
chainId: z.ZodOptional<z.ZodNumber>;
|
|
149
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
150
|
+
id: z.ZodString;
|
|
151
|
+
name: z.ZodString;
|
|
152
|
+
symbol: z.ZodString;
|
|
153
|
+
decimals: z.ZodNumber;
|
|
154
|
+
address: z.ZodOptional<z.ZodString>;
|
|
155
|
+
network: z.ZodOptional<z.ZodString>;
|
|
156
|
+
type: z.ZodOptional<z.ZodString>;
|
|
157
|
+
hash: z.ZodOptional<z.ZodString>;
|
|
158
|
+
chainId: z.ZodOptional<z.ZodNumber>;
|
|
159
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
160
|
+
id: z.ZodString;
|
|
161
|
+
name: z.ZodString;
|
|
162
|
+
symbol: z.ZodString;
|
|
163
|
+
decimals: z.ZodNumber;
|
|
164
|
+
address: z.ZodOptional<z.ZodString>;
|
|
165
|
+
network: z.ZodOptional<z.ZodString>;
|
|
166
|
+
type: z.ZodOptional<z.ZodString>;
|
|
167
|
+
hash: z.ZodOptional<z.ZodString>;
|
|
168
|
+
chainId: z.ZodOptional<z.ZodNumber>;
|
|
169
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
170
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
171
|
+
type ConversionRoutes = z.infer<typeof ConversionRoutesSchema>;
|
|
172
|
+
|
|
173
|
+
declare const OP_LIST_V1 = "CurrenciesV1Controller_getNetworkTokens_v1";
|
|
174
|
+
declare const OP_CONVERSION_ROUTES_V1 = "CurrenciesV1Controller_getConversionRoutes_v1";
|
|
175
|
+
|
|
176
|
+
type ListCurrenciesV1Query = operations[typeof OP_LIST_V1]["parameters"]["query"];
|
|
177
|
+
type GetConversionRoutesV1Query = operations[typeof OP_CONVERSION_ROUTES_V1]["parameters"]["query"];
|
|
178
|
+
interface CurrencyV1RequestOptions {
|
|
179
|
+
signal?: AbortSignal;
|
|
180
|
+
timeoutMs?: number;
|
|
181
|
+
validation?: RuntimeValidationOption;
|
|
182
|
+
}
|
|
183
|
+
interface CurrenciesV1Api {
|
|
184
|
+
list(query?: ListCurrenciesV1Query, options?: CurrencyV1RequestOptions): Promise<CurrencyList>;
|
|
185
|
+
getConversionRoutes(currencyId: string, query?: GetConversionRoutesV1Query, options?: CurrencyV1RequestOptions): Promise<ConversionRoutes>;
|
|
186
|
+
}
|
|
187
|
+
declare function createCurrenciesV1Api(http: HttpClient): CurrenciesV1Api;
|
|
188
|
+
|
|
189
|
+
type ListCurrenciesQuery = operations["CurrenciesV2Controller_getNetworkTokens_v2"]["parameters"]["query"];
|
|
190
|
+
type GetConversionRoutesQuery = operations["CurrenciesV2Controller_getConversionRoutes_v2"]["parameters"]["query"];
|
|
191
|
+
interface CurrencyRequestOptions {
|
|
192
|
+
signal?: AbortSignal;
|
|
193
|
+
timeoutMs?: number;
|
|
194
|
+
validation?: RuntimeValidationOption;
|
|
195
|
+
}
|
|
196
|
+
interface CurrenciesApi {
|
|
197
|
+
list(query?: ListCurrenciesQuery, options?: CurrencyRequestOptions): Promise<CurrencyList>;
|
|
198
|
+
getConversionRoutes(currencyId: string, query?: GetConversionRoutesQuery, options?: CurrencyRequestOptions): Promise<ConversionRoutes>;
|
|
199
|
+
legacy: CurrenciesV1Api;
|
|
200
|
+
}
|
|
201
|
+
declare function createCurrenciesApi(http: HttpClient): CurrenciesApi;
|
|
202
|
+
|
|
203
|
+
type index_ConversionRoutes = ConversionRoutes;
|
|
204
|
+
type index_CurrenciesApi = CurrenciesApi;
|
|
205
|
+
type index_CurrenciesV1Api = CurrenciesV1Api;
|
|
206
|
+
type index_CurrencyList = CurrencyList;
|
|
207
|
+
type index_CurrencyRequestOptions = CurrencyRequestOptions;
|
|
208
|
+
type index_CurrencyToken = CurrencyToken;
|
|
209
|
+
type index_CurrencyV1RequestOptions = CurrencyV1RequestOptions;
|
|
210
|
+
type index_GetConversionRoutesQuery = GetConversionRoutesQuery;
|
|
211
|
+
type index_GetConversionRoutesV1Query = GetConversionRoutesV1Query;
|
|
212
|
+
type index_ListCurrenciesQuery = ListCurrenciesQuery;
|
|
213
|
+
type index_ListCurrenciesV1Query = ListCurrenciesV1Query;
|
|
214
|
+
declare const index_createCurrenciesApi: typeof createCurrenciesApi;
|
|
215
|
+
declare const index_createCurrenciesV1Api: typeof createCurrenciesV1Api;
|
|
216
|
+
declare namespace index {
|
|
217
|
+
export { type index_ConversionRoutes as ConversionRoutes, type index_CurrenciesApi as CurrenciesApi, type index_CurrenciesV1Api as CurrenciesV1Api, type index_CurrencyList as CurrencyList, type index_CurrencyRequestOptions as CurrencyRequestOptions, type index_CurrencyToken as CurrencyToken, type index_CurrencyV1RequestOptions as CurrencyV1RequestOptions, type index_GetConversionRoutesQuery as GetConversionRoutesQuery, type index_GetConversionRoutesV1Query as GetConversionRoutesV1Query, type index_ListCurrenciesQuery as ListCurrenciesQuery, type index_ListCurrenciesV1Query as ListCurrenciesV1Query, index_createCurrenciesApi as createCurrenciesApi, index_createCurrenciesV1Api as createCurrenciesV1Api };
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export { type CurrenciesV1Api as C, type GetConversionRoutesV1Query as G, type ListCurrenciesV1Query as L, type CurrencyV1RequestOptions as a, type CurrenciesApi as b, createCurrenciesV1Api as c, type CurrencyToken as d, createCurrenciesApi as e, type ListCurrenciesQuery as f, type GetConversionRoutesQuery as g, type CurrencyRequestOptions as h, index as i, type CurrencyList as j, type ConversionRoutes as k };
|