@colijnit/transactionapi 1.1.15 → 1.1.18
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/ione-api-transaction.d.ts +2 -2
- package/build/model/transaction-line-info.bo.d.ts +1 -0
- package/build/model/transaction-line-info.bo.js +4 -0
- package/build/model/transaction-search-view-request.d.ts +78 -0
- package/build/model/transaction-search-view-request.js +10 -0
- package/build/model/transaction-search-view.bo.d.ts +67 -0
- package/build/model/transaction-search-view.bo.js +140 -0
- package/build/transaction-auth.d.ts +2 -2
- package/build/transaction-public.d.ts +2 -2
- package/build/transaction.d.ts +29 -29
- package/build/transaction.js +5 -5
- package/build/transaction.unit.test.js +2 -2
- package/package.json +2 -2
- package/build/model/search-transaction-request.d.ts +0 -43
- package/build/model/search-transaction-request.js +0 -38
|
@@ -23,7 +23,7 @@ import { ChangeLineEditTimeRequest } from "./model/change-line-edit-time-request
|
|
|
23
23
|
import { ChangeLineSupplierArticleNumberRequest } from "./model/change-line-supplier-article-number-request";
|
|
24
24
|
import { ChangeLineReferenceRequest } from "./model/change-line-reference-request";
|
|
25
25
|
import { ChangeLineCollectionCodeRequest } from "./model/change-line-collection-code-request";
|
|
26
|
-
import {
|
|
26
|
+
import { TransactionSearchViewRequest } from "./model/transaction-search-view-request";
|
|
27
27
|
export declare abstract class IoneApiTransaction {
|
|
28
28
|
readonly showLoader: Subject<boolean>;
|
|
29
29
|
readonly connectionAborted: Subject<void>;
|
|
@@ -33,7 +33,7 @@ export declare abstract class IoneApiTransaction {
|
|
|
33
33
|
languageCode: string;
|
|
34
34
|
branchNr: string;
|
|
35
35
|
useGroups: boolean;
|
|
36
|
-
abstract searchTransactions(request:
|
|
36
|
+
abstract searchTransactions(request: TransactionSearchViewRequest): Promise<DataServiceResponseData>;
|
|
37
37
|
abstract getArticleFullObject(id: number): Promise<DataServiceResponseData>;
|
|
38
38
|
abstract getGoodIdFromArticleNr(skuOrId: string): Promise<DataServiceResponseData>;
|
|
39
39
|
abstract getSingleImage(nodeId: number | string, publication: number, includeMimetype: boolean, thumb: boolean): Promise<DataServiceResponseData>;
|
|
@@ -120,6 +120,10 @@ var TransactionLineInfo = (function (_super) {
|
|
|
120
120
|
__metadata("design:type", Boolean),
|
|
121
121
|
__metadata("design:paramtypes", [])
|
|
122
122
|
], TransactionLineInfo.prototype, "isSelected", null);
|
|
123
|
+
__decorate([
|
|
124
|
+
NoDbField(),
|
|
125
|
+
__metadata("design:type", String)
|
|
126
|
+
], TransactionLineInfo.prototype, "articleImageData", void 0);
|
|
123
127
|
return TransactionLineInfo;
|
|
124
128
|
}(BusinessObject));
|
|
125
129
|
export { TransactionLineInfo };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { PagingParameters } from './paging-parameters';
|
|
2
|
+
export declare class TransactionSearchViewRequest {
|
|
3
|
+
paging: PagingParameters;
|
|
4
|
+
general: string;
|
|
5
|
+
transId: number;
|
|
6
|
+
transType: string;
|
|
7
|
+
transTypes: string[];
|
|
8
|
+
transNr: number;
|
|
9
|
+
relationNrTr: number;
|
|
10
|
+
branchNr: string;
|
|
11
|
+
transDate: Date;
|
|
12
|
+
handledBy: number;
|
|
13
|
+
deliveryDate: Date;
|
|
14
|
+
confirmedDeliveryDateRange: string;
|
|
15
|
+
deliveryDateRange: string;
|
|
16
|
+
deliveryMethod: string;
|
|
17
|
+
rangeDeliveryMethod: string;
|
|
18
|
+
transactionKind: string;
|
|
19
|
+
active: boolean;
|
|
20
|
+
transactionDefinitive: string;
|
|
21
|
+
rangeTransNr: string;
|
|
22
|
+
rangeRelationNrTr: string;
|
|
23
|
+
rangeBranchId: string;
|
|
24
|
+
rangeTransDate: string;
|
|
25
|
+
maxNrResults: number;
|
|
26
|
+
relationReference: string;
|
|
27
|
+
userReference: string;
|
|
28
|
+
relationName: string;
|
|
29
|
+
streetTr: string;
|
|
30
|
+
houseNrTr: number;
|
|
31
|
+
postalCodeTr: string;
|
|
32
|
+
cityTr: string;
|
|
33
|
+
transactionShowInactive: boolean;
|
|
34
|
+
transKindList: string[];
|
|
35
|
+
serviceArticleNr: string;
|
|
36
|
+
articleNr: string;
|
|
37
|
+
serviceState: string;
|
|
38
|
+
rangeExecDate: string;
|
|
39
|
+
product: string;
|
|
40
|
+
productType: string;
|
|
41
|
+
rangeOnHoldCodes: string;
|
|
42
|
+
orderBy: string;
|
|
43
|
+
serviceSort: boolean;
|
|
44
|
+
rangeSalesPerson: string;
|
|
45
|
+
orderReaction: boolean;
|
|
46
|
+
rangeSupplier: string;
|
|
47
|
+
rangeCauseCode: string;
|
|
48
|
+
expectedConversionDateRange: string;
|
|
49
|
+
followUpDateRange: string;
|
|
50
|
+
arrivalDateRange: string;
|
|
51
|
+
batchNumber: string;
|
|
52
|
+
serialNumber: string;
|
|
53
|
+
tagRange: string;
|
|
54
|
+
supplierGroupId: string;
|
|
55
|
+
customerGroupId: string;
|
|
56
|
+
buyer: number;
|
|
57
|
+
partialDelivery: string;
|
|
58
|
+
deliveryDateDefinitive: string;
|
|
59
|
+
contactOption: string;
|
|
60
|
+
warehouse: number;
|
|
61
|
+
sourceWarehouse: number;
|
|
62
|
+
quantityAllocated: number;
|
|
63
|
+
quantityToBePicked: number;
|
|
64
|
+
quantityPicked: number;
|
|
65
|
+
quantityDelivered: number;
|
|
66
|
+
quantityInvoiced: number;
|
|
67
|
+
quantityReceived: number;
|
|
68
|
+
quantityConfirmed: number;
|
|
69
|
+
quotationStatus: boolean;
|
|
70
|
+
rangeSalesStage: string;
|
|
71
|
+
exceedanceCodes: string[];
|
|
72
|
+
orderCode: string;
|
|
73
|
+
commissionCodes: string[];
|
|
74
|
+
rangeTurnoverGroup: string;
|
|
75
|
+
mainArticleNrRange: string;
|
|
76
|
+
includingReturns: number;
|
|
77
|
+
containerNumber: string;
|
|
78
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var TransactionSearchViewRequest = (function () {
|
|
2
|
+
function TransactionSearchViewRequest() {
|
|
3
|
+
this.transTypes = [];
|
|
4
|
+
this.transKindList = [];
|
|
5
|
+
this.exceedanceCodes = [];
|
|
6
|
+
this.commissionCodes = [];
|
|
7
|
+
}
|
|
8
|
+
return TransactionSearchViewRequest;
|
|
9
|
+
}());
|
|
10
|
+
export { TransactionSearchViewRequest };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { BusinessObject } from "./business-object";
|
|
2
|
+
import { TransactionKind } from "../enum/transaction-kind.enum";
|
|
3
|
+
import { PriorityType } from "../enum/priority-type.enum";
|
|
4
|
+
import { CoDocument } from "./co-document";
|
|
5
|
+
export declare class TransactionSearchView extends BusinessObject {
|
|
6
|
+
transId: number;
|
|
7
|
+
transType: string;
|
|
8
|
+
transNr: number;
|
|
9
|
+
relationNr: number;
|
|
10
|
+
adres: string;
|
|
11
|
+
branchNr: string;
|
|
12
|
+
transDate: Date;
|
|
13
|
+
handledBy: number;
|
|
14
|
+
deliveryDate: Date;
|
|
15
|
+
deliveryMethod: string;
|
|
16
|
+
transactionKind: TransactionKind;
|
|
17
|
+
active: string;
|
|
18
|
+
deliveryDateDefinitive: string;
|
|
19
|
+
transactionDefinitive: boolean;
|
|
20
|
+
relationReference: string;
|
|
21
|
+
userReference: string;
|
|
22
|
+
relationName: string;
|
|
23
|
+
contactPerson: number;
|
|
24
|
+
deliveryDateConfirmed: string;
|
|
25
|
+
serviceStatus: string;
|
|
26
|
+
serviceReport: string;
|
|
27
|
+
servicePriority: PriorityType;
|
|
28
|
+
timeToFirstResponse: number;
|
|
29
|
+
execName: string;
|
|
30
|
+
execImage: CoDocument;
|
|
31
|
+
assProduct: string;
|
|
32
|
+
assProductType: string;
|
|
33
|
+
transitionDate: Date;
|
|
34
|
+
closed: boolean;
|
|
35
|
+
paused: boolean;
|
|
36
|
+
sourceGoodId: number;
|
|
37
|
+
sourceDocId: number;
|
|
38
|
+
createdBy: string;
|
|
39
|
+
customerResponse: string;
|
|
40
|
+
unreadResponse: boolean;
|
|
41
|
+
allowPartialDelivery: boolean;
|
|
42
|
+
amountToPayDown: number;
|
|
43
|
+
amountPaidDown: number;
|
|
44
|
+
personnelNo: number;
|
|
45
|
+
brancheName: string;
|
|
46
|
+
amountAcceptanceMessage: number;
|
|
47
|
+
levelAcceptanceMessage: number;
|
|
48
|
+
amountDelayedDelivery: number;
|
|
49
|
+
levelDelayedDelivery: number;
|
|
50
|
+
amountSalesDeliveryConfirmation: number;
|
|
51
|
+
levelSalesDeliveryConfirmation: number;
|
|
52
|
+
transactionMutationDate: Date;
|
|
53
|
+
invoiceSalesTransId: number;
|
|
54
|
+
get closedAsString(): string;
|
|
55
|
+
get statusOfSalesOrder(): string;
|
|
56
|
+
get isDefinitiveDate(): boolean;
|
|
57
|
+
constructor();
|
|
58
|
+
getId(): string;
|
|
59
|
+
getLettersForSearchResult(): string;
|
|
60
|
+
getRelationNr(): number;
|
|
61
|
+
getTransDate(): Date;
|
|
62
|
+
getDeliveryDate(): Date;
|
|
63
|
+
getIsDefinitive(): boolean;
|
|
64
|
+
getAdres(): string;
|
|
65
|
+
getHandledBy(): number;
|
|
66
|
+
getStatusForSalesOrder(): string;
|
|
67
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
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
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
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;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
21
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22
|
+
};
|
|
23
|
+
import { BusinessObject } from "./business-object";
|
|
24
|
+
import { DateField } from "../factory/decorators/date-field.decorator";
|
|
25
|
+
import { BooleanText } from "../factory/decorators/boolean.decorator";
|
|
26
|
+
import { PriorityType } from "../enum/priority-type.enum";
|
|
27
|
+
import { CoDocument } from "./co-document";
|
|
28
|
+
import { ComplexField } from '../factory/decorators/complex-field.decorator';
|
|
29
|
+
var TransactionSearchView = (function (_super) {
|
|
30
|
+
__extends(TransactionSearchView, _super);
|
|
31
|
+
function TransactionSearchView() {
|
|
32
|
+
var _this = _super.call(this) || this;
|
|
33
|
+
_this.closed = false;
|
|
34
|
+
return _this;
|
|
35
|
+
}
|
|
36
|
+
Object.defineProperty(TransactionSearchView.prototype, "closedAsString", {
|
|
37
|
+
get: function () {
|
|
38
|
+
return closed ? "FINISHED" : "OPEN";
|
|
39
|
+
},
|
|
40
|
+
enumerable: true,
|
|
41
|
+
configurable: true
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(TransactionSearchView.prototype, "statusOfSalesOrder", {
|
|
44
|
+
get: function () {
|
|
45
|
+
if (!this.paused) {
|
|
46
|
+
return !this.closed ? 'OPEN' : "CLOSED";
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
return 'PAUSED';
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
enumerable: true,
|
|
53
|
+
configurable: true
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(TransactionSearchView.prototype, "isDefinitiveDate", {
|
|
56
|
+
get: function () {
|
|
57
|
+
return this.deliveryDateDefinitive ? true : false;
|
|
58
|
+
},
|
|
59
|
+
enumerable: true,
|
|
60
|
+
configurable: true
|
|
61
|
+
});
|
|
62
|
+
TransactionSearchView.prototype.getId = function () {
|
|
63
|
+
return this.transId + "";
|
|
64
|
+
};
|
|
65
|
+
TransactionSearchView.prototype.getLettersForSearchResult = function () {
|
|
66
|
+
return this.relationName;
|
|
67
|
+
};
|
|
68
|
+
TransactionSearchView.prototype.getRelationNr = function () {
|
|
69
|
+
return this.relationNr;
|
|
70
|
+
};
|
|
71
|
+
TransactionSearchView.prototype.getTransDate = function () {
|
|
72
|
+
return this.transDate;
|
|
73
|
+
};
|
|
74
|
+
TransactionSearchView.prototype.getDeliveryDate = function () {
|
|
75
|
+
return this.deliveryDate;
|
|
76
|
+
};
|
|
77
|
+
TransactionSearchView.prototype.getIsDefinitive = function () {
|
|
78
|
+
return this.deliveryDateDefinitive ? true : false;
|
|
79
|
+
};
|
|
80
|
+
TransactionSearchView.prototype.getAdres = function () {
|
|
81
|
+
return this.adres;
|
|
82
|
+
};
|
|
83
|
+
TransactionSearchView.prototype.getHandledBy = function () {
|
|
84
|
+
return this.handledBy;
|
|
85
|
+
};
|
|
86
|
+
TransactionSearchView.prototype.getStatusForSalesOrder = function () {
|
|
87
|
+
if (!this.paused) {
|
|
88
|
+
return !this.closed ? 'OPEN' : "CLOSED";
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
return 'PAUSED';
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
__decorate([
|
|
95
|
+
DateField(),
|
|
96
|
+
__metadata("design:type", Date)
|
|
97
|
+
], TransactionSearchView.prototype, "transDate", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
DateField(),
|
|
100
|
+
__metadata("design:type", Date)
|
|
101
|
+
], TransactionSearchView.prototype, "deliveryDate", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
BooleanText("J"),
|
|
104
|
+
__metadata("design:type", Boolean)
|
|
105
|
+
], TransactionSearchView.prototype, "transactionDefinitive", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
ComplexField(PriorityType),
|
|
108
|
+
__metadata("design:type", Number)
|
|
109
|
+
], TransactionSearchView.prototype, "servicePriority", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
ComplexField(CoDocument),
|
|
112
|
+
__metadata("design:type", CoDocument)
|
|
113
|
+
], TransactionSearchView.prototype, "execImage", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
DateField(),
|
|
116
|
+
__metadata("design:type", Date)
|
|
117
|
+
], TransactionSearchView.prototype, "transitionDate", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
BooleanText("T"),
|
|
120
|
+
__metadata("design:type", Boolean)
|
|
121
|
+
], TransactionSearchView.prototype, "closed", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
BooleanText("T"),
|
|
124
|
+
__metadata("design:type", Boolean)
|
|
125
|
+
], TransactionSearchView.prototype, "paused", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
BooleanText("T"),
|
|
128
|
+
__metadata("design:type", Boolean)
|
|
129
|
+
], TransactionSearchView.prototype, "unreadResponse", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
BooleanText("T"),
|
|
132
|
+
__metadata("design:type", Boolean)
|
|
133
|
+
], TransactionSearchView.prototype, "allowPartialDelivery", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
DateField(),
|
|
136
|
+
__metadata("design:type", Date)
|
|
137
|
+
], TransactionSearchView.prototype, "transactionMutationDate", void 0);
|
|
138
|
+
return TransactionSearchView;
|
|
139
|
+
}(BusinessObject));
|
|
140
|
+
export { TransactionSearchView };
|
|
@@ -22,10 +22,10 @@ import { ChangeLineEditTimeRequest } from "./model/change-line-edit-time-request
|
|
|
22
22
|
import { ChangeLineSupplierArticleNumberRequest } from "./model/change-line-supplier-article-number-request";
|
|
23
23
|
import { ChangeLineReferenceRequest } from "./model/change-line-reference-request";
|
|
24
24
|
import { ChangeLineCollectionCodeRequest } from "./model/change-line-collection-code-request";
|
|
25
|
-
import {
|
|
25
|
+
import { TransactionSearchViewRequest } from "./model/transaction-search-view-request";
|
|
26
26
|
export declare class TransactionAuth extends IoneApiTransaction {
|
|
27
27
|
private _boSerializer;
|
|
28
|
-
searchTransactions(request:
|
|
28
|
+
searchTransactions(request: TransactionSearchViewRequest): Promise<DataServiceResponseData>;
|
|
29
29
|
getArticleFullObject(id: number): Promise<DataServiceResponseData>;
|
|
30
30
|
getGoodIdFromArticleNr(sku: string): Promise<DataServiceResponseData>;
|
|
31
31
|
getSingleImage(nodeId: number | string, publication?: number, includeMimetype?: boolean, thumb?: boolean): Promise<DataServiceResponseData>;
|
|
@@ -22,10 +22,10 @@ import { ChangeLineSupplierArticleNumberRequest } from "./model/change-line-supp
|
|
|
22
22
|
import { ChangeLineReferenceRequest } from "./model/change-line-reference-request";
|
|
23
23
|
import { ChangeLineCollectionCodeRequest } from "./model/change-line-collection-code-request";
|
|
24
24
|
import { ChangeLineQuantityRequest } from "./model/change-line-quantity-request";
|
|
25
|
-
import {
|
|
25
|
+
import { TransactionSearchViewRequest } from "./model/transaction-search-view-request";
|
|
26
26
|
export declare class TransactionPublic extends IoneApiTransaction {
|
|
27
27
|
protected endPoint: string;
|
|
28
|
-
searchTransactions(request:
|
|
28
|
+
searchTransactions(request: TransactionSearchViewRequest): Promise<DataServiceResponseData>;
|
|
29
29
|
getGoodIdFromArticleNr(sku: string): Promise<DataServiceResponseData>;
|
|
30
30
|
getArticleFullObject(goodId: number): Promise<DataServiceResponseData>;
|
|
31
31
|
getArticlePrice(goodId: number, branchNr: string, currencyId: number): Promise<DataServiceResponseData>;
|
package/build/transaction.d.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { IoneApiTransaction } from
|
|
2
|
-
import { Session } from
|
|
3
|
-
import { Subject } from
|
|
4
|
-
import { DataServiceResponseData } from
|
|
5
|
-
import { TransactionKind } from
|
|
6
|
-
import { SetTransactionDeliveryOptionsRequest } from
|
|
7
|
-
import { TransactionLineType } from
|
|
8
|
-
import { ResolveLinePendingReasonRequest } from
|
|
9
|
-
import { SequenceName } from
|
|
10
|
-
import { CustomerFullObject } from
|
|
11
|
-
import { RelationRequest } from
|
|
12
|
-
import { Options } from
|
|
13
|
-
import { ChangeLineSequenceRequest } from
|
|
14
|
-
import { ChangeLineQuantityRequest } from
|
|
15
|
-
import { ChangeLineCommissionCodeRequest } from
|
|
16
|
-
import { ChangeLineWarehouseRequest } from
|
|
17
|
-
import { ChangeLinePriceRequest } from
|
|
18
|
-
import { ChangeLinePriceListRequest } from
|
|
19
|
-
import { ChangeLineVatRequest } from
|
|
20
|
-
import { ChangeLineDiscountRequest } from
|
|
21
|
-
import { ChangeLineDeliveryMethodRequest } from
|
|
22
|
-
import { ChangeLineDeliveryDateRequest } from
|
|
23
|
-
import { ChangeLineAssemblyTimeRequest } from
|
|
24
|
-
import { ChangeLineEditTimeRequest } from
|
|
25
|
-
import { ChangeLineSupplierArticleNumberRequest } from
|
|
26
|
-
import { ChangeLineReferenceRequest } from
|
|
27
|
-
import { ChangeLineCollectionCodeRequest } from
|
|
28
|
-
import {
|
|
1
|
+
import { IoneApiTransaction } from './ione-api-transaction';
|
|
2
|
+
import { Session } from './model/session';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { DataServiceResponseData } from './model/data-service-response-data';
|
|
5
|
+
import { TransactionKind } from './enum/transaction-kind.enum';
|
|
6
|
+
import { SetTransactionDeliveryOptionsRequest } from './model/set-transaction-delivery-options-request.bo';
|
|
7
|
+
import { TransactionLineType } from './enum/transaction-line-type.enum';
|
|
8
|
+
import { ResolveLinePendingReasonRequest } from './model/resolve-pending-reason-request.bo';
|
|
9
|
+
import { SequenceName } from './enum/sequence-name.enum';
|
|
10
|
+
import { CustomerFullObject } from './model/customer-full-object.bo';
|
|
11
|
+
import { RelationRequest } from './model/relation-request';
|
|
12
|
+
import { Options } from '@colijnit/ioneconnector/build/model/options';
|
|
13
|
+
import { ChangeLineSequenceRequest } from './model/change-line-sequence-request';
|
|
14
|
+
import { ChangeLineQuantityRequest } from './model/change-line-quantity-request';
|
|
15
|
+
import { ChangeLineCommissionCodeRequest } from './model/change-line-commission-code-request';
|
|
16
|
+
import { ChangeLineWarehouseRequest } from './model/change-line-warehouse-request';
|
|
17
|
+
import { ChangeLinePriceRequest } from './model/change-line-price-request';
|
|
18
|
+
import { ChangeLinePriceListRequest } from './model/change-line-price-list-request';
|
|
19
|
+
import { ChangeLineVatRequest } from './model/change-line-vat-request';
|
|
20
|
+
import { ChangeLineDiscountRequest } from './model/change-line-discount-request';
|
|
21
|
+
import { ChangeLineDeliveryMethodRequest } from './model/change-line-delivery-method-request';
|
|
22
|
+
import { ChangeLineDeliveryDateRequest } from './model/change-line-delivery-date-request';
|
|
23
|
+
import { ChangeLineAssemblyTimeRequest } from './model/change-line-assembly-time-request';
|
|
24
|
+
import { ChangeLineEditTimeRequest } from './model/change-line-edit-time-request';
|
|
25
|
+
import { ChangeLineSupplierArticleNumberRequest } from './model/change-line-supplier-article-number-request';
|
|
26
|
+
import { ChangeLineReferenceRequest } from './model/change-line-reference-request';
|
|
27
|
+
import { ChangeLineCollectionCodeRequest } from './model/change-line-collection-code-request';
|
|
28
|
+
import { TransactionSearchViewRequest } from './model/transaction-search-view-request';
|
|
29
29
|
export declare class Transaction {
|
|
30
30
|
readonly showLoader: Subject<boolean>;
|
|
31
31
|
readonly connectionAborted: Subject<void>;
|
|
@@ -86,7 +86,7 @@ export declare class Transaction {
|
|
|
86
86
|
changeTransactionLineReference(request: ChangeLineReferenceRequest): Promise<DataServiceResponseData>;
|
|
87
87
|
changeTransactionLineCollectionCode(request: ChangeLineCollectionCodeRequest): Promise<DataServiceResponseData>;
|
|
88
88
|
resolvePendingLineReason(pendingLineValues: ResolveLinePendingReasonRequest): Promise<DataServiceResponseData>;
|
|
89
|
-
searchTransactions(request:
|
|
89
|
+
searchTransactions(request: TransactionSearchViewRequest): Promise<DataServiceResponseData>;
|
|
90
90
|
getCustomerFullObject(relationNo: number): Promise<DataServiceResponseData>;
|
|
91
91
|
getRelationNumber(relationId: any): Promise<DataServiceResponseData>;
|
|
92
92
|
getSequenceValue(sequenceName: SequenceName, noSequence?: boolean): Promise<DataServiceResponseData>;
|
package/build/transaction.js
CHANGED
|
@@ -34,10 +34,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
34
34
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
-
import { TransactionAuth } from
|
|
38
|
-
import { Subject } from
|
|
39
|
-
import { TransactionPublic } from
|
|
40
|
-
import { Connector } from
|
|
37
|
+
import { TransactionAuth } from './transaction-auth';
|
|
38
|
+
import { Subject } from 'rxjs';
|
|
39
|
+
import { TransactionPublic } from './transaction-public';
|
|
40
|
+
import { Connector } from '@colijnit/ioneconnector/build/connector';
|
|
41
41
|
var Transaction = (function () {
|
|
42
42
|
function Transaction(options) {
|
|
43
43
|
var _this = this;
|
|
@@ -242,7 +242,7 @@ var Transaction = (function () {
|
|
|
242
242
|
});
|
|
243
243
|
};
|
|
244
244
|
Transaction.createConnector = function (options) {
|
|
245
|
-
if (options.username && options.password) {
|
|
245
|
+
if ((options.username && options.password) || options.session) {
|
|
246
246
|
return new TransactionAuth();
|
|
247
247
|
}
|
|
248
248
|
return new TransactionPublic();
|
|
@@ -38,7 +38,7 @@ import { Transaction } from "./transaction";
|
|
|
38
38
|
import { RelationRequest } from "./model/relation-request";
|
|
39
39
|
import { TransactionKind } from "./enum/transaction-kind.enum";
|
|
40
40
|
import { SequenceName } from "./enum/sequence-name.enum";
|
|
41
|
-
import {
|
|
41
|
+
import { TransactionSearchViewRequest } from "./model/transaction-search-view-request";
|
|
42
42
|
var options = {
|
|
43
43
|
url: 'http',
|
|
44
44
|
ajaxUrl: 'http'
|
|
@@ -309,7 +309,7 @@ describe("TransactionAPI", function () {
|
|
|
309
309
|
return __generator(this, function (_a) {
|
|
310
310
|
switch (_a.label) {
|
|
311
311
|
case 0:
|
|
312
|
-
request = new
|
|
312
|
+
request = new TransactionSearchViewRequest();
|
|
313
313
|
request.general = 'lange';
|
|
314
314
|
return [4, transaction.searchTransactions(request)];
|
|
315
315
|
case 1:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/transactionapi",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.18",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "grunt clean && tsc",
|
|
6
6
|
"browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"reflect-metadata": "^0.1.12",
|
|
26
26
|
"rxjs": "~6.5.4",
|
|
27
27
|
"rxjs-compat": "^6.6.3",
|
|
28
|
-
"@colijnit/ioneconnector": "2.0.
|
|
28
|
+
"@colijnit/ioneconnector": "2.0.6"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/jest": "^24.0.13",
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export declare class SearchTransactionRequest {
|
|
2
|
-
general: string;
|
|
3
|
-
transId: number;
|
|
4
|
-
transType: string;
|
|
5
|
-
transNr: number;
|
|
6
|
-
relationNrTr: number;
|
|
7
|
-
branchNr: string;
|
|
8
|
-
transDate: Date;
|
|
9
|
-
handledBy: number;
|
|
10
|
-
deliveryDate: Date;
|
|
11
|
-
deliveryMethod: string;
|
|
12
|
-
transactionKind: string;
|
|
13
|
-
active: boolean;
|
|
14
|
-
deliveryDateDefinitive: boolean;
|
|
15
|
-
transactionDefinitive: boolean;
|
|
16
|
-
rangeTransNr: string;
|
|
17
|
-
rangeRelationNrTr: string;
|
|
18
|
-
rangeBranchNr: string;
|
|
19
|
-
rangeTransDate: string;
|
|
20
|
-
maxNrResults: number;
|
|
21
|
-
relationReference: string;
|
|
22
|
-
userReference: string;
|
|
23
|
-
relationName: string;
|
|
24
|
-
streetTr: string;
|
|
25
|
-
houseNrTr: number;
|
|
26
|
-
postalCodeTr: string;
|
|
27
|
-
cityTr: string;
|
|
28
|
-
transactionShowInactive: string;
|
|
29
|
-
transTypeList: string[];
|
|
30
|
-
serviceArticleNr: string;
|
|
31
|
-
serviceState: string;
|
|
32
|
-
rangeExecDate: string;
|
|
33
|
-
product: string;
|
|
34
|
-
productType: string;
|
|
35
|
-
rangeOnHoldCodes: string;
|
|
36
|
-
orderBy: string;
|
|
37
|
-
serviceSort: string;
|
|
38
|
-
rangeSalesPerson: string;
|
|
39
|
-
orderReaction: string;
|
|
40
|
-
rangeSupplier: string;
|
|
41
|
-
rangeCauseCode: string;
|
|
42
|
-
rangeExecutive: string;
|
|
43
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
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;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { DateField } from "../factory/decorators/date-field.decorator";
|
|
11
|
-
import { BooleanText } from "../factory/decorators/boolean.decorator";
|
|
12
|
-
var SearchTransactionRequest = (function () {
|
|
13
|
-
function SearchTransactionRequest() {
|
|
14
|
-
this.transTypeList = [];
|
|
15
|
-
}
|
|
16
|
-
__decorate([
|
|
17
|
-
DateField(),
|
|
18
|
-
__metadata("design:type", Date)
|
|
19
|
-
], SearchTransactionRequest.prototype, "transDate", void 0);
|
|
20
|
-
__decorate([
|
|
21
|
-
DateField(),
|
|
22
|
-
__metadata("design:type", Date)
|
|
23
|
-
], SearchTransactionRequest.prototype, "deliveryDate", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
BooleanText('T'),
|
|
26
|
-
__metadata("design:type", Boolean)
|
|
27
|
-
], SearchTransactionRequest.prototype, "active", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
BooleanText('T'),
|
|
30
|
-
__metadata("design:type", Boolean)
|
|
31
|
-
], SearchTransactionRequest.prototype, "deliveryDateDefinitive", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
BooleanText('T'),
|
|
34
|
-
__metadata("design:type", Boolean)
|
|
35
|
-
], SearchTransactionRequest.prototype, "transactionDefinitive", void 0);
|
|
36
|
-
return SearchTransactionRequest;
|
|
37
|
-
}());
|
|
38
|
-
export { SearchTransactionRequest };
|