@purpleschool/multisite 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/api/controller/http/index.d.ts +1 -0
- package/build/api/controller/http/index.d.ts.map +1 -1
- package/build/api/controller/http/index.js +1 -0
- package/build/api/controller/http/marketplace-card.d.ts +15 -0
- package/build/api/controller/http/marketplace-card.d.ts.map +1 -0
- package/build/api/controller/http/marketplace-card.js +17 -0
- package/build/api/routes.d.ts +23 -0
- package/build/api/routes.d.ts.map +1 -1
- package/build/api/routes.js +23 -0
- package/build/commands/index.d.ts +1 -0
- package/build/commands/index.d.ts.map +1 -1
- package/build/commands/index.js +1 -0
- package/build/commands/marketplace-card/execute-marketplace-card.command.d.ts +155 -0
- package/build/commands/marketplace-card/execute-marketplace-card.command.d.ts.map +1 -0
- package/build/commands/marketplace-card/execute-marketplace-card.command.js +12 -0
- package/build/commands/marketplace-card/index.d.ts +7 -0
- package/build/commands/marketplace-card/index.d.ts.map +1 -0
- package/build/commands/marketplace-card/index.js +22 -0
- package/build/commands/marketplace-card/retry-marketplace-card-job.command.d.ts +163 -0
- package/build/commands/marketplace-card/retry-marketplace-card-job.command.d.ts.map +1 -0
- package/build/commands/marketplace-card/retry-marketplace-card-job.command.js +25 -0
- package/build/commands/marketplace-card/set-reaction-to-marketplace-card-job.command.d.ts +143 -0
- package/build/commands/marketplace-card/set-reaction-to-marketplace-card-job.command.d.ts.map +1 -0
- package/build/commands/marketplace-card/set-reaction-to-marketplace-card-job.command.js +19 -0
- package/build/commands/marketplace-card/soft-delete-marketplace-card-job-by-uuid.command.d.ts +20 -0
- package/build/commands/marketplace-card/soft-delete-marketplace-card-job-by-uuid.command.d.ts.map +1 -0
- package/build/commands/marketplace-card/soft-delete-marketplace-card-job-by-uuid.command.js +13 -0
- package/build/commands/marketplace-card/soft-delete-marketplace-card-jobs-by-criteria.command.d.ts +12 -0
- package/build/commands/marketplace-card/soft-delete-marketplace-card-jobs-by-criteria.command.d.ts.map +1 -0
- package/build/commands/marketplace-card/soft-delete-marketplace-card-jobs-by-criteria.command.js +10 -0
- package/build/commands/marketplace-card/update-marketplace-card-job-title.command.d.ts +139 -0
- package/build/commands/marketplace-card/update-marketplace-card-job-title.command.d.ts.map +1 -0
- package/build/commands/marketplace-card/update-marketplace-card-job-title.command.js +17 -0
- package/build/constants/errors/errors.d.ts +90 -0
- package/build/constants/errors/errors.d.ts.map +1 -1
- package/build/constants/errors/errors.js +91 -0
- package/build/constants/tools/enums/index.d.ts +1 -0
- package/build/constants/tools/enums/index.d.ts.map +1 -1
- package/build/constants/tools/enums/index.js +1 -0
- package/build/constants/tools/enums/marketplace-card-strategy.enum.d.ts +7 -0
- package/build/constants/tools/enums/marketplace-card-strategy.enum.d.ts.map +1 -0
- package/build/constants/tools/enums/marketplace-card-strategy.enum.js +10 -0
- package/build/constants/tools/enums/tool-type.enum.d.ts +2 -1
- package/build/constants/tools/enums/tool-type.enum.d.ts.map +1 -1
- package/build/constants/tools/enums/tool-type.enum.js +1 -0
- package/build/models/index.d.ts +1 -0
- package/build/models/index.d.ts.map +1 -1
- package/build/models/index.js +1 -0
- package/build/models/marketplace-card/index.d.ts +7 -0
- package/build/models/marketplace-card/index.d.ts.map +1 -0
- package/build/models/marketplace-card/index.js +22 -0
- package/build/models/marketplace-card/marketplace-card-config.schema.d.ts +203 -0
- package/build/models/marketplace-card/marketplace-card-config.schema.d.ts.map +1 -0
- package/build/models/marketplace-card/marketplace-card-config.schema.js +10 -0
- package/build/models/marketplace-card/marketplace-card-job-request-params.schema.d.ts +34 -0
- package/build/models/marketplace-card/marketplace-card-job-request-params.schema.d.ts.map +1 -0
- package/build/models/marketplace-card/marketplace-card-job-request-params.schema.js +15 -0
- package/build/models/marketplace-card/marketplace-card-job.schema.d.ts +74 -0
- package/build/models/marketplace-card/marketplace-card-job.schema.d.ts.map +1 -0
- package/build/models/marketplace-card/marketplace-card-job.schema.js +28 -0
- package/build/models/marketplace-card/marketplace-card-model-params.schema.d.ts +30 -0
- package/build/models/marketplace-card/marketplace-card-model-params.schema.d.ts.map +1 -0
- package/build/models/marketplace-card/marketplace-card-model-params.schema.js +11 -0
- package/build/models/marketplace-card/marketplace-card-model.schema.d.ts +123 -0
- package/build/models/marketplace-card/marketplace-card-model.schema.d.ts.map +1 -0
- package/build/models/marketplace-card/marketplace-card-model.schema.js +15 -0
- package/build/models/marketplace-card/marketplace-card-style-preset.schema.d.ts +19 -0
- package/build/models/marketplace-card/marketplace-card-style-preset.schema.d.ts.map +1 -0
- package/build/models/marketplace-card/marketplace-card-style-preset.schema.js +10 -0
- package/build/queries/index.d.ts +1 -0
- package/build/queries/index.d.ts.map +1 -1
- package/build/queries/index.js +1 -0
- package/build/queries/marketplace-card/find-marketplace-card-jobs.command.d.ts +160 -0
- package/build/queries/marketplace-card/find-marketplace-card-jobs.command.d.ts.map +1 -0
- package/build/queries/marketplace-card/find-marketplace-card-jobs.command.js +21 -0
- package/build/queries/marketplace-card/get-marketplace-card-config.command.d.ts +273 -0
- package/build/queries/marketplace-card/get-marketplace-card-config.command.d.ts.map +1 -0
- package/build/queries/marketplace-card/get-marketplace-card-config.command.js +11 -0
- package/build/queries/marketplace-card/get-marketplace-card-job.command.d.ts +131 -0
- package/build/queries/marketplace-card/get-marketplace-card-job.command.d.ts.map +1 -0
- package/build/queries/marketplace-card/get-marketplace-card-job.command.js +14 -0
- package/build/queries/marketplace-card/get-marketplace-card-price.command.d.ts +30 -0
- package/build/queries/marketplace-card/get-marketplace-card-price.command.d.ts.map +1 -0
- package/build/queries/marketplace-card/get-marketplace-card-price.command.js +15 -0
- package/build/queries/marketplace-card/index.d.ts +5 -0
- package/build/queries/marketplace-card/index.d.ts.map +1 -0
- package/build/queries/marketplace-card/index.js +20 -0
- package/package.json +1 -1
package/build/models/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './cloud-payments-widget.schema';
|
|
|
5
5
|
export * from './cloud-payments-widget-data.schema';
|
|
6
6
|
export * from './image-generation';
|
|
7
7
|
export * from './image-editor';
|
|
8
|
+
export * from './marketplace-card';
|
|
8
9
|
export * from './file.schema';
|
|
9
10
|
export * from './common';
|
|
10
11
|
export * from './tools';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC"}
|
package/build/models/index.js
CHANGED
|
@@ -21,6 +21,7 @@ __exportStar(require("./cloud-payments-widget.schema"), exports);
|
|
|
21
21
|
__exportStar(require("./cloud-payments-widget-data.schema"), exports);
|
|
22
22
|
__exportStar(require("./image-generation"), exports);
|
|
23
23
|
__exportStar(require("./image-editor"), exports);
|
|
24
|
+
__exportStar(require("./marketplace-card"), exports);
|
|
24
25
|
__exportStar(require("./file.schema"), exports);
|
|
25
26
|
__exportStar(require("./common"), exports);
|
|
26
27
|
__exportStar(require("./tools"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './marketplace-card-model-params.schema';
|
|
2
|
+
export * from './marketplace-card-model.schema';
|
|
3
|
+
export * from './marketplace-card-style-preset.schema';
|
|
4
|
+
export * from './marketplace-card-job-request-params.schema';
|
|
5
|
+
export * from './marketplace-card-job.schema';
|
|
6
|
+
export * from './marketplace-card-config.schema';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/marketplace-card/index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,wCAAwC,CAAC;AACvD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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("./marketplace-card-model-params.schema"), exports);
|
|
18
|
+
__exportStar(require("./marketplace-card-model.schema"), exports);
|
|
19
|
+
__exportStar(require("./marketplace-card-style-preset.schema"), exports);
|
|
20
|
+
__exportStar(require("./marketplace-card-job-request-params.schema"), exports);
|
|
21
|
+
__exportStar(require("./marketplace-card-job.schema"), exports);
|
|
22
|
+
__exportStar(require("./marketplace-card-config.schema"), exports);
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const MarketplaceCardConfigSchema: z.ZodObject<{
|
|
3
|
+
styles: z.ZodArray<z.ZodObject<{
|
|
4
|
+
uuid: z.ZodString;
|
|
5
|
+
previewImageUrl: z.ZodString;
|
|
6
|
+
order: z.ZodNumber;
|
|
7
|
+
isActive: z.ZodBoolean;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
uuid: string;
|
|
10
|
+
order: number;
|
|
11
|
+
previewImageUrl: string;
|
|
12
|
+
isActive: boolean;
|
|
13
|
+
}, {
|
|
14
|
+
uuid: string;
|
|
15
|
+
order: number;
|
|
16
|
+
previewImageUrl: string;
|
|
17
|
+
isActive: boolean;
|
|
18
|
+
}>, "many">;
|
|
19
|
+
models: z.ZodArray<z.ZodObject<{
|
|
20
|
+
uuid: z.ZodString;
|
|
21
|
+
price: z.ZodNumber;
|
|
22
|
+
params: z.ZodObject<{
|
|
23
|
+
imageAttachment: z.ZodObject<{
|
|
24
|
+
supported: z.ZodBoolean;
|
|
25
|
+
maxImages: z.ZodNumber;
|
|
26
|
+
acceptedTypes: z.ZodArray<z.ZodString, "many">;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
supported: boolean;
|
|
29
|
+
maxImages: number;
|
|
30
|
+
acceptedTypes: string[];
|
|
31
|
+
}, {
|
|
32
|
+
supported: boolean;
|
|
33
|
+
maxImages: number;
|
|
34
|
+
acceptedTypes: string[];
|
|
35
|
+
}>;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
imageAttachment: {
|
|
38
|
+
supported: boolean;
|
|
39
|
+
maxImages: number;
|
|
40
|
+
acceptedTypes: string[];
|
|
41
|
+
};
|
|
42
|
+
}, {
|
|
43
|
+
imageAttachment: {
|
|
44
|
+
supported: boolean;
|
|
45
|
+
maxImages: number;
|
|
46
|
+
acceptedTypes: string[];
|
|
47
|
+
};
|
|
48
|
+
}>;
|
|
49
|
+
iconVariants: z.ZodObject<{
|
|
50
|
+
light: z.ZodObject<{
|
|
51
|
+
png: z.ZodOptional<z.ZodString>;
|
|
52
|
+
svg: z.ZodOptional<z.ZodString>;
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
png?: string | undefined;
|
|
55
|
+
svg?: string | undefined;
|
|
56
|
+
}, {
|
|
57
|
+
png?: string | undefined;
|
|
58
|
+
svg?: string | undefined;
|
|
59
|
+
}>;
|
|
60
|
+
dark: z.ZodObject<{
|
|
61
|
+
png: z.ZodOptional<z.ZodString>;
|
|
62
|
+
svg: z.ZodOptional<z.ZodString>;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
png?: string | undefined;
|
|
65
|
+
svg?: string | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
png?: string | undefined;
|
|
68
|
+
svg?: string | undefined;
|
|
69
|
+
}>;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
light: {
|
|
72
|
+
png?: string | undefined;
|
|
73
|
+
svg?: string | undefined;
|
|
74
|
+
};
|
|
75
|
+
dark: {
|
|
76
|
+
png?: string | undefined;
|
|
77
|
+
svg?: string | undefined;
|
|
78
|
+
};
|
|
79
|
+
}, {
|
|
80
|
+
light: {
|
|
81
|
+
png?: string | undefined;
|
|
82
|
+
svg?: string | undefined;
|
|
83
|
+
};
|
|
84
|
+
dark: {
|
|
85
|
+
png?: string | undefined;
|
|
86
|
+
svg?: string | undefined;
|
|
87
|
+
};
|
|
88
|
+
}>;
|
|
89
|
+
maxPromptLength: z.ZodNumber;
|
|
90
|
+
supportsImageAttachment: z.ZodBoolean;
|
|
91
|
+
maxAttachedImages: z.ZodNumber;
|
|
92
|
+
}, "strip", z.ZodTypeAny, {
|
|
93
|
+
price: number;
|
|
94
|
+
uuid: string;
|
|
95
|
+
params: {
|
|
96
|
+
imageAttachment: {
|
|
97
|
+
supported: boolean;
|
|
98
|
+
maxImages: number;
|
|
99
|
+
acceptedTypes: string[];
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
maxPromptLength: number;
|
|
103
|
+
iconVariants: {
|
|
104
|
+
light: {
|
|
105
|
+
png?: string | undefined;
|
|
106
|
+
svg?: string | undefined;
|
|
107
|
+
};
|
|
108
|
+
dark: {
|
|
109
|
+
png?: string | undefined;
|
|
110
|
+
svg?: string | undefined;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
supportsImageAttachment: boolean;
|
|
114
|
+
maxAttachedImages: number;
|
|
115
|
+
}, {
|
|
116
|
+
price: number;
|
|
117
|
+
uuid: string;
|
|
118
|
+
params: {
|
|
119
|
+
imageAttachment: {
|
|
120
|
+
supported: boolean;
|
|
121
|
+
maxImages: number;
|
|
122
|
+
acceptedTypes: string[];
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
maxPromptLength: number;
|
|
126
|
+
iconVariants: {
|
|
127
|
+
light: {
|
|
128
|
+
png?: string | undefined;
|
|
129
|
+
svg?: string | undefined;
|
|
130
|
+
};
|
|
131
|
+
dark: {
|
|
132
|
+
png?: string | undefined;
|
|
133
|
+
svg?: string | undefined;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
supportsImageAttachment: boolean;
|
|
137
|
+
maxAttachedImages: number;
|
|
138
|
+
}>, "many">;
|
|
139
|
+
}, "strip", z.ZodTypeAny, {
|
|
140
|
+
models: {
|
|
141
|
+
price: number;
|
|
142
|
+
uuid: string;
|
|
143
|
+
params: {
|
|
144
|
+
imageAttachment: {
|
|
145
|
+
supported: boolean;
|
|
146
|
+
maxImages: number;
|
|
147
|
+
acceptedTypes: string[];
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
maxPromptLength: number;
|
|
151
|
+
iconVariants: {
|
|
152
|
+
light: {
|
|
153
|
+
png?: string | undefined;
|
|
154
|
+
svg?: string | undefined;
|
|
155
|
+
};
|
|
156
|
+
dark: {
|
|
157
|
+
png?: string | undefined;
|
|
158
|
+
svg?: string | undefined;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
supportsImageAttachment: boolean;
|
|
162
|
+
maxAttachedImages: number;
|
|
163
|
+
}[];
|
|
164
|
+
styles: {
|
|
165
|
+
uuid: string;
|
|
166
|
+
order: number;
|
|
167
|
+
previewImageUrl: string;
|
|
168
|
+
isActive: boolean;
|
|
169
|
+
}[];
|
|
170
|
+
}, {
|
|
171
|
+
models: {
|
|
172
|
+
price: number;
|
|
173
|
+
uuid: string;
|
|
174
|
+
params: {
|
|
175
|
+
imageAttachment: {
|
|
176
|
+
supported: boolean;
|
|
177
|
+
maxImages: number;
|
|
178
|
+
acceptedTypes: string[];
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
maxPromptLength: number;
|
|
182
|
+
iconVariants: {
|
|
183
|
+
light: {
|
|
184
|
+
png?: string | undefined;
|
|
185
|
+
svg?: string | undefined;
|
|
186
|
+
};
|
|
187
|
+
dark: {
|
|
188
|
+
png?: string | undefined;
|
|
189
|
+
svg?: string | undefined;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
supportsImageAttachment: boolean;
|
|
193
|
+
maxAttachedImages: number;
|
|
194
|
+
}[];
|
|
195
|
+
styles: {
|
|
196
|
+
uuid: string;
|
|
197
|
+
order: number;
|
|
198
|
+
previewImageUrl: string;
|
|
199
|
+
isActive: boolean;
|
|
200
|
+
}[];
|
|
201
|
+
}>;
|
|
202
|
+
export type MarketplaceCardConfig = z.infer<typeof MarketplaceCardConfigSchema>;
|
|
203
|
+
//# sourceMappingURL=marketplace-card-config.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marketplace-card-config.schema.d.ts","sourceRoot":"","sources":["../../../models/marketplace-card/marketplace-card-config.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MarketplaceCardConfigSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const marketplace_card_model_schema_1 = require("./marketplace-card-model.schema");
|
|
6
|
+
const marketplace_card_style_preset_schema_1 = require("./marketplace-card-style-preset.schema");
|
|
7
|
+
exports.MarketplaceCardConfigSchema = zod_1.z.object({
|
|
8
|
+
styles: zod_1.z.array(marketplace_card_style_preset_schema_1.MarketplaceCardStylePresetSchema),
|
|
9
|
+
models: zod_1.z.array(marketplace_card_model_schema_1.MarketplaceCardModelSchema),
|
|
10
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const MarketplaceCardJobRequestParamsSchema: z.ZodObject<{
|
|
3
|
+
title: z.ZodString;
|
|
4
|
+
subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
advantages: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
6
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
7
|
+
stylePresetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
isCustom: z.ZodBoolean;
|
|
9
|
+
customStylePrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
inputImages: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
11
|
+
backgroundDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
title: string;
|
|
14
|
+
advantages: string[];
|
|
15
|
+
tags: string[];
|
|
16
|
+
isCustom: boolean;
|
|
17
|
+
inputImages: string[];
|
|
18
|
+
subtitle?: string | null | undefined;
|
|
19
|
+
stylePresetId?: string | null | undefined;
|
|
20
|
+
customStylePrompt?: string | null | undefined;
|
|
21
|
+
backgroundDescription?: string | null | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
title: string;
|
|
24
|
+
isCustom: boolean;
|
|
25
|
+
subtitle?: string | null | undefined;
|
|
26
|
+
advantages?: string[] | undefined;
|
|
27
|
+
tags?: string[] | undefined;
|
|
28
|
+
stylePresetId?: string | null | undefined;
|
|
29
|
+
customStylePrompt?: string | null | undefined;
|
|
30
|
+
inputImages?: string[] | undefined;
|
|
31
|
+
backgroundDescription?: string | null | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
export type MarketplaceCardJobRequestParams = z.infer<typeof MarketplaceCardJobRequestParamsSchema>;
|
|
34
|
+
//# sourceMappingURL=marketplace-card-job-request-params.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marketplace-card-job-request-params.schema.d.ts","sourceRoot":"","sources":["../../../models/marketplace-card/marketplace-card-job-request-params.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUhD,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MarketplaceCardJobRequestParamsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.MarketplaceCardJobRequestParamsSchema = zod_1.z.object({
|
|
6
|
+
title: zod_1.z.string().min(1),
|
|
7
|
+
subtitle: zod_1.z.string().nullable().optional(),
|
|
8
|
+
advantages: zod_1.z.array(zod_1.z.string()).default([]),
|
|
9
|
+
tags: zod_1.z.array(zod_1.z.string()).default([]),
|
|
10
|
+
stylePresetId: zod_1.z.string().uuid().nullable().optional(),
|
|
11
|
+
isCustom: zod_1.z.boolean(),
|
|
12
|
+
customStylePrompt: zod_1.z.string().nullable().optional(),
|
|
13
|
+
inputImages: zod_1.z.array(zod_1.z.string().uuid()).default([]),
|
|
14
|
+
backgroundDescription: zod_1.z.string().nullable().optional(),
|
|
15
|
+
});
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { JOB_STATUS, USER_REACTION } from '../../constants';
|
|
3
|
+
export declare const MarketplaceCardJobSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodString;
|
|
5
|
+
status: z.ZodNativeEnum<typeof JOB_STATUS>;
|
|
6
|
+
error: z.ZodNullable<z.ZodString>;
|
|
7
|
+
title: z.ZodString;
|
|
8
|
+
subtitle: z.ZodNullable<z.ZodString>;
|
|
9
|
+
reaction: z.ZodNullable<z.ZodNativeEnum<typeof USER_REACTION>>;
|
|
10
|
+
advantages: z.ZodArray<z.ZodString, "many">;
|
|
11
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
12
|
+
stylePresetId: z.ZodNullable<z.ZodString>;
|
|
13
|
+
isCustom: z.ZodBoolean;
|
|
14
|
+
customStylePrompt: z.ZodNullable<z.ZodString>;
|
|
15
|
+
inputImages: z.ZodArray<z.ZodObject<{
|
|
16
|
+
uuid: z.ZodString;
|
|
17
|
+
url: z.ZodString;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
uuid: string;
|
|
20
|
+
url: string;
|
|
21
|
+
}, {
|
|
22
|
+
uuid: string;
|
|
23
|
+
url: string;
|
|
24
|
+
}>, "many">;
|
|
25
|
+
resultImages: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
26
|
+
backgroundDescription: z.ZodNullable<z.ZodString>;
|
|
27
|
+
price: z.ZodNumber;
|
|
28
|
+
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
29
|
+
updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
price: number;
|
|
32
|
+
uuid: string;
|
|
33
|
+
status: JOB_STATUS;
|
|
34
|
+
title: string;
|
|
35
|
+
error: string | null;
|
|
36
|
+
reaction: USER_REACTION | null;
|
|
37
|
+
subtitle: string | null;
|
|
38
|
+
advantages: string[];
|
|
39
|
+
tags: string[];
|
|
40
|
+
stylePresetId: string | null;
|
|
41
|
+
isCustom: boolean;
|
|
42
|
+
customStylePrompt: string | null;
|
|
43
|
+
inputImages: {
|
|
44
|
+
uuid: string;
|
|
45
|
+
url: string;
|
|
46
|
+
}[];
|
|
47
|
+
backgroundDescription: string | null;
|
|
48
|
+
resultImages: string[] | null;
|
|
49
|
+
createdAt?: string | Date | undefined;
|
|
50
|
+
updatedAt?: string | Date | undefined;
|
|
51
|
+
}, {
|
|
52
|
+
price: number;
|
|
53
|
+
uuid: string;
|
|
54
|
+
status: JOB_STATUS;
|
|
55
|
+
title: string;
|
|
56
|
+
error: string | null;
|
|
57
|
+
reaction: USER_REACTION | null;
|
|
58
|
+
subtitle: string | null;
|
|
59
|
+
advantages: string[];
|
|
60
|
+
tags: string[];
|
|
61
|
+
stylePresetId: string | null;
|
|
62
|
+
isCustom: boolean;
|
|
63
|
+
customStylePrompt: string | null;
|
|
64
|
+
inputImages: {
|
|
65
|
+
uuid: string;
|
|
66
|
+
url: string;
|
|
67
|
+
}[];
|
|
68
|
+
backgroundDescription: string | null;
|
|
69
|
+
resultImages: string[] | null;
|
|
70
|
+
createdAt?: string | Date | undefined;
|
|
71
|
+
updatedAt?: string | Date | undefined;
|
|
72
|
+
}>;
|
|
73
|
+
export type MarketplaceCardJob = z.infer<typeof MarketplaceCardJobSchema>;
|
|
74
|
+
//# sourceMappingURL=marketplace-card-job.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marketplace-card-job.schema.d.ts","sourceRoot":"","sources":["../../../models/marketplace-card/marketplace-card-job.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAM5D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MarketplaceCardJobSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
6
|
+
const MarketplaceCardInputImageSchema = zod_1.z.object({
|
|
7
|
+
uuid: zod_1.z.string().uuid(),
|
|
8
|
+
url: zod_1.z.string().url(),
|
|
9
|
+
});
|
|
10
|
+
exports.MarketplaceCardJobSchema = zod_1.z.object({
|
|
11
|
+
uuid: zod_1.z.string().uuid(),
|
|
12
|
+
status: zod_1.z.nativeEnum(constants_1.JOB_STATUS),
|
|
13
|
+
error: zod_1.z.string().nullable(),
|
|
14
|
+
title: zod_1.z.string(),
|
|
15
|
+
subtitle: zod_1.z.string().nullable(),
|
|
16
|
+
reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
|
|
17
|
+
advantages: zod_1.z.array(zod_1.z.string()),
|
|
18
|
+
tags: zod_1.z.array(zod_1.z.string()),
|
|
19
|
+
stylePresetId: zod_1.z.string().uuid().nullable(),
|
|
20
|
+
isCustom: zod_1.z.boolean(),
|
|
21
|
+
customStylePrompt: zod_1.z.string().nullable(),
|
|
22
|
+
inputImages: zod_1.z.array(MarketplaceCardInputImageSchema),
|
|
23
|
+
resultImages: zod_1.z.array(zod_1.z.string()).nullable(),
|
|
24
|
+
backgroundDescription: zod_1.z.string().nullable(),
|
|
25
|
+
price: zod_1.z.number().int().nonnegative(),
|
|
26
|
+
createdAt: zod_1.z.string().datetime().or(zod_1.z.date()).optional(),
|
|
27
|
+
updatedAt: zod_1.z.string().datetime().or(zod_1.z.date()).optional(),
|
|
28
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const MarketplaceCardModelParamsSchema: z.ZodObject<{
|
|
3
|
+
imageAttachment: z.ZodObject<{
|
|
4
|
+
supported: z.ZodBoolean;
|
|
5
|
+
maxImages: z.ZodNumber;
|
|
6
|
+
acceptedTypes: z.ZodArray<z.ZodString, "many">;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
supported: boolean;
|
|
9
|
+
maxImages: number;
|
|
10
|
+
acceptedTypes: string[];
|
|
11
|
+
}, {
|
|
12
|
+
supported: boolean;
|
|
13
|
+
maxImages: number;
|
|
14
|
+
acceptedTypes: string[];
|
|
15
|
+
}>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
imageAttachment: {
|
|
18
|
+
supported: boolean;
|
|
19
|
+
maxImages: number;
|
|
20
|
+
acceptedTypes: string[];
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
imageAttachment: {
|
|
24
|
+
supported: boolean;
|
|
25
|
+
maxImages: number;
|
|
26
|
+
acceptedTypes: string[];
|
|
27
|
+
};
|
|
28
|
+
}>;
|
|
29
|
+
export type MarketplaceCardModelParams = z.infer<typeof MarketplaceCardModelParamsSchema>;
|
|
30
|
+
//# sourceMappingURL=marketplace-card-model-params.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marketplace-card-model-params.schema.d.ts","sourceRoot":"","sources":["../../../models/marketplace-card/marketplace-card-model-params.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;EAM3C,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MarketplaceCardModelParamsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.MarketplaceCardModelParamsSchema = zod_1.z.object({
|
|
6
|
+
imageAttachment: zod_1.z.object({
|
|
7
|
+
supported: zod_1.z.boolean(),
|
|
8
|
+
maxImages: zod_1.z.number().int().nonnegative(),
|
|
9
|
+
acceptedTypes: zod_1.z.array(zod_1.z.string()),
|
|
10
|
+
}),
|
|
11
|
+
});
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const MarketplaceCardModelSchema: z.ZodObject<{
|
|
3
|
+
uuid: z.ZodString;
|
|
4
|
+
price: z.ZodNumber;
|
|
5
|
+
params: z.ZodObject<{
|
|
6
|
+
imageAttachment: z.ZodObject<{
|
|
7
|
+
supported: z.ZodBoolean;
|
|
8
|
+
maxImages: z.ZodNumber;
|
|
9
|
+
acceptedTypes: z.ZodArray<z.ZodString, "many">;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
supported: boolean;
|
|
12
|
+
maxImages: number;
|
|
13
|
+
acceptedTypes: string[];
|
|
14
|
+
}, {
|
|
15
|
+
supported: boolean;
|
|
16
|
+
maxImages: number;
|
|
17
|
+
acceptedTypes: string[];
|
|
18
|
+
}>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
imageAttachment: {
|
|
21
|
+
supported: boolean;
|
|
22
|
+
maxImages: number;
|
|
23
|
+
acceptedTypes: string[];
|
|
24
|
+
};
|
|
25
|
+
}, {
|
|
26
|
+
imageAttachment: {
|
|
27
|
+
supported: boolean;
|
|
28
|
+
maxImages: number;
|
|
29
|
+
acceptedTypes: string[];
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
32
|
+
iconVariants: z.ZodObject<{
|
|
33
|
+
light: z.ZodObject<{
|
|
34
|
+
png: z.ZodOptional<z.ZodString>;
|
|
35
|
+
svg: z.ZodOptional<z.ZodString>;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
png?: string | undefined;
|
|
38
|
+
svg?: string | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
png?: string | undefined;
|
|
41
|
+
svg?: string | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
dark: z.ZodObject<{
|
|
44
|
+
png: z.ZodOptional<z.ZodString>;
|
|
45
|
+
svg: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
png?: string | undefined;
|
|
48
|
+
svg?: string | undefined;
|
|
49
|
+
}, {
|
|
50
|
+
png?: string | undefined;
|
|
51
|
+
svg?: string | undefined;
|
|
52
|
+
}>;
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
light: {
|
|
55
|
+
png?: string | undefined;
|
|
56
|
+
svg?: string | undefined;
|
|
57
|
+
};
|
|
58
|
+
dark: {
|
|
59
|
+
png?: string | undefined;
|
|
60
|
+
svg?: string | undefined;
|
|
61
|
+
};
|
|
62
|
+
}, {
|
|
63
|
+
light: {
|
|
64
|
+
png?: string | undefined;
|
|
65
|
+
svg?: string | undefined;
|
|
66
|
+
};
|
|
67
|
+
dark: {
|
|
68
|
+
png?: string | undefined;
|
|
69
|
+
svg?: string | undefined;
|
|
70
|
+
};
|
|
71
|
+
}>;
|
|
72
|
+
maxPromptLength: z.ZodNumber;
|
|
73
|
+
supportsImageAttachment: z.ZodBoolean;
|
|
74
|
+
maxAttachedImages: z.ZodNumber;
|
|
75
|
+
}, "strip", z.ZodTypeAny, {
|
|
76
|
+
price: number;
|
|
77
|
+
uuid: string;
|
|
78
|
+
params: {
|
|
79
|
+
imageAttachment: {
|
|
80
|
+
supported: boolean;
|
|
81
|
+
maxImages: number;
|
|
82
|
+
acceptedTypes: string[];
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
maxPromptLength: number;
|
|
86
|
+
iconVariants: {
|
|
87
|
+
light: {
|
|
88
|
+
png?: string | undefined;
|
|
89
|
+
svg?: string | undefined;
|
|
90
|
+
};
|
|
91
|
+
dark: {
|
|
92
|
+
png?: string | undefined;
|
|
93
|
+
svg?: string | undefined;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
supportsImageAttachment: boolean;
|
|
97
|
+
maxAttachedImages: number;
|
|
98
|
+
}, {
|
|
99
|
+
price: number;
|
|
100
|
+
uuid: string;
|
|
101
|
+
params: {
|
|
102
|
+
imageAttachment: {
|
|
103
|
+
supported: boolean;
|
|
104
|
+
maxImages: number;
|
|
105
|
+
acceptedTypes: string[];
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
maxPromptLength: number;
|
|
109
|
+
iconVariants: {
|
|
110
|
+
light: {
|
|
111
|
+
png?: string | undefined;
|
|
112
|
+
svg?: string | undefined;
|
|
113
|
+
};
|
|
114
|
+
dark: {
|
|
115
|
+
png?: string | undefined;
|
|
116
|
+
svg?: string | undefined;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
supportsImageAttachment: boolean;
|
|
120
|
+
maxAttachedImages: number;
|
|
121
|
+
}>;
|
|
122
|
+
export type MarketplaceCardModel = z.infer<typeof MarketplaceCardModelSchema>;
|
|
123
|
+
//# sourceMappingURL=marketplace-card-model.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marketplace-card-model.schema.d.ts","sourceRoot":"","sources":["../../../models/marketplace-card/marketplace-card-model.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MarketplaceCardModelSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("../common");
|
|
6
|
+
const marketplace_card_model_params_schema_1 = require("./marketplace-card-model-params.schema");
|
|
7
|
+
exports.MarketplaceCardModelSchema = zod_1.z.object({
|
|
8
|
+
uuid: zod_1.z.string().uuid(),
|
|
9
|
+
price: zod_1.z.number().int().nonnegative(),
|
|
10
|
+
params: marketplace_card_model_params_schema_1.MarketplaceCardModelParamsSchema,
|
|
11
|
+
iconVariants: common_1.IconVariantsSchema,
|
|
12
|
+
maxPromptLength: zod_1.z.number().int().positive(),
|
|
13
|
+
supportsImageAttachment: zod_1.z.boolean(),
|
|
14
|
+
maxAttachedImages: zod_1.z.number().int().nonnegative(),
|
|
15
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const MarketplaceCardStylePresetSchema: z.ZodObject<{
|
|
3
|
+
uuid: z.ZodString;
|
|
4
|
+
previewImageUrl: z.ZodString;
|
|
5
|
+
order: z.ZodNumber;
|
|
6
|
+
isActive: z.ZodBoolean;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
uuid: string;
|
|
9
|
+
order: number;
|
|
10
|
+
previewImageUrl: string;
|
|
11
|
+
isActive: boolean;
|
|
12
|
+
}, {
|
|
13
|
+
uuid: string;
|
|
14
|
+
order: number;
|
|
15
|
+
previewImageUrl: string;
|
|
16
|
+
isActive: boolean;
|
|
17
|
+
}>;
|
|
18
|
+
export type MarketplaceCardStylePreset = z.infer<typeof MarketplaceCardStylePresetSchema>;
|
|
19
|
+
//# sourceMappingURL=marketplace-card-style-preset.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marketplace-card-style-preset.schema.d.ts","sourceRoot":"","sources":["../../../models/marketplace-card/marketplace-card-style-preset.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;EAK3C,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|