@salesforce/lds-adapters-marketing-assetcreation 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.
- package/LICENSE.txt +82 -0
- package/dist/es/es2018/marketing-assetcreation.js +889 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/createAsset.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/adapters/getStarterTemplateById.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getStarterTemplates.d.ts +28 -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/getAssetCreationStarterTemplates.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/getAssetCreationStarterTemplatesByStarterTemplateId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/postAssetCreationObjects.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/types/AssetInputRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/AssetInputWrapperRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/AssetOutputRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/StarterTemplateDetailRepresentation.d.ts +47 -0
- package/dist/es/es2018/types/src/generated/types/StarterTemplateListRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/StarterTemplateRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +70 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +945 -0
- package/src/raml/api.raml +171 -0
- package/src/raml/luvio.raml +33 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
securedBy:
|
|
3
|
+
- OAuth2
|
|
4
|
+
title: Salesforce Connect API
|
|
5
|
+
version: '56.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
|
+
AssetInputWrapperRepresentation:
|
|
29
|
+
description: Wrapper Input Representation for AssetInputRepresentation
|
|
30
|
+
type: object
|
|
31
|
+
properties:
|
|
32
|
+
AssetInput:
|
|
33
|
+
type: AssetInputRepresentation
|
|
34
|
+
description: Input representation for Create Asset Resource
|
|
35
|
+
AssetInputRepresentation:
|
|
36
|
+
description: Object to create an easy asset
|
|
37
|
+
type: object
|
|
38
|
+
properties:
|
|
39
|
+
fields:
|
|
40
|
+
description: A map of asset specific fields that are used during asset creation
|
|
41
|
+
type: object
|
|
42
|
+
properties:
|
|
43
|
+
//:
|
|
44
|
+
type: string
|
|
45
|
+
starterTemplateId:
|
|
46
|
+
description: Starter Template id to clone
|
|
47
|
+
type: string
|
|
48
|
+
type:
|
|
49
|
+
description: Asset type
|
|
50
|
+
type: string
|
|
51
|
+
enum:
|
|
52
|
+
- EmailContent
|
|
53
|
+
- EmailTemplate
|
|
54
|
+
- LandingPage
|
|
55
|
+
AssetOutputRepresentation:
|
|
56
|
+
description: Representation of a created template object.
|
|
57
|
+
type: object
|
|
58
|
+
properties:
|
|
59
|
+
contentBuilderUrl:
|
|
60
|
+
description: Url to load the specified resource in content builder.
|
|
61
|
+
type: string
|
|
62
|
+
id:
|
|
63
|
+
description: Id of the created object.
|
|
64
|
+
type: string
|
|
65
|
+
StarterTemplateDetailRepresentation:
|
|
66
|
+
description: Representation of the details of a starter template to be displayed.
|
|
67
|
+
type: object
|
|
68
|
+
properties:
|
|
69
|
+
contentBuilderUrl:
|
|
70
|
+
description: Url for content builder
|
|
71
|
+
type: string
|
|
72
|
+
createdBy:
|
|
73
|
+
description: Creator of the object.
|
|
74
|
+
type: string
|
|
75
|
+
createdOn:
|
|
76
|
+
description: Created date of the object.
|
|
77
|
+
type: string
|
|
78
|
+
description:
|
|
79
|
+
description: Description of the object.
|
|
80
|
+
type: string
|
|
81
|
+
html:
|
|
82
|
+
description: HTML content of the object.
|
|
83
|
+
type: string
|
|
84
|
+
id:
|
|
85
|
+
description: Id of the object.
|
|
86
|
+
type: string
|
|
87
|
+
name:
|
|
88
|
+
description: Name of the object.
|
|
89
|
+
type: string
|
|
90
|
+
StarterTemplateListRepresentation:
|
|
91
|
+
description: Representation of a list of starter templates.
|
|
92
|
+
type: object
|
|
93
|
+
properties:
|
|
94
|
+
starterTemplateList:
|
|
95
|
+
description: List of Starter Templates.
|
|
96
|
+
type: array
|
|
97
|
+
items:
|
|
98
|
+
type: StarterTemplateRepresentation
|
|
99
|
+
StarterTemplateRepresentation:
|
|
100
|
+
description: Representation of a starter template object.
|
|
101
|
+
type: object
|
|
102
|
+
properties:
|
|
103
|
+
description:
|
|
104
|
+
description: Description of the object.
|
|
105
|
+
type: string
|
|
106
|
+
id:
|
|
107
|
+
description: Id of the object.
|
|
108
|
+
type: string
|
|
109
|
+
name:
|
|
110
|
+
description: Name of the object.
|
|
111
|
+
type: string
|
|
112
|
+
thumbnailUrl:
|
|
113
|
+
description: Url to thumbnail image.
|
|
114
|
+
type: string
|
|
115
|
+
/asset-creation:
|
|
116
|
+
/objects:
|
|
117
|
+
post:
|
|
118
|
+
description: Create an asset from a starter template
|
|
119
|
+
responses:
|
|
120
|
+
'200':
|
|
121
|
+
description: Success
|
|
122
|
+
body:
|
|
123
|
+
application/json:
|
|
124
|
+
type: AssetOutputRepresentation
|
|
125
|
+
body:
|
|
126
|
+
application/json:
|
|
127
|
+
# TODO Hand-rolled W-8334626: Hand Rolled Change to use wrapper
|
|
128
|
+
type: AssetInputWrapperRepresentation
|
|
129
|
+
# required: false [W-9109412]: Property 'required' not supported in a RAML 1.0 object node
|
|
130
|
+
(oas-body-name): AssetInput
|
|
131
|
+
/starter-templates:
|
|
132
|
+
get:
|
|
133
|
+
description: API to fetch all starter template objects for a given type.
|
|
134
|
+
responses:
|
|
135
|
+
'200':
|
|
136
|
+
description: Success
|
|
137
|
+
body:
|
|
138
|
+
application/json:
|
|
139
|
+
type: StarterTemplateListRepresentation
|
|
140
|
+
queryParameters:
|
|
141
|
+
filter:
|
|
142
|
+
type: string
|
|
143
|
+
required: false
|
|
144
|
+
type:
|
|
145
|
+
type: string
|
|
146
|
+
required: false
|
|
147
|
+
enum:
|
|
148
|
+
- EmailContent
|
|
149
|
+
- EmailTemplate
|
|
150
|
+
- LandingPage
|
|
151
|
+
/starter-templates/{starterTemplateId}:
|
|
152
|
+
get:
|
|
153
|
+
description: API to fetch a starter template given an id.
|
|
154
|
+
responses:
|
|
155
|
+
'200':
|
|
156
|
+
description: Success
|
|
157
|
+
body:
|
|
158
|
+
application/json:
|
|
159
|
+
type: StarterTemplateDetailRepresentation
|
|
160
|
+
queryParameters:
|
|
161
|
+
type:
|
|
162
|
+
type: string
|
|
163
|
+
required: false
|
|
164
|
+
enum:
|
|
165
|
+
- EmailContent
|
|
166
|
+
- EmailTemplate
|
|
167
|
+
- LandingPage
|
|
168
|
+
uriParameters:
|
|
169
|
+
starterTemplateId:
|
|
170
|
+
type: string
|
|
171
|
+
required: true
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'assetcreation'
|
|
8
|
+
|
|
9
|
+
types:
|
|
10
|
+
StarterTemplateListRepresentation:
|
|
11
|
+
(luvio.ttl): 3000
|
|
12
|
+
|
|
13
|
+
StarterTemplateDetailRepresentation:
|
|
14
|
+
(luvio.ttl): 1000
|
|
15
|
+
|
|
16
|
+
AssetOutputRepresentation:
|
|
17
|
+
(luvio.ttl): 1000
|
|
18
|
+
(luvio.key):
|
|
19
|
+
id: id
|
|
20
|
+
|
|
21
|
+
/asset-creation:
|
|
22
|
+
/starter-templates:
|
|
23
|
+
get:
|
|
24
|
+
(luvio.adapter):
|
|
25
|
+
name: getStarterTemplates
|
|
26
|
+
/starter-templates/{starterTemplateId}:
|
|
27
|
+
get:
|
|
28
|
+
(luvio.adapter):
|
|
29
|
+
name: getStarterTemplateById
|
|
30
|
+
/objects:
|
|
31
|
+
post:
|
|
32
|
+
(luvio.adapter):
|
|
33
|
+
name: createAsset
|