@salesforce/lds-adapters-platform-devworkspace 1.353.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.
Files changed (24) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/platform-devworkspace.js +867 -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/getDevWorkspaceDetails.d.ts +27 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getDevWorkspaceMetadata.d.ts +28 -0
  6. package/dist/es/es2018/types/src/generated/adapters/getDevWorkspaces.d.ts +26 -0
  7. package/dist/es/es2018/types/src/generated/adapters/updateDevWorkspaceMetadata.d.ts +17 -0
  8. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +4 -0
  9. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +9 -0
  10. package/dist/es/es2018/types/src/generated/resources/getConnectWorkspaces.d.ts +12 -0
  11. package/dist/es/es2018/types/src/generated/resources/getConnectWorkspacesByDevWorkspaceId.d.ts +15 -0
  12. package/dist/es/es2018/types/src/generated/resources/getConnectWorkspacesMetadataByDevWorkspaceId.d.ts +16 -0
  13. package/dist/es/es2018/types/src/generated/resources/patchConnectWorkspacesMetadataByDevWorkspaceId.d.ts +16 -0
  14. package/dist/es/es2018/types/src/generated/types/DevWorkspaceDetailsCollectionRepresentation.d.ts +33 -0
  15. package/dist/es/es2018/types/src/generated/types/DevWorkspaceDetailsRepresentation.d.ts +41 -0
  16. package/dist/es/es2018/types/src/generated/types/DevWorkspaceMetadataCollectionOutputRepresentation.d.ts +42 -0
  17. package/dist/es/es2018/types/src/generated/types/DevWorkspaceMetadataDetailOutputRepresentation.d.ts +47 -0
  18. package/dist/es/es2018/types/src/generated/types/DevWorkspaceMetadataIdCollectionInputRepresentation.d.ts +31 -0
  19. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  20. package/package.json +66 -0
  21. package/sfdc/index.d.ts +1 -0
  22. package/sfdc/index.js +980 -0
  23. package/src/raml/api.raml +167 -0
  24. package/src/raml/luvio.raml +43 -0
@@ -0,0 +1,167 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '64.0'
6
+ mediaType: application/json
7
+ protocols:
8
+ - https
9
+ baseUri: /services/data/v64.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
+ DevWorkspaceDetailsCollectionRepresentation:
29
+ description: Representation for Dev Workspace Item list
30
+ type: object
31
+ properties:
32
+ count:
33
+ description: Returns the count of all Salesforce Apps
34
+ type: integer
35
+ devWorkspaces:
36
+ description: Returns the list of all Dev Workspaces
37
+ type: array
38
+ items:
39
+ type: DevWorkspaceDetailsRepresentation
40
+ DevWorkspaceDetailsRepresentation:
41
+ description: Representation for Dev Workspace
42
+ type: object
43
+ properties:
44
+ description:
45
+ description: The description of Dev Workspace
46
+ type: string
47
+ devWorkspaceId:
48
+ description: The id of Dev Workspace
49
+ type: string
50
+ developerName:
51
+ description: The developerName of DevWorkspace
52
+ type: string
53
+ lastModifiedDate:
54
+ description: The lastModifiedDate for Dev Workspace
55
+ type: string
56
+ masterLabel:
57
+ description: The masterLabel of Dev Workspace
58
+ type: string
59
+ DevWorkspaceMetadataCollectionOutputRepresentation:
60
+ description: Representation for list of Workspace Metadata
61
+ type: object
62
+ properties:
63
+ currentDevWorkspaceId:
64
+ description: The ID of current workspace whose metadata is returned
65
+ type: string
66
+ devWorkspaceMetadata:
67
+ description: The list of metadata in a Workspace
68
+ type: array
69
+ items:
70
+ type: DevWorkspaceMetadataDetailOutputRepresentation
71
+ DevWorkspaceMetadataDetailOutputRepresentation:
72
+ description: Representation for DevWorkspace Metadata
73
+ type: object
74
+ properties:
75
+ actionURL:
76
+ description: The action url of the metadata record
77
+ type: string
78
+ required: false
79
+ developerName:
80
+ description: The developer name of the metadata record
81
+ type: string
82
+ required: false
83
+ label:
84
+ description: The label of the metadata record
85
+ type: string
86
+ required: false
87
+ lastModifiedDate:
88
+ description: The last modified date of the metadata record
89
+ type: string
90
+ required: false
91
+ metadataId:
92
+ description: The metadata id of the metadata record
93
+ type: string
94
+ metadataType:
95
+ description: The metadata type of the metadata record
96
+ type: string
97
+ required: false
98
+ metadataTypeLabel:
99
+ description: The label of the metadata type
100
+ type: string
101
+ required: false
102
+ DevWorkspaceMetadataIdCollectionInputRepresentation:
103
+ description: Representation for List of metadata Ids
104
+ type: object
105
+ properties:
106
+ metadataIds:
107
+ description: The list of ids of metadata
108
+ type: array
109
+ items:
110
+ type: string
111
+ operationType:
112
+ description: The list of ids of metadata
113
+ type: string
114
+ enum:
115
+ - AddMetadata
116
+ - RemoveMetadata
117
+ /connect/workspaces:
118
+ get:
119
+ displayName: getDevWorkspaces
120
+ description: Get all Dev Workspaces for a user
121
+ responses:
122
+ '200':
123
+ description: Success
124
+ body:
125
+ application/json:
126
+ type: DevWorkspaceDetailsCollectionRepresentation
127
+ /connect/workspaces/{devWorkspaceId}:
128
+ get:
129
+ displayName: getDevWorkspace
130
+ description: Gets Details of a Dev Workspace
131
+ responses:
132
+ '200':
133
+ description: Success
134
+ body:
135
+ application/json:
136
+ type: DevWorkspaceDetailsRepresentation
137
+ uriParameters:
138
+ devWorkspaceId:
139
+ type: string
140
+ required: true
141
+ /connect/workspaces/{devWorkspaceId}/metadata:
142
+ get:
143
+ displayName: getDevWorkspacesMetadata
144
+ description: Gets all metadata associated with a DevWorkspace
145
+ responses:
146
+ '200':
147
+ description: Success
148
+ body:
149
+ application/json:
150
+ type: DevWorkspaceMetadataCollectionOutputRepresentation
151
+ patch:
152
+ displayName: patchDevWorkspacesMetadata
153
+ description: Adds or removes metadata to a DevWorkspace based on operationType
154
+ responses:
155
+ '200':
156
+ description: Success
157
+ body:
158
+ application/json:
159
+ type: DevWorkspaceMetadataCollectionOutputRepresentation
160
+ body:
161
+ application/json:
162
+ type: DevWorkspaceMetadataIdCollectionInputRepresentation
163
+ (oas-body-name): updateMetadataInput
164
+ uriParameters:
165
+ devWorkspaceId:
166
+ type: string
167
+ required: true
@@ -0,0 +1,43 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'DevWorkspace'
8
+
9
+ types:
10
+ DevWorkspaceMetadataCollectionOutputRepresentation:
11
+ (luvio.ttl): 30000
12
+ (luvio.key):
13
+ workspaceId: currentDevWorkspaceId
14
+ (luvio.opaque): true
15
+ DevWorkspaceMetadataDetailOutputRepresentation:
16
+ (luvio.ttl): 30000
17
+ (luvio.opaque): true
18
+ DevWorkspaceDetailsCollectionRepresentation:
19
+ (luvio.ttl): 30000
20
+ (luvio.opaque): true
21
+ DevWorkspaceDetailsRepresentation:
22
+ (luvio.ttl): 30000
23
+ (luvio.opaque): true
24
+
25
+ /connect/workspaces/{devWorkspaceId}/metadata:
26
+ get:
27
+ (luvio.adapter):
28
+ name: getDevWorkspaceMetadata
29
+ (luvio.key):
30
+ workspaceId: urlParams.devWorkspaceId
31
+ patch:
32
+ (luvio.adapter):
33
+ name: updateDevWorkspaceMetadata
34
+
35
+ /connect/workspaces/{devWorkspaceId}:
36
+ get:
37
+ (luvio.adapter):
38
+ name: getDevWorkspaceDetails
39
+
40
+ /connect/workspaces:
41
+ get:
42
+ (luvio.adapter):
43
+ name: getDevWorkspaces