@salesforce/lds-adapters-commerce-configuration 1.249.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.
- package/LICENSE.txt +82 -0
- package/dist/es/es2018/commerce-configuration.js +542 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/deleteCommerceConfigurationAttribute.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/adapters/getCommerceConfigurationAttribute.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/adapters/putCommerceConfigurationAttribute.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +6 -0
- package/dist/es/es2018/types/src/generated/resources/deleteCommerceConfigurationByAttributeIdAndContextIdAndContextType.d.ts +14 -0
- package/dist/es/es2018/types/src/generated/resources/getCommerceConfigurationByAttributeIdAndContextIdAndContextType.d.ts +21 -0
- package/dist/es/es2018/types/src/generated/resources/putCommerceConfigurationByAttributeIdAndContextIdAndContextType.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/types/CommerceConfigurationAttributeInputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/CommerceConfigurationAttributeOutputRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +66 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +628 -0
- package/src/raml/api.raml +105 -0
- package/src/raml/luvio.raml +30 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
securedBy:
|
|
3
|
+
- OAuth2
|
|
4
|
+
title: Salesforce Connect API
|
|
5
|
+
version: '60.0'
|
|
6
|
+
mediaType: application/json
|
|
7
|
+
protocols:
|
|
8
|
+
- https
|
|
9
|
+
baseUri: /services/data/v60.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
|
+
CommerceConfigurationAttributeInputRepresentation:
|
|
29
|
+
description: Input representation of a commerce configuration attribute.
|
|
30
|
+
type: object
|
|
31
|
+
properties:
|
|
32
|
+
value:
|
|
33
|
+
description: The desired value of the commerce configuration attribute.
|
|
34
|
+
# hand rolled, this is an anyOf in the openAPI spec, but that does not translate throug java and back
|
|
35
|
+
# also API does support string[] here, but mixing scalars and arrays causes build errors
|
|
36
|
+
type: boolean | integer | number | string
|
|
37
|
+
CommerceConfigurationAttributeOutputRepresentation:
|
|
38
|
+
description: Output representation of a configuration attribute.
|
|
39
|
+
type: object
|
|
40
|
+
properties:
|
|
41
|
+
id:
|
|
42
|
+
description: The id of the commerce configuration attribute.
|
|
43
|
+
type: string
|
|
44
|
+
value:
|
|
45
|
+
description: The resolved value of the commerce configuration attribute.
|
|
46
|
+
# hand rolled, this is an anyOf in the openAPI spec, but that does not translate throug java and back
|
|
47
|
+
# also API does support string[] here, but mixing scalars and arrays causes build errors
|
|
48
|
+
type: boolean | integer | number | string
|
|
49
|
+
/commerce/configuration/{attributeId}/{contextType}/{contextId}:
|
|
50
|
+
delete:
|
|
51
|
+
displayName: deleteCommerceConfigurationAttribute
|
|
52
|
+
description: Removes the value of the commerce configuration attribute within
|
|
53
|
+
the given context. Be aware that values might still exist for other contexts.
|
|
54
|
+
responses:
|
|
55
|
+
'200':
|
|
56
|
+
description: Success
|
|
57
|
+
get:
|
|
58
|
+
displayName: getCommerceConfigurationAttribute
|
|
59
|
+
description: Read the value of the commerce configuration attribute for the given
|
|
60
|
+
context. Optionally the context fallback chain is followed, if so it will start
|
|
61
|
+
with the provided context and stop once a value is found or the fallback chain
|
|
62
|
+
has been followed to its end. The fallback chain is reflected by the
|
|
63
|
+
eligible values as per ConfigurationContextType in order of appearance (top-down
|
|
64
|
+
/ left-to-right).
|
|
65
|
+
responses:
|
|
66
|
+
'200':
|
|
67
|
+
description: Success
|
|
68
|
+
body:
|
|
69
|
+
application/json:
|
|
70
|
+
type: CommerceConfigurationAttributeOutputRepresentation
|
|
71
|
+
queryParameters:
|
|
72
|
+
fallback:
|
|
73
|
+
type: boolean
|
|
74
|
+
required: false
|
|
75
|
+
default: false
|
|
76
|
+
put:
|
|
77
|
+
displayName: putCommerceConfigurationAttribute
|
|
78
|
+
description: Create (if not existing yet) or replace (if already existing) the
|
|
79
|
+
value of the commerce configuration attribute within the given context.
|
|
80
|
+
responses:
|
|
81
|
+
'200':
|
|
82
|
+
description: Success
|
|
83
|
+
body:
|
|
84
|
+
application/json:
|
|
85
|
+
type: CommerceConfigurationAttributeOutputRepresentation
|
|
86
|
+
body:
|
|
87
|
+
application/json:
|
|
88
|
+
type: CommerceConfigurationAttributeInputRepresentation
|
|
89
|
+
# required: false
|
|
90
|
+
(oas-body-name): commerceConfigurationAttributeInputRepresentation
|
|
91
|
+
uriParameters:
|
|
92
|
+
attributeId:
|
|
93
|
+
type: string
|
|
94
|
+
required: true
|
|
95
|
+
contextId:
|
|
96
|
+
type: string
|
|
97
|
+
required: true
|
|
98
|
+
contextType:
|
|
99
|
+
type: string
|
|
100
|
+
required: true
|
|
101
|
+
enum:
|
|
102
|
+
- CommerceChannel
|
|
103
|
+
- ExperienceNetwork
|
|
104
|
+
- Organization
|
|
105
|
+
- WebStore
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'commerce-configuration'
|
|
8
|
+
|
|
9
|
+
(luvio.ttl): 1000
|
|
10
|
+
|
|
11
|
+
types:
|
|
12
|
+
CommerceConfigurationAttributeOutputRepresentation:
|
|
13
|
+
(luvio.ttl): 1000
|
|
14
|
+
(luvio.key):
|
|
15
|
+
id: id
|
|
16
|
+
|
|
17
|
+
/commerce/configuration/{attributeId}/{contextType}/{contextId}:
|
|
18
|
+
delete:
|
|
19
|
+
(luvio.adapter):
|
|
20
|
+
name: deleteCommerceConfigurationAttribute
|
|
21
|
+
(luvio.key):
|
|
22
|
+
id: urlParams.attributeId
|
|
23
|
+
get:
|
|
24
|
+
(luvio.adapter):
|
|
25
|
+
name: getCommerceConfigurationAttribute
|
|
26
|
+
(luvio.key):
|
|
27
|
+
id: urlParams.attributeId
|
|
28
|
+
put:
|
|
29
|
+
(luvio.adapter):
|
|
30
|
+
name: putCommerceConfigurationAttribute
|