@salesforce/lds-adapters-commerce-extensions 1.121.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 (38) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/commerce-extensions.js +2051 -0
  3. package/dist/types/src/generated/adapters/adapter-utils.d.ts +66 -0
  4. package/dist/types/src/generated/adapters/createMapping.d.ts +17 -0
  5. package/dist/types/src/generated/adapters/deleteMapping.d.ts +13 -0
  6. package/dist/types/src/generated/adapters/getExtensions.d.ts +25 -0
  7. package/dist/types/src/generated/adapters/getMapping.d.ts +27 -0
  8. package/dist/types/src/generated/adapters/getMappings.d.ts +27 -0
  9. package/dist/types/src/generated/adapters/getProviders.d.ts +27 -0
  10. package/dist/types/src/generated/adapters/updateMapping.d.ts +18 -0
  11. package/dist/types/src/generated/artifacts/main.d.ts +7 -0
  12. package/dist/types/src/generated/artifacts/sfdc.d.ts +13 -0
  13. package/dist/types/src/generated/resources/deleteCommerceExtensionMappingsByMappingId.d.ts +12 -0
  14. package/dist/types/src/generated/resources/getCommerceExtensionExtensions.d.ts +12 -0
  15. package/dist/types/src/generated/resources/getCommerceExtensionMappings.d.ts +16 -0
  16. package/dist/types/src/generated/resources/getCommerceExtensionMappingsByMappingId.d.ts +16 -0
  17. package/dist/types/src/generated/resources/getCommerceExtensionProviders.d.ts +16 -0
  18. package/dist/types/src/generated/resources/postCommerceExtensionMappings.d.ts +15 -0
  19. package/dist/types/src/generated/resources/putCommerceExtensionMappingsByMappingId.d.ts +18 -0
  20. package/dist/types/src/generated/types/ApexClassOutputRepresentation.d.ts +38 -0
  21. package/dist/types/src/generated/types/EffectiveMappingRepresentation.d.ts +29 -0
  22. package/dist/types/src/generated/types/ExtensionOutputCollectionRepresentation.d.ts +43 -0
  23. package/dist/types/src/generated/types/ExtensionOutputRepresentation.d.ts +57 -0
  24. package/dist/types/src/generated/types/MappingInputRepresentation.d.ts +48 -0
  25. package/dist/types/src/generated/types/MappingOutputCollectionRepresentation.d.ts +43 -0
  26. package/dist/types/src/generated/types/MappingOutputRepresentation.d.ts +49 -0
  27. package/dist/types/src/generated/types/ProviderOutputCollectionRepresentation.d.ts +43 -0
  28. package/dist/types/src/generated/types/ProviderOutputRepresentation.d.ts +53 -0
  29. package/dist/types/src/generated/types/type-utils.d.ts +39 -0
  30. package/dist/types/src/main.d.ts +2 -0
  31. package/dist/types/src/sfdc.d.ts +3 -0
  32. package/dist/umd/es2018/commerce-extensions.js +2066 -0
  33. package/dist/umd/es5/commerce-extensions.js +2074 -0
  34. package/package.json +68 -0
  35. package/sfdc/index.d.ts +1 -0
  36. package/sfdc/index.js +2164 -0
  37. package/src/raml/api.raml +256 -0
  38. package/src/raml/luvio.raml +67 -0
@@ -0,0 +1,256 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '58.0'
6
+ mediaType: application/json
7
+ protocols:
8
+ - https
9
+ baseUri: /services/data/v58.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
+ ApexClassOutputRepresentation:
29
+ description: Output representation of a provider's apex class.
30
+ type: object
31
+ properties:
32
+ classId:
33
+ description: Unique identifier for the apex class.
34
+ type: string
35
+ className:
36
+ description: Name of the main class containing the entry methods.
37
+ type: string
38
+ namespace:
39
+ description: Unique identifier for the company supplying the provider
40
+ type: string
41
+ version:
42
+ description: The version of the apex class
43
+ type: string
44
+ EffectiveMappingRepresentation:
45
+ description: Output representation of a list of webstores that are effectivly
46
+ mapped to an Extension.
47
+ type: object
48
+ properties:
49
+ webstoreId:
50
+ description: The unique webstore identifier.
51
+ type: string
52
+ ExtensionOutputCollectionRepresentation:
53
+ description: Output representation of a list of extensions.
54
+ type: object
55
+ properties:
56
+ count:
57
+ description: Total count of extensions
58
+ type: integer
59
+ items:
60
+ description: List of extensions.
61
+ type: array
62
+ items:
63
+ type: ExtensionOutputRepresentation
64
+ ExtensionOutputRepresentation:
65
+ description: Output representation of one Extension.
66
+ type: object
67
+ properties:
68
+ domain:
69
+ description: The service domain the Extension belongs to.
70
+ type: string
71
+ epn:
72
+ description: Extension's unique identifier.
73
+ type: string
74
+ name:
75
+ description: The name of the extension.
76
+ type: string
77
+ product:
78
+ description: The Salesforce family the Extension belongs to.
79
+ type: string
80
+ status:
81
+ description: Where this EPN is in its SDLC.
82
+ type: string
83
+ type:
84
+ description: Allowable values are Domain and Endpoint.
85
+ type: string
86
+ version:
87
+ description: The version of the extension.
88
+ type: integer
89
+ MappingInputRepresentation:
90
+ description: Input representation for mapping.
91
+ type: object
92
+ properties:
93
+ epn:
94
+ description: The extension this provider corresponds to.
95
+ type: string
96
+ id?:
97
+ description: The unique mapping identifier
98
+ type: string
99
+ providerName:
100
+ description: Unique name of the extension provider.
101
+ type: string
102
+ webstoreId:
103
+ description: The Id of the webstore this mapping corresponds to.
104
+ type: string
105
+ MappingOutputCollectionRepresentation:
106
+ description: Output representation of a list of mapped extensions.
107
+ type: object
108
+ properties:
109
+ count:
110
+ description: Total count of extensions
111
+ type: integer
112
+ items:
113
+ description: List of mappings.
114
+ type: array
115
+ items:
116
+ type: MappingOutputRepresentation
117
+ MappingOutputRepresentation:
118
+ description: Output representation for mapping.
119
+ type: object
120
+ properties:
121
+ epn:
122
+ description: The extension this provider corresponds to.
123
+ type: string
124
+ id:
125
+ description: The unique mapping identifier
126
+ type: string
127
+ providerName:
128
+ description: Unique name of the extension provider.
129
+ type: string
130
+ webstoreId:
131
+ description: The Id of the webstore this mapping corresponds to.
132
+ type: string
133
+ ProviderOutputCollectionRepresentation:
134
+ description: Output representation of a list of extension providers.
135
+ type: object
136
+ properties:
137
+ count:
138
+ description: Total count of extensions
139
+ type: integer
140
+ items:
141
+ description: List of providers.
142
+ type: array
143
+ items:
144
+ type: ProviderOutputRepresentation
145
+ ProviderOutputRepresentation:
146
+ description: Output representation of a Provider
147
+ type: object
148
+ properties:
149
+ apexClass:
150
+ description: Information about the Apex class implementing this Provider
151
+ type: ApexClassOutputRepresentation
152
+ effectiveMappings:
153
+ description: List of mappings this provider is associated with.
154
+ type: array
155
+ items:
156
+ type: EffectiveMappingRepresentation
157
+ epn:
158
+ description: The extension this provider corresponds to.
159
+ type: string
160
+ name:
161
+ description: Unique name of the extension provider.
162
+ type: string
163
+ type:
164
+ description: The type of extension.
165
+ type: string
166
+ /commerce/extension:
167
+ /extensions:
168
+ get:
169
+ displayName: getExtensionCollection
170
+ description: Get extensions.
171
+ responses:
172
+ '200':
173
+ description: Success
174
+ body:
175
+ application/json:
176
+ type: ExtensionOutputCollectionRepresentation
177
+ /mappings:
178
+ get:
179
+ displayName: getMappingCollection
180
+ description: Get Mapped Extension Providers.
181
+ responses:
182
+ '200':
183
+ description: Success
184
+ body:
185
+ application/json:
186
+ type: MappingOutputCollectionRepresentation
187
+ queryParameters:
188
+ epn:
189
+ type: string
190
+ required: false
191
+ webstoreId:
192
+ type: string
193
+ required: false
194
+ post:
195
+ displayName: postMappingCollection
196
+ description: Create a mapping between an extension provider and a webstore.
197
+ responses:
198
+ '200':
199
+ description: Success
200
+ body:
201
+ application/json:
202
+ type: MappingOutputRepresentation
203
+ body:
204
+ application/json:
205
+ type: MappingInputRepresentation
206
+ (oas-body-name): mappingInputRepresentation
207
+ /mappings/{mappingId}:
208
+ delete:
209
+ displayName: deleteMapping
210
+ description: Remove the mapping between an extension provider and a webstore
211
+ responses:
212
+ '200':
213
+ description: Success
214
+ get:
215
+ displayName: getMapping
216
+ description: Get a mapped extension provider.
217
+ responses:
218
+ '200':
219
+ description: Success
220
+ body:
221
+ application/json:
222
+ type: MappingOutputRepresentation
223
+ put:
224
+ displayName: putMapping
225
+ description: Alter an existing mapping between an extension provider and a webstore.
226
+ responses:
227
+ '200':
228
+ description: Success
229
+ body:
230
+ application/json:
231
+ type: MappingOutputRepresentation
232
+ body:
233
+ application/json:
234
+ type: MappingInputRepresentation
235
+ (oas-body-name): mappingInputRepresentation
236
+ uriParameters:
237
+ mappingId:
238
+ type: string
239
+ required: true
240
+ /providers:
241
+ get:
242
+ displayName: getGetExtensionProvidersCollection
243
+ description: Get Extension Providers.
244
+ responses:
245
+ '200':
246
+ description: Success
247
+ body:
248
+ application/json:
249
+ type: ProviderOutputCollectionRepresentation
250
+ queryParameters:
251
+ effectiveMappingsWebstoreId:
252
+ type: string
253
+ required: false
254
+ epn:
255
+ type: string
256
+ required: false
@@ -0,0 +1,67 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'extensions'
8
+
9
+ #global ttl will NOT cause error response caching to expire, so we need it at every type
10
+
11
+ types:
12
+ ExtensionOutputRepresentation:
13
+ (luvio.ttl): 60000
14
+ (luvio.key):
15
+ epn: epn
16
+ ExtensionOutputCollectionRepresentation:
17
+ (luvio.ttl): 60000
18
+ MappingInputRepresentation:
19
+ (luvio.ttl): 60000
20
+ (luvio.key):
21
+ id: id
22
+ MappingOutputRepresentation:
23
+ (luvio.ttl): 60000
24
+ (luvio.key):
25
+ id: id
26
+ (luvio.updateAvailable):
27
+ name: notifyMappingUpdateAvailable
28
+ parameters:
29
+ id: id
30
+ MappingOutputCollectionRepresentation:
31
+ (luvio.ttl): 60000
32
+ ProviderOutputRepresentation:
33
+ (luvio.ttl): 60000
34
+ (luvio.key):
35
+ name: name
36
+ ProviderOutputCollectionRepresentation:
37
+ (luvio.ttl): 60000
38
+
39
+ /commerce/extension/extensions:
40
+ get:
41
+ (luvio.adapter):
42
+ name: getExtensions
43
+ /commerce/extension/mappings:
44
+ get:
45
+ (luvio.adapter):
46
+ name: getMappings
47
+ post:
48
+ (luvio.adapter):
49
+ name: createMapping
50
+ /commerce/extension/mappings/{mappingId}:
51
+ get:
52
+ (luvio.adapter):
53
+ name: getMapping
54
+ (luvio.key):
55
+ id: urlParams.mappingId
56
+ put:
57
+ (luvio.adapter):
58
+ name: updateMapping
59
+ delete:
60
+ (luvio.adapter):
61
+ name: deleteMapping
62
+ (luvio.key):
63
+ id: urlParams.mappingId
64
+ /commerce/extension/providers:
65
+ get:
66
+ (luvio.adapter):
67
+ name: getProviders