@emilgroup/document-sdk 1.6.0 → 1.7.1

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.
@@ -3,6 +3,7 @@
3
3
  .openapi-generator-ignore
4
4
  README.md
5
5
  api.ts
6
+ api/default-api.ts
6
7
  api/document-templates-api.ts
7
8
  api/documents-api.ts
8
9
  api/layouts-api.ts
@@ -43,6 +44,8 @@ models/grpc-create-doc-template-request-dto.ts
43
44
  models/grpc-update-doc-template-request-dto.ts
44
45
  models/html-template-class.ts
45
46
  models/index.ts
47
+ models/inline-response200.ts
48
+ models/inline-response503.ts
46
49
  models/layout-class.ts
47
50
  models/list-doc-template-request-dto.ts
48
51
  models/list-doc-templates-response-class.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/document-sdk@1.6.0 --save
20
+ npm install @emilgroup/document-sdk@1.7.1 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/document-sdk@1.6.0
24
+ yarn add @emilgroup/document-sdk@1.7.1
25
25
  ```
26
26
 
27
27
  And then you can import `DocumentsApi`.
@@ -0,0 +1,120 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL DocumentService
5
+ * The EMIL DocumentService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { InlineResponse200 } from '../models';
25
+ // @ts-ignore
26
+ import { InlineResponse503 } from '../models';
27
+ /**
28
+ * DefaultApi - axios parameter creator
29
+ * @export
30
+ */
31
+ export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
32
+ return {
33
+ /**
34
+ *
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ check: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39
+ const localVarPath = `/documentservice/health`;
40
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
41
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42
+ let baseOptions;
43
+ let baseAccessToken;
44
+ if (configuration) {
45
+ baseOptions = configuration.baseOptions;
46
+ baseAccessToken = configuration.accessToken;
47
+ }
48
+
49
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
50
+ const localVarHeaderParameter = {} as any;
51
+ const localVarQueryParameter = {} as any;
52
+
53
+
54
+
55
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
56
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
58
+
59
+ return {
60
+ url: toPathString(localVarUrlObj),
61
+ options: localVarRequestOptions,
62
+ };
63
+ },
64
+ }
65
+ };
66
+
67
+ /**
68
+ * DefaultApi - functional programming interface
69
+ * @export
70
+ */
71
+ export const DefaultApiFp = function(configuration?: Configuration) {
72
+ const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
73
+ return {
74
+ /**
75
+ *
76
+ * @param {*} [options] Override http request option.
77
+ * @throws {RequiredError}
78
+ */
79
+ async check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>> {
80
+ const localVarAxiosArgs = await localVarAxiosParamCreator.check(options);
81
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
82
+ },
83
+ }
84
+ };
85
+
86
+ /**
87
+ * DefaultApi - factory interface
88
+ * @export
89
+ */
90
+ export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
91
+ const localVarFp = DefaultApiFp(configuration)
92
+ return {
93
+ /**
94
+ *
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ */
98
+ check(options?: any): AxiosPromise<InlineResponse200> {
99
+ return localVarFp.check(options).then((request) => request(axios, basePath));
100
+ },
101
+ };
102
+ };
103
+
104
+ /**
105
+ * DefaultApi - object-oriented interface
106
+ * @export
107
+ * @class DefaultApi
108
+ * @extends {BaseAPI}
109
+ */
110
+ export class DefaultApi extends BaseAPI {
111
+ /**
112
+ *
113
+ * @param {*} [options] Override http request option.
114
+ * @throws {RequiredError}
115
+ * @memberof DefaultApi
116
+ */
117
+ public check(options?: AxiosRequestConfig) {
118
+ return DefaultApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
119
+ }
120
+ }
package/api.ts CHANGED
@@ -20,6 +20,7 @@ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig, AxiosResp
20
20
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
23
+ import { DefaultApi } from './api';
23
24
  import { DocumentTemplatesApi } from './api';
24
25
  import { DocumentsApi } from './api';
25
26
  import { LayoutsApi } from './api';
@@ -29,6 +30,7 @@ import { SearchableDocumentOwnersApi } from './api';
29
30
  import { SearchableDocumentsApi } from './api';
30
31
 
31
32
 
33
+ export * from './api/default-api';
32
34
  export * from './api/document-templates-api';
33
35
  export * from './api/documents-api';
34
36
  export * from './api/layouts-api';
@@ -0,0 +1,66 @@
1
+ /**
2
+ * EMIL DocumentService
3
+ * The EMIL DocumentService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { InlineResponse200 } from '../models';
16
+ /**
17
+ * DefaultApi - axios parameter creator
18
+ * @export
19
+ */
20
+ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ *
23
+ * @param {*} [options] Override http request option.
24
+ * @throws {RequiredError}
25
+ */
26
+ check: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
27
+ };
28
+ /**
29
+ * DefaultApi - functional programming interface
30
+ * @export
31
+ */
32
+ export declare const DefaultApiFp: (configuration?: Configuration) => {
33
+ /**
34
+ *
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
39
+ };
40
+ /**
41
+ * DefaultApi - factory interface
42
+ * @export
43
+ */
44
+ export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
45
+ /**
46
+ *
47
+ * @param {*} [options] Override http request option.
48
+ * @throws {RequiredError}
49
+ */
50
+ check(options?: any): AxiosPromise<InlineResponse200>;
51
+ };
52
+ /**
53
+ * DefaultApi - object-oriented interface
54
+ * @export
55
+ * @class DefaultApi
56
+ * @extends {BaseAPI}
57
+ */
58
+ export declare class DefaultApi extends BaseAPI {
59
+ /**
60
+ *
61
+ * @param {*} [options] Override http request option.
62
+ * @throws {RequiredError}
63
+ * @memberof DefaultApi
64
+ */
65
+ check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any>>;
66
+ }
@@ -0,0 +1,196 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL DocumentService
6
+ * The EMIL DocumentService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ /**
89
+ * DefaultApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var DefaultApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ *
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ check: function (options) {
101
+ if (options === void 0) { options = {}; }
102
+ return __awaiter(_this, void 0, void 0, function () {
103
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
104
+ return __generator(this, function (_a) {
105
+ localVarPath = "/documentservice/health";
106
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
107
+ if (configuration) {
108
+ baseOptions = configuration.baseOptions;
109
+ baseAccessToken = configuration.accessToken;
110
+ }
111
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
112
+ localVarHeaderParameter = {};
113
+ localVarQueryParameter = {};
114
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
115
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
116
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
117
+ return [2 /*return*/, {
118
+ url: (0, common_1.toPathString)(localVarUrlObj),
119
+ options: localVarRequestOptions,
120
+ }];
121
+ });
122
+ });
123
+ },
124
+ };
125
+ };
126
+ exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
127
+ /**
128
+ * DefaultApi - functional programming interface
129
+ * @export
130
+ */
131
+ var DefaultApiFp = function (configuration) {
132
+ var localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
133
+ return {
134
+ /**
135
+ *
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ */
139
+ check: function (options) {
140
+ return __awaiter(this, void 0, void 0, function () {
141
+ var localVarAxiosArgs;
142
+ return __generator(this, function (_a) {
143
+ switch (_a.label) {
144
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.check(options)];
145
+ case 1:
146
+ localVarAxiosArgs = _a.sent();
147
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
148
+ }
149
+ });
150
+ });
151
+ },
152
+ };
153
+ };
154
+ exports.DefaultApiFp = DefaultApiFp;
155
+ /**
156
+ * DefaultApi - factory interface
157
+ * @export
158
+ */
159
+ var DefaultApiFactory = function (configuration, basePath, axios) {
160
+ var localVarFp = (0, exports.DefaultApiFp)(configuration);
161
+ return {
162
+ /**
163
+ *
164
+ * @param {*} [options] Override http request option.
165
+ * @throws {RequiredError}
166
+ */
167
+ check: function (options) {
168
+ return localVarFp.check(options).then(function (request) { return request(axios, basePath); });
169
+ },
170
+ };
171
+ };
172
+ exports.DefaultApiFactory = DefaultApiFactory;
173
+ /**
174
+ * DefaultApi - object-oriented interface
175
+ * @export
176
+ * @class DefaultApi
177
+ * @extends {BaseAPI}
178
+ */
179
+ var DefaultApi = /** @class */ (function (_super) {
180
+ __extends(DefaultApi, _super);
181
+ function DefaultApi() {
182
+ return _super !== null && _super.apply(this, arguments) || this;
183
+ }
184
+ /**
185
+ *
186
+ * @param {*} [options] Override http request option.
187
+ * @throws {RequiredError}
188
+ * @memberof DefaultApi
189
+ */
190
+ DefaultApi.prototype.check = function (options) {
191
+ var _this = this;
192
+ return (0, exports.DefaultApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
193
+ };
194
+ return DefaultApi;
195
+ }(base_1.BaseAPI));
196
+ exports.DefaultApi = DefaultApi;
package/dist/api.d.ts CHANGED
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ export * from './api/default-api';
12
13
  export * from './api/document-templates-api';
13
14
  export * from './api/documents-api';
14
15
  export * from './api/layouts-api';
package/dist/api.js CHANGED
@@ -27,6 +27,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
27
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
+ __exportStar(require("./api/default-api"), exports);
30
31
  __exportStar(require("./api/document-templates-api"), exports);
31
32
  __exportStar(require("./api/documents-api"), exports);
32
33
  __exportStar(require("./api/layouts-api"), exports);
@@ -99,6 +99,18 @@ export interface CreateDocumentRequestDto {
99
99
  * @memberof CreateDocumentRequestDto
100
100
  */
101
101
  'productSlug'?: string;
102
+ /**
103
+ * If true, the default margins will be skipped when generating the document.
104
+ * @type {boolean}
105
+ * @memberof CreateDocumentRequestDto
106
+ */
107
+ 'shouldSkipDefaultMargins'?: boolean;
108
+ /**
109
+ * Type of the document engine to use to generate the document. Defaults to HTML.
110
+ * @type {string}
111
+ * @memberof CreateDocumentRequestDto
112
+ */
113
+ 'engine'?: CreateDocumentRequestDtoEngineEnum;
102
114
  }
103
115
  export declare const CreateDocumentRequestDtoEntityTypeEnum: {
104
116
  readonly PolicyApplication: "policy_application";
@@ -154,3 +166,8 @@ export declare const CreateDocumentRequestDtoContentTypeEnum: {
154
166
  readonly Avi: "AVI";
155
167
  };
156
168
  export type CreateDocumentRequestDtoContentTypeEnum = typeof CreateDocumentRequestDtoContentTypeEnum[keyof typeof CreateDocumentRequestDtoContentTypeEnum];
169
+ export declare const CreateDocumentRequestDtoEngineEnum: {
170
+ readonly Docx: "docx";
171
+ readonly Html: "html";
172
+ };
173
+ export type CreateDocumentRequestDtoEngineEnum = typeof CreateDocumentRequestDtoEngineEnum[keyof typeof CreateDocumentRequestDtoEngineEnum];
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CreateDocumentRequestDtoContentTypeEnum = exports.CreateDocumentRequestDtoRequesterEnum = exports.CreateDocumentRequestDtoStrategyEnum = exports.CreateDocumentRequestDtoEntityTypeEnum = void 0;
16
+ exports.CreateDocumentRequestDtoEngineEnum = exports.CreateDocumentRequestDtoContentTypeEnum = exports.CreateDocumentRequestDtoRequesterEnum = exports.CreateDocumentRequestDtoStrategyEnum = exports.CreateDocumentRequestDtoEntityTypeEnum = void 0;
17
17
  exports.CreateDocumentRequestDtoEntityTypeEnum = {
18
18
  PolicyApplication: 'policy_application',
19
19
  PolicyContract: 'policy_contract',
@@ -64,3 +64,7 @@ exports.CreateDocumentRequestDtoContentTypeEnum = {
64
64
  Wmv: 'WMV',
65
65
  Avi: 'AVI'
66
66
  };
67
+ exports.CreateDocumentRequestDtoEngineEnum = {
68
+ Docx: 'docx',
69
+ Html: 'html'
70
+ };
@@ -87,6 +87,12 @@ export interface CreatePresignedPostRequestDto {
87
87
  * @memberof CreatePresignedPostRequestDto
88
88
  */
89
89
  'productSlug'?: string;
90
+ /**
91
+ * ERN under which the document will be uploaded. This is useful when uploading documents on behalf of a child organization
92
+ * @type {string}
93
+ * @memberof CreatePresignedPostRequestDto
94
+ */
95
+ 'ern'?: string;
90
96
  }
91
97
  export declare const CreatePresignedPostRequestDtoRequesterEnum: {
92
98
  readonly Accountservice: "accountservice";
@@ -25,6 +25,8 @@ export * from './get-signed-s3-key-url-response-class';
25
25
  export * from './grpc-create-doc-template-request-dto';
26
26
  export * from './grpc-update-doc-template-request-dto';
27
27
  export * from './html-template-class';
28
+ export * from './inline-response200';
29
+ export * from './inline-response503';
28
30
  export * from './layout-class';
29
31
  export * from './list-doc-template-request-dto';
30
32
  export * from './list-doc-templates-response-class';
@@ -41,6 +41,8 @@ __exportStar(require("./get-signed-s3-key-url-response-class"), exports);
41
41
  __exportStar(require("./grpc-create-doc-template-request-dto"), exports);
42
42
  __exportStar(require("./grpc-update-doc-template-request-dto"), exports);
43
43
  __exportStar(require("./html-template-class"), exports);
44
+ __exportStar(require("./inline-response200"), exports);
45
+ __exportStar(require("./inline-response503"), exports);
44
46
  __exportStar(require("./layout-class"), exports);
45
47
  __exportStar(require("./list-doc-template-request-dto"), exports);
46
48
  __exportStar(require("./list-doc-templates-response-class"), exports);
@@ -0,0 +1,54 @@
1
+ /**
2
+ * EMIL DocumentService
3
+ * The EMIL DocumentService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface InlineResponse200
16
+ */
17
+ export interface InlineResponse200 {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof InlineResponse200
22
+ */
23
+ 'status'?: string;
24
+ /**
25
+ *
26
+ * @type {{ [key: string]: { [key: string]: string; }; }}
27
+ * @memberof InlineResponse200
28
+ */
29
+ 'info'?: {
30
+ [key: string]: {
31
+ [key: string]: string;
32
+ };
33
+ } | null;
34
+ /**
35
+ *
36
+ * @type {{ [key: string]: { [key: string]: string; }; }}
37
+ * @memberof InlineResponse200
38
+ */
39
+ 'error'?: {
40
+ [key: string]: {
41
+ [key: string]: string;
42
+ };
43
+ } | null;
44
+ /**
45
+ *
46
+ * @type {{ [key: string]: { [key: string]: string; }; }}
47
+ * @memberof InlineResponse200
48
+ */
49
+ 'details'?: {
50
+ [key: string]: {
51
+ [key: string]: string;
52
+ };
53
+ };
54
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL DocumentService
6
+ * The EMIL DocumentService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,54 @@
1
+ /**
2
+ * EMIL DocumentService
3
+ * The EMIL DocumentService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface InlineResponse503
16
+ */
17
+ export interface InlineResponse503 {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof InlineResponse503
22
+ */
23
+ 'status'?: string;
24
+ /**
25
+ *
26
+ * @type {{ [key: string]: { [key: string]: string; }; }}
27
+ * @memberof InlineResponse503
28
+ */
29
+ 'info'?: {
30
+ [key: string]: {
31
+ [key: string]: string;
32
+ };
33
+ } | null;
34
+ /**
35
+ *
36
+ * @type {{ [key: string]: { [key: string]: string; }; }}
37
+ * @memberof InlineResponse503
38
+ */
39
+ 'error'?: {
40
+ [key: string]: {
41
+ [key: string]: string;
42
+ };
43
+ } | null;
44
+ /**
45
+ *
46
+ * @type {{ [key: string]: { [key: string]: string; }; }}
47
+ * @memberof InlineResponse503
48
+ */
49
+ 'details'?: {
50
+ [key: string]: {
51
+ [key: string]: string;
52
+ };
53
+ };
54
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL DocumentService
6
+ * The EMIL DocumentService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -104,6 +104,18 @@ export interface CreateDocumentRequestDto {
104
104
  * @memberof CreateDocumentRequestDto
105
105
  */
106
106
  'productSlug'?: string;
107
+ /**
108
+ * If true, the default margins will be skipped when generating the document.
109
+ * @type {boolean}
110
+ * @memberof CreateDocumentRequestDto
111
+ */
112
+ 'shouldSkipDefaultMargins'?: boolean;
113
+ /**
114
+ * Type of the document engine to use to generate the document. Defaults to HTML.
115
+ * @type {string}
116
+ * @memberof CreateDocumentRequestDto
117
+ */
118
+ 'engine'?: CreateDocumentRequestDtoEngineEnum;
107
119
  }
108
120
 
109
121
  export const CreateDocumentRequestDtoEntityTypeEnum = {
@@ -164,5 +176,11 @@ export const CreateDocumentRequestDtoContentTypeEnum = {
164
176
  } as const;
165
177
 
166
178
  export type CreateDocumentRequestDtoContentTypeEnum = typeof CreateDocumentRequestDtoContentTypeEnum[keyof typeof CreateDocumentRequestDtoContentTypeEnum];
179
+ export const CreateDocumentRequestDtoEngineEnum = {
180
+ Docx: 'docx',
181
+ Html: 'html'
182
+ } as const;
183
+
184
+ export type CreateDocumentRequestDtoEngineEnum = typeof CreateDocumentRequestDtoEngineEnum[keyof typeof CreateDocumentRequestDtoEngineEnum];
167
185
 
168
186
 
@@ -92,6 +92,12 @@ export interface CreatePresignedPostRequestDto {
92
92
  * @memberof CreatePresignedPostRequestDto
93
93
  */
94
94
  'productSlug'?: string;
95
+ /**
96
+ * ERN under which the document will be uploaded. This is useful when uploading documents on behalf of a child organization
97
+ * @type {string}
98
+ * @memberof CreatePresignedPostRequestDto
99
+ */
100
+ 'ern'?: string;
95
101
  }
96
102
 
97
103
  export const CreatePresignedPostRequestDtoRequesterEnum = {
package/models/index.ts CHANGED
@@ -25,6 +25,8 @@ export * from './get-signed-s3-key-url-response-class';
25
25
  export * from './grpc-create-doc-template-request-dto';
26
26
  export * from './grpc-update-doc-template-request-dto';
27
27
  export * from './html-template-class';
28
+ export * from './inline-response200';
29
+ export * from './inline-response503';
28
30
  export * from './layout-class';
29
31
  export * from './list-doc-template-request-dto';
30
32
  export * from './list-doc-templates-response-class';
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL DocumentService
5
+ * The EMIL DocumentService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface InlineResponse200
21
+ */
22
+ export interface InlineResponse200 {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof InlineResponse200
27
+ */
28
+ 'status'?: string;
29
+ /**
30
+ *
31
+ * @type {{ [key: string]: { [key: string]: string; }; }}
32
+ * @memberof InlineResponse200
33
+ */
34
+ 'info'?: { [key: string]: { [key: string]: string; }; } | null;
35
+ /**
36
+ *
37
+ * @type {{ [key: string]: { [key: string]: string; }; }}
38
+ * @memberof InlineResponse200
39
+ */
40
+ 'error'?: { [key: string]: { [key: string]: string; }; } | null;
41
+ /**
42
+ *
43
+ * @type {{ [key: string]: { [key: string]: string; }; }}
44
+ * @memberof InlineResponse200
45
+ */
46
+ 'details'?: { [key: string]: { [key: string]: string; }; };
47
+ }
48
+
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL DocumentService
5
+ * The EMIL DocumentService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface InlineResponse503
21
+ */
22
+ export interface InlineResponse503 {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof InlineResponse503
27
+ */
28
+ 'status'?: string;
29
+ /**
30
+ *
31
+ * @type {{ [key: string]: { [key: string]: string; }; }}
32
+ * @memberof InlineResponse503
33
+ */
34
+ 'info'?: { [key: string]: { [key: string]: string; }; } | null;
35
+ /**
36
+ *
37
+ * @type {{ [key: string]: { [key: string]: string; }; }}
38
+ * @memberof InlineResponse503
39
+ */
40
+ 'error'?: { [key: string]: { [key: string]: string; }; } | null;
41
+ /**
42
+ *
43
+ * @type {{ [key: string]: { [key: string]: string; }; }}
44
+ * @memberof InlineResponse503
45
+ */
46
+ 'details'?: { [key: string]: { [key: string]: string; }; };
47
+ }
48
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/document-sdk",
3
- "version": "1.6.0",
3
+ "version": "1.7.1",
4
4
  "description": "OpenAPI client for @emilgroup/document-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [