@trackunit/iris-app-runtime-core 0.0.40 → 0.0.45-alpha-4730.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/AssetRuntime.d.ts +4 -1
- package/CurrentUserRuntime.d.ts +3 -2
- package/CustomFieldRuntime.d.ts +9 -1
- package/EnvironmentRuntime.d.ts +3 -2
- package/RestRuntime.d.ts +8 -3
- package/TokenRuntime.d.ts +3 -2
- package/UserSubscriptionRuntime.d.ts +3 -2
- package/index.js +1 -2
- package/package.json +3 -3
package/AssetRuntime.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { AssetInfo } from "@trackunit/iris-app-runtime-core-api";
|
|
2
|
-
export
|
|
2
|
+
export interface IAssetRuntime {
|
|
3
|
+
getAssetInfo: () => Promise<AssetInfo>;
|
|
4
|
+
}
|
|
5
|
+
export declare class AssetRuntime implements IAssetRuntime {
|
|
3
6
|
getAssetInfo: () => Promise<AssetInfo>;
|
|
4
7
|
}
|
package/CurrentUserRuntime.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ICurrentUserContext } from "@trackunit/react-core-contexts-api";
|
|
2
|
-
export
|
|
2
|
+
export interface ICurrentUserRuntime {
|
|
3
3
|
getCurrentUserContext: () => Promise<ICurrentUserContext>;
|
|
4
|
-
}
|
|
4
|
+
}
|
|
5
|
+
export declare const CurrentUserRuntime: ICurrentUserRuntime;
|
package/CustomFieldRuntime.d.ts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { CustomFieldError, EntityIdentity, ValueAndDefinition, ValueAndDefinitionKey } from "@trackunit/iris-app-runtime-core-api";
|
|
2
|
-
export
|
|
2
|
+
export interface DropdownSelection {
|
|
3
|
+
value: string;
|
|
4
|
+
}
|
|
5
|
+
export interface ICustomFieldRuntime {
|
|
6
|
+
getCustomFieldsFor: (entity: EntityIdentity) => Promise<ValueAndDefinition[]>;
|
|
7
|
+
setCustomFieldsFor: (entity: EntityIdentity, values: ValueAndDefinitionKey[]) => Promise<void | CustomFieldError>;
|
|
8
|
+
setCustomFieldsFromFormData: (entity: EntityIdentity, formData: Record<string, boolean | string | string[] | number>, originalDefinitions: ValueAndDefinition[]) => Promise<void | CustomFieldError>;
|
|
9
|
+
}
|
|
10
|
+
export declare class CustomFieldRuntime implements ICustomFieldRuntime {
|
|
3
11
|
getCustomFieldsFor: (entity: EntityIdentity) => Promise<ValueAndDefinition[]>;
|
|
4
12
|
setCustomFieldsFor: (entity: EntityIdentity, values: ValueAndDefinitionKey[]) => Promise<void | CustomFieldError>;
|
|
5
13
|
setCustomFieldsFromFormData: (entity: EntityIdentity, formData: Record<string, boolean | string | string[] | number>, originalDefinitions: ValueAndDefinition[]) => Promise<void | CustomFieldError>;
|
package/EnvironmentRuntime.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IEnvironmentContext } from "@trackunit/react-core-contexts-api";
|
|
2
|
-
export
|
|
2
|
+
export interface IEnvironmentRuntime {
|
|
3
3
|
getEnvironmentContext: () => Promise<IEnvironmentContext>;
|
|
4
|
-
}
|
|
4
|
+
}
|
|
5
|
+
export declare const EnvironmentRuntime: IEnvironmentRuntime;
|
package/RestRuntime.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import { BodyType, HttpResponse,
|
|
2
|
-
export declare
|
|
1
|
+
import { BodyType, HttpResponse, RequestParams } from "@trackunit/iris-app-runtime-core-api";
|
|
2
|
+
export declare type RestRunTimeResponse = HttpResponse<any, any>;
|
|
3
|
+
export interface IRestRuntime {
|
|
3
4
|
apiHost: string;
|
|
4
|
-
request(path: string, method: string, requestParams?: RequestParams | undefined, body?: unknown, bodyType?: BodyType | undefined, secureByDefault?: boolean | undefined)
|
|
5
|
+
request: (path: string, method: string, requestParams?: RequestParams | undefined, body?: unknown, bodyType?: BodyType | undefined, secureByDefault?: boolean | undefined) => Promise<RestRunTimeResponse>;
|
|
6
|
+
}
|
|
7
|
+
export declare class RestRuntime implements IRestRuntime {
|
|
8
|
+
apiHost: string;
|
|
9
|
+
request(path: string, method: string, requestParams?: RequestParams | undefined, body?: unknown, bodyType?: BodyType | undefined, secureByDefault?: boolean | undefined): Promise<RestRunTimeResponse>;
|
|
5
10
|
}
|
package/TokenRuntime.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IUserSubscriptionContext } from "@trackunit/react-core-contexts-api";
|
|
2
|
-
export
|
|
2
|
+
export interface IUserSubscriptionRuntime {
|
|
3
3
|
getUserSubscriptionContext: () => Promise<IUserSubscriptionContext>;
|
|
4
|
-
}
|
|
4
|
+
}
|
|
5
|
+
export declare const UserSubscriptionRuntime: IUserSubscriptionRuntime;
|
package/index.js
CHANGED
|
@@ -1304,8 +1304,7 @@ class RestRuntime {
|
|
|
1304
1304
|
this.apiHost = "https://API_HOST";
|
|
1305
1305
|
}
|
|
1306
1306
|
|
|
1307
|
-
request(path, method, requestParams, body, bodyType, secureByDefault
|
|
1308
|
-
) {
|
|
1307
|
+
request(path, method, requestParams, body, bodyType, secureByDefault) {
|
|
1309
1308
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1310
1309
|
const api = yield getHostConnector();
|
|
1311
1310
|
return api.requestTrackunitRestApi(path, method, requestParams, body, bodyType, secureByDefault);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/iris-app-runtime-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.45-alpha-4730.0",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"type": "module",
|
|
9
9
|
"types": "./index.d.ts",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@trackunit/iris-app-runtime-core-api": "0.0.
|
|
12
|
-
"@trackunit/react-core-contexts-api": "0.0.
|
|
11
|
+
"@trackunit/iris-app-runtime-core-api": "0.0.44-alpha-4730.0",
|
|
12
|
+
"@trackunit/react-core-contexts-api": "0.0.43-alpha-4730.0"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {}
|
|
15
15
|
}
|