@purpleschool/multisite 0.0.21 → 0.0.22

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 (129) hide show
  1. package/api/controller/http/index.ts +2 -0
  2. package/api/controller/http/user-to-product.ts +7 -0
  3. package/api/controller/http/user-to-subscription.ts +8 -0
  4. package/api/routes.ts +18 -0
  5. package/build/api/controller/http/index.d.ts +2 -0
  6. package/build/api/controller/http/index.d.ts.map +1 -1
  7. package/build/api/controller/http/index.js +2 -0
  8. package/build/api/controller/http/user-to-product.d.ts +7 -0
  9. package/build/api/controller/http/user-to-product.d.ts.map +1 -0
  10. package/build/api/controller/http/user-to-product.js +9 -0
  11. package/build/api/controller/http/user-to-subscription.d.ts +8 -0
  12. package/build/api/controller/http/user-to-subscription.d.ts.map +1 -0
  13. package/build/api/controller/http/user-to-subscription.js +10 -0
  14. package/build/api/routes.d.ts +11 -0
  15. package/build/api/routes.d.ts.map +1 -1
  16. package/build/api/routes.js +11 -0
  17. package/build/commands/image-editor/execute-image-editor.command.d.ts +4 -4
  18. package/build/commands/image-editor/retry-image-editor-job.command.d.ts +4 -4
  19. package/build/commands/image-editor/set-reaction-to-image-editor-job.command.d.ts +4 -4
  20. package/build/commands/image-editor/update-image-editor-job-title.command.d.ts +4 -4
  21. package/build/commands/image-generation/execute-image-generation.command.d.ts +4 -4
  22. package/build/commands/image-generation/retry-image-generation-job.command.d.ts +4 -4
  23. package/build/commands/image-generation/set-reaction-to-image-generation-job.command.d.ts +4 -4
  24. package/build/commands/image-generation/update-image-generation-job-title.command.d.ts +4 -4
  25. package/build/commands/index.d.ts +2 -0
  26. package/build/commands/index.d.ts.map +1 -1
  27. package/build/commands/index.js +2 -0
  28. package/build/commands/page/create-page.command.d.ts +4 -4
  29. package/build/commands/page/find-page-by-alias.command.d.ts +12 -12
  30. package/build/commands/page/find-page-by-criteria.command.d.ts +4 -4
  31. package/build/commands/page/find-page.command.d.ts +8 -8
  32. package/build/commands/page/update-page.command.d.ts +4 -4
  33. package/build/commands/payment/cloud-payments.command.d.ts +2 -2
  34. package/build/commands/stt/execute-stt.command.d.ts +12 -12
  35. package/build/commands/stt/retry-stt-job.command.d.ts +12 -12
  36. package/build/commands/stt/set-reaction-to-stt-job.command.d.ts +12 -12
  37. package/build/commands/stt/update-stt-job-title.command.d.ts +12 -12
  38. package/build/commands/tts/execute-tts.command.d.ts +12 -12
  39. package/build/commands/tts/retry-tts-job.command.d.ts +12 -12
  40. package/build/commands/tts/set-reaction-to-tts-job.command.d.ts +12 -12
  41. package/build/commands/tts/update-tts-job-title.command.d.ts +12 -12
  42. package/build/commands/unregistered-user/upsert-unregistered-user.command.d.ts +4 -4
  43. package/build/commands/user-to-product/delete-user-to-product.command.d.ts +20 -0
  44. package/build/commands/user-to-product/delete-user-to-product.command.d.ts.map +1 -0
  45. package/build/commands/user-to-product/delete-user-to-product.command.js +13 -0
  46. package/build/commands/user-to-product/get-user-to-product-by-uuid.command.d.ts +75 -0
  47. package/build/commands/user-to-product/get-user-to-product-by-uuid.command.d.ts.map +1 -0
  48. package/build/commands/user-to-product/get-user-to-product-by-uuid.command.js +14 -0
  49. package/build/commands/user-to-product/index.d.ts +4 -0
  50. package/build/commands/user-to-product/index.d.ts.map +1 -0
  51. package/build/commands/user-to-product/index.js +19 -0
  52. package/build/commands/user-to-product/update-user-to-product.command.d.ts +93 -0
  53. package/build/commands/user-to-product/update-user-to-product.command.d.ts.map +1 -0
  54. package/build/commands/user-to-product/update-user-to-product.command.js +21 -0
  55. package/build/commands/user-to-subscription/admin-cancel-subscription.command.d.ts +14 -0
  56. package/build/commands/user-to-subscription/admin-cancel-subscription.command.d.ts.map +1 -0
  57. package/build/commands/user-to-subscription/admin-cancel-subscription.command.js +11 -0
  58. package/build/commands/user-to-subscription/delete-user-to-subscription.command.d.ts +20 -0
  59. package/build/commands/user-to-subscription/delete-user-to-subscription.command.d.ts.map +1 -0
  60. package/build/commands/user-to-subscription/delete-user-to-subscription.command.js +13 -0
  61. package/build/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.d.ts +115 -0
  62. package/build/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.d.ts.map +1 -0
  63. package/build/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.js +14 -0
  64. package/build/commands/user-to-subscription/index.d.ts +5 -0
  65. package/build/commands/user-to-subscription/index.d.ts.map +1 -0
  66. package/build/commands/user-to-subscription/index.js +20 -0
  67. package/build/commands/user-to-subscription/update-user-to-subscription.command.d.ts +157 -0
  68. package/build/commands/user-to-subscription/update-user-to-subscription.command.d.ts.map +1 -0
  69. package/build/commands/user-to-subscription/update-user-to-subscription.command.js +29 -0
  70. package/build/constants/errors/errors.d.ts +60 -0
  71. package/build/constants/errors/errors.d.ts.map +1 -1
  72. package/build/constants/errors/errors.js +62 -0
  73. package/build/models/image-editor/image-editor-config.schema.d.ts +10 -10
  74. package/build/models/image-editor/image-editor-job.schema.d.ts +2 -2
  75. package/build/models/image-editor/image-editor-model.schema.d.ts +2 -2
  76. package/build/models/image-editor/image-editor-prompt-group.schema.d.ts +4 -4
  77. package/build/models/image-editor/image-editor-system-prompt.schema.d.ts +2 -2
  78. package/build/models/image-generation/image-generation-config.schema.d.ts +6 -6
  79. package/build/models/image-generation/image-generation-job.schema.d.ts +2 -2
  80. package/build/models/image-generation/image-generation-model.schema.d.ts +2 -2
  81. package/build/models/image-generation/image-generation-vendor.schema.d.ts +4 -4
  82. package/build/models/index.d.ts +2 -0
  83. package/build/models/index.d.ts.map +1 -1
  84. package/build/models/index.js +2 -0
  85. package/build/models/page.schema.d.ts +4 -4
  86. package/build/models/stt/stt-config.schema.d.ts +8 -8
  87. package/build/models/stt/stt-job.schema.d.ts +6 -6
  88. package/build/models/stt/stt-model.schema.d.ts +4 -4
  89. package/build/models/tts/tts-config.schema.d.ts +8 -8
  90. package/build/models/tts/tts-job.schema.d.ts +6 -6
  91. package/build/models/tts/tts-model.schema.d.ts +4 -4
  92. package/build/models/user-to-product.schema.d.ts +37 -0
  93. package/build/models/user-to-product.schema.d.ts.map +1 -0
  94. package/build/models/user-to-product.schema.js +17 -0
  95. package/build/models/user-to-subscription.schema.d.ts +61 -0
  96. package/build/models/user-to-subscription.schema.d.ts.map +1 -0
  97. package/build/models/user-to-subscription.schema.js +25 -0
  98. package/build/queries/image-editor/find-image-editor-jobs.command.d.ts +4 -4
  99. package/build/queries/image-editor/get-image-editor-config.command.d.ts +14 -14
  100. package/build/queries/image-editor/get-image-editor-job.command.d.ts +4 -4
  101. package/build/queries/image-generation/find-image-generation-jobs.command.d.ts +4 -4
  102. package/build/queries/image-generation/get-image-generation-config.command.d.ts +8 -8
  103. package/build/queries/image-generation/get-image-generation-job.command.d.ts +4 -4
  104. package/build/queries/payment/get-payment-history.command.d.ts +6 -6
  105. package/build/queries/stt/find-stt-jobs.command.d.ts +12 -12
  106. package/build/queries/stt/get-stt-config.command.d.ts +12 -12
  107. package/build/queries/stt/get-stt-job.command.d.ts +12 -12
  108. package/build/queries/subscription/get-subscriptions-summary.command.d.ts +16 -16
  109. package/build/queries/tts/find-tts-jobs.command.d.ts +12 -12
  110. package/build/queries/tts/get-tts-config.command.d.ts +12 -12
  111. package/build/queries/tts/get-tts-job.command.d.ts +12 -12
  112. package/build/queries/user/get-my-products.command.d.ts +8 -8
  113. package/build/queries/user/get-my-subscriptions.command.d.ts +12 -12
  114. package/build/queries/user/get-user-payments.command.d.ts +18 -18
  115. package/commands/index.ts +2 -0
  116. package/commands/user-to-product/delete-user-to-product.command.ts +13 -0
  117. package/commands/user-to-product/get-user-to-product-by-uuid.command.ts +14 -0
  118. package/commands/user-to-product/index.ts +3 -0
  119. package/commands/user-to-product/update-user-to-product.command.ts +23 -0
  120. package/commands/user-to-subscription/admin-cancel-subscription.command.ts +11 -0
  121. package/commands/user-to-subscription/delete-user-to-subscription.command.ts +13 -0
  122. package/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.ts +14 -0
  123. package/commands/user-to-subscription/index.ts +4 -0
  124. package/commands/user-to-subscription/update-user-to-subscription.command.ts +31 -0
  125. package/constants/errors/errors.ts +64 -0
  126. package/models/index.ts +2 -0
  127. package/models/user-to-product.schema.ts +15 -0
  128. package/models/user-to-subscription.schema.ts +23 -0
  129. package/package.json +1 -1
@@ -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,5 @@
1
+ export * from './get-user-to-subscription-by-uuid.command';
2
+ export * from './update-user-to-subscription.command';
3
+ export * from './delete-user-to-subscription.command';
4
+ export * from './admin-cancel-subscription.command';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqyBT,CAAC"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAq2BT,CAAC"}
@@ -182,6 +182,37 @@ exports.ERRORS = {
182
182
  code: 'PRODUCT_004',
183
183
  httpCode: 500,
184
184
  },
185
+ PRODUCT_UPDATE_ERROR: {
186
+ message: 'Ошибка при обновлении продукта',
187
+ code: 'PRODUCT_005',
188
+ httpCode: 500,
189
+ },
190
+ PRODUCT_DELETE_ERROR: {
191
+ message: 'Ошибка при удалении продукта',
192
+ code: 'PRODUCT_006',
193
+ httpCode: 500,
194
+ },
195
+ // USER TO PRODUCT
196
+ USER_TO_PRODUCT_NOT_FOUND: {
197
+ message: 'Продукт пользователя не найден',
198
+ code: 'USER_TO_PRODUCT_001',
199
+ httpCode: 404,
200
+ },
201
+ USER_TO_PRODUCT_FIND_ERROR: {
202
+ message: 'Ошибка при поиске продукта пользователя',
203
+ code: 'USER_TO_PRODUCT_002',
204
+ httpCode: 500,
205
+ },
206
+ USER_TO_PRODUCT_UPDATE_ERROR: {
207
+ message: 'Ошибка при обновлении продукта пользователя',
208
+ code: 'USER_TO_PRODUCT_003',
209
+ httpCode: 500,
210
+ },
211
+ USER_TO_PRODUCT_DELETE_ERROR: {
212
+ message: 'Ошибка при удалении продукта пользователя',
213
+ code: 'USER_TO_PRODUCT_004',
214
+ httpCode: 500,
215
+ },
185
216
  // SUBSCRIPTION
186
217
  SUBSCRIPTION_NOT_FOUND: {
187
218
  message: 'Подписка не найдена',
@@ -223,6 +254,37 @@ exports.ERRORS = {
223
254
  code: 'SUBSCRIPTION_008',
224
255
  httpCode: 500,
225
256
  },
257
+ SUBSCRIPTION_UPDATE_ERROR: {
258
+ message: 'Ошибка при обновлении подписки',
259
+ code: 'SUBSCRIPTION_009',
260
+ httpCode: 500,
261
+ },
262
+ SUBSCRIPTION_DELETE_ERROR: {
263
+ message: 'Ошибка при удалении подписки',
264
+ code: 'SUBSCRIPTION_010',
265
+ httpCode: 500,
266
+ },
267
+ // USER TO SUBSCRIPTION
268
+ USER_TO_SUBSCRIPTION_NOT_FOUND: {
269
+ message: 'Подписка пользователя не найдена',
270
+ code: 'USER_TO_SUBSCRIPTION_001',
271
+ httpCode: 404,
272
+ },
273
+ USER_TO_SUBSCRIPTION_FIND_ERROR: {
274
+ message: 'Ошибка при поиске подписки пользователя',
275
+ code: 'USER_TO_SUBSCRIPTION_002',
276
+ httpCode: 500,
277
+ },
278
+ USER_TO_SUBSCRIPTION_UPDATE_ERROR: {
279
+ message: 'Ошибка при обновлении подписки пользователя',
280
+ code: 'USER_TO_SUBSCRIPTION_003',
281
+ httpCode: 500,
282
+ },
283
+ USER_TO_SUBSCRIPTION_DELETE_ERROR: {
284
+ message: 'Ошибка при удалении подписки пользователя',
285
+ code: 'USER_TO_SUBSCRIPTION_004',
286
+ httpCode: 500,
287
+ },
226
288
  // ORDER
227
289
  ORDER_NOT_FOUND: {
228
290
  message: 'Заказ не найден',
@@ -161,9 +161,9 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
161
161
  };
162
162
  };
163
163
  maxInputLength: number;
164
- statusCheckEndpoint?: string | null | undefined;
165
164
  createdAt?: string | Date | undefined;
166
165
  updatedAt?: string | Date | undefined;
166
+ statusCheckEndpoint?: string | null | undefined;
167
167
  }, {
168
168
  uuid: string;
169
169
  status: import("../..").TOOL_MODEL_STATUS;
@@ -204,9 +204,9 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
204
204
  };
205
205
  };
206
206
  maxInputLength: number;
207
- statusCheckEndpoint?: string | null | undefined;
208
207
  createdAt?: string | Date | undefined;
209
208
  updatedAt?: string | Date | undefined;
209
+ statusCheckEndpoint?: string | null | undefined;
210
210
  }>, "many">;
211
211
  promptGroups: z.ZodArray<z.ZodObject<{
212
212
  uuid: z.ZodString;
@@ -275,9 +275,9 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
275
275
  allowUserPrompt: boolean;
276
276
  groupId: string;
277
277
  params?: Record<string, any> | undefined;
278
- strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
279
278
  createdAt?: string | Date | undefined;
280
279
  updatedAt?: string | Date | undefined;
280
+ strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
281
281
  preview?: Record<string, any> | undefined;
282
282
  placeholder?: string | null | undefined;
283
283
  }, {
@@ -289,9 +289,9 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
289
289
  allowUserPrompt: boolean;
290
290
  groupId: string;
291
291
  params?: Record<string, any> | undefined;
292
- strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
293
292
  createdAt?: string | Date | undefined;
294
293
  updatedAt?: string | Date | undefined;
294
+ strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
295
295
  preview?: Record<string, any> | undefined;
296
296
  placeholder?: string | null | undefined;
297
297
  }>, "many">;
@@ -318,9 +318,9 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
318
318
  allowUserPrompt: boolean;
319
319
  groupId: string;
320
320
  params?: Record<string, any> | undefined;
321
- strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
322
321
  createdAt?: string | Date | undefined;
323
322
  updatedAt?: string | Date | undefined;
323
+ strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
324
324
  preview?: Record<string, any> | undefined;
325
325
  placeholder?: string | null | undefined;
326
326
  }[];
@@ -347,9 +347,9 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
347
347
  allowUserPrompt: boolean;
348
348
  groupId: string;
349
349
  params?: Record<string, any> | undefined;
350
- strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
351
350
  createdAt?: string | Date | undefined;
352
351
  updatedAt?: string | Date | undefined;
352
+ strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
353
353
  preview?: Record<string, any> | undefined;
354
354
  placeholder?: string | null | undefined;
355
355
  }[];
@@ -395,9 +395,9 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
395
395
  };
396
396
  };
397
397
  maxInputLength: number;
398
- statusCheckEndpoint?: string | null | undefined;
399
398
  createdAt?: string | Date | undefined;
400
399
  updatedAt?: string | Date | undefined;
400
+ statusCheckEndpoint?: string | null | undefined;
401
401
  }[];
402
402
  promptGroups: {
403
403
  uuid: string;
@@ -422,9 +422,9 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
422
422
  allowUserPrompt: boolean;
423
423
  groupId: string;
424
424
  params?: Record<string, any> | undefined;
425
- strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
426
425
  createdAt?: string | Date | undefined;
427
426
  updatedAt?: string | Date | undefined;
427
+ strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
428
428
  preview?: Record<string, any> | undefined;
429
429
  placeholder?: string | null | undefined;
430
430
  }[];
@@ -470,9 +470,9 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
470
470
  };
471
471
  };
472
472
  maxInputLength: number;
473
- statusCheckEndpoint?: string | null | undefined;
474
473
  createdAt?: string | Date | undefined;
475
474
  updatedAt?: string | Date | undefined;
475
+ statusCheckEndpoint?: string | null | undefined;
476
476
  }[];
477
477
  promptGroups: {
478
478
  uuid: string;
@@ -497,9 +497,9 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
497
497
  allowUserPrompt: boolean;
498
498
  groupId: string;
499
499
  params?: Record<string, any> | undefined;
500
- strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
501
500
  createdAt?: string | Date | undefined;
502
501
  updatedAt?: string | Date | undefined;
502
+ strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
503
503
  preview?: Record<string, any> | undefined;
504
504
  placeholder?: string | null | undefined;
505
505
  }[];