@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,46 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export declare const PromoCodeReadResponseSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodNumber;
|
|
4
|
-
value: z.ZodString;
|
|
5
|
-
activated: z.ZodNumber;
|
|
6
|
-
discountValue: z.ZodString;
|
|
7
|
-
startedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
8
|
-
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
9
|
-
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
10
|
-
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
11
|
-
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
12
|
-
activationLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
|
-
activationPerUserLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
-
type: z.ZodEnum<["USER", "AD", "SYSTEM"]>;
|
|
15
|
-
status: z.ZodEnum<["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED", "DELETED"]>;
|
|
16
|
-
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
value: string;
|
|
18
|
-
type: "USER" | "AD" | "SYSTEM";
|
|
19
|
-
status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
|
|
20
|
-
id: number;
|
|
21
|
-
discountValue: string;
|
|
22
|
-
activated: number;
|
|
23
|
-
createdAt?: Date | null | undefined;
|
|
24
|
-
updatedAt?: Date | null | undefined;
|
|
25
|
-
expiredAt?: Date | null | undefined;
|
|
26
|
-
startedAt?: Date | null | undefined;
|
|
27
|
-
deletedAt?: Date | null | undefined;
|
|
28
|
-
activationLimit?: number | null | undefined;
|
|
29
|
-
activationPerUserLimit?: number | null | undefined;
|
|
30
|
-
}, {
|
|
31
|
-
value: string;
|
|
32
|
-
type: "USER" | "AD" | "SYSTEM";
|
|
33
|
-
status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
|
|
34
|
-
id: number;
|
|
35
|
-
discountValue: string;
|
|
36
|
-
activated: number;
|
|
37
|
-
createdAt?: Date | null | undefined;
|
|
38
|
-
updatedAt?: Date | null | undefined;
|
|
39
|
-
expiredAt?: Date | null | undefined;
|
|
40
|
-
startedAt?: Date | null | undefined;
|
|
41
|
-
deletedAt?: Date | null | undefined;
|
|
42
|
-
activationLimit?: number | null | undefined;
|
|
43
|
-
activationPerUserLimit?: number | null | undefined;
|
|
44
|
-
}>;
|
|
45
|
-
export type PromoCodeReadResponse = z.infer<typeof PromoCodeReadResponseSchema>;
|
|
46
|
-
//# sourceMappingURL=read.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../commands/promocodes/read.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EActC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -1,24 +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.PromoCodeReadResponseSchema = void 0;
|
|
7
|
-
const zod_1 = __importDefault(require("zod"));
|
|
8
|
-
const enums_1 = require("./enums");
|
|
9
|
-
exports.PromoCodeReadResponseSchema = zod_1.default.object({
|
|
10
|
-
id: zod_1.default.coerce.number().positive(),
|
|
11
|
-
value: zod_1.default.string(),
|
|
12
|
-
activated: zod_1.default.coerce.number(),
|
|
13
|
-
discountValue: zod_1.default.string(),
|
|
14
|
-
startedAt: zod_1.default.coerce.date().nullable().optional(),
|
|
15
|
-
expiredAt: zod_1.default.coerce.date().nullable().optional(),
|
|
16
|
-
createdAt: zod_1.default.coerce.date().nullable().optional(),
|
|
17
|
-
deletedAt: zod_1.default.coerce.date().nullable().optional(),
|
|
18
|
-
updatedAt: zod_1.default.coerce.date().nullable().optional(),
|
|
19
|
-
activationLimit: zod_1.default.coerce.number().positive().nullable().optional(),
|
|
20
|
-
activationPerUserLimit: zod_1.default.coerce.number().positive().nullable().optional(),
|
|
21
|
-
type: enums_1.PromoCodeType,
|
|
22
|
-
status: enums_1.PromoCodeStatus,
|
|
23
|
-
});
|
|
24
|
-
//# sourceMappingURL=read.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../commands/promocodes/read.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,mCAAyD;AAE5C,QAAA,2BAA2B,GAAG,aAAC,CAAC,MAAM,CAAC;IAChD,EAAE,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAC5B,aAAa,EAAE,aAAC,CAAC,MAAM,EAAE;IACzB,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,eAAe,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACnE,sBAAsB,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1E,IAAI,EAAE,qBAAa;IACnB,MAAM,EAAE,uBAAe;CAC1B,CAAC,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const PromoCodeUpdateSchema: z.ZodObject<{
|
|
3
|
-
value: z.ZodOptional<z.ZodString>;
|
|
4
|
-
discountValue: z.ZodOptional<z.ZodString>;
|
|
5
|
-
startedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6
|
-
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
7
|
-
activationLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
8
|
-
activationPerUserLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9
|
-
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
10
|
-
type: z.ZodOptional<z.ZodEnum<["USER", "AD", "SYSTEM"]>>;
|
|
11
|
-
status: z.ZodOptional<z.ZodEnum<["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED", "DELETED"]>>;
|
|
12
|
-
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
value?: string | undefined;
|
|
14
|
-
type?: "USER" | "AD" | "SYSTEM" | undefined;
|
|
15
|
-
status?: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED" | undefined;
|
|
16
|
-
discountValue?: string | undefined;
|
|
17
|
-
expiredAt?: Date | null | undefined;
|
|
18
|
-
startedAt?: Date | null | undefined;
|
|
19
|
-
deletedAt?: Date | null | undefined;
|
|
20
|
-
activationLimit?: number | null | undefined;
|
|
21
|
-
activationPerUserLimit?: number | null | undefined;
|
|
22
|
-
}, {
|
|
23
|
-
value?: string | undefined;
|
|
24
|
-
type?: "USER" | "AD" | "SYSTEM" | undefined;
|
|
25
|
-
status?: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED" | undefined;
|
|
26
|
-
discountValue?: string | undefined;
|
|
27
|
-
expiredAt?: Date | null | undefined;
|
|
28
|
-
startedAt?: Date | null | undefined;
|
|
29
|
-
deletedAt?: Date | null | undefined;
|
|
30
|
-
activationLimit?: number | null | undefined;
|
|
31
|
-
activationPerUserLimit?: number | null | undefined;
|
|
32
|
-
}>;
|
|
33
|
-
export type PromoCodeUpdate = z.infer<typeof PromoCodeUpdateSchema>;
|
|
34
|
-
//# sourceMappingURL=update.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../commands/promocodes/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUhC,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PromoCodeUpdateSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const enums_1 = require("./enums");
|
|
6
|
-
exports.PromoCodeUpdateSchema = zod_1.z.object({
|
|
7
|
-
value: zod_1.z.string().optional(),
|
|
8
|
-
discountValue: zod_1.z.string().optional(),
|
|
9
|
-
startedAt: zod_1.z.coerce.date().nullable().optional(),
|
|
10
|
-
expiredAt: zod_1.z.coerce.date().nullable().optional(),
|
|
11
|
-
activationLimit: zod_1.z.coerce.number().positive().nullable().optional(),
|
|
12
|
-
activationPerUserLimit: zod_1.z.coerce.number().positive().nullable().optional(),
|
|
13
|
-
deletedAt: zod_1.z.coerce.date().nullable().optional(),
|
|
14
|
-
type: enums_1.PromoCodeType.optional(),
|
|
15
|
-
status: enums_1.PromoCodeStatus.optional(),
|
|
16
|
-
});
|
|
17
|
-
//# sourceMappingURL=update.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../commands/promocodes/update.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mCAAyD;AAE5C,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACnD,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC7C,eAAe,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACnE,sBAAsB,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1E,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,IAAI,EAAE,qBAAa,CAAC,QAAQ,EAAE;IAC9B,MAAM,EAAE,uBAAe,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAA"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const RefreshSessionCreateSchema: z.ZodObject<{
|
|
3
|
-
userId: z.ZodNumber;
|
|
4
|
-
refreshToken: z.ZodString;
|
|
5
|
-
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6
|
-
status: z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>;
|
|
7
|
-
IP: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
-
UA: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
-
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
|
|
11
|
-
userId: number;
|
|
12
|
-
refreshToken: string;
|
|
13
|
-
expiredAt?: Date | null | undefined;
|
|
14
|
-
IP?: string | null | undefined;
|
|
15
|
-
UA?: string | null | undefined;
|
|
16
|
-
}, {
|
|
17
|
-
status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
|
|
18
|
-
userId: number;
|
|
19
|
-
refreshToken: string;
|
|
20
|
-
expiredAt?: Date | null | undefined;
|
|
21
|
-
IP?: string | null | undefined;
|
|
22
|
-
UA?: string | null | undefined;
|
|
23
|
-
}>;
|
|
24
|
-
export type RefreshSessionCreate = z.infer<typeof RefreshSessionCreateSchema>;
|
|
25
|
-
//# sourceMappingURL=create.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../commands/refresh-sessions/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;EAOrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RefreshSessionCreateSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const enums_1 = require("./enums");
|
|
6
|
-
exports.RefreshSessionCreateSchema = zod_1.z.object({
|
|
7
|
-
userId: zod_1.z.number(),
|
|
8
|
-
refreshToken: zod_1.z.string(),
|
|
9
|
-
expiredAt: zod_1.z.coerce.date().nullable().optional(),
|
|
10
|
-
status: enums_1.RefreshSessionStatus,
|
|
11
|
-
IP: zod_1.z.string().nullable().optional(),
|
|
12
|
-
UA: zod_1.z.string().nullable().optional(),
|
|
13
|
-
});
|
|
14
|
-
//# sourceMappingURL=create.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../commands/refresh-sessions/create.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mCAA+C;AAElC,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,MAAM,EAAE,4BAAoB;IAC5B,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACpC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC"}
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const RefreshSessionEndpoints: {
|
|
3
|
-
create: {
|
|
4
|
-
method: "POST";
|
|
5
|
-
path: string;
|
|
6
|
-
request: z.ZodObject<{
|
|
7
|
-
userId: z.ZodNumber;
|
|
8
|
-
refreshToken: z.ZodString;
|
|
9
|
-
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
10
|
-
status: z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>;
|
|
11
|
-
IP: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
-
UA: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
-
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
|
|
15
|
-
userId: number;
|
|
16
|
-
refreshToken: string;
|
|
17
|
-
expiredAt?: Date | null | undefined;
|
|
18
|
-
IP?: string | null | undefined;
|
|
19
|
-
UA?: string | null | undefined;
|
|
20
|
-
}, {
|
|
21
|
-
status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
|
|
22
|
-
userId: number;
|
|
23
|
-
refreshToken: string;
|
|
24
|
-
expiredAt?: Date | null | undefined;
|
|
25
|
-
IP?: string | null | undefined;
|
|
26
|
-
UA?: string | null | undefined;
|
|
27
|
-
}>;
|
|
28
|
-
response: z.ZodObject<{
|
|
29
|
-
id: z.ZodNumber;
|
|
30
|
-
userId: z.ZodNumber;
|
|
31
|
-
refreshToken: z.ZodString;
|
|
32
|
-
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
33
|
-
status: z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>;
|
|
34
|
-
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
35
|
-
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
36
|
-
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
|
|
38
|
-
id: number;
|
|
39
|
-
userId: number;
|
|
40
|
-
refreshToken: string;
|
|
41
|
-
createdAt?: Date | null | undefined;
|
|
42
|
-
updatedAt?: Date | null | undefined;
|
|
43
|
-
expiredAt?: Date | null | undefined;
|
|
44
|
-
}, {
|
|
45
|
-
status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
|
|
46
|
-
id: number;
|
|
47
|
-
userId: number;
|
|
48
|
-
refreshToken: string;
|
|
49
|
-
createdAt?: Date | null | undefined;
|
|
50
|
-
updatedAt?: Date | null | undefined;
|
|
51
|
-
expiredAt?: Date | null | undefined;
|
|
52
|
-
}>;
|
|
53
|
-
};
|
|
54
|
-
list: {
|
|
55
|
-
method: "GET";
|
|
56
|
-
path: string;
|
|
57
|
-
request: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
58
|
-
response: z.ZodArray<z.ZodObject<{
|
|
59
|
-
id: z.ZodNumber;
|
|
60
|
-
userId: z.ZodNumber;
|
|
61
|
-
refreshToken: z.ZodString;
|
|
62
|
-
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
63
|
-
status: z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>;
|
|
64
|
-
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
65
|
-
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
66
|
-
}, "strip", z.ZodTypeAny, {
|
|
67
|
-
status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
|
|
68
|
-
id: number;
|
|
69
|
-
userId: number;
|
|
70
|
-
refreshToken: string;
|
|
71
|
-
createdAt?: Date | null | undefined;
|
|
72
|
-
updatedAt?: Date | null | undefined;
|
|
73
|
-
expiredAt?: Date | null | undefined;
|
|
74
|
-
}, {
|
|
75
|
-
status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
|
|
76
|
-
id: number;
|
|
77
|
-
userId: number;
|
|
78
|
-
refreshToken: string;
|
|
79
|
-
createdAt?: Date | null | undefined;
|
|
80
|
-
updatedAt?: Date | null | undefined;
|
|
81
|
-
expiredAt?: Date | null | undefined;
|
|
82
|
-
}>, "many">;
|
|
83
|
-
};
|
|
84
|
-
getById: {
|
|
85
|
-
method: "GET";
|
|
86
|
-
path: string;
|
|
87
|
-
request: z.ZodObject<{
|
|
88
|
-
id: z.ZodNumber;
|
|
89
|
-
}, "strip", z.ZodTypeAny, {
|
|
90
|
-
id: number;
|
|
91
|
-
}, {
|
|
92
|
-
id: number;
|
|
93
|
-
}>;
|
|
94
|
-
response: z.ZodObject<{
|
|
95
|
-
id: z.ZodNumber;
|
|
96
|
-
userId: z.ZodNumber;
|
|
97
|
-
refreshToken: z.ZodString;
|
|
98
|
-
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
99
|
-
status: z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>;
|
|
100
|
-
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
101
|
-
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
102
|
-
}, "strip", z.ZodTypeAny, {
|
|
103
|
-
status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
|
|
104
|
-
id: number;
|
|
105
|
-
userId: number;
|
|
106
|
-
refreshToken: string;
|
|
107
|
-
createdAt?: Date | null | undefined;
|
|
108
|
-
updatedAt?: Date | null | undefined;
|
|
109
|
-
expiredAt?: Date | null | undefined;
|
|
110
|
-
}, {
|
|
111
|
-
status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
|
|
112
|
-
id: number;
|
|
113
|
-
userId: number;
|
|
114
|
-
refreshToken: string;
|
|
115
|
-
createdAt?: Date | null | undefined;
|
|
116
|
-
updatedAt?: Date | null | undefined;
|
|
117
|
-
expiredAt?: Date | null | undefined;
|
|
118
|
-
}>;
|
|
119
|
-
};
|
|
120
|
-
update: {
|
|
121
|
-
method: "PATCH";
|
|
122
|
-
path: string;
|
|
123
|
-
request: z.ZodObject<{
|
|
124
|
-
id: z.ZodNumber;
|
|
125
|
-
body: z.ZodObject<{
|
|
126
|
-
userId: z.ZodOptional<z.ZodNumber>;
|
|
127
|
-
refreshToken: z.ZodOptional<z.ZodString>;
|
|
128
|
-
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
129
|
-
status: z.ZodOptional<z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>>;
|
|
130
|
-
IP: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
131
|
-
UA: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
132
|
-
}, "strip", z.ZodTypeAny, {
|
|
133
|
-
status?: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED" | undefined;
|
|
134
|
-
userId?: number | undefined;
|
|
135
|
-
expiredAt?: Date | null | undefined;
|
|
136
|
-
refreshToken?: string | undefined;
|
|
137
|
-
IP?: string | null | undefined;
|
|
138
|
-
UA?: string | null | undefined;
|
|
139
|
-
}, {
|
|
140
|
-
status?: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED" | undefined;
|
|
141
|
-
userId?: number | undefined;
|
|
142
|
-
expiredAt?: Date | null | undefined;
|
|
143
|
-
refreshToken?: string | undefined;
|
|
144
|
-
IP?: string | null | undefined;
|
|
145
|
-
UA?: string | null | undefined;
|
|
146
|
-
}>;
|
|
147
|
-
}, "strip", z.ZodTypeAny, {
|
|
148
|
-
id: number;
|
|
149
|
-
body: {
|
|
150
|
-
status?: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED" | undefined;
|
|
151
|
-
userId?: number | undefined;
|
|
152
|
-
expiredAt?: Date | null | undefined;
|
|
153
|
-
refreshToken?: string | undefined;
|
|
154
|
-
IP?: string | null | undefined;
|
|
155
|
-
UA?: string | null | undefined;
|
|
156
|
-
};
|
|
157
|
-
}, {
|
|
158
|
-
id: number;
|
|
159
|
-
body: {
|
|
160
|
-
status?: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED" | undefined;
|
|
161
|
-
userId?: number | undefined;
|
|
162
|
-
expiredAt?: Date | null | undefined;
|
|
163
|
-
refreshToken?: string | undefined;
|
|
164
|
-
IP?: string | null | undefined;
|
|
165
|
-
UA?: string | null | undefined;
|
|
166
|
-
};
|
|
167
|
-
}>;
|
|
168
|
-
response: z.ZodObject<{
|
|
169
|
-
id: z.ZodNumber;
|
|
170
|
-
userId: z.ZodNumber;
|
|
171
|
-
refreshToken: z.ZodString;
|
|
172
|
-
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
173
|
-
status: z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>;
|
|
174
|
-
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
175
|
-
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
176
|
-
}, "strip", z.ZodTypeAny, {
|
|
177
|
-
status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
|
|
178
|
-
id: number;
|
|
179
|
-
userId: number;
|
|
180
|
-
refreshToken: string;
|
|
181
|
-
createdAt?: Date | null | undefined;
|
|
182
|
-
updatedAt?: Date | null | undefined;
|
|
183
|
-
expiredAt?: Date | null | undefined;
|
|
184
|
-
}, {
|
|
185
|
-
status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
|
|
186
|
-
id: number;
|
|
187
|
-
userId: number;
|
|
188
|
-
refreshToken: string;
|
|
189
|
-
createdAt?: Date | null | undefined;
|
|
190
|
-
updatedAt?: Date | null | undefined;
|
|
191
|
-
expiredAt?: Date | null | undefined;
|
|
192
|
-
}>;
|
|
193
|
-
};
|
|
194
|
-
revoke: {
|
|
195
|
-
method: "DELETE";
|
|
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
|
-
success: z.ZodBoolean;
|
|
206
|
-
}, "strip", z.ZodTypeAny, {
|
|
207
|
-
success: boolean;
|
|
208
|
-
}, {
|
|
209
|
-
success: boolean;
|
|
210
|
-
}>;
|
|
211
|
-
};
|
|
212
|
-
};
|
|
213
|
-
export type RefreshSessionEndpointKey = keyof typeof RefreshSessionEndpoints;
|
|
214
|
-
export type GetRefreshSessionRequest<K extends RefreshSessionEndpointKey> = z.infer<typeof RefreshSessionEndpoints[K]["request"]>;
|
|
215
|
-
export type GetRefreshSessionResponse<K extends RefreshSessionEndpointKey> = z.infer<typeof RefreshSessionEndpoints[K]["response"]>;
|
|
216
|
-
//# sourceMappingURL=endpoints.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../commands/refresh-sessions/endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCQ,CAAC;AAE7C,MAAM,MAAM,yBAAyB,GAAG,MAAM,OAAO,uBAAuB,CAAC;AAE7E,MAAM,MAAM,wBAAwB,CAAC,CAAC,SAAS,yBAAyB,IACpE,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAE1D,MAAM,MAAM,yBAAyB,CAAC,CAAC,SAAS,yBAAyB,IACrE,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RefreshSessionEndpoints = 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
|
-
exports.RefreshSessionEndpoints = {
|
|
9
|
-
create: {
|
|
10
|
-
method: "POST",
|
|
11
|
-
path: "/refresh-sessions",
|
|
12
|
-
request: create_1.RefreshSessionCreateSchema,
|
|
13
|
-
response: read_1.RefreshSessionReadResponseSchema,
|
|
14
|
-
},
|
|
15
|
-
list: {
|
|
16
|
-
method: "GET",
|
|
17
|
-
path: "/refresh-sessions",
|
|
18
|
-
request: zod_1.z.object({}),
|
|
19
|
-
response: zod_1.z.array(read_1.RefreshSessionReadResponseSchema),
|
|
20
|
-
},
|
|
21
|
-
getById: {
|
|
22
|
-
method: "GET",
|
|
23
|
-
path: "/refresh-sessions/:id",
|
|
24
|
-
request: zod_1.z.object({
|
|
25
|
-
id: zod_1.z.coerce.number().positive(),
|
|
26
|
-
}),
|
|
27
|
-
response: read_1.RefreshSessionReadResponseSchema,
|
|
28
|
-
},
|
|
29
|
-
update: {
|
|
30
|
-
method: "PATCH",
|
|
31
|
-
path: "/refresh-sessions/:id",
|
|
32
|
-
request: zod_1.z.object({
|
|
33
|
-
id: zod_1.z.coerce.number().positive(),
|
|
34
|
-
body: update_1.RefreshSessionUpdateSchema,
|
|
35
|
-
}),
|
|
36
|
-
response: read_1.RefreshSessionReadResponseSchema,
|
|
37
|
-
},
|
|
38
|
-
revoke: {
|
|
39
|
-
method: "DELETE",
|
|
40
|
-
path: "/refresh-sessions/:id",
|
|
41
|
-
request: zod_1.z.object({
|
|
42
|
-
id: zod_1.z.coerce.number().positive(),
|
|
43
|
-
}),
|
|
44
|
-
response: zod_1.z.object({ success: zod_1.z.boolean() }),
|
|
45
|
-
},
|
|
46
|
-
};
|
|
47
|
-
//# sourceMappingURL=endpoints.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../../commands/refresh-sessions/endpoints.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,qCAAsD;AACtD,iCAA0D;AAC1D,qCAAsD;AAEzC,QAAA,uBAAuB,GAAG;IACnC,MAAM,EAAE;QACJ,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,mCAA0B;QACnC,QAAQ,EAAE,uCAAgC;KAC7C;IACD,IAAI,EAAE;QACF,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC;QACrB,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,uCAAgC,CAAC;KACtD;IACD,OAAO,EAAE;QACL,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,uBAAuB;QAC7B,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;YACd,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SACnC,CAAC;QACF,QAAQ,EAAE,uCAAgC;KAC7C;IACD,MAAM,EAAE;QACJ,MAAM,EAAE,OAAO;QACf,IAAI,EAAE,uBAAuB;QAC7B,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;YACd,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAChC,IAAI,EAAE,mCAA0B;SACnC,CAAC;QACF,QAAQ,EAAE,uCAAgC;KAC7C;IACD,MAAM,EAAE;QACJ,MAAM,EAAE,QAAQ;QAChB,IAAI,EAAE,uBAAuB;QAC7B,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;YACd,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SACnC,CAAC;QACF,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE,EAAE,CAAC;KAC/C;CACuC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../commands/refresh-sessions/enums.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,oBAAoB,2DAAyD,CAAC;AAC3F,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -1,9 +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.RefreshSessionStatus = void 0;
|
|
7
|
-
const zod_1 = __importDefault(require("zod"));
|
|
8
|
-
exports.RefreshSessionStatus = zod_1.default.enum(['ACTIVE', 'EXPIRED', 'BLOCKED', 'TERMINATED']);
|
|
9
|
-
//# sourceMappingURL=enums.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../commands/refresh-sessions/enums.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AAEP,QAAA,oBAAoB,GAAG,aAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/refresh-sessions/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA"}
|
|
@@ -1,22 +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("./enums"), exports);
|
|
21
|
-
__exportStar(require("./endpoints"), exports);
|
|
22
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../commands/refresh-sessions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,yCAAsB;AACtB,2CAAwB;AACxB,0CAAuB;AACvB,8CAA2B"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export declare const RefreshSessionReadResponseSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodNumber;
|
|
4
|
-
userId: z.ZodNumber;
|
|
5
|
-
refreshToken: z.ZodString;
|
|
6
|
-
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
7
|
-
status: z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>;
|
|
8
|
-
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
9
|
-
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
|
|
12
|
-
id: number;
|
|
13
|
-
userId: number;
|
|
14
|
-
refreshToken: string;
|
|
15
|
-
createdAt?: Date | null | undefined;
|
|
16
|
-
updatedAt?: Date | null | undefined;
|
|
17
|
-
expiredAt?: Date | null | undefined;
|
|
18
|
-
}, {
|
|
19
|
-
status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
|
|
20
|
-
id: number;
|
|
21
|
-
userId: number;
|
|
22
|
-
refreshToken: string;
|
|
23
|
-
createdAt?: Date | null | undefined;
|
|
24
|
-
updatedAt?: Date | null | undefined;
|
|
25
|
-
expiredAt?: Date | null | undefined;
|
|
26
|
-
}>;
|
|
27
|
-
export type RefreshSessionReadResponse = z.infer<typeof RefreshSessionReadResponseSchema>;
|
|
28
|
-
//# sourceMappingURL=read.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../commands/refresh-sessions/read.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;EAQ3C,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
|
@@ -1,18 +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.RefreshSessionReadResponseSchema = void 0;
|
|
7
|
-
const zod_1 = __importDefault(require("zod"));
|
|
8
|
-
const enums_1 = require("./enums");
|
|
9
|
-
exports.RefreshSessionReadResponseSchema = zod_1.default.object({
|
|
10
|
-
id: zod_1.default.number().positive(),
|
|
11
|
-
userId: zod_1.default.number().positive(),
|
|
12
|
-
refreshToken: zod_1.default.string(),
|
|
13
|
-
expiredAt: zod_1.default.coerce.date().nullable().optional(),
|
|
14
|
-
status: enums_1.RefreshSessionStatus,
|
|
15
|
-
createdAt: zod_1.default.coerce.date().nullable().optional(),
|
|
16
|
-
updatedAt: zod_1.default.coerce.date().nullable().optional(),
|
|
17
|
-
});
|
|
18
|
-
//# sourceMappingURL=read.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../commands/refresh-sessions/read.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,mCAA+C;AAElC,QAAA,gCAAgC,GAAG,aAAC,CAAC,MAAM,CAAC;IACrD,EAAE,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE;IACxB,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,MAAM,EAAE,4BAAoB;IAC5B,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACnD,CAAC,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export declare const RefreshSessionUpdateSchema: z.ZodObject<{
|
|
3
|
-
userId: z.ZodOptional<z.ZodNumber>;
|
|
4
|
-
refreshToken: z.ZodOptional<z.ZodString>;
|
|
5
|
-
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6
|
-
status: z.ZodOptional<z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>>;
|
|
7
|
-
IP: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
-
UA: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
-
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
status?: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED" | undefined;
|
|
11
|
-
userId?: number | undefined;
|
|
12
|
-
expiredAt?: Date | null | undefined;
|
|
13
|
-
refreshToken?: string | undefined;
|
|
14
|
-
IP?: string | null | undefined;
|
|
15
|
-
UA?: string | null | undefined;
|
|
16
|
-
}, {
|
|
17
|
-
status?: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED" | undefined;
|
|
18
|
-
userId?: number | undefined;
|
|
19
|
-
expiredAt?: Date | null | undefined;
|
|
20
|
-
refreshToken?: string | undefined;
|
|
21
|
-
IP?: string | null | undefined;
|
|
22
|
-
UA?: string | null | undefined;
|
|
23
|
-
}>;
|
|
24
|
-
export type RefreshSessionUpdate = z.infer<typeof RefreshSessionUpdateSchema>;
|
|
25
|
-
//# sourceMappingURL=update.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../commands/refresh-sessions/update.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;EAOrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -1,17 +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.RefreshSessionUpdateSchema = void 0;
|
|
7
|
-
const zod_1 = __importDefault(require("zod"));
|
|
8
|
-
const enums_1 = require("./enums");
|
|
9
|
-
exports.RefreshSessionUpdateSchema = zod_1.default.object({
|
|
10
|
-
userId: zod_1.default.number().optional(),
|
|
11
|
-
refreshToken: zod_1.default.string().optional(),
|
|
12
|
-
expiredAt: zod_1.default.coerce.date().nullable().optional(),
|
|
13
|
-
status: enums_1.RefreshSessionStatus.optional(),
|
|
14
|
-
IP: zod_1.default.string().nullable().optional(),
|
|
15
|
-
UA: zod_1.default.string().nullable().optional(),
|
|
16
|
-
});
|
|
17
|
-
//# sourceMappingURL=update.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../commands/refresh-sessions/update.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,mCAA+C;AAElC,QAAA,0BAA0B,GAAG,aAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,MAAM,EAAE,4BAAoB,CAAC,QAAQ,EAAE;IACvC,EAAE,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACpC,EAAE,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC"}
|