@omni-graph/omni-model 0.6.113-3-g1704536 → 0.6.114
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 +90 -148
- 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,33 +31,11 @@ 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 UnitsOrCurrencyEnum: z.ZodEnum<{
|
|
35
35
|
currency: "currency";
|
|
36
36
|
units: "units";
|
|
37
|
-
}
|
|
38
|
-
export type
|
|
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>;
|
|
37
|
+
}>;
|
|
38
|
+
export type UnitsOrCurrency = z.infer<typeof UnitsOrCurrencyEnum>;
|
|
61
39
|
export declare const InventoryOptimizationValueSchema: z.ZodObject<{
|
|
62
40
|
lead_time_days: z.ZodNumber;
|
|
63
41
|
stockout_cost_ratio: z.ZodNumber;
|
|
@@ -69,32 +47,20 @@ export declare const InventoryOptimizationValueSchema: z.ZodObject<{
|
|
|
69
47
|
maximum_periods: z.ZodNumber;
|
|
70
48
|
discount_rate: z.ZodNumber;
|
|
71
49
|
min_return_on_investment: z.ZodNumber;
|
|
72
|
-
bundle_size: z.
|
|
73
|
-
|
|
74
|
-
|
|
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<{
|
|
50
|
+
bundle_size: z.ZodObject<{
|
|
51
|
+
meta_id: z.ZodOptional<z.ZodString>;
|
|
52
|
+
unit: z.ZodEnum<{
|
|
81
53
|
currency: "currency";
|
|
82
54
|
units: "units";
|
|
83
|
-
}
|
|
84
|
-
}, z.core.$strip
|
|
85
|
-
minimum_order_quantity: z.
|
|
86
|
-
|
|
87
|
-
|
|
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<{
|
|
55
|
+
}>;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
minimum_order_quantity: z.ZodObject<{
|
|
58
|
+
meta_id: z.ZodOptional<z.ZodString>;
|
|
59
|
+
unit: z.ZodEnum<{
|
|
94
60
|
currency: "currency";
|
|
95
61
|
units: "units";
|
|
96
|
-
}
|
|
97
|
-
}, z.core.$strip
|
|
62
|
+
}>;
|
|
63
|
+
}, z.core.$strip>;
|
|
98
64
|
}, z.core.$strip>;
|
|
99
65
|
export type InventoryOptimizationValue = z.infer<typeof InventoryOptimizationValueSchema>;
|
|
100
66
|
export declare const InventoryOptimizationResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
@@ -115,32 +81,20 @@ export declare const InventoryOptimizationResponseSchema: z.ZodPipe<z.ZodObject<
|
|
|
115
81
|
maximum_periods: z.ZodNumber;
|
|
116
82
|
discount_rate: z.ZodNumber;
|
|
117
83
|
min_return_on_investment: z.ZodNumber;
|
|
118
|
-
bundle_size: z.
|
|
119
|
-
|
|
120
|
-
|
|
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<{
|
|
84
|
+
bundle_size: z.ZodObject<{
|
|
85
|
+
meta_id: z.ZodOptional<z.ZodString>;
|
|
86
|
+
unit: z.ZodEnum<{
|
|
127
87
|
currency: "currency";
|
|
128
88
|
units: "units";
|
|
129
|
-
}
|
|
130
|
-
}, z.core.$strip
|
|
131
|
-
minimum_order_quantity: z.
|
|
132
|
-
|
|
133
|
-
|
|
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<{
|
|
89
|
+
}>;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
minimum_order_quantity: z.ZodObject<{
|
|
92
|
+
meta_id: z.ZodOptional<z.ZodString>;
|
|
93
|
+
unit: z.ZodEnum<{
|
|
140
94
|
currency: "currency";
|
|
141
95
|
units: "units";
|
|
142
|
-
}
|
|
143
|
-
}, z.core.$strip
|
|
96
|
+
}>;
|
|
97
|
+
}, z.core.$strip>;
|
|
144
98
|
}, z.core.$strip>;
|
|
145
99
|
}, z.core.$strip>, z.ZodTransform<{
|
|
146
100
|
lead_time_days: number;
|
|
@@ -153,14 +107,14 @@ export declare const InventoryOptimizationResponseSchema: z.ZodPipe<z.ZodObject<
|
|
|
153
107
|
maximum_periods: number;
|
|
154
108
|
discount_rate: number;
|
|
155
109
|
min_return_on_investment: number;
|
|
156
|
-
bundle_size:
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
160
|
-
minimum_order_quantity:
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
}
|
|
110
|
+
bundle_size: {
|
|
111
|
+
unit: "currency" | "units";
|
|
112
|
+
meta_id?: string | undefined;
|
|
113
|
+
};
|
|
114
|
+
minimum_order_quantity: {
|
|
115
|
+
unit: "currency" | "units";
|
|
116
|
+
meta_id?: string | undefined;
|
|
117
|
+
};
|
|
164
118
|
}, {
|
|
165
119
|
id: string;
|
|
166
120
|
accountId: string;
|
|
@@ -175,14 +129,14 @@ export declare const InventoryOptimizationResponseSchema: z.ZodPipe<z.ZodObject<
|
|
|
175
129
|
maximum_periods: number;
|
|
176
130
|
discount_rate: number;
|
|
177
131
|
min_return_on_investment: number;
|
|
178
|
-
bundle_size:
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}
|
|
182
|
-
minimum_order_quantity:
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}
|
|
132
|
+
bundle_size: {
|
|
133
|
+
unit: "currency" | "units";
|
|
134
|
+
meta_id?: string | undefined;
|
|
135
|
+
};
|
|
136
|
+
minimum_order_quantity: {
|
|
137
|
+
unit: "currency" | "units";
|
|
138
|
+
meta_id?: string | undefined;
|
|
139
|
+
};
|
|
186
140
|
};
|
|
187
141
|
isEnabled?: boolean | undefined;
|
|
188
142
|
updatedAt?: import("luxon").DateTime<true> | import("luxon").DateTime<false> | undefined;
|
|
@@ -394,8 +348,8 @@ export declare const ContentOptimizationRefinementResponseSchema: z.ZodPipe<z.Zo
|
|
|
394
348
|
updatedAt?: import("luxon").DateTime<true> | import("luxon").DateTime<false> | undefined;
|
|
395
349
|
}>>;
|
|
396
350
|
export declare const resourceKeyTranslation: z.ZodEnum<{
|
|
397
|
-
product_name: "product_name";
|
|
398
351
|
product_description_html: "product_description_html";
|
|
352
|
+
product_name: "product_name";
|
|
399
353
|
seo_title: "seo_title";
|
|
400
354
|
seo_description: "seo_description";
|
|
401
355
|
}>;
|
|
@@ -519,8 +473,8 @@ export declare const ContentOptimizationTranslationResponseSchema: z.ZodPipe<z.Z
|
|
|
519
473
|
content_optimization_translate_product_description_html: z.ZodObject<{
|
|
520
474
|
product_description_html: z.ZodObject<{
|
|
521
475
|
name: z.ZodEnum<{
|
|
522
|
-
product_name: "product_name";
|
|
523
476
|
product_description_html: "product_description_html";
|
|
477
|
+
product_name: "product_name";
|
|
524
478
|
seo_title: "seo_title";
|
|
525
479
|
seo_description: "seo_description";
|
|
526
480
|
}>;
|
|
@@ -528,8 +482,8 @@ export declare const ContentOptimizationTranslationResponseSchema: z.ZodPipe<z.Z
|
|
|
528
482
|
}, z.core.$strip>;
|
|
529
483
|
product_name: z.ZodObject<{
|
|
530
484
|
name: z.ZodEnum<{
|
|
531
|
-
product_name: "product_name";
|
|
532
485
|
product_description_html: "product_description_html";
|
|
486
|
+
product_name: "product_name";
|
|
533
487
|
seo_title: "seo_title";
|
|
534
488
|
seo_description: "seo_description";
|
|
535
489
|
}>;
|
|
@@ -539,8 +493,8 @@ export declare const ContentOptimizationTranslationResponseSchema: z.ZodPipe<z.Z
|
|
|
539
493
|
content_optimization_translate_seo: z.ZodOptional<z.ZodObject<{
|
|
540
494
|
seo_title: z.ZodObject<{
|
|
541
495
|
name: z.ZodEnum<{
|
|
542
|
-
product_name: "product_name";
|
|
543
496
|
product_description_html: "product_description_html";
|
|
497
|
+
product_name: "product_name";
|
|
544
498
|
seo_title: "seo_title";
|
|
545
499
|
seo_description: "seo_description";
|
|
546
500
|
}>;
|
|
@@ -548,8 +502,8 @@ export declare const ContentOptimizationTranslationResponseSchema: z.ZodPipe<z.Z
|
|
|
548
502
|
}, z.core.$strip>;
|
|
549
503
|
seo_description: z.ZodObject<{
|
|
550
504
|
name: z.ZodEnum<{
|
|
551
|
-
product_name: "product_name";
|
|
552
505
|
product_description_html: "product_description_html";
|
|
506
|
+
product_name: "product_name";
|
|
553
507
|
seo_title: "seo_title";
|
|
554
508
|
seo_description: "seo_description";
|
|
555
509
|
}>;
|
|
@@ -564,21 +518,21 @@ export declare const ContentOptimizationTranslationResponseSchema: z.ZodPipe<z.Z
|
|
|
564
518
|
translation_fields: {
|
|
565
519
|
content_optimization_translate_product_description_html: {
|
|
566
520
|
product_description_html: {
|
|
567
|
-
name: "
|
|
521
|
+
name: "product_description_html" | "product_name" | "seo_title" | "seo_description";
|
|
568
522
|
enabled: boolean;
|
|
569
523
|
};
|
|
570
524
|
product_name: {
|
|
571
|
-
name: "
|
|
525
|
+
name: "product_description_html" | "product_name" | "seo_title" | "seo_description";
|
|
572
526
|
enabled: boolean;
|
|
573
527
|
};
|
|
574
528
|
};
|
|
575
529
|
content_optimization_translate_seo?: {
|
|
576
530
|
seo_title: {
|
|
577
|
-
name: "
|
|
531
|
+
name: "product_description_html" | "product_name" | "seo_title" | "seo_description";
|
|
578
532
|
enabled: boolean;
|
|
579
533
|
};
|
|
580
534
|
seo_description: {
|
|
581
|
-
name: "
|
|
535
|
+
name: "product_description_html" | "product_name" | "seo_title" | "seo_description";
|
|
582
536
|
enabled: boolean;
|
|
583
537
|
};
|
|
584
538
|
} | undefined;
|
|
@@ -593,21 +547,21 @@ export declare const ContentOptimizationTranslationResponseSchema: z.ZodPipe<z.Z
|
|
|
593
547
|
translation_fields: {
|
|
594
548
|
content_optimization_translate_product_description_html: {
|
|
595
549
|
product_description_html: {
|
|
596
|
-
name: "
|
|
550
|
+
name: "product_description_html" | "product_name" | "seo_title" | "seo_description";
|
|
597
551
|
enabled: boolean;
|
|
598
552
|
};
|
|
599
553
|
product_name: {
|
|
600
|
-
name: "
|
|
554
|
+
name: "product_description_html" | "product_name" | "seo_title" | "seo_description";
|
|
601
555
|
enabled: boolean;
|
|
602
556
|
};
|
|
603
557
|
};
|
|
604
558
|
content_optimization_translate_seo?: {
|
|
605
559
|
seo_title: {
|
|
606
|
-
name: "
|
|
560
|
+
name: "product_description_html" | "product_name" | "seo_title" | "seo_description";
|
|
607
561
|
enabled: boolean;
|
|
608
562
|
};
|
|
609
563
|
seo_description: {
|
|
610
|
-
name: "
|
|
564
|
+
name: "product_description_html" | "product_name" | "seo_title" | "seo_description";
|
|
611
565
|
enabled: boolean;
|
|
612
566
|
};
|
|
613
567
|
} | undefined;
|
|
@@ -1219,8 +1173,8 @@ export declare const SettingsSchemas: {
|
|
|
1219
1173
|
content_optimization_translate_product_description_html: z.ZodObject<{
|
|
1220
1174
|
product_description_html: z.ZodObject<{
|
|
1221
1175
|
name: z.ZodEnum<{
|
|
1222
|
-
product_name: "product_name";
|
|
1223
1176
|
product_description_html: "product_description_html";
|
|
1177
|
+
product_name: "product_name";
|
|
1224
1178
|
seo_title: "seo_title";
|
|
1225
1179
|
seo_description: "seo_description";
|
|
1226
1180
|
}>;
|
|
@@ -1228,8 +1182,8 @@ export declare const SettingsSchemas: {
|
|
|
1228
1182
|
}, z.core.$strip>;
|
|
1229
1183
|
product_name: z.ZodObject<{
|
|
1230
1184
|
name: z.ZodEnum<{
|
|
1231
|
-
product_name: "product_name";
|
|
1232
1185
|
product_description_html: "product_description_html";
|
|
1186
|
+
product_name: "product_name";
|
|
1233
1187
|
seo_title: "seo_title";
|
|
1234
1188
|
seo_description: "seo_description";
|
|
1235
1189
|
}>;
|
|
@@ -1239,8 +1193,8 @@ export declare const SettingsSchemas: {
|
|
|
1239
1193
|
content_optimization_translate_seo: z.ZodOptional<z.ZodObject<{
|
|
1240
1194
|
seo_title: z.ZodObject<{
|
|
1241
1195
|
name: z.ZodEnum<{
|
|
1242
|
-
product_name: "product_name";
|
|
1243
1196
|
product_description_html: "product_description_html";
|
|
1197
|
+
product_name: "product_name";
|
|
1244
1198
|
seo_title: "seo_title";
|
|
1245
1199
|
seo_description: "seo_description";
|
|
1246
1200
|
}>;
|
|
@@ -1248,8 +1202,8 @@ export declare const SettingsSchemas: {
|
|
|
1248
1202
|
}, z.core.$strip>;
|
|
1249
1203
|
seo_description: z.ZodObject<{
|
|
1250
1204
|
name: z.ZodEnum<{
|
|
1251
|
-
product_name: "product_name";
|
|
1252
1205
|
product_description_html: "product_description_html";
|
|
1206
|
+
product_name: "product_name";
|
|
1253
1207
|
seo_title: "seo_title";
|
|
1254
1208
|
seo_description: "seo_description";
|
|
1255
1209
|
}>;
|
|
@@ -1264,21 +1218,21 @@ export declare const SettingsSchemas: {
|
|
|
1264
1218
|
translation_fields: {
|
|
1265
1219
|
content_optimization_translate_product_description_html: {
|
|
1266
1220
|
product_description_html: {
|
|
1267
|
-
name: "
|
|
1221
|
+
name: "product_description_html" | "product_name" | "seo_title" | "seo_description";
|
|
1268
1222
|
enabled: boolean;
|
|
1269
1223
|
};
|
|
1270
1224
|
product_name: {
|
|
1271
|
-
name: "
|
|
1225
|
+
name: "product_description_html" | "product_name" | "seo_title" | "seo_description";
|
|
1272
1226
|
enabled: boolean;
|
|
1273
1227
|
};
|
|
1274
1228
|
};
|
|
1275
1229
|
content_optimization_translate_seo?: {
|
|
1276
1230
|
seo_title: {
|
|
1277
|
-
name: "
|
|
1231
|
+
name: "product_description_html" | "product_name" | "seo_title" | "seo_description";
|
|
1278
1232
|
enabled: boolean;
|
|
1279
1233
|
};
|
|
1280
1234
|
seo_description: {
|
|
1281
|
-
name: "
|
|
1235
|
+
name: "product_description_html" | "product_name" | "seo_title" | "seo_description";
|
|
1282
1236
|
enabled: boolean;
|
|
1283
1237
|
};
|
|
1284
1238
|
} | undefined;
|
|
@@ -1293,21 +1247,21 @@ export declare const SettingsSchemas: {
|
|
|
1293
1247
|
translation_fields: {
|
|
1294
1248
|
content_optimization_translate_product_description_html: {
|
|
1295
1249
|
product_description_html: {
|
|
1296
|
-
name: "
|
|
1250
|
+
name: "product_description_html" | "product_name" | "seo_title" | "seo_description";
|
|
1297
1251
|
enabled: boolean;
|
|
1298
1252
|
};
|
|
1299
1253
|
product_name: {
|
|
1300
|
-
name: "
|
|
1254
|
+
name: "product_description_html" | "product_name" | "seo_title" | "seo_description";
|
|
1301
1255
|
enabled: boolean;
|
|
1302
1256
|
};
|
|
1303
1257
|
};
|
|
1304
1258
|
content_optimization_translate_seo?: {
|
|
1305
1259
|
seo_title: {
|
|
1306
|
-
name: "
|
|
1260
|
+
name: "product_description_html" | "product_name" | "seo_title" | "seo_description";
|
|
1307
1261
|
enabled: boolean;
|
|
1308
1262
|
};
|
|
1309
1263
|
seo_description: {
|
|
1310
|
-
name: "
|
|
1264
|
+
name: "product_description_html" | "product_name" | "seo_title" | "seo_description";
|
|
1311
1265
|
enabled: boolean;
|
|
1312
1266
|
};
|
|
1313
1267
|
} | undefined;
|
|
@@ -1458,32 +1412,20 @@ export declare const SettingsSchemas: {
|
|
|
1458
1412
|
maximum_periods: z.ZodNumber;
|
|
1459
1413
|
discount_rate: z.ZodNumber;
|
|
1460
1414
|
min_return_on_investment: z.ZodNumber;
|
|
1461
|
-
bundle_size: z.
|
|
1462
|
-
|
|
1463
|
-
|
|
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<{
|
|
1415
|
+
bundle_size: z.ZodObject<{
|
|
1416
|
+
meta_id: z.ZodOptional<z.ZodString>;
|
|
1417
|
+
unit: z.ZodEnum<{
|
|
1470
1418
|
currency: "currency";
|
|
1471
1419
|
units: "units";
|
|
1472
|
-
}
|
|
1473
|
-
}, z.core.$strip
|
|
1474
|
-
minimum_order_quantity: z.
|
|
1475
|
-
|
|
1476
|
-
|
|
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<{
|
|
1420
|
+
}>;
|
|
1421
|
+
}, z.core.$strip>;
|
|
1422
|
+
minimum_order_quantity: z.ZodObject<{
|
|
1423
|
+
meta_id: z.ZodOptional<z.ZodString>;
|
|
1424
|
+
unit: z.ZodEnum<{
|
|
1483
1425
|
currency: "currency";
|
|
1484
1426
|
units: "units";
|
|
1485
|
-
}
|
|
1486
|
-
}, z.core.$strip
|
|
1427
|
+
}>;
|
|
1428
|
+
}, z.core.$strip>;
|
|
1487
1429
|
}, z.core.$strip>;
|
|
1488
1430
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1489
1431
|
lead_time_days: number;
|
|
@@ -1496,14 +1438,14 @@ export declare const SettingsSchemas: {
|
|
|
1496
1438
|
maximum_periods: number;
|
|
1497
1439
|
discount_rate: number;
|
|
1498
1440
|
min_return_on_investment: number;
|
|
1499
|
-
bundle_size:
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
}
|
|
1503
|
-
minimum_order_quantity:
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
}
|
|
1441
|
+
bundle_size: {
|
|
1442
|
+
unit: "currency" | "units";
|
|
1443
|
+
meta_id?: string | undefined;
|
|
1444
|
+
};
|
|
1445
|
+
minimum_order_quantity: {
|
|
1446
|
+
unit: "currency" | "units";
|
|
1447
|
+
meta_id?: string | undefined;
|
|
1448
|
+
};
|
|
1507
1449
|
}, {
|
|
1508
1450
|
id: string;
|
|
1509
1451
|
accountId: string;
|
|
@@ -1518,14 +1460,14 @@ export declare const SettingsSchemas: {
|
|
|
1518
1460
|
maximum_periods: number;
|
|
1519
1461
|
discount_rate: number;
|
|
1520
1462
|
min_return_on_investment: number;
|
|
1521
|
-
bundle_size:
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
}
|
|
1525
|
-
minimum_order_quantity:
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
}
|
|
1463
|
+
bundle_size: {
|
|
1464
|
+
unit: "currency" | "units";
|
|
1465
|
+
meta_id?: string | undefined;
|
|
1466
|
+
};
|
|
1467
|
+
minimum_order_quantity: {
|
|
1468
|
+
unit: "currency" | "units";
|
|
1469
|
+
meta_id?: string | undefined;
|
|
1470
|
+
};
|
|
1529
1471
|
};
|
|
1530
1472
|
isEnabled?: boolean | undefined;
|
|
1531
1473
|
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"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,EAAC,qBAAqB,EAA6B,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"accountSettings.d.ts","sourceRoot":"","sources":["../../../src/zod/account-settings/accountSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,EAAC,qBAAqB,EAA6B,MAAM,QAAQ,CAAC;AAIzE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC5E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,sBAAsB,GAAG,C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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkB3B,CAAC"}
|
|
@@ -2,13 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { AccountSettingsIdEnum, BaseSettingsResponseSchema } from './base';
|
|
3
3
|
import { supportedLanguageCodes } from '../../constants';
|
|
4
4
|
import { SupportedCurrencySchema } from '../../constants';
|
|
5
|
-
|
|
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);
|
|
5
|
+
export const UnitsOrCurrencyEnum = z.enum(['units', 'currency']);
|
|
12
6
|
export const InventoryOptimizationValueSchema = z.object({
|
|
13
7
|
lead_time_days: z.number(),
|
|
14
8
|
stockout_cost_ratio: z.number(),
|
|
@@ -20,8 +14,14 @@ export const InventoryOptimizationValueSchema = z.object({
|
|
|
20
14
|
maximum_periods: z.number(),
|
|
21
15
|
discount_rate: z.number(),
|
|
22
16
|
min_return_on_investment: z.number(),
|
|
23
|
-
bundle_size:
|
|
24
|
-
|
|
17
|
+
bundle_size: z.object({
|
|
18
|
+
meta_id: z.string().optional(),
|
|
19
|
+
unit: UnitsOrCurrencyEnum,
|
|
20
|
+
}),
|
|
21
|
+
minimum_order_quantity: z.object({
|
|
22
|
+
meta_id: z.string().optional(),
|
|
23
|
+
unit: UnitsOrCurrencyEnum,
|
|
24
|
+
}),
|
|
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;AAoCxD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;AAGjE,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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mC;IACnG,CAAC,qBAAqB,CAAC,eAAe,CAAC,EAAE,4BAA4B;IACrE,CAAC,qBAAqB,CAAC,cAAc,CAAC,EAAE,2BAA2B;IACnE,CAAC,qBAAqB,CAAC,mBAAmB,CAAC,EAAE,qBAAqB;IAClE,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,EAAE,qBAAqB;IACjE,CAAC,qBAAqB,CAAC,mBAAmB,CAAC,EAAE,qBAAqB;IAClE,CAAC,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_refine_product_description_html: "content_optimization_refine_product_description_html";
|
|
6
5
|
content_optimization_translate_product_description_html: "content_optimization_translate_product_description_html";
|
|
6
|
+
content_optimization_refine_product_description_html: "content_optimization_refine_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_refine_product_description_html: "content_optimization_refine_product_description_html";
|
|
20
19
|
content_optimization_translate_product_description_html: "content_optimization_translate_product_description_html";
|
|
20
|
+
content_optimization_refine_product_description_html: "content_optimization_refine_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_refine_product_description_html: "content_optimization_refine_product_description_html";
|
|
58
57
|
content_optimization_translate_product_description_html: "content_optimization_translate_product_description_html";
|
|
58
|
+
content_optimization_refine_product_description_html: "content_optimization_refine_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_refine_product_description_html: "content_optimization_refine_product_description_html";
|
|
45
44
|
content_optimization_translate_product_description_html: "content_optimization_translate_product_description_html";
|
|
45
|
+
content_optimization_refine_product_description_html: "content_optimization_refine_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_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";
|
|
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_refine_product_description_html: "content_optimization_refine_product_description_html";
|
|
197
196
|
content_optimization_translate_product_description_html: "content_optimization_translate_product_description_html";
|
|
197
|
+
content_optimization_refine_product_description_html: "content_optimization_refine_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_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";
|
|
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_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";
|
|
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_refine_product_description_html: "content_optimization_refine_product_description_html";
|
|
23
22
|
content_optimization_translate_product_description_html: "content_optimization_translate_product_description_html";
|
|
23
|
+
content_optimization_refine_product_description_html: "content_optimization_refine_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_name: "product_name";
|
|
102
101
|
product_description_html: "product_description_html";
|
|
102
|
+
product_name: "product_name";
|
|
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_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";
|
|
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_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";
|
|
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_description_html" | "product_name";
|
|
200
200
|
product_information?: {
|
|
201
201
|
is_enabled?: boolean | undefined;
|
|
202
202
|
product_name?: string | undefined;
|