@colijnit/mainapi 1.0.15 → 1.0.16
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/domain-name.enum.d.ts +3 -1
- package/build/enum/domain-name.enum.js +2 -0
- package/build/enum/master-data-object-name.enum.d.ts +4 -1
- package/build/enum/master-data-object-name.enum.js +3 -0
- package/build/enum/module-name.enum.d.ts +2 -1
- package/build/enum/module-name.enum.js +1 -0
- package/build/enum/public-service-method.d.ts +2 -0
- package/build/enum/public-service-method.js +2 -0
- package/build/main-api-connection.d.ts +2 -0
- package/build/main-api.d.ts +2 -0
- package/build/main-api.js +6 -0
- package/build/main-api.unit.test.js +8 -0
- package/build/main-auth.d.ts +2 -0
- package/build/main-auth.js +10 -0
- package/build/main-public.d.ts +2 -0
- package/build/main-public.js +8 -0
- package/build/model/category.bo.d.ts +12 -0
- package/build/model/category.bo.js +16 -0
- package/build/model/co-rv-domain-value.bo.d.ts +10 -0
- package/build/model/co-rv-domain-value.bo.js +20 -0
- package/package.json +1 -1
|
@@ -56,5 +56,7 @@ export declare enum DomainName {
|
|
|
56
56
|
PinTerminal = "DOM_PINTERMINALS",
|
|
57
57
|
ValidityUnit = "DOM_GELDIGHEIDSDUUR_TYPES",
|
|
58
58
|
VoucherType = "DOM_VOUCHERTYPES",
|
|
59
|
-
TextType = "TEKSTSOORT"
|
|
59
|
+
TextType = "TEKSTSOORT",
|
|
60
|
+
ArtPublication = "ART_PUBLICATIE",
|
|
61
|
+
ArtPublicationSales = "ART_PUBLICATIE_VERK"
|
|
60
62
|
}
|
|
@@ -61,4 +61,6 @@ var DomainName;
|
|
|
61
61
|
DomainName["ValidityUnit"] = "DOM_GELDIGHEIDSDUUR_TYPES";
|
|
62
62
|
DomainName["VoucherType"] = "DOM_VOUCHERTYPES";
|
|
63
63
|
DomainName["TextType"] = "TEKSTSOORT";
|
|
64
|
+
DomainName["ArtPublication"] = "ART_PUBLICATIE";
|
|
65
|
+
DomainName["ArtPublicationSales"] = "ART_PUBLICATIE_VERK";
|
|
64
66
|
})(DomainName = exports.DomainName || (exports.DomainName = {}));
|
|
@@ -10,11 +10,14 @@ export declare enum MasterDataObjectName {
|
|
|
10
10
|
OnHoldCode = "OnHoldCode",
|
|
11
11
|
PrivacySettingDTO = "PrivacySettingDTO",
|
|
12
12
|
CoDomainValue = "CoDomainValue",
|
|
13
|
+
CoRVDomainValue = "CoRVDomainValue",
|
|
14
|
+
Category = "category",
|
|
13
15
|
WareHouse = "WareHouse",
|
|
14
16
|
CustomerGroup = "CustomerGroup",
|
|
15
17
|
CoMultipleValue = "CoMultipleValue",
|
|
16
18
|
PaymentMethod = "PaymentMethod",
|
|
17
19
|
PriceList = "PriceList",
|
|
18
20
|
SalesPerson = "SalesPerson",
|
|
19
|
-
Vat = "Vat"
|
|
21
|
+
Vat = "Vat",
|
|
22
|
+
articleCategory = "ArticleCategory"
|
|
20
23
|
}
|
|
@@ -14,6 +14,8 @@ var MasterDataObjectName;
|
|
|
14
14
|
MasterDataObjectName["OnHoldCode"] = "OnHoldCode";
|
|
15
15
|
MasterDataObjectName["PrivacySettingDTO"] = "PrivacySettingDTO";
|
|
16
16
|
MasterDataObjectName["CoDomainValue"] = "CoDomainValue";
|
|
17
|
+
MasterDataObjectName["CoRVDomainValue"] = "CoRVDomainValue";
|
|
18
|
+
MasterDataObjectName["Category"] = "category";
|
|
17
19
|
MasterDataObjectName["WareHouse"] = "WareHouse";
|
|
18
20
|
MasterDataObjectName["CustomerGroup"] = "CustomerGroup";
|
|
19
21
|
MasterDataObjectName["CoMultipleValue"] = "CoMultipleValue";
|
|
@@ -21,4 +23,5 @@ var MasterDataObjectName;
|
|
|
21
23
|
MasterDataObjectName["PriceList"] = "PriceList";
|
|
22
24
|
MasterDataObjectName["SalesPerson"] = "SalesPerson";
|
|
23
25
|
MasterDataObjectName["Vat"] = "Vat";
|
|
26
|
+
MasterDataObjectName["articleCategory"] = "ArticleCategory";
|
|
24
27
|
})(MasterDataObjectName = exports.MasterDataObjectName || (exports.MasterDataObjectName = {}));
|
|
@@ -9,6 +9,8 @@ export declare enum PublicServiceMethod {
|
|
|
9
9
|
GetMarketingCodes = "getMarketingCodes",
|
|
10
10
|
GetBranches = "getBranches",
|
|
11
11
|
GetDomainValues = "getDomainValue",
|
|
12
|
+
GetRVDomainCollection = "getRVDomainCollection",
|
|
13
|
+
GetCategories = "getCategories",
|
|
12
14
|
GetMultipleDomainValues = "getMultipleDomainValue",
|
|
13
15
|
GetWarehouses = "getWarehouses",
|
|
14
16
|
GetSequenceValue = "getSequenceValue",
|
|
@@ -13,6 +13,8 @@ var PublicServiceMethod;
|
|
|
13
13
|
PublicServiceMethod["GetMarketingCodes"] = "getMarketingCodes";
|
|
14
14
|
PublicServiceMethod["GetBranches"] = "getBranches";
|
|
15
15
|
PublicServiceMethod["GetDomainValues"] = "getDomainValue";
|
|
16
|
+
PublicServiceMethod["GetRVDomainCollection"] = "getRVDomainCollection";
|
|
17
|
+
PublicServiceMethod["GetCategories"] = "getCategories";
|
|
16
18
|
PublicServiceMethod["GetMultipleDomainValues"] = "getMultipleDomainValue";
|
|
17
19
|
PublicServiceMethod["GetWarehouses"] = "getWarehouses";
|
|
18
20
|
PublicServiceMethod["GetSequenceValue"] = "getSequenceValue";
|
|
@@ -23,6 +23,8 @@ export declare abstract class MainApiConnection {
|
|
|
23
23
|
abstract getObjectConfigurations(screenCfgModule: string, params: string | string[], insertMode: boolean): Promise<DataServiceResponseData>;
|
|
24
24
|
abstract getStoreGroups(): Promise<DataServiceResponseData>;
|
|
25
25
|
abstract getDomainCollection(languageCode: string, domainName: DomainName): Promise<DataServiceResponseData>;
|
|
26
|
+
abstract getRVDomainCollection(languageCode: string, domainName: DomainName): Promise<DataServiceResponseData>;
|
|
27
|
+
abstract getCategories(): Promise<DataServiceResponseData>;
|
|
26
28
|
abstract getPriceLists(code?: string): Promise<DataServiceResponseData>;
|
|
27
29
|
protected endPoint: string;
|
|
28
30
|
}
|
package/build/main-api.d.ts
CHANGED
|
@@ -35,6 +35,8 @@ export declare class MainApi {
|
|
|
35
35
|
getStoreGroups(): Promise<DataServiceResponseData>;
|
|
36
36
|
getInOutCollection(languageCode: string): Promise<DataServiceResponseData>;
|
|
37
37
|
getDomainCollection(languageCode: string, domainName: DomainName): Promise<DataServiceResponseData>;
|
|
38
|
+
getRVDomainCollection(languageCode: string, domainName: DomainName): Promise<DataServiceResponseData>;
|
|
39
|
+
getCategories(): Promise<DataServiceResponseData>;
|
|
38
40
|
getPriceLists(code?: string): Promise<DataServiceResponseData>;
|
|
39
41
|
static createConnector(options: Options): MainApiConnection;
|
|
40
42
|
private _handleConnectionReset;
|
package/build/main-api.js
CHANGED
|
@@ -85,6 +85,12 @@ class MainApi {
|
|
|
85
85
|
getDomainCollection(languageCode, domainName) {
|
|
86
86
|
return this.mainApi.getDomainCollection(languageCode, domainName);
|
|
87
87
|
}
|
|
88
|
+
getRVDomainCollection(languageCode, domainName) {
|
|
89
|
+
return this.mainApi.getRVDomainCollection(languageCode, domainName);
|
|
90
|
+
}
|
|
91
|
+
getCategories() {
|
|
92
|
+
return this.mainApi.getCategories();
|
|
93
|
+
}
|
|
88
94
|
getPriceLists(code) {
|
|
89
95
|
return __awaiter(this, void 0, void 0, function* () {
|
|
90
96
|
return this.mainApi.getPriceLists(code);
|
|
@@ -85,4 +85,12 @@ describe("Connector", () => {
|
|
|
85
85
|
const result = yield connector.getDomainCollection("NL", domain_name_enum_1.DomainName.ArticleType);
|
|
86
86
|
expect(result).toBeDefined();
|
|
87
87
|
}));
|
|
88
|
+
it('getRVDomainCollection', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
89
|
+
const result = yield connector.getRVDomainCollection("NL", domain_name_enum_1.DomainName.ArtPublication);
|
|
90
|
+
expect(result).toBeDefined();
|
|
91
|
+
}));
|
|
92
|
+
it('getCategories', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
93
|
+
const result = yield connector.getCategories();
|
|
94
|
+
expect(result).toBeDefined();
|
|
95
|
+
}));
|
|
88
96
|
});
|
package/build/main-auth.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export declare class MainAuth extends MainApiConnection {
|
|
|
17
17
|
getObjectConfigurations(screenCfgModule: string, params?: string | string[], insertMode?: boolean): Promise<DataServiceResponseData>;
|
|
18
18
|
getStoreGroups(): Promise<DataServiceResponseData>;
|
|
19
19
|
getDomainCollection(languageCode: string, domainName: DomainName): Promise<DataServiceResponseData>;
|
|
20
|
+
getRVDomainCollection(languageCode: string, domainName: DomainName): Promise<DataServiceResponseData>;
|
|
21
|
+
getCategories(): Promise<DataServiceResponseData>;
|
|
20
22
|
getPriceLists(code?: string): Promise<DataServiceResponseData>;
|
|
21
23
|
private selectMultiple;
|
|
22
24
|
private _call;
|
package/build/main-auth.js
CHANGED
|
@@ -164,6 +164,16 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
164
164
|
};
|
|
165
165
|
return this.selectMultiple(module_name_enum_1.ModuleName.General, master_data_object_name_enum_1.MasterDataObjectName.CoDomainValue, "", params);
|
|
166
166
|
}
|
|
167
|
+
getRVDomainCollection(languageCode, domainName) {
|
|
168
|
+
const params = {
|
|
169
|
+
domainName: domainName,
|
|
170
|
+
language: languageCode
|
|
171
|
+
};
|
|
172
|
+
return this.selectMultiple(module_name_enum_1.ModuleName.General, master_data_object_name_enum_1.MasterDataObjectName.CoRVDomainValue, "", params);
|
|
173
|
+
}
|
|
174
|
+
getCategories() {
|
|
175
|
+
return this.selectMultiple(module_name_enum_1.ModuleName.Articles, master_data_object_name_enum_1.MasterDataObjectName.articleCategory, "", null);
|
|
176
|
+
}
|
|
167
177
|
getPriceLists(code) {
|
|
168
178
|
return __awaiter(this, void 0, void 0, function* () {
|
|
169
179
|
const params = {};
|
package/build/main-public.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export declare class MainPublic extends MainApiConnection {
|
|
|
17
17
|
getObjectConfigurations(screenCfgModule: string, params?: string | string[], insertMode?: boolean): Promise<DataServiceResponseData>;
|
|
18
18
|
getStoreGroups(): Promise<DataServiceResponseData>;
|
|
19
19
|
getDomainCollection(languageCode: string, domainName: DomainName): Promise<DataServiceResponseData>;
|
|
20
|
+
getRVDomainCollection(languageCode: string, domainName: DomainName): Promise<DataServiceResponseData>;
|
|
21
|
+
getCategories(): Promise<DataServiceResponseData>;
|
|
20
22
|
getPriceLists(code?: string): Promise<DataServiceResponseData>;
|
|
21
23
|
private createServiceRequestData;
|
|
22
24
|
private _call;
|
package/build/main-public.js
CHANGED
|
@@ -73,6 +73,14 @@ class MainPublic extends main_api_connection_1.MainApiConnection {
|
|
|
73
73
|
console.warn('getDomainCollection not implemented');
|
|
74
74
|
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
75
75
|
}
|
|
76
|
+
getRVDomainCollection(languageCode, domainName) {
|
|
77
|
+
console.warn('getRVDomainCollection not implemented');
|
|
78
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
79
|
+
}
|
|
80
|
+
getCategories() {
|
|
81
|
+
console.warn('getCategories not implemented');
|
|
82
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
83
|
+
}
|
|
76
84
|
getPriceLists(code) {
|
|
77
85
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
86
|
console.warn('getPriceLists not implemented');
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
2
|
+
import { CoDocument } from "./co-document";
|
|
3
|
+
export declare class Category extends BusinessObject {
|
|
4
|
+
categoryCode: string;
|
|
5
|
+
description: string;
|
|
6
|
+
publication: number;
|
|
7
|
+
images: CoDocument[];
|
|
8
|
+
retailFormulas: string[];
|
|
9
|
+
constructor();
|
|
10
|
+
getId(): any;
|
|
11
|
+
toString(): string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Category = void 0;
|
|
4
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
5
|
+
class Category extends business_object_1.BusinessObject {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
}
|
|
9
|
+
getId() {
|
|
10
|
+
return this.categoryCode;
|
|
11
|
+
}
|
|
12
|
+
toString() {
|
|
13
|
+
return this.categoryCode + ": " + this.description;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.Category = Category;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
2
|
+
export declare class CoRVDomainValue extends BusinessObject {
|
|
3
|
+
code: number;
|
|
4
|
+
description: string;
|
|
5
|
+
sequence: number;
|
|
6
|
+
get codeAsNumber(): number;
|
|
7
|
+
constructor();
|
|
8
|
+
getId(): any;
|
|
9
|
+
toString(): string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CoRVDomainValue = void 0;
|
|
4
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
5
|
+
const number_utils_1 = require("@colijnit/ioneconnector/build/utils/number-utils");
|
|
6
|
+
class CoRVDomainValue extends business_object_1.BusinessObject {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
}
|
|
10
|
+
get codeAsNumber() {
|
|
11
|
+
return number_utils_1.NumberUtils.ParseInt(this.code);
|
|
12
|
+
}
|
|
13
|
+
getId() {
|
|
14
|
+
return this.code;
|
|
15
|
+
}
|
|
16
|
+
toString() {
|
|
17
|
+
return this.code + ": " + this.description;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.CoRVDomainValue = CoRVDomainValue;
|