wapi-client 0.15.5 → 0.16.0-beta.1
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/api/base-client.browser.cjs +62 -41
- package/dist/api/base-client.browser.js +62 -41
- package/dist/api/base-client.cjs +62 -41
- package/dist/api/base-client.js +62 -41
- package/dist/api/http-client.browser.cjs +13 -13
- package/dist/api/http-client.browser.js +14 -14
- package/dist/api/http-client.cjs +13 -13
- package/dist/api/http-client.js +14 -14
- package/dist/api/ws-client.browser.cjs +2 -2
- package/dist/api/ws-client.browser.js +2 -2
- package/dist/api/ws-client.cjs +2 -2
- package/dist/api/ws-client.js +2 -2
- package/dist/client-options.schema.zod.browser.cjs +12 -17
- package/dist/client-options.schema.zod.browser.js +12 -17
- package/dist/client-options.schema.zod.cjs +15 -21
- package/dist/client-options.schema.zod.js +12 -17
- package/dist/client.browser.cjs +19 -5
- package/dist/client.browser.js +19 -5
- package/dist/client.cjs +19 -5
- package/dist/client.js +19 -5
- package/dist/lib/env.browser.cjs +1 -1
- package/dist/lib/env.browser.js +1 -1
- package/dist/lib/env.cjs +1 -1
- package/dist/lib/env.js +1 -1
- package/dist/lib/errors.browser.cjs +5 -0
- package/dist/lib/errors.browser.js +5 -0
- package/dist/lib/errors.cjs +5 -0
- package/dist/lib/errors.js +5 -0
- package/dist/lib/utils.browser.cjs +10 -4
- package/dist/lib/utils.browser.js +10 -4
- package/dist/lib/utils.cjs +11 -4
- package/dist/lib/utils.js +10 -4
- package/dist/txs/get-transfer-group/get-transfer-group.schema.zod.browser.cjs +8 -1
- package/dist/txs/get-transfer-group/get-transfer-group.schema.zod.browser.js +8 -1
- package/dist/txs/get-transfer-group/get-transfer-group.schema.zod.cjs +8 -1
- package/dist/txs/get-transfer-group/get-transfer-group.schema.zod.js +8 -1
- package/dist/types/wapi-client.d.ts +667 -52
- package/dist/wapi-client-web.iife.js +7 -7
- package/dist/wapi-client.browser.cjs +4 -6
- package/dist/wapi-client.browser.js +5 -10
- package/dist/wapi-client.cjs +4 -6
- package/dist/wapi-client.iife.js +7 -7
- package/dist/wapi-client.js +5 -10
- package/package.json +2 -2
package/dist/client.cjs
CHANGED
|
@@ -123,7 +123,7 @@ var Client = class {
|
|
|
123
123
|
this.api = _apiClient;
|
|
124
124
|
this.$connect = _apiClient.$connect;
|
|
125
125
|
if (initialConf) {
|
|
126
|
-
this.configure(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, initialConf.token && { token: initialConf.token }), initialConf.sendingTimeout && {
|
|
126
|
+
this.configure(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, initialConf.token && { token: initialConf.token }), initialConf.sendingTimeout && {
|
|
127
127
|
sendingTimeout: initialConf.sendingTimeout
|
|
128
128
|
}), initialConf.connectingTimeout && {
|
|
129
129
|
connectingTimeout: initialConf.connectingTimeout
|
|
@@ -133,6 +133,8 @@ var Client = class {
|
|
|
133
133
|
connectionName: initialConf.connectionName
|
|
134
134
|
}), initialConf.httpSkipInitialAuthConnection && {
|
|
135
135
|
httpSkipInitialAuthConnection: initialConf.httpSkipInitialAuthConnection
|
|
136
|
+
}), initialConf.requestTimeout && {
|
|
137
|
+
requestTimeout: initialConf.requestTimeout
|
|
136
138
|
}));
|
|
137
139
|
}
|
|
138
140
|
}
|
|
@@ -190,7 +192,10 @@ var Client = class {
|
|
|
190
192
|
*
|
|
191
193
|
* wapiClient.configure({
|
|
192
194
|
* token: 'EURO',
|
|
193
|
-
*
|
|
195
|
+
* connectingTimeout: 45000,
|
|
196
|
+
* reconnectingTimeout: 45000,
|
|
197
|
+
* sendingTimeout: 10000,
|
|
198
|
+
* requestTimeout: 120000,
|
|
194
199
|
* hooks: {
|
|
195
200
|
* disconnect: () => {}
|
|
196
201
|
* },
|
|
@@ -206,7 +211,12 @@ var Client = class {
|
|
|
206
211
|
error: `Must be a string|number, '${newConf.token}' provided`
|
|
207
212
|
});
|
|
208
213
|
}
|
|
209
|
-
[
|
|
214
|
+
[
|
|
215
|
+
"sendingTimeout",
|
|
216
|
+
"connectingTimeout",
|
|
217
|
+
"reconnectingTimeout",
|
|
218
|
+
"requestTimeout"
|
|
219
|
+
].forEach((t) => {
|
|
210
220
|
if (newConf[t] && typeof newConf[t] !== "number") {
|
|
211
221
|
throw new import_errors.ConfigError("CONFIG_INVALID", {
|
|
212
222
|
field: t,
|
|
@@ -217,9 +227,12 @@ var Client = class {
|
|
|
217
227
|
const hooks = newConf.hooks;
|
|
218
228
|
delete newConf.hooks;
|
|
219
229
|
this.config = __spreadValues(__spreadValues({}, this.config), newConf);
|
|
220
|
-
if (this.config
|
|
230
|
+
if ("sendingTimeout" in this.config) {
|
|
221
231
|
this.api.sendingTimeout = this.config.sendingTimeout;
|
|
222
232
|
}
|
|
233
|
+
if ("requestTimeout" in this.config) {
|
|
234
|
+
this.api.requestTimeout = this.config.requestTimeout;
|
|
235
|
+
}
|
|
223
236
|
if (hooks) {
|
|
224
237
|
for (const [hookName, value] of Object.entries(hooks)) {
|
|
225
238
|
this.setHook(hookName, value);
|
|
@@ -2182,7 +2195,8 @@ var Client = class {
|
|
|
2182
2195
|
function createClientWithWS(opts, config) {
|
|
2183
2196
|
const wsClient = (0, import_api.createWsClient)(opts, {
|
|
2184
2197
|
connectingTimeout: config == null ? void 0 : config.connectingTimeout,
|
|
2185
|
-
reconnectingTimeout: config == null ? void 0 : config.reconnectingTimeout
|
|
2198
|
+
reconnectingTimeout: config == null ? void 0 : config.reconnectingTimeout,
|
|
2199
|
+
connectionName: config == null ? void 0 : config.connectionName
|
|
2186
2200
|
});
|
|
2187
2201
|
return new Client(wsClient, config);
|
|
2188
2202
|
}
|
package/dist/client.js
CHANGED
|
@@ -103,7 +103,7 @@ var Client = class {
|
|
|
103
103
|
this.api = _apiClient;
|
|
104
104
|
this.$connect = _apiClient.$connect;
|
|
105
105
|
if (initialConf) {
|
|
106
|
-
this.configure(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, initialConf.token && { token: initialConf.token }), initialConf.sendingTimeout && {
|
|
106
|
+
this.configure(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, initialConf.token && { token: initialConf.token }), initialConf.sendingTimeout && {
|
|
107
107
|
sendingTimeout: initialConf.sendingTimeout
|
|
108
108
|
}), initialConf.connectingTimeout && {
|
|
109
109
|
connectingTimeout: initialConf.connectingTimeout
|
|
@@ -113,6 +113,8 @@ var Client = class {
|
|
|
113
113
|
connectionName: initialConf.connectionName
|
|
114
114
|
}), initialConf.httpSkipInitialAuthConnection && {
|
|
115
115
|
httpSkipInitialAuthConnection: initialConf.httpSkipInitialAuthConnection
|
|
116
|
+
}), initialConf.requestTimeout && {
|
|
117
|
+
requestTimeout: initialConf.requestTimeout
|
|
116
118
|
}));
|
|
117
119
|
}
|
|
118
120
|
}
|
|
@@ -170,7 +172,10 @@ var Client = class {
|
|
|
170
172
|
*
|
|
171
173
|
* wapiClient.configure({
|
|
172
174
|
* token: 'EURO',
|
|
173
|
-
*
|
|
175
|
+
* connectingTimeout: 45000,
|
|
176
|
+
* reconnectingTimeout: 45000,
|
|
177
|
+
* sendingTimeout: 10000,
|
|
178
|
+
* requestTimeout: 120000,
|
|
174
179
|
* hooks: {
|
|
175
180
|
* disconnect: () => {}
|
|
176
181
|
* },
|
|
@@ -186,7 +191,12 @@ var Client = class {
|
|
|
186
191
|
error: `Must be a string|number, '${newConf.token}' provided`
|
|
187
192
|
});
|
|
188
193
|
}
|
|
189
|
-
[
|
|
194
|
+
[
|
|
195
|
+
"sendingTimeout",
|
|
196
|
+
"connectingTimeout",
|
|
197
|
+
"reconnectingTimeout",
|
|
198
|
+
"requestTimeout"
|
|
199
|
+
].forEach((t) => {
|
|
190
200
|
if (newConf[t] && typeof newConf[t] !== "number") {
|
|
191
201
|
throw new ConfigError("CONFIG_INVALID", {
|
|
192
202
|
field: t,
|
|
@@ -197,9 +207,12 @@ var Client = class {
|
|
|
197
207
|
const hooks = newConf.hooks;
|
|
198
208
|
delete newConf.hooks;
|
|
199
209
|
this.config = __spreadValues(__spreadValues({}, this.config), newConf);
|
|
200
|
-
if (this.config
|
|
210
|
+
if ("sendingTimeout" in this.config) {
|
|
201
211
|
this.api.sendingTimeout = this.config.sendingTimeout;
|
|
202
212
|
}
|
|
213
|
+
if ("requestTimeout" in this.config) {
|
|
214
|
+
this.api.requestTimeout = this.config.requestTimeout;
|
|
215
|
+
}
|
|
203
216
|
if (hooks) {
|
|
204
217
|
for (const [hookName, value] of Object.entries(hooks)) {
|
|
205
218
|
this.setHook(hookName, value);
|
|
@@ -2162,7 +2175,8 @@ var Client = class {
|
|
|
2162
2175
|
function createClientWithWS(opts, config) {
|
|
2163
2176
|
const wsClient = createWsClient(opts, {
|
|
2164
2177
|
connectingTimeout: config == null ? void 0 : config.connectingTimeout,
|
|
2165
|
-
reconnectingTimeout: config == null ? void 0 : config.reconnectingTimeout
|
|
2178
|
+
reconnectingTimeout: config == null ? void 0 : config.reconnectingTimeout,
|
|
2179
|
+
connectionName: config == null ? void 0 : config.connectionName
|
|
2166
2180
|
});
|
|
2167
2181
|
return new Client(wsClient, config);
|
|
2168
2182
|
}
|
package/dist/lib/env.browser.cjs
CHANGED
|
@@ -24,7 +24,7 @@ __export(env_exports, {
|
|
|
24
24
|
getEnvConfig: () => getEnvConfig
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(env_exports);
|
|
27
|
-
var CLIENT_VERSION = "0.
|
|
27
|
+
var CLIENT_VERSION = "0.16.0-beta.1";
|
|
28
28
|
function getEnvConfig(key, defaultValue) {
|
|
29
29
|
const val = getVariable(key);
|
|
30
30
|
if (val === void 0) {
|
package/dist/lib/env.browser.js
CHANGED
package/dist/lib/env.cjs
CHANGED
|
@@ -24,7 +24,7 @@ __export(env_exports, {
|
|
|
24
24
|
getEnvConfig: () => getEnvConfig
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(env_exports);
|
|
27
|
-
var CLIENT_VERSION = "0.
|
|
27
|
+
var CLIENT_VERSION = "0.16.0-beta.1";
|
|
28
28
|
function getEnvConfig(key, defaultValue) {
|
|
29
29
|
const val = getVariable(key);
|
|
30
30
|
if (val === void 0) {
|
package/dist/lib/env.js
CHANGED
|
@@ -553,6 +553,11 @@ var ERROR_GROUPS = {
|
|
|
553
553
|
message: "SENDING_TIMEOUT",
|
|
554
554
|
description: "Unable to get ack from server in specified time"
|
|
555
555
|
},
|
|
556
|
+
REQUEST_TIMEOUT: {
|
|
557
|
+
code: -15006,
|
|
558
|
+
message: "REQUEST_TIMEOUT",
|
|
559
|
+
description: "Unable to get a response from server in specified time"
|
|
560
|
+
},
|
|
556
561
|
CONFIG_INVALID: {
|
|
557
562
|
code: -15100,
|
|
558
563
|
message: "CONFIG_INVALID",
|
|
@@ -515,6 +515,11 @@ var ERROR_GROUPS = {
|
|
|
515
515
|
message: "SENDING_TIMEOUT",
|
|
516
516
|
description: "Unable to get ack from server in specified time"
|
|
517
517
|
},
|
|
518
|
+
REQUEST_TIMEOUT: {
|
|
519
|
+
code: -15006,
|
|
520
|
+
message: "REQUEST_TIMEOUT",
|
|
521
|
+
description: "Unable to get a response from server in specified time"
|
|
522
|
+
},
|
|
518
523
|
CONFIG_INVALID: {
|
|
519
524
|
code: -15100,
|
|
520
525
|
message: "CONFIG_INVALID",
|
package/dist/lib/errors.cjs
CHANGED
|
@@ -553,6 +553,11 @@ var ERROR_GROUPS = {
|
|
|
553
553
|
message: "SENDING_TIMEOUT",
|
|
554
554
|
description: "Unable to get ack from server in specified time"
|
|
555
555
|
},
|
|
556
|
+
REQUEST_TIMEOUT: {
|
|
557
|
+
code: -15006,
|
|
558
|
+
message: "REQUEST_TIMEOUT",
|
|
559
|
+
description: "Unable to get a response from server in specified time"
|
|
560
|
+
},
|
|
556
561
|
CONFIG_INVALID: {
|
|
557
562
|
code: -15100,
|
|
558
563
|
message: "CONFIG_INVALID",
|
package/dist/lib/errors.js
CHANGED
|
@@ -515,6 +515,11 @@ var ERROR_GROUPS = {
|
|
|
515
515
|
message: "SENDING_TIMEOUT",
|
|
516
516
|
description: "Unable to get ack from server in specified time"
|
|
517
517
|
},
|
|
518
|
+
REQUEST_TIMEOUT: {
|
|
519
|
+
code: -15006,
|
|
520
|
+
message: "REQUEST_TIMEOUT",
|
|
521
|
+
description: "Unable to get a response from server in specified time"
|
|
522
|
+
},
|
|
518
523
|
CONFIG_INVALID: {
|
|
519
524
|
code: -15100,
|
|
520
525
|
message: "CONFIG_INVALID",
|
|
@@ -50,6 +50,7 @@ __export(utils_exports, {
|
|
|
50
50
|
convertToNumber: () => convertToNumber,
|
|
51
51
|
convertToString: () => convertToString,
|
|
52
52
|
copyObject: () => copyObject,
|
|
53
|
+
getBasicAuth: () => getBasicAuth,
|
|
53
54
|
getConnectionParams: () => getConnectionParams,
|
|
54
55
|
getConnectionUrl: () => getConnectionUrl,
|
|
55
56
|
getIdentifier: () => getIdentifier,
|
|
@@ -212,13 +213,18 @@ function toQueryString(obj) {
|
|
|
212
213
|
}
|
|
213
214
|
function getConnectionUrl(config) {
|
|
214
215
|
const url = config.host.replace(/^https:/, "wss:");
|
|
215
|
-
return url + "?" + toQueryString({
|
|
216
|
-
apikey: config.apikey,
|
|
217
|
-
apisecret: config.apisecret,
|
|
216
|
+
return url + "?" + toQueryString(__spreadValues(__spreadValues({
|
|
218
217
|
db: config.database,
|
|
219
218
|
clientVersion: config.clientVersion,
|
|
220
219
|
connectionName: config.connectionName
|
|
221
|
-
});
|
|
220
|
+
}, "jwt" in config ? { jwt: config.jwt } : {}), "apikey" in config ? { apikey: config.apikey, apisecret: config.apisecret } : {}));
|
|
221
|
+
}
|
|
222
|
+
function getBasicAuth({
|
|
223
|
+
apikey,
|
|
224
|
+
apisecret,
|
|
225
|
+
database
|
|
226
|
+
}) {
|
|
227
|
+
return btoa(`${database != null ? database : ""}:${apikey}:${apisecret}`);
|
|
222
228
|
}
|
|
223
229
|
function getConnectionParams(config) {
|
|
224
230
|
if (typeof window === "undefined") {
|
|
@@ -174,13 +174,18 @@ function toQueryString(obj) {
|
|
|
174
174
|
}
|
|
175
175
|
function getConnectionUrl(config) {
|
|
176
176
|
const url = config.host.replace(/^https:/, "wss:");
|
|
177
|
-
return url + "?" + toQueryString({
|
|
178
|
-
apikey: config.apikey,
|
|
179
|
-
apisecret: config.apisecret,
|
|
177
|
+
return url + "?" + toQueryString(__spreadValues(__spreadValues({
|
|
180
178
|
db: config.database,
|
|
181
179
|
clientVersion: config.clientVersion,
|
|
182
180
|
connectionName: config.connectionName
|
|
183
|
-
});
|
|
181
|
+
}, "jwt" in config ? { jwt: config.jwt } : {}), "apikey" in config ? { apikey: config.apikey, apisecret: config.apisecret } : {}));
|
|
182
|
+
}
|
|
183
|
+
function getBasicAuth({
|
|
184
|
+
apikey,
|
|
185
|
+
apisecret,
|
|
186
|
+
database
|
|
187
|
+
}) {
|
|
188
|
+
return btoa(`${database != null ? database : ""}:${apikey}:${apisecret}`);
|
|
184
189
|
}
|
|
185
190
|
function getConnectionParams(config) {
|
|
186
191
|
if (typeof window === "undefined") {
|
|
@@ -282,6 +287,7 @@ export {
|
|
|
282
287
|
convertToNumber,
|
|
283
288
|
convertToString,
|
|
284
289
|
copyObject,
|
|
290
|
+
getBasicAuth,
|
|
285
291
|
getConnectionParams,
|
|
286
292
|
getConnectionUrl,
|
|
287
293
|
getIdentifier,
|
package/dist/lib/utils.cjs
CHANGED
|
@@ -50,6 +50,7 @@ __export(utils_exports, {
|
|
|
50
50
|
convertToNumber: () => convertToNumber,
|
|
51
51
|
convertToString: () => convertToString,
|
|
52
52
|
copyObject: () => copyObject,
|
|
53
|
+
getBasicAuth: () => getBasicAuth,
|
|
53
54
|
getConnectionParams: () => getConnectionParams,
|
|
54
55
|
getConnectionUrl: () => getConnectionUrl,
|
|
55
56
|
getIdentifier: () => getIdentifier,
|
|
@@ -211,13 +212,18 @@ function toQueryString(obj) {
|
|
|
211
212
|
}
|
|
212
213
|
function getConnectionUrl(config) {
|
|
213
214
|
const url = config.host.replace(/^https:/, "wss:");
|
|
214
|
-
return url + "?" + toQueryString({
|
|
215
|
-
apikey: config.apikey,
|
|
216
|
-
apisecret: config.apisecret,
|
|
215
|
+
return url + "?" + toQueryString(__spreadValues(__spreadValues({
|
|
217
216
|
db: config.database,
|
|
218
217
|
clientVersion: config.clientVersion,
|
|
219
218
|
connectionName: config.connectionName
|
|
220
|
-
});
|
|
219
|
+
}, "jwt" in config ? { jwt: config.jwt } : {}), "apikey" in config ? { apikey: config.apikey, apisecret: config.apisecret } : {}));
|
|
220
|
+
}
|
|
221
|
+
function getBasicAuth({
|
|
222
|
+
apikey,
|
|
223
|
+
apisecret,
|
|
224
|
+
database
|
|
225
|
+
}) {
|
|
226
|
+
return btoa(`${database != null ? database : ""}:${apikey}:${apisecret}`);
|
|
221
227
|
}
|
|
222
228
|
function getConnectionParams(config) {
|
|
223
229
|
if (typeof window === "undefined") {
|
|
@@ -320,6 +326,7 @@ function isDateTime(str) {
|
|
|
320
326
|
convertToNumber,
|
|
321
327
|
convertToString,
|
|
322
328
|
copyObject,
|
|
329
|
+
getBasicAuth,
|
|
323
330
|
getConnectionParams,
|
|
324
331
|
getConnectionUrl,
|
|
325
332
|
getIdentifier,
|
package/dist/lib/utils.js
CHANGED
|
@@ -173,13 +173,18 @@ function toQueryString(obj) {
|
|
|
173
173
|
}
|
|
174
174
|
function getConnectionUrl(config) {
|
|
175
175
|
const url = config.host.replace(/^https:/, "wss:");
|
|
176
|
-
return url + "?" + toQueryString({
|
|
177
|
-
apikey: config.apikey,
|
|
178
|
-
apisecret: config.apisecret,
|
|
176
|
+
return url + "?" + toQueryString(__spreadValues(__spreadValues({
|
|
179
177
|
db: config.database,
|
|
180
178
|
clientVersion: config.clientVersion,
|
|
181
179
|
connectionName: config.connectionName
|
|
182
|
-
});
|
|
180
|
+
}, "jwt" in config ? { jwt: config.jwt } : {}), "apikey" in config ? { apikey: config.apikey, apisecret: config.apisecret } : {}));
|
|
181
|
+
}
|
|
182
|
+
function getBasicAuth({
|
|
183
|
+
apikey,
|
|
184
|
+
apisecret,
|
|
185
|
+
database
|
|
186
|
+
}) {
|
|
187
|
+
return btoa(`${database != null ? database : ""}:${apikey}:${apisecret}`);
|
|
183
188
|
}
|
|
184
189
|
function getConnectionParams(config) {
|
|
185
190
|
if (typeof window === "undefined") {
|
|
@@ -281,6 +286,7 @@ export {
|
|
|
281
286
|
convertToNumber,
|
|
282
287
|
convertToString,
|
|
283
288
|
copyObject,
|
|
289
|
+
getBasicAuth,
|
|
284
290
|
getConnectionParams,
|
|
285
291
|
getConnectionUrl,
|
|
286
292
|
getIdentifier,
|
|
@@ -12154,6 +12154,7 @@ config(en_default());
|
|
|
12154
12154
|
|
|
12155
12155
|
// src/txs/get-transfer-group/get-transfer-group.schema.zod.ts
|
|
12156
12156
|
var import_consts = require("../consts.browser.cjs");
|
|
12157
|
+
var import_get_transfer_schema_zod = require("../get-transfer/get-transfer.schema.zod.browser.cjs");
|
|
12157
12158
|
var import_transfer_group_schema_zod = require("../../db/transfer-group/transfer-group.schema.zod.browser.cjs");
|
|
12158
12159
|
var uniqueTransferGroupFilter = import_consts.identifierFilter.describe(
|
|
12159
12160
|
"Unique transferGroup filter"
|
|
@@ -12164,6 +12165,10 @@ var getTransferGroupTxInputOptionsSchema = import_consts.iTxGeneralOptions.exten
|
|
|
12164
12165
|
),
|
|
12165
12166
|
return_only_id: external_exports.boolean().default(false).describe(
|
|
12166
12167
|
"If true then the returning object is only guaranteed to have id"
|
|
12168
|
+
),
|
|
12169
|
+
return_transfers: external_exports.boolean().default(false).describe("If true the returning object will include transfers"),
|
|
12170
|
+
return_reversed_by: external_exports.boolean().default(false).describe(
|
|
12171
|
+
"If true the returning object will include reversed_by_identifier -> identifier of the transfer_group that reverses this one"
|
|
12167
12172
|
)
|
|
12168
12173
|
}).partial();
|
|
12169
12174
|
var getTransferGroupTxInputSchema = external_exports.object({
|
|
@@ -12173,7 +12178,9 @@ var getTransferGroupTxInputSchema = external_exports.object({
|
|
|
12173
12178
|
transfer_group: true
|
|
12174
12179
|
}).describe("Input for getTransferGroup");
|
|
12175
12180
|
var transferGroupOutputSchema = import_transfer_group_schema_zod.transferGroupTableSchema.extend({
|
|
12176
|
-
reverses_identifier: import_transfer_group_schema_zod.transferGroupTableSchema.shape.identifier.nullable().describe(`Identifier of the transfer group this reverses`)
|
|
12181
|
+
reverses_identifier: import_transfer_group_schema_zod.transferGroupTableSchema.shape.identifier.nullable().describe(`Identifier of the transfer group this reverses`),
|
|
12182
|
+
transfers: import_get_transfer_schema_zod.transferOutputSchema.array().nullable(),
|
|
12183
|
+
reversed_by_identifier: import_transfer_group_schema_zod.transferGroupTableSchema.shape.identifier.nullable().describe("Identifier of the transfer group that reverses this one")
|
|
12177
12184
|
}).partial().required({
|
|
12178
12185
|
id: true
|
|
12179
12186
|
}).describe("requested transfer_group");
|
|
@@ -12131,6 +12131,7 @@ config(en_default());
|
|
|
12131
12131
|
|
|
12132
12132
|
// src/txs/get-transfer-group/get-transfer-group.schema.zod.ts
|
|
12133
12133
|
import { identifierFilter, iTxGeneralOptions } from "../consts.browser.js";
|
|
12134
|
+
import { transferOutputSchema } from "../get-transfer/get-transfer.schema.zod.browser.js";
|
|
12134
12135
|
import { transferGroupTableSchema } from "../../db/transfer-group/transfer-group.schema.zod.browser.js";
|
|
12135
12136
|
var uniqueTransferGroupFilter = identifierFilter.describe(
|
|
12136
12137
|
"Unique transferGroup filter"
|
|
@@ -12141,6 +12142,10 @@ var getTransferGroupTxInputOptionsSchema = iTxGeneralOptions.extend({
|
|
|
12141
12142
|
),
|
|
12142
12143
|
return_only_id: external_exports.boolean().default(false).describe(
|
|
12143
12144
|
"If true then the returning object is only guaranteed to have id"
|
|
12145
|
+
),
|
|
12146
|
+
return_transfers: external_exports.boolean().default(false).describe("If true the returning object will include transfers"),
|
|
12147
|
+
return_reversed_by: external_exports.boolean().default(false).describe(
|
|
12148
|
+
"If true the returning object will include reversed_by_identifier -> identifier of the transfer_group that reverses this one"
|
|
12144
12149
|
)
|
|
12145
12150
|
}).partial();
|
|
12146
12151
|
var getTransferGroupTxInputSchema = external_exports.object({
|
|
@@ -12150,7 +12155,9 @@ var getTransferGroupTxInputSchema = external_exports.object({
|
|
|
12150
12155
|
transfer_group: true
|
|
12151
12156
|
}).describe("Input for getTransferGroup");
|
|
12152
12157
|
var transferGroupOutputSchema = transferGroupTableSchema.extend({
|
|
12153
|
-
reverses_identifier: transferGroupTableSchema.shape.identifier.nullable().describe(`Identifier of the transfer group this reverses`)
|
|
12158
|
+
reverses_identifier: transferGroupTableSchema.shape.identifier.nullable().describe(`Identifier of the transfer group this reverses`),
|
|
12159
|
+
transfers: transferOutputSchema.array().nullable(),
|
|
12160
|
+
reversed_by_identifier: transferGroupTableSchema.shape.identifier.nullable().describe("Identifier of the transfer group that reverses this one")
|
|
12154
12161
|
}).partial().required({
|
|
12155
12162
|
id: true
|
|
12156
12163
|
}).describe("requested transfer_group");
|
|
@@ -29,6 +29,7 @@ __export(get_transfer_group_schema_zod_exports, {
|
|
|
29
29
|
module.exports = __toCommonJS(get_transfer_group_schema_zod_exports);
|
|
30
30
|
var import_zod = require("zod");
|
|
31
31
|
var import_consts = require("../consts.cjs");
|
|
32
|
+
var import_get_transfer_schema_zod = require("../get-transfer/get-transfer.schema.zod.cjs");
|
|
32
33
|
var import_transfer_group_schema_zod = require("../../db/transfer-group/transfer-group.schema.zod.cjs");
|
|
33
34
|
var uniqueTransferGroupFilter = import_consts.identifierFilter.describe(
|
|
34
35
|
"Unique transferGroup filter"
|
|
@@ -39,6 +40,10 @@ var getTransferGroupTxInputOptionsSchema = import_consts.iTxGeneralOptions.exten
|
|
|
39
40
|
),
|
|
40
41
|
return_only_id: import_zod.z.boolean().default(false).describe(
|
|
41
42
|
"If true then the returning object is only guaranteed to have id"
|
|
43
|
+
),
|
|
44
|
+
return_transfers: import_zod.z.boolean().default(false).describe("If true the returning object will include transfers"),
|
|
45
|
+
return_reversed_by: import_zod.z.boolean().default(false).describe(
|
|
46
|
+
"If true the returning object will include reversed_by_identifier -> identifier of the transfer_group that reverses this one"
|
|
42
47
|
)
|
|
43
48
|
}).partial();
|
|
44
49
|
var getTransferGroupTxInputSchema = import_zod.z.object({
|
|
@@ -48,7 +53,9 @@ var getTransferGroupTxInputSchema = import_zod.z.object({
|
|
|
48
53
|
transfer_group: true
|
|
49
54
|
}).describe("Input for getTransferGroup");
|
|
50
55
|
var transferGroupOutputSchema = import_transfer_group_schema_zod.transferGroupTableSchema.extend({
|
|
51
|
-
reverses_identifier: import_transfer_group_schema_zod.transferGroupTableSchema.shape.identifier.nullable().describe(`Identifier of the transfer group this reverses`)
|
|
56
|
+
reverses_identifier: import_transfer_group_schema_zod.transferGroupTableSchema.shape.identifier.nullable().describe(`Identifier of the transfer group this reverses`),
|
|
57
|
+
transfers: import_get_transfer_schema_zod.transferOutputSchema.array().nullable(),
|
|
58
|
+
reversed_by_identifier: import_transfer_group_schema_zod.transferGroupTableSchema.shape.identifier.nullable().describe("Identifier of the transfer group that reverses this one")
|
|
52
59
|
}).partial().required({
|
|
53
60
|
id: true
|
|
54
61
|
}).describe("requested transfer_group");
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// src/txs/get-transfer-group/get-transfer-group.schema.zod.ts
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { identifierFilter, iTxGeneralOptions } from "../consts.js";
|
|
4
|
+
import { transferOutputSchema } from "../get-transfer/get-transfer.schema.zod.js";
|
|
4
5
|
import { transferGroupTableSchema } from "../../db/transfer-group/transfer-group.schema.zod.js";
|
|
5
6
|
var uniqueTransferGroupFilter = identifierFilter.describe(
|
|
6
7
|
"Unique transferGroup filter"
|
|
@@ -11,6 +12,10 @@ var getTransferGroupTxInputOptionsSchema = iTxGeneralOptions.extend({
|
|
|
11
12
|
),
|
|
12
13
|
return_only_id: z.boolean().default(false).describe(
|
|
13
14
|
"If true then the returning object is only guaranteed to have id"
|
|
15
|
+
),
|
|
16
|
+
return_transfers: z.boolean().default(false).describe("If true the returning object will include transfers"),
|
|
17
|
+
return_reversed_by: z.boolean().default(false).describe(
|
|
18
|
+
"If true the returning object will include reversed_by_identifier -> identifier of the transfer_group that reverses this one"
|
|
14
19
|
)
|
|
15
20
|
}).partial();
|
|
16
21
|
var getTransferGroupTxInputSchema = z.object({
|
|
@@ -20,7 +25,9 @@ var getTransferGroupTxInputSchema = z.object({
|
|
|
20
25
|
transfer_group: true
|
|
21
26
|
}).describe("Input for getTransferGroup");
|
|
22
27
|
var transferGroupOutputSchema = transferGroupTableSchema.extend({
|
|
23
|
-
reverses_identifier: transferGroupTableSchema.shape.identifier.nullable().describe(`Identifier of the transfer group this reverses`)
|
|
28
|
+
reverses_identifier: transferGroupTableSchema.shape.identifier.nullable().describe(`Identifier of the transfer group this reverses`),
|
|
29
|
+
transfers: transferOutputSchema.array().nullable(),
|
|
30
|
+
reversed_by_identifier: transferGroupTableSchema.shape.identifier.nullable().describe("Identifier of the transfer group that reverses this one")
|
|
24
31
|
}).partial().required({
|
|
25
32
|
id: true
|
|
26
33
|
}).describe("requested transfer_group");
|