@tightknitai/slack-block-kit-validator 0.1.12 → 0.1.14

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.
@@ -18285,44 +18285,53 @@ function validate275(data, { instancePath = "", parentData, parentDataProperty,
18285
18285
  if (data3.categories !== void 0) {
18286
18286
  let data4 = data3.categories;
18287
18287
  if (Array.isArray(data4)) {
18288
+ if (data4.length > 20) {
18289
+ const err10 = { instancePath: instancePath + "/axis_config/categories", schemaPath: "#/$defs/data_visualization_axis_config/properties/categories/maxItems", keyword: "maxItems", params: { limit: 20 }, message: "must NOT have more than 20 items" };
18290
+ if (vErrors === null) {
18291
+ vErrors = [err10];
18292
+ } else {
18293
+ vErrors.push(err10);
18294
+ }
18295
+ errors++;
18296
+ }
18288
18297
  const len1 = data4.length;
18289
18298
  for (let i1 = 0; i1 < len1; i1++) {
18290
18299
  let data5 = data4[i1];
18291
18300
  if (typeof data5 === "string") {
18292
18301
  if (func1(data5) > 20) {
18293
- const err10 = { instancePath: instancePath + "/axis_config/categories/" + i1, schemaPath: "#/$defs/data_visualization_axis_config/properties/categories/items/maxLength", keyword: "maxLength", params: { limit: 20 }, message: "must NOT have more than 20 characters" };
18302
+ const err11 = { instancePath: instancePath + "/axis_config/categories/" + i1, schemaPath: "#/$defs/data_visualization_axis_config/properties/categories/items/maxLength", keyword: "maxLength", params: { limit: 20 }, message: "must NOT have more than 20 characters" };
18294
18303
  if (vErrors === null) {
18295
- vErrors = [err10];
18304
+ vErrors = [err11];
18296
18305
  } else {
18297
- vErrors.push(err10);
18306
+ vErrors.push(err11);
18298
18307
  }
18299
18308
  errors++;
18300
18309
  }
18301
18310
  if (func1(data5) < 1) {
18302
- const err11 = { instancePath: instancePath + "/axis_config/categories/" + i1, schemaPath: "#/$defs/data_visualization_axis_config/properties/categories/items/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
18311
+ const err12 = { instancePath: instancePath + "/axis_config/categories/" + i1, schemaPath: "#/$defs/data_visualization_axis_config/properties/categories/items/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
18303
18312
  if (vErrors === null) {
18304
- vErrors = [err11];
18313
+ vErrors = [err12];
18305
18314
  } else {
18306
- vErrors.push(err11);
18315
+ vErrors.push(err12);
18307
18316
  }
18308
18317
  errors++;
18309
18318
  }
18310
18319
  } else {
18311
- const err12 = { instancePath: instancePath + "/axis_config/categories/" + i1, schemaPath: "#/$defs/data_visualization_axis_config/properties/categories/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
18320
+ const err13 = { instancePath: instancePath + "/axis_config/categories/" + i1, schemaPath: "#/$defs/data_visualization_axis_config/properties/categories/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
18312
18321
  if (vErrors === null) {
18313
- vErrors = [err12];
18322
+ vErrors = [err13];
18314
18323
  } else {
18315
- vErrors.push(err12);
18324
+ vErrors.push(err13);
18316
18325
  }
18317
18326
  errors++;
18318
18327
  }
18319
18328
  }
18320
18329
  } else {
18321
- const err13 = { instancePath: instancePath + "/axis_config/categories", schemaPath: "#/$defs/data_visualization_axis_config/properties/categories/type", keyword: "type", params: { type: "array" }, message: "must be array" };
18330
+ const err14 = { instancePath: instancePath + "/axis_config/categories", schemaPath: "#/$defs/data_visualization_axis_config/properties/categories/type", keyword: "type", params: { type: "array" }, message: "must be array" };
18322
18331
  if (vErrors === null) {
18323
- vErrors = [err13];
18332
+ vErrors = [err14];
18324
18333
  } else {
18325
- vErrors.push(err13);
18334
+ vErrors.push(err14);
18326
18335
  }
18327
18336
  errors++;
18328
18337
  }
@@ -18331,20 +18340,20 @@ function validate275(data, { instancePath = "", parentData, parentDataProperty,
18331
18340
  let data6 = data3.x_label;
18332
18341
  if (typeof data6 === "string") {
18333
18342
  if (func1(data6) > 50) {
18334
- const err14 = { instancePath: instancePath + "/axis_config/x_label", schemaPath: "#/$defs/data_visualization_axis_config/properties/x_label/maxLength", keyword: "maxLength", params: { limit: 50 }, message: "must NOT have more than 50 characters" };
18343
+ const err15 = { instancePath: instancePath + "/axis_config/x_label", schemaPath: "#/$defs/data_visualization_axis_config/properties/x_label/maxLength", keyword: "maxLength", params: { limit: 50 }, message: "must NOT have more than 50 characters" };
18335
18344
  if (vErrors === null) {
18336
- vErrors = [err14];
18345
+ vErrors = [err15];
18337
18346
  } else {
18338
- vErrors.push(err14);
18347
+ vErrors.push(err15);
18339
18348
  }
18340
18349
  errors++;
18341
18350
  }
18342
18351
  } else {
18343
- const err15 = { instancePath: instancePath + "/axis_config/x_label", schemaPath: "#/$defs/data_visualization_axis_config/properties/x_label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
18352
+ const err16 = { instancePath: instancePath + "/axis_config/x_label", schemaPath: "#/$defs/data_visualization_axis_config/properties/x_label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
18344
18353
  if (vErrors === null) {
18345
- vErrors = [err15];
18354
+ vErrors = [err16];
18346
18355
  } else {
18347
- vErrors.push(err15);
18356
+ vErrors.push(err16);
18348
18357
  }
18349
18358
  errors++;
18350
18359
  }
@@ -18353,40 +18362,40 @@ function validate275(data, { instancePath = "", parentData, parentDataProperty,
18353
18362
  let data7 = data3.y_label;
18354
18363
  if (typeof data7 === "string") {
18355
18364
  if (func1(data7) > 50) {
18356
- const err16 = { instancePath: instancePath + "/axis_config/y_label", schemaPath: "#/$defs/data_visualization_axis_config/properties/y_label/maxLength", keyword: "maxLength", params: { limit: 50 }, message: "must NOT have more than 50 characters" };
18365
+ const err17 = { instancePath: instancePath + "/axis_config/y_label", schemaPath: "#/$defs/data_visualization_axis_config/properties/y_label/maxLength", keyword: "maxLength", params: { limit: 50 }, message: "must NOT have more than 50 characters" };
18357
18366
  if (vErrors === null) {
18358
- vErrors = [err16];
18367
+ vErrors = [err17];
18359
18368
  } else {
18360
- vErrors.push(err16);
18369
+ vErrors.push(err17);
18361
18370
  }
18362
18371
  errors++;
18363
18372
  }
18364
18373
  } else {
18365
- const err17 = { instancePath: instancePath + "/axis_config/y_label", schemaPath: "#/$defs/data_visualization_axis_config/properties/y_label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
18374
+ const err18 = { instancePath: instancePath + "/axis_config/y_label", schemaPath: "#/$defs/data_visualization_axis_config/properties/y_label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
18366
18375
  if (vErrors === null) {
18367
- vErrors = [err17];
18376
+ vErrors = [err18];
18368
18377
  } else {
18369
- vErrors.push(err17);
18378
+ vErrors.push(err18);
18370
18379
  }
18371
18380
  errors++;
18372
18381
  }
18373
18382
  }
18374
18383
  } else {
18375
- const err18 = { instancePath: instancePath + "/axis_config", schemaPath: "#/$defs/data_visualization_axis_config/type", keyword: "type", params: { type: "object" }, message: "must be object" };
18384
+ const err19 = { instancePath: instancePath + "/axis_config", schemaPath: "#/$defs/data_visualization_axis_config/type", keyword: "type", params: { type: "object" }, message: "must be object" };
18376
18385
  if (vErrors === null) {
18377
- vErrors = [err18];
18386
+ vErrors = [err19];
18378
18387
  } else {
18379
- vErrors.push(err18);
18388
+ vErrors.push(err19);
18380
18389
  }
18381
18390
  errors++;
18382
18391
  }
18383
18392
  }
18384
18393
  } else {
18385
- const err19 = { instancePath, schemaPath: "#/oneOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
18394
+ const err20 = { instancePath, schemaPath: "#/oneOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
18386
18395
  if (vErrors === null) {
18387
- vErrors = [err19];
18396
+ vErrors = [err20];
18388
18397
  } else {
18389
- vErrors.push(err19);
18398
+ vErrors.push(err20);
18390
18399
  }
18391
18400
  errors++;
18392
18401
  }
@@ -18399,41 +18408,41 @@ function validate275(data, { instancePath = "", parentData, parentDataProperty,
18399
18408
  const _errs20 = errors;
18400
18409
  if (data && typeof data == "object" && !Array.isArray(data)) {
18401
18410
  if (data.type === void 0) {
18402
- const err20 = { instancePath, schemaPath: "#/oneOf/1/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
18411
+ const err21 = { instancePath, schemaPath: "#/oneOf/1/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
18403
18412
  if (vErrors === null) {
18404
- vErrors = [err20];
18413
+ vErrors = [err21];
18405
18414
  } else {
18406
- vErrors.push(err20);
18415
+ vErrors.push(err21);
18407
18416
  }
18408
18417
  errors++;
18409
18418
  }
18410
18419
  if (data.segments === void 0) {
18411
- const err21 = { instancePath, schemaPath: "#/oneOf/1/required", keyword: "required", params: { missingProperty: "segments" }, message: "must have required property 'segments'" };
18420
+ const err22 = { instancePath, schemaPath: "#/oneOf/1/required", keyword: "required", params: { missingProperty: "segments" }, message: "must have required property 'segments'" };
18412
18421
  if (vErrors === null) {
18413
- vErrors = [err21];
18422
+ vErrors = [err22];
18414
18423
  } else {
18415
- vErrors.push(err21);
18424
+ vErrors.push(err22);
18416
18425
  }
18417
18426
  errors++;
18418
18427
  }
18419
18428
  for (const key2 in data) {
18420
18429
  if (!(key2 === "type" || key2 === "segments")) {
18421
- const err22 = { instancePath, schemaPath: "#/oneOf/1/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
18430
+ const err23 = { instancePath, schemaPath: "#/oneOf/1/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
18422
18431
  if (vErrors === null) {
18423
- vErrors = [err22];
18432
+ vErrors = [err23];
18424
18433
  } else {
18425
- vErrors.push(err22);
18434
+ vErrors.push(err23);
18426
18435
  }
18427
18436
  errors++;
18428
18437
  }
18429
18438
  }
18430
18439
  if (data.type !== void 0) {
18431
18440
  if ("pie" !== data.type) {
18432
- const err23 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/1/properties/type/const", keyword: "const", params: { allowedValue: "pie" }, message: "must be equal to constant" };
18441
+ const err24 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/1/properties/type/const", keyword: "const", params: { allowedValue: "pie" }, message: "must be equal to constant" };
18433
18442
  if (vErrors === null) {
18434
- vErrors = [err23];
18443
+ vErrors = [err24];
18435
18444
  } else {
18436
- vErrors.push(err23);
18445
+ vErrors.push(err24);
18437
18446
  }
18438
18447
  errors++;
18439
18448
  }
@@ -18442,20 +18451,20 @@ function validate275(data, { instancePath = "", parentData, parentDataProperty,
18442
18451
  let data9 = data.segments;
18443
18452
  if (Array.isArray(data9)) {
18444
18453
  if (data9.length > 6) {
18445
- const err24 = { instancePath: instancePath + "/segments", schemaPath: "#/oneOf/1/properties/segments/maxItems", keyword: "maxItems", params: { limit: 6 }, message: "must NOT have more than 6 items" };
18454
+ const err25 = { instancePath: instancePath + "/segments", schemaPath: "#/oneOf/1/properties/segments/maxItems", keyword: "maxItems", params: { limit: 6 }, message: "must NOT have more than 6 items" };
18446
18455
  if (vErrors === null) {
18447
- vErrors = [err24];
18456
+ vErrors = [err25];
18448
18457
  } else {
18449
- vErrors.push(err24);
18458
+ vErrors.push(err25);
18450
18459
  }
18451
18460
  errors++;
18452
18461
  }
18453
18462
  if (data9.length < 1) {
18454
- const err25 = { instancePath: instancePath + "/segments", schemaPath: "#/oneOf/1/properties/segments/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
18463
+ const err26 = { instancePath: instancePath + "/segments", schemaPath: "#/oneOf/1/properties/segments/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
18455
18464
  if (vErrors === null) {
18456
- vErrors = [err25];
18465
+ vErrors = [err26];
18457
18466
  } else {
18458
- vErrors.push(err25);
18467
+ vErrors.push(err26);
18459
18468
  }
18460
18469
  errors++;
18461
18470
  }
@@ -18464,30 +18473,30 @@ function validate275(data, { instancePath = "", parentData, parentDataProperty,
18464
18473
  let data10 = data9[i2];
18465
18474
  if (data10 && typeof data10 == "object" && !Array.isArray(data10)) {
18466
18475
  if (data10.label === void 0) {
18467
- const err26 = { instancePath: instancePath + "/segments/" + i2, schemaPath: "#/$defs/data_visualization_segment/required", keyword: "required", params: { missingProperty: "label" }, message: "must have required property 'label'" };
18476
+ const err27 = { instancePath: instancePath + "/segments/" + i2, schemaPath: "#/$defs/data_visualization_segment/required", keyword: "required", params: { missingProperty: "label" }, message: "must have required property 'label'" };
18468
18477
  if (vErrors === null) {
18469
- vErrors = [err26];
18478
+ vErrors = [err27];
18470
18479
  } else {
18471
- vErrors.push(err26);
18480
+ vErrors.push(err27);
18472
18481
  }
18473
18482
  errors++;
18474
18483
  }
18475
18484
  if (data10.value === void 0) {
18476
- const err27 = { instancePath: instancePath + "/segments/" + i2, schemaPath: "#/$defs/data_visualization_segment/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property 'value'" };
18485
+ const err28 = { instancePath: instancePath + "/segments/" + i2, schemaPath: "#/$defs/data_visualization_segment/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property 'value'" };
18477
18486
  if (vErrors === null) {
18478
- vErrors = [err27];
18487
+ vErrors = [err28];
18479
18488
  } else {
18480
- vErrors.push(err27);
18489
+ vErrors.push(err28);
18481
18490
  }
18482
18491
  errors++;
18483
18492
  }
18484
18493
  for (const key3 in data10) {
18485
18494
  if (!(key3 === "label" || key3 === "value")) {
18486
- const err28 = { instancePath: instancePath + "/segments/" + i2, schemaPath: "#/$defs/data_visualization_segment/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" };
18495
+ const err29 = { instancePath: instancePath + "/segments/" + i2, schemaPath: "#/$defs/data_visualization_segment/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" };
18487
18496
  if (vErrors === null) {
18488
- vErrors = [err28];
18497
+ vErrors = [err29];
18489
18498
  } else {
18490
- vErrors.push(err28);
18499
+ vErrors.push(err29);
18491
18500
  }
18492
18501
  errors++;
18493
18502
  }
@@ -18496,29 +18505,29 @@ function validate275(data, { instancePath = "", parentData, parentDataProperty,
18496
18505
  let data11 = data10.label;
18497
18506
  if (typeof data11 === "string") {
18498
18507
  if (func1(data11) > 20) {
18499
- const err29 = { instancePath: instancePath + "/segments/" + i2 + "/label", schemaPath: "#/$defs/data_visualization_segment/properties/label/maxLength", keyword: "maxLength", params: { limit: 20 }, message: "must NOT have more than 20 characters" };
18508
+ const err30 = { instancePath: instancePath + "/segments/" + i2 + "/label", schemaPath: "#/$defs/data_visualization_segment/properties/label/maxLength", keyword: "maxLength", params: { limit: 20 }, message: "must NOT have more than 20 characters" };
18500
18509
  if (vErrors === null) {
18501
- vErrors = [err29];
18510
+ vErrors = [err30];
18502
18511
  } else {
18503
- vErrors.push(err29);
18512
+ vErrors.push(err30);
18504
18513
  }
18505
18514
  errors++;
18506
18515
  }
18507
18516
  if (func1(data11) < 1) {
18508
- const err30 = { instancePath: instancePath + "/segments/" + i2 + "/label", schemaPath: "#/$defs/data_visualization_segment/properties/label/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
18517
+ const err31 = { instancePath: instancePath + "/segments/" + i2 + "/label", schemaPath: "#/$defs/data_visualization_segment/properties/label/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
18509
18518
  if (vErrors === null) {
18510
- vErrors = [err30];
18519
+ vErrors = [err31];
18511
18520
  } else {
18512
- vErrors.push(err30);
18521
+ vErrors.push(err31);
18513
18522
  }
18514
18523
  errors++;
18515
18524
  }
18516
18525
  } else {
18517
- const err31 = { instancePath: instancePath + "/segments/" + i2 + "/label", schemaPath: "#/$defs/data_visualization_segment/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
18526
+ const err32 = { instancePath: instancePath + "/segments/" + i2 + "/label", schemaPath: "#/$defs/data_visualization_segment/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
18518
18527
  if (vErrors === null) {
18519
- vErrors = [err31];
18528
+ vErrors = [err32];
18520
18529
  } else {
18521
- vErrors.push(err31);
18530
+ vErrors.push(err32);
18522
18531
  }
18523
18532
  errors++;
18524
18533
  }
@@ -18527,50 +18536,50 @@ function validate275(data, { instancePath = "", parentData, parentDataProperty,
18527
18536
  let data12 = data10.value;
18528
18537
  if (typeof data12 == "number") {
18529
18538
  if (data12 <= 0 || isNaN(data12)) {
18530
- const err32 = { instancePath: instancePath + "/segments/" + i2 + "/value", schemaPath: "#/$defs/data_visualization_segment/properties/value/exclusiveMinimum", keyword: "exclusiveMinimum", params: { comparison: ">", limit: 0 }, message: "must be > 0" };
18539
+ const err33 = { instancePath: instancePath + "/segments/" + i2 + "/value", schemaPath: "#/$defs/data_visualization_segment/properties/value/exclusiveMinimum", keyword: "exclusiveMinimum", params: { comparison: ">", limit: 0 }, message: "must be > 0" };
18531
18540
  if (vErrors === null) {
18532
- vErrors = [err32];
18541
+ vErrors = [err33];
18533
18542
  } else {
18534
- vErrors.push(err32);
18543
+ vErrors.push(err33);
18535
18544
  }
18536
18545
  errors++;
18537
18546
  }
18538
18547
  } else {
18539
- const err33 = { instancePath: instancePath + "/segments/" + i2 + "/value", schemaPath: "#/$defs/data_visualization_segment/properties/value/type", keyword: "type", params: { type: "number" }, message: "must be number" };
18548
+ const err34 = { instancePath: instancePath + "/segments/" + i2 + "/value", schemaPath: "#/$defs/data_visualization_segment/properties/value/type", keyword: "type", params: { type: "number" }, message: "must be number" };
18540
18549
  if (vErrors === null) {
18541
- vErrors = [err33];
18550
+ vErrors = [err34];
18542
18551
  } else {
18543
- vErrors.push(err33);
18552
+ vErrors.push(err34);
18544
18553
  }
18545
18554
  errors++;
18546
18555
  }
18547
18556
  }
18548
18557
  } else {
18549
- const err34 = { instancePath: instancePath + "/segments/" + i2, schemaPath: "#/$defs/data_visualization_segment/type", keyword: "type", params: { type: "object" }, message: "must be object" };
18558
+ const err35 = { instancePath: instancePath + "/segments/" + i2, schemaPath: "#/$defs/data_visualization_segment/type", keyword: "type", params: { type: "object" }, message: "must be object" };
18550
18559
  if (vErrors === null) {
18551
- vErrors = [err34];
18560
+ vErrors = [err35];
18552
18561
  } else {
18553
- vErrors.push(err34);
18562
+ vErrors.push(err35);
18554
18563
  }
18555
18564
  errors++;
18556
18565
  }
18557
18566
  }
18558
18567
  } else {
18559
- const err35 = { instancePath: instancePath + "/segments", schemaPath: "#/oneOf/1/properties/segments/type", keyword: "type", params: { type: "array" }, message: "must be array" };
18568
+ const err36 = { instancePath: instancePath + "/segments", schemaPath: "#/oneOf/1/properties/segments/type", keyword: "type", params: { type: "array" }, message: "must be array" };
18560
18569
  if (vErrors === null) {
18561
- vErrors = [err35];
18570
+ vErrors = [err36];
18562
18571
  } else {
18563
- vErrors.push(err35);
18572
+ vErrors.push(err36);
18564
18573
  }
18565
18574
  errors++;
18566
18575
  }
18567
18576
  }
18568
18577
  } else {
18569
- const err36 = { instancePath, schemaPath: "#/oneOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
18578
+ const err37 = { instancePath, schemaPath: "#/oneOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
18570
18579
  if (vErrors === null) {
18571
- vErrors = [err36];
18580
+ vErrors = [err37];
18572
18581
  } else {
18573
- vErrors.push(err36);
18582
+ vErrors.push(err37);
18574
18583
  }
18575
18584
  errors++;
18576
18585
  }
@@ -18588,11 +18597,11 @@ function validate275(data, { instancePath = "", parentData, parentDataProperty,
18588
18597
  }
18589
18598
  }
18590
18599
  if (!valid0) {
18591
- const err37 = { instancePath, schemaPath: "#/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
18600
+ const err38 = { instancePath, schemaPath: "#/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
18592
18601
  if (vErrors === null) {
18593
- vErrors = [err37];
18602
+ vErrors = [err38];
18594
18603
  } else {
18595
- vErrors.push(err37);
18604
+ vErrors.push(err38);
18596
18605
  }
18597
18606
  errors++;
18598
18607
  } else {
@@ -2744,10 +2744,124 @@ export interface DataVisualizationDataPoint {
2744
2744
  value: number;
2745
2745
  }
2746
2746
  /**
2747
- * Axis configuration for cartesian (line/bar/area) charts. categories define the valid x-axis labels and their left-to-right display order.
2747
+ * Axis configuration for cartesian (line/bar/area) charts. categories define the valid x-axis labels and their left-to-right display order. At most 20 categories — each series must carry exactly one data point per category, and a series' data array is itself capped at 20 items.
2748
2748
  */
2749
2749
  export interface DataVisualizationAxisConfig {
2750
- categories: string[];
2750
+ /**
2751
+ * @maxItems 20
2752
+ */
2753
+ categories: [] | [string] | [string, string] | [string, string, string] | [string, string, string, string] | [string, string, string, string, string] | [string, string, string, string, string, string] | [string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string, string, string] | [
2754
+ string,
2755
+ string,
2756
+ string,
2757
+ string,
2758
+ string,
2759
+ string,
2760
+ string,
2761
+ string,
2762
+ string,
2763
+ string,
2764
+ string,
2765
+ string,
2766
+ string,
2767
+ string,
2768
+ string
2769
+ ] | [
2770
+ string,
2771
+ string,
2772
+ string,
2773
+ string,
2774
+ string,
2775
+ string,
2776
+ string,
2777
+ string,
2778
+ string,
2779
+ string,
2780
+ string,
2781
+ string,
2782
+ string,
2783
+ string,
2784
+ string,
2785
+ string
2786
+ ] | [
2787
+ string,
2788
+ string,
2789
+ string,
2790
+ string,
2791
+ string,
2792
+ string,
2793
+ string,
2794
+ string,
2795
+ string,
2796
+ string,
2797
+ string,
2798
+ string,
2799
+ string,
2800
+ string,
2801
+ string,
2802
+ string,
2803
+ string
2804
+ ] | [
2805
+ string,
2806
+ string,
2807
+ string,
2808
+ string,
2809
+ string,
2810
+ string,
2811
+ string,
2812
+ string,
2813
+ string,
2814
+ string,
2815
+ string,
2816
+ string,
2817
+ string,
2818
+ string,
2819
+ string,
2820
+ string,
2821
+ string,
2822
+ string
2823
+ ] | [
2824
+ string,
2825
+ string,
2826
+ string,
2827
+ string,
2828
+ string,
2829
+ string,
2830
+ string,
2831
+ string,
2832
+ string,
2833
+ string,
2834
+ string,
2835
+ string,
2836
+ string,
2837
+ string,
2838
+ string,
2839
+ string,
2840
+ string,
2841
+ string,
2842
+ string
2843
+ ] | [
2844
+ string,
2845
+ string,
2846
+ string,
2847
+ string,
2848
+ string,
2849
+ string,
2850
+ string,
2851
+ string,
2852
+ string,
2853
+ string,
2854
+ string,
2855
+ string,
2856
+ string,
2857
+ string,
2858
+ string,
2859
+ string,
2860
+ string,
2861
+ string,
2862
+ string,
2863
+ string
2864
+ ];
2751
2865
  x_label?: string;
2752
2866
  y_label?: string;
2753
2867
  }