@ibiliaze/global-vars 1.186.0 → 1.187.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.
@@ -467,6 +467,7 @@ export interface OccupanceSaleBase<Id> {
467
467
  email: string;
468
468
  tel: string;
469
469
  orderId: string;
470
+ userId?: Id;
470
471
  }
471
472
  export interface OccupanceBase<Id, TDate> {
472
473
  _id?: Id;
@@ -1,4 +1,4 @@
1
- import type { SeatBase, OccupanceBase, FlatOccupanceWithSeat, FlatOccupance, ItemBase } from '../inputsDefault';
1
+ import type { SeatBase, OccupanceBase, FlatOccupanceWithSeat, FlatOccupance, ItemBase, EventBase } from '../inputsDefault';
2
2
  export declare const occupanceRoleDefs: <TId, TDate>() => readonly [{
3
3
  readonly method: "get";
4
4
  readonly path: "/seat";
@@ -30,11 +30,50 @@ export declare const occupanceRoleDefs: <TId, TDate>() => readonly [{
30
30
  };
31
31
  }, {
32
32
  readonly method: "get";
33
- readonly path: "/occupance/customer";
34
- readonly role: "getOccupanciesCustomer";
35
- readonly name: "Get occupancies for customer";
33
+ readonly path: "/ticket/customer";
34
+ readonly role: "getTicketsCustomer";
35
+ readonly name: "Get tickets for customer";
36
36
  readonly response_200: {
37
- occupancies: FlatOccupanceWithSeat<TId, TDate>[];
37
+ tickets: FlatOccupance<TId, TDate>[];
38
+ count: number;
39
+ };
40
+ readonly response_500: {
41
+ message: string;
42
+ error: string;
43
+ };
44
+ }, {
45
+ readonly method: "get";
46
+ readonly path: "/ticket/user";
47
+ readonly role: "getTicketsUser";
48
+ readonly name: "Get tickets for user";
49
+ readonly response_200: {
50
+ tickets: FlatOccupance<TId, TDate>[];
51
+ count: number;
52
+ };
53
+ readonly response_500: {
54
+ message: string;
55
+ error: string;
56
+ };
57
+ }, {
58
+ readonly method: "get";
59
+ readonly path: "/ticket/customer/event";
60
+ readonly role: "getTicketsEventsCustomer";
61
+ readonly name: "Get events per ticket for customer";
62
+ readonly response_200: {
63
+ events: EventBase<TId, TDate>[];
64
+ count: number;
65
+ };
66
+ readonly response_500: {
67
+ message: string;
68
+ error: string;
69
+ };
70
+ }, {
71
+ readonly method: "get";
72
+ readonly path: "/ticket/user/event";
73
+ readonly role: "getTicketsEventsUser";
74
+ readonly name: "Get events per ticket for user";
75
+ readonly response_200: {
76
+ events: EventBase<TId, TDate>[];
38
77
  count: number;
39
78
  };
40
79
  readonly response_500: {
@@ -22,9 +22,33 @@ const occupanceRoleDefs = () => {
22
22
  },
23
23
  {
24
24
  method: 'get',
25
- path: '/occupance/customer',
26
- role: 'getOccupanciesCustomer',
27
- name: 'Get occupancies for customer',
25
+ path: '/ticket/customer',
26
+ role: 'getTicketsCustomer',
27
+ name: 'Get tickets for customer',
28
+ response_200: {},
29
+ response_500: {},
30
+ },
31
+ {
32
+ method: 'get',
33
+ path: '/ticket/user',
34
+ role: 'getTicketsUser',
35
+ name: 'Get tickets for user',
36
+ response_200: {},
37
+ response_500: {},
38
+ },
39
+ {
40
+ method: 'get',
41
+ path: '/ticket/customer/event',
42
+ role: 'getTicketsEventsCustomer',
43
+ name: 'Get events per ticket for customer',
44
+ response_200: {},
45
+ response_500: {},
46
+ },
47
+ {
48
+ method: 'get',
49
+ path: '/ticket/user/event',
50
+ role: 'getTicketsEventsUser',
51
+ name: 'Get events per ticket for user',
28
52
  response_200: {},
29
53
  response_500: {},
30
54
  },
@@ -1785,11 +1785,50 @@ export declare const apis: <TId, TDate>() => readonly [{
1785
1785
  };
1786
1786
  }, {
1787
1787
  readonly method: "get";
1788
- readonly path: "/occupance/customer";
1789
- readonly role: "getOccupanciesCustomer";
1790
- readonly name: "Get occupancies for customer";
1788
+ readonly path: "/ticket/customer";
1789
+ readonly role: "getTicketsCustomer";
1790
+ readonly name: "Get tickets for customer";
1791
1791
  readonly response_200: {
1792
- occupancies: import("./inputsDefault").FlatOccupanceWithSeat<TId_21, TDate_21>[];
1792
+ tickets: import("./inputsDefault").FlatOccupance<TId_21, TDate_21>[];
1793
+ count: number;
1794
+ };
1795
+ readonly response_500: {
1796
+ message: string;
1797
+ error: string;
1798
+ };
1799
+ }, {
1800
+ readonly method: "get";
1801
+ readonly path: "/ticket/user";
1802
+ readonly role: "getTicketsUser";
1803
+ readonly name: "Get tickets for user";
1804
+ readonly response_200: {
1805
+ tickets: import("./inputsDefault").FlatOccupance<TId_21, TDate_21>[];
1806
+ count: number;
1807
+ };
1808
+ readonly response_500: {
1809
+ message: string;
1810
+ error: string;
1811
+ };
1812
+ }, {
1813
+ readonly method: "get";
1814
+ readonly path: "/ticket/customer/event";
1815
+ readonly role: "getTicketsEventsCustomer";
1816
+ readonly name: "Get events per ticket for customer";
1817
+ readonly response_200: {
1818
+ events: import("./inputsDefault").EventBase<TId_21, TDate_21>[];
1819
+ count: number;
1820
+ };
1821
+ readonly response_500: {
1822
+ message: string;
1823
+ error: string;
1824
+ };
1825
+ }, {
1826
+ readonly method: "get";
1827
+ readonly path: "/ticket/user/event";
1828
+ readonly role: "getTicketsEventsUser";
1829
+ readonly name: "Get events per ticket for user";
1830
+ readonly response_200: {
1831
+ events: import("./inputsDefault").EventBase<TId_21, TDate_21>[];
1793
1832
  count: number;
1794
1833
  };
1795
1834
  readonly response_500: {
@@ -4261,11 +4300,50 @@ declare const allApis: readonly [{
4261
4300
  };
4262
4301
  }, {
4263
4302
  readonly method: "get";
4264
- readonly path: "/occupance/customer";
4265
- readonly role: "getOccupanciesCustomer";
4266
- readonly name: "Get occupancies for customer";
4303
+ readonly path: "/ticket/customer";
4304
+ readonly role: "getTicketsCustomer";
4305
+ readonly name: "Get tickets for customer";
4267
4306
  readonly response_200: {
4268
- occupancies: import("./inputsDefault").FlatOccupanceWithSeat<TId_20, TDate_20>[];
4307
+ tickets: import("./inputsDefault").FlatOccupance<TId_20, TDate_20>[];
4308
+ count: number;
4309
+ };
4310
+ readonly response_500: {
4311
+ message: string;
4312
+ error: string;
4313
+ };
4314
+ }, {
4315
+ readonly method: "get";
4316
+ readonly path: "/ticket/user";
4317
+ readonly role: "getTicketsUser";
4318
+ readonly name: "Get tickets for user";
4319
+ readonly response_200: {
4320
+ tickets: import("./inputsDefault").FlatOccupance<TId_20, TDate_20>[];
4321
+ count: number;
4322
+ };
4323
+ readonly response_500: {
4324
+ message: string;
4325
+ error: string;
4326
+ };
4327
+ }, {
4328
+ readonly method: "get";
4329
+ readonly path: "/ticket/customer/event";
4330
+ readonly role: "getTicketsEventsCustomer";
4331
+ readonly name: "Get events per ticket for customer";
4332
+ readonly response_200: {
4333
+ events: import("./inputsDefault").EventBase<TId_20, TDate_20>[];
4334
+ count: number;
4335
+ };
4336
+ readonly response_500: {
4337
+ message: string;
4338
+ error: string;
4339
+ };
4340
+ }, {
4341
+ readonly method: "get";
4342
+ readonly path: "/ticket/user/event";
4343
+ readonly role: "getTicketsEventsUser";
4344
+ readonly name: "Get events per ticket for user";
4345
+ readonly response_200: {
4346
+ events: import("./inputsDefault").EventBase<TId_20, TDate_20>[];
4269
4347
  count: number;
4270
4348
  };
4271
4349
  readonly response_500: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiliaze/global-vars",
3
- "version": "1.186.0",
3
+ "version": "1.187.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": false,
@@ -22,7 +22,7 @@
22
22
  "scripts": {
23
23
  "build": "tsc",
24
24
  "pub": "npm publish --access public",
25
- "git": "git add .; git commit -m 'changes'; git tag -a v1.186.0 -m 'v1.186.0'; git push origin v1.186.0; git push",
25
+ "git": "git add .; git commit -m 'changes'; git tag -a v1.187.0 -m 'v1.187.0'; git push origin v1.187.0; git push",
26
26
  "push": "npm run build; npm run git; npm run pub"
27
27
  },
28
28
  "author": "Ibi Hasanli",