@microsoft/managed-apps-cli 0.14.0 → 0.17.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 (196) hide show
  1. package/README.md +3 -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 +20 -1
  8. package/dist/Cli.js.map +1 -1
  9. package/dist/CliSettings.d.ts +2 -1
  10. package/dist/CliSettings.d.ts.map +1 -1
  11. package/dist/CliSettings.js +3 -2
  12. package/dist/CliSettings.js.map +1 -1
  13. package/dist/Constants/CommandRegistry.d.ts.map +1 -1
  14. package/dist/Constants/CommandRegistry.js +13 -5
  15. package/dist/Constants/CommandRegistry.js.map +1 -1
  16. package/dist/Constants/HelpStrings.d.ts +13 -0
  17. package/dist/Constants/HelpStrings.d.ts.map +1 -1
  18. package/dist/Constants/HelpStrings.js +29 -9
  19. package/dist/Constants/HelpStrings.js.map +1 -1
  20. package/dist/Constants.d.ts +1 -0
  21. package/dist/Constants.d.ts.map +1 -1
  22. package/dist/Constants.js +4 -0
  23. package/dist/Constants.js.map +1 -1
  24. package/dist/HttpClient/CliHttpClient.d.ts.map +1 -1
  25. package/dist/HttpClient/CliHttpClient.js +27 -1
  26. package/dist/HttpClient/CliHttpClient.js.map +1 -1
  27. package/dist/Logger/CliLogger.d.ts +1 -1
  28. package/dist/Logger/CliLogger.d.ts.map +1 -1
  29. package/dist/Logger/CliLogger.js +19 -4
  30. package/dist/Logger/CliLogger.js.map +1 -1
  31. package/dist/Logger/OneDSWriter.d.ts +0 -1
  32. package/dist/Logger/OneDSWriter.d.ts.map +1 -1
  33. package/dist/Logger/OneDSWriter.js +5 -3
  34. package/dist/Logger/OneDSWriter.js.map +1 -1
  35. package/dist/Testing/MockFetch.d.ts +23 -0
  36. package/dist/Testing/MockFetch.d.ts.map +1 -0
  37. package/dist/Testing/MockFetch.js +177 -0
  38. package/dist/Testing/MockFetch.js.map +1 -0
  39. package/dist/Testing/MockRoutes.d.ts +34 -0
  40. package/dist/Testing/MockRoutes.d.ts.map +1 -0
  41. package/dist/Testing/MockRoutes.js +226 -0
  42. package/dist/Testing/MockRoutes.js.map +1 -0
  43. package/dist/Testing/fixtures/connectors/commondataserviceforapps.d.ts +6 -0
  44. package/dist/Testing/fixtures/connectors/commondataserviceforapps.d.ts.map +1 -0
  45. package/dist/Testing/fixtures/connectors/commondataserviceforapps.js +25 -0
  46. package/dist/Testing/fixtures/connectors/commondataserviceforapps.js.map +1 -0
  47. package/dist/Testing/fixtures/connectors/dataverseContactEntity.d.ts +6 -0
  48. package/dist/Testing/fixtures/connectors/dataverseContactEntity.d.ts.map +1 -0
  49. package/dist/Testing/fixtures/connectors/dataverseContactEntity.js +55 -0
  50. package/dist/Testing/fixtures/connectors/dataverseContactEntity.js.map +1 -0
  51. package/dist/Testing/fixtures/connectors/excelonlinebusiness.d.ts +6 -0
  52. package/dist/Testing/fixtures/connectors/excelonlinebusiness.d.ts.map +1 -0
  53. package/dist/Testing/fixtures/connectors/excelonlinebusiness.js +1970 -0
  54. package/dist/Testing/fixtures/connectors/excelonlinebusiness.js.map +1 -0
  55. package/dist/Testing/fixtures/connectors/kusto.d.ts +6 -0
  56. package/dist/Testing/fixtures/connectors/kusto.d.ts.map +1 -0
  57. package/dist/Testing/fixtures/connectors/kusto.js +1333 -0
  58. package/dist/Testing/fixtures/connectors/kusto.js.map +1 -0
  59. package/dist/Testing/fixtures/connectors/msnweather.d.ts +6 -0
  60. package/dist/Testing/fixtures/connectors/msnweather.d.ts.map +1 -0
  61. package/dist/Testing/fixtures/connectors/msnweather.js +917 -0
  62. package/dist/Testing/fixtures/connectors/msnweather.js.map +1 -0
  63. package/dist/Testing/fixtures/connectors/office365groups.d.ts +6 -0
  64. package/dist/Testing/fixtures/connectors/office365groups.d.ts.map +1 -0
  65. package/dist/Testing/fixtures/connectors/office365groups.js +2144 -0
  66. package/dist/Testing/fixtures/connectors/office365groups.js.map +1 -0
  67. package/dist/Testing/fixtures/connectors/office365users.d.ts +6 -0
  68. package/dist/Testing/fixtures/connectors/office365users.d.ts.map +1 -0
  69. package/dist/Testing/fixtures/connectors/office365users.js +1969 -0
  70. package/dist/Testing/fixtures/connectors/office365users.js.map +1 -0
  71. package/dist/Testing/fixtures/connectors/onedriveforbusiness.d.ts +6 -0
  72. package/dist/Testing/fixtures/connectors/onedriveforbusiness.d.ts.map +1 -0
  73. package/dist/Testing/fixtures/connectors/onedriveforbusiness.js +4873 -0
  74. package/dist/Testing/fixtures/connectors/onedriveforbusiness.js.map +1 -0
  75. package/dist/Testing/fixtures/connectors/powerappsforappmakers.d.ts +6 -0
  76. package/dist/Testing/fixtures/connectors/powerappsforappmakers.d.ts.map +1 -0
  77. package/dist/Testing/fixtures/connectors/powerappsforappmakers.js +4682 -0
  78. package/dist/Testing/fixtures/connectors/powerappsforappmakers.js.map +1 -0
  79. package/dist/Testing/fixtures/connectors/sharepointTestListMetadata.d.ts +6 -0
  80. package/dist/Testing/fixtures/connectors/sharepointTestListMetadata.d.ts.map +1 -0
  81. package/dist/Testing/fixtures/connectors/sharepointTestListMetadata.js +1078 -0
  82. package/dist/Testing/fixtures/connectors/sharepointTestListMetadata.js.map +1 -0
  83. package/dist/Testing/fixtures/connectors/sharepointonline.d.ts +6 -0
  84. package/dist/Testing/fixtures/connectors/sharepointonline.d.ts.map +1 -0
  85. package/dist/Testing/fixtures/connectors/sharepointonline.js +28 -0
  86. package/dist/Testing/fixtures/connectors/sharepointonline.js.map +1 -0
  87. package/dist/Testing/fixtures/connectors/teams.d.ts +6 -0
  88. package/dist/Testing/fixtures/connectors/teams.d.ts.map +1 -0
  89. package/dist/Testing/fixtures/connectors/teams.js +9987 -0
  90. package/dist/Testing/fixtures/connectors/teams.js.map +1 -0
  91. package/dist/Testing/fixtures/connectors/translatorv2.d.ts +6 -0
  92. package/dist/Testing/fixtures/connectors/translatorv2.d.ts.map +1 -0
  93. package/dist/Testing/fixtures/connectors/translatorv2.js +307 -0
  94. package/dist/Testing/fixtures/connectors/translatorv2.js.map +1 -0
  95. package/dist/Testing/fixtures/index.d.ts +23 -0
  96. package/dist/Testing/fixtures/index.d.ts.map +1 -0
  97. package/dist/Testing/fixtures/index.js +96 -0
  98. package/dist/Testing/fixtures/index.js.map +1 -0
  99. package/dist/Types/Cli.types.d.ts +8 -0
  100. package/dist/Types/Cli.types.d.ts.map +1 -1
  101. package/dist/Utils/EnvVars.d.ts +1 -1
  102. package/dist/Utils/EnvVars.d.ts.map +1 -1
  103. package/dist/Utils/EnvVars.js.map +1 -1
  104. package/dist/Utils/GitUtils.d.ts +8 -4
  105. package/dist/Utils/GitUtils.d.ts.map +1 -1
  106. package/dist/Utils/GitUtils.js +15 -8
  107. package/dist/Utils/GitUtils.js.map +1 -1
  108. package/dist/Utils/MaafAppConfig.d.ts +2 -0
  109. package/dist/Utils/MaafAppConfig.d.ts.map +1 -1
  110. package/dist/Utils/MaafAppConfig.js +6 -0
  111. package/dist/Utils/MaafAppConfig.js.map +1 -1
  112. package/dist/Utils/RepoOption.d.ts +1 -0
  113. package/dist/Utils/RepoOption.d.ts.map +1 -1
  114. package/dist/Utils/RepoOption.js +14 -0
  115. package/dist/Utils/RepoOption.js.map +1 -1
  116. package/dist/Utils/ShareAccessRouting.d.ts +78 -0
  117. package/dist/Utils/ShareAccessRouting.d.ts.map +1 -0
  118. package/dist/Utils/ShareAccessRouting.js +93 -0
  119. package/dist/Utils/ShareAccessRouting.js.map +1 -0
  120. package/dist/Verbs/AddConnector.d.ts +6 -6
  121. package/dist/Verbs/AddConnector.d.ts.map +1 -1
  122. package/dist/Verbs/AddConnector.js +45 -29
  123. package/dist/Verbs/AddConnector.js.map +1 -1
  124. package/dist/Verbs/AddConnectorFlows.d.ts +9 -2
  125. package/dist/Verbs/AddConnectorFlows.d.ts.map +1 -1
  126. package/dist/Verbs/AddConnectorFlows.js +26 -7
  127. package/dist/Verbs/AddConnectorFlows.js.map +1 -1
  128. package/dist/Verbs/ConnectorHelpers.d.ts.map +1 -1
  129. package/dist/Verbs/ConnectorHelpers.js +0 -7
  130. package/dist/Verbs/ConnectorHelpers.js.map +1 -1
  131. package/dist/Verbs/CreateMaafApp.d.ts +8 -16
  132. package/dist/Verbs/CreateMaafApp.d.ts.map +1 -1
  133. package/dist/Verbs/CreateMaafApp.js +217 -90
  134. package/dist/Verbs/CreateMaafApp.js.map +1 -1
  135. package/dist/Verbs/DeleteMaafApp.d.ts +13 -9
  136. package/dist/Verbs/DeleteMaafApp.d.ts.map +1 -1
  137. package/dist/Verbs/DeleteMaafApp.js +41 -21
  138. package/dist/Verbs/DeleteMaafApp.js.map +1 -1
  139. package/dist/Verbs/DeployMaafApp.d.ts.map +1 -1
  140. package/dist/Verbs/DeployMaafApp.js +32 -7
  141. package/dist/Verbs/DeployMaafApp.js.map +1 -1
  142. package/dist/Verbs/FindDataverseApi.d.ts.map +1 -1
  143. package/dist/Verbs/FindDataverseApi.js +1 -15
  144. package/dist/Verbs/FindDataverseApi.js.map +1 -1
  145. package/dist/Verbs/GetMaafApp.d.ts.map +1 -1
  146. package/dist/Verbs/GetMaafApp.js +18 -6
  147. package/dist/Verbs/GetMaafApp.js.map +1 -1
  148. package/dist/Verbs/Init.d.ts.map +1 -1
  149. package/dist/Verbs/Init.js +53 -1
  150. package/dist/Verbs/Init.js.map +1 -1
  151. package/dist/Verbs/ListConnectionReferences.d.ts.map +1 -1
  152. package/dist/Verbs/ListConnectionReferences.js +1 -15
  153. package/dist/Verbs/ListConnectionReferences.js.map +1 -1
  154. package/dist/Verbs/ListDatasets.d.ts.map +1 -1
  155. package/dist/Verbs/ListDatasets.js +1 -15
  156. package/dist/Verbs/ListDatasets.js.map +1 -1
  157. package/dist/Verbs/ListEnvironmentVariables.d.ts.map +1 -1
  158. package/dist/Verbs/ListEnvironmentVariables.js +1 -15
  159. package/dist/Verbs/ListEnvironmentVariables.js.map +1 -1
  160. package/dist/Verbs/ListFlows.d.ts.map +1 -1
  161. package/dist/Verbs/ListFlows.js +1 -15
  162. package/dist/Verbs/ListFlows.js.map +1 -1
  163. package/dist/Verbs/ListSqlStoredProcedures.d.ts.map +1 -1
  164. package/dist/Verbs/ListSqlStoredProcedures.js +1 -15
  165. package/dist/Verbs/ListSqlStoredProcedures.js.map +1 -1
  166. package/dist/Verbs/ListTables.d.ts.map +1 -1
  167. package/dist/Verbs/ListTables.js +1 -15
  168. package/dist/Verbs/ListTables.js.map +1 -1
  169. package/dist/Verbs/MaafAppPermissions.d.ts +8 -17
  170. package/dist/Verbs/MaafAppPermissions.d.ts.map +1 -1
  171. package/dist/Verbs/MaafAppPermissions.js +84 -91
  172. package/dist/Verbs/MaafAppPermissions.js.map +1 -1
  173. package/dist/Verbs/Pack.d.ts +1 -1
  174. package/dist/Verbs/Pack.d.ts.map +1 -1
  175. package/dist/Verbs/Pack.js +109 -1
  176. package/dist/Verbs/Pack.js.map +1 -1
  177. package/dist/Verbs/RefreshDataSource.d.ts +10 -9
  178. package/dist/Verbs/RefreshDataSource.d.ts.map +1 -1
  179. package/dist/Verbs/RefreshDataSource.js +24 -23
  180. package/dist/Verbs/RefreshDataSource.js.map +1 -1
  181. package/dist/Verbs/RemoveDataSource.d.ts.map +1 -1
  182. package/dist/Verbs/RemoveDataSource.js +17 -3
  183. package/dist/Verbs/RemoveDataSource.js.map +1 -1
  184. package/dist/Verbs/ShareList.d.ts +10 -0
  185. package/dist/Verbs/ShareList.d.ts.map +1 -0
  186. package/dist/Verbs/ShareList.js +254 -0
  187. package/dist/Verbs/ShareList.js.map +1 -0
  188. package/dist/Verbs/VerbConstants.d.ts +44 -0
  189. package/dist/Verbs/VerbConstants.d.ts.map +1 -1
  190. package/dist/Verbs/VerbConstants.js +28 -0
  191. package/dist/Verbs/VerbConstants.js.map +1 -1
  192. package/dist/Verbs/index.d.ts +1 -0
  193. package/dist/Verbs/index.d.ts.map +1 -1
  194. package/dist/Verbs/index.js +1 -0
  195. package/dist/Verbs/index.js.map +1 -1
  196. package/package.json +4 -4
@@ -0,0 +1,226 @@
1
+ /*!
2
+ * Copyright (C) Microsoft Corporation. All rights reserved.
3
+ */
4
+ import { buildConnectionFixture, buildEnvironmentFixture, getConnectorFixture, getDataverseEntityFixture, getTableMetadataFixture, } from './fixtures/index.js';
5
+ /** Case-insensitive test for a substring anywhere in the URL. */
6
+ function urlIncludes(url, needle) {
7
+ return url.toLowerCase().includes(needle.toLowerCase());
8
+ }
9
+ /** Returns the path portion of a URL (no query string). */
10
+ function pathOf(url) {
11
+ const q = url.indexOf('?');
12
+ const noQuery = q === -1 ? url : url.slice(0, q);
13
+ try {
14
+ return new URL(noQuery).pathname;
15
+ }
16
+ catch {
17
+ return noQuery;
18
+ }
19
+ }
20
+ /** Extracts the `{name}` in `.../filter+eq+'{name}'` (URL-encoded or not). */
21
+ function extractEnvironmentName(url) {
22
+ const decoded = decodeURIComponent(url);
23
+ const match = decoded.match(/name eq '([^']+)'|environment eq '([^']+)'/i);
24
+ return match?.[1] ?? match?.[2] ?? 'mock-environment';
25
+ }
26
+ /**
27
+ * Ordered list of mock routes. The first route whose `match` returns true handles the request.
28
+ */
29
+ export const mockRoutes = [
30
+ // --- Power Apps RP: list code apps (`app list` legacy path) ---
31
+ {
32
+ name: 'powerapps.listApps',
33
+ match: (req) => req.method === 'GET' && /\/powerapps\/apps(\?|$)/i.test(req.url),
34
+ respond: () => ({ data: { value: [] } }),
35
+ },
36
+ // --- App Framework (MAAF): list apps (`app list`) ---
37
+ {
38
+ name: 'appframework.listApps',
39
+ match: (req) => req.method === 'GET' && urlIncludes(req.url, '/appframework/apps'),
40
+ respond: () => ({ data: { value: [] } }),
41
+ },
42
+ // --- Power Apps RP: resolve environment (returns Dataverse instanceApiUrl) ---
43
+ {
44
+ name: 'powerapps.environment',
45
+ match: (req) => req.method === 'GET' && urlIncludes(pathOf(req.url), '/powerapps/environment'),
46
+ respond: (req) => ({ data: buildEnvironmentFixture(extractEnvironmentName(req.url)) }),
47
+ },
48
+ // --- Governance: connector data policy (empty -> ALLOW_ALL) ---
49
+ {
50
+ name: 'governance.connectorDataPolicy',
51
+ match: (req) => req.method === 'GET' && urlIncludes(req.url, 'connectorDataPolicy'),
52
+ respond: () => ({ data: { value: [] } }),
53
+ },
54
+ // --- Governance: resolve/provision the user's routing (developer) environment ---
55
+ {
56
+ name: 'governance.userRoutingEnvironment',
57
+ match: (req) => req.method === 'GET' && urlIncludes(pathOf(req.url), '/governance/userRoutingEnvironment'),
58
+ respond: () => ({
59
+ status: 200,
60
+ data: {
61
+ environmentFound: true,
62
+ operationSuccess: true,
63
+ environment: { name: '86297537-2957-edd3-89bc-5fbdfa2831eb' },
64
+ },
65
+ }),
66
+ },
67
+ // --- Dataverse: option-set attribute metadata (enrichment; empty is tolerated) ---
68
+ {
69
+ name: 'dataverse.entityAttributesOptionSet',
70
+ match: (req) => req.method === 'GET' &&
71
+ /\/EntityDefinitions\(LogicalName='[^']+'\)\/Attributes\//i.test(pathOf(req.url)),
72
+ respond: () => ({ data: { value: [] } }),
73
+ },
74
+ // --- Dataverse: entity definition (EntityDefinitions(LogicalName='<table>')) ---
75
+ {
76
+ name: 'dataverse.entityDefinition',
77
+ match: (req) => req.method === 'GET' && /\/EntityDefinitions\(LogicalName='[^']+'\)/i.test(pathOf(req.url)),
78
+ respond: (req) => {
79
+ const logicalName = decodeURIComponent(pathOf(req.url).match(/EntityDefinitions\(LogicalName='([^']+)'\)/i)?.[1] ?? '');
80
+ const fixture = getDataverseEntityFixture(logicalName);
81
+ if (!fixture) {
82
+ return {
83
+ status: 404,
84
+ data: {
85
+ error: { code: 'EntityNotFound', message: `No fixture for entity '${logicalName}'.` },
86
+ },
87
+ };
88
+ }
89
+ return { data: fixture };
90
+ },
91
+ },
92
+ // --- Connectivity: request user consent on a connection (POST .../userConsent) ---
93
+ {
94
+ name: 'connectivity.userConsent',
95
+ match: (req) => req.method === 'POST' && urlIncludes(pathOf(req.url), '/userConsent'),
96
+ respond: () => ({ status: 200, data: {} }),
97
+ },
98
+ // --- APIM tabular runtime: table/resource metadata ($metadata.json/.../tables/{name}) ---
99
+ {
100
+ name: 'apim.tableMetadata',
101
+ match: (req) => req.method === 'GET' &&
102
+ urlIncludes(req.url, '/$metadata.json/datasets/') &&
103
+ /\/(tables|procedures)\/[^/]+$/i.test(pathOf(req.url)),
104
+ respond: (req) => {
105
+ const p = pathOf(req.url);
106
+ const resource = decodeURIComponent(p.match(/\/(?:tables|procedures)\/([^/]+)$/i)?.[1] ?? '');
107
+ const fixture = getTableMetadataFixture(resource);
108
+ if (!fixture) {
109
+ return {
110
+ status: 404,
111
+ data: {
112
+ error: { code: 'TableNotFound', message: `No fixture for table '${resource}'.` },
113
+ },
114
+ };
115
+ }
116
+ return { data: fixture };
117
+ },
118
+ },
119
+ // --- APIM tabular runtime: list datasets / tables (empty; tests pass explicit values) ---
120
+ {
121
+ name: 'apim.listDatasetsOrTables',
122
+ match: (req) => {
123
+ const p = pathOf(req.url);
124
+ return (req.method === 'GET' &&
125
+ (/\/datasets$/i.test(p) || /\/datasets\/[^/]+\/(allTables|tables|procedures)$/i.test(p)));
126
+ },
127
+ respond: () => ({ data: { value: [] } }),
128
+ },
129
+ // --- Connectivity: single connection (must precede the single-connector route) ---
130
+ {
131
+ name: 'connectivity.getConnection',
132
+ match: (req) => {
133
+ const p = pathOf(req.url);
134
+ return (req.method === 'GET' && /\/connectivity\/connectors\/[^/]+\/connections\/[^/]+$/i.test(p));
135
+ },
136
+ respond: (req) => {
137
+ const p = pathOf(req.url);
138
+ const m = p.match(/\/connectivity\/connectors\/([^/]+)\/connections\/([^/]+)$/i);
139
+ return { data: buildConnectionFixture(m?.[1] ?? 'unknown', m?.[2] ?? 'unknown') };
140
+ },
141
+ },
142
+ // --- Connectivity: list connections for a connector ---
143
+ {
144
+ name: 'connectivity.listConnections',
145
+ match: (req) => {
146
+ const p = pathOf(req.url);
147
+ return req.method === 'GET' && /\/connectivity\/connectors\/[^/]+\/connections$/i.test(p);
148
+ },
149
+ respond: () => ({ data: { value: [] } }),
150
+ },
151
+ // --- Connectivity: single connector (with or without $expand=swagger) ---
152
+ {
153
+ name: 'connectivity.getConnector',
154
+ match: (req) => {
155
+ const p = pathOf(req.url);
156
+ return req.method === 'GET' && /\/connectivity\/connectors\/[^/]+$/i.test(p);
157
+ },
158
+ respond: (req) => {
159
+ const p = pathOf(req.url);
160
+ const apiId = p.match(/\/connectivity\/connectors\/([^/]+)$/i)?.[1] ?? '';
161
+ const fixture = getConnectorFixture(decodeURIComponent(apiId));
162
+ if (!fixture) {
163
+ return {
164
+ status: 404,
165
+ data: { error: { code: 'ConnectorNotFound', message: `No fixture for '${apiId}'.` } },
166
+ };
167
+ }
168
+ return { data: fixture };
169
+ },
170
+ },
171
+ // --- Connectivity: list connectors ---
172
+ {
173
+ name: 'connectivity.listConnectors',
174
+ match: (req) => {
175
+ const p = pathOf(req.url);
176
+ return req.method === 'GET' && /\/connectivity\/connectors$/i.test(p);
177
+ },
178
+ respond: () => ({ data: { value: [] } }),
179
+ },
180
+ // --- App framework: locate an app's tenant/environment (POST /appframework/apps/{id}/locate) ---
181
+ {
182
+ name: 'appframework.locateApp',
183
+ match: (req) => req.method === 'POST' && /\/appframework\/apps\/[^/]+\/locate$/i.test(pathOf(req.url)),
184
+ respond: (req) => {
185
+ const appName = decodeURIComponent(pathOf(req.url).match(/\/appframework\/apps\/([^/]+)\/locate$/i)?.[1] ?? 'Test App');
186
+ return {
187
+ status: 200,
188
+ data: {
189
+ tenantId: '00000000-0000-0000-0000-000000000001',
190
+ environmentName: '86297537-2957-edd3-89bc-5fbdfa2831eb',
191
+ geo: 'unitedstates',
192
+ appName,
193
+ repositoryId: '99999999-8888-7777-6666-555555555555',
194
+ },
195
+ };
196
+ },
197
+ },
198
+ // --- App framework: delete a Microsoft App (DELETE /appframework/apps/{id}) ---
199
+ {
200
+ name: 'appframework.deleteApp',
201
+ match: (req) => req.method === 'DELETE' && /\/appframework\/apps\/[^/]+$/i.test(pathOf(req.url)),
202
+ respond: () => ({ status: 200, data: {} }),
203
+ },
204
+ // --- App framework: create a Microsoft App (POST /appframework/apps) ---
205
+ {
206
+ name: 'appframework.createApp',
207
+ match: (req) => req.method === 'POST' && /\/appframework\/apps$/i.test(pathOf(req.url)),
208
+ respond: (req) => {
209
+ const body = (req.body ?? {});
210
+ const environmentId = body.environmentId ?? '86297537-2957-edd3-89bc-5fbdfa2831eb';
211
+ return {
212
+ status: 201,
213
+ data: {
214
+ id: '11111111-2222-3333-4444-555555555555',
215
+ name: '11111111-2222-3333-4444-555555555555',
216
+ location: 'unitedstates',
217
+ displayName: body.displayName ?? 'Test App',
218
+ environmentId,
219
+ repositoryId: '99999999-8888-7777-6666-555555555555',
220
+ description: body.description ?? '',
221
+ },
222
+ };
223
+ },
224
+ },
225
+ ];
226
+ //# sourceMappingURL=MockRoutes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MockRoutes.js","sourceRoot":"","sources":["../../src/Testing/MockRoutes.ts"],"names":[],"mappings":"AAAA;;GAEG;AAgCH,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,mBAAmB,EACnB,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,YAAY,CAAC;AAEpB,iEAAiE;AACjE,SAAS,WAAW,CAAC,GAAW,EAAE,MAAc;IAC9C,OAAO,GAAG,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC;AAC1D,CAAC;AAED,2DAA2D;AAC3D,SAAS,MAAM,CAAC,GAAW;IACzB,MAAM,CAAC,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC3B,MAAM,OAAO,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CA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*/
4
+ declare const connector: Record<string, unknown>;
5
+ export default connector;
6
+ //# sourceMappingURL=commondataserviceforapps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commondataserviceforapps.d.ts","sourceRoot":"","sources":["../../../../src/Testing/fixtures/connectors/commondataserviceforapps.ts"],"names":[],"mappings":"AAAA;;GAEG;AAWH,QAAA,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAYtC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,25 @@
1
+ /*!
2
+ * Copyright (C) Microsoft Corporation. All rights reserved.
3
+ */
4
+ // Synthesized Common Data Service for Apps (Dataverse) connector fixture. The CDS add path first
5
+ // runs the standard connector-action flow (which needs a valid `swagger` for codegen) and then
6
+ // binds a Dataverse table via the environment's org URL — no connection is required, so the
7
+ // connection-parameter surface is intentionally emptied here to keep the flow non-interactive.
8
+ import office365users from './office365users.js';
9
+ const base = office365users;
10
+ const baseProps = (base.properties ?? {});
11
+ const connector = {
12
+ ...base,
13
+ name: 'shared_commondataserviceforapps',
14
+ id: '/providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps',
15
+ type: 'Microsoft.PowerApps/apis',
16
+ properties: {
17
+ ...baseProps,
18
+ displayName: 'Microsoft Dataverse (legacy)',
19
+ connectionParameters: {},
20
+ connectionParameterSets: undefined,
21
+ metadata: { allowSharing: false },
22
+ },
23
+ };
24
+ export default connector;
25
+ //# sourceMappingURL=commondataserviceforapps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commondataserviceforapps.js","sourceRoot":"","sources":["../../../../src/Testing/fixtures/connectors/commondataserviceforapps.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,iGAAiG;AACjG,+FAA+F;AAC/F,4FAA4F;AAC5F,+FAA+F;AAC/F,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,MAAM,IAAI,GAAG,cAAyC,CAAC;AACvD,MAAM,SAAS,GAAG,CAAC,IAAI,CAAC,UAAU,IAAI,EAAE,CAA4B,CAAC;AAErE,MAAM,SAAS,GAA4B;IACzC,GAAG,IAAI;IACP,IAAI,EAAE,iCAAiC;IACvC,EAAE,EAAE,qEAAqE;IACzE,IAAI,EAAE,0BAA0B;IAChC,UAAU,EAAE;QACV,GAAG,SAAS;QACZ,WAAW,EAAE,8BAA8B;QAC3C,oBAAoB,EAAE,EAAE;QACxB,uBAAuB,EAAE,SAAS;QAClC,QAAQ,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE;KAClC;CACF,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright (C) Microsoft Corporation. All rights reserved.
3
+ */
4
+ declare const entityDefinition: Record<string, unknown>;
5
+ export default entityDefinition;
6
+ //# sourceMappingURL=dataverseContactEntity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataverseContactEntity.d.ts","sourceRoot":"","sources":["../../../../src/Testing/fixtures/connectors/dataverseContactEntity.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,QAAA,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CA8C7C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,55 @@
1
+ /*!
2
+ * Copyright (C) Microsoft Corporation. All rights reserved.
3
+ */
4
+ // Minimal Dataverse EntityDefinition (the `EntityDefinitions(LogicalName='contact')` response)
5
+ // used by the CDS Dataverse table add flow in E2E. Contains just enough attribute metadata for
6
+ // `convertEntityDefinitionToSchema` and codegen to emit a valid Contact model/service.
7
+ const entityDefinition = {
8
+ MetadataId: '11111111-1111-1111-1111-111111111111',
9
+ LogicalName: 'contact',
10
+ EntitySetName: 'contacts',
11
+ PrimaryIdAttribute: 'contactid',
12
+ PrimaryNameAttribute: 'fullname',
13
+ DisplayName: { UserLocalizedLabel: { Label: 'Contact' } },
14
+ DisplayCollectionName: { UserLocalizedLabel: { Label: 'Contacts' } },
15
+ Attributes: [
16
+ {
17
+ LogicalName: 'contactid',
18
+ SchemaName: 'ContactId',
19
+ AttributeTypeName: { Value: 'Uniqueidentifier' },
20
+ DisplayName: { UserLocalizedLabel: { Label: 'Contact' } },
21
+ IsPrimaryId: true,
22
+ IsValidForCreate: false,
23
+ IsValidForUpdate: false,
24
+ RequiredLevel: { Value: 'SystemRequired' },
25
+ },
26
+ {
27
+ LogicalName: 'fullname',
28
+ SchemaName: 'FullName',
29
+ AttributeTypeName: { Value: 'String' },
30
+ DisplayName: { UserLocalizedLabel: { Label: 'Full Name' } },
31
+ IsPrimaryName: true,
32
+ MaxLength: 160,
33
+ },
34
+ {
35
+ LogicalName: 'emailaddress1',
36
+ SchemaName: 'EMailAddress1',
37
+ AttributeTypeName: { Value: 'String' },
38
+ DisplayName: { UserLocalizedLabel: { Label: 'Email' } },
39
+ MaxLength: 100,
40
+ },
41
+ {
42
+ LogicalName: 'createdon',
43
+ SchemaName: 'CreatedOn',
44
+ AttributeTypeName: { Value: 'DateTime' },
45
+ DisplayName: { UserLocalizedLabel: { Label: 'Created On' } },
46
+ IsValidForCreate: false,
47
+ IsValidForUpdate: false,
48
+ },
49
+ ],
50
+ ManyToOneRelationships: [],
51
+ OneToManyRelationships: [],
52
+ ManyToManyRelationships: [],
53
+ };
54
+ export default entityDefinition;
55
+ //# sourceMappingURL=dataverseContactEntity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataverseContactEntity.js","sourceRoot":"","sources":["../../../../src/Testing/fixtures/connectors/dataverseContactEntity.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,+FAA+F;AAC/F,+FAA+F;AAC/F,uFAAuF;AACvF,MAAM,gBAAgB,GAA4B;IAChD,UAAU,EAAE,sCAAsC;IAClD,WAAW,EAAE,SAAS;IACtB,aAAa,EAAE,UAAU;IACzB,kBAAkB,EAAE,WAAW;IAC/B,oBAAoB,EAAE,UAAU;IAChC,WAAW,EAAE,EAAE,kBAAkB,EAAE,EAAE,KAAK,EAAE,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
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright (C) Microsoft Corporation. All rights reserved.
3
+ */
4
+ declare const connector: Record<string, unknown>;
5
+ export default connector;
6
+ //# sourceMappingURL=excelonlinebusiness.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"excelonlinebusiness.d.ts","sourceRoot":"","sources":["../../../../src/Testing/fixtures/connectors/excelonlinebusiness.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,QAAA,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAs9DtC,CAAC;AAEF,eAAe,SAAS,CAAC"}