@qrush/types 2.1.42 → 2.1.44
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.
- package/dist/Events.d.ts +4 -5
- package/dist/Placements.d.ts +47 -0
- package/dist/Placements.js +1 -0
- package/dist/TrackingStats.d.ts +1 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +7 -1
package/dist/Events.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import { LocationTypeArray, LocationTypeSlugArray } from "./Location.js";
|
|
|
6
6
|
import { Features, Location, EventCategory, EventCategorySlug, TranslationMap, SupportedLanguage } from "./Common.js";
|
|
7
7
|
import { PromotionTeaser } from "./Promotion.js";
|
|
8
8
|
import { EventArtist } from "./Artist.js";
|
|
9
|
-
import { TrackingStatus } from "./TrackingStats.js";
|
|
10
9
|
export { EventCategory, EventCategorySlug, eventCategories, Features, Location, } from "./Common.js";
|
|
11
10
|
export interface IFireEvent {
|
|
12
11
|
id: string;
|
|
@@ -33,11 +32,11 @@ export interface IFireEvent {
|
|
|
33
32
|
demoEvent: boolean;
|
|
34
33
|
draftMode: boolean;
|
|
35
34
|
status: "auto_draft" | "draft" | "published";
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated Use placement document in /placements collection instead.
|
|
37
|
+
* Will be removed in future version.
|
|
38
|
+
*/
|
|
36
39
|
topPickEvent?: boolean | undefined;
|
|
37
|
-
topPickStatus?: TrackingStatus;
|
|
38
|
-
topPickStartsAt?: Timestamp;
|
|
39
|
-
topPickExpiresAt?: Timestamp;
|
|
40
|
-
topPickAdvertiserId?: string;
|
|
41
40
|
promotedBy?: "LFF" | "DFF" | undefined;
|
|
42
41
|
isPersonalEvent?: boolean | undefined;
|
|
43
42
|
tags: string[] | IFireMetaPossibleTags["tags"];
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Timestamp } from './firebase.js';
|
|
2
|
+
export type PlacementType = 'toppick' | 'banner';
|
|
3
|
+
export type PlacementStatus = 'active' | 'paused' | 'expired' | 'disabled';
|
|
4
|
+
interface IFirePlacementBase {
|
|
5
|
+
id: string;
|
|
6
|
+
type: PlacementType;
|
|
7
|
+
status: PlacementStatus;
|
|
8
|
+
citySlug: string;
|
|
9
|
+
startsAt: Timestamp;
|
|
10
|
+
expiresAt: Timestamp;
|
|
11
|
+
creditsTotal: number;
|
|
12
|
+
creditsRemaining: number;
|
|
13
|
+
impressions: number;
|
|
14
|
+
clicks: number;
|
|
15
|
+
impressions_web: number;
|
|
16
|
+
impressions_app: number;
|
|
17
|
+
clicks_web: number;
|
|
18
|
+
clicks_app: number;
|
|
19
|
+
advertiserId: string;
|
|
20
|
+
createdAt: Timestamp;
|
|
21
|
+
lastStatUpdate: Timestamp;
|
|
22
|
+
}
|
|
23
|
+
export interface IFirePlacementTopPick extends IFirePlacementBase {
|
|
24
|
+
type: 'toppick';
|
|
25
|
+
eventId: string;
|
|
26
|
+
eventName?: string;
|
|
27
|
+
eventImageUrl?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface IFirePlacementBanner extends IFirePlacementBase {
|
|
30
|
+
type: 'banner';
|
|
31
|
+
imageUrl: string;
|
|
32
|
+
clickUrl: string;
|
|
33
|
+
position?: 'top' | 'inline' | 'bottom';
|
|
34
|
+
}
|
|
35
|
+
export type IFirePlacement = IFirePlacementTopPick | IFirePlacementBanner;
|
|
36
|
+
export interface IFirePlacementSnapshot {
|
|
37
|
+
placementId: string;
|
|
38
|
+
hour: Timestamp;
|
|
39
|
+
impressions: number;
|
|
40
|
+
clicks: number;
|
|
41
|
+
impressions_web: number;
|
|
42
|
+
impressions_app: number;
|
|
43
|
+
clicks_web: number;
|
|
44
|
+
clicks_app: number;
|
|
45
|
+
creditsAtSnapshot: number;
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/TrackingStats.d.ts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { Timestamp } from './firebase.js';
|
|
2
|
-
export type TrackingEntityType = '
|
|
3
|
-
export type TrackingStatus = 'active' | 'paused' | 'expired' | 'disabled';
|
|
2
|
+
export type TrackingEntityType = 'event' | 'promotion' | 'location';
|
|
4
3
|
export interface IFireTrackingStats {
|
|
5
4
|
entityType: TrackingEntityType;
|
|
6
5
|
entityId: string;
|
|
7
6
|
impressions: number;
|
|
8
7
|
clicks: number;
|
|
9
|
-
creditsRemaining?: number;
|
|
10
|
-
status: TrackingStatus;
|
|
11
8
|
lastSynced: Timestamp;
|
|
12
9
|
impressions_web?: number;
|
|
13
10
|
impressions_app?: number;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qrush/types",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.44",
|
|
4
4
|
"description": "Shared TypeScript types for the QRush ecosystem",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -112,6 +112,12 @@
|
|
|
112
112
|
"react-native": "./dist/ApiKeys.js",
|
|
113
113
|
"import": "./dist/ApiKeys.js",
|
|
114
114
|
"require": "./dist/ApiKeys.js"
|
|
115
|
+
},
|
|
116
|
+
"./Placements": {
|
|
117
|
+
"types": "./dist/Placements.d.ts",
|
|
118
|
+
"react-native": "./dist/Placements.js",
|
|
119
|
+
"import": "./dist/Placements.js",
|
|
120
|
+
"require": "./dist/Placements.js"
|
|
115
121
|
}
|
|
116
122
|
}
|
|
117
123
|
}
|