@jealous-robot-dev/shared-types-responses 1.50.2 → 1.50.4

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.
@@ -0,0 +1,65 @@
1
+ import { EventTypes, ServiceAudience } from "@jealous-robot-dev/drophr-common";
2
+ export interface CreatorActivityData {
3
+ id: string;
4
+ pic: string;
5
+ name: string;
6
+ lang: string;
7
+ rating: number;
8
+ reviews: number;
9
+ type: EventTypes;
10
+ is_active: boolean;
11
+ audience: ServiceAudience;
12
+ }
13
+ export interface CreatorCustomerData {
14
+ UID: string;
15
+ ppu: string;
16
+ names: {
17
+ first: string;
18
+ last: string;
19
+ };
20
+ }
21
+ export interface CreatorSessionData {
22
+ id: string;
23
+ sid: string;
24
+ start: number;
25
+ duration: string;
26
+ }
27
+ export interface CreatorUpcomingSessionData extends CreatorSessionData {
28
+ opens_at: number;
29
+ }
30
+ export interface CreatorBookingSessionData extends CreatorSessionData {
31
+ customers: number;
32
+ }
33
+ export interface CreatorSessionInfoData extends CreatorSessionData {
34
+ capacity: number;
35
+ customers: number;
36
+ is_custom: boolean;
37
+ is_private: boolean;
38
+ scheduled_at: number;
39
+ utilization: number | null;
40
+ }
41
+ export interface CreatorDataPayload {
42
+ today: {
43
+ customers: number;
44
+ activities: string[];
45
+ session_minutes: number;
46
+ sessions_to_host: number;
47
+ sessions: CreatorUpcomingSessionData[];
48
+ };
49
+ bookings: {
50
+ bookings: number;
51
+ activities: string[];
52
+ sessions: CreatorBookingSessionData[];
53
+ };
54
+ sessions: {
55
+ total: number;
56
+ latest: string;
57
+ soonest: string;
58
+ sessions: CreatorSessionInfoData[];
59
+ };
60
+ customers: {
61
+ sid: string;
62
+ users: CreatorCustomerData[];
63
+ }[];
64
+ activities: CreatorActivityData[];
65
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,6 +2,7 @@ export * from './pic';
2
2
  export * from './host';
3
3
  export * from './event';
4
4
  export * from './events';
5
+ export * from './creator';
5
6
  export * from './customer';
6
7
  export * from './shorcuts';
7
8
  export * from './tag-search';
@@ -14,6 +14,7 @@ __exportStar(require("./pic"), exports);
14
14
  __exportStar(require("./host"), exports);
15
15
  __exportStar(require("./event"), exports);
16
16
  __exportStar(require("./events"), exports);
17
+ __exportStar(require("./creator"), exports);
17
18
  __exportStar(require("./customer"), exports);
18
19
  __exportStar(require("./shorcuts"), exports);
19
20
  __exportStar(require("./tag-search"), exports);
@@ -4,6 +4,7 @@ export interface ScheduleEvent {
4
4
  name: string;
5
5
  host: {
6
6
  UID: string;
7
+ ppu: string;
7
8
  names: {
8
9
  first: string;
9
10
  last: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jealous-robot-dev/shared-types-responses",
3
- "version": "1.50.2",
3
+ "version": "1.50.4",
4
4
  "description": "DropHR common types of API responses",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",