@gigapay-dev/contracts 1.8.6 → 2.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/README.md +1 -0
- package/build/client.d.ts +934 -0
- package/build/client.d.ts.map +1 -0
- package/build/client.js +184 -0
- package/build/client.js.map +1 -0
- package/build/commands/api-response.d.ts +1 -0
- package/build/commands/api-response.d.ts.map +1 -0
- package/build/commands/api-response.js +1 -0
- package/build/commands/api-response.js.map +1 -0
- package/build/commands/auth/confirm.d.ts +1 -0
- package/build/commands/auth/confirm.d.ts.map +1 -0
- package/build/commands/auth/confirm.js +1 -0
- package/build/commands/auth/confirm.js.map +1 -0
- package/build/commands/auth/endpoints.d.ts +1 -0
- package/build/commands/auth/endpoints.d.ts.map +1 -0
- package/build/commands/auth/endpoints.js +1 -0
- package/build/commands/auth/endpoints.js.map +1 -0
- package/build/commands/auth/index.d.ts +2 -0
- package/build/commands/auth/index.d.ts.map +1 -0
- package/build/commands/auth/index.js +2 -0
- package/build/commands/auth/index.js.map +1 -0
- package/build/commands/auth/login.d.ts +1 -0
- package/build/commands/auth/login.d.ts.map +1 -0
- package/build/commands/auth/login.js +1 -0
- package/build/commands/auth/login.js.map +1 -0
- package/build/commands/auth/profile.d.ts +1 -0
- package/build/commands/auth/profile.d.ts.map +1 -0
- package/build/commands/auth/profile.js +1 -0
- package/build/commands/auth/profile.js.map +1 -0
- package/build/commands/auth/register.d.ts +1 -0
- package/build/commands/auth/register.d.ts.map +1 -0
- package/build/commands/auth/register.js +1 -0
- package/build/commands/auth/register.js.map +1 -0
- package/build/commands/auth/reset.d.ts +1 -0
- package/build/commands/auth/reset.d.ts.map +1 -0
- package/build/commands/auth/reset.js +1 -0
- package/build/commands/auth/reset.js.map +1 -0
- package/build/commands/common.d.ts +65 -0
- package/build/commands/common.d.ts.map +1 -0
- package/build/commands/common.js +29 -0
- package/build/commands/common.js.map +1 -0
- package/build/commands/consts.d.ts +1 -0
- package/build/commands/consts.d.ts.map +1 -0
- package/build/commands/consts.js +1 -0
- package/build/commands/consts.js.map +1 -0
- package/build/commands/endpoints.d.ts +4643 -0
- package/build/commands/endpoints.d.ts.map +1 -0
- package/build/commands/endpoints.js +26 -0
- package/build/commands/endpoints.js.map +1 -0
- package/build/commands/index.d.ts +3 -0
- package/build/commands/index.d.ts.map +1 -0
- package/build/commands/index.js +3 -0
- package/build/commands/index.js.map +1 -0
- package/build/commands/orders/create.d.ts +5 -0
- package/build/commands/orders/create.d.ts.map +1 -0
- package/build/commands/orders/create.js +3 -0
- package/build/commands/orders/create.js.map +1 -0
- package/build/commands/orders/endpoints.d.ts +40 -24
- package/build/commands/orders/endpoints.d.ts.map +1 -0
- package/build/commands/orders/endpoints.js +1 -0
- package/build/commands/orders/endpoints.js.map +1 -0
- package/build/commands/orders/enums.d.ts +1 -0
- package/build/commands/orders/enums.d.ts.map +1 -0
- package/build/commands/orders/enums.js +1 -0
- package/build/commands/orders/enums.js.map +1 -0
- package/build/commands/orders/index.d.ts +1 -0
- package/build/commands/orders/index.d.ts.map +1 -0
- package/build/commands/orders/index.js +1 -0
- package/build/commands/orders/index.js.map +1 -0
- package/build/commands/orders/query.d.ts +7 -6
- package/build/commands/orders/query.d.ts.map +1 -0
- package/build/commands/orders/query.js +1 -0
- package/build/commands/orders/query.js.map +1 -0
- package/build/commands/orders/read.d.ts +8 -3
- package/build/commands/orders/read.d.ts.map +1 -0
- package/build/commands/orders/read.js +4 -1
- package/build/commands/orders/read.js.map +1 -0
- package/build/commands/orders/update.d.ts +1 -0
- package/build/commands/orders/update.d.ts.map +1 -0
- package/build/commands/orders/update.js +1 -0
- package/build/commands/orders/update.js.map +1 -0
- package/build/commands/pagination.d.ts +8 -7
- package/build/commands/pagination.d.ts.map +1 -0
- package/build/commands/pagination.js +5 -7
- package/build/commands/pagination.js.map +1 -0
- package/build/commands/payment-methods/create.d.ts +1 -0
- package/build/commands/payment-methods/create.d.ts.map +1 -0
- package/build/commands/payment-methods/create.js +1 -0
- package/build/commands/payment-methods/create.js.map +1 -0
- package/build/commands/payment-methods/endpoints.d.ts +1 -0
- package/build/commands/payment-methods/endpoints.d.ts.map +1 -0
- package/build/commands/payment-methods/endpoints.js +1 -0
- package/build/commands/payment-methods/endpoints.js.map +1 -0
- package/build/commands/payment-methods/index.d.ts +1 -0
- package/build/commands/payment-methods/index.d.ts.map +1 -0
- package/build/commands/payment-methods/index.js +1 -0
- package/build/commands/payment-methods/index.js.map +1 -0
- package/build/commands/payment-methods/read.d.ts +1 -0
- package/build/commands/payment-methods/read.d.ts.map +1 -0
- package/build/commands/payment-methods/read.js +1 -0
- package/build/commands/payment-methods/read.js.map +1 -0
- package/build/commands/payment-methods/update.d.ts +1 -0
- package/build/commands/payment-methods/update.d.ts.map +1 -0
- package/build/commands/payment-methods/update.js +1 -0
- package/build/commands/payment-methods/update.js.map +1 -0
- package/build/commands/products/create.d.ts +13 -0
- package/build/commands/products/create.d.ts.map +1 -0
- package/build/commands/products/create.js +7 -0
- package/build/commands/products/create.js.map +1 -0
- package/build/commands/products/endpoints.d.ts +99 -0
- package/build/commands/products/endpoints.d.ts.map +1 -0
- package/build/commands/products/endpoints.js +1 -0
- package/build/commands/products/endpoints.js.map +1 -0
- package/build/commands/products/enums.d.ts +1 -0
- package/build/commands/products/enums.d.ts.map +1 -0
- package/build/commands/products/enums.js +1 -0
- package/build/commands/products/enums.js.map +1 -0
- package/build/commands/products/index.d.ts +1 -0
- package/build/commands/products/index.d.ts.map +1 -0
- package/build/commands/products/index.js +1 -0
- package/build/commands/products/index.js.map +1 -0
- package/build/commands/products/query.d.ts +1 -0
- package/build/commands/products/query.d.ts.map +1 -0
- package/build/commands/products/query.js +1 -0
- package/build/commands/products/query.js.map +1 -0
- package/build/commands/products/read.d.ts +55 -0
- package/build/commands/products/read.d.ts.map +1 -0
- package/build/commands/products/read.js +11 -0
- package/build/commands/products/read.js.map +1 -0
- package/build/commands/products/update.d.ts +7 -0
- package/build/commands/products/update.d.ts.map +1 -0
- package/build/commands/products/update.js +1 -0
- package/build/commands/products/update.js.map +1 -0
- package/build/commands/promocode-activations/create.d.ts +1 -0
- package/build/commands/promocode-activations/create.d.ts.map +1 -0
- package/build/commands/promocode-activations/create.js +1 -0
- package/build/commands/promocode-activations/create.js.map +1 -0
- package/build/commands/promocode-activations/endpoints.d.ts +158 -0
- package/build/commands/promocode-activations/endpoints.d.ts.map +1 -0
- package/build/commands/promocode-activations/endpoints.js +39 -0
- package/build/commands/promocode-activations/endpoints.js.map +1 -0
- package/build/commands/promocode-activations/index.d.ts +2 -0
- package/build/commands/promocode-activations/index.d.ts.map +1 -0
- package/build/commands/promocode-activations/index.js +2 -0
- package/build/commands/promocode-activations/index.js.map +1 -0
- package/build/commands/promocode-activations/read.d.ts +1 -0
- package/build/commands/promocode-activations/read.d.ts.map +1 -0
- package/build/commands/promocode-activations/read.js +1 -0
- package/build/commands/promocode-activations/read.js.map +1 -0
- package/build/commands/promocode-activations/update.d.ts +1 -0
- package/build/commands/promocode-activations/update.d.ts.map +1 -0
- package/build/commands/promocode-activations/update.js +1 -0
- package/build/commands/promocode-activations/update.js.map +1 -0
- package/build/commands/promocodes/create.d.ts +1 -0
- package/build/commands/promocodes/create.d.ts.map +1 -0
- package/build/commands/promocodes/create.js +1 -0
- package/build/commands/promocodes/create.js.map +1 -0
- package/build/commands/promocodes/endpoints.d.ts +1 -0
- package/build/commands/promocodes/endpoints.d.ts.map +1 -0
- package/build/commands/promocodes/endpoints.js +1 -0
- package/build/commands/promocodes/endpoints.js.map +1 -0
- package/build/commands/promocodes/enums.d.ts +1 -0
- package/build/commands/promocodes/enums.d.ts.map +1 -0
- package/build/commands/promocodes/enums.js +1 -0
- package/build/commands/promocodes/enums.js.map +1 -0
- package/build/commands/promocodes/index.d.ts +1 -0
- package/build/commands/promocodes/index.d.ts.map +1 -0
- package/build/commands/promocodes/index.js +1 -0
- package/build/commands/promocodes/index.js.map +1 -0
- package/build/commands/promocodes/read.d.ts +1 -0
- package/build/commands/promocodes/read.d.ts.map +1 -0
- package/build/commands/promocodes/read.js +1 -0
- package/build/commands/promocodes/read.js.map +1 -0
- package/build/commands/promocodes/update.d.ts +1 -0
- package/build/commands/promocodes/update.d.ts.map +1 -0
- package/build/commands/promocodes/update.js +1 -0
- package/build/commands/promocodes/update.js.map +1 -0
- package/build/commands/refresh-sessions/create.d.ts +1 -0
- package/build/commands/refresh-sessions/create.d.ts.map +1 -0
- package/build/commands/refresh-sessions/create.js +1 -0
- package/build/commands/refresh-sessions/create.js.map +1 -0
- package/build/commands/refresh-sessions/endpoints.d.ts +216 -0
- package/build/commands/refresh-sessions/endpoints.d.ts.map +1 -0
- package/build/commands/refresh-sessions/endpoints.js +47 -0
- package/build/commands/refresh-sessions/endpoints.js.map +1 -0
- package/build/commands/refresh-sessions/enums.d.ts +1 -0
- package/build/commands/refresh-sessions/enums.d.ts.map +1 -0
- package/build/commands/refresh-sessions/enums.js +1 -0
- package/build/commands/refresh-sessions/enums.js.map +1 -0
- package/build/commands/refresh-sessions/index.d.ts +2 -0
- package/build/commands/refresh-sessions/index.d.ts.map +1 -0
- package/build/commands/refresh-sessions/index.js +2 -0
- package/build/commands/refresh-sessions/index.js.map +1 -0
- package/build/commands/refresh-sessions/read.d.ts +1 -0
- package/build/commands/refresh-sessions/read.d.ts.map +1 -0
- package/build/commands/refresh-sessions/read.js +1 -0
- package/build/commands/refresh-sessions/read.js.map +1 -0
- package/build/commands/refresh-sessions/update.d.ts +1 -0
- package/build/commands/refresh-sessions/update.d.ts.map +1 -0
- package/build/commands/refresh-sessions/update.js +1 -0
- package/build/commands/refresh-sessions/update.js.map +1 -0
- package/build/commands/settings/endpoints.d.ts +1 -0
- package/build/commands/settings/endpoints.d.ts.map +1 -0
- package/build/commands/settings/endpoints.js +1 -0
- package/build/commands/settings/endpoints.js.map +1 -0
- package/build/commands/settings/index.d.ts +1 -0
- package/build/commands/settings/index.d.ts.map +1 -0
- package/build/commands/settings/index.js +1 -0
- package/build/commands/settings/index.js.map +1 -0
- package/build/commands/settings/read.d.ts +1 -0
- package/build/commands/settings/read.d.ts.map +1 -0
- package/build/commands/settings/read.js +1 -0
- package/build/commands/settings/read.js.map +1 -0
- package/build/commands/settings/update.d.ts +1 -0
- package/build/commands/settings/update.d.ts.map +1 -0
- package/build/commands/settings/update.js +1 -0
- package/build/commands/settings/update.js.map +1 -0
- package/build/commands/stats/endpoints.d.ts +1 -0
- package/build/commands/stats/endpoints.d.ts.map +1 -0
- package/build/commands/stats/endpoints.js +1 -0
- package/build/commands/stats/endpoints.js.map +1 -0
- package/build/commands/stats/index.d.ts +1 -0
- package/build/commands/stats/index.d.ts.map +1 -0
- package/build/commands/stats/index.js +1 -0
- package/build/commands/stats/index.js.map +1 -0
- package/build/commands/stats/query.d.ts +1 -0
- package/build/commands/stats/query.d.ts.map +1 -0
- package/build/commands/stats/query.js +1 -0
- package/build/commands/stats/query.js.map +1 -0
- package/build/commands/stats/read.d.ts +1 -0
- package/build/commands/stats/read.d.ts.map +1 -0
- package/build/commands/stats/read.js +1 -0
- package/build/commands/stats/read.js.map +1 -0
- package/build/commands/users/create.d.ts +1 -0
- package/build/commands/users/create.d.ts.map +1 -0
- package/build/commands/users/create.js +1 -0
- package/build/commands/users/create.js.map +1 -0
- package/build/commands/users/endpoints.d.ts +7 -6
- package/build/commands/users/endpoints.d.ts.map +1 -0
- package/build/commands/users/endpoints.js +1 -0
- package/build/commands/users/endpoints.js.map +1 -0
- package/build/commands/users/enums.d.ts +1 -0
- package/build/commands/users/enums.d.ts.map +1 -0
- package/build/commands/users/enums.js +1 -0
- package/build/commands/users/enums.js.map +1 -0
- package/build/commands/users/index.d.ts +1 -0
- package/build/commands/users/index.d.ts.map +1 -0
- package/build/commands/users/index.js +1 -0
- package/build/commands/users/index.js.map +1 -0
- package/build/commands/users/query.d.ts +7 -6
- package/build/commands/users/query.d.ts.map +1 -0
- package/build/commands/users/query.js +1 -0
- package/build/commands/users/query.js.map +1 -0
- package/build/commands/users/read.d.ts +1 -0
- package/build/commands/users/read.d.ts.map +1 -0
- package/build/commands/users/read.js +1 -0
- package/build/commands/users/read.js.map +1 -0
- package/build/commands/users/update.d.ts +1 -0
- package/build/commands/users/update.d.ts.map +1 -0
- package/build/commands/users/update.js +1 -0
- package/build/commands/users/update.js.map +1 -0
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +1 -0
- package/build/index.js.map +1 -0
- package/build/types.d.ts +1 -0
- package/build/types.d.ts.map +1 -0
- package/build/types.js +1 -0
- package/build/types.js.map +1 -0
- package/package.json +48 -17
- package/commands/api-response.ts +0 -10
- package/commands/auth/confirm.ts +0 -10
- package/commands/auth/endpoints.ts +0 -51
- package/commands/auth/index.ts +0 -5
- package/commands/auth/login.ts +0 -13
- package/commands/auth/profile.ts +0 -10
- package/commands/auth/register.ts +0 -8
- package/commands/auth/reset.ts +0 -9
- package/commands/consts.ts +0 -1
- package/commands/index.ts +0 -13
- package/commands/orders/create.ts +0 -41
- package/commands/orders/endpoints.ts +0 -51
- package/commands/orders/enums.ts +0 -25
- package/commands/orders/index.ts +0 -6
- package/commands/orders/query.ts +0 -46
- package/commands/orders/read.ts +0 -83
- package/commands/orders/update.ts +0 -16
- package/commands/pagination.ts +0 -8
- package/commands/payment-methods/create.ts +0 -19
- package/commands/payment-methods/endpoints.ts +0 -67
- package/commands/payment-methods/index.ts +0 -4
- package/commands/payment-methods/read.ts +0 -30
- package/commands/payment-methods/update.ts +0 -19
- package/commands/products/create.ts +0 -134
- package/commands/products/endpoints.ts +0 -108
- package/commands/products/enums.ts +0 -33
- package/commands/products/index.ts +0 -6
- package/commands/products/query.ts +0 -52
- package/commands/products/read.ts +0 -268
- package/commands/products/update.ts +0 -11
- package/commands/promocode-activations/create.ts +0 -10
- package/commands/promocode-activations/index.ts +0 -3
- package/commands/promocode-activations/read.ts +0 -11
- package/commands/promocode-activations/update.ts +0 -10
- package/commands/promocodes/create.ts +0 -18
- package/commands/promocodes/endpoints.ts +0 -62
- package/commands/promocodes/enums.ts +0 -9
- package/commands/promocodes/index.ts +0 -5
- package/commands/promocodes/read.ts +0 -20
- package/commands/promocodes/update.ts +0 -16
- package/commands/refresh-sessions/create.ts +0 -13
- package/commands/refresh-sessions/enums.ts +0 -4
- package/commands/refresh-sessions/index.ts +0 -4
- package/commands/refresh-sessions/read.ts +0 -14
- package/commands/refresh-sessions/update.ts +0 -13
- package/commands/settings/endpoints.ts +0 -52
- package/commands/settings/index.ts +0 -3
- package/commands/settings/read.ts +0 -10
- package/commands/settings/update.ts +0 -10
- package/commands/stats/endpoints.ts +0 -23
- package/commands/stats/index.ts +0 -3
- package/commands/stats/query.ts +0 -18
- package/commands/stats/read.ts +0 -14
- package/commands/users/create.ts +0 -19
- package/commands/users/endpoints.ts +0 -47
- package/commands/users/enums.ts +0 -10
- package/commands/users/index.ts +0 -6
- package/commands/users/query.ts +0 -20
- package/commands/users/read.ts +0 -25
- package/commands/users/update.ts +0 -19
- package/index.ts +0 -1
- package/tsconfig.json +0 -111
- package/types.ts +0 -9
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../commands/settings/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;EAKtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../commands/settings/update.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,cAAc,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACtC,YAAY,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACpC,eAAe,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAC"}
|
|
@@ -65,3 +65,4 @@ export declare const StatsEndpoints: {
|
|
|
65
65
|
export type StatsEndpointKey = keyof typeof StatsEndpoints;
|
|
66
66
|
export type GetStatsRequest<K extends StatsEndpointKey> = z.infer<typeof StatsEndpoints[K]["request"]>;
|
|
67
67
|
export type GetStatsResponse<K extends StatsEndpointKey> = z.infer<typeof StatsEndpoints[K]["response"]>;
|
|
68
|
+
//# sourceMappingURL=endpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../commands/stats/endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOiB,CAAC;AAE7C,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,cAAc,CAAC;AAE3D,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,gBAAgB,IAClD,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAEjD,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,gBAAgB,IACnD,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../../commands/stats/endpoints.ts"],"names":[],"mappings":";;;AAEA,iCAAiD;AACjD,mCAAiD;AAIpC,QAAA,cAAc,GAAG;IAC1B,IAAI,EAAE;QACF,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,8BAAsB;QAC/B,QAAQ,EAAE,8BAAuB;KACpC;CACuC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/stats/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../commands/stats/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,0CAAwB;AACxB,8CAA4B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../commands/stats/query.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa9B,CAAC;AAEN,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -13,3 +13,4 @@ exports.StatsReadRequestSchema = zod_1.default
|
|
|
13
13
|
})
|
|
14
14
|
.refine(v => v.period !== "custom" || (v.start && v.end), { message: "from/to обязательны при period=custom" })
|
|
15
15
|
.refine(v => v.period !== "custom" || (new Date(v.start) < new Date(v.end)), { message: "from должен быть раньше to" });
|
|
16
|
+
//# sourceMappingURL=query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../commands/stats/query.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AAEP,QAAA,sBAAsB,GAAG,aAAC;KAClC,MAAM,CAAC;IACJ,MAAM,EAAE,aAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IACzE,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACvC,GAAG,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACxC,CAAC;KACD,MAAM,CACH,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,QAAQ,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,GAAG,CAAC,EAChD,EAAE,OAAO,EAAE,uCAAuC,EAAE,CACvD;KACA,MAAM,CACH,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,QAAQ,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,KAAM,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,GAAI,CAAC,CAAC,EACrE,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAC5C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../commands/stats/read.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;EASlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../commands/stats/read.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AAEP,QAAA,uBAAuB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC5C,UAAU,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE;IAC3C,WAAW,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE;IAC5C,WAAW,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE;IAC5C,mBAAmB,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE;IACpD,iBAAiB,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE;IAClD,yBAAyB,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE;IAC1D,WAAW,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC7C,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../commands/users/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../commands/users/create.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mCAAuD;AAE1C,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACzC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACzC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC5C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACtC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1C,cAAc,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACtC,IAAI,EAAE,oBAAY;IAClB,MAAM,EAAE,sBAAc;IACtB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC"}
|
|
@@ -106,8 +106,8 @@ export declare const UserEndpoints: {
|
|
|
106
106
|
method: "GET";
|
|
107
107
|
path: string;
|
|
108
108
|
request: z.ZodObject<{
|
|
109
|
-
take: z.ZodOptional<z.
|
|
110
|
-
skip: z.ZodOptional<z.
|
|
109
|
+
take: z.ZodOptional<z.ZodNumber>;
|
|
110
|
+
skip: z.ZodOptional<z.ZodNumber>;
|
|
111
111
|
} & {
|
|
112
112
|
email: z.ZodOptional<z.ZodString>;
|
|
113
113
|
id: z.ZodOptional<z.ZodNumber>;
|
|
@@ -120,14 +120,14 @@ export declare const UserEndpoints: {
|
|
|
120
120
|
sortDir: "asc" | "desc";
|
|
121
121
|
email?: string | undefined;
|
|
122
122
|
id?: number | undefined;
|
|
123
|
-
take?:
|
|
124
|
-
skip?:
|
|
123
|
+
take?: number | undefined;
|
|
124
|
+
skip?: number | undefined;
|
|
125
125
|
role?: "USER" | "ADMIN" | "NO_AUTH" | undefined;
|
|
126
126
|
}, {
|
|
127
127
|
email?: string | undefined;
|
|
128
128
|
id?: number | undefined;
|
|
129
|
-
take?:
|
|
130
|
-
skip?:
|
|
129
|
+
take?: number | undefined;
|
|
130
|
+
skip?: number | undefined;
|
|
131
131
|
sortBy?: string | undefined;
|
|
132
132
|
sortDir?: "asc" | "desc" | undefined;
|
|
133
133
|
role?: "USER" | "ADMIN" | "NO_AUTH" | undefined;
|
|
@@ -401,3 +401,4 @@ export declare const UserEndpoints: {
|
|
|
401
401
|
export type UserEndpointKey = keyof typeof UserEndpoints;
|
|
402
402
|
export type GetUserRequest<K extends UserEndpointKey> = z.infer<typeof UserEndpoints[K]["request"]>;
|
|
403
403
|
export type GetUserResponse<K extends UserEndpointKey> = z.infer<typeof UserEndpoints[K]["response"]>;
|
|
404
|
+
//# sourceMappingURL=endpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../commands/users/endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BkB,CAAC;AAE7C,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,aAAa,CAAC;AAEzD,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,eAAe,IAClD,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAE9C,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,eAAe,IACnD,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../../commands/users/endpoints.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,qCAA4C;AAC5C,iCAAgD;AAChD,qCAA4C;AAC5C,mCAA+C;AAElC,QAAA,aAAa,GAAG;IACzB,MAAM,EAAE;QACJ,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,yBAAgB;QACzB,QAAQ,EAAE,6BAAsB;KACnC;IACD,IAAI,EAAE;QACF,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,4BAAoB;QAC7B,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,6BAAsB,CAAC;KAC5C;IACD,OAAO,EAAE;QACL,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;YACd,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SACnC,CAAC;QACF,QAAQ,EAAE,6BAAsB;KACnC;IACD,MAAM,EAAE;QACJ,MAAM,EAAE,OAAO;QACf,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;YACd,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAChC,IAAI,EAAE,yBAAgB;SACzB,CAAC;QACF,QAAQ,EAAE,6BAAsB;KACrC;CAEyC,CAAC"}
|
|
@@ -4,3 +4,4 @@ export declare const UserStatusEnum: z.ZodEnum<["ACTIVE", "BLOCKED"]>;
|
|
|
4
4
|
export declare const SocialProviderEnum: z.ZodEnum<["GOOGLE", "STEAM"]>;
|
|
5
5
|
export type UserRoleType = z.infer<typeof UserRoleEnum>;
|
|
6
6
|
export type UserStatusType = z.infer<typeof UserStatusEnum>;
|
|
7
|
+
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../commands/users/enums.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,YAAY,yCAAuC,CAAC;AACjE,eAAO,MAAM,cAAc,kCAAgC,CAAC;AAC5D,eAAO,MAAM,kBAAkB,gCAA8B,CAAC;AAE9D,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACxD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -8,3 +8,4 @@ const zod_1 = __importDefault(require("zod"));
|
|
|
8
8
|
exports.UserRoleEnum = zod_1.default.enum(["USER", "ADMIN", "NO_AUTH"]);
|
|
9
9
|
exports.UserStatusEnum = zod_1.default.enum(["ACTIVE", "BLOCKED"]);
|
|
10
10
|
exports.SocialProviderEnum = zod_1.default.enum(["GOOGLE", "STEAM"]);
|
|
11
|
+
//# sourceMappingURL=enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../commands/users/enums.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AAEP,QAAA,YAAY,GAAG,aAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC;AACpD,QAAA,cAAc,GAAG,aAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC;AAC/C,QAAA,kBAAkB,GAAG,aAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/users/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../commands/users/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,yCAAsB;AACtB,2CAAwB;AACxB,0CAAuB;AACvB,0CAAuB;AACvB,8CAA2B"}
|
|
@@ -23,8 +23,8 @@ export declare const UsersSortSchema: z.ZodObject<{
|
|
|
23
23
|
sortDir?: "asc" | "desc" | undefined;
|
|
24
24
|
}>;
|
|
25
25
|
export declare const UsersListQuerySchema: z.ZodObject<{
|
|
26
|
-
take: z.ZodOptional<z.
|
|
27
|
-
skip: z.ZodOptional<z.
|
|
26
|
+
take: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
skip: z.ZodOptional<z.ZodNumber>;
|
|
28
28
|
} & {
|
|
29
29
|
email: z.ZodOptional<z.ZodString>;
|
|
30
30
|
id: z.ZodOptional<z.ZodNumber>;
|
|
@@ -37,16 +37,17 @@ export declare const UsersListQuerySchema: z.ZodObject<{
|
|
|
37
37
|
sortDir: "asc" | "desc";
|
|
38
38
|
email?: string | undefined;
|
|
39
39
|
id?: number | undefined;
|
|
40
|
-
take?:
|
|
41
|
-
skip?:
|
|
40
|
+
take?: number | undefined;
|
|
41
|
+
skip?: number | undefined;
|
|
42
42
|
role?: "USER" | "ADMIN" | "NO_AUTH" | undefined;
|
|
43
43
|
}, {
|
|
44
44
|
email?: string | undefined;
|
|
45
45
|
id?: number | undefined;
|
|
46
|
-
take?:
|
|
47
|
-
skip?:
|
|
46
|
+
take?: number | undefined;
|
|
47
|
+
skip?: number | undefined;
|
|
48
48
|
sortBy?: string | undefined;
|
|
49
49
|
sortDir?: "asc" | "desc" | undefined;
|
|
50
50
|
role?: "USER" | "ADMIN" | "NO_AUTH" | undefined;
|
|
51
51
|
}>;
|
|
52
52
|
export type UsersListQuery = z.infer<typeof UsersListQuerySchema>;
|
|
53
|
+
//# sourceMappingURL=query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../commands/users/query.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAIpB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAI7B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;EAG1B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;EAER,CAAA;AAEzB,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../commands/users/query.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,8CAAgD;AAChD,mCAAuC;AAE1B,QAAA,kBAAkB,GAAG,aAAC,CAAC,MAAM,CAAC;IACzC,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IACpC,EAAE,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,oBAAY,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAEU,QAAA,eAAe,GAAG,aAAC,CAAC,MAAM,CAAC;IACtC,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC;IACzC,OAAO,EAAE,aAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;CACjD,CAAC,CAAC;AAEU,QAAA,oBAAoB,GAAG,4BAAe;KAChD,KAAK,CAAC,0BAAkB,CAAC;KACzB,KAAK,CAAC,uBAAe,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../commands/users/read.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../commands/users/read.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,mCAAuD;AAE1C,QAAA,sBAAsB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC3C,EAAE,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,WAAW,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IACvD,YAAY,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IACxD,cAAc,EAAE,aAAC,CAAC,OAAO,EAAE;IAC3B,QAAQ,EAAE,aAAC,CAAC,OAAO,EAAE;IACrB,IAAI,EAAE,oBAAY;IAClB,MAAM,EAAE,sBAAc;CACzB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../commands/users/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../commands/users/update.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mCAA2E;AAE9D,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACzC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1C,QAAQ,EAAE,0BAAkB,CAAC,QAAQ,EAAE;IACvC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,cAAc,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACtC,IAAI,EAAE,oBAAY,CAAC,QAAQ,EAAE;IAC7B,MAAM,EAAE,sBAAc,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC"}
|
package/build/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
|
package/build/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B"}
|
package/build/types.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../types.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,CAAC;AACzE,MAAM,MAAM,gBAAgB,GAAG;IAC3B,MAAM,EAAE,cAAc,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,CAAC,CAAC,UAAU,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,CAAC,UAAU,CAAC;CAC3B,CAAC"}
|
package/build/types.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../types.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,17 +1,48 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@gigapay-dev/contracts",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@gigapay-dev/contracts",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "API contracts for GigaPay platform — Zod schemas, endpoint definitions, and type-safe client",
|
|
5
|
+
"main": "./build/index.js",
|
|
6
|
+
"types": "./build/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./build/index.d.ts",
|
|
10
|
+
"import": "./build/index.js",
|
|
11
|
+
"require": "./build/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./client": {
|
|
14
|
+
"types": "./build/client.d.ts",
|
|
15
|
+
"import": "./build/client.js",
|
|
16
|
+
"require": "./build/client.js"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"build/**"
|
|
21
|
+
],
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"access": "public"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "tsc",
|
|
27
|
+
"prepublishOnly": "npm run build",
|
|
28
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
29
|
+
"version:patch": "npm version patch",
|
|
30
|
+
"version:minor": "npm version minor",
|
|
31
|
+
"version:major": "npm version major"
|
|
32
|
+
},
|
|
33
|
+
"keywords": [
|
|
34
|
+
"gigapay",
|
|
35
|
+
"contracts",
|
|
36
|
+
"api",
|
|
37
|
+
"zod",
|
|
38
|
+
"typescript"
|
|
39
|
+
],
|
|
40
|
+
"author": "sergei-js",
|
|
41
|
+
"license": "ISC",
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"zod": "^3.25.49"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"typescript": "^5.7.3"
|
|
47
|
+
}
|
|
48
|
+
}
|
package/commands/api-response.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
|
|
3
|
-
export const ApiResponseSchema = z.object({
|
|
4
|
-
status: z.coerce.number(),
|
|
5
|
-
error: z.union([z.string(), z.literal(false)]),
|
|
6
|
-
error_code: z.union([z.string(), z.literal(false)]),
|
|
7
|
-
data: z.any().optional(),
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
export type ApiResponse = z.infer<typeof ApiResponseSchema>;
|
package/commands/auth/confirm.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
import { UserLoginResponseSchema } from "./login";
|
|
3
|
-
import { CONFIRMATION_CODE_LENGTH } from "../consts";
|
|
4
|
-
|
|
5
|
-
export const ConfirmCodeRequestSchema = z.object({
|
|
6
|
-
code: z.string().min(CONFIRMATION_CODE_LENGTH),
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
export type ConfirmCodeRequest = z.infer<typeof ConfirmCodeRequestSchema>;
|
|
10
|
-
export type ConfirmCodeResponse = z.infer<typeof UserLoginResponseSchema>;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
import { UserLoginRequestSchema, UserLoginResponseSchema } from "./login";
|
|
3
|
-
import { UserRegisterRequestSchema } from "./register";
|
|
4
|
-
import { EndpointContract } from "../../types";
|
|
5
|
-
import { ConfirmCodeRequestSchema } from "./confirm";
|
|
6
|
-
import { UserResetRequestSchema } from "./reset";
|
|
7
|
-
import { UserProfileResponseSchema } from "./profile";
|
|
8
|
-
|
|
9
|
-
export const AuthEndpoints = {
|
|
10
|
-
login: {
|
|
11
|
-
method: "POST",
|
|
12
|
-
path: "/auth/login",
|
|
13
|
-
request: UserLoginRequestSchema,
|
|
14
|
-
response: UserLoginResponseSchema,
|
|
15
|
-
},
|
|
16
|
-
register: {
|
|
17
|
-
method: "POST",
|
|
18
|
-
path: "/auth/sign-up",
|
|
19
|
-
request: UserRegisterRequestSchema,
|
|
20
|
-
response: UserLoginResponseSchema,
|
|
21
|
-
},
|
|
22
|
-
refresh: {
|
|
23
|
-
method: "GET",
|
|
24
|
-
path: "/auth/refresh",
|
|
25
|
-
request: z.void(),
|
|
26
|
-
response: UserLoginResponseSchema,
|
|
27
|
-
},
|
|
28
|
-
reset: {
|
|
29
|
-
method: "POST",
|
|
30
|
-
path: "/auth/reset",
|
|
31
|
-
request: UserResetRequestSchema,
|
|
32
|
-
response: z.void(),
|
|
33
|
-
},
|
|
34
|
-
confirm: {
|
|
35
|
-
method: "GET",
|
|
36
|
-
path: "/auth/confirm-code/:code",
|
|
37
|
-
request: ConfirmCodeRequestSchema,
|
|
38
|
-
response: UserLoginResponseSchema,
|
|
39
|
-
},
|
|
40
|
-
profile: {
|
|
41
|
-
method: "GET",
|
|
42
|
-
path: "/auth/profile",
|
|
43
|
-
request: z.void(),
|
|
44
|
-
response: UserProfileResponseSchema,
|
|
45
|
-
}
|
|
46
|
-
} satisfies Record<string, EndpointContract>;
|
|
47
|
-
|
|
48
|
-
export type AuthEndpointKey = keyof typeof AuthEndpoints;
|
|
49
|
-
|
|
50
|
-
export type GetAuthRequest<K extends AuthEndpointKey> = z.infer<typeof AuthEndpoints[K]["request"]>;
|
|
51
|
-
export type GetAuthResponse<K extends AuthEndpointKey> = z.infer<typeof AuthEndpoints[K]["response"]>;
|
package/commands/auth/index.ts
DELETED
package/commands/auth/login.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
|
|
3
|
-
export const UserLoginRequestSchema = z.object({
|
|
4
|
-
email: z.string().email(),
|
|
5
|
-
password: z.string().min(6),
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
export const UserLoginResponseSchema = z.object({
|
|
9
|
-
accessToken: z.string(),
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
export type UserLoginRequest = z.infer<typeof UserLoginRequestSchema>;
|
|
13
|
-
export type UserLoginResponse = z.infer<typeof UserLoginResponseSchema>;
|
package/commands/auth/profile.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
|
|
3
|
-
export const UserProfileResponseSchema = z.object({
|
|
4
|
-
id: z.coerce.number(),
|
|
5
|
-
username: z.string(),
|
|
6
|
-
email: z.string(),
|
|
7
|
-
avatar: z.string().nullable(),
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
export type UserProfileResponse = z.infer<typeof UserProfileResponseSchema>;
|
package/commands/auth/reset.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { CONFIRMATION_CODE_LENGTH } from "../consts";
|
|
3
|
-
|
|
4
|
-
export const UserResetRequestSchema = z.object({
|
|
5
|
-
code: z.string().min(CONFIRMATION_CODE_LENGTH),
|
|
6
|
-
password: z.string().min(6),
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
export type UserResetRequest = z.infer<typeof UserResetRequestSchema>;
|
package/commands/consts.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const CONFIRMATION_CODE_LENGTH = 4;
|
package/commands/index.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export * from './auth';
|
|
2
|
-
export * from './orders';
|
|
3
|
-
export * from './promocodes';
|
|
4
|
-
export * from './promocode-activations';
|
|
5
|
-
export * from './refresh-sessions';
|
|
6
|
-
export * from './consts';
|
|
7
|
-
export * from './pagination';
|
|
8
|
-
export * from './payment-methods';
|
|
9
|
-
export * from './api-response';
|
|
10
|
-
export * from './users';
|
|
11
|
-
export * from './stats';
|
|
12
|
-
export * from './settings';
|
|
13
|
-
export * from './products';
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
import { OrderType } from "./enums";
|
|
3
|
-
|
|
4
|
-
export const OrderItemInputSchema = z.object({
|
|
5
|
-
variantId: z.coerce.number().int().positive(),
|
|
6
|
-
quantity: z.coerce.number().int().min(1).default(1),
|
|
7
|
-
gameUsername: z.string().max(255).optional(),
|
|
8
|
-
gameUsernameType: z.string().max(64).optional(),
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
/** Запрос на создание заказа */
|
|
12
|
-
export const OrderCreateRequestSchema = z.object({
|
|
13
|
-
/** Email покупателя */
|
|
14
|
-
email: z.string().email(),
|
|
15
|
-
/** ID способа оплаты */
|
|
16
|
-
paymentMethodId: z.coerce.number().positive(),
|
|
17
|
-
/** Список товаров в заказе (минимум 1) */
|
|
18
|
-
items: z.array(OrderItemInputSchema).min(1),
|
|
19
|
-
/** ID промокода (опционально) */
|
|
20
|
-
promocodeId: z.coerce.number().positive().optional(),
|
|
21
|
-
/** ID существующего пользователя (опционально) */
|
|
22
|
-
userId: z.coerce.number().positive().optional(),
|
|
23
|
-
/** Telegram ID покупателя (опционально) */
|
|
24
|
-
telegramId: z.string().optional(),
|
|
25
|
-
/** UTM-метка источника трафика */
|
|
26
|
-
utmSource: z.string().optional(),
|
|
27
|
-
/** Тип дизайна формы оплаты */
|
|
28
|
-
designType: z.string().optional(),
|
|
29
|
-
/** Тип заказа: MAIN (сайт) или WEBAPP (Telegram Mini App) */
|
|
30
|
-
type: OrderType.optional().default("MAIN"),
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
/** Ответ на создание заказа — ссылка для оплаты */
|
|
34
|
-
export const OrderCreateResponseSchema = z.object({
|
|
35
|
-
/** URL для редиректа на платёжную страницу */
|
|
36
|
-
redirectUrl: z.string(),
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
export type OrderItemInput = z.infer<typeof OrderItemInputSchema>;
|
|
40
|
-
export type OrderCreateRequest = z.infer<typeof OrderCreateRequestSchema>;
|
|
41
|
-
export type OrderCreateResponse = z.infer<typeof OrderCreateResponseSchema>;
|