@omni-graph/omni-model 0.2.65 → 0.2.66
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/zod/recommendations/base.d.ts +2 -2
- package/dist/zod/recommendations/base.js +1 -1
- package/dist/zod/recommendations/base.js.map +1 -1
- package/dist/zod/recommendations/content-optmization/base.d.ts +6 -6
- package/dist/zod/recommendations/content-optmization/translation.d.ts +3 -3
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ export type AllAnalyticsIds = z.infer<typeof AllAnalyticsIdsSchema>;
|
|
|
10
10
|
export declare const ObjectScopedRecommendationV2Schema: z.ZodObject<{
|
|
11
11
|
accountId: z.ZodString;
|
|
12
12
|
analyticsId: z.ZodUnion<[z.ZodEnum<["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", "content_optimization_write_seo"]>, z.ZodEnum<["inventory_optimization_reorder_recommendation", "inventory_optimization_reorder_recommendation_entries"]>]>;
|
|
13
|
-
objectClass: z.ZodCatch<z.ZodEnum<["product", "sku", "UNKNOWN"]>>;
|
|
13
|
+
objectClass: z.ZodCatch<z.ZodEnum<["location", "product", "sku", "UNKNOWN"]>>;
|
|
14
14
|
objectId: z.ZodString;
|
|
15
15
|
category: z.ZodString;
|
|
16
16
|
recommendationData: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
|
|
@@ -34,7 +34,7 @@ export declare const ObjectScopedRecommendationV2Schema: z.ZodObject<{
|
|
|
34
34
|
accountId: string;
|
|
35
35
|
updatedAt: Date;
|
|
36
36
|
analyticsId: "content_optimization_write_seo" | "content_optimization_translate_product_description_html" | "content_optimization_refine_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";
|
|
37
|
-
objectClass: "UNKNOWN" | "product" | "sku";
|
|
37
|
+
objectClass: "UNKNOWN" | "location" | "product" | "sku";
|
|
38
38
|
objectId: string;
|
|
39
39
|
category: string;
|
|
40
40
|
recommendationData: Record<string, string | null>;
|
|
@@ -31,7 +31,7 @@ const ObjectScopedRecommendationStateSchema = z
|
|
|
31
31
|
'REVERTED_AND_HANDLED',
|
|
32
32
|
])
|
|
33
33
|
.catch('UNKNOWN');
|
|
34
|
-
const ObjectScopedRecommendationObjectClassSchema = z.enum(['product', 'sku', 'UNKNOWN']).catch('UNKNOWN');
|
|
34
|
+
const ObjectScopedRecommendationObjectClassSchema = z.enum(['location', 'product', 'sku', 'UNKNOWN']).catch('UNKNOWN');
|
|
35
35
|
// Define the schema
|
|
36
36
|
export const ObjectScopedRecommendationV2Schema = z.object({
|
|
37
37
|
accountId: z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../src/zod/recommendations/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,uFAAuF;AAEvF,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,sDAAsD;IACtD,yDAAyD;IACzD,qDAAqD;IACrD,iEAAiE;IACjE,gCAAgC;CACxB,CAAC;AAEX,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;AAE9E,kFAAkF;AAElF,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,+CAA+C;IAC/C,uDAAuD;CAC/C,CAAC;AAEX,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;AAGpE,gFAAgF;AAEhF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,+BAA+B,EAAE,oBAAoB,CAAC,CAAC,CAAC;AAItG,uDAAuD;AAEvD,MAAM,qCAAqC,GAAG,CAAC;KAC5C,IAAI,CAAC;IAC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AC,CAAC,MAAM,EAAE;IACpB,wBAAwB,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,EAAE,gCAAgC;IAC9E,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5B,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;CACvB,CAAC,CAAC"}
|
|
@@ -101,7 +101,7 @@ export declare const ContentOptimizationEditedRecommendationDataBaseSchema: z.Zo
|
|
|
101
101
|
export declare const ContentOptimizationRecommendationBaseSchema: z.ZodObject<{
|
|
102
102
|
accountId: z.ZodString;
|
|
103
103
|
analyticsId: z.ZodUnion<[z.ZodEnum<["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", "content_optimization_write_seo"]>, z.ZodEnum<["inventory_optimization_reorder_recommendation", "inventory_optimization_reorder_recommendation_entries"]>]>;
|
|
104
|
-
objectClass: z.ZodCatch<z.ZodEnum<["product", "sku", "UNKNOWN"]>>;
|
|
104
|
+
objectClass: z.ZodCatch<z.ZodEnum<["location", "product", "sku", "UNKNOWN"]>>;
|
|
105
105
|
objectId: z.ZodString;
|
|
106
106
|
category: z.ZodString;
|
|
107
107
|
summary: z.ZodString;
|
|
@@ -222,7 +222,7 @@ export declare const ContentOptimizationRecommendationBaseSchema: z.ZodObject<{
|
|
|
222
222
|
accountId: string;
|
|
223
223
|
updatedAt: Date;
|
|
224
224
|
analyticsId: "content_optimization_write_seo" | "content_optimization_translate_product_description_html" | "content_optimization_refine_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";
|
|
225
|
-
objectClass: "UNKNOWN" | "product" | "sku";
|
|
225
|
+
objectClass: "UNKNOWN" | "location" | "product" | "sku";
|
|
226
226
|
objectId: string;
|
|
227
227
|
category: string;
|
|
228
228
|
recommendationData: {
|
|
@@ -326,7 +326,7 @@ export declare const computeOutputData: (data: ContentOptimizationRecommendation
|
|
|
326
326
|
accountId: string;
|
|
327
327
|
updatedAt: Date;
|
|
328
328
|
analyticsId: "content_optimization_write_seo" | "content_optimization_translate_product_description_html" | "content_optimization_refine_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";
|
|
329
|
-
objectClass: "UNKNOWN" | "product" | "sku";
|
|
329
|
+
objectClass: "UNKNOWN" | "location" | "product" | "sku";
|
|
330
330
|
objectId: string;
|
|
331
331
|
category: string;
|
|
332
332
|
recommendationData: {
|
|
@@ -380,7 +380,7 @@ export declare const computeOutputData: (data: ContentOptimizationRecommendation
|
|
|
380
380
|
export declare const ContentOptimizationRecommendationSchema: z.ZodEffects<z.ZodObject<{
|
|
381
381
|
accountId: z.ZodString;
|
|
382
382
|
analyticsId: z.ZodUnion<[z.ZodEnum<["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", "content_optimization_write_seo"]>, z.ZodEnum<["inventory_optimization_reorder_recommendation", "inventory_optimization_reorder_recommendation_entries"]>]>;
|
|
383
|
-
objectClass: z.ZodCatch<z.ZodEnum<["product", "sku", "UNKNOWN"]>>;
|
|
383
|
+
objectClass: z.ZodCatch<z.ZodEnum<["location", "product", "sku", "UNKNOWN"]>>;
|
|
384
384
|
objectId: z.ZodString;
|
|
385
385
|
category: z.ZodString;
|
|
386
386
|
summary: z.ZodString;
|
|
@@ -501,7 +501,7 @@ export declare const ContentOptimizationRecommendationSchema: z.ZodEffects<z.Zod
|
|
|
501
501
|
accountId: string;
|
|
502
502
|
updatedAt: Date;
|
|
503
503
|
analyticsId: "content_optimization_write_seo" | "content_optimization_translate_product_description_html" | "content_optimization_refine_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";
|
|
504
|
-
objectClass: "UNKNOWN" | "product" | "sku";
|
|
504
|
+
objectClass: "UNKNOWN" | "location" | "product" | "sku";
|
|
505
505
|
objectId: string;
|
|
506
506
|
category: string;
|
|
507
507
|
recommendationData: {
|
|
@@ -603,7 +603,7 @@ export declare const ContentOptimizationRecommendationSchema: z.ZodEffects<z.Zod
|
|
|
603
603
|
accountId: string;
|
|
604
604
|
updatedAt: Date;
|
|
605
605
|
analyticsId: "content_optimization_write_seo" | "content_optimization_translate_product_description_html" | "content_optimization_refine_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";
|
|
606
|
-
objectClass: "UNKNOWN" | "product" | "sku";
|
|
606
|
+
objectClass: "UNKNOWN" | "location" | "product" | "sku";
|
|
607
607
|
objectId: string;
|
|
608
608
|
category: string;
|
|
609
609
|
recommendationData: {
|
|
@@ -50,7 +50,7 @@ export declare const TranslationRecommendationData: z.ZodObject<{
|
|
|
50
50
|
export declare const TranslationRecommendationSchema: z.ZodEffects<z.ZodObject<{
|
|
51
51
|
accountId: z.ZodString;
|
|
52
52
|
analyticsId: z.ZodUnion<[z.ZodEnum<["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", "content_optimization_write_seo"]>, z.ZodEnum<["inventory_optimization_reorder_recommendation", "inventory_optimization_reorder_recommendation_entries"]>]>;
|
|
53
|
-
objectClass: z.ZodCatch<z.ZodEnum<["product", "sku", "UNKNOWN"]>>;
|
|
53
|
+
objectClass: z.ZodCatch<z.ZodEnum<["location", "product", "sku", "UNKNOWN"]>>;
|
|
54
54
|
objectId: z.ZodString;
|
|
55
55
|
category: z.ZodString;
|
|
56
56
|
summary: z.ZodString;
|
|
@@ -210,7 +210,7 @@ export declare const TranslationRecommendationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
210
210
|
accountId: string;
|
|
211
211
|
updatedAt: Date;
|
|
212
212
|
analyticsId: "content_optimization_write_seo" | "content_optimization_translate_product_description_html" | "content_optimization_refine_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";
|
|
213
|
-
objectClass: "UNKNOWN" | "product" | "sku";
|
|
213
|
+
objectClass: "UNKNOWN" | "location" | "product" | "sku";
|
|
214
214
|
objectId: string;
|
|
215
215
|
category: string;
|
|
216
216
|
recommendationData: {
|
|
@@ -325,7 +325,7 @@ export declare const TranslationRecommendationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
325
325
|
accountId: string;
|
|
326
326
|
updatedAt: Date;
|
|
327
327
|
analyticsId: "content_optimization_write_seo" | "content_optimization_translate_product_description_html" | "content_optimization_refine_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";
|
|
328
|
-
objectClass: "UNKNOWN" | "product" | "sku";
|
|
328
|
+
objectClass: "UNKNOWN" | "location" | "product" | "sku";
|
|
329
329
|
objectId: string;
|
|
330
330
|
category: string;
|
|
331
331
|
recommendationData: {
|