@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":"endpoints.d.ts","sourceRoot":"","sources":["../../commands/endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AllEndpoints = void 0;
|
|
4
|
+
const auth_1 = require("./auth");
|
|
5
|
+
const users_1 = require("./users");
|
|
6
|
+
const orders_1 = require("./orders");
|
|
7
|
+
const products_1 = require("./products");
|
|
8
|
+
const payment_methods_1 = require("./payment-methods");
|
|
9
|
+
const promocodes_1 = require("./promocodes");
|
|
10
|
+
const promocode_activations_1 = require("./promocode-activations");
|
|
11
|
+
const refresh_sessions_1 = require("./refresh-sessions");
|
|
12
|
+
const settings_1 = require("./settings");
|
|
13
|
+
const stats_1 = require("./stats");
|
|
14
|
+
exports.AllEndpoints = {
|
|
15
|
+
auth: auth_1.AuthEndpoints,
|
|
16
|
+
users: users_1.UserEndpoints,
|
|
17
|
+
orders: orders_1.OrderEndpoints,
|
|
18
|
+
products: products_1.ProductEndpoints,
|
|
19
|
+
paymentMethods: payment_methods_1.PaymentMethodEndpoints,
|
|
20
|
+
promoCodes: promocodes_1.PromoCodeEndpoints,
|
|
21
|
+
promoCodeActivations: promocode_activations_1.PromoCodeActivationEndpoints,
|
|
22
|
+
refreshSessions: refresh_sessions_1.RefreshSessionEndpoints,
|
|
23
|
+
settings: settings_1.SettingsEndpoints,
|
|
24
|
+
stats: stats_1.StatsEndpoints,
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=endpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../commands/endpoints.ts"],"names":[],"mappings":";;;AACA,iCAAuC;AACvC,mCAAwC;AACxC,qCAA0C;AAC1C,yCAA8C;AAC9C,uDAA2D;AAC3D,6CAAkD;AAClD,mEAAuE;AACvE,yDAA6D;AAC7D,yCAA+C;AAC/C,mCAAyC;AAE5B,QAAA,YAAY,GAAG;IACxB,IAAI,EAAE,oBAAa;IACnB,KAAK,EAAE,qBAAa;IACpB,MAAM,EAAE,uBAAc;IACtB,QAAQ,EAAE,2BAAgB;IAC1B,cAAc,EAAE,wCAAsB;IACtC,UAAU,EAAE,+BAAkB;IAC9B,oBAAoB,EAAE,oDAA4B;IAClD,eAAe,EAAE,0CAAuB;IACxC,QAAQ,EAAE,4BAAiB;IAC3B,KAAK,EAAE,sBAAc;CACf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
|
package/build/commands/index.js
CHANGED
|
@@ -27,3 +27,6 @@ __exportStar(require("./users"), exports);
|
|
|
27
27
|
__exportStar(require("./stats"), exports);
|
|
28
28
|
__exportStar(require("./settings"), exports);
|
|
29
29
|
__exportStar(require("./products"), exports);
|
|
30
|
+
__exportStar(require("./common"), exports);
|
|
31
|
+
__exportStar(require("./endpoints"), exports);
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,2CAAyB;AACzB,+CAA6B;AAC7B,0DAAwC;AACxC,qDAAmC;AACnC,2CAAyB;AACzB,+CAA6B;AAC7B,oDAAkC;AAClC,iDAA+B;AAC/B,0CAAwB;AACxB,0CAAwB;AACxB,6CAA2B;AAC3B,6CAA2B;AAC3B,2CAAyB;AACzB,8CAA4B"}
|
|
@@ -46,6 +46,8 @@ export declare const OrderCreateRequestSchema: z.ZodObject<{
|
|
|
46
46
|
telegramId: z.ZodOptional<z.ZodString>;
|
|
47
47
|
/** UTM-метка источника трафика */
|
|
48
48
|
utmSource: z.ZodOptional<z.ZodString>;
|
|
49
|
+
/** Telegram username покупателя (опционально) */
|
|
50
|
+
telegramUsername: z.ZodOptional<z.ZodString>;
|
|
49
51
|
/** Тип дизайна формы оплаты */
|
|
50
52
|
designType: z.ZodOptional<z.ZodString>;
|
|
51
53
|
/** Тип заказа: MAIN (сайт) или WEBAPP (Telegram Mini App) */
|
|
@@ -64,6 +66,7 @@ export declare const OrderCreateRequestSchema: z.ZodObject<{
|
|
|
64
66
|
userId?: number | undefined;
|
|
65
67
|
telegramId?: string | undefined;
|
|
66
68
|
utmSource?: string | undefined;
|
|
69
|
+
telegramUsername?: string | undefined;
|
|
67
70
|
designType?: string | undefined;
|
|
68
71
|
}, {
|
|
69
72
|
email: string;
|
|
@@ -79,6 +82,7 @@ export declare const OrderCreateRequestSchema: z.ZodObject<{
|
|
|
79
82
|
userId?: number | undefined;
|
|
80
83
|
telegramId?: string | undefined;
|
|
81
84
|
utmSource?: string | undefined;
|
|
85
|
+
telegramUsername?: string | undefined;
|
|
82
86
|
designType?: string | undefined;
|
|
83
87
|
}>;
|
|
84
88
|
/** Ответ на создание заказа — ссылка для оплаты */
|
|
@@ -93,3 +97,4 @@ export declare const OrderCreateResponseSchema: z.ZodObject<{
|
|
|
93
97
|
export type OrderItemInput = z.infer<typeof OrderItemInputSchema>;
|
|
94
98
|
export type OrderCreateRequest = z.infer<typeof OrderCreateRequestSchema>;
|
|
95
99
|
export type OrderCreateResponse = z.infer<typeof OrderCreateResponseSchema>;
|
|
100
|
+
//# sourceMappingURL=create.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../commands/orders/create.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;EAK/B,CAAC;AAEH,gCAAgC;AAChC,eAAO,MAAM,wBAAwB;IACpC,uBAAuB;;IAEvB,wBAAwB;;IAExB,0CAA0C;;;;;;;;;;;;;;;;;IAE1C,iCAAiC;;IAEjC,kDAAkD;;IAElD,2CAA2C;;IAE3C,kCAAkC;;IAElC,iDAAiD;;IAEjD,+BAA+B;;IAE/B,6DAA6D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE5D,CAAC;AAEH,mDAAmD;AACnD,eAAO,MAAM,yBAAyB;IACrC,8CAA8C;;;;;;EAE7C,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -28,6 +28,8 @@ exports.OrderCreateRequestSchema = zod_1.default.object({
|
|
|
28
28
|
telegramId: zod_1.default.string().optional(),
|
|
29
29
|
/** UTM-метка источника трафика */
|
|
30
30
|
utmSource: zod_1.default.string().optional(),
|
|
31
|
+
/** Telegram username покупателя (опционально) */
|
|
32
|
+
telegramUsername: zod_1.default.string().optional(),
|
|
31
33
|
/** Тип дизайна формы оплаты */
|
|
32
34
|
designType: zod_1.default.string().optional(),
|
|
33
35
|
/** Тип заказа: MAIN (сайт) или WEBAPP (Telegram Mini App) */
|
|
@@ -38,3 +40,4 @@ exports.OrderCreateResponseSchema = zod_1.default.object({
|
|
|
38
40
|
/** URL для редиректа на платёжную страницу */
|
|
39
41
|
redirectUrl: zod_1.default.string(),
|
|
40
42
|
});
|
|
43
|
+
//# sourceMappingURL=create.js.map
|
|
@@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AE;IACjC,kCAAkC;IAClC,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,iDAAiD;IACjD,gBAAgB,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,+BAA+B;IAC/B,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,6DAA6D;IAC7D,IAAI,EAAE,iBAAS,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;CAC1C,CAAC,CAAC;AAEH,mDAAmD;AACtC,QAAA,yBAAyB,GAAG,aAAC,CAAC,MAAM,CAAC;IACjD,8CAA8C;IAC9C,WAAW,EAAE,aAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC"}
|
|
@@ -26,6 +26,7 @@ export declare const OrderEndpoints: {
|
|
|
26
26
|
userId: z.ZodOptional<z.ZodNumber>;
|
|
27
27
|
telegramId: z.ZodOptional<z.ZodString>;
|
|
28
28
|
utmSource: z.ZodOptional<z.ZodString>;
|
|
29
|
+
telegramUsername: z.ZodOptional<z.ZodString>;
|
|
29
30
|
designType: z.ZodOptional<z.ZodString>;
|
|
30
31
|
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["MAIN", "WEBAPP"]>>>;
|
|
31
32
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -42,6 +43,7 @@ export declare const OrderEndpoints: {
|
|
|
42
43
|
userId?: number | undefined;
|
|
43
44
|
telegramId?: string | undefined;
|
|
44
45
|
utmSource?: string | undefined;
|
|
46
|
+
telegramUsername?: string | undefined;
|
|
45
47
|
designType?: string | undefined;
|
|
46
48
|
}, {
|
|
47
49
|
email: string;
|
|
@@ -57,6 +59,7 @@ export declare const OrderEndpoints: {
|
|
|
57
59
|
userId?: number | undefined;
|
|
58
60
|
telegramId?: string | undefined;
|
|
59
61
|
utmSource?: string | undefined;
|
|
62
|
+
telegramUsername?: string | undefined;
|
|
60
63
|
designType?: string | undefined;
|
|
61
64
|
}>;
|
|
62
65
|
response: z.ZodObject<{
|
|
@@ -71,8 +74,8 @@ export declare const OrderEndpoints: {
|
|
|
71
74
|
method: "GET";
|
|
72
75
|
path: string;
|
|
73
76
|
request: z.ZodObject<{
|
|
74
|
-
take: z.ZodOptional<z.
|
|
75
|
-
skip: z.ZodOptional<z.
|
|
77
|
+
take: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
skip: z.ZodOptional<z.ZodNumber>;
|
|
76
79
|
} & {
|
|
77
80
|
email: z.ZodOptional<z.ZodString>;
|
|
78
81
|
status: z.ZodOptional<z.ZodEnum<["PENDING", "AWAITING_PAYMENT", "PAID", "PROCESSING", "SUCCESS", "FAILED", "REFUNDED", "CANCELLED"]>>;
|
|
@@ -88,16 +91,16 @@ export declare const OrderEndpoints: {
|
|
|
88
91
|
sortDir: "asc" | "desc";
|
|
89
92
|
email?: string | undefined;
|
|
90
93
|
status?: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED" | undefined;
|
|
91
|
-
take?:
|
|
92
|
-
skip?:
|
|
94
|
+
take?: number | undefined;
|
|
95
|
+
skip?: number | undefined;
|
|
93
96
|
period?: "day" | "week" | "month" | "year" | "custom" | undefined;
|
|
94
97
|
start?: string | undefined;
|
|
95
98
|
end?: string | undefined;
|
|
96
99
|
}, {
|
|
97
100
|
email?: string | undefined;
|
|
98
101
|
status?: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED" | undefined;
|
|
99
|
-
take?:
|
|
100
|
-
skip?:
|
|
102
|
+
take?: number | undefined;
|
|
103
|
+
skip?: number | undefined;
|
|
101
104
|
period?: "day" | "week" | "month" | "year" | "custom" | undefined;
|
|
102
105
|
start?: string | undefined;
|
|
103
106
|
end?: string | undefined;
|
|
@@ -118,7 +121,8 @@ export declare const OrderEndpoints: {
|
|
|
118
121
|
serviceCommission: z.ZodString;
|
|
119
122
|
total: z.ZodString;
|
|
120
123
|
ipAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
|
-
utmSource: z.ZodNullable<z.ZodString
|
|
124
|
+
utmSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
125
|
+
telegramUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
126
|
designType: z.ZodNullable<z.ZodString>;
|
|
123
127
|
paymentMethodName: z.ZodNullable<z.ZodString>;
|
|
124
128
|
promocodeValue: z.ZodNullable<z.ZodString>;
|
|
@@ -172,7 +176,6 @@ export declare const OrderEndpoints: {
|
|
|
172
176
|
type: "MAIN" | "WEBAPP";
|
|
173
177
|
status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
|
|
174
178
|
id: number;
|
|
175
|
-
utmSource: string | null;
|
|
176
179
|
designType: string | null;
|
|
177
180
|
subtotal: string;
|
|
178
181
|
discount: string;
|
|
@@ -201,6 +204,8 @@ export declare const OrderEndpoints: {
|
|
|
201
204
|
}[] | undefined;
|
|
202
205
|
promocodeId?: number | null | undefined;
|
|
203
206
|
userId?: number | null | undefined;
|
|
207
|
+
utmSource?: string | null | undefined;
|
|
208
|
+
telegramUsername?: string | null | undefined;
|
|
204
209
|
ipAddress?: string | null | undefined;
|
|
205
210
|
serviceCommissionPercent?: number | undefined;
|
|
206
211
|
acquiringCommissionPercent?: number | undefined;
|
|
@@ -209,7 +214,6 @@ export declare const OrderEndpoints: {
|
|
|
209
214
|
type: "MAIN" | "WEBAPP";
|
|
210
215
|
status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
|
|
211
216
|
id: number;
|
|
212
|
-
utmSource: string | null;
|
|
213
217
|
designType: string | null;
|
|
214
218
|
subtotal: string;
|
|
215
219
|
discount: string;
|
|
@@ -236,6 +240,8 @@ export declare const OrderEndpoints: {
|
|
|
236
240
|
}[] | undefined;
|
|
237
241
|
promocodeId?: number | null | undefined;
|
|
238
242
|
userId?: number | null | undefined;
|
|
243
|
+
utmSource?: string | null | undefined;
|
|
244
|
+
telegramUsername?: string | null | undefined;
|
|
239
245
|
ipAddress?: string | null | undefined;
|
|
240
246
|
serviceCommissionPercent?: number | undefined;
|
|
241
247
|
acquiringCommissionPercent?: number | undefined;
|
|
@@ -267,7 +273,8 @@ export declare const OrderEndpoints: {
|
|
|
267
273
|
serviceCommission: z.ZodString;
|
|
268
274
|
total: z.ZodString;
|
|
269
275
|
ipAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
270
|
-
utmSource: z.ZodNullable<z.ZodString
|
|
276
|
+
utmSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
277
|
+
telegramUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
271
278
|
designType: z.ZodNullable<z.ZodString>;
|
|
272
279
|
paymentMethodName: z.ZodNullable<z.ZodString>;
|
|
273
280
|
promocodeValue: z.ZodNullable<z.ZodString>;
|
|
@@ -321,7 +328,6 @@ export declare const OrderEndpoints: {
|
|
|
321
328
|
type: "MAIN" | "WEBAPP";
|
|
322
329
|
status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
|
|
323
330
|
id: number;
|
|
324
|
-
utmSource: string | null;
|
|
325
331
|
designType: string | null;
|
|
326
332
|
subtotal: string;
|
|
327
333
|
discount: string;
|
|
@@ -350,6 +356,8 @@ export declare const OrderEndpoints: {
|
|
|
350
356
|
}[] | undefined;
|
|
351
357
|
promocodeId?: number | null | undefined;
|
|
352
358
|
userId?: number | null | undefined;
|
|
359
|
+
utmSource?: string | null | undefined;
|
|
360
|
+
telegramUsername?: string | null | undefined;
|
|
353
361
|
ipAddress?: string | null | undefined;
|
|
354
362
|
serviceCommissionPercent?: number | undefined;
|
|
355
363
|
acquiringCommissionPercent?: number | undefined;
|
|
@@ -358,7 +366,6 @@ export declare const OrderEndpoints: {
|
|
|
358
366
|
type: "MAIN" | "WEBAPP";
|
|
359
367
|
status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
|
|
360
368
|
id: number;
|
|
361
|
-
utmSource: string | null;
|
|
362
369
|
designType: string | null;
|
|
363
370
|
subtotal: string;
|
|
364
371
|
discount: string;
|
|
@@ -385,6 +392,8 @@ export declare const OrderEndpoints: {
|
|
|
385
392
|
}[] | undefined;
|
|
386
393
|
promocodeId?: number | null | undefined;
|
|
387
394
|
userId?: number | null | undefined;
|
|
395
|
+
utmSource?: string | null | undefined;
|
|
396
|
+
telegramUsername?: string | null | undefined;
|
|
388
397
|
ipAddress?: string | null | undefined;
|
|
389
398
|
serviceCommissionPercent?: number | undefined;
|
|
390
399
|
acquiringCommissionPercent?: number | undefined;
|
|
@@ -396,8 +405,8 @@ export declare const OrderEndpoints: {
|
|
|
396
405
|
method: "GET";
|
|
397
406
|
path: string;
|
|
398
407
|
request: z.ZodObject<{
|
|
399
|
-
take: z.ZodOptional<z.
|
|
400
|
-
skip: z.ZodOptional<z.
|
|
408
|
+
take: z.ZodOptional<z.ZodNumber>;
|
|
409
|
+
skip: z.ZodOptional<z.ZodNumber>;
|
|
401
410
|
} & {
|
|
402
411
|
email: z.ZodOptional<z.ZodString>;
|
|
403
412
|
status: z.ZodOptional<z.ZodEnum<["PENDING", "AWAITING_PAYMENT", "PAID", "PROCESSING", "SUCCESS", "FAILED", "REFUNDED", "CANCELLED"]>>;
|
|
@@ -413,16 +422,16 @@ export declare const OrderEndpoints: {
|
|
|
413
422
|
sortDir: "asc" | "desc";
|
|
414
423
|
email?: string | undefined;
|
|
415
424
|
status?: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED" | undefined;
|
|
416
|
-
take?:
|
|
417
|
-
skip?:
|
|
425
|
+
take?: number | undefined;
|
|
426
|
+
skip?: number | undefined;
|
|
418
427
|
period?: "day" | "week" | "month" | "year" | "custom" | undefined;
|
|
419
428
|
start?: string | undefined;
|
|
420
429
|
end?: string | undefined;
|
|
421
430
|
}, {
|
|
422
431
|
email?: string | undefined;
|
|
423
432
|
status?: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED" | undefined;
|
|
424
|
-
take?:
|
|
425
|
-
skip?:
|
|
433
|
+
take?: number | undefined;
|
|
434
|
+
skip?: number | undefined;
|
|
426
435
|
period?: "day" | "week" | "month" | "year" | "custom" | undefined;
|
|
427
436
|
start?: string | undefined;
|
|
428
437
|
end?: string | undefined;
|
|
@@ -443,7 +452,8 @@ export declare const OrderEndpoints: {
|
|
|
443
452
|
serviceCommission: z.ZodString;
|
|
444
453
|
total: z.ZodString;
|
|
445
454
|
ipAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
446
|
-
utmSource: z.ZodNullable<z.ZodString
|
|
455
|
+
utmSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
456
|
+
telegramUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
447
457
|
designType: z.ZodNullable<z.ZodString>;
|
|
448
458
|
paymentMethodName: z.ZodNullable<z.ZodString>;
|
|
449
459
|
promocodeValue: z.ZodNullable<z.ZodString>;
|
|
@@ -497,7 +507,6 @@ export declare const OrderEndpoints: {
|
|
|
497
507
|
type: "MAIN" | "WEBAPP";
|
|
498
508
|
status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
|
|
499
509
|
id: number;
|
|
500
|
-
utmSource: string | null;
|
|
501
510
|
designType: string | null;
|
|
502
511
|
subtotal: string;
|
|
503
512
|
discount: string;
|
|
@@ -526,6 +535,8 @@ export declare const OrderEndpoints: {
|
|
|
526
535
|
}[] | undefined;
|
|
527
536
|
promocodeId?: number | null | undefined;
|
|
528
537
|
userId?: number | null | undefined;
|
|
538
|
+
utmSource?: string | null | undefined;
|
|
539
|
+
telegramUsername?: string | null | undefined;
|
|
529
540
|
ipAddress?: string | null | undefined;
|
|
530
541
|
serviceCommissionPercent?: number | undefined;
|
|
531
542
|
acquiringCommissionPercent?: number | undefined;
|
|
@@ -534,7 +545,6 @@ export declare const OrderEndpoints: {
|
|
|
534
545
|
type: "MAIN" | "WEBAPP";
|
|
535
546
|
status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
|
|
536
547
|
id: number;
|
|
537
|
-
utmSource: string | null;
|
|
538
548
|
designType: string | null;
|
|
539
549
|
subtotal: string;
|
|
540
550
|
discount: string;
|
|
@@ -561,6 +571,8 @@ export declare const OrderEndpoints: {
|
|
|
561
571
|
}[] | undefined;
|
|
562
572
|
promocodeId?: number | null | undefined;
|
|
563
573
|
userId?: number | null | undefined;
|
|
574
|
+
utmSource?: string | null | undefined;
|
|
575
|
+
telegramUsername?: string | null | undefined;
|
|
564
576
|
ipAddress?: string | null | undefined;
|
|
565
577
|
serviceCommissionPercent?: number | undefined;
|
|
566
578
|
acquiringCommissionPercent?: number | undefined;
|
|
@@ -595,7 +607,8 @@ export declare const OrderEndpoints: {
|
|
|
595
607
|
serviceCommission: z.ZodString;
|
|
596
608
|
total: z.ZodString;
|
|
597
609
|
ipAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
598
|
-
utmSource: z.ZodNullable<z.ZodString
|
|
610
|
+
utmSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
611
|
+
telegramUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
599
612
|
designType: z.ZodNullable<z.ZodString>;
|
|
600
613
|
paymentMethodName: z.ZodNullable<z.ZodString>;
|
|
601
614
|
promocodeValue: z.ZodNullable<z.ZodString>;
|
|
@@ -649,7 +662,6 @@ export declare const OrderEndpoints: {
|
|
|
649
662
|
type: "MAIN" | "WEBAPP";
|
|
650
663
|
status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
|
|
651
664
|
id: number;
|
|
652
|
-
utmSource: string | null;
|
|
653
665
|
designType: string | null;
|
|
654
666
|
subtotal: string;
|
|
655
667
|
discount: string;
|
|
@@ -678,6 +690,8 @@ export declare const OrderEndpoints: {
|
|
|
678
690
|
}[] | undefined;
|
|
679
691
|
promocodeId?: number | null | undefined;
|
|
680
692
|
userId?: number | null | undefined;
|
|
693
|
+
utmSource?: string | null | undefined;
|
|
694
|
+
telegramUsername?: string | null | undefined;
|
|
681
695
|
ipAddress?: string | null | undefined;
|
|
682
696
|
serviceCommissionPercent?: number | undefined;
|
|
683
697
|
acquiringCommissionPercent?: number | undefined;
|
|
@@ -686,7 +700,6 @@ export declare const OrderEndpoints: {
|
|
|
686
700
|
type: "MAIN" | "WEBAPP";
|
|
687
701
|
status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
|
|
688
702
|
id: number;
|
|
689
|
-
utmSource: string | null;
|
|
690
703
|
designType: string | null;
|
|
691
704
|
subtotal: string;
|
|
692
705
|
discount: string;
|
|
@@ -713,6 +726,8 @@ export declare const OrderEndpoints: {
|
|
|
713
726
|
}[] | undefined;
|
|
714
727
|
promocodeId?: number | null | undefined;
|
|
715
728
|
userId?: number | null | undefined;
|
|
729
|
+
utmSource?: string | null | undefined;
|
|
730
|
+
telegramUsername?: string | null | undefined;
|
|
716
731
|
ipAddress?: string | null | undefined;
|
|
717
732
|
serviceCommissionPercent?: number | undefined;
|
|
718
733
|
acquiringCommissionPercent?: number | undefined;
|
|
@@ -724,3 +739,4 @@ export declare const OrderEndpoints: {
|
|
|
724
739
|
export type OrderEndpointKey = keyof typeof OrderEndpoints;
|
|
725
740
|
export type GetOrderRequest<K extends OrderEndpointKey> = z.infer<typeof OrderEndpoints[K]["request"]>;
|
|
726
741
|
export type GetOrderResponse<K extends OrderEndpointKey> = z.infer<typeof OrderEndpoints[K]["response"]>;
|
|
742
|
+
//# sourceMappingURL=endpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../commands/orders/endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAMpB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C,8BAAuB,CAAC;KAC1C;IACD,gBAAgB,EAAE;QACjB,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,+BAA+B;QACrC,OAAO,EAAE,aAAC,CAAC,MAAM,CAAC;YACjB,MAAM,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YACpC,OAAO,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SACrC,CAAC;QACF,QAAQ,EAAE,8BAAuB;KACjC;CAC0C,CAAC"}
|
|
@@ -5,3 +5,4 @@ export declare const OrderStatus: z.ZodEnum<["PENDING", "AWAITING_PAYMENT", "PAI
|
|
|
5
5
|
export type OrderStatus = z.infer<typeof OrderStatus>;
|
|
6
6
|
export declare const OrderItemStatus: z.ZodEnum<["PENDING", "PROCESSING", "DELIVERED", "FAILED", "REFUNDED"]>;
|
|
7
7
|
export type OrderItemStatus = z.infer<typeof OrderItemStatus>;
|
|
8
|
+
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../commands/orders/enums.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,SAAS,+BAA6B,CAAC;AACpD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAElD,eAAO,MAAM,WAAW,gHAStB,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,eAAO,MAAM,eAAe,yEAM1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../commands/orders/enums.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AAEP,QAAA,SAAS,GAAG,aAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;AAGvC,QAAA,WAAW,GAAG,aAAC,CAAC,IAAI,CAAC;IACjC,SAAS;IACT,kBAAkB;IAClB,MAAM;IACN,YAAY;IACZ,SAAS;IACT,QAAQ;IACR,UAAU;IACV,WAAW;CACX,CAAC,CAAC;AAGU,QAAA,eAAe,GAAG,aAAC,CAAC,IAAI,CAAC;IACrC,SAAS;IACT,YAAY;IACZ,WAAW;IACX,QAAQ;IACR,UAAU;CACV,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/orders/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../commands/orders/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,yCAAuB;AACvB,0CAAwB;AACxB,8CAA4B"}
|
|
@@ -60,8 +60,8 @@ export declare const OrdersSortSchema: z.ZodObject<{
|
|
|
60
60
|
}>;
|
|
61
61
|
/** Объединённая схема запроса списка заказов */
|
|
62
62
|
export declare const OrdersListQuerySchema: z.ZodObject<{
|
|
63
|
-
take: z.ZodOptional<z.
|
|
64
|
-
skip: z.ZodOptional<z.
|
|
63
|
+
take: z.ZodOptional<z.ZodNumber>;
|
|
64
|
+
skip: z.ZodOptional<z.ZodNumber>;
|
|
65
65
|
} & {
|
|
66
66
|
/** Фильтр по email покупателя (частичное совпадение) */
|
|
67
67
|
email: z.ZodOptional<z.ZodString>;
|
|
@@ -84,16 +84,16 @@ export declare const OrdersListQuerySchema: z.ZodObject<{
|
|
|
84
84
|
sortDir: "asc" | "desc";
|
|
85
85
|
email?: string | undefined;
|
|
86
86
|
status?: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED" | undefined;
|
|
87
|
-
take?:
|
|
88
|
-
skip?:
|
|
87
|
+
take?: number | undefined;
|
|
88
|
+
skip?: number | undefined;
|
|
89
89
|
period?: "day" | "week" | "month" | "year" | "custom" | undefined;
|
|
90
90
|
start?: string | undefined;
|
|
91
91
|
end?: string | undefined;
|
|
92
92
|
}, {
|
|
93
93
|
email?: string | undefined;
|
|
94
94
|
status?: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED" | undefined;
|
|
95
|
-
take?:
|
|
96
|
-
skip?:
|
|
95
|
+
take?: number | undefined;
|
|
96
|
+
skip?: number | undefined;
|
|
97
97
|
period?: "day" | "week" | "month" | "year" | "custom" | undefined;
|
|
98
98
|
start?: string | undefined;
|
|
99
99
|
end?: string | undefined;
|
|
@@ -101,3 +101,4 @@ export declare const OrdersListQuerySchema: z.ZodObject<{
|
|
|
101
101
|
sortDir?: "asc" | "desc" | undefined;
|
|
102
102
|
}>;
|
|
103
103
|
export type OrdersListQuery = z.infer<typeof OrdersListQuerySchema>;
|
|
104
|
+
//# sourceMappingURL=query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../commands/orders/query.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAcpB,sDAAsD;AACtD,eAAO,MAAM,kBAAkB;IAT9B,+DAA+D;;IAE/D,kEAAkE;;IAElE,iEAAiE;;;;;;;;;;;;;;;;;;;;;;;;;;EAW/D,CAAC;AAEJ,6BAA6B;AAC7B,eAAO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CAAyC;CAClD,CAAC;KACD,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,QAAQ,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,KAAM,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,GAAI,CAAC,EAAE;IAC5E,OAAO,EAAE,8BAA8B;CACvC,CAAC,CAAC;AAEJ,6BAA6B;AAChB,QAAA,mBAAmB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC3C,wDAAwD;IACxD,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,+BAA+B;IAC/B,MAAM,EAAE,mBAAW,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAEH,gCAAgC;AACnB,QAAA,gBAAgB,GAAG,aAAC,CAAC,MAAM,CAAC;IACxC,iEAAiE;IACjE,MAAM,EAAE,aAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;IACpF,6BAA6B;IAC7B,OAAO,EAAE,aAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;CAChD,CAAC,CAAC;AAEH,gDAAgD;AACnC,QAAA,qBAAqB,GAAG,4BAAe;KAClD,KAAK,CAAC,2BAAmB,CAAC;KAC1B,KAAK,CAAC,wBAAgB,CAAC;KACvB,KAAK,CAAC,gBAAgB,CAAC,CAAC"}
|
|
@@ -81,7 +81,9 @@ export declare const OrderReadResponseSchema: z.ZodObject<{
|
|
|
81
81
|
/** IP-адрес покупателя */
|
|
82
82
|
ipAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
83
|
/** UTM-метка источника трафика */
|
|
84
|
-
utmSource: z.ZodNullable<z.ZodString
|
|
84
|
+
utmSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
/** Telegram username покупателя (опционально) */
|
|
86
|
+
telegramUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
87
|
/** Тип дизайна формы оплаты */
|
|
86
88
|
designType: z.ZodNullable<z.ZodString>;
|
|
87
89
|
/** Название способа оплаты */
|
|
@@ -156,7 +158,6 @@ export declare const OrderReadResponseSchema: z.ZodObject<{
|
|
|
156
158
|
type: "MAIN" | "WEBAPP";
|
|
157
159
|
status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
|
|
158
160
|
id: number;
|
|
159
|
-
utmSource: string | null;
|
|
160
161
|
designType: string | null;
|
|
161
162
|
subtotal: string;
|
|
162
163
|
discount: string;
|
|
@@ -185,6 +186,8 @@ export declare const OrderReadResponseSchema: z.ZodObject<{
|
|
|
185
186
|
}[] | undefined;
|
|
186
187
|
promocodeId?: number | null | undefined;
|
|
187
188
|
userId?: number | null | undefined;
|
|
189
|
+
utmSource?: string | null | undefined;
|
|
190
|
+
telegramUsername?: string | null | undefined;
|
|
188
191
|
ipAddress?: string | null | undefined;
|
|
189
192
|
serviceCommissionPercent?: number | undefined;
|
|
190
193
|
acquiringCommissionPercent?: number | undefined;
|
|
@@ -193,7 +196,6 @@ export declare const OrderReadResponseSchema: z.ZodObject<{
|
|
|
193
196
|
type: "MAIN" | "WEBAPP";
|
|
194
197
|
status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
|
|
195
198
|
id: number;
|
|
196
|
-
utmSource: string | null;
|
|
197
199
|
designType: string | null;
|
|
198
200
|
subtotal: string;
|
|
199
201
|
discount: string;
|
|
@@ -220,6 +222,8 @@ export declare const OrderReadResponseSchema: z.ZodObject<{
|
|
|
220
222
|
}[] | undefined;
|
|
221
223
|
promocodeId?: number | null | undefined;
|
|
222
224
|
userId?: number | null | undefined;
|
|
225
|
+
utmSource?: string | null | undefined;
|
|
226
|
+
telegramUsername?: string | null | undefined;
|
|
223
227
|
ipAddress?: string | null | undefined;
|
|
224
228
|
serviceCommissionPercent?: number | undefined;
|
|
225
229
|
acquiringCommissionPercent?: number | undefined;
|
|
@@ -228,3 +232,4 @@ export declare const OrderReadResponseSchema: z.ZodObject<{
|
|
|
228
232
|
}>;
|
|
229
233
|
export type OrderItemResponse = z.infer<typeof OrderItemResponseSchema>;
|
|
230
234
|
export type OrderReadResponse = z.infer<typeof OrderReadResponseSchema>;
|
|
235
|
+
//# sourceMappingURL=read.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../commands/orders/read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,8BAA8B;AAC9B,eAAO,MAAM,uBAAuB;IACnC,yBAAyB;;IAEzB,gBAAgB;;IAEhB,yBAAyB;;IAEzB,iBAAiB;;IAEjB,+CAA+C;;IAE/C,iCAAiC;;IAEjC,0BAA0B;;IAE1B,mDAAmD;;IAEnD,oBAAoB;;IAEpB,6BAA6B;;IAE7B,sBAAsB;;IAEtB,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEvB,CAAC;AAEH,iCAAiC;AACjC,eAAO,MAAM,uBAAuB;IACnC,gBAAgB;;IAEhB,kDAAkD;;IAElD,mBAAmB;;IAEnB,wBAAwB;;IAExB,uBAAuB;;IAEvB,oBAAoB;;IAEpB,iBAAiB;;IAEjB,2DAA2D;;IAE3D,qCAAqC;;IAErC,4CAA4C;;IAE5C,yCAAyC;;IAEzC,uCAAuC;;IAEvC,0BAA0B;;IAE1B,kCAAkC;;IAElC,iDAAiD;;IAEjD,+BAA+B;;IAE/B,8BAA8B;;IAE9B,yBAAyB;;IAEzB,qDAAqD;;IAErD,oEAAoE;;IAEpE,kCAAkC;;IAElC,sBAAsB;;QAtEtB,yBAAyB;;QAEzB,gBAAgB;;QAEhB,yBAAyB;;QAEzB,iBAAiB;;QAEjB,+CAA+C;;QAE/C,iCAAiC;;QAEjC,0BAA0B;;QAE1B,mDAAmD;;QAEnD,oBAAoB;;QAEpB,6BAA6B;;QAE7B,sBAAsB;;QAEtB,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkDxB,oBAAoB;;IAEpB,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAErB,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -59,7 +59,9 @@ exports.OrderReadResponseSchema = zod_1.z.object({
|
|
|
59
59
|
/** IP-адрес покупателя */
|
|
60
60
|
ipAddress: zod_1.z.string().nullable().optional(),
|
|
61
61
|
/** UTM-метка источника трафика */
|
|
62
|
-
utmSource: zod_1.z.string().nullable(),
|
|
62
|
+
utmSource: zod_1.z.string().nullable().optional(),
|
|
63
|
+
/** Telegram username покупателя (опционально) */
|
|
64
|
+
telegramUsername: zod_1.z.string().nullable().optional(),
|
|
63
65
|
/** Тип дизайна формы оплаты */
|
|
64
66
|
designType: zod_1.z.string().nullable(),
|
|
65
67
|
/** Название способа оплаты */
|
|
@@ -79,3 +81,4 @@ exports.OrderReadResponseSchema = zod_1.z.object({
|
|
|
79
81
|
/** Дата обновления */
|
|
80
82
|
updatedAt: zod_1.z.coerce.date().default(() => new Date()),
|
|
81
83
|
});
|
|
84
|
+
//# sourceMappingURL=read.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../commands/orders/read.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mCAAkE;AAElE,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AE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IACpE,kCAAkC;IAClC,0BAA0B,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IACtE,sBAAsB;IACtB,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,+BAAuB,CAAC,CAAC,QAAQ,EAAE;IAClD,oBAAoB;IACpB,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC;IACpD,sBAAsB;IACtB,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC;CACpD,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../commands/orders/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,oDAAoD;AACpD,eAAO,MAAM,wBAAwB;IACpC,0BAA0B;;IAE1B,uBAAuB;;IAEvB,wBAAwB;;IAExB,mBAAmB;;;;;;;;;;;;EAElB,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../commands/orders/update.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mCAAsC;AAEtC,oDAAoD;AACvC,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,0BAA0B;IAC1B,MAAM,EAAE,mBAAW,CAAC,QAAQ,EAAE;IAC9B,uBAAuB;IACvB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IACpC,wBAAwB;IACxB,eAAe,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACxD,mBAAmB;IACnB,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACpD,CAAC,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import z from "zod";
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export declare const PaginationQuery: z.ZodObject<{
|
|
3
|
-
take: z.ZodOptional<z.
|
|
4
|
-
skip: z.ZodOptional<z.
|
|
3
|
+
take: z.ZodOptional<z.ZodNumber>;
|
|
4
|
+
skip: z.ZodOptional<z.ZodNumber>;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
take?:
|
|
7
|
-
skip?:
|
|
6
|
+
take?: number | undefined;
|
|
7
|
+
skip?: number | undefined;
|
|
8
8
|
}, {
|
|
9
|
-
take?:
|
|
10
|
-
skip?:
|
|
9
|
+
take?: number | undefined;
|
|
10
|
+
skip?: number | undefined;
|
|
11
11
|
}>;
|
|
12
12
|
export type PaginationQuery = z.infer<typeof PaginationQuery>;
|
|
13
|
+
//# sourceMappingURL=pagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../commands/pagination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe;;;;;;;;;EAG1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|