@omni-graph/omni-model 0.6.117 → 0.6.119
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/account-settings/accountSettings.d.ts +148 -90
- package/dist/zod/account-settings/accountSettings.d.ts.map +1 -1
- package/dist/zod/account-settings/accountSettings.js +9 -9
- package/dist/zod/account-settings/accountSettings.js.map +1 -1
- package/dist/zod/recommendations/base.d.ts +3 -3
- package/dist/zod/recommendations/content-optimization/base.d.ts +5 -5
- package/dist/zod/recommendations/content-optimization/translation.d.ts +5 -5
- package/package.json +1 -1
|
@@ -31,11 +31,33 @@ export type SettingsIdToResponseMap = {
|
|
|
31
31
|
[AccountSettingsIdEnum.WIZARD_PLATFORM]: WizardPlatformResponse;
|
|
32
32
|
[AccountSettingsIdEnum.EDUCATIONAL_PLATFORM]: EducationalPlatformResponse;
|
|
33
33
|
};
|
|
34
|
-
export declare const
|
|
34
|
+
export declare const MetaFieldUnitEnum: z.ZodOptional<z.ZodEnum<{
|
|
35
35
|
currency: "currency";
|
|
36
36
|
units: "units";
|
|
37
|
-
}
|
|
38
|
-
export type
|
|
37
|
+
}>>;
|
|
38
|
+
export type MetaFieldUnit = z.infer<typeof MetaFieldUnitEnum>;
|
|
39
|
+
export declare const MetaFieldUnitMappingShema: z.ZodObject<{
|
|
40
|
+
meta_id: z.ZodString;
|
|
41
|
+
unit: z.ZodOptional<z.ZodEnum<{
|
|
42
|
+
currency: "currency";
|
|
43
|
+
units: "units";
|
|
44
|
+
}>>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
export type MetaFieldUnitMapping = z.infer<typeof MetaFieldUnitMappingShema>;
|
|
47
|
+
export declare const ObjectScopedMetaReferenceSchema: z.ZodRecord<z.ZodCatch<z.ZodEnum<{
|
|
48
|
+
UNKNOWN: "UNKNOWN";
|
|
49
|
+
location: "location";
|
|
50
|
+
product: "product";
|
|
51
|
+
sku: "sku";
|
|
52
|
+
pseudo_product: "pseudo_product";
|
|
53
|
+
}>> & z.core.$partial, z.ZodObject<{
|
|
54
|
+
meta_id: z.ZodString;
|
|
55
|
+
unit: z.ZodOptional<z.ZodEnum<{
|
|
56
|
+
currency: "currency";
|
|
57
|
+
units: "units";
|
|
58
|
+
}>>;
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
|
+
export type ObjectScopedMetaReference = z.infer<typeof ObjectScopedMetaReferenceSchema>;
|
|
39
61
|
export declare const InventoryOptimizationValueSchema: z.ZodObject<{
|
|
40
62
|
lead_time_days: z.ZodNumber;
|
|
41
63
|
stockout_cost_ratio: z.ZodNumber;
|
|
@@ -47,20 +69,32 @@ export declare const InventoryOptimizationValueSchema: z.ZodObject<{
|
|
|
47
69
|
maximum_periods: z.ZodNumber;
|
|
48
70
|
discount_rate: z.ZodNumber;
|
|
49
71
|
min_return_on_investment: z.ZodNumber;
|
|
50
|
-
bundle_size: z.
|
|
51
|
-
|
|
52
|
-
|
|
72
|
+
bundle_size: z.ZodRecord<z.ZodCatch<z.ZodEnum<{
|
|
73
|
+
UNKNOWN: "UNKNOWN";
|
|
74
|
+
location: "location";
|
|
75
|
+
product: "product";
|
|
76
|
+
sku: "sku";
|
|
77
|
+
pseudo_product: "pseudo_product";
|
|
78
|
+
}>> & z.core.$partial, z.ZodObject<{
|
|
79
|
+
meta_id: z.ZodString;
|
|
80
|
+
unit: z.ZodOptional<z.ZodEnum<{
|
|
53
81
|
currency: "currency";
|
|
54
82
|
units: "units";
|
|
55
|
-
}
|
|
56
|
-
}, z.core.$strip
|
|
57
|
-
minimum_order_quantity: z.
|
|
58
|
-
|
|
59
|
-
|
|
83
|
+
}>>;
|
|
84
|
+
}, z.core.$strip>>;
|
|
85
|
+
minimum_order_quantity: z.ZodRecord<z.ZodCatch<z.ZodEnum<{
|
|
86
|
+
UNKNOWN: "UNKNOWN";
|
|
87
|
+
location: "location";
|
|
88
|
+
product: "product";
|
|
89
|
+
sku: "sku";
|
|
90
|
+
pseudo_product: "pseudo_product";
|
|
91
|
+
}>> & z.core.$partial, z.ZodObject<{
|
|
92
|
+
meta_id: z.ZodString;
|
|
93
|
+
unit: z.ZodOptional<z.ZodEnum<{
|
|
60
94
|
currency: "currency";
|
|
61
95
|
units: "units";
|
|
62
|
-
}
|
|
63
|
-
}, z.core.$strip
|
|
96
|
+
}>>;
|
|
97
|
+
}, z.core.$strip>>;
|
|
64
98
|
}, z.core.$strip>;
|
|
65
99
|
export type InventoryOptimizationValue = z.infer<typeof InventoryOptimizationValueSchema>;
|
|
66
100
|
export declare const InventoryOptimizationResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
@@ -81,20 +115,32 @@ export declare const InventoryOptimizationResponseSchema: z.ZodPipe<z.ZodObject<
|
|
|
81
115
|
maximum_periods: z.ZodNumber;
|
|
82
116
|
discount_rate: z.ZodNumber;
|
|
83
117
|
min_return_on_investment: z.ZodNumber;
|
|
84
|
-
bundle_size: z.
|
|
85
|
-
|
|
86
|
-
|
|
118
|
+
bundle_size: z.ZodRecord<z.ZodCatch<z.ZodEnum<{
|
|
119
|
+
UNKNOWN: "UNKNOWN";
|
|
120
|
+
location: "location";
|
|
121
|
+
product: "product";
|
|
122
|
+
sku: "sku";
|
|
123
|
+
pseudo_product: "pseudo_product";
|
|
124
|
+
}>> & z.core.$partial, z.ZodObject<{
|
|
125
|
+
meta_id: z.ZodString;
|
|
126
|
+
unit: z.ZodOptional<z.ZodEnum<{
|
|
87
127
|
currency: "currency";
|
|
88
128
|
units: "units";
|
|
89
|
-
}
|
|
90
|
-
}, z.core.$strip
|
|
91
|
-
minimum_order_quantity: z.
|
|
92
|
-
|
|
93
|
-
|
|
129
|
+
}>>;
|
|
130
|
+
}, z.core.$strip>>;
|
|
131
|
+
minimum_order_quantity: z.ZodRecord<z.ZodCatch<z.ZodEnum<{
|
|
132
|
+
UNKNOWN: "UNKNOWN";
|
|
133
|
+
location: "location";
|
|
134
|
+
product: "product";
|
|
135
|
+
sku: "sku";
|
|
136
|
+
pseudo_product: "pseudo_product";
|
|
137
|
+
}>> & z.core.$partial, z.ZodObject<{
|
|
138
|
+
meta_id: z.ZodString;
|
|
139
|
+
unit: z.ZodOptional<z.ZodEnum<{
|
|
94
140
|
currency: "currency";
|
|
95
141
|
units: "units";
|
|
96
|
-
}
|
|
97
|
-
}, z.core.$strip
|
|
142
|
+
}>>;
|
|
143
|
+
}, z.core.$strip>>;
|
|
98
144
|
}, z.core.$strip>;
|
|
99
145
|
}, z.core.$strip>, z.ZodTransform<{
|
|
100
146
|
lead_time_days: number;
|
|
@@ -107,14 +153,14 @@ export declare const InventoryOptimizationResponseSchema: z.ZodPipe<z.ZodObject<
|
|
|
107
153
|
maximum_periods: number;
|
|
108
154
|
discount_rate: number;
|
|
109
155
|
min_return_on_investment: number;
|
|
110
|
-
bundle_size: {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
minimum_order_quantity: {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
156
|
+
bundle_size: Partial<Record<"UNKNOWN" | "location" | "product" | "sku" | "pseudo_product", {
|
|
157
|
+
meta_id: string;
|
|
158
|
+
unit?: "currency" | "units" | undefined;
|
|
159
|
+
}>>;
|
|
160
|
+
minimum_order_quantity: Partial<Record<"UNKNOWN" | "location" | "product" | "sku" | "pseudo_product", {
|
|
161
|
+
meta_id: string;
|
|
162
|
+
unit?: "currency" | "units" | undefined;
|
|
163
|
+
}>>;
|
|
118
164
|
}, {
|
|
119
165
|
id: string;
|
|
120
166
|
accountId: string;
|
|
@@ -129,14 +175,14 @@ export declare const InventoryOptimizationResponseSchema: z.ZodPipe<z.ZodObject<
|
|
|
129
175
|
maximum_periods: number;
|
|
130
176
|
discount_rate: number;
|
|
131
177
|
min_return_on_investment: number;
|
|
132
|
-
bundle_size: {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
minimum_order_quantity: {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}
|
|
178
|
+
bundle_size: Partial<Record<"UNKNOWN" | "location" | "product" | "sku" | "pseudo_product", {
|
|
179
|
+
meta_id: string;
|
|
180
|
+
unit?: "currency" | "units" | undefined;
|
|
181
|
+
}>>;
|
|
182
|
+
minimum_order_quantity: Partial<Record<"UNKNOWN" | "location" | "product" | "sku" | "pseudo_product", {
|
|
183
|
+
meta_id: string;
|
|
184
|
+
unit?: "currency" | "units" | undefined;
|
|
185
|
+
}>>;
|
|
140
186
|
};
|
|
141
187
|
isEnabled?: boolean | undefined;
|
|
142
188
|
updatedAt?: import("luxon").DateTime<true> | import("luxon").DateTime<false> | undefined;
|
|
@@ -348,8 +394,8 @@ export declare const ContentOptimizationRefinementResponseSchema: z.ZodPipe<z.Zo
|
|
|
348
394
|
updatedAt?: import("luxon").DateTime<true> | import("luxon").DateTime<false> | undefined;
|
|
349
395
|
}>>;
|
|
350
396
|
export declare const resourceKeyTranslation: z.ZodEnum<{
|
|
351
|
-
product_description_html: "product_description_html";
|
|
352
397
|
product_name: "product_name";
|
|
398
|
+
product_description_html: "product_description_html";
|
|
353
399
|
seo_title: "seo_title";
|
|
354
400
|
seo_description: "seo_description";
|
|
355
401
|
}>;
|
|
@@ -473,8 +519,8 @@ export declare const ContentOptimizationTranslationResponseSchema: z.ZodPipe<z.Z
|
|
|
473
519
|
content_optimization_translate_product_description_html: z.ZodObject<{
|
|
474
520
|
product_description_html: z.ZodObject<{
|
|
475
521
|
name: z.ZodEnum<{
|
|
476
|
-
product_description_html: "product_description_html";
|
|
477
522
|
product_name: "product_name";
|
|
523
|
+
product_description_html: "product_description_html";
|
|
478
524
|
seo_title: "seo_title";
|
|
479
525
|
seo_description: "seo_description";
|
|
480
526
|
}>;
|
|
@@ -482,8 +528,8 @@ export declare const ContentOptimizationTranslationResponseSchema: z.ZodPipe<z.Z
|
|
|
482
528
|
}, z.core.$strip>;
|
|
483
529
|
product_name: z.ZodObject<{
|
|
484
530
|
name: z.ZodEnum<{
|
|
485
|
-
product_description_html: "product_description_html";
|
|
486
531
|
product_name: "product_name";
|
|
532
|
+
product_description_html: "product_description_html";
|
|
487
533
|
seo_title: "seo_title";
|
|
488
534
|
seo_description: "seo_description";
|
|
489
535
|
}>;
|
|
@@ -493,8 +539,8 @@ export declare const ContentOptimizationTranslationResponseSchema: z.ZodPipe<z.Z
|
|
|
493
539
|
content_optimization_translate_seo: z.ZodOptional<z.ZodObject<{
|
|
494
540
|
seo_title: z.ZodObject<{
|
|
495
541
|
name: z.ZodEnum<{
|
|
496
|
-
product_description_html: "product_description_html";
|
|
497
542
|
product_name: "product_name";
|
|
543
|
+
product_description_html: "product_description_html";
|
|
498
544
|
seo_title: "seo_title";
|
|
499
545
|
seo_description: "seo_description";
|
|
500
546
|
}>;
|
|
@@ -502,8 +548,8 @@ export declare const ContentOptimizationTranslationResponseSchema: z.ZodPipe<z.Z
|
|
|
502
548
|
}, z.core.$strip>;
|
|
503
549
|
seo_description: z.ZodObject<{
|
|
504
550
|
name: z.ZodEnum<{
|
|
505
|
-
product_description_html: "product_description_html";
|
|
506
551
|
product_name: "product_name";
|
|
552
|
+
product_description_html: "product_description_html";
|
|
507
553
|
seo_title: "seo_title";
|
|
508
554
|
seo_description: "seo_description";
|
|
509
555
|
}>;
|
|
@@ -518,21 +564,21 @@ export declare const ContentOptimizationTranslationResponseSchema: z.ZodPipe<z.Z
|
|
|
518
564
|
translation_fields: {
|
|
519
565
|
content_optimization_translate_product_description_html: {
|
|
520
566
|
product_description_html: {
|
|
521
|
-
name: "
|
|
567
|
+
name: "product_name" | "product_description_html" | "seo_title" | "seo_description";
|
|
522
568
|
enabled: boolean;
|
|
523
569
|
};
|
|
524
570
|
product_name: {
|
|
525
|
-
name: "
|
|
571
|
+
name: "product_name" | "product_description_html" | "seo_title" | "seo_description";
|
|
526
572
|
enabled: boolean;
|
|
527
573
|
};
|
|
528
574
|
};
|
|
529
575
|
content_optimization_translate_seo?: {
|
|
530
576
|
seo_title: {
|
|
531
|
-
name: "
|
|
577
|
+
name: "product_name" | "product_description_html" | "seo_title" | "seo_description";
|
|
532
578
|
enabled: boolean;
|
|
533
579
|
};
|
|
534
580
|
seo_description: {
|
|
535
|
-
name: "
|
|
581
|
+
name: "product_name" | "product_description_html" | "seo_title" | "seo_description";
|
|
536
582
|
enabled: boolean;
|
|
537
583
|
};
|
|
538
584
|
} | undefined;
|
|
@@ -547,21 +593,21 @@ export declare const ContentOptimizationTranslationResponseSchema: z.ZodPipe<z.Z
|
|
|
547
593
|
translation_fields: {
|
|
548
594
|
content_optimization_translate_product_description_html: {
|
|
549
595
|
product_description_html: {
|
|
550
|
-
name: "
|
|
596
|
+
name: "product_name" | "product_description_html" | "seo_title" | "seo_description";
|
|
551
597
|
enabled: boolean;
|
|
552
598
|
};
|
|
553
599
|
product_name: {
|
|
554
|
-
name: "
|
|
600
|
+
name: "product_name" | "product_description_html" | "seo_title" | "seo_description";
|
|
555
601
|
enabled: boolean;
|
|
556
602
|
};
|
|
557
603
|
};
|
|
558
604
|
content_optimization_translate_seo?: {
|
|
559
605
|
seo_title: {
|
|
560
|
-
name: "
|
|
606
|
+
name: "product_name" | "product_description_html" | "seo_title" | "seo_description";
|
|
561
607
|
enabled: boolean;
|
|
562
608
|
};
|
|
563
609
|
seo_description: {
|
|
564
|
-
name: "
|
|
610
|
+
name: "product_name" | "product_description_html" | "seo_title" | "seo_description";
|
|
565
611
|
enabled: boolean;
|
|
566
612
|
};
|
|
567
613
|
} | undefined;
|
|
@@ -1173,8 +1219,8 @@ export declare const SettingsSchemas: {
|
|
|
1173
1219
|
content_optimization_translate_product_description_html: z.ZodObject<{
|
|
1174
1220
|
product_description_html: z.ZodObject<{
|
|
1175
1221
|
name: z.ZodEnum<{
|
|
1176
|
-
product_description_html: "product_description_html";
|
|
1177
1222
|
product_name: "product_name";
|
|
1223
|
+
product_description_html: "product_description_html";
|
|
1178
1224
|
seo_title: "seo_title";
|
|
1179
1225
|
seo_description: "seo_description";
|
|
1180
1226
|
}>;
|
|
@@ -1182,8 +1228,8 @@ export declare const SettingsSchemas: {
|
|
|
1182
1228
|
}, z.core.$strip>;
|
|
1183
1229
|
product_name: z.ZodObject<{
|
|
1184
1230
|
name: z.ZodEnum<{
|
|
1185
|
-
product_description_html: "product_description_html";
|
|
1186
1231
|
product_name: "product_name";
|
|
1232
|
+
product_description_html: "product_description_html";
|
|
1187
1233
|
seo_title: "seo_title";
|
|
1188
1234
|
seo_description: "seo_description";
|
|
1189
1235
|
}>;
|
|
@@ -1193,8 +1239,8 @@ export declare const SettingsSchemas: {
|
|
|
1193
1239
|
content_optimization_translate_seo: z.ZodOptional<z.ZodObject<{
|
|
1194
1240
|
seo_title: z.ZodObject<{
|
|
1195
1241
|
name: z.ZodEnum<{
|
|
1196
|
-
product_description_html: "product_description_html";
|
|
1197
1242
|
product_name: "product_name";
|
|
1243
|
+
product_description_html: "product_description_html";
|
|
1198
1244
|
seo_title: "seo_title";
|
|
1199
1245
|
seo_description: "seo_description";
|
|
1200
1246
|
}>;
|
|
@@ -1202,8 +1248,8 @@ export declare const SettingsSchemas: {
|
|
|
1202
1248
|
}, z.core.$strip>;
|
|
1203
1249
|
seo_description: z.ZodObject<{
|
|
1204
1250
|
name: z.ZodEnum<{
|
|
1205
|
-
product_description_html: "product_description_html";
|
|
1206
1251
|
product_name: "product_name";
|
|
1252
|
+
product_description_html: "product_description_html";
|
|
1207
1253
|
seo_title: "seo_title";
|
|
1208
1254
|
seo_description: "seo_description";
|
|
1209
1255
|
}>;
|
|
@@ -1218,21 +1264,21 @@ export declare const SettingsSchemas: {
|
|
|
1218
1264
|
translation_fields: {
|
|
1219
1265
|
content_optimization_translate_product_description_html: {
|
|
1220
1266
|
product_description_html: {
|
|
1221
|
-
name: "
|
|
1267
|
+
name: "product_name" | "product_description_html" | "seo_title" | "seo_description";
|
|
1222
1268
|
enabled: boolean;
|
|
1223
1269
|
};
|
|
1224
1270
|
product_name: {
|
|
1225
|
-
name: "
|
|
1271
|
+
name: "product_name" | "product_description_html" | "seo_title" | "seo_description";
|
|
1226
1272
|
enabled: boolean;
|
|
1227
1273
|
};
|
|
1228
1274
|
};
|
|
1229
1275
|
content_optimization_translate_seo?: {
|
|
1230
1276
|
seo_title: {
|
|
1231
|
-
name: "
|
|
1277
|
+
name: "product_name" | "product_description_html" | "seo_title" | "seo_description";
|
|
1232
1278
|
enabled: boolean;
|
|
1233
1279
|
};
|
|
1234
1280
|
seo_description: {
|
|
1235
|
-
name: "
|
|
1281
|
+
name: "product_name" | "product_description_html" | "seo_title" | "seo_description";
|
|
1236
1282
|
enabled: boolean;
|
|
1237
1283
|
};
|
|
1238
1284
|
} | undefined;
|
|
@@ -1247,21 +1293,21 @@ export declare const SettingsSchemas: {
|
|
|
1247
1293
|
translation_fields: {
|
|
1248
1294
|
content_optimization_translate_product_description_html: {
|
|
1249
1295
|
product_description_html: {
|
|
1250
|
-
name: "
|
|
1296
|
+
name: "product_name" | "product_description_html" | "seo_title" | "seo_description";
|
|
1251
1297
|
enabled: boolean;
|
|
1252
1298
|
};
|
|
1253
1299
|
product_name: {
|
|
1254
|
-
name: "
|
|
1300
|
+
name: "product_name" | "product_description_html" | "seo_title" | "seo_description";
|
|
1255
1301
|
enabled: boolean;
|
|
1256
1302
|
};
|
|
1257
1303
|
};
|
|
1258
1304
|
content_optimization_translate_seo?: {
|
|
1259
1305
|
seo_title: {
|
|
1260
|
-
name: "
|
|
1306
|
+
name: "product_name" | "product_description_html" | "seo_title" | "seo_description";
|
|
1261
1307
|
enabled: boolean;
|
|
1262
1308
|
};
|
|
1263
1309
|
seo_description: {
|
|
1264
|
-
name: "
|
|
1310
|
+
name: "product_name" | "product_description_html" | "seo_title" | "seo_description";
|
|
1265
1311
|
enabled: boolean;
|
|
1266
1312
|
};
|
|
1267
1313
|
} | undefined;
|
|
@@ -1412,20 +1458,32 @@ export declare const SettingsSchemas: {
|
|
|
1412
1458
|
maximum_periods: z.ZodNumber;
|
|
1413
1459
|
discount_rate: z.ZodNumber;
|
|
1414
1460
|
min_return_on_investment: z.ZodNumber;
|
|
1415
|
-
bundle_size: z.
|
|
1416
|
-
|
|
1417
|
-
|
|
1461
|
+
bundle_size: z.ZodRecord<z.ZodCatch<z.ZodEnum<{
|
|
1462
|
+
UNKNOWN: "UNKNOWN";
|
|
1463
|
+
location: "location";
|
|
1464
|
+
product: "product";
|
|
1465
|
+
sku: "sku";
|
|
1466
|
+
pseudo_product: "pseudo_product";
|
|
1467
|
+
}>> & z.core.$partial, z.ZodObject<{
|
|
1468
|
+
meta_id: z.ZodString;
|
|
1469
|
+
unit: z.ZodOptional<z.ZodEnum<{
|
|
1418
1470
|
currency: "currency";
|
|
1419
1471
|
units: "units";
|
|
1420
|
-
}
|
|
1421
|
-
}, z.core.$strip
|
|
1422
|
-
minimum_order_quantity: z.
|
|
1423
|
-
|
|
1424
|
-
|
|
1472
|
+
}>>;
|
|
1473
|
+
}, z.core.$strip>>;
|
|
1474
|
+
minimum_order_quantity: z.ZodRecord<z.ZodCatch<z.ZodEnum<{
|
|
1475
|
+
UNKNOWN: "UNKNOWN";
|
|
1476
|
+
location: "location";
|
|
1477
|
+
product: "product";
|
|
1478
|
+
sku: "sku";
|
|
1479
|
+
pseudo_product: "pseudo_product";
|
|
1480
|
+
}>> & z.core.$partial, z.ZodObject<{
|
|
1481
|
+
meta_id: z.ZodString;
|
|
1482
|
+
unit: z.ZodOptional<z.ZodEnum<{
|
|
1425
1483
|
currency: "currency";
|
|
1426
1484
|
units: "units";
|
|
1427
|
-
}
|
|
1428
|
-
}, z.core.$strip
|
|
1485
|
+
}>>;
|
|
1486
|
+
}, z.core.$strip>>;
|
|
1429
1487
|
}, z.core.$strip>;
|
|
1430
1488
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1431
1489
|
lead_time_days: number;
|
|
@@ -1438,14 +1496,14 @@ export declare const SettingsSchemas: {
|
|
|
1438
1496
|
maximum_periods: number;
|
|
1439
1497
|
discount_rate: number;
|
|
1440
1498
|
min_return_on_investment: number;
|
|
1441
|
-
bundle_size: {
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
}
|
|
1445
|
-
minimum_order_quantity: {
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
}
|
|
1499
|
+
bundle_size: Partial<Record<"UNKNOWN" | "location" | "product" | "sku" | "pseudo_product", {
|
|
1500
|
+
meta_id: string;
|
|
1501
|
+
unit?: "currency" | "units" | undefined;
|
|
1502
|
+
}>>;
|
|
1503
|
+
minimum_order_quantity: Partial<Record<"UNKNOWN" | "location" | "product" | "sku" | "pseudo_product", {
|
|
1504
|
+
meta_id: string;
|
|
1505
|
+
unit?: "currency" | "units" | undefined;
|
|
1506
|
+
}>>;
|
|
1449
1507
|
}, {
|
|
1450
1508
|
id: string;
|
|
1451
1509
|
accountId: string;
|
|
@@ -1460,14 +1518,14 @@ export declare const SettingsSchemas: {
|
|
|
1460
1518
|
maximum_periods: number;
|
|
1461
1519
|
discount_rate: number;
|
|
1462
1520
|
min_return_on_investment: number;
|
|
1463
|
-
bundle_size: {
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
}
|
|
1467
|
-
minimum_order_quantity: {
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
}
|
|
1521
|
+
bundle_size: Partial<Record<"UNKNOWN" | "location" | "product" | "sku" | "pseudo_product", {
|
|
1522
|
+
meta_id: string;
|
|
1523
|
+
unit?: "currency" | "units" | undefined;
|
|
1524
|
+
}>>;
|
|
1525
|
+
minimum_order_quantity: Partial<Record<"UNKNOWN" | "location" | "product" | "sku" | "pseudo_product", {
|
|
1526
|
+
meta_id: string;
|
|
1527
|
+
unit?: "currency" | "units" | undefined;
|
|
1528
|
+
}>>;
|
|
1471
1529
|
};
|
|
1472
1530
|
isEnabled?: boolean | undefined;
|
|
1473
1531
|
updatedAt?: import("luxon").DateTime<true> | import("luxon").DateTime<false> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accountSettings.d.ts","sourceRoot":"","sources":["../../../src/zod/account-settings/accountSettings.ts"],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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkB3B,CAAC"}
|
|
@@ -2,7 +2,13 @@ import { z } from 'zod';
|
|
|
2
2
|
import { AccountSettingsIdEnum, BaseSettingsResponseSchema } from './base';
|
|
3
3
|
import { supportedLanguageCodes } from '../../constants';
|
|
4
4
|
import { SupportedCurrencySchema } from '../../constants';
|
|
5
|
-
|
|
5
|
+
import { ObjectScopedRecommendationObjectClassSchema } from '../recommendations';
|
|
6
|
+
export const MetaFieldUnitEnum = z.enum(['units', 'currency']).optional();
|
|
7
|
+
export const MetaFieldUnitMappingShema = z.object({
|
|
8
|
+
meta_id: z.string(),
|
|
9
|
+
unit: MetaFieldUnitEnum,
|
|
10
|
+
});
|
|
11
|
+
export const ObjectScopedMetaReferenceSchema = z.partialRecord(ObjectScopedRecommendationObjectClassSchema, MetaFieldUnitMappingShema);
|
|
6
12
|
export const InventoryOptimizationValueSchema = z.object({
|
|
7
13
|
lead_time_days: z.number(),
|
|
8
14
|
stockout_cost_ratio: z.number(),
|
|
@@ -14,14 +20,8 @@ export const InventoryOptimizationValueSchema = z.object({
|
|
|
14
20
|
maximum_periods: z.number(),
|
|
15
21
|
discount_rate: z.number(),
|
|
16
22
|
min_return_on_investment: z.number(),
|
|
17
|
-
bundle_size:
|
|
18
|
-
|
|
19
|
-
unit: UnitsOrCurrencyEnum,
|
|
20
|
-
}),
|
|
21
|
-
minimum_order_quantity: z.object({
|
|
22
|
-
meta_id: z.string().optional(),
|
|
23
|
-
unit: UnitsOrCurrencyEnum,
|
|
24
|
-
}),
|
|
23
|
+
bundle_size: ObjectScopedMetaReferenceSchema,
|
|
24
|
+
minimum_order_quantity: ObjectScopedMetaReferenceSchema,
|
|
25
25
|
});
|
|
26
26
|
export const InventoryOptimizationResponseSchema = BaseSettingsResponseSchema.extend({
|
|
27
27
|
value: InventoryOptimizationValueSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accountSettings.js","sourceRoot":"","sources":["../../../src/zod/account-settings/accountSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,EAAC,qBAAqB,EAAE,0BAA0B,EAAC,MAAM,QAAQ,CAAC;AACzE,OAAO,EAAC,sBAAsB,EAAC,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAC,uBAAuB,EAAC,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"accountSettings.js","sourceRoot":"","sources":["../../../src/zod/account-settings/accountSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,EAAC,qBAAqB,EAAE,0BAA0B,EAAC,MAAM,QAAQ,CAAC;AACzE,OAAO,EAAC,sBAAsB,EAAC,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAC,uBAAuB,EAAC,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAC,2CAA2C,EAAC,MAAM,oBAAoB,CAAC;AAoC/E,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;AAG1E,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,iBAAiB;CACxB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,aAAa,CAAC,2CAA2C,EAAE,yBAAyB,CAAC,CAAC;AAIvI,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IACvD,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC/B,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,gBAAgB,EAAE,CAAC,CAAC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C,qBAAqB,CAAC,uBAAuB,CAAC,EAAE,6BAA6B;IAC9E,CAAC,qBAAqB,CAAC,oBAAoB,CAAC,EAAE,yBAAyB;IACvE,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE,qBAAqB;IACtD,CAAC,qBAAqB,CAAC,oBAAoB,CAAC,EAAE,iCAAiC;CAChF,CAAC"}
|
|
@@ -2,8 +2,8 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const allContentAnalyticsIds: readonly ["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"];
|
|
3
3
|
export declare const ContentOptimizationAnalyticsIds: z.ZodEnum<{
|
|
4
4
|
content_optimization_write_seo: "content_optimization_write_seo";
|
|
5
|
-
content_optimization_translate_product_description_html: "content_optimization_translate_product_description_html";
|
|
6
5
|
content_optimization_refine_product_description_html: "content_optimization_refine_product_description_html";
|
|
6
|
+
content_optimization_translate_product_description_html: "content_optimization_translate_product_description_html";
|
|
7
7
|
content_optimization_write_product_description_html: "content_optimization_write_product_description_html";
|
|
8
8
|
content_optimization_reduce_similarity_product_description_html: "content_optimization_reduce_similarity_product_description_html";
|
|
9
9
|
}>;
|
|
@@ -16,8 +16,8 @@ export declare const LocationAnalyticsIds: z.ZodEnum<{
|
|
|
16
16
|
export type LocationAnalyticsIdsType = z.infer<typeof LocationAnalyticsIds>;
|
|
17
17
|
export declare const AllAnalyticsIdsSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
18
18
|
content_optimization_write_seo: "content_optimization_write_seo";
|
|
19
|
-
content_optimization_translate_product_description_html: "content_optimization_translate_product_description_html";
|
|
20
19
|
content_optimization_refine_product_description_html: "content_optimization_refine_product_description_html";
|
|
20
|
+
content_optimization_translate_product_description_html: "content_optimization_translate_product_description_html";
|
|
21
21
|
content_optimization_write_product_description_html: "content_optimization_write_product_description_html";
|
|
22
22
|
content_optimization_reduce_similarity_product_description_html: "content_optimization_reduce_similarity_product_description_html";
|
|
23
23
|
}>, z.ZodEnum<{
|
|
@@ -54,8 +54,8 @@ export declare const ObjectScopedRecommendationV2Schema: z.ZodObject<{
|
|
|
54
54
|
accountId: z.ZodString;
|
|
55
55
|
analyticsId: z.ZodUnion<readonly [z.ZodEnum<{
|
|
56
56
|
content_optimization_write_seo: "content_optimization_write_seo";
|
|
57
|
-
content_optimization_translate_product_description_html: "content_optimization_translate_product_description_html";
|
|
58
57
|
content_optimization_refine_product_description_html: "content_optimization_refine_product_description_html";
|
|
58
|
+
content_optimization_translate_product_description_html: "content_optimization_translate_product_description_html";
|
|
59
59
|
content_optimization_write_product_description_html: "content_optimization_write_product_description_html";
|
|
60
60
|
content_optimization_reduce_similarity_product_description_html: "content_optimization_reduce_similarity_product_description_html";
|
|
61
61
|
}>, z.ZodEnum<{
|
|
@@ -41,8 +41,8 @@ export declare const ContentOptimizationRecommendationBaseSchema: z.ZodObject<{
|
|
|
41
41
|
accountId: z.ZodString;
|
|
42
42
|
analyticsId: z.ZodUnion<readonly [z.ZodEnum<{
|
|
43
43
|
content_optimization_write_seo: "content_optimization_write_seo";
|
|
44
|
-
content_optimization_translate_product_description_html: "content_optimization_translate_product_description_html";
|
|
45
44
|
content_optimization_refine_product_description_html: "content_optimization_refine_product_description_html";
|
|
45
|
+
content_optimization_translate_product_description_html: "content_optimization_translate_product_description_html";
|
|
46
46
|
content_optimization_write_product_description_html: "content_optimization_write_product_description_html";
|
|
47
47
|
content_optimization_reduce_similarity_product_description_html: "content_optimization_reduce_similarity_product_description_html";
|
|
48
48
|
}>, z.ZodEnum<{
|
|
@@ -131,7 +131,7 @@ type ContentOptimizationRecommendation = z.infer<typeof ContentOptimizationRecom
|
|
|
131
131
|
export declare const computeOutputData: (data: ContentOptimizationRecommendation) => {
|
|
132
132
|
outputData: string;
|
|
133
133
|
accountId: string;
|
|
134
|
-
analyticsId: "content_optimization_write_seo" | "
|
|
134
|
+
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";
|
|
135
135
|
objectClass: "UNKNOWN" | "location" | "product" | "sku" | "pseudo_product";
|
|
136
136
|
objectId: string;
|
|
137
137
|
category: string;
|
|
@@ -193,8 +193,8 @@ export declare const ContentOptimizationRecommendationSchema: z.ZodPipe<z.ZodObj
|
|
|
193
193
|
accountId: z.ZodString;
|
|
194
194
|
analyticsId: z.ZodUnion<readonly [z.ZodEnum<{
|
|
195
195
|
content_optimization_write_seo: "content_optimization_write_seo";
|
|
196
|
-
content_optimization_translate_product_description_html: "content_optimization_translate_product_description_html";
|
|
197
196
|
content_optimization_refine_product_description_html: "content_optimization_refine_product_description_html";
|
|
197
|
+
content_optimization_translate_product_description_html: "content_optimization_translate_product_description_html";
|
|
198
198
|
content_optimization_write_product_description_html: "content_optimization_write_product_description_html";
|
|
199
199
|
content_optimization_reduce_similarity_product_description_html: "content_optimization_reduce_similarity_product_description_html";
|
|
200
200
|
}>, z.ZodEnum<{
|
|
@@ -281,7 +281,7 @@ export declare const ContentOptimizationRecommendationSchema: z.ZodPipe<z.ZodObj
|
|
|
281
281
|
}, z.core.$strip>, z.ZodTransform<{
|
|
282
282
|
outputData: string;
|
|
283
283
|
accountId: string;
|
|
284
|
-
analyticsId: "content_optimization_write_seo" | "
|
|
284
|
+
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";
|
|
285
285
|
objectClass: "UNKNOWN" | "location" | "product" | "sku" | "pseudo_product";
|
|
286
286
|
objectId: string;
|
|
287
287
|
category: string;
|
|
@@ -340,7 +340,7 @@ export declare const ContentOptimizationRecommendationSchema: z.ZodPipe<z.ZodObj
|
|
|
340
340
|
} | undefined;
|
|
341
341
|
}, {
|
|
342
342
|
accountId: string;
|
|
343
|
-
analyticsId: "content_optimization_write_seo" | "
|
|
343
|
+
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";
|
|
344
344
|
objectClass: "UNKNOWN" | "location" | "product" | "sku" | "pseudo_product";
|
|
345
345
|
objectId: string;
|
|
346
346
|
category: string;
|
|
@@ -19,8 +19,8 @@ export declare const TranslationRecommendationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
19
19
|
accountId: z.ZodString;
|
|
20
20
|
analyticsId: z.ZodUnion<readonly [z.ZodEnum<{
|
|
21
21
|
content_optimization_write_seo: "content_optimization_write_seo";
|
|
22
|
-
content_optimization_translate_product_description_html: "content_optimization_translate_product_description_html";
|
|
23
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
24
|
content_optimization_write_product_description_html: "content_optimization_write_product_description_html";
|
|
25
25
|
content_optimization_reduce_similarity_product_description_html: "content_optimization_reduce_similarity_product_description_html";
|
|
26
26
|
}>, z.ZodEnum<{
|
|
@@ -98,8 +98,8 @@ export declare const TranslationRecommendationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
98
98
|
translatable_content_digest: z.ZodString;
|
|
99
99
|
resource_key: z.ZodCatch<z.ZodEnum<{
|
|
100
100
|
UNKNOWN: "UNKNOWN";
|
|
101
|
-
product_description_html: "product_description_html";
|
|
102
101
|
product_name: "product_name";
|
|
102
|
+
product_description_html: "product_description_html";
|
|
103
103
|
}>>;
|
|
104
104
|
}, z.core.$strip>;
|
|
105
105
|
recommendationData: z.ZodObject<{
|
|
@@ -121,7 +121,7 @@ export declare const TranslationRecommendationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
121
121
|
}, z.core.$strip>, z.ZodTransform<{
|
|
122
122
|
outputData: string;
|
|
123
123
|
accountId: string;
|
|
124
|
-
analyticsId: "content_optimization_write_seo" | "
|
|
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
125
|
objectClass: "UNKNOWN" | "location" | "product" | "sku" | "pseudo_product";
|
|
126
126
|
objectId: string;
|
|
127
127
|
category: string;
|
|
@@ -180,7 +180,7 @@ export declare const TranslationRecommendationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
180
180
|
} | undefined;
|
|
181
181
|
}, {
|
|
182
182
|
accountId: string;
|
|
183
|
-
analyticsId: "content_optimization_write_seo" | "
|
|
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
184
|
objectClass: "UNKNOWN" | "location" | "product" | "sku" | "pseudo_product";
|
|
185
185
|
objectId: string;
|
|
186
186
|
category: string;
|
|
@@ -196,7 +196,7 @@ export declare const TranslationRecommendationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
196
196
|
metadata: {
|
|
197
197
|
chat_history: string;
|
|
198
198
|
translatable_content_digest: string;
|
|
199
|
-
resource_key: "UNKNOWN" | "
|
|
199
|
+
resource_key: "UNKNOWN" | "product_name" | "product_description_html";
|
|
200
200
|
product_information?: {
|
|
201
201
|
is_enabled?: boolean | undefined;
|
|
202
202
|
product_name?: string | undefined;
|