@colijnit/transactionapi 1.1.94 → 1.1.96
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/master-data-object-name.enum.d.ts +2 -1
- package/build/enum/master-data-object-name.enum.js +1 -0
- package/build/enum/module-name.enum.d.ts +2 -1
- package/build/enum/module-name.enum.js +1 -0
- package/build/enum/public-service-method.d.ts +2 -1
- package/build/enum/public-service-method.js +1 -0
- package/build/ione-api-transaction.d.ts +1 -0
- package/build/model/article-line-status.bo.d.ts +11 -0
- package/build/model/transaction-search-view-request.d.ts +1 -0
- package/build/model/workflow-status.bo.d.ts +10 -0
- package/build/model/workflow-status.bo.js +10 -0
- package/build/transaction-auth.d.ts +1 -0
- package/build/transaction-auth.js +6 -0
- package/build/transaction-public.d.ts +1 -0
- package/build/transaction-public.js +7 -0
- package/build/transaction.d.ts +1 -0
- package/build/transaction.js +3 -0
- package/build/transaction.unit.test.js +8 -3
- package/package.json +1 -1
|
@@ -21,4 +21,5 @@ var MasterDataObjectName;
|
|
|
21
21
|
MasterDataObjectName["PriceList"] = "PriceList";
|
|
22
22
|
MasterDataObjectName["SalesPerson"] = "SalesPerson";
|
|
23
23
|
MasterDataObjectName["Vat"] = "Vat";
|
|
24
|
+
MasterDataObjectName["WorkflowStatus"] = "WorkflowStatus";
|
|
24
25
|
})(MasterDataObjectName = exports.MasterDataObjectName || (exports.MasterDataObjectName = {}));
|
|
@@ -95,5 +95,6 @@ export declare enum PublicServiceMethod {
|
|
|
95
95
|
GetCashRegisters = "getCashRegisters",
|
|
96
96
|
GetCashDrawers = "getCashDrawers",
|
|
97
97
|
SearchTransactions = "searchTransactions",
|
|
98
|
-
UpdateTextLine = "updateTextLine"
|
|
98
|
+
UpdateTextLine = "updateTextLine",
|
|
99
|
+
GetWorkFlowStatuses = "getWorkFlowStatuses"
|
|
99
100
|
}
|
|
@@ -100,4 +100,5 @@ var PublicServiceMethod;
|
|
|
100
100
|
PublicServiceMethod["GetCashDrawers"] = "getCashDrawers";
|
|
101
101
|
PublicServiceMethod["SearchTransactions"] = "searchTransactions";
|
|
102
102
|
PublicServiceMethod["UpdateTextLine"] = "updateTextLine";
|
|
103
|
+
PublicServiceMethod["GetWorkFlowStatuses"] = "getWorkFlowStatuses";
|
|
103
104
|
})(PublicServiceMethod = exports.PublicServiceMethod || (exports.PublicServiceMethod = {}));
|
|
@@ -126,6 +126,7 @@ export declare abstract class IoneApiTransaction {
|
|
|
126
126
|
abstract getDocumentContent(id: number, thumbnail: boolean): Promise<DataServiceResponseData>;
|
|
127
127
|
abstract getCountries(): Promise<DataServiceResponseData>;
|
|
128
128
|
abstract getCustomerGroups(): Promise<DataServiceResponseData>;
|
|
129
|
+
abstract getWorkFlowStatuses(transactionKind: TransactionKind): Promise<DataServiceResponseData>;
|
|
129
130
|
abstract commit(): Promise<DataServiceResponseData>;
|
|
130
131
|
abstract rollback(): Promise<DataServiceResponseData>;
|
|
131
132
|
abstract getPrivacySettings(): Promise<DataServiceResponseData>;
|
|
@@ -4,21 +4,32 @@ export declare class ArticleLineStatus extends BusinessObject {
|
|
|
4
4
|
lineNr: number;
|
|
5
5
|
hasInvoices: boolean;
|
|
6
6
|
quantityAllocated: number;
|
|
7
|
+
isFullyAllocated: boolean;
|
|
7
8
|
quantityToAllocate: number;
|
|
8
9
|
quantityToBePicked: number;
|
|
10
|
+
isFullyToBePicked: boolean;
|
|
9
11
|
quantityPicked: number;
|
|
12
|
+
isFullyPicked: boolean;
|
|
10
13
|
quantityPlanned: number;
|
|
11
14
|
quantityDelivered: number;
|
|
15
|
+
isFullyDelivered: boolean;
|
|
12
16
|
quantityToDeliver: number;
|
|
13
17
|
quantityInvoiced: number;
|
|
18
|
+
isFullyInvoiced: boolean;
|
|
14
19
|
quantityToInvoice: number;
|
|
15
20
|
quantityOrdered: number;
|
|
21
|
+
isFullyOrdered: boolean;
|
|
16
22
|
quantityPlanningRequested: number;
|
|
17
23
|
quantityPlanningPreferredDateEntered: number;
|
|
18
24
|
quantityPlanningFinal: number;
|
|
19
25
|
quantityReceived: number;
|
|
26
|
+
isFullyReceived: boolean;
|
|
20
27
|
quantityToReceive: number;
|
|
21
28
|
quantityTransportNotification: number;
|
|
22
29
|
quantityPurchaseConfirmed: number;
|
|
30
|
+
isFullyPurchaseConfirmed: boolean;
|
|
23
31
|
quantityInvoiceControl: number;
|
|
32
|
+
isFullyInvoiceControlled: boolean;
|
|
33
|
+
quantityReceivedUnprocessed: number;
|
|
34
|
+
isFullyReceivedUnProcessed: boolean;
|
|
24
35
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
2
|
+
export declare class WorkFlowStatus extends BusinessObject {
|
|
3
|
+
stateId: number;
|
|
4
|
+
statusName: string;
|
|
5
|
+
description: string;
|
|
6
|
+
isClosed: boolean;
|
|
7
|
+
canvasX: number;
|
|
8
|
+
canvasY: number;
|
|
9
|
+
getId(): number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkFlowStatus = void 0;
|
|
4
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
5
|
+
class WorkFlowStatus extends business_object_1.BusinessObject {
|
|
6
|
+
getId() {
|
|
7
|
+
return this.stateId;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.WorkFlowStatus = WorkFlowStatus;
|
|
@@ -120,6 +120,7 @@ export declare class TransactionAuth extends IoneApiTransaction {
|
|
|
120
120
|
getCashDrawers(cashDrawersRequest: CashDrawersRequest): Promise<DataServiceResponseData>;
|
|
121
121
|
getCountries(): Promise<DataServiceResponseData>;
|
|
122
122
|
getCustomerGroups(): Promise<DataServiceResponseData>;
|
|
123
|
+
getWorkFlowStatuses(transactionKind: TransactionKind): Promise<DataServiceResponseData>;
|
|
123
124
|
commit(): Promise<DataServiceResponseData>;
|
|
124
125
|
rollback(): Promise<DataServiceResponseData>;
|
|
125
126
|
getPrivacySettings(): Promise<DataServiceResponseData>;
|
|
@@ -106,6 +106,12 @@ class TransactionAuth extends ione_api_transaction_1.IoneApiTransaction {
|
|
|
106
106
|
getCustomerGroups() {
|
|
107
107
|
return this.selectMultiple(module_name_enum_1.ModuleName.MasterData, master_data_object_name_enum_1.MasterDataObjectName.CustomerGroup);
|
|
108
108
|
}
|
|
109
|
+
getWorkFlowStatuses(transactionKind) {
|
|
110
|
+
const params = {
|
|
111
|
+
transactionKind: transactionKind
|
|
112
|
+
};
|
|
113
|
+
return this.selectMultiple(module_name_enum_1.ModuleName.Workflow, master_data_object_name_enum_1.MasterDataObjectName.WorkflowStatus, undefined, params);
|
|
114
|
+
}
|
|
109
115
|
commit() {
|
|
110
116
|
return this._call(data_service_method_enum_1.DataServiceMethod.Commit, {}, backend_service_name_enum_1.BackendServiceName.DatasessionService);
|
|
111
117
|
}
|
|
@@ -121,6 +121,7 @@ export declare class TransactionPublic extends IoneApiTransaction {
|
|
|
121
121
|
getCashRegisters(): Promise<DataServiceResponseData>;
|
|
122
122
|
getCashDrawers(): Promise<DataServiceResponseData>;
|
|
123
123
|
getCustomerGroups(): Promise<DataServiceResponseData>;
|
|
124
|
+
getWorkFlowStatuses(transactionKind: TransactionKind): Promise<DataServiceResponseData>;
|
|
124
125
|
commit(): Promise<DataServiceResponseData>;
|
|
125
126
|
rollback(): Promise<DataServiceResponseData>;
|
|
126
127
|
getPrivacySettings(): Promise<DataServiceResponseData>;
|
|
@@ -85,6 +85,13 @@ class TransactionPublic extends ione_api_transaction_1.IoneApiTransaction {
|
|
|
85
85
|
const data = { ...this.createServiceRequestData() };
|
|
86
86
|
return this._call(public_service_method_1.PublicServiceMethod.GetCustomerGroups, data);
|
|
87
87
|
}
|
|
88
|
+
async getWorkFlowStatuses(transactionKind) {
|
|
89
|
+
const params = {
|
|
90
|
+
transactionKind: transactionKind
|
|
91
|
+
};
|
|
92
|
+
const data = { ...this.createServiceRequestData(), parameterValues: params };
|
|
93
|
+
return this._call(public_service_method_1.PublicServiceMethod.GetWorkFlowStatuses, data);
|
|
94
|
+
}
|
|
88
95
|
async commit() {
|
|
89
96
|
const data = { ...this.createServiceRequestData() };
|
|
90
97
|
return this._call(public_service_method_1.PublicServiceMethod.Commit, data);
|
package/build/transaction.d.ts
CHANGED
|
@@ -135,6 +135,7 @@ export declare class Transaction {
|
|
|
135
135
|
getDocumentContent(id: number, thumbnail: boolean): Promise<DataServiceResponseData>;
|
|
136
136
|
getCountries(): Promise<DataServiceResponseData>;
|
|
137
137
|
getCustomerGroups(): Promise<DataServiceResponseData>;
|
|
138
|
+
getWorkFlowStatuses(transactionKind: TransactionKind): Promise<DataServiceResponseData>;
|
|
138
139
|
commit(): Promise<DataServiceResponseData>;
|
|
139
140
|
rollback(): Promise<DataServiceResponseData>;
|
|
140
141
|
getPrivacySettings(): Promise<DataServiceResponseData>;
|
package/build/transaction.js
CHANGED
|
@@ -54,6 +54,9 @@ class Transaction {
|
|
|
54
54
|
getCustomerGroups() {
|
|
55
55
|
return this.transaction.getCustomerGroups();
|
|
56
56
|
}
|
|
57
|
+
getWorkFlowStatuses(transactionKind) {
|
|
58
|
+
return this.transaction.getWorkFlowStatuses(transactionKind);
|
|
59
|
+
}
|
|
57
60
|
commit() {
|
|
58
61
|
return this.transaction.commit();
|
|
59
62
|
}
|
|
@@ -24,8 +24,8 @@ const localOptions = {
|
|
|
24
24
|
schema: "815",
|
|
25
25
|
version: "252",
|
|
26
26
|
useLoginEncryption: true,
|
|
27
|
-
username: "
|
|
28
|
-
password: "
|
|
27
|
+
username: "elske",
|
|
28
|
+
password: "elske1"
|
|
29
29
|
};
|
|
30
30
|
const remoteOptions = {
|
|
31
31
|
url: "http://130.62.7.180:8082/ione",
|
|
@@ -51,7 +51,7 @@ const publicOptions = {
|
|
|
51
51
|
describe("TransactionAPI", () => {
|
|
52
52
|
let transaction;
|
|
53
53
|
beforeEach(() => {
|
|
54
|
-
transaction = new transaction_1.Transaction(
|
|
54
|
+
transaction = new transaction_1.Transaction(localOptions);
|
|
55
55
|
jest.setTimeout(130000);
|
|
56
56
|
});
|
|
57
57
|
it('getPostalCodeRetrieval_shouldContainCityMiddelburg', async () => {
|
|
@@ -441,4 +441,9 @@ describe("TransactionAPI", () => {
|
|
|
441
441
|
const result = await transaction.getWarehouseStockInfoByGoodAndBranch(goodId, branchNr);
|
|
442
442
|
expect(result).toBeDefined();
|
|
443
443
|
});
|
|
444
|
+
it('getWorkFlowStatuses', async () => {
|
|
445
|
+
await transaction.connect();
|
|
446
|
+
const result = await transaction.getWorkFlowStatuses(transaction_kind_enum_1.TransactionKind.SalesOrder);
|
|
447
|
+
expect(result).toBeDefined();
|
|
448
|
+
});
|
|
444
449
|
});
|