@ai-grator/api 0.0.2 → 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 +7 -0
- package/admin/endpoints/commands/ban-admin-user.command.ts +30 -0
- package/admin/endpoints/commands/index.ts +1 -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-bonus-operation-response.schema.ts +2 -2
- package/admin/models/admin-partner-bonus-operation-response.schema.ts +1 -1
- package/admin/models/admin-partner-l2-bonus-response.schema.ts +1 -1
- package/admin/models/admin-partner-referral-response.schema.ts +1 -1
- 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/admin-user-response.schema.ts +10 -0
- package/admin/models/index.ts +3 -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 +4 -0
- package/build/admin/endpoints/admin.d.ts.map +1 -1
- package/build/admin/endpoints/admin.js +6 -0
- package/build/admin/endpoints/commands/ban-admin-user.command.d.ts +35 -0
- package/build/admin/endpoints/commands/ban-admin-user.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/ban-admin-user.command.js +27 -0
- package/build/admin/endpoints/commands/create-admin-partner-bonus-operation.command.d.ts +4 -4
- package/build/admin/endpoints/commands/index.d.ts +1 -0
- package/build/admin/endpoints/commands/index.d.ts.map +1 -1
- package/build/admin/endpoints/commands/index.js +1 -0
- package/build/admin/endpoints/queries/get-admin-partner-bonus-operations.query.d.ts +2 -2
- package/build/admin/endpoints/queries/get-admin-partner-l2-bonuses.query.d.ts +2 -2
- package/build/admin/endpoints/queries/get-admin-partner-referrals.query.d.ts +2 -2
- 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-bonus-operation-response.schema.d.ts +2 -2
- package/build/admin/models/admin-bonus-operation-response.schema.js +2 -2
- package/build/admin/models/admin-partner-bonus-operation-response.schema.d.ts +1 -1
- package/build/admin/models/admin-partner-bonus-operation-response.schema.js +1 -1
- package/build/admin/models/admin-partner-l2-bonus-response.schema.d.ts +1 -1
- package/build/admin/models/admin-partner-l2-bonus-response.schema.js +1 -1
- package/build/admin/models/admin-partner-referral-response.schema.d.ts +1 -1
- package/build/admin/models/admin-partner-referral-response.schema.js +1 -1
- 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/admin-user-response.schema.d.ts +9 -0
- package/build/admin/models/admin-user-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-user-response.schema.js +10 -0
- package/build/admin/models/index.d.ts +3 -0
- package/build/admin/models/index.d.ts.map +1 -1
- package/build/admin/models/index.js +3 -0
- package/build/errors/errors.d.ts +10 -0
- package/build/errors/errors.d.ts.map +1 -1
- package/build/errors/errors.js +10 -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/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -0
- package/build/payment/endpoints/commands/create-payment.command.d.ts +6 -6
- package/build/payment/models/payment-response.schema.d.ts +3 -3
- package/build/payment/models/payment-response.schema.js +3 -3
- package/build/referral/models/bonus-history-response.schema.d.ts +2 -2
- package/build/referral/models/bonus-history-response.schema.js +1 -1
- package/build/scripts/generate-openapi.js +91 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/users/endpoints/queries/get-profile.query.d.ts +1 -1
- package/build/users/endpoints/queries/get-profile.query.js +1 -1
- package/build/users/enums/user-status.enum.d.ts +2 -1
- package/build/users/enums/user-status.enum.d.ts.map +1 -1
- package/build/users/enums/user-status.enum.js +1 -0
- package/build/wallet/endpoints/queries/get-wallet-transactions.query.d.ts +2 -2
- package/build/wallet/models/wallet-transaction-response.schema.d.ts +1 -1
- package/build/wallet/models/wallet-transaction-response.schema.js +1 -1
- package/errors/errors.ts +10 -0
- package/generation-job/endpoints/commands/create-generation-job.command.ts +2 -0
- package/index.ts +1 -0
- package/package.json +13 -13
- package/payment/models/payment-response.schema.ts +3 -3
- package/referral/models/bonus-history-response.schema.ts +1 -1
- package/scripts/generate-openapi.ts +152 -0
- package/users/endpoints/queries/get-profile.query.ts +1 -1
- package/users/enums/user-status.enum.ts +1 -0
- package/wallet/models/wallet-transaction-response.schema.ts +1 -1
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,4 +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`,
|
|
19
|
+
BAN_USER: (userId: string) => `users/${userId}/ban`,
|
|
13
20
|
} as const;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineContract, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
3
|
+
import { AdminUserResponseSchema } from '../../models';
|
|
4
|
+
import { ADMIN_ROUTES } from '../admin';
|
|
5
|
+
|
|
6
|
+
export const BanAdminUserCommandParams = z.object({
|
|
7
|
+
userId: z.uuid(),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export const BanAdminUserCommandResponse = AdminUserResponseSchema;
|
|
11
|
+
|
|
12
|
+
export const BanAdminUserCommand = defineContract({
|
|
13
|
+
method: HTTP_METHODS.PATCH,
|
|
14
|
+
path: ADMIN_ROUTES.BAN_USER(':userId'),
|
|
15
|
+
summary: 'Ban a user',
|
|
16
|
+
request: {
|
|
17
|
+
params: BanAdminUserCommandParams,
|
|
18
|
+
},
|
|
19
|
+
responses: {
|
|
20
|
+
200: BanAdminUserCommandResponse,
|
|
21
|
+
400: HttpErrorResponseSchema,
|
|
22
|
+
401: HttpErrorResponseSchema,
|
|
23
|
+
403: HttpErrorResponseSchema,
|
|
24
|
+
404: HttpErrorResponseSchema,
|
|
25
|
+
500: HttpErrorResponseSchema,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export type BanAdminUserCommandParamsType = z.infer<typeof BanAdminUserCommandParams>;
|
|
30
|
+
export type BanAdminUserCommandResponseType = z.infer<typeof BanAdminUserCommandResponse>;
|
|
@@ -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';
|
|
@@ -9,8 +9,8 @@ export const AdminBonusOperationResponseSchema = z.object({
|
|
|
9
9
|
amount: z.number().positive(),
|
|
10
10
|
comment: z.string().min(1),
|
|
11
11
|
walletTransactionUuid: z.uuid(),
|
|
12
|
-
|
|
13
|
-
createdAt: z.
|
|
12
|
+
cashBalanceAfter: z.number(),
|
|
13
|
+
createdAt: z.iso.datetime(),
|
|
14
14
|
});
|
|
15
15
|
|
|
16
16
|
export type AdminBonusOperationResponseSchemaType = z.infer<typeof AdminBonusOperationResponseSchema>;
|
|
@@ -7,7 +7,7 @@ export const AdminPartnerBonusOperationResponseSchema = z.object({
|
|
|
7
7
|
amount: z.number().nonnegative(),
|
|
8
8
|
balanceAfter: z.number().nullable(),
|
|
9
9
|
comment: z.string().nullable(),
|
|
10
|
-
createdAt: z.
|
|
10
|
+
createdAt: z.iso.datetime(),
|
|
11
11
|
});
|
|
12
12
|
|
|
13
13
|
export type AdminPartnerBonusOperationResponseSchemaType = z.infer<typeof AdminPartnerBonusOperationResponseSchema>;
|
|
@@ -5,7 +5,7 @@ export const AdminPartnerL2BonusResponseSchema = z.object({
|
|
|
5
5
|
partnerUuid: z.uuid(),
|
|
6
6
|
partnerEmail: z.email(),
|
|
7
7
|
amount: z.number().nonnegative(),
|
|
8
|
-
createdAt: z.
|
|
8
|
+
createdAt: z.iso.datetime(),
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
export type AdminPartnerL2BonusResponseSchemaType = z.infer<typeof AdminPartnerL2BonusResponseSchema>;
|
|
@@ -4,7 +4,7 @@ export const AdminPartnerReferralResponseSchema = z.object({
|
|
|
4
4
|
referralUuid: z.uuid(),
|
|
5
5
|
userUuid: z.uuid(),
|
|
6
6
|
email: z.email(),
|
|
7
|
-
registeredAt: z.
|
|
7
|
+
registeredAt: z.iso.datetime(),
|
|
8
8
|
depositsTotal: z.number().nonnegative(),
|
|
9
9
|
isActive: z.boolean(),
|
|
10
10
|
earnedBonusTotal: z.number().nonnegative(),
|
|
@@ -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>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { USER_STATUS } from '../../users';
|
|
3
|
+
|
|
4
|
+
export const AdminUserResponseSchema = z.object({
|
|
5
|
+
uuid: z.uuid(),
|
|
6
|
+
email: z.email(),
|
|
7
|
+
status: z.enum(USER_STATUS),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export type AdminUserResponseSchemaType = z.infer<typeof AdminUserResponseSchema>;
|
package/admin/models/index.ts
CHANGED
|
@@ -6,3 +6,6 @@ export * from './admin-partner-l2-bonus-response.schema';
|
|
|
6
6
|
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
|
+
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,5 +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;
|
|
15
|
+
readonly BAN_USER: (userId: string) => string;
|
|
12
16
|
};
|
|
13
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,4 +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`,
|
|
20
|
+
BAN_USER: (userId) => `users/${userId}/ban`,
|
|
15
21
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const BanAdminUserCommandParams: z.ZodObject<{
|
|
4
|
+
userId: z.ZodUUID;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const BanAdminUserCommandResponse: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodUUID;
|
|
8
|
+
email: z.ZodEmail;
|
|
9
|
+
status: z.ZodEnum<typeof import("../../..").USER_STATUS>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const BanAdminUserCommand: {
|
|
12
|
+
method: HTTP_METHODS.PATCH;
|
|
13
|
+
path: string;
|
|
14
|
+
summary: string;
|
|
15
|
+
request: {
|
|
16
|
+
params: z.ZodObject<{
|
|
17
|
+
userId: z.ZodUUID;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
};
|
|
20
|
+
responses: {
|
|
21
|
+
200: z.ZodObject<{
|
|
22
|
+
uuid: z.ZodUUID;
|
|
23
|
+
email: z.ZodEmail;
|
|
24
|
+
status: z.ZodEnum<typeof import("../../..").USER_STATUS>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
27
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
28
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
29
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
30
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export type BanAdminUserCommandParamsType = z.infer<typeof BanAdminUserCommandParams>;
|
|
34
|
+
export type BanAdminUserCommandResponseType = z.infer<typeof BanAdminUserCommandResponse>;
|
|
35
|
+
//# sourceMappingURL=ban-admin-user.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ban-admin-user.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/ban-admin-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,yBAAyB;;iBAEpC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;iBAA0B,CAAC;AAEnE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;CAe9B,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AACtF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BanAdminUserCommand = exports.BanAdminUserCommandResponse = exports.BanAdminUserCommandParams = 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.BanAdminUserCommandParams = zod_1.z.object({
|
|
9
|
+
userId: zod_1.z.uuid(),
|
|
10
|
+
});
|
|
11
|
+
exports.BanAdminUserCommandResponse = models_1.AdminUserResponseSchema;
|
|
12
|
+
exports.BanAdminUserCommand = (0, _common_1.defineContract)({
|
|
13
|
+
method: _common_1.HTTP_METHODS.PATCH,
|
|
14
|
+
path: admin_1.ADMIN_ROUTES.BAN_USER(':userId'),
|
|
15
|
+
summary: 'Ban a user',
|
|
16
|
+
request: {
|
|
17
|
+
params: exports.BanAdminUserCommandParams,
|
|
18
|
+
},
|
|
19
|
+
responses: {
|
|
20
|
+
200: exports.BanAdminUserCommandResponse,
|
|
21
|
+
400: _common_1.HttpErrorResponseSchema,
|
|
22
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
23
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
24
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
25
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
@@ -17,8 +17,8 @@ export declare const CreateAdminPartnerBonusOperationCommandResponse: z.ZodObjec
|
|
|
17
17
|
amount: z.ZodNumber;
|
|
18
18
|
comment: z.ZodString;
|
|
19
19
|
walletTransactionUuid: z.ZodUUID;
|
|
20
|
-
|
|
21
|
-
createdAt: z.
|
|
20
|
+
cashBalanceAfter: z.ZodNumber;
|
|
21
|
+
createdAt: z.ZodISODateTime;
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
export declare const CreateAdminPartnerBonusOperationCommand: {
|
|
24
24
|
method: HTTP_METHODS.POST;
|
|
@@ -43,8 +43,8 @@ export declare const CreateAdminPartnerBonusOperationCommand: {
|
|
|
43
43
|
amount: z.ZodNumber;
|
|
44
44
|
comment: z.ZodString;
|
|
45
45
|
walletTransactionUuid: z.ZodUUID;
|
|
46
|
-
|
|
47
|
-
createdAt: z.
|
|
46
|
+
cashBalanceAfter: z.ZodNumber;
|
|
47
|
+
createdAt: z.ZodISODateTime;
|
|
48
48
|
}, z.core.$strip>;
|
|
49
49
|
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
50
50
|
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,wCAAwC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,wCAAwC,CAAC"}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ban-admin-user.command"), exports);
|
|
17
18
|
__exportStar(require("./create-admin-partner-bonus-operation.command"), exports);
|
|
18
19
|
__exportStar(require("./update-admin-partner-referral-config.command"), exports);
|
|
19
20
|
__exportStar(require("./update-admin-referral-config.command"), exports);
|
|
@@ -14,7 +14,7 @@ export declare const GetAdminPartnerBonusOperationsQueryResponse: z.ZodObject<{
|
|
|
14
14
|
amount: z.ZodNumber;
|
|
15
15
|
balanceAfter: z.ZodNullable<z.ZodNumber>;
|
|
16
16
|
comment: z.ZodNullable<z.ZodString>;
|
|
17
|
-
createdAt: z.
|
|
17
|
+
createdAt: z.ZodISODateTime;
|
|
18
18
|
}, z.core.$strip>>;
|
|
19
19
|
nextCursor: z.ZodNullable<z.ZodUUID>;
|
|
20
20
|
hasMore: z.ZodBoolean;
|
|
@@ -40,7 +40,7 @@ export declare const GetAdminPartnerBonusOperationsQuery: {
|
|
|
40
40
|
amount: z.ZodNumber;
|
|
41
41
|
balanceAfter: z.ZodNullable<z.ZodNumber>;
|
|
42
42
|
comment: z.ZodNullable<z.ZodString>;
|
|
43
|
-
createdAt: z.
|
|
43
|
+
createdAt: z.ZodISODateTime;
|
|
44
44
|
}, z.core.$strip>>;
|
|
45
45
|
nextCursor: z.ZodNullable<z.ZodUUID>;
|
|
46
46
|
hasMore: z.ZodBoolean;
|
|
@@ -13,7 +13,7 @@ export declare const GetAdminPartnerL2BonusesQueryResponse: z.ZodObject<{
|
|
|
13
13
|
partnerUuid: z.ZodUUID;
|
|
14
14
|
partnerEmail: z.ZodEmail;
|
|
15
15
|
amount: z.ZodNumber;
|
|
16
|
-
createdAt: z.
|
|
16
|
+
createdAt: z.ZodISODateTime;
|
|
17
17
|
}, z.core.$strip>>;
|
|
18
18
|
nextCursor: z.ZodNullable<z.ZodUUID>;
|
|
19
19
|
hasMore: z.ZodBoolean;
|
|
@@ -38,7 +38,7 @@ export declare const GetAdminPartnerL2BonusesQuery: {
|
|
|
38
38
|
partnerUuid: z.ZodUUID;
|
|
39
39
|
partnerEmail: z.ZodEmail;
|
|
40
40
|
amount: z.ZodNumber;
|
|
41
|
-
createdAt: z.
|
|
41
|
+
createdAt: z.ZodISODateTime;
|
|
42
42
|
}, z.core.$strip>>;
|
|
43
43
|
nextCursor: z.ZodNullable<z.ZodUUID>;
|
|
44
44
|
hasMore: z.ZodBoolean;
|
|
@@ -12,7 +12,7 @@ export declare const GetAdminPartnerReferralsQueryResponse: z.ZodObject<{
|
|
|
12
12
|
referralUuid: z.ZodUUID;
|
|
13
13
|
userUuid: z.ZodUUID;
|
|
14
14
|
email: z.ZodEmail;
|
|
15
|
-
registeredAt: z.
|
|
15
|
+
registeredAt: z.ZodISODateTime;
|
|
16
16
|
depositsTotal: z.ZodNumber;
|
|
17
17
|
isActive: z.ZodBoolean;
|
|
18
18
|
earnedBonusTotal: z.ZodNumber;
|
|
@@ -39,7 +39,7 @@ export declare const GetAdminPartnerReferralsQuery: {
|
|
|
39
39
|
referralUuid: z.ZodUUID;
|
|
40
40
|
userUuid: z.ZodUUID;
|
|
41
41
|
email: z.ZodEmail;
|
|
42
|
-
registeredAt: z.
|
|
42
|
+
registeredAt: z.ZodISODateTime;
|
|
43
43
|
depositsTotal: z.ZodNumber;
|
|
44
44
|
isActive: z.ZodBoolean;
|
|
45
45
|
earnedBonusTotal: z.ZodNumber;
|
|
@@ -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"}
|