@microsoft/power-apps-cli 0.6.4 → 0.6.7

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 (113) hide show
  1. package/lib/ArgumentProvider.d.ts +2 -2
  2. package/lib/ArgumentProvider.d.ts.map +1 -1
  3. package/lib/ArgumentProvider.js +8 -6
  4. package/lib/ArgumentProvider.js.map +1 -1
  5. package/lib/Cli.js +1 -1
  6. package/lib/Cli.js.map +1 -1
  7. package/lib/Logger/CliLogger.d.ts +7 -1
  8. package/lib/Logger/CliLogger.d.ts.map +1 -1
  9. package/lib/Logger/CliLogger.js +45 -24
  10. package/lib/Logger/CliLogger.js.map +1 -1
  11. package/lib/Verbs/Push.d.ts.map +1 -1
  12. package/lib/Verbs/Push.js +4 -3
  13. package/lib/Verbs/Push.js.map +1 -1
  14. package/lib/Verbs/Run.d.ts.map +1 -1
  15. package/lib/Verbs/Run.js +9 -8
  16. package/lib/Verbs/Run.js.map +1 -1
  17. package/lib/Verbs/VerbConstants.d.ts +19 -1
  18. package/lib/Verbs/VerbConstants.d.ts.map +1 -1
  19. package/lib/Verbs/VerbConstants.js +23 -5
  20. package/lib/Verbs/VerbConstants.js.map +1 -1
  21. package/lib/__tests__/UnitTests/CliLogger.test.js +34 -24
  22. package/lib/__tests__/UnitTests/CliLogger.test.js.map +1 -1
  23. package/lib/__tests__/UnitTests/ListEnvironmentVariables.spec.js +4 -4
  24. package/lib/__tests__/UnitTests/ListEnvironmentVariables.spec.js.map +1 -1
  25. package/lib/__tests__/mocks/CliLogger.mocks.d.ts +7 -0
  26. package/lib/__tests__/mocks/CliLogger.mocks.d.ts.map +1 -0
  27. package/lib/__tests__/mocks/CliLogger.mocks.js +22 -0
  28. package/lib/__tests__/mocks/CliLogger.mocks.js.map +1 -0
  29. package/lib-cjs/ArgumentProvider.d.ts +2 -2
  30. package/lib-cjs/ArgumentProvider.d.ts.map +1 -1
  31. package/lib-cjs/ArgumentProvider.js +10 -6
  32. package/lib-cjs/ArgumentProvider.js.map +1 -1
  33. package/lib-cjs/Cli.js +1 -1
  34. package/lib-cjs/Cli.js.map +1 -1
  35. package/lib-cjs/Logger/CliLogger.d.ts +7 -1
  36. package/lib-cjs/Logger/CliLogger.d.ts.map +1 -1
  37. package/lib-cjs/Logger/CliLogger.js +58 -30
  38. package/lib-cjs/Logger/CliLogger.js.map +1 -1
  39. package/lib-cjs/Verbs/Push.d.ts.map +1 -1
  40. package/lib-cjs/Verbs/Push.js +4 -3
  41. package/lib-cjs/Verbs/Push.js.map +1 -1
  42. package/lib-cjs/Verbs/Run.d.ts.map +1 -1
  43. package/lib-cjs/Verbs/Run.js +9 -8
  44. package/lib-cjs/Verbs/Run.js.map +1 -1
  45. package/lib-cjs/Verbs/VerbConstants.d.ts +19 -1
  46. package/lib-cjs/Verbs/VerbConstants.d.ts.map +1 -1
  47. package/lib-cjs/Verbs/VerbConstants.js +24 -6
  48. package/lib-cjs/Verbs/VerbConstants.js.map +1 -1
  49. package/lib-cjs/__tests__/UnitTests/CliLogger.test.js +54 -24
  50. package/lib-cjs/__tests__/UnitTests/CliLogger.test.js.map +1 -1
  51. package/lib-cjs/__tests__/UnitTests/ListEnvironmentVariables.spec.js +4 -4
  52. package/lib-cjs/__tests__/UnitTests/ListEnvironmentVariables.spec.js.map +1 -1
  53. package/lib-cjs/__tests__/mocks/CliLogger.mocks.d.ts +6 -0
  54. package/lib-cjs/__tests__/mocks/CliLogger.mocks.d.ts.map +1 -0
  55. package/lib-cjs/__tests__/mocks/CliLogger.mocks.js +26 -0
  56. package/lib-cjs/__tests__/mocks/CliLogger.mocks.js.map +1 -0
  57. package/node_modules/@microsoft/powerapps-data/package.json +2 -2
  58. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/AddDataSource.js +8 -3
  59. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/AddDataSource.js.map +1 -1
  60. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/DeleteDataSource.d.ts.map +1 -1
  61. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/DeleteDataSource.js +7 -2
  62. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/DeleteDataSource.js.map +1 -1
  63. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/PushApp.d.ts.map +1 -1
  64. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/PushApp.js +7 -3
  65. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/PushApp.js.map +1 -1
  66. package/node_modules/@microsoft/powerapps-player-actions/lib/CodeGen/modelServiceGenerator.d.ts +16 -300
  67. package/node_modules/@microsoft/powerapps-player-actions/lib/CodeGen/modelServiceGenerator.d.ts.map +1 -1
  68. package/node_modules/@microsoft/powerapps-player-actions/lib/CodeGen/modelServiceGenerator.js +2280 -2320
  69. package/node_modules/@microsoft/powerapps-player-actions/lib/CodeGen/modelServiceGenerator.js.map +1 -1
  70. package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/AzureDevOpsModelServiceGenerator.spec.js +11 -3
  71. package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/AzureDevOpsModelServiceGenerator.spec.js.map +1 -1
  72. package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/DeleteDataSource.spec.js +3 -5
  73. package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/DeleteDataSource.spec.js.map +1 -1
  74. package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/ModelServiceGenerator.spec.js +95 -20
  75. package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/ModelServiceGenerator.spec.js.map +1 -1
  76. package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/arrayTypeGeneration.spec.js +6 -2
  77. package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/arrayTypeGeneration.spec.js.map +1 -1
  78. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/AddDataSource.js +7 -2
  79. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/AddDataSource.js.map +1 -1
  80. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/DeleteDataSource.d.ts.map +1 -1
  81. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/DeleteDataSource.js +6 -1
  82. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/DeleteDataSource.js.map +1 -1
  83. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/PushApp.d.ts.map +1 -1
  84. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/PushApp.js +14 -10
  85. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/PushApp.js.map +1 -1
  86. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/CodeGen/modelServiceGenerator.d.ts +16 -300
  87. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/CodeGen/modelServiceGenerator.d.ts.map +1 -1
  88. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/CodeGen/modelServiceGenerator.js +2801 -2853
  89. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/CodeGen/modelServiceGenerator.js.map +1 -1
  90. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/__tests__/AzureDevOpsModelServiceGenerator.spec.js +10 -2
  91. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/__tests__/AzureDevOpsModelServiceGenerator.spec.js.map +1 -1
  92. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/__tests__/DeleteDataSource.spec.js +2 -4
  93. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/__tests__/DeleteDataSource.spec.js.map +1 -1
  94. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/__tests__/ModelServiceGenerator.spec.js +94 -19
  95. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/__tests__/ModelServiceGenerator.spec.js.map +1 -1
  96. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/__tests__/arrayTypeGeneration.spec.js +5 -1
  97. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/__tests__/arrayTypeGeneration.spec.js.map +1 -1
  98. package/node_modules/@microsoft/powerapps-player-actions/package.json +2 -2
  99. package/node_modules/@pa-client/powerapps-player-services/lib/Services/PlayerLaunchService/PlayerLaunchService.types.d.ts +12 -0
  100. package/node_modules/@pa-client/powerapps-player-services/lib/Services/PlayerLaunchService/PlayerLaunchService.types.d.ts.map +1 -1
  101. package/node_modules/@pa-client/powerapps-player-services/lib/index.d.ts +2 -2
  102. package/node_modules/@pa-client/powerapps-player-services/lib/index.d.ts.map +1 -1
  103. package/node_modules/@pa-client/powerapps-player-services/lib/index.js +1 -1
  104. package/node_modules/@pa-client/powerapps-player-services/lib/index.js.map +1 -1
  105. package/node_modules/@pa-client/powerapps-player-services/lib-cjs/Services/PlayerLaunchService/PlayerLaunchService.types.d.ts +12 -0
  106. package/node_modules/@pa-client/powerapps-player-services/lib-cjs/Services/PlayerLaunchService/PlayerLaunchService.types.d.ts.map +1 -1
  107. package/node_modules/@pa-client/powerapps-player-services/lib-cjs/index.d.ts +2 -2
  108. package/node_modules/@pa-client/powerapps-player-services/lib-cjs/index.d.ts.map +1 -1
  109. package/node_modules/@pa-client/powerapps-player-services/lib-cjs/index.js +8 -1
  110. package/node_modules/@pa-client/powerapps-player-services/lib-cjs/index.js.map +1 -1
  111. package/node_modules/@pa-client/powerapps-player-services/package.json +1 -1
  112. package/package.json +4 -4
  113. package/readme.md +286 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,YAAY,GACb,MAAM,4BAA4B,CAAC;AAGpC,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACrG,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAGhF,YAAY,EACV,GAAG,EACH,GAAG,EACH,UAAU,EACV,WAAW,EACX,iBAAiB,GAClB,MAAM,0DAA0D,CAAC;AAGlE,OAAO,EACL,6BAA6B,EAC7B,wBAAwB,EACxB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,6CAA6C,CAAC;AAErD,YAAY,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACzF,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,kCAAkC,EAClC,2BAA2B,EAC3B,qBAAqB,EACrB,cAAc,GACf,MAAM,qCAAqC,CAAC;AAG7C,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAC;AAC7F,YAAY,EACV,sBAAsB,EACtB,oCAAoC,GACrC,MAAM,qCAAqC,CAAC;AAG7C,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,eAAe,GAChB,MAAM,2CAA2C,CAAC;AAGnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,oCAAoC,EAAE,MAAM,kCAAkC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,YAAY,GACb,MAAM,4BAA4B,CAAC;AAGpC,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACrG,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAGhF,YAAY,EACV,GAAG,EACH,GAAG,EACH,UAAU,EACV,WAAW,EACX,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,0DAA0D,CAAC;AAGlE,OAAO,EACL,6BAA6B,EAC7B,wBAAwB,EACxB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,6CAA6C,CAAC;AAErD,YAAY,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACzF,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,kCAAkC,EAClC,2BAA2B,EAC3B,qBAAqB,EACrB,cAAc,GACf,MAAM,qCAAqC,CAAC;AAG7C,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAC;AAC7F,YAAY,EACV,sBAAsB,EACtB,oCAAoC,GACrC,MAAM,qCAAqC,CAAC;AAG7C,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,eAAe,EACf,SAAS,EACT,UAAU,EACV,uBAAuB,EACvB,oBAAoB,EACpB,UAAU,EACV,OAAO,EACP,YAAY,GACb,MAAM,2CAA2C,CAAC;AAGnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,oCAAoC,EAAE,MAAM,kCAAkC,CAAC"}
@@ -3,7 +3,7 @@
3
3
  * Copyright (C) Microsoft Corporation. All rights reserved.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.getPowerPlatformApiEnvironmentConfig = exports.getBapRpServiceConfig = exports.logDataRequests = exports.getEnvironmentByName = exports.listAppsAsync = exports.DataverseSystemDataService = exports.DataverseMetadataService = exports.getTablesAsync = exports.getTableMetadataAsync = exports.getSqlStoredProceduresAsync = exports.getSqlStoredProcedureMetadataAsync = exports.getResourceMetadataAsync = exports.getDatasetsAsync = exports.isConnectionShareable = exports.getConnectorAsync = exports.getConnectionByNameAsync = exports.getActiveUserConnectionsAsync = exports.updateRegion = exports.updateEnvironmentName = exports.getPlayerServiceConfig = exports.initializePlayerServices = void 0;
6
+ exports.getPowerPlatformApiEnvironmentConfig = exports.getBapRpServiceConfig = exports.startSession = exports.saveApp = exports.publishApp = exports.makeAppSolutionAware = exports.generateResourceStorage = exports.endSession = exports.createApp = exports.logDataRequests = exports.getEnvironmentByName = exports.listAppsAsync = exports.DataverseSystemDataService = exports.DataverseMetadataService = exports.getTablesAsync = exports.getTableMetadataAsync = exports.getSqlStoredProceduresAsync = exports.getSqlStoredProcedureMetadataAsync = exports.getResourceMetadataAsync = exports.getDatasetsAsync = exports.isConnectionShareable = exports.getConnectorAsync = exports.getConnectionByNameAsync = exports.getActiveUserConnectionsAsync = exports.updateRegion = exports.updateEnvironmentName = exports.getPlayerServiceConfig = exports.initializePlayerServices = void 0;
7
7
  // as it contains shared logic for various scenarios. Consumers of this package
8
8
  // should reference the files they need directly using @pa-client/powerapps-player-services/lib
9
9
  // to only pull in the files they need
@@ -36,6 +36,13 @@ var PowerAppsRpService_1 = require("./Services/PowerAppsRp/PowerAppsRpService");
36
36
  Object.defineProperty(exports, "listAppsAsync", { enumerable: true, get: function () { return PowerAppsRpService_1.listAppsAsync; } });
37
37
  Object.defineProperty(exports, "getEnvironmentByName", { enumerable: true, get: function () { return PowerAppsRpService_1.getEnvironmentByName; } });
38
38
  Object.defineProperty(exports, "logDataRequests", { enumerable: true, get: function () { return PowerAppsRpService_1.logDataRequests; } });
39
+ Object.defineProperty(exports, "createApp", { enumerable: true, get: function () { return PowerAppsRpService_1.createApp; } });
40
+ Object.defineProperty(exports, "endSession", { enumerable: true, get: function () { return PowerAppsRpService_1.endSession; } });
41
+ Object.defineProperty(exports, "generateResourceStorage", { enumerable: true, get: function () { return PowerAppsRpService_1.generateResourceStorage; } });
42
+ Object.defineProperty(exports, "makeAppSolutionAware", { enumerable: true, get: function () { return PowerAppsRpService_1.makeAppSolutionAware; } });
43
+ Object.defineProperty(exports, "publishApp", { enumerable: true, get: function () { return PowerAppsRpService_1.publishApp; } });
44
+ Object.defineProperty(exports, "saveApp", { enumerable: true, get: function () { return PowerAppsRpService_1.saveApp; } });
45
+ Object.defineProperty(exports, "startSession", { enumerable: true, get: function () { return PowerAppsRpService_1.startSession; } });
39
46
  // === Configuration Services ===
40
47
  var BapRpServiceConfig_1 = require("./Services/BapRp/BapRpServiceConfig");
41
48
  Object.defineProperty(exports, "getBapRpServiceConfig", { enumerable: true, get: function () { return BapRpServiceConfig_1.getBapRpServiceConfig; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,+EAA+E;AAC/E,+FAA+F;AAC/F,sCAAsC;AAEtC,wBAAwB;AACxB,uEAKoC;AAJlC,oIAAA,wBAAwB,OAAA;AACxB,kIAAA,sBAAsB,OAAA;AACtB,iIAAA,qBAAqB,OAAA;AACrB,wHAAA,YAAY,OAAA;AAgBd,gCAAgC;AAChC,mFAKqD;AAJnD,oIAAA,6BAA6B,OAAA;AAC7B,+HAAA,wBAAwB,OAAA;AACxB,wHAAA,iBAAiB,OAAA;AACjB,4HAAA,qBAAqB,OAAA;AAIvB,mEAO6C;AAN3C,+GAAA,gBAAgB,OAAA;AAChB,uHAAA,wBAAwB,OAAA;AACxB,iIAAA,kCAAkC,OAAA;AAClC,0HAAA,2BAA2B,OAAA;AAC3B,oHAAA,qBAAqB,OAAA;AACrB,6GAAA,cAAc,OAAA;AAGhB,6BAA6B;AAC7B,kDAAgE;AAAvD,qHAAA,wBAAwB,OAAA;AACjC,8FAA6F;AAApF,wIAAA,0BAA0B,OAAA;AAMnC,6BAA6B;AAC7B,gFAImD;AAHjD,mHAAA,aAAa,OAAA;AACb,0HAAA,oBAAoB,OAAA;AACpB,qHAAA,eAAe,OAAA;AAGjB,iCAAiC;AACjC,0EAA4E;AAAnE,2HAAA,qBAAqB,OAAA;AAC9B,0EAAwF;AAA/E,6IAAA,oCAAoC,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,+EAA+E;AAC/E,+FAA+F;AAC/F,sCAAsC;AAEtC,wBAAwB;AACxB,uEAKoC;AAJlC,oIAAA,wBAAwB,OAAA;AACxB,kIAAA,sBAAsB,OAAA;AACtB,iIAAA,qBAAqB,OAAA;AACrB,wHAAA,YAAY,OAAA;AAiBd,gCAAgC;AAChC,mFAKqD;AAJnD,oIAAA,6BAA6B,OAAA;AAC7B,+HAAA,wBAAwB,OAAA;AACxB,wHAAA,iBAAiB,OAAA;AACjB,4HAAA,qBAAqB,OAAA;AAIvB,mEAO6C;AAN3C,+GAAA,gBAAgB,OAAA;AAChB,uHAAA,wBAAwB,OAAA;AACxB,iIAAA,kCAAkC,OAAA;AAClC,0HAAA,2BAA2B,OAAA;AAC3B,oHAAA,qBAAqB,OAAA;AACrB,6GAAA,cAAc,OAAA;AAGhB,6BAA6B;AAC7B,kDAAgE;AAAvD,qHAAA,wBAAwB,OAAA;AACjC,8FAA6F;AAApF,wIAAA,0BAA0B,OAAA;AAMnC,6BAA6B;AAC7B,gFAWmD;AAVjD,mHAAA,aAAa,OAAA;AACb,0HAAA,oBAAoB,OAAA;AACpB,qHAAA,eAAe,OAAA;AACf,+GAAA,SAAS,OAAA;AACT,gHAAA,UAAU,OAAA;AACV,6HAAA,uBAAuB,OAAA;AACvB,0HAAA,oBAAoB,OAAA;AACpB,gHAAA,UAAU,OAAA;AACV,6GAAA,OAAO,OAAA;AACP,kHAAA,YAAY,OAAA;AAGd,iCAAiC;AACjC,0EAA4E;AAAnE,2HAAA,qBAAqB,OAAA;AAC9B,0EAAwF;AAA/E,6IAAA,oCAAoC,OAAA"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pa-client/powerapps-player-services",
3
- "version": "3.0.2",
3
+ "version": "3.1.1",
4
4
  "main": "./lib-cjs/index.js",
5
5
  "module": "./lib/index.js",
6
6
  "license": "UNLICENSED",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/power-apps-cli",
3
- "version": "0.6.4",
3
+ "version": "0.6.7",
4
4
  "description": "CLI for PowerApps",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -56,9 +56,9 @@
56
56
  "@microsoft/1ds-properties-js"
57
57
  ],
58
58
  "dependencies": {
59
- "@pa-client/powerapps-player-services": "3.0.2",
60
- "@microsoft/powerapps-player-actions": "3.6.1",
61
- "@microsoft/powerapps-data": "1.12.18",
59
+ "@pa-client/powerapps-player-services": "3.1.1",
60
+ "@microsoft/powerapps-player-actions": "3.7.0",
61
+ "@microsoft/powerapps-data": "1.12.20",
62
62
  "@ms/power-platform-api": "1.2.66",
63
63
  "@azure/msal-node": "3.6.3",
64
64
  "@azure/msal-node-extensions": "1.5.17",
package/readme.md CHANGED
@@ -1,3 +1,288 @@
1
1
  # @microsoft/power-apps-cli
2
2
 
3
- Internal CLI for @microsoft/power-apps. Not meant to be installed without the other package also installed with an app.
3
+ A command-line interface for managing Power Apps code apps. This CLI enables you to initialize, develop, and publish Code Apps directly from your terminal.
4
+
5
+ > **Note:** This CLI is designed to be used alongside the `@microsoft/power-apps` package. It is generally not recommended to install this package separately. When you install `@microsoft/power-apps`, this CLI is included automatically.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install @microsoft/power-apps-cli
11
+ ```
12
+
13
+ After installation, run commands using:
14
+
15
+ ```bash
16
+ npx power-apps <command>
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ You can use the CLI in two ways:
22
+
23
+ 1. **Pass options directly:** Provide all required options as command-line arguments.
24
+
25
+ ```bash
26
+ npx power-apps init --displayName "My App" --environmentId abc-123
27
+ ```
28
+
29
+ 2. **Interactive prompts:** Simply run a command without options, and the CLI will prompt you for any required information.
30
+ ```bash
31
+ npx power-apps init
32
+ # The CLI will interactively ask for display name, environment ID, etc.
33
+ ```
34
+
35
+ ## Configuration
36
+
37
+ The CLI reads configuration from your `power.config.json` file:
38
+
39
+ - **`environmentId`** - Required. The environment ID to connect to. If a config file is not present yet, the CLI will prompt you to provide one.
40
+ - **`region`** - The cloud instance region. If a config file is not present yet, defaults to `prod`.
41
+
42
+ ## Global Options
43
+
44
+ | Option | Alias | Description |
45
+ | ----------------- | ----- | ----------------------------------------------------- |
46
+ | `--region` | `-r` | Cloud instance region to use (e.g., prod, test, etc.) |
47
+ | `--environmentId` | `-e` | Environment ID to connect to |
48
+ | `--help` | `-h` | Display help for a command |
49
+ | `--version` | `-v` | Output the current version |
50
+
51
+ ## Commands
52
+
53
+ ### `init`
54
+
55
+ Initialize a new Power Apps code app.
56
+
57
+ ```bash
58
+ npx power-apps init [options]
59
+ ```
60
+
61
+ **Options:**
62
+
63
+ | Option | Alias | Description | Default |
64
+ | ------------------ | ----- | ----------------------------------------------------- | ----------------------- |
65
+ | `--environmentId` | `-e` | Environment ID to connect to | |
66
+ | `--region` | `-r` | Cloud instance region to use (e.g., prod, test, etc.) | `prod` |
67
+ | `--displayName` | `-n` | Display name for the app | |
68
+ | `--description` | `-d` | App description | _(empty)_ |
69
+ | `--buildPath` | `-b` | Build output path | `./dist` |
70
+ | `--fileEntryPoint` | `-f` | Entry point file for the app | `index.html` |
71
+ | `--appUrl` | `-a` | Local URL where the app is hosted | `http://localhost:3000` |
72
+ | `--logoPath` | `-l` | Path to the app logo file | `Default` |
73
+
74
+ ---
75
+
76
+ ### `run`
77
+
78
+ Run the code app locally for development.
79
+
80
+ ```bash
81
+ npx power-apps run [options]
82
+ ```
83
+
84
+ **Options:**
85
+
86
+ | Option | Alias | Description | Default |
87
+ | --------------- | ----- | --------------------------------- | ----------------------- |
88
+ | `--port` | `-p` | Port number for the local server | `8080` |
89
+ | `--localAppUrl` | `-l` | Local URL where the app is hosted | `http://localhost:3000` |
90
+
91
+ ---
92
+
93
+ ### `push`
94
+
95
+ Push the code app to the Power Apps environment.
96
+
97
+ ```bash
98
+ npx power-apps push [options]
99
+ ```
100
+
101
+ **Options:**
102
+
103
+ | Option | Alias | Description |
104
+ | -------------- | ----- | ------------------------------------- |
105
+ | `--solutionId` | `-s` | Solution name or ID to add the app to |
106
+
107
+ ---
108
+
109
+ ### `add-data-source`
110
+
111
+ Add a data source to the current Power Apps code app.
112
+
113
+ ```bash
114
+ npx power-apps add-data-source [options]
115
+ ```
116
+
117
+ **Options:**
118
+
119
+ | Option | Alias | Description |
120
+ | ---------------------- | ----- | ------------------------- |
121
+ | `--apiId` | `-a` | API identifier |
122
+ | `--connectionId` | `-c` | Connection identifier |
123
+ | `--connectionRef` | `-cr` | Connection reference name |
124
+ | `--resourceName` | `-t` | Table or resource name |
125
+ | `--dataset` | `-d` | Dataset identifier |
126
+ | `--orgUrl` | `-u` | Organization URL |
127
+ | `--sqlStoredProcedure` | `-sp` | SQL stored procedure name |
128
+ | `--solutionId` | `-s` | Solution identifier |
129
+
130
+ ---
131
+
132
+ ### `delete-data-source`
133
+
134
+ Remove a data source from the Power Apps code app.
135
+
136
+ ```bash
137
+ npx power-apps delete-data-source [options]
138
+ ```
139
+
140
+ **Options:**
141
+
142
+ | Option | Alias | Description |
143
+ | ---------------------- | ----- | ---------------------------------------------- |
144
+ | `--apiId` | `-a` | API identifier associated with the data source |
145
+ | `--dataSourceName` | `-n` | Data source or table name to remove |
146
+ | `--sqlStoredProcedure` | `-sp` | SQL stored procedure name to remove |
147
+
148
+ ---
149
+
150
+ ### `list-codeapps`
151
+
152
+ List all code apps in the environment.
153
+
154
+ ```bash
155
+ npx power-apps list-codeapps
156
+ ```
157
+
158
+ ---
159
+
160
+ ### `list-connection-references`
161
+
162
+ List all connection references in the environment.
163
+
164
+ ```bash
165
+ npx power-apps list-connection-references [options]
166
+ ```
167
+
168
+ **Options:**
169
+
170
+ | Option | Alias | Description |
171
+ | -------------- | ----- | -------------------------------- |
172
+ | `--solutionId` | `-s` | Solution identifier to filter by |
173
+ | `--orgUrl` | `-u` | Organization URL |
174
+
175
+ ---
176
+
177
+ ### `list-datasets`
178
+
179
+ List all datasets for a connection.
180
+
181
+ ```bash
182
+ npx power-apps list-datasets [options]
183
+ ```
184
+
185
+ **Options:**
186
+
187
+ | Option | Alias | Description |
188
+ | ---------------- | ----- | --------------------- |
189
+ | `--apiId` | `-a` | API identifier |
190
+ | `--connectionId` | `-c` | Connection identifier |
191
+
192
+ ---
193
+
194
+ ### `list-tables`
195
+
196
+ List all tables for a dataset.
197
+
198
+ ```bash
199
+ npx power-apps list-tables [options]
200
+ ```
201
+
202
+ **Options:**
203
+
204
+ | Option | Alias | Description |
205
+ | ---------------- | ----- | --------------------- |
206
+ | `--apiId` | `-a` | API identifier |
207
+ | `--connectionId` | `-c` | Connection identifier |
208
+ | `--dataset` | `-d` | Dataset name |
209
+
210
+ ---
211
+
212
+ ### `list-sqlStoredProcedures`
213
+
214
+ List all SQL stored procedures for a dataset.
215
+
216
+ ```bash
217
+ npx power-apps list-sqlStoredProcedures [options]
218
+ ```
219
+
220
+ **Options:**
221
+
222
+ | Option | Alias | Description |
223
+ | ---------------- | ----- | --------------------- |
224
+ | `--connectionId` | `-c` | Connection identifier |
225
+ | `--dataset` | `-d` | Dataset name |
226
+
227
+ ---
228
+
229
+ ### `list-environment-variables`
230
+
231
+ List all environment variables in the environment.
232
+
233
+ ```bash
234
+ npx power-apps list-environment-variables [options]
235
+ ```
236
+
237
+ **Options:**
238
+
239
+ | Option | Alias | Description |
240
+ | ---------- | ----- | ---------------- |
241
+ | `--orgUrl` | `-u` | Organization URL |
242
+
243
+ ---
244
+
245
+ ### `telemetry`
246
+
247
+ Manage telemetry settings.
248
+
249
+ ```bash
250
+ npx power-apps telemetry [options]
251
+ ```
252
+
253
+ **Options:**
254
+
255
+ | Option | Description |
256
+ | ------------------- | ----------------------------------------------------- |
257
+ | `--enable` | Enable telemetry |
258
+ | `--disable` | Disable telemetry |
259
+ | `--showSettings` | Show current telemetry settings |
260
+ | `--consoleOnly` | Output telemetry to console only |
261
+ | `--outputToConsole` | Output telemetry to console in addition to sending it |
262
+
263
+ ---
264
+
265
+ ### `logout`
266
+
267
+ Log out the current user.
268
+
269
+ ```bash
270
+ npx power-apps logout
271
+ ```
272
+
273
+ ## Getting Help
274
+
275
+ To see help for any command, use the `--help` flag:
276
+
277
+ ```bash
278
+ # Global help
279
+ npx power-apps --help
280
+
281
+ # Command-specific help
282
+ npx power-apps init --help
283
+ npx power-apps add-data-source --help
284
+ ```
285
+
286
+ ## License
287
+
288
+ Copyright (C) Microsoft Corporation. All rights reserved.