@colijnit/mainapi 300.1.13 → 300.1.15
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/workflow-category.enum.d.ts +1 -0
- package/build/enum/workflow-category.enum.js +1 -0
- package/build/main-api-connection.d.ts +1 -0
- package/build/main-api.d.ts +1 -0
- package/build/main-api.js +5 -0
- package/build/main-api.unit.test.js +7 -2
- package/build/main-auth.d.ts +1 -0
- package/build/main-auth.js +7 -0
- package/build/main-public.d.ts +1 -0
- package/build/main-public.js +6 -0
- package/package.json +1 -1
|
@@ -20,5 +20,6 @@ var WorkflowCategoryType;
|
|
|
20
20
|
WorkflowCategoryType["Company"] = "COMPANY";
|
|
21
21
|
WorkflowCategoryType["Supplier"] = "SUPPLIER";
|
|
22
22
|
WorkflowCategoryType["OutstandingAmounts"] = "OUTSTANDING_AMOUNTS";
|
|
23
|
+
WorkflowCategoryType["SalesReturn"] = "SALES_RETURN";
|
|
23
24
|
WorkflowCategoryType["None"] = "NONE";
|
|
24
25
|
})(WorkflowCategoryType || (exports.WorkflowCategoryType = WorkflowCategoryType = {}));
|
|
@@ -39,6 +39,7 @@ export declare abstract class MainApiConnection {
|
|
|
39
39
|
abstract getDocumentContent(id: number, thumbnail: boolean): Promise<DataServiceResponseData>;
|
|
40
40
|
abstract getDocumentsForCurrentUserByTransId(transId: number): Promise<DataServiceResponseData>;
|
|
41
41
|
abstract loadDocuments(key: string, table: TableName): Promise<DataServiceResponseData>;
|
|
42
|
+
abstract selectNotesByTableKey(key: string, table: TableName): Promise<DataServiceResponseData>;
|
|
42
43
|
abstract loadDocumentContent(docId: number): Promise<DataServiceResponseData>;
|
|
43
44
|
abstract deleteDocument(documentId: number): Promise<DataServiceResponseData>;
|
|
44
45
|
abstract upsertDocument(key: string, table: TableName, document: CoDocument): Promise<DataServiceResponseData>;
|
package/build/main-api.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ export declare class MainApi {
|
|
|
55
55
|
getDocumentContent(id: number, thumbnail?: boolean): Promise<DataServiceResponseData>;
|
|
56
56
|
getDocumentsForCurrentUserByTransId(transId: number): Promise<DataServiceResponseData>;
|
|
57
57
|
loadDocuments(key: string, table: TableName): Promise<DataServiceResponseData>;
|
|
58
|
+
selectNotesByTableKey(key: string, table: TableName): Promise<DataServiceResponseData>;
|
|
58
59
|
loadDocumentContent(docId: number): Promise<DataServiceResponseData>;
|
|
59
60
|
deleteDocument(documentId: number): Promise<DataServiceResponseData>;
|
|
60
61
|
upsertDocument(key: string, table: TableName, document: CoDocument): Promise<DataServiceResponseData>;
|
package/build/main-api.js
CHANGED
|
@@ -97,6 +97,11 @@ class MainApi {
|
|
|
97
97
|
return this.mainApi.loadDocuments(key, table);
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
|
+
selectNotesByTableKey(key, table) {
|
|
101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
+
return this.mainApi.selectNotesByTableKey(key, table);
|
|
103
|
+
});
|
|
104
|
+
}
|
|
100
105
|
loadDocumentContent(docId) {
|
|
101
106
|
return this.mainApi.loadDocumentContent(docId);
|
|
102
107
|
}
|
|
@@ -22,8 +22,8 @@ const options = {
|
|
|
22
22
|
};
|
|
23
23
|
const localOptions = {
|
|
24
24
|
url: 'http://localhost:8080/ione',
|
|
25
|
-
schema: "
|
|
26
|
-
version: "
|
|
25
|
+
schema: "142309",
|
|
26
|
+
version: "300",
|
|
27
27
|
useLoginEncryption: true,
|
|
28
28
|
username: "patrick",
|
|
29
29
|
password: "vankeulen1234567890!",
|
|
@@ -218,4 +218,9 @@ describe("Connector", () => {
|
|
|
218
218
|
const result = yield connector.createQRCode(width, height, value);
|
|
219
219
|
expect(result).toBeDefined();
|
|
220
220
|
}));
|
|
221
|
+
it('selectNotesByTableKey', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
222
|
+
yield connector.connect();
|
|
223
|
+
const result = yield connector.selectNotesByTableKey('738428', table_name_enum_1.TableName.Goods);
|
|
224
|
+
expect(result).toBeDefined();
|
|
225
|
+
}));
|
|
221
226
|
});
|
package/build/main-auth.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export declare class MainAuth extends MainApiConnection {
|
|
|
34
34
|
getDocumentContent(id: number, thumbnail?: boolean): Promise<DataServiceResponseData>;
|
|
35
35
|
getDocumentsForCurrentUserByTransId(transId: number): Promise<DataServiceResponseData>;
|
|
36
36
|
loadDocuments(key: string, table: TableName): Promise<DataServiceResponseData>;
|
|
37
|
+
selectNotesByTableKey(key: string, table: TableName): Promise<DataServiceResponseData>;
|
|
37
38
|
loadDocumentContent(docId: number): Promise<DataServiceResponseData>;
|
|
38
39
|
upsertDocument(key: string, table: TableName, document: CoDocument): Promise<DataServiceResponseData>;
|
|
39
40
|
deleteDocument(documentId: number): Promise<DataServiceResponseData>;
|
package/build/main-auth.js
CHANGED
|
@@ -152,6 +152,13 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
152
152
|
};
|
|
153
153
|
return this.selectMultiple(module_name_enum_1.ModuleName.General, "CoDocument", document_method_enum_1.DocumentMethod.SelectDocsByTableKey, data);
|
|
154
154
|
}
|
|
155
|
+
selectNotesByTableKey(key, table) {
|
|
156
|
+
const data = {
|
|
157
|
+
key: key,
|
|
158
|
+
table: table
|
|
159
|
+
};
|
|
160
|
+
return this.selectMultiple(module_name_enum_1.ModuleName.General, "Note", general_method_enum_1.GeneralMethod.SelectNotesByTableKey, data);
|
|
161
|
+
}
|
|
155
162
|
loadDocumentContent(docId) {
|
|
156
163
|
const params = {
|
|
157
164
|
docId: docId
|
package/build/main-public.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export declare class MainPublic extends MainApiConnection {
|
|
|
33
33
|
getDocumentContent(id: number, thumbnail: boolean): Promise<DataServiceResponseData>;
|
|
34
34
|
getDocumentsForCurrentUserByTransId(transId: number): Promise<DataServiceResponseData>;
|
|
35
35
|
loadDocuments(key: string, table: TableName): Promise<DataServiceResponseData>;
|
|
36
|
+
selectNotesByTableKey(key: string, table: TableName): Promise<DataServiceResponseData>;
|
|
36
37
|
loadDocumentContent(docId: number): Promise<DataServiceResponseData>;
|
|
37
38
|
upsertDocument(key: string, table: TableName, document: CoDocument): Promise<DataServiceResponseData>;
|
|
38
39
|
deleteDocument(documentId: number): Promise<DataServiceResponseData>;
|
package/build/main-public.js
CHANGED
|
@@ -75,6 +75,12 @@ class MainPublic extends main_api_connection_1.MainApiConnection {
|
|
|
75
75
|
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
|
+
selectNotesByTableKey(key, table) {
|
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
console.warn('selectNotesByTableKey not implemented');
|
|
81
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
82
|
+
});
|
|
83
|
+
}
|
|
78
84
|
loadDocumentContent(docId) {
|
|
79
85
|
console.warn('loadDocumentContent not implemented');
|
|
80
86
|
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|