@embeddable.com/sdk-core 2.4.21 → 2.4.23

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/index.esm.js CHANGED
@@ -4567,6 +4567,28 @@ async function securityContextValidation(filesList) {
4567
4567
  }
4568
4568
  return errors;
4569
4569
  }
4570
+ var MeasureTypeEnum;
4571
+ (function (MeasureTypeEnum) {
4572
+ MeasureTypeEnum["string"] = "string";
4573
+ MeasureTypeEnum["time"] = "time";
4574
+ MeasureTypeEnum["boolean"] = "boolean";
4575
+ MeasureTypeEnum["number"] = "number";
4576
+ MeasureTypeEnum["count"] = "count";
4577
+ MeasureTypeEnum["count_distinct"] = "count_distinct";
4578
+ MeasureTypeEnum["count_distinct_approx"] = "count_distinct_approx";
4579
+ MeasureTypeEnum["sum"] = "sum";
4580
+ MeasureTypeEnum["avg"] = "avg";
4581
+ MeasureTypeEnum["min"] = "min";
4582
+ MeasureTypeEnum["max"] = "max";
4583
+ })(MeasureTypeEnum || (MeasureTypeEnum = {}));
4584
+ var DimensionTypeEnum;
4585
+ (function (DimensionTypeEnum) {
4586
+ DimensionTypeEnum["string"] = "string";
4587
+ DimensionTypeEnum["time"] = "time";
4588
+ DimensionTypeEnum["boolean"] = "boolean";
4589
+ DimensionTypeEnum["number"] = "number";
4590
+ DimensionTypeEnum["geo"] = "geo";
4591
+ })(DimensionTypeEnum || (DimensionTypeEnum = {}));
4570
4592
  const cubeModelSchema = z
4571
4593
  .object({
4572
4594
  cubes: z
@@ -4575,14 +4597,14 @@ const cubeModelSchema = z
4575
4597
  dimensions: z
4576
4598
  .object({
4577
4599
  name: z.string(),
4578
- type: z.string(),
4600
+ type: z.nativeEnum(DimensionTypeEnum),
4579
4601
  })
4580
4602
  .array()
4581
4603
  .optional(),
4582
4604
  measures: z
4583
4605
  .object({
4584
4606
  name: z.string(),
4585
- type: z.string(),
4607
+ type: z.nativeEnum(MeasureTypeEnum),
4586
4608
  })
4587
4609
  .array()
4588
4610
  .optional(),
@@ -20061,7 +20083,7 @@ var push = async () => {
20061
20083
  const spinnerArchive = ora$1("Building...").start();
20062
20084
  const filesList = await findFiles(config.client.srcDir, YAML_OR_JS_FILES);
20063
20085
  await archive(config, filesList);
20064
- spinnerArchive.succeed("Bundling competed");
20086
+ spinnerArchive.succeed("Bundling completed");
20065
20087
  const spinnerPushing = ora$1(`Publishing to ${workspaceName} using ${config.pushBaseUrl}...`).start();
20066
20088
  await sendBuild(config, { workspaceId, token });
20067
20089
  spinnerPushing.succeed(`Published to ${workspaceName} using ${config.pushBaseUrl}`);