@epilot/document-client 0.2.0 → 0.3.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/dist/client.d.ts +2 -1
- package/dist/index.js +5 -1
- package/dist/openapi.d.ts +57 -57
- package/package.json +4 -4
- package/src/openapi.d.ts +57 -57
package/dist/client.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { Client } from './openapi';
|
|
2
|
+
export declare const getClient: () => Client;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/dist/openapi.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
import {
|
|
2
|
+
import type {
|
|
3
3
|
OpenAPIClient,
|
|
4
4
|
Parameters,
|
|
5
5
|
UnknownParamsObject,
|
|
@@ -8,66 +8,66 @@ import {
|
|
|
8
8
|
} from 'openapi-client-axios';
|
|
9
9
|
|
|
10
10
|
declare namespace Components {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
11
|
+
namespace Schemas {
|
|
12
|
+
export interface S3Reference {
|
|
13
|
+
/**
|
|
14
|
+
* example:
|
|
15
|
+
* document-api-prod
|
|
16
|
+
*/
|
|
17
|
+
bucket: string;
|
|
18
|
+
/**
|
|
19
|
+
* example:
|
|
20
|
+
* uploads/my-template.pdf
|
|
21
|
+
*/
|
|
22
|
+
key: string;
|
|
23
|
+
}
|
|
23
24
|
}
|
|
24
|
-
}
|
|
25
25
|
}
|
|
26
26
|
declare namespace Paths {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
27
|
+
namespace GenerateDocument {
|
|
28
|
+
export interface RequestBody {
|
|
29
|
+
/**
|
|
30
|
+
* Language to use
|
|
31
|
+
* example:
|
|
32
|
+
* de
|
|
33
|
+
*/
|
|
34
|
+
language?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Input template document
|
|
37
|
+
*/
|
|
38
|
+
template_document: {
|
|
39
|
+
s3ref?: Components.Schemas.S3Reference;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Entity to use for variable context
|
|
43
|
+
* example:
|
|
44
|
+
* bcd0aab9-b544-42b0-8bfb-6d449d02eacc
|
|
45
|
+
*/
|
|
46
|
+
context_entity_id?: string;
|
|
47
|
+
}
|
|
48
|
+
namespace Responses {
|
|
49
|
+
export interface $200 {
|
|
50
|
+
/**
|
|
51
|
+
* Pre-signed S3 GET URL for preview
|
|
52
|
+
* example:
|
|
53
|
+
* https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template.pdf
|
|
54
|
+
*/
|
|
55
|
+
preview_url?: string;
|
|
56
|
+
/**
|
|
57
|
+
* example:
|
|
58
|
+
* {
|
|
59
|
+
* "s3ref": {
|
|
60
|
+
* "bucket": "document-api-preview-prod",
|
|
61
|
+
* "key": "preview/my-template.pdf"
|
|
62
|
+
* }
|
|
63
|
+
* }
|
|
64
|
+
*/
|
|
65
|
+
output_document?: {
|
|
66
|
+
s3ref?: Components.Schemas.S3Reference;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
}
|
|
69
70
|
}
|
|
70
|
-
}
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
export interface OperationMethods {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/document-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "API Client for epilot document API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"buffer": "^6.0.3",
|
|
36
36
|
"https-browserify": "^1.0.0",
|
|
37
|
-
"openapi-client-axios": "^
|
|
37
|
+
"openapi-client-axios": "^5.1.2",
|
|
38
38
|
"stream-http": "^3.1.1",
|
|
39
39
|
"url": "^0.11.0",
|
|
40
40
|
"util": "^0.12.3"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/jest": "^26.0.20",
|
|
44
|
-
"axios": "^0.
|
|
44
|
+
"axios": "^0.25.0",
|
|
45
45
|
"copy-webpack-plugin": "^7.0.0",
|
|
46
46
|
"jest": "^26.6.3",
|
|
47
47
|
"json-loader": "^0.5.7",
|
|
48
|
-
"openapi-client-axios-typegen": "^
|
|
48
|
+
"openapi-client-axios-typegen": "^5.0.2",
|
|
49
49
|
"openapicmd": "^1.6.2",
|
|
50
50
|
"ts-jest": "^26.5.0",
|
|
51
51
|
"ts-loader": "^8.0.14",
|
package/src/openapi.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
import {
|
|
2
|
+
import type {
|
|
3
3
|
OpenAPIClient,
|
|
4
4
|
Parameters,
|
|
5
5
|
UnknownParamsObject,
|
|
@@ -8,66 +8,66 @@ import {
|
|
|
8
8
|
} from 'openapi-client-axios';
|
|
9
9
|
|
|
10
10
|
declare namespace Components {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
11
|
+
namespace Schemas {
|
|
12
|
+
export interface S3Reference {
|
|
13
|
+
/**
|
|
14
|
+
* example:
|
|
15
|
+
* document-api-prod
|
|
16
|
+
*/
|
|
17
|
+
bucket: string;
|
|
18
|
+
/**
|
|
19
|
+
* example:
|
|
20
|
+
* uploads/my-template.pdf
|
|
21
|
+
*/
|
|
22
|
+
key: string;
|
|
23
|
+
}
|
|
23
24
|
}
|
|
24
|
-
}
|
|
25
25
|
}
|
|
26
26
|
declare namespace Paths {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
27
|
+
namespace GenerateDocument {
|
|
28
|
+
export interface RequestBody {
|
|
29
|
+
/**
|
|
30
|
+
* Language to use
|
|
31
|
+
* example:
|
|
32
|
+
* de
|
|
33
|
+
*/
|
|
34
|
+
language?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Input template document
|
|
37
|
+
*/
|
|
38
|
+
template_document: {
|
|
39
|
+
s3ref?: Components.Schemas.S3Reference;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Entity to use for variable context
|
|
43
|
+
* example:
|
|
44
|
+
* bcd0aab9-b544-42b0-8bfb-6d449d02eacc
|
|
45
|
+
*/
|
|
46
|
+
context_entity_id?: string;
|
|
47
|
+
}
|
|
48
|
+
namespace Responses {
|
|
49
|
+
export interface $200 {
|
|
50
|
+
/**
|
|
51
|
+
* Pre-signed S3 GET URL for preview
|
|
52
|
+
* example:
|
|
53
|
+
* https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template.pdf
|
|
54
|
+
*/
|
|
55
|
+
preview_url?: string;
|
|
56
|
+
/**
|
|
57
|
+
* example:
|
|
58
|
+
* {
|
|
59
|
+
* "s3ref": {
|
|
60
|
+
* "bucket": "document-api-preview-prod",
|
|
61
|
+
* "key": "preview/my-template.pdf"
|
|
62
|
+
* }
|
|
63
|
+
* }
|
|
64
|
+
*/
|
|
65
|
+
output_document?: {
|
|
66
|
+
s3ref?: Components.Schemas.S3Reference;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
}
|
|
69
70
|
}
|
|
70
|
-
}
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
export interface OperationMethods {
|