@salesforce/lds-adapters-cms-managedcontentspaces 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.
Files changed (21) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/cms-managedcontentspaces.js +749 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getManagedContentSpaceChannels.d.ts +29 -0
  5. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -0
  7. package/dist/es/es2018/types/src/generated/resources/getConnectCmsSpacesChannelsByContentSpaceId.d.ts +19 -0
  8. package/dist/es/es2018/types/src/generated/resources/patchConnectCmsSpacesChannelsByContentSpaceId.d.ts +13 -0
  9. package/dist/es/es2018/types/src/generated/types/ManagedContentChannelSummaryRepresentation.d.ts +47 -0
  10. package/dist/es/es2018/types/src/generated/types/ManagedContentSpaceChannelInputRepresentation.d.ts +31 -0
  11. package/dist/es/es2018/types/src/generated/types/ManagedContentSpaceChannelRepresentation.d.ts +47 -0
  12. package/dist/es/es2018/types/src/generated/types/ManagedContentSpaceChannelsInputList.d.ts +29 -0
  13. package/dist/es/es2018/types/src/generated/types/ManagedContentSpaceChannelsInputRepresentation.d.ts +29 -0
  14. package/dist/es/es2018/types/src/generated/types/ManagedContentSpaceChannelsRepresentation.d.ts +51 -0
  15. package/dist/es/es2018/types/src/generated/types/ManagedContentUserSummaryRepresentation.d.ts +34 -0
  16. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  17. package/package.json +66 -0
  18. package/sfdc/index.d.ts +1 -0
  19. package/sfdc/index.js +785 -0
  20. package/src/raml/api.raml +182 -0
  21. package/src/raml/luvio.raml +27 -0
@@ -0,0 +1,182 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '62.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
+ ManagedContentSpaceChannelsRepresentation:
29
+ description: List of managed content space channels.
30
+ type: object
31
+ properties:
32
+ currentPageUrl:
33
+ description: URL to the current page of Manage Content Space Channels.
34
+ type: string | nil
35
+ nextPageUrl:
36
+ description: URL to the next page of Manage Content Space Channels.
37
+ type: string | nil
38
+ previousPageUrl:
39
+ description: URL to the previous page of Managed Content Space Channel records
40
+ type: string | nil
41
+ spaceChannels:
42
+ description: Managed content space channels
43
+ type: array
44
+ items:
45
+ type: ManagedContentSpaceChannelRepresentation
46
+ totalSpaceChannels:
47
+ description: Total count of Manage Content Space Channel records returned
48
+ for the current request
49
+ type: integer
50
+ ManagedContentSpaceChannelRepresentation:
51
+ description: Representation of a Managed Content space Channel
52
+ type: object
53
+ properties:
54
+ channelSummary:
55
+ description: ManagedContent channel information
56
+ type: ManagedContentChannelSummaryRepresentation
57
+ createdBy:
58
+ description: Information of the user who created the Managed Content Space
59
+ Channel.
60
+ type: ManagedContentUserSummaryRepresentation
61
+ createdDate:
62
+ description: Date when the space channel is created
63
+ type: string
64
+ status:
65
+ description: Status of the Managed Content Space Channel.
66
+ type: string
67
+ enum:
68
+ - Created
69
+ - Delink
70
+ - Failed
71
+ - Pending
72
+ ManagedContentChannelSummaryRepresentation:
73
+ description: Contextual Information of the channel in managed content delivery
74
+ api
75
+ type: object
76
+ properties:
77
+ id:
78
+ description: Id of the Managed Content Channel
79
+ type: string
80
+ name:
81
+ description: Name of the managed content channel
82
+ type: string
83
+ type:
84
+ description: Type of Managed Content Channel
85
+ type: string
86
+ enum:
87
+ - CloudToCloud
88
+ - Community
89
+ - ConnectedApp
90
+ - PublicUnauthenticated
91
+ - UserPermission
92
+ url:
93
+ description: URL to the single channel management API that can read detailed
94
+ information of a channel, update or delete it
95
+ type: string
96
+ ManagedContentUserSummaryRepresentation:
97
+ description: Information about a user who created/modified content.
98
+ type: object
99
+ properties:
100
+ id:
101
+ description: The id of the user.
102
+ type: string
103
+ name:
104
+ description: The name of the user.
105
+ type: string
106
+ resourceUrl:
107
+ description: The connect endpoint resourceUrl of the user to get more information
108
+ about the user.
109
+ type: string
110
+ ManagedContentSpaceChannelsInputRepresentation:
111
+ description: The input representation for a Managed Content space Channels
112
+ type: object
113
+ properties:
114
+ spaceChannels:
115
+ description: List of Managed Content Space Channels to be added or removed
116
+ from the workspace
117
+ type: array
118
+ items:
119
+ type: ManagedContentSpaceChannelsInputList
120
+ ManagedContentSpaceChannelsInputList:
121
+ description: ManagedContentSpaceChannelInputRepresentation list input representation
122
+ wrapper.
123
+ type: object
124
+ properties:
125
+ mcSpaceChannelInput:
126
+ description: Managed Content Space Channels list to be added or removed from
127
+ the workspace.
128
+ type: array
129
+ items:
130
+ type: ManagedContentSpaceChannelInputRepresentation
131
+ ManagedContentSpaceChannelInputRepresentation:
132
+ description: The input representation for a Managed Content Space Channel
133
+ type: object
134
+ properties:
135
+ channelId:
136
+ description: Id of the Managed Content Channel
137
+ type: string
138
+ operation:
139
+ description: Operation to perform for Managed Content Channel
140
+ type: string
141
+ enum:
142
+ - Add
143
+ - Remove
144
+
145
+ /connect:
146
+ /cms:
147
+ /spaces/{contentSpaceId}:
148
+ /channels:
149
+ get:
150
+ displayName: getManagedContentSpaceChannels
151
+ description: Get a space channels for a specific ManagedContentSpace record.
152
+ responses:
153
+ '200':
154
+ description: Success
155
+ body:
156
+ application/json:
157
+ type: ManagedContentSpaceChannelsRepresentation
158
+ queryParameters:
159
+ page:
160
+ type: integer
161
+ required: false
162
+ pageSize:
163
+ type: integer
164
+ required: false
165
+ patch:
166
+ displayName: patchManagedContentSpaceChannels
167
+ description: Update space channels for a specific ManagedContentSpace
168
+ record.
169
+ responses:
170
+ '200':
171
+ description: Success
172
+ body:
173
+ application/json:
174
+ type: ManagedContentSpaceChannelsRepresentation
175
+ body:
176
+ application/json:
177
+ type: ManagedContentSpaceChannelsInputRepresentation
178
+ (oas-body-name): spaceChannels
179
+ uriParameters:
180
+ contentSpaceId:
181
+ type: string
182
+ required: true
@@ -0,0 +1,27 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'CmsManagement'
8
+
9
+ types:
10
+ ManagedContentSpaceChannelsRepresentation:
11
+ (luvio.ttl): 30000
12
+ ManagedContentSpaceChannelRepresentation:
13
+ (luvio.ttl): 30000
14
+ ManagedContentChannelSummaryRepresentation:
15
+ (luvio.ttl): 30000
16
+ (luvio.key):
17
+ channelId: id
18
+
19
+ /connect/cms/spaces/{contentSpaceId}/channels:
20
+ get:
21
+ (luvio.adapter):
22
+ name: getManagedContentSpaceChannels
23
+ responses:
24
+ 200:
25
+ body:
26
+ application/json:
27
+ type: ManagedContentSpaceChannelsRepresentation