codeapp-js 0.2.1 → 0.3.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 (100) hide show
  1. package/codeApp/.power/schemas/appschemas/dataSourcesInfo.ts +6275 -0
  2. package/codeApp/.power/schemas/jira/jira.Schema.json +6903 -0
  3. package/codeApp/.power/schemas/keyvault/keyvault.Schema.json +1600 -0
  4. package/codeApp/.power/schemas/teams/teams.Schema.json +11112 -0
  5. package/codeApp/dist/codeapp.js +992 -4
  6. package/codeApp/dist/power-apps-data.js +145 -31
  7. package/codeApp/src/generated/index.ts +12 -0
  8. package/codeApp/src/generated/models/AzureKeyVaultModel.ts +107 -0
  9. package/codeApp/src/generated/models/JiraModel.ts +501 -0
  10. package/codeApp/src/generated/models/Office365GroupsModel.ts +363 -0
  11. package/codeApp/src/generated/models/Office365OutlookModel.ts +2046 -0
  12. package/codeApp/src/generated/models/Office365UsersModel.ts +254 -0
  13. package/codeApp/src/generated/services/AzureKeyVaultService.ts +257 -0
  14. package/codeApp/src/generated/services/JiraService.ts +1124 -0
  15. package/codeApp/src/generated/services/Office365GroupsService.ts +326 -0
  16. package/codeApp/src/generated/services/Office365OutlookService.ts +2476 -0
  17. package/codeApp/src/generated/services/Office365UsersService.ts +358 -0
  18. package/dev files/outlook.js +218 -9
  19. package/examples/combined demo/dist/codeapp.js +1098 -1098
  20. package/examples/combined demo/dist/index.js +470 -470
  21. package/examples/combined demo/dist/power-apps-data.js +3006 -3006
  22. package/examples/combined demo/power.config.json +42 -42
  23. package/examples/dataverse Demo/dist/codeapp.js +1085 -1085
  24. package/examples/dataverse Demo/dist/index.html +54 -54
  25. package/examples/dataverse Demo/dist/index.js +82 -82
  26. package/examples/dataverse Demo/dist/power-apps-data.js +2911 -2911
  27. package/examples/dataverse Demo/power.config.json +34 -34
  28. package/examples/dataverse Demo/readme.md +79 -79
  29. package/examples/groups Demo/dist/codeapp.js +1085 -1085
  30. package/examples/groups Demo/dist/index.js +113 -113
  31. package/examples/groups Demo/dist/power-apps-data.js +2911 -2911
  32. package/examples/kanban/dist/dataverse.js +94 -94
  33. package/examples/kanban/dist/environmentVar.js +55 -55
  34. package/examples/kanban/dist/office365groups.js +97 -97
  35. package/examples/kanban/dist/office365users.js +169 -169
  36. package/examples/kanban/dist/outlook.js +162 -162
  37. package/examples/kanban/dist/power-apps-data.js +2953 -2953
  38. package/examples/kanban/dist/sharepoint.js +339 -339
  39. package/examples/myProfile/dist/index.html +184 -184
  40. package/examples/myProfile/dist/index.js +141 -141
  41. package/examples/myProfile/dist/office365users.js +169 -169
  42. package/examples/myProfile/dist/power-apps-data.js +2953 -2953
  43. package/examples/myProfile/power.config.json +22 -22
  44. package/examples/myProfile/readme.md +79 -79
  45. package/examples/outlook Demo/dist/codeapp.js +1085 -1085
  46. package/examples/outlook Demo/dist/index.html +35 -35
  47. package/examples/outlook Demo/dist/index.js +170 -170
  48. package/examples/outlook Demo/dist/outlook.js +121 -121
  49. package/examples/outlook Demo/dist/power-apps-data.js +2911 -2911
  50. package/examples/outlook Demo/dist/styles.css +84 -84
  51. package/examples/outlook Demo/readme.md +82 -82
  52. package/examples/outlook Demo2/OutlookDemo_1_0_0_1.zip +0 -0
  53. package/examples/outlook Demo2/agent/decision-log.md +7 -0
  54. package/examples/{solution explorer → outlook Demo2}/dist/codeapp.js +245 -9
  55. package/examples/outlook Demo2/dist/index.html +98 -0
  56. package/examples/outlook Demo2/dist/index.js +272 -0
  57. package/examples/outlook Demo2/dist/styles.css +639 -0
  58. package/examples/outlook Demo2/power.config.json +23 -0
  59. package/examples/outlook Demo2/src/generated/index.ts +14 -0
  60. package/examples/outlook Demo2/src/generated/models/Office365GroupsModel.ts +363 -0
  61. package/examples/outlook Demo2/src/generated/models/Office365OutlookModel.ts +2046 -0
  62. package/examples/outlook Demo2/src/generated/models/Office365UsersModel.ts +254 -0
  63. package/examples/outlook Demo2/src/generated/services/Office365GroupsService.ts +326 -0
  64. package/examples/outlook Demo2/src/generated/services/Office365OutlookService.ts +2476 -0
  65. package/examples/outlook Demo2/src/generated/services/Office365UsersService.ts +358 -0
  66. package/examples/planning Poker/.vscode/settings.json +4 -4
  67. package/examples/planning Poker/additional files/customizations (tables).xml +6428 -6428
  68. package/examples/planning Poker/additional files/dataverse-tables.json +165 -165
  69. package/examples/planning Poker/additional files/readme.md +122 -122
  70. package/examples/planning Poker/dist/dataverse.js +78 -78
  71. package/examples/planning Poker/dist/index.html +198 -198
  72. package/examples/planning Poker/dist/index.js +954 -954
  73. package/examples/planning Poker/dist/power-apps-data.js +2953 -2953
  74. package/examples/planning Poker/dist/styles.css +815 -815
  75. package/examples/sharePoint Demo/agent/decision-log.md +5 -5
  76. package/examples/sharePoint Demo/dist/codeapp.js +1085 -1085
  77. package/examples/sharePoint Demo/dist/index.js +262 -262
  78. package/examples/sharePoint Demo/dist/power-apps-data.js +2911 -2911
  79. package/examples/sharePoint Demo/power.config.json +22 -22
  80. package/examples/todo/dist/dataverse.js +64 -64
  81. package/examples/todo/dist/index.html +75 -75
  82. package/examples/todo/dist/index.js +8 -8
  83. package/examples/todo/dist/power-apps-data.js +2953 -2953
  84. package/examples/todo/dist/renderer.js +375 -375
  85. package/examples/todo/dist/styles.css +691 -691
  86. package/examples/todo/power.config.json +34 -34
  87. package/package.json +1 -1
  88. package/readme.md +33 -4
  89. package/examples/solution explorer/agent/decision-log.md +0 -27
  90. package/examples/solution explorer/agent/mockup-01-swiss-grid.html +0 -452
  91. package/examples/solution explorer/agent/mockup-02-dark-glass.html +0 -496
  92. package/examples/solution explorer/agent/mockup-03-paper-console.html +0 -510
  93. package/examples/solution explorer/agent/mockup-04-neon-noir.html +0 -546
  94. package/examples/solution explorer/agent/mockup-05-zen-garden.html +0 -534
  95. package/examples/solution explorer/dist/index.html +0 -80
  96. package/examples/solution explorer/dist/index.js +0 -735
  97. package/examples/solution explorer/dist/styles.css +0 -571
  98. package/examples/solution explorer/power.config.json +0 -151
  99. /package/examples/{solution explorer → outlook Demo2}/dist/icon-512.png +0 -0
  100. /package/examples/{solution explorer → outlook Demo2}/dist/power-apps-data.js +0 -0
@@ -0,0 +1,501 @@
1
+ /*!
2
+ * Copyright (C) Microsoft Corporation. All rights reserved.
3
+ * This file is autogenerated. Do not edit this file directly.
4
+ */
5
+
6
+ export interface CreateProjectResponse {
7
+ // Unique id of the project.
8
+ id?: number;
9
+ // Unique key of the project.
10
+ key?: string;
11
+ }
12
+
13
+ export interface CreateIssueResponse {
14
+ // Unique identifier of the issue.
15
+ id?: string;
16
+ // Unique key of the issue.
17
+ key?: string;
18
+ }
19
+
20
+ export interface ListProjects_ResponseV2 {
21
+ // Next page of projects
22
+ nextPage?: string;
23
+ values?: ProjectArray;
24
+ }
25
+
26
+ export interface Project {
27
+ // The unique Id of the project.
28
+ id?: string;
29
+ // The unique key of the project.
30
+ key?: string;
31
+ // Name of the project.
32
+ name?: string;
33
+ // The unique key of the project type.
34
+ projectTypeKey?: string;
35
+ }
36
+
37
+ export interface ProjectArrayItem {
38
+ // The unique Id of the project.
39
+ id?: string;
40
+ // The unique key of the project.
41
+ key?: string;
42
+ // Name of the project.
43
+ name?: string;
44
+ // The unique key of the project type.
45
+ projectTypeKey?: string;
46
+ }
47
+
48
+ export type ProjectArray = ProjectArrayItem[];
49
+
50
+ export interface PartialIssue {
51
+ // The unique Id of the Issue.
52
+ id?: string;
53
+ // The unique key of the issue.
54
+ key?: string;
55
+ fields?: {
56
+ summary?: string;
57
+ issuetype?: {
58
+ id?: string;
59
+ description?: string;
60
+ iconUrl?: string;
61
+ name?: string;
62
+ };
63
+ status?: {
64
+ description?: string;
65
+ iconUrl?: string;
66
+ name?: string;
67
+ id?: string;
68
+ statusCategory?: {
69
+ id?: number;
70
+ key?: string;
71
+ colorName?: string;
72
+ name?: string;
73
+ };
74
+ };
75
+ priority?: {
76
+ iconUrl?: string;
77
+ name?: string;
78
+ id?: string;
79
+ };
80
+ };
81
+ }
82
+
83
+ export interface FullIssue {
84
+ // Unique id of the issue.
85
+ id?: string;
86
+ // Unique key of the issue.
87
+ key?: string;
88
+ // Browse to the issue using this URL.
89
+ self?: string;
90
+ fields?: {
91
+ issuetype?: {
92
+ // Unique id of the issue type.
93
+ id?: string;
94
+ // Verbose title of the issue type.
95
+ description?: string;
96
+ // Icon associated with the issue type.
97
+ iconUrl?: string;
98
+ // Title of the issue type.
99
+ name?: string;
100
+ };
101
+ // The time spent on an issue
102
+ timespent?: number;
103
+ project?: {
104
+ // The unique id of the project.
105
+ id?: string;
106
+ // The unique key of the project.
107
+ key?: string;
108
+ // Title of the project.
109
+ name?: string;
110
+ // Unique key of the project type.
111
+ projectTypeKey?: string;
112
+ };
113
+ // The aggregate time spent on sub-tasks.
114
+ aggregatetimespent?: number;
115
+ // Type of resolution the issue has achieved.
116
+ resolution?: {
117
+ self?: string;
118
+ id?: string;
119
+ description?: string;
120
+ name?: string;
121
+ };
122
+ // yyyy-MM-ddTHH:mm:ss.fffZ
123
+ resolutiondate?: string;
124
+ // The percentage of work logged vs the issue estimate.
125
+ workratio?: number;
126
+ // yyyy-MM-ddTHH:mm:ss.fffZ
127
+ created?: string;
128
+ priority?: {
129
+ // Icon associated with the issue priority.
130
+ iconUrl?: string;
131
+ // Title of the priority.
132
+ name?: string;
133
+ // Id of the issue priority.
134
+ id?: string;
135
+ };
136
+ // Time remaining estimated time in seconds.
137
+ timeestimate?: number;
138
+ // The original sum of all sub-task time estimates in seconds.
139
+ aggregatetimeoriginalestimate?: number;
140
+ assignee?: {
141
+ // Person a issue is assigned to.
142
+ accountId?: string;
143
+ // User key of the person issue is assigned to.
144
+ key?: string;
145
+ // Email of the person issue is assigned to.
146
+ emailAddress?: string;
147
+ // Display name of the person issue is assigned to.
148
+ displayName?: string;
149
+ };
150
+ // yyyy-MM-ddTHH:mm:ss.fffZ
151
+ updated?: string;
152
+ status?: {
153
+ // Issue status.
154
+ description?: string;
155
+ // Issue status.
156
+ iconUrl?: string;
157
+ // Issue status.
158
+ name?: string;
159
+ // Issue status.
160
+ id?: string;
161
+ statusCategory?: {
162
+ // Issue status category.
163
+ id?: number;
164
+ // Issue status category.
165
+ key?: string;
166
+ // Issue status category.
167
+ colorName?: string;
168
+ // Issue status category.
169
+ name?: string;
170
+ };
171
+ };
172
+ // The original time estimate in seconds.
173
+ timeoriginalestimate?: number;
174
+ // Issue description.
175
+ description?: string;
176
+ // Time sum of all sub-tasks remaining estimated time in seconds.
177
+ aggregatetimeestimate?: number;
178
+ // Title of the issue.
179
+ summary?: string;
180
+ // A system field that is multiple values addressed by 'name' (e.g. Microsoft Entra ID, Network Switch).
181
+ components?: {
182
+ id?: string;
183
+ name?: string;
184
+ }[];
185
+ creator?: {
186
+ // User who created the issue.
187
+ accountId?: string;
188
+ // Unique key of the user who created the issue.
189
+ key?: string;
190
+ // Email of the user who created the issue.
191
+ emailAddress?: string;
192
+ // Name of the user who created the issue.
193
+ displayName?: string;
194
+ };
195
+ reporter?: {
196
+ // User who reported the issue.
197
+ accountId?: string;
198
+ // Unique key of the user who reported the issue.
199
+ key?: string;
200
+ // Email of the user who reported the issue.
201
+ emailAddress?: string;
202
+ // Display name of the user who reported the issue.
203
+ displayName?: string;
204
+ };
205
+ aggregateprogress?: {
206
+ // The total progress completed of all sub-tasks in seconds.
207
+ progress?: number;
208
+ // The total sum of all estimated sub-task effort.
209
+ total?: number;
210
+ // The percent of aggregate completed progress in relation to estimated effort.
211
+ percent?: number;
212
+ };
213
+ // yyyy-MM-ddTHH:mm:ss.fffZ
214
+ duedate?: string;
215
+ progress?: {
216
+ // The progress complete in seconds.
217
+ progress?: number;
218
+ // The estimated effort.
219
+ total?: number;
220
+ // The percent of completed progress in relation to estimated effort.
221
+ percent?: number;
222
+ };
223
+ // Epic name is required for epic issue type. This field matches 'customfield_10011' field on Jira server.
224
+ customfield_10119?: unknown;
225
+ };
226
+ }
227
+
228
+ export interface Creator {
229
+ // Person who created the issue.
230
+ accountId?: string;
231
+ // Unique key of the person who created the issue.
232
+ key?: string;
233
+ // Email of the person who created the issue.
234
+ emailAddress?: string;
235
+ // Display name of the person who created the issue.
236
+ displayName?: string;
237
+ }
238
+
239
+ export interface Assignee {
240
+ // Person whom the issue is assigned to.
241
+ accountId?: string;
242
+ // Unique key of the person whom the issue is assigned to.
243
+ key?: string;
244
+ // Email of the person whom the issue is assigned to.
245
+ emailAddress?: string;
246
+ // Display name of the person whom the issue is assigned to.
247
+ displayName?: string;
248
+ }
249
+
250
+ export interface User {
251
+ // Id of the Jira user.
252
+ accountId?: string;
253
+ // Unique key of the Jira user.
254
+ key?: string;
255
+ // Email of the Jira user.
256
+ emailAddress?: string;
257
+ // Display name of the Jira user.
258
+ displayName?: string;
259
+ }
260
+
261
+ export interface UserListItem {
262
+ // Id of the project member.
263
+ accountId?: string;
264
+ // Unique key associated with the user.
265
+ key?: string;
266
+ // Email address of the user.
267
+ emailAddress?: string;
268
+ // Full name of the user.
269
+ displayName?: string;
270
+ }
271
+
272
+ export type UserList = UserListItem[];
273
+
274
+ export interface Reporter {
275
+ // Person who reported the issue.
276
+ AccountId?: string;
277
+ // Unique key of the person who reported the issue.
278
+ key?: string;
279
+ // Email of the person who reported the issue.
280
+ emailAddress?: string;
281
+ // Display name of the person who reported the issue.
282
+ displayName?: string;
283
+ }
284
+
285
+ export interface ListFiltersResponse {
286
+ // Next page of filters
287
+ nextPage?: string;
288
+ values?: FilterArray;
289
+ }
290
+
291
+ export interface FilterArrayItem {
292
+ // Id of Filter.
293
+ id?: string;
294
+ // Name of Filter.
295
+ name?: string;
296
+ // jql used in Filter.
297
+ jql?: string;
298
+ }
299
+
300
+ export type FilterArray = FilterArrayItem[];
301
+
302
+ export interface ListIssuesResponse {
303
+ // The maximum number of items to return per page
304
+ maxResults?: number;
305
+ issues?: FullIssue[];
306
+ }
307
+
308
+ export interface ListIssuesResponseDatacenter {
309
+ // The index of the first item to return in a page of results
310
+ startAt?: number;
311
+ // The maximum number of items to return per page
312
+ maxResults?: number;
313
+ issues?: FullIssue[];
314
+ }
315
+
316
+ export interface IssueTypesItem {
317
+ name?: string;
318
+ id?: string;
319
+ }
320
+
321
+ export type IssueTypes = IssueTypesItem[];
322
+
323
+ export interface CreateIssueRequest {
324
+ fields: {
325
+ issuetype: {
326
+ // Pick an issue type.
327
+ id: string;
328
+ };
329
+ // Brief description of the issue.
330
+ summary: string;
331
+ // A system field that is multiple values addressed by 'name' (e.g. Microsoft Entra ID, Network Switch).
332
+ components?: string;
333
+ reporter?: {
334
+ // Person reporting the issue.
335
+ id?: string;
336
+ };
337
+ // A detailed description of the issue.
338
+ description?: string;
339
+ priority?: {
340
+ // Pick a priority for the issue.
341
+ id?: string;
342
+ };
343
+ // Enter a comma separated list of labels
344
+ labels?: string;
345
+ assignee?: {
346
+ // Agent the issue is assigned to.
347
+ id?: string;
348
+ };
349
+ parent?: {
350
+ // Set the parent for a sub-task.
351
+ id?: string;
352
+ };
353
+ // Epic name is required for epic issue type. This field matches 'customfield_10011' field on Jira server.
354
+ customfield_10119?: string;
355
+ };
356
+ }
357
+
358
+ export interface UpdateIssueRequest {
359
+ fields?: {
360
+ // Brief description of the issue.
361
+ summary?: string;
362
+ // A detailed description of the issue.
363
+ description?: string;
364
+ reporter?: {
365
+ // Person reporting the issue.
366
+ id?: string;
367
+ };
368
+ priority?: {
369
+ // Pick a priority for the issue.
370
+ id?: string;
371
+ };
372
+ // Enter a comma separated list of labels.
373
+ labels?: string;
374
+ assignee?: {
375
+ // Agent the issue is assigned to.
376
+ id?: string;
377
+ };
378
+ parent?: {
379
+ // Set the parent for a sub-task.
380
+ id?: string;
381
+ };
382
+ };
383
+ }
384
+
385
+ export interface StatusListItem {
386
+ id?: string;
387
+ name?: string;
388
+ }
389
+
390
+ export type StatusList = StatusListItem[];
391
+
392
+ export interface PriorityListItem {
393
+ name?: string;
394
+ id?: string;
395
+ }
396
+
397
+ export type PriorityList = PriorityListItem[];
398
+
399
+ export interface Comment {
400
+ // Body of the comment.
401
+ body: string;
402
+ }
403
+
404
+ export interface CommentResponse {
405
+ // Unique id of the comment.
406
+ id?: string;
407
+ // Body of the comment.
408
+ body?: string;
409
+ // yyyy-MM-ddTHH:mm:ss.fffZ
410
+ created?: string;
411
+ }
412
+
413
+ export interface SitesItem {
414
+ // Jira instance id
415
+ id?: string;
416
+ name?: string;
417
+ url?: string;
418
+ }
419
+
420
+ export type Sites = SitesItem[];
421
+
422
+ export interface Transition {
423
+ // ID of the transition
424
+ id?: string;
425
+ // Name of the transition
426
+ name?: string;
427
+ to?: TransitionStatus;
428
+ // Fields required for this transition
429
+ fields?: Record<string, unknown>;
430
+ }
431
+
432
+ export interface TransitionStatus {
433
+ // ID of the status
434
+ id?: string;
435
+ // Name of the status
436
+ name?: string;
437
+ }
438
+
439
+ export interface TransitionInput {
440
+ fields?: {
441
+ assignee?: {
442
+ name?: string;
443
+ };
444
+ resolution?: {
445
+ name?: string;
446
+ };
447
+ };
448
+ historyMetadata?: {
449
+ activityDescription?: string;
450
+ actor?: {
451
+ avatarUrl?: string;
452
+ displayName?: string;
453
+ id?: string;
454
+ _type?: string;
455
+ url?: string;
456
+ };
457
+ cause?: {
458
+ id?: string;
459
+ _type?: string;
460
+ };
461
+ description?: string;
462
+ extraData?: {
463
+ Iteration?: string;
464
+ Step?: string;
465
+ };
466
+ generator?: {
467
+ id?: string;
468
+ _type?: string;
469
+ };
470
+ _type?: string;
471
+ };
472
+ transition?: {
473
+ id?: string;
474
+ };
475
+ update?: {
476
+ comment?: {
477
+ add?: {
478
+ body?: string;
479
+ };
480
+ }[];
481
+ };
482
+ }
483
+
484
+ export interface MCPQueryRequest {
485
+ jsonrpc?: string;
486
+ id?: string;
487
+ method?: string;
488
+ params?: Record<string, unknown>;
489
+ result?: Record<string, unknown>;
490
+ error?: Record<string, unknown>;
491
+ callbackEndpoint?: string;
492
+ }
493
+
494
+ export interface MCPQueryResponse {
495
+ jsonrpc?: string;
496
+ id?: string;
497
+ method?: string;
498
+ params?: Record<string, unknown>;
499
+ result?: Record<string, unknown>;
500
+ error?: Record<string, unknown>;
501
+ }