@colijnit/transactionapi 261.1.9 → 261.1.10
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/accounting-method.enum.d.ts +3 -0
- package/build/enum/accounting-method.enum.js +7 -0
- package/build/enum/general-method.enum.d.ts +3 -1
- package/build/enum/general-method.enum.js +2 -0
- package/build/enum/transaction-method.enum.d.ts +1 -0
- package/build/enum/transaction-method.enum.js +1 -0
- package/build/ione-api-transaction.d.ts +5 -1
- package/build/model/contact-moment-contact-person.bo.d.ts +9 -0
- package/build/model/contact-moment-contact-person.bo.js +7 -0
- package/build/model/contact-moment.bo.d.ts +15 -0
- package/build/model/contact-moment.bo.js +31 -0
- package/build/model/merge-contact-moments-request.d.ts +6 -0
- package/build/model/merge-contact-moments-request.js +21 -0
- package/build/model/transaction-search-view-request.d.ts +1 -0
- package/build/transaction-auth.d.ts +5 -1
- package/build/transaction-auth.js +38 -3
- package/build/transaction-public.d.ts +5 -1
- package/build/transaction-public.js +14 -2
- package/build/transaction.d.ts +5 -1
- package/build/transaction.js +11 -2
- package/build/transaction.unit.test.js +34 -1
- package/package.json +2 -2
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AccountingMethod = void 0;
|
|
4
|
+
var AccountingMethod;
|
|
5
|
+
(function (AccountingMethod) {
|
|
6
|
+
AccountingMethod["GetCashPaymentValueByTransId"] = "getCashPaymentValueByTransId";
|
|
7
|
+
})(AccountingMethod = exports.AccountingMethod || (exports.AccountingMethod = {}));
|
|
@@ -2,5 +2,7 @@ export declare enum GeneralMethod {
|
|
|
2
2
|
GetDocumentContent = "getDocumentContent",
|
|
3
3
|
GetSequenceValue = "getSequenceValue",
|
|
4
4
|
PostalCodeRetrieval = "postalCodeRetrieval",
|
|
5
|
-
GetTermsAndConditionsForm = "getTermsAndConditionsForm"
|
|
5
|
+
GetTermsAndConditionsForm = "getTermsAndConditionsForm",
|
|
6
|
+
GetContactMomentsByTableKey = "getContactMomentsByTableKey",
|
|
7
|
+
MergeContactMoments = "mergeContactMoments"
|
|
6
8
|
}
|
|
@@ -7,4 +7,6 @@ var GeneralMethod;
|
|
|
7
7
|
GeneralMethod["GetSequenceValue"] = "getSequenceValue";
|
|
8
8
|
GeneralMethod["PostalCodeRetrieval"] = "postalCodeRetrieval";
|
|
9
9
|
GeneralMethod["GetTermsAndConditionsForm"] = "getTermsAndConditionsForm";
|
|
10
|
+
GeneralMethod["GetContactMomentsByTableKey"] = "getContactMomentsByTableKey";
|
|
11
|
+
GeneralMethod["MergeContactMoments"] = "mergeContactMoments";
|
|
10
12
|
})(GeneralMethod = exports.GeneralMethod || (exports.GeneralMethod = {}));
|
|
@@ -171,6 +171,7 @@ export declare enum TransactionMethod {
|
|
|
171
171
|
GetFirstConfirmedDeliveryDateForTransactionLine = "getFirstConfirmedDeliveryDateForTransactionLine",
|
|
172
172
|
GenerateAndSendPurchaseOrdersForDirectSellSalesOrder = "generateAndSendPurchaseOrdersForDirectSellSalesOrder",
|
|
173
173
|
GetForCurrentUser = "getForCurrentUser",
|
|
174
|
+
GetForTransaction = "getForTransaction",
|
|
174
175
|
GetPaymentMethodsByCashRegisterGroupForSalesOrder = "getPaymentMethodsByCashRegisterGroupForSalesOrder",
|
|
175
176
|
GetPaymentMethodsByCashRegisterGroupForCashRegister = "getPaymentMethodsByCashRegisterGroupForCashRegister",
|
|
176
177
|
GetRouteDeparture = "getRouteDeparture",
|
|
@@ -175,6 +175,7 @@ var TransactionMethod;
|
|
|
175
175
|
TransactionMethod["GetFirstConfirmedDeliveryDateForTransactionLine"] = "getFirstConfirmedDeliveryDateForTransactionLine";
|
|
176
176
|
TransactionMethod["GenerateAndSendPurchaseOrdersForDirectSellSalesOrder"] = "generateAndSendPurchaseOrdersForDirectSellSalesOrder";
|
|
177
177
|
TransactionMethod["GetForCurrentUser"] = "getForCurrentUser";
|
|
178
|
+
TransactionMethod["GetForTransaction"] = "getForTransaction";
|
|
178
179
|
TransactionMethod["GetPaymentMethodsByCashRegisterGroupForSalesOrder"] = "getPaymentMethodsByCashRegisterGroupForSalesOrder";
|
|
179
180
|
TransactionMethod["GetPaymentMethodsByCashRegisterGroupForCashRegister"] = "getPaymentMethodsByCashRegisterGroupForCashRegister";
|
|
180
181
|
TransactionMethod["GetRouteDeparture"] = "getRouteDeparture";
|
|
@@ -216,6 +216,7 @@ import { RenewTransportNotificationOnSelectedLinesRequest } from "./model/renew-
|
|
|
216
216
|
import { ChangeHeaderDropshipmentInfoRequest } from './model/change-header-dropshipment-info-request';
|
|
217
217
|
import { SetMultipleTransportNotificationsInContainerOnSelectedLinesRequest } from "./model/set-multiple-transport-notifications-in-container-on-selected-lines-request";
|
|
218
218
|
import { RemoveFromContainerRequest } from "./model/remove-from-container-request";
|
|
219
|
+
import { MergeContactMomentsRequest } from './model/merge-contact-moments-request';
|
|
219
220
|
export declare abstract class IoneApiTransaction {
|
|
220
221
|
readonly showLoader: Subject<boolean>;
|
|
221
222
|
readonly connectionAborted: Subject<void>;
|
|
@@ -613,7 +614,7 @@ export declare abstract class IoneApiTransaction {
|
|
|
613
614
|
abstract getServiceOrderEmailLayouts(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
614
615
|
abstract getServiceOrderPrintLayouts(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
615
616
|
abstract getDefaultEmailAddressListForServiceOrder(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
616
|
-
abstract
|
|
617
|
+
abstract getForTransaction(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
617
618
|
abstract getPaymentMethodsByCashRegisterGroupForSalesOrder(cashRegisterGroupId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
618
619
|
abstract getPaymentMethodsByCashRegisterGroupForCashRegister(cashRegisterGroupId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
619
620
|
abstract getRouteDeparture(routeDepartureRequest: GetRouteDepartureRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
@@ -629,5 +630,8 @@ export declare abstract class IoneApiTransaction {
|
|
|
629
630
|
abstract getTransportNotificationTotalsByTransactionLine(lineUuid: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
630
631
|
abstract setMultipleTransportNotificationInContainerOnSelectedLines(request: SetMultipleTransportNotificationsInContainerOnSelectedLinesRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
631
632
|
abstract removeFromContainerWithSelectedLines(request: RemoveFromContainerRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
633
|
+
abstract getCashPaymentValueByTransId(transId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
634
|
+
abstract mergeContactMoments(request: MergeContactMomentsRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
635
|
+
abstract getContactMomentsByTableKey(table: string, key: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
632
636
|
protected endPoint: string;
|
|
633
637
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
2
|
+
export declare class ContactMomentContactPerson extends BusinessObject {
|
|
3
|
+
relationId: number;
|
|
4
|
+
relationNumber: number;
|
|
5
|
+
firstName: string;
|
|
6
|
+
familyName: string;
|
|
7
|
+
initials: string;
|
|
8
|
+
prefix: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContactMomentContactPerson = void 0;
|
|
4
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
5
|
+
class ContactMomentContactPerson extends business_object_1.BusinessObject {
|
|
6
|
+
}
|
|
7
|
+
exports.ContactMomentContactPerson = ContactMomentContactPerson;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
2
|
+
import { ContactMomentContactPerson } from "./contact-moment-contact-person.bo";
|
|
3
|
+
export declare class ContactMoment extends BusinessObject {
|
|
4
|
+
contactMomentId: number;
|
|
5
|
+
contactMomentDate: Date;
|
|
6
|
+
subject: string;
|
|
7
|
+
description: string;
|
|
8
|
+
employeeId: number;
|
|
9
|
+
contactType: number;
|
|
10
|
+
followUpDate: Date;
|
|
11
|
+
assignToId: number;
|
|
12
|
+
table: string;
|
|
13
|
+
key: string;
|
|
14
|
+
contacts: ContactMomentContactPerson[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ContactMoment = void 0;
|
|
13
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
14
|
+
const date_field_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/date-field.decorator");
|
|
15
|
+
const complex_array_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/complex-array.decorator");
|
|
16
|
+
const contact_moment_contact_person_bo_1 = require("./contact-moment-contact-person.bo");
|
|
17
|
+
class ContactMoment extends business_object_1.BusinessObject {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, date_field_decorator_1.DateField)(),
|
|
21
|
+
__metadata("design:type", Date)
|
|
22
|
+
], ContactMoment.prototype, "contactMomentDate", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, date_field_decorator_1.DateField)(),
|
|
25
|
+
__metadata("design:type", Date)
|
|
26
|
+
], ContactMoment.prototype, "followUpDate", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, complex_array_decorator_1.ComplexArray)(contact_moment_contact_person_bo_1.ContactMomentContactPerson),
|
|
29
|
+
__metadata("design:type", Array)
|
|
30
|
+
], ContactMoment.prototype, "contacts", void 0);
|
|
31
|
+
exports.ContactMoment = ContactMoment;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.MergeContactMomentsRequest = void 0;
|
|
13
|
+
const complex_array_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/complex-array.decorator");
|
|
14
|
+
const contact_moment_bo_1 = require("./contact-moment.bo");
|
|
15
|
+
class MergeContactMomentsRequest {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, complex_array_decorator_1.ComplexArray)(contact_moment_bo_1.ContactMoment),
|
|
19
|
+
__metadata("design:type", Array)
|
|
20
|
+
], MergeContactMomentsRequest.prototype, "contactMomentDtos", void 0);
|
|
21
|
+
exports.MergeContactMomentsRequest = MergeContactMomentsRequest;
|
|
@@ -215,6 +215,7 @@ import { RenewTransportNotificationOnSelectedLinesRequest } from "./model/renew-
|
|
|
215
215
|
import { ChangeHeaderDropshipmentInfoRequest } from './model/change-header-dropshipment-info-request';
|
|
216
216
|
import { SetMultipleTransportNotificationsInContainerOnSelectedLinesRequest } from "./model/set-multiple-transport-notifications-in-container-on-selected-lines-request";
|
|
217
217
|
import { RemoveFromContainerRequest } from "./model/remove-from-container-request";
|
|
218
|
+
import { MergeContactMomentsRequest } from './model/merge-contact-moments-request';
|
|
218
219
|
export declare class TransactionAuth extends IoneApiTransaction {
|
|
219
220
|
private _boSerializer;
|
|
220
221
|
searchTransactions(request: TransactionSearchViewRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
@@ -605,7 +606,7 @@ export declare class TransactionAuth extends IoneApiTransaction {
|
|
|
605
606
|
getServiceOrderEmailLayouts(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
606
607
|
getServiceOrderPrintLayouts(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
607
608
|
getDefaultEmailAddressListForServiceOrder(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
608
|
-
|
|
609
|
+
getForTransaction(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
609
610
|
getPaymentMethodsByCashRegisterGroupForSalesOrder(cashRegisterGroupId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
610
611
|
getPaymentMethodsByCashRegisterGroupForCashRegister(cashRegisterGroupId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
611
612
|
getRouteDeparture(routeDepartureRequest: GetRouteDepartureRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
@@ -621,6 +622,9 @@ export declare class TransactionAuth extends IoneApiTransaction {
|
|
|
621
622
|
getTransportNotificationTotalsByTransactionLine(lineUuid: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
622
623
|
setMultipleTransportNotificationInContainerOnSelectedLines(request: SetMultipleTransportNotificationsInContainerOnSelectedLinesRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
623
624
|
removeFromContainerWithSelectedLines(request: RemoveFromContainerRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
625
|
+
getCashPaymentValueByTransId(transId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
626
|
+
getContactMomentsByTableKey(table: string, key: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
627
|
+
mergeContactMoments(request: MergeContactMomentsRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
624
628
|
private _getDomainCollection;
|
|
625
629
|
private _getMultipleDomainCollection;
|
|
626
630
|
private callGetNodeData;
|
|
@@ -35,6 +35,7 @@ const purchase_confirmation_method_enum_1 = require("./enum/purchase-confirmatio
|
|
|
35
35
|
const external_source_group_enum_1 = require("./enum/external-source-group.enum");
|
|
36
36
|
const public_service_method_1 = require("./enum/public-service-method");
|
|
37
37
|
const planningrequest_method_enum_1 = require("./enum/planningrequest-method.enum");
|
|
38
|
+
const accounting_method_enum_1 = require("./enum/accounting-method.enum");
|
|
38
39
|
class TransactionAuth extends ione_api_transaction_1.IoneApiTransaction {
|
|
39
40
|
constructor() {
|
|
40
41
|
super(...arguments);
|
|
@@ -3620,13 +3621,13 @@ class TransactionAuth extends ione_api_transaction_1.IoneApiTransaction {
|
|
|
3620
3621
|
};
|
|
3621
3622
|
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data, backend_service_name_enum_1.BackendServiceName.DataService, showLoader);
|
|
3622
3623
|
}
|
|
3623
|
-
|
|
3624
|
+
getForTransaction(transactionUUID, showLoader) {
|
|
3624
3625
|
const params = {
|
|
3625
|
-
|
|
3626
|
+
transactionUuid: transactionUUID
|
|
3626
3627
|
};
|
|
3627
3628
|
const data = {
|
|
3628
3629
|
moduleName: module_name_enum_1.ModuleName.Transaction,
|
|
3629
|
-
methodName: transaction_method_enum_1.TransactionMethod.
|
|
3630
|
+
methodName: transaction_method_enum_1.TransactionMethod.GetForTransaction,
|
|
3630
3631
|
refCursorAsArray: true,
|
|
3631
3632
|
parameterValues: params
|
|
3632
3633
|
};
|
|
@@ -3779,6 +3780,40 @@ class TransactionAuth extends ione_api_transaction_1.IoneApiTransaction {
|
|
|
3779
3780
|
};
|
|
3780
3781
|
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data, backend_service_name_enum_1.BackendServiceName.DataService, showLoader);
|
|
3781
3782
|
}
|
|
3783
|
+
getCashPaymentValueByTransId(transId, showLoader) {
|
|
3784
|
+
const params = {
|
|
3785
|
+
transId: transId
|
|
3786
|
+
};
|
|
3787
|
+
const data = {
|
|
3788
|
+
moduleName: module_name_enum_1.ModuleName.Accounting,
|
|
3789
|
+
methodName: accounting_method_enum_1.AccountingMethod.GetCashPaymentValueByTransId,
|
|
3790
|
+
parameterValues: params,
|
|
3791
|
+
refCursorAsArray: true,
|
|
3792
|
+
};
|
|
3793
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data, backend_service_name_enum_1.BackendServiceName.DataService, showLoader);
|
|
3794
|
+
}
|
|
3795
|
+
getContactMomentsByTableKey(table, key, showLoader) {
|
|
3796
|
+
const params = {
|
|
3797
|
+
table: table,
|
|
3798
|
+
key: key
|
|
3799
|
+
};
|
|
3800
|
+
const data = {
|
|
3801
|
+
moduleName: module_name_enum_1.ModuleName.General,
|
|
3802
|
+
methodName: general_method_enum_1.GeneralMethod.GetContactMomentsByTableKey,
|
|
3803
|
+
parameterValues: params,
|
|
3804
|
+
refCursorAsArray: true,
|
|
3805
|
+
};
|
|
3806
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data, backend_service_name_enum_1.BackendServiceName.DataService, showLoader);
|
|
3807
|
+
}
|
|
3808
|
+
mergeContactMoments(request, showLoader) {
|
|
3809
|
+
const data = {
|
|
3810
|
+
moduleName: module_name_enum_1.ModuleName.General,
|
|
3811
|
+
methodName: general_method_enum_1.GeneralMethod.MergeContactMoments,
|
|
3812
|
+
parameterValues: request,
|
|
3813
|
+
refCursorAsArray: true,
|
|
3814
|
+
};
|
|
3815
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data, backend_service_name_enum_1.BackendServiceName.DataService, showLoader);
|
|
3816
|
+
}
|
|
3782
3817
|
_getDomainCollection(languageCode, domainName, showLoader) {
|
|
3783
3818
|
const params = {
|
|
3784
3819
|
domainName: domainName,
|
|
@@ -215,6 +215,7 @@ import { RenewTransportNotificationOnSelectedLinesRequest } from "./model/renew-
|
|
|
215
215
|
import { ChangeHeaderDropshipmentInfoRequest } from './model/change-header-dropshipment-info-request';
|
|
216
216
|
import { RemoveFromContainerRequest } from "./model/remove-from-container-request";
|
|
217
217
|
import { SetMultipleTransportNotificationsInContainerOnSelectedLinesRequest } from "./model/set-multiple-transport-notifications-in-container-on-selected-lines-request";
|
|
218
|
+
import { MergeContactMomentsRequest } from './model/merge-contact-moments-request';
|
|
218
219
|
export declare class TransactionPublic extends IoneApiTransaction {
|
|
219
220
|
protected endPoint: string;
|
|
220
221
|
searchTransactions(request: TransactionSearchViewRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
@@ -607,7 +608,7 @@ export declare class TransactionPublic extends IoneApiTransaction {
|
|
|
607
608
|
getServiceOrderEmailLayouts(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
608
609
|
getServiceOrderPrintLayouts(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
609
610
|
getDefaultEmailAddressListForServiceOrder(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
610
|
-
|
|
611
|
+
getForTransaction(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
611
612
|
getPaymentMethodsByCashRegisterGroupForSalesOrder(cashRegisterGroupId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
612
613
|
getPaymentMethodsByCashRegisterGroupForCashRegister(cashRegisterGroupId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
613
614
|
getRouteDeparture(routeDepartureRequest: GetRouteDepartureRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
@@ -623,6 +624,9 @@ export declare class TransactionPublic extends IoneApiTransaction {
|
|
|
623
624
|
getTransportNotificationTotalsByTransactionLine(lineUuid: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
624
625
|
removeFromContainerWithSelectedLines(request: RemoveFromContainerRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
625
626
|
setMultipleTransportNotificationInContainerOnSelectedLines(request: SetMultipleTransportNotificationsInContainerOnSelectedLinesRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
627
|
+
getCashPaymentValueByTransId(transId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
628
|
+
mergeContactMoments(request: MergeContactMomentsRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
629
|
+
getContactMomentsByTableKey(table: string, key: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
626
630
|
private _getDomainCollection;
|
|
627
631
|
private _getMultipleDomainCollection;
|
|
628
632
|
private getValidationResultSuccess;
|
|
@@ -1696,8 +1696,8 @@ class TransactionPublic extends ione_api_transaction_1.IoneApiTransaction {
|
|
|
1696
1696
|
console.warn(' getDefaultEmailAddressListForServiceOrder not implemented');
|
|
1697
1697
|
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
1698
1698
|
}
|
|
1699
|
-
|
|
1700
|
-
console.warn('
|
|
1699
|
+
getForTransaction(transactionUUID, showLoader) {
|
|
1700
|
+
console.warn(' getForTransaction not implemented');
|
|
1701
1701
|
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
1702
1702
|
}
|
|
1703
1703
|
getPaymentMethodsByCashRegisterGroupForSalesOrder(cashRegisterGroupId, showLoader) {
|
|
@@ -1760,6 +1760,18 @@ class TransactionPublic extends ione_api_transaction_1.IoneApiTransaction {
|
|
|
1760
1760
|
console.warn('setMultipleTransportNotificationInContainerOnSelectedLines not implemented');
|
|
1761
1761
|
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
1762
1762
|
}
|
|
1763
|
+
getCashPaymentValueByTransId(transId, showLoader) {
|
|
1764
|
+
console.warn('getCashPaymentValueByTransId not implemented');
|
|
1765
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
1766
|
+
}
|
|
1767
|
+
mergeContactMoments(request, showLoader) {
|
|
1768
|
+
console.warn('mergeContactMoments not implemented');
|
|
1769
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
1770
|
+
}
|
|
1771
|
+
getContactMomentsByTableKey(table, key, showLoader) {
|
|
1772
|
+
console.warn('getContactMomentsByTableKey not implemented');
|
|
1773
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
1774
|
+
}
|
|
1763
1775
|
async _getDomainCollection(languageCode, domainName, showLoader) {
|
|
1764
1776
|
const params = {
|
|
1765
1777
|
domainName: domainName,
|
package/build/transaction.d.ts
CHANGED
|
@@ -219,6 +219,7 @@ import { RenewTransportNotificationOnSelectedLinesRequest } from "./model/renew-
|
|
|
219
219
|
import { ChangeHeaderDropshipmentInfoRequest } from './model/change-header-dropshipment-info-request';
|
|
220
220
|
import { SetMultipleTransportNotificationsInContainerOnSelectedLinesRequest } from "./model/set-multiple-transport-notifications-in-container-on-selected-lines-request";
|
|
221
221
|
import { RemoveFromContainerRequest } from "./model/remove-from-container-request";
|
|
222
|
+
import { MergeContactMomentsRequest } from './model/merge-contact-moments-request';
|
|
222
223
|
export declare class Transaction {
|
|
223
224
|
showLoader: Subject<boolean>;
|
|
224
225
|
connectionAborted: Subject<void>;
|
|
@@ -627,7 +628,7 @@ export declare class Transaction {
|
|
|
627
628
|
getServiceOrderEmailLayouts(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
628
629
|
getServiceOrderPrintLayouts(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
629
630
|
getDefaultEmailAddressListForServiceOrder(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
630
|
-
|
|
631
|
+
getForTransaction(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
631
632
|
getPaymentMethodsByCashRegisterGroupForSalesOrder(cashRegisterGroupId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
632
633
|
getPaymentMethodsByCashRegisterGroupForCashRegister(cashRegisterGroupId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
633
634
|
getRouteDeparture(routeDepartureRequest: GetRouteDepartureRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
@@ -643,5 +644,8 @@ export declare class Transaction {
|
|
|
643
644
|
getTransportNotificationTotalsByTransactionLine(lineUuid: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
644
645
|
setMultipleTransportNotificationInContainerOnSelectedLines(request: SetMultipleTransportNotificationsInContainerOnSelectedLinesRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
645
646
|
removeFromContainerWithSelectedLines(request: RemoveFromContainerRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
647
|
+
getCashPaymentValueByTransId(transId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
648
|
+
getContactMomentsByTableKey(table: string, key: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
649
|
+
mergeContactMoments(request: MergeContactMomentsRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
646
650
|
private _handleConnectionReset;
|
|
647
651
|
}
|
package/build/transaction.js
CHANGED
|
@@ -1238,8 +1238,8 @@ class Transaction {
|
|
|
1238
1238
|
getDefaultEmailAddressListForServiceOrder(transactionUUID, showLoader) {
|
|
1239
1239
|
return this.transaction.getDefaultEmailAddressListForServiceOrder(transactionUUID);
|
|
1240
1240
|
}
|
|
1241
|
-
|
|
1242
|
-
return this.transaction.
|
|
1241
|
+
getForTransaction(transactionUUID, showLoader) {
|
|
1242
|
+
return this.transaction.getForTransaction(transactionUUID);
|
|
1243
1243
|
}
|
|
1244
1244
|
getPaymentMethodsByCashRegisterGroupForSalesOrder(cashRegisterGroupId, showLoader) {
|
|
1245
1245
|
return this.transaction.getPaymentMethodsByCashRegisterGroupForSalesOrder(cashRegisterGroupId);
|
|
@@ -1286,6 +1286,15 @@ class Transaction {
|
|
|
1286
1286
|
removeFromContainerWithSelectedLines(request, showLoader) {
|
|
1287
1287
|
return this.transaction.removeFromContainerWithSelectedLines(request);
|
|
1288
1288
|
}
|
|
1289
|
+
getCashPaymentValueByTransId(transId, showLoader) {
|
|
1290
|
+
return this.transaction.getCashPaymentValueByTransId(transId, showLoader);
|
|
1291
|
+
}
|
|
1292
|
+
getContactMomentsByTableKey(table, key, showLoader) {
|
|
1293
|
+
return this.transaction.getContactMomentsByTableKey(table, key, showLoader);
|
|
1294
|
+
}
|
|
1295
|
+
mergeContactMoments(request, showLoader) {
|
|
1296
|
+
return this.transaction.mergeContactMoments(request);
|
|
1297
|
+
}
|
|
1289
1298
|
_handleConnectionReset() {
|
|
1290
1299
|
this.transaction.currentInstanceId = undefined;
|
|
1291
1300
|
this.connectionResetInactivity.next();
|
|
@@ -23,6 +23,10 @@ const order_lines_to_plan_request_bo_1 = require("./model/order-lines-to-plan-re
|
|
|
23
23
|
const generate_and_send_purchase_orders_request_1 = require("./model/generate-and-send-purchase-orders-request");
|
|
24
24
|
const get_route_departure_request_1 = require("./model/get-route-departure-request");
|
|
25
25
|
const inter_branch_filters_1 = require("./model/inter-branch-filters");
|
|
26
|
+
const table_name_enum_1 = require("./enum/table-name.enum");
|
|
27
|
+
const merge_contact_moments_request_1 = require("./model/merge-contact-moments-request");
|
|
28
|
+
const contact_moment_bo_1 = require("./model/contact-moment.bo");
|
|
29
|
+
const contact_moment_contact_person_bo_1 = require("./model/contact-moment-contact-person.bo");
|
|
26
30
|
const options = {
|
|
27
31
|
url: 'http'
|
|
28
32
|
};
|
|
@@ -37,7 +41,7 @@ const localOptions = {
|
|
|
37
41
|
const remoteOptions = {
|
|
38
42
|
url: "https://develop.colijn-it.nl",
|
|
39
43
|
schema: "815",
|
|
40
|
-
version: "
|
|
44
|
+
version: "261",
|
|
41
45
|
useLoginEncryption: true,
|
|
42
46
|
username: "patrick",
|
|
43
47
|
password: "vankeulen1234567890!"
|
|
@@ -661,4 +665,33 @@ describe("TransactionAPI", () => {
|
|
|
661
665
|
expect(result).toBeDefined();
|
|
662
666
|
expect(result.validationResult.success).toBeTruthy();
|
|
663
667
|
});
|
|
668
|
+
it('getContactMomentsByTableKey', async () => {
|
|
669
|
+
await transaction.connect();
|
|
670
|
+
const table = table_name_enum_1.TableName.Transactions;
|
|
671
|
+
const key = "146121";
|
|
672
|
+
const result = await transaction.getContactMomentsByTableKey(table, key);
|
|
673
|
+
expect(result).toBeDefined();
|
|
674
|
+
});
|
|
675
|
+
it('mergeContactMoments', async () => {
|
|
676
|
+
await transaction.connect();
|
|
677
|
+
let request = new merge_contact_moments_request_1.MergeContactMomentsRequest();
|
|
678
|
+
let contactMoment = new contact_moment_bo_1.ContactMoment();
|
|
679
|
+
contactMoment.contactMomentId = 1;
|
|
680
|
+
contactMoment.key = "146121";
|
|
681
|
+
contactMoment.table = table_name_enum_1.TableName.Transactions;
|
|
682
|
+
contactMoment.employeeId = 36196;
|
|
683
|
+
contactMoment.contactMomentDate = new Date();
|
|
684
|
+
let contactPerson = new contact_moment_contact_person_bo_1.ContactMomentContactPerson();
|
|
685
|
+
contactPerson.relationId = 36196;
|
|
686
|
+
contactMoment.contacts = [contactPerson];
|
|
687
|
+
contactMoment.assignToId = 1;
|
|
688
|
+
contactMoment.contactType = 1;
|
|
689
|
+
contactMoment.description = "test";
|
|
690
|
+
let contactMoments = [contactMoment];
|
|
691
|
+
request.tableNameString = table_name_enum_1.TableName.Transactions;
|
|
692
|
+
request.key = "146121";
|
|
693
|
+
request.contactMomentDtos = contactMoments;
|
|
694
|
+
const result = await transaction.mergeContactMoments(request);
|
|
695
|
+
expect(result).toBeDefined();
|
|
696
|
+
});
|
|
664
697
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/transactionapi",
|
|
3
|
-
"version": "261.1.
|
|
3
|
+
"version": "261.1.10",
|
|
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": "261.1.
|
|
36
|
+
"@colijnit/ioneconnector": "261.1.2",
|
|
37
37
|
"@colijnit/mainapi": "261.1.0",
|
|
38
38
|
"@colijnit/relationapi": "261.1.0",
|
|
39
39
|
"grunt": "1.0.3",
|