@jealous-robot-dev/shared-types-responses 1.56.8 → 1.57.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,15 @@
1
1
  import { TextDirection, UITHEME, Locale, Currency } from "@jealous-robot-dev/drophr-common";
2
+ export interface ObjectViewMetadata {
3
+ id: string;
4
+ title: string;
5
+ keywords: string;
6
+ description: string;
7
+ pic: {
8
+ src: string;
9
+ width: number;
10
+ height: number;
11
+ };
12
+ }
2
13
  export interface QueryResponse<Data, Phrases = any> {
3
14
  data: Data;
4
15
  phrases: Phrases;
@@ -1,4 +1,4 @@
1
- import { UITHEME, TextDirection, DropHRUserAgents, AuthenticationProviders, Currency, Locale, ENV } from '@jealous-robot-dev/drophr-common';
1
+ import { UITHEME, TextDirection, DropHRUserAgents, AuthenticationProviders, Currency, Locale, ENV, CampaignTools } from '@jealous-robot-dev/drophr-common';
2
2
  import { MainPhrases } from '@jealous-robot-dev/shared-phrases';
3
3
  import { QueryResponse } from './common';
4
4
  import { UrgentEvent } from '..';
@@ -14,6 +14,7 @@ export interface MainUserData {
14
14
  is_verified: boolean;
15
15
  impression_for?: string;
16
16
  urgent_event?: UrgentEvent;
17
+ potential_creator?: boolean;
17
18
  can_become_creator?: boolean;
18
19
  unread_messages_count: number;
19
20
  new_notifications_count: number;
@@ -26,6 +27,13 @@ export interface API {
26
27
  }
27
28
  export interface CommonData {
28
29
  currentUser: MainUserData | null;
30
+ campaign: {
31
+ id: string | null;
32
+ tool: CampaignTools | null;
33
+ };
34
+ ui: {
35
+ forceAuth?: boolean;
36
+ };
29
37
  deviceId: string | null;
30
38
  agent: DropHRUserAgents;
31
39
  noConsent?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jealous-robot-dev/shared-types-responses",
3
- "version": "1.56.8",
3
+ "version": "1.57.1",
4
4
  "description": "Meetle common types of API responses",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",