seatsio 89.0.0 → 89.2.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,35 +1,38 @@
1
1
  import { Axios } from 'axios';
2
2
  import { CategoryKey } from '../Charts/Category.js';
3
+ import { EventObjectInfo } from '../Events/EventObjectInfo.js';
3
4
  export declare class EventReports {
4
5
  client: Axios;
5
6
  constructor(client: Axios);
6
- byStatus(eventKey: string, status?: string | null): Promise<import("../Dict.js").Dict<import("../index.js").EventObjectInfo[]>>;
7
+ flatList(eventKey: string): Promise<EventObjectInfo[]>;
8
+ flatListCsv(eventKey: string): Promise<string>;
9
+ byStatus(eventKey: string, status?: string | null): Promise<import("../Dict.js").Dict<EventObjectInfo[]>>;
7
10
  summaryByStatus(eventKey: string): Promise<any>;
8
11
  deepSummaryByStatus(eventKey: string): Promise<any>;
9
- byObjectType(eventKey: string, objectType?: string | null): Promise<import("../Dict.js").Dict<import("../index.js").EventObjectInfo[]>>;
12
+ byObjectType(eventKey: string, objectType?: string | null): Promise<import("../Dict.js").Dict<EventObjectInfo[]>>;
10
13
  summaryByObjectType(eventKey: string): Promise<any>;
11
14
  deepSummaryByObjectType(eventKey: string): Promise<any>;
12
- byCategoryLabel(eventKey: string, categoryLabel?: string | null): Promise<import("../Dict.js").Dict<import("../index.js").EventObjectInfo[]>>;
15
+ byCategoryLabel(eventKey: string, categoryLabel?: string | null): Promise<import("../Dict.js").Dict<EventObjectInfo[]>>;
13
16
  summaryByCategoryLabel(eventKey: string): Promise<any>;
14
17
  deepSummaryByCategoryLabel(eventKey: string): Promise<any>;
15
- byCategoryKey(eventKey: string, categoryKey?: CategoryKey | null): Promise<import("../Dict.js").Dict<import("../index.js").EventObjectInfo[]>>;
18
+ byCategoryKey(eventKey: string, categoryKey?: CategoryKey | null): Promise<import("../Dict.js").Dict<EventObjectInfo[]>>;
16
19
  summaryByCategoryKey(eventKey: string): Promise<any>;
17
20
  deepSummaryByCategoryKey(eventKey: string): Promise<any>;
18
- byLabel(eventKey: string, label?: string | null): Promise<import("../Dict.js").Dict<import("../index.js").EventObjectInfo[]>>;
19
- byOrderId(eventKey: string, orderId?: string | null): Promise<import("../Dict.js").Dict<import("../index.js").EventObjectInfo[]>>;
20
- bySection(eventKey: string, section?: string | null): Promise<import("../Dict.js").Dict<import("../index.js").EventObjectInfo[]>>;
21
+ byLabel(eventKey: string, label?: string | null): Promise<import("../Dict.js").Dict<EventObjectInfo[]>>;
22
+ byOrderId(eventKey: string, orderId?: string | null): Promise<import("../Dict.js").Dict<EventObjectInfo[]>>;
23
+ bySection(eventKey: string, section?: string | null): Promise<import("../Dict.js").Dict<EventObjectInfo[]>>;
21
24
  summaryBySection(eventKey: string): Promise<any>;
22
25
  deepSummaryBySection(eventKey: string): Promise<any>;
23
- byZone(eventKey: string, zone?: string | null): Promise<import("../Dict.js").Dict<import("../index.js").EventObjectInfo[]>>;
26
+ byZone(eventKey: string, zone?: string | null): Promise<import("../Dict.js").Dict<EventObjectInfo[]>>;
24
27
  summaryByZone(eventKey: string): Promise<any>;
25
28
  deepSummaryByZone(eventKey: string): Promise<any>;
26
- byAvailability(eventKey: string, availability?: string | null): Promise<import("../Dict.js").Dict<import("../index.js").EventObjectInfo[]>>;
27
- byAvailabilityReason(eventKey: string, availabilityReason?: string | null): Promise<import("../Dict.js").Dict<import("../index.js").EventObjectInfo[]>>;
29
+ byAvailability(eventKey: string, availability?: string | null): Promise<import("../Dict.js").Dict<EventObjectInfo[]>>;
30
+ byAvailabilityReason(eventKey: string, availabilityReason?: string | null): Promise<import("../Dict.js").Dict<EventObjectInfo[]>>;
28
31
  summaryByAvailability(eventKey: string): Promise<any>;
29
32
  summaryByAvailabilityReason(eventKey: string): Promise<any>;
30
33
  deepSummaryByAvailability(eventKey: string): Promise<any>;
31
34
  deepSummaryByAvailabilityReason(eventKey: string): Promise<any>;
32
- byChannel(eventKey: string, channel?: string | null): Promise<import("../Dict.js").Dict<import("../index.js").EventObjectInfo[]>>;
35
+ byChannel(eventKey: string, channel?: string | null): Promise<import("../Dict.js").Dict<EventObjectInfo[]>>;
33
36
  summaryByChannel(eventKey: string): Promise<any>;
34
37
  deepSummaryByChannel(eventKey: string): Promise<any>;
35
38
  static reportUrl(reportType: string, eventKey: string, filter: string | number | null): string;
@@ -1,9 +1,18 @@
1
1
  import { Utilities } from '../utilities/reportUtility.js';
2
+ import { EventObjectInfo } from '../Events/EventObjectInfo.js';
2
3
  export class EventReports {
3
4
  client;
4
5
  constructor(client) {
5
6
  this.client = client;
6
7
  }
8
+ flatList(eventKey) {
9
+ return this.client.get(`/reports/events/${encodeURIComponent(eventKey)}`)
10
+ .then(res => res.data.map(d => new EventObjectInfo(d)));
11
+ }
12
+ flatListCsv(eventKey) {
13
+ return this.client.get(`/reports/events/${encodeURIComponent(eventKey)}.csv`)
14
+ .then(res => res.data);
15
+ }
7
16
  byStatus(eventKey, status = null) {
8
17
  return this.client.get(EventReports.reportUrl('byStatus', eventKey, status))
9
18
  .then(res => Utilities.createEventReport(res.data));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seatsio",
3
- "version": "89.0.0",
3
+ "version": "89.2.0",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "type": "module",
@@ -19,10 +19,10 @@
19
19
  "url": "https://github.com/seatsio/seatsio-js"
20
20
  },
21
21
  "dependencies": {
22
- "axios": "1.16.1"
22
+ "axios": "1.18.1"
23
23
  },
24
24
  "devDependencies": {
25
- "@types/node": "25.9.1",
25
+ "@types/node": "26.1.0",
26
26
  "@typescript-eslint/eslint-plugin": "5.62.0",
27
27
  "@typescript-eslint/parser": "5.62.0",
28
28
  "ctix": "2.8.1",
@@ -33,8 +33,8 @@
33
33
  "eslint-plugin-n": "16.6.2",
34
34
  "eslint-plugin-promise": "6.6.0",
35
35
  "jsdom": "29.1.1",
36
- "prettier": "3.8.3",
37
- "semver": "7.8.1",
36
+ "prettier": "3.9.4",
37
+ "semver": "7.8.5",
38
38
  "typescript": "6.0.3",
39
39
  "vitest": "3.2.6",
40
40
  "zx": "8.8.5"