@ai-grator/api 0.0.3 → 0.0.4
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/_common/types/index.ts +1 -0
- package/_common/types/offset-pagination.type.ts +9 -0
- package/admin/endpoints/admin.ts +6 -0
- package/admin/endpoints/queries/get-admin-user-transactions.query.ts +50 -0
- package/admin/endpoints/queries/get-admin-user.query.ts +29 -0
- package/admin/endpoints/queries/get-admin-users.query.ts +40 -0
- package/admin/endpoints/queries/index.ts +3 -0
- package/admin/models/admin-user-details-response.schema.ts +16 -0
- package/admin/models/admin-user-list-item.schema.ts +15 -0
- package/admin/models/index.ts +2 -0
- package/build/_common/types/index.d.ts +1 -0
- package/build/_common/types/index.d.ts.map +1 -1
- package/build/_common/types/index.js +1 -0
- package/build/_common/types/offset-pagination.type.d.ts +7 -0
- package/build/_common/types/offset-pagination.type.d.ts.map +1 -0
- package/build/_common/types/offset-pagination.type.js +10 -0
- package/build/admin/endpoints/admin.d.ts +3 -0
- package/build/admin/endpoints/admin.d.ts.map +1 -1
- package/build/admin/endpoints/admin.js +5 -0
- package/build/admin/endpoints/queries/get-admin-user-transactions.query.d.ts +78 -0
- package/build/admin/endpoints/queries/get-admin-user-transactions.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-user-transactions.query.js +45 -0
- package/build/admin/endpoints/queries/get-admin-user.query.d.ts +46 -0
- package/build/admin/endpoints/queries/get-admin-user.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-user.query.js +26 -0
- package/build/admin/endpoints/queries/get-admin-users.query.d.ts +72 -0
- package/build/admin/endpoints/queries/get-admin-users.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-users.query.js +36 -0
- package/build/admin/endpoints/queries/index.d.ts +3 -0
- package/build/admin/endpoints/queries/index.d.ts.map +1 -1
- package/build/admin/endpoints/queries/index.js +3 -0
- package/build/admin/models/admin-user-details-response.schema.d.ts +15 -0
- package/build/admin/models/admin-user-details-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-user-details-response.schema.js +16 -0
- package/build/admin/models/admin-user-list-item.schema.d.ts +14 -0
- package/build/admin/models/admin-user-list-item.schema.d.ts.map +1 -0
- package/build/admin/models/admin-user-list-item.schema.js +15 -0
- package/build/admin/models/index.d.ts +2 -0
- package/build/admin/models/index.d.ts.map +1 -1
- package/build/admin/models/index.js +2 -0
- package/build/generation-job/endpoints/commands/create-generation-job.command.d.ts +4 -0
- package/build/generation-job/endpoints/commands/create-generation-job.command.d.ts.map +1 -1
- package/build/generation-job/endpoints/commands/create-generation-job.command.js +2 -0
- package/build/scripts/generate-openapi.js +91 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/generation-job/endpoints/commands/create-generation-job.command.ts +2 -0
- package/package.json +13 -13
- package/scripts/generate-openapi.ts +152 -0
package/_common/types/index.ts
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export const OFFSET_PAGINATION_DEFAULT_LIMIT = 20;
|
|
4
|
+
|
|
5
|
+
export const defineOffsetPaginationQuery = () =>
|
|
6
|
+
z.object({
|
|
7
|
+
page: z.coerce.number().int().min(1).default(1).optional(),
|
|
8
|
+
limit: z.coerce.number().int().min(1).max(100).default(OFFSET_PAGINATION_DEFAULT_LIMIT).optional(),
|
|
9
|
+
});
|
package/admin/endpoints/admin.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export const ADMIN_CONTROLLER = 'admin' as const;
|
|
2
2
|
|
|
3
3
|
export const ADMIN_ROUTES = {
|
|
4
|
+
// PARTNERS | REFERRALS
|
|
4
5
|
GET_PARTNERS: 'partners',
|
|
5
6
|
GET_PARTNER: (partnerId: string) => `partners/${partnerId}`,
|
|
6
7
|
GET_PARTNER_REFERRALS: (partnerId: string) => `partners/${partnerId}/referrals`,
|
|
@@ -10,5 +11,10 @@ export const ADMIN_ROUTES = {
|
|
|
10
11
|
GET_PARTNER_BONUS_OPERATIONS: (partnerId: string) => `partners/${partnerId}/bonus-operations`,
|
|
11
12
|
CREATE_PARTNER_BONUS_OPERATION: (partnerId: string) => `partners/${partnerId}/bonus-operations`,
|
|
12
13
|
REFERRAL_CONFIG: 'referral-config',
|
|
14
|
+
|
|
15
|
+
// USERS
|
|
16
|
+
GET_USERS: 'users',
|
|
17
|
+
GET_USER: (userId: string) => `users/${userId}`,
|
|
18
|
+
GET_USER_TRANSACTIONS: (userId: string) => `users/${userId}/transactions`,
|
|
13
19
|
BAN_USER: (userId: string) => `users/${userId}/ban`,
|
|
14
20
|
} as const;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineContract, defineCursorPaginationQuery, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
3
|
+
import { ADMIN_ROUTES } from '../admin';
|
|
4
|
+
|
|
5
|
+
export const AdminUserTransactionSchema = z.object({
|
|
6
|
+
uuid: z.uuid(),
|
|
7
|
+
type: z.string(),
|
|
8
|
+
cashAmount: z.number(),
|
|
9
|
+
bonusAmount: z.number(),
|
|
10
|
+
cashBalanceBefore: z.number(),
|
|
11
|
+
cashBalanceAfter: z.number(),
|
|
12
|
+
bonusBalanceBefore: z.number(),
|
|
13
|
+
bonusBalanceAfter: z.number(),
|
|
14
|
+
sourceModel: z.string().nullable(),
|
|
15
|
+
createdAt: z.iso.datetime(),
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export const GetAdminUserTransactionsQueryQuery = defineCursorPaginationQuery(z.uuid()).extend({
|
|
19
|
+
type: z.string().optional(),
|
|
20
|
+
status: z.string().optional(),
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export const GetAdminUserTransactionsQueryResponse = z.object({
|
|
24
|
+
transactions: z.array(AdminUserTransactionSchema),
|
|
25
|
+
nextCursor: z.uuid().nullable(),
|
|
26
|
+
hasMore: z.boolean(),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export const GetAdminUserTransactionsQuery = defineContract({
|
|
30
|
+
method: HTTP_METHODS.GET,
|
|
31
|
+
path: ADMIN_ROUTES.GET_USER_TRANSACTIONS(':userId'),
|
|
32
|
+
summary: 'Get user wallet transactions',
|
|
33
|
+
request: {
|
|
34
|
+
params: z.object({
|
|
35
|
+
userId: z.uuid(),
|
|
36
|
+
}),
|
|
37
|
+
query: GetAdminUserTransactionsQueryQuery,
|
|
38
|
+
},
|
|
39
|
+
responses: {
|
|
40
|
+
200: GetAdminUserTransactionsQueryResponse,
|
|
41
|
+
401: HttpErrorResponseSchema,
|
|
42
|
+
403: HttpErrorResponseSchema,
|
|
43
|
+
404: HttpErrorResponseSchema,
|
|
44
|
+
500: HttpErrorResponseSchema,
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export type AdminUserTransactionSchemaType = z.infer<typeof AdminUserTransactionSchema>;
|
|
49
|
+
export type GetAdminUserTransactionsQueryQueryType = z.infer<typeof GetAdminUserTransactionsQueryQuery>;
|
|
50
|
+
export type GetAdminUserTransactionsQueryResponseType = z.infer<typeof GetAdminUserTransactionsQueryResponse>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineContract, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
3
|
+
import { AdminUserDetailsResponseSchema } from '../../models';
|
|
4
|
+
import { ADMIN_ROUTES } from '../admin';
|
|
5
|
+
|
|
6
|
+
export const GetAdminUserQueryParams = z.object({
|
|
7
|
+
userId: z.uuid(),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export const GetAdminUserQueryResponse = AdminUserDetailsResponseSchema;
|
|
11
|
+
|
|
12
|
+
export const GetAdminUserQuery = defineContract({
|
|
13
|
+
method: HTTP_METHODS.GET,
|
|
14
|
+
path: ADMIN_ROUTES.GET_USER(':userId'),
|
|
15
|
+
summary: 'Get user details',
|
|
16
|
+
request: {
|
|
17
|
+
params: GetAdminUserQueryParams,
|
|
18
|
+
},
|
|
19
|
+
responses: {
|
|
20
|
+
200: GetAdminUserQueryResponse,
|
|
21
|
+
401: HttpErrorResponseSchema,
|
|
22
|
+
403: HttpErrorResponseSchema,
|
|
23
|
+
404: HttpErrorResponseSchema,
|
|
24
|
+
500: HttpErrorResponseSchema,
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export type GetAdminUserQueryParamsType = z.infer<typeof GetAdminUserQueryParams>;
|
|
29
|
+
export type GetAdminUserQueryResponseType = z.infer<typeof GetAdminUserQueryResponse>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineContract, defineOffsetPaginationQuery, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
3
|
+
import { USER_STATUS } from '../../../users';
|
|
4
|
+
import { AdminUserListItemSchema } from '../../models';
|
|
5
|
+
import { ADMIN_ROUTES } from '../admin';
|
|
6
|
+
|
|
7
|
+
const SORT_ORDER = z.enum(['asc', 'desc']);
|
|
8
|
+
|
|
9
|
+
export const GetAdminUsersQueryQuery = defineOffsetPaginationQuery().extend({
|
|
10
|
+
search: z.string().trim().max(255).optional(),
|
|
11
|
+
status: z.enum(USER_STATUS).optional(),
|
|
12
|
+
createdAtFrom: z.coerce.date().optional(),
|
|
13
|
+
createdAtTo: z.coerce.date().optional(),
|
|
14
|
+
sortOrder: SORT_ORDER.default('desc'),
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
export const GetAdminUsersQueryResponse = z.object({
|
|
18
|
+
users: z.array(AdminUserListItemSchema),
|
|
19
|
+
total: z.number().int().nonnegative(),
|
|
20
|
+
page: z.number().int().positive(),
|
|
21
|
+
limit: z.number().int().positive(),
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export const GetAdminUsersQuery = defineContract({
|
|
25
|
+
method: HTTP_METHODS.GET,
|
|
26
|
+
path: ADMIN_ROUTES.GET_USERS,
|
|
27
|
+
summary: 'Get users list with pagination and filters',
|
|
28
|
+
request: {
|
|
29
|
+
query: GetAdminUsersQueryQuery,
|
|
30
|
+
},
|
|
31
|
+
responses: {
|
|
32
|
+
200: GetAdminUsersQueryResponse,
|
|
33
|
+
401: HttpErrorResponseSchema,
|
|
34
|
+
403: HttpErrorResponseSchema,
|
|
35
|
+
500: HttpErrorResponseSchema,
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export type GetAdminUsersQueryQueryType = z.infer<typeof GetAdminUsersQueryQuery>;
|
|
40
|
+
export type GetAdminUsersQueryResponseType = z.infer<typeof GetAdminUsersQueryResponse>;
|
|
@@ -5,3 +5,6 @@ export * from './get-admin-partner-l2-bonuses.query';
|
|
|
5
5
|
export * from './get-admin-partner-referral-config.query';
|
|
6
6
|
export * from './get-admin-partner-referrals.query';
|
|
7
7
|
export * from './get-admin-partners.query';
|
|
8
|
+
export * from './get-admin-users.query';
|
|
9
|
+
export * from './get-admin-user.query';
|
|
10
|
+
export * from './get-admin-user-transactions.query';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { USER_STATUS } from '../../users';
|
|
3
|
+
|
|
4
|
+
export const AdminUserDetailsResponseSchema = z.object({
|
|
5
|
+
uuid: z.uuid(),
|
|
6
|
+
email: z.email(),
|
|
7
|
+
name: z.string().nullable(),
|
|
8
|
+
status: z.enum(USER_STATUS),
|
|
9
|
+
tokenBalance: z.number(),
|
|
10
|
+
cashBalance: z.number(),
|
|
11
|
+
bonusBalance: z.number(),
|
|
12
|
+
createdAt: z.iso.datetime(),
|
|
13
|
+
lastLoginAt: z.iso.datetime().nullable(),
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export type AdminUserDetailsResponseSchemaType = z.infer<typeof AdminUserDetailsResponseSchema>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { USER_STATUS } from '../../users';
|
|
3
|
+
|
|
4
|
+
export const AdminUserListItemSchema = z.object({
|
|
5
|
+
uuid: z.uuid(),
|
|
6
|
+
email: z.email(),
|
|
7
|
+
name: z.string().nullable(),
|
|
8
|
+
status: z.enum(USER_STATUS),
|
|
9
|
+
tokenBalance: z.number(),
|
|
10
|
+
cashBalance: z.number(),
|
|
11
|
+
createdAt: z.iso.datetime(),
|
|
12
|
+
lastLoginAt: z.iso.datetime().nullable(),
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export type AdminUserListItemSchemaType = z.infer<typeof AdminUserListItemSchema>;
|
package/admin/models/index.ts
CHANGED
|
@@ -7,3 +7,5 @@ export * from './admin-partner-referral-config-response.schema';
|
|
|
7
7
|
export * from './admin-partner-referral-response.schema';
|
|
8
8
|
export * from './admin-partner-response.schema';
|
|
9
9
|
export * from './admin-user-response.schema';
|
|
10
|
+
export * from './admin-user-list-item.schema';
|
|
11
|
+
export * from './admin-user-details-response.schema';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../_common/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../_common/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,aAAa,CAAC"}
|
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./cursor-pagination.type"), exports);
|
|
18
|
+
__exportStar(require("./offset-pagination.type"), exports);
|
|
18
19
|
__exportStar(require("./icon.type"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const OFFSET_PAGINATION_DEFAULT_LIMIT = 20;
|
|
3
|
+
export declare const defineOffsetPaginationQuery: () => z.ZodObject<{
|
|
4
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
5
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
//# sourceMappingURL=offset-pagination.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offset-pagination.type.d.ts","sourceRoot":"","sources":["../../../_common/types/offset-pagination.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,+BAA+B,KAAK,CAAC;AAElD,eAAO,MAAM,2BAA2B;;;iBAIlC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defineOffsetPaginationQuery = exports.OFFSET_PAGINATION_DEFAULT_LIMIT = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.OFFSET_PAGINATION_DEFAULT_LIMIT = 20;
|
|
6
|
+
const defineOffsetPaginationQuery = () => zod_1.z.object({
|
|
7
|
+
page: zod_1.z.coerce.number().int().min(1).default(1).optional(),
|
|
8
|
+
limit: zod_1.z.coerce.number().int().min(1).max(100).default(exports.OFFSET_PAGINATION_DEFAULT_LIMIT).optional(),
|
|
9
|
+
});
|
|
10
|
+
exports.defineOffsetPaginationQuery = defineOffsetPaginationQuery;
|
|
@@ -9,6 +9,9 @@ export declare const ADMIN_ROUTES: {
|
|
|
9
9
|
readonly GET_PARTNER_BONUS_OPERATIONS: (partnerId: string) => string;
|
|
10
10
|
readonly CREATE_PARTNER_BONUS_OPERATION: (partnerId: string) => string;
|
|
11
11
|
readonly REFERRAL_CONFIG: "referral-config";
|
|
12
|
+
readonly GET_USERS: "users";
|
|
13
|
+
readonly GET_USER: (userId: string) => string;
|
|
14
|
+
readonly GET_USER_TRANSACTIONS: (userId: string) => string;
|
|
12
15
|
readonly BAN_USER: (userId: string) => string;
|
|
13
16
|
};
|
|
14
17
|
//# sourceMappingURL=admin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../admin/endpoints/admin.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,YAAY;;
|
|
1
|
+
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../admin/endpoints/admin.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,YAAY;;sCAGI,MAAM;gDACI,MAAM;iDACL,MAAM;sDACD,MAAM;yDACH,MAAM;uDACR,MAAM;yDACJ,MAAM;;;gCAK/B,MAAM;6CACO,MAAM;gCACnB,MAAM;CACnB,CAAC"}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ADMIN_ROUTES = exports.ADMIN_CONTROLLER = void 0;
|
|
4
4
|
exports.ADMIN_CONTROLLER = 'admin';
|
|
5
5
|
exports.ADMIN_ROUTES = {
|
|
6
|
+
// PARTNERS | REFERRALS
|
|
6
7
|
GET_PARTNERS: 'partners',
|
|
7
8
|
GET_PARTNER: (partnerId) => `partners/${partnerId}`,
|
|
8
9
|
GET_PARTNER_REFERRALS: (partnerId) => `partners/${partnerId}/referrals`,
|
|
@@ -12,5 +13,9 @@ exports.ADMIN_ROUTES = {
|
|
|
12
13
|
GET_PARTNER_BONUS_OPERATIONS: (partnerId) => `partners/${partnerId}/bonus-operations`,
|
|
13
14
|
CREATE_PARTNER_BONUS_OPERATION: (partnerId) => `partners/${partnerId}/bonus-operations`,
|
|
14
15
|
REFERRAL_CONFIG: 'referral-config',
|
|
16
|
+
// USERS
|
|
17
|
+
GET_USERS: 'users',
|
|
18
|
+
GET_USER: (userId) => `users/${userId}`,
|
|
19
|
+
GET_USER_TRANSACTIONS: (userId) => `users/${userId}/transactions`,
|
|
15
20
|
BAN_USER: (userId) => `users/${userId}/ban`,
|
|
16
21
|
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const AdminUserTransactionSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodUUID;
|
|
5
|
+
type: z.ZodString;
|
|
6
|
+
cashAmount: z.ZodNumber;
|
|
7
|
+
bonusAmount: z.ZodNumber;
|
|
8
|
+
cashBalanceBefore: z.ZodNumber;
|
|
9
|
+
cashBalanceAfter: z.ZodNumber;
|
|
10
|
+
bonusBalanceBefore: z.ZodNumber;
|
|
11
|
+
bonusBalanceAfter: z.ZodNumber;
|
|
12
|
+
sourceModel: z.ZodNullable<z.ZodString>;
|
|
13
|
+
createdAt: z.ZodISODateTime;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export declare const GetAdminUserTransactionsQueryQuery: z.ZodObject<{
|
|
16
|
+
cursor: z.ZodOptional<z.ZodUUID>;
|
|
17
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
18
|
+
type: z.ZodOptional<z.ZodString>;
|
|
19
|
+
status: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export declare const GetAdminUserTransactionsQueryResponse: z.ZodObject<{
|
|
22
|
+
transactions: z.ZodArray<z.ZodObject<{
|
|
23
|
+
uuid: z.ZodUUID;
|
|
24
|
+
type: z.ZodString;
|
|
25
|
+
cashAmount: z.ZodNumber;
|
|
26
|
+
bonusAmount: z.ZodNumber;
|
|
27
|
+
cashBalanceBefore: z.ZodNumber;
|
|
28
|
+
cashBalanceAfter: z.ZodNumber;
|
|
29
|
+
bonusBalanceBefore: z.ZodNumber;
|
|
30
|
+
bonusBalanceAfter: z.ZodNumber;
|
|
31
|
+
sourceModel: z.ZodNullable<z.ZodString>;
|
|
32
|
+
createdAt: z.ZodISODateTime;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
nextCursor: z.ZodNullable<z.ZodUUID>;
|
|
35
|
+
hasMore: z.ZodBoolean;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export declare const GetAdminUserTransactionsQuery: {
|
|
38
|
+
method: HTTP_METHODS.GET;
|
|
39
|
+
path: string;
|
|
40
|
+
summary: string;
|
|
41
|
+
request: {
|
|
42
|
+
params: z.ZodObject<{
|
|
43
|
+
userId: z.ZodUUID;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
query: z.ZodObject<{
|
|
46
|
+
cursor: z.ZodOptional<z.ZodUUID>;
|
|
47
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
48
|
+
type: z.ZodOptional<z.ZodString>;
|
|
49
|
+
status: z.ZodOptional<z.ZodString>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
};
|
|
52
|
+
responses: {
|
|
53
|
+
200: z.ZodObject<{
|
|
54
|
+
transactions: z.ZodArray<z.ZodObject<{
|
|
55
|
+
uuid: z.ZodUUID;
|
|
56
|
+
type: z.ZodString;
|
|
57
|
+
cashAmount: z.ZodNumber;
|
|
58
|
+
bonusAmount: z.ZodNumber;
|
|
59
|
+
cashBalanceBefore: z.ZodNumber;
|
|
60
|
+
cashBalanceAfter: z.ZodNumber;
|
|
61
|
+
bonusBalanceBefore: z.ZodNumber;
|
|
62
|
+
bonusBalanceAfter: z.ZodNumber;
|
|
63
|
+
sourceModel: z.ZodNullable<z.ZodString>;
|
|
64
|
+
createdAt: z.ZodISODateTime;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
nextCursor: z.ZodNullable<z.ZodUUID>;
|
|
67
|
+
hasMore: z.ZodBoolean;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
70
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
71
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
72
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
export type AdminUserTransactionSchemaType = z.infer<typeof AdminUserTransactionSchema>;
|
|
76
|
+
export type GetAdminUserTransactionsQueryQueryType = z.infer<typeof GetAdminUserTransactionsQueryQuery>;
|
|
77
|
+
export type GetAdminUserTransactionsQueryResponseType = z.infer<typeof GetAdminUserTransactionsQueryResponse>;
|
|
78
|
+
//# sourceMappingURL=get-admin-user-transactions.query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-admin-user-transactions.query.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/get-admin-user-transactions.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAA+C,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAGtH,eAAO,MAAM,0BAA0B;;;;;;;;;;;iBAWrC,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;iBAG7C,CAAC;AAEH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;iBAIhD,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBxC,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACxF,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AACxG,MAAM,MAAM,yCAAyC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAdminUserTransactionsQuery = exports.GetAdminUserTransactionsQueryResponse = exports.GetAdminUserTransactionsQueryQuery = exports.AdminUserTransactionSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const admin_1 = require("../admin");
|
|
7
|
+
exports.AdminUserTransactionSchema = zod_1.z.object({
|
|
8
|
+
uuid: zod_1.z.uuid(),
|
|
9
|
+
type: zod_1.z.string(),
|
|
10
|
+
cashAmount: zod_1.z.number(),
|
|
11
|
+
bonusAmount: zod_1.z.number(),
|
|
12
|
+
cashBalanceBefore: zod_1.z.number(),
|
|
13
|
+
cashBalanceAfter: zod_1.z.number(),
|
|
14
|
+
bonusBalanceBefore: zod_1.z.number(),
|
|
15
|
+
bonusBalanceAfter: zod_1.z.number(),
|
|
16
|
+
sourceModel: zod_1.z.string().nullable(),
|
|
17
|
+
createdAt: zod_1.z.iso.datetime(),
|
|
18
|
+
});
|
|
19
|
+
exports.GetAdminUserTransactionsQueryQuery = (0, _common_1.defineCursorPaginationQuery)(zod_1.z.uuid()).extend({
|
|
20
|
+
type: zod_1.z.string().optional(),
|
|
21
|
+
status: zod_1.z.string().optional(),
|
|
22
|
+
});
|
|
23
|
+
exports.GetAdminUserTransactionsQueryResponse = zod_1.z.object({
|
|
24
|
+
transactions: zod_1.z.array(exports.AdminUserTransactionSchema),
|
|
25
|
+
nextCursor: zod_1.z.uuid().nullable(),
|
|
26
|
+
hasMore: zod_1.z.boolean(),
|
|
27
|
+
});
|
|
28
|
+
exports.GetAdminUserTransactionsQuery = (0, _common_1.defineContract)({
|
|
29
|
+
method: _common_1.HTTP_METHODS.GET,
|
|
30
|
+
path: admin_1.ADMIN_ROUTES.GET_USER_TRANSACTIONS(':userId'),
|
|
31
|
+
summary: 'Get user wallet transactions',
|
|
32
|
+
request: {
|
|
33
|
+
params: zod_1.z.object({
|
|
34
|
+
userId: zod_1.z.uuid(),
|
|
35
|
+
}),
|
|
36
|
+
query: exports.GetAdminUserTransactionsQueryQuery,
|
|
37
|
+
},
|
|
38
|
+
responses: {
|
|
39
|
+
200: exports.GetAdminUserTransactionsQueryResponse,
|
|
40
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
41
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
42
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
43
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
44
|
+
},
|
|
45
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const GetAdminUserQueryParams: z.ZodObject<{
|
|
4
|
+
userId: z.ZodUUID;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const GetAdminUserQueryResponse: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodUUID;
|
|
8
|
+
email: z.ZodEmail;
|
|
9
|
+
name: z.ZodNullable<z.ZodString>;
|
|
10
|
+
status: z.ZodEnum<typeof import("../../..").USER_STATUS>;
|
|
11
|
+
tokenBalance: z.ZodNumber;
|
|
12
|
+
cashBalance: z.ZodNumber;
|
|
13
|
+
bonusBalance: z.ZodNumber;
|
|
14
|
+
createdAt: z.ZodISODateTime;
|
|
15
|
+
lastLoginAt: z.ZodNullable<z.ZodISODateTime>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export declare const GetAdminUserQuery: {
|
|
18
|
+
method: HTTP_METHODS.GET;
|
|
19
|
+
path: string;
|
|
20
|
+
summary: string;
|
|
21
|
+
request: {
|
|
22
|
+
params: z.ZodObject<{
|
|
23
|
+
userId: z.ZodUUID;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
};
|
|
26
|
+
responses: {
|
|
27
|
+
200: z.ZodObject<{
|
|
28
|
+
uuid: z.ZodUUID;
|
|
29
|
+
email: z.ZodEmail;
|
|
30
|
+
name: z.ZodNullable<z.ZodString>;
|
|
31
|
+
status: z.ZodEnum<typeof import("../../..").USER_STATUS>;
|
|
32
|
+
tokenBalance: z.ZodNumber;
|
|
33
|
+
cashBalance: z.ZodNumber;
|
|
34
|
+
bonusBalance: z.ZodNumber;
|
|
35
|
+
createdAt: z.ZodISODateTime;
|
|
36
|
+
lastLoginAt: z.ZodNullable<z.ZodISODateTime>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
39
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
40
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
41
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export type GetAdminUserQueryParamsType = z.infer<typeof GetAdminUserQueryParams>;
|
|
45
|
+
export type GetAdminUserQueryResponseType = z.infer<typeof GetAdminUserQueryResponse>;
|
|
46
|
+
//# sourceMappingURL=get-admin-user.query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-admin-user.query.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/get-admin-user.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;iBAAiC,CAAC;AAExE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;CAc5B,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAClF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAdminUserQuery = exports.GetAdminUserQueryResponse = exports.GetAdminUserQueryParams = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const models_1 = require("../../models");
|
|
7
|
+
const admin_1 = require("../admin");
|
|
8
|
+
exports.GetAdminUserQueryParams = zod_1.z.object({
|
|
9
|
+
userId: zod_1.z.uuid(),
|
|
10
|
+
});
|
|
11
|
+
exports.GetAdminUserQueryResponse = models_1.AdminUserDetailsResponseSchema;
|
|
12
|
+
exports.GetAdminUserQuery = (0, _common_1.defineContract)({
|
|
13
|
+
method: _common_1.HTTP_METHODS.GET,
|
|
14
|
+
path: admin_1.ADMIN_ROUTES.GET_USER(':userId'),
|
|
15
|
+
summary: 'Get user details',
|
|
16
|
+
request: {
|
|
17
|
+
params: exports.GetAdminUserQueryParams,
|
|
18
|
+
},
|
|
19
|
+
responses: {
|
|
20
|
+
200: exports.GetAdminUserQueryResponse,
|
|
21
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
22
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
23
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
24
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
25
|
+
},
|
|
26
|
+
});
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
import { USER_STATUS } from '../../../users';
|
|
4
|
+
export declare const GetAdminUsersQueryQuery: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
6
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
7
|
+
search: z.ZodOptional<z.ZodString>;
|
|
8
|
+
status: z.ZodOptional<z.ZodEnum<typeof USER_STATUS>>;
|
|
9
|
+
createdAtFrom: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
10
|
+
createdAtTo: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
11
|
+
sortOrder: z.ZodDefault<z.ZodEnum<{
|
|
12
|
+
asc: "asc";
|
|
13
|
+
desc: "desc";
|
|
14
|
+
}>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export declare const GetAdminUsersQueryResponse: z.ZodObject<{
|
|
17
|
+
users: z.ZodArray<z.ZodObject<{
|
|
18
|
+
uuid: z.ZodUUID;
|
|
19
|
+
email: z.ZodEmail;
|
|
20
|
+
name: z.ZodNullable<z.ZodString>;
|
|
21
|
+
status: z.ZodEnum<typeof USER_STATUS>;
|
|
22
|
+
tokenBalance: z.ZodNumber;
|
|
23
|
+
cashBalance: z.ZodNumber;
|
|
24
|
+
createdAt: z.ZodISODateTime;
|
|
25
|
+
lastLoginAt: z.ZodNullable<z.ZodISODateTime>;
|
|
26
|
+
}, z.core.$strip>>;
|
|
27
|
+
total: z.ZodNumber;
|
|
28
|
+
page: z.ZodNumber;
|
|
29
|
+
limit: z.ZodNumber;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export declare const GetAdminUsersQuery: {
|
|
32
|
+
method: HTTP_METHODS.GET;
|
|
33
|
+
path: "users";
|
|
34
|
+
summary: string;
|
|
35
|
+
request: {
|
|
36
|
+
query: z.ZodObject<{
|
|
37
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
38
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
39
|
+
search: z.ZodOptional<z.ZodString>;
|
|
40
|
+
status: z.ZodOptional<z.ZodEnum<typeof USER_STATUS>>;
|
|
41
|
+
createdAtFrom: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
42
|
+
createdAtTo: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
43
|
+
sortOrder: z.ZodDefault<z.ZodEnum<{
|
|
44
|
+
asc: "asc";
|
|
45
|
+
desc: "desc";
|
|
46
|
+
}>>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
};
|
|
49
|
+
responses: {
|
|
50
|
+
200: z.ZodObject<{
|
|
51
|
+
users: z.ZodArray<z.ZodObject<{
|
|
52
|
+
uuid: z.ZodUUID;
|
|
53
|
+
email: z.ZodEmail;
|
|
54
|
+
name: z.ZodNullable<z.ZodString>;
|
|
55
|
+
status: z.ZodEnum<typeof USER_STATUS>;
|
|
56
|
+
tokenBalance: z.ZodNumber;
|
|
57
|
+
cashBalance: z.ZodNumber;
|
|
58
|
+
createdAt: z.ZodISODateTime;
|
|
59
|
+
lastLoginAt: z.ZodNullable<z.ZodISODateTime>;
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
total: z.ZodNumber;
|
|
62
|
+
page: z.ZodNumber;
|
|
63
|
+
limit: z.ZodNumber;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
66
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
67
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
export type GetAdminUsersQueryQueryType = z.infer<typeof GetAdminUsersQueryQuery>;
|
|
71
|
+
export type GetAdminUsersQueryResponseType = z.infer<typeof GetAdminUsersQueryResponse>;
|
|
72
|
+
//# sourceMappingURL=get-admin-users.query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-admin-users.query.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/get-admin-users.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAA+C,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AACtH,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAM7C,eAAO,MAAM,uBAAuB;;;;;;;;;;;iBAMlC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;iBAKrC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAa7B,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAClF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAdminUsersQuery = exports.GetAdminUsersQueryResponse = exports.GetAdminUsersQueryQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const users_1 = require("../../../users");
|
|
7
|
+
const models_1 = require("../../models");
|
|
8
|
+
const admin_1 = require("../admin");
|
|
9
|
+
const SORT_ORDER = zod_1.z.enum(['asc', 'desc']);
|
|
10
|
+
exports.GetAdminUsersQueryQuery = (0, _common_1.defineOffsetPaginationQuery)().extend({
|
|
11
|
+
search: zod_1.z.string().trim().max(255).optional(),
|
|
12
|
+
status: zod_1.z.enum(users_1.USER_STATUS).optional(),
|
|
13
|
+
createdAtFrom: zod_1.z.coerce.date().optional(),
|
|
14
|
+
createdAtTo: zod_1.z.coerce.date().optional(),
|
|
15
|
+
sortOrder: SORT_ORDER.default('desc'),
|
|
16
|
+
});
|
|
17
|
+
exports.GetAdminUsersQueryResponse = zod_1.z.object({
|
|
18
|
+
users: zod_1.z.array(models_1.AdminUserListItemSchema),
|
|
19
|
+
total: zod_1.z.number().int().nonnegative(),
|
|
20
|
+
page: zod_1.z.number().int().positive(),
|
|
21
|
+
limit: zod_1.z.number().int().positive(),
|
|
22
|
+
});
|
|
23
|
+
exports.GetAdminUsersQuery = (0, _common_1.defineContract)({
|
|
24
|
+
method: _common_1.HTTP_METHODS.GET,
|
|
25
|
+
path: admin_1.ADMIN_ROUTES.GET_USERS,
|
|
26
|
+
summary: 'Get users list with pagination and filters',
|
|
27
|
+
request: {
|
|
28
|
+
query: exports.GetAdminUsersQueryQuery,
|
|
29
|
+
},
|
|
30
|
+
responses: {
|
|
31
|
+
200: exports.GetAdminUsersQueryResponse,
|
|
32
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
33
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
34
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
35
|
+
},
|
|
36
|
+
});
|
|
@@ -5,4 +5,7 @@ export * from './get-admin-partner-l2-bonuses.query';
|
|
|
5
5
|
export * from './get-admin-partner-referral-config.query';
|
|
6
6
|
export * from './get-admin-partner-referrals.query';
|
|
7
7
|
export * from './get-admin-partners.query';
|
|
8
|
+
export * from './get-admin-users.query';
|
|
9
|
+
export * from './get-admin-user.query';
|
|
10
|
+
export * from './get-admin-user-transactions.query';
|
|
8
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qCAAqC,CAAC;AACpD,cAAc,4BAA4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qCAAqC,CAAC;AACpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qCAAqC,CAAC"}
|
|
@@ -21,3 +21,6 @@ __exportStar(require("./get-admin-partner-l2-bonuses.query"), exports);
|
|
|
21
21
|
__exportStar(require("./get-admin-partner-referral-config.query"), exports);
|
|
22
22
|
__exportStar(require("./get-admin-partner-referrals.query"), exports);
|
|
23
23
|
__exportStar(require("./get-admin-partners.query"), exports);
|
|
24
|
+
__exportStar(require("./get-admin-users.query"), exports);
|
|
25
|
+
__exportStar(require("./get-admin-user.query"), exports);
|
|
26
|
+
__exportStar(require("./get-admin-user-transactions.query"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { USER_STATUS } from '../../users';
|
|
3
|
+
export declare const AdminUserDetailsResponseSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodUUID;
|
|
5
|
+
email: z.ZodEmail;
|
|
6
|
+
name: z.ZodNullable<z.ZodString>;
|
|
7
|
+
status: z.ZodEnum<typeof USER_STATUS>;
|
|
8
|
+
tokenBalance: z.ZodNumber;
|
|
9
|
+
cashBalance: z.ZodNumber;
|
|
10
|
+
bonusBalance: z.ZodNumber;
|
|
11
|
+
createdAt: z.ZodISODateTime;
|
|
12
|
+
lastLoginAt: z.ZodNullable<z.ZodISODateTime>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export type AdminUserDetailsResponseSchemaType = z.infer<typeof AdminUserDetailsResponseSchema>;
|
|
15
|
+
//# sourceMappingURL=admin-user-details-response.schema.d.ts.map
|