wapi-client 0.15.1 → 0.15.3
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/fns/reverse-transfer-group/reverse-transfer-group.browser.cjs +12 -2
- package/dist/fns/reverse-transfer-group/reverse-transfer-group.browser.js +12 -2
- package/dist/fns/reverse-transfer-group/reverse-transfer-group.cjs +12 -2
- package/dist/fns/reverse-transfer-group/reverse-transfer-group.js +12 -2
- package/dist/fns/reverse-transfer-group/reverse-transfer-group.schema.zod.browser.cjs +0 -1
- package/dist/fns/reverse-transfer-group/reverse-transfer-group.schema.zod.browser.js +1 -5
- package/dist/fns/reverse-transfer-group/reverse-transfer-group.schema.zod.cjs +0 -1
- package/dist/fns/reverse-transfer-group/reverse-transfer-group.schema.zod.js +1 -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/txs/reverse-transfer-group/reverse-transfer-group.schema.zod.browser.cjs +0 -1
- package/dist/txs/reverse-transfer-group/reverse-transfer-group.schema.zod.browser.js +1 -5
- package/dist/txs/reverse-transfer-group/reverse-transfer-group.schema.zod.cjs +0 -1
- package/dist/txs/reverse-transfer-group/reverse-transfer-group.schema.zod.js +1 -5
- package/dist/types/wapi-client.d.ts +0 -24
- package/dist/wapi-client-web.iife.js +5 -5
- package/dist/wapi-client.iife.js +5 -5
- package/package.json +1 -1
|
@@ -31,13 +31,23 @@ function reverseTransferGroup(options, input, fnOptions) {
|
|
|
31
31
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
32
32
|
if (inputCopy.extend_metadata) {
|
|
33
33
|
console.warn(
|
|
34
|
-
|
|
34
|
+
`deprecated: extend_metadata is deprecated. Use metadata_action instead`
|
|
35
|
+
);
|
|
36
|
+
console.warn(
|
|
37
|
+
"extend_metadata does not work with cancelling transfer_groups"
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
if (inputCopy.transfer_extend_metadata) {
|
|
41
|
+
console.warn(
|
|
42
|
+
"deprecated: transfer_extend_metadata is deprecated. Use transfer_metadata_action instead"
|
|
43
|
+
);
|
|
44
|
+
console.warn(
|
|
45
|
+
"transfer_extend_metadata does not work with cancelling transfer_groups"
|
|
35
46
|
);
|
|
36
47
|
}
|
|
37
48
|
return client.api.reverseTransferGroup({
|
|
38
49
|
transfer_group: inputCopy.transfer_group,
|
|
39
50
|
reverse: {
|
|
40
|
-
status: inputCopy.status,
|
|
41
51
|
force: inputCopy.force,
|
|
42
52
|
transfer_status: inputCopy.transfer_status,
|
|
43
53
|
identifier: inputCopy.identifier,
|
|
@@ -7,13 +7,23 @@ function reverseTransferGroup(options, input, fnOptions) {
|
|
|
7
7
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
8
8
|
if (inputCopy.extend_metadata) {
|
|
9
9
|
console.warn(
|
|
10
|
-
|
|
10
|
+
`deprecated: extend_metadata is deprecated. Use metadata_action instead`
|
|
11
|
+
);
|
|
12
|
+
console.warn(
|
|
13
|
+
"extend_metadata does not work with cancelling transfer_groups"
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
if (inputCopy.transfer_extend_metadata) {
|
|
17
|
+
console.warn(
|
|
18
|
+
"deprecated: transfer_extend_metadata is deprecated. Use transfer_metadata_action instead"
|
|
19
|
+
);
|
|
20
|
+
console.warn(
|
|
21
|
+
"transfer_extend_metadata does not work with cancelling transfer_groups"
|
|
11
22
|
);
|
|
12
23
|
}
|
|
13
24
|
return client.api.reverseTransferGroup({
|
|
14
25
|
transfer_group: inputCopy.transfer_group,
|
|
15
26
|
reverse: {
|
|
16
|
-
status: inputCopy.status,
|
|
17
27
|
force: inputCopy.force,
|
|
18
28
|
transfer_status: inputCopy.transfer_status,
|
|
19
29
|
identifier: inputCopy.identifier,
|
|
@@ -31,13 +31,23 @@ function reverseTransferGroup(options, input, fnOptions) {
|
|
|
31
31
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
32
32
|
if (inputCopy.extend_metadata) {
|
|
33
33
|
console.warn(
|
|
34
|
-
|
|
34
|
+
`deprecated: extend_metadata is deprecated. Use metadata_action instead`
|
|
35
|
+
);
|
|
36
|
+
console.warn(
|
|
37
|
+
"extend_metadata does not work with cancelling transfer_groups"
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
if (inputCopy.transfer_extend_metadata) {
|
|
41
|
+
console.warn(
|
|
42
|
+
"deprecated: transfer_extend_metadata is deprecated. Use transfer_metadata_action instead"
|
|
43
|
+
);
|
|
44
|
+
console.warn(
|
|
45
|
+
"transfer_extend_metadata does not work with cancelling transfer_groups"
|
|
35
46
|
);
|
|
36
47
|
}
|
|
37
48
|
return client.api.reverseTransferGroup({
|
|
38
49
|
transfer_group: inputCopy.transfer_group,
|
|
39
50
|
reverse: {
|
|
40
|
-
status: inputCopy.status,
|
|
41
51
|
force: inputCopy.force,
|
|
42
52
|
transfer_status: inputCopy.transfer_status,
|
|
43
53
|
identifier: inputCopy.identifier,
|
|
@@ -7,13 +7,23 @@ function reverseTransferGroup(options, input, fnOptions) {
|
|
|
7
7
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
8
8
|
if (inputCopy.extend_metadata) {
|
|
9
9
|
console.warn(
|
|
10
|
-
|
|
10
|
+
`deprecated: extend_metadata is deprecated. Use metadata_action instead`
|
|
11
|
+
);
|
|
12
|
+
console.warn(
|
|
13
|
+
"extend_metadata does not work with cancelling transfer_groups"
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
if (inputCopy.transfer_extend_metadata) {
|
|
17
|
+
console.warn(
|
|
18
|
+
"deprecated: transfer_extend_metadata is deprecated. Use transfer_metadata_action instead"
|
|
19
|
+
);
|
|
20
|
+
console.warn(
|
|
21
|
+
"transfer_extend_metadata does not work with cancelling transfer_groups"
|
|
11
22
|
);
|
|
12
23
|
}
|
|
13
24
|
return client.api.reverseTransferGroup({
|
|
14
25
|
transfer_group: inputCopy.transfer_group,
|
|
15
26
|
reverse: {
|
|
16
|
-
status: inputCopy.status,
|
|
17
27
|
force: inputCopy.force,
|
|
18
28
|
transfer_status: inputCopy.transfer_status,
|
|
19
29
|
identifier: inputCopy.identifier,
|
|
@@ -37,7 +37,6 @@ var reverseTransferGroupInputSchema = import_zod.z.object({
|
|
|
37
37
|
transfer_group: import_consts.allowedStringIntSchema.describe(
|
|
38
38
|
"identifier of the transfer group to reverse"
|
|
39
39
|
),
|
|
40
|
-
status: import_transfer_group_schema_zod.transferGroupTableStatusSchema,
|
|
41
40
|
transfer_status: import_transfer_schema_zod.transferTableStatusInputSchema,
|
|
42
41
|
identifier: import_transfer_group_schema_zod.transferGroupTableSchema.shape.identifier,
|
|
43
42
|
force: import_transfer_schema_zod.transferTableSchema.shape.force,
|
|
@@ -9,16 +9,12 @@ import {
|
|
|
9
9
|
transferTableSchema,
|
|
10
10
|
transferTableStatusInputSchema
|
|
11
11
|
} from "../../db/transfer/transfer.schema.zod.browser.js";
|
|
12
|
-
import {
|
|
13
|
-
transferGroupTableSchema,
|
|
14
|
-
transferGroupTableStatusSchema
|
|
15
|
-
} from "../../db/transfer-group/transfer-group.schema.zod.browser.js";
|
|
12
|
+
import { transferGroupTableSchema } from "../../db/transfer-group/transfer-group.schema.zod.browser.js";
|
|
16
13
|
var reverseTransferGroupFnOptionsSchema = reverseTransferGroupTxInputOptionsSchema.describe("Optional flags for input");
|
|
17
14
|
var reverseTransferGroupInputSchema = z.object({
|
|
18
15
|
transfer_group: allowedStringIntSchema.describe(
|
|
19
16
|
"identifier of the transfer group to reverse"
|
|
20
17
|
),
|
|
21
|
-
status: transferGroupTableStatusSchema,
|
|
22
18
|
transfer_status: transferTableStatusInputSchema,
|
|
23
19
|
identifier: transferGroupTableSchema.shape.identifier,
|
|
24
20
|
force: transferTableSchema.shape.force,
|
|
@@ -37,7 +37,6 @@ var reverseTransferGroupInputSchema = import_zod.z.object({
|
|
|
37
37
|
transfer_group: import_consts.allowedStringIntSchema.describe(
|
|
38
38
|
"identifier of the transfer group to reverse"
|
|
39
39
|
),
|
|
40
|
-
status: import_transfer_group_schema_zod.transferGroupTableStatusSchema,
|
|
41
40
|
transfer_status: import_transfer_schema_zod.transferTableStatusInputSchema,
|
|
42
41
|
identifier: import_transfer_group_schema_zod.transferGroupTableSchema.shape.identifier,
|
|
43
42
|
force: import_transfer_schema_zod.transferTableSchema.shape.force,
|
|
@@ -9,16 +9,12 @@ import {
|
|
|
9
9
|
transferTableSchema,
|
|
10
10
|
transferTableStatusInputSchema
|
|
11
11
|
} from "../../db/transfer/transfer.schema.zod.js";
|
|
12
|
-
import {
|
|
13
|
-
transferGroupTableSchema,
|
|
14
|
-
transferGroupTableStatusSchema
|
|
15
|
-
} from "../../db/transfer-group/transfer-group.schema.zod.js";
|
|
12
|
+
import { transferGroupTableSchema } from "../../db/transfer-group/transfer-group.schema.zod.js";
|
|
16
13
|
var reverseTransferGroupFnOptionsSchema = reverseTransferGroupTxInputOptionsSchema.describe("Optional flags for input");
|
|
17
14
|
var reverseTransferGroupInputSchema = z.object({
|
|
18
15
|
transfer_group: allowedStringIntSchema.describe(
|
|
19
16
|
"identifier of the transfer group to reverse"
|
|
20
17
|
),
|
|
21
|
-
status: transferGroupTableStatusSchema,
|
|
22
18
|
transfer_status: transferTableStatusInputSchema,
|
|
23
19
|
identifier: transferGroupTableSchema.shape.identifier,
|
|
24
20
|
force: transferTableSchema.shape.force,
|
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.15.
|
|
27
|
+
var CLIENT_VERSION = "0.15.3";
|
|
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.15.
|
|
27
|
+
var CLIENT_VERSION = "0.15.3";
|
|
28
28
|
function getEnvConfig(key, defaultValue) {
|
|
29
29
|
const val = getVariable(key);
|
|
30
30
|
if (val === void 0) {
|
package/dist/lib/env.js
CHANGED
|
@@ -12174,7 +12174,6 @@ var reverseTransferGroupAdditionalOptionsSchema = external_exports.object({
|
|
|
12174
12174
|
}).strict().partial();
|
|
12175
12175
|
var reverseTransferGroupTxInputOptionsSchema = external_exports.object(__spreadValues(__spreadValues({}, import_consts.iTxGeneralOptions.shape), reverseTransferGroupAdditionalOptionsSchema.shape)).partial();
|
|
12176
12176
|
var reverseTransferGroupModificationsSchema = external_exports.object({
|
|
12177
|
-
status: import_transfer_group_schema_zod.transferGroupTableStatusSchema,
|
|
12178
12177
|
transfer_status: import_transfer_schema_zod.transferTableStatusInputSchema,
|
|
12179
12178
|
identifier: import_transfer_group_schema_zod.transferGroupTableSchema.shape.identifier,
|
|
12180
12179
|
force: import_transfer_schema_zod.transferTableSchema.shape.force,
|
|
@@ -12133,10 +12133,7 @@ config(en_default());
|
|
|
12133
12133
|
import { iTxGeneralOptions, iTxMetadataActionForReverse } from "../consts.browser.js";
|
|
12134
12134
|
import { uniqueTransferGroupFilter } from "../get-transfer-group/get-transfer-group.schema.zod.browser.js";
|
|
12135
12135
|
import { transferOutputSchema } from "../get-transfer/get-transfer.schema.zod.browser.js";
|
|
12136
|
-
import {
|
|
12137
|
-
transferGroupTableSchema,
|
|
12138
|
-
transferGroupTableStatusSchema
|
|
12139
|
-
} from "../../db/transfer-group/transfer-group.schema.zod.browser.js";
|
|
12136
|
+
import { transferGroupTableSchema } from "../../db/transfer-group/transfer-group.schema.zod.browser.js";
|
|
12140
12137
|
import {
|
|
12141
12138
|
transferTableSchema,
|
|
12142
12139
|
transferTableStatusInputSchema
|
|
@@ -12157,7 +12154,6 @@ var reverseTransferGroupAdditionalOptionsSchema = external_exports.object({
|
|
|
12157
12154
|
}).strict().partial();
|
|
12158
12155
|
var reverseTransferGroupTxInputOptionsSchema = external_exports.object(__spreadValues(__spreadValues({}, iTxGeneralOptions.shape), reverseTransferGroupAdditionalOptionsSchema.shape)).partial();
|
|
12159
12156
|
var reverseTransferGroupModificationsSchema = external_exports.object({
|
|
12160
|
-
status: transferGroupTableStatusSchema,
|
|
12161
12157
|
transfer_status: transferTableStatusInputSchema,
|
|
12162
12158
|
identifier: transferGroupTableSchema.shape.identifier,
|
|
12163
12159
|
force: transferTableSchema.shape.force,
|
|
@@ -63,7 +63,6 @@ var reverseTransferGroupAdditionalOptionsSchema = import_zod.z.object({
|
|
|
63
63
|
}).strict().partial();
|
|
64
64
|
var reverseTransferGroupTxInputOptionsSchema = import_zod.z.object(__spreadValues(__spreadValues({}, import_consts.iTxGeneralOptions.shape), reverseTransferGroupAdditionalOptionsSchema.shape)).partial();
|
|
65
65
|
var reverseTransferGroupModificationsSchema = import_zod.z.object({
|
|
66
|
-
status: import_transfer_group_schema_zod.transferGroupTableStatusSchema,
|
|
67
66
|
transfer_status: import_transfer_schema_zod.transferTableStatusInputSchema,
|
|
68
67
|
identifier: import_transfer_group_schema_zod.transferGroupTableSchema.shape.identifier,
|
|
69
68
|
force: import_transfer_schema_zod.transferTableSchema.shape.force,
|
|
@@ -20,10 +20,7 @@ import { z } from "zod";
|
|
|
20
20
|
import { iTxGeneralOptions, iTxMetadataActionForReverse } from "../consts.js";
|
|
21
21
|
import { uniqueTransferGroupFilter } from "../get-transfer-group/get-transfer-group.schema.zod.js";
|
|
22
22
|
import { transferOutputSchema } from "../get-transfer/get-transfer.schema.zod.js";
|
|
23
|
-
import {
|
|
24
|
-
transferGroupTableSchema,
|
|
25
|
-
transferGroupTableStatusSchema
|
|
26
|
-
} from "../../db/transfer-group/transfer-group.schema.zod.js";
|
|
23
|
+
import { transferGroupTableSchema } from "../../db/transfer-group/transfer-group.schema.zod.js";
|
|
27
24
|
import {
|
|
28
25
|
transferTableSchema,
|
|
29
26
|
transferTableStatusInputSchema
|
|
@@ -44,7 +41,6 @@ var reverseTransferGroupAdditionalOptionsSchema = z.object({
|
|
|
44
41
|
}).strict().partial();
|
|
45
42
|
var reverseTransferGroupTxInputOptionsSchema = z.object(__spreadValues(__spreadValues({}, iTxGeneralOptions.shape), reverseTransferGroupAdditionalOptionsSchema.shape)).partial();
|
|
46
43
|
var reverseTransferGroupModificationsSchema = z.object({
|
|
47
|
-
status: transferGroupTableStatusSchema,
|
|
48
44
|
transfer_status: transferTableStatusInputSchema,
|
|
49
45
|
identifier: transferGroupTableSchema.shape.identifier,
|
|
50
46
|
force: transferTableSchema.shape.force,
|
|
@@ -20023,10 +20023,6 @@ declare module "wapi-client/txs/reverse-transfer-group/reverse-transfer-group.sc
|
|
|
20023
20023
|
transaction_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
20024
20024
|
}, z.core.$strip>;
|
|
20025
20025
|
export const reverseTransferGroupModificationsSchema: z.ZodObject<{
|
|
20026
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
20027
|
-
open: "open";
|
|
20028
|
-
closed: "closed";
|
|
20029
|
-
}>>;
|
|
20030
20026
|
transfer_status: z.ZodOptional<z.ZodEnum<{
|
|
20031
20027
|
pending: "pending";
|
|
20032
20028
|
finished: "finished";
|
|
@@ -20059,10 +20055,6 @@ declare module "wapi-client/txs/reverse-transfer-group/reverse-transfer-group.sc
|
|
|
20059
20055
|
id?: number | undefined;
|
|
20060
20056
|
}>>>>;
|
|
20061
20057
|
reverse: z.ZodOptional<z.ZodObject<{
|
|
20062
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
20063
|
-
open: "open";
|
|
20064
|
-
closed: "closed";
|
|
20065
|
-
}>>;
|
|
20066
20058
|
transfer_status: z.ZodOptional<z.ZodEnum<{
|
|
20067
20059
|
pending: "pending";
|
|
20068
20060
|
finished: "finished";
|
|
@@ -20189,10 +20181,6 @@ declare module "wapi-client/fns/reverse-transfer-group/reverse-transfer-group.sc
|
|
|
20189
20181
|
}, z.core.$strip>;
|
|
20190
20182
|
export const reverseTransferGroupInputSchema: z.ZodObject<{
|
|
20191
20183
|
transfer_group: z.ZodNonOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
20192
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
20193
|
-
open: "open";
|
|
20194
|
-
closed: "closed";
|
|
20195
|
-
}>>;
|
|
20196
20184
|
transfer_status: z.ZodOptional<z.ZodEnum<{
|
|
20197
20185
|
pending: "pending";
|
|
20198
20186
|
finished: "finished";
|
|
@@ -20206,10 +20194,6 @@ declare module "wapi-client/fns/reverse-transfer-group/reverse-transfer-group.sc
|
|
|
20206
20194
|
}, z.core.$strip>;
|
|
20207
20195
|
export const reverseTransferGroupFnInputSchema: z.ZodObject<{
|
|
20208
20196
|
transfer_group: z.ZodNonOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
20209
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
20210
|
-
open: "open";
|
|
20211
|
-
closed: "closed";
|
|
20212
|
-
}>>;
|
|
20213
20197
|
transfer_status: z.ZodOptional<z.ZodEnum<{
|
|
20214
20198
|
pending: "pending";
|
|
20215
20199
|
finished: "finished";
|
|
@@ -24444,10 +24428,6 @@ declare module "wapi-client/txs/reverse-transfer-group-many/reverse-transfer-gro
|
|
|
24444
24428
|
import { z } from 'zod';
|
|
24445
24429
|
export const reverseTransferGroupManyModificationsSchema: z.ZodObject<{
|
|
24446
24430
|
metadata: z.ZodOptional<z.ZodOptional<z.ZodType<import("wapi-client/db/consts").Metadata, unknown, z.core.$ZodTypeInternals<import("wapi-client/db/consts").Metadata, unknown>>>>;
|
|
24447
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
24448
|
-
open: "open";
|
|
24449
|
-
closed: "closed";
|
|
24450
|
-
}>>;
|
|
24451
24431
|
force: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
24452
24432
|
transfer_status: z.ZodOptional<z.ZodEnum<{
|
|
24453
24433
|
pending: "pending";
|
|
@@ -24609,10 +24589,6 @@ declare module "wapi-client/txs/reverse-transfer-group-many/reverse-transfer-gro
|
|
|
24609
24589
|
}, z.core.$strip>]>>>;
|
|
24610
24590
|
reverse: z.ZodOptional<z.ZodObject<{
|
|
24611
24591
|
metadata: z.ZodOptional<z.ZodOptional<z.ZodType<import("wapi-client/db/consts").Metadata, unknown, z.core.$ZodTypeInternals<import("wapi-client/db/consts").Metadata, unknown>>>>;
|
|
24612
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
24613
|
-
open: "open";
|
|
24614
|
-
closed: "closed";
|
|
24615
|
-
}>>;
|
|
24616
24592
|
force: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
24617
24593
|
transfer_status: z.ZodOptional<z.ZodEnum<{
|
|
24618
24594
|
pending: "pending";
|