@colijnit/mainapi 1.0.24 → 1.0.25
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 -1
- package/build/enum/master-data-object-name.enum.js +1 -0
- package/build/enum/simple-base-data-operation-name.enum.d.ts +2 -1
- package/build/enum/simple-base-data-operation-name.enum.js +1 -0
- package/build/main-api-connection.d.ts +2 -0
- package/build/main-api.d.ts +2 -0
- package/build/main-api.js +8 -0
- package/build/main-auth.d.ts +2 -0
- package/build/main-auth.js +8 -0
- package/build/main-public.d.ts +2 -0
- package/build/main-public.js +10 -0
- package/build/model/color.bo.d.ts +7 -0
- package/build/model/color.bo.js +10 -0
- package/build/model/order-line-set-category.bo.d.ts +8 -0
- package/build/model/order-line-set-category.bo.js +7 -0
- package/package.json +1 -1
|
@@ -24,4 +24,5 @@ var MasterDataObjectName;
|
|
|
24
24
|
MasterDataObjectName["SalesPerson"] = "SalesPerson";
|
|
25
25
|
MasterDataObjectName["UserGroup"] = "UserGroup";
|
|
26
26
|
MasterDataObjectName["Vat"] = "Vat";
|
|
27
|
+
MasterDataObjectName["OrderLineSetCategory"] = "OrderLineSetCategory";
|
|
27
28
|
})(MasterDataObjectName = exports.MasterDataObjectName || (exports.MasterDataObjectName = {}));
|
|
@@ -4,4 +4,5 @@ exports.SimpleBaseDataOperationName = void 0;
|
|
|
4
4
|
var SimpleBaseDataOperationName;
|
|
5
5
|
(function (SimpleBaseDataOperationName) {
|
|
6
6
|
SimpleBaseDataOperationName["Default"] = "default";
|
|
7
|
+
SimpleBaseDataOperationName["GetColors"] = "getColors";
|
|
7
8
|
})(SimpleBaseDataOperationName = exports.SimpleBaseDataOperationName || (exports.SimpleBaseDataOperationName = {}));
|
|
@@ -32,11 +32,13 @@ export declare abstract class MainApiConnection {
|
|
|
32
32
|
abstract getDomainCollection(languageCode: string, domainName: DomainName): Promise<DataServiceResponseData>;
|
|
33
33
|
abstract getRVDomainCollection(languageCode: string, domainName: DomainName): Promise<DataServiceResponseData>;
|
|
34
34
|
abstract getCategories(): Promise<DataServiceResponseData>;
|
|
35
|
+
abstract getColors(): Promise<DataServiceResponseData>;
|
|
35
36
|
abstract getPriceLists(code?: string): Promise<DataServiceResponseData>;
|
|
36
37
|
abstract getUserGroups(): Promise<DataServiceResponseData>;
|
|
37
38
|
abstract getPresets(module?: string, user?: string): Promise<DataServiceResponseData>;
|
|
38
39
|
abstract getPreset(presetId: string): Promise<DataServiceResponseData>;
|
|
39
40
|
abstract savePreset(preset: Preset): Promise<DataServiceResponseData>;
|
|
40
41
|
abstract updatePreset(presetName: string): Promise<DataServiceResponseData>;
|
|
42
|
+
abstract getOrderLineSetCategories(): Promise<DataServiceResponseData>;
|
|
41
43
|
protected endPoint: string;
|
|
42
44
|
}
|
package/build/main-api.d.ts
CHANGED
|
@@ -45,12 +45,14 @@ export declare class MainApi {
|
|
|
45
45
|
getDomainCollection(languageCode: string, domainName: DomainName): Promise<DataServiceResponseData>;
|
|
46
46
|
getRVDomainCollection(languageCode: string, domainName: DomainName): Promise<DataServiceResponseData>;
|
|
47
47
|
getCategories(): Promise<DataServiceResponseData>;
|
|
48
|
+
getColors(): Promise<DataServiceResponseData>;
|
|
48
49
|
getPriceLists(code?: string): Promise<DataServiceResponseData>;
|
|
49
50
|
getUserGroups(): Promise<DataServiceResponseData>;
|
|
50
51
|
getPresets(module?: string, user?: string): Promise<DataServiceResponseData>;
|
|
51
52
|
getPreset(presetId: string): Promise<DataServiceResponseData>;
|
|
52
53
|
savePreset(preset: Preset): Promise<DataServiceResponseData>;
|
|
53
54
|
updatePreset(presetName: string): Promise<DataServiceResponseData>;
|
|
55
|
+
getOrderLineSetCategories(): Promise<DataServiceResponseData>;
|
|
54
56
|
static createConnector(options: Options, sessionExists: boolean): MainApiConnection;
|
|
55
57
|
private _handleConnectionReset;
|
|
56
58
|
}
|
package/build/main-api.js
CHANGED
|
@@ -107,6 +107,9 @@ class MainApi {
|
|
|
107
107
|
getCategories() {
|
|
108
108
|
return this.mainApi.getCategories();
|
|
109
109
|
}
|
|
110
|
+
getColors() {
|
|
111
|
+
return this.mainApi.getColors();
|
|
112
|
+
}
|
|
110
113
|
getPriceLists(code) {
|
|
111
114
|
return __awaiter(this, void 0, void 0, function* () {
|
|
112
115
|
return this.mainApi.getPriceLists(code);
|
|
@@ -137,6 +140,11 @@ class MainApi {
|
|
|
137
140
|
return this.mainApi.updatePreset(presetName);
|
|
138
141
|
});
|
|
139
142
|
}
|
|
143
|
+
getOrderLineSetCategories() {
|
|
144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
return this.mainApi.getOrderLineSetCategories();
|
|
146
|
+
});
|
|
147
|
+
}
|
|
140
148
|
static createConnector(options, sessionExists) {
|
|
141
149
|
if ((options.username && options.password) || sessionExists) {
|
|
142
150
|
return new main_auth_1.MainAuth();
|
package/build/main-auth.d.ts
CHANGED
|
@@ -26,12 +26,14 @@ export declare class MainAuth extends MainApiConnection {
|
|
|
26
26
|
getDomainCollection(languageCode: string, domainName: DomainName): Promise<DataServiceResponseData>;
|
|
27
27
|
getRVDomainCollection(languageCode: string, domainName: DomainName): Promise<DataServiceResponseData>;
|
|
28
28
|
getCategories(): Promise<DataServiceResponseData>;
|
|
29
|
+
getColors(): Promise<DataServiceResponseData>;
|
|
29
30
|
getPriceLists(code?: string): Promise<DataServiceResponseData>;
|
|
30
31
|
getPresets(module?: string, user?: string): Promise<DataServiceResponseData>;
|
|
31
32
|
getPreset(presetId: string): Promise<DataServiceResponseData>;
|
|
32
33
|
getUserGroups(): Promise<DataServiceResponseData>;
|
|
33
34
|
savePreset(preset: Preset): Promise<DataServiceResponseData>;
|
|
34
35
|
updatePreset(presetName: string): Promise<DataServiceResponseData>;
|
|
36
|
+
getOrderLineSetCategories(): Promise<DataServiceResponseData>;
|
|
35
37
|
private selectMultiple;
|
|
36
38
|
private _call;
|
|
37
39
|
}
|
package/build/main-auth.js
CHANGED
|
@@ -212,6 +212,9 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
212
212
|
getCategories() {
|
|
213
213
|
return this.selectMultiple(module_name_enum_1.ModuleName.SimpleBaseData, master_data_object_name_enum_1.MasterDataObjectName.Category, "", null);
|
|
214
214
|
}
|
|
215
|
+
getColors() {
|
|
216
|
+
return this.selectMultiple(module_name_enum_1.ModuleName.SimpleBaseData, master_data_object_name_enum_1.MasterDataObjectName.Color, simple_base_data_operation_name_enum_1.SimpleBaseDataOperationName.GetColors, null);
|
|
217
|
+
}
|
|
215
218
|
getPriceLists(code) {
|
|
216
219
|
return __awaiter(this, void 0, void 0, function* () {
|
|
217
220
|
const params = {};
|
|
@@ -270,6 +273,11 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
270
273
|
};
|
|
271
274
|
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data);
|
|
272
275
|
}
|
|
276
|
+
getOrderLineSetCategories() {
|
|
277
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
278
|
+
return this.selectMultiple(module_name_enum_1.ModuleName.SimpleBaseData, master_data_object_name_enum_1.MasterDataObjectName.OrderLineSetCategory, undefined, null);
|
|
279
|
+
});
|
|
280
|
+
}
|
|
273
281
|
selectMultiple(moduleName, objectName, operationName, parameterValues) {
|
|
274
282
|
let stronglyTypedResults = [];
|
|
275
283
|
const data = {
|
package/build/main-public.d.ts
CHANGED
|
@@ -26,12 +26,14 @@ export declare class MainPublic extends MainApiConnection {
|
|
|
26
26
|
getDomainCollection(languageCode: string, domainName: DomainName): Promise<DataServiceResponseData>;
|
|
27
27
|
getRVDomainCollection(languageCode: string, domainName: DomainName): Promise<DataServiceResponseData>;
|
|
28
28
|
getCategories(): Promise<DataServiceResponseData>;
|
|
29
|
+
getColors(): Promise<DataServiceResponseData>;
|
|
29
30
|
getPriceLists(code?: string): Promise<DataServiceResponseData>;
|
|
30
31
|
getUserGroups(): Promise<DataServiceResponseData>;
|
|
31
32
|
getPresets(module?: string, user?: string): Promise<DataServiceResponseData>;
|
|
32
33
|
getPreset(presetId: string): Promise<DataServiceResponseData>;
|
|
33
34
|
savePreset(preset: Preset): Promise<DataServiceResponseData>;
|
|
34
35
|
updatePreset(presetName: string): Promise<DataServiceResponseData>;
|
|
36
|
+
getOrderLineSetCategories(): Promise<DataServiceResponseData>;
|
|
35
37
|
private createServiceRequestData;
|
|
36
38
|
private _call;
|
|
37
39
|
private _callAjaxService;
|
package/build/main-public.js
CHANGED
|
@@ -108,6 +108,10 @@ class MainPublic extends main_api_connection_1.MainApiConnection {
|
|
|
108
108
|
console.warn('getCategories not implemented');
|
|
109
109
|
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
110
110
|
}
|
|
111
|
+
getColors() {
|
|
112
|
+
console.warn('getColors not implemented');
|
|
113
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
114
|
+
}
|
|
111
115
|
getPriceLists(code) {
|
|
112
116
|
return __awaiter(this, void 0, void 0, function* () {
|
|
113
117
|
console.warn('getPriceLists not implemented');
|
|
@@ -144,6 +148,12 @@ class MainPublic extends main_api_connection_1.MainApiConnection {
|
|
|
144
148
|
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
145
149
|
});
|
|
146
150
|
}
|
|
151
|
+
getOrderLineSetCategories() {
|
|
152
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
153
|
+
console.warn('getOrderLineSetCategories not implemented');
|
|
154
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
155
|
+
});
|
|
156
|
+
}
|
|
147
157
|
createServiceRequestData() {
|
|
148
158
|
const data = { languageCode: this.languageCode };
|
|
149
159
|
return data;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Color = void 0;
|
|
4
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
5
|
+
class Color extends business_object_1.BusinessObject {
|
|
6
|
+
getId() {
|
|
7
|
+
return this.rgbColor;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.Color = Color;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrderLineSetCategory = void 0;
|
|
4
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
5
|
+
class OrderLineSetCategory extends business_object_1.BusinessObject {
|
|
6
|
+
}
|
|
7
|
+
exports.OrderLineSetCategory = OrderLineSetCategory;
|