@purpleschool/multisite 0.0.21 → 0.0.23
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/index.ts +3 -0
- package/api/controller/http/sitemap.ts +5 -0
- package/api/controller/http/user-to-product.ts +7 -0
- package/api/controller/http/user-to-subscription.ts +8 -0
- package/api/routes.ts +21 -0
- package/build/api/controller/http/index.d.ts +3 -0
- package/build/api/controller/http/index.d.ts.map +1 -1
- package/build/api/controller/http/index.js +3 -0
- package/build/api/controller/http/sitemap.d.ts +5 -0
- package/build/api/controller/http/sitemap.d.ts.map +1 -0
- package/build/api/controller/http/sitemap.js +7 -0
- package/build/api/controller/http/user-to-product.d.ts +7 -0
- package/build/api/controller/http/user-to-product.d.ts.map +1 -0
- package/build/api/controller/http/user-to-product.js +9 -0
- package/build/api/controller/http/user-to-subscription.d.ts +8 -0
- package/build/api/controller/http/user-to-subscription.d.ts.map +1 -0
- package/build/api/controller/http/user-to-subscription.js +10 -0
- package/build/api/routes.d.ts +14 -0
- package/build/api/routes.d.ts.map +1 -1
- package/build/api/routes.js +14 -0
- package/build/commands/image-editor/execute-image-editor.command.d.ts +4 -4
- package/build/commands/image-editor/retry-image-editor-job.command.d.ts +4 -4
- package/build/commands/image-editor/set-reaction-to-image-editor-job.command.d.ts +4 -4
- package/build/commands/image-editor/update-image-editor-job-title.command.d.ts +4 -4
- package/build/commands/image-generation/execute-image-generation.command.d.ts +4 -4
- package/build/commands/image-generation/retry-image-generation-job.command.d.ts +4 -4
- package/build/commands/image-generation/set-reaction-to-image-generation-job.command.d.ts +4 -4
- package/build/commands/image-generation/update-image-generation-job-title.command.d.ts +4 -4
- package/build/commands/index.d.ts +2 -0
- package/build/commands/index.d.ts.map +1 -1
- package/build/commands/index.js +2 -0
- package/build/commands/page/create-page.command.d.ts +4 -4
- package/build/commands/page/find-page-by-alias.command.d.ts +12 -12
- package/build/commands/page/find-page-by-criteria.command.d.ts +4 -4
- package/build/commands/page/find-page.command.d.ts +8 -8
- package/build/commands/page/update-page.command.d.ts +4 -4
- package/build/commands/payment/cloud-payments.command.d.ts +2 -2
- package/build/commands/stt/execute-stt.command.d.ts +12 -12
- package/build/commands/stt/retry-stt-job.command.d.ts +12 -12
- package/build/commands/stt/set-reaction-to-stt-job.command.d.ts +12 -12
- package/build/commands/stt/update-stt-job-title.command.d.ts +12 -12
- package/build/commands/tts/execute-tts.command.d.ts +12 -12
- package/build/commands/tts/retry-tts-job.command.d.ts +12 -12
- package/build/commands/tts/set-reaction-to-tts-job.command.d.ts +12 -12
- package/build/commands/tts/update-tts-job-title.command.d.ts +12 -12
- package/build/commands/unregistered-user/upsert-unregistered-user.command.d.ts +4 -4
- package/build/commands/user-to-product/delete-user-to-product.command.d.ts +20 -0
- package/build/commands/user-to-product/delete-user-to-product.command.d.ts.map +1 -0
- package/build/commands/user-to-product/delete-user-to-product.command.js +13 -0
- package/build/commands/user-to-product/get-user-to-product-by-uuid.command.d.ts +75 -0
- package/build/commands/user-to-product/get-user-to-product-by-uuid.command.d.ts.map +1 -0
- package/build/commands/user-to-product/get-user-to-product-by-uuid.command.js +14 -0
- package/build/commands/user-to-product/index.d.ts +4 -0
- package/build/commands/user-to-product/index.d.ts.map +1 -0
- package/build/commands/user-to-product/index.js +19 -0
- package/build/commands/user-to-product/update-user-to-product.command.d.ts +93 -0
- package/build/commands/user-to-product/update-user-to-product.command.d.ts.map +1 -0
- package/build/commands/user-to-product/update-user-to-product.command.js +21 -0
- package/build/commands/user-to-subscription/admin-cancel-subscription.command.d.ts +14 -0
- package/build/commands/user-to-subscription/admin-cancel-subscription.command.d.ts.map +1 -0
- package/build/commands/user-to-subscription/admin-cancel-subscription.command.js +11 -0
- package/build/commands/user-to-subscription/delete-user-to-subscription.command.d.ts +20 -0
- package/build/commands/user-to-subscription/delete-user-to-subscription.command.d.ts.map +1 -0
- package/build/commands/user-to-subscription/delete-user-to-subscription.command.js +13 -0
- package/build/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.d.ts +115 -0
- package/build/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.d.ts.map +1 -0
- package/build/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.js +14 -0
- package/build/commands/user-to-subscription/index.d.ts +5 -0
- package/build/commands/user-to-subscription/index.d.ts.map +1 -0
- package/build/commands/user-to-subscription/index.js +20 -0
- package/build/commands/user-to-subscription/update-user-to-subscription.command.d.ts +157 -0
- package/build/commands/user-to-subscription/update-user-to-subscription.command.d.ts.map +1 -0
- package/build/commands/user-to-subscription/update-user-to-subscription.command.js +29 -0
- package/build/constants/errors/errors.d.ts +60 -0
- package/build/constants/errors/errors.d.ts.map +1 -1
- package/build/constants/errors/errors.js +62 -0
- package/build/models/image-editor/image-editor-config.schema.d.ts +10 -10
- package/build/models/image-editor/image-editor-job.schema.d.ts +2 -2
- package/build/models/image-editor/image-editor-model.schema.d.ts +2 -2
- package/build/models/image-editor/image-editor-prompt-group.schema.d.ts +4 -4
- package/build/models/image-editor/image-editor-system-prompt.schema.d.ts +2 -2
- package/build/models/image-generation/image-generation-config.schema.d.ts +6 -6
- package/build/models/image-generation/image-generation-job.schema.d.ts +2 -2
- package/build/models/image-generation/image-generation-model.schema.d.ts +2 -2
- package/build/models/image-generation/image-generation-vendor.schema.d.ts +4 -4
- package/build/models/index.d.ts +2 -0
- package/build/models/index.d.ts.map +1 -1
- package/build/models/index.js +2 -0
- package/build/models/page.schema.d.ts +4 -4
- package/build/models/stt/stt-config.schema.d.ts +8 -8
- package/build/models/stt/stt-job.schema.d.ts +6 -6
- package/build/models/stt/stt-model.schema.d.ts +4 -4
- package/build/models/tts/tts-config.schema.d.ts +8 -8
- package/build/models/tts/tts-job.schema.d.ts +6 -6
- package/build/models/tts/tts-model.schema.d.ts +4 -4
- package/build/models/user-to-product.schema.d.ts +37 -0
- package/build/models/user-to-product.schema.d.ts.map +1 -0
- package/build/models/user-to-product.schema.js +17 -0
- package/build/models/user-to-subscription.schema.d.ts +61 -0
- package/build/models/user-to-subscription.schema.d.ts.map +1 -0
- package/build/models/user-to-subscription.schema.js +25 -0
- package/build/queries/image-editor/find-image-editor-jobs.command.d.ts +4 -4
- package/build/queries/image-editor/get-image-editor-config.command.d.ts +14 -14
- package/build/queries/image-editor/get-image-editor-job.command.d.ts +4 -4
- package/build/queries/image-generation/find-image-generation-jobs.command.d.ts +4 -4
- package/build/queries/image-generation/get-image-generation-config.command.d.ts +8 -8
- package/build/queries/image-generation/get-image-generation-job.command.d.ts +4 -4
- package/build/queries/payment/get-payment-history.command.d.ts +6 -6
- package/build/queries/stt/find-stt-jobs.command.d.ts +12 -12
- package/build/queries/stt/get-stt-config.command.d.ts +12 -12
- package/build/queries/stt/get-stt-job.command.d.ts +12 -12
- package/build/queries/subscription/get-subscriptions-summary.command.d.ts +16 -16
- package/build/queries/tts/find-tts-jobs.command.d.ts +12 -12
- package/build/queries/tts/get-tts-config.command.d.ts +12 -12
- package/build/queries/tts/get-tts-job.command.d.ts +12 -12
- package/build/queries/user/get-my-products.command.d.ts +8 -8
- package/build/queries/user/get-my-subscriptions.command.d.ts +12 -12
- package/build/queries/user/get-user-payments.command.d.ts +18 -18
- package/commands/index.ts +2 -0
- package/commands/user-to-product/delete-user-to-product.command.ts +13 -0
- package/commands/user-to-product/get-user-to-product-by-uuid.command.ts +14 -0
- package/commands/user-to-product/index.ts +3 -0
- package/commands/user-to-product/update-user-to-product.command.ts +23 -0
- package/commands/user-to-subscription/admin-cancel-subscription.command.ts +11 -0
- package/commands/user-to-subscription/delete-user-to-subscription.command.ts +13 -0
- package/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.ts +14 -0
- package/commands/user-to-subscription/index.ts +4 -0
- package/commands/user-to-subscription/update-user-to-subscription.command.ts +31 -0
- package/constants/errors/errors.ts +64 -0
- package/models/index.ts +2 -0
- package/models/user-to-product.schema.ts +15 -0
- package/models/user-to-subscription.schema.ts +23 -0
- package/package.json +1 -1
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { USER_TO_PRODUCT_STATUS } from '../../constants';
|
|
3
|
+
export declare namespace UpdateUserToProductCommand {
|
|
4
|
+
const RequestParamSchema: z.ZodObject<{
|
|
5
|
+
uuid: z.ZodString;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
uuid: string;
|
|
8
|
+
}, {
|
|
9
|
+
uuid: string;
|
|
10
|
+
}>;
|
|
11
|
+
type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
12
|
+
const RequestSchema: z.ZodObject<{
|
|
13
|
+
initTokenBalance: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
tokenBalance: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
status: z.ZodOptional<z.ZodNativeEnum<typeof USER_TO_PRODUCT_STATUS>>;
|
|
16
|
+
orderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
status?: USER_TO_PRODUCT_STATUS | undefined;
|
|
19
|
+
orderId?: string | null | undefined;
|
|
20
|
+
initTokenBalance?: number | undefined;
|
|
21
|
+
tokenBalance?: number | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
status?: USER_TO_PRODUCT_STATUS | undefined;
|
|
24
|
+
orderId?: string | null | undefined;
|
|
25
|
+
initTokenBalance?: number | undefined;
|
|
26
|
+
tokenBalance?: number | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
29
|
+
const ResponseSchema: z.ZodObject<{
|
|
30
|
+
data: z.ZodObject<{
|
|
31
|
+
uuid: z.ZodString;
|
|
32
|
+
siteId: z.ZodString;
|
|
33
|
+
userId: z.ZodString;
|
|
34
|
+
productId: z.ZodString;
|
|
35
|
+
orderId: z.ZodNullable<z.ZodString>;
|
|
36
|
+
initTokenBalance: z.ZodNumber;
|
|
37
|
+
tokenBalance: z.ZodNumber;
|
|
38
|
+
status: z.ZodNativeEnum<typeof USER_TO_PRODUCT_STATUS>;
|
|
39
|
+
createdAt: z.ZodDate;
|
|
40
|
+
updatedAt: z.ZodDate;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
uuid: string;
|
|
43
|
+
siteId: string;
|
|
44
|
+
status: USER_TO_PRODUCT_STATUS;
|
|
45
|
+
userId: string;
|
|
46
|
+
productId: string;
|
|
47
|
+
orderId: string | null;
|
|
48
|
+
initTokenBalance: number;
|
|
49
|
+
tokenBalance: number;
|
|
50
|
+
createdAt: Date;
|
|
51
|
+
updatedAt: Date;
|
|
52
|
+
}, {
|
|
53
|
+
uuid: string;
|
|
54
|
+
siteId: string;
|
|
55
|
+
status: USER_TO_PRODUCT_STATUS;
|
|
56
|
+
userId: string;
|
|
57
|
+
productId: string;
|
|
58
|
+
orderId: string | null;
|
|
59
|
+
initTokenBalance: number;
|
|
60
|
+
tokenBalance: number;
|
|
61
|
+
createdAt: Date;
|
|
62
|
+
updatedAt: Date;
|
|
63
|
+
}>;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
data: {
|
|
66
|
+
uuid: string;
|
|
67
|
+
siteId: string;
|
|
68
|
+
status: USER_TO_PRODUCT_STATUS;
|
|
69
|
+
userId: string;
|
|
70
|
+
productId: string;
|
|
71
|
+
orderId: string | null;
|
|
72
|
+
initTokenBalance: number;
|
|
73
|
+
tokenBalance: number;
|
|
74
|
+
createdAt: Date;
|
|
75
|
+
updatedAt: Date;
|
|
76
|
+
};
|
|
77
|
+
}, {
|
|
78
|
+
data: {
|
|
79
|
+
uuid: string;
|
|
80
|
+
siteId: string;
|
|
81
|
+
status: USER_TO_PRODUCT_STATUS;
|
|
82
|
+
userId: string;
|
|
83
|
+
productId: string;
|
|
84
|
+
orderId: string | null;
|
|
85
|
+
initTokenBalance: number;
|
|
86
|
+
tokenBalance: number;
|
|
87
|
+
createdAt: Date;
|
|
88
|
+
updatedAt: Date;
|
|
89
|
+
};
|
|
90
|
+
}>;
|
|
91
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=update-user-to-product.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-user-to-product.command.d.ts","sourceRoot":"","sources":["../../../commands/user-to-product/update-user-to-product.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAGzD,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IACH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,aAAa;;;;;;;;;;;;;;;MAKxB,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,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateUserToProductCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
6
|
+
const models_1 = require("../../models");
|
|
7
|
+
var UpdateUserToProductCommand;
|
|
8
|
+
(function (UpdateUserToProductCommand) {
|
|
9
|
+
UpdateUserToProductCommand.RequestParamSchema = zod_1.z.object({
|
|
10
|
+
uuid: zod_1.z.string().uuid(),
|
|
11
|
+
});
|
|
12
|
+
UpdateUserToProductCommand.RequestSchema = zod_1.z.object({
|
|
13
|
+
initTokenBalance: zod_1.z.number().int().min(0).optional(),
|
|
14
|
+
tokenBalance: zod_1.z.number().int().min(0).optional(),
|
|
15
|
+
status: zod_1.z.nativeEnum(constants_1.USER_TO_PRODUCT_STATUS).optional(),
|
|
16
|
+
orderId: zod_1.z.string().uuid().nullable().optional(),
|
|
17
|
+
});
|
|
18
|
+
UpdateUserToProductCommand.ResponseSchema = zod_1.z.object({
|
|
19
|
+
data: models_1.UserToProductSchema,
|
|
20
|
+
});
|
|
21
|
+
})(UpdateUserToProductCommand || (exports.UpdateUserToProductCommand = UpdateUserToProductCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace AdminCancelSubscriptionCommand {
|
|
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=admin-cancel-subscription.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-cancel-subscription.command.d.ts","sourceRoot":"","sources":["../../../commands/user-to-subscription/admin-cancel-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,8BAA8B,CAAC;IACrC,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.AdminCancelSubscriptionCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var AdminCancelSubscriptionCommand;
|
|
6
|
+
(function (AdminCancelSubscriptionCommand) {
|
|
7
|
+
AdminCancelSubscriptionCommand.RequestParamSchema = zod_1.z.object({
|
|
8
|
+
uuidSiteUserToSubscription: zod_1.z.string().uuid(),
|
|
9
|
+
});
|
|
10
|
+
AdminCancelSubscriptionCommand.ResponseSchema = zod_1.z.void();
|
|
11
|
+
})(AdminCancelSubscriptionCommand || (exports.AdminCancelSubscriptionCommand = AdminCancelSubscriptionCommand = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace DeleteUserToSubscriptionCommand {
|
|
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-user-to-subscription.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-user-to-subscription.command.d.ts","sourceRoot":"","sources":["../../../commands/user-to-subscription/delete-user-to-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,+BAA+B,CAAC;IACtC,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.DeleteUserToSubscriptionCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var DeleteUserToSubscriptionCommand;
|
|
6
|
+
(function (DeleteUserToSubscriptionCommand) {
|
|
7
|
+
DeleteUserToSubscriptionCommand.RequestParamSchema = zod_1.z.object({
|
|
8
|
+
uuid: zod_1.z.string().uuid(),
|
|
9
|
+
});
|
|
10
|
+
DeleteUserToSubscriptionCommand.ResponseSchema = zod_1.z.object({
|
|
11
|
+
data: zod_1.z.boolean(),
|
|
12
|
+
});
|
|
13
|
+
})(DeleteUserToSubscriptionCommand || (exports.DeleteUserToSubscriptionCommand = DeleteUserToSubscriptionCommand = {}));
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GetUserToSubscriptionByUuidCommand {
|
|
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.ZodObject<{
|
|
13
|
+
uuid: z.ZodString;
|
|
14
|
+
siteId: z.ZodString;
|
|
15
|
+
userId: z.ZodString;
|
|
16
|
+
subscriptionId: z.ZodString;
|
|
17
|
+
orderId: z.ZodNullable<z.ZodString>;
|
|
18
|
+
cloudPaymentsSubscriptionId: z.ZodNullable<z.ZodString>;
|
|
19
|
+
type: z.ZodNativeEnum<typeof import("../..").USER_TO_SUBSCRIPTION_TYPE>;
|
|
20
|
+
initTokenBalance: z.ZodNumber;
|
|
21
|
+
tokenBalance: z.ZodNumber;
|
|
22
|
+
initCarriedOverTokenBalance: z.ZodNumber;
|
|
23
|
+
carriedOverTokenBalance: z.ZodNumber;
|
|
24
|
+
status: z.ZodNativeEnum<typeof import("../..").USER_TO_SUBSCRIPTION_STATUS>;
|
|
25
|
+
active: z.ZodBoolean;
|
|
26
|
+
startDate: z.ZodNullable<z.ZodDate>;
|
|
27
|
+
intervalEndDate: z.ZodNullable<z.ZodDate>;
|
|
28
|
+
endDate: z.ZodNullable<z.ZodDate>;
|
|
29
|
+
createdAt: z.ZodDate;
|
|
30
|
+
updatedAt: z.ZodDate;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
active: boolean;
|
|
33
|
+
uuid: string;
|
|
34
|
+
siteId: string;
|
|
35
|
+
status: import("../..").USER_TO_SUBSCRIPTION_STATUS;
|
|
36
|
+
type: import("../..").USER_TO_SUBSCRIPTION_TYPE;
|
|
37
|
+
userId: string;
|
|
38
|
+
orderId: string | null;
|
|
39
|
+
initTokenBalance: number;
|
|
40
|
+
tokenBalance: number;
|
|
41
|
+
createdAt: Date;
|
|
42
|
+
updatedAt: Date;
|
|
43
|
+
subscriptionId: string;
|
|
44
|
+
cloudPaymentsSubscriptionId: string | null;
|
|
45
|
+
initCarriedOverTokenBalance: number;
|
|
46
|
+
carriedOverTokenBalance: number;
|
|
47
|
+
startDate: Date | null;
|
|
48
|
+
intervalEndDate: Date | null;
|
|
49
|
+
endDate: Date | null;
|
|
50
|
+
}, {
|
|
51
|
+
active: boolean;
|
|
52
|
+
uuid: string;
|
|
53
|
+
siteId: string;
|
|
54
|
+
status: import("../..").USER_TO_SUBSCRIPTION_STATUS;
|
|
55
|
+
type: import("../..").USER_TO_SUBSCRIPTION_TYPE;
|
|
56
|
+
userId: string;
|
|
57
|
+
orderId: string | null;
|
|
58
|
+
initTokenBalance: number;
|
|
59
|
+
tokenBalance: number;
|
|
60
|
+
createdAt: Date;
|
|
61
|
+
updatedAt: Date;
|
|
62
|
+
subscriptionId: string;
|
|
63
|
+
cloudPaymentsSubscriptionId: string | null;
|
|
64
|
+
initCarriedOverTokenBalance: number;
|
|
65
|
+
carriedOverTokenBalance: number;
|
|
66
|
+
startDate: Date | null;
|
|
67
|
+
intervalEndDate: Date | null;
|
|
68
|
+
endDate: Date | null;
|
|
69
|
+
}>;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
data: {
|
|
72
|
+
active: boolean;
|
|
73
|
+
uuid: string;
|
|
74
|
+
siteId: string;
|
|
75
|
+
status: import("../..").USER_TO_SUBSCRIPTION_STATUS;
|
|
76
|
+
type: import("../..").USER_TO_SUBSCRIPTION_TYPE;
|
|
77
|
+
userId: string;
|
|
78
|
+
orderId: string | null;
|
|
79
|
+
initTokenBalance: number;
|
|
80
|
+
tokenBalance: number;
|
|
81
|
+
createdAt: Date;
|
|
82
|
+
updatedAt: Date;
|
|
83
|
+
subscriptionId: string;
|
|
84
|
+
cloudPaymentsSubscriptionId: string | null;
|
|
85
|
+
initCarriedOverTokenBalance: number;
|
|
86
|
+
carriedOverTokenBalance: number;
|
|
87
|
+
startDate: Date | null;
|
|
88
|
+
intervalEndDate: Date | null;
|
|
89
|
+
endDate: Date | null;
|
|
90
|
+
};
|
|
91
|
+
}, {
|
|
92
|
+
data: {
|
|
93
|
+
active: boolean;
|
|
94
|
+
uuid: string;
|
|
95
|
+
siteId: string;
|
|
96
|
+
status: import("../..").USER_TO_SUBSCRIPTION_STATUS;
|
|
97
|
+
type: import("../..").USER_TO_SUBSCRIPTION_TYPE;
|
|
98
|
+
userId: string;
|
|
99
|
+
orderId: string | null;
|
|
100
|
+
initTokenBalance: number;
|
|
101
|
+
tokenBalance: number;
|
|
102
|
+
createdAt: Date;
|
|
103
|
+
updatedAt: Date;
|
|
104
|
+
subscriptionId: string;
|
|
105
|
+
cloudPaymentsSubscriptionId: string | null;
|
|
106
|
+
initCarriedOverTokenBalance: number;
|
|
107
|
+
carriedOverTokenBalance: number;
|
|
108
|
+
startDate: Date | null;
|
|
109
|
+
intervalEndDate: Date | null;
|
|
110
|
+
endDate: Date | null;
|
|
111
|
+
};
|
|
112
|
+
}>;
|
|
113
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
114
|
+
}
|
|
115
|
+
//# sourceMappingURL=get-user-to-subscription-by-uuid.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-user-to-subscription-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../commands/user-to-subscription/get-user-to-subscription-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,kCAAkC,CAAC;IACzC,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,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetUserToSubscriptionByUuidCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var GetUserToSubscriptionByUuidCommand;
|
|
7
|
+
(function (GetUserToSubscriptionByUuidCommand) {
|
|
8
|
+
GetUserToSubscriptionByUuidCommand.RequestParamSchema = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
GetUserToSubscriptionByUuidCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: models_1.UserToSubscriptionSchema,
|
|
13
|
+
});
|
|
14
|
+
})(GetUserToSubscriptionByUuidCommand || (exports.GetUserToSubscriptionByUuidCommand = GetUserToSubscriptionByUuidCommand = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/user-to-subscription/index.ts"],"names":[],"mappings":"AAAA,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,qCAAqC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./get-user-to-subscription-by-uuid.command"), exports);
|
|
18
|
+
__exportStar(require("./update-user-to-subscription.command"), exports);
|
|
19
|
+
__exportStar(require("./delete-user-to-subscription.command"), exports);
|
|
20
|
+
__exportStar(require("./admin-cancel-subscription.command"), exports);
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { USER_TO_SUBSCRIPTION_STATUS, USER_TO_SUBSCRIPTION_TYPE } from '../../constants';
|
|
3
|
+
export declare namespace AdminUpdateUserToSubscriptionCommand {
|
|
4
|
+
const RequestParamSchema: z.ZodObject<{
|
|
5
|
+
uuid: z.ZodString;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
uuid: string;
|
|
8
|
+
}, {
|
|
9
|
+
uuid: string;
|
|
10
|
+
}>;
|
|
11
|
+
type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
12
|
+
const RequestSchema: z.ZodObject<{
|
|
13
|
+
orderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
cloudPaymentsSubscriptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
type: z.ZodOptional<z.ZodNativeEnum<typeof USER_TO_SUBSCRIPTION_TYPE>>;
|
|
16
|
+
initTokenBalance: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
tokenBalance: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
initCarriedOverTokenBalance: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
carriedOverTokenBalance: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
status: z.ZodOptional<z.ZodNativeEnum<typeof USER_TO_SUBSCRIPTION_STATUS>>;
|
|
21
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
startDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
23
|
+
intervalEndDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
24
|
+
endDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
active?: boolean | undefined;
|
|
27
|
+
status?: USER_TO_SUBSCRIPTION_STATUS | undefined;
|
|
28
|
+
type?: USER_TO_SUBSCRIPTION_TYPE | undefined;
|
|
29
|
+
orderId?: string | null | undefined;
|
|
30
|
+
initTokenBalance?: number | undefined;
|
|
31
|
+
tokenBalance?: number | undefined;
|
|
32
|
+
cloudPaymentsSubscriptionId?: string | null | undefined;
|
|
33
|
+
initCarriedOverTokenBalance?: number | undefined;
|
|
34
|
+
carriedOverTokenBalance?: number | undefined;
|
|
35
|
+
startDate?: Date | null | undefined;
|
|
36
|
+
intervalEndDate?: Date | null | undefined;
|
|
37
|
+
endDate?: Date | null | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
active?: boolean | undefined;
|
|
40
|
+
status?: USER_TO_SUBSCRIPTION_STATUS | undefined;
|
|
41
|
+
type?: USER_TO_SUBSCRIPTION_TYPE | undefined;
|
|
42
|
+
orderId?: string | null | undefined;
|
|
43
|
+
initTokenBalance?: number | undefined;
|
|
44
|
+
tokenBalance?: number | undefined;
|
|
45
|
+
cloudPaymentsSubscriptionId?: string | null | undefined;
|
|
46
|
+
initCarriedOverTokenBalance?: number | undefined;
|
|
47
|
+
carriedOverTokenBalance?: number | undefined;
|
|
48
|
+
startDate?: Date | null | undefined;
|
|
49
|
+
intervalEndDate?: Date | null | undefined;
|
|
50
|
+
endDate?: Date | null | undefined;
|
|
51
|
+
}>;
|
|
52
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
53
|
+
const ResponseSchema: z.ZodObject<{
|
|
54
|
+
data: z.ZodObject<{
|
|
55
|
+
uuid: z.ZodString;
|
|
56
|
+
siteId: z.ZodString;
|
|
57
|
+
userId: z.ZodString;
|
|
58
|
+
subscriptionId: z.ZodString;
|
|
59
|
+
orderId: z.ZodNullable<z.ZodString>;
|
|
60
|
+
cloudPaymentsSubscriptionId: z.ZodNullable<z.ZodString>;
|
|
61
|
+
type: z.ZodNativeEnum<typeof USER_TO_SUBSCRIPTION_TYPE>;
|
|
62
|
+
initTokenBalance: z.ZodNumber;
|
|
63
|
+
tokenBalance: z.ZodNumber;
|
|
64
|
+
initCarriedOverTokenBalance: z.ZodNumber;
|
|
65
|
+
carriedOverTokenBalance: z.ZodNumber;
|
|
66
|
+
status: z.ZodNativeEnum<typeof USER_TO_SUBSCRIPTION_STATUS>;
|
|
67
|
+
active: z.ZodBoolean;
|
|
68
|
+
startDate: z.ZodNullable<z.ZodDate>;
|
|
69
|
+
intervalEndDate: z.ZodNullable<z.ZodDate>;
|
|
70
|
+
endDate: z.ZodNullable<z.ZodDate>;
|
|
71
|
+
createdAt: z.ZodDate;
|
|
72
|
+
updatedAt: z.ZodDate;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
active: boolean;
|
|
75
|
+
uuid: string;
|
|
76
|
+
siteId: string;
|
|
77
|
+
status: USER_TO_SUBSCRIPTION_STATUS;
|
|
78
|
+
type: USER_TO_SUBSCRIPTION_TYPE;
|
|
79
|
+
userId: string;
|
|
80
|
+
orderId: string | null;
|
|
81
|
+
initTokenBalance: number;
|
|
82
|
+
tokenBalance: number;
|
|
83
|
+
createdAt: Date;
|
|
84
|
+
updatedAt: Date;
|
|
85
|
+
subscriptionId: string;
|
|
86
|
+
cloudPaymentsSubscriptionId: string | null;
|
|
87
|
+
initCarriedOverTokenBalance: number;
|
|
88
|
+
carriedOverTokenBalance: number;
|
|
89
|
+
startDate: Date | null;
|
|
90
|
+
intervalEndDate: Date | null;
|
|
91
|
+
endDate: Date | null;
|
|
92
|
+
}, {
|
|
93
|
+
active: boolean;
|
|
94
|
+
uuid: string;
|
|
95
|
+
siteId: string;
|
|
96
|
+
status: USER_TO_SUBSCRIPTION_STATUS;
|
|
97
|
+
type: USER_TO_SUBSCRIPTION_TYPE;
|
|
98
|
+
userId: string;
|
|
99
|
+
orderId: string | null;
|
|
100
|
+
initTokenBalance: number;
|
|
101
|
+
tokenBalance: number;
|
|
102
|
+
createdAt: Date;
|
|
103
|
+
updatedAt: Date;
|
|
104
|
+
subscriptionId: string;
|
|
105
|
+
cloudPaymentsSubscriptionId: string | null;
|
|
106
|
+
initCarriedOverTokenBalance: number;
|
|
107
|
+
carriedOverTokenBalance: number;
|
|
108
|
+
startDate: Date | null;
|
|
109
|
+
intervalEndDate: Date | null;
|
|
110
|
+
endDate: Date | null;
|
|
111
|
+
}>;
|
|
112
|
+
}, "strip", z.ZodTypeAny, {
|
|
113
|
+
data: {
|
|
114
|
+
active: boolean;
|
|
115
|
+
uuid: string;
|
|
116
|
+
siteId: string;
|
|
117
|
+
status: USER_TO_SUBSCRIPTION_STATUS;
|
|
118
|
+
type: USER_TO_SUBSCRIPTION_TYPE;
|
|
119
|
+
userId: string;
|
|
120
|
+
orderId: string | null;
|
|
121
|
+
initTokenBalance: number;
|
|
122
|
+
tokenBalance: number;
|
|
123
|
+
createdAt: Date;
|
|
124
|
+
updatedAt: Date;
|
|
125
|
+
subscriptionId: string;
|
|
126
|
+
cloudPaymentsSubscriptionId: string | null;
|
|
127
|
+
initCarriedOverTokenBalance: number;
|
|
128
|
+
carriedOverTokenBalance: number;
|
|
129
|
+
startDate: Date | null;
|
|
130
|
+
intervalEndDate: Date | null;
|
|
131
|
+
endDate: Date | null;
|
|
132
|
+
};
|
|
133
|
+
}, {
|
|
134
|
+
data: {
|
|
135
|
+
active: boolean;
|
|
136
|
+
uuid: string;
|
|
137
|
+
siteId: string;
|
|
138
|
+
status: USER_TO_SUBSCRIPTION_STATUS;
|
|
139
|
+
type: USER_TO_SUBSCRIPTION_TYPE;
|
|
140
|
+
userId: string;
|
|
141
|
+
orderId: string | null;
|
|
142
|
+
initTokenBalance: number;
|
|
143
|
+
tokenBalance: number;
|
|
144
|
+
createdAt: Date;
|
|
145
|
+
updatedAt: Date;
|
|
146
|
+
subscriptionId: string;
|
|
147
|
+
cloudPaymentsSubscriptionId: string | null;
|
|
148
|
+
initCarriedOverTokenBalance: number;
|
|
149
|
+
carriedOverTokenBalance: number;
|
|
150
|
+
startDate: Date | null;
|
|
151
|
+
intervalEndDate: Date | null;
|
|
152
|
+
endDate: Date | null;
|
|
153
|
+
};
|
|
154
|
+
}>;
|
|
155
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
156
|
+
}
|
|
157
|
+
//# sourceMappingURL=update-user-to-subscription.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-user-to-subscription.command.d.ts","sourceRoot":"","sources":["../../../commands/user-to-subscription/update-user-to-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,2BAA2B,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAGzF,yBAAiB,oCAAoC,CAAC;IAC3C,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,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminUpdateUserToSubscriptionCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
6
|
+
const models_1 = require("../../models");
|
|
7
|
+
var AdminUpdateUserToSubscriptionCommand;
|
|
8
|
+
(function (AdminUpdateUserToSubscriptionCommand) {
|
|
9
|
+
AdminUpdateUserToSubscriptionCommand.RequestParamSchema = zod_1.z.object({
|
|
10
|
+
uuid: zod_1.z.string().uuid(),
|
|
11
|
+
});
|
|
12
|
+
AdminUpdateUserToSubscriptionCommand.RequestSchema = zod_1.z.object({
|
|
13
|
+
orderId: zod_1.z.string().uuid().nullable().optional(),
|
|
14
|
+
cloudPaymentsSubscriptionId: zod_1.z.string().nullable().optional(),
|
|
15
|
+
type: zod_1.z.nativeEnum(constants_1.USER_TO_SUBSCRIPTION_TYPE).optional(),
|
|
16
|
+
initTokenBalance: zod_1.z.number().int().min(0).optional(),
|
|
17
|
+
tokenBalance: zod_1.z.number().int().min(0).optional(),
|
|
18
|
+
initCarriedOverTokenBalance: zod_1.z.number().int().min(0).optional(),
|
|
19
|
+
carriedOverTokenBalance: zod_1.z.number().int().min(0).optional(),
|
|
20
|
+
status: zod_1.z.nativeEnum(constants_1.USER_TO_SUBSCRIPTION_STATUS).optional(),
|
|
21
|
+
active: zod_1.z.boolean().optional(),
|
|
22
|
+
startDate: zod_1.z.coerce.date().nullable().optional(),
|
|
23
|
+
intervalEndDate: zod_1.z.coerce.date().nullable().optional(),
|
|
24
|
+
endDate: zod_1.z.coerce.date().nullable().optional(),
|
|
25
|
+
});
|
|
26
|
+
AdminUpdateUserToSubscriptionCommand.ResponseSchema = zod_1.z.object({
|
|
27
|
+
data: models_1.UserToSubscriptionSchema,
|
|
28
|
+
});
|
|
29
|
+
})(AdminUpdateUserToSubscriptionCommand || (exports.AdminUpdateUserToSubscriptionCommand = AdminUpdateUserToSubscriptionCommand = {}));
|
|
@@ -174,6 +174,36 @@ export declare const ERRORS: {
|
|
|
174
174
|
readonly code: "PRODUCT_004";
|
|
175
175
|
readonly httpCode: 500;
|
|
176
176
|
};
|
|
177
|
+
readonly PRODUCT_UPDATE_ERROR: {
|
|
178
|
+
readonly message: "Ошибка при обновлении продукта";
|
|
179
|
+
readonly code: "PRODUCT_005";
|
|
180
|
+
readonly httpCode: 500;
|
|
181
|
+
};
|
|
182
|
+
readonly PRODUCT_DELETE_ERROR: {
|
|
183
|
+
readonly message: "Ошибка при удалении продукта";
|
|
184
|
+
readonly code: "PRODUCT_006";
|
|
185
|
+
readonly httpCode: 500;
|
|
186
|
+
};
|
|
187
|
+
readonly USER_TO_PRODUCT_NOT_FOUND: {
|
|
188
|
+
readonly message: "Продукт пользователя не найден";
|
|
189
|
+
readonly code: "USER_TO_PRODUCT_001";
|
|
190
|
+
readonly httpCode: 404;
|
|
191
|
+
};
|
|
192
|
+
readonly USER_TO_PRODUCT_FIND_ERROR: {
|
|
193
|
+
readonly message: "Ошибка при поиске продукта пользователя";
|
|
194
|
+
readonly code: "USER_TO_PRODUCT_002";
|
|
195
|
+
readonly httpCode: 500;
|
|
196
|
+
};
|
|
197
|
+
readonly USER_TO_PRODUCT_UPDATE_ERROR: {
|
|
198
|
+
readonly message: "Ошибка при обновлении продукта пользователя";
|
|
199
|
+
readonly code: "USER_TO_PRODUCT_003";
|
|
200
|
+
readonly httpCode: 500;
|
|
201
|
+
};
|
|
202
|
+
readonly USER_TO_PRODUCT_DELETE_ERROR: {
|
|
203
|
+
readonly message: "Ошибка при удалении продукта пользователя";
|
|
204
|
+
readonly code: "USER_TO_PRODUCT_004";
|
|
205
|
+
readonly httpCode: 500;
|
|
206
|
+
};
|
|
177
207
|
readonly SUBSCRIPTION_NOT_FOUND: {
|
|
178
208
|
readonly message: "Подписка не найдена";
|
|
179
209
|
readonly code: "SUBSCRIPTION_001";
|
|
@@ -214,6 +244,36 @@ export declare const ERRORS: {
|
|
|
214
244
|
readonly code: "SUBSCRIPTION_008";
|
|
215
245
|
readonly httpCode: 500;
|
|
216
246
|
};
|
|
247
|
+
readonly SUBSCRIPTION_UPDATE_ERROR: {
|
|
248
|
+
readonly message: "Ошибка при обновлении подписки";
|
|
249
|
+
readonly code: "SUBSCRIPTION_009";
|
|
250
|
+
readonly httpCode: 500;
|
|
251
|
+
};
|
|
252
|
+
readonly SUBSCRIPTION_DELETE_ERROR: {
|
|
253
|
+
readonly message: "Ошибка при удалении подписки";
|
|
254
|
+
readonly code: "SUBSCRIPTION_010";
|
|
255
|
+
readonly httpCode: 500;
|
|
256
|
+
};
|
|
257
|
+
readonly USER_TO_SUBSCRIPTION_NOT_FOUND: {
|
|
258
|
+
readonly message: "Подписка пользователя не найдена";
|
|
259
|
+
readonly code: "USER_TO_SUBSCRIPTION_001";
|
|
260
|
+
readonly httpCode: 404;
|
|
261
|
+
};
|
|
262
|
+
readonly USER_TO_SUBSCRIPTION_FIND_ERROR: {
|
|
263
|
+
readonly message: "Ошибка при поиске подписки пользователя";
|
|
264
|
+
readonly code: "USER_TO_SUBSCRIPTION_002";
|
|
265
|
+
readonly httpCode: 500;
|
|
266
|
+
};
|
|
267
|
+
readonly USER_TO_SUBSCRIPTION_UPDATE_ERROR: {
|
|
268
|
+
readonly message: "Ошибка при обновлении подписки пользователя";
|
|
269
|
+
readonly code: "USER_TO_SUBSCRIPTION_003";
|
|
270
|
+
readonly httpCode: 500;
|
|
271
|
+
};
|
|
272
|
+
readonly USER_TO_SUBSCRIPTION_DELETE_ERROR: {
|
|
273
|
+
readonly message: "Ошибка при удалении подписки пользователя";
|
|
274
|
+
readonly code: "USER_TO_SUBSCRIPTION_004";
|
|
275
|
+
readonly httpCode: 500;
|
|
276
|
+
};
|
|
217
277
|
readonly ORDER_NOT_FOUND: {
|
|
218
278
|
readonly message: "Заказ не найден";
|
|
219
279
|
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
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAq2BT,CAAC"}
|