@crowdstrike/foundry-js 0.8.1 → 0.9.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.
- package/dist/api.d.ts +4 -3
- package/dist/apis/public-api.d.ts +4 -4
- package/dist/apis/remote-response/index.d.ts +14 -2
- package/dist/apis/types-response-for.d.ts +2 -2
- package/dist/index.js +78 -40
- package/dist/index.js.map +1 -1
- package/dist/lib/ui.d.ts +2 -1
- package/dist/utils.d.ts +2 -2
- package/package.json +5 -1
package/dist/lib/ui.d.ts
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
import type { Bridge } from '../bridge';
|
2
|
-
import type { ExtensionIdentifier, LocalData, OpenModalOptions } from '../types';
|
2
|
+
import type { ExtensionIdentifier, FileUploadType, LocalData, OpenModalOptions, PayloadForFileUploadType, ResponseForFileUploadType } from '../types';
|
3
3
|
export declare class UI<DATA extends LocalData = LocalData> {
|
4
4
|
private bridge;
|
5
5
|
constructor(bridge: Bridge<DATA>);
|
6
6
|
openModal<PAYLOAD = unknown>(extension: ExtensionIdentifier, title: string, options?: OpenModalOptions): Promise<PAYLOAD>;
|
7
7
|
closeModal<PAYLOAD = unknown>(payload?: PAYLOAD): void;
|
8
|
+
uploadFile<TYPE extends FileUploadType>(fileUploadType: TYPE, initialData?: PayloadForFileUploadType<TYPE>): Promise<ResponseForFileUploadType<TYPE> | undefined>;
|
8
9
|
}
|
package/dist/utils.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import FalconApi from 'api';
|
2
2
|
import type { LocalData, MessageEnvelope, ResponseMessage } from './types';
|
3
|
-
export declare function assertConnection(falcon:
|
3
|
+
export declare function assertConnection<DATA extends LocalData>(falcon: FalconApi<DATA>): void;
|
4
4
|
export declare function isValidResponse<DATA extends LocalData>(event: MessageEvent<MessageEnvelope<ResponseMessage<DATA>> | any>): event is MessageEvent<MessageEnvelope<ResponseMessage<DATA>>>;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@crowdstrike/foundry-js",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.9.0",
|
4
4
|
"description": "foundry.js is the JavaScript SDK for authoring UI Extensions for CrowdStrike's Foundry platform.",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -33,6 +33,7 @@
|
|
33
33
|
"_build": "concurrently 'npm:build:*'",
|
34
34
|
"_start": "concurrently 'npm:watch:*'",
|
35
35
|
"build": "rollup -c ./config/rollup.config.ts --configPlugin typescript",
|
36
|
+
"docs": "typedoc",
|
36
37
|
"lint": "concurrently 'npm:lint:*(!fix)' --names 'lint:'",
|
37
38
|
"lint:fix": "concurrently 'npm:lint:*:fix' --names 'fix:'",
|
38
39
|
"lint:js": "eslint . --cache",
|
@@ -68,6 +69,9 @@
|
|
68
69
|
"prettier": "^3.0.3",
|
69
70
|
"rollup": "2.79.1",
|
70
71
|
"tslib": "2.5.0",
|
72
|
+
"typedoc": "^0.25.1",
|
73
|
+
"typedoc-plugin-missing-exports": "^2.1.0",
|
74
|
+
"typedoc-plugin-rename-defaults": "^0.6.6",
|
71
75
|
"typescript": "5.0.2",
|
72
76
|
"vitest": "^0.31.0"
|
73
77
|
},
|