@epilot/automation-client 0.8.0 → 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.
@@ -1,19 +0,0 @@
1
- import { getClient } from './client';
2
-
3
- describe('client', () => {
4
- describe('getClient', () => {
5
- it('should inititalise and return client', async () => {
6
- const client = getClient();
7
-
8
- expect(client.api.initalized).toBe(true);
9
- });
10
-
11
- it('should have operations', async () => {
12
- const client = getClient();
13
-
14
- const operations = client.api.getOperations();
15
-
16
- expect(operations.length).toBeGreaterThan(0);
17
- });
18
- });
19
- });
package/src/client.ts DELETED
@@ -1,10 +0,0 @@
1
- import OpenAPIClientAxios from 'openapi-client-axios';
2
-
3
- import definition from './definition';
4
- import { Client } from './openapi';
5
-
6
- export const getClient = () => {
7
- const api = new OpenAPIClientAxios({ definition, quick: true });
8
-
9
- return api.initSync<Client>();
10
- };
package/src/definition.ts DELETED
@@ -1,5 +0,0 @@
1
- import type { Document } from 'openapi-client-axios';
2
-
3
- import definition from './openapi.json';
4
-
5
- export default definition as Document;
package/src/index.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './client';
2
- export type { Client, Components, Paths, PathsDictionary, OperationMethods } from './openapi';
3
- export type { OpenAPIClient, OpenAPIClientAxios, Document } from 'openapi-client-axios';