@salesforce/lds-adapters-experience-marketing-integration 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/experience-marketing-integration.js +851 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/getForm.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/saveForm.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/adapters/submitForm.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/getSitesMarketingIntegrationFormsByFormIdAndSiteId.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/postSitesMarketingIntegrationFormsBySiteId.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/postSitesMarketingIntegrationFormsDataByFormIdAndSiteId.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/types/FormFieldInputList.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/FormFieldInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/FormFieldList.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/FormFieldRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/FormInputRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/FormInputWrapperRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/FormRepresentation.d.ts +48 -0
- package/dist/es/es2018/types/src/generated/types/FormSubmissionFieldInputList.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/FormSubmissionFieldInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/FormSubmissionInputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/FormSubmissionInputWrapperRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/FormSubmissionRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +60 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +934 -0
- package/src/raml/api.raml +209 -0
- package/src/raml/luvio.raml +32 -0
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
securedBy:
|
|
3
|
+
- OAuth2
|
|
4
|
+
title: Salesforce Connect API
|
|
5
|
+
version: '53.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
|
+
FormFieldInputList:
|
|
29
|
+
description: Wraps a list of form fields in a marketing integration form.
|
|
30
|
+
type: object
|
|
31
|
+
properties:
|
|
32
|
+
formFields:
|
|
33
|
+
description: List of form fields associated with the form.
|
|
34
|
+
type: array
|
|
35
|
+
items:
|
|
36
|
+
type: FormFieldInputRepresentation
|
|
37
|
+
FormFieldInputRepresentation:
|
|
38
|
+
description: Input representation for Marketing Integration form field.
|
|
39
|
+
type: object
|
|
40
|
+
properties:
|
|
41
|
+
name:
|
|
42
|
+
description: Set a name of the form field.
|
|
43
|
+
type: string
|
|
44
|
+
type:
|
|
45
|
+
description: Set a type of the form field.
|
|
46
|
+
type: string
|
|
47
|
+
enum:
|
|
48
|
+
- Boolean
|
|
49
|
+
- Date
|
|
50
|
+
- EmailAddress
|
|
51
|
+
- Number
|
|
52
|
+
- Text
|
|
53
|
+
FormFieldList:
|
|
54
|
+
description: List of form fields.
|
|
55
|
+
type: object
|
|
56
|
+
properties:
|
|
57
|
+
formFields:
|
|
58
|
+
description: List of form fields associated with the marketing integration form.
|
|
59
|
+
type: array
|
|
60
|
+
items:
|
|
61
|
+
type: FormFieldRepresentation
|
|
62
|
+
FormFieldRepresentation:
|
|
63
|
+
description: A representation for a Marketing Integration form field.
|
|
64
|
+
type: object
|
|
65
|
+
properties:
|
|
66
|
+
name:
|
|
67
|
+
description: Name of the form field.
|
|
68
|
+
type: string
|
|
69
|
+
type:
|
|
70
|
+
description: Type of the form field.
|
|
71
|
+
type: string
|
|
72
|
+
enum:
|
|
73
|
+
- Boolean
|
|
74
|
+
- Date
|
|
75
|
+
- EmailAddress
|
|
76
|
+
- Number
|
|
77
|
+
- Text
|
|
78
|
+
FormInputRepresentation:
|
|
79
|
+
description: Input representation for Marketing Integration forms.
|
|
80
|
+
type: object
|
|
81
|
+
properties:
|
|
82
|
+
formFieldsList:
|
|
83
|
+
description: Set form fields for this form.
|
|
84
|
+
type: FormFieldInputList # TODO Hand-rolled W-9550115
|
|
85
|
+
formName:
|
|
86
|
+
description: Form name.
|
|
87
|
+
type: string
|
|
88
|
+
memberIdentificationCode:
|
|
89
|
+
description: Set Marketing Cloud's member identification code (mid) associated
|
|
90
|
+
with this form
|
|
91
|
+
type: string
|
|
92
|
+
FormInputWrapperRepresentation: # TODO Hand-rolled W-8334626
|
|
93
|
+
description: The data in the http body of Marketing Integration form creation.
|
|
94
|
+
type: object
|
|
95
|
+
properties:
|
|
96
|
+
formInput:
|
|
97
|
+
description: Form Input Representation
|
|
98
|
+
type: FormInputRepresentation
|
|
99
|
+
FormRepresentation:
|
|
100
|
+
description: A representation for a Marketing Integration form.
|
|
101
|
+
type: object
|
|
102
|
+
properties:
|
|
103
|
+
dataExtensionId:
|
|
104
|
+
description: Data extension id associated with the marketing integration form.
|
|
105
|
+
type: string
|
|
106
|
+
formFieldsList:
|
|
107
|
+
description: List of form fields associated with the marketing integration
|
|
108
|
+
form.
|
|
109
|
+
type: FormFieldList
|
|
110
|
+
formId:
|
|
111
|
+
description: Marketing integration form id.
|
|
112
|
+
type: string
|
|
113
|
+
formName:
|
|
114
|
+
description: Name of the marketing integration form.
|
|
115
|
+
type: string
|
|
116
|
+
FormSubmissionFieldInputList:
|
|
117
|
+
description: Wraps a list of form submission fields in a marketing integration
|
|
118
|
+
form.
|
|
119
|
+
type: object
|
|
120
|
+
properties:
|
|
121
|
+
formFields:
|
|
122
|
+
description: List of form fields associated with the form submission.
|
|
123
|
+
type: array
|
|
124
|
+
items:
|
|
125
|
+
type: FormSubmissionFieldInputRepresentation
|
|
126
|
+
FormSubmissionFieldInputRepresentation:
|
|
127
|
+
description: Input representation for Marketing Integration form field submission.
|
|
128
|
+
type: object
|
|
129
|
+
properties:
|
|
130
|
+
name:
|
|
131
|
+
description: Set the name of the form field.
|
|
132
|
+
type: string
|
|
133
|
+
value:
|
|
134
|
+
description: Set the value of the form field.
|
|
135
|
+
type: string
|
|
136
|
+
FormSubmissionInputRepresentation:
|
|
137
|
+
description: Input representation for Marketing Integration forms submission.
|
|
138
|
+
type: object
|
|
139
|
+
properties:
|
|
140
|
+
formFieldsList:
|
|
141
|
+
description: Set form fields for this form.
|
|
142
|
+
type: FormSubmissionFieldInputList # TODO Hand-rolled W-9550115
|
|
143
|
+
FormSubmissionInputWrapperRepresentation: # TODO Hand-rolled W-8334626
|
|
144
|
+
description: The data in the http body of forms submission.
|
|
145
|
+
type: object
|
|
146
|
+
properties:
|
|
147
|
+
formSubmissionInput:
|
|
148
|
+
description: Set form fields for this form.
|
|
149
|
+
type: FormSubmissionInputRepresentation
|
|
150
|
+
FormSubmissionRepresentation:
|
|
151
|
+
description: A representation for a Marketing Integration form submission.
|
|
152
|
+
type: object
|
|
153
|
+
properties:
|
|
154
|
+
formSubmissionId:
|
|
155
|
+
description: Form submission id representing the form submission data that was saved.
|
|
156
|
+
type: string
|
|
157
|
+
/sites/{siteId}/marketing-integration/forms:
|
|
158
|
+
post:
|
|
159
|
+
description: Saves a form for Marketing Integration.
|
|
160
|
+
responses:
|
|
161
|
+
'200':
|
|
162
|
+
description: Success
|
|
163
|
+
body:
|
|
164
|
+
application/json:
|
|
165
|
+
type: FormRepresentation
|
|
166
|
+
body:
|
|
167
|
+
application/json:
|
|
168
|
+
type: FormInputWrapperRepresentation
|
|
169
|
+
(oas-body-name): formInput
|
|
170
|
+
uriParameters:
|
|
171
|
+
siteId:
|
|
172
|
+
type: string
|
|
173
|
+
required: true
|
|
174
|
+
/sites/{siteId}/marketing-integration/forms/{formId}:
|
|
175
|
+
get:
|
|
176
|
+
description: Gets a form for Marketing Integration.
|
|
177
|
+
responses:
|
|
178
|
+
'200':
|
|
179
|
+
description: Success
|
|
180
|
+
body:
|
|
181
|
+
application/json:
|
|
182
|
+
type: FormRepresentation
|
|
183
|
+
uriParameters:
|
|
184
|
+
formId:
|
|
185
|
+
type: string
|
|
186
|
+
required: true
|
|
187
|
+
siteId:
|
|
188
|
+
type: string
|
|
189
|
+
required: true
|
|
190
|
+
/sites/{siteId}/marketing-integration/forms/{formId}/data:
|
|
191
|
+
post:
|
|
192
|
+
description: Submits a form when the user fills in details on the microsite form.
|
|
193
|
+
responses:
|
|
194
|
+
'200':
|
|
195
|
+
description: Success
|
|
196
|
+
body:
|
|
197
|
+
application/json:
|
|
198
|
+
type: FormSubmissionRepresentation
|
|
199
|
+
body:
|
|
200
|
+
application/json:
|
|
201
|
+
type: FormSubmissionInputWrapperRepresentation
|
|
202
|
+
(oas-body-name): formSubmissionInput
|
|
203
|
+
uriParameters:
|
|
204
|
+
formId:
|
|
205
|
+
type: string
|
|
206
|
+
required: true
|
|
207
|
+
siteId:
|
|
208
|
+
type: string
|
|
209
|
+
required: true
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'marketing-integration'
|
|
8
|
+
|
|
9
|
+
types:
|
|
10
|
+
FormRepresentation:
|
|
11
|
+
(luvio.ttl): 30000
|
|
12
|
+
(luvio.key):
|
|
13
|
+
form_id: formId
|
|
14
|
+
FormSubmissionRepresentation:
|
|
15
|
+
(luvio.ttl): 100
|
|
16
|
+
(luvio.key):
|
|
17
|
+
form_submission_id: formSubmissionId
|
|
18
|
+
|
|
19
|
+
/sites/{siteId}/marketing-integration/forms:
|
|
20
|
+
post:
|
|
21
|
+
(luvio.adapter):
|
|
22
|
+
name: saveForm
|
|
23
|
+
/sites/{siteId}/marketing-integration/forms/{formId}:
|
|
24
|
+
get:
|
|
25
|
+
(luvio.adapter):
|
|
26
|
+
name: getForm
|
|
27
|
+
(luvio.key):
|
|
28
|
+
form_id: urlParams.formId
|
|
29
|
+
/sites/{siteId}/marketing-integration/forms/{formId}/data:
|
|
30
|
+
post:
|
|
31
|
+
(luvio.adapter):
|
|
32
|
+
name: submitForm
|