@gigapay-dev/contracts 2.0.0 → 3.2.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 +144 -0
- package/build/domains/payments/index.d.ts.map +1 -0
- package/build/domains/payments/index.js +48 -0
- package/build/domains/payments/index.js.map +1 -0
- package/build/domains/products/commands.d.ts +340 -0
- package/build/domains/products/commands.d.ts.map +1 -0
- package/build/domains/products/commands.js +116 -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 +293 -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/telemetry/dtos.d.ts +26 -0
- package/build/domains/telemetry/dtos.d.ts.map +1 -0
- package/build/domains/telemetry/dtos.js +21 -0
- package/build/domains/telemetry/dtos.js.map +1 -0
- package/build/domains/telemetry/index.d.ts +74 -0
- package/build/domains/telemetry/index.d.ts.map +1 -0
- package/build/domains/telemetry/index.js +36 -0
- package/build/domains/telemetry/index.js.map +1 -0
- package/build/domains/telemetry/route-normalizer.d.ts +3 -0
- package/build/domains/telemetry/route-normalizer.d.ts.map +1 -0
- package/build/domains/telemetry/route-normalizer.js +44 -0
- package/build/domains/telemetry/route-normalizer.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 +1377 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +37 -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,144 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PaymentProviderSchema: z.ZodEnum<{
|
|
3
|
+
antilopay: "antilopay";
|
|
4
|
+
cryptopayo: "cryptopayo";
|
|
5
|
+
}>;
|
|
6
|
+
export type PaymentProvider = z.infer<typeof PaymentProviderSchema>;
|
|
7
|
+
export declare const InitiatePaymentRequestSchema: z.ZodObject<{
|
|
8
|
+
orderId: z.ZodNumber;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export type InitiatePaymentRequest = z.infer<typeof InitiatePaymentRequestSchema>;
|
|
11
|
+
export declare const InitiatePaymentResponseSchema: z.ZodObject<{
|
|
12
|
+
paymentUrl: z.ZodString;
|
|
13
|
+
providerPaymentId: z.ZodString;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export type InitiatePaymentResponse = z.infer<typeof InitiatePaymentResponseSchema>;
|
|
16
|
+
export declare const InitiatePaymentEndpoint: {
|
|
17
|
+
readonly method: "POST";
|
|
18
|
+
readonly path: "/api/payments/:provider/initiate";
|
|
19
|
+
readonly params: z.ZodObject<{
|
|
20
|
+
provider: z.ZodEnum<{
|
|
21
|
+
antilopay: "antilopay";
|
|
22
|
+
cryptopayo: "cryptopayo";
|
|
23
|
+
}>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
readonly request: z.ZodObject<{
|
|
26
|
+
orderId: z.ZodNumber;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
readonly response: z.ZodObject<{
|
|
29
|
+
paymentUrl: z.ZodString;
|
|
30
|
+
providerPaymentId: z.ZodString;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
readonly requiresAuth: true;
|
|
33
|
+
readonly rateLimit: {
|
|
34
|
+
readonly limit: 5;
|
|
35
|
+
readonly ttlSec: 60;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export declare const PaymentWebhookEndpoint: {
|
|
39
|
+
readonly method: "POST";
|
|
40
|
+
readonly path: "/api/payments/webhook/:provider";
|
|
41
|
+
readonly params: z.ZodObject<{
|
|
42
|
+
provider: z.ZodEnum<{
|
|
43
|
+
antilopay: "antilopay";
|
|
44
|
+
cryptopayo: "cryptopayo";
|
|
45
|
+
}>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
readonly response: z.ZodObject<{
|
|
48
|
+
ok: z.ZodLiteral<true>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
readonly rateLimit: {
|
|
51
|
+
readonly limit: 60;
|
|
52
|
+
readonly ttlSec: 60;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export declare const PaymentProviderInfoSchema: z.ZodObject<{
|
|
56
|
+
key: z.ZodEnum<{
|
|
57
|
+
antilopay: "antilopay";
|
|
58
|
+
cryptopayo: "cryptopayo";
|
|
59
|
+
}>;
|
|
60
|
+
label: z.ZodString;
|
|
61
|
+
currencies: z.ZodArray<z.ZodString>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
export type PaymentProviderInfo = z.infer<typeof PaymentProviderInfoSchema>;
|
|
64
|
+
export declare const PaymentProvidersResponseSchema: z.ZodObject<{
|
|
65
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
66
|
+
key: z.ZodEnum<{
|
|
67
|
+
antilopay: "antilopay";
|
|
68
|
+
cryptopayo: "cryptopayo";
|
|
69
|
+
}>;
|
|
70
|
+
label: z.ZodString;
|
|
71
|
+
currencies: z.ZodArray<z.ZodString>;
|
|
72
|
+
}, z.core.$strip>>;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
export type PaymentProvidersResponse = z.infer<typeof PaymentProvidersResponseSchema>;
|
|
75
|
+
export declare const ListPaymentProvidersEndpoint: {
|
|
76
|
+
readonly method: "GET";
|
|
77
|
+
readonly path: "/api/payments/providers";
|
|
78
|
+
readonly response: z.ZodObject<{
|
|
79
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
80
|
+
key: z.ZodEnum<{
|
|
81
|
+
antilopay: "antilopay";
|
|
82
|
+
cryptopayo: "cryptopayo";
|
|
83
|
+
}>;
|
|
84
|
+
label: z.ZodString;
|
|
85
|
+
currencies: z.ZodArray<z.ZodString>;
|
|
86
|
+
}, z.core.$strip>>;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
};
|
|
89
|
+
export declare const PaymentEndpoints: {
|
|
90
|
+
readonly listProviders: {
|
|
91
|
+
readonly method: "GET";
|
|
92
|
+
readonly path: "/api/payments/providers";
|
|
93
|
+
readonly response: z.ZodObject<{
|
|
94
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
95
|
+
key: z.ZodEnum<{
|
|
96
|
+
antilopay: "antilopay";
|
|
97
|
+
cryptopayo: "cryptopayo";
|
|
98
|
+
}>;
|
|
99
|
+
label: z.ZodString;
|
|
100
|
+
currencies: z.ZodArray<z.ZodString>;
|
|
101
|
+
}, z.core.$strip>>;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
};
|
|
104
|
+
readonly initiate: {
|
|
105
|
+
readonly method: "POST";
|
|
106
|
+
readonly path: "/api/payments/:provider/initiate";
|
|
107
|
+
readonly params: z.ZodObject<{
|
|
108
|
+
provider: z.ZodEnum<{
|
|
109
|
+
antilopay: "antilopay";
|
|
110
|
+
cryptopayo: "cryptopayo";
|
|
111
|
+
}>;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
readonly request: z.ZodObject<{
|
|
114
|
+
orderId: z.ZodNumber;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
readonly response: z.ZodObject<{
|
|
117
|
+
paymentUrl: z.ZodString;
|
|
118
|
+
providerPaymentId: z.ZodString;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
readonly requiresAuth: true;
|
|
121
|
+
readonly rateLimit: {
|
|
122
|
+
readonly limit: 5;
|
|
123
|
+
readonly ttlSec: 60;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
readonly webhook: {
|
|
127
|
+
readonly method: "POST";
|
|
128
|
+
readonly path: "/api/payments/webhook/:provider";
|
|
129
|
+
readonly params: z.ZodObject<{
|
|
130
|
+
provider: z.ZodEnum<{
|
|
131
|
+
antilopay: "antilopay";
|
|
132
|
+
cryptopayo: "cryptopayo";
|
|
133
|
+
}>;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
readonly response: z.ZodObject<{
|
|
136
|
+
ok: z.ZodLiteral<true>;
|
|
137
|
+
}, z.core.$strip>;
|
|
138
|
+
readonly rateLimit: {
|
|
139
|
+
readonly limit: 60;
|
|
140
|
+
readonly ttlSec: 60;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/payments/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,qBAAqB;;;EAAsC,CAAC;AACzE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,4BAA4B;;iBAEvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,6BAA6B;;;iBAGxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;CAQC,CAAC;AAEtC,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;CAME,CAAC;AAEtC,eAAO,MAAM,yBAAyB;;;;;;;iBAIpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,8BAA8B;;;;;;;;;iBAEzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;CAIJ,CAAC;AAEtC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAInB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentEndpoints = exports.ListPaymentProvidersEndpoint = exports.PaymentProvidersResponseSchema = exports.PaymentProviderInfoSchema = exports.PaymentWebhookEndpoint = exports.InitiatePaymentEndpoint = exports.InitiatePaymentResponseSchema = exports.InitiatePaymentRequestSchema = exports.PaymentProviderSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("../../shared/common");
|
|
6
|
+
exports.PaymentProviderSchema = zod_1.z.enum(["antilopay", "cryptopayo"]);
|
|
7
|
+
exports.InitiatePaymentRequestSchema = zod_1.z.object({
|
|
8
|
+
orderId: zod_1.z.number().int().positive(),
|
|
9
|
+
});
|
|
10
|
+
exports.InitiatePaymentResponseSchema = zod_1.z.object({
|
|
11
|
+
paymentUrl: zod_1.z.string(),
|
|
12
|
+
providerPaymentId: zod_1.z.string(),
|
|
13
|
+
});
|
|
14
|
+
exports.InitiatePaymentEndpoint = {
|
|
15
|
+
method: "POST",
|
|
16
|
+
path: "/api/payments/:provider/initiate",
|
|
17
|
+
params: zod_1.z.object({ provider: exports.PaymentProviderSchema }),
|
|
18
|
+
request: exports.InitiatePaymentRequestSchema,
|
|
19
|
+
response: exports.InitiatePaymentResponseSchema,
|
|
20
|
+
requiresAuth: true,
|
|
21
|
+
rateLimit: { limit: 5, ttlSec: 60 },
|
|
22
|
+
};
|
|
23
|
+
exports.PaymentWebhookEndpoint = {
|
|
24
|
+
method: "POST",
|
|
25
|
+
path: "/api/payments/webhook/:provider",
|
|
26
|
+
params: zod_1.z.object({ provider: exports.PaymentProviderSchema }),
|
|
27
|
+
response: common_1.SuccessResponseSchema,
|
|
28
|
+
rateLimit: { limit: 60, ttlSec: 60 },
|
|
29
|
+
};
|
|
30
|
+
exports.PaymentProviderInfoSchema = zod_1.z.object({
|
|
31
|
+
key: exports.PaymentProviderSchema,
|
|
32
|
+
label: zod_1.z.string(),
|
|
33
|
+
currencies: zod_1.z.array(zod_1.z.string()),
|
|
34
|
+
});
|
|
35
|
+
exports.PaymentProvidersResponseSchema = zod_1.z.object({
|
|
36
|
+
providers: zod_1.z.array(exports.PaymentProviderInfoSchema),
|
|
37
|
+
});
|
|
38
|
+
exports.ListPaymentProvidersEndpoint = {
|
|
39
|
+
method: "GET",
|
|
40
|
+
path: "/api/payments/providers",
|
|
41
|
+
response: exports.PaymentProvidersResponseSchema,
|
|
42
|
+
};
|
|
43
|
+
exports.PaymentEndpoints = {
|
|
44
|
+
listProviders: exports.ListPaymentProvidersEndpoint,
|
|
45
|
+
initiate: exports.InitiatePaymentEndpoint,
|
|
46
|
+
webhook: exports.PaymentWebhookEndpoint,
|
|
47
|
+
};
|
|
48
|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KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;CAC/B,CAAC,CAAC;AAGU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACtD,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,iCAAyB,CAAC;CAC7C,CAAC,CAAC;AAGU,QAAA,4BAA4B,GAAG;IAC3C,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,yBAAyB;IAC/B,QAAQ,EAAE,sCAA8B;CACJ,CAAC;AAEzB,QAAA,gBAAgB,GAAG;IAC/B,aAAa,EAAE,oCAA4B;IAC3C,QAAQ,EAAE,+BAAuB;IACjC,OAAO,EAAE,8BAAsB;CACtB,CAAC"}
|
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const CreateProductRequestSchema: z.ZodObject<{
|
|
3
|
+
slug: z.ZodString;
|
|
4
|
+
title: z.ZodString;
|
|
5
|
+
type: z.ZodEnum<{
|
|
6
|
+
GAME_KEY: "GAME_KEY";
|
|
7
|
+
GAME_GIFT: "GAME_GIFT";
|
|
8
|
+
TOPUP: "TOPUP";
|
|
9
|
+
SUBSCRIPTION: "SUBSCRIPTION";
|
|
10
|
+
IN_GAME_ITEM: "IN_GAME_ITEM";
|
|
11
|
+
DLC: "DLC";
|
|
12
|
+
CURRENCY: "CURRENCY";
|
|
13
|
+
VOUCHER: "VOUCHER";
|
|
14
|
+
}>;
|
|
15
|
+
basePriceUsd: z.ZodString;
|
|
16
|
+
description: z.ZodOptional<z.ZodString>;
|
|
17
|
+
shortDescription: z.ZodOptional<z.ZodString>;
|
|
18
|
+
coverImageUrl: z.ZodOptional<z.ZodURL>;
|
|
19
|
+
steamAppId: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
showcaseId: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
subShowcaseId: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
categoryId: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export type CreateProductRequest = z.infer<typeof CreateProductRequestSchema>;
|
|
25
|
+
export declare const CreateVariantRequestSchema: z.ZodObject<{
|
|
26
|
+
productId: z.ZodNumber;
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
sku: z.ZodString;
|
|
29
|
+
priceUsd: z.ZodString;
|
|
30
|
+
deliveryType: z.ZodOptional<z.ZodEnum<{
|
|
31
|
+
AUTOMATIC: "AUTOMATIC";
|
|
32
|
+
MANUAL: "MANUAL";
|
|
33
|
+
BOT: "BOT";
|
|
34
|
+
}>>;
|
|
35
|
+
desslyServiceType: z.ZodOptional<z.ZodEnum<{
|
|
36
|
+
VOUCHER: "VOUCHER";
|
|
37
|
+
STEAM_TOPUP: "STEAM_TOPUP";
|
|
38
|
+
STEAM_GIFT: "STEAM_GIFT";
|
|
39
|
+
MOBILE_REFILL: "MOBILE_REFILL";
|
|
40
|
+
CRYPTO_REFILL: "CRYPTO_REFILL";
|
|
41
|
+
}>>;
|
|
42
|
+
desslyProductId: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
desslyVariationId: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
desslyRegion: z.ZodOptional<z.ZodString>;
|
|
45
|
+
topupAmount: z.ZodOptional<z.ZodString>;
|
|
46
|
+
topupCurrency: z.ZodOptional<z.ZodString>;
|
|
47
|
+
durationDays: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
platform: z.ZodOptional<z.ZodString>;
|
|
49
|
+
regionCode: z.ZodOptional<z.ZodString>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
export type CreateVariantRequest = z.infer<typeof CreateVariantRequestSchema>;
|
|
52
|
+
export declare const ImportKeysRequestSchema: z.ZodObject<{
|
|
53
|
+
keys: z.ZodArray<z.ZodString>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
export type ImportKeysRequest = z.infer<typeof ImportKeysRequestSchema>;
|
|
56
|
+
export declare const SetVariantMarginRequestSchema: z.ZodObject<{
|
|
57
|
+
marginPct: z.ZodString;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
export type SetVariantMarginRequest = z.infer<typeof SetVariantMarginRequestSchema>;
|
|
60
|
+
export declare const ParseSteamResponseSchema: z.ZodObject<{
|
|
61
|
+
appId: z.ZodNumber;
|
|
62
|
+
editions: z.ZodArray<z.ZodObject<{
|
|
63
|
+
edition: z.ZodString;
|
|
64
|
+
packageId: z.ZodNumber;
|
|
65
|
+
regions: z.ZodArray<z.ZodObject<{
|
|
66
|
+
region: z.ZodString;
|
|
67
|
+
price: z.ZodString;
|
|
68
|
+
priceOriginal: z.ZodString;
|
|
69
|
+
discount: z.ZodString;
|
|
70
|
+
}, z.core.$strip>>;
|
|
71
|
+
}, z.core.$strip>>;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
export type ParseSteamResponse = z.infer<typeof ParseSteamResponseSchema>;
|
|
74
|
+
export declare const CreateProductEndpoint: {
|
|
75
|
+
readonly method: "POST";
|
|
76
|
+
readonly path: "/api/admin/products";
|
|
77
|
+
readonly request: z.ZodObject<{
|
|
78
|
+
slug: z.ZodString;
|
|
79
|
+
title: z.ZodString;
|
|
80
|
+
type: z.ZodEnum<{
|
|
81
|
+
GAME_KEY: "GAME_KEY";
|
|
82
|
+
GAME_GIFT: "GAME_GIFT";
|
|
83
|
+
TOPUP: "TOPUP";
|
|
84
|
+
SUBSCRIPTION: "SUBSCRIPTION";
|
|
85
|
+
IN_GAME_ITEM: "IN_GAME_ITEM";
|
|
86
|
+
DLC: "DLC";
|
|
87
|
+
CURRENCY: "CURRENCY";
|
|
88
|
+
VOUCHER: "VOUCHER";
|
|
89
|
+
}>;
|
|
90
|
+
basePriceUsd: z.ZodString;
|
|
91
|
+
description: z.ZodOptional<z.ZodString>;
|
|
92
|
+
shortDescription: z.ZodOptional<z.ZodString>;
|
|
93
|
+
coverImageUrl: z.ZodOptional<z.ZodURL>;
|
|
94
|
+
steamAppId: z.ZodOptional<z.ZodNumber>;
|
|
95
|
+
showcaseId: z.ZodOptional<z.ZodNumber>;
|
|
96
|
+
subShowcaseId: z.ZodOptional<z.ZodNumber>;
|
|
97
|
+
categoryId: z.ZodOptional<z.ZodNumber>;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
readonly response: z.ZodObject<{
|
|
100
|
+
id: z.ZodNumber;
|
|
101
|
+
}, z.core.$strip>;
|
|
102
|
+
readonly requiresAuth: true;
|
|
103
|
+
readonly requiresAdmin: true;
|
|
104
|
+
};
|
|
105
|
+
export declare const ArchiveProductEndpoint: {
|
|
106
|
+
readonly method: "POST";
|
|
107
|
+
readonly path: "/api/admin/products/:id/archive";
|
|
108
|
+
readonly params: z.ZodObject<{
|
|
109
|
+
id: z.ZodCoercedNumber<unknown>;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
readonly response: z.ZodObject<{
|
|
112
|
+
id: z.ZodNumber;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
readonly requiresAuth: true;
|
|
115
|
+
readonly requiresAdmin: true;
|
|
116
|
+
};
|
|
117
|
+
export declare const CreateVariantEndpoint: {
|
|
118
|
+
readonly method: "POST";
|
|
119
|
+
readonly path: "/api/admin/products/variants";
|
|
120
|
+
readonly request: z.ZodObject<{
|
|
121
|
+
productId: z.ZodNumber;
|
|
122
|
+
name: z.ZodString;
|
|
123
|
+
sku: z.ZodString;
|
|
124
|
+
priceUsd: z.ZodString;
|
|
125
|
+
deliveryType: z.ZodOptional<z.ZodEnum<{
|
|
126
|
+
AUTOMATIC: "AUTOMATIC";
|
|
127
|
+
MANUAL: "MANUAL";
|
|
128
|
+
BOT: "BOT";
|
|
129
|
+
}>>;
|
|
130
|
+
desslyServiceType: z.ZodOptional<z.ZodEnum<{
|
|
131
|
+
VOUCHER: "VOUCHER";
|
|
132
|
+
STEAM_TOPUP: "STEAM_TOPUP";
|
|
133
|
+
STEAM_GIFT: "STEAM_GIFT";
|
|
134
|
+
MOBILE_REFILL: "MOBILE_REFILL";
|
|
135
|
+
CRYPTO_REFILL: "CRYPTO_REFILL";
|
|
136
|
+
}>>;
|
|
137
|
+
desslyProductId: z.ZodOptional<z.ZodNumber>;
|
|
138
|
+
desslyVariationId: z.ZodOptional<z.ZodNumber>;
|
|
139
|
+
desslyRegion: z.ZodOptional<z.ZodString>;
|
|
140
|
+
topupAmount: z.ZodOptional<z.ZodString>;
|
|
141
|
+
topupCurrency: z.ZodOptional<z.ZodString>;
|
|
142
|
+
durationDays: z.ZodOptional<z.ZodNumber>;
|
|
143
|
+
platform: z.ZodOptional<z.ZodString>;
|
|
144
|
+
regionCode: z.ZodOptional<z.ZodString>;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
readonly response: z.ZodObject<{
|
|
147
|
+
id: z.ZodNumber;
|
|
148
|
+
}, z.core.$strip>;
|
|
149
|
+
readonly requiresAuth: true;
|
|
150
|
+
readonly requiresAdmin: true;
|
|
151
|
+
};
|
|
152
|
+
export declare const ImportKeysEndpoint: {
|
|
153
|
+
readonly method: "POST";
|
|
154
|
+
readonly path: "/api/admin/products/variants/:id/keys";
|
|
155
|
+
readonly params: z.ZodObject<{
|
|
156
|
+
id: z.ZodCoercedNumber<unknown>;
|
|
157
|
+
}, z.core.$strip>;
|
|
158
|
+
readonly request: z.ZodObject<{
|
|
159
|
+
keys: z.ZodArray<z.ZodString>;
|
|
160
|
+
}, z.core.$strip>;
|
|
161
|
+
readonly response: z.ZodObject<{
|
|
162
|
+
imported: z.ZodNumber;
|
|
163
|
+
}, z.core.$strip>;
|
|
164
|
+
readonly requiresAuth: true;
|
|
165
|
+
readonly requiresAdmin: true;
|
|
166
|
+
};
|
|
167
|
+
export declare const ParseSteamEndpoint: {
|
|
168
|
+
readonly method: "GET";
|
|
169
|
+
readonly path: "/api/admin/products/parse/steam/:appId";
|
|
170
|
+
readonly params: z.ZodObject<{
|
|
171
|
+
appId: z.ZodCoercedNumber<unknown>;
|
|
172
|
+
}, z.core.$strip>;
|
|
173
|
+
readonly response: z.ZodObject<{
|
|
174
|
+
appId: z.ZodNumber;
|
|
175
|
+
editions: z.ZodArray<z.ZodObject<{
|
|
176
|
+
edition: z.ZodString;
|
|
177
|
+
packageId: z.ZodNumber;
|
|
178
|
+
regions: z.ZodArray<z.ZodObject<{
|
|
179
|
+
region: z.ZodString;
|
|
180
|
+
price: z.ZodString;
|
|
181
|
+
priceOriginal: z.ZodString;
|
|
182
|
+
discount: z.ZodString;
|
|
183
|
+
}, z.core.$strip>>;
|
|
184
|
+
}, z.core.$strip>>;
|
|
185
|
+
}, z.core.$strip>;
|
|
186
|
+
readonly requiresAuth: true;
|
|
187
|
+
readonly requiresAdmin: true;
|
|
188
|
+
};
|
|
189
|
+
export declare const SetVariantMarginEndpoint: {
|
|
190
|
+
readonly method: "PATCH";
|
|
191
|
+
readonly path: "/api/admin/products/variants/:id/margin";
|
|
192
|
+
readonly params: z.ZodObject<{
|
|
193
|
+
id: z.ZodCoercedNumber<unknown>;
|
|
194
|
+
}, z.core.$strip>;
|
|
195
|
+
readonly request: z.ZodObject<{
|
|
196
|
+
marginPct: z.ZodString;
|
|
197
|
+
}, z.core.$strip>;
|
|
198
|
+
readonly response: z.ZodObject<{
|
|
199
|
+
id: z.ZodNumber;
|
|
200
|
+
marginPct: z.ZodString;
|
|
201
|
+
priceUsd: z.ZodString;
|
|
202
|
+
}, z.core.$strip>;
|
|
203
|
+
readonly requiresAuth: true;
|
|
204
|
+
readonly requiresAdmin: true;
|
|
205
|
+
};
|
|
206
|
+
export declare const ProductCommands: {
|
|
207
|
+
readonly create: {
|
|
208
|
+
readonly method: "POST";
|
|
209
|
+
readonly path: "/api/admin/products";
|
|
210
|
+
readonly request: z.ZodObject<{
|
|
211
|
+
slug: z.ZodString;
|
|
212
|
+
title: z.ZodString;
|
|
213
|
+
type: z.ZodEnum<{
|
|
214
|
+
GAME_KEY: "GAME_KEY";
|
|
215
|
+
GAME_GIFT: "GAME_GIFT";
|
|
216
|
+
TOPUP: "TOPUP";
|
|
217
|
+
SUBSCRIPTION: "SUBSCRIPTION";
|
|
218
|
+
IN_GAME_ITEM: "IN_GAME_ITEM";
|
|
219
|
+
DLC: "DLC";
|
|
220
|
+
CURRENCY: "CURRENCY";
|
|
221
|
+
VOUCHER: "VOUCHER";
|
|
222
|
+
}>;
|
|
223
|
+
basePriceUsd: z.ZodString;
|
|
224
|
+
description: z.ZodOptional<z.ZodString>;
|
|
225
|
+
shortDescription: z.ZodOptional<z.ZodString>;
|
|
226
|
+
coverImageUrl: z.ZodOptional<z.ZodURL>;
|
|
227
|
+
steamAppId: z.ZodOptional<z.ZodNumber>;
|
|
228
|
+
showcaseId: z.ZodOptional<z.ZodNumber>;
|
|
229
|
+
subShowcaseId: z.ZodOptional<z.ZodNumber>;
|
|
230
|
+
categoryId: z.ZodOptional<z.ZodNumber>;
|
|
231
|
+
}, z.core.$strip>;
|
|
232
|
+
readonly response: z.ZodObject<{
|
|
233
|
+
id: z.ZodNumber;
|
|
234
|
+
}, z.core.$strip>;
|
|
235
|
+
readonly requiresAuth: true;
|
|
236
|
+
readonly requiresAdmin: true;
|
|
237
|
+
};
|
|
238
|
+
readonly archive: {
|
|
239
|
+
readonly method: "POST";
|
|
240
|
+
readonly path: "/api/admin/products/:id/archive";
|
|
241
|
+
readonly params: z.ZodObject<{
|
|
242
|
+
id: z.ZodCoercedNumber<unknown>;
|
|
243
|
+
}, z.core.$strip>;
|
|
244
|
+
readonly response: z.ZodObject<{
|
|
245
|
+
id: z.ZodNumber;
|
|
246
|
+
}, z.core.$strip>;
|
|
247
|
+
readonly requiresAuth: true;
|
|
248
|
+
readonly requiresAdmin: true;
|
|
249
|
+
};
|
|
250
|
+
readonly createVariant: {
|
|
251
|
+
readonly method: "POST";
|
|
252
|
+
readonly path: "/api/admin/products/variants";
|
|
253
|
+
readonly request: z.ZodObject<{
|
|
254
|
+
productId: z.ZodNumber;
|
|
255
|
+
name: z.ZodString;
|
|
256
|
+
sku: z.ZodString;
|
|
257
|
+
priceUsd: z.ZodString;
|
|
258
|
+
deliveryType: z.ZodOptional<z.ZodEnum<{
|
|
259
|
+
AUTOMATIC: "AUTOMATIC";
|
|
260
|
+
MANUAL: "MANUAL";
|
|
261
|
+
BOT: "BOT";
|
|
262
|
+
}>>;
|
|
263
|
+
desslyServiceType: z.ZodOptional<z.ZodEnum<{
|
|
264
|
+
VOUCHER: "VOUCHER";
|
|
265
|
+
STEAM_TOPUP: "STEAM_TOPUP";
|
|
266
|
+
STEAM_GIFT: "STEAM_GIFT";
|
|
267
|
+
MOBILE_REFILL: "MOBILE_REFILL";
|
|
268
|
+
CRYPTO_REFILL: "CRYPTO_REFILL";
|
|
269
|
+
}>>;
|
|
270
|
+
desslyProductId: z.ZodOptional<z.ZodNumber>;
|
|
271
|
+
desslyVariationId: z.ZodOptional<z.ZodNumber>;
|
|
272
|
+
desslyRegion: z.ZodOptional<z.ZodString>;
|
|
273
|
+
topupAmount: z.ZodOptional<z.ZodString>;
|
|
274
|
+
topupCurrency: z.ZodOptional<z.ZodString>;
|
|
275
|
+
durationDays: z.ZodOptional<z.ZodNumber>;
|
|
276
|
+
platform: z.ZodOptional<z.ZodString>;
|
|
277
|
+
regionCode: z.ZodOptional<z.ZodString>;
|
|
278
|
+
}, z.core.$strip>;
|
|
279
|
+
readonly response: z.ZodObject<{
|
|
280
|
+
id: z.ZodNumber;
|
|
281
|
+
}, z.core.$strip>;
|
|
282
|
+
readonly requiresAuth: true;
|
|
283
|
+
readonly requiresAdmin: true;
|
|
284
|
+
};
|
|
285
|
+
readonly importKeys: {
|
|
286
|
+
readonly method: "POST";
|
|
287
|
+
readonly path: "/api/admin/products/variants/:id/keys";
|
|
288
|
+
readonly params: z.ZodObject<{
|
|
289
|
+
id: z.ZodCoercedNumber<unknown>;
|
|
290
|
+
}, z.core.$strip>;
|
|
291
|
+
readonly request: z.ZodObject<{
|
|
292
|
+
keys: z.ZodArray<z.ZodString>;
|
|
293
|
+
}, z.core.$strip>;
|
|
294
|
+
readonly response: z.ZodObject<{
|
|
295
|
+
imported: z.ZodNumber;
|
|
296
|
+
}, z.core.$strip>;
|
|
297
|
+
readonly requiresAuth: true;
|
|
298
|
+
readonly requiresAdmin: true;
|
|
299
|
+
};
|
|
300
|
+
readonly setVariantMargin: {
|
|
301
|
+
readonly method: "PATCH";
|
|
302
|
+
readonly path: "/api/admin/products/variants/:id/margin";
|
|
303
|
+
readonly params: z.ZodObject<{
|
|
304
|
+
id: z.ZodCoercedNumber<unknown>;
|
|
305
|
+
}, z.core.$strip>;
|
|
306
|
+
readonly request: z.ZodObject<{
|
|
307
|
+
marginPct: z.ZodString;
|
|
308
|
+
}, z.core.$strip>;
|
|
309
|
+
readonly response: z.ZodObject<{
|
|
310
|
+
id: z.ZodNumber;
|
|
311
|
+
marginPct: z.ZodString;
|
|
312
|
+
priceUsd: z.ZodString;
|
|
313
|
+
}, z.core.$strip>;
|
|
314
|
+
readonly requiresAuth: true;
|
|
315
|
+
readonly requiresAdmin: true;
|
|
316
|
+
};
|
|
317
|
+
readonly parseSteam: {
|
|
318
|
+
readonly method: "GET";
|
|
319
|
+
readonly path: "/api/admin/products/parse/steam/:appId";
|
|
320
|
+
readonly params: z.ZodObject<{
|
|
321
|
+
appId: z.ZodCoercedNumber<unknown>;
|
|
322
|
+
}, z.core.$strip>;
|
|
323
|
+
readonly response: z.ZodObject<{
|
|
324
|
+
appId: z.ZodNumber;
|
|
325
|
+
editions: z.ZodArray<z.ZodObject<{
|
|
326
|
+
edition: z.ZodString;
|
|
327
|
+
packageId: z.ZodNumber;
|
|
328
|
+
regions: z.ZodArray<z.ZodObject<{
|
|
329
|
+
region: z.ZodString;
|
|
330
|
+
price: z.ZodString;
|
|
331
|
+
priceOriginal: z.ZodString;
|
|
332
|
+
discount: z.ZodString;
|
|
333
|
+
}, z.core.$strip>>;
|
|
334
|
+
}, z.core.$strip>>;
|
|
335
|
+
}, z.core.$strip>;
|
|
336
|
+
readonly requiresAuth: true;
|
|
337
|
+
readonly requiresAdmin: true;
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
//# sourceMappingURL=commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../src/domains/products/commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;iBAYrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;iBAerC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,6BAA6B;;iBAIxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;iBAgBnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOG,CAAC;AAEtC,eAAO,MAAM,sBAAsB;;;;;;;;;;;CAOE,CAAC;AAEtC,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOG,CAAC;AAEtC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;CAQM,CAAC;AAEtC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;CAOM,CAAC;AAEtC,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;CAQA,CAAC;AAEtC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOlB,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductCommands = exports.SetVariantMarginEndpoint = exports.ParseSteamEndpoint = exports.ImportKeysEndpoint = exports.CreateVariantEndpoint = exports.ArchiveProductEndpoint = exports.CreateProductEndpoint = exports.ParseSteamResponseSchema = exports.SetVariantMarginRequestSchema = exports.ImportKeysRequestSchema = exports.CreateVariantRequestSchema = exports.CreateProductRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("../../shared/common");
|
|
6
|
+
const money_1 = require("../../shared/money");
|
|
7
|
+
const dtos_1 = require("./dtos");
|
|
8
|
+
exports.CreateProductRequestSchema = zod_1.z.object({
|
|
9
|
+
slug: zod_1.z.string().min(1).max(128),
|
|
10
|
+
title: zod_1.z.string().min(1).max(256),
|
|
11
|
+
type: dtos_1.ProductTypeSchema,
|
|
12
|
+
basePriceUsd: money_1.MoneyAmountSchema,
|
|
13
|
+
description: zod_1.z.string().max(8192).optional(),
|
|
14
|
+
shortDescription: zod_1.z.string().max(1024).optional(),
|
|
15
|
+
coverImageUrl: zod_1.z.url().optional(),
|
|
16
|
+
steamAppId: zod_1.z.number().int().positive().optional(),
|
|
17
|
+
showcaseId: zod_1.z.number().int().positive().optional(),
|
|
18
|
+
subShowcaseId: zod_1.z.number().int().positive().optional(),
|
|
19
|
+
categoryId: zod_1.z.number().int().positive().optional(),
|
|
20
|
+
});
|
|
21
|
+
exports.CreateVariantRequestSchema = zod_1.z.object({
|
|
22
|
+
productId: zod_1.z.number().int().positive(),
|
|
23
|
+
name: zod_1.z.string().min(1).max(128),
|
|
24
|
+
sku: zod_1.z.string().min(1).max(128),
|
|
25
|
+
priceUsd: money_1.MoneyAmountSchema,
|
|
26
|
+
deliveryType: dtos_1.DeliveryTypeSchema.optional(),
|
|
27
|
+
desslyServiceType: dtos_1.DesslyServiceTypeSchema.optional(),
|
|
28
|
+
desslyProductId: zod_1.z.number().int().positive().optional(),
|
|
29
|
+
desslyVariationId: zod_1.z.number().int().positive().optional(),
|
|
30
|
+
desslyRegion: zod_1.z.string().max(16).optional(),
|
|
31
|
+
topupAmount: money_1.MoneyAmountSchema.optional(),
|
|
32
|
+
topupCurrency: zod_1.z.string().max(8).optional(),
|
|
33
|
+
durationDays: zod_1.z.number().int().positive().optional(),
|
|
34
|
+
platform: zod_1.z.string().max(32).optional(),
|
|
35
|
+
regionCode: zod_1.z.string().max(8).optional(),
|
|
36
|
+
});
|
|
37
|
+
exports.ImportKeysRequestSchema = zod_1.z.object({
|
|
38
|
+
keys: zod_1.z.array(zod_1.z.string().min(1)).min(1).max(10_000),
|
|
39
|
+
});
|
|
40
|
+
exports.SetVariantMarginRequestSchema = zod_1.z.object({
|
|
41
|
+
marginPct: zod_1.z
|
|
42
|
+
.string()
|
|
43
|
+
.regex(/^\d+(\.\d+)?$/, "expected decimal string without sign, e.g. '10' or '12.5'"),
|
|
44
|
+
});
|
|
45
|
+
exports.ParseSteamResponseSchema = zod_1.z.object({
|
|
46
|
+
appId: zod_1.z.number().int().positive(),
|
|
47
|
+
editions: zod_1.z.array(zod_1.z.object({
|
|
48
|
+
edition: zod_1.z.string(),
|
|
49
|
+
packageId: zod_1.z.number().int().positive(),
|
|
50
|
+
regions: zod_1.z.array(zod_1.z.object({
|
|
51
|
+
region: zod_1.z.string(),
|
|
52
|
+
price: zod_1.z.string(),
|
|
53
|
+
priceOriginal: zod_1.z.string(),
|
|
54
|
+
discount: zod_1.z.string(),
|
|
55
|
+
})),
|
|
56
|
+
})),
|
|
57
|
+
});
|
|
58
|
+
exports.CreateProductEndpoint = {
|
|
59
|
+
method: "POST",
|
|
60
|
+
path: "/api/admin/products",
|
|
61
|
+
request: exports.CreateProductRequestSchema,
|
|
62
|
+
response: zod_1.z.object({ id: zod_1.z.number().int().positive() }),
|
|
63
|
+
requiresAuth: true,
|
|
64
|
+
requiresAdmin: true,
|
|
65
|
+
};
|
|
66
|
+
exports.ArchiveProductEndpoint = {
|
|
67
|
+
method: "POST",
|
|
68
|
+
path: "/api/admin/products/:id/archive",
|
|
69
|
+
params: common_1.IdParamSchema,
|
|
70
|
+
response: zod_1.z.object({ id: zod_1.z.number().int().positive() }),
|
|
71
|
+
requiresAuth: true,
|
|
72
|
+
requiresAdmin: true,
|
|
73
|
+
};
|
|
74
|
+
exports.CreateVariantEndpoint = {
|
|
75
|
+
method: "POST",
|
|
76
|
+
path: "/api/admin/products/variants",
|
|
77
|
+
request: exports.CreateVariantRequestSchema,
|
|
78
|
+
response: zod_1.z.object({ id: zod_1.z.number().int().positive() }),
|
|
79
|
+
requiresAuth: true,
|
|
80
|
+
requiresAdmin: true,
|
|
81
|
+
};
|
|
82
|
+
exports.ImportKeysEndpoint = {
|
|
83
|
+
method: "POST",
|
|
84
|
+
path: "/api/admin/products/variants/:id/keys",
|
|
85
|
+
params: common_1.IdParamSchema,
|
|
86
|
+
request: exports.ImportKeysRequestSchema,
|
|
87
|
+
response: zod_1.z.object({ imported: zod_1.z.number().int().nonnegative() }),
|
|
88
|
+
requiresAuth: true,
|
|
89
|
+
requiresAdmin: true,
|
|
90
|
+
};
|
|
91
|
+
exports.ParseSteamEndpoint = {
|
|
92
|
+
method: "GET",
|
|
93
|
+
path: "/api/admin/products/parse/steam/:appId",
|
|
94
|
+
params: zod_1.z.object({ appId: zod_1.z.coerce.number().int().positive() }),
|
|
95
|
+
response: exports.ParseSteamResponseSchema,
|
|
96
|
+
requiresAuth: true,
|
|
97
|
+
requiresAdmin: true,
|
|
98
|
+
};
|
|
99
|
+
exports.SetVariantMarginEndpoint = {
|
|
100
|
+
method: "PATCH",
|
|
101
|
+
path: "/api/admin/products/variants/:id/margin",
|
|
102
|
+
params: common_1.IdParamSchema,
|
|
103
|
+
request: exports.SetVariantMarginRequestSchema,
|
|
104
|
+
response: zod_1.z.object({ id: zod_1.z.number().int().positive(), marginPct: zod_1.z.string(), priceUsd: money_1.MoneyAmountSchema }),
|
|
105
|
+
requiresAuth: true,
|
|
106
|
+
requiresAdmin: true,
|
|
107
|
+
};
|
|
108
|
+
exports.ProductCommands = {
|
|
109
|
+
create: exports.CreateProductEndpoint,
|
|
110
|
+
archive: exports.ArchiveProductEndpoint,
|
|
111
|
+
createVariant: exports.CreateVariantEndpoint,
|
|
112
|
+
importKeys: exports.ImportKeysEndpoint,
|
|
113
|
+
setVariantMargin: exports.SetVariantMarginEndpoint,
|
|
114
|
+
parseSteam: exports.ParseSteamEndpoint,
|
|
115
|
+
};
|
|
116
|
+
//# sourceMappingURL=commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../src/domains/products/commands.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,gDAAoD;AACpD,8CAAuD;AACvD,iCAAwF;AAE3E,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAChC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACjC,IAAI,EAAE,wBAAiB;IACvB,YAAY,EAAE,yBAAiB;IAC/B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,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