@itentialopensource/adapter-sendgrid 0.1.1
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/.eslintignore +5 -0
- package/.eslintrc.js +18 -0
- package/.jshintrc +3 -0
- package/AUTH.md +31 -0
- package/BROKER.md +211 -0
- package/CALLS.md +2211 -0
- package/CODE_OF_CONDUCT.md +43 -0
- package/CONTRIBUTING.md +13 -0
- package/ENHANCE.md +69 -0
- package/LICENSE +201 -0
- package/PROPERTIES.md +646 -0
- package/README.md +343 -0
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +20 -0
- package/TAB1.md +11 -0
- package/TAB2.md +302 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +38033 -0
- package/adapterBase.js +1452 -0
- package/entities/.generic/action.json +214 -0
- package/entities/.generic/schema.json +28 -0
- package/entities/.system/action.json +50 -0
- package/entities/.system/mockdatafiles/getToken-default.json +3 -0
- package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
- package/entities/.system/schema.json +19 -0
- package/entities/.system/schemaTokenReq.json +53 -0
- package/entities/.system/schemaTokenResp.json +53 -0
- package/entities/APIKeyPermissions/action.json +25 -0
- package/entities/APIKeyPermissions/schema.json +19 -0
- package/entities/APIKeys/action.json +126 -0
- package/entities/APIKeys/schema.json +35 -0
- package/entities/Alerts/action.json +106 -0
- package/entities/Alerts/schema.json +34 -0
- package/entities/BlocksAPI/action.json +86 -0
- package/entities/BlocksAPI/schema.json +44 -0
- package/entities/BouncesAPI/action.json +86 -0
- package/entities/BouncesAPI/schema.json +55 -0
- package/entities/CSVUIOnly/action.json +45 -0
- package/entities/CSVUIOnly/schema.json +31 -0
- package/entities/CampaignsAPI/action.json +227 -0
- package/entities/CampaignsAPI/schema.json +40 -0
- package/entities/CancelScheduledSends/action.json +147 -0
- package/entities/CancelScheduledSends/schema.json +36 -0
- package/entities/Categories/action.json +67 -0
- package/entities/Categories/schema.json +76 -0
- package/entities/Certificates/action.json +106 -0
- package/entities/Certificates/schema.json +45 -0
- package/entities/Contacts/action.json +270 -0
- package/entities/Contacts/schema.json +42 -0
- package/entities/ContactsAPICustomFields/action.json +107 -0
- package/entities/ContactsAPICustomFields/schema.json +34 -0
- package/entities/ContactsAPILists/action.json +207 -0
- package/entities/ContactsAPILists/schema.json +72 -0
- package/entities/ContactsAPIRecipients/action.json +251 -0
- package/entities/ContactsAPIRecipients/schema.json +63 -0
- package/entities/ContactsAPISegments/action.json +127 -0
- package/entities/ContactsAPISegments/schema.json +57 -0
- package/entities/CustomFields/action.json +85 -0
- package/entities/CustomFields/schema.json +33 -0
- package/entities/DesignsAPI/action.json +188 -0
- package/entities/DesignsAPI/schema.json +49 -0
- package/entities/DomainAuthentication/action.json +248 -0
- package/entities/DomainAuthentication/schema.json +52 -0
- package/entities/EmailAddressValidation/action.json +24 -0
- package/entities/EmailAddressValidation/schema.json +19 -0
- package/entities/EmailCNAMERecords/action.json +24 -0
- package/entities/EmailCNAMERecords/schema.json +19 -0
- package/entities/IPAccessManagement/action.json +127 -0
- package/entities/IPAccessManagement/schema.json +35 -0
- package/entities/IPAddresses/action.json +108 -0
- package/entities/IPAddresses/schema.json +56 -0
- package/entities/IPPools/action.json +146 -0
- package/entities/IPPools/schema.json +36 -0
- package/entities/IPWarmup/action.json +86 -0
- package/entities/IPWarmup/schema.json +33 -0
- package/entities/InvalidEmailsAPI/action.json +86 -0
- package/entities/InvalidEmailsAPI/schema.json +44 -0
- package/entities/LinkBranding/action.json +208 -0
- package/entities/LinkBranding/schema.json +39 -0
- package/entities/Lists/action.json +147 -0
- package/entities/Lists/schema.json +80 -0
- package/entities/MailSend/action.json +24 -0
- package/entities/MailSend/schema.json +19 -0
- package/entities/MarketingCampaignsStats/action.json +172 -0
- package/entities/MarketingCampaignsStats/schema.json +147 -0
- package/entities/Query/action.json +46 -0
- package/entities/Query/schema.json +31 -0
- package/entities/ReverseDNS/action.json +106 -0
- package/entities/ReverseDNS/schema.json +23 -0
- package/entities/SegmentingContacts/action.json +126 -0
- package/entities/SegmentingContacts/schema.json +68 -0
- package/entities/SegmentingContactsV2/action.json +86 -0
- package/entities/SegmentingContactsV2/schema.json +66 -0
- package/entities/SegmentingContactsV2Beta/action.json +24 -0
- package/entities/SegmentingContactsV2Beta/schema.json +30 -0
- package/entities/SendTestEmail/action.json +24 -0
- package/entities/SendTestEmail/schema.json +19 -0
- package/entities/SenderIdentitiesAPI/action.json +126 -0
- package/entities/SenderIdentitiesAPI/schema.json +35 -0
- package/entities/SenderVerification/action.json +168 -0
- package/entities/SenderVerification/schema.json +26 -0
- package/entities/Senders/action.json +24 -0
- package/entities/Senders/schema.json +19 -0
- package/entities/SettingsEnforcedTLS/action.json +45 -0
- package/entities/SettingsEnforcedTLS/schema.json +20 -0
- package/entities/SettingsInboundParse/action.json +85 -0
- package/entities/SettingsInboundParse/schema.json +22 -0
- package/entities/SettingsMail/action.json +271 -0
- package/entities/SettingsMail/schema.json +31 -0
- package/entities/SettingsPartner/action.json +66 -0
- package/entities/SettingsPartner/schema.json +21 -0
- package/entities/SettingsTracking/action.json +189 -0
- package/entities/SettingsTracking/schema.json +27 -0
- package/entities/SingleSends/action.json +227 -0
- package/entities/SingleSends/schema.json +51 -0
- package/entities/SingleSignOnSettings/action.json +106 -0
- package/entities/SingleSignOnSettings/schema.json +23 -0
- package/entities/SingleSignOnTeammates/action.json +44 -0
- package/entities/SingleSignOnTeammates/schema.json +20 -0
- package/entities/SpamReportsAPI/action.json +86 -0
- package/entities/SpamReportsAPI/schema.json +44 -0
- package/entities/Stats/action.json +151 -0
- package/entities/Stats/schema.json +80 -0
- package/entities/SubuserMonitorSettings/action.json +85 -0
- package/entities/SubuserMonitorSettings/schema.json +33 -0
- package/entities/SubuserStatistics/action.json +88 -0
- package/entities/SubuserStatistics/schema.json +88 -0
- package/entities/SubusersAPI/action.json +126 -0
- package/entities/SubusersAPI/schema.json +35 -0
- package/entities/SuppressionsGlobalSuppressions/action.json +86 -0
- package/entities/SuppressionsGlobalSuppressions/schema.json +44 -0
- package/entities/SuppressionsSuppressions/action.json +127 -0
- package/entities/SuppressionsSuppressions/schema.json +35 -0
- package/entities/SuppressionsUnsubscribeGroups/action.json +106 -0
- package/entities/SuppressionsUnsubscribeGroups/schema.json +34 -0
- package/entities/Teammates/action.json +228 -0
- package/entities/Teammates/schema.json +40 -0
- package/entities/TransactionalTemplates/action.json +126 -0
- package/entities/TransactionalTemplates/schema.json +57 -0
- package/entities/TransactionalTemplatesVersions/action.json +105 -0
- package/entities/TransactionalTemplatesVersions/schema.json +45 -0
- package/entities/UsersAPI/action.json +189 -0
- package/entities/UsersAPI/schema.json +27 -0
- package/entities/Webhooks/action.json +148 -0
- package/entities/Webhooks/schema.json +58 -0
- package/error.json +190 -0
- package/metadata.json +77 -0
- package/package.json +81 -0
- package/pronghorn.json +17316 -0
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +1574 -0
- package/report/adapter-openapi.json +59750 -0
- package/report/adapter-openapi.yaml +43964 -0
- package/report/adapterInfo.json +10 -0
- package/report/auto-adapter-openapi.json +14137 -0
- package/report/creationReport.json +2750 -0
- package/report/sendgrid.json +48136 -0
- package/sampleProperties.json +257 -0
- package/test/integration/adapterTestBasicGet.js +83 -0
- package/test/integration/adapterTestConnectivity.js +118 -0
- package/test/integration/adapterTestIntegration.js +9099 -0
- package/test/unit/adapterBaseTestUnit.js +1024 -0
- package/test/unit/adapterTestUnit.js +8691 -0
- package/utils/adapterInfo.js +206 -0
- package/utils/addAuth.js +94 -0
- package/utils/artifactize.js +146 -0
- package/utils/basicGet.js +50 -0
- package/utils/checkMigrate.js +63 -0
- package/utils/entitiesToDB.js +179 -0
- package/utils/findPath.js +74 -0
- package/utils/methodDocumentor.js +273 -0
- package/utils/modify.js +152 -0
- package/utils/packModificationScript.js +35 -0
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +32 -0
- package/utils/removeHooks.js +20 -0
- package/utils/setup.js +33 -0
- package/utils/taskMover.js +309 -0
- package/utils/tbScript.js +239 -0
- package/utils/tbUtils.js +489 -0
- package/utils/testRunner.js +298 -0
- package/utils/troubleshootingAdapter.js +193 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": true,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "getallAutomationStats",
|
|
12
|
+
"enum": [
|
|
13
|
+
"getallAutomationStats",
|
|
14
|
+
"getAutomationStat",
|
|
15
|
+
"getallSinglesendStats",
|
|
16
|
+
"getSinglesendStat",
|
|
17
|
+
"getAutomationLinkStat",
|
|
18
|
+
"getSinglesendLinkStat",
|
|
19
|
+
"getSinglesendStatsExport",
|
|
20
|
+
"getAutomationsStatsExport"
|
|
21
|
+
],
|
|
22
|
+
"external_name": "ph_request_type"
|
|
23
|
+
},
|
|
24
|
+
"automationIds": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"description": "This endpoint returns all automation IDs if no `automation_ids` are specified.",
|
|
27
|
+
"parse": false,
|
|
28
|
+
"encode": false,
|
|
29
|
+
"encrypt": {
|
|
30
|
+
"type": "AES",
|
|
31
|
+
"key": ""
|
|
32
|
+
},
|
|
33
|
+
"external_name": "automation_ids"
|
|
34
|
+
},
|
|
35
|
+
"pageSize": {
|
|
36
|
+
"type": "number",
|
|
37
|
+
"description": "The number of elements you want returned on each page.",
|
|
38
|
+
"parse": false,
|
|
39
|
+
"encode": false,
|
|
40
|
+
"encrypt": {
|
|
41
|
+
"type": "AES",
|
|
42
|
+
"key": ""
|
|
43
|
+
},
|
|
44
|
+
"external_name": "page_size"
|
|
45
|
+
},
|
|
46
|
+
"pageToken": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"description": "The stats endpoints are paginated. To get the next page, call the passed `_metadata.next` URL. If `_metadata.prev` doesn't exist, you're at the first page. Similarly, if ...(description truncated)",
|
|
49
|
+
"parse": false,
|
|
50
|
+
"encode": false,
|
|
51
|
+
"encrypt": {
|
|
52
|
+
"type": "AES",
|
|
53
|
+
"key": ""
|
|
54
|
+
},
|
|
55
|
+
"external_name": "page_token"
|
|
56
|
+
},
|
|
57
|
+
"groupBy": {
|
|
58
|
+
"type": "array",
|
|
59
|
+
"description": "A/B Single Sends have multiple variation IDs and phase IDs. Including these additional fields allows further granularity of stats by these fields.",
|
|
60
|
+
"parse": false,
|
|
61
|
+
"encode": false,
|
|
62
|
+
"encrypt": {
|
|
63
|
+
"type": "AES",
|
|
64
|
+
"key": ""
|
|
65
|
+
},
|
|
66
|
+
"external_name": "group_by"
|
|
67
|
+
},
|
|
68
|
+
"stepIds": {
|
|
69
|
+
"type": "array",
|
|
70
|
+
"description": "Comma-separated list of `step_ids` that you want the link stats for.",
|
|
71
|
+
"parse": false,
|
|
72
|
+
"encode": false,
|
|
73
|
+
"encrypt": {
|
|
74
|
+
"type": "AES",
|
|
75
|
+
"key": ""
|
|
76
|
+
},
|
|
77
|
+
"external_name": "step_ids"
|
|
78
|
+
},
|
|
79
|
+
"aggregatedBy": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"description": "Dictates how the stats are time-sliced. Currently, `\"total\"` and `\"day\"` are supported.",
|
|
82
|
+
"parse": false,
|
|
83
|
+
"encode": false,
|
|
84
|
+
"encrypt": {
|
|
85
|
+
"type": "AES",
|
|
86
|
+
"key": ""
|
|
87
|
+
},
|
|
88
|
+
"external_name": "aggregated_by"
|
|
89
|
+
},
|
|
90
|
+
"startDate": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"description": "Format: `YYYY-MM-DD`. If this parameter is included, the stats' start date is included in the search.",
|
|
93
|
+
"parse": false,
|
|
94
|
+
"encode": false,
|
|
95
|
+
"encrypt": {
|
|
96
|
+
"type": "AES",
|
|
97
|
+
"key": ""
|
|
98
|
+
},
|
|
99
|
+
"external_name": "start_date"
|
|
100
|
+
},
|
|
101
|
+
"endDate": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"description": "Format: `YYYY-MM-DD`.If this parameter is included, the stats' end date is included in the search.",
|
|
104
|
+
"parse": false,
|
|
105
|
+
"encode": false,
|
|
106
|
+
"encrypt": {
|
|
107
|
+
"type": "AES",
|
|
108
|
+
"key": ""
|
|
109
|
+
},
|
|
110
|
+
"external_name": "end_date"
|
|
111
|
+
},
|
|
112
|
+
"singlesendIds": {
|
|
113
|
+
"type": "array",
|
|
114
|
+
"description": "This endpoint returns all Single Send IDs if no IDs are included in `singlesend_ids`.",
|
|
115
|
+
"parse": false,
|
|
116
|
+
"encode": false,
|
|
117
|
+
"encrypt": {
|
|
118
|
+
"type": "AES",
|
|
119
|
+
"key": ""
|
|
120
|
+
},
|
|
121
|
+
"external_name": "singlesend_ids"
|
|
122
|
+
},
|
|
123
|
+
"abVariationId": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"description": "",
|
|
126
|
+
"parse": false,
|
|
127
|
+
"encode": false,
|
|
128
|
+
"encrypt": {
|
|
129
|
+
"type": "AES",
|
|
130
|
+
"key": ""
|
|
131
|
+
},
|
|
132
|
+
"external_name": "ab_variation_id"
|
|
133
|
+
},
|
|
134
|
+
"abPhaseId": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"description": "",
|
|
137
|
+
"parse": false,
|
|
138
|
+
"encode": false,
|
|
139
|
+
"encrypt": {
|
|
140
|
+
"type": "AES",
|
|
141
|
+
"key": ""
|
|
142
|
+
},
|
|
143
|
+
"external_name": "ab_phase_id"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"definitions": {}
|
|
147
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "getMessages",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "GET",
|
|
7
|
+
"entitypath": "{base_path}/{version}/messages?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"sendGetBody": false,
|
|
13
|
+
"requestDatatype": "JSON",
|
|
14
|
+
"responseDatatype": "JSON",
|
|
15
|
+
"headers": {},
|
|
16
|
+
"responseObjects": [
|
|
17
|
+
{
|
|
18
|
+
"type": "default",
|
|
19
|
+
"key": "",
|
|
20
|
+
"mockFile": ""
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "getV3MessagesMsgId",
|
|
26
|
+
"protocol": "REST",
|
|
27
|
+
"method": "GET",
|
|
28
|
+
"entitypath": "{base_path}/{version}/messages/{pathv1}?{query}",
|
|
29
|
+
"requestSchema": "schema.json",
|
|
30
|
+
"responseSchema": "schema.json",
|
|
31
|
+
"timeout": 0,
|
|
32
|
+
"sendEmpty": false,
|
|
33
|
+
"sendGetBody": false,
|
|
34
|
+
"requestDatatype": "JSON",
|
|
35
|
+
"responseDatatype": "JSON",
|
|
36
|
+
"headers": {},
|
|
37
|
+
"responseObjects": [
|
|
38
|
+
{
|
|
39
|
+
"type": "default",
|
|
40
|
+
"key": "",
|
|
41
|
+
"mockFile": ""
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": true,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "getMessages",
|
|
12
|
+
"enum": [
|
|
13
|
+
"getMessages",
|
|
14
|
+
"getV3MessagesMsgId"
|
|
15
|
+
],
|
|
16
|
+
"external_name": "ph_request_type"
|
|
17
|
+
},
|
|
18
|
+
"msgId": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "The ID of the message you are requesting details for.",
|
|
21
|
+
"parse": false,
|
|
22
|
+
"encode": false,
|
|
23
|
+
"encrypt": {
|
|
24
|
+
"type": "AES",
|
|
25
|
+
"key": ""
|
|
26
|
+
},
|
|
27
|
+
"external_name": "msg_id"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"definitions": {}
|
|
31
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "postWhitelabelIps",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "POST",
|
|
7
|
+
"entitypath": "{base_path}/{version}/whitelabel/ips?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"requestDatatype": "JSON",
|
|
13
|
+
"responseDatatype": "JSON",
|
|
14
|
+
"headers": {},
|
|
15
|
+
"responseObjects": [
|
|
16
|
+
{
|
|
17
|
+
"type": "default",
|
|
18
|
+
"key": "",
|
|
19
|
+
"mockFile": ""
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "getWhitelabelIps",
|
|
25
|
+
"protocol": "REST",
|
|
26
|
+
"method": "GET",
|
|
27
|
+
"entitypath": "{base_path}/{version}/whitelabel/ips?{query}",
|
|
28
|
+
"requestSchema": "schema.json",
|
|
29
|
+
"responseSchema": "schema.json",
|
|
30
|
+
"timeout": 0,
|
|
31
|
+
"sendEmpty": false,
|
|
32
|
+
"sendGetBody": false,
|
|
33
|
+
"requestDatatype": "JSON",
|
|
34
|
+
"responseDatatype": "JSON",
|
|
35
|
+
"headers": {},
|
|
36
|
+
"responseObjects": [
|
|
37
|
+
{
|
|
38
|
+
"type": "default",
|
|
39
|
+
"key": "",
|
|
40
|
+
"mockFile": ""
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "postWhitelabelIpsIdValidate",
|
|
46
|
+
"protocol": "REST",
|
|
47
|
+
"method": "POST",
|
|
48
|
+
"entitypath": "{base_path}/{version}/whitelabel/ips/{pathv1}/validate?{query}",
|
|
49
|
+
"requestSchema": "schema.json",
|
|
50
|
+
"responseSchema": "schema.json",
|
|
51
|
+
"timeout": 0,
|
|
52
|
+
"sendEmpty": false,
|
|
53
|
+
"requestDatatype": "JSON",
|
|
54
|
+
"responseDatatype": "JSON",
|
|
55
|
+
"headers": {},
|
|
56
|
+
"responseObjects": [
|
|
57
|
+
{
|
|
58
|
+
"type": "default",
|
|
59
|
+
"key": "",
|
|
60
|
+
"mockFile": ""
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "getWhitelabelIpsId",
|
|
66
|
+
"protocol": "REST",
|
|
67
|
+
"method": "GET",
|
|
68
|
+
"entitypath": "{base_path}/{version}/whitelabel/ips/{pathv1}?{query}",
|
|
69
|
+
"requestSchema": "schema.json",
|
|
70
|
+
"responseSchema": "schema.json",
|
|
71
|
+
"timeout": 0,
|
|
72
|
+
"sendEmpty": false,
|
|
73
|
+
"sendGetBody": false,
|
|
74
|
+
"requestDatatype": "JSON",
|
|
75
|
+
"responseDatatype": "JSON",
|
|
76
|
+
"headers": {},
|
|
77
|
+
"responseObjects": [
|
|
78
|
+
{
|
|
79
|
+
"type": "default",
|
|
80
|
+
"key": "",
|
|
81
|
+
"mockFile": ""
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "deleteWhitelabelIpsId",
|
|
87
|
+
"protocol": "REST",
|
|
88
|
+
"method": "DELETE",
|
|
89
|
+
"entitypath": "{base_path}/{version}/whitelabel/ips/{pathv1}?{query}",
|
|
90
|
+
"requestSchema": "schema.json",
|
|
91
|
+
"responseSchema": "schema.json",
|
|
92
|
+
"timeout": 0,
|
|
93
|
+
"sendEmpty": false,
|
|
94
|
+
"requestDatatype": "JSON",
|
|
95
|
+
"responseDatatype": "JSON",
|
|
96
|
+
"headers": {},
|
|
97
|
+
"responseObjects": [
|
|
98
|
+
{
|
|
99
|
+
"type": "default",
|
|
100
|
+
"key": "",
|
|
101
|
+
"mockFile": ""
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": false,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "postWhitelabelIps",
|
|
12
|
+
"enum": [
|
|
13
|
+
"postWhitelabelIps",
|
|
14
|
+
"getWhitelabelIps",
|
|
15
|
+
"postWhitelabelIpsIdValidate",
|
|
16
|
+
"getWhitelabelIpsId",
|
|
17
|
+
"deleteWhitelabelIpsId"
|
|
18
|
+
],
|
|
19
|
+
"external_name": "ph_request_type"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"definitions": {}
|
|
23
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "postMarketingSegments",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "POST",
|
|
7
|
+
"entitypath": "{base_path}/{version}/marketing/segments?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"requestDatatype": "JSON",
|
|
13
|
+
"responseDatatype": "JSON",
|
|
14
|
+
"headers": {},
|
|
15
|
+
"responseObjects": [
|
|
16
|
+
{
|
|
17
|
+
"type": "default",
|
|
18
|
+
"key": "",
|
|
19
|
+
"mockFile": ""
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "getMarketingSegments",
|
|
25
|
+
"protocol": "REST",
|
|
26
|
+
"method": "GET",
|
|
27
|
+
"entitypath": "{base_path}/{version}/marketing/segments?{query}",
|
|
28
|
+
"requestSchema": "schema.json",
|
|
29
|
+
"responseSchema": "schema.json",
|
|
30
|
+
"timeout": 0,
|
|
31
|
+
"sendEmpty": false,
|
|
32
|
+
"sendGetBody": false,
|
|
33
|
+
"requestDatatype": "JSON",
|
|
34
|
+
"responseDatatype": "JSON",
|
|
35
|
+
"headers": {},
|
|
36
|
+
"responseObjects": [
|
|
37
|
+
{
|
|
38
|
+
"type": "default",
|
|
39
|
+
"key": "",
|
|
40
|
+
"mockFile": ""
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "getMarketingSegmentsSegmentId",
|
|
46
|
+
"protocol": "REST",
|
|
47
|
+
"method": "GET",
|
|
48
|
+
"entitypath": "{base_path}/{version}/marketing/segments/{pathv1}?{query}",
|
|
49
|
+
"requestSchema": "schema.json",
|
|
50
|
+
"responseSchema": "schema.json",
|
|
51
|
+
"timeout": 0,
|
|
52
|
+
"sendEmpty": false,
|
|
53
|
+
"sendGetBody": false,
|
|
54
|
+
"requestDatatype": "JSON",
|
|
55
|
+
"responseDatatype": "JSON",
|
|
56
|
+
"headers": {},
|
|
57
|
+
"responseObjects": [
|
|
58
|
+
{
|
|
59
|
+
"type": "default",
|
|
60
|
+
"key": "",
|
|
61
|
+
"mockFile": ""
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "patchMarketingSegmentsSegmentId",
|
|
67
|
+
"protocol": "REST",
|
|
68
|
+
"method": "PATCH",
|
|
69
|
+
"entitypath": "{base_path}/{version}/marketing/segments/{pathv1}?{query}",
|
|
70
|
+
"requestSchema": "schema.json",
|
|
71
|
+
"responseSchema": "schema.json",
|
|
72
|
+
"timeout": 0,
|
|
73
|
+
"sendEmpty": false,
|
|
74
|
+
"requestDatatype": "JSON",
|
|
75
|
+
"responseDatatype": "JSON",
|
|
76
|
+
"headers": {},
|
|
77
|
+
"responseObjects": [
|
|
78
|
+
{
|
|
79
|
+
"type": "default",
|
|
80
|
+
"key": "",
|
|
81
|
+
"mockFile": ""
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "deleteMarketingSegmentsSegmentId",
|
|
87
|
+
"protocol": "REST",
|
|
88
|
+
"method": "DELETE",
|
|
89
|
+
"entitypath": "{base_path}/{version}/marketing/segments/{pathv1}?{query}",
|
|
90
|
+
"requestSchema": "schema.json",
|
|
91
|
+
"responseSchema": "schema.json",
|
|
92
|
+
"timeout": 0,
|
|
93
|
+
"sendEmpty": false,
|
|
94
|
+
"requestDatatype": "JSON",
|
|
95
|
+
"responseDatatype": "JSON",
|
|
96
|
+
"headers": {},
|
|
97
|
+
"responseObjects": [
|
|
98
|
+
{
|
|
99
|
+
"type": "default",
|
|
100
|
+
"key": "",
|
|
101
|
+
"mockFile": ""
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "postMarketingSegmentsDelete",
|
|
107
|
+
"protocol": "REST",
|
|
108
|
+
"method": "POST",
|
|
109
|
+
"entitypath": "{base_path}/{version}/marketing/segments/delete?{query}",
|
|
110
|
+
"requestSchema": "schema.json",
|
|
111
|
+
"responseSchema": "schema.json",
|
|
112
|
+
"timeout": 0,
|
|
113
|
+
"sendEmpty": false,
|
|
114
|
+
"requestDatatype": "JSON",
|
|
115
|
+
"responseDatatype": "JSON",
|
|
116
|
+
"headers": {},
|
|
117
|
+
"responseObjects": [
|
|
118
|
+
{
|
|
119
|
+
"type": "default",
|
|
120
|
+
"key": "",
|
|
121
|
+
"mockFile": ""
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": true,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "postMarketingSegments",
|
|
12
|
+
"enum": [
|
|
13
|
+
"postMarketingSegments",
|
|
14
|
+
"getMarketingSegments",
|
|
15
|
+
"getMarketingSegmentsSegmentId",
|
|
16
|
+
"patchMarketingSegmentsSegmentId",
|
|
17
|
+
"deleteMarketingSegmentsSegmentId",
|
|
18
|
+
"postMarketingSegmentsDelete"
|
|
19
|
+
],
|
|
20
|
+
"external_name": "ph_request_type"
|
|
21
|
+
},
|
|
22
|
+
"parentListIds": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "A comma separated list of list ids to be used when searching for segments with the specified parent_list_id, no more than 50 is allowed",
|
|
25
|
+
"parse": false,
|
|
26
|
+
"encode": false,
|
|
27
|
+
"encrypt": {
|
|
28
|
+
"type": "AES",
|
|
29
|
+
"key": ""
|
|
30
|
+
},
|
|
31
|
+
"external_name": "parent_list_ids"
|
|
32
|
+
},
|
|
33
|
+
"noParentListId": {
|
|
34
|
+
"type": "boolean",
|
|
35
|
+
"description": "If set to `true` segments with an empty value of `parent_list_id` will be returned in the filter. If the value is not present it defaults to 'false'.",
|
|
36
|
+
"parse": false,
|
|
37
|
+
"encode": false,
|
|
38
|
+
"encrypt": {
|
|
39
|
+
"type": "AES",
|
|
40
|
+
"key": ""
|
|
41
|
+
},
|
|
42
|
+
"external_name": "no_parent_list_id"
|
|
43
|
+
},
|
|
44
|
+
"segmentId": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "",
|
|
47
|
+
"parse": false,
|
|
48
|
+
"encode": false,
|
|
49
|
+
"encrypt": {
|
|
50
|
+
"type": "AES",
|
|
51
|
+
"key": ""
|
|
52
|
+
},
|
|
53
|
+
"external_name": "segment_id"
|
|
54
|
+
},
|
|
55
|
+
"queryJson": {
|
|
56
|
+
"type": "boolean",
|
|
57
|
+
"description": "Defaults to `false`. Set to `true` to return the parsed SQL AST as a JSON object in the field `query_json`",
|
|
58
|
+
"parse": false,
|
|
59
|
+
"encode": false,
|
|
60
|
+
"encrypt": {
|
|
61
|
+
"type": "AES",
|
|
62
|
+
"key": ""
|
|
63
|
+
},
|
|
64
|
+
"external_name": "query_json"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"definitions": {}
|
|
68
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "postSegments",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "POST",
|
|
7
|
+
"entitypath": "{base_path}/{version}/marketing/segments/2.0?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"requestDatatype": "JSON",
|
|
13
|
+
"responseDatatype": "JSON",
|
|
14
|
+
"headers": {},
|
|
15
|
+
"responseObjects": [
|
|
16
|
+
{
|
|
17
|
+
"type": "default",
|
|
18
|
+
"key": "",
|
|
19
|
+
"mockFile": ""
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "getSegments",
|
|
25
|
+
"protocol": "REST",
|
|
26
|
+
"method": "GET",
|
|
27
|
+
"entitypath": "{base_path}/{version}/marketing/segments/2.0?{query}",
|
|
28
|
+
"requestSchema": "schema.json",
|
|
29
|
+
"responseSchema": "schema.json",
|
|
30
|
+
"timeout": 0,
|
|
31
|
+
"sendEmpty": false,
|
|
32
|
+
"sendGetBody": false,
|
|
33
|
+
"requestDatatype": "JSON",
|
|
34
|
+
"responseDatatype": "JSON",
|
|
35
|
+
"headers": {},
|
|
36
|
+
"responseObjects": [
|
|
37
|
+
{
|
|
38
|
+
"type": "default",
|
|
39
|
+
"key": "",
|
|
40
|
+
"mockFile": ""
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "patchSegmentsSegmentId",
|
|
46
|
+
"protocol": "REST",
|
|
47
|
+
"method": "PATCH",
|
|
48
|
+
"entitypath": "{base_path}/{version}/marketing/segments/2.0/{pathv1}?{query}",
|
|
49
|
+
"requestSchema": "schema.json",
|
|
50
|
+
"responseSchema": "schema.json",
|
|
51
|
+
"timeout": 0,
|
|
52
|
+
"sendEmpty": false,
|
|
53
|
+
"requestDatatype": "JSON",
|
|
54
|
+
"responseDatatype": "JSON",
|
|
55
|
+
"headers": {},
|
|
56
|
+
"responseObjects": [
|
|
57
|
+
{
|
|
58
|
+
"type": "default",
|
|
59
|
+
"key": "",
|
|
60
|
+
"mockFile": ""
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "getSegmentsSegmentId",
|
|
66
|
+
"protocol": "REST",
|
|
67
|
+
"method": "GET",
|
|
68
|
+
"entitypath": "{base_path}/{version}/marketing/segments/2.0/{pathv1}?{query}",
|
|
69
|
+
"requestSchema": "schema.json",
|
|
70
|
+
"responseSchema": "schema.json",
|
|
71
|
+
"timeout": 0,
|
|
72
|
+
"sendEmpty": false,
|
|
73
|
+
"sendGetBody": false,
|
|
74
|
+
"requestDatatype": "JSON",
|
|
75
|
+
"responseDatatype": "JSON",
|
|
76
|
+
"headers": {},
|
|
77
|
+
"responseObjects": [
|
|
78
|
+
{
|
|
79
|
+
"type": "default",
|
|
80
|
+
"key": "",
|
|
81
|
+
"mockFile": ""
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|