@tywalk/pcf-helper 1.4.23 → 1.4.26
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.
- package/README.md +6 -0
- package/dist/__tests__/pcf-helper-build.test.js +35 -0
- package/dist/__tests__/pcf-helper-deploy.test.js +35 -0
- package/dist/__tests__/pcf-helper-import.test.js +32 -0
- package/dist/__tests__/pcf-helper-init.test.js +37 -0
- package/dist/__tests__/pcf-helper-session.test.js +32 -0
- package/dist/__tests__/pcf-helper-upgrade.test.js +32 -0
- package/dist/bin/build.js +69 -0
- package/dist/bin/deploy.js +107 -0
- package/dist/bin/import.js +70 -0
- package/dist/bin/init.js +65 -0
- package/dist/bin/session.js +60 -0
- package/dist/bin/upgrade.js +61 -0
- package/dist/index.js +17 -0
- package/dist/package.json +44 -0
- package/dist/tasks/build-pcf.js +29 -0
- package/dist/tasks/import-pcf.js +41 -0
- package/dist/tasks/index.js +21 -0
- package/dist/tasks/init-pcf.js +64 -0
- package/dist/tasks/session-pcf.js +252 -0
- package/dist/tasks/upgrade-pcf.js +28 -0
- package/dist/util/argumentUtil.js +20 -0
- package/dist/util/performanceUtil.js +63 -0
- package/package.json +6 -3
- package/types/__tests__/pcf-helper-build.test.d.ts +1 -0
- package/types/__tests__/pcf-helper-deploy.test.d.ts +1 -0
- package/types/__tests__/pcf-helper-import.test.d.ts +1 -0
- package/types/__tests__/pcf-helper-init.test.d.ts +1 -0
- package/types/__tests__/pcf-helper-session.test.d.ts +1 -0
- package/types/__tests__/pcf-helper-upgrade.test.d.ts +1 -0
- package/types/bin/build.d.ts +2 -0
- package/types/bin/deploy.d.ts +2 -0
- package/types/bin/import.d.ts +2 -0
- package/types/bin/init.d.ts +2 -0
- package/types/bin/session.d.ts +2 -0
- package/types/bin/upgrade.d.ts +2 -0
- package/types/index.d.ts +1 -0
- package/types/tasks/build-pcf.d.ts +11 -0
- package/types/tasks/import-pcf.d.ts +12 -0
- package/types/tasks/index.d.ts +5 -0
- package/types/tasks/init-pcf.d.ts +2 -0
- package/types/tasks/session-pcf.d.ts +9 -0
- package/types/tasks/upgrade-pcf.d.ts +10 -0
- package/types/util/argumentUtil.d.ts +2 -0
- package/types/util/performanceUtil.d.ts +20 -0
package/types/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tasks';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Builds the Power Apps component framework project.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} path The path to the project folder containing the pcfproj.json file.
|
|
5
|
+
* @param {boolean} verbose - If true, additional debug information is logged.
|
|
6
|
+
* @param {number} [timeout] - Optional timeout in milliseconds for the build process.
|
|
7
|
+
*
|
|
8
|
+
* @returns {number} The exit code of the spawned process.
|
|
9
|
+
*/
|
|
10
|
+
declare function runBuild(path: string, verbose: boolean, timeout?: number): number;
|
|
11
|
+
export { runBuild };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Imports a PCF solution into a specified Dataverse environment.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} path - The path to the solution folder containing the build output.
|
|
5
|
+
* @param {string} env - The environment identifier (GUID or URL) where the solution will be imported.
|
|
6
|
+
* @param {boolean} verbose - If true, additional debug information is logged.
|
|
7
|
+
* @param {number} [timeout] - Optional timeout in milliseconds for the import process.
|
|
8
|
+
*
|
|
9
|
+
* @returns {number} The exit status of the import process.
|
|
10
|
+
*/
|
|
11
|
+
declare function runImport(path: string, env: string, verbose?: boolean, timeout?: number): number;
|
|
12
|
+
export { runImport };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare function loadConfig(): {
|
|
2
|
+
remoteEnvironmentUrl: any;
|
|
3
|
+
remoteScriptToIntercept: any;
|
|
4
|
+
remoteStylesheetToIntercept: any;
|
|
5
|
+
localCssPath: any;
|
|
6
|
+
localBundlePath: any;
|
|
7
|
+
};
|
|
8
|
+
declare function runSession(remoteEnvironmentUrl: string, remoteScriptToIntercept: string, remoteStylesheetToIntercept: string, localBundlePath: string, localCssPath: string): void;
|
|
9
|
+
export { runSession, loadConfig };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Upgrades the Power Apps component framework project.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} path The path to the project folder containing the pcfproj.json file.
|
|
5
|
+
* @param {boolean} verbose - If true, additional debug information is logged.
|
|
6
|
+
*
|
|
7
|
+
* @returns {number} The exit code of the spawned process.
|
|
8
|
+
*/
|
|
9
|
+
declare function runUpgrade(path: string, verbose?: boolean): number;
|
|
10
|
+
export { runUpgrade };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SpawnSyncReturns } from 'child_process';
|
|
2
|
+
/**
|
|
3
|
+
* Formats a number of milliseconds into seconds.
|
|
4
|
+
*
|
|
5
|
+
* @param {string} format - The string format to use when formatting the number of seconds.
|
|
6
|
+
* @param {number} ms - The number of milliseconds to be formatted.
|
|
7
|
+
*
|
|
8
|
+
* @returns {string} The formatted number of seconds.
|
|
9
|
+
*/
|
|
10
|
+
declare function formatMsToSec(format: string, ms: number): string;
|
|
11
|
+
/**
|
|
12
|
+
* Formats a Date object into a human-readable string.
|
|
13
|
+
*
|
|
14
|
+
* @param {Date} date - The date object to be formatted.
|
|
15
|
+
*
|
|
16
|
+
* @returns {string} The formatted string.
|
|
17
|
+
*/
|
|
18
|
+
declare function formatTime(date: Date): string;
|
|
19
|
+
declare function handleTaskCompletion(task: SpawnSyncReturns<Buffer<ArrayBufferLike>>, name: string, duration: number, verbose?: boolean): number;
|
|
20
|
+
export { formatMsToSec, formatTime, handleTaskCompletion };
|