@trackunit/iris-app-runtime-core 0.0.34

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.
@@ -0,0 +1,4 @@
1
+ import { AssetInfo } from "@trackunit/iris-app-runtime-core-api";
2
+ export declare class AssetRuntime {
3
+ getAssetInfo: () => Promise<AssetInfo>;
4
+ }
@@ -0,0 +1,4 @@
1
+ import { ICurrentUserContext } from "@trackunit/react-core-contexts-api";
2
+ export declare const CurrentUserRuntime: {
3
+ getCurrentUserContext: () => Promise<ICurrentUserContext>;
4
+ };
@@ -0,0 +1,8 @@
1
+ import { CustomFieldError, EntityIdentity, ValueAndDefinition, ValueAndDefinitionKey } from "@trackunit/iris-app-runtime-core-api";
2
+ export declare class CustomFieldRuntime {
3
+ getCustomFieldsFor: (entity: EntityIdentity) => Promise<ValueAndDefinition[]>;
4
+ setCustomFieldsFor: (entity: EntityIdentity, values: ValueAndDefinitionKey[]) => Promise<void | CustomFieldError>;
5
+ setCustomFieldsFromFormData: (entity: EntityIdentity, formData: Record<string, boolean | string | string[] | number>, originalDefinitions: ValueAndDefinition[]) => Promise<void | CustomFieldError>;
6
+ private getValue;
7
+ private getStringValue;
8
+ }
@@ -0,0 +1,4 @@
1
+ import { IEnvironmentContext } from "@trackunit/react-core-contexts-api";
2
+ export declare const EnvironmentRuntime: {
3
+ getEnvironmentContext: () => Promise<IEnvironmentContext>;
4
+ };
@@ -0,0 +1,2 @@
1
+ import { HostConnectorApi } from "@trackunit/iris-app-runtime-core-api";
2
+ export declare const getHostConnector: () => Promise<import("penpal").AsyncMethodReturns<HostConnectorApi>>;
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ This is the documentation for library
2
+
3
+ # core
4
+
5
+ The purpose of this library is to contain the
@@ -0,0 +1,5 @@
1
+ import { BodyType, HttpResponse, IRestApiClient, RequestParams } from "@trackunit/iris-app-runtime-core-api";
2
+ export declare class RestRuntime implements IRestApiClient {
3
+ apiHost: string;
4
+ request(path: string, method: string, requestParams?: RequestParams | undefined, body?: unknown, bodyType?: BodyType | undefined, secureByDefault?: boolean | undefined): Promise<HttpResponse<any, any>>;
5
+ }
@@ -0,0 +1,4 @@
1
+ import { ITokenContext } from "@trackunit/react-core-contexts-api";
2
+ export declare const TokenRuntime: {
3
+ getTokenContext: () => Promise<ITokenContext>;
4
+ };
@@ -0,0 +1,4 @@
1
+ import { IUserSubscriptionContext } from "@trackunit/react-core-contexts-api";
2
+ export declare const UserSubscriptionRuntime: {
3
+ getUserSubscriptionContext: () => Promise<IUserSubscriptionContext>;
4
+ };
package/index.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ export * from "@trackunit/iris-app-runtime-core-api";
2
+ export * from "./AssetRuntime";
3
+ export * from "./CurrentUserRuntime";
4
+ export * from "./CustomFieldRuntime";
5
+ export * from "./EnvironmentRuntime";
6
+ export * from "./RestRuntime";
7
+ export * from "./TokenRuntime";
8
+ export * from "./UserSubscriptionRuntime";