@purpleschool/student-works 1.5.10 → 1.5.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/commands/product/create-product.command.d.ts +32 -0
- package/build/commands/product/create-product.command.d.ts.map +1 -1
- package/build/commands/product/find-product.command.d.ts +32 -0
- package/build/commands/product/find-product.command.d.ts.map +1 -1
- package/build/commands/product/get-my-products.command.d.ts +16 -0
- package/build/commands/product/get-my-products.command.d.ts.map +1 -1
- package/build/commands/product/update-product.command.d.ts +32 -0
- package/build/commands/product/update-product.command.d.ts.map +1 -1
- package/build/commands/subscription/create-subscription.command.d.ts +29 -5
- package/build/commands/subscription/create-subscription.command.d.ts.map +1 -1
- package/build/commands/subscription/find-subscription.command.d.ts +39 -3
- package/build/commands/subscription/find-subscription.command.d.ts.map +1 -1
- package/build/commands/subscription/get-available-upgrades.command.d.ts +13 -1
- package/build/commands/subscription/get-available-upgrades.command.d.ts.map +1 -1
- package/build/commands/subscription/get-free-subscription.command.d.ts +13 -1
- package/build/commands/subscription/get-free-subscription.command.d.ts.map +1 -1
- package/build/commands/subscription/update-subscription.command.d.ts +29 -5
- package/build/commands/subscription/update-subscription.command.d.ts.map +1 -1
- package/build/commands/user/find-user-by-uuid.command.d.ts +2 -2
- package/build/commands/user/find-users-by-criteria.command.d.ts +2 -2
- package/build/commands/user/up-token-bonus-balance.command.d.ts +2 -2
- package/build/commands/user-balance/get-user-balance.command.d.ts +1 -0
- package/build/commands/user-balance/get-user-balance.command.d.ts.map +1 -1
- package/build/commands/user-balance/get-user-balance.command.js +1 -0
- package/build/commands/user-to-subscription/get-user-to-subscriptions.command.d.ts +13 -1
- package/build/commands/user-to-subscription/get-user-to-subscriptions.command.d.ts.map +1 -1
- package/build/constants/errors/errors.d.ts +37 -0
- package/build/constants/errors/errors.d.ts.map +1 -1
- package/build/constants/errors/errors.js +38 -0
- package/build/constants/index.d.ts +1 -0
- package/build/constants/index.d.ts.map +1 -1
- package/build/constants/index.js +1 -0
- package/build/constants/subscription/enums/subscription-feature-type.enum.d.ts +5 -1
- package/build/constants/subscription/enums/subscription-feature-type.enum.d.ts.map +1 -1
- package/build/constants/subscription/enums/subscription-feature-type.enum.js +4 -0
- package/build/constants/token-reservation/enums/index.d.ts +2 -0
- package/build/constants/token-reservation/enums/index.d.ts.map +1 -0
- package/build/constants/token-reservation/enums/index.js +17 -0
- package/build/constants/token-reservation/enums/token-reservation-status.enum.d.ts +7 -0
- package/build/constants/token-reservation/enums/token-reservation-status.enum.d.ts.map +1 -0
- package/build/constants/token-reservation/enums/token-reservation-status.enum.js +10 -0
- package/build/constants/token-reservation/index.d.ts +2 -0
- package/build/constants/token-reservation/index.d.ts.map +1 -0
- package/build/constants/token-reservation/index.js +17 -0
- package/build/models/presentation/slide-content.schema.js +2 -2
- package/build/models/product.schema.d.ts +16 -0
- package/build/models/product.schema.d.ts.map +1 -1
- package/build/models/product.schema.js +2 -0
- package/build/models/subscription-feature.schema.d.ts +30 -2
- package/build/models/subscription-feature.schema.d.ts.map +1 -1
- package/build/models/subscription-feature.schema.js +21 -1
- package/build/models/subscription-upgrade-schema.d.ts +13 -1
- package/build/models/subscription-upgrade-schema.d.ts.map +1 -1
- package/build/models/subscription.schema.d.ts +65 -5
- package/build/models/subscription.schema.d.ts.map +1 -1
- package/build/models/user-to-product.schema.d.ts +16 -0
- package/build/models/user-to-product.schema.d.ts.map +1 -1
- package/build/models/user-to-subscription.schema.d.ts +13 -1
- package/build/models/user-to-subscription.schema.d.ts.map +1 -1
- package/commands/user-balance/get-user-balance.command.ts +1 -0
- package/constants/errors/errors.ts +38 -0
- package/constants/index.ts +1 -0
- package/constants/subscription/enums/subscription-feature-type.enum.ts +4 -0
- package/constants/token-reservation/enums/index.ts +1 -0
- package/constants/token-reservation/enums/token-reservation-status.enum.ts +6 -0
- package/constants/token-reservation/index.ts +1 -0
- package/models/presentation/slide-content.schema.ts +2 -2
- package/models/product.schema.ts +2 -0
- package/models/subscription-feature.schema.ts +24 -0
- package/package.json +1 -1
|
@@ -5,6 +5,22 @@ export declare namespace CreateProductCommand {
|
|
|
5
5
|
description: z.ZodString;
|
|
6
6
|
price: z.ZodNumber;
|
|
7
7
|
tokens: z.ZodNumber;
|
|
8
|
+
features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.GENERIC>;
|
|
10
|
+
name: z.ZodString;
|
|
11
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.CREDITS>;
|
|
13
|
+
name: z.ZodString;
|
|
14
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
15
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.WRITER_PAGES>;
|
|
16
|
+
name: z.ZodString;
|
|
17
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.PRESENTATION_SLIDES>;
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.EDU_TASKS>;
|
|
22
|
+
name: z.ZodString;
|
|
23
|
+
}, z.core.$strip>], "type">>;
|
|
8
24
|
}, z.core.$strip>;
|
|
9
25
|
type Request = z.infer<typeof RequestSchema>;
|
|
10
26
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -14,6 +30,22 @@ export declare namespace CreateProductCommand {
|
|
|
14
30
|
description: z.ZodString;
|
|
15
31
|
price: z.ZodNumber;
|
|
16
32
|
tokens: z.ZodNumber;
|
|
33
|
+
features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
34
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.GENERIC>;
|
|
35
|
+
name: z.ZodString;
|
|
36
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.CREDITS>;
|
|
38
|
+
name: z.ZodString;
|
|
39
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.WRITER_PAGES>;
|
|
41
|
+
name: z.ZodString;
|
|
42
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.PRESENTATION_SLIDES>;
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
46
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.EDU_TASKS>;
|
|
47
|
+
name: z.ZodString;
|
|
48
|
+
}, z.core.$strip>], "type">>;
|
|
17
49
|
createdAt: z.ZodDate;
|
|
18
50
|
updatedAt: z.ZodDate;
|
|
19
51
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-product.command.d.ts","sourceRoot":"","sources":["../../../commands/product/create-product.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"create-product.command.d.ts","sourceRoot":"","sources":["../../../commands/product/create-product.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;qBAIxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;qBAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -11,6 +11,22 @@ export declare namespace FindProductCommand {
|
|
|
11
11
|
description: z.ZodString;
|
|
12
12
|
price: z.ZodNumber;
|
|
13
13
|
tokens: z.ZodNumber;
|
|
14
|
+
features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
15
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.GENERIC>;
|
|
16
|
+
name: z.ZodString;
|
|
17
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.CREDITS>;
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.WRITER_PAGES>;
|
|
22
|
+
name: z.ZodString;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.PRESENTATION_SLIDES>;
|
|
25
|
+
name: z.ZodString;
|
|
26
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.EDU_TASKS>;
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
}, z.core.$strip>], "type">>;
|
|
14
30
|
createdAt: z.ZodDate;
|
|
15
31
|
updatedAt: z.ZodDate;
|
|
16
32
|
}, z.core.$strip>>;
|
|
@@ -23,6 +39,22 @@ export declare namespace FindProductCommand {
|
|
|
23
39
|
description: z.ZodString;
|
|
24
40
|
price: z.ZodNumber;
|
|
25
41
|
tokens: z.ZodNumber;
|
|
42
|
+
features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
43
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.GENERIC>;
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
46
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.CREDITS>;
|
|
47
|
+
name: z.ZodString;
|
|
48
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.WRITER_PAGES>;
|
|
50
|
+
name: z.ZodString;
|
|
51
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.PRESENTATION_SLIDES>;
|
|
53
|
+
name: z.ZodString;
|
|
54
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
55
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.EDU_TASKS>;
|
|
56
|
+
name: z.ZodString;
|
|
57
|
+
}, z.core.$strip>], "type">>;
|
|
26
58
|
createdAt: z.ZodDate;
|
|
27
59
|
updatedAt: z.ZodDate;
|
|
28
60
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-product.command.d.ts","sourceRoot":"","sources":["../../../commands/product/find-product.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,aAAa;;qBAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"find-product.command.d.ts","sourceRoot":"","sources":["../../../commands/product/find-product.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,aAAa;;qBAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;qBAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;IAE/C,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;qBAE/B,CAAC;IAEH,KAAY,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;CACrE"}
|
|
@@ -16,6 +16,22 @@ export declare namespace GetMyProductsCommand {
|
|
|
16
16
|
description: z.ZodString;
|
|
17
17
|
price: z.ZodNumber;
|
|
18
18
|
tokens: z.ZodNumber;
|
|
19
|
+
features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
20
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.GENERIC>;
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.CREDITS>;
|
|
24
|
+
name: z.ZodString;
|
|
25
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.WRITER_PAGES>;
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.PRESENTATION_SLIDES>;
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.EDU_TASKS>;
|
|
33
|
+
name: z.ZodString;
|
|
34
|
+
}, z.core.$strip>], "type">>;
|
|
19
35
|
createdAt: z.ZodDate;
|
|
20
36
|
updatedAt: z.ZodDate;
|
|
21
37
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-my-products.command.d.ts","sourceRoot":"","sources":["../../../commands/product/get-my-products.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-my-products.command.d.ts","sourceRoot":"","sources":["../../../commands/product/get-my-products.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -5,6 +5,22 @@ export declare namespace UpdateProductCommand {
|
|
|
5
5
|
description: z.ZodOptional<z.ZodString>;
|
|
6
6
|
price: z.ZodOptional<z.ZodNumber>;
|
|
7
7
|
tokens: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
features: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.GENERIC>;
|
|
10
|
+
name: z.ZodString;
|
|
11
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.CREDITS>;
|
|
13
|
+
name: z.ZodString;
|
|
14
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
15
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.WRITER_PAGES>;
|
|
16
|
+
name: z.ZodString;
|
|
17
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.PRESENTATION_SLIDES>;
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.EDU_TASKS>;
|
|
22
|
+
name: z.ZodString;
|
|
23
|
+
}, z.core.$strip>], "type">>>;
|
|
8
24
|
}, z.core.$strip>;
|
|
9
25
|
type Request = z.infer<typeof RequestSchema>;
|
|
10
26
|
const RequestParamSchema: z.ZodObject<{
|
|
@@ -18,6 +34,22 @@ export declare namespace UpdateProductCommand {
|
|
|
18
34
|
description: z.ZodString;
|
|
19
35
|
price: z.ZodNumber;
|
|
20
36
|
tokens: z.ZodNumber;
|
|
37
|
+
features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
38
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.GENERIC>;
|
|
39
|
+
name: z.ZodString;
|
|
40
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.CREDITS>;
|
|
42
|
+
name: z.ZodString;
|
|
43
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.WRITER_PAGES>;
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.PRESENTATION_SLIDES>;
|
|
48
|
+
name: z.ZodString;
|
|
49
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.EDU_TASKS>;
|
|
51
|
+
name: z.ZodString;
|
|
52
|
+
}, z.core.$strip>], "type">>;
|
|
21
53
|
createdAt: z.ZodDate;
|
|
22
54
|
updatedAt: z.ZodDate;
|
|
23
55
|
}, z.core.$strip>;
|
|
@@ -1 +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,aAAa
|
|
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,aAAa;;;;;;;;;;;;;;;;;;;;;qBAId,CAAC;IAEb,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,kBAAkB;;qBAE7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;qBAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -6,14 +6,26 @@ export declare namespace CreateSubscriptionCommand {
|
|
|
6
6
|
description: z.ZodString;
|
|
7
7
|
price: z.ZodNumber;
|
|
8
8
|
tokens: z.ZodNumber;
|
|
9
|
+
features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.GENERIC>;
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.CREDITS>;
|
|
14
|
+
name: z.ZodString;
|
|
15
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.WRITER_PAGES>;
|
|
17
|
+
name: z.ZodString;
|
|
18
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.PRESENTATION_SLIDES>;
|
|
20
|
+
name: z.ZodString;
|
|
21
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.EDU_TASKS>;
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
}, z.core.$strip>], "type">>;
|
|
9
25
|
mainSubscriptionId: z.ZodNullable<z.ZodString>;
|
|
10
26
|
discount: z.ZodNumber;
|
|
11
27
|
period: z.ZodNumber;
|
|
12
28
|
action: z.ZodNullable<z.ZodOptional<z.ZodEnum<typeof import("../..").SUBSCRIPTION_ACTION>>>;
|
|
13
|
-
features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14
|
-
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE>;
|
|
15
|
-
name: z.ZodString;
|
|
16
|
-
}, z.core.$strip>], "type">>;
|
|
17
29
|
}, z.core.$strip>;
|
|
18
30
|
type Request = z.infer<typeof RequestSchema>;
|
|
19
31
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -29,7 +41,19 @@ export declare namespace CreateSubscriptionCommand {
|
|
|
29
41
|
tokens: z.ZodNumber;
|
|
30
42
|
action: z.ZodNullable<z.ZodOptional<z.ZodEnum<typeof import("../..").SUBSCRIPTION_ACTION>>>;
|
|
31
43
|
features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
32
|
-
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE>;
|
|
44
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.GENERIC>;
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.CREDITS>;
|
|
48
|
+
name: z.ZodString;
|
|
49
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.WRITER_PAGES>;
|
|
51
|
+
name: z.ZodString;
|
|
52
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.PRESENTATION_SLIDES>;
|
|
54
|
+
name: z.ZodString;
|
|
55
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
56
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.EDU_TASKS>;
|
|
33
57
|
name: z.ZodString;
|
|
34
58
|
}, z.core.$strip>], "type">>;
|
|
35
59
|
createdAt: z.ZodDate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-subscription.command.d.ts","sourceRoot":"","sources":["../../../commands/subscription/create-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"create-subscription.command.d.ts","sourceRoot":"","sources":["../../../commands/subscription/create-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;qBAIxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -17,7 +17,19 @@ export declare namespace FindSubscriptionCommand {
|
|
|
17
17
|
tokens: z.ZodNumber;
|
|
18
18
|
action: z.ZodNullable<z.ZodOptional<z.ZodEnum<typeof import("../..").SUBSCRIPTION_ACTION>>>;
|
|
19
19
|
features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
20
|
-
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE>;
|
|
20
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.GENERIC>;
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.CREDITS>;
|
|
24
|
+
name: z.ZodString;
|
|
25
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.WRITER_PAGES>;
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.PRESENTATION_SLIDES>;
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.EDU_TASKS>;
|
|
21
33
|
name: z.ZodString;
|
|
22
34
|
}, z.core.$strip>], "type">>;
|
|
23
35
|
createdAt: z.ZodDate;
|
|
@@ -35,7 +47,19 @@ export declare namespace FindSubscriptionCommand {
|
|
|
35
47
|
tokens: z.ZodNumber;
|
|
36
48
|
action: z.ZodNullable<z.ZodOptional<z.ZodEnum<typeof import("../..").SUBSCRIPTION_ACTION>>>;
|
|
37
49
|
features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
38
|
-
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE>;
|
|
50
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.GENERIC>;
|
|
51
|
+
name: z.ZodString;
|
|
52
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.CREDITS>;
|
|
54
|
+
name: z.ZodString;
|
|
55
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
56
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.WRITER_PAGES>;
|
|
57
|
+
name: z.ZodString;
|
|
58
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.PRESENTATION_SLIDES>;
|
|
60
|
+
name: z.ZodString;
|
|
61
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
62
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.EDU_TASKS>;
|
|
39
63
|
name: z.ZodString;
|
|
40
64
|
}, z.core.$strip>], "type">>;
|
|
41
65
|
createdAt: z.ZodDate;
|
|
@@ -57,7 +81,19 @@ export declare namespace FindSubscriptionCommand {
|
|
|
57
81
|
tokens: z.ZodNumber;
|
|
58
82
|
action: z.ZodNullable<z.ZodOptional<z.ZodEnum<typeof import("../..").SUBSCRIPTION_ACTION>>>;
|
|
59
83
|
features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
60
|
-
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE>;
|
|
84
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.GENERIC>;
|
|
85
|
+
name: z.ZodString;
|
|
86
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
87
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.CREDITS>;
|
|
88
|
+
name: z.ZodString;
|
|
89
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
90
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.WRITER_PAGES>;
|
|
91
|
+
name: z.ZodString;
|
|
92
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
93
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.PRESENTATION_SLIDES>;
|
|
94
|
+
name: z.ZodString;
|
|
95
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
96
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.EDU_TASKS>;
|
|
61
97
|
name: z.ZodString;
|
|
62
98
|
}, z.core.$strip>], "type">>;
|
|
63
99
|
createdAt: z.ZodDate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-subscription.command.d.ts","sourceRoot":"","sources":["../../../commands/subscription/find-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,aAAa;;qBAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"find-subscription.command.d.ts","sourceRoot":"","sources":["../../../commands/subscription/find-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,aAAa;;qBAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;IAE/C,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAE/B,CAAC;IAEH,KAAY,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;CACrE"}
|
|
@@ -15,7 +15,19 @@ export declare namespace GetAvailableUpgradesCommand {
|
|
|
15
15
|
tokens: z.ZodNumber;
|
|
16
16
|
action: z.ZodNullable<z.ZodOptional<z.ZodEnum<typeof import("../..").SUBSCRIPTION_ACTION>>>;
|
|
17
17
|
features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
18
|
-
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE>;
|
|
18
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.GENERIC>;
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.CREDITS>;
|
|
22
|
+
name: z.ZodString;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.WRITER_PAGES>;
|
|
25
|
+
name: z.ZodString;
|
|
26
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.PRESENTATION_SLIDES>;
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.EDU_TASKS>;
|
|
19
31
|
name: z.ZodString;
|
|
20
32
|
}, z.core.$strip>], "type">>;
|
|
21
33
|
createdAt: z.ZodDate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-available-upgrades.command.d.ts","sourceRoot":"","sources":["../../../commands/subscription/get-available-upgrades.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,2BAA2B,CAAC;IAClC,MAAM,aAAa,gCAA8B,CAAC;IAEzD,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-available-upgrades.command.d.ts","sourceRoot":"","sources":["../../../commands/subscription/get-available-upgrades.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,2BAA2B,CAAC;IAClC,MAAM,aAAa,gCAA8B,CAAC;IAEzD,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -13,7 +13,19 @@ export declare namespace GetFreeSubscriptionCommand {
|
|
|
13
13
|
tokens: z.ZodNumber;
|
|
14
14
|
action: z.ZodNullable<z.ZodOptional<z.ZodEnum<typeof import("../..").SUBSCRIPTION_ACTION>>>;
|
|
15
15
|
features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16
|
-
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE>;
|
|
16
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.GENERIC>;
|
|
17
|
+
name: z.ZodString;
|
|
18
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.CREDITS>;
|
|
20
|
+
name: z.ZodString;
|
|
21
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.WRITER_PAGES>;
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.PRESENTATION_SLIDES>;
|
|
26
|
+
name: z.ZodString;
|
|
27
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.EDU_TASKS>;
|
|
17
29
|
name: z.ZodString;
|
|
18
30
|
}, z.core.$strip>], "type">>;
|
|
19
31
|
createdAt: z.ZodDate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-free-subscription.command.d.ts","sourceRoot":"","sources":["../../../commands/subscription/get-free-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-free-subscription.command.d.ts","sourceRoot":"","sources":["../../../commands/subscription/get-free-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -6,14 +6,26 @@ export declare namespace UpdateSubscriptionCommand {
|
|
|
6
6
|
description: z.ZodOptional<z.ZodString>;
|
|
7
7
|
price: z.ZodOptional<z.ZodNumber>;
|
|
8
8
|
tokens: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
features: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.GENERIC>;
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.CREDITS>;
|
|
14
|
+
name: z.ZodString;
|
|
15
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.WRITER_PAGES>;
|
|
17
|
+
name: z.ZodString;
|
|
18
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.PRESENTATION_SLIDES>;
|
|
20
|
+
name: z.ZodString;
|
|
21
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.EDU_TASKS>;
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
}, z.core.$strip>], "type">>>;
|
|
9
25
|
mainSubscriptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
26
|
discount: z.ZodOptional<z.ZodNumber>;
|
|
11
27
|
period: z.ZodOptional<z.ZodNumber>;
|
|
12
28
|
action: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<typeof import("../..").SUBSCRIPTION_ACTION>>>>;
|
|
13
|
-
features: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14
|
-
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE>;
|
|
15
|
-
name: z.ZodString;
|
|
16
|
-
}, z.core.$strip>], "type">>>;
|
|
17
29
|
}, z.core.$strip>;
|
|
18
30
|
type Request = z.infer<typeof RequestSchema>;
|
|
19
31
|
const RequestParamSchema: z.ZodObject<{
|
|
@@ -33,7 +45,19 @@ export declare namespace UpdateSubscriptionCommand {
|
|
|
33
45
|
tokens: z.ZodNumber;
|
|
34
46
|
action: z.ZodNullable<z.ZodOptional<z.ZodEnum<typeof import("../..").SUBSCRIPTION_ACTION>>>;
|
|
35
47
|
features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
36
|
-
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE>;
|
|
48
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.GENERIC>;
|
|
49
|
+
name: z.ZodString;
|
|
50
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
51
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.CREDITS>;
|
|
52
|
+
name: z.ZodString;
|
|
53
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.WRITER_PAGES>;
|
|
55
|
+
name: z.ZodString;
|
|
56
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.PRESENTATION_SLIDES>;
|
|
58
|
+
name: z.ZodString;
|
|
59
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
60
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.EDU_TASKS>;
|
|
37
61
|
name: z.ZodString;
|
|
38
62
|
}, z.core.$strip>], "type">>;
|
|
39
63
|
createdAt: z.ZodDate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-subscription.command.d.ts","sourceRoot":"","sources":["../../../commands/subscription/update-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"update-subscription.command.d.ts","sourceRoot":"","sources":["../../../commands/subscription/update-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;qBAId,CAAC;IAEb,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,kBAAkB;;qBAE7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -6,11 +6,11 @@ export declare namespace FindUserByUuidCommand {
|
|
|
6
6
|
type Request = z.infer<typeof RequestSchema>;
|
|
7
7
|
const ResponseSchema: z.ZodObject<{
|
|
8
8
|
data: z.ZodObject<{
|
|
9
|
-
|
|
9
|
+
email: z.ZodString;
|
|
10
10
|
createdAt: z.ZodDate;
|
|
11
11
|
updatedAt: z.ZodDate;
|
|
12
|
-
email: z.ZodString;
|
|
13
12
|
status: z.ZodString;
|
|
13
|
+
uuid: z.ZodString;
|
|
14
14
|
ip: z.ZodString;
|
|
15
15
|
tokenBonusBalance: z.ZodNumber;
|
|
16
16
|
role: z.ZodString;
|
|
@@ -42,11 +42,11 @@ export declare namespace FindUsersByCriteriaCommand {
|
|
|
42
42
|
type Request = z.infer<typeof RequestSchema>;
|
|
43
43
|
const ResponseSchema: z.ZodObject<{
|
|
44
44
|
data: z.ZodArray<z.ZodObject<{
|
|
45
|
-
|
|
45
|
+
email: z.ZodString;
|
|
46
46
|
createdAt: z.ZodDate;
|
|
47
47
|
updatedAt: z.ZodDate;
|
|
48
|
-
email: z.ZodString;
|
|
49
48
|
status: z.ZodString;
|
|
49
|
+
uuid: z.ZodString;
|
|
50
50
|
ip: z.ZodString;
|
|
51
51
|
tokenBonusBalance: z.ZodNumber;
|
|
52
52
|
role: z.ZodString;
|
|
@@ -9,11 +9,11 @@ export declare namespace UpTokenBonusBalanceCommand {
|
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
type Request = z.infer<typeof RequestSchema>;
|
|
11
11
|
const ResponseSchema: z.ZodObject<{
|
|
12
|
-
|
|
12
|
+
email: z.ZodOptional<z.ZodString>;
|
|
13
13
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
14
14
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
15
|
-
email: z.ZodOptional<z.ZodString>;
|
|
16
15
|
status: z.ZodOptional<z.ZodString>;
|
|
16
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
17
17
|
ip: z.ZodOptional<z.ZodString>;
|
|
18
18
|
verifyTokenHash: z.ZodOptional<z.ZodString>;
|
|
19
19
|
restoreTokenHash: z.ZodOptional<z.ZodString>;
|
|
@@ -8,6 +8,7 @@ export declare namespace GetUserBalanceCommand {
|
|
|
8
8
|
productBalance: z.ZodNumber;
|
|
9
9
|
referralBonusBalance: z.ZodNumber;
|
|
10
10
|
carriedOverBalance: z.ZodNumber;
|
|
11
|
+
reservedTokenBalance: z.ZodNumber;
|
|
11
12
|
}, z.core.$strip>;
|
|
12
13
|
}, z.core.$strip>;
|
|
13
14
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-balance.command.d.ts","sourceRoot":"","sources":["../../../commands/user-balance/get-user-balance.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-user-balance.command.d.ts","sourceRoot":"","sources":["../../../commands/user-balance/get-user-balance.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,cAAc;;;;;;;;;;qBAUzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -12,6 +12,7 @@ var GetUserBalanceCommand;
|
|
|
12
12
|
productBalance: zod_1.z.number(),
|
|
13
13
|
referralBonusBalance: zod_1.z.number(),
|
|
14
14
|
carriedOverBalance: zod_1.z.number(),
|
|
15
|
+
reservedTokenBalance: zod_1.z.number(),
|
|
15
16
|
}),
|
|
16
17
|
});
|
|
17
18
|
})(GetUserBalanceCommand || (exports.GetUserBalanceCommand = GetUserBalanceCommand = {}));
|
|
@@ -28,7 +28,19 @@ export declare namespace GetUserToSubscriptionsCommand {
|
|
|
28
28
|
tokens: z.ZodNumber;
|
|
29
29
|
action: z.ZodNullable<z.ZodOptional<z.ZodEnum<typeof import("../..").SUBSCRIPTION_ACTION>>>;
|
|
30
30
|
features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31
|
-
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE>;
|
|
31
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.GENERIC>;
|
|
32
|
+
name: z.ZodString;
|
|
33
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.CREDITS>;
|
|
35
|
+
name: z.ZodString;
|
|
36
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.WRITER_PAGES>;
|
|
38
|
+
name: z.ZodString;
|
|
39
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.PRESENTATION_SLIDES>;
|
|
41
|
+
name: z.ZodString;
|
|
42
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
+
type: z.ZodLiteral<import("../..").SUBSCRIPTION_FEATURE_TYPE.EDU_TASKS>;
|
|
32
44
|
name: z.ZodString;
|
|
33
45
|
}, z.core.$strip>], "type">>;
|
|
34
46
|
createdAt: z.ZodDate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-to-subscriptions.command.d.ts","sourceRoot":"","sources":["../../../commands/user-to-subscription/get-user-to-subscriptions.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-user-to-subscriptions.command.d.ts","sourceRoot":"","sources":["../../../commands/user-to-subscription/get-user-to-subscriptions.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -14,6 +14,43 @@ export declare const ERRORS: {
|
|
|
14
14
|
code: string;
|
|
15
15
|
httpCode: number;
|
|
16
16
|
};
|
|
17
|
+
TOKEN_RESERVATION: {
|
|
18
|
+
INSUFFICIENT_BALANCE: {
|
|
19
|
+
message: string;
|
|
20
|
+
code: string;
|
|
21
|
+
httpCode: number;
|
|
22
|
+
};
|
|
23
|
+
NOT_FOUND: {
|
|
24
|
+
message: string;
|
|
25
|
+
code: string;
|
|
26
|
+
httpCode: number;
|
|
27
|
+
};
|
|
28
|
+
INVALID_STATUS: {
|
|
29
|
+
message: string;
|
|
30
|
+
code: string;
|
|
31
|
+
httpCode: number;
|
|
32
|
+
};
|
|
33
|
+
EXPIRED: {
|
|
34
|
+
message: string;
|
|
35
|
+
code: string;
|
|
36
|
+
httpCode: number;
|
|
37
|
+
};
|
|
38
|
+
CREATE_ERROR: {
|
|
39
|
+
message: string;
|
|
40
|
+
code: string;
|
|
41
|
+
httpCode: number;
|
|
42
|
+
};
|
|
43
|
+
COMMIT_ERROR: {
|
|
44
|
+
message: string;
|
|
45
|
+
code: string;
|
|
46
|
+
httpCode: number;
|
|
47
|
+
};
|
|
48
|
+
RELEASE_ERROR: {
|
|
49
|
+
message: string;
|
|
50
|
+
code: string;
|
|
51
|
+
httpCode: number;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
17
54
|
AUTH_REGISTER_CONFLICT: {
|
|
18
55
|
message: string;
|
|
19
56
|
code: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAq+ClB,CAAC"}
|
|
@@ -19,6 +19,44 @@ exports.ERRORS = {
|
|
|
19
19
|
code: 'BALANCE_002',
|
|
20
20
|
httpCode: 500,
|
|
21
21
|
},
|
|
22
|
+
// TOKEN RESERVATION
|
|
23
|
+
TOKEN_RESERVATION: {
|
|
24
|
+
INSUFFICIENT_BALANCE: {
|
|
25
|
+
message: 'Недостаточно средств',
|
|
26
|
+
code: 'TOKEN_RESERVATION_001',
|
|
27
|
+
httpCode: 400,
|
|
28
|
+
},
|
|
29
|
+
NOT_FOUND: {
|
|
30
|
+
message: 'Запись о резервировании токенов не найдена',
|
|
31
|
+
code: 'TOKEN_RESERVATION_002',
|
|
32
|
+
httpCode: 404,
|
|
33
|
+
},
|
|
34
|
+
INVALID_STATUS: {
|
|
35
|
+
message: 'Недопустимый статус записи о резервировании токенов',
|
|
36
|
+
code: 'TOKEN_RESERVATION_003',
|
|
37
|
+
httpCode: 400,
|
|
38
|
+
},
|
|
39
|
+
EXPIRED: {
|
|
40
|
+
message: 'Срок записи о резервировании токенов истёк',
|
|
41
|
+
code: 'TOKEN_RESERVATION_004',
|
|
42
|
+
httpCode: 400,
|
|
43
|
+
},
|
|
44
|
+
CREATE_ERROR: {
|
|
45
|
+
message: 'Ошибка при создании записи о резервировании токенов',
|
|
46
|
+
code: 'TOKEN_RESERVATION_005',
|
|
47
|
+
httpCode: 500,
|
|
48
|
+
},
|
|
49
|
+
COMMIT_ERROR: {
|
|
50
|
+
message: 'Ошибка при подтверждении зарезервированных токенов',
|
|
51
|
+
code: 'TOKEN_RESERVATION_006',
|
|
52
|
+
httpCode: 500,
|
|
53
|
+
},
|
|
54
|
+
RELEASE_ERROR: {
|
|
55
|
+
message: 'Ошибка при освобождении зарезервированных токенов',
|
|
56
|
+
code: 'TOKEN_RESERVATION_007',
|
|
57
|
+
httpCode: 500,
|
|
58
|
+
},
|
|
59
|
+
},
|
|
22
60
|
// AUTH
|
|
23
61
|
AUTH_REGISTER_CONFLICT: {
|
|
24
62
|
message: 'Пользователь с этим email уже существует',
|