@eventlook/sdk 1.4.41 → 1.4.42

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.
@@ -9,6 +9,7 @@ import { IBase } from '@utils/types/global.type';
9
9
  import { IOrder } from '@utils/types/order.type';
10
10
  import { IFile } from '@utils/types/file.type';
11
11
  import { IRelease } from '@utils/types/release.type';
12
+ import { TicketSelection } from '@seat-picker/seat-picker-sdk';
12
13
  export interface ITicket extends IBase {
13
14
  hidden: boolean;
14
15
  name: string;
@@ -35,15 +36,13 @@ export interface ITicketFormTicket {
35
36
  }
36
37
  export interface ITicketLocation {
37
38
  id: string;
38
- type: LocationType;
39
+ type: TicketSelection[number]['locationType'];
39
40
  locationDescription?: {
40
- type: BaseLocationDescriptionType | 'custom';
41
+ type: TicketSelection[number]['locationTypeDescription'][number]['type'] | 'custom';
41
42
  label: string;
42
43
  value: string;
43
44
  }[] | null;
44
45
  }
45
- type BaseLocationDescriptionType = 'seatNumber' | 'rowNumber' | 'sectionName';
46
- type LocationType = 'seat' | 'zone';
47
46
  export type EventTicketsType = {
48
47
  [eventId: string]: ITicketFormTicket[];
49
48
  };
@@ -110,4 +109,3 @@ export interface ICreateTicket {
110
109
  price: number;
111
110
  number: string;
112
111
  }
113
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eventlook/sdk",
3
- "version": "1.4.41",
3
+ "version": "1.4.42",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -65,7 +65,7 @@
65
65
  "@rollup/plugin-node-resolve": "^15.0.0",
66
66
  "@rollup/plugin-replace": "^6.0.2",
67
67
  "@rollup/plugin-typescript": "^11.0.0",
68
- "@seat-picker/seat-picker-sdk": "^1.1.0",
68
+ "@seat-picker/seat-picker-sdk": "^1.2.0",
69
69
  "@types/js-cookie": "^3.0.6",
70
70
  "@types/lodash": "^4.17.20",
71
71
  "@types/numeral": "^2.0.5",
@@ -9,6 +9,7 @@ import { IBase } from '@utils/types/global.type';
9
9
  import { IOrder } from '@utils/types/order.type';
10
10
  import { IFile } from '@utils/types/file.type';
11
11
  import { IRelease } from '@utils/types/release.type';
12
+ import { TicketSelection } from '@seat-picker/seat-picker-sdk';
12
13
 
13
14
  export interface ITicket extends IBase {
14
15
  hidden: boolean;
@@ -38,20 +39,16 @@ export interface ITicketFormTicket {
38
39
 
39
40
  export interface ITicketLocation {
40
41
  id: string;
41
- type: LocationType;
42
+ type: TicketSelection[number]['locationType'];
42
43
  locationDescription?:
43
44
  | {
44
- type: BaseLocationDescriptionType | 'custom';
45
+ type: TicketSelection[number]['locationTypeDescription'][number]['type'] | 'custom';
45
46
  label: string;
46
47
  value: string;
47
48
  }[]
48
49
  | null;
49
50
  }
50
51
 
51
- type BaseLocationDescriptionType = 'seatNumber' | 'rowNumber' | 'sectionName';
52
-
53
- type LocationType = 'seat' | 'zone';
54
-
55
52
  export type EventTicketsType = { [eventId: string]: ITicketFormTicket[] };
56
53
 
57
54
  export interface ITicketForm {