@colijnit/transactionapi 1.1.54 → 1.1.55
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/article-stock-method.enum.d.ts +3 -0
- package/build/enum/article-stock-method.enum.js +6 -0
- package/build/enum/public-service-method.d.ts +1 -0
- package/build/enum/public-service-method.js +1 -0
- package/build/ione-api-transaction.d.ts +1 -0
- package/build/model/article-stock.bo.d.ts +10 -0
- package/build/model/article-stock.bo.js +6 -0
- package/build/transaction-auth.d.ts +1 -0
- package/build/transaction-auth.js +14 -0
- package/build/transaction-public.d.ts +1 -0
- package/build/transaction-public.js +4 -0
- package/build/transaction.d.ts +1 -0
- package/build/transaction.js +3 -0
- package/build/transaction.unit.test.js +4 -0
- package/package.json +2 -2
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var ArticleStockMethod;
|
|
4
|
+
(function (ArticleStockMethod) {
|
|
5
|
+
ArticleStockMethod["GetAvailableStockGroupedByWLBSByTransIdLineNr"] = "getAvailableStockGroupedByWLBSByTransIdLineNr";
|
|
6
|
+
})(ArticleStockMethod = exports.ArticleStockMethod || (exports.ArticleStockMethod = {}));
|
|
@@ -73,6 +73,7 @@ export declare enum PublicServiceMethod {
|
|
|
73
73
|
PdfDeliveryNote = "pdfDeliveryNote",
|
|
74
74
|
GetDeliveryNoteEmailLayouts = "getDeliveryNoteEmailLayouts",
|
|
75
75
|
GetDeliveryNotePrintLayouts = "getDeliveryNotePrintLayouts",
|
|
76
|
+
GetAvailableStockGroupedByWLBSByTransIdLineNr = "getAvailableStockGroupedByWLBSByTransIdLineNr",
|
|
76
77
|
GetCustomerGroups = "getCustomerGroups",
|
|
77
78
|
Commit = "commit",
|
|
78
79
|
GetCashRegisters = "getCashRegisters",
|
|
@@ -76,6 +76,7 @@ var PublicServiceMethod;
|
|
|
76
76
|
PublicServiceMethod["PdfDeliveryNote"] = "pdfDeliveryNote";
|
|
77
77
|
PublicServiceMethod["GetDeliveryNoteEmailLayouts"] = "getDeliveryNoteEmailLayouts";
|
|
78
78
|
PublicServiceMethod["GetDeliveryNotePrintLayouts"] = "getDeliveryNotePrintLayouts";
|
|
79
|
+
PublicServiceMethod["GetAvailableStockGroupedByWLBSByTransIdLineNr"] = "getAvailableStockGroupedByWLBSByTransIdLineNr";
|
|
79
80
|
PublicServiceMethod["GetCustomerGroups"] = "getCustomerGroups";
|
|
80
81
|
PublicServiceMethod["Commit"] = "commit";
|
|
81
82
|
PublicServiceMethod["GetCashRegisters"] = "getCashRegisters";
|
|
@@ -191,5 +191,6 @@ export declare abstract class IoneApiTransaction {
|
|
|
191
191
|
abstract getDeliveryNoteDefaultSendMethod(relationId: number): Promise<DataServiceResponseData>;
|
|
192
192
|
abstract getDefaultEmailAddressListForOrderConfirmation(transactionUUID: string): Promise<DataServiceResponseData>;
|
|
193
193
|
abstract getPurchaseOrderEmailLayouts(transactionUUID: string): Promise<DataServiceResponseData>;
|
|
194
|
+
abstract getAvailableStockGroupedByWLBSByTransIdLineNr(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
194
195
|
protected endPoint: string;
|
|
195
196
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
2
|
+
export declare class AvailableStock extends BusinessObject {
|
|
3
|
+
goodId: number;
|
|
4
|
+
articleNumber: string;
|
|
5
|
+
warehouseNumber: number;
|
|
6
|
+
locationNumber: string;
|
|
7
|
+
batchNumber: string;
|
|
8
|
+
serialNumber: string;
|
|
9
|
+
availableQuantity: number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
4
|
+
class AvailableStock extends business_object_1.BusinessObject {
|
|
5
|
+
}
|
|
6
|
+
exports.AvailableStock = AvailableStock;
|
|
@@ -187,6 +187,7 @@ export declare class TransactionAuth extends IoneApiTransaction {
|
|
|
187
187
|
printOrderConfirmation(printOrderConfirmation: PrintOrderConfirmation): Promise<DataServiceResponseData>;
|
|
188
188
|
emailOrderConfirmation(emailOrderConfirmation: EmailOrderConfirmation): Promise<DataServiceResponseData>;
|
|
189
189
|
pdfOrderConfirmation(pdfOrderConfirmation: PdfOrderConfirmation): Promise<DataServiceResponseData>;
|
|
190
|
+
getAvailableStockGroupedByWLBSByTransIdLineNr(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
190
191
|
private _getDomainCollection;
|
|
191
192
|
private _getMultipleDomainCollection;
|
|
192
193
|
private callGetNodeData;
|
|
@@ -23,6 +23,7 @@ const business_object_serializer_1 = require("@colijnit/ioneconnector/build/fact
|
|
|
23
23
|
const is_nill_function_1 = require("@colijnit/ioneconnector/build/utils/function/is-nill.function");
|
|
24
24
|
const print_service_method_enum_1 = require("./enum/print-service-method.enum");
|
|
25
25
|
const reporting_method_enum_1 = require("./enum/reporting-method.enum");
|
|
26
|
+
const article_stock_method_enum_1 = require("./enum/article-stock-method.enum");
|
|
26
27
|
class TransactionAuth extends ione_api_transaction_1.IoneApiTransaction {
|
|
27
28
|
constructor() {
|
|
28
29
|
super(...arguments);
|
|
@@ -1217,6 +1218,19 @@ class TransactionAuth extends ione_api_transaction_1.IoneApiTransaction {
|
|
|
1217
1218
|
};
|
|
1218
1219
|
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data);
|
|
1219
1220
|
}
|
|
1221
|
+
getAvailableStockGroupedByWLBSByTransIdLineNr(transId, lineNr) {
|
|
1222
|
+
const parameterValues = {
|
|
1223
|
+
transId: transId,
|
|
1224
|
+
lineNr: lineNr
|
|
1225
|
+
};
|
|
1226
|
+
const data = {
|
|
1227
|
+
methodName: article_stock_method_enum_1.ArticleStockMethod.GetAvailableStockGroupedByWLBSByTransIdLineNr,
|
|
1228
|
+
moduleName: module_name_enum_1.ModuleName.Stock,
|
|
1229
|
+
refCursorAsArray: true,
|
|
1230
|
+
parameterValues: parameterValues
|
|
1231
|
+
};
|
|
1232
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data);
|
|
1233
|
+
}
|
|
1220
1234
|
_getDomainCollection(languageCode, domainName) {
|
|
1221
1235
|
const params = {
|
|
1222
1236
|
domainName: domainName,
|
|
@@ -185,6 +185,7 @@ export declare class TransactionPublic extends IoneApiTransaction {
|
|
|
185
185
|
getDeliveryNoteDefaultSendMethod(relationId: number): Promise<DataServiceResponseData>;
|
|
186
186
|
getDefaultEmailAddressListForOrderConfirmation(transactionUUID: string): Promise<DataServiceResponseData>;
|
|
187
187
|
getPurchaseOrderEmailLayouts(transactionUUID: string): Promise<DataServiceResponseData>;
|
|
188
|
+
getAvailableStockGroupedByWLBSByTransIdLineNr(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
188
189
|
private createServiceRequestData;
|
|
189
190
|
private _getDomainCollection;
|
|
190
191
|
private _getMultipleDomainCollection;
|
|
@@ -597,6 +597,10 @@ class TransactionPublic extends ione_api_transaction_1.IoneApiTransaction {
|
|
|
597
597
|
async getPurchaseOrderEmailLayouts(transactionUUID) {
|
|
598
598
|
return null;
|
|
599
599
|
}
|
|
600
|
+
getAvailableStockGroupedByWLBSByTransIdLineNr(transId, lineNr) {
|
|
601
|
+
const data = { ...this.createServiceRequestData(), transId: transId, lineNr: lineNr };
|
|
602
|
+
return this._call(public_service_method_1.PublicServiceMethod.GetAvailableStockGroupedByWLBSByTransIdLineNr, data);
|
|
603
|
+
}
|
|
600
604
|
createServiceRequestData() {
|
|
601
605
|
const data = { languageCode: this.languageCode };
|
|
602
606
|
return data;
|
package/build/transaction.d.ts
CHANGED
|
@@ -206,6 +206,7 @@ export declare class Transaction {
|
|
|
206
206
|
getDeliveryNoteDefaultSendMethod(relationId: number): Promise<DataServiceResponseData>;
|
|
207
207
|
getDefaultEmailAddressListForOrderConfirmation(transactionUUID: string): Promise<DataServiceResponseData>;
|
|
208
208
|
getPurchaseOrderEmailLayouts(transactionUUID: string): Promise<DataServiceResponseData>;
|
|
209
|
+
getAvailableStockGroupedByWLBSByTransIdLineNr(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
209
210
|
static createConnector(options: Options): IoneApiTransaction;
|
|
210
211
|
private _handleConnectionReset;
|
|
211
212
|
}
|
package/build/transaction.js
CHANGED
|
@@ -402,6 +402,9 @@ class Transaction {
|
|
|
402
402
|
getPurchaseOrderEmailLayouts(transactionUUID) {
|
|
403
403
|
return this.transaction.getPurchaseOrderEmailLayouts(transactionUUID);
|
|
404
404
|
}
|
|
405
|
+
getAvailableStockGroupedByWLBSByTransIdLineNr(transId, lineNr) {
|
|
406
|
+
return this.transaction.getAvailableStockGroupedByWLBSByTransIdLineNr(transId, lineNr);
|
|
407
|
+
}
|
|
405
408
|
static createConnector(options) {
|
|
406
409
|
if ((options.username && options.password) || options.session) {
|
|
407
410
|
return new transaction_auth_1.TransactionAuth();
|
|
@@ -373,4 +373,8 @@ describe("TransactionAPI", () => {
|
|
|
373
373
|
const result = await transaction.getPurchaseOrderEmailLayouts(transactionUUID);
|
|
374
374
|
expect(result).toBeDefined();
|
|
375
375
|
});
|
|
376
|
+
it('getAvailableStockGroupedByWLBSByTransIdLineNr', async () => {
|
|
377
|
+
const result = await transaction.getAvailableStockGroupedByWLBSByTransIdLineNr(111395, 1);
|
|
378
|
+
expect(result).toBeDefined();
|
|
379
|
+
});
|
|
376
380
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/transactionapi",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.55",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "grunt clean && tsc",
|
|
6
6
|
"browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/jest": "^24.0.13",
|
|
36
|
-
"@colijnit/ioneconnector": "2.1.
|
|
36
|
+
"@colijnit/ioneconnector": "2.1.9",
|
|
37
37
|
"@colijnit/mainapi": "1.0.2",
|
|
38
38
|
"@colijnit/relationapi": "1.0.2",
|
|
39
39
|
"grunt": "^1.0.3",
|