@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.
Files changed (182) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +18 -0
  3. package/.jshintrc +3 -0
  4. package/AUTH.md +31 -0
  5. package/BROKER.md +211 -0
  6. package/CALLS.md +2211 -0
  7. package/CODE_OF_CONDUCT.md +43 -0
  8. package/CONTRIBUTING.md +13 -0
  9. package/ENHANCE.md +69 -0
  10. package/LICENSE +201 -0
  11. package/PROPERTIES.md +646 -0
  12. package/README.md +343 -0
  13. package/SUMMARY.md +9 -0
  14. package/SYSTEMINFO.md +20 -0
  15. package/TAB1.md +11 -0
  16. package/TAB2.md +302 -0
  17. package/TROUBLESHOOT.md +47 -0
  18. package/adapter.js +38033 -0
  19. package/adapterBase.js +1452 -0
  20. package/entities/.generic/action.json +214 -0
  21. package/entities/.generic/schema.json +28 -0
  22. package/entities/.system/action.json +50 -0
  23. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  24. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  25. package/entities/.system/schema.json +19 -0
  26. package/entities/.system/schemaTokenReq.json +53 -0
  27. package/entities/.system/schemaTokenResp.json +53 -0
  28. package/entities/APIKeyPermissions/action.json +25 -0
  29. package/entities/APIKeyPermissions/schema.json +19 -0
  30. package/entities/APIKeys/action.json +126 -0
  31. package/entities/APIKeys/schema.json +35 -0
  32. package/entities/Alerts/action.json +106 -0
  33. package/entities/Alerts/schema.json +34 -0
  34. package/entities/BlocksAPI/action.json +86 -0
  35. package/entities/BlocksAPI/schema.json +44 -0
  36. package/entities/BouncesAPI/action.json +86 -0
  37. package/entities/BouncesAPI/schema.json +55 -0
  38. package/entities/CSVUIOnly/action.json +45 -0
  39. package/entities/CSVUIOnly/schema.json +31 -0
  40. package/entities/CampaignsAPI/action.json +227 -0
  41. package/entities/CampaignsAPI/schema.json +40 -0
  42. package/entities/CancelScheduledSends/action.json +147 -0
  43. package/entities/CancelScheduledSends/schema.json +36 -0
  44. package/entities/Categories/action.json +67 -0
  45. package/entities/Categories/schema.json +76 -0
  46. package/entities/Certificates/action.json +106 -0
  47. package/entities/Certificates/schema.json +45 -0
  48. package/entities/Contacts/action.json +270 -0
  49. package/entities/Contacts/schema.json +42 -0
  50. package/entities/ContactsAPICustomFields/action.json +107 -0
  51. package/entities/ContactsAPICustomFields/schema.json +34 -0
  52. package/entities/ContactsAPILists/action.json +207 -0
  53. package/entities/ContactsAPILists/schema.json +72 -0
  54. package/entities/ContactsAPIRecipients/action.json +251 -0
  55. package/entities/ContactsAPIRecipients/schema.json +63 -0
  56. package/entities/ContactsAPISegments/action.json +127 -0
  57. package/entities/ContactsAPISegments/schema.json +57 -0
  58. package/entities/CustomFields/action.json +85 -0
  59. package/entities/CustomFields/schema.json +33 -0
  60. package/entities/DesignsAPI/action.json +188 -0
  61. package/entities/DesignsAPI/schema.json +49 -0
  62. package/entities/DomainAuthentication/action.json +248 -0
  63. package/entities/DomainAuthentication/schema.json +52 -0
  64. package/entities/EmailAddressValidation/action.json +24 -0
  65. package/entities/EmailAddressValidation/schema.json +19 -0
  66. package/entities/EmailCNAMERecords/action.json +24 -0
  67. package/entities/EmailCNAMERecords/schema.json +19 -0
  68. package/entities/IPAccessManagement/action.json +127 -0
  69. package/entities/IPAccessManagement/schema.json +35 -0
  70. package/entities/IPAddresses/action.json +108 -0
  71. package/entities/IPAddresses/schema.json +56 -0
  72. package/entities/IPPools/action.json +146 -0
  73. package/entities/IPPools/schema.json +36 -0
  74. package/entities/IPWarmup/action.json +86 -0
  75. package/entities/IPWarmup/schema.json +33 -0
  76. package/entities/InvalidEmailsAPI/action.json +86 -0
  77. package/entities/InvalidEmailsAPI/schema.json +44 -0
  78. package/entities/LinkBranding/action.json +208 -0
  79. package/entities/LinkBranding/schema.json +39 -0
  80. package/entities/Lists/action.json +147 -0
  81. package/entities/Lists/schema.json +80 -0
  82. package/entities/MailSend/action.json +24 -0
  83. package/entities/MailSend/schema.json +19 -0
  84. package/entities/MarketingCampaignsStats/action.json +172 -0
  85. package/entities/MarketingCampaignsStats/schema.json +147 -0
  86. package/entities/Query/action.json +46 -0
  87. package/entities/Query/schema.json +31 -0
  88. package/entities/ReverseDNS/action.json +106 -0
  89. package/entities/ReverseDNS/schema.json +23 -0
  90. package/entities/SegmentingContacts/action.json +126 -0
  91. package/entities/SegmentingContacts/schema.json +68 -0
  92. package/entities/SegmentingContactsV2/action.json +86 -0
  93. package/entities/SegmentingContactsV2/schema.json +66 -0
  94. package/entities/SegmentingContactsV2Beta/action.json +24 -0
  95. package/entities/SegmentingContactsV2Beta/schema.json +30 -0
  96. package/entities/SendTestEmail/action.json +24 -0
  97. package/entities/SendTestEmail/schema.json +19 -0
  98. package/entities/SenderIdentitiesAPI/action.json +126 -0
  99. package/entities/SenderIdentitiesAPI/schema.json +35 -0
  100. package/entities/SenderVerification/action.json +168 -0
  101. package/entities/SenderVerification/schema.json +26 -0
  102. package/entities/Senders/action.json +24 -0
  103. package/entities/Senders/schema.json +19 -0
  104. package/entities/SettingsEnforcedTLS/action.json +45 -0
  105. package/entities/SettingsEnforcedTLS/schema.json +20 -0
  106. package/entities/SettingsInboundParse/action.json +85 -0
  107. package/entities/SettingsInboundParse/schema.json +22 -0
  108. package/entities/SettingsMail/action.json +271 -0
  109. package/entities/SettingsMail/schema.json +31 -0
  110. package/entities/SettingsPartner/action.json +66 -0
  111. package/entities/SettingsPartner/schema.json +21 -0
  112. package/entities/SettingsTracking/action.json +189 -0
  113. package/entities/SettingsTracking/schema.json +27 -0
  114. package/entities/SingleSends/action.json +227 -0
  115. package/entities/SingleSends/schema.json +51 -0
  116. package/entities/SingleSignOnSettings/action.json +106 -0
  117. package/entities/SingleSignOnSettings/schema.json +23 -0
  118. package/entities/SingleSignOnTeammates/action.json +44 -0
  119. package/entities/SingleSignOnTeammates/schema.json +20 -0
  120. package/entities/SpamReportsAPI/action.json +86 -0
  121. package/entities/SpamReportsAPI/schema.json +44 -0
  122. package/entities/Stats/action.json +151 -0
  123. package/entities/Stats/schema.json +80 -0
  124. package/entities/SubuserMonitorSettings/action.json +85 -0
  125. package/entities/SubuserMonitorSettings/schema.json +33 -0
  126. package/entities/SubuserStatistics/action.json +88 -0
  127. package/entities/SubuserStatistics/schema.json +88 -0
  128. package/entities/SubusersAPI/action.json +126 -0
  129. package/entities/SubusersAPI/schema.json +35 -0
  130. package/entities/SuppressionsGlobalSuppressions/action.json +86 -0
  131. package/entities/SuppressionsGlobalSuppressions/schema.json +44 -0
  132. package/entities/SuppressionsSuppressions/action.json +127 -0
  133. package/entities/SuppressionsSuppressions/schema.json +35 -0
  134. package/entities/SuppressionsUnsubscribeGroups/action.json +106 -0
  135. package/entities/SuppressionsUnsubscribeGroups/schema.json +34 -0
  136. package/entities/Teammates/action.json +228 -0
  137. package/entities/Teammates/schema.json +40 -0
  138. package/entities/TransactionalTemplates/action.json +126 -0
  139. package/entities/TransactionalTemplates/schema.json +57 -0
  140. package/entities/TransactionalTemplatesVersions/action.json +105 -0
  141. package/entities/TransactionalTemplatesVersions/schema.json +45 -0
  142. package/entities/UsersAPI/action.json +189 -0
  143. package/entities/UsersAPI/schema.json +27 -0
  144. package/entities/Webhooks/action.json +148 -0
  145. package/entities/Webhooks/schema.json +58 -0
  146. package/error.json +190 -0
  147. package/metadata.json +77 -0
  148. package/package.json +81 -0
  149. package/pronghorn.json +17316 -0
  150. package/propertiesDecorators.json +14 -0
  151. package/propertiesSchema.json +1574 -0
  152. package/report/adapter-openapi.json +59750 -0
  153. package/report/adapter-openapi.yaml +43964 -0
  154. package/report/adapterInfo.json +10 -0
  155. package/report/auto-adapter-openapi.json +14137 -0
  156. package/report/creationReport.json +2750 -0
  157. package/report/sendgrid.json +48136 -0
  158. package/sampleProperties.json +257 -0
  159. package/test/integration/adapterTestBasicGet.js +83 -0
  160. package/test/integration/adapterTestConnectivity.js +118 -0
  161. package/test/integration/adapterTestIntegration.js +9099 -0
  162. package/test/unit/adapterBaseTestUnit.js +1024 -0
  163. package/test/unit/adapterTestUnit.js +8691 -0
  164. package/utils/adapterInfo.js +206 -0
  165. package/utils/addAuth.js +94 -0
  166. package/utils/artifactize.js +146 -0
  167. package/utils/basicGet.js +50 -0
  168. package/utils/checkMigrate.js +63 -0
  169. package/utils/entitiesToDB.js +179 -0
  170. package/utils/findPath.js +74 -0
  171. package/utils/methodDocumentor.js +273 -0
  172. package/utils/modify.js +152 -0
  173. package/utils/packModificationScript.js +35 -0
  174. package/utils/patches2bundledDeps.js +90 -0
  175. package/utils/pre-commit.sh +32 -0
  176. package/utils/removeHooks.js +20 -0
  177. package/utils/setup.js +33 -0
  178. package/utils/taskMover.js +309 -0
  179. package/utils/tbScript.js +239 -0
  180. package/utils/tbUtils.js +489 -0
  181. package/utils/testRunner.js +298 -0
  182. package/utils/troubleshootingAdapter.js +193 -0
package/README.md ADDED
@@ -0,0 +1,343 @@
1
+ # Adapter for Sendgrid
2
+
3
+ ## Table of Contents
4
+
5
+ Some of the page links in this document and links to other GitLab files do not work in Confluence however, the information is available in other sections of the Confluence material.
6
+
7
+ - [Specific to this Adapter](#specific-to-this-adapter)
8
+ - [Authentication](./AUTH.md)
9
+ - [Sample Properties](./sampleProperties.json)
10
+ - [Available Calls](./CALLS.md)
11
+ - [Swagger](./report/adapter-openapi.json)
12
+ - [Generic Adapter Information](#generic-adapter-information)
13
+ - [Overview](./SUMMARY.md)
14
+ - [Versioning](#versioning)
15
+ - [Supported IAP Versions](#supported-iap-versions)
16
+ - [Getting Started](#getting-started)
17
+ - [Helpful Background Information](#helpful-background-information)
18
+ - [Prerequisites](#prerequisites)
19
+ - [How to Install](#how-to-install)
20
+ - [Testing](#testing)
21
+ - [Configuration](./PROPERTIES.md)
22
+ - [Additional Information](#additional-information)
23
+ - [Enhancements](./ENHANCE.md)
24
+ - [Contributing](./CONTRIBUTING.md)
25
+ - [Helpful Links](#helpful-links)
26
+ - [Node Scripts](#node-scripts)
27
+ - [Troubleshoot](./TROUBLESHOOT.md)
28
+ - [License and Maintainers](#license-and-maintainers)
29
+ - [Product License](#product-license)
30
+
31
+
32
+ ## Specific to this Adapter
33
+
34
+ ### [Authentication](./AUTH.md)
35
+
36
+ ### [Sample Properties](./sampleProperties.json)
37
+
38
+ <a href="./sampleProperties.json" target="_blank">Sample Properties</a> can be used to help you configure the adapter in the Itential Automation Platform. You will need to update connectivity information such as the host, port, protocol and credentials.
39
+
40
+ ### [Available Calls](./CALLS.md)
41
+
42
+ ### [Swagger](./report/adapter-openapi.json)
43
+
44
+
45
+ ## Generic Adapter Information
46
+
47
+ ### [Overview](./SUMMARY.md)
48
+
49
+ ### Versioning
50
+
51
+ Itential Product and opensource adapters utilize SemVer for versioning. The current version of the adapter can be found in the `package.json` file or viewed in the IAP GUI on the System page. All Itential opensource adapters can be found in the <a href="https://gitlab.com/itentialopensource/adapters" target="_blank">Itential OpenSource Repository</a>.
52
+
53
+ Any release prior to 1.0.0 is a pre-release. Initial builds of adapters are generally set up as pre-releases as there is often work that needs to be done to configure the adapter and make sure the authentication process to Sendgrid works appropriately.
54
+
55
+ Release notes can be viewed in CHANGELOG.md.
56
+
57
+ ### Supported IAP Versions
58
+
59
+ Itential Product adapters are built for particular versions of IAP and packaged with the versions they work with.
60
+
61
+ Itential opensource adapter as well as custom adapters built with the Itential Adapter Builder work acoss many releases of IAP. As a result, it is not often necessary to modify an adapter when upgrading IAP. If IAP has changes that impact the pronghorn.json, like adding a new required section, this will most likely require changes to all adapters when upgrading IAP.
62
+
63
+ Many of the scripts that come with all adapters built using the Itential Adapter Builder do have some dependencies on IAP or the IAP database schema and so it is possible these scripts could stop working in different versions of IAP. If you notify Itential of any issues, the Adapter Team will attempt to fix the scripts for newer releases of IAP.
64
+
65
+ ### Getting Started
66
+
67
+ These instructions will help you get a copy of the project on your local machine for development and testing. Reading this section is also helpful for deployments as it provides you with pertinent information on prerequisites and properties.
68
+
69
+ #### Helpful Background Information
70
+
71
+ There is <a href="https://docs.itential.com/opensource/docs/adapters" target="_blank">Adapter documentation available on the Itential Documentation Site</a>. This documentation includes information and examples that are helpful for:
72
+
73
+ ```text
74
+ Authentication
75
+ IAP Service Instance Configuration
76
+ Code Files
77
+ Endpoint Configuration (Action & Schema)
78
+ Mock Data
79
+ Adapter Generic Methods
80
+ Headers
81
+ Security
82
+ Linting and Testing
83
+ Build an Adapter
84
+ Troubleshooting an Adapter
85
+ ```
86
+
87
+ Others will be added over time.
88
+ Want to build a new adapter? Use the <a href="https://adapters.itential.io" target="_blank">Itential Adapter Builder</a>
89
+
90
+ #### Prerequisites
91
+
92
+ The following is a list of required packages for installation on the system the adapter will run on:
93
+
94
+ ```text
95
+ Node.js
96
+ npm
97
+ Git
98
+ ```
99
+
100
+ The following list of packages are required for Itential opensource adapters or custom adapters that have been built utilizing the Itential Adapter Builder. You can install these packages by running npm install inside the adapter directory.
101
+
102
+ <table border="1" class="bordered-table">
103
+ <tr>
104
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Package</span></th>
105
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
106
+ </tr>
107
+ <tr>
108
+ <td style="padding:15px">@itentialopensource/adapter-utils</td>
109
+ <td style="padding:15px">Runtime library classes for all adapters; includes request handling, connection, authentication throttling, and translation.</td>
110
+ </tr>
111
+ <tr>
112
+ <td style="padding:15px">ajv</td>
113
+ <td style="padding:15px">Required for validation of adapter properties to integrate with Sendgrid.</td>
114
+ </tr>
115
+ <tr>
116
+ <td style="padding:15px">axios</td>
117
+ <td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
118
+ </tr>
119
+ <tr>
120
+ <td style="padding:15px">commander</td>
121
+ <td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
122
+ </tr>
123
+ <tr>
124
+ <td style="padding:15px">dns-lookup-promise</td>
125
+ <td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
126
+ </tr>
127
+ <tr>
128
+ <td style="padding:15px">fs-extra</td>
129
+ <td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
130
+ </tr>
131
+ <tr>
132
+ <td style="padding:15px">mocha</td>
133
+ <td style="padding:15px">Testing library that is utilized by some of the node scripts that are included with the adapter.</td>
134
+ </tr>
135
+ <tr>
136
+ <td style="padding:15px">mocha-param</td>
137
+ <td style="padding:15px">Testing library that is utilized by some of the node scripts that are included with the adapter.</td>
138
+ </tr>
139
+ <tr>
140
+ <td style="padding:15px">mongodb</td>
141
+ <td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
142
+ </tr>
143
+ <tr>
144
+ <td style="padding:15px">nyc</td>
145
+ <td style="padding:15px">Testing coverage library that is utilized by some of the node scripts that are included with the adapter.</td>
146
+ </tr>
147
+ <tr>
148
+ <td style="padding:15px">ping</td>
149
+ <td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
150
+ </tr>
151
+ <tr>
152
+ <td style="padding:15px">readline-sync</td>
153
+ <td style="padding:15px">Utilized by the node script that comes with the adapter; helps to test unit and integration functionality.</td>
154
+ </tr>
155
+ <tr>
156
+ <td style="padding:15px">semver</td>
157
+ <td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
158
+ </tr>
159
+ <tr>
160
+ <td style="padding:15px">winston</td>
161
+ <td style="padding:15px">Utilized by the node scripts that are included with the adapter; helps to build and extend the functionality.</td>
162
+ </tr>
163
+ </table>
164
+ <br>
165
+
166
+ If you are developing and testing a custom adapter, or have testing capabilities on an Itential opensource adapter, you will need to install these packages as well.
167
+
168
+ ```text
169
+ chai
170
+ eslint
171
+ eslint-config-airbnb-base
172
+ eslint-plugin-import
173
+ eslint-plugin-json
174
+ testdouble
175
+ ```
176
+
177
+ #### How to Install
178
+
179
+ 1. Set up the name space location in your IAP node_modules.
180
+
181
+ ```bash
182
+ cd /opt/pronghorn/current/node_modules (* could be in a different place)
183
+ if the @itentialopensource directory does not exist, create it:
184
+ mkdir @itentialopensource
185
+ ```
186
+
187
+ 2. Clone/unzip/tar the adapter into your IAP environment.
188
+
189
+ ```bash
190
+ cd @itentialopensource
191
+ git clone git@gitlab.com:@itentialopensource/adapters/adapter-sendgrid
192
+ or
193
+ unzip adapter-sendgrid.zip
194
+ or
195
+ tar -xvf adapter-sendgrid.tar
196
+ ```
197
+
198
+ 3. Run the adapter install script.
199
+
200
+ ```bash
201
+ cd adapter-sendgrid
202
+ npm install
203
+ npm run lint:errors
204
+ npm run test
205
+ ```
206
+
207
+ 4. Restart IAP
208
+
209
+ ```bash
210
+ systemctl restart pronghorn
211
+ ```
212
+
213
+ 5. Create an adapter service instance configuration in IAP Admin Essentials GUI
214
+
215
+ 6. Copy the properties from the sampleProperties.json and paste them into the service instance configuration in the inner/second properties field.
216
+
217
+ 7. Change the adapter service instance configuration (host, port, credentials, etc) in IAP Admin Essentials GUI
218
+
219
+ #### Testing
220
+
221
+ Mocha is generally used to test all Itential Opensource Adapters. There are unit tests as well as integration tests performed. Integration tests can generally be run as standalone using mock data and running the adapter in stub mode, or as integrated. When running integrated, every effort is made to prevent environmental failures, however there is still a possibility.
222
+
223
+ ##### Unit Testing
224
+
225
+ Unit Testing includes testing basic adapter functionality as well as error conditions that are triggered in the adapter prior to any integration. There are two ways to run unit tests. The prefered method is to use the testRunner script; however, both methods are provided here.
226
+
227
+ ```bash
228
+ node utils/testRunner --unit
229
+
230
+ npm run test:unit
231
+ npm run test:baseunit
232
+ ```
233
+
234
+ To add new unit tests, edit the `test/unit/adapterTestUnit.js` file. The tests that are already in this file should provide guidance for adding additional tests.
235
+
236
+ ##### Integration Testing - Standalone
237
+
238
+ Standalone Integration Testing requires mock data to be provided with the entities. If this data is not provided, standalone integration testing will fail. When the adapter is set to run in stub mode (setting the stub property to true), the adapter will run through its code up to the point of making the request. It will then retrieve the mock data and return that as if it had received that data as the response from Sendgrid. It will then translate the data so that the adapter can return the expected response to the rest of the Itential software. Standalone is the default integration test.
239
+
240
+ Similar to unit testing, there are two ways to run integration tests. Using the testRunner script is better because it prevents you from having to edit the test script; it will also resets information after testing is complete so that credentials are not saved in the file.
241
+
242
+ ```bash
243
+ node utils/testRunner
244
+ answer no at the first prompt
245
+
246
+ npm run test:integration
247
+ ```
248
+
249
+ To add new integration tests, edit the `test/integration/adapterTestIntegration.js` file. The tests that are already in this file should provide guidance for adding additional tests.
250
+
251
+ ##### Integration Testing
252
+
253
+ Integration Testing requires connectivity to Sendgrid. By using the testRunner script it prevents you from having to edit the integration test. It also resets the integration test after the test is complete so that credentials are not saved in the file.
254
+
255
+ > **Note**: These tests have been written as a best effort to make them work in most environments. However, the Adapter Builder often does not have the necessary information that is required to set up valid integration tests. For example, the order of the requests can be very important and data is often required for `creates` and `updates`. Hence, integration tests may have to be enhanced before they will work (integrate) with Sendgrid. Even after tests have been set up properly, it is possible there are environmental constraints that could result in test failures. Some examples of possible environmental issues are customizations that have been made within Sendgrid which change order dependencies or required data.
256
+
257
+ ```bash
258
+ node utils/testRunner
259
+ answer yes at the first prompt
260
+ answer all other questions on connectivity and credentials
261
+ ```
262
+
263
+ Test should also be written to clean up after themselves. However, it is important to understand that in some cases this may not be possible. In addition, whenever exceptions occur, test execution may be stopped, which will prevent cleanup actions from running. It is recommended that tests be utilized in dev and test labs only.
264
+
265
+ > **Reminder**: Do not check in code with actual credentials to systems.
266
+
267
+ ### [Configuration](./PROPERTIES.md)
268
+
269
+ ### Additional Information
270
+
271
+ #### [Enhancements](./ENHANCE.md)
272
+
273
+ #### [Contributing](./CONTRIBUTING.md)
274
+
275
+ #### Helpful Links
276
+
277
+ <a href="https://docs.itential.com/opensource/docs/adapters" target="_blank">Adapter Technical Resources</a>
278
+
279
+ #### Node Scripts
280
+
281
+ There are several node scripts that now accompany the adapter. These scripts are provided to make several activities easier. Many of these scripts can have issues with different versions of IAP as they have dependencies on IAP and Mongo. If you have issues with the scripts please report them to the Itential Adapter Team. Each of these scripts are described below.
282
+
283
+ <table border="1" class="bordered-table">
284
+ <tr>
285
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Run</span></th>
286
+ <th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Description</span></th>
287
+ </tr>
288
+ <tr>
289
+ <td style="padding:15px">npm run adapter:install</td>
290
+ <td style="padding:15px">Provides an easier way to install the adapter.</td>
291
+ </tr>
292
+ <tr>
293
+ <td style="padding:15px">npm run adapter:checkMigrate</td>
294
+ <td style="padding:15px">Checks whether your adapter can and should be migrated to the latest foundation.</td>
295
+ </tr>
296
+ <tr>
297
+ <td style="padding:15px">npm run adapter:findPath</td>
298
+ <td style="padding:15px">Can be used to see if the adapter supports a particular API call.</td>
299
+ </tr>
300
+ <tr>
301
+ <td style="padding:15px">npm run adapter:migrate</td>
302
+ <td style="padding:15px">Provides an easier way to update your adapter after you download the migration zip from Itential DevSite.</td>
303
+ </tr>
304
+ <tr>
305
+ <td style="padding:15px">npm run adapter:update</td>
306
+ <td style="padding:15px">Provides an easier way to update your adapter after you download the update zip from Itential DevSite.</td>
307
+ </tr>
308
+ <tr>
309
+ <td style="padding:15px">npm run adapter:revert</td>
310
+ <td style="padding:15px">Allows you to revert after a migration or update if it resulted in issues.</td>
311
+ </tr>
312
+ <tr>
313
+ <td style="padding:15px">npm run troubleshoot</td>
314
+ <td style="padding:15px">Provides a way to troubleshoot the adapter - runs connectivity, healthcheck and basic get.</td>
315
+ </tr>
316
+ <tr>
317
+ <td style="padding:15px">npm run connectivity</td>
318
+ <td style="padding:15px">Provides a connectivity check to the Sendgrid system.</td>
319
+ </tr>
320
+ <tr>
321
+ <td style="padding:15px">npm run healthcheck</td>
322
+ <td style="padding:15px">Checks whether the configured healthcheck call works to Sendgrid.</td>
323
+ </tr>
324
+ <tr>
325
+ <td style="padding:15px">npm run basicget</td>
326
+ <td style="padding:15px">Checks whether the basic get calls works to Sendgrid.</td>
327
+ </tr>
328
+ </table>
329
+ <br>
330
+
331
+ ### [Troubleshoot](./TROUBLESHOOT.md)
332
+
333
+ ### License and Maintainers
334
+
335
+ ```text
336
+ Itential Product Adapters are maintained by the Itential Product Team.
337
+ Itential OpenSource Adapters are maintained by the Itential Adapter Team and the community at large.
338
+ Custom Adapters are maintained by other sources.
339
+ ```
340
+
341
+ ### Product License
342
+
343
+ [Apache 2.0](./LICENSE)
package/SUMMARY.md ADDED
@@ -0,0 +1,9 @@
1
+ ## Overview
2
+
3
+ This adapter is used to integrate the Itential Automation Platform (IAP) with the Sendgrid System. The API that was used to build the adapter for Sendgrid is usually available in the report directory of this adapter. The adapter utilizes the Sendgrid API to provide the integrations that are deemed pertinent to IAP. The ReadMe file is intended to provide information on this adapter it is generated from various other Markdown files.
4
+
5
+ >**Note**: It is possible that some integrations will be supported through the Sendgrid adapter while other integrations will not. If you need additional API calls, you can use the Update capabilities provided by the Adapter Builder or request Itential to add them if the Adapter is an Itential opensourced adapter.
6
+
7
+ Itential provides information on all of its product adapters in the Customer Knowledge Base. Information in the <a href="https://itential.atlassian.net/servicedesk/customer/portals" target="_blank">Customer Knowledge Base</a> is consistently maintained and goes through documentation reviews. As a result, it should be the first place to go for information.
8
+
9
+ For opensourced and custom built adapters, the ReadMe is a starting point to understand what you have built, provide the information for you to be able to update the adapter, and assist you with deploying the adapter into IAP.
package/SYSTEMINFO.md ADDED
@@ -0,0 +1,20 @@
1
+ # Adapter for SendGrid
2
+
3
+ Vendor: Twilio
4
+ Homepage: https://www.twilio.com/
5
+
6
+ Product: SendGrid
7
+ Product Page: https://www.twilio.com/en-us/sendgrid/email-api
8
+
9
+ ## Introduction
10
+ We classify SendGrid into the Notifications domain as it provides the capability to manage, send email notifications and deliver alerts, updates and messages to users
11
+
12
+ ## Why Integrate
13
+ This adapter from Itential is used to integrate the Itential Automation Platform (IAP) with SendGrid. With this adapter you have the ability to perform operations such as:
14
+
15
+ - Add, update or delete contacts
16
+ - Get, create or delete single sends
17
+
18
+ ## Additional Product Documentation
19
+ The [API documents for SendGrid](https://www.twilio.com/docs/sendgrid/api-reference)
20
+
package/TAB1.md ADDED
@@ -0,0 +1,11 @@
1
+ # Overview
2
+
3
+ This adapter is used to integrate the Itential Automation Platform (IAP) with the Sendgrid System. The API that was used to build the adapter for Sendgrid is usually available in the report directory of this adapter. The adapter utilizes the Sendgrid API to provide the integrations that are deemed pertinent to IAP. The ReadMe file is intended to provide information on this adapter it is generated from various other Markdown files.
4
+
5
+ ## Details
6
+ This adapter from Itential is used to integrate the Itential Automation Platform (IAP) with SendGrid. With this adapter you have the ability to perform operations such as:
7
+
8
+ - Add, update or delete contacts
9
+ - Get, create or delete single sends
10
+
11
+ For further technical details on how to install and use this adapter, please click the Technical Documentation tab.