@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
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MarketplaceCardStylePresetSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.MarketplaceCardStylePresetSchema = zod_1.z.object({
|
|
6
|
+
uuid: zod_1.z.string().uuid(),
|
|
7
|
+
previewImageUrl: zod_1.z.string().url(),
|
|
8
|
+
order: zod_1.z.number().int().nonnegative(),
|
|
9
|
+
isActive: zod_1.z.boolean(),
|
|
10
|
+
});
|
package/build/queries/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC"}
|
package/build/queries/index.js
CHANGED
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace FindMarketplaceCardJobsCommand {
|
|
3
|
+
const RequestQuerySchema: z.ZodObject<{
|
|
4
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
5
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
6
|
+
title: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
limit: number;
|
|
9
|
+
offset: number;
|
|
10
|
+
title?: string | undefined;
|
|
11
|
+
}, {
|
|
12
|
+
title?: string | undefined;
|
|
13
|
+
limit?: number | undefined;
|
|
14
|
+
offset?: number | undefined;
|
|
15
|
+
}>;
|
|
16
|
+
type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
17
|
+
const ResponseSchema: z.ZodObject<{
|
|
18
|
+
data: z.ZodArray<z.ZodObject<{
|
|
19
|
+
uuid: z.ZodString;
|
|
20
|
+
status: z.ZodNativeEnum<typeof import("../..").JOB_STATUS>;
|
|
21
|
+
error: z.ZodNullable<z.ZodString>;
|
|
22
|
+
title: z.ZodString;
|
|
23
|
+
subtitle: z.ZodNullable<z.ZodString>;
|
|
24
|
+
reaction: z.ZodNullable<z.ZodNativeEnum<typeof import("../..").USER_REACTION>>;
|
|
25
|
+
advantages: z.ZodArray<z.ZodString, "many">;
|
|
26
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
27
|
+
stylePresetId: z.ZodNullable<z.ZodString>;
|
|
28
|
+
isCustom: z.ZodBoolean;
|
|
29
|
+
customStylePrompt: z.ZodNullable<z.ZodString>;
|
|
30
|
+
inputImages: z.ZodArray<z.ZodObject<{
|
|
31
|
+
uuid: z.ZodString;
|
|
32
|
+
url: z.ZodString;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
uuid: string;
|
|
35
|
+
url: string;
|
|
36
|
+
}, {
|
|
37
|
+
uuid: string;
|
|
38
|
+
url: string;
|
|
39
|
+
}>, "many">;
|
|
40
|
+
resultImages: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
41
|
+
backgroundDescription: z.ZodNullable<z.ZodString>;
|
|
42
|
+
price: z.ZodNumber;
|
|
43
|
+
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
44
|
+
updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
price: number;
|
|
47
|
+
uuid: string;
|
|
48
|
+
status: import("../..").JOB_STATUS;
|
|
49
|
+
title: string;
|
|
50
|
+
error: string | null;
|
|
51
|
+
reaction: import("../..").USER_REACTION | null;
|
|
52
|
+
subtitle: string | null;
|
|
53
|
+
advantages: string[];
|
|
54
|
+
tags: string[];
|
|
55
|
+
stylePresetId: string | null;
|
|
56
|
+
isCustom: boolean;
|
|
57
|
+
customStylePrompt: string | null;
|
|
58
|
+
inputImages: {
|
|
59
|
+
uuid: string;
|
|
60
|
+
url: string;
|
|
61
|
+
}[];
|
|
62
|
+
backgroundDescription: string | null;
|
|
63
|
+
resultImages: string[] | null;
|
|
64
|
+
createdAt?: string | Date | undefined;
|
|
65
|
+
updatedAt?: string | Date | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
price: number;
|
|
68
|
+
uuid: string;
|
|
69
|
+
status: import("../..").JOB_STATUS;
|
|
70
|
+
title: string;
|
|
71
|
+
error: string | null;
|
|
72
|
+
reaction: import("../..").USER_REACTION | null;
|
|
73
|
+
subtitle: string | null;
|
|
74
|
+
advantages: string[];
|
|
75
|
+
tags: string[];
|
|
76
|
+
stylePresetId: string | null;
|
|
77
|
+
isCustom: boolean;
|
|
78
|
+
customStylePrompt: string | null;
|
|
79
|
+
inputImages: {
|
|
80
|
+
uuid: string;
|
|
81
|
+
url: string;
|
|
82
|
+
}[];
|
|
83
|
+
backgroundDescription: string | null;
|
|
84
|
+
resultImages: string[] | null;
|
|
85
|
+
createdAt?: string | Date | undefined;
|
|
86
|
+
updatedAt?: string | Date | undefined;
|
|
87
|
+
}>, "many">;
|
|
88
|
+
meta: z.ZodObject<{
|
|
89
|
+
limit: z.ZodNumber;
|
|
90
|
+
offset: z.ZodNumber;
|
|
91
|
+
total: z.ZodNumber;
|
|
92
|
+
}, "strip", z.ZodTypeAny, {
|
|
93
|
+
limit: number;
|
|
94
|
+
offset: number;
|
|
95
|
+
total: number;
|
|
96
|
+
}, {
|
|
97
|
+
limit: number;
|
|
98
|
+
offset: number;
|
|
99
|
+
total: number;
|
|
100
|
+
}>;
|
|
101
|
+
}, "strip", z.ZodTypeAny, {
|
|
102
|
+
data: {
|
|
103
|
+
price: number;
|
|
104
|
+
uuid: string;
|
|
105
|
+
status: import("../..").JOB_STATUS;
|
|
106
|
+
title: string;
|
|
107
|
+
error: string | null;
|
|
108
|
+
reaction: import("../..").USER_REACTION | null;
|
|
109
|
+
subtitle: string | null;
|
|
110
|
+
advantages: string[];
|
|
111
|
+
tags: string[];
|
|
112
|
+
stylePresetId: string | null;
|
|
113
|
+
isCustom: boolean;
|
|
114
|
+
customStylePrompt: string | null;
|
|
115
|
+
inputImages: {
|
|
116
|
+
uuid: string;
|
|
117
|
+
url: string;
|
|
118
|
+
}[];
|
|
119
|
+
backgroundDescription: string | null;
|
|
120
|
+
resultImages: string[] | null;
|
|
121
|
+
createdAt?: string | Date | undefined;
|
|
122
|
+
updatedAt?: string | Date | undefined;
|
|
123
|
+
}[];
|
|
124
|
+
meta: {
|
|
125
|
+
limit: number;
|
|
126
|
+
offset: number;
|
|
127
|
+
total: number;
|
|
128
|
+
};
|
|
129
|
+
}, {
|
|
130
|
+
data: {
|
|
131
|
+
price: number;
|
|
132
|
+
uuid: string;
|
|
133
|
+
status: import("../..").JOB_STATUS;
|
|
134
|
+
title: string;
|
|
135
|
+
error: string | null;
|
|
136
|
+
reaction: import("../..").USER_REACTION | null;
|
|
137
|
+
subtitle: string | null;
|
|
138
|
+
advantages: string[];
|
|
139
|
+
tags: string[];
|
|
140
|
+
stylePresetId: string | null;
|
|
141
|
+
isCustom: boolean;
|
|
142
|
+
customStylePrompt: string | null;
|
|
143
|
+
inputImages: {
|
|
144
|
+
uuid: string;
|
|
145
|
+
url: string;
|
|
146
|
+
}[];
|
|
147
|
+
backgroundDescription: string | null;
|
|
148
|
+
resultImages: string[] | null;
|
|
149
|
+
createdAt?: string | Date | undefined;
|
|
150
|
+
updatedAt?: string | Date | undefined;
|
|
151
|
+
}[];
|
|
152
|
+
meta: {
|
|
153
|
+
limit: number;
|
|
154
|
+
offset: number;
|
|
155
|
+
total: number;
|
|
156
|
+
};
|
|
157
|
+
}>;
|
|
158
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
159
|
+
}
|
|
160
|
+
//# sourceMappingURL=find-marketplace-card-jobs.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find-marketplace-card-jobs.command.d.ts","sourceRoot":"","sources":["../../../queries/marketplace-card/find-marketplace-card-jobs.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,8BAA8B,CAAC;IACrC,MAAM,kBAAkB;;;;;;;;;;;;MAI7B,CAAC;IACH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOzB,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.FindMarketplaceCardJobsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var FindMarketplaceCardJobsCommand;
|
|
7
|
+
(function (FindMarketplaceCardJobsCommand) {
|
|
8
|
+
FindMarketplaceCardJobsCommand.RequestQuerySchema = zod_1.z.object({
|
|
9
|
+
limit: zod_1.z.coerce.number().int().min(1).max(100).default(20),
|
|
10
|
+
offset: zod_1.z.coerce.number().int().min(0).default(0),
|
|
11
|
+
title: zod_1.z.string().min(1).optional(),
|
|
12
|
+
});
|
|
13
|
+
FindMarketplaceCardJobsCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
data: zod_1.z.array(models_1.MarketplaceCardJobSchema),
|
|
15
|
+
meta: zod_1.z.object({
|
|
16
|
+
limit: zod_1.z.number().int(),
|
|
17
|
+
offset: zod_1.z.number().int(),
|
|
18
|
+
total: zod_1.z.number().int(),
|
|
19
|
+
}),
|
|
20
|
+
});
|
|
21
|
+
})(FindMarketplaceCardJobsCommand || (exports.FindMarketplaceCardJobsCommand = FindMarketplaceCardJobsCommand = {}));
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GetMarketplaceCardConfigCommand {
|
|
3
|
+
const ResponseSchema: z.ZodObject<{
|
|
4
|
+
data: z.ZodObject<{
|
|
5
|
+
styles: z.ZodArray<z.ZodObject<{
|
|
6
|
+
uuid: z.ZodString;
|
|
7
|
+
previewImageUrl: z.ZodString;
|
|
8
|
+
order: z.ZodNumber;
|
|
9
|
+
isActive: z.ZodBoolean;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
uuid: string;
|
|
12
|
+
order: number;
|
|
13
|
+
previewImageUrl: string;
|
|
14
|
+
isActive: boolean;
|
|
15
|
+
}, {
|
|
16
|
+
uuid: string;
|
|
17
|
+
order: number;
|
|
18
|
+
previewImageUrl: string;
|
|
19
|
+
isActive: boolean;
|
|
20
|
+
}>, "many">;
|
|
21
|
+
models: z.ZodArray<z.ZodObject<{
|
|
22
|
+
uuid: z.ZodString;
|
|
23
|
+
price: z.ZodNumber;
|
|
24
|
+
params: z.ZodObject<{
|
|
25
|
+
imageAttachment: z.ZodObject<{
|
|
26
|
+
supported: z.ZodBoolean;
|
|
27
|
+
maxImages: z.ZodNumber;
|
|
28
|
+
acceptedTypes: z.ZodArray<z.ZodString, "many">;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
supported: boolean;
|
|
31
|
+
maxImages: number;
|
|
32
|
+
acceptedTypes: string[];
|
|
33
|
+
}, {
|
|
34
|
+
supported: boolean;
|
|
35
|
+
maxImages: number;
|
|
36
|
+
acceptedTypes: string[];
|
|
37
|
+
}>;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
imageAttachment: {
|
|
40
|
+
supported: boolean;
|
|
41
|
+
maxImages: number;
|
|
42
|
+
acceptedTypes: string[];
|
|
43
|
+
};
|
|
44
|
+
}, {
|
|
45
|
+
imageAttachment: {
|
|
46
|
+
supported: boolean;
|
|
47
|
+
maxImages: number;
|
|
48
|
+
acceptedTypes: string[];
|
|
49
|
+
};
|
|
50
|
+
}>;
|
|
51
|
+
iconVariants: z.ZodObject<{
|
|
52
|
+
light: z.ZodObject<{
|
|
53
|
+
png: z.ZodOptional<z.ZodString>;
|
|
54
|
+
svg: z.ZodOptional<z.ZodString>;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
png?: string | undefined;
|
|
57
|
+
svg?: string | undefined;
|
|
58
|
+
}, {
|
|
59
|
+
png?: string | undefined;
|
|
60
|
+
svg?: string | undefined;
|
|
61
|
+
}>;
|
|
62
|
+
dark: z.ZodObject<{
|
|
63
|
+
png: z.ZodOptional<z.ZodString>;
|
|
64
|
+
svg: z.ZodOptional<z.ZodString>;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
png?: string | undefined;
|
|
67
|
+
svg?: string | undefined;
|
|
68
|
+
}, {
|
|
69
|
+
png?: string | undefined;
|
|
70
|
+
svg?: string | undefined;
|
|
71
|
+
}>;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
light: {
|
|
74
|
+
png?: string | undefined;
|
|
75
|
+
svg?: string | undefined;
|
|
76
|
+
};
|
|
77
|
+
dark: {
|
|
78
|
+
png?: string | undefined;
|
|
79
|
+
svg?: string | undefined;
|
|
80
|
+
};
|
|
81
|
+
}, {
|
|
82
|
+
light: {
|
|
83
|
+
png?: string | undefined;
|
|
84
|
+
svg?: string | undefined;
|
|
85
|
+
};
|
|
86
|
+
dark: {
|
|
87
|
+
png?: string | undefined;
|
|
88
|
+
svg?: string | undefined;
|
|
89
|
+
};
|
|
90
|
+
}>;
|
|
91
|
+
maxPromptLength: z.ZodNumber;
|
|
92
|
+
supportsImageAttachment: z.ZodBoolean;
|
|
93
|
+
maxAttachedImages: z.ZodNumber;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
price: number;
|
|
96
|
+
uuid: string;
|
|
97
|
+
params: {
|
|
98
|
+
imageAttachment: {
|
|
99
|
+
supported: boolean;
|
|
100
|
+
maxImages: number;
|
|
101
|
+
acceptedTypes: string[];
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
maxPromptLength: number;
|
|
105
|
+
iconVariants: {
|
|
106
|
+
light: {
|
|
107
|
+
png?: string | undefined;
|
|
108
|
+
svg?: string | undefined;
|
|
109
|
+
};
|
|
110
|
+
dark: {
|
|
111
|
+
png?: string | undefined;
|
|
112
|
+
svg?: string | undefined;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
supportsImageAttachment: boolean;
|
|
116
|
+
maxAttachedImages: number;
|
|
117
|
+
}, {
|
|
118
|
+
price: number;
|
|
119
|
+
uuid: string;
|
|
120
|
+
params: {
|
|
121
|
+
imageAttachment: {
|
|
122
|
+
supported: boolean;
|
|
123
|
+
maxImages: number;
|
|
124
|
+
acceptedTypes: string[];
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
maxPromptLength: number;
|
|
128
|
+
iconVariants: {
|
|
129
|
+
light: {
|
|
130
|
+
png?: string | undefined;
|
|
131
|
+
svg?: string | undefined;
|
|
132
|
+
};
|
|
133
|
+
dark: {
|
|
134
|
+
png?: string | undefined;
|
|
135
|
+
svg?: string | undefined;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
supportsImageAttachment: boolean;
|
|
139
|
+
maxAttachedImages: number;
|
|
140
|
+
}>, "many">;
|
|
141
|
+
}, "strip", z.ZodTypeAny, {
|
|
142
|
+
models: {
|
|
143
|
+
price: number;
|
|
144
|
+
uuid: string;
|
|
145
|
+
params: {
|
|
146
|
+
imageAttachment: {
|
|
147
|
+
supported: boolean;
|
|
148
|
+
maxImages: number;
|
|
149
|
+
acceptedTypes: string[];
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
maxPromptLength: number;
|
|
153
|
+
iconVariants: {
|
|
154
|
+
light: {
|
|
155
|
+
png?: string | undefined;
|
|
156
|
+
svg?: string | undefined;
|
|
157
|
+
};
|
|
158
|
+
dark: {
|
|
159
|
+
png?: string | undefined;
|
|
160
|
+
svg?: string | undefined;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
supportsImageAttachment: boolean;
|
|
164
|
+
maxAttachedImages: number;
|
|
165
|
+
}[];
|
|
166
|
+
styles: {
|
|
167
|
+
uuid: string;
|
|
168
|
+
order: number;
|
|
169
|
+
previewImageUrl: string;
|
|
170
|
+
isActive: boolean;
|
|
171
|
+
}[];
|
|
172
|
+
}, {
|
|
173
|
+
models: {
|
|
174
|
+
price: number;
|
|
175
|
+
uuid: string;
|
|
176
|
+
params: {
|
|
177
|
+
imageAttachment: {
|
|
178
|
+
supported: boolean;
|
|
179
|
+
maxImages: number;
|
|
180
|
+
acceptedTypes: string[];
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
maxPromptLength: number;
|
|
184
|
+
iconVariants: {
|
|
185
|
+
light: {
|
|
186
|
+
png?: string | undefined;
|
|
187
|
+
svg?: string | undefined;
|
|
188
|
+
};
|
|
189
|
+
dark: {
|
|
190
|
+
png?: string | undefined;
|
|
191
|
+
svg?: string | undefined;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
supportsImageAttachment: boolean;
|
|
195
|
+
maxAttachedImages: number;
|
|
196
|
+
}[];
|
|
197
|
+
styles: {
|
|
198
|
+
uuid: string;
|
|
199
|
+
order: number;
|
|
200
|
+
previewImageUrl: string;
|
|
201
|
+
isActive: boolean;
|
|
202
|
+
}[];
|
|
203
|
+
}>;
|
|
204
|
+
}, "strip", z.ZodTypeAny, {
|
|
205
|
+
data: {
|
|
206
|
+
models: {
|
|
207
|
+
price: number;
|
|
208
|
+
uuid: string;
|
|
209
|
+
params: {
|
|
210
|
+
imageAttachment: {
|
|
211
|
+
supported: boolean;
|
|
212
|
+
maxImages: number;
|
|
213
|
+
acceptedTypes: string[];
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
maxPromptLength: number;
|
|
217
|
+
iconVariants: {
|
|
218
|
+
light: {
|
|
219
|
+
png?: string | undefined;
|
|
220
|
+
svg?: string | undefined;
|
|
221
|
+
};
|
|
222
|
+
dark: {
|
|
223
|
+
png?: string | undefined;
|
|
224
|
+
svg?: string | undefined;
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
supportsImageAttachment: boolean;
|
|
228
|
+
maxAttachedImages: number;
|
|
229
|
+
}[];
|
|
230
|
+
styles: {
|
|
231
|
+
uuid: string;
|
|
232
|
+
order: number;
|
|
233
|
+
previewImageUrl: string;
|
|
234
|
+
isActive: boolean;
|
|
235
|
+
}[];
|
|
236
|
+
};
|
|
237
|
+
}, {
|
|
238
|
+
data: {
|
|
239
|
+
models: {
|
|
240
|
+
price: number;
|
|
241
|
+
uuid: string;
|
|
242
|
+
params: {
|
|
243
|
+
imageAttachment: {
|
|
244
|
+
supported: boolean;
|
|
245
|
+
maxImages: number;
|
|
246
|
+
acceptedTypes: string[];
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
maxPromptLength: number;
|
|
250
|
+
iconVariants: {
|
|
251
|
+
light: {
|
|
252
|
+
png?: string | undefined;
|
|
253
|
+
svg?: string | undefined;
|
|
254
|
+
};
|
|
255
|
+
dark: {
|
|
256
|
+
png?: string | undefined;
|
|
257
|
+
svg?: string | undefined;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
supportsImageAttachment: boolean;
|
|
261
|
+
maxAttachedImages: number;
|
|
262
|
+
}[];
|
|
263
|
+
styles: {
|
|
264
|
+
uuid: string;
|
|
265
|
+
order: number;
|
|
266
|
+
previewImageUrl: string;
|
|
267
|
+
isActive: boolean;
|
|
268
|
+
}[];
|
|
269
|
+
};
|
|
270
|
+
}>;
|
|
271
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
272
|
+
}
|
|
273
|
+
//# sourceMappingURL=get-marketplace-card-config.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-marketplace-card-config.command.d.ts","sourceRoot":"","sources":["../../../queries/marketplace-card/get-marketplace-card-config.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,+BAA+B,CAAC;IACtC,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IACH,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.GetMarketplaceCardConfigCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var GetMarketplaceCardConfigCommand;
|
|
7
|
+
(function (GetMarketplaceCardConfigCommand) {
|
|
8
|
+
GetMarketplaceCardConfigCommand.ResponseSchema = zod_1.z.object({
|
|
9
|
+
data: models_1.MarketplaceCardConfigSchema,
|
|
10
|
+
});
|
|
11
|
+
})(GetMarketplaceCardConfigCommand || (exports.GetMarketplaceCardConfigCommand = GetMarketplaceCardConfigCommand = {}));
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GetMarketplaceCardJobCommand {
|
|
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
|
+
status: z.ZodNativeEnum<typeof import("../..").JOB_STATUS>;
|
|
15
|
+
error: z.ZodNullable<z.ZodString>;
|
|
16
|
+
title: z.ZodString;
|
|
17
|
+
subtitle: z.ZodNullable<z.ZodString>;
|
|
18
|
+
reaction: z.ZodNullable<z.ZodNativeEnum<typeof import("../..").USER_REACTION>>;
|
|
19
|
+
advantages: z.ZodArray<z.ZodString, "many">;
|
|
20
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
21
|
+
stylePresetId: z.ZodNullable<z.ZodString>;
|
|
22
|
+
isCustom: z.ZodBoolean;
|
|
23
|
+
customStylePrompt: z.ZodNullable<z.ZodString>;
|
|
24
|
+
inputImages: z.ZodArray<z.ZodObject<{
|
|
25
|
+
uuid: z.ZodString;
|
|
26
|
+
url: z.ZodString;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
uuid: string;
|
|
29
|
+
url: string;
|
|
30
|
+
}, {
|
|
31
|
+
uuid: string;
|
|
32
|
+
url: string;
|
|
33
|
+
}>, "many">;
|
|
34
|
+
resultImages: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
35
|
+
backgroundDescription: z.ZodNullable<z.ZodString>;
|
|
36
|
+
price: z.ZodNumber;
|
|
37
|
+
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
38
|
+
updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
price: number;
|
|
41
|
+
uuid: string;
|
|
42
|
+
status: import("../..").JOB_STATUS;
|
|
43
|
+
title: string;
|
|
44
|
+
error: string | null;
|
|
45
|
+
reaction: import("../..").USER_REACTION | null;
|
|
46
|
+
subtitle: string | null;
|
|
47
|
+
advantages: string[];
|
|
48
|
+
tags: string[];
|
|
49
|
+
stylePresetId: string | null;
|
|
50
|
+
isCustom: boolean;
|
|
51
|
+
customStylePrompt: string | null;
|
|
52
|
+
inputImages: {
|
|
53
|
+
uuid: string;
|
|
54
|
+
url: string;
|
|
55
|
+
}[];
|
|
56
|
+
backgroundDescription: string | null;
|
|
57
|
+
resultImages: string[] | null;
|
|
58
|
+
createdAt?: string | Date | undefined;
|
|
59
|
+
updatedAt?: string | Date | undefined;
|
|
60
|
+
}, {
|
|
61
|
+
price: number;
|
|
62
|
+
uuid: string;
|
|
63
|
+
status: import("../..").JOB_STATUS;
|
|
64
|
+
title: string;
|
|
65
|
+
error: string | null;
|
|
66
|
+
reaction: import("../..").USER_REACTION | null;
|
|
67
|
+
subtitle: string | null;
|
|
68
|
+
advantages: string[];
|
|
69
|
+
tags: string[];
|
|
70
|
+
stylePresetId: string | null;
|
|
71
|
+
isCustom: boolean;
|
|
72
|
+
customStylePrompt: string | null;
|
|
73
|
+
inputImages: {
|
|
74
|
+
uuid: string;
|
|
75
|
+
url: string;
|
|
76
|
+
}[];
|
|
77
|
+
backgroundDescription: string | null;
|
|
78
|
+
resultImages: string[] | null;
|
|
79
|
+
createdAt?: string | Date | undefined;
|
|
80
|
+
updatedAt?: string | Date | undefined;
|
|
81
|
+
}>;
|
|
82
|
+
}, "strip", z.ZodTypeAny, {
|
|
83
|
+
data: {
|
|
84
|
+
price: number;
|
|
85
|
+
uuid: string;
|
|
86
|
+
status: import("../..").JOB_STATUS;
|
|
87
|
+
title: string;
|
|
88
|
+
error: string | null;
|
|
89
|
+
reaction: import("../..").USER_REACTION | null;
|
|
90
|
+
subtitle: string | null;
|
|
91
|
+
advantages: string[];
|
|
92
|
+
tags: string[];
|
|
93
|
+
stylePresetId: string | null;
|
|
94
|
+
isCustom: boolean;
|
|
95
|
+
customStylePrompt: string | null;
|
|
96
|
+
inputImages: {
|
|
97
|
+
uuid: string;
|
|
98
|
+
url: string;
|
|
99
|
+
}[];
|
|
100
|
+
backgroundDescription: string | null;
|
|
101
|
+
resultImages: string[] | null;
|
|
102
|
+
createdAt?: string | Date | undefined;
|
|
103
|
+
updatedAt?: string | Date | undefined;
|
|
104
|
+
};
|
|
105
|
+
}, {
|
|
106
|
+
data: {
|
|
107
|
+
price: number;
|
|
108
|
+
uuid: string;
|
|
109
|
+
status: import("../..").JOB_STATUS;
|
|
110
|
+
title: string;
|
|
111
|
+
error: string | null;
|
|
112
|
+
reaction: import("../..").USER_REACTION | null;
|
|
113
|
+
subtitle: string | null;
|
|
114
|
+
advantages: string[];
|
|
115
|
+
tags: string[];
|
|
116
|
+
stylePresetId: string | null;
|
|
117
|
+
isCustom: boolean;
|
|
118
|
+
customStylePrompt: string | null;
|
|
119
|
+
inputImages: {
|
|
120
|
+
uuid: string;
|
|
121
|
+
url: string;
|
|
122
|
+
}[];
|
|
123
|
+
backgroundDescription: string | null;
|
|
124
|
+
resultImages: string[] | null;
|
|
125
|
+
createdAt?: string | Date | undefined;
|
|
126
|
+
updatedAt?: string | Date | undefined;
|
|
127
|
+
};
|
|
128
|
+
}>;
|
|
129
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
130
|
+
}
|
|
131
|
+
//# sourceMappingURL=get-marketplace-card-job.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-marketplace-card-job.command.d.ts","sourceRoot":"","sources":["../../../queries/marketplace-card/get-marketplace-card-job.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,4BAA4B,CAAC;IACnC,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.GetMarketplaceCardJobCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var GetMarketplaceCardJobCommand;
|
|
7
|
+
(function (GetMarketplaceCardJobCommand) {
|
|
8
|
+
GetMarketplaceCardJobCommand.RequestParamSchema = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
GetMarketplaceCardJobCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: models_1.MarketplaceCardJobSchema,
|
|
13
|
+
});
|
|
14
|
+
})(GetMarketplaceCardJobCommand || (exports.GetMarketplaceCardJobCommand = GetMarketplaceCardJobCommand = {}));
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GetMarketplaceCardPriceCommand {
|
|
3
|
+
const RequestSchema: z.ZodObject<{
|
|
4
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
modelId?: string | undefined;
|
|
7
|
+
}, {
|
|
8
|
+
modelId?: string | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
11
|
+
const ResponseSchema: z.ZodObject<{
|
|
12
|
+
data: z.ZodObject<{
|
|
13
|
+
price: z.ZodNumber;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
price: number;
|
|
16
|
+
}, {
|
|
17
|
+
price: number;
|
|
18
|
+
}>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
data: {
|
|
21
|
+
price: number;
|
|
22
|
+
};
|
|
23
|
+
}, {
|
|
24
|
+
data: {
|
|
25
|
+
price: number;
|
|
26
|
+
};
|
|
27
|
+
}>;
|
|
28
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=get-marketplace-card-price.command.d.ts.map
|