@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
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
export * from "./dtos";
|
|
2
|
+
export * from "./queries";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export declare const CatalogEndpoints: {
|
|
5
|
+
readonly createShowcase: {
|
|
6
|
+
readonly method: "POST";
|
|
7
|
+
readonly path: "/api/admin/catalog/showcases";
|
|
8
|
+
readonly request: import("zod").ZodObject<{
|
|
9
|
+
slug: import("zod").ZodString;
|
|
10
|
+
name: import("zod").ZodString;
|
|
11
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
12
|
+
iconUrl: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
13
|
+
bannerUrl: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
14
|
+
isInHeader: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
15
|
+
sortOrder: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
16
|
+
}, import("zod/v4/core").$strip>;
|
|
17
|
+
readonly response: import("zod").ZodObject<{
|
|
18
|
+
id: import("zod").ZodNumber;
|
|
19
|
+
slug: import("zod").ZodString;
|
|
20
|
+
name: import("zod").ZodString;
|
|
21
|
+
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
22
|
+
iconUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
23
|
+
bannerUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
24
|
+
isActive: import("zod").ZodBoolean;
|
|
25
|
+
isInHeader: import("zod").ZodBoolean;
|
|
26
|
+
sortOrder: import("zod").ZodNumber;
|
|
27
|
+
createdAt: import("zod").ZodString;
|
|
28
|
+
updatedAt: import("zod").ZodString;
|
|
29
|
+
}, import("zod/v4/core").$strip>;
|
|
30
|
+
readonly requiresAuth: true;
|
|
31
|
+
readonly requiresAdmin: true;
|
|
32
|
+
};
|
|
33
|
+
readonly updateShowcase: {
|
|
34
|
+
readonly method: "PATCH";
|
|
35
|
+
readonly path: "/api/admin/catalog/showcases/:id";
|
|
36
|
+
readonly params: import("zod").ZodObject<{
|
|
37
|
+
id: import("zod").ZodCoercedNumber<unknown>;
|
|
38
|
+
}, import("zod/v4/core").$strip>;
|
|
39
|
+
readonly request: import("zod").ZodObject<{
|
|
40
|
+
slug: import("zod").ZodOptional<import("zod").ZodString>;
|
|
41
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
42
|
+
description: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
43
|
+
iconUrl: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodURL>>;
|
|
44
|
+
bannerUrl: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodURL>>;
|
|
45
|
+
isInHeader: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
46
|
+
sortOrder: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
47
|
+
}, import("zod/v4/core").$strip>;
|
|
48
|
+
readonly response: import("zod").ZodObject<{
|
|
49
|
+
id: import("zod").ZodNumber;
|
|
50
|
+
slug: import("zod").ZodString;
|
|
51
|
+
name: import("zod").ZodString;
|
|
52
|
+
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
53
|
+
iconUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
54
|
+
bannerUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
55
|
+
isActive: import("zod").ZodBoolean;
|
|
56
|
+
isInHeader: import("zod").ZodBoolean;
|
|
57
|
+
sortOrder: import("zod").ZodNumber;
|
|
58
|
+
createdAt: import("zod").ZodString;
|
|
59
|
+
updatedAt: import("zod").ZodString;
|
|
60
|
+
}, import("zod/v4/core").$strip>;
|
|
61
|
+
readonly requiresAuth: true;
|
|
62
|
+
readonly requiresAdmin: true;
|
|
63
|
+
};
|
|
64
|
+
readonly deleteShowcase: {
|
|
65
|
+
readonly method: "DELETE";
|
|
66
|
+
readonly path: "/api/admin/catalog/showcases/:id";
|
|
67
|
+
readonly params: import("zod").ZodObject<{
|
|
68
|
+
id: import("zod").ZodCoercedNumber<unknown>;
|
|
69
|
+
}, import("zod/v4/core").$strip>;
|
|
70
|
+
readonly response: import("zod").ZodObject<{
|
|
71
|
+
ok: import("zod").ZodLiteral<true>;
|
|
72
|
+
}, import("zod/v4/core").$strip>;
|
|
73
|
+
readonly requiresAuth: true;
|
|
74
|
+
readonly requiresAdmin: true;
|
|
75
|
+
};
|
|
76
|
+
readonly createSubShowcase: {
|
|
77
|
+
readonly method: "POST";
|
|
78
|
+
readonly path: "/api/admin/catalog/sub-showcases";
|
|
79
|
+
readonly request: import("zod").ZodObject<{
|
|
80
|
+
showcaseId: import("zod").ZodNumber;
|
|
81
|
+
slug: import("zod").ZodString;
|
|
82
|
+
name: import("zod").ZodString;
|
|
83
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
84
|
+
iconUrl: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
85
|
+
sortOrder: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
86
|
+
}, import("zod/v4/core").$strip>;
|
|
87
|
+
readonly response: import("zod").ZodObject<{
|
|
88
|
+
id: import("zod").ZodNumber;
|
|
89
|
+
}, import("zod/v4/core").$strip>;
|
|
90
|
+
readonly requiresAuth: true;
|
|
91
|
+
readonly requiresAdmin: true;
|
|
92
|
+
};
|
|
93
|
+
readonly createCategory: {
|
|
94
|
+
readonly method: "POST";
|
|
95
|
+
readonly path: "/api/admin/catalog/categories";
|
|
96
|
+
readonly request: import("zod").ZodObject<{
|
|
97
|
+
showcaseId: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
98
|
+
subShowcaseId: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
99
|
+
slug: import("zod").ZodString;
|
|
100
|
+
name: import("zod").ZodString;
|
|
101
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
102
|
+
iconUrl: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
103
|
+
sortOrder: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
104
|
+
}, import("zod/v4/core").$strip>;
|
|
105
|
+
readonly response: import("zod").ZodObject<{
|
|
106
|
+
id: import("zod").ZodNumber;
|
|
107
|
+
}, import("zod/v4/core").$strip>;
|
|
108
|
+
readonly requiresAuth: true;
|
|
109
|
+
readonly requiresAdmin: true;
|
|
110
|
+
};
|
|
111
|
+
readonly getHeader: {
|
|
112
|
+
readonly method: "GET";
|
|
113
|
+
readonly path: "/api/catalog/header";
|
|
114
|
+
readonly response: import("zod").ZodObject<{
|
|
115
|
+
showcases: import("zod").ZodArray<import("zod").ZodObject<{
|
|
116
|
+
id: import("zod").ZodNumber;
|
|
117
|
+
slug: import("zod").ZodString;
|
|
118
|
+
name: import("zod").ZodString;
|
|
119
|
+
iconUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
120
|
+
subShowcases: import("zod").ZodArray<import("zod").ZodObject<{
|
|
121
|
+
id: import("zod").ZodNumber;
|
|
122
|
+
slug: import("zod").ZodString;
|
|
123
|
+
name: import("zod").ZodString;
|
|
124
|
+
iconUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
125
|
+
categories: import("zod").ZodArray<import("zod").ZodObject<{
|
|
126
|
+
id: import("zod").ZodNumber;
|
|
127
|
+
slug: import("zod").ZodString;
|
|
128
|
+
name: import("zod").ZodString;
|
|
129
|
+
iconUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
130
|
+
}, import("zod/v4/core").$strip>>;
|
|
131
|
+
}, import("zod/v4/core").$strip>>;
|
|
132
|
+
categories: import("zod").ZodArray<import("zod").ZodObject<{
|
|
133
|
+
id: import("zod").ZodNumber;
|
|
134
|
+
slug: import("zod").ZodString;
|
|
135
|
+
name: import("zod").ZodString;
|
|
136
|
+
iconUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
137
|
+
}, import("zod/v4/core").$strip>>;
|
|
138
|
+
}, import("zod/v4/core").$strip>>;
|
|
139
|
+
cachedAt: import("zod").ZodString;
|
|
140
|
+
}, import("zod/v4/core").$strip>;
|
|
141
|
+
};
|
|
142
|
+
readonly getShowcaseBySlug: {
|
|
143
|
+
readonly method: "GET";
|
|
144
|
+
readonly path: "/api/catalog/showcase/:slug";
|
|
145
|
+
readonly params: import("zod").ZodObject<{
|
|
146
|
+
slug: import("zod").ZodString;
|
|
147
|
+
}, import("zod/v4/core").$strip>;
|
|
148
|
+
readonly response: import("zod").ZodObject<{
|
|
149
|
+
id: import("zod").ZodNumber;
|
|
150
|
+
slug: import("zod").ZodString;
|
|
151
|
+
name: import("zod").ZodString;
|
|
152
|
+
iconUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
153
|
+
subShowcases: import("zod").ZodArray<import("zod").ZodObject<{
|
|
154
|
+
id: import("zod").ZodNumber;
|
|
155
|
+
slug: import("zod").ZodString;
|
|
156
|
+
name: import("zod").ZodString;
|
|
157
|
+
iconUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
158
|
+
categories: import("zod").ZodArray<import("zod").ZodObject<{
|
|
159
|
+
id: import("zod").ZodNumber;
|
|
160
|
+
slug: import("zod").ZodString;
|
|
161
|
+
name: import("zod").ZodString;
|
|
162
|
+
iconUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
163
|
+
}, import("zod/v4/core").$strip>>;
|
|
164
|
+
}, import("zod/v4/core").$strip>>;
|
|
165
|
+
categories: import("zod").ZodArray<import("zod").ZodObject<{
|
|
166
|
+
id: import("zod").ZodNumber;
|
|
167
|
+
slug: import("zod").ZodString;
|
|
168
|
+
name: import("zod").ZodString;
|
|
169
|
+
iconUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
170
|
+
}, import("zod/v4/core").$strip>>;
|
|
171
|
+
}, import("zod/v4/core").$strip>;
|
|
172
|
+
};
|
|
173
|
+
readonly getSubShowcase: {
|
|
174
|
+
readonly method: "GET";
|
|
175
|
+
readonly path: "/api/catalog/showcase/:slug/sub/:subSlug";
|
|
176
|
+
readonly params: import("zod").ZodObject<{
|
|
177
|
+
slug: import("zod").ZodString;
|
|
178
|
+
subSlug: import("zod").ZodString;
|
|
179
|
+
}, import("zod/v4/core").$strip>;
|
|
180
|
+
readonly response: import("zod").ZodObject<{
|
|
181
|
+
id: import("zod").ZodNumber;
|
|
182
|
+
slug: import("zod").ZodString;
|
|
183
|
+
name: import("zod").ZodString;
|
|
184
|
+
iconUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
185
|
+
categories: import("zod").ZodArray<import("zod").ZodObject<{
|
|
186
|
+
id: import("zod").ZodNumber;
|
|
187
|
+
slug: import("zod").ZodString;
|
|
188
|
+
name: import("zod").ZodString;
|
|
189
|
+
iconUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
190
|
+
}, import("zod/v4/core").$strip>>;
|
|
191
|
+
}, import("zod/v4/core").$strip>;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/catalog/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAK3B,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnB,CAAC"}
|
|
@@ -14,8 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./
|
|
17
|
+
exports.CatalogEndpoints = void 0;
|
|
18
|
+
__exportStar(require("./dtos"), exports);
|
|
19
|
+
__exportStar(require("./queries"), exports);
|
|
20
|
+
__exportStar(require("./commands"), exports);
|
|
21
|
+
const queries_1 = require("./queries");
|
|
22
|
+
const commands_1 = require("./commands");
|
|
23
|
+
exports.CatalogEndpoints = {
|
|
24
|
+
...queries_1.CatalogQueries,
|
|
25
|
+
...commands_1.CatalogCommands,
|
|
26
|
+
};
|
|
21
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domains/catalog/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B;AAE3B,uCAA2C;AAC3C,yCAA6C;AAEhC,QAAA,gBAAgB,GAAG;IAC/B,GAAG,wBAAc;IACjB,GAAG,0BAAe;CACT,CAAC"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const GetHeaderTreeEndpoint: {
|
|
3
|
+
readonly method: "GET";
|
|
4
|
+
readonly path: "/api/catalog/header";
|
|
5
|
+
readonly response: z.ZodObject<{
|
|
6
|
+
showcases: z.ZodArray<z.ZodObject<{
|
|
7
|
+
id: z.ZodNumber;
|
|
8
|
+
slug: z.ZodString;
|
|
9
|
+
name: z.ZodString;
|
|
10
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
11
|
+
subShowcases: z.ZodArray<z.ZodObject<{
|
|
12
|
+
id: z.ZodNumber;
|
|
13
|
+
slug: z.ZodString;
|
|
14
|
+
name: z.ZodString;
|
|
15
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
16
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
17
|
+
id: z.ZodNumber;
|
|
18
|
+
slug: z.ZodString;
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
24
|
+
id: z.ZodNumber;
|
|
25
|
+
slug: z.ZodString;
|
|
26
|
+
name: z.ZodString;
|
|
27
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
cachedAt: z.ZodString;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
};
|
|
33
|
+
export declare const GetShowcaseBySlugEndpoint: {
|
|
34
|
+
readonly method: "GET";
|
|
35
|
+
readonly path: "/api/catalog/showcase/:slug";
|
|
36
|
+
readonly params: z.ZodObject<{
|
|
37
|
+
slug: z.ZodString;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
readonly response: z.ZodObject<{
|
|
40
|
+
id: z.ZodNumber;
|
|
41
|
+
slug: z.ZodString;
|
|
42
|
+
name: z.ZodString;
|
|
43
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
44
|
+
subShowcases: z.ZodArray<z.ZodObject<{
|
|
45
|
+
id: z.ZodNumber;
|
|
46
|
+
slug: z.ZodString;
|
|
47
|
+
name: z.ZodString;
|
|
48
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
49
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
50
|
+
id: z.ZodNumber;
|
|
51
|
+
slug: z.ZodString;
|
|
52
|
+
name: z.ZodString;
|
|
53
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
}, z.core.$strip>>;
|
|
56
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
57
|
+
id: z.ZodNumber;
|
|
58
|
+
slug: z.ZodString;
|
|
59
|
+
name: z.ZodString;
|
|
60
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
};
|
|
64
|
+
export declare const GetSubShowcaseEndpoint: {
|
|
65
|
+
readonly method: "GET";
|
|
66
|
+
readonly path: "/api/catalog/showcase/:slug/sub/:subSlug";
|
|
67
|
+
readonly params: z.ZodObject<{
|
|
68
|
+
slug: z.ZodString;
|
|
69
|
+
subSlug: z.ZodString;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
readonly response: z.ZodObject<{
|
|
72
|
+
id: z.ZodNumber;
|
|
73
|
+
slug: z.ZodString;
|
|
74
|
+
name: z.ZodString;
|
|
75
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
76
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
77
|
+
id: z.ZodNumber;
|
|
78
|
+
slug: z.ZodString;
|
|
79
|
+
name: z.ZodString;
|
|
80
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
81
|
+
}, z.core.$strip>>;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
};
|
|
84
|
+
export declare const CatalogQueries: {
|
|
85
|
+
readonly getHeader: {
|
|
86
|
+
readonly method: "GET";
|
|
87
|
+
readonly path: "/api/catalog/header";
|
|
88
|
+
readonly response: z.ZodObject<{
|
|
89
|
+
showcases: z.ZodArray<z.ZodObject<{
|
|
90
|
+
id: z.ZodNumber;
|
|
91
|
+
slug: z.ZodString;
|
|
92
|
+
name: z.ZodString;
|
|
93
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
94
|
+
subShowcases: z.ZodArray<z.ZodObject<{
|
|
95
|
+
id: z.ZodNumber;
|
|
96
|
+
slug: z.ZodString;
|
|
97
|
+
name: z.ZodString;
|
|
98
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
99
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
100
|
+
id: z.ZodNumber;
|
|
101
|
+
slug: z.ZodString;
|
|
102
|
+
name: z.ZodString;
|
|
103
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
}, z.core.$strip>>;
|
|
106
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
107
|
+
id: z.ZodNumber;
|
|
108
|
+
slug: z.ZodString;
|
|
109
|
+
name: z.ZodString;
|
|
110
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
111
|
+
}, z.core.$strip>>;
|
|
112
|
+
}, z.core.$strip>>;
|
|
113
|
+
cachedAt: z.ZodString;
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
};
|
|
116
|
+
readonly getShowcaseBySlug: {
|
|
117
|
+
readonly method: "GET";
|
|
118
|
+
readonly path: "/api/catalog/showcase/:slug";
|
|
119
|
+
readonly params: z.ZodObject<{
|
|
120
|
+
slug: z.ZodString;
|
|
121
|
+
}, z.core.$strip>;
|
|
122
|
+
readonly response: z.ZodObject<{
|
|
123
|
+
id: z.ZodNumber;
|
|
124
|
+
slug: z.ZodString;
|
|
125
|
+
name: z.ZodString;
|
|
126
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
127
|
+
subShowcases: z.ZodArray<z.ZodObject<{
|
|
128
|
+
id: z.ZodNumber;
|
|
129
|
+
slug: z.ZodString;
|
|
130
|
+
name: z.ZodString;
|
|
131
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
132
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
133
|
+
id: z.ZodNumber;
|
|
134
|
+
slug: z.ZodString;
|
|
135
|
+
name: z.ZodString;
|
|
136
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
137
|
+
}, z.core.$strip>>;
|
|
138
|
+
}, z.core.$strip>>;
|
|
139
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
140
|
+
id: z.ZodNumber;
|
|
141
|
+
slug: z.ZodString;
|
|
142
|
+
name: z.ZodString;
|
|
143
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
144
|
+
}, z.core.$strip>>;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
};
|
|
147
|
+
readonly getSubShowcase: {
|
|
148
|
+
readonly method: "GET";
|
|
149
|
+
readonly path: "/api/catalog/showcase/:slug/sub/:subSlug";
|
|
150
|
+
readonly params: z.ZodObject<{
|
|
151
|
+
slug: z.ZodString;
|
|
152
|
+
subSlug: z.ZodString;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
readonly response: z.ZodObject<{
|
|
155
|
+
id: z.ZodNumber;
|
|
156
|
+
slug: z.ZodString;
|
|
157
|
+
name: z.ZodString;
|
|
158
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
159
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
160
|
+
id: z.ZodNumber;
|
|
161
|
+
slug: z.ZodString;
|
|
162
|
+
name: z.ZodString;
|
|
163
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
164
|
+
}, z.core.$strip>>;
|
|
165
|
+
}, z.core.$strip>;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
//# sourceMappingURL=queries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/domains/catalog/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIG,CAAC;AAEtC,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKD,CAAC;AAEtC,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;CAKE,CAAC;AAEtC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIjB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CatalogQueries = exports.GetSubShowcaseEndpoint = exports.GetShowcaseBySlugEndpoint = exports.GetHeaderTreeEndpoint = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("../../shared/common");
|
|
6
|
+
const dtos_1 = require("./dtos");
|
|
7
|
+
exports.GetHeaderTreeEndpoint = {
|
|
8
|
+
method: "GET",
|
|
9
|
+
path: "/api/catalog/header",
|
|
10
|
+
response: dtos_1.CatalogTreeSchema,
|
|
11
|
+
};
|
|
12
|
+
exports.GetShowcaseBySlugEndpoint = {
|
|
13
|
+
method: "GET",
|
|
14
|
+
path: "/api/catalog/showcase/:slug",
|
|
15
|
+
params: common_1.SlugParamSchema,
|
|
16
|
+
response: dtos_1.ShowcaseNodeSchema,
|
|
17
|
+
};
|
|
18
|
+
exports.GetSubShowcaseEndpoint = {
|
|
19
|
+
method: "GET",
|
|
20
|
+
path: "/api/catalog/showcase/:slug/sub/:subSlug",
|
|
21
|
+
params: zod_1.z.object({ slug: zod_1.z.string(), subSlug: zod_1.z.string() }),
|
|
22
|
+
response: dtos_1.SubShowcaseNodeSchema,
|
|
23
|
+
};
|
|
24
|
+
exports.CatalogQueries = {
|
|
25
|
+
getHeader: exports.GetHeaderTreeEndpoint,
|
|
26
|
+
getShowcaseBySlug: exports.GetShowcaseBySlugEndpoint,
|
|
27
|
+
getSubShowcase: exports.GetSubShowcaseEndpoint,
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=queries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queries.js","sourceRoot":"","sources":["../../../src/domains/catalog/queries.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,gDAAsD;AACtD,iCAAsF;AAEzE,QAAA,qBAAqB,GAAG;IACpC,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,qBAAqB;IAC3B,QAAQ,EAAE,wBAAiB;CACS,CAAC;AAEzB,QAAA,yBAAyB,GAAG;IACxC,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,6BAA6B;IACnC,MAAM,EAAE,wBAAe;IACvB,QAAQ,EAAE,yBAAkB;CACQ,CAAC;AAEzB,QAAA,sBAAsB,GAAG;IACrC,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,0CAA0C;IAChD,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC;IAC3D,QAAQ,EAAE,4BAAqB;CACK,CAAC;AAEzB,QAAA,cAAc,GAAG;IAC7B,SAAS,EAAE,6BAAqB;IAChC,iBAAiB,EAAE,iCAAyB;IAC5C,cAAc,EAAE,8BAAsB;CAC7B,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PublicConfigSchema: z.ZodObject<{
|
|
3
|
+
captchaProvider: z.ZodString;
|
|
4
|
+
captchaSiteKey: z.ZodString;
|
|
5
|
+
supportedCurrencies: z.ZodArray<z.ZodEnum<{
|
|
6
|
+
USD: "USD";
|
|
7
|
+
RUB: "RUB";
|
|
8
|
+
UAH: "UAH";
|
|
9
|
+
}>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export type PublicConfig = z.infer<typeof PublicConfigSchema>;
|
|
12
|
+
export declare const GetPublicConfigEndpoint: {
|
|
13
|
+
readonly method: "GET";
|
|
14
|
+
readonly path: "/api/config/public";
|
|
15
|
+
readonly response: z.ZodObject<{
|
|
16
|
+
captchaProvider: z.ZodString;
|
|
17
|
+
captchaSiteKey: z.ZodString;
|
|
18
|
+
supportedCurrencies: z.ZodArray<z.ZodEnum<{
|
|
19
|
+
USD: "USD";
|
|
20
|
+
RUB: "RUB";
|
|
21
|
+
UAH: "UAH";
|
|
22
|
+
}>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
};
|
|
25
|
+
export declare const ConfigEndpoints: {
|
|
26
|
+
readonly getPublic: {
|
|
27
|
+
readonly method: "GET";
|
|
28
|
+
readonly path: "/api/config/public";
|
|
29
|
+
readonly response: z.ZodObject<{
|
|
30
|
+
captchaProvider: z.ZodString;
|
|
31
|
+
captchaSiteKey: z.ZodString;
|
|
32
|
+
supportedCurrencies: z.ZodArray<z.ZodEnum<{
|
|
33
|
+
USD: "USD";
|
|
34
|
+
RUB: "RUB";
|
|
35
|
+
UAH: "UAH";
|
|
36
|
+
}>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,kBAAkB;;;;;;;;iBAI7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;CAIC,CAAC;AAEtC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;CAElB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfigEndpoints = exports.GetPublicConfigEndpoint = exports.PublicConfigSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.PublicConfigSchema = zod_1.z.object({
|
|
6
|
+
captchaProvider: zod_1.z.string(),
|
|
7
|
+
captchaSiteKey: zod_1.z.string(),
|
|
8
|
+
supportedCurrencies: zod_1.z.array(zod_1.z.enum(["USD", "RUB", "UAH"])),
|
|
9
|
+
});
|
|
10
|
+
exports.GetPublicConfigEndpoint = {
|
|
11
|
+
method: "GET",
|
|
12
|
+
path: "/api/config/public",
|
|
13
|
+
response: exports.PublicConfigSchema,
|
|
14
|
+
};
|
|
15
|
+
exports.ConfigEndpoints = {
|
|
16
|
+
getPublic: exports.GetPublicConfigEndpoint,
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domains/config/index.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAGX,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE;IAC3B,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,mBAAmB,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;CAC3D,CAAC,CAAC;AAGU,QAAA,uBAAuB,GAAG;IACtC,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,oBAAoB;IAC1B,QAAQ,EAAE,0BAAkB;CACQ,CAAC;AAEzB,QAAA,eAAe,GAAG;IAC9B,SAAS,EAAE,+BAAuB;CACzB,CAAC"}
|