@colijnit/transactionapi 1.1.16 → 1.1.19
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/master-data-object-name.enum.d.ts +2 -0
- package/build/enum/master-data-object-name.enum.js +2 -0
- package/build/enum/public-service-method.d.ts +5 -0
- package/build/enum/public-service-method.js +5 -0
- package/build/enum/relation-object-name.enum.d.ts +1 -0
- package/build/enum/relation-object-name.enum.js +1 -0
- package/build/enum/tag-operation-name.enum.d.ts +3 -0
- package/build/enum/tag-operation-name.enum.js +4 -0
- package/build/ione-api-transaction.d.ts +32 -27
- package/build/ione-api-transaction.js +2 -2
- package/build/model/branch-lov.bo.d.ts +9 -0
- package/build/model/branch-lov.bo.js +25 -0
- package/build/model/code-description.d.ts +5 -0
- package/build/model/code-description.js +8 -0
- package/build/model/on-hold-code.bo.d.ts +6 -0
- package/build/model/on-hold-code.bo.js +42 -0
- package/build/model/sales-person.bo.d.ts +7 -0
- package/build/model/sales-person.bo.js +43 -0
- package/build/model/transaction-line-info.bo.d.ts +4 -3
- package/build/model/transaction-line-info.bo.js +7 -3
- 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/model/warehouse.bo.d.ts +15 -0
- package/build/model/warehouse.bo.js +71 -0
- package/build/transaction-auth.d.ts +31 -26
- package/build/transaction-auth.js +50 -18
- package/build/transaction-public.d.ts +31 -26
- package/build/transaction-public.js +68 -8
- package/build/transaction.d.ts +35 -29
- package/build/transaction.js +29 -4
- package/build/transaction.unit.test.js +79 -7
- package/package.json +2 -2
- package/build/model/search-transaction-request.d.ts +0 -43
- package/build/model/search-transaction-request.js +0 -38
|
@@ -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 };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BusinessObject } from './business-object';
|
|
2
|
+
import { GetStockInfoOutputParams } from './get-stock-info-output-params';
|
|
3
|
+
export declare class Warehouse extends BusinessObject {
|
|
4
|
+
warehouseNo: number;
|
|
5
|
+
description: string;
|
|
6
|
+
external: boolean;
|
|
7
|
+
kasPick: boolean;
|
|
8
|
+
noReturns: boolean;
|
|
9
|
+
relationId: string;
|
|
10
|
+
type: string;
|
|
11
|
+
dropshipment: boolean;
|
|
12
|
+
stockInfo: GetStockInfoOutputParams;
|
|
13
|
+
constructor();
|
|
14
|
+
getId(): any;
|
|
15
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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 { BusinessObjectData } from '../factory/decorators/business-object-data.decorator';
|
|
24
|
+
import { DataMapping } from '../enum/data-mapping.enum';
|
|
25
|
+
import { BusinessObject } from './business-object';
|
|
26
|
+
import { BooleanText } from '../factory/decorators/boolean.decorator';
|
|
27
|
+
import { NoDbField } from '../factory/decorators/no-db-field.decorator';
|
|
28
|
+
import { GetStockInfoOutputParams } from './get-stock-info-output-params';
|
|
29
|
+
var Warehouse = (function (_super) {
|
|
30
|
+
__extends(Warehouse, _super);
|
|
31
|
+
function Warehouse() {
|
|
32
|
+
var _this = _super.call(this) || this;
|
|
33
|
+
_this.stockInfo = new GetStockInfoOutputParams();
|
|
34
|
+
return _this;
|
|
35
|
+
}
|
|
36
|
+
Warehouse.prototype.getId = function () {
|
|
37
|
+
return this.warehouseNo;
|
|
38
|
+
};
|
|
39
|
+
__decorate([
|
|
40
|
+
BooleanText(),
|
|
41
|
+
__metadata("design:type", Boolean)
|
|
42
|
+
], Warehouse.prototype, "external", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
BooleanText(),
|
|
45
|
+
__metadata("design:type", Boolean)
|
|
46
|
+
], Warehouse.prototype, "kasPick", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
BooleanText(),
|
|
49
|
+
__metadata("design:type", Boolean)
|
|
50
|
+
], Warehouse.prototype, "noReturns", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
BooleanText(),
|
|
53
|
+
__metadata("design:type", Boolean)
|
|
54
|
+
], Warehouse.prototype, "dropshipment", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
NoDbField(),
|
|
57
|
+
__metadata("design:type", GetStockInfoOutputParams)
|
|
58
|
+
], Warehouse.prototype, "stockInfo", void 0);
|
|
59
|
+
Warehouse = __decorate([
|
|
60
|
+
BusinessObjectData({
|
|
61
|
+
name: "Warehouse",
|
|
62
|
+
mapping: DataMapping.Simplebasedata,
|
|
63
|
+
label: "WAREHOUSE",
|
|
64
|
+
codeField: "warehouseNo",
|
|
65
|
+
descriptionField: "description"
|
|
66
|
+
}),
|
|
67
|
+
__metadata("design:paramtypes", [])
|
|
68
|
+
], Warehouse);
|
|
69
|
+
return Warehouse;
|
|
70
|
+
}(BusinessObject));
|
|
71
|
+
export { Warehouse };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { IoneApiTransaction } from
|
|
2
|
-
import { TransactionKind } from
|
|
3
|
-
import { CustomerFullObject } from
|
|
4
|
-
import { SequenceName } from
|
|
5
|
-
import { TransactionLineType } from
|
|
6
|
-
import { SetTransactionDeliveryOptionsRequest } from
|
|
7
|
-
import { RelationRequest } from
|
|
8
|
-
import { ResolveLinePendingReasonRequest } from
|
|
9
|
-
import { DataServiceResponseData } from
|
|
10
|
-
import { ChangeLineSequenceRequest } from
|
|
11
|
-
import { ChangeLineQuantityRequest } from
|
|
12
|
-
import { ChangeLineCommissionCodeRequest } from
|
|
13
|
-
import { ChangeLineWarehouseRequest } from
|
|
14
|
-
import { ChangeLinePriceRequest } from
|
|
15
|
-
import { ChangeLinePriceListRequest } from
|
|
16
|
-
import { ChangeLineVatRequest } from
|
|
17
|
-
import { ChangeLineDiscountRequest } from
|
|
18
|
-
import { ChangeLineDeliveryMethodRequest } from
|
|
19
|
-
import { ChangeLineDeliveryDateRequest } from
|
|
20
|
-
import { ChangeLineAssemblyTimeRequest } from
|
|
21
|
-
import { ChangeLineEditTimeRequest } from
|
|
22
|
-
import { ChangeLineSupplierArticleNumberRequest } from
|
|
23
|
-
import { ChangeLineReferenceRequest } from
|
|
24
|
-
import { ChangeLineCollectionCodeRequest } from
|
|
25
|
-
import {
|
|
1
|
+
import { IoneApiTransaction } from './ione-api-transaction';
|
|
2
|
+
import { TransactionKind } from './enum/transaction-kind.enum';
|
|
3
|
+
import { CustomerFullObject } from './model/customer-full-object.bo';
|
|
4
|
+
import { SequenceName } from './enum/sequence-name.enum';
|
|
5
|
+
import { TransactionLineType } from './enum/transaction-line-type.enum';
|
|
6
|
+
import { SetTransactionDeliveryOptionsRequest } from './model/set-transaction-delivery-options-request.bo';
|
|
7
|
+
import { RelationRequest } from './model/relation-request';
|
|
8
|
+
import { ResolveLinePendingReasonRequest } from './model/resolve-pending-reason-request.bo';
|
|
9
|
+
import { DataServiceResponseData } from './model/data-service-response-data';
|
|
10
|
+
import { ChangeLineSequenceRequest } from './model/change-line-sequence-request';
|
|
11
|
+
import { ChangeLineQuantityRequest } from './model/change-line-quantity-request';
|
|
12
|
+
import { ChangeLineCommissionCodeRequest } from './model/change-line-commission-code-request';
|
|
13
|
+
import { ChangeLineWarehouseRequest } from './model/change-line-warehouse-request';
|
|
14
|
+
import { ChangeLinePriceRequest } from './model/change-line-price-request';
|
|
15
|
+
import { ChangeLinePriceListRequest } from './model/change-line-price-list-request';
|
|
16
|
+
import { ChangeLineVatRequest } from './model/change-line-vat-request';
|
|
17
|
+
import { ChangeLineDiscountRequest } from './model/change-line-discount-request';
|
|
18
|
+
import { ChangeLineDeliveryMethodRequest } from './model/change-line-delivery-method-request';
|
|
19
|
+
import { ChangeLineDeliveryDateRequest } from './model/change-line-delivery-date-request';
|
|
20
|
+
import { ChangeLineAssemblyTimeRequest } from './model/change-line-assembly-time-request';
|
|
21
|
+
import { ChangeLineEditTimeRequest } from './model/change-line-edit-time-request';
|
|
22
|
+
import { ChangeLineSupplierArticleNumberRequest } from './model/change-line-supplier-article-number-request';
|
|
23
|
+
import { ChangeLineReferenceRequest } from './model/change-line-reference-request';
|
|
24
|
+
import { ChangeLineCollectionCodeRequest } from './model/change-line-collection-code-request';
|
|
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>;
|
|
@@ -40,6 +40,11 @@ export declare class TransactionAuth extends IoneApiTransaction {
|
|
|
40
40
|
getInOutCollection(languageCode: string): Promise<DataServiceResponseData>;
|
|
41
41
|
getTextTypes(languageCode: string): Promise<DataServiceResponseData>;
|
|
42
42
|
getStandardTexts(languageCode: any): Promise<DataServiceResponseData>;
|
|
43
|
+
getBranches(branchNr?: string): Promise<DataServiceResponseData>;
|
|
44
|
+
getSalesPersons(date?: Date): Promise<DataServiceResponseData>;
|
|
45
|
+
getTags(category: number): Promise<DataServiceResponseData>;
|
|
46
|
+
getOnHoldCodes(): Promise<DataServiceResponseData>;
|
|
47
|
+
getWarehouses(branchNr: string): Promise<DataServiceResponseData>;
|
|
43
48
|
getTransactionArticleWarehouses(goodId: number, branchNr?: string): Promise<DataServiceResponseData>;
|
|
44
49
|
getMarketingCodes(): Promise<DataServiceResponseData>;
|
|
45
50
|
createTransaction(kind: TransactionKind, branchNr: string): Promise<DataServiceResponseData>;
|
|
@@ -47,24 +47,26 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47
47
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
|
-
import { IoneApiTransaction } from
|
|
51
|
-
import { SequenceName } from
|
|
52
|
-
import { ArticleMethod } from
|
|
53
|
-
import { ModuleName } from
|
|
54
|
-
import { GeneralMethod } from
|
|
55
|
-
import { isNill } from
|
|
56
|
-
import { ArticledObjectName } from
|
|
57
|
-
import { DataServiceMethod } from
|
|
58
|
-
import { MasterDataObjectName } from
|
|
59
|
-
import { DomainName } from
|
|
60
|
-
import { TransactionMethod } from
|
|
61
|
-
import { RelationObjectName } from
|
|
62
|
-
import { StringUtils } from
|
|
63
|
-
import { OperationName } from
|
|
64
|
-
import { LogisticsMethod } from
|
|
65
|
-
import { BackendServiceName } from
|
|
66
|
-
import { BusinessObjectSerializerService } from
|
|
67
|
-
import { TransactionObjectName } from
|
|
50
|
+
import { IoneApiTransaction } from './ione-api-transaction';
|
|
51
|
+
import { SequenceName } from './enum/sequence-name.enum';
|
|
52
|
+
import { ArticleMethod } from './enum/article-method.enum';
|
|
53
|
+
import { ModuleName } from './enum/module-name.enum';
|
|
54
|
+
import { GeneralMethod } from './enum/general-method.enum';
|
|
55
|
+
import { isNill } from './utils/function/is-nill.function';
|
|
56
|
+
import { ArticledObjectName } from './enum/article-object-name.enum';
|
|
57
|
+
import { DataServiceMethod } from './enum/data-service-method.enum';
|
|
58
|
+
import { MasterDataObjectName } from './enum/master-data-object-name.enum';
|
|
59
|
+
import { DomainName } from './enum/domain-name.enum';
|
|
60
|
+
import { TransactionMethod } from './enum/transaction-method.enum';
|
|
61
|
+
import { RelationObjectName } from './enum/relation-object-name.enum';
|
|
62
|
+
import { StringUtils } from './utils/string-utils';
|
|
63
|
+
import { OperationName } from './enum/operation-name.enum';
|
|
64
|
+
import { LogisticsMethod } from './enum/logistics-method.enum';
|
|
65
|
+
import { BackendServiceName } from './enum/backend-service-name.enum';
|
|
66
|
+
import { BusinessObjectSerializerService } from './service/business-object-serializer.service';
|
|
67
|
+
import { TransactionObjectName } from './enum/transaction-object-name.enum';
|
|
68
|
+
import { TagObjectName } from './enum/tag-object-name.enum';
|
|
69
|
+
import { TagOperationName } from './enum/tag-operation-name.enum';
|
|
68
70
|
var TransactionAuth = (function (_super) {
|
|
69
71
|
__extends(TransactionAuth, _super);
|
|
70
72
|
function TransactionAuth() {
|
|
@@ -176,6 +178,36 @@ var TransactionAuth = (function (_super) {
|
|
|
176
178
|
};
|
|
177
179
|
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
178
180
|
};
|
|
181
|
+
TransactionAuth.prototype.getBranches = function (branchNr) {
|
|
182
|
+
var params = {};
|
|
183
|
+
if (branchNr !== undefined && branchNr !== null) {
|
|
184
|
+
params.branchNo = branchNr;
|
|
185
|
+
}
|
|
186
|
+
return this.selectMultiple(ModuleName.Relation, RelationObjectName.BranchLov, "", params);
|
|
187
|
+
};
|
|
188
|
+
TransactionAuth.prototype.getSalesPersons = function (date) {
|
|
189
|
+
var params = {};
|
|
190
|
+
if (date !== undefined && date !== null) {
|
|
191
|
+
params.date = date;
|
|
192
|
+
}
|
|
193
|
+
return this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.SalesPerson, "", params);
|
|
194
|
+
};
|
|
195
|
+
TransactionAuth.prototype.getTags = function (category) {
|
|
196
|
+
var params = {
|
|
197
|
+
category: category
|
|
198
|
+
};
|
|
199
|
+
return this.selectMultiple(ModuleName.Tags, TagObjectName.Tag, TagOperationName.TagsByCat, params);
|
|
200
|
+
};
|
|
201
|
+
TransactionAuth.prototype.getOnHoldCodes = function () {
|
|
202
|
+
return this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.OnHoldCode);
|
|
203
|
+
};
|
|
204
|
+
TransactionAuth.prototype.getWarehouses = function (branchNr) {
|
|
205
|
+
var params = {};
|
|
206
|
+
if (branchNr !== undefined && branchNr !== null) {
|
|
207
|
+
params.branchNr = branchNr;
|
|
208
|
+
}
|
|
209
|
+
return this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.WareHouse, "", params);
|
|
210
|
+
};
|
|
179
211
|
TransactionAuth.prototype.getTransactionArticleWarehouses = function (goodId, branchNr) {
|
|
180
212
|
var params = {
|
|
181
213
|
branchNr: branchNr,
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { IoneApiTransaction } from
|
|
2
|
-
import { TransactionKind } from
|
|
3
|
-
import { SequenceName } from
|
|
4
|
-
import { TransactionLineType } from
|
|
5
|
-
import { SetTransactionDeliveryOptionsRequest } from
|
|
6
|
-
import { RelationRequest } from
|
|
7
|
-
import { ResolveLinePendingReasonRequest } from
|
|
8
|
-
import { DataServiceResponseData } from
|
|
9
|
-
import { CustomerFullObject } from
|
|
10
|
-
import { ChangeLineSequenceRequest } from
|
|
11
|
-
import { ChangeLineCommissionCodeRequest } from
|
|
12
|
-
import { ChangeLineWarehouseRequest } from
|
|
13
|
-
import { ChangeLinePriceRequest } from
|
|
14
|
-
import { ChangeLinePriceListRequest } from
|
|
15
|
-
import { ChangeLineVatRequest } from
|
|
16
|
-
import { ChangeLineDiscountRequest } from
|
|
17
|
-
import { ChangeLineDeliveryMethodRequest } from
|
|
18
|
-
import { ChangeLineDeliveryDateRequest } from
|
|
19
|
-
import { ChangeLineAssemblyTimeRequest } from
|
|
20
|
-
import { ChangeLineEditTimeRequest } from
|
|
21
|
-
import { ChangeLineSupplierArticleNumberRequest } from
|
|
22
|
-
import { ChangeLineReferenceRequest } from
|
|
23
|
-
import { ChangeLineCollectionCodeRequest } from
|
|
24
|
-
import { ChangeLineQuantityRequest } from
|
|
25
|
-
import {
|
|
1
|
+
import { IoneApiTransaction } from './ione-api-transaction';
|
|
2
|
+
import { TransactionKind } from './enum/transaction-kind.enum';
|
|
3
|
+
import { SequenceName } from './enum/sequence-name.enum';
|
|
4
|
+
import { TransactionLineType } from './enum/transaction-line-type.enum';
|
|
5
|
+
import { SetTransactionDeliveryOptionsRequest } from './model/set-transaction-delivery-options-request.bo';
|
|
6
|
+
import { RelationRequest } from './model/relation-request';
|
|
7
|
+
import { ResolveLinePendingReasonRequest } from './model/resolve-pending-reason-request.bo';
|
|
8
|
+
import { DataServiceResponseData } from './model/data-service-response-data';
|
|
9
|
+
import { CustomerFullObject } from './model/customer-full-object.bo';
|
|
10
|
+
import { ChangeLineSequenceRequest } from './model/change-line-sequence-request';
|
|
11
|
+
import { ChangeLineCommissionCodeRequest } from './model/change-line-commission-code-request';
|
|
12
|
+
import { ChangeLineWarehouseRequest } from './model/change-line-warehouse-request';
|
|
13
|
+
import { ChangeLinePriceRequest } from './model/change-line-price-request';
|
|
14
|
+
import { ChangeLinePriceListRequest } from './model/change-line-price-list-request';
|
|
15
|
+
import { ChangeLineVatRequest } from './model/change-line-vat-request';
|
|
16
|
+
import { ChangeLineDiscountRequest } from './model/change-line-discount-request';
|
|
17
|
+
import { ChangeLineDeliveryMethodRequest } from './model/change-line-delivery-method-request';
|
|
18
|
+
import { ChangeLineDeliveryDateRequest } from './model/change-line-delivery-date-request';
|
|
19
|
+
import { ChangeLineAssemblyTimeRequest } from './model/change-line-assembly-time-request';
|
|
20
|
+
import { ChangeLineEditTimeRequest } from './model/change-line-edit-time-request';
|
|
21
|
+
import { ChangeLineSupplierArticleNumberRequest } from './model/change-line-supplier-article-number-request';
|
|
22
|
+
import { ChangeLineReferenceRequest } from './model/change-line-reference-request';
|
|
23
|
+
import { ChangeLineCollectionCodeRequest } from './model/change-line-collection-code-request';
|
|
24
|
+
import { ChangeLineQuantityRequest } from './model/change-line-quantity-request';
|
|
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>;
|
|
@@ -42,6 +42,11 @@ export declare class TransactionPublic extends IoneApiTransaction {
|
|
|
42
42
|
getInOutCollection(languageCode: string): Promise<DataServiceResponseData>;
|
|
43
43
|
getTextTypes(languageCode: string): Promise<DataServiceResponseData>;
|
|
44
44
|
getStandardTexts(languageCode: any): Promise<DataServiceResponseData>;
|
|
45
|
+
getBranches(branchNr?: string): Promise<DataServiceResponseData>;
|
|
46
|
+
getSalesPersons(date?: Date): Promise<DataServiceResponseData>;
|
|
47
|
+
getTags(category: number): Promise<DataServiceResponseData>;
|
|
48
|
+
getOnHoldCodes(): Promise<DataServiceResponseData>;
|
|
49
|
+
getWarehouses(branchNr: string): Promise<DataServiceResponseData>;
|
|
45
50
|
getTransactionArticleWarehouses(goodId: number, branchNr?: string): Promise<DataServiceResponseData>;
|
|
46
51
|
createTransaction(kind: TransactionKind, branchNr: string): Promise<DataServiceResponseData>;
|
|
47
52
|
getTransactionByNrAndKind(kind: TransactionKind, transactionNo: number): Promise<DataServiceResponseData>;
|
|
@@ -58,14 +58,14 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
58
58
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
-
import { IoneApiTransaction } from
|
|
62
|
-
import { TransactionKind } from
|
|
63
|
-
import { PublicServiceMethod } from
|
|
64
|
-
import { GetArticlePriceRequest } from
|
|
65
|
-
import { DomainName } from
|
|
66
|
-
import { EndPoint } from
|
|
67
|
-
import { DataServiceResponseData } from
|
|
68
|
-
import { ValidationResult } from
|
|
61
|
+
import { IoneApiTransaction } from './ione-api-transaction';
|
|
62
|
+
import { TransactionKind } from './enum/transaction-kind.enum';
|
|
63
|
+
import { PublicServiceMethod } from './enum/public-service-method';
|
|
64
|
+
import { GetArticlePriceRequest } from './model/get-article-price-request';
|
|
65
|
+
import { DomainName } from './enum/domain-name.enum';
|
|
66
|
+
import { EndPoint } from '@colijnit/ioneconnector/build/enum/end-point.enum';
|
|
67
|
+
import { DataServiceResponseData } from './model/data-service-response-data';
|
|
68
|
+
import { ValidationResult } from './model/validation-result';
|
|
69
69
|
var TransactionPublic = (function (_super) {
|
|
70
70
|
__extends(TransactionPublic, _super);
|
|
71
71
|
function TransactionPublic() {
|
|
@@ -239,6 +239,66 @@ var TransactionPublic = (function (_super) {
|
|
|
239
239
|
});
|
|
240
240
|
});
|
|
241
241
|
};
|
|
242
|
+
TransactionPublic.prototype.getBranches = function (branchNr) {
|
|
243
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
244
|
+
var params, data;
|
|
245
|
+
return __generator(this, function (_a) {
|
|
246
|
+
params = {};
|
|
247
|
+
if (branchNr !== undefined && branchNr !== null) {
|
|
248
|
+
params.branchNo = branchNr;
|
|
249
|
+
}
|
|
250
|
+
data = __assign(__assign({}, this.createServiceRequestData()), { parameterValues: params });
|
|
251
|
+
return [2, this._call(PublicServiceMethod.GetBranches, data)];
|
|
252
|
+
});
|
|
253
|
+
});
|
|
254
|
+
};
|
|
255
|
+
TransactionPublic.prototype.getSalesPersons = function (date) {
|
|
256
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
257
|
+
var params, data;
|
|
258
|
+
return __generator(this, function (_a) {
|
|
259
|
+
params = {};
|
|
260
|
+
if (date !== undefined && date !== null) {
|
|
261
|
+
params.date = date;
|
|
262
|
+
}
|
|
263
|
+
data = __assign(__assign({}, this.createServiceRequestData()), { parameterValues: params });
|
|
264
|
+
return [2, this._call(PublicServiceMethod.GetSalesPersons, data)];
|
|
265
|
+
});
|
|
266
|
+
});
|
|
267
|
+
};
|
|
268
|
+
TransactionPublic.prototype.getTags = function (category) {
|
|
269
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
270
|
+
var params, data;
|
|
271
|
+
return __generator(this, function (_a) {
|
|
272
|
+
params = {
|
|
273
|
+
category: category
|
|
274
|
+
};
|
|
275
|
+
data = __assign(__assign({}, this.createServiceRequestData()), { parameterValues: params });
|
|
276
|
+
return [2, this._call(PublicServiceMethod.GetTags, data)];
|
|
277
|
+
});
|
|
278
|
+
});
|
|
279
|
+
};
|
|
280
|
+
TransactionPublic.prototype.getOnHoldCodes = function () {
|
|
281
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
282
|
+
var data;
|
|
283
|
+
return __generator(this, function (_a) {
|
|
284
|
+
data = __assign({}, this.createServiceRequestData());
|
|
285
|
+
return [2, this._call(PublicServiceMethod.GetOnHoldCodes, data)];
|
|
286
|
+
});
|
|
287
|
+
});
|
|
288
|
+
};
|
|
289
|
+
TransactionPublic.prototype.getWarehouses = function (branchNr) {
|
|
290
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
291
|
+
var params, data;
|
|
292
|
+
return __generator(this, function (_a) {
|
|
293
|
+
params = {};
|
|
294
|
+
if (branchNr !== undefined && branchNr !== null) {
|
|
295
|
+
params.branchNr = branchNr;
|
|
296
|
+
}
|
|
297
|
+
data = __assign(__assign({}, this.createServiceRequestData()), { parameterValues: params });
|
|
298
|
+
return [2, this._call(PublicServiceMethod.GetWarehouses, data)];
|
|
299
|
+
});
|
|
300
|
+
});
|
|
301
|
+
};
|
|
242
302
|
TransactionPublic.prototype.getTransactionArticleWarehouses = function (goodId, branchNr) {
|
|
243
303
|
return __awaiter(this, void 0, void 0, function () {
|
|
244
304
|
var params, data;
|
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>;
|
|
@@ -57,6 +57,12 @@ export declare class Transaction {
|
|
|
57
57
|
getInOutCollection(languageCode: string): Promise<DataServiceResponseData>;
|
|
58
58
|
getTextTypes(languageCode: string): Promise<DataServiceResponseData>;
|
|
59
59
|
getStandardTexts(languageCode: string): Promise<DataServiceResponseData>;
|
|
60
|
+
getBranches(branchNr?: string): Promise<DataServiceResponseData>;
|
|
61
|
+
getSalesPersons(date?: Date): Promise<DataServiceResponseData>;
|
|
62
|
+
getTags(category: number): Promise<DataServiceResponseData>;
|
|
63
|
+
getOnHoldCodes(): Promise<DataServiceResponseData>;
|
|
64
|
+
getWarehouses(branchNr?: string): Promise<DataServiceResponseData>;
|
|
65
|
+
getHistoricStateValues(): DataServiceResponseData;
|
|
60
66
|
getTransactionArticleWarehouses(goodId: number, branchNr?: string): Promise<DataServiceResponseData>;
|
|
61
67
|
createTransaction(kind: TransactionKind, branchNr: string): Promise<DataServiceResponseData>;
|
|
62
68
|
getTransactionByNrAndKind(kind: TransactionKind, transactionNo: number): Promise<DataServiceResponseData>;
|
|
@@ -86,7 +92,7 @@ export declare class Transaction {
|
|
|
86
92
|
changeTransactionLineReference(request: ChangeLineReferenceRequest): Promise<DataServiceResponseData>;
|
|
87
93
|
changeTransactionLineCollectionCode(request: ChangeLineCollectionCodeRequest): Promise<DataServiceResponseData>;
|
|
88
94
|
resolvePendingLineReason(pendingLineValues: ResolveLinePendingReasonRequest): Promise<DataServiceResponseData>;
|
|
89
|
-
searchTransactions(request:
|
|
95
|
+
searchTransactions(request: TransactionSearchViewRequest): Promise<DataServiceResponseData>;
|
|
90
96
|
getCustomerFullObject(relationNo: number): Promise<DataServiceResponseData>;
|
|
91
97
|
getRelationNumber(relationId: any): Promise<DataServiceResponseData>;
|
|
92
98
|
getSequenceValue(sequenceName: SequenceName, noSequence?: boolean): Promise<DataServiceResponseData>;
|