@omni-graph/omni-model 0.7.13 → 0.7.15
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/dist/functions/filtering/textHandler.d.ts +1 -1
- package/dist/zod/account-settings/accountSettings.d.ts +25 -25
- package/dist/zod/account-settings/accountSettings.js +1 -1
- package/dist/zod/account-settings/accountSettings.js.map +1 -1
- package/dist/zod/recommendations/base.d.ts +22 -6
- package/dist/zod/recommendations/base.d.ts.map +1 -1
- package/dist/zod/recommendations/base.js +21 -6
- package/dist/zod/recommendations/base.js.map +1 -1
- package/dist/zod/recommendations/content-optimization/base.d.ts +15 -15
- package/dist/zod/recommendations/content-optimization/index.d.ts +1 -0
- package/dist/zod/recommendations/content-optimization/index.d.ts.map +1 -1
- package/dist/zod/recommendations/content-optimization/index.js +1 -0
- package/dist/zod/recommendations/content-optimization/index.js.map +1 -1
- package/dist/zod/recommendations/content-optimization/productRecommendation.d.ts +359 -0
- package/dist/zod/recommendations/content-optimization/productRecommendation.d.ts.map +1 -0
- package/dist/zod/recommendations/content-optimization/productRecommendation.js +128 -0
- package/dist/zod/recommendations/content-optimization/productRecommendation.js.map +1 -0
- package/dist/zod/recommendations/content-optimization/translation.d.ts +9 -242
- package/dist/zod/recommendations/content-optimization/translation.d.ts.map +1 -1
- package/dist/zod/recommendations/content-optimization/translation.js +15 -23
- package/dist/zod/recommendations/content-optimization/translation.js.map +1 -1
- package/dist/zod/recommendations/index.d.ts +224 -0
- package/dist/zod/recommendations/index.d.ts.map +1 -1
- package/dist/zod/recommendations/index.js +9 -0
- package/dist/zod/recommendations/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,252 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const TranslationRecommendationDataSchema: z.ZodObject<{
|
|
3
3
|
output_data: z.ZodString;
|
|
4
|
-
original_data: z.
|
|
4
|
+
original_data: z.ZodString;
|
|
5
5
|
input_language: z.ZodString;
|
|
6
6
|
output_language: z.ZodString;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
input_data: z.
|
|
7
|
+
health_score: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
analyticsId: z.ZodLiteral<"content_optimization_translate_product_description_html">;
|
|
9
|
+
input_data: z.ZodOptional<z.ZodObject<{
|
|
10
10
|
original_language_description: z.ZodString;
|
|
11
11
|
old_translation: z.ZodString;
|
|
12
|
-
product_feedback: z.ZodNullable<z.ZodString
|
|
13
|
-
task_feedback: z.ZodNullable<z.ZodString
|
|
12
|
+
product_feedback: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
task_feedback: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
tone_of_voice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
company_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
}, z.core.$strip>>;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
|
-
export
|
|
19
|
-
accountId: z.ZodString;
|
|
20
|
-
analyticsId: z.ZodUnion<readonly [z.ZodEnum<{
|
|
21
|
-
content_optimization_write_seo: "content_optimization_write_seo";
|
|
22
|
-
content_optimization_refine_product_description_html: "content_optimization_refine_product_description_html";
|
|
23
|
-
content_optimization_translate_product_description_html: "content_optimization_translate_product_description_html";
|
|
24
|
-
content_optimization_write_product_description_html: "content_optimization_write_product_description_html";
|
|
25
|
-
content_optimization_reduce_similarity_product_description_html: "content_optimization_reduce_similarity_product_description_html";
|
|
26
|
-
}>, z.ZodEnum<{
|
|
27
|
-
inventory_optimization_reorder_recommendation: "inventory_optimization_reorder_recommendation";
|
|
28
|
-
inventory_optimization_reorder_recommendation_entries: "inventory_optimization_reorder_recommendation_entries";
|
|
29
|
-
}>]>;
|
|
30
|
-
objectClass: z.ZodCatch<z.ZodEnum<{
|
|
31
|
-
UNKNOWN: "UNKNOWN";
|
|
32
|
-
location: "location";
|
|
33
|
-
product: "product";
|
|
34
|
-
sku: "sku";
|
|
35
|
-
pseudo_product: "pseudo_product";
|
|
36
|
-
}>>;
|
|
37
|
-
objectId: z.ZodString;
|
|
38
|
-
category: z.ZodString;
|
|
39
|
-
summary: z.ZodString;
|
|
40
|
-
cardPictureUrl: z.ZodOptional<z.ZodString>;
|
|
41
|
-
cardPictureAltText: z.ZodOptional<z.ZodString>;
|
|
42
|
-
cardTitle: z.ZodString;
|
|
43
|
-
cardSubtitle: z.ZodOptional<z.ZodString>;
|
|
44
|
-
lookup: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
45
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
46
|
-
state: z.ZodCatch<z.ZodEnum<{
|
|
47
|
-
UNKNOWN: "UNKNOWN";
|
|
48
|
-
PENDING: "PENDING";
|
|
49
|
-
ACCEPTED: "ACCEPTED";
|
|
50
|
-
REJECTED: "REJECTED";
|
|
51
|
-
ACCEPTED_AND_HANDLED: "ACCEPTED_AND_HANDLED";
|
|
52
|
-
ACCEPTED_HANDLING_FAILED: "ACCEPTED_HANDLING_FAILED";
|
|
53
|
-
INVALIDATED: "INVALIDATED";
|
|
54
|
-
GENERATING: "GENERATING";
|
|
55
|
-
GENERATION_FAILED: "GENERATION_FAILED";
|
|
56
|
-
IMPLICITLY_REJECTED: "IMPLICITLY_REJECTED";
|
|
57
|
-
REVERTED: "REVERTED";
|
|
58
|
-
REVERTED_HANDLING_FAILED: "REVERTED_HANDLING_FAILED";
|
|
59
|
-
REVERTED_AND_HANDLED: "REVERTED_AND_HANDLED";
|
|
60
|
-
PLACEHOLDER: "PLACEHOLDER";
|
|
61
|
-
}>>;
|
|
62
|
-
mutedUntil: z.ZodOptional<z.ZodDate>;
|
|
63
|
-
feedback: z.ZodOptional<z.ZodString>;
|
|
64
|
-
severity: z.ZodNumber;
|
|
65
|
-
algorithmVersion: z.ZodString;
|
|
66
|
-
isMuted: z.ZodBoolean;
|
|
67
|
-
isPending: z.ZodBoolean;
|
|
68
|
-
statusDetails: z.ZodOptional<z.ZodAny>;
|
|
69
|
-
editedRecommendationData: z.ZodOptional<z.ZodObject<{
|
|
70
|
-
recommendationData: z.ZodObject<{
|
|
71
|
-
output_data: z.ZodString;
|
|
72
|
-
original_data: z.ZodNullable<z.ZodString>;
|
|
73
|
-
input_language: z.ZodString;
|
|
74
|
-
output_language: z.ZodString;
|
|
75
|
-
input_health_score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
76
|
-
output_health_score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
77
|
-
}, z.core.$strip>;
|
|
78
|
-
}, z.core.$strip>>;
|
|
79
|
-
metadata: z.ZodObject<{
|
|
80
|
-
chat_history: z.ZodString;
|
|
81
|
-
product_information: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
82
|
-
is_enabled?: boolean | undefined;
|
|
83
|
-
product_name?: string | undefined;
|
|
84
|
-
vendor?: string | undefined;
|
|
85
|
-
product_tags?: string[] | undefined;
|
|
86
|
-
product_attributes?: Record<string, string | null> | undefined;
|
|
87
|
-
collections?: string[] | undefined;
|
|
88
|
-
} | undefined, string>>>;
|
|
89
|
-
llm_model: z.ZodOptional<z.ZodString>;
|
|
90
|
-
severity_unweighted: z.ZodOptional<z.ZodNumber>;
|
|
91
|
-
recommendation_created_at: z.ZodOptional<z.ZodString>;
|
|
92
|
-
product_url: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
93
|
-
is_enabled: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
94
|
-
related_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
95
|
-
lead_time_days: z.ZodOptional<z.ZodNumber>;
|
|
96
|
-
online_summary_with_citations: z.ZodOptional<z.ZodString>;
|
|
97
|
-
product_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
98
|
-
translatable_content_digest: z.ZodString;
|
|
99
|
-
resource_key: z.ZodCatch<z.ZodEnum<{
|
|
100
|
-
UNKNOWN: "UNKNOWN";
|
|
101
|
-
product_name: "product_name";
|
|
102
|
-
product_description_html: "product_description_html";
|
|
103
|
-
}>>;
|
|
104
|
-
}, z.core.$strip>;
|
|
105
|
-
recommendationData: z.ZodObject<{
|
|
106
|
-
output_data: z.ZodString;
|
|
107
|
-
original_data: z.ZodNullable<z.ZodString>;
|
|
108
|
-
input_language: z.ZodString;
|
|
109
|
-
output_language: z.ZodString;
|
|
110
|
-
input_health_score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
111
|
-
output_health_score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
112
|
-
input_data: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>, z.ZodObject<{
|
|
113
|
-
original_language_description: z.ZodString;
|
|
114
|
-
old_translation: z.ZodString;
|
|
115
|
-
product_feedback: z.ZodNullable<z.ZodString>;
|
|
116
|
-
task_feedback: z.ZodNullable<z.ZodString>;
|
|
117
|
-
tone_of_voice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
|
-
company_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
119
|
-
}, z.core.$strip>>;
|
|
120
|
-
}, z.core.$strip>;
|
|
121
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
122
|
-
outputData: string;
|
|
123
|
-
accountId: string;
|
|
124
|
-
analyticsId: "content_optimization_write_seo" | "content_optimization_refine_product_description_html" | "content_optimization_translate_product_description_html" | "content_optimization_write_product_description_html" | "content_optimization_reduce_similarity_product_description_html" | "inventory_optimization_reorder_recommendation" | "inventory_optimization_reorder_recommendation_entries";
|
|
125
|
-
objectClass: "UNKNOWN" | "location" | "product" | "sku" | "pseudo_product";
|
|
126
|
-
objectId: string;
|
|
127
|
-
category: string;
|
|
128
|
-
summary: string;
|
|
129
|
-
cardTitle: string;
|
|
130
|
-
lookup: Record<string, string>;
|
|
131
|
-
updatedAt: Date;
|
|
132
|
-
state: "UNKNOWN" | "PENDING" | "ACCEPTED" | "REJECTED" | "ACCEPTED_AND_HANDLED" | "ACCEPTED_HANDLING_FAILED" | "INVALIDATED" | "GENERATING" | "GENERATION_FAILED" | "IMPLICITLY_REJECTED" | "REVERTED" | "REVERTED_HANDLING_FAILED" | "REVERTED_AND_HANDLED" | "PLACEHOLDER";
|
|
133
|
-
severity: number;
|
|
134
|
-
algorithmVersion: string;
|
|
135
|
-
isMuted: boolean;
|
|
136
|
-
isPending: boolean;
|
|
137
|
-
metadata: {
|
|
138
|
-
chat_history: string;
|
|
139
|
-
product_information?: {
|
|
140
|
-
is_enabled?: boolean | undefined;
|
|
141
|
-
product_name?: string | undefined;
|
|
142
|
-
vendor?: string | undefined;
|
|
143
|
-
product_tags?: string[] | undefined;
|
|
144
|
-
product_attributes?: Record<string, string | null> | undefined;
|
|
145
|
-
collections?: string[] | undefined;
|
|
146
|
-
} | undefined;
|
|
147
|
-
llm_model?: string | undefined;
|
|
148
|
-
severity_unweighted?: number | undefined;
|
|
149
|
-
recommendation_created_at?: string | undefined;
|
|
150
|
-
product_url?: string | undefined;
|
|
151
|
-
is_enabled?: boolean | undefined;
|
|
152
|
-
related_categories?: string[] | undefined;
|
|
153
|
-
lead_time_days?: number | undefined;
|
|
154
|
-
online_summary_with_citations?: string | undefined;
|
|
155
|
-
product_names?: string[] | undefined;
|
|
156
|
-
};
|
|
157
|
-
recommendationData: {
|
|
158
|
-
output_data: string;
|
|
159
|
-
original_data: string | null;
|
|
160
|
-
input_language: string;
|
|
161
|
-
output_language: string;
|
|
162
|
-
input_health_score?: number | null | undefined;
|
|
163
|
-
output_health_score?: number | null | undefined;
|
|
164
|
-
};
|
|
165
|
-
cardPictureUrl?: string | undefined;
|
|
166
|
-
cardPictureAltText?: string | undefined;
|
|
167
|
-
cardSubtitle?: string | undefined;
|
|
168
|
-
mutedUntil?: Date | undefined;
|
|
169
|
-
feedback?: string | undefined;
|
|
170
|
-
statusDetails?: any;
|
|
171
|
-
editedRecommendationData?: {
|
|
172
|
-
recommendationData: {
|
|
173
|
-
output_data: string;
|
|
174
|
-
original_data: string | null;
|
|
175
|
-
input_language: string;
|
|
176
|
-
output_language: string;
|
|
177
|
-
input_health_score?: number | null | undefined;
|
|
178
|
-
output_health_score?: number | null | undefined;
|
|
179
|
-
};
|
|
180
|
-
} | undefined;
|
|
181
|
-
}, {
|
|
182
|
-
accountId: string;
|
|
183
|
-
analyticsId: "content_optimization_write_seo" | "content_optimization_refine_product_description_html" | "content_optimization_translate_product_description_html" | "content_optimization_write_product_description_html" | "content_optimization_reduce_similarity_product_description_html" | "inventory_optimization_reorder_recommendation" | "inventory_optimization_reorder_recommendation_entries";
|
|
184
|
-
objectClass: "UNKNOWN" | "location" | "product" | "sku" | "pseudo_product";
|
|
185
|
-
objectId: string;
|
|
186
|
-
category: string;
|
|
187
|
-
summary: string;
|
|
188
|
-
cardTitle: string;
|
|
189
|
-
lookup: Record<string, string>;
|
|
190
|
-
updatedAt: Date;
|
|
191
|
-
state: "UNKNOWN" | "PENDING" | "ACCEPTED" | "REJECTED" | "ACCEPTED_AND_HANDLED" | "ACCEPTED_HANDLING_FAILED" | "INVALIDATED" | "GENERATING" | "GENERATION_FAILED" | "IMPLICITLY_REJECTED" | "REVERTED" | "REVERTED_HANDLING_FAILED" | "REVERTED_AND_HANDLED" | "PLACEHOLDER";
|
|
192
|
-
severity: number;
|
|
193
|
-
algorithmVersion: string;
|
|
194
|
-
isMuted: boolean;
|
|
195
|
-
isPending: boolean;
|
|
196
|
-
metadata: {
|
|
197
|
-
chat_history: string;
|
|
198
|
-
translatable_content_digest: string;
|
|
199
|
-
resource_key: "UNKNOWN" | "product_name" | "product_description_html";
|
|
200
|
-
product_information?: {
|
|
201
|
-
is_enabled?: boolean | undefined;
|
|
202
|
-
product_name?: string | undefined;
|
|
203
|
-
vendor?: string | undefined;
|
|
204
|
-
product_tags?: string[] | undefined;
|
|
205
|
-
product_attributes?: Record<string, string | null> | undefined;
|
|
206
|
-
collections?: string[] | undefined;
|
|
207
|
-
} | undefined;
|
|
208
|
-
llm_model?: string | undefined;
|
|
209
|
-
severity_unweighted?: number | undefined;
|
|
210
|
-
recommendation_created_at?: string | undefined;
|
|
211
|
-
product_url?: string | undefined;
|
|
212
|
-
is_enabled?: boolean | undefined;
|
|
213
|
-
related_categories?: string[] | undefined;
|
|
214
|
-
lead_time_days?: number | undefined;
|
|
215
|
-
online_summary_with_citations?: string | undefined;
|
|
216
|
-
product_names?: string[] | undefined;
|
|
217
|
-
};
|
|
218
|
-
recommendationData: {
|
|
219
|
-
output_data: string;
|
|
220
|
-
original_data: string | null;
|
|
221
|
-
input_language: string;
|
|
222
|
-
output_language: string;
|
|
223
|
-
input_data: {
|
|
224
|
-
original_language_description: string;
|
|
225
|
-
old_translation: string;
|
|
226
|
-
product_feedback: string | null;
|
|
227
|
-
task_feedback: string | null;
|
|
228
|
-
tone_of_voice?: string | null | undefined;
|
|
229
|
-
company_description?: string | null | undefined;
|
|
230
|
-
};
|
|
231
|
-
input_health_score?: number | null | undefined;
|
|
232
|
-
output_health_score?: number | null | undefined;
|
|
233
|
-
};
|
|
234
|
-
cardPictureUrl?: string | undefined;
|
|
235
|
-
cardPictureAltText?: string | undefined;
|
|
236
|
-
cardSubtitle?: string | undefined;
|
|
237
|
-
mutedUntil?: Date | undefined;
|
|
238
|
-
feedback?: string | undefined;
|
|
239
|
-
statusDetails?: any;
|
|
240
|
-
editedRecommendationData?: {
|
|
241
|
-
recommendationData: {
|
|
242
|
-
output_data: string;
|
|
243
|
-
original_data: string | null;
|
|
244
|
-
input_language: string;
|
|
245
|
-
output_language: string;
|
|
246
|
-
input_health_score?: number | null | undefined;
|
|
247
|
-
output_health_score?: number | null | undefined;
|
|
248
|
-
};
|
|
249
|
-
} | undefined;
|
|
250
|
-
}>>;
|
|
251
|
-
export type TranslationRecommendation = z.infer<typeof TranslationRecommendationSchema>;
|
|
18
|
+
export type TranslationRecommendationData = z.infer<typeof TranslationRecommendationDataSchema>;
|
|
252
19
|
//# sourceMappingURL=translation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../../src/zod/recommendations/content-optimization/translation.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../../src/zod/recommendations/content-optimization/translation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAcpB,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;iBAG9C,CAAC;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
|
|
@@ -1,25 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { ProductRecommendationDataBaseSchema } from '../base';
|
|
3
|
+
const TranslationRecommendationInputSchema = z
|
|
4
|
+
.object({
|
|
5
|
+
original_language_description: z.string(),
|
|
6
|
+
old_translation: z.string(),
|
|
7
|
+
product_feedback: z.string().nullable().optional(),
|
|
8
|
+
task_feedback: z.string().nullable().optional(),
|
|
9
|
+
tone_of_voice: z.string().nullable().optional(),
|
|
10
|
+
company_description: z.string().nullable().optional(),
|
|
11
|
+
})
|
|
12
|
+
.optional();
|
|
13
|
+
export const TranslationRecommendationDataSchema = ProductRecommendationDataBaseSchema.extend({
|
|
14
|
+
analyticsId: z.literal('content_optimization_translate_product_description_html'),
|
|
15
|
+
input_data: TranslationRecommendationInputSchema,
|
|
7
16
|
});
|
|
8
|
-
export const TranslationRecommendationData = ContentOptimizationRecommendationDataBaseSchema.extend({
|
|
9
|
-
input_data: z
|
|
10
|
-
.string()
|
|
11
|
-
.transform((str) => JSON.parse(str))
|
|
12
|
-
.pipe(z.object({
|
|
13
|
-
original_language_description: z.string(),
|
|
14
|
-
old_translation: z.string(),
|
|
15
|
-
product_feedback: z.string().nullable(),
|
|
16
|
-
task_feedback: z.string().nullable(),
|
|
17
|
-
tone_of_voice: z.string().nullable().optional(),
|
|
18
|
-
company_description: z.string().nullable().optional(),
|
|
19
|
-
})),
|
|
20
|
-
});
|
|
21
|
-
export const TranslationRecommendationSchema = ContentOptimizationRecommendationBaseSchema.merge(z.object({
|
|
22
|
-
metadata: TranslationMetadata,
|
|
23
|
-
recommendationData: TranslationRecommendationData,
|
|
24
|
-
})).transform(computeOutputData);
|
|
25
17
|
//# sourceMappingURL=translation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translation.js","sourceRoot":"","sources":["../../../../src/zod/recommendations/content-optimization/translation.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"translation.js","sourceRoot":"","sources":["../../../../src/zod/recommendations/content-optimization/translation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAC,mCAAmC,EAAC,MAAM,SAAS,CAAC;AAE5D,MAAM,oCAAoC,GAAG,CAAC;KAC3C,MAAM,CAAC;IACN,6BAA6B,EAAE,CAAC,CAAC,MAAM,EAAE;IACzC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAClD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC/C,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC/C,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACtD,CAAC;KACD,QAAQ,EAAE,CAAC;AAEd,MAAM,CAAC,MAAM,mCAAmC,GAAG,mCAAmC,CAAC,MAAM,CAAC;IAC5F,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,yDAAyD,CAAC;IACjF,UAAU,EAAE,oCAAoC;CACjD,CAAC,CAAC"}
|
|
@@ -1,3 +1,227 @@
|
|
|
1
|
+
import z from 'zod';
|
|
1
2
|
export * from './content-optimization';
|
|
2
3
|
export * from './base';
|
|
4
|
+
export declare const recommendation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5
|
+
analyticsId: z.ZodEnum<{
|
|
6
|
+
content_optimization_write_seo: "content_optimization_write_seo";
|
|
7
|
+
content_optimization_refine_product_description_html: "content_optimization_refine_product_description_html";
|
|
8
|
+
content_optimization_translate_product_description_html: "content_optimization_translate_product_description_html";
|
|
9
|
+
content_optimization_write_product_description_html: "content_optimization_write_product_description_html";
|
|
10
|
+
content_optimization_reduce_similarity_product_description_html: "content_optimization_reduce_similarity_product_description_html";
|
|
11
|
+
}>;
|
|
12
|
+
recommendationData: z.ZodUnion<readonly [z.ZodObject<{
|
|
13
|
+
output_data: z.ZodString;
|
|
14
|
+
original_data: z.ZodString;
|
|
15
|
+
input_language: z.ZodString;
|
|
16
|
+
output_language: z.ZodString;
|
|
17
|
+
health_score: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
analyticsId: z.ZodLiteral<"content_optimization_translate_product_description_html">;
|
|
19
|
+
input_data: z.ZodOptional<z.ZodObject<{
|
|
20
|
+
original_language_description: z.ZodString;
|
|
21
|
+
old_translation: z.ZodString;
|
|
22
|
+
product_feedback: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
task_feedback: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
tone_of_voice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
company_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
}, z.core.$strip>>;
|
|
27
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
+
output_data: z.ZodString;
|
|
29
|
+
original_data: z.ZodString;
|
|
30
|
+
input_language: z.ZodString;
|
|
31
|
+
output_language: z.ZodString;
|
|
32
|
+
health_score: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
analyticsId: z.ZodEnum<{
|
|
34
|
+
content_optimization_write_seo: "content_optimization_write_seo";
|
|
35
|
+
content_optimization_refine_product_description_html: "content_optimization_refine_product_description_html";
|
|
36
|
+
content_optimization_write_product_description_html: "content_optimization_write_product_description_html";
|
|
37
|
+
}>;
|
|
38
|
+
input_data: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
39
|
+
product_data: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>, z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40
|
+
vendor: z.ZodOptional<z.ZodString>;
|
|
41
|
+
product_description: z.ZodOptional<z.ZodString>;
|
|
42
|
+
product_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>>;
|
|
43
|
+
collections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
44
|
+
product_name: z.ZodOptional<z.ZodString>;
|
|
45
|
+
product_tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
46
|
+
dimensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
47
|
+
product_description_html: z.ZodOptional<z.ZodString>;
|
|
48
|
+
}, z.core.$strip>>>>>;
|
|
49
|
+
product_feedback: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
task_feedback: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
tone_of_voice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
company_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
}, z.core.$strip>>>;
|
|
54
|
+
}, z.core.$strip>]>;
|
|
55
|
+
objectClass: z.ZodCatch<z.ZodEnum<{
|
|
56
|
+
UNKNOWN: "UNKNOWN";
|
|
57
|
+
location: "location";
|
|
58
|
+
product: "product";
|
|
59
|
+
sku: "sku";
|
|
60
|
+
pseudo_product: "pseudo_product";
|
|
61
|
+
}>>;
|
|
62
|
+
objectId: z.ZodString;
|
|
63
|
+
category: z.ZodString;
|
|
64
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
65
|
+
product_information: z.ZodOptional<z.ZodObject<{
|
|
66
|
+
is_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
+
product_name: z.ZodOptional<z.ZodString>;
|
|
68
|
+
vendor: z.ZodOptional<z.ZodString>;
|
|
69
|
+
product_tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
70
|
+
product_attributes: z.ZodObject<{
|
|
71
|
+
store_url: z.ZodOptional<z.ZodString>;
|
|
72
|
+
}, z.core.$catchall<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNull]>>>;
|
|
73
|
+
collections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
74
|
+
}, z.core.$strip>>;
|
|
75
|
+
llm_model: z.ZodOptional<z.ZodString>;
|
|
76
|
+
product_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
77
|
+
is_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
78
|
+
related_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
79
|
+
lead_time_days: z.ZodOptional<z.ZodNumber>;
|
|
80
|
+
product_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
81
|
+
structured_output: z.ZodPipe<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<any, string | null | undefined>>, z.ZodNullable<z.ZodObject<{
|
|
82
|
+
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
description: z.ZodString;
|
|
85
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
86
|
+
type: z.ZodLiteral<"html_text">;
|
|
87
|
+
examples: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
88
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
89
|
+
name: z.ZodString;
|
|
90
|
+
description: z.ZodString;
|
|
91
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
+
type: z.ZodLiteral<"bullet_point">;
|
|
93
|
+
examples: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
94
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
95
|
+
name: z.ZodString;
|
|
96
|
+
description: z.ZodString;
|
|
97
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
+
type: z.ZodLiteral<"specification">;
|
|
99
|
+
examples: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
100
|
+
name: z.ZodString;
|
|
101
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
102
|
+
}, z.core.$strip>>>>;
|
|
103
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
104
|
+
name: z.ZodString;
|
|
105
|
+
description: z.ZodString;
|
|
106
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
107
|
+
type: z.ZodLiteral<"plain_text">;
|
|
108
|
+
examples: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
109
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
110
|
+
name: z.ZodString;
|
|
111
|
+
description: z.ZodString;
|
|
112
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
+
type: z.ZodLiteral<"title">;
|
|
114
|
+
examples: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
115
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
116
|
+
heading_type: z.ZodEnum<{
|
|
117
|
+
h1: "h1";
|
|
118
|
+
h2: "h2";
|
|
119
|
+
h3: "h3";
|
|
120
|
+
h4: "h4";
|
|
121
|
+
h5: "h5";
|
|
122
|
+
h6: "h6";
|
|
123
|
+
strong: "strong";
|
|
124
|
+
}>;
|
|
125
|
+
skip_if_next_section_empty: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
+
}, z.core.$strip>>;
|
|
127
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
128
|
+
name: z.ZodString;
|
|
129
|
+
description: z.ZodString;
|
|
130
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
131
|
+
type: z.ZodLiteral<"boolean">;
|
|
132
|
+
examples: z.ZodOptional<z.ZodArray<z.ZodBoolean>>;
|
|
133
|
+
}, z.core.$strip>]>>;
|
|
134
|
+
}, z.core.$strip>>>;
|
|
135
|
+
}, z.core.$strip>>;
|
|
136
|
+
editedRecommendationData: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
137
|
+
recommendationData: z.ZodObject<{
|
|
138
|
+
output_data: z.ZodString;
|
|
139
|
+
}, z.core.$strip>;
|
|
140
|
+
}, z.core.$strip>>>;
|
|
141
|
+
summary: z.ZodString;
|
|
142
|
+
cardPictureAltText: z.ZodString;
|
|
143
|
+
cardPictureUrl: z.ZodString;
|
|
144
|
+
cardTitle: z.ZodString;
|
|
145
|
+
cardSubtitle: z.ZodOptional<z.ZodString>;
|
|
146
|
+
updatedAt: z.ZodString;
|
|
147
|
+
state: z.ZodCatch<z.ZodEnum<{
|
|
148
|
+
UNKNOWN: "UNKNOWN";
|
|
149
|
+
PENDING: "PENDING";
|
|
150
|
+
ACCEPTED: "ACCEPTED";
|
|
151
|
+
REJECTED: "REJECTED";
|
|
152
|
+
ACCEPTED_AND_HANDLED: "ACCEPTED_AND_HANDLED";
|
|
153
|
+
ACCEPTED_HANDLING_FAILED: "ACCEPTED_HANDLING_FAILED";
|
|
154
|
+
INVALIDATED: "INVALIDATED";
|
|
155
|
+
GENERATING: "GENERATING";
|
|
156
|
+
GENERATION_FAILED: "GENERATION_FAILED";
|
|
157
|
+
IMPLICITLY_REJECTED: "IMPLICITLY_REJECTED";
|
|
158
|
+
REVERTED: "REVERTED";
|
|
159
|
+
REVERTED_HANDLING_FAILED: "REVERTED_HANDLING_FAILED";
|
|
160
|
+
REVERTED_AND_HANDLED: "REVERTED_AND_HANDLED";
|
|
161
|
+
PLACEHOLDER: "PLACEHOLDER";
|
|
162
|
+
}>>;
|
|
163
|
+
feedback: z.ZodString;
|
|
164
|
+
lookup: z.ZodOptional<z.ZodObject<{
|
|
165
|
+
product_name: z.ZodString;
|
|
166
|
+
vendor: z.ZodString;
|
|
167
|
+
product_tags: z.ZodArray<z.ZodString>;
|
|
168
|
+
product_type: z.ZodString;
|
|
169
|
+
group_id: z.ZodOptional<z.ZodString>;
|
|
170
|
+
}, z.core.$strip>>;
|
|
171
|
+
mutedUntil: z.ZodOptional<z.ZodString>;
|
|
172
|
+
isMuted: z.ZodBoolean;
|
|
173
|
+
isPending: z.ZodBoolean;
|
|
174
|
+
severity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
175
|
+
accountId: z.ZodString;
|
|
176
|
+
algorithmVersion: z.ZodOptional<z.ZodString>;
|
|
177
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
178
|
+
accountId: z.ZodString;
|
|
179
|
+
objectClass: z.ZodCatch<z.ZodEnum<{
|
|
180
|
+
UNKNOWN: "UNKNOWN";
|
|
181
|
+
location: "location";
|
|
182
|
+
product: "product";
|
|
183
|
+
sku: "sku";
|
|
184
|
+
pseudo_product: "pseudo_product";
|
|
185
|
+
}>>;
|
|
186
|
+
objectId: z.ZodString;
|
|
187
|
+
category: z.ZodString;
|
|
188
|
+
recommendationData: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodUnknown>>;
|
|
189
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodUnknown>>>;
|
|
190
|
+
summary: z.ZodString;
|
|
191
|
+
cardPictureUrl: z.ZodOptional<z.ZodString>;
|
|
192
|
+
cardPictureAltText: z.ZodOptional<z.ZodString>;
|
|
193
|
+
cardTitle: z.ZodString;
|
|
194
|
+
cardSubtitle: z.ZodOptional<z.ZodString>;
|
|
195
|
+
lookup: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
196
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
197
|
+
state: z.ZodCatch<z.ZodEnum<{
|
|
198
|
+
UNKNOWN: "UNKNOWN";
|
|
199
|
+
PENDING: "PENDING";
|
|
200
|
+
ACCEPTED: "ACCEPTED";
|
|
201
|
+
REJECTED: "REJECTED";
|
|
202
|
+
ACCEPTED_AND_HANDLED: "ACCEPTED_AND_HANDLED";
|
|
203
|
+
ACCEPTED_HANDLING_FAILED: "ACCEPTED_HANDLING_FAILED";
|
|
204
|
+
INVALIDATED: "INVALIDATED";
|
|
205
|
+
GENERATING: "GENERATING";
|
|
206
|
+
GENERATION_FAILED: "GENERATION_FAILED";
|
|
207
|
+
IMPLICITLY_REJECTED: "IMPLICITLY_REJECTED";
|
|
208
|
+
REVERTED: "REVERTED";
|
|
209
|
+
REVERTED_HANDLING_FAILED: "REVERTED_HANDLING_FAILED";
|
|
210
|
+
REVERTED_AND_HANDLED: "REVERTED_AND_HANDLED";
|
|
211
|
+
PLACEHOLDER: "PLACEHOLDER";
|
|
212
|
+
}>>;
|
|
213
|
+
mutedUntil: z.ZodOptional<z.ZodDate>;
|
|
214
|
+
feedback: z.ZodOptional<z.ZodString>;
|
|
215
|
+
severity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
216
|
+
editedRecommendationData: z.ZodOptional<z.ZodUnknown>;
|
|
217
|
+
algorithmVersion: z.ZodString;
|
|
218
|
+
isMuted: z.ZodBoolean;
|
|
219
|
+
isPending: z.ZodBoolean;
|
|
220
|
+
statusDetails: z.ZodOptional<z.ZodString>;
|
|
221
|
+
analyticsId: z.ZodEnum<{
|
|
222
|
+
inventory_optimization_reorder_recommendation: "inventory_optimization_reorder_recommendation";
|
|
223
|
+
inventory_optimization_reorder_recommendation_entries: "inventory_optimization_reorder_recommendation_entries";
|
|
224
|
+
}>;
|
|
225
|
+
}, z.core.$strip>]>;
|
|
226
|
+
export type Recommendation = z.infer<typeof recommendation>;
|
|
3
227
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/zod/recommendations/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/zod/recommendations/index.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAIpB,cAAc,wBAAwB,CAAC;AACvC,cAAc,QAAQ,CAAC;AAEvB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAKzB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { allLocationAnalyticsIds, ObjectScopedRecommendationV2Schema } from './base';
|
|
3
|
+
import { ProductRecommendationSchema } from './content-optimization';
|
|
1
4
|
export * from './content-optimization';
|
|
2
5
|
export * from './base';
|
|
6
|
+
export const recommendation = z.discriminatedUnion('analyticsId', [
|
|
7
|
+
ProductRecommendationSchema,
|
|
8
|
+
ObjectScopedRecommendationV2Schema.extend({
|
|
9
|
+
analyticsId: z.enum(allLocationAnalyticsIds),
|
|
10
|
+
}),
|
|
11
|
+
]);
|
|
3
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/zod/recommendations/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/zod/recommendations/index.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAC,uBAAuB,EAAE,kCAAkC,EAAC,MAAM,QAAQ,CAAC;AACnF,OAAO,EAAC,2BAA2B,EAAC,MAAM,wBAAwB,CAAC;AAEnE,cAAc,wBAAwB,CAAC;AACvC,cAAc,QAAQ,CAAC;AAEvB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,kBAAkB,CAAC,aAAa,EAAE;IAChE,2BAA2B;IAC3B,kCAAkC,CAAC,MAAM,CAAC;QACxC,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC;KAC7C,CAAC;CACH,CAAC,CAAC"}
|