forked from elasticio/mailchimp-component
-
Notifications
You must be signed in to change notification settings - Fork 0
/
component.json
68 lines (68 loc) · 1.73 KB
/
component.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
"title": "MailChimp",
"description": "Online email marketing solution to manage contacts, send emails and track results.",
"version": "1.0.4",
"credentials": {
"fields": {
"apiKey": {
"viewClass": "PasswordFieldView",
"label": "API Key",
"required": true,
"placeholder": "Mailchimp API Key"
}
}
},
"actions": {
"subscribe": {
"main": "./lib/actions/subscribe.js",
"title": "Add new Subscriber",
"fields": {
"listId": {
"viewClass": "SelectView",
"prompt": "Select your MailChimp List",
"label": "List",
"required": true,
"model": "getLists"
}
},
"metadata": {
"in": "./schemas/subscribe.in.json",
"out": "./schemas/subscribe.out.json"
}
},
"unsubscribe": {
"main": "./lib/actions/unsubscribe.js",
"title": "Unsubscribe",
"fields": {
"listId": {
"viewClass": "SelectView",
"prompt": "Select your MailChimp List",
"label": "List",
"required": true,
"model": "getLists"
}
},
"metadata": {
"in": "./schemas/unsubscribe.in.json",
"out": "./schemas/unsubscribe.out.json"
}
},
"upsertCustomer": {
"main": "./lib/actions/upsertCustomer.js",
"title": "Upsert Customer",
"fields": {
"storeId": {
"viewClass": "SelectView",
"prompt": "Select your MailChimp Store",
"label": "Store",
"required": true,
"model": "getStores"
}
},
"metadata": {
"in": "./schemas/upsertCustomer.in.json",
"out": "./schemas/upsertCustomer.out.json"
}
}
}
}