@purpleschool/multisite 0.0.18 → 0.0.20

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.
Files changed (65) hide show
  1. package/api/controller/http/subscription.ts +5 -1
  2. package/api/controller/http/user.ts +7 -0
  3. package/api/routes.ts +21 -1
  4. package/build/api/controller/http/subscription.d.ts +5 -1
  5. package/build/api/controller/http/subscription.d.ts.map +1 -1
  6. package/build/api/controller/http/subscription.js +5 -1
  7. package/build/api/controller/http/user.d.ts +7 -0
  8. package/build/api/controller/http/user.d.ts.map +1 -1
  9. package/build/api/controller/http/user.js +7 -0
  10. package/build/api/routes.d.ts +11 -0
  11. package/build/api/routes.d.ts.map +1 -1
  12. package/build/api/routes.js +12 -1
  13. package/build/commands/subscription/delete-subscription.command.d.ts +20 -0
  14. package/build/commands/subscription/delete-subscription.command.d.ts.map +1 -0
  15. package/build/commands/subscription/delete-subscription.command.js +13 -0
  16. package/build/commands/subscription/index.d.ts +4 -0
  17. package/build/commands/subscription/index.d.ts.map +1 -1
  18. package/build/commands/subscription/index.js +4 -0
  19. package/build/commands/subscription/recover-subscription.command.d.ts +14 -0
  20. package/build/commands/subscription/recover-subscription.command.d.ts.map +1 -0
  21. package/build/commands/subscription/recover-subscription.command.js +11 -0
  22. package/build/commands/subscription/refund-subscription.command.d.ts +20 -0
  23. package/build/commands/subscription/refund-subscription.command.d.ts.map +1 -0
  24. package/build/commands/subscription/refund-subscription.command.js +13 -0
  25. package/build/commands/subscription/update-subscription.command.d.ts +148 -0
  26. package/build/commands/subscription/update-subscription.command.d.ts.map +1 -0
  27. package/build/commands/subscription/update-subscription.command.js +30 -0
  28. package/build/constants/cloud-payments/index.d.ts +1 -0
  29. package/build/constants/cloud-payments/index.d.ts.map +1 -1
  30. package/build/constants/cloud-payments/index.js +2 -1
  31. package/build/constants/errors/errors.d.ts +10 -0
  32. package/build/constants/errors/errors.d.ts.map +1 -1
  33. package/build/constants/errors/errors.js +10 -0
  34. package/build/queries/user/find-users.command.d.ts +99 -0
  35. package/build/queries/user/find-users.command.d.ts.map +1 -0
  36. package/build/queries/user/find-users.command.js +29 -0
  37. package/build/queries/user/get-all-users.command.d.ts +48 -0
  38. package/build/queries/user/get-all-users.command.d.ts.map +1 -0
  39. package/build/queries/user/get-all-users.command.js +18 -0
  40. package/build/queries/user/get-my-subscriptions.command.d.ts +5 -0
  41. package/build/queries/user/get-my-subscriptions.command.d.ts.map +1 -1
  42. package/build/queries/user/get-my-subscriptions.command.js +1 -0
  43. package/build/queries/user/get-user-payments.command.d.ts +134 -0
  44. package/build/queries/user/get-user-payments.command.d.ts.map +1 -0
  45. package/build/queries/user/get-user-payments.command.js +27 -0
  46. package/build/queries/user/get-user.command.d.ts +11 -1
  47. package/build/queries/user/get-user.command.d.ts.map +1 -1
  48. package/build/queries/user/get-user.command.js +2 -0
  49. package/build/queries/user/index.d.ts +3 -0
  50. package/build/queries/user/index.d.ts.map +1 -1
  51. package/build/queries/user/index.js +3 -0
  52. package/commands/subscription/delete-subscription.command.ts +13 -0
  53. package/commands/subscription/index.ts +4 -0
  54. package/commands/subscription/recover-subscription.command.ts +11 -0
  55. package/commands/subscription/refund-subscription.command.ts +13 -0
  56. package/commands/subscription/update-subscription.command.ts +34 -0
  57. package/constants/cloud-payments/index.ts +1 -0
  58. package/constants/errors/errors.ts +10 -0
  59. package/package.json +1 -1
  60. package/queries/user/find-users.command.ts +31 -0
  61. package/queries/user/get-all-users.command.ts +19 -0
  62. package/queries/user/get-my-subscriptions.command.ts +1 -0
  63. package/queries/user/get-user-payments.command.ts +26 -0
  64. package/queries/user/get-user.command.ts +3 -1
  65. package/queries/user/index.ts +3 -0
@@ -7,5 +7,9 @@ export const SUBSCRIPTION_ROUTES = {
7
7
  FAST_BUY: 'fast/buy',
8
8
  SUMMARY: 'summary',
9
9
  GET_MY: 'my',
10
- CANCEL: 'cancel',
10
+ CANCEL: (uuid: string) => `${uuid}/cancel`,
11
+ RECOVER: (uuid: string) => `${uuid}/recover`,
12
+ UPDATE: (uuid: string) => `${uuid}`,
13
+ DELETE: (uuid: string) => `${uuid}`,
14
+ REFUND: (uuid: string) => `${uuid}/refund`,
11
15
  } as const;
@@ -3,4 +3,11 @@ export const USER_CONTROLLER = 'users' as const;
3
3
  export const USER_ROUTES = {
4
4
  GET: 'me',
5
5
  BALANCE: 'balance',
6
+ GET_ALL: 'all',
7
+ FIND_BY_CRITERIA: 'criteria',
8
+ FIND_BY_UUID: (uuid: string) => `${uuid}`,
9
+ GET_BALANCE: (uuid: string) => `balance/${uuid}`,
10
+ GET_SUBSCRIPTIONS: (uuid: string) => `subscriptions/${uuid}`,
11
+ GET_PRODUCTS: (uuid: string) => `products/${uuid}`,
12
+ GET_PAYMENTS: (uuid: string) => `payments/${uuid}`,
6
13
  } as const;
package/api/routes.ts CHANGED
@@ -26,6 +26,18 @@ export const REST_API = {
26
26
  USERS: {
27
27
  GET: `${ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.GET}`,
28
28
  BALANCE: `${ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.BALANCE}`,
29
+ GET_ALL: `${ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.GET_ALL}`,
30
+ FIND_BY_CRITERIA: `${ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.FIND_BY_CRITERIA}`,
31
+ FIND_BY_UUID: (uuid: string) =>
32
+ `${ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.FIND_BY_UUID(uuid)}`,
33
+ GET_BALANCE: (uuid: string) =>
34
+ `${ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.GET_BALANCE(uuid)}`,
35
+ GET_SUBSCRIPTIONS: (uuid: string) =>
36
+ `${ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.GET_SUBSCRIPTIONS(uuid)}`,
37
+ GET_PRODUCTS: (uuid: string) =>
38
+ `${ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.GET_PRODUCTS(uuid)}`,
39
+ GET_PAYMENTS: (uuid: string) =>
40
+ `${ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.GET_PAYMENTS(uuid)}`,
29
41
  },
30
42
  PRODUCT_PUBLIC: {
31
43
  GET: `${ROOT}/${CONTROLLERS.PRODUCT_PUBLIC_CONTROLLER}/${CONTROLLERS.PRODUCT_ROUTES.GET_ALL}`,
@@ -50,7 +62,15 @@ export const REST_API = {
50
62
  SUMMARY: `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.SUMMARY}`,
51
63
  GET_MY: `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET_MY}`,
52
64
  CANCEL: (uuid: string) =>
53
- `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${uuid}/${CONTROLLERS.SUBSCRIPTION_ROUTES.CANCEL}`,
65
+ `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.CANCEL(uuid)}`,
66
+ RECOVER: (uuid: string) =>
67
+ `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.RECOVER(uuid)}`,
68
+ UPDATE: (uuid: string) =>
69
+ `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.UPDATE(uuid)}`,
70
+ DELETE: (uuid: string) =>
71
+ `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.DELETE(uuid)}`,
72
+ REFUND: (uuid: string) =>
73
+ `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.REFUND(uuid)}`,
54
74
  },
55
75
  PAYMENT: {
56
76
  HISTORY: `${ROOT}/${CONTROLLERS.PAYMENT_CONTROLLER}/${CONTROLLERS.PAYMENT_ROUTES.HISTORY}`,
@@ -6,6 +6,10 @@ 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: "cancel";
9
+ readonly CANCEL: (uuid: string) => string;
10
+ readonly RECOVER: (uuid: string) => string;
11
+ readonly UPDATE: (uuid: string) => string;
12
+ readonly DELETE: (uuid: string) => string;
13
+ readonly REFUND: (uuid: string) => string;
10
14
  };
11
15
  //# 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;;;;;;;CAOtB,CAAC"}
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;4BACN,MAAM;CACf,CAAC"}
@@ -9,5 +9,9 @@ exports.SUBSCRIPTION_ROUTES = {
9
9
  FAST_BUY: 'fast/buy',
10
10
  SUMMARY: 'summary',
11
11
  GET_MY: 'my',
12
- CANCEL: 'cancel',
12
+ CANCEL: (uuid) => `${uuid}/cancel`,
13
+ RECOVER: (uuid) => `${uuid}/recover`,
14
+ UPDATE: (uuid) => `${uuid}`,
15
+ DELETE: (uuid) => `${uuid}`,
16
+ REFUND: (uuid) => `${uuid}/refund`,
13
17
  };
@@ -2,5 +2,12 @@ export declare const USER_CONTROLLER: "users";
2
2
  export declare const USER_ROUTES: {
3
3
  readonly GET: "me";
4
4
  readonly BALANCE: "balance";
5
+ readonly GET_ALL: "all";
6
+ readonly FIND_BY_CRITERIA: "criteria";
7
+ readonly FIND_BY_UUID: (uuid: string) => string;
8
+ readonly GET_BALANCE: (uuid: string) => string;
9
+ readonly GET_SUBSCRIPTIONS: (uuid: string) => string;
10
+ readonly GET_PRODUCTS: (uuid: string) => string;
11
+ readonly GET_PAYMENTS: (uuid: string) => string;
5
12
  };
6
13
  //# sourceMappingURL=user.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../api/controller/http/user.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,EAAG,OAAgB,CAAC;AAEhD,eAAO,MAAM,WAAW;;;CAGd,CAAC"}
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../api/controller/http/user.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,EAAG,OAAgB,CAAC;AAEhD,eAAO,MAAM,WAAW;;;;;kCAKC,MAAM;iCACP,MAAM;uCACA,MAAM;kCACX,MAAM;kCACN,MAAM;CACrB,CAAC"}
@@ -5,4 +5,11 @@ exports.USER_CONTROLLER = 'users';
5
5
  exports.USER_ROUTES = {
6
6
  GET: 'me',
7
7
  BALANCE: 'balance',
8
+ GET_ALL: 'all',
9
+ FIND_BY_CRITERIA: 'criteria',
10
+ FIND_BY_UUID: (uuid) => `${uuid}`,
11
+ GET_BALANCE: (uuid) => `balance/${uuid}`,
12
+ GET_SUBSCRIPTIONS: (uuid) => `subscriptions/${uuid}`,
13
+ GET_PRODUCTS: (uuid) => `products/${uuid}`,
14
+ GET_PAYMENTS: (uuid) => `payments/${uuid}`,
8
15
  };
@@ -23,6 +23,13 @@ export declare const REST_API: {
23
23
  readonly USERS: {
24
24
  readonly GET: "/api/users/me";
25
25
  readonly BALANCE: "/api/users/balance";
26
+ readonly GET_ALL: "/api/users/all";
27
+ readonly FIND_BY_CRITERIA: "/api/users/criteria";
28
+ readonly FIND_BY_UUID: (uuid: string) => string;
29
+ readonly GET_BALANCE: (uuid: string) => string;
30
+ readonly GET_SUBSCRIPTIONS: (uuid: string) => string;
31
+ readonly GET_PRODUCTS: (uuid: string) => string;
32
+ readonly GET_PAYMENTS: (uuid: string) => string;
26
33
  };
27
34
  readonly PRODUCT_PUBLIC: {
28
35
  readonly GET: "/api/product/public/all";
@@ -43,6 +50,10 @@ export declare const REST_API: {
43
50
  readonly SUMMARY: "/api/subscription/private/summary";
44
51
  readonly GET_MY: "/api/subscription/private/my";
45
52
  readonly CANCEL: (uuid: string) => string;
53
+ readonly RECOVER: (uuid: string) => string;
54
+ readonly UPDATE: (uuid: string) => string;
55
+ readonly DELETE: (uuid: string) => string;
56
+ readonly REFUND: (uuid: string) => string;
46
57
  };
47
58
  readonly PAYMENT: {
48
59
  readonly HISTORY: "/api/payments/history";
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;kCA2BI,MAAM;;;;6BAKX,MAAM;;;;;kCAMD,MAAM;;;;6BAKX,MAAM;;;gCAIH,MAAM;;;;;;kCAOJ,MAAM;;;;;;iCAOP,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;;iCAOJ,MAAM;gCAEP,MAAM;sCAE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Y_CRITERIA: `${exports.ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.FIND_BY_CRITERIA}`,
65
+ FIND_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.FIND_BY_UUID(uuid)}`,
66
+ GET_BALANCE: (uuid) => `${exports.ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.GET_BALANCE(uuid)}`,
67
+ GET_SUBSCRIPTIONS: (uuid) => `${exports.ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.GET_SUBSCRIPTIONS(uuid)}`,
68
+ GET_PRODUCTS: (uuid) => `${exports.ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.GET_PRODUCTS(uuid)}`,
69
+ GET_PAYMENTS: (uuid) => `${exports.ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.GET_PAYMENTS(uuid)}`,
63
70
  },
64
71
  PRODUCT_PUBLIC: {
65
72
  GET: `${exports.ROOT}/${CONTROLLERS.PRODUCT_PUBLIC_CONTROLLER}/${CONTROLLERS.PRODUCT_ROUTES.GET_ALL}`,
@@ -79,7 +86,11 @@ exports.REST_API = {
79
86
  BUY: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${uuid}/${CONTROLLERS.SUBSCRIPTION_ROUTES.BUY}`,
80
87
  SUMMARY: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.SUMMARY}`,
81
88
  GET_MY: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET_MY}`,
82
- CANCEL: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${uuid}/${CONTROLLERS.SUBSCRIPTION_ROUTES.CANCEL}`,
89
+ CANCEL: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.CANCEL(uuid)}`,
90
+ RECOVER: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.RECOVER(uuid)}`,
91
+ UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.UPDATE(uuid)}`,
92
+ DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.DELETE(uuid)}`,
93
+ REFUND: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.REFUND(uuid)}`,
83
94
  },
84
95
  PAYMENT: {
85
96
  HISTORY: `${exports.ROOT}/${CONTROLLERS.PAYMENT_CONTROLLER}/${CONTROLLERS.PAYMENT_ROUTES.HISTORY}`,
@@ -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 = {}));
@@ -1,4 +1,8 @@
1
1
  export * from './buy-subscription.command';
2
2
  export * from './fast-buy-subscription.command';
3
3
  export * from './cancel-subscription.command';
4
+ export * from './recover-subscription.command';
5
+ export * from './update-subscription.command';
6
+ export * from './delete-subscription.command';
7
+ export * from './refund-subscription.command';
4
8
  //# 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"}
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;AAC9C,cAAc,+BAA+B,CAAC"}
@@ -17,3 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./buy-subscription.command"), exports);
18
18
  __exportStar(require("./fast-buy-subscription.command"), exports);
19
19
  __exportStar(require("./cancel-subscription.command"), exports);
20
+ __exportStar(require("./recover-subscription.command"), exports);
21
+ __exportStar(require("./update-subscription.command"), exports);
22
+ __exportStar(require("./delete-subscription.command"), exports);
23
+ __exportStar(require("./refund-subscription.command"), exports);
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ export declare namespace RecoverSubscriptionCommand {
3
+ const RequestParamSchema: z.ZodObject<{
4
+ uuidSiteUserToSubscription: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ uuidSiteUserToSubscription: string;
7
+ }, {
8
+ uuidSiteUserToSubscription: string;
9
+ }>;
10
+ type RequestParam = z.infer<typeof RequestParamSchema>;
11
+ const ResponseSchema: z.ZodVoid;
12
+ type Response = z.infer<typeof ResponseSchema>;
13
+ }
14
+ //# sourceMappingURL=recover-subscription.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recover-subscription.command.d.ts","sourceRoot":"","sources":["../../../commands/subscription/recover-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IACH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc,WAAW,CAAC;IACvC,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RecoverSubscriptionCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var RecoverSubscriptionCommand;
6
+ (function (RecoverSubscriptionCommand) {
7
+ RecoverSubscriptionCommand.RequestParamSchema = zod_1.z.object({
8
+ uuidSiteUserToSubscription: zod_1.z.string().uuid(),
9
+ });
10
+ RecoverSubscriptionCommand.ResponseSchema = zod_1.z.void();
11
+ })(RecoverSubscriptionCommand || (exports.RecoverSubscriptionCommand = RecoverSubscriptionCommand = {}));
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ export declare namespace RefundSubscriptionCommand {
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=refund-subscription.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refund-subscription.command.d.ts","sourceRoot":"","sources":["../../../commands/subscription/refund-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.RefundSubscriptionCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var RefundSubscriptionCommand;
6
+ (function (RefundSubscriptionCommand) {
7
+ RefundSubscriptionCommand.RequestParamSchema = zod_1.z.object({
8
+ uuid: zod_1.z.string().uuid(),
9
+ });
10
+ RefundSubscriptionCommand.ResponseSchema = zod_1.z.object({
11
+ data: zod_1.z.boolean(),
12
+ });
13
+ })(RefundSubscriptionCommand || (exports.RefundSubscriptionCommand = RefundSubscriptionCommand = {}));
@@ -0,0 +1,148 @@
1
+ import { z } from 'zod';
2
+ export declare namespace UpdateSubscriptionCommand {
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
+ interval: z.ZodOptional<z.ZodString>;
16
+ period: z.ZodOptional<z.ZodNumber>;
17
+ tokens: z.ZodOptional<z.ZodNumber>;
18
+ discount: z.ZodOptional<z.ZodNumber>;
19
+ features: z.ZodOptional<z.ZodArray<z.ZodObject<{
20
+ type: z.ZodString;
21
+ name: z.ZodString;
22
+ }, "strip", z.ZodTypeAny, {
23
+ type: string;
24
+ name: string;
25
+ }, {
26
+ type: string;
27
+ name: string;
28
+ }>, "many">>;
29
+ carryoverPercent: z.ZodOptional<z.ZodNumber>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ price?: number | undefined;
32
+ interval?: string | undefined;
33
+ name?: string | undefined;
34
+ description?: string | undefined;
35
+ tokens?: number | undefined;
36
+ features?: {
37
+ type: string;
38
+ name: string;
39
+ }[] | undefined;
40
+ period?: number | undefined;
41
+ discount?: number | undefined;
42
+ carryoverPercent?: number | undefined;
43
+ }, {
44
+ price?: number | undefined;
45
+ interval?: string | undefined;
46
+ name?: string | undefined;
47
+ description?: string | undefined;
48
+ tokens?: number | undefined;
49
+ features?: {
50
+ type: string;
51
+ name: string;
52
+ }[] | undefined;
53
+ period?: number | undefined;
54
+ discount?: number | undefined;
55
+ carryoverPercent?: number | undefined;
56
+ }>;
57
+ type Request = z.infer<typeof RequestSchema>;
58
+ const ResponseSchema: z.ZodObject<{
59
+ data: z.ZodObject<{
60
+ uuid: z.ZodString;
61
+ siteId: z.ZodString;
62
+ name: z.ZodString;
63
+ description: z.ZodString;
64
+ price: z.ZodNumber;
65
+ interval: z.ZodString;
66
+ period: z.ZodNumber;
67
+ tokens: z.ZodNumber;
68
+ discount: z.ZodNumber;
69
+ features: z.ZodArray<z.ZodObject<{
70
+ type: z.ZodString;
71
+ name: z.ZodString;
72
+ }, "strip", z.ZodTypeAny, {
73
+ type: string;
74
+ name: string;
75
+ }, {
76
+ type: string;
77
+ name: string;
78
+ }>, "many">;
79
+ carryoverPercent: z.ZodNumber;
80
+ }, "strip", z.ZodTypeAny, {
81
+ price: number;
82
+ interval: string;
83
+ uuid: string;
84
+ siteId: string;
85
+ name: string;
86
+ description: string;
87
+ tokens: number;
88
+ features: {
89
+ type: string;
90
+ name: string;
91
+ }[];
92
+ period: number;
93
+ discount: number;
94
+ carryoverPercent: number;
95
+ }, {
96
+ price: number;
97
+ interval: string;
98
+ uuid: string;
99
+ siteId: string;
100
+ name: string;
101
+ description: string;
102
+ tokens: number;
103
+ features: {
104
+ type: string;
105
+ name: string;
106
+ }[];
107
+ period: number;
108
+ discount: number;
109
+ carryoverPercent: number;
110
+ }>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ data: {
113
+ price: number;
114
+ interval: string;
115
+ uuid: string;
116
+ siteId: string;
117
+ name: string;
118
+ description: string;
119
+ tokens: number;
120
+ features: {
121
+ type: string;
122
+ name: string;
123
+ }[];
124
+ period: number;
125
+ discount: number;
126
+ carryoverPercent: number;
127
+ };
128
+ }, {
129
+ data: {
130
+ price: number;
131
+ interval: string;
132
+ uuid: string;
133
+ siteId: string;
134
+ name: string;
135
+ description: string;
136
+ tokens: number;
137
+ features: {
138
+ type: string;
139
+ name: string;
140
+ }[];
141
+ period: number;
142
+ discount: number;
143
+ carryoverPercent: number;
144
+ };
145
+ }>;
146
+ type Response = z.infer<typeof ResponseSchema>;
147
+ }
148
+ //# sourceMappingURL=update-subscription.command.d.ts.map
@@ -0,0 +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,kBAAkB;;;;;;MAE7B,CAAC;IACH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiBxB,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,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateSubscriptionCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var UpdateSubscriptionCommand;
7
+ (function (UpdateSubscriptionCommand) {
8
+ UpdateSubscriptionCommand.RequestParamSchema = zod_1.z.object({
9
+ uuid: zod_1.z.string().uuid(),
10
+ });
11
+ UpdateSubscriptionCommand.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
+ interval: zod_1.z.string().max(20).optional(),
16
+ period: zod_1.z.number().int().min(1).max(36).optional(),
17
+ tokens: zod_1.z.number().int().min(0).optional(),
18
+ discount: zod_1.z.number().int().min(0).optional(),
19
+ features: zod_1.z
20
+ .array(zod_1.z.object({
21
+ type: zod_1.z.string(),
22
+ name: zod_1.z.string(),
23
+ }))
24
+ .optional(),
25
+ carryoverPercent: zod_1.z.number().int().min(0).max(100).optional(),
26
+ });
27
+ UpdateSubscriptionCommand.ResponseSchema = zod_1.z.object({
28
+ data: models_1.SubscriptionSchema,
29
+ });
30
+ })(UpdateSubscriptionCommand || (exports.UpdateSubscriptionCommand = UpdateSubscriptionCommand = {}));
@@ -1,2 +1,3 @@
1
1
  export declare const CLOUD_PAYMENTS_CANCEL = "https://api.cloudpayments.ru/subscriptions/cancel";
2
+ export declare const CLOUD_PAYMENTS_REFUND = "https://api.cloudpayments.ru/payments/refund";
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/cloud-payments/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,sDAAsD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/cloud-payments/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,sDAAsD,CAAC;AACzF,eAAO,MAAM,qBAAqB,iDAAiD,CAAC"}
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CLOUD_PAYMENTS_CANCEL = void 0;
3
+ exports.CLOUD_PAYMENTS_REFUND = exports.CLOUD_PAYMENTS_CANCEL = void 0;
4
4
  exports.CLOUD_PAYMENTS_CANCEL = 'https://api.cloudpayments.ru/subscriptions/cancel';
5
+ exports.CLOUD_PAYMENTS_REFUND = 'https://api.cloudpayments.ru/payments/refund';
@@ -204,6 +204,16 @@ export declare const ERRORS: {
204
204
  readonly code: "SUBSCRIPTION_006";
205
205
  readonly httpCode: 500;
206
206
  };
207
+ readonly SUBSCRIPTION_RECOVER_ERROR: {
208
+ readonly message: "Ошибка при восстановлении подписки";
209
+ readonly code: "SUBSCRIPTION_007";
210
+ readonly httpCode: 500;
211
+ };
212
+ readonly SUBSCRIPTION_REFUND_ERROR: {
213
+ readonly message: "Ошибка при возврате подписки";
214
+ readonly code: "SUBSCRIPTION_008";
215
+ readonly httpCode: 500;
216
+ };
207
217
  readonly ORDER_NOT_FOUND: {
208
218
  readonly message: "Заказ не найден";
209
219
  readonly code: "ORDER_001";
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgyBT,CAAC"}
@@ -213,6 +213,16 @@ exports.ERRORS = {
213
213
  code: 'SUBSCRIPTION_006',
214
214
  httpCode: 500,
215
215
  },
216
+ SUBSCRIPTION_RECOVER_ERROR: {
217
+ message: 'Ошибка при восстановлении подписки',
218
+ code: 'SUBSCRIPTION_007',
219
+ httpCode: 500,
220
+ },
221
+ SUBSCRIPTION_REFUND_ERROR: {
222
+ message: 'Ошибка при возврате подписки',
223
+ code: 'SUBSCRIPTION_008',
224
+ httpCode: 500,
225
+ },
216
226
  // ORDER
217
227
  ORDER_NOT_FOUND: {
218
228
  message: 'Заказ не найден',