@colijnit/transactionapi 261.1.9 → 261.1.11
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 +6 -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 +6 -1
- package/build/transaction-auth.js +41 -3
- package/build/transaction-public.d.ts +6 -1
- package/build/transaction-public.js +17 -2
- package/build/transaction.d.ts +6 -1
- package/build/transaction.js +14 -2
- package/build/transaction.unit.test.js +40 -2
- 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>;
|
|
@@ -241,6 +242,7 @@ export declare abstract class IoneApiTransaction {
|
|
|
241
242
|
abstract getPrivacySettings(showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
242
243
|
abstract getMarketingCodes(showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
243
244
|
abstract getCommissionCodes(languageCode: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
245
|
+
abstract getContactTypes(languageCode: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
244
246
|
abstract getAddressTypes(languageCode: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
245
247
|
abstract getInOutCollection(languageCode: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
246
248
|
abstract getSLATypes(languageCode: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
@@ -613,7 +615,7 @@ export declare abstract class IoneApiTransaction {
|
|
|
613
615
|
abstract getServiceOrderEmailLayouts(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
614
616
|
abstract getServiceOrderPrintLayouts(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
615
617
|
abstract getDefaultEmailAddressListForServiceOrder(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
616
|
-
abstract
|
|
618
|
+
abstract getForTransaction(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
617
619
|
abstract getPaymentMethodsByCashRegisterGroupForSalesOrder(cashRegisterGroupId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
618
620
|
abstract getPaymentMethodsByCashRegisterGroupForCashRegister(cashRegisterGroupId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
619
621
|
abstract getRouteDeparture(routeDepartureRequest: GetRouteDepartureRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
@@ -629,5 +631,8 @@ export declare abstract class IoneApiTransaction {
|
|
|
629
631
|
abstract getTransportNotificationTotalsByTransactionLine(lineUuid: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
630
632
|
abstract setMultipleTransportNotificationInContainerOnSelectedLines(request: SetMultipleTransportNotificationsInContainerOnSelectedLinesRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
631
633
|
abstract removeFromContainerWithSelectedLines(request: RemoveFromContainerRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
634
|
+
abstract getCashPaymentValueByTransId(transId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
635
|
+
abstract mergeContactMoments(request: MergeContactMomentsRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
636
|
+
abstract getContactMomentsByTableKey(table: string, key: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
632
637
|
protected endPoint: string;
|
|
633
638
|
}
|
|
@@ -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>;
|
|
@@ -240,6 +241,7 @@ export declare class TransactionAuth extends IoneApiTransaction {
|
|
|
240
241
|
getPrivacySettings(showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
241
242
|
getRelationPrivacySettings(showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
242
243
|
getCommissionCodes(languageCode: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
244
|
+
getContactTypes(languageCode: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
243
245
|
getAddressTypes(languageCode: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
244
246
|
getInOutCollection(languageCode: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
245
247
|
getSLATypes(languageCode: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
@@ -605,7 +607,7 @@ export declare class TransactionAuth extends IoneApiTransaction {
|
|
|
605
607
|
getServiceOrderEmailLayouts(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
606
608
|
getServiceOrderPrintLayouts(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
607
609
|
getDefaultEmailAddressListForServiceOrder(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
608
|
-
|
|
610
|
+
getForTransaction(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
609
611
|
getPaymentMethodsByCashRegisterGroupForSalesOrder(cashRegisterGroupId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
610
612
|
getPaymentMethodsByCashRegisterGroupForCashRegister(cashRegisterGroupId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
611
613
|
getRouteDeparture(routeDepartureRequest: GetRouteDepartureRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
@@ -621,6 +623,9 @@ export declare class TransactionAuth extends IoneApiTransaction {
|
|
|
621
623
|
getTransportNotificationTotalsByTransactionLine(lineUuid: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
622
624
|
setMultipleTransportNotificationInContainerOnSelectedLines(request: SetMultipleTransportNotificationsInContainerOnSelectedLinesRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
623
625
|
removeFromContainerWithSelectedLines(request: RemoveFromContainerRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
626
|
+
getCashPaymentValueByTransId(transId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
627
|
+
getContactMomentsByTableKey(table: string, key: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
628
|
+
mergeContactMoments(request: MergeContactMomentsRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
624
629
|
private _getDomainCollection;
|
|
625
630
|
private _getMultipleDomainCollection;
|
|
626
631
|
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);
|
|
@@ -172,6 +173,9 @@ class TransactionAuth extends ione_api_transaction_1.IoneApiTransaction {
|
|
|
172
173
|
getCommissionCodes(languageCode, showLoader) {
|
|
173
174
|
return this._getDomainCollection(languageCode, domain_name_enum_1.DomainName.CommissionCode);
|
|
174
175
|
}
|
|
176
|
+
getContactTypes(languageCode, showLoader) {
|
|
177
|
+
return this._getDomainCollection(languageCode, domain_name_enum_1.DomainName.CommunicationType);
|
|
178
|
+
}
|
|
175
179
|
getAddressTypes(languageCode, showLoader) {
|
|
176
180
|
return this._getDomainCollection(languageCode, domain_name_enum_1.DomainName.AddressType);
|
|
177
181
|
}
|
|
@@ -3620,13 +3624,13 @@ class TransactionAuth extends ione_api_transaction_1.IoneApiTransaction {
|
|
|
3620
3624
|
};
|
|
3621
3625
|
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data, backend_service_name_enum_1.BackendServiceName.DataService, showLoader);
|
|
3622
3626
|
}
|
|
3623
|
-
|
|
3627
|
+
getForTransaction(transactionUUID, showLoader) {
|
|
3624
3628
|
const params = {
|
|
3625
|
-
|
|
3629
|
+
transactionUuid: transactionUUID
|
|
3626
3630
|
};
|
|
3627
3631
|
const data = {
|
|
3628
3632
|
moduleName: module_name_enum_1.ModuleName.Transaction,
|
|
3629
|
-
methodName: transaction_method_enum_1.TransactionMethod.
|
|
3633
|
+
methodName: transaction_method_enum_1.TransactionMethod.GetForTransaction,
|
|
3630
3634
|
refCursorAsArray: true,
|
|
3631
3635
|
parameterValues: params
|
|
3632
3636
|
};
|
|
@@ -3779,6 +3783,40 @@ class TransactionAuth extends ione_api_transaction_1.IoneApiTransaction {
|
|
|
3779
3783
|
};
|
|
3780
3784
|
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data, backend_service_name_enum_1.BackendServiceName.DataService, showLoader);
|
|
3781
3785
|
}
|
|
3786
|
+
getCashPaymentValueByTransId(transId, showLoader) {
|
|
3787
|
+
const params = {
|
|
3788
|
+
transId: transId
|
|
3789
|
+
};
|
|
3790
|
+
const data = {
|
|
3791
|
+
moduleName: module_name_enum_1.ModuleName.Accounting,
|
|
3792
|
+
methodName: accounting_method_enum_1.AccountingMethod.GetCashPaymentValueByTransId,
|
|
3793
|
+
parameterValues: params,
|
|
3794
|
+
refCursorAsArray: true,
|
|
3795
|
+
};
|
|
3796
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data, backend_service_name_enum_1.BackendServiceName.DataService, showLoader);
|
|
3797
|
+
}
|
|
3798
|
+
getContactMomentsByTableKey(table, key, showLoader) {
|
|
3799
|
+
const params = {
|
|
3800
|
+
table: table,
|
|
3801
|
+
key: key
|
|
3802
|
+
};
|
|
3803
|
+
const data = {
|
|
3804
|
+
moduleName: module_name_enum_1.ModuleName.General,
|
|
3805
|
+
methodName: general_method_enum_1.GeneralMethod.GetContactMomentsByTableKey,
|
|
3806
|
+
parameterValues: params,
|
|
3807
|
+
refCursorAsArray: true,
|
|
3808
|
+
};
|
|
3809
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data, backend_service_name_enum_1.BackendServiceName.DataService, showLoader);
|
|
3810
|
+
}
|
|
3811
|
+
mergeContactMoments(request, showLoader) {
|
|
3812
|
+
const data = {
|
|
3813
|
+
moduleName: module_name_enum_1.ModuleName.General,
|
|
3814
|
+
methodName: general_method_enum_1.GeneralMethod.MergeContactMoments,
|
|
3815
|
+
parameterValues: request,
|
|
3816
|
+
refCursorAsArray: true,
|
|
3817
|
+
};
|
|
3818
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data, backend_service_name_enum_1.BackendServiceName.DataService, showLoader);
|
|
3819
|
+
}
|
|
3782
3820
|
_getDomainCollection(languageCode, domainName, showLoader) {
|
|
3783
3821
|
const params = {
|
|
3784
3822
|
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>;
|
|
@@ -241,6 +242,7 @@ export declare class TransactionPublic extends IoneApiTransaction {
|
|
|
241
242
|
rollbackBeacon(): Promise<void>;
|
|
242
243
|
getPrivacySettings(showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
243
244
|
getMarketingCodes(showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
245
|
+
getContactTypes(languageCode: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
244
246
|
getCommissionCodes(languageCode: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
245
247
|
getAddressTypes(languageCode: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
246
248
|
getInOutCollection(languageCode: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
@@ -607,7 +609,7 @@ export declare class TransactionPublic extends IoneApiTransaction {
|
|
|
607
609
|
getServiceOrderEmailLayouts(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
608
610
|
getServiceOrderPrintLayouts(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
609
611
|
getDefaultEmailAddressListForServiceOrder(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
610
|
-
|
|
612
|
+
getForTransaction(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
611
613
|
getPaymentMethodsByCashRegisterGroupForSalesOrder(cashRegisterGroupId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
612
614
|
getPaymentMethodsByCashRegisterGroupForCashRegister(cashRegisterGroupId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
613
615
|
getRouteDeparture(routeDepartureRequest: GetRouteDepartureRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
@@ -623,6 +625,9 @@ export declare class TransactionPublic extends IoneApiTransaction {
|
|
|
623
625
|
getTransportNotificationTotalsByTransactionLine(lineUuid: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
624
626
|
removeFromContainerWithSelectedLines(request: RemoveFromContainerRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
625
627
|
setMultipleTransportNotificationInContainerOnSelectedLines(request: SetMultipleTransportNotificationsInContainerOnSelectedLinesRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
628
|
+
getCashPaymentValueByTransId(transId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
629
|
+
mergeContactMoments(request: MergeContactMomentsRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
630
|
+
getContactMomentsByTableKey(table: string, key: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
626
631
|
private _getDomainCollection;
|
|
627
632
|
private _getMultipleDomainCollection;
|
|
628
633
|
private getValidationResultSuccess;
|
|
@@ -140,6 +140,9 @@ class TransactionPublic extends ione_api_transaction_1.IoneApiTransaction {
|
|
|
140
140
|
const data = { ...this.createServiceRequestData() };
|
|
141
141
|
return this._call(public_service_method_1.PublicServiceMethod.GetMarketingCodes, data);
|
|
142
142
|
}
|
|
143
|
+
getContactTypes(languageCode, showLoader) {
|
|
144
|
+
return this._getDomainCollection(languageCode, domain_name_enum_1.DomainName.CommunicationType);
|
|
145
|
+
}
|
|
143
146
|
getCommissionCodes(languageCode, showLoader) {
|
|
144
147
|
return this._getDomainCollection(languageCode, domain_name_enum_1.DomainName.CommissionCode);
|
|
145
148
|
}
|
|
@@ -1696,8 +1699,8 @@ class TransactionPublic extends ione_api_transaction_1.IoneApiTransaction {
|
|
|
1696
1699
|
console.warn(' getDefaultEmailAddressListForServiceOrder not implemented');
|
|
1697
1700
|
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
1698
1701
|
}
|
|
1699
|
-
|
|
1700
|
-
console.warn('
|
|
1702
|
+
getForTransaction(transactionUUID, showLoader) {
|
|
1703
|
+
console.warn(' getForTransaction not implemented');
|
|
1701
1704
|
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
1702
1705
|
}
|
|
1703
1706
|
getPaymentMethodsByCashRegisterGroupForSalesOrder(cashRegisterGroupId, showLoader) {
|
|
@@ -1760,6 +1763,18 @@ class TransactionPublic extends ione_api_transaction_1.IoneApiTransaction {
|
|
|
1760
1763
|
console.warn('setMultipleTransportNotificationInContainerOnSelectedLines not implemented');
|
|
1761
1764
|
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
1762
1765
|
}
|
|
1766
|
+
getCashPaymentValueByTransId(transId, showLoader) {
|
|
1767
|
+
console.warn('getCashPaymentValueByTransId not implemented');
|
|
1768
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
1769
|
+
}
|
|
1770
|
+
mergeContactMoments(request, showLoader) {
|
|
1771
|
+
console.warn('mergeContactMoments not implemented');
|
|
1772
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
1773
|
+
}
|
|
1774
|
+
getContactMomentsByTableKey(table, key, showLoader) {
|
|
1775
|
+
console.warn('getContactMomentsByTableKey not implemented');
|
|
1776
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
1777
|
+
}
|
|
1763
1778
|
async _getDomainCollection(languageCode, domainName, showLoader) {
|
|
1764
1779
|
const params = {
|
|
1765
1780
|
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>;
|
|
@@ -253,6 +254,7 @@ export declare class Transaction {
|
|
|
253
254
|
getPrivacySettings(showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
254
255
|
getMarketingCodes(showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
255
256
|
getCommissionCodes(languageCode: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
257
|
+
getContactTypes(languageCode: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
256
258
|
getAddressTypes(languageCode: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
257
259
|
getInOutCollection(languageCode: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
258
260
|
getSLATypes(languageCode: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
@@ -627,7 +629,7 @@ export declare class Transaction {
|
|
|
627
629
|
getServiceOrderEmailLayouts(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
628
630
|
getServiceOrderPrintLayouts(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
629
631
|
getDefaultEmailAddressListForServiceOrder(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
630
|
-
|
|
632
|
+
getForTransaction(transactionUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
631
633
|
getPaymentMethodsByCashRegisterGroupForSalesOrder(cashRegisterGroupId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
632
634
|
getPaymentMethodsByCashRegisterGroupForCashRegister(cashRegisterGroupId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
633
635
|
getRouteDeparture(routeDepartureRequest: GetRouteDepartureRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
@@ -643,5 +645,8 @@ export declare class Transaction {
|
|
|
643
645
|
getTransportNotificationTotalsByTransactionLine(lineUuid: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
644
646
|
setMultipleTransportNotificationInContainerOnSelectedLines(request: SetMultipleTransportNotificationsInContainerOnSelectedLinesRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
645
647
|
removeFromContainerWithSelectedLines(request: RemoveFromContainerRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
648
|
+
getCashPaymentValueByTransId(transId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
649
|
+
getContactMomentsByTableKey(table: string, key: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
650
|
+
mergeContactMoments(request: MergeContactMomentsRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
646
651
|
private _handleConnectionReset;
|
|
647
652
|
}
|
package/build/transaction.js
CHANGED
|
@@ -84,6 +84,9 @@ class Transaction {
|
|
|
84
84
|
getCommissionCodes(languageCode, showLoader) {
|
|
85
85
|
return this.transaction.getCommissionCodes(languageCode, showLoader);
|
|
86
86
|
}
|
|
87
|
+
getContactTypes(languageCode, showLoader) {
|
|
88
|
+
return this.transaction.getContactTypes(languageCode, showLoader);
|
|
89
|
+
}
|
|
87
90
|
getAddressTypes(languageCode, showLoader) {
|
|
88
91
|
return this.transaction.getAddressTypes(languageCode, showLoader);
|
|
89
92
|
}
|
|
@@ -1238,8 +1241,8 @@ class Transaction {
|
|
|
1238
1241
|
getDefaultEmailAddressListForServiceOrder(transactionUUID, showLoader) {
|
|
1239
1242
|
return this.transaction.getDefaultEmailAddressListForServiceOrder(transactionUUID);
|
|
1240
1243
|
}
|
|
1241
|
-
|
|
1242
|
-
return this.transaction.
|
|
1244
|
+
getForTransaction(transactionUUID, showLoader) {
|
|
1245
|
+
return this.transaction.getForTransaction(transactionUUID);
|
|
1243
1246
|
}
|
|
1244
1247
|
getPaymentMethodsByCashRegisterGroupForSalesOrder(cashRegisterGroupId, showLoader) {
|
|
1245
1248
|
return this.transaction.getPaymentMethodsByCashRegisterGroupForSalesOrder(cashRegisterGroupId);
|
|
@@ -1286,6 +1289,15 @@ class Transaction {
|
|
|
1286
1289
|
removeFromContainerWithSelectedLines(request, showLoader) {
|
|
1287
1290
|
return this.transaction.removeFromContainerWithSelectedLines(request);
|
|
1288
1291
|
}
|
|
1292
|
+
getCashPaymentValueByTransId(transId, showLoader) {
|
|
1293
|
+
return this.transaction.getCashPaymentValueByTransId(transId, showLoader);
|
|
1294
|
+
}
|
|
1295
|
+
getContactMomentsByTableKey(table, key, showLoader) {
|
|
1296
|
+
return this.transaction.getContactMomentsByTableKey(table, key, showLoader);
|
|
1297
|
+
}
|
|
1298
|
+
mergeContactMoments(request, showLoader) {
|
|
1299
|
+
return this.transaction.mergeContactMoments(request);
|
|
1300
|
+
}
|
|
1289
1301
|
_handleConnectionReset() {
|
|
1290
1302
|
this.transaction.currentInstanceId = undefined;
|
|
1291
1303
|
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!"
|
|
@@ -58,7 +62,8 @@ const publicOptions = {
|
|
|
58
62
|
describe("TransactionAPI", () => {
|
|
59
63
|
let transaction;
|
|
60
64
|
beforeEach(() => {
|
|
61
|
-
transaction = new transaction_1.Transaction(
|
|
65
|
+
transaction = new transaction_1.Transaction(localOptions);
|
|
66
|
+
transaction.connect();
|
|
62
67
|
jest.setTimeout(130000);
|
|
63
68
|
});
|
|
64
69
|
it('getPostalCodeRetrieval_shouldContainCityMiddelburg', async () => {
|
|
@@ -73,6 +78,10 @@ describe("TransactionAPI", () => {
|
|
|
73
78
|
const result = await transaction.getCommissionCodes("EN");
|
|
74
79
|
expect(result.resultObjects.length).toBe(3);
|
|
75
80
|
});
|
|
81
|
+
it('getContactTypes_NL', async () => {
|
|
82
|
+
const result = await transaction.getContactTypes("NL");
|
|
83
|
+
expect(result.resultObjects.length).toBe(3);
|
|
84
|
+
});
|
|
76
85
|
it('getInOutCollection_NL', async () => {
|
|
77
86
|
const result = await transaction.getInOutCollection("NL");
|
|
78
87
|
expect(result.resultObjects.length).toBe(8);
|
|
@@ -661,4 +670,33 @@ describe("TransactionAPI", () => {
|
|
|
661
670
|
expect(result).toBeDefined();
|
|
662
671
|
expect(result.validationResult.success).toBeTruthy();
|
|
663
672
|
});
|
|
673
|
+
it('getContactMomentsByTableKey', async () => {
|
|
674
|
+
await transaction.connect();
|
|
675
|
+
const table = table_name_enum_1.TableName.Transactions;
|
|
676
|
+
const key = "146121";
|
|
677
|
+
const result = await transaction.getContactMomentsByTableKey(table, key);
|
|
678
|
+
expect(result).toBeDefined();
|
|
679
|
+
});
|
|
680
|
+
it('mergeContactMoments', async () => {
|
|
681
|
+
await transaction.connect();
|
|
682
|
+
let request = new merge_contact_moments_request_1.MergeContactMomentsRequest();
|
|
683
|
+
let contactMoment = new contact_moment_bo_1.ContactMoment();
|
|
684
|
+
contactMoment.contactMomentId = 1;
|
|
685
|
+
contactMoment.key = "146121";
|
|
686
|
+
contactMoment.table = table_name_enum_1.TableName.Transactions;
|
|
687
|
+
contactMoment.employeeId = 36196;
|
|
688
|
+
contactMoment.contactMomentDate = new Date();
|
|
689
|
+
let contactPerson = new contact_moment_contact_person_bo_1.ContactMomentContactPerson();
|
|
690
|
+
contactPerson.relationId = 36196;
|
|
691
|
+
contactMoment.contacts = [contactPerson];
|
|
692
|
+
contactMoment.assignToId = 1;
|
|
693
|
+
contactMoment.contactType = 1;
|
|
694
|
+
contactMoment.description = "test";
|
|
695
|
+
let contactMoments = [contactMoment];
|
|
696
|
+
request.tableNameString = table_name_enum_1.TableName.Transactions;
|
|
697
|
+
request.key = "146121";
|
|
698
|
+
request.contactMomentDtos = contactMoments;
|
|
699
|
+
const result = await transaction.mergeContactMoments(request);
|
|
700
|
+
expect(result).toBeDefined();
|
|
701
|
+
});
|
|
664
702
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/transactionapi",
|
|
3
|
-
"version": "261.1.
|
|
3
|
+
"version": "261.1.11",
|
|
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",
|