ad2app-lib 1.2.0 → 1.3.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.
- package/dist/legal/index.d.ts +5 -0
- package/dist/legal/index.js +9 -0
- package/dist/legal/meta.d.ts +12 -0
- package/dist/legal/meta.js +14 -0
- package/dist/legal/privacy.d.ts +2 -0
- package/dist/legal/privacy.js +241 -0
- package/dist/legal/terms.d.ts +2 -0
- package/dist/legal/terms.js +254 -0
- package/dist/legal/types.d.ts +43 -0
- package/dist/legal/types.js +2 -0
- package/dist/types/I_User.d.ts +5 -3
- package/dist/types/I_User.js +6 -10
- package/package.json +6 -2
- package/src/legal/index.ts +5 -0
- package/src/legal/meta.ts +13 -0
- package/src/legal/privacy.ts +240 -0
- package/src/legal/terms.ts +253 -0
- package/src/legal/types.ts +29 -0
- package/src/types/I_User.ts +8 -7
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Inline markup conventions used in all legal text strings:
|
|
3
|
+
* **text** → bold
|
|
4
|
+
* `text` → inline code
|
|
5
|
+
* {EMAIL} → contact email hyperlink
|
|
6
|
+
* {UODO} → UODO supervisory authority URL
|
|
7
|
+
* {PRIVACY} → link to the Privacy Policy page (used in TOS)
|
|
8
|
+
*/
|
|
9
|
+
export type InlineText = string;
|
|
10
|
+
|
|
11
|
+
export interface ListItem {
|
|
12
|
+
text: InlineText;
|
|
13
|
+
sub?: ListItem[];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type Block =
|
|
17
|
+
| { kind: 'p'; text: InlineText }
|
|
18
|
+
| { kind: 'ul'; items: ListItem[] }
|
|
19
|
+
| { kind: 'table'; headers: [string, string]; rows: [string, string][] }
|
|
20
|
+
| { kind: 'address'; lines: InlineText[] }
|
|
21
|
+
| { kind: 'subheading'; text: string }
|
|
22
|
+
| { kind: 'box'; label: string; lines: InlineText[] }
|
|
23
|
+
| { kind: 'note'; label: string; text: InlineText };
|
|
24
|
+
|
|
25
|
+
export interface LegalSection {
|
|
26
|
+
id: string;
|
|
27
|
+
title: string;
|
|
28
|
+
blocks: Block[];
|
|
29
|
+
}
|
package/src/types/I_User.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsNotEmpty } from 'class-validator';
|
|
1
|
+
import { IsBoolean, IsNotEmpty } from 'class-validator';
|
|
2
2
|
import { I_Influencer } from './I_Influencer';
|
|
3
3
|
|
|
4
4
|
export class I_User {
|
|
@@ -55,14 +55,15 @@ export class I_UserSignUpDTO {
|
|
|
55
55
|
@IsNotEmpty()
|
|
56
56
|
password: string;
|
|
57
57
|
|
|
58
|
-
@
|
|
59
|
-
|
|
58
|
+
@IsBoolean()
|
|
59
|
+
termsAccepted: boolean;
|
|
60
60
|
|
|
61
|
-
@
|
|
62
|
-
|
|
61
|
+
@IsBoolean()
|
|
62
|
+
privacyPolicyAccepted: boolean;
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
first_name?: string;
|
|
65
|
+
last_name?: string;
|
|
66
|
+
display_name?: string;
|
|
66
67
|
}
|
|
67
68
|
|
|
68
69
|
export class I_UserFindOneDTO {
|