@selfcommunity/types 0.1.2-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/LICENSE.md +21 -0
- package/README.md +12 -0
- package/lib/cjs/index.d.js +2 -0
- package/lib/cjs/index.js +64 -0
- package/lib/cjs/types/auth.js +3 -0
- package/lib/cjs/types/broadcastMessage.js +15 -0
- package/lib/cjs/types/category.js +3 -0
- package/lib/cjs/types/comment.js +28 -0
- package/lib/cjs/types/customAdv.js +17 -0
- package/lib/cjs/types/customNotification.js +3 -0
- package/lib/cjs/types/embed.js +3 -0
- package/lib/cjs/types/feed.js +48 -0
- package/lib/cjs/types/incubator.js +3 -0
- package/lib/cjs/types/index.js +112 -0
- package/lib/cjs/types/location.js +3 -0
- package/lib/cjs/types/media.js +3 -0
- package/lib/cjs/types/notification.js +68 -0
- package/lib/cjs/types/poll.js +3 -0
- package/lib/cjs/types/privateMessage.js +36 -0
- package/lib/cjs/types/prize.js +3 -0
- package/lib/cjs/types/tag.js +3 -0
- package/lib/cjs/types/user.js +41 -0
- package/lib/esm/index.d.js +2 -0
- package/lib/esm/index.d.ts +9 -0
- package/lib/esm/index.d.ts.map +1 -0
- package/lib/esm/index.js +64 -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 +3 -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 +15 -0
- package/lib/esm/types/category.d.ts +100 -0
- package/lib/esm/types/category.d.ts.map +1 -0
- package/lib/esm/types/category.js +3 -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 +28 -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 +17 -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 +3 -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 +3 -0
- package/lib/esm/types/feed.d.ts +208 -0
- package/lib/esm/types/feed.d.ts.map +1 -0
- package/lib/esm/types/feed.js +48 -0
- package/lib/esm/types/incubator.d.ts +53 -0
- package/lib/esm/types/incubator.d.ts.map +1 -0
- package/lib/esm/types/incubator.js +3 -0
- package/lib/esm/types/index.d.ts +22 -0
- package/lib/esm/types/index.d.ts.map +1 -0
- package/lib/esm/types/index.js +112 -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 +3 -0
- package/lib/esm/types/media.d.ts +52 -0
- package/lib/esm/types/media.d.ts.map +1 -0
- package/lib/esm/types/media.js +3 -0
- package/lib/esm/types/notification.d.ts +416 -0
- package/lib/esm/types/notification.d.ts.map +1 -0
- package/lib/esm/types/notification.js +68 -0
- package/lib/esm/types/poll.d.ts +77 -0
- package/lib/esm/types/poll.d.ts.map +1 -0
- package/lib/esm/types/poll.js +3 -0
- package/lib/esm/types/privateMessage.d.ts +109 -0
- package/lib/esm/types/privateMessage.d.ts.map +1 -0
- package/lib/esm/types/privateMessage.js +36 -0
- package/lib/esm/types/prize.d.ts +48 -0
- package/lib/esm/types/prize.d.ts.map +1 -0
- package/lib/esm/types/prize.js +3 -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 +3 -0
- package/lib/esm/types/user.d.ts +227 -0
- package/lib/esm/types/user.d.ts.map +1 -0
- package/lib/esm/types/user.js +41 -0
- package/lib/umd/types.js +3 -0
- package/lib/umd/types.js.LICENSE.txt +1 -0
- package/lib/umd/types.js.map +1 -0
- package/package.json +105 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Define the various types of banners
|
|
3
|
+
*/
|
|
4
|
+
export declare enum SCBroadcastMessageBannerType {
|
|
5
|
+
HTML = "html_banner",
|
|
6
|
+
NOTIFICATION = "notification_banner"
|
|
7
|
+
}
|
|
8
|
+
export interface SCBannerType {
|
|
9
|
+
/**
|
|
10
|
+
* The type of the banner, based on it the behaviour of the render component must be different
|
|
11
|
+
*/
|
|
12
|
+
type_banner: SCBroadcastMessageBannerType;
|
|
13
|
+
/**
|
|
14
|
+
* The html to insert into the DOM
|
|
15
|
+
* This field is used when type_banner is html_banner
|
|
16
|
+
*/
|
|
17
|
+
html?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The title of the banner
|
|
20
|
+
*/
|
|
21
|
+
title?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The text of the banner
|
|
24
|
+
*/
|
|
25
|
+
body_text?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The text of the link associated to the banner
|
|
28
|
+
*/
|
|
29
|
+
link_text?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The action link of the banner
|
|
32
|
+
*/
|
|
33
|
+
link?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The image url to insert into the banner
|
|
36
|
+
*/
|
|
37
|
+
image?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The date the Banner was created
|
|
40
|
+
*/
|
|
41
|
+
added_at: Date;
|
|
42
|
+
/**
|
|
43
|
+
* If true tell to open the banner in new tab
|
|
44
|
+
*/
|
|
45
|
+
open_in_new_tab: boolean;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Interface SCBroadcastMessageType.
|
|
49
|
+
* Broadcast Message object
|
|
50
|
+
*/
|
|
51
|
+
export interface SCBroadcastMessageType {
|
|
52
|
+
/**
|
|
53
|
+
* The ID of the category.
|
|
54
|
+
*/
|
|
55
|
+
id: number;
|
|
56
|
+
/**
|
|
57
|
+
* The Banner associated to the Broadcast messages
|
|
58
|
+
*/
|
|
59
|
+
banner: SCBannerType;
|
|
60
|
+
/**
|
|
61
|
+
* The date the BroadcastMessage was added
|
|
62
|
+
*/
|
|
63
|
+
added_at: Date;
|
|
64
|
+
/**
|
|
65
|
+
* The date the BroadcastMessage was disposed
|
|
66
|
+
*/
|
|
67
|
+
disposed_at: Date | null;
|
|
68
|
+
/**
|
|
69
|
+
* The date the BroadcastMessage was viewed the first time
|
|
70
|
+
*/
|
|
71
|
+
viewed_at: Date | null;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=broadcastMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"broadcastMessage.d.ts","sourceRoot":"","sources":["../../../src/types/broadcastMessage.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,4BAA4B;IACtC,IAAI,gBAAgB;IACpB,YAAY,wBAAwB;CACrC;AAED,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,WAAW,EAAE,4BAA4B,CAAC;IAE1C;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,IAAI,CAAC;IACf;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,MAAM,EAAE,YAAY,CAAC;IAErB;;OAEG;IACH,QAAQ,EAAE,IAAI,CAAC;IAEf;;OAEG;IACH,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;CACxB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.SCBroadcastMessageBannerType = void 0;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Define the various types of banners
|
|
8
|
+
*/
|
|
9
|
+
let SCBroadcastMessageBannerType;
|
|
10
|
+
exports.SCBroadcastMessageBannerType = SCBroadcastMessageBannerType;
|
|
11
|
+
|
|
12
|
+
(function (SCBroadcastMessageBannerType) {
|
|
13
|
+
SCBroadcastMessageBannerType["HTML"] = "html_banner";
|
|
14
|
+
SCBroadcastMessageBannerType["NOTIFICATION"] = "notification_banner";
|
|
15
|
+
})(SCBroadcastMessageBannerType || (exports.SCBroadcastMessageBannerType = SCBroadcastMessageBannerType = {}));
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { SCTagType } from './tag';
|
|
2
|
+
/**
|
|
3
|
+
* Interface SCCategoryType.
|
|
4
|
+
* Category Schema.
|
|
5
|
+
*/
|
|
6
|
+
export interface SCCategoryType {
|
|
7
|
+
/**
|
|
8
|
+
* The ID of the category.
|
|
9
|
+
*/
|
|
10
|
+
id: number;
|
|
11
|
+
/**
|
|
12
|
+
* The manual ordering number of the category.
|
|
13
|
+
*/
|
|
14
|
+
order?: number;
|
|
15
|
+
/**
|
|
16
|
+
* The name of the category.
|
|
17
|
+
*/
|
|
18
|
+
name: string;
|
|
19
|
+
/**
|
|
20
|
+
* The synonyms/aliases of the category.
|
|
21
|
+
*/
|
|
22
|
+
name_synonyms?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The slug of the category.
|
|
25
|
+
*/
|
|
26
|
+
slug?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The slogan of the category.
|
|
29
|
+
*/
|
|
30
|
+
slogan?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The category's html text.
|
|
33
|
+
*/
|
|
34
|
+
html_info?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The category's html meta tag.
|
|
37
|
+
*/
|
|
38
|
+
seo_title?: string;
|
|
39
|
+
/**
|
|
40
|
+
* The description for category's html meta tag.
|
|
41
|
+
*/
|
|
42
|
+
seo_description?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The category's auto follow behaviour.
|
|
45
|
+
*/
|
|
46
|
+
auto_follow?: string;
|
|
47
|
+
/**
|
|
48
|
+
* The category status.
|
|
49
|
+
*/
|
|
50
|
+
active?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* The category status.
|
|
53
|
+
*/
|
|
54
|
+
deleted?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* The category's image with min size.
|
|
57
|
+
*/
|
|
58
|
+
image_original?: string;
|
|
59
|
+
/**
|
|
60
|
+
* The category's auto generated bigger size.
|
|
61
|
+
*/
|
|
62
|
+
image_bigger?: string;
|
|
63
|
+
/**
|
|
64
|
+
* The category's auto generated big size.
|
|
65
|
+
*/
|
|
66
|
+
image_big?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The category's auto generated medium size.
|
|
69
|
+
*/
|
|
70
|
+
image_medium?: string;
|
|
71
|
+
/**
|
|
72
|
+
* The category's auto generated small size.
|
|
73
|
+
*/
|
|
74
|
+
image_small?: string;
|
|
75
|
+
/**
|
|
76
|
+
* The landscape format image for category hub.
|
|
77
|
+
*/
|
|
78
|
+
emotional_image_original?: string;
|
|
79
|
+
/**
|
|
80
|
+
* The css background-position.
|
|
81
|
+
*/
|
|
82
|
+
emotional_image_position?: number;
|
|
83
|
+
/**
|
|
84
|
+
* The last modify (datetime)
|
|
85
|
+
*/
|
|
86
|
+
lastmod_datetime?: string;
|
|
87
|
+
/**
|
|
88
|
+
* The order of the category feed.
|
|
89
|
+
*/
|
|
90
|
+
stream_order_by?: string;
|
|
91
|
+
/**
|
|
92
|
+
* The category's tags.
|
|
93
|
+
*/
|
|
94
|
+
tags?: Array<SCTagType>;
|
|
95
|
+
/**
|
|
96
|
+
* Followers counter for the category.
|
|
97
|
+
*/
|
|
98
|
+
followers_counter?: number;
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=category.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../src/types/category.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAEhC;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACxB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { SCUserType } from './index';
|
|
2
|
+
/**
|
|
3
|
+
* Typology Comment
|
|
4
|
+
*/
|
|
5
|
+
export declare const SCCommentTypologyType = "comment";
|
|
6
|
+
/**
|
|
7
|
+
* Interface SCCommentType.
|
|
8
|
+
* Comment Schema.
|
|
9
|
+
*/
|
|
10
|
+
export interface SCCommentType {
|
|
11
|
+
/**
|
|
12
|
+
* Id of the comment
|
|
13
|
+
*/
|
|
14
|
+
id: number;
|
|
15
|
+
/**
|
|
16
|
+
* Id of the Discussion object
|
|
17
|
+
*/
|
|
18
|
+
discussion?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Id of the Post object
|
|
21
|
+
*/
|
|
22
|
+
post?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Id of the Status object
|
|
25
|
+
*/
|
|
26
|
+
status?: number;
|
|
27
|
+
/**
|
|
28
|
+
* User who commented
|
|
29
|
+
*/
|
|
30
|
+
author?: SCUserType;
|
|
31
|
+
/**
|
|
32
|
+
* Added at
|
|
33
|
+
*/
|
|
34
|
+
added_at: Date;
|
|
35
|
+
/**
|
|
36
|
+
* Html of the comment
|
|
37
|
+
*/
|
|
38
|
+
html: string;
|
|
39
|
+
/**
|
|
40
|
+
* Summary
|
|
41
|
+
*/
|
|
42
|
+
summary: string;
|
|
43
|
+
/**
|
|
44
|
+
* If the comments is deleted
|
|
45
|
+
*/
|
|
46
|
+
deleted: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* If the comments is hidden
|
|
49
|
+
*/
|
|
50
|
+
collapsed: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Id of the parent
|
|
53
|
+
*/
|
|
54
|
+
parent: number;
|
|
55
|
+
/**
|
|
56
|
+
* Id of the reply Comment, it must have the same parent
|
|
57
|
+
*/
|
|
58
|
+
in_reply_to?: number;
|
|
59
|
+
/**
|
|
60
|
+
* Number of votes
|
|
61
|
+
*/
|
|
62
|
+
vote_count: number;
|
|
63
|
+
/**
|
|
64
|
+
* True if the logged user has already voted the comment
|
|
65
|
+
*/
|
|
66
|
+
voted: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Number of flags
|
|
69
|
+
*/
|
|
70
|
+
flag_count: number;
|
|
71
|
+
/**
|
|
72
|
+
* Number of comments
|
|
73
|
+
*/
|
|
74
|
+
comment_count: number;
|
|
75
|
+
/**
|
|
76
|
+
* Text of the comment
|
|
77
|
+
*/
|
|
78
|
+
text: string;
|
|
79
|
+
/**
|
|
80
|
+
* Comments childs
|
|
81
|
+
*/
|
|
82
|
+
latest_comments?: SCCommentType[];
|
|
83
|
+
/**
|
|
84
|
+
* Type: comment
|
|
85
|
+
*/
|
|
86
|
+
type: string;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Type of comments ordering
|
|
90
|
+
*/
|
|
91
|
+
export declare enum SCCommentsOrderBy {
|
|
92
|
+
ADDED_AT_DESC = "-added_at",
|
|
93
|
+
ADDED_AT_ASC = "added_at",
|
|
94
|
+
CONNECTION_DESC = "-connection",
|
|
95
|
+
CONNECTION_ASC = "connection"
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=comment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../../src/types/comment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,MAAM,SAAS,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,qBAAqB,YAAY,CAAC;AAE/C;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,IAAI,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,eAAe,CAAC,EAAE,aAAa,EAAE,CAAC;IAElC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,oBAAY,iBAAiB;IAC3B,aAAa,cAAc;IAC3B,YAAY,aAAa;IACzB,eAAe,gBAAgB;IAC/B,cAAc,eAAe;CAC9B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.SCCommentsOrderBy = exports.SCCommentTypologyType = void 0;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Typology Comment
|
|
8
|
+
*/
|
|
9
|
+
const SCCommentTypologyType = 'comment';
|
|
10
|
+
/**
|
|
11
|
+
* Interface SCCommentType.
|
|
12
|
+
* Comment Schema.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
exports.SCCommentTypologyType = SCCommentTypologyType;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Type of comments ordering
|
|
19
|
+
*/
|
|
20
|
+
let SCCommentsOrderBy;
|
|
21
|
+
exports.SCCommentsOrderBy = SCCommentsOrderBy;
|
|
22
|
+
|
|
23
|
+
(function (SCCommentsOrderBy) {
|
|
24
|
+
SCCommentsOrderBy["ADDED_AT_DESC"] = "-added_at";
|
|
25
|
+
SCCommentsOrderBy["ADDED_AT_ASC"] = "added_at";
|
|
26
|
+
SCCommentsOrderBy["CONNECTION_DESC"] = "-connection";
|
|
27
|
+
SCCommentsOrderBy["CONNECTION_ASC"] = "connection";
|
|
28
|
+
})(SCCommentsOrderBy || (exports.SCCommentsOrderBy = SCCommentsOrderBy = {}));
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare enum SCCustomAdvPosition {
|
|
2
|
+
POSITION_BELOW_TOPBAR = "BELOW_TOPBAR",
|
|
3
|
+
POSITION_BELOW_FEED_OBJECT = "BELOW_THE_POST",
|
|
4
|
+
POSITION_ABOVE_FOOTER_BAR = "ABOVE_FOOTER_BAR",
|
|
5
|
+
POSITION_FOOTER_STICKY = "FOOTER_STICKY",
|
|
6
|
+
POSITION_IN_COMMENTS = "IN_POST_COMMENTS",
|
|
7
|
+
POSITION_RELATED_POSTS_COLUMN = "RELATED_POSTS_COLUMN",
|
|
8
|
+
POSITION_FEED_SIDEBAR = "TOOLS_COLUMN",
|
|
9
|
+
POSITION_FEED = "IN_STREAM"
|
|
10
|
+
}
|
|
11
|
+
export interface SCCustomAdvType {
|
|
12
|
+
/**
|
|
13
|
+
* Unique integer value identifying this adv
|
|
14
|
+
*/
|
|
15
|
+
id: number;
|
|
16
|
+
/**
|
|
17
|
+
* A string code representing the display position of the adv
|
|
18
|
+
*/
|
|
19
|
+
position: SCCustomAdvPosition;
|
|
20
|
+
/**
|
|
21
|
+
* The title of the adv
|
|
22
|
+
*/
|
|
23
|
+
title: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* The link/url of the adv
|
|
26
|
+
*/
|
|
27
|
+
link: string | null;
|
|
28
|
+
/**
|
|
29
|
+
* An image banner for the adv
|
|
30
|
+
*/
|
|
31
|
+
image: string | null;
|
|
32
|
+
/**
|
|
33
|
+
* Html/js embeddable code
|
|
34
|
+
*/
|
|
35
|
+
embed_code: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* A flag to activate or deactivate this adv
|
|
38
|
+
*/
|
|
39
|
+
active: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* datetime of creation
|
|
42
|
+
*/
|
|
43
|
+
created_at: string;
|
|
44
|
+
/**
|
|
45
|
+
* last modify datetime
|
|
46
|
+
*/
|
|
47
|
+
lastmod_datetime: string;
|
|
48
|
+
/**
|
|
49
|
+
* The id of the category connected to this adv
|
|
50
|
+
*/
|
|
51
|
+
category: number | null;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=customAdv.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customAdv.d.ts","sourceRoot":"","sources":["../../../src/types/customAdv.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC7B,qBAAqB,iBAAiB;IACtC,0BAA0B,mBAAmB;IAC7C,yBAAyB,qBAAqB;IAC9C,sBAAsB,kBAAkB;IACxC,oBAAoB,qBAAqB;IACzC,6BAA6B,yBAAyB;IACtD,qBAAqB,iBAAiB;IACtC,aAAa,cAAc;CAC5B;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,QAAQ,EAAE,mBAAmB,CAAC;IAE9B;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpB;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.SCCustomAdvPosition = void 0;
|
|
5
|
+
let SCCustomAdvPosition;
|
|
6
|
+
exports.SCCustomAdvPosition = SCCustomAdvPosition;
|
|
7
|
+
|
|
8
|
+
(function (SCCustomAdvPosition) {
|
|
9
|
+
SCCustomAdvPosition["POSITION_BELOW_TOPBAR"] = "BELOW_TOPBAR";
|
|
10
|
+
SCCustomAdvPosition["POSITION_BELOW_FEED_OBJECT"] = "BELOW_THE_POST";
|
|
11
|
+
SCCustomAdvPosition["POSITION_ABOVE_FOOTER_BAR"] = "ABOVE_FOOTER_BAR";
|
|
12
|
+
SCCustomAdvPosition["POSITION_FOOTER_STICKY"] = "FOOTER_STICKY";
|
|
13
|
+
SCCustomAdvPosition["POSITION_IN_COMMENTS"] = "IN_POST_COMMENTS";
|
|
14
|
+
SCCustomAdvPosition["POSITION_RELATED_POSTS_COLUMN"] = "RELATED_POSTS_COLUMN";
|
|
15
|
+
SCCustomAdvPosition["POSITION_FEED_SIDEBAR"] = "TOOLS_COLUMN";
|
|
16
|
+
SCCustomAdvPosition["POSITION_FEED"] = "IN_STREAM";
|
|
17
|
+
})(SCCustomAdvPosition || (exports.SCCustomAdvPosition = SCCustomAdvPosition = {}));
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { SCEmbedType } from './index';
|
|
2
|
+
/**
|
|
3
|
+
* Interface SCCustomNotificationType.
|
|
4
|
+
* Custom Notification Schema.
|
|
5
|
+
*/
|
|
6
|
+
export interface SCCustomNotificationType {
|
|
7
|
+
/**
|
|
8
|
+
* Id of the custom notification
|
|
9
|
+
*/
|
|
10
|
+
id: number;
|
|
11
|
+
/**
|
|
12
|
+
* Custom type notification
|
|
13
|
+
*/
|
|
14
|
+
type: string;
|
|
15
|
+
/**
|
|
16
|
+
* Embed object if exist
|
|
17
|
+
*/
|
|
18
|
+
embed?: SCEmbedType;
|
|
19
|
+
/**
|
|
20
|
+
* Notification title
|
|
21
|
+
*/
|
|
22
|
+
title?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Notification description
|
|
25
|
+
*/
|
|
26
|
+
description?: string;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=customNotification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customNotification.d.ts","sourceRoot":"","sources":["../../../src/types/customNotification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,SAAS,CAAC;AAEpC;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface SCEmbedType.
|
|
3
|
+
* Embed Schema.
|
|
4
|
+
*/
|
|
5
|
+
export interface SCEmbedType {
|
|
6
|
+
/**
|
|
7
|
+
* Id of the embed
|
|
8
|
+
*/
|
|
9
|
+
id: number;
|
|
10
|
+
/**
|
|
11
|
+
* Type of the embed, can be any string except
|
|
12
|
+
* sc_vimeo, sc_link or sc_shared_object that are used
|
|
13
|
+
* for embedded objects automatically created by the community
|
|
14
|
+
*/
|
|
15
|
+
embed_type: string;
|
|
16
|
+
/**
|
|
17
|
+
* External id for the embed object
|
|
18
|
+
*/
|
|
19
|
+
embed_id: number;
|
|
20
|
+
/**
|
|
21
|
+
* Url for the resource, if any
|
|
22
|
+
*/
|
|
23
|
+
url?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Metadata associated to this embed. It mus be a valid json object.
|
|
26
|
+
* For embed_type sc_vimeo or sc_link it contains metadata associated
|
|
27
|
+
* with the external resource. For embed_type sc_shared_object it contains a field
|
|
28
|
+
* type that is the type of the object (Discussion or Post) and a field id
|
|
29
|
+
* that contains the id of the object shared
|
|
30
|
+
*/
|
|
31
|
+
metadata: Record<string, any>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=embed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embed.d.ts","sourceRoot":"","sources":["../../../src/types/embed.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC/B"}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { SCUserType } from './user';
|
|
2
|
+
import { SCCategoryType } from './category';
|
|
3
|
+
import { SCContributionLocation } from './location';
|
|
4
|
+
import { SCPollType } from './poll';
|
|
5
|
+
import { SCMediaType } from './media';
|
|
6
|
+
import { SCTagType } from './tag';
|
|
7
|
+
/**
|
|
8
|
+
* Typology of feed
|
|
9
|
+
*/
|
|
10
|
+
export declare enum SCFeedTypologyType {
|
|
11
|
+
HOME = "home",
|
|
12
|
+
EXPLORE = "explore"
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Typology of feedObject
|
|
16
|
+
*/
|
|
17
|
+
export declare enum SCFeedObjectTypologyType {
|
|
18
|
+
DISCUSSION = "discussion",
|
|
19
|
+
POST = "post",
|
|
20
|
+
STATUS = "status"
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Interface SCFeedUnitType.
|
|
24
|
+
* FeedUnit Schema.
|
|
25
|
+
*/
|
|
26
|
+
export interface SCFeedUnitType {
|
|
27
|
+
/**
|
|
28
|
+
* The type of the object, can be discussion, post or status
|
|
29
|
+
*/
|
|
30
|
+
type: SCFeedObjectTypologyType;
|
|
31
|
+
/**
|
|
32
|
+
* Discussion object
|
|
33
|
+
*/
|
|
34
|
+
discussion?: SCFeedDiscussionType;
|
|
35
|
+
/**
|
|
36
|
+
* Post object
|
|
37
|
+
*/
|
|
38
|
+
post?: SCFeedPostType;
|
|
39
|
+
/**
|
|
40
|
+
* Status object
|
|
41
|
+
*/
|
|
42
|
+
status?: SCFeedStatusType;
|
|
43
|
+
/**
|
|
44
|
+
* Id of User that have seen this object
|
|
45
|
+
*/
|
|
46
|
+
seen_by_id?: number[];
|
|
47
|
+
/**
|
|
48
|
+
* True if this object has the visibility boost
|
|
49
|
+
*/
|
|
50
|
+
has_boost?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* List of feed activities. This field is returned only for relevance feed
|
|
53
|
+
*/
|
|
54
|
+
activities?: SCFeedUnitActivityType[];
|
|
55
|
+
}
|
|
56
|
+
export declare enum SCFeedUnitActivityTypologyType {
|
|
57
|
+
COMMENT = "comment",
|
|
58
|
+
VOTE = "vote",
|
|
59
|
+
POLLVOTE = "pollvote",
|
|
60
|
+
FOLLOW = "follow"
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Interface SCFeedUnitActivityType.
|
|
64
|
+
* FeedUnit Activity Schema.
|
|
65
|
+
*/
|
|
66
|
+
export interface SCFeedUnitActivityType {
|
|
67
|
+
/**
|
|
68
|
+
* The type of the activity.
|
|
69
|
+
*/
|
|
70
|
+
type: SCFeedUnitActivityTypologyType;
|
|
71
|
+
/**
|
|
72
|
+
* The comment if type == SCFeedUnitActivityTypologyType.COMMENT.
|
|
73
|
+
*/
|
|
74
|
+
comment?: any;
|
|
75
|
+
/**
|
|
76
|
+
* The user involved.
|
|
77
|
+
*/
|
|
78
|
+
author: SCUserType;
|
|
79
|
+
/**
|
|
80
|
+
* Time of activity
|
|
81
|
+
*/
|
|
82
|
+
active_at: Date;
|
|
83
|
+
/**
|
|
84
|
+
* Id of Users that have seen this activity
|
|
85
|
+
*/
|
|
86
|
+
seen_by_id?: number[];
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Interface SCFeedObjectType.
|
|
90
|
+
* FeedObject Schema.
|
|
91
|
+
* General object.
|
|
92
|
+
*/
|
|
93
|
+
export interface SCFeedObjectType {
|
|
94
|
+
/**
|
|
95
|
+
* The ID of the post.
|
|
96
|
+
*/
|
|
97
|
+
id: number;
|
|
98
|
+
/**
|
|
99
|
+
* List of categories.
|
|
100
|
+
*/
|
|
101
|
+
categories?: SCCategoryType[];
|
|
102
|
+
/**
|
|
103
|
+
* List of medias
|
|
104
|
+
*/
|
|
105
|
+
medias?: SCMediaType[];
|
|
106
|
+
/**
|
|
107
|
+
* Location (contribution geolocation)
|
|
108
|
+
*/
|
|
109
|
+
location?: SCContributionLocation;
|
|
110
|
+
/**
|
|
111
|
+
* Author of the contribute
|
|
112
|
+
*/
|
|
113
|
+
author?: SCUserType;
|
|
114
|
+
/**
|
|
115
|
+
* Last activity at
|
|
116
|
+
*/
|
|
117
|
+
last_activity_at: Date;
|
|
118
|
+
/**
|
|
119
|
+
* Added at
|
|
120
|
+
*/
|
|
121
|
+
added_at: Date;
|
|
122
|
+
/**
|
|
123
|
+
* Slug
|
|
124
|
+
*/
|
|
125
|
+
slug: string;
|
|
126
|
+
/**
|
|
127
|
+
* Html
|
|
128
|
+
*/
|
|
129
|
+
html: string;
|
|
130
|
+
/**
|
|
131
|
+
* Summary
|
|
132
|
+
*/
|
|
133
|
+
summary: string;
|
|
134
|
+
/**
|
|
135
|
+
* True if the object is deleted
|
|
136
|
+
*/
|
|
137
|
+
deleted: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* True if the object is hidden
|
|
140
|
+
*/
|
|
141
|
+
collapsed: boolean;
|
|
142
|
+
/**
|
|
143
|
+
* Number of comment
|
|
144
|
+
*/
|
|
145
|
+
comment_count: number;
|
|
146
|
+
/**
|
|
147
|
+
* Number of internal share
|
|
148
|
+
*/
|
|
149
|
+
share_count: number;
|
|
150
|
+
/**
|
|
151
|
+
* True if the logged user follow this object
|
|
152
|
+
*/
|
|
153
|
+
followed?: boolean;
|
|
154
|
+
/**
|
|
155
|
+
* Number of votes
|
|
156
|
+
*/
|
|
157
|
+
vote_count: number;
|
|
158
|
+
/**
|
|
159
|
+
* True if the logged user has already voted this object
|
|
160
|
+
*/
|
|
161
|
+
voted?: boolean;
|
|
162
|
+
/**
|
|
163
|
+
* Number of flags
|
|
164
|
+
*/
|
|
165
|
+
flag_count: number;
|
|
166
|
+
/**
|
|
167
|
+
* Tags adderssing
|
|
168
|
+
*/
|
|
169
|
+
addressing: SCTagType[];
|
|
170
|
+
/**
|
|
171
|
+
* Type: discussion, post, status
|
|
172
|
+
*/
|
|
173
|
+
type: SCFeedObjectTypologyType;
|
|
174
|
+
/**
|
|
175
|
+
* Suspended notification
|
|
176
|
+
*/
|
|
177
|
+
suspended?: boolean;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Interface SCFeedDiscussionType.
|
|
181
|
+
* FeedDiscussion Schema.
|
|
182
|
+
*/
|
|
183
|
+
export interface SCFeedDiscussionType extends SCFeedObjectType {
|
|
184
|
+
/**
|
|
185
|
+
* Title of the discussion
|
|
186
|
+
*/
|
|
187
|
+
title: string;
|
|
188
|
+
/**
|
|
189
|
+
* Poll
|
|
190
|
+
*/
|
|
191
|
+
poll?: SCPollType;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Interface SCFeedPostType.
|
|
195
|
+
* Post Schema.
|
|
196
|
+
*/
|
|
197
|
+
export interface SCFeedPostType extends SCFeedObjectType {
|
|
198
|
+
/**
|
|
199
|
+
* Poll
|
|
200
|
+
*/
|
|
201
|
+
poll?: SCPollType;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Interface SCFeedStatusType.
|
|
205
|
+
* Status Schema.
|
|
206
|
+
*/
|
|
207
|
+
export declare type SCFeedStatusType = SCFeedObjectType;
|
|
208
|
+
//# sourceMappingURL=feed.d.ts.map
|