@salesforce/lds-adapters-community-info 0.1.0-dev1

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.
@@ -0,0 +1,170 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '56.0'
6
+ mediaType: application/json
7
+ protocols:
8
+ - https
9
+ baseUri: /services/data/v66.0
10
+ securitySchemes:
11
+ OAuth2:
12
+ type: OAuth 2.0
13
+ settings:
14
+ authorizationUri: https://example.com/oauth/authorize
15
+ accessTokenUri: ''
16
+ authorizationGrants:
17
+ - implicit
18
+ annotationTypes:
19
+ oas-readOnly:
20
+ type: boolean
21
+ allowedTargets: TypeDeclaration
22
+ oas-collectionFormat:
23
+ type: string
24
+ oas-body-name:
25
+ type: string
26
+ allowedTargets: TypeDeclaration
27
+ types:
28
+ CommunityCollectionRepresentation:
29
+ description: A list of Communities.
30
+ type: object
31
+ properties:
32
+ communities:
33
+ description: List of communities available to the current user.
34
+ type: array
35
+ items:
36
+ type: CommunityRepresentation
37
+ total:
38
+ description: Total number of communities available to the current user.
39
+ type: integer
40
+ CommunityRepresentation:
41
+ description: Communities are customizable public or private spaces for employees,
42
+ customers, and partners to collaborate on best practices and business processes.
43
+ type: object
44
+ properties:
45
+ allowChatterAccessWithoutLogin:
46
+ description: Specifies whether guest users can access public Chatter groups
47
+ in the community without logging in.
48
+ type: boolean | nil
49
+ allowMembersToFlag:
50
+ description: Specifies whether members of this community are allowed to flag
51
+ content.
52
+ type: boolean | nil
53
+ builderBasedSnaEnabled:
54
+ description: Specifies whether the Service Not Available page is an auto-generated
55
+ Experience Builder-based page (true) or a static resource page that is set
56
+ in Workspaces|Administration|Pages (false).
57
+ type: boolean | nil
58
+ builderUrl:
59
+ description: Builder URL for the Community
60
+ type: string | nil
61
+ contentSpaceId:
62
+ description: 18-character content space Id of the managed content for Enhanced
63
+ Site.
64
+ type: string | nil
65
+ description:
66
+ description: Community’s description.
67
+ type: string | nil
68
+ guestMemberVisibilityEnabled:
69
+ description: Specifies whether guest members can see other members of the
70
+ community or not.
71
+ type: boolean | nil
72
+ id:
73
+ description: 18-character Id of the community.
74
+ type: string | nil
75
+ imageOptimizationCDNEnabled:
76
+ description: Specifies whether image optimization is enabled for sites hosted
77
+ on iCDN platforms or not
78
+ type: boolean | nil
79
+ invitationsEnabled:
80
+ description: Specifies if members of the community can invite other members
81
+ to the community, true if they can, false otherwise.
82
+ type: boolean | nil
83
+ knowledgeableEnabled:
84
+ description: Specifies if the community is able to have knowledgeable users
85
+ on topics and knowledgeable about topics.
86
+ type: boolean | nil
87
+ loginUrl:
88
+ description: Full login URL for the Community
89
+ type: string | nil
90
+ memberVisibilityEnabled:
91
+ description: Specifies whether members can see other members of the community
92
+ or not.This is honored when 'Control user visibility within a community'
93
+ perm is enabled
94
+ type: boolean | nil
95
+ name:
96
+ description: Community's name.
97
+ type: string | nil
98
+ nicknameDisplayEnabled:
99
+ description: Specifies whether nickname display is enabled in the community
100
+ or not.
101
+ type: boolean | nil
102
+ privateMessagesEnabled:
103
+ description: Specifies if members of the community can send and receive Private
104
+ Messages to other members in the community, true if they can, false otherwise.
105
+ type: boolean | nil
106
+ reputationEnabled:
107
+ description: Specifies whether Reputation is calculated and displayed for
108
+ community members.
109
+ type: boolean | nil
110
+ sendWelcomeEmail:
111
+ description: Specifies if a welcome email is automatically generated and sent
112
+ to any new member. true if email is sent, false otherwise
113
+ type: boolean | nil
114
+ siteAsContainerEnabled:
115
+ description: Specifies whether the community is site.com template enabled
116
+ or not.
117
+ type: boolean | nil
118
+ siteUrl:
119
+ description: Site URL for the Community, which is custom domain + URL prefix.
120
+ type: string | nil
121
+ status:
122
+ description: Community's publish status.
123
+ type: string | nil
124
+ enum:
125
+ - Inactive
126
+ - Live
127
+ - UnderConstruction
128
+ templateName:
129
+ description: Community’s template name.
130
+ type: string | nil
131
+ url:
132
+ description: Full URL to community.
133
+ type: string | nil
134
+ urlPathPrefix:
135
+ description: Community-specific URL prefix.
136
+ type: string | nil
137
+
138
+ /connect:
139
+ /communities:
140
+ get:
141
+ displayName: getCommunityCollection
142
+ description: Returns all the communities available to the context user, optionally
143
+ filtered by status.
144
+ responses:
145
+ '200':
146
+ description: Success
147
+ body:
148
+ application/json:
149
+ type: CommunityCollectionRepresentation
150
+ queryParameters:
151
+ status:
152
+ type: string
153
+ required: false
154
+ enum:
155
+ - Inactive
156
+ - Live
157
+ - UnderConstruction
158
+ /communities/{communityId}:
159
+ get:
160
+ description: Returns information about the specified community.
161
+ responses:
162
+ '200':
163
+ description: Success
164
+ body:
165
+ application/json:
166
+ type: CommunityRepresentation
167
+ uriParameters:
168
+ communityId:
169
+ type: string
170
+ required: true
@@ -0,0 +1,32 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'CommunityInfo'
8
+ (luvio.ttl): 2592000000
9
+
10
+ types:
11
+ CommunityCollectionRepresentation:
12
+ (luvio.ttl): 60000
13
+ CommunityRepresentation:
14
+ (luvio.ttl): 3600000
15
+ (luvio.key):
16
+ id: id
17
+ (luvio.updateAvailable):
18
+ name: notifyCommunityUpdateAvailable
19
+ parameters:
20
+ id: id
21
+
22
+ /connect:
23
+ /communities/{communityId}:
24
+ get:
25
+ (luvio.adapter):
26
+ name: getCommunity
27
+ (luvio.key):
28
+ id: urlParams.communityId
29
+ /communities:
30
+ get:
31
+ (luvio.adapter):
32
+ name: getCommunities