@purpleschool/multisite 0.0.19 → 0.0.21
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/api/controller/http/payment.ts +1 -0
- package/api/controller/http/product.ts +2 -0
- package/api/controller/http/subscription.ts +4 -2
- package/api/routes.ts +11 -2
- package/build/api/controller/http/payment.d.ts +1 -0
- package/build/api/controller/http/payment.d.ts.map +1 -1
- package/build/api/controller/http/payment.js +1 -0
- package/build/api/controller/http/product.d.ts +2 -0
- package/build/api/controller/http/product.d.ts.map +1 -1
- package/build/api/controller/http/product.js +2 -0
- package/build/api/controller/http/subscription.d.ts +4 -2
- package/build/api/controller/http/subscription.d.ts.map +1 -1
- package/build/api/controller/http/subscription.js +4 -2
- package/build/api/routes.d.ts +5 -0
- package/build/api/routes.d.ts.map +1 -1
- package/build/api/routes.js +7 -2
- package/build/commands/payment/index.d.ts +1 -0
- package/build/commands/payment/index.d.ts.map +1 -1
- package/build/commands/payment/index.js +1 -0
- package/build/commands/payment/refund-payment.command.d.ts +20 -0
- package/build/commands/payment/refund-payment.command.d.ts.map +1 -0
- package/build/commands/payment/refund-payment.command.js +13 -0
- package/build/commands/product/delete-product.command.d.ts +20 -0
- package/build/commands/product/delete-product.command.d.ts.map +1 -0
- package/build/commands/product/delete-product.command.js +13 -0
- package/build/commands/product/index.d.ts +2 -0
- package/build/commands/product/index.d.ts.map +1 -1
- package/build/commands/product/index.js +2 -0
- package/build/commands/product/update-product.command.d.ts +116 -0
- package/build/commands/product/update-product.command.d.ts.map +1 -0
- package/build/commands/product/update-product.command.js +26 -0
- package/build/commands/subscription/delete-subscription.command.d.ts +20 -0
- package/build/commands/subscription/delete-subscription.command.d.ts.map +1 -0
- package/build/commands/subscription/delete-subscription.command.js +13 -0
- package/build/commands/subscription/index.d.ts +2 -0
- package/build/commands/subscription/index.d.ts.map +1 -1
- package/build/commands/subscription/index.js +2 -0
- package/build/commands/subscription/update-subscription.command.d.ts +148 -0
- package/build/commands/subscription/update-subscription.command.d.ts.map +1 -0
- package/build/commands/subscription/update-subscription.command.js +30 -0
- package/build/constants/cloud-payments/index.d.ts +1 -0
- package/build/constants/cloud-payments/index.d.ts.map +1 -1
- package/build/constants/cloud-payments/index.js +2 -1
- package/build/constants/errors/errors.d.ts +10 -0
- package/build/constants/errors/errors.d.ts.map +1 -1
- package/build/constants/errors/errors.js +10 -0
- package/build/constants/payment/enums/payment-status.enum.d.ts +2 -1
- package/build/constants/payment/enums/payment-status.enum.d.ts.map +1 -1
- package/build/constants/payment/enums/payment-status.enum.js +1 -0
- package/build/queries/user/find-users.command.d.ts +16 -0
- package/build/queries/user/find-users.command.d.ts.map +1 -1
- package/build/queries/user/find-users.command.js +2 -0
- package/build/queries/user/get-all-users.command.d.ts +11 -1
- package/build/queries/user/get-all-users.command.d.ts.map +1 -1
- package/build/queries/user/get-all-users.command.js +2 -0
- package/build/queries/user/get-my-subscriptions.command.d.ts +5 -0
- package/build/queries/user/get-my-subscriptions.command.d.ts.map +1 -1
- package/build/queries/user/get-my-subscriptions.command.js +1 -0
- package/build/queries/user/get-user-payments.command.d.ts +134 -0
- package/build/queries/user/get-user-payments.command.d.ts.map +1 -0
- package/build/queries/user/get-user-payments.command.js +27 -0
- package/build/queries/user/get-user.command.d.ts +11 -1
- package/build/queries/user/get-user.command.d.ts.map +1 -1
- package/build/queries/user/get-user.command.js +2 -0
- package/build/queries/user/index.d.ts +1 -0
- package/build/queries/user/index.d.ts.map +1 -1
- package/build/queries/user/index.js +1 -0
- package/commands/payment/index.ts +1 -0
- package/commands/payment/refund-payment.command.ts +13 -0
- package/commands/product/delete-product.command.ts +13 -0
- package/commands/product/index.ts +2 -0
- package/commands/product/update-product.command.ts +30 -0
- package/commands/subscription/delete-subscription.command.ts +13 -0
- package/commands/subscription/index.ts +2 -0
- package/commands/subscription/update-subscription.command.ts +34 -0
- package/constants/cloud-payments/index.ts +1 -0
- package/constants/errors/errors.ts +10 -0
- package/constants/payment/enums/payment-status.enum.ts +1 -0
- package/package.json +1 -1
- package/queries/user/find-users.command.ts +2 -0
- package/queries/user/get-all-users.command.ts +3 -1
- package/queries/user/get-my-subscriptions.command.ts +1 -0
- package/queries/user/get-user-payments.command.ts +26 -0
- package/queries/user/get-user.command.ts +3 -1
- package/queries/user/index.ts +1 -0
|
@@ -7,6 +7,8 @@ export const SUBSCRIPTION_ROUTES = {
|
|
|
7
7
|
FAST_BUY: 'fast/buy',
|
|
8
8
|
SUMMARY: 'summary',
|
|
9
9
|
GET_MY: 'my',
|
|
10
|
-
CANCEL:
|
|
11
|
-
RECOVER:
|
|
10
|
+
CANCEL: (uuid: string) => `${uuid}/cancel`,
|
|
11
|
+
RECOVER: (uuid: string) => `${uuid}/recover`,
|
|
12
|
+
UPDATE: (uuid: string) => `${uuid}`,
|
|
13
|
+
DELETE: (uuid: string) => `${uuid}`,
|
|
12
14
|
} as const;
|
package/api/routes.ts
CHANGED
|
@@ -49,6 +49,10 @@ export const REST_API = {
|
|
|
49
49
|
BUY: (uuid: string) =>
|
|
50
50
|
`${ROOT}/${CONTROLLERS.PRODUCT_PRIVATE_CONTROLLER}/${uuid}/${CONTROLLERS.PRODUCT_ROUTES.BUY}`,
|
|
51
51
|
MY: `${ROOT}/${CONTROLLERS.PRODUCT_PRIVATE_CONTROLLER}/${CONTROLLERS.PRODUCT_ROUTES.MY}`,
|
|
52
|
+
UPDATE: (uuid: string) =>
|
|
53
|
+
`${ROOT}/${CONTROLLERS.PRODUCT_PRIVATE_CONTROLLER}/${CONTROLLERS.PRODUCT_ROUTES.UPDATE(uuid)}`,
|
|
54
|
+
DELETE: (uuid: string) =>
|
|
55
|
+
`${ROOT}/${CONTROLLERS.PRODUCT_PRIVATE_CONTROLLER}/${CONTROLLERS.PRODUCT_ROUTES.DELETE(uuid)}`,
|
|
52
56
|
},
|
|
53
57
|
SUBSCRIPTION_PUBLIC: {
|
|
54
58
|
GET: `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PUBLIC_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET_ALL}`,
|
|
@@ -62,12 +66,17 @@ export const REST_API = {
|
|
|
62
66
|
SUMMARY: `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.SUMMARY}`,
|
|
63
67
|
GET_MY: `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET_MY}`,
|
|
64
68
|
CANCEL: (uuid: string) =>
|
|
65
|
-
`${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${
|
|
69
|
+
`${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.CANCEL(uuid)}`,
|
|
66
70
|
RECOVER: (uuid: string) =>
|
|
67
|
-
`${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${
|
|
71
|
+
`${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.RECOVER(uuid)}`,
|
|
72
|
+
UPDATE: (uuid: string) =>
|
|
73
|
+
`${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.UPDATE(uuid)}`,
|
|
74
|
+
DELETE: (uuid: string) =>
|
|
75
|
+
`${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.DELETE(uuid)}`,
|
|
68
76
|
},
|
|
69
77
|
PAYMENT: {
|
|
70
78
|
HISTORY: `${ROOT}/${CONTROLLERS.PAYMENT_CONTROLLER}/${CONTROLLERS.PAYMENT_ROUTES.HISTORY}`,
|
|
79
|
+
REFUND: `${ROOT}/${CONTROLLERS.PAYMENT_CONTROLLER}/${CONTROLLERS.PAYMENT_ROUTES.REFUND}`,
|
|
71
80
|
},
|
|
72
81
|
CLOUD_PAYMENTS: {
|
|
73
82
|
CALLBACK: (type: string) =>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment.d.ts","sourceRoot":"","sources":["../../../../api/controller/http/payment.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,EAAG,UAAmB,CAAC;AAEtD,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"payment.d.ts","sourceRoot":"","sources":["../../../../api/controller/http/payment.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,EAAG,UAAmB,CAAC;AAEtD,eAAO,MAAM,cAAc;;;CAGjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../../api/controller/http/product.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,EAAG,iBAA0B,CAAC;AACrE,eAAO,MAAM,yBAAyB,EAAG,gBAAyB,CAAC;AAEnE,eAAO,MAAM,cAAc;;;;;
|
|
1
|
+
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../../api/controller/http/product.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,EAAG,iBAA0B,CAAC;AACrE,eAAO,MAAM,yBAAyB,EAAG,gBAAyB,CAAC;AAEnE,eAAO,MAAM,cAAc;;;;;4BAKR,MAAM;4BACN,MAAM;CACf,CAAC"}
|
|
@@ -6,7 +6,9 @@ export declare const SUBSCRIPTION_ROUTES: {
|
|
|
6
6
|
readonly FAST_BUY: "fast/buy";
|
|
7
7
|
readonly SUMMARY: "summary";
|
|
8
8
|
readonly GET_MY: "my";
|
|
9
|
-
readonly CANCEL:
|
|
10
|
-
readonly RECOVER:
|
|
9
|
+
readonly CANCEL: (uuid: string) => string;
|
|
10
|
+
readonly RECOVER: (uuid: string) => string;
|
|
11
|
+
readonly UPDATE: (uuid: string) => string;
|
|
12
|
+
readonly DELETE: (uuid: string) => string;
|
|
11
13
|
};
|
|
12
14
|
//# sourceMappingURL=subscription.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../../api/controller/http/subscription.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,+BAA+B,EAAG,sBAA+B,CAAC;AAC/E,eAAO,MAAM,8BAA8B,EAAG,qBAA8B,CAAC;AAE7E,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../../api/controller/http/subscription.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,+BAA+B,EAAG,sBAA+B,CAAC;AAC/E,eAAO,MAAM,8BAA8B,EAAG,qBAA8B,CAAC;AAE7E,eAAO,MAAM,mBAAmB;;;;;;4BAMb,MAAM;6BACL,MAAM;4BACP,MAAM;4BACN,MAAM;CACf,CAAC"}
|
|
@@ -9,6 +9,8 @@ exports.SUBSCRIPTION_ROUTES = {
|
|
|
9
9
|
FAST_BUY: 'fast/buy',
|
|
10
10
|
SUMMARY: 'summary',
|
|
11
11
|
GET_MY: 'my',
|
|
12
|
-
CANCEL:
|
|
13
|
-
RECOVER:
|
|
12
|
+
CANCEL: (uuid) => `${uuid}/cancel`,
|
|
13
|
+
RECOVER: (uuid) => `${uuid}/recover`,
|
|
14
|
+
UPDATE: (uuid) => `${uuid}`,
|
|
15
|
+
DELETE: (uuid) => `${uuid}`,
|
|
14
16
|
};
|
package/build/api/routes.d.ts
CHANGED
|
@@ -39,6 +39,8 @@ export declare const REST_API: {
|
|
|
39
39
|
readonly GET: "/api/product/private/all";
|
|
40
40
|
readonly BUY: (uuid: string) => string;
|
|
41
41
|
readonly MY: "/api/product/private/my";
|
|
42
|
+
readonly UPDATE: (uuid: string) => string;
|
|
43
|
+
readonly DELETE: (uuid: string) => string;
|
|
42
44
|
};
|
|
43
45
|
readonly SUBSCRIPTION_PUBLIC: {
|
|
44
46
|
readonly GET: "/api/subscription/public/all";
|
|
@@ -51,9 +53,12 @@ export declare const REST_API: {
|
|
|
51
53
|
readonly GET_MY: "/api/subscription/private/my";
|
|
52
54
|
readonly CANCEL: (uuid: string) => string;
|
|
53
55
|
readonly RECOVER: (uuid: string) => string;
|
|
56
|
+
readonly UPDATE: (uuid: string) => string;
|
|
57
|
+
readonly DELETE: (uuid: string) => string;
|
|
54
58
|
};
|
|
55
59
|
readonly PAYMENT: {
|
|
56
60
|
readonly HISTORY: "/api/payments/history";
|
|
61
|
+
readonly REFUND: "/api/payments/refund";
|
|
57
62
|
};
|
|
58
63
|
readonly CLOUD_PAYMENTS: {
|
|
59
64
|
readonly CALLBACK: (type: string) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AAEpC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;sCA0BQ,MAAM;qCAEP,MAAM;2CAEA,MAAM;sCAEX,MAAM;sCAEN,MAAM;;;;kCAKV,MAAM;;;;6BAKX,MAAM
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AAEpC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;sCA0BQ,MAAM;qCAEP,MAAM;2CAEA,MAAM;sCAEX,MAAM;sCAEN,MAAM;;;;kCAKV,MAAM;;;;6BAKX,MAAM;;gCAGH,MAAM;gCAEN,MAAM;;;;kCAKJ,MAAM;;;;6BAKX,MAAM;;;gCAIH,MAAM;iCAEL,MAAM;gCAEP,MAAM;gCAEN,MAAM;;;;;;;kCAQJ,MAAM;;;;;;iCAOP,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;;iCAOJ,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;;iCAOJ,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;;iCAOJ,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;;iCAOJ,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;;iCAOJ,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;;;iCAQJ,MAAM;+BAER,MAAM;sCAEC,MAAM;gCAEZ,MAAM;gCAEN,MAAM;;;;;;;;iCASL,MAAM;+BAER,MAAM;sCAEC,MAAM;gCAEZ,MAAM;gCAEN,MAAM;;;;;;;;;;;iCAYL,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;;iCAOJ,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;;;6BAQR,MAAM;;;;;6BAKN,MAAM;;;;;;;;sCAQG,MAAM;wCAEJ,MAAM;;gCAGd,MAAM;gCAEN,MAAM;iDAEW,MAAM;;;;sCAKjB,MAAM;;gCAGZ,MAAM;gCAEN,MAAM;;CAGnB,CAAC"}
|
package/build/api/routes.js
CHANGED
|
@@ -76,6 +76,8 @@ exports.REST_API = {
|
|
|
76
76
|
GET: `${exports.ROOT}/${CONTROLLERS.PRODUCT_PRIVATE_CONTROLLER}/${CONTROLLERS.PRODUCT_ROUTES.GET_ALL}`,
|
|
77
77
|
BUY: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRODUCT_PRIVATE_CONTROLLER}/${uuid}/${CONTROLLERS.PRODUCT_ROUTES.BUY}`,
|
|
78
78
|
MY: `${exports.ROOT}/${CONTROLLERS.PRODUCT_PRIVATE_CONTROLLER}/${CONTROLLERS.PRODUCT_ROUTES.MY}`,
|
|
79
|
+
UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRODUCT_PRIVATE_CONTROLLER}/${CONTROLLERS.PRODUCT_ROUTES.UPDATE(uuid)}`,
|
|
80
|
+
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRODUCT_PRIVATE_CONTROLLER}/${CONTROLLERS.PRODUCT_ROUTES.DELETE(uuid)}`,
|
|
79
81
|
},
|
|
80
82
|
SUBSCRIPTION_PUBLIC: {
|
|
81
83
|
GET: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PUBLIC_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET_ALL}`,
|
|
@@ -86,11 +88,14 @@ exports.REST_API = {
|
|
|
86
88
|
BUY: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${uuid}/${CONTROLLERS.SUBSCRIPTION_ROUTES.BUY}`,
|
|
87
89
|
SUMMARY: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.SUMMARY}`,
|
|
88
90
|
GET_MY: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET_MY}`,
|
|
89
|
-
CANCEL: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${
|
|
90
|
-
RECOVER: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${
|
|
91
|
+
CANCEL: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.CANCEL(uuid)}`,
|
|
92
|
+
RECOVER: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.RECOVER(uuid)}`,
|
|
93
|
+
UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.UPDATE(uuid)}`,
|
|
94
|
+
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.DELETE(uuid)}`,
|
|
91
95
|
},
|
|
92
96
|
PAYMENT: {
|
|
93
97
|
HISTORY: `${exports.ROOT}/${CONTROLLERS.PAYMENT_CONTROLLER}/${CONTROLLERS.PAYMENT_ROUTES.HISTORY}`,
|
|
98
|
+
REFUND: `${exports.ROOT}/${CONTROLLERS.PAYMENT_CONTROLLER}/${CONTROLLERS.PAYMENT_ROUTES.REFUND}`,
|
|
94
99
|
},
|
|
95
100
|
CLOUD_PAYMENTS: {
|
|
96
101
|
CALLBACK: (type) => `${exports.ROOT}/${CONTROLLERS.CLOUD_PAYMENTS_CONTROLLER}/${CONTROLLERS.CLOUD_PAYMENTS_ROUTES.CALLBACK}/${type}`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/payment/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/payment/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace RefundPaymentCommand {
|
|
3
|
+
const RequestSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
uuid: string;
|
|
7
|
+
}, {
|
|
8
|
+
uuid: string;
|
|
9
|
+
}>;
|
|
10
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
11
|
+
const ResponseSchema: z.ZodObject<{
|
|
12
|
+
data: z.ZodBoolean;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
data: boolean;
|
|
15
|
+
}, {
|
|
16
|
+
data: boolean;
|
|
17
|
+
}>;
|
|
18
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=refund-payment.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refund-payment.command.d.ts","sourceRoot":"","sources":["../../../commands/payment/refund-payment.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,aAAa;;;;;;MAExB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;MAEzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RefundPaymentCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var RefundPaymentCommand;
|
|
6
|
+
(function (RefundPaymentCommand) {
|
|
7
|
+
RefundPaymentCommand.RequestSchema = zod_1.z.object({
|
|
8
|
+
uuid: zod_1.z.string().uuid(),
|
|
9
|
+
});
|
|
10
|
+
RefundPaymentCommand.ResponseSchema = zod_1.z.object({
|
|
11
|
+
data: zod_1.z.boolean(),
|
|
12
|
+
});
|
|
13
|
+
})(RefundPaymentCommand || (exports.RefundPaymentCommand = RefundPaymentCommand = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace DeleteProductCommand {
|
|
3
|
+
const RequestParamSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
uuid: string;
|
|
7
|
+
}, {
|
|
8
|
+
uuid: string;
|
|
9
|
+
}>;
|
|
10
|
+
type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
11
|
+
const ResponseSchema: z.ZodObject<{
|
|
12
|
+
data: z.ZodBoolean;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
data: boolean;
|
|
15
|
+
}, {
|
|
16
|
+
data: boolean;
|
|
17
|
+
}>;
|
|
18
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=delete-product.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-product.command.d.ts","sourceRoot":"","sources":["../../../commands/product/delete-product.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IACH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;MAEzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteProductCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var DeleteProductCommand;
|
|
6
|
+
(function (DeleteProductCommand) {
|
|
7
|
+
DeleteProductCommand.RequestParamSchema = zod_1.z.object({
|
|
8
|
+
uuid: zod_1.z.string().uuid(),
|
|
9
|
+
});
|
|
10
|
+
DeleteProductCommand.ResponseSchema = zod_1.z.object({
|
|
11
|
+
data: zod_1.z.boolean(),
|
|
12
|
+
});
|
|
13
|
+
})(DeleteProductCommand || (exports.DeleteProductCommand = DeleteProductCommand = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/product/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/product/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC"}
|
|
@@ -16,3 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./buy-product.command"), exports);
|
|
18
18
|
__exportStar(require("./fast-buy-product.command"), exports);
|
|
19
|
+
__exportStar(require("./update-product.command"), exports);
|
|
20
|
+
__exportStar(require("./delete-product.command"), exports);
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace UpdateProductCommand {
|
|
3
|
+
const RequestParamSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
uuid: string;
|
|
7
|
+
}, {
|
|
8
|
+
uuid: string;
|
|
9
|
+
}>;
|
|
10
|
+
type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
11
|
+
const RequestSchema: z.ZodObject<{
|
|
12
|
+
name: z.ZodOptional<z.ZodString>;
|
|
13
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14
|
+
price: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
features: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
17
|
+
type: z.ZodString;
|
|
18
|
+
name: z.ZodString;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
type: string;
|
|
21
|
+
name: string;
|
|
22
|
+
}, {
|
|
23
|
+
type: string;
|
|
24
|
+
name: string;
|
|
25
|
+
}>, "many">>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
price?: number | undefined;
|
|
28
|
+
name?: string | undefined;
|
|
29
|
+
description?: string | undefined;
|
|
30
|
+
tokens?: number | undefined;
|
|
31
|
+
features?: {
|
|
32
|
+
type: string;
|
|
33
|
+
name: string;
|
|
34
|
+
}[] | undefined;
|
|
35
|
+
}, {
|
|
36
|
+
price?: number | undefined;
|
|
37
|
+
name?: string | undefined;
|
|
38
|
+
description?: string | undefined;
|
|
39
|
+
tokens?: number | undefined;
|
|
40
|
+
features?: {
|
|
41
|
+
type: string;
|
|
42
|
+
name: string;
|
|
43
|
+
}[] | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
46
|
+
const ResponseSchema: z.ZodObject<{
|
|
47
|
+
data: z.ZodObject<{
|
|
48
|
+
uuid: z.ZodString;
|
|
49
|
+
siteId: z.ZodString;
|
|
50
|
+
name: z.ZodString;
|
|
51
|
+
description: z.ZodString;
|
|
52
|
+
tokens: z.ZodNumber;
|
|
53
|
+
price: z.ZodNumber;
|
|
54
|
+
features: z.ZodArray<z.ZodObject<{
|
|
55
|
+
type: z.ZodString;
|
|
56
|
+
name: z.ZodString;
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
type: string;
|
|
59
|
+
name: string;
|
|
60
|
+
}, {
|
|
61
|
+
type: string;
|
|
62
|
+
name: string;
|
|
63
|
+
}>, "many">;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
price: number;
|
|
66
|
+
uuid: string;
|
|
67
|
+
siteId: string;
|
|
68
|
+
name: string;
|
|
69
|
+
description: string;
|
|
70
|
+
tokens: number;
|
|
71
|
+
features: {
|
|
72
|
+
type: string;
|
|
73
|
+
name: string;
|
|
74
|
+
}[];
|
|
75
|
+
}, {
|
|
76
|
+
price: number;
|
|
77
|
+
uuid: string;
|
|
78
|
+
siteId: string;
|
|
79
|
+
name: string;
|
|
80
|
+
description: string;
|
|
81
|
+
tokens: number;
|
|
82
|
+
features: {
|
|
83
|
+
type: string;
|
|
84
|
+
name: string;
|
|
85
|
+
}[];
|
|
86
|
+
}>;
|
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
data: {
|
|
89
|
+
price: number;
|
|
90
|
+
uuid: string;
|
|
91
|
+
siteId: string;
|
|
92
|
+
name: string;
|
|
93
|
+
description: string;
|
|
94
|
+
tokens: number;
|
|
95
|
+
features: {
|
|
96
|
+
type: string;
|
|
97
|
+
name: string;
|
|
98
|
+
}[];
|
|
99
|
+
};
|
|
100
|
+
}, {
|
|
101
|
+
data: {
|
|
102
|
+
price: number;
|
|
103
|
+
uuid: string;
|
|
104
|
+
siteId: string;
|
|
105
|
+
name: string;
|
|
106
|
+
description: string;
|
|
107
|
+
tokens: number;
|
|
108
|
+
features: {
|
|
109
|
+
type: string;
|
|
110
|
+
name: string;
|
|
111
|
+
}[];
|
|
112
|
+
};
|
|
113
|
+
}>;
|
|
114
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
115
|
+
}
|
|
116
|
+
//# sourceMappingURL=update-product.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-product.command.d.ts","sourceRoot":"","sources":["../../../commands/product/update-product.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IACH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAaxB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateProductCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var UpdateProductCommand;
|
|
7
|
+
(function (UpdateProductCommand) {
|
|
8
|
+
UpdateProductCommand.RequestParamSchema = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
UpdateProductCommand.RequestSchema = zod_1.z.object({
|
|
12
|
+
name: zod_1.z.string().min(1).max(200).optional(),
|
|
13
|
+
description: zod_1.z.string().min(1).max(2000).optional(),
|
|
14
|
+
price: zod_1.z.number().int().min(0).optional(),
|
|
15
|
+
tokens: zod_1.z.number().int().min(0).optional(),
|
|
16
|
+
features: zod_1.z
|
|
17
|
+
.array(zod_1.z.object({
|
|
18
|
+
type: zod_1.z.string(),
|
|
19
|
+
name: zod_1.z.string(),
|
|
20
|
+
}))
|
|
21
|
+
.optional(),
|
|
22
|
+
});
|
|
23
|
+
UpdateProductCommand.ResponseSchema = zod_1.z.object({
|
|
24
|
+
data: models_1.ProductSchema,
|
|
25
|
+
});
|
|
26
|
+
})(UpdateProductCommand || (exports.UpdateProductCommand = UpdateProductCommand = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace DeleteSubscriptionCommand {
|
|
3
|
+
const RequestParamSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
uuid: string;
|
|
7
|
+
}, {
|
|
8
|
+
uuid: string;
|
|
9
|
+
}>;
|
|
10
|
+
type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
11
|
+
const ResponseSchema: z.ZodObject<{
|
|
12
|
+
data: z.ZodBoolean;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
data: boolean;
|
|
15
|
+
}, {
|
|
16
|
+
data: boolean;
|
|
17
|
+
}>;
|
|
18
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=delete-subscription.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-subscription.command.d.ts","sourceRoot":"","sources":["../../../commands/subscription/delete-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IACH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;MAEzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteSubscriptionCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var DeleteSubscriptionCommand;
|
|
6
|
+
(function (DeleteSubscriptionCommand) {
|
|
7
|
+
DeleteSubscriptionCommand.RequestParamSchema = zod_1.z.object({
|
|
8
|
+
uuid: zod_1.z.string().uuid(),
|
|
9
|
+
});
|
|
10
|
+
DeleteSubscriptionCommand.ResponseSchema = zod_1.z.object({
|
|
11
|
+
data: zod_1.z.boolean(),
|
|
12
|
+
});
|
|
13
|
+
})(DeleteSubscriptionCommand || (exports.DeleteSubscriptionCommand = DeleteSubscriptionCommand = {}));
|
|
@@ -2,4 +2,6 @@ export * from './buy-subscription.command';
|
|
|
2
2
|
export * from './fast-buy-subscription.command';
|
|
3
3
|
export * from './cancel-subscription.command';
|
|
4
4
|
export * from './recover-subscription.command';
|
|
5
|
+
export * from './update-subscription.command';
|
|
6
|
+
export * from './delete-subscription.command';
|
|
5
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/subscription/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/subscription/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC"}
|
|
@@ -18,3 +18,5 @@ __exportStar(require("./buy-subscription.command"), exports);
|
|
|
18
18
|
__exportStar(require("./fast-buy-subscription.command"), exports);
|
|
19
19
|
__exportStar(require("./cancel-subscription.command"), exports);
|
|
20
20
|
__exportStar(require("./recover-subscription.command"), exports);
|
|
21
|
+
__exportStar(require("./update-subscription.command"), exports);
|
|
22
|
+
__exportStar(require("./delete-subscription.command"), exports);
|