@colijnit/mainapi 262.1.7 → 262.1.9
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/build/enum/model-creation-method.enum.d.ts +1 -0
- package/build/enum/model-creation-method.enum.js +1 -0
- package/build/main-api-connection.d.ts +2 -1
- package/build/main-api.d.ts +16 -15
- package/build/main-api.js +11 -8
- package/build/main-auth.d.ts +2 -1
- package/build/main-auth.js +26 -1
- package/build/main-public.d.ts +2 -1
- package/build/main-public.js +5 -1
- package/build/model/email-activity-request.d.ts +0 -1
- package/package.json +1 -1
|
@@ -4,5 +4,6 @@ exports.ModelCreationMethod = void 0;
|
|
|
4
4
|
var ModelCreationMethod;
|
|
5
5
|
(function (ModelCreationMethod) {
|
|
6
6
|
ModelCreationMethod["InitRenderRequest"] = "initRenderRequest";
|
|
7
|
+
ModelCreationMethod["InitMultiviewRenderRequest"] = "initMultiviewRenderRequest";
|
|
7
8
|
ModelCreationMethod["GetRenderStatus"] = "getRenderStatus";
|
|
8
9
|
})(ModelCreationMethod || (exports.ModelCreationMethod = ModelCreationMethod = {}));
|
|
@@ -102,7 +102,8 @@ export declare abstract class MainApiConnection {
|
|
|
102
102
|
abstract getFileUploadStatus(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
|
|
103
103
|
abstract getFileUploadComplete(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
|
|
104
104
|
abstract cancelFileUpload(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
|
|
105
|
-
abstract
|
|
105
|
+
abstract initRenderRequest(uploadType: string, caseName: string, quality: string, explanation: string, fileName: string, fileSize: number, fileHash: string): Promise<DataServiceResponseData>;
|
|
106
|
+
abstract initMultiviewRenderRequest(caseName: string, explanation: string, frontFileName: string, frontFileSize: number, frontFileHash: string, backFileName: string, backFileSize: number, backFileHash: string, leftFileName: string, leftFileSize: number, leftFileHash: string, rightFileName: string, rightFileSize: number, rightFileHash: string): Promise<DataServiceResponseData>;
|
|
106
107
|
abstract getModelCreationRenderStatus(uploadId?: string): Promise<DataServiceResponseData>;
|
|
107
108
|
abstract upsertTransactionLineFormResponse(transUUID: string, transactionLineUUID: string, formResponse: FormResponse): Promise<DataServiceResponseData>;
|
|
108
109
|
abstract getContainers(): Promise<DataServiceResponseData>;
|
package/build/main-api.d.ts
CHANGED
|
@@ -3,25 +3,25 @@ import { Options } from '@colijnit/ioneconnector/build/model/options';
|
|
|
3
3
|
import { MainApiConnection } from './main-api-connection';
|
|
4
4
|
import { SequenceName } from './enum/sequence-name.enum';
|
|
5
5
|
import { DataServiceResponseData } from '@colijnit/ioneconnector/build/model/data-service-response-data';
|
|
6
|
-
import { InternalParam } from
|
|
6
|
+
import { InternalParam } from './enum/internal-param.enum';
|
|
7
7
|
import { DomainName } from './enum/domain-name.enum';
|
|
8
|
-
import { TagCategory } from
|
|
9
|
-
import { TagTreeItem } from
|
|
10
|
-
import { Preset } from
|
|
8
|
+
import { TagCategory } from './enum/tab-category.enum';
|
|
9
|
+
import { TagTreeItem } from './model/tag-tree-item.bo';
|
|
10
|
+
import { Preset } from './model/preset.bo';
|
|
11
11
|
import { ServerResponseData } from '@colijnit/ioneconnector/build/model/server-response-data';
|
|
12
12
|
import { ReportType } from './enum/report-type.enum';
|
|
13
13
|
import { ModuleName } from './enum/module-name.enum';
|
|
14
|
-
import { TableName } from
|
|
15
|
-
import { CoDocument } from
|
|
16
|
-
import { Activity } from
|
|
17
|
-
import { LoginResponse } from
|
|
18
|
-
import { SelectReportTemplatesRequest } from
|
|
19
|
-
import { EmailJob } from
|
|
20
|
-
import { ActivityEmailHistory } from
|
|
21
|
-
import { InternalDefault } from
|
|
22
|
-
import { EmailActivityRequest } from
|
|
14
|
+
import { TableName } from './enum/table-name.enum';
|
|
15
|
+
import { CoDocument } from './model/co-document.bo';
|
|
16
|
+
import { Activity } from './model/activity.bo';
|
|
17
|
+
import { LoginResponse } from '@colijnit/ioneconnector/build/model/login-response';
|
|
18
|
+
import { SelectReportTemplatesRequest } from './model/select-report-templates-request';
|
|
19
|
+
import { EmailJob } from './model/email-job';
|
|
20
|
+
import { ActivityEmailHistory } from './model/activity-email-history.bo';
|
|
21
|
+
import { InternalDefault } from './enum/internal-default.enum';
|
|
22
|
+
import { EmailActivityRequest } from './model/email-activity-request';
|
|
23
23
|
import { FormResponse } from './model/form-response.bo';
|
|
24
|
-
import { Container } from
|
|
24
|
+
import { Container } from './model/container.bo';
|
|
25
25
|
import { PresetSearchRequest } from './model/preset-search-request';
|
|
26
26
|
import { PresetUser } from './model/preset-user.bo';
|
|
27
27
|
export declare class MainApi {
|
|
@@ -125,7 +125,8 @@ export declare class MainApi {
|
|
|
125
125
|
getFileUploadStatus(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
|
|
126
126
|
getFileUploadComplete(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
|
|
127
127
|
cancelFileUpload(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
|
|
128
|
-
|
|
128
|
+
initRenderRequest(uploadType: string, caseName: string, quality: string, explanation: string, fileName: string, fileSize: number, fileHash: string): Promise<DataServiceResponseData>;
|
|
129
|
+
initMultiviewRenderRequest(caseName: string, explanation: string, frontFileName: string, frontFileSize: number, frontFileHash: string, backFileName: string, backFileSize: number, backFileHash: string, leftFileName: string, leftFileSize: number, leftFileHash: string, rightFileName: string, rightFileSize: number, rightFileHash: string): Promise<DataServiceResponseData>;
|
|
129
130
|
getModelCreationRenderStatus(uploadId?: string): Promise<DataServiceResponseData>;
|
|
130
131
|
createQRCode(width: number, height: number, value: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
131
132
|
getWarehousesShort(): Promise<DataServiceResponseData>;
|
package/build/main-api.js
CHANGED
|
@@ -23,13 +23,13 @@ class MainApi {
|
|
|
23
23
|
this.useLoginEncryption = false;
|
|
24
24
|
this._subs = [];
|
|
25
25
|
if (options) {
|
|
26
|
-
this.url = options.url ? options.url :
|
|
27
|
-
this.version = options.version ? options.version :
|
|
28
|
-
this.schema = options.schema ? options.schema :
|
|
29
|
-
this.branch = options.branch ? options.branch :
|
|
26
|
+
this.url = options.url ? options.url : '';
|
|
27
|
+
this.version = options.version ? options.version : '';
|
|
28
|
+
this.schema = options.schema ? options.schema : '';
|
|
29
|
+
this.branch = options.branch ? options.branch : '';
|
|
30
30
|
this.languageCode = options.languageCode;
|
|
31
|
-
this.currencyId = options.hasOwnProperty(
|
|
32
|
-
this.useLoginEncryption = options.hasOwnProperty(
|
|
31
|
+
this.currencyId = options.hasOwnProperty('currencyId') ? options.currencyId : undefined;
|
|
32
|
+
this.useLoginEncryption = options.hasOwnProperty('useLoginEncryption') ? options.useLoginEncryption === true : false;
|
|
33
33
|
}
|
|
34
34
|
this._connector = new ioneconnector_1.Connector(options);
|
|
35
35
|
this.mainApi = MainApi.createConnector(this._connector.isPublicSession(), this._connector.hasSession());
|
|
@@ -351,8 +351,11 @@ class MainApi {
|
|
|
351
351
|
cancelFileUpload(uploadId, uploadType) {
|
|
352
352
|
return this.mainApi.cancelFileUpload(uploadId, uploadType);
|
|
353
353
|
}
|
|
354
|
-
|
|
355
|
-
return this.mainApi.
|
|
354
|
+
initRenderRequest(uploadType, caseName, quality, explanation, fileName, fileSize, fileHash) {
|
|
355
|
+
return this.mainApi.initRenderRequest(uploadType, caseName, quality, explanation, fileName, fileSize, fileHash);
|
|
356
|
+
}
|
|
357
|
+
initMultiviewRenderRequest(caseName, explanation, frontFileName, frontFileSize, frontFileHash, backFileName, backFileSize, backFileHash, leftFileName, leftFileSize, leftFileHash, rightFileName, rightFileSize, rightFileHash) {
|
|
358
|
+
return this.mainApi.initMultiviewRenderRequest(caseName, explanation, frontFileName, frontFileSize, frontFileHash, backFileName, backFileSize, backFileHash, leftFileName, leftFileSize, leftFileHash, rightFileName, rightFileSize, rightFileHash);
|
|
356
359
|
}
|
|
357
360
|
getModelCreationRenderStatus(uploadId) {
|
|
358
361
|
return this.mainApi.getModelCreationRenderStatus(uploadId);
|
package/build/main-auth.d.ts
CHANGED
|
@@ -101,7 +101,8 @@ export declare class MainAuth extends MainApiConnection {
|
|
|
101
101
|
getFileUploadStatus(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
|
|
102
102
|
getFileUploadComplete(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
|
|
103
103
|
cancelFileUpload(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
|
|
104
|
-
|
|
104
|
+
initRenderRequest(uploadType: string, caseName: string, quality: string, explanation: string, fileName: string, fileSize: number, fileHash: string): Promise<DataServiceResponseData>;
|
|
105
|
+
initMultiviewRenderRequest(caseName: string, explanation: string, frontFileName: string, frontFileSize: number, frontFileHash: string, backFileName: string, backFileSize: number, backFileHash: string, leftFileName: string, leftFileSize: number, leftFileHash: string, rightFileName: string, rightFileSize: number, rightFileHash: string): Promise<DataServiceResponseData>;
|
|
105
106
|
getModelCreationRenderStatus(uploadId?: string): Promise<DataServiceResponseData>;
|
|
106
107
|
getContainers(): Promise<DataServiceResponseData>;
|
|
107
108
|
getContainer(containerId: number): Promise<DataServiceResponseData>;
|
package/build/main-auth.js
CHANGED
|
@@ -983,7 +983,7 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
983
983
|
};
|
|
984
984
|
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data);
|
|
985
985
|
}
|
|
986
|
-
|
|
986
|
+
initRenderRequest(uploadType, caseName, quality, explanation, fileName, fileSize, fileHash) {
|
|
987
987
|
const params = {
|
|
988
988
|
uploadType: uploadType,
|
|
989
989
|
caseName: caseName,
|
|
@@ -1001,6 +1001,31 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
1001
1001
|
};
|
|
1002
1002
|
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data);
|
|
1003
1003
|
}
|
|
1004
|
+
initMultiviewRenderRequest(caseName, explanation, frontFileName, frontFileSize, frontFileHash, backFileName, backFileSize, backFileHash, leftFileName, leftFileSize, leftFileHash, rightFileName, rightFileSize, rightFileHash) {
|
|
1005
|
+
const params = {
|
|
1006
|
+
caseName: caseName,
|
|
1007
|
+
explanation: explanation,
|
|
1008
|
+
frontFileName: frontFileName,
|
|
1009
|
+
frontFileSize: frontFileSize,
|
|
1010
|
+
frontFileHash: frontFileHash,
|
|
1011
|
+
backFileName: backFileName,
|
|
1012
|
+
backFileSize: backFileSize,
|
|
1013
|
+
backFileHash: backFileHash,
|
|
1014
|
+
leftFileName: leftFileName,
|
|
1015
|
+
leftFileSize: leftFileSize,
|
|
1016
|
+
leftFileHash: leftFileHash,
|
|
1017
|
+
rightFileName: rightFileName,
|
|
1018
|
+
rightFileSize: rightFileSize,
|
|
1019
|
+
rightFileHash: rightFileHash
|
|
1020
|
+
};
|
|
1021
|
+
const data = {
|
|
1022
|
+
moduleName: module_name_enum_1.ModuleName.General,
|
|
1023
|
+
methodName: model_creation_method_enum_1.ModelCreationMethod.InitMultiviewRenderRequest,
|
|
1024
|
+
refCursorAsArray: true,
|
|
1025
|
+
parameterValues: params
|
|
1026
|
+
};
|
|
1027
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data);
|
|
1028
|
+
}
|
|
1004
1029
|
getModelCreationRenderStatus(uploadId) {
|
|
1005
1030
|
const params = {
|
|
1006
1031
|
uploadId: uploadId
|
package/build/main-public.d.ts
CHANGED
|
@@ -93,7 +93,8 @@ export declare class MainPublic extends MainApiConnection {
|
|
|
93
93
|
getFileUploadStatus(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
|
|
94
94
|
getFileUploadComplete(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
|
|
95
95
|
cancelFileUpload(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
|
|
96
|
-
|
|
96
|
+
initRenderRequest(uploadType: string, caseName: string, quality: string, explanation: string, fileName: string, fileSize: number, fileHash: string): Promise<DataServiceResponseData>;
|
|
97
|
+
initMultiviewRenderRequest(caseName: string, explanation: string, frontFileName: string, frontFileSize: number, frontFileHash: string, backFileName: string, backFileSize: number, backFileHash: string, leftFileName: string, leftFileSize: number, leftFileHash: string, rightFileName: string, rightFileSize: number, rightFileHash: string): Promise<DataServiceResponseData>;
|
|
97
98
|
getModelCreationRenderStatus(uploadId?: string): Promise<DataServiceResponseData>;
|
|
98
99
|
deletePreset(preset: Preset): Promise<DataServiceResponseData>;
|
|
99
100
|
getPresetUsers(request: PresetSearchRequest): Promise<DataServiceResponseData>;
|
package/build/main-public.js
CHANGED
|
@@ -374,7 +374,11 @@ class MainPublic extends main_api_connection_1.MainApiConnection {
|
|
|
374
374
|
console.warn('cancelFileUpload not implemented');
|
|
375
375
|
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
376
376
|
}
|
|
377
|
-
|
|
377
|
+
initRenderRequest(uploadType, caseName, quality, explanation, fileName, fileSize, fileHash) {
|
|
378
|
+
console.warn('initializeModelCreationRenderRequest not implemented');
|
|
379
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
380
|
+
}
|
|
381
|
+
initMultiviewRenderRequest(caseName, explanation, frontFileName, frontFileSize, frontFileHash, backFileName, backFileSize, backFileHash, leftFileName, leftFileSize, leftFileHash, rightFileName, rightFileSize, rightFileHash) {
|
|
378
382
|
console.warn('initializeModelCreationRenderRequest not implemented');
|
|
379
383
|
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
380
384
|
}
|