@colijnit/transactionapi 1.1.50 → 1.1.51

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.
Files changed (31) hide show
  1. package/build/enum/public-service-method.d.ts +5 -0
  2. package/build/enum/public-service-method.js +5 -0
  3. package/build/enum/reporting-method.enum.d.ts +7 -0
  4. package/build/enum/reporting-method.enum.js +8 -0
  5. package/build/ione-api-transaction.d.ts +8 -0
  6. package/build/model/delivery-order-status.bo.d.ts +5 -0
  7. package/build/model/delivery-order-status.bo.js +22 -0
  8. package/build/model/email-delivery-note-request.bo.d.ts +6 -0
  9. package/build/model/email-delivery-note-request.bo.js +22 -0
  10. package/build/model/pdf-delivery-note-request.bo.d.ts +5 -0
  11. package/build/model/pdf-delivery-note-request.bo.js +22 -0
  12. package/build/model/print-delivery-note-request.bo.d.ts +6 -0
  13. package/build/model/print-delivery-note-request.bo.js +22 -0
  14. package/build/model/reporting-document-base-request.bo.d.ts +5 -0
  15. package/build/model/reporting-document-base-request.bo.js +22 -0
  16. package/build/model/reporting-document-email-base-request.bo.d.ts +5 -0
  17. package/build/model/reporting-document-email-base-request.bo.js +22 -0
  18. package/build/model/reporting-document-pdf-base-request.bo.d.ts +3 -0
  19. package/build/model/reporting-document-pdf-base-request.bo.js +22 -0
  20. package/build/model/reporting-document-print-base-request.bo.d.ts +7 -0
  21. package/build/model/reporting-document-print-base-request.bo.js +22 -0
  22. package/build/model/transaction-line-reporting-request.bo.d.ts +5 -0
  23. package/build/model/transaction-line-reporting-request.bo.js +22 -0
  24. package/build/transaction-auth.d.ts +8 -0
  25. package/build/transaction-auth.js +62 -1
  26. package/build/transaction-public.d.ts +8 -0
  27. package/build/transaction-public.js +45 -0
  28. package/build/transaction.d.ts +8 -0
  29. package/build/transaction.js +35 -0
  30. package/build/transaction.unit.test.js +13 -1
  31. package/package.json +1 -1
@@ -68,6 +68,11 @@ export declare enum PublicServiceMethod {
68
68
  GetPurchaseAdviceLines = "getPurchaseAdviceLines",
69
69
  GeneratePurchaseOrders = "generatePurchaseOrders",
70
70
  GenerateAndSendPurchaseOrders = "generateAndSendPurchaseOrders",
71
+ PrintDeliveryNote = "printDeliveryNote",
72
+ EmailDeliveryNote = "emailDeliveryNote",
73
+ PdfDeliveryNote = "pdfDeliveryNote",
74
+ GetDeliveryNoteEmailLayouts = "getDeliveryNoteEmailLayouts",
75
+ GetDeliveryNotePrintLayouts = "getDeliveryNotePrintLayouts",
71
76
  GetCustomerGroups = "getCustomerGroups",
72
77
  Commit = "commit",
73
78
  GetCashRegisters = "getCashRegisters",
@@ -69,6 +69,11 @@ export var PublicServiceMethod;
69
69
  PublicServiceMethod["GetPurchaseAdviceLines"] = "getPurchaseAdviceLines";
70
70
  PublicServiceMethod["GeneratePurchaseOrders"] = "generatePurchaseOrders";
71
71
  PublicServiceMethod["GenerateAndSendPurchaseOrders"] = "generateAndSendPurchaseOrders";
72
+ PublicServiceMethod["PrintDeliveryNote"] = "printDeliveryNote";
73
+ PublicServiceMethod["EmailDeliveryNote"] = "emailDeliveryNote";
74
+ PublicServiceMethod["PdfDeliveryNote"] = "pdfDeliveryNote";
75
+ PublicServiceMethod["GetDeliveryNoteEmailLayouts"] = "getDeliveryNoteEmailLayouts";
76
+ PublicServiceMethod["GetDeliveryNotePrintLayouts"] = "getDeliveryNotePrintLayouts";
72
77
  PublicServiceMethod["GetCustomerGroups"] = "getCustomerGroups";
73
78
  PublicServiceMethod["Commit"] = "commit";
74
79
  PublicServiceMethod["GetCashRegisters"] = "getCashRegisters";
@@ -0,0 +1,7 @@
1
+ export declare enum ReportingMethod {
2
+ PrintDeliveryNote = "printDeliveryNote",
3
+ EmailDeliveryNote = "emailDeliveryNote",
4
+ PdfDeliveryNote = "pdfDeliveryNote",
5
+ GetDeliveryNoteEmailLayouts = "getDeliveryNoteEmailLayouts",
6
+ GetDeliveryNotePrintLayouts = "getDeliveryNotePrintLayouts"
7
+ }
@@ -0,0 +1,8 @@
1
+ export var ReportingMethod;
2
+ (function (ReportingMethod) {
3
+ ReportingMethod["PrintDeliveryNote"] = "printDeliveryNote";
4
+ ReportingMethod["EmailDeliveryNote"] = "emailDeliveryNote";
5
+ ReportingMethod["PdfDeliveryNote"] = "pdfDeliveryNote";
6
+ ReportingMethod["GetDeliveryNoteEmailLayouts"] = "getDeliveryNoteEmailLayouts";
7
+ ReportingMethod["GetDeliveryNotePrintLayouts"] = "getDeliveryNotePrintLayouts";
8
+ })(ReportingMethod || (ReportingMethod = {}));
@@ -62,6 +62,9 @@ import { ChangeLineGoodDescriptionRequest } from './model/change-line-good-descr
62
62
  import { SetTransactionDiscountsRequest } from './model/set-transaction-discounts-request';
63
63
  import { GetPurchaseOrderConfirmation } from './model/get-purchase-order-confirmation';
64
64
  import { ChangeLineSupplierRequest } from './model/change-line-supplier-request';
65
+ import { PrintDeliveryNoteRequest } from "./model/print-delivery-note-request.bo";
66
+ import { EmailDeliveryNoteRequest } from "./model/email-delivery-note-request.bo";
67
+ import { PdfDeliveryNoteRequest } from "./model/pdf-delivery-note-request.bo";
65
68
  export declare abstract class IoneApiTransaction {
66
69
  readonly showLoader: Subject<boolean>;
67
70
  readonly connectionAborted: Subject<void>;
@@ -188,5 +191,10 @@ export declare abstract class IoneApiTransaction {
188
191
  abstract getPurchaseAdviceLines(filters: PurchaseAdviceFilters, goodId?: number): Promise<DataServiceResponseData>;
189
192
  abstract generatePurchaseOrders(purchaseAdviceLines: PurchaseAdviceLine[]): Promise<DataServiceResponseData>;
190
193
  abstract generateAndSendPurchaseOrders(purchaseAdviceLines: PurchaseAdviceLine[]): Promise<DataServiceResponseData>;
194
+ abstract printDeliveryNote(request: PrintDeliveryNoteRequest): Promise<DataServiceResponseData>;
195
+ abstract emailDeliveryNote(request: EmailDeliveryNoteRequest): Promise<DataServiceResponseData>;
196
+ abstract pdfDeliveryNote(request: PdfDeliveryNoteRequest): Promise<DataServiceResponseData>;
197
+ abstract getDeliveryNoteEmailLayouts(transactionUUID: string): Promise<DataServiceResponseData>;
198
+ abstract getDeliveryNotePrintLayouts(transactionUUID: string): Promise<DataServiceResponseData>;
191
199
  protected endPoint: string;
192
200
  }
@@ -0,0 +1,5 @@
1
+ import { TransactionLineStatusBase } from "./transaction-line-status-base.bo";
2
+ export declare class DeliveryOrderStatus extends TransactionLineStatusBase {
3
+ quantityToDeliver: number;
4
+ quantityToInvoice: number;
5
+ }
@@ -0,0 +1,22 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ import { TransactionLineStatusBase } from "./transaction-line-status-base.bo";
15
+ var DeliveryOrderStatus = (function (_super) {
16
+ __extends(DeliveryOrderStatus, _super);
17
+ function DeliveryOrderStatus() {
18
+ return _super !== null && _super.apply(this, arguments) || this;
19
+ }
20
+ return DeliveryOrderStatus;
21
+ }(TransactionLineStatusBase));
22
+ export { DeliveryOrderStatus };
@@ -0,0 +1,6 @@
1
+ import { ReportingDocumentEmailBaseRequest } from "./reporting-document-email-base-request.bo";
2
+ import { TransactionLineReportingRequest } from "./transaction-line-reporting-request.bo";
3
+ export declare class EmailDeliveryNoteRequest extends ReportingDocumentEmailBaseRequest {
4
+ parkForDigitalSignature: boolean;
5
+ transactionLines: TransactionLineReportingRequest[];
6
+ }
@@ -0,0 +1,22 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ import { ReportingDocumentEmailBaseRequest } from "./reporting-document-email-base-request.bo";
15
+ var EmailDeliveryNoteRequest = (function (_super) {
16
+ __extends(EmailDeliveryNoteRequest, _super);
17
+ function EmailDeliveryNoteRequest() {
18
+ return _super !== null && _super.apply(this, arguments) || this;
19
+ }
20
+ return EmailDeliveryNoteRequest;
21
+ }(ReportingDocumentEmailBaseRequest));
22
+ export { EmailDeliveryNoteRequest };
@@ -0,0 +1,5 @@
1
+ import { ReportingDocumentPdfBaseRequest } from "./reporting-document-pdf-base-request.bo";
2
+ import { TransactionLineReportingRequest } from "./transaction-line-reporting-request.bo";
3
+ export declare class PdfDeliveryNoteRequest extends ReportingDocumentPdfBaseRequest {
4
+ transactionLines: TransactionLineReportingRequest[];
5
+ }
@@ -0,0 +1,22 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ import { ReportingDocumentPdfBaseRequest } from "./reporting-document-pdf-base-request.bo";
15
+ var PdfDeliveryNoteRequest = (function (_super) {
16
+ __extends(PdfDeliveryNoteRequest, _super);
17
+ function PdfDeliveryNoteRequest() {
18
+ return _super !== null && _super.apply(this, arguments) || this;
19
+ }
20
+ return PdfDeliveryNoteRequest;
21
+ }(ReportingDocumentPdfBaseRequest));
22
+ export { PdfDeliveryNoteRequest };
@@ -0,0 +1,6 @@
1
+ import { ReportingDocumentPrintBaseRequest } from "./reporting-document-print-base-request.bo";
2
+ import { TransactionLineReportingRequest } from "./transaction-line-reporting-request.bo";
3
+ export declare class PrintDeliveryNoteRequest extends ReportingDocumentPrintBaseRequest {
4
+ parkForDigitalSignature: boolean;
5
+ transactionLines: TransactionLineReportingRequest[];
6
+ }
@@ -0,0 +1,22 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ import { ReportingDocumentPrintBaseRequest } from "./reporting-document-print-base-request.bo";
15
+ var PrintDeliveryNoteRequest = (function (_super) {
16
+ __extends(PrintDeliveryNoteRequest, _super);
17
+ function PrintDeliveryNoteRequest() {
18
+ return _super !== null && _super.apply(this, arguments) || this;
19
+ }
20
+ return PrintDeliveryNoteRequest;
21
+ }(ReportingDocumentPrintBaseRequest));
22
+ export { PrintDeliveryNoteRequest };
@@ -0,0 +1,5 @@
1
+ import { BusinessObject } from "./business-object";
2
+ export declare class ReportingDocumentBaseRequest extends BusinessObject {
3
+ transId: number;
4
+ reportId: number;
5
+ }
@@ -0,0 +1,22 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ import { BusinessObject } from "./business-object";
15
+ var ReportingDocumentBaseRequest = (function (_super) {
16
+ __extends(ReportingDocumentBaseRequest, _super);
17
+ function ReportingDocumentBaseRequest() {
18
+ return _super !== null && _super.apply(this, arguments) || this;
19
+ }
20
+ return ReportingDocumentBaseRequest;
21
+ }(BusinessObject));
22
+ export { ReportingDocumentBaseRequest };
@@ -0,0 +1,5 @@
1
+ import { ReportingDocumentBaseRequest } from "./reporting-document-base-request.bo";
2
+ export declare class ReportingDocumentEmailBaseRequest extends ReportingDocumentBaseRequest {
3
+ toAddresses: string;
4
+ bccAddresses: string;
5
+ }
@@ -0,0 +1,22 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ import { ReportingDocumentBaseRequest } from "./reporting-document-base-request.bo";
15
+ var ReportingDocumentEmailBaseRequest = (function (_super) {
16
+ __extends(ReportingDocumentEmailBaseRequest, _super);
17
+ function ReportingDocumentEmailBaseRequest() {
18
+ return _super !== null && _super.apply(this, arguments) || this;
19
+ }
20
+ return ReportingDocumentEmailBaseRequest;
21
+ }(ReportingDocumentBaseRequest));
22
+ export { ReportingDocumentEmailBaseRequest };
@@ -0,0 +1,3 @@
1
+ import { ReportingDocumentBaseRequest } from "./reporting-document-base-request.bo";
2
+ export declare class ReportingDocumentPdfBaseRequest extends ReportingDocumentBaseRequest {
3
+ }
@@ -0,0 +1,22 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ import { ReportingDocumentBaseRequest } from "./reporting-document-base-request.bo";
15
+ var ReportingDocumentPdfBaseRequest = (function (_super) {
16
+ __extends(ReportingDocumentPdfBaseRequest, _super);
17
+ function ReportingDocumentPdfBaseRequest() {
18
+ return _super !== null && _super.apply(this, arguments) || this;
19
+ }
20
+ return ReportingDocumentPdfBaseRequest;
21
+ }(ReportingDocumentBaseRequest));
22
+ export { ReportingDocumentPdfBaseRequest };
@@ -0,0 +1,7 @@
1
+ import { ReportingDocumentBaseRequest } from "./reporting-document-base-request.bo";
2
+ export declare class ReportingDocumentPrintBaseRequest extends ReportingDocumentBaseRequest {
3
+ printerName: string;
4
+ saveDefaultPrinterForUser: boolean;
5
+ saveDefaultPrinterForAllUsers: boolean;
6
+ copies: number;
7
+ }
@@ -0,0 +1,22 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ import { ReportingDocumentBaseRequest } from "./reporting-document-base-request.bo";
15
+ var ReportingDocumentPrintBaseRequest = (function (_super) {
16
+ __extends(ReportingDocumentPrintBaseRequest, _super);
17
+ function ReportingDocumentPrintBaseRequest() {
18
+ return _super !== null && _super.apply(this, arguments) || this;
19
+ }
20
+ return ReportingDocumentPrintBaseRequest;
21
+ }(ReportingDocumentBaseRequest));
22
+ export { ReportingDocumentPrintBaseRequest };
@@ -0,0 +1,5 @@
1
+ import { BusinessObject } from "./business-object";
2
+ export declare class TransactionLineReportingRequest extends BusinessObject {
3
+ lineNr: number;
4
+ amount: number;
5
+ }
@@ -0,0 +1,22 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ import { BusinessObject } from "./business-object";
15
+ var TransactionLineReportingRequest = (function (_super) {
16
+ __extends(TransactionLineReportingRequest, _super);
17
+ function TransactionLineReportingRequest() {
18
+ return _super !== null && _super.apply(this, arguments) || this;
19
+ }
20
+ return TransactionLineReportingRequest;
21
+ }(BusinessObject));
22
+ export { TransactionLineReportingRequest };
@@ -61,6 +61,9 @@ import { ChangeLineGoodDescriptionRequest } from './model/change-line-good-descr
61
61
  import { SetTransactionDiscountsRequest } from './model/set-transaction-discounts-request';
62
62
  import { GetPurchaseOrderConfirmation } from './model/get-purchase-order-confirmation';
63
63
  import { ChangeLineSupplierRequest } from './model/change-line-supplier-request';
64
+ import { PrintDeliveryNoteRequest } from "./model/print-delivery-note-request.bo";
65
+ import { EmailDeliveryNoteRequest } from "./model/email-delivery-note-request.bo";
66
+ import { PdfDeliveryNoteRequest } from "./model/pdf-delivery-note-request.bo";
64
67
  export declare class TransactionAuth extends IoneApiTransaction {
65
68
  private _boSerializer;
66
69
  searchTransactions(request: TransactionSearchViewRequest): Promise<DataServiceResponseData>;
@@ -181,6 +184,11 @@ export declare class TransactionAuth extends IoneApiTransaction {
181
184
  getPurchaseAdviceLines(filters: PurchaseAdviceFilters, goodId?: number): Promise<DataServiceResponseData>;
182
185
  generatePurchaseOrders(purchaseAdviceLines: PurchaseAdviceLine[]): Promise<DataServiceResponseData>;
183
186
  generateAndSendPurchaseOrders(purchaseAdviceLines: PurchaseAdviceLine[]): Promise<DataServiceResponseData>;
187
+ printDeliveryNote(request: PrintDeliveryNoteRequest): Promise<DataServiceResponseData>;
188
+ emailDeliveryNote(request: EmailDeliveryNoteRequest): Promise<DataServiceResponseData>;
189
+ pdfDeliveryNote(request: PdfDeliveryNoteRequest): Promise<DataServiceResponseData>;
190
+ getDeliveryNoteEmailLayouts(transactionUUID: string): Promise<DataServiceResponseData>;
191
+ getDeliveryNotePrintLayouts(transactionUUID: string): Promise<DataServiceResponseData>;
184
192
  private _getDomainCollection;
185
193
  private _getMultipleDomainCollection;
186
194
  private callGetNodeData;
@@ -71,6 +71,7 @@ import { PaymentMethod } from './enum/payment-method.enum';
71
71
  import { PurchaseAdviceObjectName } from './enum/purchase-advice-object-name.enum';
72
72
  import { PurchasePortal } from './model/purchase-portal-object-name.enum';
73
73
  import { PurchaseAdviceMethod } from './enum/purchase-advice-method.enum';
74
+ import { ReportingMethod } from "./enum/reporting-method.enum";
74
75
  var TransactionAuth = (function (_super) {
75
76
  __extends(TransactionAuth, _super);
76
77
  function TransactionAuth() {
@@ -1043,7 +1044,7 @@ var TransactionAuth = (function (_super) {
1043
1044
  };
1044
1045
  var data = {
1045
1046
  moduleName: ModuleName.Transaction,
1046
- methodName: TransactionMethod.GetGoodsReceiptStatus,
1047
+ methodName: TransactionMethod.GetDeliveryOrderStatus,
1047
1048
  parameterValues: paramValues,
1048
1049
  refCursorAsArray: true
1049
1050
  };
@@ -1258,6 +1259,66 @@ var TransactionAuth = (function (_super) {
1258
1259
  };
1259
1260
  return this._call(DataServiceMethod.ExecuteMethod, data);
1260
1261
  };
1262
+ TransactionAuth.prototype.printDeliveryNote = function (request) {
1263
+ var paramValues = {
1264
+ request: request
1265
+ };
1266
+ var data = {
1267
+ moduleName: ModuleName.ReportingDocuments,
1268
+ methodName: ReportingMethod.PrintDeliveryNote,
1269
+ parameterValues: paramValues,
1270
+ refCursorAsArray: true
1271
+ };
1272
+ return this._call(DataServiceMethod.ExecuteMethod, data);
1273
+ };
1274
+ TransactionAuth.prototype.emailDeliveryNote = function (request) {
1275
+ var paramValues = {
1276
+ request: request
1277
+ };
1278
+ var data = {
1279
+ moduleName: ModuleName.ReportingDocuments,
1280
+ methodName: ReportingMethod.EmailDeliveryNote,
1281
+ parameterValues: paramValues,
1282
+ refCursorAsArray: true
1283
+ };
1284
+ return this._call(DataServiceMethod.ExecuteMethod, data);
1285
+ };
1286
+ TransactionAuth.prototype.pdfDeliveryNote = function (request) {
1287
+ var paramValues = {
1288
+ request: request
1289
+ };
1290
+ var data = {
1291
+ moduleName: ModuleName.ReportingDocuments,
1292
+ methodName: ReportingMethod.PdfDeliveryNote,
1293
+ parameterValues: paramValues,
1294
+ refCursorAsArray: true
1295
+ };
1296
+ return this._call(DataServiceMethod.ExecuteMethod, data);
1297
+ };
1298
+ TransactionAuth.prototype.getDeliveryNoteEmailLayouts = function (transactionUUID) {
1299
+ var paramValues = {
1300
+ transactionUUID: transactionUUID
1301
+ };
1302
+ var data = {
1303
+ moduleName: ModuleName.ReportingDocuments,
1304
+ methodName: ReportingMethod.GetDeliveryNoteEmailLayouts,
1305
+ parameterValues: paramValues,
1306
+ refCursorAsArray: true
1307
+ };
1308
+ return this._call(DataServiceMethod.ExecuteMethod, data);
1309
+ };
1310
+ TransactionAuth.prototype.getDeliveryNotePrintLayouts = function (transactionUUID) {
1311
+ var paramValues = {
1312
+ transactionUUID: transactionUUID
1313
+ };
1314
+ var data = {
1315
+ moduleName: ModuleName.ReportingDocuments,
1316
+ methodName: ReportingMethod.GetDeliveryNotePrintLayouts,
1317
+ parameterValues: paramValues,
1318
+ refCursorAsArray: true
1319
+ };
1320
+ return this._call(DataServiceMethod.ExecuteMethod, data);
1321
+ };
1261
1322
  TransactionAuth.prototype._getDomainCollection = function (languageCode, domainName) {
1262
1323
  var params = {
1263
1324
  domainName: domainName,
@@ -61,6 +61,9 @@ import { ChangeLineGoodDescriptionRequest } from './model/change-line-good-descr
61
61
  import { SetTransactionDiscountsRequest } from './model/set-transaction-discounts-request';
62
62
  import { GetPurchaseOrderConfirmation } from './model/get-purchase-order-confirmation';
63
63
  import { ChangeLineSupplierRequest } from './model/change-line-supplier-request';
64
+ import { PrintDeliveryNoteRequest } from "./model/print-delivery-note-request.bo";
65
+ import { EmailDeliveryNoteRequest } from "./model/email-delivery-note-request.bo";
66
+ import { PdfDeliveryNoteRequest } from "./model/pdf-delivery-note-request.bo";
64
67
  export declare class TransactionPublic extends IoneApiTransaction {
65
68
  protected endPoint: string;
66
69
  searchTransactions(request: TransactionSearchViewRequest): Promise<DataServiceResponseData>;
@@ -182,6 +185,11 @@ export declare class TransactionPublic extends IoneApiTransaction {
182
185
  getPurchaseAdviceLines(filters: PurchaseAdviceFilters, goodId?: number): Promise<DataServiceResponseData>;
183
186
  generatePurchaseOrders(purchaseAdviceLines: PurchaseAdviceLine[]): Promise<DataServiceResponseData>;
184
187
  generateAndSendPurchaseOrders(purchaseAdviceLines: PurchaseAdviceLine[]): Promise<DataServiceResponseData>;
188
+ printDeliveryNote(request: PrintDeliveryNoteRequest): Promise<DataServiceResponseData>;
189
+ emailDeliveryNote(request: EmailDeliveryNoteRequest): Promise<DataServiceResponseData>;
190
+ pdfDeliveryNote(request: PdfDeliveryNoteRequest): Promise<DataServiceResponseData>;
191
+ getDeliveryNoteEmailLayouts(transactionUUID: string): Promise<DataServiceResponseData>;
192
+ getDeliveryNotePrintLayouts(transactionUUID: string): Promise<DataServiceResponseData>;
185
193
  private createServiceRequestData;
186
194
  private _getDomainCollection;
187
195
  private _getMultipleDomainCollection;
@@ -953,6 +953,51 @@ var TransactionPublic = (function (_super) {
953
953
  });
954
954
  });
955
955
  };
956
+ TransactionPublic.prototype.printDeliveryNote = function (request) {
957
+ return __awaiter(this, void 0, void 0, function () {
958
+ var data;
959
+ return __generator(this, function (_a) {
960
+ data = __assign({}, this.createServiceRequestData());
961
+ return [2, this._call(PublicServiceMethod.PrintDeliveryNote, data)];
962
+ });
963
+ });
964
+ };
965
+ TransactionPublic.prototype.emailDeliveryNote = function (request) {
966
+ return __awaiter(this, void 0, void 0, function () {
967
+ var data;
968
+ return __generator(this, function (_a) {
969
+ data = __assign({}, this.createServiceRequestData());
970
+ return [2, this._call(PublicServiceMethod.EmailDeliveryNote, data)];
971
+ });
972
+ });
973
+ };
974
+ TransactionPublic.prototype.pdfDeliveryNote = function (request) {
975
+ return __awaiter(this, void 0, void 0, function () {
976
+ var data;
977
+ return __generator(this, function (_a) {
978
+ data = __assign({}, this.createServiceRequestData());
979
+ return [2, this._call(PublicServiceMethod.PdfDeliveryNote, data)];
980
+ });
981
+ });
982
+ };
983
+ TransactionPublic.prototype.getDeliveryNoteEmailLayouts = function (transactionUUID) {
984
+ return __awaiter(this, void 0, void 0, function () {
985
+ var data;
986
+ return __generator(this, function (_a) {
987
+ data = __assign({}, this.createServiceRequestData());
988
+ return [2, this._call(PublicServiceMethod.GetDeliveryNoteEmailLayouts, data)];
989
+ });
990
+ });
991
+ };
992
+ TransactionPublic.prototype.getDeliveryNotePrintLayouts = function (transactionUUID) {
993
+ return __awaiter(this, void 0, void 0, function () {
994
+ var data;
995
+ return __generator(this, function (_a) {
996
+ data = __assign({}, this.createServiceRequestData());
997
+ return [2, this._call(PublicServiceMethod.GetDeliveryNotePrintLayouts, data)];
998
+ });
999
+ });
1000
+ };
956
1001
  TransactionPublic.prototype.createServiceRequestData = function () {
957
1002
  var data = { languageCode: this.languageCode };
958
1003
  return data;
@@ -64,6 +64,9 @@ import { ChangeLineGoodDescriptionRequest } from './model/change-line-good-descr
64
64
  import { SetTransactionDiscountsRequest } from './model/set-transaction-discounts-request';
65
65
  import { GetPurchaseOrderConfirmation } from './model/get-purchase-order-confirmation';
66
66
  import { ChangeLineSupplierRequest } from './model/change-line-supplier-request';
67
+ import { PrintDeliveryNoteRequest } from "./model/print-delivery-note-request.bo";
68
+ import { EmailDeliveryNoteRequest } from "./model/email-delivery-note-request.bo";
69
+ import { PdfDeliveryNoteRequest } from "./model/pdf-delivery-note-request.bo";
67
70
  export declare class Transaction {
68
71
  readonly showLoader: Subject<boolean>;
69
72
  readonly connectionAborted: Subject<void>;
@@ -200,6 +203,11 @@ export declare class Transaction {
200
203
  generateCommissionOrders(transId: number, onlyGenerateForDirectSellSuppliers: boolean): Promise<DataServiceResponseData>;
201
204
  lockPurchasePortalLines(transIdPurchase: number, lineId: number): Promise<DataServiceResponseData>;
202
205
  deletePurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
206
+ printDeliveryNote(request: PrintDeliveryNoteRequest): Promise<DataServiceResponseData>;
207
+ emailDeliveryNote(request: EmailDeliveryNoteRequest): Promise<DataServiceResponseData>;
208
+ pdfDeliveryNote(request: PdfDeliveryNoteRequest): Promise<DataServiceResponseData>;
209
+ getDeliveryNoteEmailLayouts(transactionUUID: string): Promise<DataServiceResponseData>;
210
+ getDeliveryNotePrintLayouts(transactionUUID: string): Promise<DataServiceResponseData>;
203
211
  static createConnector(options: Options): IoneApiTransaction;
204
212
  private _handleConnectionReset;
205
213
  }
@@ -489,6 +489,41 @@ var Transaction = (function () {
489
489
  });
490
490
  });
491
491
  };
492
+ Transaction.prototype.printDeliveryNote = function (request) {
493
+ return __awaiter(this, void 0, void 0, function () {
494
+ return __generator(this, function (_a) {
495
+ return [2, this.transaction.printDeliveryNote(request)];
496
+ });
497
+ });
498
+ };
499
+ Transaction.prototype.emailDeliveryNote = function (request) {
500
+ return __awaiter(this, void 0, void 0, function () {
501
+ return __generator(this, function (_a) {
502
+ return [2, this.transaction.emailDeliveryNote(request)];
503
+ });
504
+ });
505
+ };
506
+ Transaction.prototype.pdfDeliveryNote = function (request) {
507
+ return __awaiter(this, void 0, void 0, function () {
508
+ return __generator(this, function (_a) {
509
+ return [2, this.transaction.pdfDeliveryNote(request)];
510
+ });
511
+ });
512
+ };
513
+ Transaction.prototype.getDeliveryNoteEmailLayouts = function (transactionUUID) {
514
+ return __awaiter(this, void 0, void 0, function () {
515
+ return __generator(this, function (_a) {
516
+ return [2, this.transaction.getDeliveryNoteEmailLayouts(transactionUUID)];
517
+ });
518
+ });
519
+ };
520
+ Transaction.prototype.getDeliveryNotePrintLayouts = function (transactionUUID) {
521
+ return __awaiter(this, void 0, void 0, function () {
522
+ return __generator(this, function (_a) {
523
+ return [2, this.transaction.getDeliveryNotePrintLayouts(transactionUUID)];
524
+ });
525
+ });
526
+ };
492
527
  Transaction.createConnector = function (options) {
493
528
  if ((options.username && options.password) || options.session) {
494
529
  return new TransactionAuth();
@@ -85,7 +85,7 @@ var publicOptions = {
85
85
  describe("TransactionAPI", function () {
86
86
  var transaction;
87
87
  beforeEach(function () {
88
- transaction = new Transaction(localOptions);
88
+ transaction = new Transaction(developRemoteOptions);
89
89
  jest.setTimeout(130000);
90
90
  });
91
91
  it('getPostalCodeRetrieval_shouldContainCityMiddelburg', function () { return __awaiter(void 0, void 0, void 0, function () {
@@ -627,6 +627,18 @@ describe("TransactionAPI", function () {
627
627
  }
628
628
  });
629
629
  }); });
630
+ it('getDeliveryOrderStatus', function () { return __awaiter(void 0, void 0, void 0, function () {
631
+ var response;
632
+ return __generator(this, function (_a) {
633
+ switch (_a.label) {
634
+ case 0: return [4, transaction.getDeliveryOrderStatus(111395, 1)];
635
+ case 1:
636
+ response = _a.sent();
637
+ expect(response.validationResult.success).toBeTruthy();
638
+ return [2];
639
+ }
640
+ });
641
+ }); });
630
642
  it('getPurchaseAdviceLines', function () { return __awaiter(void 0, void 0, void 0, function () {
631
643
  var filterObject, result;
632
644
  return __generator(this, function (_a) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/transactionapi",
3
- "version": "1.1.50",
3
+ "version": "1.1.51",
4
4
  "scripts": {
5
5
  "build": "grunt clean && tsc",
6
6
  "browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",