@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
|
@@ -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);
|
|
@@ -8,8 +8,8 @@ export declare const AdminBonusOperationResponseSchema: z.ZodObject<{
|
|
|
8
8
|
amount: z.ZodNumber;
|
|
9
9
|
comment: z.ZodString;
|
|
10
10
|
walletTransactionUuid: z.ZodUUID;
|
|
11
|
-
|
|
12
|
-
createdAt: z.
|
|
11
|
+
cashBalanceAfter: z.ZodNumber;
|
|
12
|
+
createdAt: z.ZodISODateTime;
|
|
13
13
|
}, z.core.$strip>;
|
|
14
14
|
export type AdminBonusOperationResponseSchemaType = z.infer<typeof AdminBonusOperationResponseSchema>;
|
|
15
15
|
//# sourceMappingURL=admin-bonus-operation-response.schema.d.ts.map
|
|
@@ -11,6 +11,6 @@ exports.AdminBonusOperationResponseSchema = zod_1.z.object({
|
|
|
11
11
|
amount: zod_1.z.number().positive(),
|
|
12
12
|
comment: zod_1.z.string().min(1),
|
|
13
13
|
walletTransactionUuid: zod_1.z.uuid(),
|
|
14
|
-
|
|
15
|
-
createdAt: zod_1.z.
|
|
14
|
+
cashBalanceAfter: zod_1.z.number(),
|
|
15
|
+
createdAt: zod_1.z.iso.datetime(),
|
|
16
16
|
});
|
|
@@ -6,7 +6,7 @@ export declare const AdminPartnerBonusOperationResponseSchema: z.ZodObject<{
|
|
|
6
6
|
amount: z.ZodNumber;
|
|
7
7
|
balanceAfter: z.ZodNullable<z.ZodNumber>;
|
|
8
8
|
comment: z.ZodNullable<z.ZodString>;
|
|
9
|
-
createdAt: z.
|
|
9
|
+
createdAt: z.ZodISODateTime;
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
export type AdminPartnerBonusOperationResponseSchemaType = z.infer<typeof AdminPartnerBonusOperationResponseSchema>;
|
|
12
12
|
//# sourceMappingURL=admin-partner-bonus-operation-response.schema.d.ts.map
|
|
@@ -9,5 +9,5 @@ exports.AdminPartnerBonusOperationResponseSchema = zod_1.z.object({
|
|
|
9
9
|
amount: zod_1.z.number().nonnegative(),
|
|
10
10
|
balanceAfter: zod_1.z.number().nullable(),
|
|
11
11
|
comment: zod_1.z.string().nullable(),
|
|
12
|
-
createdAt: zod_1.z.
|
|
12
|
+
createdAt: zod_1.z.iso.datetime(),
|
|
13
13
|
});
|
|
@@ -4,7 +4,7 @@ export declare const AdminPartnerL2BonusResponseSchema: z.ZodObject<{
|
|
|
4
4
|
partnerUuid: z.ZodUUID;
|
|
5
5
|
partnerEmail: z.ZodEmail;
|
|
6
6
|
amount: z.ZodNumber;
|
|
7
|
-
createdAt: z.
|
|
7
|
+
createdAt: z.ZodISODateTime;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
export type AdminPartnerL2BonusResponseSchemaType = z.infer<typeof AdminPartnerL2BonusResponseSchema>;
|
|
10
10
|
//# sourceMappingURL=admin-partner-l2-bonus-response.schema.d.ts.map
|
|
@@ -3,7 +3,7 @@ export declare const AdminPartnerReferralResponseSchema: z.ZodObject<{
|
|
|
3
3
|
referralUuid: z.ZodUUID;
|
|
4
4
|
userUuid: z.ZodUUID;
|
|
5
5
|
email: z.ZodEmail;
|
|
6
|
-
registeredAt: z.
|
|
6
|
+
registeredAt: z.ZodISODateTime;
|
|
7
7
|
depositsTotal: z.ZodNumber;
|
|
8
8
|
isActive: z.ZodBoolean;
|
|
9
9
|
earnedBonusTotal: z.ZodNumber;
|
|
@@ -6,7 +6,7 @@ exports.AdminPartnerReferralResponseSchema = zod_1.z.object({
|
|
|
6
6
|
referralUuid: zod_1.z.uuid(),
|
|
7
7
|
userUuid: zod_1.z.uuid(),
|
|
8
8
|
email: zod_1.z.email(),
|
|
9
|
-
registeredAt: zod_1.z.
|
|
9
|
+
registeredAt: zod_1.z.iso.datetime(),
|
|
10
10
|
depositsTotal: zod_1.z.number().nonnegative(),
|
|
11
11
|
isActive: zod_1.z.boolean(),
|
|
12
12
|
earnedBonusTotal: zod_1.z.number().nonnegative(),
|
|
@@ -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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-user-details-response.schema.d.ts","sourceRoot":"","sources":["../../../admin/models/admin-user-details-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,eAAO,MAAM,8BAA8B;;;;;;;;;;iBAUzC,CAAC;AAEH,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminUserDetailsResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const users_1 = require("../../users");
|
|
6
|
+
exports.AdminUserDetailsResponseSchema = zod_1.z.object({
|
|
7
|
+
uuid: zod_1.z.uuid(),
|
|
8
|
+
email: zod_1.z.email(),
|
|
9
|
+
name: zod_1.z.string().nullable(),
|
|
10
|
+
status: zod_1.z.enum(users_1.USER_STATUS),
|
|
11
|
+
tokenBalance: zod_1.z.number(),
|
|
12
|
+
cashBalance: zod_1.z.number(),
|
|
13
|
+
bonusBalance: zod_1.z.number(),
|
|
14
|
+
createdAt: zod_1.z.iso.datetime(),
|
|
15
|
+
lastLoginAt: zod_1.z.iso.datetime().nullable(),
|
|
16
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { USER_STATUS } from '../../users';
|
|
3
|
+
export declare const AdminUserListItemSchema: 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
|
+
createdAt: z.ZodISODateTime;
|
|
11
|
+
lastLoginAt: z.ZodNullable<z.ZodISODateTime>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type AdminUserListItemSchemaType = z.infer<typeof AdminUserListItemSchema>;
|
|
14
|
+
//# sourceMappingURL=admin-user-list-item.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-user-list-item.schema.d.ts","sourceRoot":"","sources":["../../../admin/models/admin-user-list-item.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,eAAO,MAAM,uBAAuB;;;;;;;;;iBASlC,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminUserListItemSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const users_1 = require("../../users");
|
|
6
|
+
exports.AdminUserListItemSchema = zod_1.z.object({
|
|
7
|
+
uuid: zod_1.z.uuid(),
|
|
8
|
+
email: zod_1.z.email(),
|
|
9
|
+
name: zod_1.z.string().nullable(),
|
|
10
|
+
status: zod_1.z.enum(users_1.USER_STATUS),
|
|
11
|
+
tokenBalance: zod_1.z.number(),
|
|
12
|
+
cashBalance: zod_1.z.number(),
|
|
13
|
+
createdAt: zod_1.z.iso.datetime(),
|
|
14
|
+
lastLoginAt: zod_1.z.iso.datetime().nullable(),
|
|
15
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { USER_STATUS } from '../../users';
|
|
3
|
+
export declare const AdminUserResponseSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodUUID;
|
|
5
|
+
email: z.ZodEmail;
|
|
6
|
+
status: z.ZodEnum<typeof USER_STATUS>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type AdminUserResponseSchemaType = z.infer<typeof AdminUserResponseSchema>;
|
|
9
|
+
//# sourceMappingURL=admin-user-response.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-user-response.schema.d.ts","sourceRoot":"","sources":["../../../admin/models/admin-user-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,eAAO,MAAM,uBAAuB;;;;iBAIlC,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminUserResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const users_1 = require("../../users");
|
|
6
|
+
exports.AdminUserResponseSchema = zod_1.z.object({
|
|
7
|
+
uuid: zod_1.z.uuid(),
|
|
8
|
+
email: zod_1.z.email(),
|
|
9
|
+
status: zod_1.z.enum(users_1.USER_STATUS),
|
|
10
|
+
});
|
|
@@ -6,4 +6,7 @@ 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';
|
|
9
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../admin/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,iDAAiD,CAAC;AAChE,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAChE,cAAc,0CAA0C,CAAC;AACzD,cAAc,iCAAiC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../admin/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,iDAAiD,CAAC;AAChE,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAChE,cAAc,0CAA0C,CAAC;AACzD,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sCAAsC,CAAC"}
|
|
@@ -22,3 +22,6 @@ __exportStar(require("./admin-partner-l2-bonus-response.schema"), exports);
|
|
|
22
22
|
__exportStar(require("./admin-partner-referral-config-response.schema"), exports);
|
|
23
23
|
__exportStar(require("./admin-partner-referral-response.schema"), exports);
|
|
24
24
|
__exportStar(require("./admin-partner-response.schema"), exports);
|
|
25
|
+
__exportStar(require("./admin-user-response.schema"), exports);
|
|
26
|
+
__exportStar(require("./admin-user-list-item.schema"), exports);
|
|
27
|
+
__exportStar(require("./admin-user-details-response.schema"), exports);
|
package/build/errors/errors.d.ts
CHANGED
|
@@ -439,6 +439,11 @@ export declare const ERRORS: {
|
|
|
439
439
|
readonly code: "USER.DELETE_ERROR";
|
|
440
440
|
readonly message: "Не удалось удалить пользователя";
|
|
441
441
|
};
|
|
442
|
+
readonly BAN_ERROR: {
|
|
443
|
+
readonly httpCode: 500;
|
|
444
|
+
readonly code: "USER.BAN_ERROR";
|
|
445
|
+
readonly message: "Не удалось заблокировать пользователя";
|
|
446
|
+
};
|
|
442
447
|
readonly FIND_ERROR: {
|
|
443
448
|
readonly httpCode: 500;
|
|
444
449
|
readonly code: "USER.FIND_ERROR";
|
|
@@ -550,6 +555,11 @@ export declare const ERRORS: {
|
|
|
550
555
|
readonly code: "ADMIN.BONUS_OPERATION_ERROR";
|
|
551
556
|
readonly message: "Не удалось создать операцию административного бонуса";
|
|
552
557
|
};
|
|
558
|
+
readonly CANNOT_BAN_ADMIN: {
|
|
559
|
+
readonly httpCode: 400;
|
|
560
|
+
readonly code: "ADMIN.CANNOT_BAN_ADMIN";
|
|
561
|
+
readonly message: "Невозможно заблокировать администратора";
|
|
562
|
+
};
|
|
553
563
|
};
|
|
554
564
|
readonly REFERRAL: {
|
|
555
565
|
readonly SELF_REFERRAL: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAirBT,CAAC"}
|
package/build/errors/errors.js
CHANGED
|
@@ -442,6 +442,11 @@ exports.ERRORS = {
|
|
|
442
442
|
code: 'USER.DELETE_ERROR',
|
|
443
443
|
message: 'Не удалось удалить пользователя',
|
|
444
444
|
},
|
|
445
|
+
BAN_ERROR: {
|
|
446
|
+
httpCode: 500,
|
|
447
|
+
code: 'USER.BAN_ERROR',
|
|
448
|
+
message: 'Не удалось заблокировать пользователя',
|
|
449
|
+
},
|
|
445
450
|
FIND_ERROR: {
|
|
446
451
|
httpCode: 500,
|
|
447
452
|
code: 'USER.FIND_ERROR',
|
|
@@ -553,6 +558,11 @@ exports.ERRORS = {
|
|
|
553
558
|
code: 'ADMIN.BONUS_OPERATION_ERROR',
|
|
554
559
|
message: 'Не удалось создать операцию административного бонуса',
|
|
555
560
|
},
|
|
561
|
+
CANNOT_BAN_ADMIN: {
|
|
562
|
+
httpCode: 400,
|
|
563
|
+
code: 'ADMIN.CANNOT_BAN_ADMIN',
|
|
564
|
+
message: 'Невозможно заблокировать администратора',
|
|
565
|
+
},
|
|
556
566
|
},
|
|
557
567
|
REFERRAL: {
|
|
558
568
|
SELF_REFERRAL: {
|
|
@@ -6,6 +6,8 @@ export declare const CreateGenerationJobCommandBody: z.ZodObject<{
|
|
|
6
6
|
generationType: z.ZodEnum<typeof import("../../../generation-model").GENERATION_TYPE>;
|
|
7
7
|
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8
8
|
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUUID>>>;
|
|
9
|
+
sourceFileUuid: z.ZodOptional<z.ZodUUID>;
|
|
10
|
+
useContext: z.ZodDefault<z.ZodBoolean>;
|
|
9
11
|
}, z.core.$strip>;
|
|
10
12
|
export declare const CreateGenerationJobCommandResponse: z.ZodObject<{
|
|
11
13
|
uuid: z.ZodUUID;
|
|
@@ -35,6 +37,8 @@ export declare const CreateGenerationJobCommand: {
|
|
|
35
37
|
generationType: z.ZodEnum<typeof import("../../../generation-model").GENERATION_TYPE>;
|
|
36
38
|
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
37
39
|
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUUID>>>;
|
|
40
|
+
sourceFileUuid: z.ZodOptional<z.ZodUUID>;
|
|
41
|
+
useContext: z.ZodDefault<z.ZodBoolean>;
|
|
38
42
|
}, z.core.$strip>;
|
|
39
43
|
};
|
|
40
44
|
responses: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-generation-job.command.d.ts","sourceRoot":"","sources":["../../../../generation-job/endpoints/commands/create-generation-job.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAKzF,eAAO,MAAM,8BAA8B
|
|
1
|
+
{"version":3,"file":"create-generation-job.command.d.ts","sourceRoot":"","sources":["../../../../generation-job/endpoints/commands/create-generation-job.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAKzF,eAAO,MAAM,8BAA8B;;;;;;;;iBAQzC,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;iBAA8B,CAAC;AAE9E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAarC,CAAC"}
|
|
@@ -12,6 +12,8 @@ exports.CreateGenerationJobCommandBody = zod_1.z.object({
|
|
|
12
12
|
generationType: generation_model_1.GenerationTypeSchema,
|
|
13
13
|
params: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
|
|
14
14
|
attachments: zod_1.z.record(zod_1.z.string(), zod_1.z.array(zod_1.z.uuid())).optional(),
|
|
15
|
+
sourceFileUuid: zod_1.z.uuid().optional(),
|
|
16
|
+
useContext: zod_1.z.boolean().default(true),
|
|
15
17
|
});
|
|
16
18
|
exports.CreateGenerationJobCommandResponse = models_1.GenerationJobResponseSchema;
|
|
17
19
|
exports.CreateGenerationJobCommand = (0, _common_1.defineContract)({
|
package/build/index.d.ts
CHANGED
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC"}
|
package/build/index.js
CHANGED
|
@@ -55,9 +55,9 @@ export declare const CreatePaymentCommandResponse: z.ZodObject<{
|
|
|
55
55
|
}, z.core.$strip>, z.ZodObject<{
|
|
56
56
|
type: z.ZodLiteral<"external">;
|
|
57
57
|
}, z.core.$strip>], "type">>;
|
|
58
|
-
paidAt: z.ZodNullable<z.
|
|
59
|
-
createdAt: z.
|
|
60
|
-
updatedAt: z.
|
|
58
|
+
paidAt: z.ZodNullable<z.ZodISODateTime>;
|
|
59
|
+
createdAt: z.ZodISODateTime;
|
|
60
|
+
updatedAt: z.ZodISODateTime;
|
|
61
61
|
}, z.core.$strip>;
|
|
62
62
|
export declare const CreatePaymentCommand: {
|
|
63
63
|
method: HTTP_METHODS.POST;
|
|
@@ -107,9 +107,9 @@ export declare const CreatePaymentCommand: {
|
|
|
107
107
|
}, z.core.$strip>, z.ZodObject<{
|
|
108
108
|
type: z.ZodLiteral<"external">;
|
|
109
109
|
}, z.core.$strip>], "type">>;
|
|
110
|
-
paidAt: z.ZodNullable<z.
|
|
111
|
-
createdAt: z.
|
|
112
|
-
updatedAt: z.
|
|
110
|
+
paidAt: z.ZodNullable<z.ZodISODateTime>;
|
|
111
|
+
createdAt: z.ZodISODateTime;
|
|
112
|
+
updatedAt: z.ZodISODateTime;
|
|
113
113
|
}, z.core.$strip>;
|
|
114
114
|
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
115
115
|
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
@@ -42,9 +42,9 @@ export declare const PaymentResponseSchema: z.ZodObject<{
|
|
|
42
42
|
}, z.core.$strip>, z.ZodObject<{
|
|
43
43
|
type: z.ZodLiteral<"external">;
|
|
44
44
|
}, z.core.$strip>], "type">>;
|
|
45
|
-
paidAt: z.ZodNullable<z.
|
|
46
|
-
createdAt: z.
|
|
47
|
-
updatedAt: z.
|
|
45
|
+
paidAt: z.ZodNullable<z.ZodISODateTime>;
|
|
46
|
+
createdAt: z.ZodISODateTime;
|
|
47
|
+
updatedAt: z.ZodISODateTime;
|
|
48
48
|
}, z.core.$strip>;
|
|
49
49
|
export type PaymentResponseSchemaType = z.infer<typeof PaymentResponseSchema>;
|
|
50
50
|
//# sourceMappingURL=payment-response.schema.d.ts.map
|
|
@@ -39,7 +39,7 @@ exports.PaymentResponseSchema = zod_1.z.object({
|
|
|
39
39
|
amount: zod_1.z.number().positive(),
|
|
40
40
|
status: zod_1.z.enum(enums_1.PAYMENT_STATUS),
|
|
41
41
|
confirmation: exports.ConfirmationSchema.nullable(),
|
|
42
|
-
paidAt: zod_1.z.
|
|
43
|
-
createdAt: zod_1.z.
|
|
44
|
-
updatedAt: zod_1.z.
|
|
42
|
+
paidAt: zod_1.z.iso.datetime().nullable(),
|
|
43
|
+
createdAt: zod_1.z.iso.datetime(),
|
|
44
|
+
updatedAt: zod_1.z.iso.datetime(),
|
|
45
45
|
});
|