@itentialopensource/adapter-salesforce_rest 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 (86) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +18 -0
  3. package/.jshintrc +3 -0
  4. package/AUTH.md +38 -0
  5. package/BROKER.md +211 -0
  6. package/CALLS.md +645 -0
  7. package/CHANGELOG.md +9 -0
  8. package/CODE_OF_CONDUCT.md +43 -0
  9. package/CONTRIBUTING.md +13 -0
  10. package/ENHANCE.md +69 -0
  11. package/LICENSE +201 -0
  12. package/PROPERTIES.md +646 -0
  13. package/README.md +343 -0
  14. package/SUMMARY.md +9 -0
  15. package/SYSTEMINFO.md +20 -0
  16. package/TROUBLESHOOT.md +47 -0
  17. package/adapter.js +9326 -0
  18. package/adapterBase.js +1452 -0
  19. package/changelogs/CHANGELOG.md +0 -0
  20. package/entities/.generic/action.json +214 -0
  21. package/entities/.generic/schema.json +28 -0
  22. package/entities/.system/action.json +51 -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 +86 -0
  27. package/entities/.system/schemaTokenResp.json +53 -0
  28. package/entities/Actions/action.json +87 -0
  29. package/entities/Actions/schema.json +22 -0
  30. package/entities/BusinessRulesEngineInvocableActions/action.json +44 -0
  31. package/entities/BusinessRulesEngineInvocableActions/schema.json +31 -0
  32. package/entities/LightningMetrics/action.json +109 -0
  33. package/entities/LightningMetrics/schema.json +23 -0
  34. package/entities/ListViews/action.json +88 -0
  35. package/entities/ListViews/schema.json +22 -0
  36. package/entities/Logs/action.json +46 -0
  37. package/entities/Logs/schema.json +20 -0
  38. package/entities/Processes/action.json +66 -0
  39. package/entities/Processes/schema.json +21 -0
  40. package/entities/REST/action.json +235 -0
  41. package/entities/REST/schema.json +29 -0
  42. package/entities/SObject/action.json +547 -0
  43. package/entities/SObject/schema.json +55 -0
  44. package/entities/Scheduling/action.json +65 -0
  45. package/entities/Scheduling/schema.json +21 -0
  46. package/entities/Search/action.json +151 -0
  47. package/entities/Search/schema.json +25 -0
  48. package/entities/SupportAndKnowledge/action.json +130 -0
  49. package/entities/SupportAndKnowledge/schema.json +35 -0
  50. package/error.json +190 -0
  51. package/metadata.json +71 -0
  52. package/package.json +81 -0
  53. package/pronghorn.json +4362 -0
  54. package/propertiesDecorators.json +14 -0
  55. package/propertiesSchema.json +1574 -0
  56. package/refs?service=git-upload-pack +0 -0
  57. package/report/Salesforce REST-OpenApi3.json +10715 -0
  58. package/report/adapter-openapi.json +10715 -0
  59. package/report/adapter-openapi.yaml +8120 -0
  60. package/report/adapterInfo.json +10 -0
  61. package/report/creationReport.json +725 -0
  62. package/sampleProperties.json +268 -0
  63. package/test/integration/adapterTestBasicGet.js +83 -0
  64. package/test/integration/adapterTestConnectivity.js +118 -0
  65. package/test/integration/adapterTestIntegration.js +2354 -0
  66. package/test/unit/adapterBaseTestUnit.js +1024 -0
  67. package/test/unit/adapterTestUnit.js +3791 -0
  68. package/utils/adapterInfo.js +206 -0
  69. package/utils/addAuth.js +94 -0
  70. package/utils/artifactize.js +146 -0
  71. package/utils/basicGet.js +50 -0
  72. package/utils/checkMigrate.js +63 -0
  73. package/utils/entitiesToDB.js +179 -0
  74. package/utils/findPath.js +74 -0
  75. package/utils/methodDocumentor.js +273 -0
  76. package/utils/modify.js +152 -0
  77. package/utils/packModificationScript.js +35 -0
  78. package/utils/patches2bundledDeps.js +90 -0
  79. package/utils/pre-commit.sh +32 -0
  80. package/utils/removeHooks.js +20 -0
  81. package/utils/setup.js +33 -0
  82. package/utils/taskMover.js +309 -0
  83. package/utils/tbScript.js +239 -0
  84. package/utils/tbUtils.js +489 -0
  85. package/utils/testRunner.js +298 -0
  86. package/utils/troubleshootingAdapter.js +193 -0
@@ -0,0 +1,547 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "describeGlobal",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/data/{version}/sobjects?{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": "downloadfile",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/data/{version}/sobjects/ContentVersion/{pathv1}/VersionData?{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
+ "name": "sObjectBasicInformation",
47
+ "protocol": "REST",
48
+ "method": "GET",
49
+ "entitypath": "{base_path}/data/{version}/sobjects/{pathv1}?{query}",
50
+ "requestSchema": "schema.json",
51
+ "responseSchema": "schema.json",
52
+ "timeout": 0,
53
+ "sendEmpty": false,
54
+ "sendGetBody": false,
55
+ "requestDatatype": "JSON",
56
+ "responseDatatype": "JSON",
57
+ "headers": {},
58
+ "responseObjects": [
59
+ {
60
+ "type": "default",
61
+ "key": "",
62
+ "mockFile": ""
63
+ }
64
+ ]
65
+ },
66
+ {
67
+ "name": "sObjectCreate",
68
+ "protocol": "REST",
69
+ "method": "POST",
70
+ "entitypath": "{base_path}/data/{version}/sobjects/{pathv1}?{query}",
71
+ "requestSchema": "schema.json",
72
+ "responseSchema": "schema.json",
73
+ "timeout": 0,
74
+ "sendEmpty": false,
75
+ "requestDatatype": "JSON",
76
+ "responseDatatype": "JSON",
77
+ "headers": {},
78
+ "responseObjects": [
79
+ {
80
+ "type": "default",
81
+ "key": "",
82
+ "mockFile": ""
83
+ }
84
+ ]
85
+ },
86
+ {
87
+ "name": "sObjectDescribe",
88
+ "protocol": "REST",
89
+ "method": "GET",
90
+ "entitypath": "{base_path}/data/{version}/sobjects/{pathv1}/describe?{query}",
91
+ "requestSchema": "schema.json",
92
+ "responseSchema": "schema.json",
93
+ "timeout": 0,
94
+ "sendEmpty": false,
95
+ "sendGetBody": false,
96
+ "requestDatatype": "JSON",
97
+ "responseDatatype": "JSON",
98
+ "headers": {},
99
+ "responseObjects": [
100
+ {
101
+ "type": "default",
102
+ "key": "",
103
+ "mockFile": ""
104
+ }
105
+ ]
106
+ },
107
+ {
108
+ "name": "sObjectGetDeleted",
109
+ "protocol": "REST",
110
+ "method": "GET",
111
+ "entitypath": "{base_path}/data/{version}/sobjects/{pathv1}/deleted?{query}",
112
+ "requestSchema": "schema.json",
113
+ "responseSchema": "schema.json",
114
+ "timeout": 0,
115
+ "sendEmpty": false,
116
+ "sendGetBody": false,
117
+ "requestDatatype": "JSON",
118
+ "responseDatatype": "JSON",
119
+ "headers": {},
120
+ "responseObjects": [
121
+ {
122
+ "type": "default",
123
+ "key": "",
124
+ "mockFile": ""
125
+ }
126
+ ]
127
+ },
128
+ {
129
+ "name": "sObjectGetUpdated",
130
+ "protocol": "REST",
131
+ "method": "GET",
132
+ "entitypath": "{base_path}/data/{version}/sobjects/{pathv1}/updated?{query}",
133
+ "requestSchema": "schema.json",
134
+ "responseSchema": "schema.json",
135
+ "timeout": 0,
136
+ "sendEmpty": false,
137
+ "sendGetBody": false,
138
+ "requestDatatype": "JSON",
139
+ "responseDatatype": "JSON",
140
+ "headers": {},
141
+ "responseObjects": [
142
+ {
143
+ "type": "default",
144
+ "key": "",
145
+ "mockFile": ""
146
+ }
147
+ ]
148
+ },
149
+ {
150
+ "name": "sObjectNamedLayouts",
151
+ "protocol": "REST",
152
+ "method": "GET",
153
+ "entitypath": "{base_path}/data/{version}/sobjects/{pathv1}/describe/namedLayouts/{pathv2}?{query}",
154
+ "requestSchema": "schema.json",
155
+ "responseSchema": "schema.json",
156
+ "timeout": 0,
157
+ "sendEmpty": false,
158
+ "sendGetBody": false,
159
+ "requestDatatype": "JSON",
160
+ "responseDatatype": "JSON",
161
+ "headers": {},
162
+ "responseObjects": [
163
+ {
164
+ "type": "default",
165
+ "key": "",
166
+ "mockFile": ""
167
+ }
168
+ ]
169
+ },
170
+ {
171
+ "name": "sObjectRows",
172
+ "protocol": "REST",
173
+ "method": "GET",
174
+ "entitypath": "{base_path}/data/{version}/sobjects/{pathv1}/{pathv2}?{query}",
175
+ "requestSchema": "schema.json",
176
+ "responseSchema": "schema.json",
177
+ "timeout": 0,
178
+ "sendEmpty": false,
179
+ "sendGetBody": false,
180
+ "requestDatatype": "JSON",
181
+ "responseDatatype": "JSON",
182
+ "headers": {},
183
+ "responseObjects": [
184
+ {
185
+ "type": "default",
186
+ "key": "",
187
+ "mockFile": ""
188
+ }
189
+ ]
190
+ },
191
+ {
192
+ "name": "sObjectRowsUpdate",
193
+ "protocol": "REST",
194
+ "method": "PATCH",
195
+ "entitypath": "{base_path}/data/{version}/sobjects/{pathv1}/{pathv2}?{query}",
196
+ "requestSchema": "schema.json",
197
+ "responseSchema": "schema.json",
198
+ "timeout": 0,
199
+ "sendEmpty": false,
200
+ "requestDatatype": "JSON",
201
+ "responseDatatype": "JSON",
202
+ "headers": {},
203
+ "responseObjects": [
204
+ {
205
+ "type": "default",
206
+ "key": "",
207
+ "mockFile": ""
208
+ }
209
+ ]
210
+ },
211
+ {
212
+ "name": "sObjectRowsDelete",
213
+ "protocol": "REST",
214
+ "method": "DELETE",
215
+ "entitypath": "{base_path}/data/{version}/sobjects/{pathv1}/{pathv2}?{query}",
216
+ "requestSchema": "schema.json",
217
+ "responseSchema": "schema.json",
218
+ "timeout": 0,
219
+ "sendEmpty": false,
220
+ "requestDatatype": "JSON",
221
+ "responseDatatype": "JSON",
222
+ "headers": {},
223
+ "responseObjects": [
224
+ {
225
+ "type": "default",
226
+ "key": "",
227
+ "mockFile": ""
228
+ }
229
+ ]
230
+ },
231
+ {
232
+ "name": "sObjectRowsbyExternalID",
233
+ "protocol": "REST",
234
+ "method": "GET",
235
+ "entitypath": "{base_path}/data/{version}/sobjects/{pathv1}/{pathv2}/{pathv3}?{query}",
236
+ "requestSchema": "schema.json",
237
+ "responseSchema": "schema.json",
238
+ "timeout": 0,
239
+ "sendEmpty": false,
240
+ "sendGetBody": false,
241
+ "requestDatatype": "JSON",
242
+ "responseDatatype": "JSON",
243
+ "headers": {},
244
+ "responseObjects": [
245
+ {
246
+ "type": "default",
247
+ "key": "",
248
+ "mockFile": ""
249
+ }
250
+ ]
251
+ },
252
+ {
253
+ "name": "sObjectBlobRetrieve",
254
+ "protocol": "REST",
255
+ "method": "GET",
256
+ "entitypath": "{base_path}/data/{version}/sobjects/{pathv1}/{pathv2}/{pathv3}?{query}",
257
+ "requestSchema": "schema.json",
258
+ "responseSchema": "schema.json",
259
+ "timeout": 0,
260
+ "sendEmpty": false,
261
+ "sendGetBody": false,
262
+ "requestDatatype": "JSON",
263
+ "responseDatatype": "JSON",
264
+ "headers": {},
265
+ "responseObjects": [
266
+ {
267
+ "type": "default",
268
+ "key": "",
269
+ "mockFile": ""
270
+ }
271
+ ]
272
+ },
273
+ {
274
+ "name": "sObjectApprovalLayouts",
275
+ "protocol": "REST",
276
+ "method": "GET",
277
+ "entitypath": "{base_path}/data/{version}/sobjects/{pathv1}/describe/approvalLayouts/{pathv2}?{query}",
278
+ "requestSchema": "schema.json",
279
+ "responseSchema": "schema.json",
280
+ "timeout": 0,
281
+ "sendEmpty": false,
282
+ "sendGetBody": false,
283
+ "requestDatatype": "JSON",
284
+ "responseDatatype": "JSON",
285
+ "headers": {},
286
+ "responseObjects": [
287
+ {
288
+ "type": "default",
289
+ "key": "",
290
+ "mockFile": ""
291
+ }
292
+ ]
293
+ },
294
+ {
295
+ "name": "sObjectCompactLayouts",
296
+ "protocol": "REST",
297
+ "method": "GET",
298
+ "entitypath": "{base_path}/data/{version}/sobjects/{pathv1}/describe/describe/compactLayouts?{query}",
299
+ "requestSchema": "schema.json",
300
+ "responseSchema": "schema.json",
301
+ "timeout": 0,
302
+ "sendEmpty": false,
303
+ "sendGetBody": false,
304
+ "requestDatatype": "JSON",
305
+ "responseDatatype": "JSON",
306
+ "headers": {},
307
+ "responseObjects": [
308
+ {
309
+ "type": "default",
310
+ "key": "",
311
+ "mockFile": ""
312
+ }
313
+ ]
314
+ },
315
+ {
316
+ "name": "describeGlobalLayouts",
317
+ "protocol": "REST",
318
+ "method": "GET",
319
+ "entitypath": "{base_path}/data/{version}/sobjects/Global/describe/layouts?{query}",
320
+ "requestSchema": "schema.json",
321
+ "responseSchema": "schema.json",
322
+ "timeout": 0,
323
+ "sendEmpty": false,
324
+ "sendGetBody": false,
325
+ "requestDatatype": "JSON",
326
+ "responseDatatype": "JSON",
327
+ "headers": {},
328
+ "responseObjects": [
329
+ {
330
+ "type": "default",
331
+ "key": "",
332
+ "mockFile": ""
333
+ }
334
+ ]
335
+ },
336
+ {
337
+ "name": "describeSObjectLayouts",
338
+ "protocol": "REST",
339
+ "method": "GET",
340
+ "entitypath": "{base_path}/data/{version}/sobjects/{pathv1}/describe/layouts?{query}",
341
+ "requestSchema": "schema.json",
342
+ "responseSchema": "schema.json",
343
+ "timeout": 0,
344
+ "sendEmpty": false,
345
+ "sendGetBody": false,
346
+ "requestDatatype": "JSON",
347
+ "responseDatatype": "JSON",
348
+ "headers": {},
349
+ "responseObjects": [
350
+ {
351
+ "type": "default",
352
+ "key": "",
353
+ "mockFile": ""
354
+ }
355
+ ]
356
+ },
357
+ {
358
+ "name": "describeSObjectLayoutsPerRecordType",
359
+ "protocol": "REST",
360
+ "method": "GET",
361
+ "entitypath": "{base_path}/data/{version}/sobjects/{pathv1}/describe/layouts/{pathv2}?{query}",
362
+ "requestSchema": "schema.json",
363
+ "responseSchema": "schema.json",
364
+ "timeout": 0,
365
+ "sendEmpty": false,
366
+ "sendGetBody": false,
367
+ "requestDatatype": "JSON",
368
+ "responseDatatype": "JSON",
369
+ "headers": {},
370
+ "responseObjects": [
371
+ {
372
+ "type": "default",
373
+ "key": "",
374
+ "mockFile": ""
375
+ }
376
+ ]
377
+ },
378
+ {
379
+ "name": "sObjectPlatformAction",
380
+ "protocol": "REST",
381
+ "method": "GET",
382
+ "entitypath": "{base_path}/data/{version}/sobjects/PlatformAction?{query}",
383
+ "requestSchema": "schema.json",
384
+ "responseSchema": "schema.json",
385
+ "timeout": 0,
386
+ "sendEmpty": false,
387
+ "sendGetBody": false,
388
+ "requestDatatype": "JSON",
389
+ "responseDatatype": "JSON",
390
+ "headers": {},
391
+ "responseObjects": [
392
+ {
393
+ "type": "default",
394
+ "key": "",
395
+ "mockFile": ""
396
+ }
397
+ ]
398
+ },
399
+ {
400
+ "name": "sObjectQuickActions",
401
+ "protocol": "REST",
402
+ "method": "GET",
403
+ "entitypath": "{base_path}/data/{version}/sobjects/{pathv1}/quickActions?{query}",
404
+ "requestSchema": "schema.json",
405
+ "responseSchema": "schema.json",
406
+ "timeout": 0,
407
+ "sendEmpty": false,
408
+ "sendGetBody": false,
409
+ "requestDatatype": "JSON",
410
+ "responseDatatype": "JSON",
411
+ "headers": {},
412
+ "responseObjects": [
413
+ {
414
+ "type": "default",
415
+ "key": "",
416
+ "mockFile": ""
417
+ }
418
+ ]
419
+ },
420
+ {
421
+ "name": "sObjectRichTextImageRetrieve",
422
+ "protocol": "REST",
423
+ "method": "GET",
424
+ "entitypath": "{base_path}/data/{version}/sobjects/{pathv1}/{pathv2}/richTextImageFields/{pathv3}/{pathv4}?{query}",
425
+ "requestSchema": "schema.json",
426
+ "responseSchema": "schema.json",
427
+ "timeout": 0,
428
+ "sendEmpty": false,
429
+ "sendGetBody": false,
430
+ "requestDatatype": "JSON",
431
+ "responseDatatype": "JSON",
432
+ "headers": {},
433
+ "responseObjects": [
434
+ {
435
+ "type": "default",
436
+ "key": "",
437
+ "mockFile": ""
438
+ }
439
+ ]
440
+ },
441
+ {
442
+ "name": "sObjectRelationships",
443
+ "protocol": "REST",
444
+ "method": "GET",
445
+ "entitypath": "{base_path}/data/{version}/sobjects/{pathv1}/{pathv2}/{pathv3}?{query}",
446
+ "requestSchema": "schema.json",
447
+ "responseSchema": "schema.json",
448
+ "timeout": 0,
449
+ "sendEmpty": false,
450
+ "sendGetBody": false,
451
+ "requestDatatype": "JSON",
452
+ "responseDatatype": "JSON",
453
+ "headers": {},
454
+ "responseObjects": [
455
+ {
456
+ "type": "default",
457
+ "key": "",
458
+ "mockFile": ""
459
+ }
460
+ ]
461
+ },
462
+ {
463
+ "name": "sObjectSuggestedArticles",
464
+ "protocol": "REST",
465
+ "method": "GET",
466
+ "entitypath": "{base_path}/data/{version}/sobjects/{pathv1}/suggestedArticles?{query}",
467
+ "requestSchema": "schema.json",
468
+ "responseSchema": "schema.json",
469
+ "timeout": 0,
470
+ "sendEmpty": false,
471
+ "sendGetBody": false,
472
+ "requestDatatype": "JSON",
473
+ "responseDatatype": "JSON",
474
+ "headers": {},
475
+ "responseObjects": [
476
+ {
477
+ "type": "default",
478
+ "key": "",
479
+ "mockFile": ""
480
+ }
481
+ ]
482
+ },
483
+ {
484
+ "name": "sObjectUserPassword",
485
+ "protocol": "REST",
486
+ "method": "GET",
487
+ "entitypath": "{base_path}/data/{version}/sobjects/User/{pathv1}/password?{query}",
488
+ "requestSchema": "schema.json",
489
+ "responseSchema": "schema.json",
490
+ "timeout": 0,
491
+ "sendEmpty": false,
492
+ "sendGetBody": false,
493
+ "requestDatatype": "JSON",
494
+ "responseDatatype": "JSON",
495
+ "headers": {},
496
+ "responseObjects": [
497
+ {
498
+ "type": "default",
499
+ "key": "",
500
+ "mockFile": ""
501
+ }
502
+ ]
503
+ },
504
+ {
505
+ "name": "sObjectSelfServiceUserPassword",
506
+ "protocol": "REST",
507
+ "method": "GET",
508
+ "entitypath": "{base_path}/data/{version}/sobjects/SelfServiceUser/{pathv1}/password?{query}",
509
+ "requestSchema": "schema.json",
510
+ "responseSchema": "schema.json",
511
+ "timeout": 0,
512
+ "sendEmpty": false,
513
+ "sendGetBody": false,
514
+ "requestDatatype": "JSON",
515
+ "responseDatatype": "JSON",
516
+ "headers": {},
517
+ "responseObjects": [
518
+ {
519
+ "type": "default",
520
+ "key": "",
521
+ "mockFile": ""
522
+ }
523
+ ]
524
+ },
525
+ {
526
+ "name": "compactLayouts",
527
+ "protocol": "REST",
528
+ "method": "GET",
529
+ "entitypath": "{base_path}/data/{version}/compactLayouts?{query}",
530
+ "requestSchema": "schema.json",
531
+ "responseSchema": "schema.json",
532
+ "timeout": 0,
533
+ "sendEmpty": false,
534
+ "sendGetBody": false,
535
+ "requestDatatype": "JSON",
536
+ "responseDatatype": "JSON",
537
+ "headers": {},
538
+ "responseObjects": [
539
+ {
540
+ "type": "default",
541
+ "key": "",
542
+ "mockFile": ""
543
+ }
544
+ ]
545
+ }
546
+ ]
547
+ }
@@ -0,0 +1,55 @@
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": "describeGlobal",
12
+ "enum": [
13
+ "describeGlobal",
14
+ "downloadfile",
15
+ "sObjectBasicInformation",
16
+ "sObjectCreate",
17
+ "sObjectDescribe",
18
+ "sObjectGetDeleted",
19
+ "sObjectGetUpdated",
20
+ "sObjectNamedLayouts",
21
+ "sObjectRows",
22
+ "sObjectRowsUpdate",
23
+ "sObjectRowsDelete",
24
+ "sObjectRowsbyExternalID",
25
+ "sObjectBlobRetrieve",
26
+ "sObjectApprovalLayouts",
27
+ "sObjectCompactLayouts",
28
+ "describeGlobalLayouts",
29
+ "describeSObjectLayouts",
30
+ "describeSObjectLayoutsPerRecordType",
31
+ "sObjectPlatformAction",
32
+ "sObjectQuickActions",
33
+ "sObjectRichTextImageRetrieve",
34
+ "sObjectRelationships",
35
+ "sObjectSuggestedArticles",
36
+ "sObjectUserPassword",
37
+ "sObjectSelfServiceUserPassword",
38
+ "compactLayouts"
39
+ ],
40
+ "external_name": "ph_request_type"
41
+ },
42
+ "contentVersionId": {
43
+ "type": "string",
44
+ "description": "Content Version Id",
45
+ "parse": false,
46
+ "encode": false,
47
+ "encrypt": {
48
+ "type": "AES",
49
+ "key": ""
50
+ },
51
+ "external_name": "ContentVersionId"
52
+ }
53
+ },
54
+ "definitions": {}
55
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "scheduling",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/data/{version}/scheduling?{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": "getAppointmentSlots",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/data/{version}/scheduling/getAppointmentSlots?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": 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": "getAppointmentCandidates",
46
+ "protocol": "REST",
47
+ "method": "POST",
48
+ "entitypath": "{base_path}/data/{version}/scheduling/getAppointmentCandidates?{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
+ }
@@ -0,0 +1,21 @@
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": "scheduling",
12
+ "enum": [
13
+ "scheduling",
14
+ "getAppointmentSlots",
15
+ "getAppointmentCandidates"
16
+ ],
17
+ "external_name": "ph_request_type"
18
+ }
19
+ },
20
+ "definitions": {}
21
+ }