@manyos/smileconnect-api 1.40.1 → 1.41.0

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/conf/clients.json CHANGED
@@ -404,7 +404,8 @@
404
404
  "checkGlobalParams"
405
405
  ],
406
406
  "postMapping": [
407
- "p4"
407
+ "p4",
408
+ "update"
408
409
  ],
409
410
  "afterExecution": [
410
411
  "script3"
@@ -0,0 +1,12 @@
1
+ const settings = {
2
+ "form":"Sample:Cities",
3
+ "id": "000000000000115",
4
+ "entry": {
5
+ "Airport Code": "MUC3",
6
+ "City": "Munich"
7
+ }
8
+ };
9
+ //Create Service Request
10
+ const resultUpdate = await adapter.remedy.update(settings.form, settings.id, settings.entry);
11
+
12
+ resolve(resultUpdate);
package/docs/adapter.md CHANGED
@@ -170,7 +170,57 @@ const settings = {
170
170
  const resultCreate = await adapter.remedy.create(settings.createForm, settings.entry);
171
171
  ```
172
172
 
173
- Will return return the id of the created record. e.g. REQ00000002893
173
+ Will return return the id of the created record. e.g. REQ00000002893 or throw an error.
174
+
175
+ #### Update
176
+
177
+ ```javascript
178
+ async function update(form, id, entry, options)
179
+ ```
180
+
181
+ Parameter:
182
+
183
+ * form (string):
184
+
185
+ The form in which a record is updated. e.g. CTM:People
186
+
187
+ * id (string):
188
+
189
+ The id of the entry that should be updated
190
+
191
+ * entry (object):
192
+
193
+ The entry object that is updated.
194
+
195
+ e.g.
196
+
197
+ ```javascript
198
+ {
199
+ "Source Keyword": "SMILEcatalog",
200
+ "Company": "Calbro Services",
201
+ "AppRequestSummary": "New Request from SMILEcatalog",
202
+ "TitleInstanceID": "SRGAA5V0GEfds7LO5YL6Q945Z",
203
+ "Login ID": "Allen"
204
+ }
205
+ ```
206
+
207
+ Full example:
208
+
209
+ ```javascript
210
+ const settings = {
211
+ "form":"Sample:Cities",
212
+ "id": "000000000000115",
213
+ "entry": {
214
+ "Airport Code": "MUC1",
215
+ "City": "Munich"
216
+ }
217
+ };
218
+ //Create Service Request
219
+ const resultUpdate = await adapter.remedy.update(settings.form, settings.id, settings.entry);
220
+ ```
221
+
222
+ Will return return the id of the updated record. e.g. 000000000000115 or throw an error.
223
+
174
224
 
175
225
  #### Options
176
226
 
package/docs/releases.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## API
4
4
 
5
+ ### 1.41.0 - 02.08.21
6
+
7
+ Update Record added to [Remedy Adapter](adapter#remedy).
8
+
9
+
5
10
  ### 1.40.0 - 30.07.21
6
11
 
7
12
  Dynamic Impersonate Users added.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manyos/smileconnect-api",
3
- "version": "1.40.1",
3
+ "version": "1.41.0",
4
4
  "description": "A proxy and abstraction layer for BMCs IT Service Management Suite",
5
5
  "main": "app.js",
6
6
  "scripts": {