@trackunit/iris-app-runtime-core 0.0.1-alpha-afcc978985.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 +5 -0
- package/CurrentUserRuntime.d.ts +5 -0
- package/CustomFieldRuntime.d.ts +11 -0
- package/DeveloperSettingsRuntime.d.ts +4 -0
- package/EnvironmentRuntime.d.ts +5 -0
- package/HostConnector.d.ts +2 -0
- package/NavigationRuntime.d.ts +5 -0
- package/README.md +14 -0
- package/RestRuntime.d.ts +7 -0
- package/ToastRuntime.d.ts +4 -0
- package/TokenRuntime.d.ts +5 -0
- package/UserSubscriptionRuntime.d.ts +5 -0
- package/index.d.ts +11 -0
- package/index.js +1509 -0
- package/package.json +15 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CustomFieldDefinition, CustomFieldError, CustomFieldValue, EntityIdentity, ValueAndDefinition, ValueAndDefinitionKey } from "@trackunit/iris-app-runtime-core-api";
|
|
2
|
+
export interface DropdownSelection {
|
|
3
|
+
value: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const getCustomFieldValueFromRawValue: (customFieldDefinition: CustomFieldDefinition, newValue: boolean | string | string[] | DropdownSelection[] | DropdownSelection | number) => CustomFieldValue;
|
|
6
|
+
export interface ICustomFieldRuntime {
|
|
7
|
+
getCustomFieldsFor: (entity: EntityIdentity) => Promise<ValueAndDefinition[]>;
|
|
8
|
+
setCustomFieldsFor: (entity: EntityIdentity, values: ValueAndDefinitionKey[]) => Promise<void | CustomFieldError>;
|
|
9
|
+
setCustomFieldsFromFormData: (entity: EntityIdentity, formData: Record<string, boolean | string | string[] | number>, originalDefinitions: ValueAndDefinition[]) => Promise<void | CustomFieldError>;
|
|
10
|
+
}
|
|
11
|
+
export declare const CustomFieldRuntime: ICustomFieldRuntime;
|
package/README.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
> **⚠️ Beta**
|
|
2
|
+
>
|
|
3
|
+
> This is a beta version and subject to change without notice.
|
|
4
|
+
|
|
5
|
+
# Trackunit Iris App Runtime Core
|
|
6
|
+
|
|
7
|
+
The `@trackunit/iris-app-runtime-core` package is used for development with the Trackunit [Iris App SDK](https://www.npmjs.com/package/@trackunit/iris-app).
|
|
8
|
+
|
|
9
|
+
For more info and a full guide on Iris App SDK Development, please visit our [Developer Hub](https://developers.trackunit.com/).
|
|
10
|
+
## Trackunit
|
|
11
|
+
This package was developed by Trackunit ApS.
|
|
12
|
+
Trackunit is the leading SaaS-based IoT solution for the construction industry, offering an ecosystem of hardware, fleet management software & telematics.
|
|
13
|
+
|
|
14
|
+

|
package/RestRuntime.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BodyType, HttpResponse, RequestParams } from "@trackunit/iris-app-runtime-core-api";
|
|
2
|
+
export declare type RestRunTimeResponse = HttpResponse<any, any>;
|
|
3
|
+
export interface IRestRuntime {
|
|
4
|
+
apiHost: string;
|
|
5
|
+
request: (path: string, method: string, requestParams?: RequestParams | undefined, body?: unknown, bodyType?: BodyType | undefined, secureByDefault?: boolean | undefined) => Promise<RestRunTimeResponse>;
|
|
6
|
+
}
|
|
7
|
+
export declare const RestRuntime: IRestRuntime;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IUserSubscriptionContext } from "@trackunit/react-core-contexts-api";
|
|
2
|
+
export interface IUserSubscriptionRuntime {
|
|
3
|
+
getUserSubscriptionContext: () => Promise<IUserSubscriptionContext>;
|
|
4
|
+
}
|
|
5
|
+
export declare const UserSubscriptionRuntime: IUserSubscriptionRuntime;
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "@trackunit/iris-app-runtime-core-api";
|
|
2
|
+
export * from "./AssetRuntime";
|
|
3
|
+
export * from "./CurrentUserRuntime";
|
|
4
|
+
export * from "./CustomFieldRuntime";
|
|
5
|
+
export * from "./DeveloperSettingsRuntime";
|
|
6
|
+
export * from "./EnvironmentRuntime";
|
|
7
|
+
export * from "./NavigationRuntime";
|
|
8
|
+
export * from "./RestRuntime";
|
|
9
|
+
export * from "./ToastRuntime";
|
|
10
|
+
export * from "./TokenRuntime";
|
|
11
|
+
export * from "./UserSubscriptionRuntime";
|