@seatsio/seatsio-types 6.10.0 → 6.12.0

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +8 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -647,6 +647,10 @@ export type Category = {
647
647
  };
648
648
  hasSelectableObjects: boolean;
649
649
  };
650
+ export type Zone = {
651
+ key: string;
652
+ label: string | null;
653
+ };
650
654
  export type HoldToken = {
651
655
  token: string;
652
656
  expiresAt: string;
@@ -1000,6 +1004,7 @@ export interface InteractiveObject {
1000
1004
  readonly label: string;
1001
1005
  readonly labels: Labels;
1002
1006
  readonly floor?: string;
1007
+ readonly zone?: string;
1003
1008
  }
1004
1009
  export interface NonBookableTable extends InteractiveObject {
1005
1010
  readonly seats: Seat[];
@@ -1110,6 +1115,7 @@ export interface GeneralAdmissionArea extends AbstractBookableObject {
1110
1115
  }
1111
1116
  export type BookableObject = Seat | GeneralAdmissionArea | Booth | Table;
1112
1117
  export type SelectableObject = BookableObject | InteractiveSection;
1118
+ export type ReportGroupedBy = 'zone';
1113
1119
  export interface SeatingChart {
1114
1120
  changeConfig: (config: ConfigChange) => Promise<void>;
1115
1121
  clearSelection: () => Promise<void>;
@@ -1118,8 +1124,10 @@ export interface SeatingChart {
1118
1124
  destroy: () => void;
1119
1125
  findObject: (label: string) => Promise<SelectableObject>;
1120
1126
  getReportBySelectability: () => Promise<Object>;
1127
+ getReportBySelectabilityGroupedBy: (groupBy: ReportGroupedBy) => Promise<Object>;
1121
1128
  holdToken: string;
1122
1129
  listCategories: () => Promise<Category[]>;
1130
+ listZones: () => Promise<Zone[]>;
1123
1131
  listSelectedObjects: () => Promise<SelectableObject[]>;
1124
1132
  render: () => SeatingChart;
1125
1133
  rerender: () => void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@seatsio/seatsio-types",
3
3
  "description": "Type definitions for Seats.io",
4
- "version": "6.10.0",
4
+ "version": "6.12.0",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",