@veruna/api-contracts 6.1.0 → 6.2.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/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/wallet/queries/list-wallet-events.query.d.ts +5 -1
- package/build/v1/wallet/schemas/index.d.ts +1 -0
- package/build/v1/wallet/schemas/index.js +3 -1
- package/build/v1/wallet/schemas/index.js.map +1 -1
- package/build/v1/wallet/schemas/wallet-event-breakdown.schema.d.ts +8 -0
- package/build/v1/wallet/schemas/wallet-event-breakdown.schema.js +11 -0
- package/build/v1/wallet/schemas/wallet-event-breakdown.schema.js.map +1 -0
- package/build/v1/wallet/schemas/wallet-event.schema.d.ts +10 -2
- package/build/v1/wallet/schemas/wallet-event.schema.js +2 -1
- package/build/v1/wallet/schemas/wallet-event.schema.js.map +1 -1
- package/package.json +1 -1
|
@@ -12,8 +12,12 @@ export declare namespace WalletListEventsQuery {
|
|
|
12
12
|
direction: z.ZodEnum<typeof import("../schemas").WalletEventDirection>;
|
|
13
13
|
kind: z.ZodEnum<typeof import("../schemas").WalletEventKind>;
|
|
14
14
|
amount: z.ZodNumber;
|
|
15
|
-
balanceAfter: z.ZodNumber;
|
|
16
15
|
eventAt: z.ZodString;
|
|
16
|
+
breakdown: z.ZodArray<z.ZodObject<{
|
|
17
|
+
balanceTypeCode: z.ZodEnum<typeof import("../schemas").BalanceTypeCode>;
|
|
18
|
+
amount: z.ZodNumber;
|
|
19
|
+
balanceAfter: z.ZodNumber;
|
|
20
|
+
}, z.core.$strip>>;
|
|
17
21
|
}, z.core.$strip>>;
|
|
18
22
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
19
23
|
hasMore: z.ZodBoolean;
|
|
@@ -8,4 +8,5 @@ export { WalletEventDirection } from './wallet-event-direction.enum';
|
|
|
8
8
|
export { WalletEventKind } from './wallet-event-kind.enum';
|
|
9
9
|
export { BalanceItemResponseSchema, BalanceActiveHoldSchema, BalanceSummaryResponseSchema, type BalanceItemResponse, type BalanceActiveHold, type BalanceSummaryResponse, } from './balance-response.schema';
|
|
10
10
|
export { WalletEventItemSchema, WalletEventsListResponseSchema, WalletEventsListRequestSchema, type WalletEventItem, type WalletEventsListResponse, type WalletEventsListRequest, } from './wallet-event.schema';
|
|
11
|
+
export { WalletEventBreakdownItemSchema, type WalletEventBreakdownItem, } from './wallet-event-breakdown.schema';
|
|
11
12
|
export { MetadataSchema, validateMetadata, MAX_METADATA_SIZE, MAX_NESTING_DEPTH, MAX_METADATA_KEYS, type Metadata, } from './metadata.schema';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MAX_METADATA_KEYS = exports.MAX_NESTING_DEPTH = exports.MAX_METADATA_SIZE = exports.validateMetadata = exports.MetadataSchema = exports.WalletEventsListRequestSchema = exports.WalletEventsListResponseSchema = exports.WalletEventItemSchema = exports.BalanceSummaryResponseSchema = exports.BalanceActiveHoldSchema = exports.BalanceItemResponseSchema = exports.WalletEventKind = exports.WalletEventDirection = exports.InitiatorType = exports.SourceType = exports.isValidTransactionType = exports.TransactionType = exports.HoldStatus = exports.BalanceTypeCode = exports.BalanceStatus = void 0;
|
|
3
|
+
exports.MAX_METADATA_KEYS = exports.MAX_NESTING_DEPTH = exports.MAX_METADATA_SIZE = exports.validateMetadata = exports.MetadataSchema = exports.WalletEventBreakdownItemSchema = exports.WalletEventsListRequestSchema = exports.WalletEventsListResponseSchema = exports.WalletEventItemSchema = exports.BalanceSummaryResponseSchema = exports.BalanceActiveHoldSchema = exports.BalanceItemResponseSchema = exports.WalletEventKind = exports.WalletEventDirection = exports.InitiatorType = exports.SourceType = exports.isValidTransactionType = exports.TransactionType = exports.HoldStatus = exports.BalanceTypeCode = exports.BalanceStatus = void 0;
|
|
4
4
|
var balance_status_enum_1 = require("./balance-status.enum");
|
|
5
5
|
Object.defineProperty(exports, "BalanceStatus", { enumerable: true, get: function () { return balance_status_enum_1.BalanceStatus; } });
|
|
6
6
|
var balance_type_code_enum_1 = require("./balance-type-code.enum");
|
|
@@ -26,6 +26,8 @@ var wallet_event_schema_1 = require("./wallet-event.schema");
|
|
|
26
26
|
Object.defineProperty(exports, "WalletEventItemSchema", { enumerable: true, get: function () { return wallet_event_schema_1.WalletEventItemSchema; } });
|
|
27
27
|
Object.defineProperty(exports, "WalletEventsListResponseSchema", { enumerable: true, get: function () { return wallet_event_schema_1.WalletEventsListResponseSchema; } });
|
|
28
28
|
Object.defineProperty(exports, "WalletEventsListRequestSchema", { enumerable: true, get: function () { return wallet_event_schema_1.WalletEventsListRequestSchema; } });
|
|
29
|
+
var wallet_event_breakdown_schema_1 = require("./wallet-event-breakdown.schema");
|
|
30
|
+
Object.defineProperty(exports, "WalletEventBreakdownItemSchema", { enumerable: true, get: function () { return wallet_event_breakdown_schema_1.WalletEventBreakdownItemSchema; } });
|
|
29
31
|
var metadata_schema_1 = require("./metadata.schema");
|
|
30
32
|
Object.defineProperty(exports, "MetadataSchema", { enumerable: true, get: function () { return metadata_schema_1.MetadataSchema; } });
|
|
31
33
|
Object.defineProperty(exports, "validateMetadata", { enumerable: true, get: function () { return metadata_schema_1.validateMetadata; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/wallet/schemas/index.ts"],"names":[],"mappings":";;;AACA,6DAAsD;AAA7C,oHAAA,aAAa,OAAA;AACtB,mEAA2D;AAAlD,yHAAA,eAAe,OAAA;AACxB,uDAAgD;AAAvC,8GAAA,UAAU,OAAA;AACnB,iEAAkF;AAAzE,wHAAA,eAAe,OAAA;AAAE,+HAAA,sBAAsB,OAAA;AAChD,uDAAgD;AAAvC,8GAAA,UAAU,OAAA;AACnB,6DAAsD;AAA7C,oHAAA,aAAa,OAAA;AACtB,6EAAqE;AAA5D,mIAAA,oBAAoB,OAAA;AAC7B,mEAA2D;AAAlD,yHAAA,eAAe,OAAA;AAGxB,qEAOmC;AAN/B,oIAAA,yBAAyB,OAAA;AACzB,kIAAA,uBAAuB,OAAA;AACvB,uIAAA,4BAA4B,OAAA;AAMhC,6DAO+B;AAN3B,4HAAA,qBAAqB,OAAA;AACrB,qIAAA,8BAA8B,OAAA;AAC9B,oIAAA,6BAA6B,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/wallet/schemas/index.ts"],"names":[],"mappings":";;;AACA,6DAAsD;AAA7C,oHAAA,aAAa,OAAA;AACtB,mEAA2D;AAAlD,yHAAA,eAAe,OAAA;AACxB,uDAAgD;AAAvC,8GAAA,UAAU,OAAA;AACnB,iEAAkF;AAAzE,wHAAA,eAAe,OAAA;AAAE,+HAAA,sBAAsB,OAAA;AAChD,uDAAgD;AAAvC,8GAAA,UAAU,OAAA;AACnB,6DAAsD;AAA7C,oHAAA,aAAa,OAAA;AACtB,6EAAqE;AAA5D,mIAAA,oBAAoB,OAAA;AAC7B,mEAA2D;AAAlD,yHAAA,eAAe,OAAA;AAGxB,qEAOmC;AAN/B,oIAAA,yBAAyB,OAAA;AACzB,kIAAA,uBAAuB,OAAA;AACvB,uIAAA,4BAA4B,OAAA;AAMhC,6DAO+B;AAN3B,4HAAA,qBAAqB,OAAA;AACrB,qIAAA,8BAA8B,OAAA;AAC9B,oIAAA,6BAA6B,OAAA;AAMjC,iFAGyC;AAFrC,+IAAA,8BAA8B,OAAA;AAKlC,qDAO2B;AANvB,iHAAA,cAAc,OAAA;AACd,mHAAA,gBAAgB,OAAA;AAChB,oHAAA,iBAAiB,OAAA;AACjB,oHAAA,iBAAiB,OAAA;AACjB,oHAAA,iBAAiB,OAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { BalanceTypeCode } from './balance-type-code.enum';
|
|
3
|
+
export declare const WalletEventBreakdownItemSchema: z.ZodObject<{
|
|
4
|
+
balanceTypeCode: z.ZodEnum<typeof BalanceTypeCode>;
|
|
5
|
+
amount: z.ZodNumber;
|
|
6
|
+
balanceAfter: z.ZodNumber;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type WalletEventBreakdownItem = z.infer<typeof WalletEventBreakdownItemSchema>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WalletEventBreakdownItemSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const balance_type_code_enum_1 = require("./balance-type-code.enum");
|
|
6
|
+
exports.WalletEventBreakdownItemSchema = zod_1.z.object({
|
|
7
|
+
balanceTypeCode: zod_1.z.enum(balance_type_code_enum_1.BalanceTypeCode),
|
|
8
|
+
amount: zod_1.z.number().int(),
|
|
9
|
+
balanceAfter: zod_1.z.number().int().nonnegative(),
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=wallet-event-breakdown.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-event-breakdown.schema.js","sourceRoot":"","sources":["../../../../v1/wallet/schemas/wallet-event-breakdown.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qEAA2D;AAmB9C,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,eAAe,EAAE,OAAC,CAAC,IAAI,CAAC,wCAAe,CAAC;IACxC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACxB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CAC/C,CAAC,CAAC"}
|
|
@@ -6,8 +6,12 @@ export declare const WalletEventItemSchema: z.ZodObject<{
|
|
|
6
6
|
direction: z.ZodEnum<typeof WalletEventDirection>;
|
|
7
7
|
kind: z.ZodEnum<typeof WalletEventKind>;
|
|
8
8
|
amount: z.ZodNumber;
|
|
9
|
-
balanceAfter: z.ZodNumber;
|
|
10
9
|
eventAt: z.ZodString;
|
|
10
|
+
breakdown: z.ZodArray<z.ZodObject<{
|
|
11
|
+
balanceTypeCode: z.ZodEnum<typeof import("./balance-type-code.enum").BalanceTypeCode>;
|
|
12
|
+
amount: z.ZodNumber;
|
|
13
|
+
balanceAfter: z.ZodNumber;
|
|
14
|
+
}, z.core.$strip>>;
|
|
11
15
|
}, z.core.$strip>;
|
|
12
16
|
export type WalletEventItem = z.infer<typeof WalletEventItemSchema>;
|
|
13
17
|
export declare const WalletEventsListResponseSchema: z.ZodObject<{
|
|
@@ -16,8 +20,12 @@ export declare const WalletEventsListResponseSchema: z.ZodObject<{
|
|
|
16
20
|
direction: z.ZodEnum<typeof WalletEventDirection>;
|
|
17
21
|
kind: z.ZodEnum<typeof WalletEventKind>;
|
|
18
22
|
amount: z.ZodNumber;
|
|
19
|
-
balanceAfter: z.ZodNumber;
|
|
20
23
|
eventAt: z.ZodString;
|
|
24
|
+
breakdown: z.ZodArray<z.ZodObject<{
|
|
25
|
+
balanceTypeCode: z.ZodEnum<typeof import("./balance-type-code.enum").BalanceTypeCode>;
|
|
26
|
+
amount: z.ZodNumber;
|
|
27
|
+
balanceAfter: z.ZodNumber;
|
|
28
|
+
}, z.core.$strip>>;
|
|
21
29
|
}, z.core.$strip>>;
|
|
22
30
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
23
31
|
hasMore: z.ZodBoolean;
|
|
@@ -4,13 +4,14 @@ exports.WalletEventsListRequestSchema = exports.WalletEventsListResponseSchema =
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const wallet_event_direction_enum_1 = require("./wallet-event-direction.enum");
|
|
6
6
|
const wallet_event_kind_enum_1 = require("./wallet-event-kind.enum");
|
|
7
|
+
const wallet_event_breakdown_schema_1 = require("./wallet-event-breakdown.schema");
|
|
7
8
|
exports.WalletEventItemSchema = zod_1.z.object({
|
|
8
9
|
eventId: zod_1.z.string(),
|
|
9
10
|
direction: zod_1.z.enum(wallet_event_direction_enum_1.WalletEventDirection),
|
|
10
11
|
kind: zod_1.z.enum(wallet_event_kind_enum_1.WalletEventKind),
|
|
11
12
|
amount: zod_1.z.number().int().nonnegative(),
|
|
12
|
-
balanceAfter: zod_1.z.number().int().nonnegative(),
|
|
13
13
|
eventAt: zod_1.z.string().datetime(),
|
|
14
|
+
breakdown: zod_1.z.array(wallet_event_breakdown_schema_1.WalletEventBreakdownItemSchema).min(1),
|
|
14
15
|
});
|
|
15
16
|
exports.WalletEventsListResponseSchema = zod_1.z.object({
|
|
16
17
|
items: zod_1.z.array(exports.WalletEventItemSchema),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet-event.schema.js","sourceRoot":"","sources":["../../../../v1/wallet/schemas/wallet-event.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,+EAAqE;AACrE,qEAA2D;
|
|
1
|
+
{"version":3,"file":"wallet-event.schema.js","sourceRoot":"","sources":["../../../../v1/wallet/schemas/wallet-event.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,+EAAqE;AACrE,qEAA2D;AAC3D,mFAAiF;AAwBpE,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,SAAS,EAAE,OAAC,CAAC,IAAI,CAAC,kDAAoB,CAAC;IACvC,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,wCAAe,CAAC;IAC7B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACtC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,8DAA8B,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;CAC5D,CAAC,CAAC;AAOU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,6BAAqB,CAAC;IACrC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;CACvB,CAAC,CAAC;AAWU,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,MAAM,EAAE,OAAC;SACJ,MAAM,CAAC,EAAE,KAAK,EAAE,wCAAwC,EAAE,CAAC;SAC3D,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,oCAAoC,EAAE,CAAC;SAC3D,QAAQ,EAAE;IACf,KAAK,EAAE,OAAC;SACH,MAAM,CAAC,EAAE,KAAK,EAAE,uCAAuC,EAAE,CAAC;SAC1D,GAAG,CAAC,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;SACrD,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;SACxD,GAAG,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;SACzD,OAAO,CAAC,EAAE,CAAC;IAChB,SAAS,EAAE,OAAC,CAAC,IAAI,CAAC,kDAAoB,CAAC,CAAC,QAAQ,EAAE;CACrD,CAAC,CAAC"}
|