@wandelbots/nova-js 3.13.0-pr.307.77e607e → 3.13.0-pr.307.80ddf47

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.
@@ -1,85 +0,0 @@
1
- import { n as MockNovaInstance, t as AutoReconnectingWebsocket } from "./AutoReconnectingWebsocket-1K2J1NA4.mjs";
2
- import { AxiosInstance } from "axios";
3
- import { ApplicationApi, BUSInputsOutputsApi, CellApi, Configuration, ControllerApi, ControllerInputsOutputsApi, JoggingApi, KinematicsApi, LicenseApi, MotionGroupApi, MotionGroupModelsApi, NOVACloudApi, ProgramApi, RobotConfigurationsApi, SessionApi, StoreCollisionComponentsApi, StoreCollisionSetupsApi, StoreObjectApi, SystemApi, TrajectoryCachingApi, TrajectoryExecutionApi, TrajectoryPlanningApi, VersionApi, VirtualControllerApi, VirtualControllerBehaviorApi, VirtualControllerInputsOutputsApi } from "@wandelbots/nova-api/v2";
4
-
5
- //#region src/lib/NovaAPIClient.d.ts
6
- type UnwrapAxiosResponseReturn<T> = T extends ((...a: any[]) => any) ? (...a: Parameters<T>) => Promise<Awaited<ReturnType<T>> extends {
7
- data: infer D;
8
- } ? D : never> : never;
9
- type WithUnwrappedAxiosResponse<T> = { [P in keyof T]: UnwrapAxiosResponseReturn<T[P]> };
10
- type NovaAPIClientOpts = Configuration & {
11
- axiosInstance?: AxiosInstance;
12
- mock?: boolean;
13
- };
14
- /**
15
- * API client providing type-safe access to all the endpoints of a NOVA
16
- * instance.
17
- */
18
- declare class NovaAPIClient {
19
- readonly opts: NovaAPIClientOpts;
20
- readonly application: WithUnwrappedAxiosResponse<ApplicationApi>;
21
- readonly busIOs: WithUnwrappedAxiosResponse<BUSInputsOutputsApi>;
22
- readonly cell: WithUnwrappedAxiosResponse<CellApi>;
23
- readonly controller: WithUnwrappedAxiosResponse<ControllerApi>;
24
- readonly controllerIOs: WithUnwrappedAxiosResponse<ControllerInputsOutputsApi>;
25
- readonly jogging: WithUnwrappedAxiosResponse<JoggingApi>;
26
- readonly kinematics: WithUnwrappedAxiosResponse<KinematicsApi>;
27
- readonly license: WithUnwrappedAxiosResponse<LicenseApi>;
28
- readonly motionGroup: WithUnwrappedAxiosResponse<MotionGroupApi>;
29
- readonly motionGroupModels: WithUnwrappedAxiosResponse<MotionGroupModelsApi>;
30
- readonly novaCloud: WithUnwrappedAxiosResponse<NOVACloudApi>;
31
- readonly program: WithUnwrappedAxiosResponse<ProgramApi>;
32
- readonly robotConfigurations: WithUnwrappedAxiosResponse<RobotConfigurationsApi>;
33
- readonly session: WithUnwrappedAxiosResponse<SessionApi>;
34
- readonly storeCollisionComponents: WithUnwrappedAxiosResponse<StoreCollisionComponentsApi>;
35
- readonly storeCollisionSetups: WithUnwrappedAxiosResponse<StoreCollisionSetupsApi>;
36
- readonly storeObject: WithUnwrappedAxiosResponse<StoreObjectApi>;
37
- readonly system: WithUnwrappedAxiosResponse<SystemApi>;
38
- readonly trajectoryCaching: WithUnwrappedAxiosResponse<TrajectoryCachingApi>;
39
- readonly trajectoryExecution: WithUnwrappedAxiosResponse<TrajectoryExecutionApi>;
40
- readonly trajectoryPlanning: WithUnwrappedAxiosResponse<TrajectoryPlanningApi>;
41
- readonly version: WithUnwrappedAxiosResponse<VersionApi>;
42
- readonly virtualController: WithUnwrappedAxiosResponse<VirtualControllerApi>;
43
- readonly virtualControllerBehavior: WithUnwrappedAxiosResponse<VirtualControllerBehaviorApi>;
44
- readonly virtualControllerIOs: WithUnwrappedAxiosResponse<VirtualControllerInputsOutputsApi>;
45
- constructor(opts: NovaAPIClientOpts);
46
- }
47
- //#endregion
48
- //#region src/lib/Nova.d.ts
49
- type NovaConfig = {
50
- /**
51
- * Url of the deployed NOVA instance to connect to
52
- * e.g. https://saeattii.instance.wandelbots.io
53
- */
54
- instanceUrl: string;
55
- /**
56
- * Access token for Bearer authentication.
57
- * If running on a NOVA instance, this can be automatically retrieved from
58
- * the current session when omitted.
59
- */
60
- accessToken?: string;
61
- } & Omit<Configuration, "isJsonMime" | "basePath">;
62
- /**
63
- *
64
- * Client for connecting to a NOVA instance and controlling robots.
65
- */
66
- declare class Nova {
67
- readonly api: NovaAPIClient;
68
- readonly config: NovaConfig;
69
- readonly mock?: MockNovaInstance;
70
- readonly instanceUrl: URL;
71
- authPromise: Promise<string | null> | null;
72
- accessToken: string | null;
73
- constructor(config: NovaConfig);
74
- renewAuthentication(): Promise<void>;
75
- makeWebsocketURL(path: string): string;
76
- /**
77
- * Retrieve an AutoReconnectingWebsocket to the given path on the Nova instance.
78
- * If you explicitly want to reconnect an existing websocket, call `reconnect`
79
- * on the returned object.
80
- */
81
- openReconnectingWebsocket(path: string): AutoReconnectingWebsocket;
82
- }
83
- //#endregion
84
- export { NovaConfig as n, NovaAPIClient as r, Nova as t };
85
- //# sourceMappingURL=Nova--8gozkLR.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Nova--8gozkLR.d.mts","names":[],"sources":["../src/lib/NovaAPIClient.ts","../src/lib/Nova.ts"],"mappings":";;;;;KAmCK,yBAAA,MAA+B,CAAA,cAAc,CAAA,uBAEzC,CAAA,EAAG,UAAA,CAAW,CAAA,MACd,OAAA,CAAQ,OAAA,CAAQ,UAAA,CAAW,CAAA;EAAc,IAAA;AAAA,IAAkB,CAAA;AAAA,KAG/D,0BAAA,oBACS,CAAA,GAAI,yBAAA,CAA0B,CAAA,CAAE,CAAA;AAAA,KAGzC,iBAAA,GAAoB,aAAA;EACvB,aAAA,GAAgB,aAAa;EAC7B,IAAA;AAAA;;;;;cAuCW,aAAA;EAAA,SACF,IAAA,EAAM,iBAAA;EAAA,SAEN,WAAA,EAAa,0BAAA,CAA2B,cAAA;EAAA,SACxC,MAAA,EAAQ,0BAAA,CAA2B,mBAAA;EAAA,SACnC,IAAA,EAAM,0BAAA,CAA2B,OAAA;EAAA,SACjC,UAAA,EAAY,0BAAA,CAA2B,aAAA;EAAA,SACvC,aAAA,EAAe,0BAAA,CAA2B,0BAAA;EAAA,S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EAAQ,UAAA;EAqId,mBAAA,IAAuB,OAAA;EA4B7B,gBAAA,CAAiB,IAAA;EDlKkD;AAAA;;;;ECmLnE,yBAAA,CAA0B,IAAA,WAAY,yBAAA;AAAA"}
@@ -1,85 +0,0 @@
1
- import { n as MockNovaInstance, t as AutoReconnectingWebsocket } from "./AutoReconnectingWebsocket-1K2J1NA4.cjs";
2
- import { ApplicationApi, BUSInputsOutputsApi, CellApi, Configuration, ControllerApi, ControllerInputsOutputsApi, JoggingApi, KinematicsApi, LicenseApi, MotionGroupApi, MotionGroupModelsApi, NOVACloudApi, ProgramApi, RobotConfigurationsApi, SessionApi, StoreCollisionComponentsApi, StoreCollisionSetupsApi, StoreObjectApi, SystemApi, TrajectoryCachingApi, TrajectoryExecutionApi, TrajectoryPlanningApi, VersionApi, VirtualControllerApi, VirtualControllerBehaviorApi, VirtualControllerInputsOutputsApi } from "@wandelbots/nova-api/v2";
3
- import { AxiosInstance } from "axios";
4
-
5
- //#region src/lib/NovaAPIClient.d.ts
6
- type UnwrapAxiosResponseReturn<T> = T extends ((...a: any[]) => any) ? (...a: Parameters<T>) => Promise<Awaited<ReturnType<T>> extends {
7
- data: infer D;
8
- } ? D : never> : never;
9
- type WithUnwrappedAxiosResponse<T> = { [P in keyof T]: UnwrapAxiosResponseReturn<T[P]> };
10
- type NovaAPIClientOpts = Configuration & {
11
- axiosInstance?: AxiosInstance;
12
- mock?: boolean;
13
- };
14
- /**
15
- * API client providing type-safe access to all the endpoints of a NOVA
16
- * instance.
17
- */
18
- declare class NovaAPIClient {
19
- readonly opts: NovaAPIClientOpts;
20
- readonly application: WithUnwrappedAxiosResponse<ApplicationApi>;
21
- readonly busIOs: WithUnwrappedAxiosResponse<BUSInputsOutputsApi>;
22
- readonly cell: WithUnwrappedAxiosResponse<CellApi>;
23
- readonly controller: WithUnwrappedAxiosResponse<ControllerApi>;
24
- readonly controllerIOs: WithUnwrappedAxiosResponse<ControllerInputsOutputsApi>;
25
- readonly jogging: WithUnwrappedAxiosResponse<JoggingApi>;
26
- readonly kinematics: WithUnwrappedAxiosResponse<KinematicsApi>;
27
- readonly license: WithUnwrappedAxiosResponse<LicenseApi>;
28
- readonly motionGroup: WithUnwrappedAxiosResponse<MotionGroupApi>;
29
- readonly motionGroupModels: WithUnwrappedAxiosResponse<MotionGroupModelsApi>;
30
- readonly novaCloud: WithUnwrappedAxiosResponse<NOVACloudApi>;
31
- readonly program: WithUnwrappedAxiosResponse<ProgramApi>;
32
- readonly robotConfigurations: WithUnwrappedAxiosResponse<RobotConfigurationsApi>;
33
- readonly session: WithUnwrappedAxiosResponse<SessionApi>;
34
- readonly storeCollisionComponents: WithUnwrappedAxiosResponse<StoreCollisionComponentsApi>;
35
- readonly storeCollisionSetups: WithUnwrappedAxiosResponse<StoreCollisionSetupsApi>;
36
- readonly storeObject: WithUnwrappedAxiosResponse<StoreObjectApi>;
37
- readonly system: WithUnwrappedAxiosResponse<SystemApi>;
38
- readonly trajectoryCaching: WithUnwrappedAxiosResponse<TrajectoryCachingApi>;
39
- readonly trajectoryExecution: WithUnwrappedAxiosResponse<TrajectoryExecutionApi>;
40
- readonly trajectoryPlanning: WithUnwrappedAxiosResponse<TrajectoryPlanningApi>;
41
- readonly version: WithUnwrappedAxiosResponse<VersionApi>;
42
- readonly virtualController: WithUnwrappedAxiosResponse<VirtualControllerApi>;
43
- readonly virtualControllerBehavior: WithUnwrappedAxiosResponse<VirtualControllerBehaviorApi>;
44
- readonly virtualControllerIOs: WithUnwrappedAxiosResponse<VirtualControllerInputsOutputsApi>;
45
- constructor(opts: NovaAPIClientOpts);
46
- }
47
- //#endregion
48
- //#region src/lib/Nova.d.ts
49
- type NovaConfig = {
50
- /**
51
- * Url of the deployed NOVA instance to connect to
52
- * e.g. https://saeattii.instance.wandelbots.io
53
- */
54
- instanceUrl: string;
55
- /**
56
- * Access token for Bearer authentication.
57
- * If running on a NOVA instance, this can be automatically retrieved from
58
- * the current session when omitted.
59
- */
60
- accessToken?: string;
61
- } & Omit<Configuration, "isJsonMime" | "basePath">;
62
- /**
63
- *
64
- * Client for connecting to a NOVA instance and controlling robots.
65
- */
66
- declare class Nova {
67
- readonly api: NovaAPIClient;
68
- readonly config: NovaConfig;
69
- readonly mock?: MockNovaInstance;
70
- readonly instanceUrl: URL;
71
- authPromise: Promise<string | null> | null;
72
- accessToken: string | null;
73
- constructor(config: NovaConfig);
74
- renewAuthentication(): Promise<void>;
75
- makeWebsocketURL(path: string): string;
76
- /**
77
- * Retrieve an AutoReconnectingWebsocket to the given path on the Nova instance.
78
- * If you explicitly want to reconnect an existing websocket, call `reconnect`
79
- * on the returned object.
80
- */
81
- openReconnectingWebsocket(path: string): AutoReconnectingWebsocket;
82
- }
83
- //#endregion
84
- export { NovaConfig as n, NovaAPIClient as r, Nova as t };
85
- //# sourceMappingURL=Nova-B1o5iTQ6.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Nova-B1o5iTQ6.d.cts","names":[],"sources":["../src/lib/NovaAPIClient.ts","../src/lib/Nova.ts"],"mappings":";;;;;KAmCK,yBAAA,MAA+B,CAAA,cAAc,CAAA,uBAEzC,CAAA,EAAG,UAAA,CAAW,CAAA,MACd,OAAA,CAAQ,OAAA,CAAQ,UAAA,CAAW,CAAA;EAAc,IAAA;AAAA,IAAkB,CAAA;AAAA,KAG/D,0BAAA,oBACS,CAAA,GAAI,yBAAA,CAA0B,CAAA,CAAE,CAAA;AAAA,KAGzC,iBAAA,GAAoB,aAAA;EACvB,aAAA,GAAgB,aAAa;EAC7B,IAAA;AAAA;;;;;cAuCW,aAAA;EAAA,SACF,IAAA,EAAM,iBAAA;EAAA,SAEN,WAAA,EAAa,0BAAA,CAA2B,cAAA;EAAA,SACxC,MAAA,EAAQ,0BAAA,CAA2B,mBAAA;EAAA,SACnC,IAAA,EAAM,0BAAA,CAA2B,OAAA;EAAA,SACjC,UAAA,EAAY,0BAAA,CAA2B,aAAA;EAAA,SACvC,aAAA,EAAe,0BAAA,CAA2B,0BAAA;E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