@selfcommunity/types 0.1.7 → 0.1.8-alpha.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/lib/{types → cjs}/index.d.ts +0 -0
- package/lib/{types → cjs}/index.d.ts.map +0 -0
- package/lib/cjs/index.js +27 -124
- package/lib/cjs/index.js.map +1 -0
- package/lib/{types → cjs}/types/auth.d.ts +0 -0
- package/lib/{types → cjs}/types/auth.d.ts.map +0 -0
- package/lib/cjs/types/auth.js +2 -2
- package/lib/cjs/types/auth.js.map +1 -0
- package/lib/{types → cjs}/types/avatar.d.ts +0 -0
- package/lib/{types → cjs}/types/avatar.d.ts.map +0 -0
- package/lib/cjs/types/avatar.js +5 -2
- package/lib/cjs/types/avatar.js.map +1 -0
- package/lib/{types → cjs}/types/broadcastMessage.d.ts +0 -0
- package/lib/{types → cjs}/types/broadcastMessage.d.ts.map +0 -0
- package/lib/cjs/types/broadcastMessage.js +6 -9
- package/lib/cjs/types/broadcastMessage.js.map +1 -0
- package/lib/{types → cjs}/types/category.d.ts +0 -0
- package/lib/{types → cjs}/types/category.d.ts.map +0 -0
- package/lib/cjs/types/category.js +2 -2
- package/lib/cjs/types/category.js.map +1 -0
- package/lib/{types → cjs}/types/comment.d.ts +0 -0
- package/lib/{types → cjs}/types/comment.d.ts.map +0 -0
- package/lib/cjs/types/comment.js +9 -19
- package/lib/cjs/types/comment.js.map +1 -0
- package/lib/{types → cjs}/types/contribution.d.ts +0 -0
- package/lib/{types → cjs}/types/contribution.d.ts.map +0 -0
- package/lib/cjs/types/contribution.js +15 -29
- package/lib/cjs/types/contribution.js.map +1 -0
- package/lib/{types → cjs}/types/customAdv.d.ts +0 -0
- package/lib/{types → cjs}/types/customAdv.d.ts.map +0 -0
- package/lib/cjs/types/customAdv.js +12 -14
- package/lib/cjs/types/customAdv.js.map +1 -0
- package/lib/{types → cjs}/types/customNotification.d.ts +0 -0
- package/lib/{types → cjs}/types/customNotification.d.ts.map +0 -0
- package/lib/cjs/types/customNotification.js +2 -2
- package/lib/cjs/types/customNotification.js.map +1 -0
- package/lib/{types → cjs}/types/customPage.d.ts +0 -0
- package/lib/{types → cjs}/types/customPage.d.ts.map +0 -0
- package/lib/cjs/types/customPage.js +2 -2
- package/lib/cjs/types/customPage.js.map +1 -0
- package/lib/{types → cjs}/types/dataPortability.d.ts +0 -0
- package/lib/{types → cjs}/types/dataPortability.d.ts.map +0 -0
- package/lib/cjs/types/dataPortability.js +2 -2
- package/lib/cjs/types/dataPortability.js.map +1 -0
- package/lib/{types → cjs}/types/embed.d.ts +0 -0
- package/lib/{types → cjs}/types/embed.d.ts.map +0 -0
- package/lib/cjs/types/embed.js +2 -2
- package/lib/cjs/types/embed.js.map +1 -0
- package/lib/{types → cjs}/types/feature.d.ts +0 -0
- package/lib/{types → cjs}/types/feature.d.ts.map +0 -0
- package/lib/cjs/types/feature.js +5 -2
- package/lib/cjs/types/feature.js.map +1 -0
- package/lib/{types → cjs}/types/feed.d.ts +0 -0
- package/lib/{types → cjs}/types/feed.d.ts.map +0 -0
- package/lib/cjs/types/feed.js +19 -39
- package/lib/cjs/types/feed.js.map +1 -0
- package/lib/{types → cjs}/types/flag.d.ts +0 -0
- package/lib/{types → cjs}/types/flag.d.ts.map +0 -0
- package/lib/cjs/types/flag.js +15 -25
- package/lib/cjs/types/flag.js.map +1 -0
- package/lib/{types → cjs}/types/incubator.d.ts +0 -0
- package/lib/{types → cjs}/types/incubator.d.ts.map +0 -0
- package/lib/cjs/types/incubator.js +8 -20
- package/lib/cjs/types/incubator.js.map +1 -0
- package/lib/{types → cjs}/types/index.d.ts +0 -0
- package/lib/{types → cjs}/types/index.d.ts.map +0 -0
- package/lib/cjs/types/index.js +34 -212
- package/lib/cjs/types/index.js.map +1 -0
- package/lib/{types → cjs}/types/insight.d.ts +0 -0
- package/lib/{types → cjs}/types/insight.d.ts.map +0 -0
- package/lib/cjs/types/insight.js +2 -2
- package/lib/cjs/types/insight.js.map +1 -0
- package/lib/{types → cjs}/types/legalPage.d.ts +0 -0
- package/lib/{types → cjs}/types/legalPage.d.ts.map +0 -0
- package/lib/cjs/types/legalPage.js +5 -2
- package/lib/cjs/types/legalPage.js.map +1 -0
- package/lib/{types → cjs}/types/location.d.ts +0 -0
- package/lib/{types → cjs}/types/location.d.ts.map +0 -0
- package/lib/cjs/types/location.js +2 -2
- package/lib/cjs/types/location.js.map +1 -0
- package/lib/{types → cjs}/types/media.d.ts +0 -0
- package/lib/{types → cjs}/types/media.d.ts.map +0 -0
- package/lib/cjs/types/media.js +2 -2
- package/lib/cjs/types/media.js.map +1 -0
- package/lib/{types → cjs}/types/notification.d.ts +0 -0
- package/lib/{types → cjs}/types/notification.d.ts.map +0 -0
- package/lib/cjs/types/notification.js +47 -59
- package/lib/cjs/types/notification.js.map +1 -0
- package/lib/{types → cjs}/types/platform.d.ts +0 -0
- package/lib/{types → cjs}/types/platform.d.ts.map +0 -0
- package/lib/cjs/types/platform.js +2 -2
- package/lib/cjs/types/platform.js.map +1 -0
- package/lib/{types → cjs}/types/poll.d.ts +0 -0
- package/lib/{types → cjs}/types/poll.d.ts.map +0 -0
- package/lib/cjs/types/poll.js +2 -2
- package/lib/cjs/types/poll.js.map +1 -0
- package/lib/{types → cjs}/types/preference.d.ts +0 -0
- package/lib/{types → cjs}/types/preference.d.ts.map +0 -0
- package/lib/cjs/types/preference.js +2 -2
- package/lib/cjs/types/preference.js.map +1 -0
- package/lib/{types → cjs}/types/privateMessage.d.ts +0 -0
- package/lib/{types → cjs}/types/privateMessage.d.ts.map +0 -0
- package/lib/cjs/types/privateMessage.js +14 -29
- package/lib/cjs/types/privateMessage.js.map +1 -0
- package/lib/{types → cjs}/types/prize.d.ts +0 -0
- package/lib/{types → cjs}/types/prize.d.ts.map +0 -0
- package/lib/cjs/types/prize.js +7 -23
- package/lib/cjs/types/prize.js.map +1 -0
- package/lib/{types → cjs}/types/sso.d.ts +0 -0
- package/lib/{types → cjs}/types/sso.d.ts.map +0 -0
- package/lib/cjs/types/sso.js +5 -2
- package/lib/cjs/types/sso.js.map +1 -0
- package/lib/{types → cjs}/types/tag.d.ts +0 -0
- package/lib/{types → cjs}/types/tag.d.ts.map +0 -0
- package/lib/cjs/types/tag.js +2 -2
- package/lib/cjs/types/tag.js.map +1 -0
- package/lib/{types → cjs}/types/user.d.ts +0 -0
- package/lib/{types → cjs}/types/user.d.ts.map +0 -0
- package/lib/cjs/types/user.js +42 -61
- package/lib/cjs/types/user.js.map +1 -0
- package/lib/{types → cjs}/types/vote.d.ts +0 -0
- package/lib/{types → cjs}/types/vote.d.ts.map +0 -0
- package/lib/cjs/types/vote.js +2 -2
- package/lib/cjs/types/vote.js.map +1 -0
- package/lib/{types → cjs}/types/webhook.d.ts +0 -0
- package/lib/{types → cjs}/types/webhook.d.ts.map +0 -0
- package/lib/cjs/types/webhook.js +6 -2
- package/lib/cjs/types/webhook.js.map +1 -0
- package/lib/esm/index.d.ts +9 -0
- package/lib/esm/index.d.ts.map +1 -0
- package/lib/esm/index.js +9 -125
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/types/auth.d.ts +26 -0
- package/lib/esm/types/auth.d.ts.map +1 -0
- package/lib/esm/types/auth.js +2 -3
- package/lib/esm/types/auth.js.map +1 -0
- package/lib/esm/types/avatar.d.ts +26 -0
- package/lib/esm/types/avatar.d.ts.map +1 -0
- package/lib/esm/types/avatar.js +5 -3
- package/lib/esm/types/avatar.js.map +1 -0
- package/lib/esm/types/broadcastMessage.d.ts +73 -0
- package/lib/esm/types/broadcastMessage.d.ts.map +1 -0
- package/lib/esm/types/broadcastMessage.js +5 -11
- package/lib/esm/types/broadcastMessage.js.map +1 -0
- package/lib/esm/types/category.d.ts +107 -0
- package/lib/esm/types/category.d.ts.map +1 -0
- package/lib/esm/types/category.js +2 -3
- package/lib/esm/types/category.js.map +1 -0
- package/lib/esm/types/comment.d.ts +97 -0
- package/lib/esm/types/comment.d.ts.map +1 -0
- package/lib/esm/types/comment.js +8 -21
- package/lib/esm/types/comment.js.map +1 -0
- package/lib/esm/types/contribution.d.ts +64 -0
- package/lib/esm/types/contribution.d.ts.map +1 -0
- package/lib/esm/types/contribution.js +13 -30
- package/lib/esm/types/contribution.js.map +1 -0
- package/lib/esm/types/customAdv.d.ts +53 -0
- package/lib/esm/types/customAdv.d.ts.map +1 -0
- package/lib/esm/types/customAdv.js +11 -16
- package/lib/esm/types/customAdv.js.map +1 -0
- package/lib/esm/types/customNotification.d.ts +28 -0
- package/lib/esm/types/customNotification.d.ts.map +1 -0
- package/lib/esm/types/customNotification.js +2 -3
- package/lib/esm/types/customNotification.js.map +1 -0
- package/lib/esm/types/customPage.d.ts +18 -0
- package/lib/esm/types/customPage.d.ts.map +1 -0
- package/lib/esm/types/customPage.js +2 -3
- package/lib/esm/types/customPage.js.map +1 -0
- package/lib/esm/types/dataPortability.d.ts +30 -0
- package/lib/esm/types/dataPortability.d.ts.map +1 -0
- package/lib/esm/types/dataPortability.js +2 -3
- package/lib/esm/types/dataPortability.js.map +1 -0
- package/lib/esm/types/embed.d.ts +33 -0
- package/lib/esm/types/embed.d.ts.map +1 -0
- package/lib/esm/types/embed.js +2 -3
- package/lib/esm/types/embed.js.map +1 -0
- package/lib/esm/types/feature.d.ts +18 -0
- package/lib/esm/types/feature.d.ts.map +1 -0
- package/lib/esm/types/feature.js +5 -3
- package/lib/esm/types/feature.js.map +1 -0
- package/lib/esm/types/feed.d.ts +237 -0
- package/lib/esm/types/feed.d.ts.map +1 -0
- package/lib/esm/types/feed.js +17 -40
- package/lib/esm/types/feed.js.map +1 -0
- package/lib/esm/types/flag.d.ts +38 -0
- package/lib/esm/types/flag.d.ts.map +1 -0
- package/lib/esm/types/flag.js +13 -26
- package/lib/esm/types/flag.js.map +1 -0
- package/lib/esm/types/incubator.d.ts +68 -0
- package/lib/esm/types/incubator.d.ts.map +1 -0
- package/lib/esm/types/incubator.js +7 -22
- package/lib/esm/types/incubator.js.map +1 -0
- package/lib/esm/types/index.d.ts +35 -0
- package/lib/esm/types/index.d.ts.map +1 -0
- package/lib/esm/types/index.js +16 -213
- package/lib/esm/types/index.js.map +1 -0
- package/lib/esm/types/insight.d.ts +127 -0
- package/lib/esm/types/insight.d.ts.map +1 -0
- package/lib/esm/types/insight.js +2 -3
- package/lib/esm/types/insight.js.map +1 -0
- package/lib/esm/types/legalPage.d.ts +79 -0
- package/lib/esm/types/legalPage.d.ts.map +1 -0
- package/lib/esm/types/legalPage.js +5 -3
- package/lib/esm/types/legalPage.js.map +1 -0
- package/lib/esm/types/location.d.ts +61 -0
- package/lib/esm/types/location.d.ts.map +1 -0
- package/lib/esm/types/location.js +2 -3
- package/lib/esm/types/location.js.map +1 -0
- package/lib/esm/types/media.d.ts +69 -0
- package/lib/esm/types/media.d.ts.map +1 -0
- package/lib/esm/types/media.js +2 -3
- package/lib/esm/types/media.js.map +1 -0
- package/lib/esm/types/notification.d.ts +422 -0
- package/lib/esm/types/notification.d.ts.map +1 -0
- package/lib/esm/types/notification.js +45 -60
- package/lib/esm/types/notification.js.map +1 -0
- package/lib/esm/types/platform.d.ts +9 -0
- package/lib/esm/types/platform.d.ts.map +1 -0
- package/lib/esm/types/platform.js +2 -3
- package/lib/esm/types/platform.js.map +1 -0
- package/lib/esm/types/poll.d.ts +87 -0
- package/lib/esm/types/poll.d.ts.map +1 -0
- package/lib/esm/types/poll.js +2 -3
- package/lib/esm/types/poll.js.map +1 -0
- package/lib/esm/types/preference.d.ts +22 -0
- package/lib/esm/types/preference.d.ts.map +1 -0
- package/lib/esm/types/preference.js +2 -3
- package/lib/esm/types/preference.js.map +1 -0
- package/lib/esm/types/privateMessage.d.ts +130 -0
- package/lib/esm/types/privateMessage.d.ts.map +1 -0
- package/lib/esm/types/privateMessage.js +12 -30
- package/lib/esm/types/privateMessage.js.map +1 -0
- package/lib/esm/types/prize.d.ts +93 -0
- package/lib/esm/types/prize.d.ts.map +1 -0
- package/lib/esm/types/prize.js +6 -25
- package/lib/esm/types/prize.js.map +1 -0
- package/lib/esm/types/sso.d.ts +22 -0
- package/lib/esm/types/sso.d.ts.map +1 -0
- package/lib/esm/types/sso.js +5 -3
- package/lib/esm/types/sso.js.map +1 -0
- package/lib/esm/types/tag.d.ts +47 -0
- package/lib/esm/types/tag.d.ts.map +1 -0
- package/lib/esm/types/tag.js +2 -3
- package/lib/esm/types/tag.js.map +1 -0
- package/lib/esm/types/user.d.ts +537 -0
- package/lib/esm/types/user.d.ts.map +1 -0
- package/lib/esm/types/user.js +40 -62
- package/lib/esm/types/user.js.map +1 -0
- package/lib/esm/types/vote.d.ts +15 -0
- package/lib/esm/types/vote.d.ts.map +1 -0
- package/lib/esm/types/vote.js +2 -3
- package/lib/esm/types/vote.js.map +1 -0
- package/lib/esm/types/webhook.d.ts +91 -0
- package/lib/esm/types/webhook.d.ts.map +1 -0
- package/lib/esm/types/webhook.js +6 -3
- package/lib/esm/types/webhook.js.map +1 -0
- package/package.json +5 -7
- package/lib/cjs/index.d.js +0 -2
- package/lib/esm/index.d.js +0 -2
- package/lib/types/tsconfig.build.tsbuildinfo +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SCPreferenceType interface
|
|
3
|
+
*/
|
|
4
|
+
export interface SCPreferenceType {
|
|
5
|
+
/**
|
|
6
|
+
* Unique integer value identifying this dynamic preference
|
|
7
|
+
*/
|
|
8
|
+
id?: number;
|
|
9
|
+
/**
|
|
10
|
+
* Grouping name
|
|
11
|
+
*/
|
|
12
|
+
section?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Unique name identifying this dynamic preference
|
|
15
|
+
*/
|
|
16
|
+
name?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The value of the dynamic preference (can be an integer or a string)
|
|
19
|
+
*/
|
|
20
|
+
value: string;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=preference.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preference.d.ts","sourceRoot":"","sources":["../../../src/types/preference.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=preference.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preference.js","sourceRoot":"","sources":["../../../src/types/preference.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface SCPrivateMessageType.
|
|
3
|
+
* Private Message Schema.
|
|
4
|
+
*/
|
|
5
|
+
import { SCUserType } from './user';
|
|
6
|
+
export interface SCPrivateMessageType {
|
|
7
|
+
/**
|
|
8
|
+
* Message status: created, deleted or hidden message
|
|
9
|
+
*/
|
|
10
|
+
status: string;
|
|
11
|
+
/**
|
|
12
|
+
* Id of the message
|
|
13
|
+
*/
|
|
14
|
+
id: number;
|
|
15
|
+
/**
|
|
16
|
+
* Sender User
|
|
17
|
+
*/
|
|
18
|
+
sender: SCUserType;
|
|
19
|
+
/**
|
|
20
|
+
*Receiver User
|
|
21
|
+
*/
|
|
22
|
+
receiver: SCUserType;
|
|
23
|
+
/**
|
|
24
|
+
* Message
|
|
25
|
+
*/
|
|
26
|
+
html: string;
|
|
27
|
+
/**
|
|
28
|
+
* Send date time
|
|
29
|
+
*/
|
|
30
|
+
created_at: Date | string;
|
|
31
|
+
/**
|
|
32
|
+
* Last interaction date time
|
|
33
|
+
*/
|
|
34
|
+
last_message_at: Date;
|
|
35
|
+
/**
|
|
36
|
+
* Message status: created, deleted or hidden message
|
|
37
|
+
*/
|
|
38
|
+
thread_status: SCPrivateMessageStatusType;
|
|
39
|
+
/**
|
|
40
|
+
* file
|
|
41
|
+
*/
|
|
42
|
+
file?: SCPrivateMessageFileType;
|
|
43
|
+
/**
|
|
44
|
+
* Headline
|
|
45
|
+
*/
|
|
46
|
+
headline: string;
|
|
47
|
+
/**
|
|
48
|
+
* Message content
|
|
49
|
+
*/
|
|
50
|
+
message: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Private Message status:
|
|
54
|
+
* created, deleted or hidden message
|
|
55
|
+
*/
|
|
56
|
+
export declare enum SCPrivateMessageStatusType {
|
|
57
|
+
CREATED = "created",
|
|
58
|
+
DELETED = "deleted",
|
|
59
|
+
HIDDEN = "hidden",
|
|
60
|
+
NEW = "new"
|
|
61
|
+
}
|
|
62
|
+
export interface SCPrivateMessageFileType {
|
|
63
|
+
/**
|
|
64
|
+
* The file id
|
|
65
|
+
*/
|
|
66
|
+
uuid?: string;
|
|
67
|
+
/**
|
|
68
|
+
* File name
|
|
69
|
+
*/
|
|
70
|
+
filename?: string;
|
|
71
|
+
/**
|
|
72
|
+
* File size
|
|
73
|
+
*/
|
|
74
|
+
filesize?: number;
|
|
75
|
+
/**
|
|
76
|
+
* The type of the file
|
|
77
|
+
*/
|
|
78
|
+
mimetype?: SCMessageFileType;
|
|
79
|
+
/**
|
|
80
|
+
* The duration (in seconds) of the file
|
|
81
|
+
*/
|
|
82
|
+
duration?: number;
|
|
83
|
+
/**
|
|
84
|
+
* File Url
|
|
85
|
+
*/
|
|
86
|
+
url?: string;
|
|
87
|
+
/**
|
|
88
|
+
* File thumbnail
|
|
89
|
+
*/
|
|
90
|
+
thumbnail?: string;
|
|
91
|
+
/**
|
|
92
|
+
* File Url(response)
|
|
93
|
+
*/
|
|
94
|
+
file_url?: string;
|
|
95
|
+
/**
|
|
96
|
+
* The file id(response)
|
|
97
|
+
*/
|
|
98
|
+
file_uuid?: string;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Private Message status:
|
|
102
|
+
* created, deleted or hidden message
|
|
103
|
+
*/
|
|
104
|
+
export declare enum SCMessageFileType {
|
|
105
|
+
DOCUMENT = "application/",
|
|
106
|
+
IMAGE = "image/",
|
|
107
|
+
VIDEO = "video/"
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* SCPrivateMessageUploadMediaType interface
|
|
111
|
+
*/
|
|
112
|
+
export interface SCPrivateMessageUploadMediaType {
|
|
113
|
+
file_url: string;
|
|
114
|
+
file_uuid: string;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* SCPrivateMessageUploadThumbnailType interface
|
|
118
|
+
*/
|
|
119
|
+
export interface SCPrivateMessageUploadThumbnailType {
|
|
120
|
+
file_url: string;
|
|
121
|
+
file_uuid: string;
|
|
122
|
+
parent_file_uuid: string;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* SCPrivateMessageUploadMediaChunkType interface
|
|
126
|
+
*/
|
|
127
|
+
export interface SCPrivateMessageUploadMediaChunkType {
|
|
128
|
+
file_uuid: string;
|
|
129
|
+
}
|
|
130
|
+
//# sourceMappingURL=privateMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateMessage.d.ts","sourceRoot":"","sources":["../../../src/types/privateMessage.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAElC,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,MAAM,EAAE,UAAU,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,UAAU,CAAC;IAErB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,MAAM,CAAC;IAC1B;;OAEG;IACH,eAAe,EAAE,IAAI,CAAC;IAEtB;;OAEG;IACH,aAAa,EAAE,0BAA0B,CAAC;IAE1C;;OAEG;IACH,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,oBAAY,0BAA0B;IACpC,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,GAAG,QAAQ;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAE7B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,oBAAY,iBAAiB;IAC3B,QAAQ,iBAAiB;IACzB,KAAK,WAAW;IAChB,KAAK,WAAW;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAClD,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,oCAAoC;IACnD,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1,40 +1,22 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.SCPrivateMessageStatusType = exports.SCMessageFileType = void 0;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Interface SCPrivateMessageType.
|
|
8
|
-
* Private Message Schema.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
1
|
/**
|
|
12
2
|
* Private Message status:
|
|
13
3
|
* created, deleted or hidden message
|
|
14
4
|
*/
|
|
15
|
-
|
|
16
|
-
exports.SCPrivateMessageStatusType = SCPrivateMessageStatusType;
|
|
17
|
-
|
|
5
|
+
export var SCPrivateMessageStatusType;
|
|
18
6
|
(function (SCPrivateMessageStatusType) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
})(SCPrivateMessageStatusType || (
|
|
24
|
-
|
|
7
|
+
SCPrivateMessageStatusType["CREATED"] = "created";
|
|
8
|
+
SCPrivateMessageStatusType["DELETED"] = "deleted";
|
|
9
|
+
SCPrivateMessageStatusType["HIDDEN"] = "hidden";
|
|
10
|
+
SCPrivateMessageStatusType["NEW"] = "new";
|
|
11
|
+
})(SCPrivateMessageStatusType || (SCPrivateMessageStatusType = {}));
|
|
25
12
|
/**
|
|
26
13
|
* Private Message status:
|
|
27
14
|
* created, deleted or hidden message
|
|
28
15
|
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* SCPrivateMessageUploadMediaType interface
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
exports.SCMessageFileType = SCMessageFileType;
|
|
35
|
-
|
|
16
|
+
export var SCMessageFileType;
|
|
36
17
|
(function (SCMessageFileType) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
})(SCMessageFileType || (
|
|
18
|
+
SCMessageFileType["DOCUMENT"] = "application/";
|
|
19
|
+
SCMessageFileType["IMAGE"] = "image/";
|
|
20
|
+
SCMessageFileType["VIDEO"] = "video/";
|
|
21
|
+
})(SCMessageFileType || (SCMessageFileType = {}));
|
|
22
|
+
//# sourceMappingURL=privateMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateMessage.js","sourceRoot":"","sources":["../../../src/types/privateMessage.ts"],"names":[],"mappings":"AA0DA;;;GAGG;AACH,MAAM,CAAN,IAAY,0BAKX;AALD,WAAY,0BAA0B;IACpC,iDAAmB,CAAA;IACnB,iDAAmB,CAAA;IACnB,+CAAiB,CAAA;IACjB,yCAAW,CAAA;AACb,CAAC,EALW,0BAA0B,KAA1B,0BAA0B,QAKrC;AA8CD;;;GAGG;AACH,MAAM,CAAN,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,8CAAyB,CAAA;IACzB,qCAAgB,CAAA;IAChB,qCAAgB,CAAA;AAClB,CAAC,EAJW,iBAAiB,KAAjB,iBAAiB,QAI5B"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { SCUserType } from './user';
|
|
2
|
+
/**
|
|
3
|
+
* Interface SCPrizeType.
|
|
4
|
+
* Prize Schema.
|
|
5
|
+
*/
|
|
6
|
+
export interface SCPrizeType {
|
|
7
|
+
/**
|
|
8
|
+
* The ID of the prize.
|
|
9
|
+
*/
|
|
10
|
+
id: number;
|
|
11
|
+
/**
|
|
12
|
+
* The active status of the prize.
|
|
13
|
+
*/
|
|
14
|
+
active?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* The title of the prize.
|
|
17
|
+
*/
|
|
18
|
+
title?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The prize description.
|
|
21
|
+
*/
|
|
22
|
+
description?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Points to request the prize.
|
|
25
|
+
*/
|
|
26
|
+
points?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Date of prize creation.
|
|
29
|
+
*/
|
|
30
|
+
created_at?: Date;
|
|
31
|
+
/**
|
|
32
|
+
* Date of last modify.
|
|
33
|
+
*/
|
|
34
|
+
lastmod_datetime?: Date;
|
|
35
|
+
/**
|
|
36
|
+
* The prize creator.
|
|
37
|
+
*/
|
|
38
|
+
created_by?: SCUserType;
|
|
39
|
+
/**
|
|
40
|
+
* The prize image.
|
|
41
|
+
*/
|
|
42
|
+
image?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Link to a web resource for the prize.
|
|
45
|
+
*/
|
|
46
|
+
link?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* SCPrizeUserType interface
|
|
50
|
+
* Loyalty Prize User Schema
|
|
51
|
+
*/
|
|
52
|
+
export interface SCPrizeUserType {
|
|
53
|
+
/**
|
|
54
|
+
* Unique integer value
|
|
55
|
+
*/
|
|
56
|
+
id: number;
|
|
57
|
+
/**
|
|
58
|
+
* User obj
|
|
59
|
+
*/
|
|
60
|
+
user: SCUserType;
|
|
61
|
+
/**
|
|
62
|
+
* Prize obj.
|
|
63
|
+
*/
|
|
64
|
+
prize: SCPrizeType;
|
|
65
|
+
/**
|
|
66
|
+
* Prize points when the request was created
|
|
67
|
+
*/
|
|
68
|
+
prize_points: number;
|
|
69
|
+
/**
|
|
70
|
+
* Date since it was in pending status.
|
|
71
|
+
*/
|
|
72
|
+
pending_at: Date | string;
|
|
73
|
+
/**
|
|
74
|
+
* Integer value representing the status.
|
|
75
|
+
*/
|
|
76
|
+
status: SCPrizeUserStatusType;
|
|
77
|
+
/**
|
|
78
|
+
* The string representation of the status.
|
|
79
|
+
*/
|
|
80
|
+
status_description: string;
|
|
81
|
+
}
|
|
82
|
+
export declare enum SCPrizeUserStatusType {
|
|
83
|
+
PENDING = 0,
|
|
84
|
+
REFUSED = 1,
|
|
85
|
+
SENT = 2
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Interface SCUserLoyaltyPointsType
|
|
89
|
+
*/
|
|
90
|
+
export interface SCUserLoyaltyPointsType {
|
|
91
|
+
points: number;
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=prize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prize.d.ts","sourceRoot":"","sources":["../../../src/types/prize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAElC;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AAEH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,WAAW,CAAC;IACnB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,MAAM,CAAC;IAC1B;;OAEG;IACH,MAAM,EAAE,qBAAqB,CAAC;IAC9B;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,oBAAY,qBAAqB;IAC/B,OAAO,IAAI;IACX,OAAO,IAAI;IACX,IAAI,IAAI;CACT;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
package/lib/esm/types/prize.js
CHANGED
|
@@ -1,26 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.SCPrizeUserStatusType = void 0;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Interface SCPrizeType.
|
|
8
|
-
* Prize Schema.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* SCPrizeUserType interface
|
|
13
|
-
* Loyalty Prize User Schema
|
|
14
|
-
*/
|
|
15
|
-
let SCPrizeUserStatusType;
|
|
16
|
-
/**
|
|
17
|
-
* Interface SCUserLoyaltyPointsType
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
exports.SCPrizeUserStatusType = SCPrizeUserStatusType;
|
|
21
|
-
|
|
1
|
+
export var SCPrizeUserStatusType;
|
|
22
2
|
(function (SCPrizeUserStatusType) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
})(SCPrizeUserStatusType || (
|
|
3
|
+
SCPrizeUserStatusType[SCPrizeUserStatusType["PENDING"] = 0] = "PENDING";
|
|
4
|
+
SCPrizeUserStatusType[SCPrizeUserStatusType["REFUSED"] = 1] = "REFUSED";
|
|
5
|
+
SCPrizeUserStatusType[SCPrizeUserStatusType["SENT"] = 2] = "SENT";
|
|
6
|
+
})(SCPrizeUserStatusType || (SCPrizeUserStatusType = {}));
|
|
7
|
+
//# sourceMappingURL=prize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prize.js","sourceRoot":"","sources":["../../../src/types/prize.ts"],"names":[],"mappings":"AA0FA,MAAM,CAAN,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,uEAAW,CAAA;IACX,uEAAW,CAAA;IACX,iEAAQ,CAAA;AACV,CAAC,EAJW,qBAAqB,KAArB,qBAAqB,QAIhC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SSOSigninType interface
|
|
3
|
+
*/
|
|
4
|
+
export interface SSOSignInType {
|
|
5
|
+
id: number;
|
|
6
|
+
ext_id: number | null;
|
|
7
|
+
username: string;
|
|
8
|
+
role?: string | null;
|
|
9
|
+
tags?: number[] | null;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* SSOSignupType interface
|
|
13
|
+
*/
|
|
14
|
+
export interface SSOSignUpType {
|
|
15
|
+
id: number;
|
|
16
|
+
ext_id: number | null;
|
|
17
|
+
username: string;
|
|
18
|
+
email?: string;
|
|
19
|
+
role?: string | null;
|
|
20
|
+
tags?: number[] | null;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=sso.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sso.d.ts","sourceRoot":"","sources":["../../../src/types/sso.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CACxB"}
|
package/lib/esm/types/sso.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sso.js","sourceRoot":"","sources":["../../../src/types/sso.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface SCTagType.
|
|
3
|
+
* Tag Schema.
|
|
4
|
+
*/
|
|
5
|
+
export interface SCTagType {
|
|
6
|
+
/**
|
|
7
|
+
* Unique integer value identifying this tag.
|
|
8
|
+
*/
|
|
9
|
+
id: number;
|
|
10
|
+
/**
|
|
11
|
+
* The type of the tag (unique together name).
|
|
12
|
+
*/
|
|
13
|
+
type?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The name of the tag (unique together type).
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
/**
|
|
19
|
+
* Short description of the tag.
|
|
20
|
+
*/
|
|
21
|
+
description: string;
|
|
22
|
+
/**
|
|
23
|
+
* Hexadecimal format color code with prefix '#'.
|
|
24
|
+
*/
|
|
25
|
+
color: string;
|
|
26
|
+
/**
|
|
27
|
+
* Tag publicly visible.
|
|
28
|
+
*/
|
|
29
|
+
visible?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* The tag has a visibility boost.
|
|
32
|
+
*/
|
|
33
|
+
visibility_boost?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Creation date time.
|
|
36
|
+
*/
|
|
37
|
+
created_at?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Tag active or not
|
|
40
|
+
*/
|
|
41
|
+
active?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Tag deleted or not
|
|
44
|
+
*/
|
|
45
|
+
deleted: boolean;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=tag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../src/types/tag.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB"}
|
package/lib/esm/types/tag.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=tag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.js","sourceRoot":"","sources":["../../../src/types/tag.ts"],"names":[],"mappings":""}
|