@microsoft/managed-apps-cli 0.14.0 → 0.16.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 (161) hide show
  1. package/README.md +1 -1
  2. package/dist/Authentication/NoOpAuthenticationProvider.d.ts +25 -0
  3. package/dist/Authentication/NoOpAuthenticationProvider.d.ts.map +1 -0
  4. package/dist/Authentication/NoOpAuthenticationProvider.js +31 -0
  5. package/dist/Authentication/NoOpAuthenticationProvider.js.map +1 -0
  6. package/dist/Cli.d.ts.map +1 -1
  7. package/dist/Cli.js +14 -0
  8. package/dist/Cli.js.map +1 -1
  9. package/dist/CliSettings.js +1 -1
  10. package/dist/CliSettings.js.map +1 -1
  11. package/dist/Constants/CommandRegistry.d.ts.map +1 -1
  12. package/dist/Constants/CommandRegistry.js +13 -5
  13. package/dist/Constants/CommandRegistry.js.map +1 -1
  14. package/dist/Constants/HelpStrings.d.ts +12 -0
  15. package/dist/Constants/HelpStrings.d.ts.map +1 -1
  16. package/dist/Constants/HelpStrings.js +27 -9
  17. package/dist/Constants/HelpStrings.js.map +1 -1
  18. package/dist/Constants.d.ts +1 -0
  19. package/dist/Constants.d.ts.map +1 -1
  20. package/dist/Constants.js +4 -0
  21. package/dist/Constants.js.map +1 -1
  22. package/dist/HttpClient/CliHttpClient.d.ts.map +1 -1
  23. package/dist/HttpClient/CliHttpClient.js +27 -1
  24. package/dist/HttpClient/CliHttpClient.js.map +1 -1
  25. package/dist/Logger/CliLogger.d.ts +1 -1
  26. package/dist/Logger/CliLogger.d.ts.map +1 -1
  27. package/dist/Logger/CliLogger.js +9 -4
  28. package/dist/Logger/CliLogger.js.map +1 -1
  29. package/dist/Logger/OneDSWriter.d.ts +0 -1
  30. package/dist/Logger/OneDSWriter.d.ts.map +1 -1
  31. package/dist/Logger/OneDSWriter.js +1 -3
  32. package/dist/Logger/OneDSWriter.js.map +1 -1
  33. package/dist/Testing/MockFetch.d.ts +23 -0
  34. package/dist/Testing/MockFetch.d.ts.map +1 -0
  35. package/dist/Testing/MockFetch.js +177 -0
  36. package/dist/Testing/MockFetch.js.map +1 -0
  37. package/dist/Testing/MockRoutes.d.ts +34 -0
  38. package/dist/Testing/MockRoutes.d.ts.map +1 -0
  39. package/dist/Testing/MockRoutes.js +226 -0
  40. package/dist/Testing/MockRoutes.js.map +1 -0
  41. package/dist/Testing/fixtures/connectors/commondataserviceforapps.d.ts +6 -0
  42. package/dist/Testing/fixtures/connectors/commondataserviceforapps.d.ts.map +1 -0
  43. package/dist/Testing/fixtures/connectors/commondataserviceforapps.js +25 -0
  44. package/dist/Testing/fixtures/connectors/commondataserviceforapps.js.map +1 -0
  45. package/dist/Testing/fixtures/connectors/dataverseContactEntity.d.ts +6 -0
  46. package/dist/Testing/fixtures/connectors/dataverseContactEntity.d.ts.map +1 -0
  47. package/dist/Testing/fixtures/connectors/dataverseContactEntity.js +55 -0
  48. package/dist/Testing/fixtures/connectors/dataverseContactEntity.js.map +1 -0
  49. package/dist/Testing/fixtures/connectors/excelonlinebusiness.d.ts +6 -0
  50. package/dist/Testing/fixtures/connectors/excelonlinebusiness.d.ts.map +1 -0
  51. package/dist/Testing/fixtures/connectors/excelonlinebusiness.js +1970 -0
  52. package/dist/Testing/fixtures/connectors/excelonlinebusiness.js.map +1 -0
  53. package/dist/Testing/fixtures/connectors/kusto.d.ts +6 -0
  54. package/dist/Testing/fixtures/connectors/kusto.d.ts.map +1 -0
  55. package/dist/Testing/fixtures/connectors/kusto.js +1333 -0
  56. package/dist/Testing/fixtures/connectors/kusto.js.map +1 -0
  57. package/dist/Testing/fixtures/connectors/msnweather.d.ts +6 -0
  58. package/dist/Testing/fixtures/connectors/msnweather.d.ts.map +1 -0
  59. package/dist/Testing/fixtures/connectors/msnweather.js +917 -0
  60. package/dist/Testing/fixtures/connectors/msnweather.js.map +1 -0
  61. package/dist/Testing/fixtures/connectors/office365groups.d.ts +6 -0
  62. package/dist/Testing/fixtures/connectors/office365groups.d.ts.map +1 -0
  63. package/dist/Testing/fixtures/connectors/office365groups.js +2144 -0
  64. package/dist/Testing/fixtures/connectors/office365groups.js.map +1 -0
  65. package/dist/Testing/fixtures/connectors/office365users.d.ts +6 -0
  66. package/dist/Testing/fixtures/connectors/office365users.d.ts.map +1 -0
  67. package/dist/Testing/fixtures/connectors/office365users.js +1969 -0
  68. package/dist/Testing/fixtures/connectors/office365users.js.map +1 -0
  69. package/dist/Testing/fixtures/connectors/onedriveforbusiness.d.ts +6 -0
  70. package/dist/Testing/fixtures/connectors/onedriveforbusiness.d.ts.map +1 -0
  71. package/dist/Testing/fixtures/connectors/onedriveforbusiness.js +4873 -0
  72. package/dist/Testing/fixtures/connectors/onedriveforbusiness.js.map +1 -0
  73. package/dist/Testing/fixtures/connectors/powerappsforappmakers.d.ts +6 -0
  74. package/dist/Testing/fixtures/connectors/powerappsforappmakers.d.ts.map +1 -0
  75. package/dist/Testing/fixtures/connectors/powerappsforappmakers.js +4682 -0
  76. package/dist/Testing/fixtures/connectors/powerappsforappmakers.js.map +1 -0
  77. package/dist/Testing/fixtures/connectors/sharepointTestListMetadata.d.ts +6 -0
  78. package/dist/Testing/fixtures/connectors/sharepointTestListMetadata.d.ts.map +1 -0
  79. package/dist/Testing/fixtures/connectors/sharepointTestListMetadata.js +1078 -0
  80. package/dist/Testing/fixtures/connectors/sharepointTestListMetadata.js.map +1 -0
  81. package/dist/Testing/fixtures/connectors/sharepointonline.d.ts +6 -0
  82. package/dist/Testing/fixtures/connectors/sharepointonline.d.ts.map +1 -0
  83. package/dist/Testing/fixtures/connectors/sharepointonline.js +28 -0
  84. package/dist/Testing/fixtures/connectors/sharepointonline.js.map +1 -0
  85. package/dist/Testing/fixtures/connectors/teams.d.ts +6 -0
  86. package/dist/Testing/fixtures/connectors/teams.d.ts.map +1 -0
  87. package/dist/Testing/fixtures/connectors/teams.js +9987 -0
  88. package/dist/Testing/fixtures/connectors/teams.js.map +1 -0
  89. package/dist/Testing/fixtures/connectors/translatorv2.d.ts +6 -0
  90. package/dist/Testing/fixtures/connectors/translatorv2.d.ts.map +1 -0
  91. package/dist/Testing/fixtures/connectors/translatorv2.js +307 -0
  92. package/dist/Testing/fixtures/connectors/translatorv2.js.map +1 -0
  93. package/dist/Testing/fixtures/index.d.ts +23 -0
  94. package/dist/Testing/fixtures/index.d.ts.map +1 -0
  95. package/dist/Testing/fixtures/index.js +96 -0
  96. package/dist/Testing/fixtures/index.js.map +1 -0
  97. package/dist/Utils/EnvVars.d.ts +1 -1
  98. package/dist/Utils/EnvVars.d.ts.map +1 -1
  99. package/dist/Utils/EnvVars.js.map +1 -1
  100. package/dist/Utils/MaafAppConfig.d.ts +2 -0
  101. package/dist/Utils/MaafAppConfig.d.ts.map +1 -1
  102. package/dist/Utils/MaafAppConfig.js +6 -0
  103. package/dist/Utils/MaafAppConfig.js.map +1 -1
  104. package/dist/Utils/RepoOption.d.ts +1 -0
  105. package/dist/Utils/RepoOption.d.ts.map +1 -1
  106. package/dist/Utils/RepoOption.js +14 -0
  107. package/dist/Utils/RepoOption.js.map +1 -1
  108. package/dist/Utils/ShareAccessRouting.d.ts +78 -0
  109. package/dist/Utils/ShareAccessRouting.d.ts.map +1 -0
  110. package/dist/Utils/ShareAccessRouting.js +93 -0
  111. package/dist/Utils/ShareAccessRouting.js.map +1 -0
  112. package/dist/Verbs/AddConnector.d.ts +6 -6
  113. package/dist/Verbs/AddConnector.d.ts.map +1 -1
  114. package/dist/Verbs/AddConnector.js +45 -29
  115. package/dist/Verbs/AddConnector.js.map +1 -1
  116. package/dist/Verbs/AddConnectorFlows.d.ts +9 -2
  117. package/dist/Verbs/AddConnectorFlows.d.ts.map +1 -1
  118. package/dist/Verbs/AddConnectorFlows.js +26 -7
  119. package/dist/Verbs/AddConnectorFlows.js.map +1 -1
  120. package/dist/Verbs/CreateMaafApp.d.ts +8 -16
  121. package/dist/Verbs/CreateMaafApp.d.ts.map +1 -1
  122. package/dist/Verbs/CreateMaafApp.js +217 -90
  123. package/dist/Verbs/CreateMaafApp.js.map +1 -1
  124. package/dist/Verbs/DeleteMaafApp.d.ts +13 -9
  125. package/dist/Verbs/DeleteMaafApp.d.ts.map +1 -1
  126. package/dist/Verbs/DeleteMaafApp.js +41 -21
  127. package/dist/Verbs/DeleteMaafApp.js.map +1 -1
  128. package/dist/Verbs/GetMaafApp.d.ts.map +1 -1
  129. package/dist/Verbs/GetMaafApp.js +18 -6
  130. package/dist/Verbs/GetMaafApp.js.map +1 -1
  131. package/dist/Verbs/Init.d.ts.map +1 -1
  132. package/dist/Verbs/Init.js +53 -1
  133. package/dist/Verbs/Init.js.map +1 -1
  134. package/dist/Verbs/MaafAppPermissions.d.ts +8 -17
  135. package/dist/Verbs/MaafAppPermissions.d.ts.map +1 -1
  136. package/dist/Verbs/MaafAppPermissions.js +84 -91
  137. package/dist/Verbs/MaafAppPermissions.js.map +1 -1
  138. package/dist/Verbs/Pack.d.ts +1 -1
  139. package/dist/Verbs/Pack.d.ts.map +1 -1
  140. package/dist/Verbs/Pack.js +109 -1
  141. package/dist/Verbs/Pack.js.map +1 -1
  142. package/dist/Verbs/RefreshDataSource.d.ts +10 -9
  143. package/dist/Verbs/RefreshDataSource.d.ts.map +1 -1
  144. package/dist/Verbs/RefreshDataSource.js +24 -23
  145. package/dist/Verbs/RefreshDataSource.js.map +1 -1
  146. package/dist/Verbs/RemoveDataSource.d.ts.map +1 -1
  147. package/dist/Verbs/RemoveDataSource.js +17 -3
  148. package/dist/Verbs/RemoveDataSource.js.map +1 -1
  149. package/dist/Verbs/ShareList.d.ts +10 -0
  150. package/dist/Verbs/ShareList.d.ts.map +1 -0
  151. package/dist/Verbs/ShareList.js +254 -0
  152. package/dist/Verbs/ShareList.js.map +1 -0
  153. package/dist/Verbs/VerbConstants.d.ts +41 -0
  154. package/dist/Verbs/VerbConstants.d.ts.map +1 -1
  155. package/dist/Verbs/VerbConstants.js +25 -0
  156. package/dist/Verbs/VerbConstants.js.map +1 -1
  157. package/dist/Verbs/index.d.ts +1 -0
  158. package/dist/Verbs/index.d.ts.map +1 -1
  159. package/dist/Verbs/index.js +1 -0
  160. package/dist/Verbs/index.js.map +1 -1
  161. package/package.json +4 -4
@@ -0,0 +1,917 @@
1
+ /*!
2
+ * Copyright (C) Microsoft Corporation. All rights reserved.
3
+ */
4
+ // Generated fixture: real saved connector schema (with swagger) used by the mock backend for E2E.
5
+ // eslint-disable
6
+ const connector = {
7
+ name: 'shared_msnweather',
8
+ id: '/providers/Microsoft.PowerApps/apis/shared_msnweather',
9
+ type: 'Microsoft.PowerApps/apis',
10
+ properties: {
11
+ displayName: 'MSN Weather',
12
+ iconUri: 'REDACTED_URL',
13
+ iconBrandColor: '',
14
+ apiEnvironment: 'Shared',
15
+ isCustomApi: false,
16
+ blobUrisAreProxied: false,
17
+ connectionParameters: {},
18
+ swagger: {
19
+ swagger: '2.0',
20
+ info: {
21
+ version: '1.0.0',
22
+ title: 'MSN Weather',
23
+ description: 'MSN Weather gets you the very latest weather forecast, including temperature, humidity, precipitation for your location.',
24
+ 'x-ms-connector-name': 'msnweather',
25
+ 'x-ms-api-annotation': {
26
+ status: 'Production',
27
+ },
28
+ 'x-ms-keywords': ['msnweather', 'weather', 'forecast', 'temperature'],
29
+ 'x-ms-openai-published-to-copilots': [
30
+ {
31
+ 'AICopilot-enabled': true,
32
+ AICopilotName: 'Microsoft 365 Copilot',
33
+ },
34
+ ],
35
+ contact: {
36
+ name: 'Microsoft',
37
+ },
38
+ },
39
+ host: '4ef52cc0-31a9-e40c-9c37-8d3fd467910f.17.common.firstrelease.azure-apihub.net',
40
+ basePath: '/apim/msnweather',
41
+ schemes: ['https'],
42
+ produces: ['application/json'],
43
+ paths: {
44
+ '/{connectionId}/current/{Location}': {
45
+ get: {
46
+ summary: 'Get current weather',
47
+ description: 'Get the current weather for a location.',
48
+ operationId: 'CurrentWeather',
49
+ parameters: [
50
+ {
51
+ name: 'connectionId',
52
+ in: 'path',
53
+ required: true,
54
+ type: 'string',
55
+ 'x-ms-visibility': 'internal',
56
+ },
57
+ {
58
+ $ref: '#/parameters/Location',
59
+ },
60
+ {
61
+ $ref: '#/parameters/Units',
62
+ },
63
+ ],
64
+ responses: {
65
+ '200': {
66
+ description: 'OK',
67
+ schema: {
68
+ $ref: '#/definitions/CurrentWeather',
69
+ },
70
+ },
71
+ },
72
+ deprecated: false,
73
+ 'x-ms-visibility': 'advanced',
74
+ 'x-ms-openai-data': {
75
+ 'openai-enabled': true,
76
+ },
77
+ externalDocs: {
78
+ url: 'REDACTED_URL',
79
+ },
80
+ },
81
+ },
82
+ '/{connectionId}/trigger/current/weather/{Location}': {
83
+ get: {
84
+ summary: 'When the current weather changes',
85
+ description: 'Triggers a new flow when the specified weather measure changes for a location.',
86
+ operationId: 'OnCurrentWeatherChange',
87
+ parameters: [
88
+ {
89
+ name: 'connectionId',
90
+ in: 'path',
91
+ required: true,
92
+ type: 'string',
93
+ 'x-ms-visibility': 'internal',
94
+ },
95
+ {
96
+ $ref: '#/parameters/Location',
97
+ },
98
+ {
99
+ $ref: '#/parameters/Measure',
100
+ },
101
+ {
102
+ name: 'When',
103
+ in: 'query',
104
+ required: true,
105
+ description: 'The condition the trigger will be checking. Valid options are \u0027Is equal to\u0027, \u0027Goes over\u0027, or \u0027Goes below\u0027. For example, if the measure is \u0027temperature\u0027 and this parameter is set to \u0027Goes below\u0027 then the trigger will fire when the temperature goes below the target value.',
106
+ 'x-ms-summary': 'When the measure...',
107
+ type: 'string',
108
+ default: 'Is equal to',
109
+ enum: ['Is equal to', 'Goes over', 'Goes below'],
110
+ 'x-ms-enum-values': [
111
+ {
112
+ value: 'Is equal to',
113
+ displayName: 'Is equal to',
114
+ },
115
+ {
116
+ value: 'Goes over',
117
+ displayName: 'Goes over',
118
+ },
119
+ {
120
+ value: 'Goes below',
121
+ displayName: 'Goes below',
122
+ },
123
+ ],
124
+ },
125
+ {
126
+ name: 'Target',
127
+ in: 'query',
128
+ required: true,
129
+ description: 'The target value for the specified measure.',
130
+ 'x-ms-summary': 'Target',
131
+ type: 'number',
132
+ format: 'float',
133
+ 'x-ms-test-value': 0,
134
+ },
135
+ {
136
+ name: 'units',
137
+ in: 'query',
138
+ required: true,
139
+ type: 'string',
140
+ description: 'The units for the measure value and the target value.',
141
+ 'x-ms-summary': 'Units',
142
+ 'x-ms-dynamic-values': {
143
+ operationId: 'GetMeasureUnits',
144
+ parameters: {
145
+ Location: {
146
+ parameter: 'Location',
147
+ },
148
+ Measure: {
149
+ parameter: 'Measure',
150
+ },
151
+ },
152
+ 'value-path': 'units',
153
+ 'value-title': 'displayText',
154
+ },
155
+ 'x-ms-test-value': 'Metric',
156
+ },
157
+ ],
158
+ responses: {
159
+ '200': {
160
+ description: 'OK',
161
+ schema: {
162
+ $ref: '#/definitions/CurrentWeather',
163
+ },
164
+ },
165
+ },
166
+ deprecated: false,
167
+ 'x-ms-trigger': 'single',
168
+ 'x-ms-trigger-hint': 'When the current weather changes.',
169
+ 'x-ms-visibility': 'important',
170
+ externalDocs: {
171
+ url: 'REDACTED_URL',
172
+ },
173
+ },
174
+ },
175
+ '/{connectionId}/trigger/current/conditions/{Location}': {
176
+ get: {
177
+ summary: 'When the current conditions change',
178
+ description: 'Triggers a new flow when the conditions change for a location.',
179
+ operationId: 'OnCurrentConditionsChange',
180
+ parameters: [
181
+ {
182
+ name: 'connectionId',
183
+ in: 'path',
184
+ required: true,
185
+ type: 'string',
186
+ 'x-ms-visibility': 'internal',
187
+ },
188
+ {
189
+ $ref: '#/parameters/Location',
190
+ },
191
+ {
192
+ $ref: '#/parameters/Units',
193
+ },
194
+ ],
195
+ responses: {
196
+ '200': {
197
+ description: 'OK',
198
+ schema: {
199
+ $ref: '#/definitions/CurrentWeather',
200
+ },
201
+ },
202
+ },
203
+ deprecated: false,
204
+ 'x-ms-trigger': 'single',
205
+ 'x-ms-trigger-hint': 'When the current conditions change.',
206
+ 'x-ms-visibility': 'advanced',
207
+ externalDocs: {
208
+ url: 'REDACTED_URL',
209
+ },
210
+ },
211
+ },
212
+ '/{connectionId}/forecast/today/{Location}': {
213
+ get: {
214
+ summary: 'Get forecast for today',
215
+ description: 'Get the forecast for the current day in the specified location.',
216
+ operationId: 'TodaysForecast',
217
+ parameters: [
218
+ {
219
+ name: 'connectionId',
220
+ in: 'path',
221
+ required: true,
222
+ type: 'string',
223
+ 'x-ms-visibility': 'internal',
224
+ },
225
+ {
226
+ $ref: '#/parameters/Location',
227
+ },
228
+ {
229
+ $ref: '#/parameters/Units',
230
+ },
231
+ ],
232
+ responses: {
233
+ '200': {
234
+ description: 'OK',
235
+ schema: {
236
+ $ref: '#/definitions/WeatherForecast',
237
+ },
238
+ },
239
+ },
240
+ deprecated: false,
241
+ 'x-ms-visibility': 'important',
242
+ 'x-ms-openai-data': {
243
+ 'openai-enabled': true,
244
+ },
245
+ externalDocs: {
246
+ url: 'REDACTED_URL',
247
+ },
248
+ },
249
+ },
250
+ '/{connectionId}/forecast/tomorrow/{Location}': {
251
+ get: {
252
+ summary: 'Get the forecast for tomorrow',
253
+ description: 'Get the forecast for tomorrow in the specified location.',
254
+ operationId: 'TomorrowsForecast',
255
+ parameters: [
256
+ {
257
+ name: 'connectionId',
258
+ in: 'path',
259
+ required: true,
260
+ type: 'string',
261
+ 'x-ms-visibility': 'internal',
262
+ },
263
+ {
264
+ $ref: '#/parameters/Location',
265
+ },
266
+ {
267
+ $ref: '#/parameters/Units',
268
+ },
269
+ ],
270
+ responses: {
271
+ '200': {
272
+ description: 'OK',
273
+ schema: {
274
+ $ref: '#/definitions/WeatherForecast',
275
+ },
276
+ },
277
+ },
278
+ deprecated: false,
279
+ 'x-ms-visibility': 'advanced',
280
+ 'x-ms-openai-data': {
281
+ 'openai-enabled': true,
282
+ },
283
+ externalDocs: {
284
+ url: 'REDACTED_URL',
285
+ },
286
+ },
287
+ },
288
+ '/{connectionId}/current/units/{Location}': {
289
+ get: {
290
+ summary: 'Get Measure Units',
291
+ description: 'Get Measure Units',
292
+ operationId: 'GetMeasureUnits',
293
+ parameters: [
294
+ {
295
+ name: 'connectionId',
296
+ in: 'path',
297
+ required: true,
298
+ type: 'string',
299
+ 'x-ms-visibility': 'internal',
300
+ },
301
+ {
302
+ $ref: '#/parameters/Location',
303
+ },
304
+ {
305
+ $ref: '#/parameters/Measure',
306
+ },
307
+ ],
308
+ responses: {
309
+ '200': {
310
+ description: 'OK',
311
+ schema: {
312
+ $ref: '#/definitions/MeasureUnits',
313
+ },
314
+ },
315
+ },
316
+ deprecated: false,
317
+ 'x-ms-visibility': 'internal',
318
+ externalDocs: {
319
+ url: 'REDACTED_URL',
320
+ },
321
+ },
322
+ },
323
+ },
324
+ definitions: {
325
+ CurrentWeather: {
326
+ type: 'object',
327
+ properties: {
328
+ responses: {
329
+ type: 'object',
330
+ properties: {
331
+ weather: {
332
+ type: 'object',
333
+ properties: {
334
+ current: {
335
+ type: 'object',
336
+ properties: {
337
+ baro: {
338
+ format: 'float',
339
+ type: 'number',
340
+ 'x-ms-summary': 'Pressure',
341
+ description: 'The atmospheric pressure.',
342
+ },
343
+ cap: {
344
+ type: 'string',
345
+ 'x-ms-summary': 'Conditions',
346
+ description: 'A caption of weather conditions such as rainy, sunny, etc.',
347
+ },
348
+ dewPt: {
349
+ format: 'float',
350
+ type: 'number',
351
+ 'x-ms-summary': 'Dewpoint',
352
+ 'x-ms-visibility': 'advanced',
353
+ description: 'The temperature at which dew forms.',
354
+ },
355
+ feels: {
356
+ format: 'float',
357
+ type: 'number',
358
+ 'x-ms-summary': 'Apparent Temperature',
359
+ 'x-ms-visibility': 'advanced',
360
+ description: 'The apparent temperature, or feels-like temperature.',
361
+ },
362
+ rh: {
363
+ format: 'float',
364
+ type: 'number',
365
+ 'x-ms-summary': 'Humidity',
366
+ description: 'The relative humidity percentage.',
367
+ },
368
+ wx: {
369
+ type: 'string',
370
+ 'x-ms-summary': 'METAR weather conditions',
371
+ 'x-ms-visibility': 'advanced',
372
+ description: 'The METAR code of weather conditions.',
373
+ },
374
+ sky: {
375
+ type: 'string',
376
+ 'x-ms-summary': 'METAR Sky Conditions',
377
+ 'x-ms-visibility': 'advanced',
378
+ description: 'The METAR code of sky conditions.',
379
+ },
380
+ temp: {
381
+ format: 'float',
382
+ type: 'number',
383
+ 'x-ms-summary': 'Temperature',
384
+ description: 'The current temperature.',
385
+ },
386
+ uv: {
387
+ format: 'float',
388
+ type: 'number',
389
+ 'x-ms-summary': 'UV Index',
390
+ description: 'The numerical UV index.',
391
+ },
392
+ uvDesc: {
393
+ type: 'string',
394
+ 'x-ms-summary': 'UV Index Description',
395
+ 'x-ms-visibility': 'advanced',
396
+ description: 'A description of the meaning of the UV index.',
397
+ },
398
+ vis: {
399
+ format: 'float',
400
+ type: 'number',
401
+ 'x-ms-summary': 'Visibility Distance',
402
+ 'x-ms-visibility': 'advanced',
403
+ description: 'The visibility distance.',
404
+ },
405
+ windDir: {
406
+ format: 'int32',
407
+ type: 'integer',
408
+ 'x-ms-summary': 'Wind Direction',
409
+ 'x-ms-visibility': 'advanced',
410
+ description: 'The wind direction in degrees clockwise from north.',
411
+ },
412
+ windSpd: {
413
+ format: 'float',
414
+ type: 'number',
415
+ 'x-ms-summary': 'Wind Speed',
416
+ description: 'The wind speed.',
417
+ },
418
+ windGust: {
419
+ format: 'float',
420
+ type: 'number',
421
+ 'x-ms-summary': 'Wind Gust Speed',
422
+ 'x-ms-visibility': 'advanced',
423
+ description: 'The wind gust speed.',
424
+ },
425
+ created: {
426
+ format: 'date-time',
427
+ type: 'string',
428
+ 'x-ms-summary': 'Last Updated',
429
+ description: 'The datetime at which provider created the current condition.',
430
+ },
431
+ },
432
+ },
433
+ },
434
+ },
435
+ source: {
436
+ type: 'object',
437
+ properties: {
438
+ coordinates: {
439
+ type: 'object',
440
+ properties: {
441
+ lat: {
442
+ format: 'float',
443
+ type: 'number',
444
+ 'x-ms-summary': 'Latitude',
445
+ 'x-ms-visibility': 'advanced',
446
+ description: 'The latitude of the location.',
447
+ },
448
+ lon: {
449
+ format: 'float',
450
+ type: 'number',
451
+ 'x-ms-summary': 'Longitude',
452
+ 'x-ms-visibility': 'advanced',
453
+ description: 'The longitude of the location.',
454
+ },
455
+ },
456
+ },
457
+ location: {
458
+ type: 'string',
459
+ 'x-ms-summary': 'Location',
460
+ description: 'The location for which provider created the current condition.',
461
+ },
462
+ },
463
+ },
464
+ },
465
+ },
466
+ units: {
467
+ type: 'object',
468
+ properties: {
469
+ system: {
470
+ type: 'string',
471
+ 'x-ms-summary': 'Unit System',
472
+ description: 'Units used in data set (metric or imperial).',
473
+ 'x-ms-visibility': 'internal',
474
+ },
475
+ pressure: {
476
+ type: 'string',
477
+ 'x-ms-summary': 'Pressure Units',
478
+ 'x-ms-visibility': 'advanced',
479
+ description: 'Units used for pressure measurements.',
480
+ },
481
+ temperature: {
482
+ type: 'string',
483
+ 'x-ms-summary': 'Temperature Units',
484
+ description: 'Units used for temperature measurements.',
485
+ },
486
+ speed: {
487
+ type: 'string',
488
+ 'x-ms-summary': 'Speed Units',
489
+ 'x-ms-visibility': 'advanced',
490
+ description: 'Units used for speed measurements.',
491
+ },
492
+ distance: {
493
+ type: 'string',
494
+ 'x-ms-summary': 'Distance Units',
495
+ 'x-ms-visibility': 'advanced',
496
+ description: 'Units used for distance measurements.',
497
+ },
498
+ },
499
+ },
500
+ },
501
+ },
502
+ WeatherForecast: {
503
+ type: 'object',
504
+ properties: {
505
+ responses: {
506
+ type: 'object',
507
+ properties: {
508
+ daily: {
509
+ type: 'object',
510
+ properties: {
511
+ day: {
512
+ type: 'object',
513
+ properties: {
514
+ cap: {
515
+ type: 'string',
516
+ 'x-ms-summary': 'Conditions',
517
+ 'x-ms-visibility': 'advanced',
518
+ description: 'The caption of weather conditions such as rainy, sunny, etc.',
519
+ },
520
+ precip: {
521
+ format: 'float',
522
+ type: 'number',
523
+ 'x-ms-summary': 'Rain Chance',
524
+ 'x-ms-visibility': 'advanced',
525
+ description: 'The chance of precipitation (%).',
526
+ },
527
+ wx: {
528
+ type: 'string',
529
+ 'x-ms-summary': 'METAR Weather Conditions',
530
+ 'x-ms-visibility': 'advanced',
531
+ description: 'The METAR code of weather conditions.',
532
+ },
533
+ sky: {
534
+ type: 'string',
535
+ 'x-ms-summary': 'METAR Sky Conditions',
536
+ 'x-ms-visibility': 'advanced',
537
+ description: 'The METAR code of sky conditions.',
538
+ },
539
+ windDir: {
540
+ format: 'int32',
541
+ type: 'integer',
542
+ 'x-ms-summary': 'Wind Direction',
543
+ 'x-ms-visibility': 'advanced',
544
+ description: 'The wind direction in degrees clockwise from north.',
545
+ },
546
+ windSpd: {
547
+ format: 'float',
548
+ type: 'number',
549
+ 'x-ms-summary': 'Wind Speed',
550
+ 'x-ms-visibility': 'advanced',
551
+ description: 'The wind speed.',
552
+ },
553
+ summary: {
554
+ type: 'string',
555
+ 'x-ms-summary': 'Summary',
556
+ description: 'A text summary of the forecast.',
557
+ 'x-ms-visibility': 'advanced',
558
+ },
559
+ },
560
+ 'x-ms-summary': 'Day',
561
+ },
562
+ night: {
563
+ type: 'object',
564
+ properties: {
565
+ cap: {
566
+ type: 'string',
567
+ 'x-ms-summary': 'Conditions',
568
+ 'x-ms-visibility': 'advanced',
569
+ description: 'The caption of weather conditions such as rainy, sunny, etc.',
570
+ },
571
+ precip: {
572
+ format: 'float',
573
+ type: 'number',
574
+ 'x-ms-summary': 'Rain Chance',
575
+ 'x-ms-visibility': 'advanced',
576
+ description: 'The chance of precipitation (%).',
577
+ },
578
+ wx: {
579
+ type: 'string',
580
+ 'x-ms-summary': 'METAR Weather Conditions',
581
+ 'x-ms-visibility': 'advanced',
582
+ description: 'The METAR code of weather conditions.',
583
+ },
584
+ sky: {
585
+ type: 'string',
586
+ 'x-ms-summary': 'METAR Sky Conditions',
587
+ 'x-ms-visibility': 'advanced',
588
+ description: 'The METAR code of sky conditions.',
589
+ },
590
+ windDir: {
591
+ format: 'int32',
592
+ type: 'integer',
593
+ 'x-ms-summary': 'Wind Direction',
594
+ 'x-ms-visibility': 'advanced',
595
+ description: 'The wind direction in degrees clockwise from north.',
596
+ },
597
+ windSpd: {
598
+ format: 'float',
599
+ type: 'number',
600
+ 'x-ms-summary': 'Wind Speed',
601
+ 'x-ms-visibility': 'advanced',
602
+ description: 'The wind speed.',
603
+ },
604
+ summary: {
605
+ type: 'string',
606
+ 'x-ms-summary': 'Summary',
607
+ description: 'A text summary of the forecast.',
608
+ 'x-ms-visibility': 'advanced',
609
+ },
610
+ },
611
+ 'x-ms-summary': 'Night',
612
+ },
613
+ pvdrCap: {
614
+ type: 'string',
615
+ 'x-ms-summary': 'Conditions',
616
+ description: 'The caption of weather conditions such as rainy, sunny, etc.',
617
+ },
618
+ valid: {
619
+ format: 'date-time',
620
+ type: 'string',
621
+ 'x-ms-summary': 'Date',
622
+ description: 'The datetime at which the forecast is valid.',
623
+ },
624
+ precip: {
625
+ format: 'float',
626
+ type: 'number',
627
+ 'x-ms-summary': 'Rain Chance',
628
+ description: 'The chance of precipitation (%).',
629
+ },
630
+ windMax: {
631
+ format: 'float',
632
+ type: 'number',
633
+ 'x-ms-summary': 'Max Wind Speed',
634
+ description: 'The peak wind speed for the day.',
635
+ },
636
+ windMaxDir: {
637
+ format: 'int32',
638
+ type: 'integer',
639
+ 'x-ms-summary': 'Max Wind Direction',
640
+ 'x-ms-visibility': 'advanced',
641
+ description: 'The direction of the peak wind for the day.',
642
+ },
643
+ rhHi: {
644
+ format: 'float',
645
+ type: 'number',
646
+ 'x-ms-summary': 'Humidity High',
647
+ description: 'The high relative humidity point for the day.',
648
+ },
649
+ rhLo: {
650
+ format: 'float',
651
+ type: 'number',
652
+ 'x-ms-summary': 'Humidity Low',
653
+ description: 'The low relative humidity point for the day.',
654
+ },
655
+ tempHi: {
656
+ format: 'float',
657
+ type: 'number',
658
+ 'x-ms-summary': 'Temperature High',
659
+ description: 'The high temperature.',
660
+ },
661
+ tempLo: {
662
+ format: 'float',
663
+ type: 'number',
664
+ 'x-ms-summary': 'Temperature Low',
665
+ description: 'The low temperature.',
666
+ },
667
+ uv: {
668
+ format: 'float',
669
+ type: 'number',
670
+ 'x-ms-summary': 'UV Index',
671
+ description: 'The numerical UV index.',
672
+ },
673
+ uvDesc: {
674
+ type: 'string',
675
+ 'x-ms-summary': 'UV Index Description',
676
+ 'x-ms-visibility': 'advanced',
677
+ description: 'A description of the meaning of the UV index.',
678
+ },
679
+ created: {
680
+ format: 'date-time',
681
+ type: 'string',
682
+ 'x-ms-summary': 'Forecast Date',
683
+ 'x-ms-visibility': 'advanced',
684
+ description: 'The datetime at which the daily forecast was derived.',
685
+ },
686
+ },
687
+ },
688
+ almanac: {
689
+ type: 'object',
690
+ properties: {
691
+ sunrise: {
692
+ format: 'date-time',
693
+ type: 'string',
694
+ 'x-ms-summary': 'Sunrise Time',
695
+ 'x-ms-visibility': 'advanced',
696
+ description: 'Time of sunrise on the day of this forecast.',
697
+ },
698
+ sunset: {
699
+ format: 'date-time',
700
+ type: 'string',
701
+ 'x-ms-summary': 'Sunset Time',
702
+ 'x-ms-visibility': 'advanced',
703
+ description: 'Time of sunset on the day of this forecast.',
704
+ },
705
+ moonrise: {
706
+ format: 'date-time',
707
+ type: 'string',
708
+ 'x-ms-summary': 'Moonrise Time',
709
+ 'x-ms-visibility': 'advanced',
710
+ description: 'Time of moonrise on the day of this forecast.',
711
+ },
712
+ moonset: {
713
+ format: 'date-time',
714
+ type: 'string',
715
+ 'x-ms-summary': 'Moonset Time',
716
+ 'x-ms-visibility': 'advanced',
717
+ description: 'Time of moonset on the day of this forecast.',
718
+ },
719
+ moonPhase: {
720
+ type: 'string',
721
+ 'x-ms-summary': 'Moon Phase',
722
+ 'x-ms-visibility': 'advanced',
723
+ description: 'The phase of the moon the day of this forecast.',
724
+ },
725
+ moonPhaseCode: {
726
+ type: 'string',
727
+ 'x-ms-summary': 'Moon Phase Code',
728
+ 'x-ms-visibility': 'advanced',
729
+ description: 'The code representing the phase of the moon.',
730
+ },
731
+ },
732
+ },
733
+ source: {
734
+ type: 'object',
735
+ properties: {
736
+ coordinates: {
737
+ type: 'object',
738
+ properties: {
739
+ lat: {
740
+ format: 'float',
741
+ type: 'number',
742
+ 'x-ms-summary': 'Latitude',
743
+ 'x-ms-visibility': 'advanced',
744
+ description: 'The latitude of the location.',
745
+ },
746
+ lon: {
747
+ format: 'float',
748
+ type: 'number',
749
+ 'x-ms-summary': 'Longitude',
750
+ 'x-ms-visibility': 'advanced',
751
+ description: 'The longitude of the location.',
752
+ },
753
+ },
754
+ },
755
+ location: {
756
+ type: 'string',
757
+ 'x-ms-summary': 'Location',
758
+ description: 'The location for which provider created the forecast.',
759
+ },
760
+ },
761
+ },
762
+ },
763
+ },
764
+ units: {
765
+ type: 'object',
766
+ properties: {
767
+ system: {
768
+ type: 'string',
769
+ 'x-ms-summary': 'Unit System',
770
+ description: 'Units used in data set (metric or imperial).',
771
+ 'x-ms-visibility': 'internal',
772
+ },
773
+ pressure: {
774
+ type: 'string',
775
+ 'x-ms-summary': 'Pressure Units',
776
+ 'x-ms-visibility': 'advanced',
777
+ description: 'Units used for pressure measurements.',
778
+ },
779
+ temperature: {
780
+ type: 'string',
781
+ 'x-ms-summary': 'Temperature Units',
782
+ description: 'Units used for temperature measurements.',
783
+ },
784
+ speed: {
785
+ type: 'string',
786
+ 'x-ms-summary': 'Speed Units',
787
+ 'x-ms-visibility': 'advanced',
788
+ description: 'Units used for speed measurements.',
789
+ },
790
+ distance: {
791
+ type: 'string',
792
+ 'x-ms-summary': 'Distance Units',
793
+ 'x-ms-visibility': 'advanced',
794
+ description: 'Units used for distance measurements.',
795
+ },
796
+ },
797
+ },
798
+ },
799
+ },
800
+ MeasureUnits: {
801
+ type: 'array',
802
+ items: {
803
+ type: 'object',
804
+ properties: {
805
+ displayText: {
806
+ type: 'string',
807
+ },
808
+ units: {
809
+ type: 'string',
810
+ },
811
+ },
812
+ },
813
+ },
814
+ },
815
+ parameters: {
816
+ Location: {
817
+ name: 'Location',
818
+ in: 'path',
819
+ required: true,
820
+ description: 'The location search query. Valid inputs are City, Region, State, Country, Landmark, Postal Code, latitude and longitude',
821
+ 'x-ms-summary': 'Location',
822
+ 'x-ms-test-value': 'Redmond',
823
+ type: 'string',
824
+ },
825
+ Units: {
826
+ name: 'units',
827
+ in: 'query',
828
+ required: true,
829
+ description: 'The measurement system used for all the measure values in the request and response. Valid options are \u0027Imperial\u0027 and \u0027Metric\u0027.',
830
+ 'x-ms-summary': 'Units',
831
+ type: 'string',
832
+ default: 'I',
833
+ enum: ['I', 'C'],
834
+ 'x-ms-enum-values': [
835
+ {
836
+ value: 'I',
837
+ displayName: 'Imperial',
838
+ },
839
+ {
840
+ value: 'C',
841
+ displayName: 'Metric',
842
+ },
843
+ ],
844
+ },
845
+ Measure: {
846
+ name: 'Measure',
847
+ in: 'query',
848
+ required: true,
849
+ description: 'The weather measure used for this operation. Valid options are \u0027Temperature\u0027, \u0027UV Index\u0027, \u0027Humidity\u0027 or \u0027Wind Speed\u0027.',
850
+ 'x-ms-summary': 'Measure',
851
+ type: 'string',
852
+ default: 'Temperature',
853
+ enum: ['Temperature', 'UV Index', 'Humidity', 'Wind Speed'],
854
+ 'x-ms-enum-values': [
855
+ {
856
+ value: 'Temperature',
857
+ displayName: 'Temperature',
858
+ },
859
+ {
860
+ value: 'UV Index',
861
+ displayName: 'UV Index',
862
+ },
863
+ {
864
+ value: 'Humidity',
865
+ displayName: 'Humidity',
866
+ },
867
+ {
868
+ value: 'Wind Speed',
869
+ displayName: 'Wind Speed',
870
+ },
871
+ ],
872
+ },
873
+ },
874
+ 'x-ms-connector-metadata': [
875
+ {
876
+ propertyName: 'Website',
877
+ propertyValue: 'REDACTED_URL',
878
+ },
879
+ ],
880
+ externalDocs: {
881
+ url: 'REDACTED_URL',
882
+ },
883
+ },
884
+ wadlUrl: 'REDACTED_URL',
885
+ runtimeUrls: ['REDACTED_URL'],
886
+ primaryRuntimeUrl: 'REDACTED_URL',
887
+ doNotUseApiHubNetRuntimeUrl: 'REDACTED_URL',
888
+ metadata: {
889
+ source: 'marketplace',
890
+ brandColor: '',
891
+ connectionLimits: {
892
+ '*': 1,
893
+ },
894
+ useNewApimVersion: 'true',
895
+ version: {
896
+ previous: 'v1.0.1754\\1.0.1754.4231',
897
+ current: 'v1.0.1756\\1.0.1756.4248',
898
+ },
899
+ },
900
+ capabilities: ['actions', 'triggers'],
901
+ interfaces: {},
902
+ description: 'MSN Weather gets you the very latest weather forecast, including temperature, humidity, precipitation for your location.',
903
+ createdTime: '2017-01-26T01:06:37.0992138Z',
904
+ changedTime: '2025-06-10T17:28:35.1938228Z',
905
+ releaseTag: 'Production',
906
+ tier: 'Standard',
907
+ publisher: 'Microsoft',
908
+ scopes: {
909
+ will: [],
910
+ wont: [],
911
+ },
912
+ rateLimit: 0,
913
+ apiVersion: 'None',
914
+ },
915
+ };
916
+ export default connector;
917
+ //# sourceMappingURL=msnweather.js.map