@equisoft/equisoft-connect-sdk-typescript 13.59.1-snapshot.20261008140706 → 13.60.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/.openapi-generator/FILES +14 -4
- package/README.md +11 -2
- package/dist/apis/ExtractionApi.d.ts +70 -4
- package/dist/apis/ExtractionApi.js +211 -5
- package/dist/esm/apis/ExtractionApi.d.ts +70 -4
- package/dist/esm/apis/ExtractionApi.js +212 -6
- package/dist/esm/models/ChangeMetadata.d.ts +63 -0
- package/dist/esm/models/ChangeMetadata.js +52 -0
- package/dist/esm/models/ExtractionsAddExtractionPayload.d.ts +62 -0
- package/dist/esm/models/{ExtractionAddExtractionPayload.js → ExtractionsAddExtractionPayload.js} +8 -8
- package/dist/esm/models/ExtractionsDetails.d.ts +63 -0
- package/dist/esm/models/ExtractionsDetails.js +52 -0
- package/dist/esm/models/ExtractionsExtraction.d.ts +64 -0
- package/dist/esm/models/ExtractionsExtraction.js +53 -0
- package/dist/esm/models/ExtractionsListExtractionResponse.d.ts +45 -0
- package/dist/esm/models/ExtractionsListExtractionResponse.js +48 -0
- package/dist/esm/models/ExtractionsResumeExtractionPayload.d.ts +32 -0
- package/dist/esm/models/ExtractionsResumeExtractionPayload.js +43 -0
- package/dist/esm/models/ExtraxtionsStatus.d.ts +29 -0
- package/dist/esm/models/ExtraxtionsStatus.js +47 -0
- package/dist/esm/models/UsersUserIdentity.d.ts +6 -0
- package/dist/esm/models/UsersUserIdentity.js +4 -0
- package/dist/esm/models/index.d.ts +7 -2
- package/dist/esm/models/index.js +7 -2
- package/dist/models/ChangeMetadata.d.ts +63 -0
- package/dist/models/ChangeMetadata.js +59 -0
- package/dist/models/ExtractionsAddExtractionPayload.d.ts +62 -0
- package/dist/models/{ExtractionAddExtractionPayload.js → ExtractionsAddExtractionPayload.js} +13 -13
- package/dist/models/ExtractionsDetails.d.ts +63 -0
- package/dist/models/ExtractionsDetails.js +59 -0
- package/dist/models/ExtractionsExtraction.d.ts +64 -0
- package/dist/models/ExtractionsExtraction.js +60 -0
- package/dist/models/ExtractionsListExtractionResponse.d.ts +45 -0
- package/dist/models/ExtractionsListExtractionResponse.js +55 -0
- package/dist/models/ExtractionsResumeExtractionPayload.d.ts +32 -0
- package/dist/models/ExtractionsResumeExtractionPayload.js +50 -0
- package/dist/models/ExtraxtionsStatus.d.ts +29 -0
- package/dist/models/ExtraxtionsStatus.js +55 -0
- package/dist/models/UsersUserIdentity.d.ts +6 -0
- package/dist/models/UsersUserIdentity.js +4 -0
- package/dist/models/index.d.ts +7 -2
- package/dist/models/index.js +7 -2
- package/docs/ChangeMetadata.md +44 -0
- package/docs/ExtractionApi.md +320 -5
- package/docs/{ExtractionAddExtractionPayload.md → ExtractionsAddExtractionPayload.md} +4 -4
- package/docs/ExtractionsDetails.md +44 -0
- package/docs/ExtractionsExtraction.md +44 -0
- package/docs/ExtractionsListExtractionResponse.md +38 -0
- package/docs/ExtractionsResumeExtractionPayload.md +34 -0
- package/docs/{ExtractionAddExtractionResponse.md → ExtraxtionsStatus.md} +5 -6
- package/docs/UsersUserIdentity.md +2 -0
- package/package.json +1 -1
- package/src/apis/ExtractionApi.ts +291 -15
- package/src/models/ChangeMetadata.ts +113 -0
- package/src/models/{ExtractionAddExtractionPayload.ts → ExtractionsAddExtractionPayload.ts} +16 -16
- package/src/models/ExtractionsDetails.ts +113 -0
- package/src/models/ExtractionsExtraction.ts +120 -0
- package/src/models/ExtractionsListExtractionResponse.ts +90 -0
- package/src/models/ExtractionsResumeExtractionPayload.ts +66 -0
- package/src/models/ExtraxtionsStatus.ts +57 -0
- package/src/models/UsersUserIdentity.ts +9 -0
- package/src/models/index.ts +7 -2
- package/dist/esm/models/ExtractionAddExtractionPayload.d.ts +0 -62
- package/dist/esm/models/ExtractionAddExtractionResponse.d.ts +0 -32
- package/dist/esm/models/ExtractionAddExtractionResponse.js +0 -41
- package/dist/models/ExtractionAddExtractionPayload.d.ts +0 -62
- package/dist/models/ExtractionAddExtractionResponse.d.ts +0 -32
- package/dist/models/ExtractionAddExtractionResponse.js +0 -48
- package/src/models/ExtractionAddExtractionResponse.ts +0 -65
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import {
|
|
24
|
+
import { ExtractionsAddExtractionPayloadToJSON, ExtractionsExtractionFromJSON, ExtractionsListExtractionResponseFromJSON, ExtractionsResumeExtractionPayloadToJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -31,8 +31,8 @@ export class ExtractionApi extends runtime.BaseAPI {
|
|
|
31
31
|
*/
|
|
32
32
|
addExtractionRequestOpts(requestParameters) {
|
|
33
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
if (requestParameters['
|
|
35
|
-
throw new runtime.RequiredError('
|
|
34
|
+
if (requestParameters['extractionsAddExtractionPayload'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('extractionsAddExtractionPayload', 'Required parameter "extractionsAddExtractionPayload" was null or undefined when calling addExtraction().');
|
|
36
36
|
}
|
|
37
37
|
const queryParameters = {};
|
|
38
38
|
const headerParameters = {};
|
|
@@ -51,7 +51,7 @@ export class ExtractionApi extends runtime.BaseAPI {
|
|
|
51
51
|
method: 'POST',
|
|
52
52
|
headers: headerParameters,
|
|
53
53
|
query: queryParameters,
|
|
54
|
-
body:
|
|
54
|
+
body: ExtractionsAddExtractionPayloadToJSON(requestParameters['extractionsAddExtractionPayload']),
|
|
55
55
|
};
|
|
56
56
|
});
|
|
57
57
|
}
|
|
@@ -62,7 +62,7 @@ export class ExtractionApi extends runtime.BaseAPI {
|
|
|
62
62
|
return __awaiter(this, void 0, void 0, function* () {
|
|
63
63
|
const requestOptions = yield this.addExtractionRequestOpts(requestParameters);
|
|
64
64
|
const response = yield this.request(requestOptions, initOverrides);
|
|
65
|
-
return new runtime.
|
|
65
|
+
return new runtime.VoidApiResponse(response);
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
@@ -70,8 +70,214 @@ export class ExtractionApi extends runtime.BaseAPI {
|
|
|
70
70
|
*/
|
|
71
71
|
addExtraction(requestParameters, initOverrides) {
|
|
72
72
|
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
-
|
|
73
|
+
yield this.addExtractionRaw(requestParameters, initOverrides);
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Creates request options for deleteExtraction without sending the request
|
|
78
|
+
*/
|
|
79
|
+
deleteExtractionRequestOpts(requestParameters) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
if (requestParameters['uuid'] == null) {
|
|
82
|
+
throw new runtime.RequiredError('uuid', 'Required parameter "uuid" was null or undefined when calling deleteExtraction().');
|
|
83
|
+
}
|
|
84
|
+
const queryParameters = {};
|
|
85
|
+
const headerParameters = {};
|
|
86
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
87
|
+
// oauth required
|
|
88
|
+
const token = this.configuration.accessToken;
|
|
89
|
+
const tokenString = yield token("OAuth2", ["crm:extraction"]);
|
|
90
|
+
if (tokenString) {
|
|
91
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
let urlPath = `/crm/api/v1/extractions/{uuid}`;
|
|
95
|
+
urlPath = urlPath.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters['uuid'])));
|
|
96
|
+
return {
|
|
97
|
+
path: urlPath,
|
|
98
|
+
method: 'DELETE',
|
|
99
|
+
headers: headerParameters,
|
|
100
|
+
query: queryParameters,
|
|
101
|
+
};
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Delete an extraction
|
|
106
|
+
*/
|
|
107
|
+
deleteExtractionRaw(requestParameters, initOverrides) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
const requestOptions = yield this.deleteExtractionRequestOpts(requestParameters);
|
|
110
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
111
|
+
return new runtime.VoidApiResponse(response);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Delete an extraction
|
|
116
|
+
*/
|
|
117
|
+
deleteExtraction(requestParameters, initOverrides) {
|
|
118
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
119
|
+
yield this.deleteExtractionRaw(requestParameters, initOverrides);
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Creates request options for getExtraction without sending the request
|
|
124
|
+
*/
|
|
125
|
+
getExtractionRequestOpts(requestParameters) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
if (requestParameters['uuid'] == null) {
|
|
128
|
+
throw new runtime.RequiredError('uuid', 'Required parameter "uuid" was null or undefined when calling getExtraction().');
|
|
129
|
+
}
|
|
130
|
+
const queryParameters = {};
|
|
131
|
+
const headerParameters = {};
|
|
132
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
133
|
+
// oauth required
|
|
134
|
+
const token = this.configuration.accessToken;
|
|
135
|
+
const tokenString = yield token("OAuth2", ["crm:extraction"]);
|
|
136
|
+
if (tokenString) {
|
|
137
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
let urlPath = `/crm/api/v1/extractions/{uuid}`;
|
|
141
|
+
urlPath = urlPath.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters['uuid'])));
|
|
142
|
+
return {
|
|
143
|
+
path: urlPath,
|
|
144
|
+
method: 'GET',
|
|
145
|
+
headers: headerParameters,
|
|
146
|
+
query: queryParameters,
|
|
147
|
+
};
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Get an extraction
|
|
152
|
+
*/
|
|
153
|
+
getExtractionRaw(requestParameters, initOverrides) {
|
|
154
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
155
|
+
const requestOptions = yield this.getExtractionRequestOpts(requestParameters);
|
|
156
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
157
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ExtractionsExtractionFromJSON(jsonValue));
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Get an extraction
|
|
162
|
+
*/
|
|
163
|
+
getExtraction(requestParameters, initOverrides) {
|
|
164
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
165
|
+
const response = yield this.getExtractionRaw(requestParameters, initOverrides);
|
|
74
166
|
return yield response.value();
|
|
75
167
|
});
|
|
76
168
|
}
|
|
169
|
+
/**
|
|
170
|
+
* Creates request options for listExtractions without sending the request
|
|
171
|
+
*/
|
|
172
|
+
listExtractionsRequestOpts(requestParameters) {
|
|
173
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
174
|
+
if (requestParameters['extractionsAddExtractionPayload'] == null) {
|
|
175
|
+
throw new runtime.RequiredError('extractionsAddExtractionPayload', 'Required parameter "extractionsAddExtractionPayload" was null or undefined when calling listExtractions().');
|
|
176
|
+
}
|
|
177
|
+
const queryParameters = {};
|
|
178
|
+
if (requestParameters['status'] != null) {
|
|
179
|
+
queryParameters['status'] = requestParameters['status'];
|
|
180
|
+
}
|
|
181
|
+
if (requestParameters['today'] != null) {
|
|
182
|
+
queryParameters['today'] = requestParameters['today'];
|
|
183
|
+
}
|
|
184
|
+
if (requestParameters['includeDeleted'] != null) {
|
|
185
|
+
queryParameters['includeDeleted'] = requestParameters['includeDeleted'];
|
|
186
|
+
}
|
|
187
|
+
if (requestParameters['pageToken'] != null) {
|
|
188
|
+
queryParameters['pageToken'] = requestParameters['pageToken'];
|
|
189
|
+
}
|
|
190
|
+
if (requestParameters['maxResults'] != null) {
|
|
191
|
+
queryParameters['maxResults'] = requestParameters['maxResults'];
|
|
192
|
+
}
|
|
193
|
+
const headerParameters = {};
|
|
194
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
195
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
196
|
+
// oauth required
|
|
197
|
+
const token = this.configuration.accessToken;
|
|
198
|
+
const tokenString = yield token("OAuth2", ["crm:extraction"]);
|
|
199
|
+
if (tokenString) {
|
|
200
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
let urlPath = `/crm/api/v1/extractions`;
|
|
204
|
+
return {
|
|
205
|
+
path: urlPath,
|
|
206
|
+
method: 'GET',
|
|
207
|
+
headers: headerParameters,
|
|
208
|
+
query: queryParameters,
|
|
209
|
+
body: ExtractionsAddExtractionPayloadToJSON(requestParameters['extractionsAddExtractionPayload']),
|
|
210
|
+
};
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* List extractions
|
|
215
|
+
*/
|
|
216
|
+
listExtractionsRaw(requestParameters, initOverrides) {
|
|
217
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
218
|
+
const requestOptions = yield this.listExtractionsRequestOpts(requestParameters);
|
|
219
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
220
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ExtractionsListExtractionResponseFromJSON(jsonValue));
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* List extractions
|
|
225
|
+
*/
|
|
226
|
+
listExtractions(requestParameters, initOverrides) {
|
|
227
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
228
|
+
const response = yield this.listExtractionsRaw(requestParameters, initOverrides);
|
|
229
|
+
return yield response.value();
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Creates request options for resumeExtraction without sending the request
|
|
234
|
+
*/
|
|
235
|
+
resumeExtractionRequestOpts(requestParameters) {
|
|
236
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
237
|
+
if (requestParameters['uuid'] == null) {
|
|
238
|
+
throw new runtime.RequiredError('uuid', 'Required parameter "uuid" was null or undefined when calling resumeExtraction().');
|
|
239
|
+
}
|
|
240
|
+
if (requestParameters['extractionsResumeExtractionPayload'] == null) {
|
|
241
|
+
throw new runtime.RequiredError('extractionsResumeExtractionPayload', 'Required parameter "extractionsResumeExtractionPayload" was null or undefined when calling resumeExtraction().');
|
|
242
|
+
}
|
|
243
|
+
const queryParameters = {};
|
|
244
|
+
const headerParameters = {};
|
|
245
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
246
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
247
|
+
// oauth required
|
|
248
|
+
const token = this.configuration.accessToken;
|
|
249
|
+
const tokenString = yield token("OAuth2", ["crm:extraction"]);
|
|
250
|
+
if (tokenString) {
|
|
251
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
let urlPath = `/crm/api/v1/extractions/{uuid}/resume`;
|
|
255
|
+
urlPath = urlPath.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters['uuid'])));
|
|
256
|
+
return {
|
|
257
|
+
path: urlPath,
|
|
258
|
+
method: 'POST',
|
|
259
|
+
headers: headerParameters,
|
|
260
|
+
query: queryParameters,
|
|
261
|
+
body: ExtractionsResumeExtractionPayloadToJSON(requestParameters['extractionsResumeExtractionPayload']),
|
|
262
|
+
};
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Resume an extraction
|
|
267
|
+
*/
|
|
268
|
+
resumeExtractionRaw(requestParameters, initOverrides) {
|
|
269
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
270
|
+
const requestOptions = yield this.resumeExtractionRequestOpts(requestParameters);
|
|
271
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
272
|
+
return new runtime.VoidApiResponse(response);
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Resume an extraction
|
|
277
|
+
*/
|
|
278
|
+
resumeExtraction(requestParameters, initOverrides) {
|
|
279
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
280
|
+
yield this.resumeExtractionRaw(requestParameters, initOverrides);
|
|
281
|
+
});
|
|
282
|
+
}
|
|
77
283
|
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Equisoft /connect API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
*
|
|
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 type { UsersUserIdentity } from './UsersUserIdentity';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ChangeMetadata
|
|
17
|
+
*/
|
|
18
|
+
export interface ChangeMetadata {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Date}
|
|
22
|
+
* @memberof ChangeMetadata
|
|
23
|
+
*/
|
|
24
|
+
createdAt?: Date | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {UsersUserIdentity}
|
|
28
|
+
* @memberof ChangeMetadata
|
|
29
|
+
*/
|
|
30
|
+
createdBy?: UsersUserIdentity | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Date}
|
|
34
|
+
* @memberof ChangeMetadata
|
|
35
|
+
*/
|
|
36
|
+
modifiedAt?: Date | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {UsersUserIdentity}
|
|
40
|
+
* @memberof ChangeMetadata
|
|
41
|
+
*/
|
|
42
|
+
modifiedBy?: UsersUserIdentity | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof ChangeMetadata
|
|
47
|
+
*/
|
|
48
|
+
deletedAt?: Date | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {UsersUserIdentity}
|
|
52
|
+
* @memberof ChangeMetadata
|
|
53
|
+
*/
|
|
54
|
+
deletedBy?: UsersUserIdentity | null;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ChangeMetadata interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfChangeMetadata(value: object): value is ChangeMetadata;
|
|
60
|
+
export declare function ChangeMetadataFromJSON(json: any): ChangeMetadata;
|
|
61
|
+
export declare function ChangeMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeMetadata;
|
|
62
|
+
export declare function ChangeMetadataToJSON(json: any): ChangeMetadata;
|
|
63
|
+
export declare function ChangeMetadataToJSONTyped(value?: ChangeMetadata | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Equisoft /connect API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
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
|
+
import { UsersUserIdentityFromJSON, UsersUserIdentityToJSON, } from './UsersUserIdentity';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ChangeMetadata interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfChangeMetadata(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function ChangeMetadataFromJSON(json) {
|
|
22
|
+
return ChangeMetadataFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function ChangeMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
30
|
+
'createdBy': json['createdBy'] == null ? undefined : UsersUserIdentityFromJSON(json['createdBy']),
|
|
31
|
+
'modifiedAt': json['modifiedAt'] == null ? undefined : (new Date(json['modifiedAt'])),
|
|
32
|
+
'modifiedBy': json['modifiedBy'] == null ? undefined : UsersUserIdentityFromJSON(json['modifiedBy']),
|
|
33
|
+
'deletedAt': json['deletedAt'] == null ? undefined : (new Date(json['deletedAt'])),
|
|
34
|
+
'deletedBy': json['deletedBy'] == null ? undefined : UsersUserIdentityFromJSON(json['deletedBy']),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function ChangeMetadataToJSON(json) {
|
|
38
|
+
return ChangeMetadataToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function ChangeMetadataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
46
|
+
'createdBy': UsersUserIdentityToJSON(value['createdBy']),
|
|
47
|
+
'modifiedAt': value['modifiedAt'] == null ? value['modifiedAt'] : value['modifiedAt'].toISOString(),
|
|
48
|
+
'modifiedBy': UsersUserIdentityToJSON(value['modifiedBy']),
|
|
49
|
+
'deletedAt': value['deletedAt'] == null ? value['deletedAt'] : value['deletedAt'].toISOString(),
|
|
50
|
+
'deletedBy': UsersUserIdentityToJSON(value['deletedBy']),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Equisoft /connect API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
*
|
|
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 ExtractionsAddExtractionPayload
|
|
16
|
+
*/
|
|
17
|
+
export interface ExtractionsAddExtractionPayload {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ExtractionsAddExtractionPayload
|
|
22
|
+
*/
|
|
23
|
+
database: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ExtractionsAddExtractionPayload
|
|
28
|
+
*/
|
|
29
|
+
recipient: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ExtractionsAddExtractionPayload
|
|
34
|
+
*/
|
|
35
|
+
date?: string;
|
|
36
|
+
/**
|
|
37
|
+
* List of users uuids.
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof ExtractionsAddExtractionPayload
|
|
40
|
+
*/
|
|
41
|
+
users?: Array<string>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof ExtractionsAddExtractionPayload
|
|
46
|
+
*/
|
|
47
|
+
includeDocument?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof ExtractionsAddExtractionPayload
|
|
52
|
+
*/
|
|
53
|
+
includeGroup?: boolean;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the ExtractionsAddExtractionPayload interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfExtractionsAddExtractionPayload(value: object): value is ExtractionsAddExtractionPayload;
|
|
59
|
+
export declare function ExtractionsAddExtractionPayloadFromJSON(json: any): ExtractionsAddExtractionPayload;
|
|
60
|
+
export declare function ExtractionsAddExtractionPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtractionsAddExtractionPayload;
|
|
61
|
+
export declare function ExtractionsAddExtractionPayloadToJSON(json: any): ExtractionsAddExtractionPayload;
|
|
62
|
+
export declare function ExtractionsAddExtractionPayloadToJSONTyped(value?: ExtractionsAddExtractionPayload | null, ignoreDiscriminator?: boolean): any;
|
package/dist/esm/models/{ExtractionAddExtractionPayload.js → ExtractionsAddExtractionPayload.js}
RENAMED
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
|
-
* Check if a given object implements the
|
|
15
|
+
* Check if a given object implements the ExtractionsAddExtractionPayload interface.
|
|
16
16
|
*/
|
|
17
|
-
export function
|
|
17
|
+
export function instanceOfExtractionsAddExtractionPayload(value) {
|
|
18
18
|
if (!('database' in value) || value['database'] === undefined)
|
|
19
19
|
return false;
|
|
20
20
|
if (!('recipient' in value) || value['recipient'] === undefined)
|
|
21
21
|
return false;
|
|
22
22
|
return true;
|
|
23
23
|
}
|
|
24
|
-
export function
|
|
25
|
-
return
|
|
24
|
+
export function ExtractionsAddExtractionPayloadFromJSON(json) {
|
|
25
|
+
return ExtractionsAddExtractionPayloadFromJSONTyped(json, false);
|
|
26
26
|
}
|
|
27
|
-
export function
|
|
27
|
+
export function ExtractionsAddExtractionPayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
28
|
if (json == null) {
|
|
29
29
|
return json;
|
|
30
30
|
}
|
|
@@ -37,10 +37,10 @@ export function ExtractionAddExtractionPayloadFromJSONTyped(json, ignoreDiscrimi
|
|
|
37
37
|
'includeGroup': json['includeGroup'] == null ? undefined : json['includeGroup'],
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
export function
|
|
41
|
-
return
|
|
40
|
+
export function ExtractionsAddExtractionPayloadToJSON(json) {
|
|
41
|
+
return ExtractionsAddExtractionPayloadToJSONTyped(json, false);
|
|
42
42
|
}
|
|
43
|
-
export function
|
|
43
|
+
export function ExtractionsAddExtractionPayloadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
44
|
if (value == null) {
|
|
45
45
|
return value;
|
|
46
46
|
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Equisoft /connect API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
*
|
|
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 type { UsersUserIdentity } from './UsersUserIdentity';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ExtractionsDetails
|
|
17
|
+
*/
|
|
18
|
+
export interface ExtractionsDetails {
|
|
19
|
+
/**
|
|
20
|
+
* Database name.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ExtractionsDetails
|
|
23
|
+
*/
|
|
24
|
+
database?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Recipient of the extraction.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ExtractionsDetails
|
|
29
|
+
*/
|
|
30
|
+
recipient?: string;
|
|
31
|
+
/**
|
|
32
|
+
* List of users associated with the extraction. Empty list means all users.
|
|
33
|
+
* @type {Array<UsersUserIdentity>}
|
|
34
|
+
* @memberof ExtractionsDetails
|
|
35
|
+
*/
|
|
36
|
+
users?: Array<UsersUserIdentity>;
|
|
37
|
+
/**
|
|
38
|
+
* Indicates whether to include documents in the extraction.
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof ExtractionsDetails
|
|
41
|
+
*/
|
|
42
|
+
includeDocuments?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Indicates whether to include groups in the extraction.
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof ExtractionsDetails
|
|
47
|
+
*/
|
|
48
|
+
includeGroups?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Indicates whether the extraction is a resume.
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof ExtractionsDetails
|
|
53
|
+
*/
|
|
54
|
+
resume?: boolean;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ExtractionsDetails interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfExtractionsDetails(value: object): value is ExtractionsDetails;
|
|
60
|
+
export declare function ExtractionsDetailsFromJSON(json: any): ExtractionsDetails;
|
|
61
|
+
export declare function ExtractionsDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtractionsDetails;
|
|
62
|
+
export declare function ExtractionsDetailsToJSON(json: any): ExtractionsDetails;
|
|
63
|
+
export declare function ExtractionsDetailsToJSONTyped(value?: ExtractionsDetails | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Equisoft /connect API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
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
|
+
import { UsersUserIdentityFromJSON, UsersUserIdentityToJSON, } from './UsersUserIdentity';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ExtractionsDetails interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfExtractionsDetails(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function ExtractionsDetailsFromJSON(json) {
|
|
22
|
+
return ExtractionsDetailsFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function ExtractionsDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'database': json['database'] == null ? undefined : json['database'],
|
|
30
|
+
'recipient': json['recipient'] == null ? undefined : json['recipient'],
|
|
31
|
+
'users': json['users'] == null ? undefined : (json['users'].map(UsersUserIdentityFromJSON)),
|
|
32
|
+
'includeDocuments': json['includeDocuments'] == null ? undefined : json['includeDocuments'],
|
|
33
|
+
'includeGroups': json['includeGroups'] == null ? undefined : json['includeGroups'],
|
|
34
|
+
'resume': json['resume'] == null ? undefined : json['resume'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function ExtractionsDetailsToJSON(json) {
|
|
38
|
+
return ExtractionsDetailsToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function ExtractionsDetailsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'database': value['database'],
|
|
46
|
+
'recipient': value['recipient'],
|
|
47
|
+
'users': value['users'] == null ? undefined : (value['users'].map(UsersUserIdentityToJSON)),
|
|
48
|
+
'includeDocuments': value['includeDocuments'],
|
|
49
|
+
'includeGroups': value['includeGroups'],
|
|
50
|
+
'resume': value['resume'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Equisoft /connect API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
*
|
|
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 type { ChangeMetadata } from './ChangeMetadata';
|
|
13
|
+
import type { ExtractionsDetails } from './ExtractionsDetails';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ExtractionsExtraction
|
|
18
|
+
*/
|
|
19
|
+
export interface ExtractionsExtraction {
|
|
20
|
+
/**
|
|
21
|
+
* Unique identifier of the created extraction.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof ExtractionsExtraction
|
|
24
|
+
*/
|
|
25
|
+
uuid?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Status of the extraction.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof ExtractionsExtraction
|
|
30
|
+
*/
|
|
31
|
+
status?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Date and time when the extraction is scheduled.
|
|
34
|
+
* @type {Date}
|
|
35
|
+
* @memberof ExtractionsExtraction
|
|
36
|
+
*/
|
|
37
|
+
scheduledAt?: Date;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {ExtractionsDetails}
|
|
41
|
+
* @memberof ExtractionsExtraction
|
|
42
|
+
*/
|
|
43
|
+
details?: ExtractionsDetails;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {ChangeMetadata}
|
|
47
|
+
* @memberof ExtractionsExtraction
|
|
48
|
+
*/
|
|
49
|
+
changeMetadata?: ChangeMetadata;
|
|
50
|
+
/**
|
|
51
|
+
* Date and time when the extraction was processed.
|
|
52
|
+
* @type {Date}
|
|
53
|
+
* @memberof ExtractionsExtraction
|
|
54
|
+
*/
|
|
55
|
+
processedAt?: Date | null;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the ExtractionsExtraction interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfExtractionsExtraction(value: object): value is ExtractionsExtraction;
|
|
61
|
+
export declare function ExtractionsExtractionFromJSON(json: any): ExtractionsExtraction;
|
|
62
|
+
export declare function ExtractionsExtractionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtractionsExtraction;
|
|
63
|
+
export declare function ExtractionsExtractionToJSON(json: any): ExtractionsExtraction;
|
|
64
|
+
export declare function ExtractionsExtractionToJSONTyped(value?: ExtractionsExtraction | null, ignoreDiscriminator?: boolean): any;
|