@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,109 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const SettingsEndpoints: {
|
|
3
|
-
getAll: {
|
|
4
|
-
method: "GET";
|
|
5
|
-
path: string;
|
|
6
|
-
request: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
7
|
-
response: z.ZodObject<{
|
|
8
|
-
desslyDiscount: z.ZodString;
|
|
9
|
-
serviceEnabled: z.ZodBoolean;
|
|
10
|
-
worksEnabled: z.ZodBoolean;
|
|
11
|
-
paymentsEnabled: z.ZodBoolean;
|
|
12
|
-
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
desslyDiscount: string;
|
|
14
|
-
serviceEnabled: boolean;
|
|
15
|
-
worksEnabled: boolean;
|
|
16
|
-
paymentsEnabled: boolean;
|
|
17
|
-
}, {
|
|
18
|
-
desslyDiscount: string;
|
|
19
|
-
serviceEnabled: boolean;
|
|
20
|
-
worksEnabled: boolean;
|
|
21
|
-
paymentsEnabled: boolean;
|
|
22
|
-
}>;
|
|
23
|
-
};
|
|
24
|
-
getOne: {
|
|
25
|
-
method: "GET";
|
|
26
|
-
path: string;
|
|
27
|
-
request: z.ZodObject<{
|
|
28
|
-
key: z.ZodString;
|
|
29
|
-
}, "strip", z.ZodTypeAny, {
|
|
30
|
-
key: string;
|
|
31
|
-
}, {
|
|
32
|
-
key: string;
|
|
33
|
-
}>;
|
|
34
|
-
response: z.ZodObject<{
|
|
35
|
-
key: z.ZodString;
|
|
36
|
-
value: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
|
|
37
|
-
}, "strip", z.ZodTypeAny, {
|
|
38
|
-
value: string | boolean;
|
|
39
|
-
key: string;
|
|
40
|
-
}, {
|
|
41
|
-
value: string | boolean;
|
|
42
|
-
key: string;
|
|
43
|
-
}>;
|
|
44
|
-
};
|
|
45
|
-
updateAll: {
|
|
46
|
-
method: "PUT";
|
|
47
|
-
path: string;
|
|
48
|
-
request: z.ZodObject<{
|
|
49
|
-
desslyDiscount: z.ZodOptional<z.ZodString>;
|
|
50
|
-
serviceEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
-
worksEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
52
|
-
paymentsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
-
}, "strip", z.ZodTypeAny, {
|
|
54
|
-
desslyDiscount?: string | undefined;
|
|
55
|
-
serviceEnabled?: boolean | undefined;
|
|
56
|
-
worksEnabled?: boolean | undefined;
|
|
57
|
-
paymentsEnabled?: boolean | undefined;
|
|
58
|
-
}, {
|
|
59
|
-
desslyDiscount?: string | undefined;
|
|
60
|
-
serviceEnabled?: boolean | undefined;
|
|
61
|
-
worksEnabled?: boolean | undefined;
|
|
62
|
-
paymentsEnabled?: boolean | undefined;
|
|
63
|
-
}>;
|
|
64
|
-
response: z.ZodObject<{
|
|
65
|
-
desslyDiscount: z.ZodString;
|
|
66
|
-
serviceEnabled: z.ZodBoolean;
|
|
67
|
-
worksEnabled: z.ZodBoolean;
|
|
68
|
-
paymentsEnabled: z.ZodBoolean;
|
|
69
|
-
}, "strip", z.ZodTypeAny, {
|
|
70
|
-
desslyDiscount: string;
|
|
71
|
-
serviceEnabled: boolean;
|
|
72
|
-
worksEnabled: boolean;
|
|
73
|
-
paymentsEnabled: boolean;
|
|
74
|
-
}, {
|
|
75
|
-
desslyDiscount: string;
|
|
76
|
-
serviceEnabled: boolean;
|
|
77
|
-
worksEnabled: boolean;
|
|
78
|
-
paymentsEnabled: boolean;
|
|
79
|
-
}>;
|
|
80
|
-
};
|
|
81
|
-
updateOne: {
|
|
82
|
-
method: "PUT";
|
|
83
|
-
path: string;
|
|
84
|
-
request: z.ZodObject<{
|
|
85
|
-
key: z.ZodString;
|
|
86
|
-
value: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
|
|
87
|
-
}, "strip", z.ZodTypeAny, {
|
|
88
|
-
value: string | boolean;
|
|
89
|
-
key: string;
|
|
90
|
-
}, {
|
|
91
|
-
value: string | boolean;
|
|
92
|
-
key: string;
|
|
93
|
-
}>;
|
|
94
|
-
response: z.ZodObject<{
|
|
95
|
-
key: z.ZodString;
|
|
96
|
-
value: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
|
|
97
|
-
}, "strip", z.ZodTypeAny, {
|
|
98
|
-
value: string | boolean;
|
|
99
|
-
key: string;
|
|
100
|
-
}, {
|
|
101
|
-
value: string | boolean;
|
|
102
|
-
key: string;
|
|
103
|
-
}>;
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
export type SettingsEndpointKey = keyof typeof SettingsEndpoints;
|
|
107
|
-
export type GetSettingsRequest<K extends SettingsEndpointKey> = z.infer<typeof SettingsEndpoints[K]["request"]>;
|
|
108
|
-
export type GetSettingsResponse<K extends SettingsEndpointKey> = z.infer<typeof SettingsEndpoints[K]["response"]>;
|
|
109
|
-
//# sourceMappingURL=endpoints.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../commands/settings/endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCc,CAAC;AAE7C,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAEjE,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,mBAAmB,IAAI,CAAC,CAAC,KAAK,CACnE,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CACzC,CAAC;AAEF,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,mBAAmB,IAAI,CAAC,CAAC,KAAK,CACpE,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAC1C,CAAC"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SettingsEndpoints = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const read_1 = require("./read");
|
|
6
|
-
const update_1 = require("./update");
|
|
7
|
-
exports.SettingsEndpoints = {
|
|
8
|
-
getAll: {
|
|
9
|
-
method: "GET",
|
|
10
|
-
path: "/settings",
|
|
11
|
-
request: zod_1.z.object({}),
|
|
12
|
-
response: read_1.SettingsReadResponseSchema,
|
|
13
|
-
},
|
|
14
|
-
getOne: {
|
|
15
|
-
method: "GET",
|
|
16
|
-
path: "/settings/:key",
|
|
17
|
-
request: zod_1.z.object({
|
|
18
|
-
key: zod_1.z.string(),
|
|
19
|
-
}),
|
|
20
|
-
response: zod_1.z.object({
|
|
21
|
-
key: zod_1.z.string(),
|
|
22
|
-
value: zod_1.z.union([zod_1.z.string(), zod_1.z.boolean()]),
|
|
23
|
-
}),
|
|
24
|
-
},
|
|
25
|
-
updateAll: {
|
|
26
|
-
method: "PUT",
|
|
27
|
-
path: "/settings",
|
|
28
|
-
request: update_1.SettingsUpdateRequestSchema,
|
|
29
|
-
response: read_1.SettingsReadResponseSchema,
|
|
30
|
-
},
|
|
31
|
-
updateOne: {
|
|
32
|
-
method: "PUT",
|
|
33
|
-
path: "/settings/:key",
|
|
34
|
-
request: zod_1.z.object({
|
|
35
|
-
key: zod_1.z.string(),
|
|
36
|
-
value: zod_1.z.union([zod_1.z.string(), zod_1.z.boolean()]),
|
|
37
|
-
}),
|
|
38
|
-
response: zod_1.z.object({
|
|
39
|
-
key: zod_1.z.string(),
|
|
40
|
-
value: zod_1.z.union([zod_1.z.string(), zod_1.z.boolean()]),
|
|
41
|
-
}),
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
|
-
//# sourceMappingURL=endpoints.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../../commands/settings/endpoints.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,iCAAoD;AACpD,qCAAuD;AAE1C,QAAA,iBAAiB,GAAG;IAC7B,MAAM,EAAE;QACJ,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC;QACrB,QAAQ,EAAE,iCAA0B;KACvC;IACD,MAAM,EAAE;QACJ,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;YACd,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;SAClB,CAAC;QACF,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC;YACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;YACf,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC;SAC5C,CAAC;KACL;IACD,SAAS,EAAE;QACP,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,oCAA2B;QACpC,QAAQ,EAAE,iCAA0B;KACvC;IACD,SAAS,EAAE;QACP,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;YACd,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;YACf,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC;SAC5C,CAAC;QACF,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC;YACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;YACf,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC;SAC5C,CAAC;KACL;CACuC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/settings/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
|
|
@@ -1,20 +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("./read"), exports);
|
|
18
|
-
__exportStar(require("./update"), exports);
|
|
19
|
-
__exportStar(require("./endpoints"), exports);
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../commands/settings/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,2CAAyB;AACzB,8CAA4B"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const SettingsReadResponseSchema: z.ZodObject<{
|
|
3
|
-
desslyDiscount: z.ZodString;
|
|
4
|
-
serviceEnabled: z.ZodBoolean;
|
|
5
|
-
worksEnabled: z.ZodBoolean;
|
|
6
|
-
paymentsEnabled: z.ZodBoolean;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
desslyDiscount: string;
|
|
9
|
-
serviceEnabled: boolean;
|
|
10
|
-
worksEnabled: boolean;
|
|
11
|
-
paymentsEnabled: boolean;
|
|
12
|
-
}, {
|
|
13
|
-
desslyDiscount: string;
|
|
14
|
-
serviceEnabled: boolean;
|
|
15
|
-
worksEnabled: boolean;
|
|
16
|
-
paymentsEnabled: boolean;
|
|
17
|
-
}>;
|
|
18
|
-
export type SettingsReadResponse = z.infer<typeof SettingsReadResponseSchema>;
|
|
19
|
-
//# sourceMappingURL=read.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../commands/settings/read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;EAKrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SettingsReadResponseSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.SettingsReadResponseSchema = zod_1.z.object({
|
|
6
|
-
desslyDiscount: zod_1.z.string(),
|
|
7
|
-
serviceEnabled: zod_1.z.boolean(),
|
|
8
|
-
worksEnabled: zod_1.z.boolean(),
|
|
9
|
-
paymentsEnabled: zod_1.z.boolean(),
|
|
10
|
-
});
|
|
11
|
-
//# sourceMappingURL=read.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../commands/settings/read.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,cAAc,EAAE,OAAC,CAAC,OAAO,EAAE;IAC3B,YAAY,EAAE,OAAC,CAAC,OAAO,EAAE;IACzB,eAAe,EAAE,OAAC,CAAC,OAAO,EAAE;CAC/B,CAAC,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const SettingsUpdateRequestSchema: z.ZodObject<{
|
|
3
|
-
desslyDiscount: z.ZodOptional<z.ZodString>;
|
|
4
|
-
serviceEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
5
|
-
worksEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
-
paymentsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
desslyDiscount?: string | undefined;
|
|
9
|
-
serviceEnabled?: boolean | undefined;
|
|
10
|
-
worksEnabled?: boolean | undefined;
|
|
11
|
-
paymentsEnabled?: boolean | undefined;
|
|
12
|
-
}, {
|
|
13
|
-
desslyDiscount?: string | undefined;
|
|
14
|
-
serviceEnabled?: boolean | undefined;
|
|
15
|
-
worksEnabled?: boolean | undefined;
|
|
16
|
-
paymentsEnabled?: boolean | undefined;
|
|
17
|
-
}>;
|
|
18
|
-
export type SettingsUpdateRequest = z.infer<typeof SettingsUpdateRequestSchema>;
|
|
19
|
-
//# sourceMappingURL=update.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../commands/settings/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;EAKtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SettingsUpdateRequestSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.SettingsUpdateRequestSchema = zod_1.z.object({
|
|
6
|
-
desslyDiscount: zod_1.z.string().optional(),
|
|
7
|
-
serviceEnabled: zod_1.z.boolean().optional(),
|
|
8
|
-
worksEnabled: zod_1.z.boolean().optional(),
|
|
9
|
-
paymentsEnabled: zod_1.z.boolean().optional(),
|
|
10
|
-
});
|
|
11
|
-
//# sourceMappingURL=update.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../commands/settings/update.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,cAAc,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACtC,YAAY,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACpC,eAAe,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAC"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const StatsEndpoints: {
|
|
3
|
-
list: {
|
|
4
|
-
method: "GET";
|
|
5
|
-
path: string;
|
|
6
|
-
request: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
7
|
-
period: z.ZodDefault<z.ZodEnum<["day", "week", "month", "year", "custom"]>>;
|
|
8
|
-
start: z.ZodOptional<z.ZodString>;
|
|
9
|
-
end: z.ZodOptional<z.ZodString>;
|
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
period: "day" | "week" | "month" | "year" | "custom";
|
|
12
|
-
start?: string | undefined;
|
|
13
|
-
end?: string | undefined;
|
|
14
|
-
}, {
|
|
15
|
-
period?: "day" | "week" | "month" | "year" | "custom" | undefined;
|
|
16
|
-
start?: string | undefined;
|
|
17
|
-
end?: string | undefined;
|
|
18
|
-
}>, {
|
|
19
|
-
period: "day" | "week" | "month" | "year" | "custom";
|
|
20
|
-
start?: string | undefined;
|
|
21
|
-
end?: string | undefined;
|
|
22
|
-
}, {
|
|
23
|
-
period?: "day" | "week" | "month" | "year" | "custom" | undefined;
|
|
24
|
-
start?: string | undefined;
|
|
25
|
-
end?: string | undefined;
|
|
26
|
-
}>, {
|
|
27
|
-
period: "day" | "week" | "month" | "year" | "custom";
|
|
28
|
-
start?: string | undefined;
|
|
29
|
-
end?: string | undefined;
|
|
30
|
-
}, {
|
|
31
|
-
period?: "day" | "week" | "month" | "year" | "custom" | undefined;
|
|
32
|
-
start?: string | undefined;
|
|
33
|
-
end?: string | undefined;
|
|
34
|
-
}>;
|
|
35
|
-
response: z.ZodObject<{
|
|
36
|
-
usersCount: z.ZodNumber;
|
|
37
|
-
ordersCount: z.ZodNumber;
|
|
38
|
-
totalAmount: z.ZodNumber;
|
|
39
|
-
acquiringCommission: z.ZodNumber;
|
|
40
|
-
serviceCommission: z.ZodNumber;
|
|
41
|
-
totalAmountWithCommission: z.ZodNumber;
|
|
42
|
-
periodStart: z.ZodOptional<z.ZodString>;
|
|
43
|
-
periodEnd: z.ZodOptional<z.ZodString>;
|
|
44
|
-
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
serviceCommission: number;
|
|
46
|
-
ordersCount: number;
|
|
47
|
-
usersCount: number;
|
|
48
|
-
totalAmount: number;
|
|
49
|
-
acquiringCommission: number;
|
|
50
|
-
totalAmountWithCommission: number;
|
|
51
|
-
periodStart?: string | undefined;
|
|
52
|
-
periodEnd?: string | undefined;
|
|
53
|
-
}, {
|
|
54
|
-
serviceCommission: number;
|
|
55
|
-
ordersCount: number;
|
|
56
|
-
usersCount: number;
|
|
57
|
-
totalAmount: number;
|
|
58
|
-
acquiringCommission: number;
|
|
59
|
-
totalAmountWithCommission: number;
|
|
60
|
-
periodStart?: string | undefined;
|
|
61
|
-
periodEnd?: string | undefined;
|
|
62
|
-
}>;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
export type StatsEndpointKey = keyof typeof StatsEndpoints;
|
|
66
|
-
export type GetStatsRequest<K extends StatsEndpointKey> = z.infer<typeof StatsEndpoints[K]["request"]>;
|
|
67
|
-
export type GetStatsResponse<K extends StatsEndpointKey> = z.infer<typeof StatsEndpoints[K]["response"]>;
|
|
68
|
-
//# sourceMappingURL=endpoints.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../commands/stats/endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOiB,CAAC;AAE7C,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,cAAc,CAAC;AAE3D,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,gBAAgB,IAClD,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAEjD,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,gBAAgB,IACnD,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StatsEndpoints = void 0;
|
|
4
|
-
const read_1 = require("./read");
|
|
5
|
-
const query_1 = require("./query");
|
|
6
|
-
exports.StatsEndpoints = {
|
|
7
|
-
list: {
|
|
8
|
-
method: "GET",
|
|
9
|
-
path: "/stats",
|
|
10
|
-
request: query_1.StatsReadRequestSchema,
|
|
11
|
-
response: read_1.StatsReadResponseSchema,
|
|
12
|
-
},
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=endpoints.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../../commands/stats/endpoints.ts"],"names":[],"mappings":";;;AAEA,iCAAiD;AACjD,mCAAiD;AAIpC,QAAA,cAAc,GAAG;IAC1B,IAAI,EAAE;QACF,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,8BAAsB;QAC/B,QAAQ,EAAE,8BAAuB;KACpC;CACuC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/stats/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
|
|
@@ -1,20 +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("./read"), exports);
|
|
18
|
-
__exportStar(require("./query"), exports);
|
|
19
|
-
__exportStar(require("./endpoints"), exports);
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../commands/stats/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,0CAAwB;AACxB,8CAA4B"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export declare const StatsReadRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
3
|
-
period: z.ZodDefault<z.ZodEnum<["day", "week", "month", "year", "custom"]>>;
|
|
4
|
-
start: z.ZodOptional<z.ZodString>;
|
|
5
|
-
end: z.ZodOptional<z.ZodString>;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
period: "day" | "week" | "month" | "year" | "custom";
|
|
8
|
-
start?: string | undefined;
|
|
9
|
-
end?: string | undefined;
|
|
10
|
-
}, {
|
|
11
|
-
period?: "day" | "week" | "month" | "year" | "custom" | undefined;
|
|
12
|
-
start?: string | undefined;
|
|
13
|
-
end?: string | undefined;
|
|
14
|
-
}>, {
|
|
15
|
-
period: "day" | "week" | "month" | "year" | "custom";
|
|
16
|
-
start?: string | undefined;
|
|
17
|
-
end?: string | undefined;
|
|
18
|
-
}, {
|
|
19
|
-
period?: "day" | "week" | "month" | "year" | "custom" | undefined;
|
|
20
|
-
start?: string | undefined;
|
|
21
|
-
end?: string | undefined;
|
|
22
|
-
}>, {
|
|
23
|
-
period: "day" | "week" | "month" | "year" | "custom";
|
|
24
|
-
start?: string | undefined;
|
|
25
|
-
end?: string | undefined;
|
|
26
|
-
}, {
|
|
27
|
-
period?: "day" | "week" | "month" | "year" | "custom" | undefined;
|
|
28
|
-
start?: string | undefined;
|
|
29
|
-
end?: string | undefined;
|
|
30
|
-
}>;
|
|
31
|
-
export type StatsReadRequest = z.infer<typeof StatsReadRequestSchema>;
|
|
32
|
-
//# sourceMappingURL=query.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../commands/stats/query.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa9B,CAAC;AAEN,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -1,16 +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.StatsReadRequestSchema = void 0;
|
|
7
|
-
const zod_1 = __importDefault(require("zod"));
|
|
8
|
-
exports.StatsReadRequestSchema = zod_1.default
|
|
9
|
-
.object({
|
|
10
|
-
period: zod_1.default.enum(["day", "week", "month", "year", "custom"]).default("day"),
|
|
11
|
-
start: zod_1.default.string().datetime().optional(),
|
|
12
|
-
end: zod_1.default.string().datetime().optional(),
|
|
13
|
-
})
|
|
14
|
-
.refine(v => v.period !== "custom" || (v.start && v.end), { message: "from/to обязательны при period=custom" })
|
|
15
|
-
.refine(v => v.period !== "custom" || (new Date(v.start) < new Date(v.end)), { message: "from должен быть раньше to" });
|
|
16
|
-
//# sourceMappingURL=query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../commands/stats/query.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AAEP,QAAA,sBAAsB,GAAG,aAAC;KAClC,MAAM,CAAC;IACJ,MAAM,EAAE,aAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IACzE,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACvC,GAAG,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACxC,CAAC;KACD,MAAM,CACH,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,QAAQ,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,GAAG,CAAC,EAChD,EAAE,OAAO,EAAE,uCAAuC,EAAE,CACvD;KACA,MAAM,CACH,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,QAAQ,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,KAAM,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,GAAI,CAAC,CAAC,EACrE,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAC5C,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export declare const StatsReadResponseSchema: z.ZodObject<{
|
|
3
|
-
usersCount: z.ZodNumber;
|
|
4
|
-
ordersCount: z.ZodNumber;
|
|
5
|
-
totalAmount: z.ZodNumber;
|
|
6
|
-
acquiringCommission: z.ZodNumber;
|
|
7
|
-
serviceCommission: z.ZodNumber;
|
|
8
|
-
totalAmountWithCommission: z.ZodNumber;
|
|
9
|
-
periodStart: z.ZodOptional<z.ZodString>;
|
|
10
|
-
periodEnd: z.ZodOptional<z.ZodString>;
|
|
11
|
-
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
serviceCommission: number;
|
|
13
|
-
ordersCount: number;
|
|
14
|
-
usersCount: number;
|
|
15
|
-
totalAmount: number;
|
|
16
|
-
acquiringCommission: number;
|
|
17
|
-
totalAmountWithCommission: number;
|
|
18
|
-
periodStart?: string | undefined;
|
|
19
|
-
periodEnd?: string | undefined;
|
|
20
|
-
}, {
|
|
21
|
-
serviceCommission: number;
|
|
22
|
-
ordersCount: number;
|
|
23
|
-
usersCount: number;
|
|
24
|
-
totalAmount: number;
|
|
25
|
-
acquiringCommission: number;
|
|
26
|
-
totalAmountWithCommission: number;
|
|
27
|
-
periodStart?: string | undefined;
|
|
28
|
-
periodEnd?: string | undefined;
|
|
29
|
-
}>;
|
|
30
|
-
export type StatsReadResponse = z.infer<typeof StatsReadResponseSchema>;
|
|
31
|
-
//# sourceMappingURL=read.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../commands/stats/read.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;EASlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,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.StatsReadResponseSchema = void 0;
|
|
7
|
-
const zod_1 = __importDefault(require("zod"));
|
|
8
|
-
exports.StatsReadResponseSchema = zod_1.default.object({
|
|
9
|
-
usersCount: zod_1.default.coerce.number().nonnegative(),
|
|
10
|
-
ordersCount: zod_1.default.coerce.number().nonnegative(),
|
|
11
|
-
totalAmount: zod_1.default.coerce.number().nonnegative(),
|
|
12
|
-
acquiringCommission: zod_1.default.coerce.number().nonnegative(),
|
|
13
|
-
serviceCommission: zod_1.default.coerce.number().nonnegative(),
|
|
14
|
-
totalAmountWithCommission: zod_1.default.coerce.number().nonnegative(),
|
|
15
|
-
periodStart: zod_1.default.string().datetime().optional(),
|
|
16
|
-
periodEnd: zod_1.default.string().datetime().optional(),
|
|
17
|
-
});
|
|
18
|
-
//# sourceMappingURL=read.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../commands/stats/read.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AAEP,QAAA,uBAAuB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC5C,UAAU,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE;IAC3C,WAAW,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE;IAC5C,WAAW,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE;IAC5C,mBAAmB,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE;IACpD,iBAAiB,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE;IAClD,yBAAyB,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE;IAC1D,WAAW,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC7C,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const UserCreateSchema: z.ZodObject<{
|
|
3
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
|
-
picture: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
-
email: z.ZodString;
|
|
6
|
-
password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
-
steamId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
-
telegramId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
-
vkId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
-
googleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
-
isConfirmEmail: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
-
role: z.ZodEnum<["USER", "ADMIN", "NO_AUTH"]>;
|
|
13
|
-
status: z.ZodEnum<["ACTIVE", "BLOCKED"]>;
|
|
14
|
-
utmSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
-
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
email: string;
|
|
17
|
-
status: "ACTIVE" | "BLOCKED";
|
|
18
|
-
role: "USER" | "ADMIN" | "NO_AUTH";
|
|
19
|
-
password?: string | null | undefined;
|
|
20
|
-
username?: string | null | undefined;
|
|
21
|
-
telegramId?: string | null | undefined;
|
|
22
|
-
utmSource?: string | null | undefined;
|
|
23
|
-
picture?: string | null | undefined;
|
|
24
|
-
steamId?: string | null | undefined;
|
|
25
|
-
vkId?: string | null | undefined;
|
|
26
|
-
googleId?: string | null | undefined;
|
|
27
|
-
isConfirmEmail?: boolean | undefined;
|
|
28
|
-
}, {
|
|
29
|
-
email: string;
|
|
30
|
-
status: "ACTIVE" | "BLOCKED";
|
|
31
|
-
role: "USER" | "ADMIN" | "NO_AUTH";
|
|
32
|
-
password?: string | null | undefined;
|
|
33
|
-
username?: string | null | undefined;
|
|
34
|
-
telegramId?: string | null | undefined;
|
|
35
|
-
utmSource?: string | null | undefined;
|
|
36
|
-
picture?: string | null | undefined;
|
|
37
|
-
steamId?: string | null | undefined;
|
|
38
|
-
vkId?: string | null | undefined;
|
|
39
|
-
googleId?: string | null | undefined;
|
|
40
|
-
isConfirmEmail?: boolean | undefined;
|
|
41
|
-
}>;
|
|
42
|
-
export type UserCreate = z.infer<typeof UserCreateSchema>;
|
|
43
|
-
//# sourceMappingURL=create.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../commands/users/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserCreateSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const enums_1 = require("./enums");
|
|
6
|
-
exports.UserCreateSchema = zod_1.z.object({
|
|
7
|
-
username: zod_1.z.string().nullable().optional(),
|
|
8
|
-
picture: zod_1.z.string().nullable().optional(),
|
|
9
|
-
email: zod_1.z.string(),
|
|
10
|
-
password: zod_1.z.string().nullable().optional(),
|
|
11
|
-
steamId: zod_1.z.string().nullable().optional(),
|
|
12
|
-
telegramId: zod_1.z.string().nullable().optional(),
|
|
13
|
-
vkId: zod_1.z.string().nullable().optional(),
|
|
14
|
-
googleId: zod_1.z.string().nullable().optional(),
|
|
15
|
-
isConfirmEmail: zod_1.z.boolean().optional(),
|
|
16
|
-
role: enums_1.UserRoleEnum,
|
|
17
|
-
status: enums_1.UserStatusEnum,
|
|
18
|
-
utmSource: zod_1.z.string().nullable().optional(),
|
|
19
|
-
});
|
|
20
|
-
//# sourceMappingURL=create.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../commands/users/create.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mCAAuD;AAE1C,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACzC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACzC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC5C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACtC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1C,cAAc,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACtC,IAAI,EAAE,oBAAY;IAClB,MAAM,EAAE,sBAAc;IACtB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC"}
|