@colijnit/mainapi 1.0.13 → 1.0.14
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/config-object-name.enum.d.ts +3 -0
- package/build/enum/config-object-name.enum.js +7 -0
- package/build/enum/domain-name.enum.d.ts +60 -0
- package/build/enum/domain-name.enum.js +64 -0
- package/build/enum/master-data-object-name.enum.d.ts +20 -0
- package/build/enum/master-data-object-name.enum.js +24 -0
- package/build/enum/module-name.enum.d.ts +2 -1
- package/build/enum/module-name.enum.js +1 -0
- package/build/enum/simple-base-data-object-name.enum.d.ts +2 -1
- package/build/enum/simple-base-data-object-name.enum.js +1 -0
- package/build/main-api-connection.d.ts +5 -0
- package/build/main-api.d.ts +6 -0
- package/build/main-api.js +18 -0
- package/build/main-api.unit.test.js +14 -1
- package/build/main-auth.d.ts +6 -1
- package/build/main-auth.js +45 -0
- package/build/main-public.d.ts +5 -0
- package/build/main-public.js +18 -0
- package/build/model/store-group.bo.d.ts +9 -0
- package/build/model/store-group.bo.js +7 -0
- package/package.json +1 -1
- package/build/model/email-demanding-delivery-request.d.ts +0 -3
- package/build/model/email-demanding-delivery-request.js +0 -7
- package/build/model/email-order-confirmation-request.d.ts +0 -3
- package/build/model/email-order-confirmation-request.js +0 -7
- package/build/model/email-purchase-order-request.d.ts +0 -3
- package/build/model/email-purchase-order-request.js +0 -7
- package/build/model/email-reminder-purchase-order-request.d.ts +0 -3
- package/build/model/email-reminder-purchase-order-request.js +0 -7
- package/build/model/pdf-demanding-delivery-request.d.ts +0 -3
- package/build/model/pdf-demanding-delivery-request.js +0 -7
- package/build/model/pdf-order-confirmation-request.d.ts +0 -3
- package/build/model/pdf-order-confirmation-request.js +0 -7
- package/build/model/pdf-purchase-order-request.d.ts +0 -3
- package/build/model/pdf-purchase-order-request.js +0 -7
- package/build/model/pdf-reminder-purchase-order-request.d.ts +0 -3
- package/build/model/pdf-reminder-purchase-order-request.js +0 -7
- package/build/model/print-demanding-delivery-request.d.ts +0 -3
- package/build/model/print-demanding-delivery-request.js +0 -7
- package/build/model/print-order-confirmation-request.d.ts +0 -3
- package/build/model/print-order-confirmation-request.js +0 -7
- package/build/model/print-purchase-order-request.d.ts +0 -3
- package/build/model/print-purchase-order-request.js +0 -7
- package/build/model/print-reminder-purchase-order-request.d.ts +0 -3
- package/build/model/print-reminder-purchase-order-request.js +0 -7
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfigObjectName = void 0;
|
|
4
|
+
var ConfigObjectName;
|
|
5
|
+
(function (ConfigObjectName) {
|
|
6
|
+
ConfigObjectName["ObjectConfiguration"] = "ObjectConfiguration";
|
|
7
|
+
})(ConfigObjectName = exports.ConfigObjectName || (exports.ConfigObjectName = {}));
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export declare enum DomainName {
|
|
2
|
+
RelationType = "DOM_RELATIESOORT",
|
|
3
|
+
FormScreens = "DOM_FORM_SCREENS",
|
|
4
|
+
FormShowWhen = "DOM_FORM_SHOW_WHEN",
|
|
5
|
+
CommissionCode = "DOM_COMMISSIECODE",
|
|
6
|
+
RelationNamesType = "DOM_RELATIE_NAMEN_SOORT",
|
|
7
|
+
CommunicationType = "DOM_COMSOORT",
|
|
8
|
+
ServiceCommunicationType = "DOM_COMSOORT_SERV",
|
|
9
|
+
Priority = "DOM_PRIORITEIT",
|
|
10
|
+
FileType = "DOM_BESTANDSSOORT",
|
|
11
|
+
TransactionType = "DOM_TRANSACTIESOORT",
|
|
12
|
+
InOutCollection = "DOM_IN_UIT_COLLECTIE",
|
|
13
|
+
AddressType = "DOM_ADRESSOORT",
|
|
14
|
+
Gender = "DOM_GESLACHT",
|
|
15
|
+
MaritalStatus = "DOM_BURGELIJKE_STAAT",
|
|
16
|
+
PriceType = "DOM_PRIJSSOORT",
|
|
17
|
+
CompanyType = "DOM_BEDRIJFS_TYPE",
|
|
18
|
+
NotitionDisplayType = "DOM_NOT_DISPLAY",
|
|
19
|
+
InsuredInterestType = "DOM_INSURED_INTEREST_TYPE",
|
|
20
|
+
OwnRiskType = "DOM_OWN_RISK_TYPE",
|
|
21
|
+
CustomerType = "CV_KLANTEN.KLANTSOORT",
|
|
22
|
+
PayFrequency = "DOM_PAY_FREQUENCY",
|
|
23
|
+
EmployeeIdentificationType = "DOM_IDENTIFICATIE",
|
|
24
|
+
DeliveryTimeUnitType = "DOM_LEVERTIJD_EENHEID",
|
|
25
|
+
StickerIL = "DOM_STICKER_IL",
|
|
26
|
+
EmployeeStatisticsGroup = "DOM_PERSONEEL_STATISTIEK",
|
|
27
|
+
EducationType = "DOM_OPLEIDING_TYPE",
|
|
28
|
+
EducationPeriodType = "DOM_OPLEIDING_PERIODE_TYPE",
|
|
29
|
+
AccidentLiabilityType = "DOM_AANSPRAKELIJKHEID_TYPE",
|
|
30
|
+
AbsenceType = "DOM_ABSENCE_TYPE",
|
|
31
|
+
AbsenceOperationType = "DOM_ABSENCE_OPERATION_TYPE",
|
|
32
|
+
SendMethodType = "DOM_VERZENDMETHODE",
|
|
33
|
+
SendMethodTypeTemplate = "DOM_VERZENDMETHODE_SJABLOON",
|
|
34
|
+
ContactMethod = "DOM_CONTACTMETHODE",
|
|
35
|
+
CalculationKey = "DOM_BEREKEN_SLEUTEL",
|
|
36
|
+
ApplicationEditionType = "DOM_EDITIE",
|
|
37
|
+
EmployeeContractDurationType = "DOM_TYPE_AANSTELLING",
|
|
38
|
+
ConnectionType = "DOM_ASS_VERBINDING",
|
|
39
|
+
PasswordType = "DOM_PWD_SOORT",
|
|
40
|
+
UserRole = "DOM_USER_ROLE",
|
|
41
|
+
AddressFormat = "DOM_ADRESFORMAAT",
|
|
42
|
+
SortType = "DOM_SORT_TYPE",
|
|
43
|
+
QueryCalculationType = "DOM_QUERY_CALC_TYPE",
|
|
44
|
+
ArticleType = "CV_ARTIKELEN.ARTIKELSOORT",
|
|
45
|
+
GoodType = "DOM_GOEDERENSOORT",
|
|
46
|
+
PackageCode = "DOM_COLLIECODE",
|
|
47
|
+
GuaranteeType = "DOM_GARANTIE",
|
|
48
|
+
DatePeriod = "DOM_DATUMSELECTIE",
|
|
49
|
+
RelationStatus = "DOM_RELATION_STATUS",
|
|
50
|
+
ExternalSourceType = "DOM_EXTERNE_BRON",
|
|
51
|
+
PriceRoundingSales = "DOM_SOORT_AFRONDING",
|
|
52
|
+
FifoLifo = "DOM_FIFOLIFO",
|
|
53
|
+
ImageType = "DOM_AFBEELDING_SOORT",
|
|
54
|
+
PaymentType = "DOM_BETAALSOORT",
|
|
55
|
+
PaymentCondition = "DOM_BETALINGSCONDITIE",
|
|
56
|
+
PinTerminal = "DOM_PINTERMINALS",
|
|
57
|
+
ValidityUnit = "DOM_GELDIGHEIDSDUUR_TYPES",
|
|
58
|
+
VoucherType = "DOM_VOUCHERTYPES",
|
|
59
|
+
TextType = "TEKSTSOORT"
|
|
60
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DomainName = void 0;
|
|
4
|
+
var DomainName;
|
|
5
|
+
(function (DomainName) {
|
|
6
|
+
DomainName["RelationType"] = "DOM_RELATIESOORT";
|
|
7
|
+
DomainName["FormScreens"] = "DOM_FORM_SCREENS";
|
|
8
|
+
DomainName["FormShowWhen"] = "DOM_FORM_SHOW_WHEN";
|
|
9
|
+
DomainName["CommissionCode"] = "DOM_COMMISSIECODE";
|
|
10
|
+
DomainName["RelationNamesType"] = "DOM_RELATIE_NAMEN_SOORT";
|
|
11
|
+
DomainName["CommunicationType"] = "DOM_COMSOORT";
|
|
12
|
+
DomainName["ServiceCommunicationType"] = "DOM_COMSOORT_SERV";
|
|
13
|
+
DomainName["Priority"] = "DOM_PRIORITEIT";
|
|
14
|
+
DomainName["FileType"] = "DOM_BESTANDSSOORT";
|
|
15
|
+
DomainName["TransactionType"] = "DOM_TRANSACTIESOORT";
|
|
16
|
+
DomainName["InOutCollection"] = "DOM_IN_UIT_COLLECTIE";
|
|
17
|
+
DomainName["AddressType"] = "DOM_ADRESSOORT";
|
|
18
|
+
DomainName["Gender"] = "DOM_GESLACHT";
|
|
19
|
+
DomainName["MaritalStatus"] = "DOM_BURGELIJKE_STAAT";
|
|
20
|
+
DomainName["PriceType"] = "DOM_PRIJSSOORT";
|
|
21
|
+
DomainName["CompanyType"] = "DOM_BEDRIJFS_TYPE";
|
|
22
|
+
DomainName["NotitionDisplayType"] = "DOM_NOT_DISPLAY";
|
|
23
|
+
DomainName["InsuredInterestType"] = "DOM_INSURED_INTEREST_TYPE";
|
|
24
|
+
DomainName["OwnRiskType"] = "DOM_OWN_RISK_TYPE";
|
|
25
|
+
DomainName["CustomerType"] = "CV_KLANTEN.KLANTSOORT";
|
|
26
|
+
DomainName["PayFrequency"] = "DOM_PAY_FREQUENCY";
|
|
27
|
+
DomainName["EmployeeIdentificationType"] = "DOM_IDENTIFICATIE";
|
|
28
|
+
DomainName["DeliveryTimeUnitType"] = "DOM_LEVERTIJD_EENHEID";
|
|
29
|
+
DomainName["StickerIL"] = "DOM_STICKER_IL";
|
|
30
|
+
DomainName["EmployeeStatisticsGroup"] = "DOM_PERSONEEL_STATISTIEK";
|
|
31
|
+
DomainName["EducationType"] = "DOM_OPLEIDING_TYPE";
|
|
32
|
+
DomainName["EducationPeriodType"] = "DOM_OPLEIDING_PERIODE_TYPE";
|
|
33
|
+
DomainName["AccidentLiabilityType"] = "DOM_AANSPRAKELIJKHEID_TYPE";
|
|
34
|
+
DomainName["AbsenceType"] = "DOM_ABSENCE_TYPE";
|
|
35
|
+
DomainName["AbsenceOperationType"] = "DOM_ABSENCE_OPERATION_TYPE";
|
|
36
|
+
DomainName["SendMethodType"] = "DOM_VERZENDMETHODE";
|
|
37
|
+
DomainName["SendMethodTypeTemplate"] = "DOM_VERZENDMETHODE_SJABLOON";
|
|
38
|
+
DomainName["ContactMethod"] = "DOM_CONTACTMETHODE";
|
|
39
|
+
DomainName["CalculationKey"] = "DOM_BEREKEN_SLEUTEL";
|
|
40
|
+
DomainName["ApplicationEditionType"] = "DOM_EDITIE";
|
|
41
|
+
DomainName["EmployeeContractDurationType"] = "DOM_TYPE_AANSTELLING";
|
|
42
|
+
DomainName["ConnectionType"] = "DOM_ASS_VERBINDING";
|
|
43
|
+
DomainName["PasswordType"] = "DOM_PWD_SOORT";
|
|
44
|
+
DomainName["UserRole"] = "DOM_USER_ROLE";
|
|
45
|
+
DomainName["AddressFormat"] = "DOM_ADRESFORMAAT";
|
|
46
|
+
DomainName["SortType"] = "DOM_SORT_TYPE";
|
|
47
|
+
DomainName["QueryCalculationType"] = "DOM_QUERY_CALC_TYPE";
|
|
48
|
+
DomainName["ArticleType"] = "CV_ARTIKELEN.ARTIKELSOORT";
|
|
49
|
+
DomainName["GoodType"] = "DOM_GOEDERENSOORT";
|
|
50
|
+
DomainName["PackageCode"] = "DOM_COLLIECODE";
|
|
51
|
+
DomainName["GuaranteeType"] = "DOM_GARANTIE";
|
|
52
|
+
DomainName["DatePeriod"] = "DOM_DATUMSELECTIE";
|
|
53
|
+
DomainName["RelationStatus"] = "DOM_RELATION_STATUS";
|
|
54
|
+
DomainName["ExternalSourceType"] = "DOM_EXTERNE_BRON";
|
|
55
|
+
DomainName["PriceRoundingSales"] = "DOM_SOORT_AFRONDING";
|
|
56
|
+
DomainName["FifoLifo"] = "DOM_FIFOLIFO";
|
|
57
|
+
DomainName["ImageType"] = "DOM_AFBEELDING_SOORT";
|
|
58
|
+
DomainName["PaymentType"] = "DOM_BETAALSOORT";
|
|
59
|
+
DomainName["PaymentCondition"] = "DOM_BETALINGSCONDITIE";
|
|
60
|
+
DomainName["PinTerminal"] = "DOM_PINTERMINALS";
|
|
61
|
+
DomainName["ValidityUnit"] = "DOM_GELDIGHEIDSDUUR_TYPES";
|
|
62
|
+
DomainName["VoucherType"] = "DOM_VOUCHERTYPES";
|
|
63
|
+
DomainName["TextType"] = "TEKSTSOORT";
|
|
64
|
+
})(DomainName = exports.DomainName || (exports.DomainName = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare enum MasterDataObjectName {
|
|
2
|
+
Color = "Color",
|
|
3
|
+
Brand = "Brand",
|
|
4
|
+
Concept = "Concept",
|
|
5
|
+
ArticleGroup = "ArticleGroup",
|
|
6
|
+
Country = "Country",
|
|
7
|
+
DeliveryMethod = "DeliveryMethod",
|
|
8
|
+
DeliveryOption = "DeliveryOption",
|
|
9
|
+
MarketingCode = "MarketingCode",
|
|
10
|
+
OnHoldCode = "OnHoldCode",
|
|
11
|
+
PrivacySettingDTO = "PrivacySettingDTO",
|
|
12
|
+
CoDomainValue = "CoDomainValue",
|
|
13
|
+
WareHouse = "WareHouse",
|
|
14
|
+
CustomerGroup = "CustomerGroup",
|
|
15
|
+
CoMultipleValue = "CoMultipleValue",
|
|
16
|
+
PaymentMethod = "PaymentMethod",
|
|
17
|
+
PriceList = "PriceList",
|
|
18
|
+
SalesPerson = "SalesPerson",
|
|
19
|
+
Vat = "Vat"
|
|
20
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MasterDataObjectName = void 0;
|
|
4
|
+
var MasterDataObjectName;
|
|
5
|
+
(function (MasterDataObjectName) {
|
|
6
|
+
MasterDataObjectName["Color"] = "Color";
|
|
7
|
+
MasterDataObjectName["Brand"] = "Brand";
|
|
8
|
+
MasterDataObjectName["Concept"] = "Concept";
|
|
9
|
+
MasterDataObjectName["ArticleGroup"] = "ArticleGroup";
|
|
10
|
+
MasterDataObjectName["Country"] = "Country";
|
|
11
|
+
MasterDataObjectName["DeliveryMethod"] = "DeliveryMethod";
|
|
12
|
+
MasterDataObjectName["DeliveryOption"] = "DeliveryOption";
|
|
13
|
+
MasterDataObjectName["MarketingCode"] = "MarketingCode";
|
|
14
|
+
MasterDataObjectName["OnHoldCode"] = "OnHoldCode";
|
|
15
|
+
MasterDataObjectName["PrivacySettingDTO"] = "PrivacySettingDTO";
|
|
16
|
+
MasterDataObjectName["CoDomainValue"] = "CoDomainValue";
|
|
17
|
+
MasterDataObjectName["WareHouse"] = "WareHouse";
|
|
18
|
+
MasterDataObjectName["CustomerGroup"] = "CustomerGroup";
|
|
19
|
+
MasterDataObjectName["CoMultipleValue"] = "CoMultipleValue";
|
|
20
|
+
MasterDataObjectName["PaymentMethod"] = "PaymentMethod";
|
|
21
|
+
MasterDataObjectName["PriceList"] = "PriceList";
|
|
22
|
+
MasterDataObjectName["SalesPerson"] = "SalesPerson";
|
|
23
|
+
MasterDataObjectName["Vat"] = "Vat";
|
|
24
|
+
})(MasterDataObjectName = exports.MasterDataObjectName || (exports.MasterDataObjectName = {}));
|
|
@@ -5,4 +5,5 @@ var SimpleBaseDataObjectName;
|
|
|
5
5
|
(function (SimpleBaseDataObjectName) {
|
|
6
6
|
SimpleBaseDataObjectName["Currency"] = "Currency";
|
|
7
7
|
SimpleBaseDataObjectName["PaymentCondition"] = "PaymentCondition";
|
|
8
|
+
SimpleBaseDataObjectName["StoreGroup"] = "StoreGroup";
|
|
8
9
|
})(SimpleBaseDataObjectName = exports.SimpleBaseDataObjectName || (exports.SimpleBaseDataObjectName = {}));
|
|
@@ -3,6 +3,7 @@ import { Connector } from '@colijnit/ioneconnector';
|
|
|
3
3
|
import { SequenceName } from './enum/sequence-name.enum';
|
|
4
4
|
import { DataServiceResponseData } from '@colijnit/ioneconnector/build/model/data-service-response-data';
|
|
5
5
|
import { InternalParam } from "./enum/internal-param.enum";
|
|
6
|
+
import { DomainName } from './enum/domain-name.enum';
|
|
6
7
|
export declare abstract class MainApiConnection {
|
|
7
8
|
readonly showLoader: Subject<boolean>;
|
|
8
9
|
readonly connectionAborted: Subject<void>;
|
|
@@ -19,5 +20,9 @@ export declare abstract class MainApiConnection {
|
|
|
19
20
|
abstract getJoinedTags(table: string, key: string): Promise<DataServiceResponseData>;
|
|
20
21
|
abstract getInternalParameterValue(param: InternalParam): Promise<DataServiceResponseData>;
|
|
21
22
|
abstract getPackageStickerPrintLayouts(): Promise<DataServiceResponseData>;
|
|
23
|
+
abstract getObjectConfigurations(screenCfgModule: string, params: string | string[], insertMode: boolean): Promise<DataServiceResponseData>;
|
|
24
|
+
abstract getStoreGroups(): Promise<DataServiceResponseData>;
|
|
25
|
+
abstract getDomainCollection(languageCode: string, domainName: DomainName): Promise<DataServiceResponseData>;
|
|
26
|
+
abstract getPriceLists(code?: string): Promise<DataServiceResponseData>;
|
|
22
27
|
protected endPoint: string;
|
|
23
28
|
}
|
package/build/main-api.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { MainApiConnection } from './main-api-connection';
|
|
|
5
5
|
import { SequenceName } from './enum/sequence-name.enum';
|
|
6
6
|
import { DataServiceResponseData } from '@colijnit/ioneconnector/build/model/data-service-response-data';
|
|
7
7
|
import { InternalParam } from "./enum/internal-param.enum";
|
|
8
|
+
import { DomainName } from './enum/domain-name.enum';
|
|
8
9
|
export declare class MainApi {
|
|
9
10
|
readonly showLoader: Subject<boolean>;
|
|
10
11
|
readonly connectionAborted: Subject<void>;
|
|
@@ -30,6 +31,11 @@ export declare class MainApi {
|
|
|
30
31
|
getJoinedTags(table: string, key: string): Promise<DataServiceResponseData>;
|
|
31
32
|
getInternalParameterValue(param: InternalParam): Promise<DataServiceResponseData>;
|
|
32
33
|
getPackageStickerPrintLayouts(): Promise<DataServiceResponseData>;
|
|
34
|
+
getObjectConfigurations(screenCfgModule: string, params?: string | string[], insertMode?: boolean): Promise<DataServiceResponseData>;
|
|
35
|
+
getStoreGroups(): Promise<DataServiceResponseData>;
|
|
36
|
+
getInOutCollection(languageCode: string): Promise<DataServiceResponseData>;
|
|
37
|
+
getDomainCollection(languageCode: string, domainName: DomainName): Promise<DataServiceResponseData>;
|
|
38
|
+
getPriceLists(code?: string): Promise<DataServiceResponseData>;
|
|
33
39
|
static createConnector(options: Options): MainApiConnection;
|
|
34
40
|
private _handleConnectionReset;
|
|
35
41
|
}
|
package/build/main-api.js
CHANGED
|
@@ -15,6 +15,7 @@ const session_1 = require("@colijnit/ioneconnector/build/model/session");
|
|
|
15
15
|
const ioneconnector_1 = require("@colijnit/ioneconnector");
|
|
16
16
|
const main_auth_1 = require("./main-auth");
|
|
17
17
|
const main_public_1 = require("./main-public");
|
|
18
|
+
const domain_name_enum_1 = require("./enum/domain-name.enum");
|
|
18
19
|
class MainApi {
|
|
19
20
|
constructor(options) {
|
|
20
21
|
this.showLoader = new rxjs_1.Subject();
|
|
@@ -72,6 +73,23 @@ class MainApi {
|
|
|
72
73
|
getPackageStickerPrintLayouts() {
|
|
73
74
|
return this.mainApi.getPackageStickerPrintLayouts();
|
|
74
75
|
}
|
|
76
|
+
getObjectConfigurations(screenCfgModule, params = ['ALL'], insertMode = false) {
|
|
77
|
+
return this.mainApi.getObjectConfigurations(screenCfgModule, params, insertMode);
|
|
78
|
+
}
|
|
79
|
+
getStoreGroups() {
|
|
80
|
+
return this.mainApi.getStoreGroups();
|
|
81
|
+
}
|
|
82
|
+
getInOutCollection(languageCode) {
|
|
83
|
+
return this.mainApi.getDomainCollection(languageCode, domain_name_enum_1.DomainName.InOutCollection);
|
|
84
|
+
}
|
|
85
|
+
getDomainCollection(languageCode, domainName) {
|
|
86
|
+
return this.mainApi.getDomainCollection(languageCode, domainName);
|
|
87
|
+
}
|
|
88
|
+
getPriceLists(code) {
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
return this.mainApi.getPriceLists(code);
|
|
91
|
+
});
|
|
92
|
+
}
|
|
75
93
|
static createConnector(options) {
|
|
76
94
|
if (options.username && options.password) {
|
|
77
95
|
return new main_auth_1.MainAuth();
|
|
@@ -11,6 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
const main_api_1 = require("./main-api");
|
|
13
13
|
const sequence_name_enum_1 = require("./enum/sequence-name.enum");
|
|
14
|
+
const domain_name_enum_1 = require("./enum/domain-name.enum");
|
|
14
15
|
const options = {
|
|
15
16
|
url: 'http',
|
|
16
17
|
ajaxUrl: 'http'
|
|
@@ -21,7 +22,7 @@ const localOptions = {
|
|
|
21
22
|
version: "252",
|
|
22
23
|
useLoginEncryption: true,
|
|
23
24
|
username: "patrick",
|
|
24
|
-
password: "
|
|
25
|
+
password: "vankeulen1234567890!"
|
|
25
26
|
};
|
|
26
27
|
const remoteOptions = {
|
|
27
28
|
url: "http://130.62.7.55:8888/ione",
|
|
@@ -72,4 +73,16 @@ describe("Connector", () => {
|
|
|
72
73
|
const result = yield connector.getPackageStickerPrintLayouts();
|
|
73
74
|
expect(result).toBeDefined();
|
|
74
75
|
}));
|
|
76
|
+
it('getStoreGroups', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
77
|
+
const result = yield connector.getStoreGroups();
|
|
78
|
+
expect(result).toBeDefined();
|
|
79
|
+
}));
|
|
80
|
+
it('getInOutCollection', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
81
|
+
const result = yield connector.getInOutCollection("NL");
|
|
82
|
+
expect(result).toBeDefined();
|
|
83
|
+
}));
|
|
84
|
+
it('getDomainCollection', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
85
|
+
const result = yield connector.getDomainCollection("NL", domain_name_enum_1.DomainName.ArticleType);
|
|
86
|
+
expect(result).toBeDefined();
|
|
87
|
+
}));
|
|
75
88
|
});
|
package/build/main-auth.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { MainApiConnection } from './main-api-connection';
|
|
2
2
|
import { SequenceName } from './enum/sequence-name.enum';
|
|
3
3
|
import { DataServiceResponseData } from '@colijnit/ioneconnector/build/model/data-service-response-data';
|
|
4
|
-
import { InternalParam } from
|
|
4
|
+
import { InternalParam } from './enum/internal-param.enum';
|
|
5
|
+
import { DomainName } from './enum/domain-name.enum';
|
|
5
6
|
export declare class MainAuth extends MainApiConnection {
|
|
6
7
|
private _boSerializer;
|
|
7
8
|
getSequenceValue(sequenceName: SequenceName, noSequence?: boolean): Promise<DataServiceResponseData>;
|
|
@@ -13,6 +14,10 @@ export declare class MainAuth extends MainApiConnection {
|
|
|
13
14
|
getJoinedTags(table: string, key: string): Promise<DataServiceResponseData>;
|
|
14
15
|
getInternalParameterValue(param: InternalParam): Promise<DataServiceResponseData>;
|
|
15
16
|
getPackageStickerPrintLayouts(): Promise<DataServiceResponseData>;
|
|
17
|
+
getObjectConfigurations(screenCfgModule: string, params?: string | string[], insertMode?: boolean): Promise<DataServiceResponseData>;
|
|
18
|
+
getStoreGroups(): Promise<DataServiceResponseData>;
|
|
19
|
+
getDomainCollection(languageCode: string, domainName: DomainName): Promise<DataServiceResponseData>;
|
|
20
|
+
getPriceLists(code?: string): Promise<DataServiceResponseData>;
|
|
16
21
|
private selectMultiple;
|
|
17
22
|
private _call;
|
|
18
23
|
}
|
package/build/main-auth.js
CHANGED
|
@@ -22,6 +22,8 @@ const report_method_enum_1 = require("./enum/report-method.enum");
|
|
|
22
22
|
const tag_method_enum_1 = require("./enum/tag-method.enum");
|
|
23
23
|
const simple_base_data_object_name_enum_1 = require("./enum/simple-base-data-object-name.enum");
|
|
24
24
|
const simple_base_data_operation_name_enum_1 = require("./enum/simple-base-data-operation-name.enum");
|
|
25
|
+
const config_object_name_enum_1 = require("./enum/config-object-name.enum");
|
|
26
|
+
const master_data_object_name_enum_1 = require("./enum/master-data-object-name.enum");
|
|
25
27
|
class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
26
28
|
constructor() {
|
|
27
29
|
super(...arguments);
|
|
@@ -128,6 +130,49 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
128
130
|
};
|
|
129
131
|
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data);
|
|
130
132
|
}
|
|
133
|
+
getObjectConfigurations(screenCfgModule, params = ['ALL'], insertMode = false) {
|
|
134
|
+
if (!Array.isArray(params)) {
|
|
135
|
+
params = [params];
|
|
136
|
+
}
|
|
137
|
+
if (params && params.length === 1 && (params[0] === undefined || params[0] === null)) {
|
|
138
|
+
params[0] = 'ALL';
|
|
139
|
+
}
|
|
140
|
+
const paramValues = {
|
|
141
|
+
moduleId: screenCfgModule,
|
|
142
|
+
params: params,
|
|
143
|
+
insertMode: insertMode
|
|
144
|
+
};
|
|
145
|
+
const data = {
|
|
146
|
+
moduleName: module_name_enum_1.ModuleName.Config,
|
|
147
|
+
objectName: config_object_name_enum_1.ConfigObjectName.ObjectConfiguration,
|
|
148
|
+
parameterValues: paramValues
|
|
149
|
+
};
|
|
150
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.SelectMultipleObjects, data);
|
|
151
|
+
}
|
|
152
|
+
getStoreGroups() {
|
|
153
|
+
const data = {
|
|
154
|
+
moduleName: module_name_enum_1.ModuleName.SimpleBaseData,
|
|
155
|
+
objectName: simple_base_data_object_name_enum_1.SimpleBaseDataObjectName.StoreGroup,
|
|
156
|
+
refCursorAsArray: true,
|
|
157
|
+
};
|
|
158
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.SelectMultipleObjects, data);
|
|
159
|
+
}
|
|
160
|
+
getDomainCollection(languageCode, domainName) {
|
|
161
|
+
const params = {
|
|
162
|
+
domainName: domainName,
|
|
163
|
+
language: languageCode
|
|
164
|
+
};
|
|
165
|
+
return this.selectMultiple(module_name_enum_1.ModuleName.General, master_data_object_name_enum_1.MasterDataObjectName.CoDomainValue, "", params);
|
|
166
|
+
}
|
|
167
|
+
getPriceLists(code) {
|
|
168
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
169
|
+
const params = {};
|
|
170
|
+
if (code) {
|
|
171
|
+
params.code = code;
|
|
172
|
+
}
|
|
173
|
+
return this.selectMultiple(module_name_enum_1.ModuleName.SimpleBaseData, master_data_object_name_enum_1.MasterDataObjectName.PriceList, undefined, params);
|
|
174
|
+
});
|
|
175
|
+
}
|
|
131
176
|
selectMultiple(moduleName, objectName, operationName, parameterValues) {
|
|
132
177
|
let stronglyTypedResults = [];
|
|
133
178
|
const data = {
|
package/build/main-public.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { MainApiConnection } from './main-api-connection';
|
|
|
2
2
|
import { SequenceName } from './enum/sequence-name.enum';
|
|
3
3
|
import { DataServiceResponseData } from '@colijnit/ioneconnector/build/model/data-service-response-data';
|
|
4
4
|
import { InternalParam } from "./enum/internal-param.enum";
|
|
5
|
+
import { DomainName } from './enum/domain-name.enum';
|
|
5
6
|
export declare class MainPublic extends MainApiConnection {
|
|
6
7
|
protected endPoint: string;
|
|
7
8
|
getSequenceValue(sequenceName: SequenceName, noSequence?: boolean): Promise<DataServiceResponseData>;
|
|
@@ -13,6 +14,10 @@ export declare class MainPublic extends MainApiConnection {
|
|
|
13
14
|
getCurrencies(active?: boolean): Promise<DataServiceResponseData>;
|
|
14
15
|
getPaymentConditions(name?: string): Promise<DataServiceResponseData>;
|
|
15
16
|
getJoinedTags(table: string, key: string): Promise<DataServiceResponseData>;
|
|
17
|
+
getObjectConfigurations(screenCfgModule: string, params?: string | string[], insertMode?: boolean): Promise<DataServiceResponseData>;
|
|
18
|
+
getStoreGroups(): Promise<DataServiceResponseData>;
|
|
19
|
+
getDomainCollection(languageCode: string, domainName: DomainName): Promise<DataServiceResponseData>;
|
|
20
|
+
getPriceLists(code?: string): Promise<DataServiceResponseData>;
|
|
16
21
|
private createServiceRequestData;
|
|
17
22
|
private _call;
|
|
18
23
|
}
|
package/build/main-public.js
CHANGED
|
@@ -61,6 +61,24 @@ class MainPublic extends main_api_connection_1.MainApiConnection {
|
|
|
61
61
|
console.warn('getJoinedTags not implemented');
|
|
62
62
|
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
63
63
|
}
|
|
64
|
+
getObjectConfigurations(screenCfgModule, params = ['ALL'], insertMode = false) {
|
|
65
|
+
console.warn('getObjectConfigurations not implemented');
|
|
66
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
67
|
+
}
|
|
68
|
+
getStoreGroups() {
|
|
69
|
+
console.warn('getStoreGroups not implemented');
|
|
70
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
71
|
+
}
|
|
72
|
+
getDomainCollection(languageCode, domainName) {
|
|
73
|
+
console.warn('getDomainCollection not implemented');
|
|
74
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
75
|
+
}
|
|
76
|
+
getPriceLists(code) {
|
|
77
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
console.warn('getPriceLists not implemented');
|
|
79
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
80
|
+
});
|
|
81
|
+
}
|
|
64
82
|
createServiceRequestData() {
|
|
65
83
|
const data = { languageCode: this.languageCode };
|
|
66
84
|
return data;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
2
|
+
export declare class StoreGroup extends BusinessObject {
|
|
3
|
+
storeGroupId: string;
|
|
4
|
+
description: string;
|
|
5
|
+
ownArticleCounter: boolean;
|
|
6
|
+
fileCode: string;
|
|
7
|
+
fileCounter: string;
|
|
8
|
+
fileDate: Date;
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StoreGroup = void 0;
|
|
4
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
5
|
+
class StoreGroup extends business_object_1.BusinessObject {
|
|
6
|
+
}
|
|
7
|
+
exports.StoreGroup = StoreGroup;
|
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EmailDemandingDeliveryRequest = void 0;
|
|
4
|
-
const reporting_document_email_base_request_1 = require("./reporting-document-email-base-request");
|
|
5
|
-
class EmailDemandingDeliveryRequest extends reporting_document_email_base_request_1.ReportingDocumentEmailBaseRequest {
|
|
6
|
-
}
|
|
7
|
-
exports.EmailDemandingDeliveryRequest = EmailDemandingDeliveryRequest;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EmailOrderConfirmationRequest = void 0;
|
|
4
|
-
const reporting_document_email_base_request_1 = require("./reporting-document-email-base-request");
|
|
5
|
-
class EmailOrderConfirmationRequest extends reporting_document_email_base_request_1.ReportingDocumentEmailBaseRequest {
|
|
6
|
-
}
|
|
7
|
-
exports.EmailOrderConfirmationRequest = EmailOrderConfirmationRequest;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EmailPurchaseOrderRequest = void 0;
|
|
4
|
-
const reporting_document_email_base_request_1 = require("./reporting-document-email-base-request");
|
|
5
|
-
class EmailPurchaseOrderRequest extends reporting_document_email_base_request_1.ReportingDocumentEmailBaseRequest {
|
|
6
|
-
}
|
|
7
|
-
exports.EmailPurchaseOrderRequest = EmailPurchaseOrderRequest;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EmailReminderPurchaseOrderRequest = void 0;
|
|
4
|
-
const reporting_document_email_base_request_1 = require("./reporting-document-email-base-request");
|
|
5
|
-
class EmailReminderPurchaseOrderRequest extends reporting_document_email_base_request_1.ReportingDocumentEmailBaseRequest {
|
|
6
|
-
}
|
|
7
|
-
exports.EmailReminderPurchaseOrderRequest = EmailReminderPurchaseOrderRequest;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PdfDemandingDeliveryRequest = void 0;
|
|
4
|
-
const reporting_document_pdf_base_request_1 = require("./reporting-document-pdf-base-request");
|
|
5
|
-
class PdfDemandingDeliveryRequest extends reporting_document_pdf_base_request_1.ReportingDocumentPdfBaseRequest {
|
|
6
|
-
}
|
|
7
|
-
exports.PdfDemandingDeliveryRequest = PdfDemandingDeliveryRequest;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PdfOrderConfirmationRequest = void 0;
|
|
4
|
-
const reporting_document_pdf_base_request_1 = require("./reporting-document-pdf-base-request");
|
|
5
|
-
class PdfOrderConfirmationRequest extends reporting_document_pdf_base_request_1.ReportingDocumentPdfBaseRequest {
|
|
6
|
-
}
|
|
7
|
-
exports.PdfOrderConfirmationRequest = PdfOrderConfirmationRequest;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PdfPurchaseOrderRequest = void 0;
|
|
4
|
-
const reporting_document_pdf_base_request_1 = require("./reporting-document-pdf-base-request");
|
|
5
|
-
class PdfPurchaseOrderRequest extends reporting_document_pdf_base_request_1.ReportingDocumentPdfBaseRequest {
|
|
6
|
-
}
|
|
7
|
-
exports.PdfPurchaseOrderRequest = PdfPurchaseOrderRequest;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PdfReminderPurchaseOrderRequest = void 0;
|
|
4
|
-
const reporting_document_pdf_base_request_1 = require("./reporting-document-pdf-base-request");
|
|
5
|
-
class PdfReminderPurchaseOrderRequest extends reporting_document_pdf_base_request_1.ReportingDocumentPdfBaseRequest {
|
|
6
|
-
}
|
|
7
|
-
exports.PdfReminderPurchaseOrderRequest = PdfReminderPurchaseOrderRequest;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PrintDemandingDeliveryRequest = void 0;
|
|
4
|
-
const reporting_document_print_base_request_1 = require("./reporting-document-print-base-request");
|
|
5
|
-
class PrintDemandingDeliveryRequest extends reporting_document_print_base_request_1.ReportingDocumentPrintBaseRequest {
|
|
6
|
-
}
|
|
7
|
-
exports.PrintDemandingDeliveryRequest = PrintDemandingDeliveryRequest;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PrintOrderConfirmationRequest = void 0;
|
|
4
|
-
const reporting_document_print_base_request_1 = require("./reporting-document-print-base-request");
|
|
5
|
-
class PrintOrderConfirmationRequest extends reporting_document_print_base_request_1.ReportingDocumentPrintBaseRequest {
|
|
6
|
-
}
|
|
7
|
-
exports.PrintOrderConfirmationRequest = PrintOrderConfirmationRequest;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PrintPurchaseOrderRequest = void 0;
|
|
4
|
-
const reporting_document_print_base_request_1 = require("./reporting-document-print-base-request");
|
|
5
|
-
class PrintPurchaseOrderRequest extends reporting_document_print_base_request_1.ReportingDocumentPrintBaseRequest {
|
|
6
|
-
}
|
|
7
|
-
exports.PrintPurchaseOrderRequest = PrintPurchaseOrderRequest;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PrintReminderPurchaseOrderRequest = void 0;
|
|
4
|
-
const reporting_document_print_base_request_1 = require("./reporting-document-print-base-request");
|
|
5
|
-
class PrintReminderPurchaseOrderRequest extends reporting_document_print_base_request_1.ReportingDocumentPrintBaseRequest {
|
|
6
|
-
}
|
|
7
|
-
exports.PrintReminderPurchaseOrderRequest = PrintReminderPurchaseOrderRequest;
|