@ai-grator/api 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/endpoints/admin.ts +1 -0
- package/admin/endpoints/commands/ban-admin-user.command.ts +30 -0
- package/admin/endpoints/commands/index.ts +1 -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-response.schema.ts +10 -0
- package/admin/models/index.ts +1 -0
- package/build/admin/endpoints/admin.d.ts +1 -0
- package/build/admin/endpoints/admin.d.ts.map +1 -1
- package/build/admin/endpoints/admin.js +1 -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/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-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 +1 -0
- package/build/admin/models/index.d.ts.map +1 -1
- package/build/admin/models/index.js +1 -0
- package/build/chat/endpoints/commands/create-chat.command.d.ts +4 -4
- package/build/chat/endpoints/commands/update-chat.command.d.ts +4 -4
- package/build/chat/endpoints/queries/get-chat-by-uuid.query.d.ts +4 -4
- package/build/chat/endpoints/queries/get-chats.query.d.ts +4 -4
- package/build/chat/models/chat-response.schema.d.ts +2 -2
- package/build/chat/models/chat-response.schema.js +2 -2
- 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/file/endpoints/commands/upload-file.command.d.ts +4 -4
- package/build/file/models/file-response.schema.d.ts +2 -2
- package/build/file/models/file-response.schema.js +2 -2
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -0
- package/build/message/endpoints/queries/get-message-by-uuid.query.d.ts +8 -8
- package/build/message/endpoints/queries/get-messages-by-chat.query.d.ts +8 -8
- package/build/message/models/message-response.schema.d.ts +4 -4
- package/build/message/models/message-response.schema.js +2 -2
- 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/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/chat/models/chat-response.schema.ts +2 -2
- package/errors/errors.ts +10 -0
- package/file/models/file-response.schema.ts +2 -2
- package/index.ts +1 -0
- package/message/models/message-response.schema.ts +2 -2
- package/package.json +1 -1
- package/payment/models/payment-response.schema.ts +3 -3
- package/referral/models/bonus-history-response.schema.ts +1 -1
- 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/admin/endpoints/admin.ts
CHANGED
|
@@ -10,4 +10,5 @@ export const ADMIN_ROUTES = {
|
|
|
10
10
|
GET_PARTNER_BONUS_OPERATIONS: (partnerId: string) => `partners/${partnerId}/bonus-operations`,
|
|
11
11
|
CREATE_PARTNER_BONUS_OPERATION: (partnerId: string) => `partners/${partnerId}/bonus-operations`,
|
|
12
12
|
REFERRAL_CONFIG: 'referral-config',
|
|
13
|
+
BAN_USER: (userId: string) => `users/${userId}/ban`,
|
|
13
14
|
} 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>;
|
|
@@ -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,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,4 @@ 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';
|
|
@@ -9,5 +9,6 @@ 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 BAN_USER: (userId: string) => string;
|
|
12
13
|
};
|
|
13
14
|
//# 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;;sCAEI,MAAM;gDACI,MAAM;iDACL,MAAM;sDACD,MAAM;yDACH,MAAM;uDACR,MAAM;yDACJ,MAAM;;
|
|
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;;sCAEI,MAAM;gDACI,MAAM;iDACL,MAAM;sDACD,MAAM;yDACH,MAAM;uDACR,MAAM;yDACJ,MAAM;;gCAE/B,MAAM;CACnB,CAAC"}
|
|
@@ -12,4 +12,5 @@ exports.ADMIN_ROUTES = {
|
|
|
12
12
|
GET_PARTNER_BONUS_OPERATIONS: (partnerId) => `partners/${partnerId}/bonus-operations`,
|
|
13
13
|
CREATE_PARTNER_BONUS_OPERATION: (partnerId) => `partners/${partnerId}/bonus-operations`,
|
|
14
14
|
REFERRAL_CONFIG: 'referral-config',
|
|
15
|
+
BAN_USER: (userId) => `users/${userId}/ban`,
|
|
15
16
|
};
|
|
@@ -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;
|
|
@@ -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,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,5 @@ 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';
|
|
9
10
|
//# 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"}
|
|
@@ -22,3 +22,4 @@ __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);
|
|
@@ -15,8 +15,8 @@ export declare const CreateChatCommandResponse: z.ZodObject<{
|
|
|
15
15
|
dark: z.ZodString;
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
}, z.core.$strip>>;
|
|
18
|
-
createdAt: z.
|
|
19
|
-
updatedAt: z.
|
|
18
|
+
createdAt: z.ZodISODateTime;
|
|
19
|
+
updatedAt: z.ZodISODateTime;
|
|
20
20
|
}, z.core.$strip>;
|
|
21
21
|
export declare const CreateChatCommand: {
|
|
22
22
|
method: HTTP_METHODS.POST;
|
|
@@ -40,8 +40,8 @@ export declare const CreateChatCommand: {
|
|
|
40
40
|
dark: z.ZodString;
|
|
41
41
|
}, z.core.$strip>;
|
|
42
42
|
}, z.core.$strip>>;
|
|
43
|
-
createdAt: z.
|
|
44
|
-
updatedAt: z.
|
|
43
|
+
createdAt: z.ZodISODateTime;
|
|
44
|
+
updatedAt: z.ZodISODateTime;
|
|
45
45
|
}, z.core.$strip>;
|
|
46
46
|
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
47
47
|
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
@@ -18,8 +18,8 @@ export declare const UpdateChatCommandResponse: z.ZodObject<{
|
|
|
18
18
|
dark: z.ZodString;
|
|
19
19
|
}, z.core.$strip>;
|
|
20
20
|
}, z.core.$strip>>;
|
|
21
|
-
createdAt: z.
|
|
22
|
-
updatedAt: z.
|
|
21
|
+
createdAt: z.ZodISODateTime;
|
|
22
|
+
updatedAt: z.ZodISODateTime;
|
|
23
23
|
}, z.core.$strip>;
|
|
24
24
|
export declare const UpdateChatCommand: {
|
|
25
25
|
method: HTTP_METHODS.PATCH;
|
|
@@ -46,8 +46,8 @@ export declare const UpdateChatCommand: {
|
|
|
46
46
|
dark: z.ZodString;
|
|
47
47
|
}, z.core.$strip>;
|
|
48
48
|
}, z.core.$strip>>;
|
|
49
|
-
createdAt: z.
|
|
50
|
-
updatedAt: z.
|
|
49
|
+
createdAt: z.ZodISODateTime;
|
|
50
|
+
updatedAt: z.ZodISODateTime;
|
|
51
51
|
}, z.core.$strip>;
|
|
52
52
|
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
53
53
|
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
@@ -15,8 +15,8 @@ export declare const GetChatByUuidQueryResponse: z.ZodObject<{
|
|
|
15
15
|
dark: z.ZodString;
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
}, z.core.$strip>>;
|
|
18
|
-
createdAt: z.
|
|
19
|
-
updatedAt: z.
|
|
18
|
+
createdAt: z.ZodISODateTime;
|
|
19
|
+
updatedAt: z.ZodISODateTime;
|
|
20
20
|
}, z.core.$strip>;
|
|
21
21
|
export declare const GetChatByUuidQuery: {
|
|
22
22
|
method: HTTP_METHODS.GET;
|
|
@@ -40,8 +40,8 @@ export declare const GetChatByUuidQuery: {
|
|
|
40
40
|
dark: z.ZodString;
|
|
41
41
|
}, z.core.$strip>;
|
|
42
42
|
}, z.core.$strip>>;
|
|
43
|
-
createdAt: z.
|
|
44
|
-
updatedAt: z.
|
|
43
|
+
createdAt: z.ZodISODateTime;
|
|
44
|
+
updatedAt: z.ZodISODateTime;
|
|
45
45
|
}, z.core.$strip>;
|
|
46
46
|
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
47
47
|
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
@@ -17,8 +17,8 @@ export declare const GetChatsQueryResponse: z.ZodObject<{
|
|
|
17
17
|
dark: z.ZodString;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
19
|
}, z.core.$strip>>;
|
|
20
|
-
createdAt: z.
|
|
21
|
-
updatedAt: z.
|
|
20
|
+
createdAt: z.ZodISODateTime;
|
|
21
|
+
updatedAt: z.ZodISODateTime;
|
|
22
22
|
}, z.core.$strip>>;
|
|
23
23
|
nextCursor: z.ZodNullable<z.ZodUUID>;
|
|
24
24
|
hasMore: z.ZodBoolean;
|
|
@@ -47,8 +47,8 @@ export declare const GetChatsQuery: {
|
|
|
47
47
|
dark: z.ZodString;
|
|
48
48
|
}, z.core.$strip>;
|
|
49
49
|
}, z.core.$strip>>;
|
|
50
|
-
createdAt: z.
|
|
51
|
-
updatedAt: z.
|
|
50
|
+
createdAt: z.ZodISODateTime;
|
|
51
|
+
updatedAt: z.ZodISODateTime;
|
|
52
52
|
}, z.core.$strip>>;
|
|
53
53
|
nextCursor: z.ZodNullable<z.ZodUUID>;
|
|
54
54
|
hasMore: z.ZodBoolean;
|
|
@@ -21,8 +21,8 @@ export declare const ChatResponseSchema: z.ZodObject<{
|
|
|
21
21
|
dark: z.ZodString;
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
}, z.core.$strip>>;
|
|
24
|
-
createdAt: z.
|
|
25
|
-
updatedAt: z.
|
|
24
|
+
createdAt: z.ZodISODateTime;
|
|
25
|
+
updatedAt: z.ZodISODateTime;
|
|
26
26
|
}, z.core.$strip>;
|
|
27
27
|
export type ChatResponseSchemaType = z.infer<typeof ChatResponseSchema>;
|
|
28
28
|
//# sourceMappingURL=chat-response.schema.d.ts.map
|
|
@@ -16,6 +16,6 @@ exports.ChatResponseSchema = zod_1.z.object({
|
|
|
16
16
|
title: zod_1.z.string().min(1),
|
|
17
17
|
chatStatus: zod_1.z.enum(enums_1.CHAT_STATUS),
|
|
18
18
|
lastModel: exports.ChatLastModelSchema.nullable(),
|
|
19
|
-
createdAt: zod_1.z.
|
|
20
|
-
updatedAt: zod_1.z.
|
|
19
|
+
createdAt: zod_1.z.iso.datetime(),
|
|
20
|
+
updatedAt: zod_1.z.iso.datetime(),
|
|
21
21
|
});
|
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: {
|
|
@@ -18,8 +18,8 @@ export declare const UploadFileCommandResponse: z.ZodObject<{
|
|
|
18
18
|
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
19
19
|
content: z.ZodNullable<z.ZodString>;
|
|
20
20
|
contentLength: z.ZodNullable<z.ZodNumber>;
|
|
21
|
-
createdAt: z.
|
|
22
|
-
updatedAt: z.
|
|
21
|
+
createdAt: z.ZodISODateTime;
|
|
22
|
+
updatedAt: z.ZodISODateTime;
|
|
23
23
|
}, z.core.$strip>;
|
|
24
24
|
}, z.core.$strip>;
|
|
25
25
|
export declare const UploadFileCommand: {
|
|
@@ -47,8 +47,8 @@ export declare const UploadFileCommand: {
|
|
|
47
47
|
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
48
48
|
content: z.ZodNullable<z.ZodString>;
|
|
49
49
|
contentLength: z.ZodNullable<z.ZodNumber>;
|
|
50
|
-
createdAt: z.
|
|
51
|
-
updatedAt: z.
|
|
50
|
+
createdAt: z.ZodISODateTime;
|
|
51
|
+
updatedAt: z.ZodISODateTime;
|
|
52
52
|
}, z.core.$strip>;
|
|
53
53
|
}, z.core.$strip>;
|
|
54
54
|
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
@@ -13,8 +13,8 @@ export declare const FileResponseSchema: z.ZodObject<{
|
|
|
13
13
|
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
14
14
|
content: z.ZodNullable<z.ZodString>;
|
|
15
15
|
contentLength: z.ZodNullable<z.ZodNumber>;
|
|
16
|
-
createdAt: z.
|
|
17
|
-
updatedAt: z.
|
|
16
|
+
createdAt: z.ZodISODateTime;
|
|
17
|
+
updatedAt: z.ZodISODateTime;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
19
|
export type FileResponseSchemaType = z.infer<typeof FileResponseSchema>;
|
|
20
20
|
//# sourceMappingURL=file-response.schema.d.ts.map
|