@colijnit/transactionapi 1.1.18 → 1.1.21
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 +31 -26
- 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/get-article-price-request.d.ts +1 -1
- 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-info.bo.d.ts +11 -4
- package/build/model/transaction-info.bo.js +4 -0
- package/build/model/transaction-line-info.bo.d.ts +3 -3
- package/build/model/transaction-line-info.bo.js +3 -3
- package/build/model/transaction-search-view.bo.d.ts +4 -4
- package/build/model/transaction-search-view.bo.js +5 -5
- package/build/model/warehouse.bo.d.ts +15 -0
- package/build/model/warehouse.bo.js +71 -0
- package/build/transaction-auth.d.ts +30 -25
- package/build/transaction-auth.js +50 -18
- package/build/transaction-public.d.ts +30 -25
- package/build/transaction-public.js +68 -8
- package/build/transaction.d.ts +6 -0
- package/build/transaction.js +25 -0
- package/build/transaction.unit.test.js +78 -6
- package/package.json +2 -2
- package/build/enum/refcode/transaction-kind.d.ts +0 -13
- package/build/enum/refcode/transaction-kind.js +0 -14
|
@@ -7,11 +7,13 @@ export declare enum MasterDataObjectName {
|
|
|
7
7
|
DeliveryMethod = "DeliveryMethod",
|
|
8
8
|
DeliveryOption = "DeliveryOption",
|
|
9
9
|
MarketingCode = "MarketingCode",
|
|
10
|
+
OnHoldCode = "OnHoldCode",
|
|
10
11
|
PrivacySettingDTO = "PrivacySettingDTO",
|
|
11
12
|
CoDomainValue = "CoDomainValue",
|
|
12
13
|
WareHouse = "WareHouse",
|
|
13
14
|
CustomerGroup = "CustomerGroup",
|
|
14
15
|
CoMultipleValue = "CoMultipleValue",
|
|
15
16
|
PriceList = "PriceList",
|
|
17
|
+
SalesPerson = "SalesPerson",
|
|
16
18
|
Vat = "Vat"
|
|
17
19
|
}
|
|
@@ -8,11 +8,13 @@ export var MasterDataObjectName;
|
|
|
8
8
|
MasterDataObjectName["DeliveryMethod"] = "DeliveryMethod";
|
|
9
9
|
MasterDataObjectName["DeliveryOption"] = "DeliveryOption";
|
|
10
10
|
MasterDataObjectName["MarketingCode"] = "MarketingCode";
|
|
11
|
+
MasterDataObjectName["OnHoldCode"] = "OnHoldCode";
|
|
11
12
|
MasterDataObjectName["PrivacySettingDTO"] = "PrivacySettingDTO";
|
|
12
13
|
MasterDataObjectName["CoDomainValue"] = "CoDomainValue";
|
|
13
14
|
MasterDataObjectName["WareHouse"] = "WareHouse";
|
|
14
15
|
MasterDataObjectName["CustomerGroup"] = "CustomerGroup";
|
|
15
16
|
MasterDataObjectName["CoMultipleValue"] = "CoMultipleValue";
|
|
16
17
|
MasterDataObjectName["PriceList"] = "PriceList";
|
|
18
|
+
MasterDataObjectName["SalesPerson"] = "SalesPerson";
|
|
17
19
|
MasterDataObjectName["Vat"] = "Vat";
|
|
18
20
|
})(MasterDataObjectName || (MasterDataObjectName = {}));
|
|
@@ -28,14 +28,19 @@ export declare enum PublicServiceMethod {
|
|
|
28
28
|
GetSingleImage = "getSingleImage",
|
|
29
29
|
GetColors = "getColors",
|
|
30
30
|
GetCountries = "getCountries",
|
|
31
|
+
GetOnHoldCodes = "getOnHoldCodes",
|
|
31
32
|
GetPrivacySettings = "getPrivacySettings",
|
|
32
33
|
GetMarketingCodes = "getMarketingCodes",
|
|
34
|
+
GetSalesPersons = "getSalesPersons",
|
|
35
|
+
GetTags = "getTags",
|
|
33
36
|
GetTransactionByNrAndKind = "getTransactionByNrAndKind",
|
|
34
37
|
GetTransactionById = "getTransactionId",
|
|
35
38
|
GetArticleBoundTextLinesOfArticleLine = "getArticleBoundTextLinesOfArticleLine",
|
|
39
|
+
GetBranches = "getBranches",
|
|
36
40
|
GetDomainValues = "getDomainValue",
|
|
37
41
|
GetMultipleDomainValues = "getMultipleDomainValue",
|
|
38
42
|
GetTransactionArticleWarehouses = "getTransactionArticleWarehouses",
|
|
43
|
+
GetWarehouses = "getWarehouses",
|
|
39
44
|
CreateTransaction = "createTransaction",
|
|
40
45
|
SaveTransaction = "saveTransaction",
|
|
41
46
|
SetTransactionDeliveryOptions = "setTransactionDeliveryOptions",
|
|
@@ -29,14 +29,19 @@ export var PublicServiceMethod;
|
|
|
29
29
|
PublicServiceMethod["GetSingleImage"] = "getSingleImage";
|
|
30
30
|
PublicServiceMethod["GetColors"] = "getColors";
|
|
31
31
|
PublicServiceMethod["GetCountries"] = "getCountries";
|
|
32
|
+
PublicServiceMethod["GetOnHoldCodes"] = "getOnHoldCodes";
|
|
32
33
|
PublicServiceMethod["GetPrivacySettings"] = "getPrivacySettings";
|
|
33
34
|
PublicServiceMethod["GetMarketingCodes"] = "getMarketingCodes";
|
|
35
|
+
PublicServiceMethod["GetSalesPersons"] = "getSalesPersons";
|
|
36
|
+
PublicServiceMethod["GetTags"] = "getTags";
|
|
34
37
|
PublicServiceMethod["GetTransactionByNrAndKind"] = "getTransactionByNrAndKind";
|
|
35
38
|
PublicServiceMethod["GetTransactionById"] = "getTransactionId";
|
|
36
39
|
PublicServiceMethod["GetArticleBoundTextLinesOfArticleLine"] = "getArticleBoundTextLinesOfArticleLine";
|
|
40
|
+
PublicServiceMethod["GetBranches"] = "getBranches";
|
|
37
41
|
PublicServiceMethod["GetDomainValues"] = "getDomainValue";
|
|
38
42
|
PublicServiceMethod["GetMultipleDomainValues"] = "getMultipleDomainValue";
|
|
39
43
|
PublicServiceMethod["GetTransactionArticleWarehouses"] = "getTransactionArticleWarehouses";
|
|
44
|
+
PublicServiceMethod["GetWarehouses"] = "getWarehouses";
|
|
40
45
|
PublicServiceMethod["CreateTransaction"] = "createTransaction";
|
|
41
46
|
PublicServiceMethod["SaveTransaction"] = "saveTransaction";
|
|
42
47
|
PublicServiceMethod["SetTransactionDeliveryOptions"] = "setTransactionDeliveryOptions";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export var RelationObjectName;
|
|
2
2
|
(function (RelationObjectName) {
|
|
3
|
+
RelationObjectName["BranchLov"] = "BranchLov";
|
|
3
4
|
RelationObjectName["CustomerFullObject"] = "CustomerFullObject";
|
|
4
5
|
RelationObjectName["GetRelationNumber"] = "GetRelationNumber";
|
|
5
6
|
})(RelationObjectName || (RelationObjectName = {}));
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { Subject } 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 { Connector } from
|
|
10
|
-
import { DataServiceResponseData } from
|
|
11
|
-
import { ChangeLineSequenceRequest } from
|
|
12
|
-
import { ChangeLineQuantityRequest } from
|
|
13
|
-
import { ChangeLineCommissionCodeRequest } from
|
|
14
|
-
import { ChangeLineWarehouseRequest } from
|
|
15
|
-
import { ChangeLinePriceRequest } from
|
|
16
|
-
import { ChangeLinePriceListRequest } from
|
|
17
|
-
import { ChangeLineVatRequest } from
|
|
18
|
-
import { ChangeLineDiscountRequest } from
|
|
19
|
-
import { ChangeLineDeliveryMethodRequest } from
|
|
20
|
-
import { ChangeLineDeliveryDateRequest } from
|
|
21
|
-
import { ChangeLineAssemblyTimeRequest } from
|
|
22
|
-
import { ChangeLineEditTimeRequest } from
|
|
23
|
-
import { ChangeLineSupplierArticleNumberRequest } from
|
|
24
|
-
import { ChangeLineReferenceRequest } from
|
|
25
|
-
import { ChangeLineCollectionCodeRequest } from
|
|
26
|
-
import { TransactionSearchViewRequest } from
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
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 { Connector } from '@colijnit/ioneconnector/build/connector';
|
|
10
|
+
import { DataServiceResponseData } from './model/data-service-response-data';
|
|
11
|
+
import { ChangeLineSequenceRequest } from './model/change-line-sequence-request';
|
|
12
|
+
import { ChangeLineQuantityRequest } from './model/change-line-quantity-request';
|
|
13
|
+
import { ChangeLineCommissionCodeRequest } from './model/change-line-commission-code-request';
|
|
14
|
+
import { ChangeLineWarehouseRequest } from './model/change-line-warehouse-request';
|
|
15
|
+
import { ChangeLinePriceRequest } from './model/change-line-price-request';
|
|
16
|
+
import { ChangeLinePriceListRequest } from './model/change-line-price-list-request';
|
|
17
|
+
import { ChangeLineVatRequest } from './model/change-line-vat-request';
|
|
18
|
+
import { ChangeLineDiscountRequest } from './model/change-line-discount-request';
|
|
19
|
+
import { ChangeLineDeliveryMethodRequest } from './model/change-line-delivery-method-request';
|
|
20
|
+
import { ChangeLineDeliveryDateRequest } from './model/change-line-delivery-date-request';
|
|
21
|
+
import { ChangeLineAssemblyTimeRequest } from './model/change-line-assembly-time-request';
|
|
22
|
+
import { ChangeLineEditTimeRequest } from './model/change-line-edit-time-request';
|
|
23
|
+
import { ChangeLineSupplierArticleNumberRequest } from './model/change-line-supplier-article-number-request';
|
|
24
|
+
import { ChangeLineReferenceRequest } from './model/change-line-reference-request';
|
|
25
|
+
import { ChangeLineCollectionCodeRequest } from './model/change-line-collection-code-request';
|
|
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>;
|
|
@@ -47,6 +47,11 @@ export declare abstract class IoneApiTransaction {
|
|
|
47
47
|
abstract getInOutCollection(languageCode: string): Promise<DataServiceResponseData>;
|
|
48
48
|
abstract getTextTypes(languageCode: string): Promise<DataServiceResponseData>;
|
|
49
49
|
abstract getStandardTexts(languageCode: any): Promise<DataServiceResponseData>;
|
|
50
|
+
abstract getBranches(branchNr: string): Promise<DataServiceResponseData>;
|
|
51
|
+
abstract getSalesPersons(date: Date): Promise<DataServiceResponseData>;
|
|
52
|
+
abstract getTags(category: number): Promise<DataServiceResponseData>;
|
|
53
|
+
abstract getOnHoldCodes(): Promise<DataServiceResponseData>;
|
|
54
|
+
abstract getWarehouses(branchNr: string): Promise<DataServiceResponseData>;
|
|
50
55
|
abstract getTransactionArticleWarehouses(goodId: number, branchNr?: string): Promise<DataServiceResponseData>;
|
|
51
56
|
abstract createTransaction(kind: TransactionKind, branchNr: string): Promise<DataServiceResponseData>;
|
|
52
57
|
abstract getTransactionByNrAndKind(kind: TransactionKind, transactionNo: number): Promise<DataServiceResponseData>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Subject } from
|
|
2
|
-
import { EndPoint } from
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import { EndPoint } from '@colijnit/ioneconnector/build/enum/end-point.enum';
|
|
3
3
|
var IoneApiTransaction = (function () {
|
|
4
4
|
function IoneApiTransaction() {
|
|
5
5
|
this.showLoader = new Subject();
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
import { BusinessObject } from './business-object';
|
|
15
|
+
var BranchLov = (function (_super) {
|
|
16
|
+
__extends(BranchLov, _super);
|
|
17
|
+
function BranchLov() {
|
|
18
|
+
return _super.call(this) || this;
|
|
19
|
+
}
|
|
20
|
+
BranchLov.prototype.getId = function () {
|
|
21
|
+
return this.branchNo;
|
|
22
|
+
};
|
|
23
|
+
return BranchLov;
|
|
24
|
+
}(BusinessObject));
|
|
25
|
+
export { BranchLov };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PriceListType } from "../enum/refcode/price-list-type.enum";
|
|
2
2
|
import { PriceType } from "../enum/refcode/price-type.enum";
|
|
3
|
-
import { TransactionKind } from "../enum/
|
|
3
|
+
import { TransactionKind } from "../enum/transaction-kind.enum";
|
|
4
4
|
export declare class GetArticlePriceRequest {
|
|
5
5
|
goodId: number;
|
|
6
6
|
relationId?: number;
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
import { BusinessObjectData } from '../factory/decorators/business-object-data.decorator';
|
|
21
|
+
import { DataMapping } from '../enum/data-mapping.enum';
|
|
22
|
+
import { BusinessObject } from './business-object';
|
|
23
|
+
var OnHoldCode = (function (_super) {
|
|
24
|
+
__extends(OnHoldCode, _super);
|
|
25
|
+
function OnHoldCode() {
|
|
26
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
27
|
+
}
|
|
28
|
+
OnHoldCode.prototype.getId = function () {
|
|
29
|
+
return this.onHoldCode;
|
|
30
|
+
};
|
|
31
|
+
OnHoldCode = __decorate([
|
|
32
|
+
BusinessObjectData({
|
|
33
|
+
name: "OnHoldCode",
|
|
34
|
+
mapping: DataMapping.Simplebasedata,
|
|
35
|
+
label: "ON_HOLD_CODE",
|
|
36
|
+
codeField: "code",
|
|
37
|
+
descriptionField: "description"
|
|
38
|
+
})
|
|
39
|
+
], OnHoldCode);
|
|
40
|
+
return OnHoldCode;
|
|
41
|
+
}(BusinessObject));
|
|
42
|
+
export { OnHoldCode };
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
import { BusinessObjectData } from '../factory/decorators/business-object-data.decorator';
|
|
21
|
+
import { DataMapping } from '../enum/data-mapping.enum';
|
|
22
|
+
import { BusinessObject } from './business-object';
|
|
23
|
+
var SalesPerson = (function (_super) {
|
|
24
|
+
__extends(SalesPerson, _super);
|
|
25
|
+
function SalesPerson() {
|
|
26
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
27
|
+
}
|
|
28
|
+
SalesPerson.prototype.getId = function () {
|
|
29
|
+
return (this.relationId);
|
|
30
|
+
};
|
|
31
|
+
SalesPerson = __decorate([
|
|
32
|
+
BusinessObjectData({
|
|
33
|
+
mapping: DataMapping.Simplebasedata,
|
|
34
|
+
name: "SalesPerson",
|
|
35
|
+
label: "SALES_PERSON",
|
|
36
|
+
labelPlural: "SALES_PERSONS",
|
|
37
|
+
codeField: "employeeNo",
|
|
38
|
+
descriptionField: "name"
|
|
39
|
+
})
|
|
40
|
+
], SalesPerson);
|
|
41
|
+
return SalesPerson;
|
|
42
|
+
}(BusinessObject));
|
|
43
|
+
export { SalesPerson };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BusinessObject } from "./business-object";
|
|
2
|
-
import { TransactionKind } from "../enum/
|
|
2
|
+
import { TransactionKind } from "../enum/transaction-kind.enum";
|
|
3
3
|
import { RelationSmallObject } from "./relation-small-object.bo";
|
|
4
4
|
import { PriceType } from "../enum/refcode/price-type.enum";
|
|
5
|
-
import { Address } from "./address.bo";
|
|
6
5
|
export declare class TransactionInfo extends BusinessObject {
|
|
7
6
|
uuid: string;
|
|
7
|
+
id: number;
|
|
8
8
|
transactionDate: Date;
|
|
9
9
|
transactionKind: TransactionKind;
|
|
10
10
|
transactionNr: number;
|
|
@@ -15,14 +15,21 @@ export declare class TransactionInfo extends BusinessObject {
|
|
|
15
15
|
deliveryMethod: string;
|
|
16
16
|
deliveryDate: Date;
|
|
17
17
|
allowPartialDelivery: boolean;
|
|
18
|
+
deliveryDateDefinitive: boolean;
|
|
19
|
+
transactionDefinitive: boolean;
|
|
20
|
+
printDiscount: boolean;
|
|
21
|
+
releaseTransaction: boolean;
|
|
22
|
+
dontSendOrderForms: boolean;
|
|
18
23
|
preferredDeliveryDate: Date;
|
|
19
24
|
preferredDeliveryDate2: string;
|
|
20
25
|
remark: string;
|
|
21
26
|
marketingCode: string;
|
|
22
27
|
relationReference: string;
|
|
23
28
|
ownReference: string;
|
|
24
|
-
|
|
25
|
-
|
|
29
|
+
admCoordinator: number;
|
|
30
|
+
transactionAddress: number;
|
|
31
|
+
invoiceAddress: number;
|
|
32
|
+
relationTransactionDate: Date;
|
|
26
33
|
messages: string[];
|
|
27
34
|
deliveryOptions: string[];
|
|
28
35
|
canPlanDelivery: boolean;
|
|
@@ -61,6 +61,10 @@ var TransactionInfo = (function (_super) {
|
|
|
61
61
|
DateField(),
|
|
62
62
|
__metadata("design:type", Date)
|
|
63
63
|
], TransactionInfo.prototype, "preferredDeliveryDate", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
DateField(),
|
|
66
|
+
__metadata("design:type", Date)
|
|
67
|
+
], TransactionInfo.prototype, "relationTransactionDate", void 0);
|
|
64
68
|
__decorate([
|
|
65
69
|
NoDbField(),
|
|
66
70
|
__metadata("design:type", Boolean)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BusinessObject } from
|
|
2
|
-
import { TransactionLineType } from
|
|
3
|
-
import { TextKindType } from
|
|
1
|
+
import { BusinessObject } from './business-object';
|
|
2
|
+
import { TransactionLineType } from '../enum/transaction-line-type.enum';
|
|
3
|
+
import { TextKindType } from '../enum/text-kind-type.enum';
|
|
4
4
|
export declare class TransactionLineInfo extends BusinessObject {
|
|
5
5
|
uuid: string;
|
|
6
6
|
lineNr: number;
|
|
@@ -20,9 +20,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
20
20
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
21
21
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22
22
|
};
|
|
23
|
-
import { BusinessObject } from
|
|
24
|
-
import { NoDbField } from
|
|
25
|
-
import { TransactionLineType } from
|
|
23
|
+
import { BusinessObject } from './business-object';
|
|
24
|
+
import { NoDbField } from '../factory/decorators/no-db-field.decorator';
|
|
25
|
+
import { TransactionLineType } from '../enum/transaction-line-type.enum';
|
|
26
26
|
var TransactionLineInfo = (function (_super) {
|
|
27
27
|
__extends(TransactionLineInfo, _super);
|
|
28
28
|
function TransactionLineInfo() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BusinessObject } from
|
|
2
|
-
import { TransactionKind } from
|
|
3
|
-
import { PriorityType } from
|
|
4
|
-
import { CoDocument } from
|
|
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
5
|
export declare class TransactionSearchView extends BusinessObject {
|
|
6
6
|
transId: number;
|
|
7
7
|
transType: string;
|
|
@@ -20,11 +20,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
20
20
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
21
21
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22
22
|
};
|
|
23
|
-
import { BusinessObject } from
|
|
24
|
-
import { DateField } from
|
|
25
|
-
import { BooleanText } from
|
|
26
|
-
import { PriorityType } from
|
|
27
|
-
import { CoDocument } from
|
|
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
28
|
import { ComplexField } from '../factory/decorators/complex-field.decorator';
|
|
29
29
|
var TransactionSearchView = (function (_super) {
|
|
30
30
|
__extends(TransactionSearchView, _super);
|
|
@@ -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,28 +1,28 @@
|
|
|
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 { TransactionSearchViewRequest } from
|
|
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
28
|
searchTransactions(request: TransactionSearchViewRequest): 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,28 +1,28 @@
|
|
|
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 { TransactionSearchViewRequest } from
|
|
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
28
|
searchTransactions(request: TransactionSearchViewRequest): 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
|
@@ -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>;
|
package/build/transaction.js
CHANGED
|
@@ -38,6 +38,8 @@ import { TransactionAuth } from './transaction-auth';
|
|
|
38
38
|
import { Subject } from 'rxjs';
|
|
39
39
|
import { TransactionPublic } from './transaction-public';
|
|
40
40
|
import { Connector } from '@colijnit/ioneconnector/build/connector';
|
|
41
|
+
import { DataServiceResponseData } from './model/data-service-response-data';
|
|
42
|
+
import { CodeDescription } from './model/code-description';
|
|
41
43
|
var Transaction = (function () {
|
|
42
44
|
function Transaction(options) {
|
|
43
45
|
var _this = this;
|
|
@@ -109,6 +111,29 @@ var Transaction = (function () {
|
|
|
109
111
|
Transaction.prototype.getStandardTexts = function (languageCode) {
|
|
110
112
|
return this.transaction.getStandardTexts(languageCode);
|
|
111
113
|
};
|
|
114
|
+
Transaction.prototype.getBranches = function (branchNr) {
|
|
115
|
+
return this.transaction.getBranches(branchNr);
|
|
116
|
+
};
|
|
117
|
+
Transaction.prototype.getSalesPersons = function (date) {
|
|
118
|
+
return this.transaction.getSalesPersons(date);
|
|
119
|
+
};
|
|
120
|
+
Transaction.prototype.getTags = function (category) {
|
|
121
|
+
return this.transaction.getTags(category);
|
|
122
|
+
};
|
|
123
|
+
Transaction.prototype.getOnHoldCodes = function () {
|
|
124
|
+
return this.transaction.getOnHoldCodes();
|
|
125
|
+
};
|
|
126
|
+
Transaction.prototype.getWarehouses = function (branchNr) {
|
|
127
|
+
return this.transaction.getWarehouses(branchNr);
|
|
128
|
+
};
|
|
129
|
+
Transaction.prototype.getHistoricStateValues = function () {
|
|
130
|
+
var response = new DataServiceResponseData();
|
|
131
|
+
var values = [];
|
|
132
|
+
values.push(new CodeDescription(1, "NOTHING"), new CodeDescription(2, "PARTLY"), new CodeDescription(3, "FULLY"));
|
|
133
|
+
response.validationResult.success = true;
|
|
134
|
+
response.resultObjects = values;
|
|
135
|
+
return response;
|
|
136
|
+
};
|
|
112
137
|
Transaction.prototype.getTransactionArticleWarehouses = function (goodId, branchNr) {
|
|
113
138
|
return this.transaction.getTransactionArticleWarehouses(goodId, branchNr);
|
|
114
139
|
};
|
|
@@ -34,11 +34,11 @@ 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 { Transaction } from
|
|
38
|
-
import { RelationRequest } from
|
|
39
|
-
import { TransactionKind } from
|
|
40
|
-
import { SequenceName } from
|
|
41
|
-
import { TransactionSearchViewRequest } from
|
|
37
|
+
import { Transaction } from './transaction';
|
|
38
|
+
import { RelationRequest } from './model/relation-request';
|
|
39
|
+
import { TransactionKind } from './enum/transaction-kind.enum';
|
|
40
|
+
import { SequenceName } from './enum/sequence-name.enum';
|
|
41
|
+
import { TransactionSearchViewRequest } from './model/transaction-search-view-request';
|
|
42
42
|
var options = {
|
|
43
43
|
url: 'http',
|
|
44
44
|
ajaxUrl: 'http'
|
|
@@ -116,7 +116,7 @@ describe("TransactionAPI", function () {
|
|
|
116
116
|
var result;
|
|
117
117
|
return __generator(this, function (_a) {
|
|
118
118
|
switch (_a.label) {
|
|
119
|
-
case 0: return [4, transaction.getCommissionCodes("
|
|
119
|
+
case 0: return [4, transaction.getCommissionCodes("EN")];
|
|
120
120
|
case 1:
|
|
121
121
|
result = _a.sent();
|
|
122
122
|
expect(result.resultObjects.length).toBe(3);
|
|
@@ -319,4 +319,76 @@ describe("TransactionAPI", function () {
|
|
|
319
319
|
}
|
|
320
320
|
});
|
|
321
321
|
}); });
|
|
322
|
+
it('getBranches', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
323
|
+
var result;
|
|
324
|
+
return __generator(this, function (_a) {
|
|
325
|
+
switch (_a.label) {
|
|
326
|
+
case 0: return [4, transaction.getBranches()];
|
|
327
|
+
case 1:
|
|
328
|
+
result = _a.sent();
|
|
329
|
+
expect(result.resultObjects.length).toBeGreaterThan(0);
|
|
330
|
+
return [2];
|
|
331
|
+
}
|
|
332
|
+
});
|
|
333
|
+
}); });
|
|
334
|
+
it('getSalesPersons', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
335
|
+
var result;
|
|
336
|
+
return __generator(this, function (_a) {
|
|
337
|
+
switch (_a.label) {
|
|
338
|
+
case 0: return [4, transaction.getSalesPersons(new Date())];
|
|
339
|
+
case 1:
|
|
340
|
+
result = _a.sent();
|
|
341
|
+
expect(result.resultObjects.length).toBeGreaterThan(0);
|
|
342
|
+
return [2];
|
|
343
|
+
}
|
|
344
|
+
});
|
|
345
|
+
}); });
|
|
346
|
+
it('getTags', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
347
|
+
var result;
|
|
348
|
+
return __generator(this, function (_a) {
|
|
349
|
+
switch (_a.label) {
|
|
350
|
+
case 0: return [4, transaction.getTags(2208)];
|
|
351
|
+
case 1:
|
|
352
|
+
result = _a.sent();
|
|
353
|
+
expect(result.resultObjects.length).toBeGreaterThan(0);
|
|
354
|
+
return [2];
|
|
355
|
+
}
|
|
356
|
+
});
|
|
357
|
+
}); });
|
|
358
|
+
it('getHistoricStateValues', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
359
|
+
var result;
|
|
360
|
+
return __generator(this, function (_a) {
|
|
361
|
+
switch (_a.label) {
|
|
362
|
+
case 0: return [4, transaction.getHistoricStateValues()];
|
|
363
|
+
case 1:
|
|
364
|
+
result = _a.sent();
|
|
365
|
+
expect(result.resultObjects.length).toBeGreaterThan(0);
|
|
366
|
+
return [2];
|
|
367
|
+
}
|
|
368
|
+
});
|
|
369
|
+
}); });
|
|
370
|
+
it('getOnHoldCodes', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
371
|
+
var result;
|
|
372
|
+
return __generator(this, function (_a) {
|
|
373
|
+
switch (_a.label) {
|
|
374
|
+
case 0: return [4, transaction.getOnHoldCodes()];
|
|
375
|
+
case 1:
|
|
376
|
+
result = _a.sent();
|
|
377
|
+
expect(result.resultObjects.length).toBeGreaterThan(0);
|
|
378
|
+
return [2];
|
|
379
|
+
}
|
|
380
|
+
});
|
|
381
|
+
}); });
|
|
382
|
+
it('getWarehouses', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
383
|
+
var result;
|
|
384
|
+
return __generator(this, function (_a) {
|
|
385
|
+
switch (_a.label) {
|
|
386
|
+
case 0: return [4, transaction.getWarehouses('12')];
|
|
387
|
+
case 1:
|
|
388
|
+
result = _a.sent();
|
|
389
|
+
expect(result.resultObjects.length).toBeGreaterThan(0);
|
|
390
|
+
return [2];
|
|
391
|
+
}
|
|
392
|
+
});
|
|
393
|
+
}); });
|
|
322
394
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/transactionapi",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.21",
|
|
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.7"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/jest": "^24.0.13",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare enum TransactionKind {
|
|
2
|
-
PurchaseConfirmation = "B",
|
|
3
|
-
SalesInvoice = "F",
|
|
4
|
-
PurchaseInvoice = "G",
|
|
5
|
-
PurchaseOrder = "I",
|
|
6
|
-
CashDesk = "K",
|
|
7
|
-
InternalDelivery = "L",
|
|
8
|
-
SalesQuotation = "O",
|
|
9
|
-
PurchaseQuotation = "P",
|
|
10
|
-
ServiceOrder = "S",
|
|
11
|
-
PeriodicSalesOrder = "T",
|
|
12
|
-
SalesOrder = "V"
|
|
13
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export var TransactionKind;
|
|
2
|
-
(function (TransactionKind) {
|
|
3
|
-
TransactionKind["PurchaseConfirmation"] = "B";
|
|
4
|
-
TransactionKind["SalesInvoice"] = "F";
|
|
5
|
-
TransactionKind["PurchaseInvoice"] = "G";
|
|
6
|
-
TransactionKind["PurchaseOrder"] = "I";
|
|
7
|
-
TransactionKind["CashDesk"] = "K";
|
|
8
|
-
TransactionKind["InternalDelivery"] = "L";
|
|
9
|
-
TransactionKind["SalesQuotation"] = "O";
|
|
10
|
-
TransactionKind["PurchaseQuotation"] = "P";
|
|
11
|
-
TransactionKind["ServiceOrder"] = "S";
|
|
12
|
-
TransactionKind["PeriodicSalesOrder"] = "T";
|
|
13
|
-
TransactionKind["SalesOrder"] = "V";
|
|
14
|
-
})(TransactionKind || (TransactionKind = {}));
|