@colijnit/mainapi 1.0.19 → 1.0.20
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/tab-category.enum.d.ts +19 -0
- package/build/enum/tab-category.enum.js +23 -0
- package/build/enum/tag-method.enum.d.ts +2 -1
- package/build/enum/tag-method.enum.js +1 -0
- package/build/enum/tag-object.enum.d.ts +3 -0
- package/build/enum/tag-object.enum.js +7 -0
- package/build/enum/tag-operation-name.enum.d.ts +3 -0
- package/build/enum/tag-operation-name.enum.js +7 -0
- package/build/main-api-connection.d.ts +4 -0
- package/build/main-api.d.ts +4 -0
- package/build/main-api.js +6 -0
- package/build/main-auth.d.ts +4 -0
- package/build/main-auth.js +23 -0
- package/build/main-public.d.ts +4 -0
- package/build/main-public.js +8 -0
- package/build/model/tag-tree-item.bo.js +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare enum TagCategory {
|
|
2
|
+
articles = 1,
|
|
3
|
+
articleConfiguration = 2,
|
|
4
|
+
sales = 4,
|
|
5
|
+
quotation = 8,
|
|
6
|
+
pointOfSale = 16,
|
|
7
|
+
purchase = 32,
|
|
8
|
+
customers = 64,
|
|
9
|
+
suppliers = 128,
|
|
10
|
+
employees = 256,
|
|
11
|
+
companies = 512,
|
|
12
|
+
branches = 1024,
|
|
13
|
+
stock = 2048,
|
|
14
|
+
logistics = 4096,
|
|
15
|
+
service = 8192,
|
|
16
|
+
tasks = 16384,
|
|
17
|
+
businessrules = 32768,
|
|
18
|
+
AbsenceFile = 65536
|
|
19
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TagCategory = void 0;
|
|
4
|
+
var TagCategory;
|
|
5
|
+
(function (TagCategory) {
|
|
6
|
+
TagCategory[TagCategory["articles"] = 1] = "articles";
|
|
7
|
+
TagCategory[TagCategory["articleConfiguration"] = 2] = "articleConfiguration";
|
|
8
|
+
TagCategory[TagCategory["sales"] = 4] = "sales";
|
|
9
|
+
TagCategory[TagCategory["quotation"] = 8] = "quotation";
|
|
10
|
+
TagCategory[TagCategory["pointOfSale"] = 16] = "pointOfSale";
|
|
11
|
+
TagCategory[TagCategory["purchase"] = 32] = "purchase";
|
|
12
|
+
TagCategory[TagCategory["customers"] = 64] = "customers";
|
|
13
|
+
TagCategory[TagCategory["suppliers"] = 128] = "suppliers";
|
|
14
|
+
TagCategory[TagCategory["employees"] = 256] = "employees";
|
|
15
|
+
TagCategory[TagCategory["companies"] = 512] = "companies";
|
|
16
|
+
TagCategory[TagCategory["branches"] = 1024] = "branches";
|
|
17
|
+
TagCategory[TagCategory["stock"] = 2048] = "stock";
|
|
18
|
+
TagCategory[TagCategory["logistics"] = 4096] = "logistics";
|
|
19
|
+
TagCategory[TagCategory["service"] = 8192] = "service";
|
|
20
|
+
TagCategory[TagCategory["tasks"] = 16384] = "tasks";
|
|
21
|
+
TagCategory[TagCategory["businessrules"] = 32768] = "businessrules";
|
|
22
|
+
TagCategory[TagCategory["AbsenceFile"] = 65536] = "AbsenceFile";
|
|
23
|
+
})(TagCategory = exports.TagCategory || (exports.TagCategory = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TagOperationName = void 0;
|
|
4
|
+
var TagOperationName;
|
|
5
|
+
(function (TagOperationName) {
|
|
6
|
+
TagOperationName["FullTree"] = "fullTree";
|
|
7
|
+
})(TagOperationName = exports.TagOperationName || (exports.TagOperationName = {}));
|
|
@@ -4,6 +4,8 @@ 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
6
|
import { DomainName } from './enum/domain-name.enum';
|
|
7
|
+
import { TagCategory } from "./enum/tab-category.enum";
|
|
8
|
+
import { TagTreeItem } from "./model/tag-tree-item.bo";
|
|
7
9
|
import { Preset } from "./model/preset.bo";
|
|
8
10
|
export declare abstract class MainApiConnection {
|
|
9
11
|
readonly showLoader: Subject<boolean>;
|
|
@@ -19,6 +21,8 @@ export declare abstract class MainApiConnection {
|
|
|
19
21
|
abstract getCurrencies(active: boolean): Promise<DataServiceResponseData>;
|
|
20
22
|
abstract getPaymentConditions(name: string): Promise<DataServiceResponseData>;
|
|
21
23
|
abstract getJoinedTags(table: string, key: string): Promise<DataServiceResponseData>;
|
|
24
|
+
abstract mergeJoinedTags(table: string, key: string, tags: TagTreeItem[]): Promise<DataServiceResponseData>;
|
|
25
|
+
abstract getTagsFullTree(category: TagCategory, includeTags: boolean): Promise<DataServiceResponseData>;
|
|
22
26
|
abstract getPublicParams(upId: number): Promise<DataServiceResponseData>;
|
|
23
27
|
abstract getInternalParameterValue(param: InternalParam): Promise<DataServiceResponseData>;
|
|
24
28
|
abstract getPackageStickerPrintLayouts(): Promise<DataServiceResponseData>;
|
package/build/main-api.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ 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
8
|
import { DomainName } from './enum/domain-name.enum';
|
|
9
|
+
import { TagCategory } from "./enum/tab-category.enum";
|
|
10
|
+
import { TagTreeItem } from "./model/tag-tree-item.bo";
|
|
9
11
|
import { Preset } from "./model/preset.bo";
|
|
10
12
|
export declare class MainApi {
|
|
11
13
|
readonly showLoader: Subject<boolean>;
|
|
@@ -30,6 +32,8 @@ export declare class MainApi {
|
|
|
30
32
|
getCurrencies(active?: boolean): Promise<DataServiceResponseData>;
|
|
31
33
|
getPaymentConditions(name?: string): Promise<DataServiceResponseData>;
|
|
32
34
|
getJoinedTags(table: string, key: string): Promise<DataServiceResponseData>;
|
|
35
|
+
mergeJoinedTags(table: string, key: string, tags: TagTreeItem[]): Promise<DataServiceResponseData>;
|
|
36
|
+
getTagsFullTree(category: TagCategory, includeTags: boolean): Promise<DataServiceResponseData>;
|
|
33
37
|
getPublicParams(upId: number): Promise<DataServiceResponseData>;
|
|
34
38
|
getInternalParameterValue(param: InternalParam): Promise<DataServiceResponseData>;
|
|
35
39
|
getPackageStickerPrintLayouts(): Promise<DataServiceResponseData>;
|
package/build/main-api.js
CHANGED
|
@@ -67,6 +67,12 @@ class MainApi {
|
|
|
67
67
|
getJoinedTags(table, key) {
|
|
68
68
|
return this.mainApi.getJoinedTags(table, key);
|
|
69
69
|
}
|
|
70
|
+
mergeJoinedTags(table, key, tags) {
|
|
71
|
+
return this.mainApi.mergeJoinedTags(table, key, tags);
|
|
72
|
+
}
|
|
73
|
+
getTagsFullTree(category, includeTags) {
|
|
74
|
+
return this.mainApi.getTagsFullTree(category, includeTags);
|
|
75
|
+
}
|
|
70
76
|
getPublicParams(upId) {
|
|
71
77
|
return this.mainApi.getPublicParams(upId);
|
|
72
78
|
}
|
package/build/main-auth.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import { DataServiceResponseData } from '@colijnit/ioneconnector/build/model/dat
|
|
|
4
4
|
import { InternalParam } from './enum/internal-param.enum';
|
|
5
5
|
import { DomainName } from './enum/domain-name.enum';
|
|
6
6
|
import { Preset } from "./model/preset.bo";
|
|
7
|
+
import { TagCategory } from "./enum/tab-category.enum";
|
|
8
|
+
import { TagTreeItem } from "./model/tag-tree-item.bo";
|
|
7
9
|
export declare class MainAuth extends MainApiConnection {
|
|
8
10
|
private _boSerializer;
|
|
9
11
|
getSequenceValue(sequenceName: SequenceName, noSequence?: boolean): Promise<DataServiceResponseData>;
|
|
@@ -13,6 +15,8 @@ export declare class MainAuth extends MainApiConnection {
|
|
|
13
15
|
getCurrencies(active?: boolean): Promise<DataServiceResponseData>;
|
|
14
16
|
getPaymentConditions(name?: string): Promise<DataServiceResponseData>;
|
|
15
17
|
getJoinedTags(table: string, key: string): Promise<DataServiceResponseData>;
|
|
18
|
+
mergeJoinedTags(table: string, key: string, tags: TagTreeItem[]): Promise<DataServiceResponseData>;
|
|
19
|
+
getTagsFullTree(category: TagCategory, includeTags: boolean): Promise<DataServiceResponseData>;
|
|
16
20
|
getPublicParams(upId: number): Promise<DataServiceResponseData>;
|
|
17
21
|
getInternalParameterValue(param: InternalParam): Promise<DataServiceResponseData>;
|
|
18
22
|
getPackageStickerPrintLayouts(): Promise<DataServiceResponseData>;
|
package/build/main-auth.js
CHANGED
|
@@ -26,6 +26,8 @@ const config_object_name_enum_1 = require("./enum/config-object-name.enum");
|
|
|
26
26
|
const master_data_object_name_enum_1 = require("./enum/master-data-object-name.enum");
|
|
27
27
|
const preset_object_name_enum_1 = require("./enum/preset-object-name.enum");
|
|
28
28
|
const public_service_method_1 = require("./enum/public-service-method");
|
|
29
|
+
const tag_object_enum_1 = require("./enum/tag-object.enum");
|
|
30
|
+
const tag_operation_name_enum_1 = require("./enum/tag-operation-name.enum");
|
|
29
31
|
class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
30
32
|
constructor() {
|
|
31
33
|
super(...arguments);
|
|
@@ -115,6 +117,27 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
115
117
|
};
|
|
116
118
|
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data);
|
|
117
119
|
}
|
|
120
|
+
mergeJoinedTags(table, key, tags) {
|
|
121
|
+
const inputParams = {
|
|
122
|
+
table: table,
|
|
123
|
+
key: key,
|
|
124
|
+
tags: tags
|
|
125
|
+
};
|
|
126
|
+
const data = {
|
|
127
|
+
moduleName: module_name_enum_1.ModuleName.Tags,
|
|
128
|
+
methodName: tag_method_enum_1.TagMethod.MergeJoinedTags,
|
|
129
|
+
refCursorAsArray: true,
|
|
130
|
+
parameterValues: inputParams
|
|
131
|
+
};
|
|
132
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data);
|
|
133
|
+
}
|
|
134
|
+
getTagsFullTree(category, includeTags) {
|
|
135
|
+
const paramValues = {
|
|
136
|
+
category: category,
|
|
137
|
+
includeTags: includeTags
|
|
138
|
+
};
|
|
139
|
+
return this.selectMultiple(module_name_enum_1.ModuleName.Tags, tag_object_enum_1.TagObject.TagTreeItem, tag_operation_name_enum_1.TagOperationName.FullTree, paramValues);
|
|
140
|
+
}
|
|
118
141
|
getPublicParams(upId) {
|
|
119
142
|
const data = {
|
|
120
143
|
upId: upId.toString()
|
package/build/main-public.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ 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
5
|
import { DomainName } from './enum/domain-name.enum';
|
|
6
|
+
import { TagCategory } from "./enum/tab-category.enum";
|
|
7
|
+
import { TagTreeItem } from "./model/tag-tree-item.bo";
|
|
6
8
|
import { Preset } from "./model/preset.bo";
|
|
7
9
|
export declare class MainPublic extends MainApiConnection {
|
|
8
10
|
protected endPoint: string;
|
|
@@ -15,6 +17,8 @@ export declare class MainPublic extends MainApiConnection {
|
|
|
15
17
|
getCurrencies(active?: boolean): Promise<DataServiceResponseData>;
|
|
16
18
|
getPaymentConditions(name?: string): Promise<DataServiceResponseData>;
|
|
17
19
|
getJoinedTags(table: string, key: string): Promise<DataServiceResponseData>;
|
|
20
|
+
mergeJoinedTags(table: string, key: string, tags: TagTreeItem[]): Promise<DataServiceResponseData>;
|
|
21
|
+
getTagsFullTree(category: TagCategory, includeTags: boolean): Promise<DataServiceResponseData>;
|
|
18
22
|
getPublicParams(upId: number): Promise<DataServiceResponseData>;
|
|
19
23
|
getObjectConfigurations(screenCfgModule: string, params?: string | string[], insertMode?: boolean): Promise<DataServiceResponseData>;
|
|
20
24
|
getStoreGroups(): Promise<DataServiceResponseData>;
|
package/build/main-public.js
CHANGED
|
@@ -62,6 +62,14 @@ class MainPublic extends main_api_connection_1.MainApiConnection {
|
|
|
62
62
|
console.warn('getJoinedTags not implemented');
|
|
63
63
|
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
64
64
|
}
|
|
65
|
+
mergeJoinedTags(table, key, tags) {
|
|
66
|
+
console.warn('getJoinedTags not implemented');
|
|
67
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
68
|
+
}
|
|
69
|
+
getTagsFullTree(category, includeTags) {
|
|
70
|
+
console.warn('getTagsFullTree not implemented');
|
|
71
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
72
|
+
}
|
|
65
73
|
getPublicParams(upId) {
|
|
66
74
|
const data = {
|
|
67
75
|
upId: upId.toString()
|
|
@@ -11,12 +11,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.TagTreeItem = void 0;
|
|
13
13
|
const data_mapping_enum_1 = require("../enum/data-mapping.enum");
|
|
14
|
+
const co_document_1 = require("./co-document");
|
|
14
15
|
const tree_object_1 = require("./tree-object");
|
|
15
16
|
const business_object_data_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/business-object-data.decorator");
|
|
16
17
|
const search_property_state_enum_1 = require("@colijnit/ioneconnector/build/enum/search-property-state.enum");
|
|
17
18
|
const sort_type_enum_1 = require("@colijnit/ioneconnector/build/enum/sort-type.enum");
|
|
18
19
|
const sort_direction_1 = require("@colijnit/ioneconnector/build/enum/sort-direction");
|
|
19
20
|
const date_field_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/date-field.decorator");
|
|
21
|
+
const complex_field_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/complex-field.decorator");
|
|
20
22
|
let TagTreeItem = class TagTreeItem extends tree_object_1.TreeObject {
|
|
21
23
|
constructor() {
|
|
22
24
|
super();
|
|
@@ -29,6 +31,10 @@ __decorate([
|
|
|
29
31
|
date_field_decorator_1.DateField(),
|
|
30
32
|
__metadata("design:type", Date)
|
|
31
33
|
], TagTreeItem.prototype, "creationDate", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
complex_field_decorator_1.ComplexField(co_document_1.CoDocument),
|
|
36
|
+
__metadata("design:type", co_document_1.CoDocument)
|
|
37
|
+
], TagTreeItem.prototype, "image", void 0);
|
|
32
38
|
TagTreeItem = __decorate([
|
|
33
39
|
business_object_data_decorator_1.BusinessObjectData({
|
|
34
40
|
name: "TagTreeItem",
|