codeapp-js 1.0.1 → 1.1.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.
Files changed (130) hide show
  1. package/AI/skills/autoreview/SKILL.md +69 -0
  2. package/AI/skills/connections/SKILL.md +4 -4
  3. package/AI/skills/dataverse/SKILL.md +4 -2
  4. package/AI/skills/frontend-design/SKILL.md +32 -20
  5. package/AI/skills/keyvault/SKILL.md +139 -0
  6. package/AI/skills/office365-groups/SKILL.md +46 -25
  7. package/AI/skills/office365-outlook/SKILL.md +56 -25
  8. package/AI/skills/office365-users/SKILL.md +41 -36
  9. package/AI/skills/sharepoint/SKILL.md +174 -31
  10. package/AI/skills/start/SKILL.md +38 -30
  11. package/codeApp/dist/connectors/autoreview.js +1654 -0
  12. package/codeApp/dist/connectors/office365groups.js +2995 -432
  13. package/{examples/outlook Demo/.power/schemas/office365/office365.Schema.json → codeApp/dist/connectors/office365outlook.js} +7439 -16
  14. package/codeApp/dist/connectors/office365users.js +2990 -349
  15. package/codeApp/dist/connectors/sharepoint.js +529 -308
  16. package/examples/combined demo/dist/connectors/office365outlook.js +28521 -0
  17. package/examples/combined demo/dist/connectors/office365users.js +3154 -0
  18. package/examples/combined demo/dist/index.js +2 -6
  19. package/examples/combined demo/power.config.json +1 -1
  20. package/examples/groups Demo/{.power/schemas/office365groups/office365groups.Schema.json → dist/connectors/office365groups.js } +3205 -2204
  21. package/examples/groups Demo/dist/index.js +1 -5
  22. package/examples/groups Demo/power.config.json +1 -1
  23. package/examples/myProfile/dist/connectors/office365users.js +3154 -0
  24. package/examples/myProfile/dist/index.js +1 -5
  25. package/examples/myProfile/power.config.json +1 -1
  26. package/examples/outlook Demo/dist/connectors/office365outlook.js +28521 -0
  27. package/examples/outlook Demo/dist/index.js +2 -5
  28. package/examples/outlook Demo/power.config.json +1 -1
  29. package/examples/sharePoint Demo/dist/connectors/sharepoint.js +687 -0
  30. package/examples/sharePoint Demo/dist/index.js +86 -127
  31. package/examples/sharePoint Demo/power.config.json +1 -1
  32. package/package.json +1 -1
  33. package/codeApp/.power/schemas/appschemas/dataSourcesInfo.ts +0 -6275
  34. package/codeApp/.power/schemas/jira/jira.Schema.json +0 -6903
  35. package/codeApp/.power/schemas/keyvault/keyvault.Schema.json +0 -1600
  36. package/codeApp/.power/schemas/office365groups/office365groups.Schema.json +0 -2204
  37. package/codeApp/.power/schemas/teams/teams.Schema.json +0 -11112
  38. package/codeApp/dist/connectors/outlook.js +0 -1393
  39. package/codeApp/src/generated/index.ts +0 -12
  40. package/codeApp/src/generated/models/AzureKeyVaultModel.ts +0 -107
  41. package/codeApp/src/generated/models/JiraModel.ts +0 -501
  42. package/codeApp/src/generated/models/Office365GroupsModel.ts +0 -363
  43. package/codeApp/src/generated/models/Office365OutlookModel.ts +0 -2046
  44. package/codeApp/src/generated/models/Office365UsersModel.ts +0 -254
  45. package/codeApp/src/generated/services/AzureKeyVaultService.ts +0 -257
  46. package/codeApp/src/generated/services/JiraService.ts +0 -1124
  47. package/codeApp/src/generated/services/Office365GroupsService.ts +0 -326
  48. package/codeApp/src/generated/services/Office365OutlookService.ts +0 -2476
  49. package/codeApp/src/generated/services/Office365UsersService.ts +0 -358
  50. package/examples/apps/kanban/dist/dataverse.js +0 -94
  51. package/examples/apps/kanban/dist/environmentVar.js +0 -55
  52. package/examples/apps/kanban/dist/index.css +0 -605
  53. package/examples/apps/kanban/dist/index.html +0 -21
  54. package/examples/apps/kanban/dist/index.js +0 -860
  55. package/examples/apps/kanban/dist/office365groups.js +0 -97
  56. package/examples/apps/kanban/dist/office365users.js +0 -451
  57. package/examples/apps/kanban/dist/outlook.js +0 -162
  58. package/examples/apps/kanban/dist/power-apps-data.js +0 -2953
  59. package/examples/apps/kanban/dist/sharepoint.js +0 -435
  60. package/examples/apps/kanban/power.config.json +0 -35
  61. package/examples/apps/kanban/src/generated/index.ts +0 -14
  62. package/examples/apps/kanban/src/generated/models/Office365GroupsModel.ts +0 -363
  63. package/examples/apps/kanban/src/generated/models/Office365OutlookModel.ts +0 -2046
  64. package/examples/apps/kanban/src/generated/models/Office365UsersModel.ts +0 -254
  65. package/examples/apps/kanban/src/generated/services/Office365GroupsService.ts +0 -326
  66. package/examples/apps/kanban/src/generated/services/Office365OutlookService.ts +0 -2476
  67. package/examples/apps/kanban/src/generated/services/Office365UsersService.ts +0 -358
  68. package/examples/apps/planning Poker/additional files/AgilePoker_1_0_0_1.zip +0 -0
  69. package/examples/apps/planning Poker/additional files/PokerTables_1_0_0_1.zip +0 -0
  70. package/examples/apps/planning Poker/additional files/customizations (tables).xml +0 -6429
  71. package/examples/apps/planning Poker/additional files/dataverse-tables.json +0 -165
  72. package/examples/apps/planning Poker/additional files/readme.md +0 -122
  73. package/examples/apps/planning Poker/dist/dataverse.js +0 -78
  74. package/examples/apps/planning Poker/dist/index.html +0 -198
  75. package/examples/apps/planning Poker/dist/index.js +0 -955
  76. package/examples/apps/planning Poker/dist/power-apps-data.js +0 -2953
  77. package/examples/apps/planning Poker/dist/styles.css +0 -815
  78. package/examples/apps/planning Poker/power.config.json +0 -50
  79. package/examples/apps/solution explorer/dist/codeapp.js +0 -1098
  80. package/examples/apps/solution explorer/dist/icon-512.png +0 -0
  81. package/examples/apps/solution explorer/dist/index.html +0 -80
  82. package/examples/apps/solution explorer/dist/index.js +0 -735
  83. package/examples/apps/solution explorer/dist/power-apps-data.js +0 -3007
  84. package/examples/apps/solution explorer/dist/styles.css +0 -571
  85. package/examples/apps/solution explorer/power.config.json +0 -151
  86. package/examples/apps/todo/dist/dataverse.js +0 -64
  87. package/examples/apps/todo/dist/icon192.png +0 -0
  88. package/examples/apps/todo/dist/index.html +0 -75
  89. package/examples/apps/todo/dist/index.js +0 -9
  90. package/examples/apps/todo/dist/power-apps-data.js +0 -2953
  91. package/examples/apps/todo/dist/renderer.js +0 -375
  92. package/examples/apps/todo/dist/styles.css +0 -691
  93. package/examples/apps/todo/power.config.json +0 -35
  94. package/examples/combined demo/.power/schemas/appschemas/dataSourcesInfo.ts +0 -6275
  95. package/examples/combined demo/.power/schemas/jira/jira.Schema.json +0 -6903
  96. package/examples/combined demo/.power/schemas/keyvault/keyvault.Schema.json +0 -1600
  97. package/examples/combined demo/.power/schemas/teams/teams.Schema.json +0 -11112
  98. package/examples/combined demo/dist/office365users.js +0 -513
  99. package/examples/combined demo/dist/outlook.js +0 -1393
  100. package/examples/combined demo/src/generated/index.ts +0 -12
  101. package/examples/combined demo/src/generated/models/AzureKeyVaultModel.ts +0 -107
  102. package/examples/combined demo/src/generated/models/JiraModel.ts +0 -501
  103. package/examples/combined demo/src/generated/models/Office365GroupsModel.ts +0 -363
  104. package/examples/combined demo/src/generated/models/Office365OutlookModel.ts +0 -2046
  105. package/examples/combined demo/src/generated/models/Office365UsersModel.ts +0 -254
  106. package/examples/combined demo/src/generated/services/AzureKeyVaultService.ts +0 -257
  107. package/examples/combined demo/src/generated/services/JiraService.ts +0 -1124
  108. package/examples/combined demo/src/generated/services/Office365GroupsService.ts +0 -326
  109. package/examples/combined demo/src/generated/services/Office365OutlookService.ts +0 -2476
  110. package/examples/combined demo/src/generated/services/Office365UsersService.ts +0 -358
  111. package/examples/groups Demo/.power/schemas/appschemas/dataSourcesInfo.ts +0 -613
  112. package/examples/groups Demo/dist/office365groups.js +0 -642
  113. package/examples/groups Demo/src/generated/index.ts +0 -10
  114. package/examples/groups Demo/src/generated/models/Office365GroupsModel.ts +0 -363
  115. package/examples/groups Demo/src/generated/services/Office365GroupsService.ts +0 -326
  116. package/examples/myProfile/dist/office365users.js +0 -517
  117. package/examples/outlook Demo/.power/schemas/appschemas/dataSourcesInfo.ts +0 -6512
  118. package/examples/outlook Demo/dist/outlook.js +0 -1393
  119. package/examples/outlook Demo/src/generated/index.ts +0 -10
  120. package/examples/outlook Demo/src/generated/models/Office365OutlookModel.ts +0 -2046
  121. package/examples/outlook Demo/src/generated/services/Office365OutlookService.ts +0 -2476
  122. package/examples/sharePoint Demo/dist/sharepoint.js +0 -466
  123. package/examples/sharePoint Demo/src/generated/index.ts +0 -14
  124. package/examples/sharePoint Demo/src/generated/models/Office365GroupsModel.ts +0 -363
  125. package/examples/sharePoint Demo/src/generated/models/Office365OutlookModel.ts +0 -2046
  126. package/examples/sharePoint Demo/src/generated/models/Office365UsersModel.ts +0 -254
  127. package/examples/sharePoint Demo/src/generated/services/Office365GroupsService.ts +0 -326
  128. package/examples/sharePoint Demo/src/generated/services/Office365OutlookService.ts +0 -2476
  129. package/examples/sharePoint Demo/src/generated/services/Office365UsersService.ts +0 -358
  130. package/readme.md +0 -590
@@ -0,0 +1,1654 @@
1
+ /*
2
+ * This file is autogenerated by CAP. Do not edit this file directly.
3
+ * Source metadata comes from PAC-generated artifacts under src/generated and .power/schemas.
4
+ */
5
+
6
+ import { getClient } from "../power-apps-data.js";
7
+ import { _dbgWrap, unwrapResult } from "../codeapp.js";
8
+
9
+ const schema = {
10
+ "name": "shared_autoreview",
11
+ "id": "/providers/Microsoft.PowerApps/apis/shared_autoreview",
12
+ "type": "Microsoft.PowerApps/apis",
13
+ "properties": {
14
+ "displayName": "AutoReview",
15
+ "iconUri": "https://conn-afd-prod-endpoint-bmc9bqahasf3grgk.b01.azurefd.net/releases/v1.0.1747/1.0.1748.4181/autoreview/icon.png",
16
+ "iconBrandColor": "#007ee5",
17
+ "apiEnvironment": "Shared",
18
+ "isCustomApi": false,
19
+ "blobUrisAreProxied": false,
20
+ "connectionParameters": {
21
+ "api_key": {
22
+ "type": "securestring",
23
+ "uiDefinition": {
24
+ "displayName": "Key",
25
+ "description": "The Key for this api",
26
+ "tooltip": "Provide your Key",
27
+ "constraints": {
28
+ "tabIndex": 2,
29
+ "clearText": false,
30
+ "required": "true"
31
+ }
32
+ }
33
+ }
34
+ },
35
+ "swagger": {
36
+ "swagger": "2.0",
37
+ "info": {
38
+ "title": "AutoReview",
39
+ "version": "2",
40
+ "description": "Auto Code Review your flows. Use My flow action or workflows table to export your flows key information as json, or the following files: Review - Code Review of flow, with score, errors and warnings. Report - All variables, actions and connections. Diagram - Visual representation of the flow.",
41
+ "contact": {
42
+ "name": "Power DevBox Support",
43
+ "url": "https://powerdevbox.com/contact.html",
44
+ "email": "info@powerdevbox.com"
45
+ },
46
+ "x-ms-api-annotation": {
47
+ "status": "Production"
48
+ }
49
+ },
50
+ "x-ms-connector-metadata": [
51
+ {
52
+ "propertyName": "Website",
53
+ "propertyValue": "https://powerdevbox.com/"
54
+ },
55
+ {
56
+ "propertyName": "Privacy policy",
57
+ "propertyValue": "https://powerdevbox.com/privacy.html"
58
+ },
59
+ {
60
+ "propertyName": "Categories",
61
+ "propertyValue": "Productivity;IT Operations"
62
+ }
63
+ ],
64
+ "host": "unitedstates-002.azure-apim.net",
65
+ "basePath": "/apim/autoreview",
66
+ "schemes": [
67
+ "https"
68
+ ],
69
+ "consumes": [],
70
+ "produces": [],
71
+ "paths": {
72
+ "/{connectionId}/v2/autoreview/": {
73
+ "get": {
74
+ "responses": {
75
+ "200": {
76
+ "description": "default",
77
+ "schema": {
78
+ "type": "object",
79
+ "properties": {
80
+ "version": {
81
+ "type": "string",
82
+ "description": "version"
83
+ },
84
+ "apiKey": {
85
+ "type": "string",
86
+ "description": "apiKey"
87
+ },
88
+ "message": {
89
+ "type": "string",
90
+ "description": "message"
91
+ },
92
+ "information": {
93
+ "type": "string",
94
+ "description": "information"
95
+ },
96
+ "diagram": {
97
+ "type": "string",
98
+ "description": "diagram"
99
+ }
100
+ }
101
+ }
102
+ }
103
+ },
104
+ "summary": "Info (V2)",
105
+ "description": "Latest information about AutoReview",
106
+ "operationId": "GET-info",
107
+ "parameters": [
108
+ {
109
+ "name": "connectionId",
110
+ "in": "path",
111
+ "required": true,
112
+ "type": "string",
113
+ "x-ms-visibility": "internal"
114
+ }
115
+ ],
116
+ "externalDocs": {
117
+ "url": "https://docs.microsoft.com/connectors/autoreview/#info-(v2)"
118
+ }
119
+ },
120
+ "post": {
121
+ "responses": {
122
+ "200": {
123
+ "description": "default",
124
+ "schema": {}
125
+ }
126
+ },
127
+ "summary": "AutoReview HTTP",
128
+ "description": "Raw AutoReview data",
129
+ "operationId": "POST-http",
130
+ "parameters": [
131
+ {
132
+ "name": "connectionId",
133
+ "in": "path",
134
+ "required": true,
135
+ "type": "string",
136
+ "x-ms-visibility": "internal"
137
+ },
138
+ {
139
+ "name": "path",
140
+ "in": "query",
141
+ "required": false,
142
+ "type": "string",
143
+ "description": "v2/autoreview",
144
+ "x-ms-summary": "Path",
145
+ "x-ms-visibility": "important"
146
+ },
147
+ {
148
+ "name": "body",
149
+ "in": "body",
150
+ "required": false,
151
+ "schema": {
152
+ "type": "object",
153
+ "properties": {
154
+ "configs": {
155
+ "type": "object",
156
+ "properties": {},
157
+ "description": "Configs JSON",
158
+ "x-ms-summary": "Config",
159
+ "title": "Configs",
160
+ "x-ms-visibility": "important"
161
+ },
162
+ "properties": {
163
+ "type": "object",
164
+ "properties": {},
165
+ "description": "Properties JSON",
166
+ "x-ms-summary": "Properties",
167
+ "title": "Properties",
168
+ "x-ms-visibility": "important"
169
+ }
170
+ }
171
+ }
172
+ }
173
+ ],
174
+ "externalDocs": {
175
+ "url": "https://docs.microsoft.com/connectors/autoreview/#autoreview-http"
176
+ }
177
+ }
178
+ },
179
+ "/{connectionId}/v2/autoreview/json": {
180
+ "post": {
181
+ "responses": {
182
+ "200": {
183
+ "description": "default",
184
+ "schema": {
185
+ "type": "object",
186
+ "properties": {
187
+ "data": {
188
+ "type": "object",
189
+ "properties": {
190
+ "name": {
191
+ "type": "string",
192
+ "description": "Flow display name"
193
+ },
194
+ "id": {
195
+ "type": "string",
196
+ "description": "Flow resorurce Id or workflowsid"
197
+ },
198
+ "environment": {
199
+ "type": "string",
200
+ "description": "Environment"
201
+ },
202
+ "owner": {
203
+ "type": "string",
204
+ "description": "Email of owner"
205
+ },
206
+ "trigger": {
207
+ "type": "string",
208
+ "description": "Trigger name"
209
+ },
210
+ "triggerParam": {
211
+ "type": "string",
212
+ "description": "Stringifed JSON of parameters"
213
+ },
214
+ "triggerData": {
215
+ "type": "string",
216
+ "description": "Stringifed JSON of key info"
217
+ },
218
+ "triggerConfig": {
219
+ "type": "string",
220
+ "description": "Stringifed JSON of settings"
221
+ },
222
+ "triggerExpress": {
223
+ "type": "string",
224
+ "description": "Any trigger conditions"
225
+ },
226
+ "triggerInputs": {
227
+ "type": "string",
228
+ "description": "Any trigger inputs"
229
+ },
230
+ "triggerRecur": {
231
+ "type": "string",
232
+ "description": "Trigger schedule (if applic)"
233
+ },
234
+ "premium": {
235
+ "type": "boolean",
236
+ "description": "Uses premium connectors"
237
+ },
238
+ "connectionRefs": {
239
+ "type": "integer",
240
+ "format": "int32",
241
+ "description": "Count of Connection References"
242
+ },
243
+ "connectors": {
244
+ "type": "integer",
245
+ "format": "int32",
246
+ "description": "Count of api actions"
247
+ },
248
+ "steps": {
249
+ "type": "integer",
250
+ "format": "int32",
251
+ "description": "Count of all actions"
252
+ },
253
+ "variables": {
254
+ "type": "integer",
255
+ "format": "int32",
256
+ "description": "Count of variables"
257
+ },
258
+ "complexity": {
259
+ "type": "integer",
260
+ "format": "int32",
261
+ "description": "Complexity score"
262
+ },
263
+ "varNaming": {
264
+ "type": "boolean",
265
+ "description": "All Vars follow naming convention"
266
+ },
267
+ "varNameConsts": {
268
+ "type": "boolean",
269
+ "description": "All vars follow const convention"
270
+ },
271
+ "varNameUse": {
272
+ "type": "boolean",
273
+ "description": "All vars used"
274
+ },
275
+ "composes": {
276
+ "type": "integer",
277
+ "format": "int32",
278
+ "description": "Count of composes"
279
+ },
280
+ "exception": {
281
+ "type": "integer",
282
+ "format": "int32",
283
+ "description": "Count of exception actions"
284
+ },
285
+ "exceptionHandleScope": {
286
+ "type": "boolean",
287
+ "description": "Exception scope used"
288
+ },
289
+ "exceptionScope": {
290
+ "type": "boolean",
291
+ "description": "Exception scope named Exception"
292
+ },
293
+ "exceptionTerminate": {
294
+ "type": "boolean",
295
+ "description": "Terminate in exception block"
296
+ },
297
+ "exceptionLink": {
298
+ "type": "boolean",
299
+ "description": "Exception expression link used"
300
+ },
301
+ "mainScope": {
302
+ "type": "boolean",
303
+ "description": "Scope named Main"
304
+ },
305
+ "variableArray": {
306
+ "type": "array",
307
+ "items": {
308
+ "description": "Variable item",
309
+ "type": "object",
310
+ "properties": {
311
+ "name": {
312
+ "type": "string",
313
+ "description": "Variable name"
314
+ },
315
+ "type": {
316
+ "type": "string",
317
+ "description": "Type of variable"
318
+ },
319
+ "value": {
320
+ "type": "string",
321
+ "description": "Initialised Value"
322
+ },
323
+ "used": {
324
+ "type": "boolean",
325
+ "description": "Is the variable used"
326
+ },
327
+ "named": {
328
+ "type": "boolean",
329
+ "description": "Var follow naming convention"
330
+ }
331
+ }
332
+ },
333
+ "description": "Array of variables"
334
+ },
335
+ "actionArray": {
336
+ "type": "array",
337
+ "items": {
338
+ "description": "Action item",
339
+ "type": "object",
340
+ "properties": {
341
+ "name": {
342
+ "type": "string",
343
+ "description": "Action display name"
344
+ },
345
+ "step": {
346
+ "type": "string",
347
+ "description": "Action Name"
348
+ },
349
+ "type": {
350
+ "type": "string",
351
+ "description": "Action Type"
352
+ },
353
+ "id": {
354
+ "type": "string",
355
+ "description": "Action ID"
356
+ },
357
+ "hashId": {
358
+ "type": "string",
359
+ "description": "Unique reference for flow"
360
+ },
361
+ "tier": {
362
+ "type": "string",
363
+ "description": "Premium or Standard"
364
+ },
365
+ "connector": {
366
+ "type": "string",
367
+ "description": "Connection group"
368
+ },
369
+ "imgURL": {
370
+ "type": "string",
371
+ "description": "Icon url"
372
+ },
373
+ "runAfter": {
374
+ "type": "string",
375
+ "description": "Run after action and method"
376
+ },
377
+ "exception": {
378
+ "type": "string",
379
+ "description": "RunAfter include Failed"
380
+ },
381
+ "index": {
382
+ "type": "integer",
383
+ "format": "int32",
384
+ "description": "Order action processed"
385
+ },
386
+ "complexity": {
387
+ "type": "integer",
388
+ "format": "int32",
389
+ "description": "Complexity score"
390
+ },
391
+ "detail": {
392
+ "type": "string",
393
+ "description": "Stringified json of inputs"
394
+ },
395
+ "filter": {
396
+ "type": "string",
397
+ "description": "Get Items filter parameter"
398
+ },
399
+ "pagination": {
400
+ "type": "string",
401
+ "description": "Get Items pagination threshold"
402
+ },
403
+ "secure": {
404
+ "type": "string",
405
+ "description": "Secure properties"
406
+ },
407
+ "retry": {
408
+ "type": "string",
409
+ "description": "Retry type"
410
+ },
411
+ "timeout": {
412
+ "type": "string",
413
+ "description": "Timeout time"
414
+ },
415
+ "position": {
416
+ "type": "string",
417
+ "description": "What the action runs after"
418
+ },
419
+ "positionInfo": {
420
+ "type": "string",
421
+ "description": "Inside a container"
422
+ },
423
+ "environmentVariables": {
424
+ "type": "string",
425
+ "description": "Environment vars in action"
426
+ },
427
+ "environmentB": {
428
+ "type": "boolean",
429
+ "description": "Contains environment variable"
430
+ },
431
+ "notes": {
432
+ "type": "string",
433
+ "description": "Action notes"
434
+ },
435
+ "parent": {
436
+ "type": "string",
437
+ "description": "Name of parent container"
438
+ },
439
+ "branch": {
440
+ "type": "string",
441
+ "description": "Branching name"
442
+ },
443
+ "positionIndex": {
444
+ "type": "string",
445
+ "description": "Index of parent container"
446
+ },
447
+ "positionType": {
448
+ "type": "string",
449
+ "description": "Parent Runs after type"
450
+ },
451
+ "nested": {
452
+ "type": "string",
453
+ "description": "Levels of nesting"
454
+ }
455
+ }
456
+ },
457
+ "description": "Actions in an array"
458
+ },
459
+ "apiActionArray": {
460
+ "type": "array",
461
+ "items": {
462
+ "description": "API item",
463
+ "type": "object",
464
+ "properties": {
465
+ "name": {
466
+ "type": "string",
467
+ "description": "API Action display name"
468
+ },
469
+ "step": {
470
+ "type": "string",
471
+ "description": "API Action name"
472
+ },
473
+ "type": {
474
+ "type": "string",
475
+ "description": "API Action type"
476
+ },
477
+ "id": {
478
+ "type": "string",
479
+ "description": "API Action ID"
480
+ },
481
+ "hashId": {
482
+ "type": "string",
483
+ "description": "Unique action id"
484
+ },
485
+ "tier": {
486
+ "type": "string",
487
+ "description": "API Premium or Standard"
488
+ },
489
+ "connector": {
490
+ "type": "string",
491
+ "description": "API Connection group"
492
+ },
493
+ "imgURL": {
494
+ "type": "string",
495
+ "description": "API Icon url"
496
+ },
497
+ "runAfter": {
498
+ "type": "string",
499
+ "description": "API RunAfter action and method"
500
+ },
501
+ "exception": {
502
+ "type": "string",
503
+ "description": "API RunAfter include Failed"
504
+ },
505
+ "index": {
506
+ "type": "integer",
507
+ "format": "int32",
508
+ "description": "API Order action processed"
509
+ },
510
+ "complexity": {
511
+ "type": "integer",
512
+ "format": "int32",
513
+ "description": "API Complexity score"
514
+ },
515
+ "detail": {
516
+ "type": "string",
517
+ "description": "API Stringified json of inputs"
518
+ },
519
+ "filter": {
520
+ "type": "string",
521
+ "description": "API Get Items filter parameter"
522
+ },
523
+ "pagination": {
524
+ "type": "string",
525
+ "description": "API Get Items pagina threshold"
526
+ },
527
+ "secure": {
528
+ "type": "string",
529
+ "description": "API Secure properties"
530
+ },
531
+ "retry": {
532
+ "type": "string",
533
+ "description": "API Retry type"
534
+ },
535
+ "timeout": {
536
+ "type": "string",
537
+ "description": "API Timeout time"
538
+ },
539
+ "position": {
540
+ "type": "string",
541
+ "description": "API What the action runs after"
542
+ },
543
+ "positionInfo": {
544
+ "type": "string",
545
+ "description": "API Inside a container"
546
+ },
547
+ "environmentVariables": {
548
+ "type": "string",
549
+ "description": "API Environment vars in action"
550
+ },
551
+ "environmentB": {
552
+ "type": "boolean",
553
+ "description": "API Contains environment var"
554
+ },
555
+ "notes": {
556
+ "type": "string",
557
+ "description": "API Action notes"
558
+ },
559
+ "parent": {
560
+ "type": "string",
561
+ "description": "API Name of parent container"
562
+ },
563
+ "branch": {
564
+ "type": "string",
565
+ "description": "API branching name"
566
+ },
567
+ "positionIndex": {
568
+ "type": "string",
569
+ "description": "API Index of parent container"
570
+ },
571
+ "positionType": {
572
+ "type": "string",
573
+ "description": "API Parent Runs after type"
574
+ },
575
+ "nested": {
576
+ "type": "string",
577
+ "description": "API Levels of nesting"
578
+ }
579
+ }
580
+ },
581
+ "description": "API type actions"
582
+ },
583
+ "exceptionArray": {
584
+ "type": "array",
585
+ "items": {
586
+ "description": "Except item",
587
+ "type": "object",
588
+ "properties": {
589
+ "name": {
590
+ "type": "string",
591
+ "description": "Exept Action display name"
592
+ },
593
+ "step": {
594
+ "type": "string",
595
+ "description": "Exept Action name"
596
+ },
597
+ "type": {
598
+ "type": "string",
599
+ "description": "Exept Action type"
600
+ },
601
+ "id": {
602
+ "type": "string",
603
+ "description": "Exept Action ID"
604
+ },
605
+ "hashId": {
606
+ "type": "string",
607
+ "description": "Exept As action id not unique"
608
+ },
609
+ "tier": {
610
+ "type": "string",
611
+ "description": "Exept Premium or Standard"
612
+ },
613
+ "connector": {
614
+ "type": "string",
615
+ "description": "Exept Connection group"
616
+ },
617
+ "imgURL": {
618
+ "type": "string",
619
+ "description": "Exept Icon url"
620
+ },
621
+ "runAfter": {
622
+ "type": "string",
623
+ "description": "Exept RunAfter action and method"
624
+ },
625
+ "exception": {
626
+ "type": "string",
627
+ "description": "Exept RunAfter include Failed"
628
+ },
629
+ "index": {
630
+ "type": "integer",
631
+ "format": "int32",
632
+ "description": "Exept Order action processed"
633
+ },
634
+ "complexity": {
635
+ "type": "integer",
636
+ "format": "int32",
637
+ "description": "Exept Complexity score"
638
+ },
639
+ "detail": {
640
+ "type": "string",
641
+ "description": "Exept Stringified json of inputs"
642
+ },
643
+ "filter": {
644
+ "type": "string",
645
+ "description": "Exept Get Items filter parameter"
646
+ },
647
+ "pagination": {
648
+ "type": "string",
649
+ "description": "Exept Get Items pagin threshold"
650
+ },
651
+ "secure": {
652
+ "type": "string",
653
+ "description": "Exept Secure properties"
654
+ },
655
+ "retry": {
656
+ "type": "string",
657
+ "description": "API Retry type"
658
+ },
659
+ "timeout": {
660
+ "type": "string",
661
+ "description": "Exept Timeout time"
662
+ },
663
+ "position": {
664
+ "type": "string",
665
+ "description": "Exept What the action runs after"
666
+ },
667
+ "positionInfo": {
668
+ "type": "string",
669
+ "description": "Exept Inside a container"
670
+ },
671
+ "environmentVariables": {
672
+ "type": "string",
673
+ "description": "Exept Environment vars in action"
674
+ },
675
+ "environmentB": {
676
+ "type": "boolean",
677
+ "description": "Exept Contains environment var"
678
+ },
679
+ "notes": {
680
+ "type": "string",
681
+ "description": "API Action notes"
682
+ },
683
+ "parent": {
684
+ "type": "string",
685
+ "description": "Exept Name of parent container"
686
+ },
687
+ "branch": {
688
+ "type": "string",
689
+ "description": "Exept branching name"
690
+ },
691
+ "positionIndex": {
692
+ "type": "string",
693
+ "description": "Exept Index of parent container"
694
+ },
695
+ "positionType": {
696
+ "type": "string",
697
+ "description": "Exept Parent Runs after type"
698
+ },
699
+ "nested": {
700
+ "type": "string",
701
+ "description": "Exept Levels of nesting"
702
+ }
703
+ }
704
+ },
705
+ "description": "Array of runAfter failed"
706
+ },
707
+ "connectionArray": {
708
+ "type": "array",
709
+ "items": {
710
+ "description": "Connection item",
711
+ "type": "object",
712
+ "properties": {
713
+ "conName": {
714
+ "type": "string",
715
+ "description": "Connection name"
716
+ },
717
+ "appId": {
718
+ "type": "string",
719
+ "description": "Connection id url"
720
+ },
721
+ "opId": {
722
+ "type": "string",
723
+ "description": "Connection type"
724
+ },
725
+ "count": {
726
+ "type": "integer",
727
+ "format": "int32",
728
+ "description": "Count of connection usage"
729
+ }
730
+ }
731
+ },
732
+ "description": "Connection references"
733
+ },
734
+ "error": {
735
+ "type": "string",
736
+ "description": "error"
737
+ },
738
+ "actionObjectArray": {
739
+ "type": "array",
740
+ "items": {
741
+ "description": "Obj item",
742
+ "type": "object",
743
+ "properties": {
744
+ "step": {
745
+ "type": "string",
746
+ "description": "Obj Action Name"
747
+ },
748
+ "connector": {
749
+ "type": "string",
750
+ "description": "connector"
751
+ },
752
+ "name": {
753
+ "type": "string",
754
+ "description": "Obj Action display name"
755
+ },
756
+ "id": {
757
+ "type": "string",
758
+ "description": "Obj Acition ID"
759
+ },
760
+ "hashId": {
761
+ "type": "string",
762
+ "description": "Obj As action id not unique"
763
+ },
764
+ "object": {
765
+ "type": "string",
766
+ "description": "Obj Stringified json action"
767
+ },
768
+ "type": {
769
+ "type": "string",
770
+ "description": "Obj Action type"
771
+ },
772
+ "index": {
773
+ "type": "integer",
774
+ "format": "int32",
775
+ "description": "Obj Order action processed"
776
+ },
777
+ "parent": {
778
+ "type": "string",
779
+ "description": "Obj Name of parent container"
780
+ }
781
+ }
782
+ },
783
+ "description": "All actions"
784
+ }
785
+ },
786
+ "description": "data"
787
+ }
788
+ }
789
+ }
790
+ }
791
+ },
792
+ "summary": "JSON (V2)",
793
+ "description": "Returns raw AutoReview data as a json",
794
+ "operationId": "POST-json",
795
+ "parameters": [
796
+ {
797
+ "name": "connectionId",
798
+ "in": "path",
799
+ "required": true,
800
+ "type": "string",
801
+ "x-ms-visibility": "internal"
802
+ },
803
+ {
804
+ "name": "body",
805
+ "in": "body",
806
+ "required": true,
807
+ "schema": {
808
+ "type": "object",
809
+ "properties": {
810
+ "properties": {
811
+ "type": "object",
812
+ "properties": {
813
+ "displayName": {
814
+ "type": "string",
815
+ "description": "Name of flow",
816
+ "title": "Display Name",
817
+ "x-ms-summary": "Display name",
818
+ "x-ms-visibility": "important"
819
+ },
820
+ "name": {
821
+ "type": "string",
822
+ "description": "Unique identifier (name/resourceid)",
823
+ "title": "Flow ID",
824
+ "x-ms-summary": "Flow Id",
825
+ "x-ms-visibility": "important"
826
+ },
827
+ "owner": {
828
+ "type": "string",
829
+ "description": "Flow owner",
830
+ "title": "Owner",
831
+ "x-ms-summary": "Owner",
832
+ "x-ms-visibility": "important"
833
+ },
834
+ "environment": {
835
+ "type": "string",
836
+ "description": "Flow environment",
837
+ "title": "Environment",
838
+ "x-ms-summary": "Environment",
839
+ "x-ms-visibility": "important"
840
+ },
841
+ "definition": {
842
+ "type": "object",
843
+ "title": "Definition",
844
+ "properties": {},
845
+ "description": "Flow definition",
846
+ "x-ms-summary": "Definition",
847
+ "x-ms-visibility": "important"
848
+ }
849
+ },
850
+ "description": "Properties JSON",
851
+ "title": "Properties",
852
+ "x-ms-summary": "Flow properties",
853
+ "required": [
854
+ "displayName",
855
+ "environment",
856
+ "owner",
857
+ "name",
858
+ "definition"
859
+ ]
860
+ },
861
+ "configs": {
862
+ "type": "object",
863
+ "properties": {
864
+ "naming": {
865
+ "type": "object",
866
+ "x-ms-visibility": "advanced",
867
+ "properties": {},
868
+ "description": "Configure own naming convention",
869
+ "title": "Naming",
870
+ "x-ms-summary": "Naming convention"
871
+ },
872
+ "complexity": {
873
+ "type": "array",
874
+ "x-ms-visibility": "advanced",
875
+ "items": {
876
+ "description": "Configure own complexity scores",
877
+ "title": "Complexity",
878
+ "type": "string",
879
+ "x-ms-summary": "Actions complexity"
880
+ },
881
+ "description": "Configure own complexity scores"
882
+ },
883
+ "ratings": {
884
+ "type": "object",
885
+ "x-ms-visibility": "advanced",
886
+ "properties": {},
887
+ "description": "Set fail limit for sections",
888
+ "title": "ratings",
889
+ "x-ms-summary": "Review ratings"
890
+ },
891
+ "scoring": {
892
+ "type": "array",
893
+ "x-ms-visibility": "advanced",
894
+ "items": {
895
+ "description": "Configure own section points",
896
+ "title": "Score",
897
+ "type": "string",
898
+ "x-ms-summary": "Section score"
899
+ },
900
+ "description": "Configure own scoring",
901
+ "x-ms-summary": "Scoring",
902
+ "title": "Scoring"
903
+ },
904
+ "type": {
905
+ "type": "string",
906
+ "description": "type of return",
907
+ "title": "Type",
908
+ "default": "json",
909
+ "x-ms-visibility": "internal",
910
+ "x-ms-summary": "Response type"
911
+ }
912
+ },
913
+ "description": "Configs JSON",
914
+ "title": "Configs",
915
+ "x-ms-summary": "Configs",
916
+ "required": [
917
+ "type"
918
+ ]
919
+ }
920
+ },
921
+ "required": [
922
+ "properties",
923
+ "configs"
924
+ ]
925
+ }
926
+ }
927
+ ],
928
+ "externalDocs": {
929
+ "url": "https://docs.microsoft.com/connectors/autoreview/#json-(v2)"
930
+ }
931
+ }
932
+ },
933
+ "/{connectionId}/v1/autoreview/file": {
934
+ "post": {
935
+ "responses": {
936
+ "200": {
937
+ "description": "default",
938
+ "schema": {}
939
+ }
940
+ },
941
+ "summary": "Files (V1)",
942
+ "description": "Returns generated files",
943
+ "operationId": "POST-file",
944
+ "parameters": [
945
+ {
946
+ "name": "connectionId",
947
+ "in": "path",
948
+ "required": true,
949
+ "type": "string",
950
+ "x-ms-visibility": "internal"
951
+ },
952
+ {
953
+ "name": "body",
954
+ "in": "body",
955
+ "required": false,
956
+ "schema": {
957
+ "type": "object",
958
+ "properties": {
959
+ "properties": {
960
+ "type": "object",
961
+ "properties": {
962
+ "displayName": {
963
+ "type": "string",
964
+ "description": "Name of flow",
965
+ "title": "Display Name",
966
+ "x-ms-summary": "Display name",
967
+ "x-ms-visibility": "important"
968
+ },
969
+ "name": {
970
+ "type": "string",
971
+ "description": "Unique identifier (name/resourceid)",
972
+ "title": "Flow ID",
973
+ "x-ms-summary": "Flow Id",
974
+ "x-ms-visibility": "important"
975
+ },
976
+ "owner": {
977
+ "type": "string",
978
+ "description": "Flow owner",
979
+ "title": "Owner",
980
+ "x-ms-summary": "Owner",
981
+ "x-ms-visibility": "important"
982
+ },
983
+ "environment": {
984
+ "type": "string",
985
+ "description": "Flow environment",
986
+ "title": "Environment",
987
+ "x-ms-summary": "Environment",
988
+ "x-ms-visibility": "important"
989
+ },
990
+ "definition": {
991
+ "type": "object",
992
+ "title": "Definition",
993
+ "properties": {},
994
+ "description": "Flow Definition",
995
+ "x-ms-summary": "Definition",
996
+ "x-ms-visibility": "important"
997
+ }
998
+ },
999
+ "description": "Properties JSON",
1000
+ "title": "Properties",
1001
+ "x-ms-summary": "Flow properties",
1002
+ "required": [
1003
+ "displayName",
1004
+ "environment",
1005
+ "owner",
1006
+ "name",
1007
+ "definition"
1008
+ ]
1009
+ },
1010
+ "configs": {
1011
+ "type": "object",
1012
+ "properties": {
1013
+ "type": {
1014
+ "type": "string",
1015
+ "description": "Type of file to return",
1016
+ "title": "Type",
1017
+ "default": "review",
1018
+ "x-ms-visibility": "important",
1019
+ "enum": [
1020
+ "review",
1021
+ "report",
1022
+ "diagram",
1023
+ "exception"
1024
+ ],
1025
+ "x-ms-summary": "File Type"
1026
+ },
1027
+ "naming": {
1028
+ "type": "object",
1029
+ "x-ms-visibility": "advanced",
1030
+ "properties": {},
1031
+ "description": "Configure own naming convention",
1032
+ "title": "Naming",
1033
+ "x-ms-summary": "Naming convention"
1034
+ },
1035
+ "complexity": {
1036
+ "type": "array",
1037
+ "x-ms-visibility": "advanced",
1038
+ "items": {
1039
+ "description": "Configure own complexity scores",
1040
+ "title": "Complexity",
1041
+ "type": "string",
1042
+ "x-ms-summary": "Action complexity"
1043
+ },
1044
+ "description": "Configure own complexity scores",
1045
+ "x-ms-summary": "Complexity",
1046
+ "title": "Complexity"
1047
+ },
1048
+ "ratings": {
1049
+ "type": "object",
1050
+ "x-ms-visibility": "advanced",
1051
+ "properties": {},
1052
+ "description": "Set fail limit for sections",
1053
+ "title": "Ratings",
1054
+ "x-ms-summary": "Review ratings"
1055
+ },
1056
+ "scoring": {
1057
+ "type": "array",
1058
+ "x-ms-visibility": "advanced",
1059
+ "items": {
1060
+ "description": "Configure own section points",
1061
+ "title": "Score",
1062
+ "type": "string",
1063
+ "x-ms-summary": "Section score"
1064
+ },
1065
+ "description": "Configure own scoring",
1066
+ "x-ms-summary": "Scoring",
1067
+ "title": "Scoring"
1068
+ }
1069
+ },
1070
+ "description": "Configs JSON",
1071
+ "x-ms-summary": "Config",
1072
+ "title": "Configs",
1073
+ "required": [
1074
+ "type"
1075
+ ]
1076
+ }
1077
+ },
1078
+ "required": [
1079
+ "properties",
1080
+ "configs"
1081
+ ]
1082
+ }
1083
+ }
1084
+ ],
1085
+ "externalDocs": {
1086
+ "url": "https://docs.microsoft.com/connectors/autoreview/#files-(v1)"
1087
+ }
1088
+ }
1089
+ },
1090
+ "/{connectionId}/v2/autoreview/file": {
1091
+ "post": {
1092
+ "responses": {
1093
+ "200": {
1094
+ "description": "default",
1095
+ "schema": {
1096
+ "type": "object",
1097
+ "properties": {
1098
+ "data": {
1099
+ "type": "object",
1100
+ "properties": {
1101
+ "file": {
1102
+ "type": "string",
1103
+ "description": "file content"
1104
+ },
1105
+ "info": {
1106
+ "type": "string",
1107
+ "description": "additional information"
1108
+ }
1109
+ }
1110
+ }
1111
+ }
1112
+ }
1113
+ }
1114
+ },
1115
+ "summary": "Files (V2)",
1116
+ "description": "Returns generated files",
1117
+ "operationId": "POST-file-V2",
1118
+ "parameters": [
1119
+ {
1120
+ "name": "connectionId",
1121
+ "in": "path",
1122
+ "required": true,
1123
+ "type": "string",
1124
+ "x-ms-visibility": "internal"
1125
+ },
1126
+ {
1127
+ "name": "body",
1128
+ "in": "body",
1129
+ "required": false,
1130
+ "schema": {
1131
+ "type": "object",
1132
+ "properties": {
1133
+ "properties": {
1134
+ "type": "object",
1135
+ "properties": {
1136
+ "displayName": {
1137
+ "type": "string",
1138
+ "description": "Name of flow",
1139
+ "title": "Display Name",
1140
+ "x-ms-summary": "Display name",
1141
+ "x-ms-visibility": "important"
1142
+ },
1143
+ "name": {
1144
+ "type": "string",
1145
+ "description": "Unique identifier (name/resourceid)",
1146
+ "title": "Flow ID",
1147
+ "x-ms-summary": "Flow Id",
1148
+ "x-ms-visibility": "important"
1149
+ },
1150
+ "owner": {
1151
+ "type": "string",
1152
+ "description": "Flow owner",
1153
+ "title": "Owner",
1154
+ "x-ms-summary": "Owner",
1155
+ "x-ms-visibility": "important"
1156
+ },
1157
+ "environment": {
1158
+ "type": "string",
1159
+ "description": "Flow environment",
1160
+ "title": "Environment",
1161
+ "x-ms-summary": "Environment",
1162
+ "x-ms-visibility": "important"
1163
+ },
1164
+ "definition": {
1165
+ "type": "object",
1166
+ "title": "Definition",
1167
+ "properties": {},
1168
+ "description": "Flow definition",
1169
+ "x-ms-summary": "Definition",
1170
+ "x-ms-visibility": "important"
1171
+ }
1172
+ },
1173
+ "description": "Properties JSON",
1174
+ "title": "Properties",
1175
+ "x-ms-summary": "Flow properties",
1176
+ "required": [
1177
+ "displayName",
1178
+ "environment",
1179
+ "owner",
1180
+ "name",
1181
+ "definition"
1182
+ ]
1183
+ },
1184
+ "configs": {
1185
+ "type": "object",
1186
+ "properties": {
1187
+ "type": {
1188
+ "type": "string",
1189
+ "description": "Type of file to return",
1190
+ "title": "Type",
1191
+ "default": "review",
1192
+ "x-ms-visibility": "important",
1193
+ "enum": [
1194
+ "review",
1195
+ "report",
1196
+ "diagram",
1197
+ "exception"
1198
+ ],
1199
+ "x-ms-summary": "File type"
1200
+ },
1201
+ "naming": {
1202
+ "type": "object",
1203
+ "x-ms-visibility": "advanced",
1204
+ "properties": {},
1205
+ "description": "Configure your naming convention",
1206
+ "title": "Naming",
1207
+ "x-ms-summary": "Naming convention"
1208
+ },
1209
+ "complexity": {
1210
+ "type": "array",
1211
+ "x-ms-visibility": "advanced",
1212
+ "items": {
1213
+ "description": "Configure own complexity scores",
1214
+ "title": "Complexity",
1215
+ "type": "string",
1216
+ "x-ms-summary": "Action complexity"
1217
+ },
1218
+ "description": "Configure own complexity scores",
1219
+ "x-ms-summary": "Complexity",
1220
+ "title": "Complexity"
1221
+ },
1222
+ "ratings": {
1223
+ "type": "object",
1224
+ "x-ms-visibility": "advanced",
1225
+ "properties": {},
1226
+ "description": "Set fail limit for sections",
1227
+ "title": "Ratings",
1228
+ "x-ms-summary": "Review ratings"
1229
+ },
1230
+ "scoring": {
1231
+ "type": "array",
1232
+ "x-ms-visibility": "advanced",
1233
+ "items": {
1234
+ "description": "Configure own section points",
1235
+ "title": "Scoring",
1236
+ "type": "string",
1237
+ "x-ms-summary": "Section score"
1238
+ },
1239
+ "description": "Configure own scoring",
1240
+ "x-ms-summary": "Scoring",
1241
+ "title": "Scoring"
1242
+ }
1243
+ },
1244
+ "description": "Configs JSON",
1245
+ "x-ms-summary": "Config",
1246
+ "title": "Configs",
1247
+ "required": [
1248
+ "type"
1249
+ ]
1250
+ }
1251
+ },
1252
+ "required": [
1253
+ "properties",
1254
+ "configs"
1255
+ ]
1256
+ }
1257
+ }
1258
+ ],
1259
+ "externalDocs": {
1260
+ "url": "https://docs.microsoft.com/connectors/autoreview/#files-(v2)"
1261
+ }
1262
+ }
1263
+ },
1264
+ "/{connectionId}/v2/autoreview/diagram": {
1265
+ "post": {
1266
+ "responses": {
1267
+ "200": {
1268
+ "description": "default",
1269
+ "schema": {
1270
+ "type": "object",
1271
+ "properties": {
1272
+ "data": {
1273
+ "type": "object",
1274
+ "properties": {
1275
+ "image": {
1276
+ "type": "string",
1277
+ "description": "svg content"
1278
+ },
1279
+ "info": {
1280
+ "type": "string",
1281
+ "description": "Nomnoml.com/ code"
1282
+ }
1283
+ },
1284
+ "description": "data"
1285
+ }
1286
+ }
1287
+ }
1288
+ }
1289
+ },
1290
+ "summary": "Diagram (V2)",
1291
+ "description": "Returns image of the flow",
1292
+ "operationId": "POST-diagram",
1293
+ "parameters": [
1294
+ {
1295
+ "name": "connectionId",
1296
+ "in": "path",
1297
+ "required": true,
1298
+ "type": "string",
1299
+ "x-ms-visibility": "internal"
1300
+ },
1301
+ {
1302
+ "name": "body",
1303
+ "in": "body",
1304
+ "required": false,
1305
+ "schema": {
1306
+ "type": "object",
1307
+ "properties": {
1308
+ "properties": {
1309
+ "type": "object",
1310
+ "properties": {
1311
+ "displayName": {
1312
+ "type": "string",
1313
+ "description": "Name of flow",
1314
+ "title": "Display Name",
1315
+ "x-ms-summary": "Display name",
1316
+ "x-ms-visibility": "important"
1317
+ },
1318
+ "name": {
1319
+ "type": "string",
1320
+ "description": "Unique identifier (name/resourceid)",
1321
+ "title": "Flow ID",
1322
+ "x-ms-summary": "Flow Id",
1323
+ "x-ms-visibility": "important"
1324
+ },
1325
+ "owner": {
1326
+ "type": "string",
1327
+ "description": "Flow owner",
1328
+ "title": "Owner",
1329
+ "x-ms-summary": "Owner",
1330
+ "x-ms-visibility": "important"
1331
+ },
1332
+ "environment": {
1333
+ "type": "string",
1334
+ "description": "Flow Environment",
1335
+ "title": "Environment",
1336
+ "x-ms-summary": "Environment",
1337
+ "x-ms-visibility": "important"
1338
+ },
1339
+ "definition": {
1340
+ "type": "object",
1341
+ "title": "Definition",
1342
+ "properties": {},
1343
+ "description": "Flow Definition",
1344
+ "x-ms-summary": "Definition",
1345
+ "x-ms-visibility": "important"
1346
+ }
1347
+ },
1348
+ "description": "Properties JSON",
1349
+ "title": "Properties",
1350
+ "x-ms-summary": "Properties",
1351
+ "required": [
1352
+ "displayName",
1353
+ "environment",
1354
+ "name",
1355
+ "owner",
1356
+ "definition"
1357
+ ]
1358
+ },
1359
+ "configs": {
1360
+ "type": "object",
1361
+ "properties": {
1362
+ "type": {
1363
+ "type": "string",
1364
+ "description": "Image type",
1365
+ "title": "Type",
1366
+ "x-ms-visibility": "internal",
1367
+ "enum": [
1368
+ "SVG",
1369
+ "PNG"
1370
+ ],
1371
+ "default": "SVG",
1372
+ "x-ms-summary": "Image type"
1373
+ }
1374
+ },
1375
+ "description": "Configs JSON",
1376
+ "title": "Configs",
1377
+ "x-ms-summary": "Config",
1378
+ "required": [
1379
+ "type"
1380
+ ]
1381
+ }
1382
+ },
1383
+ "required": [
1384
+ "configs",
1385
+ "properties"
1386
+ ]
1387
+ }
1388
+ }
1389
+ ],
1390
+ "externalDocs": {
1391
+ "url": "https://docs.microsoft.com/connectors/autoreview/#diagram-(v2)"
1392
+ }
1393
+ }
1394
+ }
1395
+ },
1396
+ "parameters": {},
1397
+ "responses": {},
1398
+ "securityDefinitions": {
1399
+ "api_key": {
1400
+ "type": "apiKey",
1401
+ "in": "header",
1402
+ "name": "apiKey"
1403
+ }
1404
+ },
1405
+ "security": [
1406
+ {
1407
+ "api_key": []
1408
+ }
1409
+ ],
1410
+ "tags": [],
1411
+ "externalDocs": {
1412
+ "url": "https://docs.microsoft.com/connectors/autoreview"
1413
+ }
1414
+ },
1415
+ "runtimeUrls": [
1416
+ "https://unitedstates-002.azure-apim.net/apim/autoreview"
1417
+ ],
1418
+ "primaryRuntimeUrl": "https://unitedstates-002.azure-apim.net/apim/autoreview",
1419
+ "doNotUseApiHubNetRuntimeUrl": "https://unitedstates-002.azure-apim.net/apim/autoreview",
1420
+ "metadata": {
1421
+ "source": "marketplace",
1422
+ "brandColor": "#007ee5",
1423
+ "stackOwner": "Power DevBox",
1424
+ "useNewApimVersion": "true",
1425
+ "version": {
1426
+ "previous": "releases/v1.0.1729\\1.0.1729.4043",
1427
+ "current": "releases/v1.0.1747\\1.0.1748.4181"
1428
+ }
1429
+ },
1430
+ "capabilities": [
1431
+ "actions"
1432
+ ],
1433
+ "interfaces": {},
1434
+ "description": "Auto Code Review your flows. Use My flow action or workflows table to export your flows key information as json, or the following files: Review - Code Review of flow, with score, errors and warnings. Report - All variables, actions and connections. Diagram - Visual representation of the flow.",
1435
+ "createdTime": "2024-09-19T16:45:34.3703955Z",
1436
+ "changedTime": "2025-05-28T18:54:19.3307245Z",
1437
+ "releaseTag": "Production",
1438
+ "tier": "Premium",
1439
+ "publisher": "Power DevBox",
1440
+ "rateLimit": 0,
1441
+ "apiVersion": "None"
1442
+ }
1443
+ };
1444
+
1445
+ const DATA_SOURCE_NAME = "autoreview";
1446
+
1447
+ const dataSourcesInfo = {
1448
+ [DATA_SOURCE_NAME]: {
1449
+ "tableId": "",
1450
+ "version": "",
1451
+ "primaryKey": "",
1452
+ "dataSourceType": "Connector",
1453
+ "apis": {
1454
+ "GET-info": {
1455
+ "path": "/{connectionId}/v2/autoreview/",
1456
+ "method": "GET",
1457
+ "parameters": [
1458
+ {
1459
+ "name": "connectionId",
1460
+ "in": "path",
1461
+ "required": true,
1462
+ "type": "string"
1463
+ }
1464
+ ]
1465
+ },
1466
+ "POST-http": {
1467
+ "path": "/{connectionId}/v2/autoreview/",
1468
+ "method": "POST",
1469
+ "parameters": [
1470
+ {
1471
+ "name": "connectionId",
1472
+ "in": "path",
1473
+ "required": true,
1474
+ "type": "string"
1475
+ },
1476
+ {
1477
+ "name": "path",
1478
+ "in": "query",
1479
+ "required": false,
1480
+ "type": "string"
1481
+ },
1482
+ {
1483
+ "name": "body",
1484
+ "in": "body",
1485
+ "required": false,
1486
+ "type": "object"
1487
+ }
1488
+ ]
1489
+ },
1490
+ "POST-json": {
1491
+ "path": "/{connectionId}/v2/autoreview/json",
1492
+ "method": "POST",
1493
+ "parameters": [
1494
+ {
1495
+ "name": "connectionId",
1496
+ "in": "path",
1497
+ "required": true,
1498
+ "type": "string"
1499
+ },
1500
+ {
1501
+ "name": "body",
1502
+ "in": "body",
1503
+ "required": true,
1504
+ "type": "object"
1505
+ }
1506
+ ]
1507
+ },
1508
+ "POST-file": {
1509
+ "path": "/{connectionId}/v1/autoreview/file",
1510
+ "method": "POST",
1511
+ "parameters": [
1512
+ {
1513
+ "name": "connectionId",
1514
+ "in": "path",
1515
+ "required": true,
1516
+ "type": "string"
1517
+ },
1518
+ {
1519
+ "name": "body",
1520
+ "in": "body",
1521
+ "required": false,
1522
+ "type": "object"
1523
+ }
1524
+ ]
1525
+ },
1526
+ "POST-file-V2": {
1527
+ "path": "/{connectionId}/v2/autoreview/file",
1528
+ "method": "POST",
1529
+ "parameters": [
1530
+ {
1531
+ "name": "connectionId",
1532
+ "in": "path",
1533
+ "required": true,
1534
+ "type": "string"
1535
+ },
1536
+ {
1537
+ "name": "body",
1538
+ "in": "body",
1539
+ "required": false,
1540
+ "type": "object"
1541
+ }
1542
+ ]
1543
+ },
1544
+ "POST-diagram": {
1545
+ "path": "/{connectionId}/v2/autoreview/diagram",
1546
+ "method": "POST",
1547
+ "parameters": [
1548
+ {
1549
+ "name": "connectionId",
1550
+ "in": "path",
1551
+ "required": true,
1552
+ "type": "string"
1553
+ },
1554
+ {
1555
+ "name": "body",
1556
+ "in": "body",
1557
+ "required": false,
1558
+ "type": "object"
1559
+ }
1560
+ ]
1561
+ }
1562
+ }
1563
+ }
1564
+ };
1565
+
1566
+ const client = getClient(dataSourcesInfo);
1567
+
1568
+ async function executeConnectorOperation(operationName, parameters) {
1569
+ const payload = {
1570
+ connectorOperation: {
1571
+ tableName: DATA_SOURCE_NAME,
1572
+ operationName
1573
+ }
1574
+ };
1575
+
1576
+ if (parameters && Object.keys(parameters).length > 0) {
1577
+ payload.connectorOperation.parameters = parameters;
1578
+ }
1579
+
1580
+ const result = await client.executeAsync(payload);
1581
+ return unwrapResult(result);
1582
+ }
1583
+
1584
+ /**
1585
+ * Info (V2)
1586
+ * Latest information about AutoReview
1587
+ */
1588
+ const gET_info = async () => _dbgWrap("GET_info", [], async function() {
1589
+ return executeConnectorOperation("GET_info");
1590
+ });
1591
+
1592
+ /**
1593
+ * AutoReview HTTP
1594
+ * Raw AutoReview data
1595
+ */
1596
+ const pOST_http = async (path, body) => _dbgWrap("POST_http", [path, body], async function() {
1597
+ const parameters = {};
1598
+ if (path !== undefined) parameters["path"] = path;
1599
+ if (body !== undefined) parameters["body"] = body;
1600
+ return executeConnectorOperation("POST_http", parameters);
1601
+ });
1602
+
1603
+ /**
1604
+ * JSON (V2)
1605
+ * Returns raw AutoReview data as a json
1606
+ */
1607
+ const pOST_json = async (body) => _dbgWrap("POST_json", [body], async function() {
1608
+ const parameters = {};
1609
+ if (body !== undefined) parameters["body"] = body;
1610
+ return executeConnectorOperation("POST_json", parameters);
1611
+ });
1612
+
1613
+ /**
1614
+ * Files (V1)
1615
+ * Returns generated files
1616
+ */
1617
+ const pOST_file = async (body) => _dbgWrap("POST_file", [body], async function() {
1618
+ const parameters = {};
1619
+ if (body !== undefined) parameters["body"] = body;
1620
+ return executeConnectorOperation("POST_file", parameters);
1621
+ });
1622
+
1623
+ /**
1624
+ * Files (V2)
1625
+ * Returns generated files
1626
+ */
1627
+ const pOST_file_V2 = async (body) => _dbgWrap("POST_file_V2", [body], async function() {
1628
+ const parameters = {};
1629
+ if (body !== undefined) parameters["body"] = body;
1630
+ return executeConnectorOperation("POST_file_V2", parameters);
1631
+ });
1632
+
1633
+ /**
1634
+ * Diagram (V2)
1635
+ * Returns image of the flow
1636
+ */
1637
+ const pOST_diagram = async (body) => _dbgWrap("POST_diagram", [body], async function() {
1638
+ const parameters = {};
1639
+ if (body !== undefined) parameters["body"] = body;
1640
+ return executeConnectorOperation("POST_diagram", parameters);
1641
+ });
1642
+
1643
+ const AutoReviewService = {
1644
+ GET_info: gET_info,
1645
+ POST_http: pOST_http,
1646
+ POST_json: pOST_json,
1647
+ POST_file: pOST_file,
1648
+ POST_file_V2: pOST_file_V2,
1649
+ POST_diagram: pOST_diagram
1650
+ };
1651
+
1652
+ export { gET_info as GET_info, pOST_http as POST_http, pOST_json as POST_json, pOST_file as POST_file, pOST_file_V2 as POST_file_V2, pOST_diagram as POST_diagram };
1653
+ export { AutoReviewService };
1654
+ export default AutoReviewService;