@gigapay-dev/contracts 2.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/domains/admin/index.d.ts +150 -0
- package/build/domains/admin/index.d.ts.map +1 -0
- package/build/domains/admin/index.js +72 -0
- package/build/domains/admin/index.js.map +1 -0
- package/build/domains/auth/commands.d.ts +294 -0
- package/build/domains/auth/commands.d.ts.map +1 -0
- package/build/domains/auth/commands.js +116 -0
- package/build/domains/auth/commands.js.map +1 -0
- package/build/domains/auth/dtos.d.ts +37 -0
- package/build/domains/auth/dtos.d.ts.map +1 -0
- package/build/domains/auth/dtos.js +26 -0
- package/build/domains/auth/dtos.js.map +1 -0
- package/build/domains/auth/events.d.ts +35 -0
- package/build/domains/auth/events.d.ts.map +1 -0
- package/build/domains/auth/events.js +24 -0
- package/build/domains/auth/events.js.map +1 -0
- package/build/domains/auth/index.d.ts +165 -0
- package/build/domains/auth/index.d.ts.map +1 -0
- package/build/{commands/products → domains/auth}/index.js +11 -6
- package/build/domains/auth/index.js.map +1 -0
- package/build/domains/auth/queries.d.ts +75 -0
- package/build/domains/auth/queries.d.ts.map +1 -0
- package/build/domains/auth/queries.js +25 -0
- package/build/domains/auth/queries.js.map +1 -0
- package/build/domains/catalog/commands.d.ts +255 -0
- package/build/domains/catalog/commands.d.ts.map +1 -0
- package/build/domains/catalog/commands.js +82 -0
- package/build/domains/catalog/commands.js.map +1 -0
- package/build/domains/catalog/dtos.d.ts +89 -0
- package/build/domains/catalog/dtos.d.ts.map +1 -0
- package/build/domains/catalog/dtos.js +43 -0
- package/build/domains/catalog/dtos.js.map +1 -0
- package/build/domains/catalog/index.d.ts +194 -0
- package/build/domains/catalog/index.d.ts.map +1 -0
- package/build/{commands/payment-methods → domains/catalog}/index.js +10 -4
- package/build/domains/catalog/index.js.map +1 -0
- package/build/domains/catalog/queries.d.ts +168 -0
- package/build/domains/catalog/queries.d.ts.map +1 -0
- package/build/domains/catalog/queries.js +29 -0
- package/build/domains/catalog/queries.js.map +1 -0
- package/build/domains/config/index.d.ts +40 -0
- package/build/domains/config/index.d.ts.map +1 -0
- package/build/domains/config/index.js +18 -0
- package/build/domains/config/index.js.map +1 -0
- package/build/domains/orders/commands.d.ts +262 -0
- package/build/domains/orders/commands.d.ts.map +1 -0
- package/build/domains/orders/commands.js +47 -0
- package/build/domains/orders/commands.js.map +1 -0
- package/build/domains/orders/dtos.d.ts +112 -0
- package/build/domains/orders/dtos.d.ts.map +1 -0
- package/build/domains/orders/dtos.js +44 -0
- package/build/domains/orders/dtos.js.map +1 -0
- package/build/domains/orders/events.d.ts +21 -0
- package/build/domains/orders/events.d.ts.map +1 -0
- package/build/domains/orders/events.js +19 -0
- package/build/domains/orders/events.js.map +1 -0
- package/build/domains/orders/index.d.ts +381 -0
- package/build/domains/orders/index.d.ts.map +1 -0
- package/build/domains/orders/index.js +28 -0
- package/build/domains/orders/index.js.map +1 -0
- package/build/domains/orders/queries.d.ts +532 -0
- package/build/domains/orders/queries.d.ts.map +1 -0
- package/build/domains/orders/queries.js +40 -0
- package/build/domains/orders/queries.js.map +1 -0
- package/build/domains/payments/index.d.ts +96 -0
- package/build/domains/payments/index.d.ts.map +1 -0
- package/build/domains/payments/index.js +34 -0
- package/build/domains/payments/index.js.map +1 -0
- package/build/domains/products/commands.d.ts +302 -0
- package/build/domains/products/commands.d.ts.map +1 -0
- package/build/domains/products/commands.js +101 -0
- package/build/domains/products/commands.js.map +1 -0
- package/build/domains/products/dtos.d.ts +122 -0
- package/build/domains/products/dtos.d.ts.map +1 -0
- package/build/domains/products/dtos.js +54 -0
- package/build/domains/products/dtos.js.map +1 -0
- package/build/domains/products/index.d.ts +276 -0
- package/build/domains/products/index.d.ts.map +1 -0
- package/build/{commands/auth → domains/products}/index.js +10 -6
- package/build/domains/products/index.js.map +1 -0
- package/build/domains/products/queries.d.ts +334 -0
- package/build/domains/products/queries.d.ts.map +1 -0
- package/build/domains/products/queries.js +41 -0
- package/build/domains/products/queries.js.map +1 -0
- package/build/domains/promo-codes/index.d.ts +92 -0
- package/build/domains/promo-codes/index.d.ts.map +1 -0
- package/build/domains/promo-codes/index.js +40 -0
- package/build/domains/promo-codes/index.js.map +1 -0
- package/build/domains/stats/index.d.ts +274 -0
- package/build/domains/stats/index.d.ts.map +1 -0
- package/build/domains/stats/index.js +76 -0
- package/build/domains/stats/index.js.map +1 -0
- package/build/domains/users/dtos.d.ts +9 -0
- package/build/domains/users/dtos.d.ts.map +1 -0
- package/build/domains/users/dtos.js +11 -0
- package/build/domains/users/dtos.js.map +1 -0
- package/build/domains/users/index.d.ts +101 -0
- package/build/domains/users/index.d.ts.map +1 -0
- package/build/domains/users/index.js +52 -0
- package/build/domains/users/index.js.map +1 -0
- package/build/index.d.ts +1309 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +34 -1
- package/build/index.js.map +1 -1
- package/build/shared/api-response.d.ts +17 -0
- package/build/shared/api-response.d.ts.map +1 -0
- package/build/shared/api-response.js +22 -0
- package/build/shared/api-response.js.map +1 -0
- package/build/shared/common.d.ts +14 -0
- package/build/shared/common.d.ts.map +1 -0
- package/build/shared/common.js +8 -0
- package/build/shared/common.js.map +1 -0
- package/build/shared/errors.d.ts +34 -0
- package/build/shared/errors.d.ts.map +1 -0
- package/build/shared/errors.js +36 -0
- package/build/shared/errors.js.map +1 -0
- package/build/shared/index.d.ts +7 -0
- package/build/shared/index.d.ts.map +1 -0
- package/build/{commands/orders → shared}/index.js +6 -6
- package/build/shared/index.js.map +1 -0
- package/build/shared/money.d.ts +32 -0
- package/build/shared/money.d.ts.map +1 -0
- package/build/shared/money.js +20 -0
- package/build/shared/money.js.map +1 -0
- package/build/shared/pagination.d.ts +27 -0
- package/build/shared/pagination.d.ts.map +1 -0
- package/build/{commands/common.js → shared/pagination.js} +2 -9
- package/build/shared/pagination.js.map +1 -0
- package/build/shared/types.d.ts +20 -0
- package/build/shared/types.d.ts.map +1 -0
- package/build/shared/types.js.map +1 -0
- package/package.json +43 -48
- package/build/client.d.ts +0 -934
- package/build/client.d.ts.map +0 -1
- package/build/client.js +0 -184
- package/build/client.js.map +0 -1
- package/build/commands/api-response.d.ts +0 -19
- package/build/commands/api-response.d.ts.map +0 -1
- package/build/commands/api-response.js +0 -14
- package/build/commands/api-response.js.map +0 -1
- package/build/commands/auth/confirm.d.ts +0 -12
- package/build/commands/auth/confirm.d.ts.map +0 -1
- package/build/commands/auth/confirm.js +0 -12
- package/build/commands/auth/confirm.js.map +0 -1
- package/build/commands/auth/endpoints.d.ts +0 -115
- package/build/commands/auth/endpoints.d.ts.map +0 -1
- package/build/commands/auth/endpoints.js +0 -51
- package/build/commands/auth/endpoints.js.map +0 -1
- package/build/commands/auth/index.d.ts +0 -7
- package/build/commands/auth/index.d.ts.map +0 -1
- package/build/commands/auth/index.js.map +0 -1
- package/build/commands/auth/login.d.ts +0 -21
- package/build/commands/auth/login.d.ts.map +0 -1
- package/build/commands/auth/login.js +0 -12
- package/build/commands/auth/login.js.map +0 -1
- package/build/commands/auth/profile.d.ts +0 -19
- package/build/commands/auth/profile.d.ts.map +0 -1
- package/build/commands/auth/profile.js +0 -11
- package/build/commands/auth/profile.js.map +0 -1
- package/build/commands/auth/register.d.ts +0 -13
- package/build/commands/auth/register.d.ts.map +0 -1
- package/build/commands/auth/register.js +0 -12
- package/build/commands/auth/register.js.map +0 -1
- package/build/commands/auth/reset.d.ts +0 -13
- package/build/commands/auth/reset.d.ts.map +0 -1
- package/build/commands/auth/reset.js +0 -10
- package/build/commands/auth/reset.js.map +0 -1
- package/build/commands/common.d.ts +0 -65
- package/build/commands/common.d.ts.map +0 -1
- package/build/commands/common.js.map +0 -1
- package/build/commands/consts.d.ts +0 -2
- package/build/commands/consts.d.ts.map +0 -1
- package/build/commands/consts.js +0 -5
- package/build/commands/consts.js.map +0 -1
- package/build/commands/endpoints.d.ts +0 -4643
- package/build/commands/endpoints.d.ts.map +0 -1
- package/build/commands/endpoints.js +0 -26
- package/build/commands/endpoints.js.map +0 -1
- package/build/commands/index.d.ts +0 -16
- package/build/commands/index.d.ts.map +0 -1
- package/build/commands/index.js +0 -32
- package/build/commands/index.js.map +0 -1
- package/build/commands/orders/create.d.ts +0 -100
- package/build/commands/orders/create.d.ts.map +0 -1
- package/build/commands/orders/create.js +0 -43
- package/build/commands/orders/create.js.map +0 -1
- package/build/commands/orders/endpoints.d.ts +0 -742
- package/build/commands/orders/endpoints.d.ts.map +0 -1
- package/build/commands/orders/endpoints.js +0 -48
- package/build/commands/orders/endpoints.js.map +0 -1
- package/build/commands/orders/enums.d.ts +0 -8
- package/build/commands/orders/enums.d.ts.map +0 -1
- package/build/commands/orders/enums.js +0 -26
- package/build/commands/orders/enums.js.map +0 -1
- package/build/commands/orders/index.d.ts +0 -7
- package/build/commands/orders/index.d.ts.map +0 -1
- package/build/commands/orders/index.js.map +0 -1
- package/build/commands/orders/query.d.ts +0 -104
- package/build/commands/orders/query.d.ts.map +0 -1
- package/build/commands/orders/query.js +0 -46
- package/build/commands/orders/query.js.map +0 -1
- package/build/commands/orders/read.d.ts +0 -235
- package/build/commands/orders/read.d.ts.map +0 -1
- package/build/commands/orders/read.js +0 -84
- package/build/commands/orders/read.js.map +0 -1
- package/build/commands/orders/update.d.ts +0 -24
- package/build/commands/orders/update.d.ts.map +0 -1
- package/build/commands/orders/update.js +0 -17
- package/build/commands/orders/update.js.map +0 -1
- package/build/commands/pagination.d.ts +0 -13
- package/build/commands/pagination.d.ts.map +0 -1
- package/build/commands/pagination.js +0 -9
- package/build/commands/pagination.js.map +0 -1
- package/build/commands/payment-methods/create.d.ts +0 -46
- package/build/commands/payment-methods/create.d.ts.map +0 -1
- package/build/commands/payment-methods/create.js +0 -23
- package/build/commands/payment-methods/create.js.map +0 -1
- package/build/commands/payment-methods/endpoints.d.ts +0 -537
- package/build/commands/payment-methods/endpoints.d.ts.map +0 -1
- package/build/commands/payment-methods/endpoints.js +0 -64
- package/build/commands/payment-methods/endpoints.js.map +0 -1
- package/build/commands/payment-methods/index.d.ts +0 -5
- package/build/commands/payment-methods/index.d.ts.map +0 -1
- package/build/commands/payment-methods/index.js.map +0 -1
- package/build/commands/payment-methods/read.d.ts +0 -72
- package/build/commands/payment-methods/read.d.ts.map +0 -1
- package/build/commands/payment-methods/read.js +0 -29
- package/build/commands/payment-methods/read.js.map +0 -1
- package/build/commands/payment-methods/update.d.ts +0 -46
- package/build/commands/payment-methods/update.d.ts.map +0 -1
- package/build/commands/payment-methods/update.js +0 -20
- package/build/commands/payment-methods/update.js.map +0 -1
- package/build/commands/products/create.d.ts +0 -242
- package/build/commands/products/create.d.ts.map +0 -1
- package/build/commands/products/create.js +0 -129
- package/build/commands/products/create.js.map +0 -1
- package/build/commands/products/endpoints.d.ts +0 -1980
- package/build/commands/products/endpoints.d.ts.map +0 -1
- package/build/commands/products/endpoints.js +0 -100
- package/build/commands/products/endpoints.js.map +0 -1
- package/build/commands/products/enums.d.ts +0 -20
- package/build/commands/products/enums.d.ts.map +0 -1
- package/build/commands/products/enums.js +0 -28
- package/build/commands/products/enums.js.map +0 -1
- package/build/commands/products/index.d.ts +0 -7
- package/build/commands/products/index.d.ts.map +0 -1
- package/build/commands/products/index.js.map +0 -1
- package/build/commands/products/query.d.ts +0 -80
- package/build/commands/products/query.d.ts.map +0 -1
- package/build/commands/products/query.js +0 -56
- package/build/commands/products/query.js.map +0 -1
- package/build/commands/products/read.d.ts +0 -1233
- package/build/commands/products/read.d.ts.map +0 -1
- package/build/commands/products/read.js +0 -242
- package/build/commands/products/read.js.map +0 -1
- package/build/commands/products/update.d.ts +0 -85
- package/build/commands/products/update.d.ts.map +0 -1
- package/build/commands/products/update.js +0 -11
- package/build/commands/products/update.js.map +0 -1
- package/build/commands/promocode-activations/create.d.ts +0 -19
- package/build/commands/promocode-activations/create.d.ts.map +0 -1
- package/build/commands/promocode-activations/create.js +0 -11
- package/build/commands/promocode-activations/create.js.map +0 -1
- package/build/commands/promocode-activations/endpoints.d.ts +0 -158
- package/build/commands/promocode-activations/endpoints.d.ts.map +0 -1
- package/build/commands/promocode-activations/endpoints.js +0 -39
- package/build/commands/promocode-activations/endpoints.js.map +0 -1
- package/build/commands/promocode-activations/index.d.ts +0 -5
- package/build/commands/promocode-activations/index.d.ts.map +0 -1
- package/build/commands/promocode-activations/index.js +0 -21
- package/build/commands/promocode-activations/index.js.map +0 -1
- package/build/commands/promocode-activations/read.d.ts +0 -22
- package/build/commands/promocode-activations/read.d.ts.map +0 -1
- package/build/commands/promocode-activations/read.js +0 -15
- package/build/commands/promocode-activations/read.js.map +0 -1
- package/build/commands/promocode-activations/update.d.ts +0 -19
- package/build/commands/promocode-activations/update.d.ts.map +0 -1
- package/build/commands/promocode-activations/update.js +0 -11
- package/build/commands/promocode-activations/update.js.map +0 -1
- package/build/commands/promocodes/create.d.ts +0 -40
- package/build/commands/promocodes/create.d.ts.map +0 -1
- package/build/commands/promocodes/create.js +0 -19
- package/build/commands/promocodes/create.js.map +0 -1
- package/build/commands/promocodes/endpoints.d.ts +0 -354
- package/build/commands/promocodes/endpoints.d.ts.map +0 -1
- package/build/commands/promocodes/endpoints.js +0 -47
- package/build/commands/promocodes/endpoints.js.map +0 -1
- package/build/commands/promocodes/enums.d.ts +0 -6
- package/build/commands/promocodes/enums.d.ts.map +0 -1
- package/build/commands/promocodes/enums.js +0 -10
- package/build/commands/promocodes/enums.js.map +0 -1
- package/build/commands/promocodes/index.d.ts +0 -6
- package/build/commands/promocodes/index.d.ts.map +0 -1
- package/build/commands/promocodes/index.js +0 -22
- package/build/commands/promocodes/index.js.map +0 -1
- package/build/commands/promocodes/read.d.ts +0 -46
- package/build/commands/promocodes/read.d.ts.map +0 -1
- package/build/commands/promocodes/read.js +0 -24
- package/build/commands/promocodes/read.js.map +0 -1
- package/build/commands/promocodes/update.d.ts +0 -34
- package/build/commands/promocodes/update.d.ts.map +0 -1
- package/build/commands/promocodes/update.js +0 -17
- package/build/commands/promocodes/update.js.map +0 -1
- package/build/commands/refresh-sessions/create.d.ts +0 -25
- package/build/commands/refresh-sessions/create.d.ts.map +0 -1
- package/build/commands/refresh-sessions/create.js +0 -14
- package/build/commands/refresh-sessions/create.js.map +0 -1
- package/build/commands/refresh-sessions/endpoints.d.ts +0 -216
- package/build/commands/refresh-sessions/endpoints.d.ts.map +0 -1
- package/build/commands/refresh-sessions/endpoints.js +0 -47
- package/build/commands/refresh-sessions/endpoints.js.map +0 -1
- package/build/commands/refresh-sessions/enums.d.ts +0 -4
- package/build/commands/refresh-sessions/enums.d.ts.map +0 -1
- package/build/commands/refresh-sessions/enums.js +0 -9
- package/build/commands/refresh-sessions/enums.js.map +0 -1
- package/build/commands/refresh-sessions/index.d.ts +0 -6
- package/build/commands/refresh-sessions/index.d.ts.map +0 -1
- package/build/commands/refresh-sessions/index.js +0 -22
- package/build/commands/refresh-sessions/index.js.map +0 -1
- package/build/commands/refresh-sessions/read.d.ts +0 -28
- package/build/commands/refresh-sessions/read.d.ts.map +0 -1
- package/build/commands/refresh-sessions/read.js +0 -18
- package/build/commands/refresh-sessions/read.js.map +0 -1
- package/build/commands/refresh-sessions/update.d.ts +0 -25
- package/build/commands/refresh-sessions/update.d.ts.map +0 -1
- package/build/commands/refresh-sessions/update.js +0 -17
- package/build/commands/refresh-sessions/update.js.map +0 -1
- package/build/commands/settings/endpoints.d.ts +0 -109
- package/build/commands/settings/endpoints.d.ts.map +0 -1
- package/build/commands/settings/endpoints.js +0 -44
- package/build/commands/settings/endpoints.js.map +0 -1
- package/build/commands/settings/index.d.ts +0 -4
- package/build/commands/settings/index.d.ts.map +0 -1
- package/build/commands/settings/index.js +0 -20
- package/build/commands/settings/index.js.map +0 -1
- package/build/commands/settings/read.d.ts +0 -19
- package/build/commands/settings/read.d.ts.map +0 -1
- package/build/commands/settings/read.js +0 -11
- package/build/commands/settings/read.js.map +0 -1
- package/build/commands/settings/update.d.ts +0 -19
- package/build/commands/settings/update.d.ts.map +0 -1
- package/build/commands/settings/update.js +0 -11
- package/build/commands/settings/update.js.map +0 -1
- package/build/commands/stats/endpoints.d.ts +0 -68
- package/build/commands/stats/endpoints.d.ts.map +0 -1
- package/build/commands/stats/endpoints.js +0 -14
- package/build/commands/stats/endpoints.js.map +0 -1
- package/build/commands/stats/index.d.ts +0 -4
- package/build/commands/stats/index.d.ts.map +0 -1
- package/build/commands/stats/index.js +0 -20
- package/build/commands/stats/index.js.map +0 -1
- package/build/commands/stats/query.d.ts +0 -32
- package/build/commands/stats/query.d.ts.map +0 -1
- package/build/commands/stats/query.js +0 -16
- package/build/commands/stats/query.js.map +0 -1
- package/build/commands/stats/read.d.ts +0 -31
- package/build/commands/stats/read.d.ts.map +0 -1
- package/build/commands/stats/read.js +0 -18
- package/build/commands/stats/read.js.map +0 -1
- package/build/commands/users/create.d.ts +0 -43
- package/build/commands/users/create.d.ts.map +0 -1
- package/build/commands/users/create.js +0 -20
- package/build/commands/users/create.js.map +0 -1
- package/build/commands/users/endpoints.d.ts +0 -404
- package/build/commands/users/endpoints.d.ts.map +0 -1
- package/build/commands/users/endpoints.js +0 -40
- package/build/commands/users/endpoints.js.map +0 -1
- package/build/commands/users/enums.d.ts +0 -7
- package/build/commands/users/enums.d.ts.map +0 -1
- package/build/commands/users/enums.js +0 -11
- package/build/commands/users/enums.js.map +0 -1
- package/build/commands/users/index.d.ts +0 -7
- package/build/commands/users/index.d.ts.map +0 -1
- package/build/commands/users/index.js +0 -23
- package/build/commands/users/index.js.map +0 -1
- package/build/commands/users/query.d.ts +0 -53
- package/build/commands/users/query.d.ts.map +0 -1
- package/build/commands/users/query.js +0 -22
- package/build/commands/users/query.js.map +0 -1
- package/build/commands/users/read.d.ts +0 -61
- package/build/commands/users/read.d.ts.map +0 -1
- package/build/commands/users/read.js +0 -29
- package/build/commands/users/read.js.map +0 -1
- package/build/commands/users/update.d.ts +0 -43
- package/build/commands/users/update.d.ts.map +0 -1
- package/build/commands/users/update.js +0 -20
- package/build/commands/users/update.js.map +0 -1
- package/build/types.d.ts +0 -9
- package/build/types.d.ts.map +0 -1
- package/build/types.js.map +0 -1
- /package/build/{types.js → shared/types.js} +0 -0
|
@@ -1,404 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const UserEndpoints: {
|
|
3
|
-
create: {
|
|
4
|
-
method: "POST";
|
|
5
|
-
path: string;
|
|
6
|
-
request: z.ZodObject<{
|
|
7
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
-
picture: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
-
email: z.ZodString;
|
|
10
|
-
password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
-
steamId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
-
telegramId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
-
vkId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
-
googleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
-
isConfirmEmail: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
-
role: z.ZodEnum<["USER", "ADMIN", "NO_AUTH"]>;
|
|
17
|
-
status: z.ZodEnum<["ACTIVE", "BLOCKED"]>;
|
|
18
|
-
utmSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
-
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
email: string;
|
|
21
|
-
status: "ACTIVE" | "BLOCKED";
|
|
22
|
-
role: "USER" | "ADMIN" | "NO_AUTH";
|
|
23
|
-
password?: string | null | undefined;
|
|
24
|
-
username?: string | null | undefined;
|
|
25
|
-
telegramId?: string | null | undefined;
|
|
26
|
-
utmSource?: string | null | undefined;
|
|
27
|
-
picture?: string | null | undefined;
|
|
28
|
-
steamId?: string | null | undefined;
|
|
29
|
-
vkId?: string | null | undefined;
|
|
30
|
-
googleId?: string | null | undefined;
|
|
31
|
-
isConfirmEmail?: boolean | undefined;
|
|
32
|
-
}, {
|
|
33
|
-
email: string;
|
|
34
|
-
status: "ACTIVE" | "BLOCKED";
|
|
35
|
-
role: "USER" | "ADMIN" | "NO_AUTH";
|
|
36
|
-
password?: string | null | undefined;
|
|
37
|
-
username?: string | null | undefined;
|
|
38
|
-
telegramId?: string | null | undefined;
|
|
39
|
-
utmSource?: string | null | undefined;
|
|
40
|
-
picture?: string | null | undefined;
|
|
41
|
-
steamId?: string | null | undefined;
|
|
42
|
-
vkId?: string | null | undefined;
|
|
43
|
-
googleId?: string | null | undefined;
|
|
44
|
-
isConfirmEmail?: boolean | undefined;
|
|
45
|
-
}>;
|
|
46
|
-
response: z.ZodObject<{
|
|
47
|
-
id: z.ZodNumber;
|
|
48
|
-
username: z.ZodNullable<z.ZodString>;
|
|
49
|
-
picture: z.ZodNullable<z.ZodString>;
|
|
50
|
-
email: z.ZodNullable<z.ZodString>;
|
|
51
|
-
steamId: z.ZodNullable<z.ZodString>;
|
|
52
|
-
telegramId: z.ZodNullable<z.ZodString>;
|
|
53
|
-
password: z.ZodNullable<z.ZodString>;
|
|
54
|
-
vkId: z.ZodNullable<z.ZodString>;
|
|
55
|
-
googleId: z.ZodNullable<z.ZodString>;
|
|
56
|
-
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
57
|
-
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
58
|
-
blockedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
59
|
-
ordersCount: z.ZodOptional<z.ZodNumber>;
|
|
60
|
-
ordersAmount: z.ZodOptional<z.ZodNumber>;
|
|
61
|
-
isConfirmEmail: z.ZodBoolean;
|
|
62
|
-
isOnline: z.ZodBoolean;
|
|
63
|
-
role: z.ZodEnum<["USER", "ADMIN", "NO_AUTH"]>;
|
|
64
|
-
status: z.ZodEnum<["ACTIVE", "BLOCKED"]>;
|
|
65
|
-
}, "strip", z.ZodTypeAny, {
|
|
66
|
-
email: string | null;
|
|
67
|
-
password: string | null;
|
|
68
|
-
status: "ACTIVE" | "BLOCKED";
|
|
69
|
-
id: number;
|
|
70
|
-
username: string | null;
|
|
71
|
-
telegramId: string | null;
|
|
72
|
-
picture: string | null;
|
|
73
|
-
steamId: string | null;
|
|
74
|
-
vkId: string | null;
|
|
75
|
-
googleId: string | null;
|
|
76
|
-
isConfirmEmail: boolean;
|
|
77
|
-
role: "USER" | "ADMIN" | "NO_AUTH";
|
|
78
|
-
isOnline: boolean;
|
|
79
|
-
createdAt?: Date | null | undefined;
|
|
80
|
-
updatedAt?: Date | null | undefined;
|
|
81
|
-
blockedAt?: Date | null | undefined;
|
|
82
|
-
ordersCount?: number | undefined;
|
|
83
|
-
ordersAmount?: number | undefined;
|
|
84
|
-
}, {
|
|
85
|
-
email: string | null;
|
|
86
|
-
password: string | null;
|
|
87
|
-
status: "ACTIVE" | "BLOCKED";
|
|
88
|
-
id: number;
|
|
89
|
-
username: string | null;
|
|
90
|
-
telegramId: string | null;
|
|
91
|
-
picture: string | null;
|
|
92
|
-
steamId: string | null;
|
|
93
|
-
vkId: string | null;
|
|
94
|
-
googleId: string | null;
|
|
95
|
-
isConfirmEmail: boolean;
|
|
96
|
-
role: "USER" | "ADMIN" | "NO_AUTH";
|
|
97
|
-
isOnline: boolean;
|
|
98
|
-
createdAt?: Date | null | undefined;
|
|
99
|
-
updatedAt?: Date | null | undefined;
|
|
100
|
-
blockedAt?: Date | null | undefined;
|
|
101
|
-
ordersCount?: number | undefined;
|
|
102
|
-
ordersAmount?: number | undefined;
|
|
103
|
-
}>;
|
|
104
|
-
};
|
|
105
|
-
list: {
|
|
106
|
-
method: "GET";
|
|
107
|
-
path: string;
|
|
108
|
-
request: z.ZodObject<{
|
|
109
|
-
take: z.ZodOptional<z.ZodNumber>;
|
|
110
|
-
skip: z.ZodOptional<z.ZodNumber>;
|
|
111
|
-
} & {
|
|
112
|
-
email: z.ZodOptional<z.ZodString>;
|
|
113
|
-
id: z.ZodOptional<z.ZodNumber>;
|
|
114
|
-
role: z.ZodOptional<z.ZodEnum<["USER", "ADMIN", "NO_AUTH"]>>;
|
|
115
|
-
} & {
|
|
116
|
-
sortBy: z.ZodDefault<z.ZodString>;
|
|
117
|
-
sortDir: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
118
|
-
}, "strip", z.ZodTypeAny, {
|
|
119
|
-
sortBy: string;
|
|
120
|
-
sortDir: "asc" | "desc";
|
|
121
|
-
email?: string | undefined;
|
|
122
|
-
id?: number | undefined;
|
|
123
|
-
take?: number | undefined;
|
|
124
|
-
skip?: number | undefined;
|
|
125
|
-
role?: "USER" | "ADMIN" | "NO_AUTH" | undefined;
|
|
126
|
-
}, {
|
|
127
|
-
email?: string | undefined;
|
|
128
|
-
id?: number | undefined;
|
|
129
|
-
take?: number | undefined;
|
|
130
|
-
skip?: number | undefined;
|
|
131
|
-
sortBy?: string | undefined;
|
|
132
|
-
sortDir?: "asc" | "desc" | undefined;
|
|
133
|
-
role?: "USER" | "ADMIN" | "NO_AUTH" | undefined;
|
|
134
|
-
}>;
|
|
135
|
-
response: z.ZodArray<z.ZodObject<{
|
|
136
|
-
id: z.ZodNumber;
|
|
137
|
-
username: z.ZodNullable<z.ZodString>;
|
|
138
|
-
picture: z.ZodNullable<z.ZodString>;
|
|
139
|
-
email: z.ZodNullable<z.ZodString>;
|
|
140
|
-
steamId: z.ZodNullable<z.ZodString>;
|
|
141
|
-
telegramId: z.ZodNullable<z.ZodString>;
|
|
142
|
-
password: z.ZodNullable<z.ZodString>;
|
|
143
|
-
vkId: z.ZodNullable<z.ZodString>;
|
|
144
|
-
googleId: z.ZodNullable<z.ZodString>;
|
|
145
|
-
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
146
|
-
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
147
|
-
blockedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
148
|
-
ordersCount: z.ZodOptional<z.ZodNumber>;
|
|
149
|
-
ordersAmount: z.ZodOptional<z.ZodNumber>;
|
|
150
|
-
isConfirmEmail: z.ZodBoolean;
|
|
151
|
-
isOnline: z.ZodBoolean;
|
|
152
|
-
role: z.ZodEnum<["USER", "ADMIN", "NO_AUTH"]>;
|
|
153
|
-
status: z.ZodEnum<["ACTIVE", "BLOCKED"]>;
|
|
154
|
-
}, "strip", z.ZodTypeAny, {
|
|
155
|
-
email: string | null;
|
|
156
|
-
password: string | null;
|
|
157
|
-
status: "ACTIVE" | "BLOCKED";
|
|
158
|
-
id: number;
|
|
159
|
-
username: string | null;
|
|
160
|
-
telegramId: string | null;
|
|
161
|
-
picture: string | null;
|
|
162
|
-
steamId: string | null;
|
|
163
|
-
vkId: string | null;
|
|
164
|
-
googleId: string | null;
|
|
165
|
-
isConfirmEmail: boolean;
|
|
166
|
-
role: "USER" | "ADMIN" | "NO_AUTH";
|
|
167
|
-
isOnline: boolean;
|
|
168
|
-
createdAt?: Date | null | undefined;
|
|
169
|
-
updatedAt?: Date | null | undefined;
|
|
170
|
-
blockedAt?: Date | null | undefined;
|
|
171
|
-
ordersCount?: number | undefined;
|
|
172
|
-
ordersAmount?: number | undefined;
|
|
173
|
-
}, {
|
|
174
|
-
email: string | null;
|
|
175
|
-
password: string | null;
|
|
176
|
-
status: "ACTIVE" | "BLOCKED";
|
|
177
|
-
id: number;
|
|
178
|
-
username: string | null;
|
|
179
|
-
telegramId: string | null;
|
|
180
|
-
picture: string | null;
|
|
181
|
-
steamId: string | null;
|
|
182
|
-
vkId: string | null;
|
|
183
|
-
googleId: string | null;
|
|
184
|
-
isConfirmEmail: boolean;
|
|
185
|
-
role: "USER" | "ADMIN" | "NO_AUTH";
|
|
186
|
-
isOnline: boolean;
|
|
187
|
-
createdAt?: Date | null | undefined;
|
|
188
|
-
updatedAt?: Date | null | undefined;
|
|
189
|
-
blockedAt?: Date | null | undefined;
|
|
190
|
-
ordersCount?: number | undefined;
|
|
191
|
-
ordersAmount?: number | undefined;
|
|
192
|
-
}>, "many">;
|
|
193
|
-
};
|
|
194
|
-
getById: {
|
|
195
|
-
method: "GET";
|
|
196
|
-
path: string;
|
|
197
|
-
request: z.ZodObject<{
|
|
198
|
-
id: z.ZodNumber;
|
|
199
|
-
}, "strip", z.ZodTypeAny, {
|
|
200
|
-
id: number;
|
|
201
|
-
}, {
|
|
202
|
-
id: number;
|
|
203
|
-
}>;
|
|
204
|
-
response: z.ZodObject<{
|
|
205
|
-
id: z.ZodNumber;
|
|
206
|
-
username: z.ZodNullable<z.ZodString>;
|
|
207
|
-
picture: z.ZodNullable<z.ZodString>;
|
|
208
|
-
email: z.ZodNullable<z.ZodString>;
|
|
209
|
-
steamId: z.ZodNullable<z.ZodString>;
|
|
210
|
-
telegramId: z.ZodNullable<z.ZodString>;
|
|
211
|
-
password: z.ZodNullable<z.ZodString>;
|
|
212
|
-
vkId: z.ZodNullable<z.ZodString>;
|
|
213
|
-
googleId: z.ZodNullable<z.ZodString>;
|
|
214
|
-
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
215
|
-
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
216
|
-
blockedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
217
|
-
ordersCount: z.ZodOptional<z.ZodNumber>;
|
|
218
|
-
ordersAmount: z.ZodOptional<z.ZodNumber>;
|
|
219
|
-
isConfirmEmail: z.ZodBoolean;
|
|
220
|
-
isOnline: z.ZodBoolean;
|
|
221
|
-
role: z.ZodEnum<["USER", "ADMIN", "NO_AUTH"]>;
|
|
222
|
-
status: z.ZodEnum<["ACTIVE", "BLOCKED"]>;
|
|
223
|
-
}, "strip", z.ZodTypeAny, {
|
|
224
|
-
email: string | null;
|
|
225
|
-
password: string | null;
|
|
226
|
-
status: "ACTIVE" | "BLOCKED";
|
|
227
|
-
id: number;
|
|
228
|
-
username: string | null;
|
|
229
|
-
telegramId: string | null;
|
|
230
|
-
picture: string | null;
|
|
231
|
-
steamId: string | null;
|
|
232
|
-
vkId: string | null;
|
|
233
|
-
googleId: string | null;
|
|
234
|
-
isConfirmEmail: boolean;
|
|
235
|
-
role: "USER" | "ADMIN" | "NO_AUTH";
|
|
236
|
-
isOnline: boolean;
|
|
237
|
-
createdAt?: Date | null | undefined;
|
|
238
|
-
updatedAt?: Date | null | undefined;
|
|
239
|
-
blockedAt?: Date | null | undefined;
|
|
240
|
-
ordersCount?: number | undefined;
|
|
241
|
-
ordersAmount?: number | undefined;
|
|
242
|
-
}, {
|
|
243
|
-
email: string | null;
|
|
244
|
-
password: string | null;
|
|
245
|
-
status: "ACTIVE" | "BLOCKED";
|
|
246
|
-
id: number;
|
|
247
|
-
username: string | null;
|
|
248
|
-
telegramId: string | null;
|
|
249
|
-
picture: string | null;
|
|
250
|
-
steamId: string | null;
|
|
251
|
-
vkId: string | null;
|
|
252
|
-
googleId: string | null;
|
|
253
|
-
isConfirmEmail: boolean;
|
|
254
|
-
role: "USER" | "ADMIN" | "NO_AUTH";
|
|
255
|
-
isOnline: boolean;
|
|
256
|
-
createdAt?: Date | null | undefined;
|
|
257
|
-
updatedAt?: Date | null | undefined;
|
|
258
|
-
blockedAt?: Date | null | undefined;
|
|
259
|
-
ordersCount?: number | undefined;
|
|
260
|
-
ordersAmount?: number | undefined;
|
|
261
|
-
}>;
|
|
262
|
-
};
|
|
263
|
-
update: {
|
|
264
|
-
method: "PATCH";
|
|
265
|
-
path: string;
|
|
266
|
-
request: z.ZodObject<{
|
|
267
|
-
id: z.ZodNumber;
|
|
268
|
-
body: z.ZodObject<{
|
|
269
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
270
|
-
picture: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
271
|
-
email: z.ZodOptional<z.ZodString>;
|
|
272
|
-
password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
273
|
-
provider: z.ZodOptional<z.ZodEnum<["GOOGLE", "STEAM"]>>;
|
|
274
|
-
steamId: z.ZodOptional<z.ZodString>;
|
|
275
|
-
telegramId: z.ZodOptional<z.ZodString>;
|
|
276
|
-
vkId: z.ZodOptional<z.ZodString>;
|
|
277
|
-
googleId: z.ZodOptional<z.ZodString>;
|
|
278
|
-
isConfirmEmail: z.ZodOptional<z.ZodBoolean>;
|
|
279
|
-
role: z.ZodOptional<z.ZodEnum<["USER", "ADMIN", "NO_AUTH"]>>;
|
|
280
|
-
status: z.ZodOptional<z.ZodEnum<["ACTIVE", "BLOCKED"]>>;
|
|
281
|
-
}, "strip", z.ZodTypeAny, {
|
|
282
|
-
email?: string | undefined;
|
|
283
|
-
password?: string | null | undefined;
|
|
284
|
-
status?: "ACTIVE" | "BLOCKED" | undefined;
|
|
285
|
-
username?: string | null | undefined;
|
|
286
|
-
telegramId?: string | undefined;
|
|
287
|
-
picture?: string | null | undefined;
|
|
288
|
-
steamId?: string | undefined;
|
|
289
|
-
vkId?: string | undefined;
|
|
290
|
-
googleId?: string | undefined;
|
|
291
|
-
isConfirmEmail?: boolean | undefined;
|
|
292
|
-
role?: "USER" | "ADMIN" | "NO_AUTH" | undefined;
|
|
293
|
-
provider?: "GOOGLE" | "STEAM" | undefined;
|
|
294
|
-
}, {
|
|
295
|
-
email?: string | undefined;
|
|
296
|
-
password?: string | null | undefined;
|
|
297
|
-
status?: "ACTIVE" | "BLOCKED" | undefined;
|
|
298
|
-
username?: string | null | undefined;
|
|
299
|
-
telegramId?: string | undefined;
|
|
300
|
-
picture?: string | null | undefined;
|
|
301
|
-
steamId?: string | undefined;
|
|
302
|
-
vkId?: string | undefined;
|
|
303
|
-
googleId?: string | undefined;
|
|
304
|
-
isConfirmEmail?: boolean | undefined;
|
|
305
|
-
role?: "USER" | "ADMIN" | "NO_AUTH" | undefined;
|
|
306
|
-
provider?: "GOOGLE" | "STEAM" | undefined;
|
|
307
|
-
}>;
|
|
308
|
-
}, "strip", z.ZodTypeAny, {
|
|
309
|
-
id: number;
|
|
310
|
-
body: {
|
|
311
|
-
email?: string | undefined;
|
|
312
|
-
password?: string | null | undefined;
|
|
313
|
-
status?: "ACTIVE" | "BLOCKED" | undefined;
|
|
314
|
-
username?: string | null | undefined;
|
|
315
|
-
telegramId?: string | undefined;
|
|
316
|
-
picture?: string | null | undefined;
|
|
317
|
-
steamId?: string | undefined;
|
|
318
|
-
vkId?: string | undefined;
|
|
319
|
-
googleId?: string | undefined;
|
|
320
|
-
isConfirmEmail?: boolean | undefined;
|
|
321
|
-
role?: "USER" | "ADMIN" | "NO_AUTH" | undefined;
|
|
322
|
-
provider?: "GOOGLE" | "STEAM" | undefined;
|
|
323
|
-
};
|
|
324
|
-
}, {
|
|
325
|
-
id: number;
|
|
326
|
-
body: {
|
|
327
|
-
email?: string | undefined;
|
|
328
|
-
password?: string | null | undefined;
|
|
329
|
-
status?: "ACTIVE" | "BLOCKED" | undefined;
|
|
330
|
-
username?: string | null | undefined;
|
|
331
|
-
telegramId?: string | undefined;
|
|
332
|
-
picture?: string | null | undefined;
|
|
333
|
-
steamId?: string | undefined;
|
|
334
|
-
vkId?: string | undefined;
|
|
335
|
-
googleId?: string | undefined;
|
|
336
|
-
isConfirmEmail?: boolean | undefined;
|
|
337
|
-
role?: "USER" | "ADMIN" | "NO_AUTH" | undefined;
|
|
338
|
-
provider?: "GOOGLE" | "STEAM" | undefined;
|
|
339
|
-
};
|
|
340
|
-
}>;
|
|
341
|
-
response: z.ZodObject<{
|
|
342
|
-
id: z.ZodNumber;
|
|
343
|
-
username: z.ZodNullable<z.ZodString>;
|
|
344
|
-
picture: z.ZodNullable<z.ZodString>;
|
|
345
|
-
email: z.ZodNullable<z.ZodString>;
|
|
346
|
-
steamId: z.ZodNullable<z.ZodString>;
|
|
347
|
-
telegramId: z.ZodNullable<z.ZodString>;
|
|
348
|
-
password: z.ZodNullable<z.ZodString>;
|
|
349
|
-
vkId: z.ZodNullable<z.ZodString>;
|
|
350
|
-
googleId: z.ZodNullable<z.ZodString>;
|
|
351
|
-
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
352
|
-
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
353
|
-
blockedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
354
|
-
ordersCount: z.ZodOptional<z.ZodNumber>;
|
|
355
|
-
ordersAmount: z.ZodOptional<z.ZodNumber>;
|
|
356
|
-
isConfirmEmail: z.ZodBoolean;
|
|
357
|
-
isOnline: z.ZodBoolean;
|
|
358
|
-
role: z.ZodEnum<["USER", "ADMIN", "NO_AUTH"]>;
|
|
359
|
-
status: z.ZodEnum<["ACTIVE", "BLOCKED"]>;
|
|
360
|
-
}, "strip", z.ZodTypeAny, {
|
|
361
|
-
email: string | null;
|
|
362
|
-
password: string | null;
|
|
363
|
-
status: "ACTIVE" | "BLOCKED";
|
|
364
|
-
id: number;
|
|
365
|
-
username: string | null;
|
|
366
|
-
telegramId: string | null;
|
|
367
|
-
picture: string | null;
|
|
368
|
-
steamId: string | null;
|
|
369
|
-
vkId: string | null;
|
|
370
|
-
googleId: string | null;
|
|
371
|
-
isConfirmEmail: boolean;
|
|
372
|
-
role: "USER" | "ADMIN" | "NO_AUTH";
|
|
373
|
-
isOnline: boolean;
|
|
374
|
-
createdAt?: Date | null | undefined;
|
|
375
|
-
updatedAt?: Date | null | undefined;
|
|
376
|
-
blockedAt?: Date | null | undefined;
|
|
377
|
-
ordersCount?: number | undefined;
|
|
378
|
-
ordersAmount?: number | undefined;
|
|
379
|
-
}, {
|
|
380
|
-
email: string | null;
|
|
381
|
-
password: string | null;
|
|
382
|
-
status: "ACTIVE" | "BLOCKED";
|
|
383
|
-
id: number;
|
|
384
|
-
username: string | null;
|
|
385
|
-
telegramId: string | null;
|
|
386
|
-
picture: string | null;
|
|
387
|
-
steamId: string | null;
|
|
388
|
-
vkId: string | null;
|
|
389
|
-
googleId: string | null;
|
|
390
|
-
isConfirmEmail: boolean;
|
|
391
|
-
role: "USER" | "ADMIN" | "NO_AUTH";
|
|
392
|
-
isOnline: boolean;
|
|
393
|
-
createdAt?: Date | null | undefined;
|
|
394
|
-
updatedAt?: Date | null | undefined;
|
|
395
|
-
blockedAt?: Date | null | undefined;
|
|
396
|
-
ordersCount?: number | undefined;
|
|
397
|
-
ordersAmount?: number | undefined;
|
|
398
|
-
}>;
|
|
399
|
-
};
|
|
400
|
-
};
|
|
401
|
-
export type UserEndpointKey = keyof typeof UserEndpoints;
|
|
402
|
-
export type GetUserRequest<K extends UserEndpointKey> = z.infer<typeof UserEndpoints[K]["request"]>;
|
|
403
|
-
export type GetUserResponse<K extends UserEndpointKey> = z.infer<typeof UserEndpoints[K]["response"]>;
|
|
404
|
-
//# sourceMappingURL=endpoints.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../commands/users/endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BkB,CAAC;AAE7C,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,aAAa,CAAC;AAEzD,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,eAAe,IAClD,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAE9C,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,eAAe,IACnD,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserEndpoints = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const create_1 = require("./create");
|
|
6
|
-
const read_1 = require("./read");
|
|
7
|
-
const update_1 = require("./update");
|
|
8
|
-
const query_1 = require("./query");
|
|
9
|
-
exports.UserEndpoints = {
|
|
10
|
-
create: {
|
|
11
|
-
method: "POST",
|
|
12
|
-
path: "/users",
|
|
13
|
-
request: create_1.UserCreateSchema,
|
|
14
|
-
response: read_1.UserReadResponseSchema,
|
|
15
|
-
},
|
|
16
|
-
list: {
|
|
17
|
-
method: "GET",
|
|
18
|
-
path: "/users",
|
|
19
|
-
request: query_1.UsersListQuerySchema,
|
|
20
|
-
response: zod_1.z.array(read_1.UserReadResponseSchema),
|
|
21
|
-
},
|
|
22
|
-
getById: {
|
|
23
|
-
method: "GET",
|
|
24
|
-
path: "/users/:id",
|
|
25
|
-
request: zod_1.z.object({
|
|
26
|
-
id: zod_1.z.coerce.number().positive(),
|
|
27
|
-
}),
|
|
28
|
-
response: read_1.UserReadResponseSchema,
|
|
29
|
-
},
|
|
30
|
-
update: {
|
|
31
|
-
method: "PATCH",
|
|
32
|
-
path: "/users/:id",
|
|
33
|
-
request: zod_1.z.object({
|
|
34
|
-
id: zod_1.z.coerce.number().positive(),
|
|
35
|
-
body: update_1.UserUpdateSchema,
|
|
36
|
-
}),
|
|
37
|
-
response: read_1.UserReadResponseSchema,
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
//# sourceMappingURL=endpoints.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../../commands/users/endpoints.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,qCAA4C;AAC5C,iCAAgD;AAChD,qCAA4C;AAC5C,mCAA+C;AAElC,QAAA,aAAa,GAAG;IACzB,MAAM,EAAE;QACJ,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,yBAAgB;QACzB,QAAQ,EAAE,6BAAsB;KACnC;IACD,IAAI,EAAE;QACF,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,4BAAoB;QAC7B,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,6BAAsB,CAAC;KAC5C;IACD,OAAO,EAAE;QACL,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;YACd,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SACnC,CAAC;QACF,QAAQ,EAAE,6BAAsB;KACnC;IACD,MAAM,EAAE;QACJ,MAAM,EAAE,OAAO;QACf,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;YACd,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAChC,IAAI,EAAE,yBAAgB;SACzB,CAAC;QACF,QAAQ,EAAE,6BAAsB;KACrC;CAEyC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export declare const UserRoleEnum: z.ZodEnum<["USER", "ADMIN", "NO_AUTH"]>;
|
|
3
|
-
export declare const UserStatusEnum: z.ZodEnum<["ACTIVE", "BLOCKED"]>;
|
|
4
|
-
export declare const SocialProviderEnum: z.ZodEnum<["GOOGLE", "STEAM"]>;
|
|
5
|
-
export type UserRoleType = z.infer<typeof UserRoleEnum>;
|
|
6
|
-
export type UserStatusType = z.infer<typeof UserStatusEnum>;
|
|
7
|
-
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../commands/users/enums.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,YAAY,yCAAuC,CAAC;AACjE,eAAO,MAAM,cAAc,kCAAgC,CAAC;AAC5D,eAAO,MAAM,kBAAkB,gCAA8B,CAAC;AAE9D,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACxD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.SocialProviderEnum = exports.UserStatusEnum = exports.UserRoleEnum = void 0;
|
|
7
|
-
const zod_1 = __importDefault(require("zod"));
|
|
8
|
-
exports.UserRoleEnum = zod_1.default.enum(["USER", "ADMIN", "NO_AUTH"]);
|
|
9
|
-
exports.UserStatusEnum = zod_1.default.enum(["ACTIVE", "BLOCKED"]);
|
|
10
|
-
exports.SocialProviderEnum = zod_1.default.enum(["GOOGLE", "STEAM"]);
|
|
11
|
-
//# sourceMappingURL=enums.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../commands/users/enums.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AAEP,QAAA,YAAY,GAAG,aAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC;AACpD,QAAA,cAAc,GAAG,aAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC;AAC/C,QAAA,kBAAkB,GAAG,aAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/users/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./create"), exports);
|
|
18
|
-
__exportStar(require("./read"), exports);
|
|
19
|
-
__exportStar(require("./update"), exports);
|
|
20
|
-
__exportStar(require("./query"), exports);
|
|
21
|
-
__exportStar(require("./enums"), exports);
|
|
22
|
-
__exportStar(require("./endpoints"), exports);
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../commands/users/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,yCAAsB;AACtB,2CAAwB;AACxB,0CAAuB;AACvB,0CAAuB;AACvB,8CAA2B"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export declare const UsersFiltersSchema: z.ZodObject<{
|
|
3
|
-
email: z.ZodOptional<z.ZodString>;
|
|
4
|
-
id: z.ZodOptional<z.ZodNumber>;
|
|
5
|
-
role: z.ZodOptional<z.ZodEnum<["USER", "ADMIN", "NO_AUTH"]>>;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
email?: string | undefined;
|
|
8
|
-
id?: number | undefined;
|
|
9
|
-
role?: "USER" | "ADMIN" | "NO_AUTH" | undefined;
|
|
10
|
-
}, {
|
|
11
|
-
email?: string | undefined;
|
|
12
|
-
id?: number | undefined;
|
|
13
|
-
role?: "USER" | "ADMIN" | "NO_AUTH" | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
export declare const UsersSortSchema: z.ZodObject<{
|
|
16
|
-
sortBy: z.ZodDefault<z.ZodString>;
|
|
17
|
-
sortDir: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
sortBy: string;
|
|
20
|
-
sortDir: "asc" | "desc";
|
|
21
|
-
}, {
|
|
22
|
-
sortBy?: string | undefined;
|
|
23
|
-
sortDir?: "asc" | "desc" | undefined;
|
|
24
|
-
}>;
|
|
25
|
-
export declare const UsersListQuerySchema: z.ZodObject<{
|
|
26
|
-
take: z.ZodOptional<z.ZodNumber>;
|
|
27
|
-
skip: z.ZodOptional<z.ZodNumber>;
|
|
28
|
-
} & {
|
|
29
|
-
email: z.ZodOptional<z.ZodString>;
|
|
30
|
-
id: z.ZodOptional<z.ZodNumber>;
|
|
31
|
-
role: z.ZodOptional<z.ZodEnum<["USER", "ADMIN", "NO_AUTH"]>>;
|
|
32
|
-
} & {
|
|
33
|
-
sortBy: z.ZodDefault<z.ZodString>;
|
|
34
|
-
sortDir: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
35
|
-
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
sortBy: string;
|
|
37
|
-
sortDir: "asc" | "desc";
|
|
38
|
-
email?: string | undefined;
|
|
39
|
-
id?: number | undefined;
|
|
40
|
-
take?: number | undefined;
|
|
41
|
-
skip?: number | undefined;
|
|
42
|
-
role?: "USER" | "ADMIN" | "NO_AUTH" | undefined;
|
|
43
|
-
}, {
|
|
44
|
-
email?: string | undefined;
|
|
45
|
-
id?: number | undefined;
|
|
46
|
-
take?: number | undefined;
|
|
47
|
-
skip?: number | undefined;
|
|
48
|
-
sortBy?: string | undefined;
|
|
49
|
-
sortDir?: "asc" | "desc" | undefined;
|
|
50
|
-
role?: "USER" | "ADMIN" | "NO_AUTH" | undefined;
|
|
51
|
-
}>;
|
|
52
|
-
export type UsersListQuery = z.infer<typeof UsersListQuerySchema>;
|
|
53
|
-
//# sourceMappingURL=query.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../commands/users/query.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAIpB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAI7B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;EAG1B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;EAER,CAAA;AAEzB,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.UsersListQuerySchema = exports.UsersSortSchema = exports.UsersFiltersSchema = void 0;
|
|
7
|
-
const zod_1 = __importDefault(require("zod"));
|
|
8
|
-
const pagination_1 = require("../pagination");
|
|
9
|
-
const enums_1 = require("./enums");
|
|
10
|
-
exports.UsersFiltersSchema = zod_1.default.object({
|
|
11
|
-
email: zod_1.default.string().email().optional(),
|
|
12
|
-
id: zod_1.default.coerce.number().optional(),
|
|
13
|
-
role: enums_1.UserRoleEnum.optional(),
|
|
14
|
-
});
|
|
15
|
-
exports.UsersSortSchema = zod_1.default.object({
|
|
16
|
-
sortBy: zod_1.default.string().default("orderAmount"),
|
|
17
|
-
sortDir: zod_1.default.enum(["asc", "desc"]).default("desc"),
|
|
18
|
-
});
|
|
19
|
-
exports.UsersListQuerySchema = pagination_1.PaginationQuery
|
|
20
|
-
.merge(exports.UsersFiltersSchema)
|
|
21
|
-
.merge(exports.UsersSortSchema);
|
|
22
|
-
//# sourceMappingURL=query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../commands/users/query.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,8CAAgD;AAChD,mCAAuC;AAE1B,QAAA,kBAAkB,GAAG,aAAC,CAAC,MAAM,CAAC;IACzC,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IACpC,EAAE,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,oBAAY,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAEU,QAAA,eAAe,GAAG,aAAC,CAAC,MAAM,CAAC;IACtC,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC;IACzC,OAAO,EAAE,aAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;CACjD,CAAC,CAAC;AAEU,QAAA,oBAAoB,GAAG,4BAAe;KAChD,KAAK,CAAC,0BAAkB,CAAC;KACzB,KAAK,CAAC,uBAAe,CAAC,CAAA"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export declare const UserReadResponseSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodNumber;
|
|
4
|
-
username: z.ZodNullable<z.ZodString>;
|
|
5
|
-
picture: z.ZodNullable<z.ZodString>;
|
|
6
|
-
email: z.ZodNullable<z.ZodString>;
|
|
7
|
-
steamId: z.ZodNullable<z.ZodString>;
|
|
8
|
-
telegramId: z.ZodNullable<z.ZodString>;
|
|
9
|
-
password: z.ZodNullable<z.ZodString>;
|
|
10
|
-
vkId: z.ZodNullable<z.ZodString>;
|
|
11
|
-
googleId: z.ZodNullable<z.ZodString>;
|
|
12
|
-
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
13
|
-
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
14
|
-
blockedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
15
|
-
ordersCount: z.ZodOptional<z.ZodNumber>;
|
|
16
|
-
ordersAmount: z.ZodOptional<z.ZodNumber>;
|
|
17
|
-
isConfirmEmail: z.ZodBoolean;
|
|
18
|
-
isOnline: z.ZodBoolean;
|
|
19
|
-
role: z.ZodEnum<["USER", "ADMIN", "NO_AUTH"]>;
|
|
20
|
-
status: z.ZodEnum<["ACTIVE", "BLOCKED"]>;
|
|
21
|
-
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
email: string | null;
|
|
23
|
-
password: string | null;
|
|
24
|
-
status: "ACTIVE" | "BLOCKED";
|
|
25
|
-
id: number;
|
|
26
|
-
username: string | null;
|
|
27
|
-
telegramId: string | null;
|
|
28
|
-
picture: string | null;
|
|
29
|
-
steamId: string | null;
|
|
30
|
-
vkId: string | null;
|
|
31
|
-
googleId: string | null;
|
|
32
|
-
isConfirmEmail: boolean;
|
|
33
|
-
role: "USER" | "ADMIN" | "NO_AUTH";
|
|
34
|
-
isOnline: boolean;
|
|
35
|
-
createdAt?: Date | null | undefined;
|
|
36
|
-
updatedAt?: Date | null | undefined;
|
|
37
|
-
blockedAt?: Date | null | undefined;
|
|
38
|
-
ordersCount?: number | undefined;
|
|
39
|
-
ordersAmount?: number | undefined;
|
|
40
|
-
}, {
|
|
41
|
-
email: string | null;
|
|
42
|
-
password: string | null;
|
|
43
|
-
status: "ACTIVE" | "BLOCKED";
|
|
44
|
-
id: number;
|
|
45
|
-
username: string | null;
|
|
46
|
-
telegramId: string | null;
|
|
47
|
-
picture: string | null;
|
|
48
|
-
steamId: string | null;
|
|
49
|
-
vkId: string | null;
|
|
50
|
-
googleId: string | null;
|
|
51
|
-
isConfirmEmail: boolean;
|
|
52
|
-
role: "USER" | "ADMIN" | "NO_AUTH";
|
|
53
|
-
isOnline: boolean;
|
|
54
|
-
createdAt?: Date | null | undefined;
|
|
55
|
-
updatedAt?: Date | null | undefined;
|
|
56
|
-
blockedAt?: Date | null | undefined;
|
|
57
|
-
ordersCount?: number | undefined;
|
|
58
|
-
ordersAmount?: number | undefined;
|
|
59
|
-
}>;
|
|
60
|
-
export type UserReadResponse = z.infer<typeof UserReadResponseSchema>;
|
|
61
|
-
//# sourceMappingURL=read.d.ts.map
|