@inf-monkeys-tech/monkeys 1.0.64 → 1.0.65
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/lib/contracts/tenant.d.ts +45 -1
- package/lib/contracts/tenant.d.ts.map +1 -1
- package/lib/contracts/tenant.js +19 -2
- package/lib/contracts/tenant.js.map +1 -1
- package/lib/esm/contracts/index.mjs +16 -1
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +16 -1
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +14 -1
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +16 -1
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/json-schema/tenant-product-config.schema.json +40 -0
- package/lib/json-schema/tenant-runtime-config.schema.json +40 -0
- package/lib/schemas/index.d.ts +17 -1
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +4 -2
- package/lib/schemas/index.js.map +1 -1
- package/package.json +1 -1
- package/test/fixtures/tenant-product-config.public.json +8 -0
package/lib/esm/index.mjs
CHANGED
|
@@ -11662,11 +11662,24 @@ var TenantTrendRadarSourceSchema = z15.object({
|
|
|
11662
11662
|
var TenantTrendRadarCollectionTargetSchema = z15.object({
|
|
11663
11663
|
ontologyId: ContractIdentifierSchema
|
|
11664
11664
|
}).strict();
|
|
11665
|
+
var TenantTrendRadarEvaluationSchema = z15.object({
|
|
11666
|
+
workflowId: ContractIdentifierSchema
|
|
11667
|
+
}).strict();
|
|
11668
|
+
var TenantTrendRadarDerivedMetricsSchema = z15.object({
|
|
11669
|
+
productCountFieldKey: ContractIdentifierSchema,
|
|
11670
|
+
salesValueCountFieldKey: ContractIdentifierSchema,
|
|
11671
|
+
salesSumFieldKey: ContractIdentifierSchema
|
|
11672
|
+
}).strict().refine(
|
|
11673
|
+
({ productCountFieldKey, salesValueCountFieldKey, salesSumFieldKey }) => (/* @__PURE__ */ new Set([productCountFieldKey, salesValueCountFieldKey, salesSumFieldKey])).size === 3,
|
|
11674
|
+
{ message: "Trend Radar derived metric Field Keys must be distinct." }
|
|
11675
|
+
);
|
|
11665
11676
|
var TenantTrendRadarSourcesSchema = z15.object({
|
|
11666
11677
|
products: TenantTrendRadarSourceSchema.optional(),
|
|
11667
11678
|
hotwords: TenantTrendRadarSourceSchema.optional(),
|
|
11668
11679
|
brands: TenantTrendRadarSourceSchema.optional(),
|
|
11669
|
-
collection: TenantTrendRadarCollectionTargetSchema.optional()
|
|
11680
|
+
collection: TenantTrendRadarCollectionTargetSchema.optional(),
|
|
11681
|
+
derivedMetrics: TenantTrendRadarDerivedMetricsSchema.optional(),
|
|
11682
|
+
evaluation: TenantTrendRadarEvaluationSchema.optional()
|
|
11670
11683
|
}).strict();
|
|
11671
11684
|
var AssetVariantsSchema = z15.object({
|
|
11672
11685
|
light: z15.string().optional(),
|
|
@@ -15354,6 +15367,8 @@ export {
|
|
|
15354
15367
|
TenantProductConfigSchema,
|
|
15355
15368
|
TenantRuntimeConfigSchema,
|
|
15356
15369
|
TenantTrendRadarCollectionTargetSchema,
|
|
15370
|
+
TenantTrendRadarDerivedMetricsSchema,
|
|
15371
|
+
TenantTrendRadarEvaluationSchema,
|
|
15357
15372
|
TenantTrendRadarSourceSchema,
|
|
15358
15373
|
TenantTrendRadarSourcesSchema,
|
|
15359
15374
|
TenantWorkbenchConfigSchema,
|