seatsio 78.0.0 → 79.0.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.
@@ -1,16 +1,20 @@
1
1
  import { Axios } from 'axios';
2
+ export declare class Versions {
3
+ static publishedVersion: string;
4
+ static draftVersion: string;
5
+ }
2
6
  export declare class ChartReports {
3
7
  client: Axios;
4
8
  constructor(client: Axios);
5
- byLabel(chartKey: string, bookWholeTables?: string): Promise<import("..").Dict<import("..").ChartObjectInfo[]>>;
6
- byObjectType(chartKey: string, bookWholeTables?: string): Promise<import("..").Dict<import("..").ChartObjectInfo[]>>;
7
- summaryByObjectType(chartKey: string, bookWholeTables?: string): Promise<any>;
8
- byCategoryLabel(chartKey: string, bookWholeTables?: string): Promise<import("..").Dict<import("..").ChartObjectInfo[]>>;
9
- summaryByCategoryLabel(chartKey: string, bookWholeTables?: string): Promise<any>;
10
- byCategoryKey(chartKey: string, bookWholeTables?: string): Promise<import("..").Dict<import("..").ChartObjectInfo[]>>;
11
- summaryByCategoryKey(chartKey: string, bookWholeTables?: string): Promise<any>;
12
- bySection(chartKey: string, bookWholeTables?: string): Promise<import("..").Dict<import("..").ChartObjectInfo[]>>;
13
- summaryBySection(chartKey: string, bookWholeTables?: string): Promise<any>;
14
- fetchReport(reportType: string, chartKey: string, bookWholeTables?: string): Promise<import("..").Dict<import("..").ChartObjectInfo[]>>;
15
- fetchSummaryReport(reportType: string, chartKey: string, bookWholeTables?: string): Promise<any>;
9
+ byLabel(chartKey: string, bookWholeTables?: string, version?: string): Promise<import("..").Dict<import("..").ChartObjectInfo[]>>;
10
+ byObjectType(chartKey: string, bookWholeTables?: string, version?: string): Promise<import("..").Dict<import("..").ChartObjectInfo[]>>;
11
+ summaryByObjectType(chartKey: string, bookWholeTables?: string, version?: string): Promise<any>;
12
+ byCategoryLabel(chartKey: string, bookWholeTables?: string, version?: string): Promise<import("..").Dict<import("..").ChartObjectInfo[]>>;
13
+ summaryByCategoryLabel(chartKey: string, bookWholeTables?: string, version?: string): Promise<any>;
14
+ byCategoryKey(chartKey: string, bookWholeTables?: string, version?: string): Promise<import("..").Dict<import("..").ChartObjectInfo[]>>;
15
+ summaryByCategoryKey(chartKey: string, bookWholeTables?: string, version?: string): Promise<any>;
16
+ bySection(chartKey: string, bookWholeTables?: string, version?: string): Promise<import("..").Dict<import("..").ChartObjectInfo[]>>;
17
+ summaryBySection(chartKey: string, bookWholeTables?: string, version?: string): Promise<any>;
18
+ fetchReport(reportType: string, chartKey: string, bookWholeTables?: string, version?: string): Promise<import("..").Dict<import("..").ChartObjectInfo[]>>;
19
+ fetchSummaryReport(reportType: string, chartKey: string, bookWholeTables?: string, version?: string): Promise<any>;
16
20
  }
@@ -1,44 +1,52 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChartReports = void 0;
3
+ exports.ChartReports = exports.Versions = void 0;
4
4
  var reportUtility_1 = require("../utilities/reportUtility");
5
+ var Versions = /** @class */ (function () {
6
+ function Versions() {
7
+ }
8
+ Versions.publishedVersion = 'published';
9
+ Versions.draftVersion = 'draft';
10
+ return Versions;
11
+ }());
12
+ exports.Versions = Versions;
5
13
  var ChartReports = /** @class */ (function () {
6
14
  function ChartReports(client) {
7
15
  this.client = client;
8
16
  }
9
- ChartReports.prototype.byLabel = function (chartKey, bookWholeTables) {
10
- return this.fetchReport('byLabel', chartKey, bookWholeTables);
17
+ ChartReports.prototype.byLabel = function (chartKey, bookWholeTables, version) {
18
+ return this.fetchReport('byLabel', chartKey, bookWholeTables, version);
11
19
  };
12
- ChartReports.prototype.byObjectType = function (chartKey, bookWholeTables) {
13
- return this.fetchReport('byObjectType', chartKey, bookWholeTables);
20
+ ChartReports.prototype.byObjectType = function (chartKey, bookWholeTables, version) {
21
+ return this.fetchReport('byObjectType', chartKey, bookWholeTables, version);
14
22
  };
15
- ChartReports.prototype.summaryByObjectType = function (chartKey, bookWholeTables) {
16
- return this.fetchSummaryReport('byObjectType', chartKey, bookWholeTables);
23
+ ChartReports.prototype.summaryByObjectType = function (chartKey, bookWholeTables, version) {
24
+ return this.fetchSummaryReport('byObjectType', chartKey, bookWholeTables, version);
17
25
  };
18
- ChartReports.prototype.byCategoryLabel = function (chartKey, bookWholeTables) {
19
- return this.fetchReport('byCategoryLabel', chartKey, bookWholeTables);
26
+ ChartReports.prototype.byCategoryLabel = function (chartKey, bookWholeTables, version) {
27
+ return this.fetchReport('byCategoryLabel', chartKey, bookWholeTables, version);
20
28
  };
21
- ChartReports.prototype.summaryByCategoryLabel = function (chartKey, bookWholeTables) {
22
- return this.fetchSummaryReport('byCategoryLabel', chartKey, bookWholeTables);
29
+ ChartReports.prototype.summaryByCategoryLabel = function (chartKey, bookWholeTables, version) {
30
+ return this.fetchSummaryReport('byCategoryLabel', chartKey, bookWholeTables, version);
23
31
  };
24
- ChartReports.prototype.byCategoryKey = function (chartKey, bookWholeTables) {
25
- return this.fetchReport('byCategoryKey', chartKey, bookWholeTables);
32
+ ChartReports.prototype.byCategoryKey = function (chartKey, bookWholeTables, version) {
33
+ return this.fetchReport('byCategoryKey', chartKey, bookWholeTables, version);
26
34
  };
27
- ChartReports.prototype.summaryByCategoryKey = function (chartKey, bookWholeTables) {
28
- return this.fetchSummaryReport('byCategoryKey', chartKey, bookWholeTables);
35
+ ChartReports.prototype.summaryByCategoryKey = function (chartKey, bookWholeTables, version) {
36
+ return this.fetchSummaryReport('byCategoryKey', chartKey, bookWholeTables, version);
29
37
  };
30
- ChartReports.prototype.bySection = function (chartKey, bookWholeTables) {
31
- return this.fetchReport('bySection', chartKey, bookWholeTables);
38
+ ChartReports.prototype.bySection = function (chartKey, bookWholeTables, version) {
39
+ return this.fetchReport('bySection', chartKey, bookWholeTables, version);
32
40
  };
33
- ChartReports.prototype.summaryBySection = function (chartKey, bookWholeTables) {
34
- return this.fetchSummaryReport('bySection', chartKey, bookWholeTables);
41
+ ChartReports.prototype.summaryBySection = function (chartKey, bookWholeTables, version) {
42
+ return this.fetchSummaryReport('bySection', chartKey, bookWholeTables, version);
35
43
  };
36
- ChartReports.prototype.fetchReport = function (reportType, chartKey, bookWholeTables) {
37
- return this.client.get("/reports/charts/".concat(encodeURIComponent(chartKey), "/").concat(reportType), { params: { bookWholeTables: bookWholeTables } })
44
+ ChartReports.prototype.fetchReport = function (reportType, chartKey, bookWholeTables, version) {
45
+ return this.client.get("/reports/charts/".concat(encodeURIComponent(chartKey), "/").concat(reportType), { params: { bookWholeTables: bookWholeTables, version: version } })
38
46
  .then(function (res) { return reportUtility_1.Utilities.createChartReport(res.data); });
39
47
  };
40
- ChartReports.prototype.fetchSummaryReport = function (reportType, chartKey, bookWholeTables) {
41
- return this.client.get("/reports/charts/".concat(encodeURIComponent(chartKey), "/").concat(reportType, "/summary"), { params: { bookWholeTables: bookWholeTables } })
48
+ ChartReports.prototype.fetchSummaryReport = function (reportType, chartKey, bookWholeTables, version) {
49
+ return this.client.get("/reports/charts/".concat(encodeURIComponent(chartKey), "/").concat(reportType, "/summary"), { params: { bookWholeTables: bookWholeTables, version: version } })
42
50
  .then(function (res) { return res.data; });
43
51
  };
44
52
  return ChartReports;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seatsio",
3
- "version": "78.0.0",
3
+ "version": "79.0.0",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [