@salesforce/lds-adapters-platform-devworkspace 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 (24) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/platform-devworkspace.js +883 -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 +44 -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 +50 -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 +996 -0
  23. package/src/raml/api.raml +176 -0
  24. package/src/raml/luvio.raml +43 -0
@@ -0,0 +1,176 @@
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/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
+ 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
+ required: false
48
+ devWorkspaceId:
49
+ description: The id of Dev Workspace
50
+ type: string
51
+ developerName:
52
+ description: The developerName of DevWorkspace
53
+ type: string
54
+ lastModifiedDate:
55
+ description: The lastModifiedDate for Dev Workspace
56
+ type: string
57
+ masterLabel:
58
+ description: The masterLabel of Dev Workspace
59
+ type: string
60
+ activePlan:
61
+ description: The Plan ID for active plan for the Dev Workspace
62
+ type: string
63
+ required: false
64
+ DevWorkspaceMetadataCollectionOutputRepresentation:
65
+ description: Representation for list of Workspace Metadata
66
+ type: object
67
+ properties:
68
+ currentDevWorkspaceId:
69
+ description: The ID of current workspace whose metadata is returned
70
+ type: string
71
+ devWorkspaceMetadata:
72
+ description: The list of metadata in a Workspace
73
+ type: array
74
+ items:
75
+ type: DevWorkspaceMetadataDetailOutputRepresentation
76
+ DevWorkspaceMetadataDetailOutputRepresentation:
77
+ description: Representation for DevWorkspace Metadata
78
+ type: object
79
+ properties:
80
+ actionURL:
81
+ description: The action url of the metadata record
82
+ type: string
83
+ required: false
84
+ developerName:
85
+ description: The developer name of the metadata record
86
+ type: string
87
+ required: false
88
+ label:
89
+ description: The label of the metadata record
90
+ type: string
91
+ required: false
92
+ lastModifiedDate:
93
+ description: The last modified date of the metadata record
94
+ type: string
95
+ required: false
96
+ metadataId:
97
+ description: The metadata id of the metadata record
98
+ type: string
99
+ metadataType:
100
+ description: The metadata type of the metadata record
101
+ type: string
102
+ required: false
103
+ metadataTypeLabel:
104
+ description: The label of the metadata type
105
+ type: string
106
+ required: false
107
+ isAiGenerated:
108
+ description: Whether the metadata was generated through AI
109
+ type: boolean
110
+ required: false
111
+ DevWorkspaceMetadataIdCollectionInputRepresentation:
112
+ description: Representation for List of metadata Ids
113
+ type: object
114
+ properties:
115
+ metadataIds:
116
+ description: The list of ids of metadata
117
+ type: array
118
+ items:
119
+ type: string
120
+ operationType:
121
+ description: The list of ids of metadata
122
+ type: string
123
+ enum:
124
+ - AddMetadata
125
+ - RemoveMetadata
126
+ /connect/workspaces:
127
+ get:
128
+ displayName: getDevWorkspaces
129
+ description: Get all Dev Workspaces for a user
130
+ responses:
131
+ '200':
132
+ description: Success
133
+ body:
134
+ application/json:
135
+ type: DevWorkspaceDetailsCollectionRepresentation
136
+ /connect/workspaces/{devWorkspaceId}:
137
+ get:
138
+ displayName: getDevWorkspace
139
+ description: Gets Details of a Dev Workspace
140
+ responses:
141
+ '200':
142
+ description: Success
143
+ body:
144
+ application/json:
145
+ type: DevWorkspaceDetailsRepresentation
146
+ uriParameters:
147
+ devWorkspaceId:
148
+ type: string
149
+ required: true
150
+ /connect/workspaces/{devWorkspaceId}/metadata:
151
+ get:
152
+ displayName: getDevWorkspacesMetadata
153
+ description: Gets all metadata associated with a DevWorkspace
154
+ responses:
155
+ '200':
156
+ description: Success
157
+ body:
158
+ application/json:
159
+ type: DevWorkspaceMetadataCollectionOutputRepresentation
160
+ patch:
161
+ displayName: patchDevWorkspacesMetadata
162
+ description: Adds or removes metadata to a DevWorkspace based on operationType
163
+ responses:
164
+ '200':
165
+ description: Success
166
+ body:
167
+ application/json:
168
+ type: DevWorkspaceMetadataCollectionOutputRepresentation
169
+ body:
170
+ application/json:
171
+ type: DevWorkspaceMetadataIdCollectionInputRepresentation
172
+ (oas-body-name): updateMetadataInput
173
+ uriParameters:
174
+ devWorkspaceId:
175
+ type: string
176
+ 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