-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38c572c
commit 5247091
Showing
24 changed files
with
245 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
clients/admin-ui/src/types/api/models/ConsentOptionCreate.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { UserConsentPreference } from "./UserConsentPreference"; | ||
|
||
/** | ||
* Schema for saving the user's preference for a given notice | ||
*/ | ||
export type ConsentOptionCreate = { | ||
privacy_notice_history_id: string; | ||
preference: UserConsentPreference; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { IdentityBase } from "./IdentityBase"; | ||
|
||
/** | ||
* Schema for reporting Consent requests. | ||
*/ | ||
export type ConsentReport = { | ||
data_use: string; | ||
data_use_description?: string; | ||
opt_in: boolean; | ||
has_gpc_flag?: boolean; | ||
conflicts_with_gpc?: boolean; | ||
identity: IdentityBase; | ||
created_at: string; | ||
updated_at: string; | ||
}; |
18 changes: 18 additions & 0 deletions
18
clients/admin-ui/src/types/api/models/CurrentPrivacyPreferenceSchema.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { PrivacyNoticeHistorySchema } from "./PrivacyNoticeHistorySchema"; | ||
import type { UserConsentPreference } from "./UserConsentPreference"; | ||
|
||
/** | ||
* Schema to represent the latest saved preference for a given privacy notice | ||
* Note that we return the privacy notice *history* record here though which has the | ||
* contents of the notice the user consented to at the time. | ||
*/ | ||
export type CurrentPrivacyPreferenceSchema = { | ||
id: string; | ||
preference: UserConsentPreference; | ||
privacy_notice_history: PrivacyNoticeHistorySchema; | ||
privacy_preference_history_id: string; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
/** | ||
* The minimum fields required to represent an identity. | ||
*/ | ||
export type IdentityBase = { | ||
phone_number?: string; | ||
email?: string; | ||
}; |
12 changes: 12 additions & 0 deletions
12
clients/admin-ui/src/types/api/models/Page_ConsentReport_.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { ConsentReport } from "./ConsentReport"; | ||
|
||
export type Page_ConsentReport_ = { | ||
items: Array<ConsentReport>; | ||
total: number; | ||
page: number; | ||
size: number; | ||
}; |
12 changes: 12 additions & 0 deletions
12
clients/admin-ui/src/types/api/models/Page_CurrentPrivacyPreferenceSchema_.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { CurrentPrivacyPreferenceSchema } from "./CurrentPrivacyPreferenceSchema"; | ||
|
||
export type Page_CurrentPrivacyPreferenceSchema_ = { | ||
items: Array<CurrentPrivacyPreferenceSchema>; | ||
total: number; | ||
page: number; | ||
size: number; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
clients/admin-ui/src/types/api/models/PrivacyNoticeHistorySchema.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { ConsentMechanism } from "./ConsentMechanism"; | ||
import type { EnforcementLevel } from "./EnforcementLevel"; | ||
import type { PrivacyNoticeRegion } from "./PrivacyNoticeRegion"; | ||
|
||
/** | ||
* An API representation of a PrivacyNoticeHistory used for response payloads | ||
*/ | ||
export type PrivacyNoticeHistorySchema = { | ||
name: string; | ||
description?: string; | ||
internal_description?: string; | ||
origin?: string; | ||
regions: Array<PrivacyNoticeRegion>; | ||
consent_mechanism: ConsentMechanism; | ||
data_uses: Array<string>; | ||
enforcement_level: EnforcementLevel; | ||
disabled?: boolean; | ||
has_gpc_flag?: boolean; | ||
displayed_in_privacy_center?: boolean; | ||
displayed_in_overlay?: boolean; | ||
displayed_in_api?: boolean; | ||
id: string; | ||
version: number; | ||
privacy_notice_id: string; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
clients/admin-ui/src/types/api/models/PrivacyPreferencesCreateWithCode.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { ConsentOptionCreate } from "./ConsentOptionCreate"; | ||
import type { Identity } from "./Identity"; | ||
import type { PrivacyNoticeRegion } from "./PrivacyNoticeRegion"; | ||
import type { RequestOrigin } from "./RequestOrigin"; | ||
|
||
/** | ||
* Schema for saving privacy preferences and accompanying user data | ||
* including the verification code. | ||
*/ | ||
export type PrivacyPreferencesCreateWithCode = { | ||
browser_identity: Identity; | ||
code?: string; | ||
preferences: Array<ConsentOptionCreate>; | ||
policy_key?: string; | ||
request_origin?: RequestOrigin; | ||
url_recorded?: string; | ||
user_agent?: string; | ||
user_geography?: PrivacyNoticeRegion; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
/** | ||
* An enumeration. | ||
*/ | ||
export enum RequestOrigin { | ||
PRIVACY_CENTER = "privacy_center", | ||
OVERLAY = "overlay", | ||
API = "api", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.