@colijnit/articleapi 300.1.0 → 300.1.2
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/articles-auth.d.ts +1 -0
- package/build/articles-auth.js +11 -0
- package/build/articles-public.d.ts +1 -0
- package/build/articles-public.js +7 -0
- package/build/articles.d.ts +1 -0
- package/build/articles.js +3 -0
- package/build/articles.unit.test.js +8 -3
- package/build/enum/master-data-object-name.enum.d.ts +1 -0
- package/build/enum/master-data-object-name.enum.js +1 -0
- package/build/enum/public-service-method.d.ts +1 -0
- package/build/enum/public-service-method.js +1 -0
- package/build/interface/external-source-article-add.interface.d.ts +2 -2
- package/build/interface/external-source-article-click.interface.d.ts +2 -2
- package/build/ione-api-articles.d.ts +1 -0
- package/build/model/article-transaction.bo.d.ts +3 -0
- package/build/model/article-transaction.bo.js +10 -0
- package/build/model/external-catalog-startup-info.d.ts +3 -3
- package/build/model/external-catalog-startup-info.js +1 -1
- package/build/model/external-source-info.bo.d.ts +18 -0
- package/build/model/external-source-info.bo.js +25 -0
- package/package.json +2 -2
package/build/articles-auth.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export declare class ArticlesAuth extends IoneApiArticles {
|
|
|
48
48
|
getBrandsFilter(request: ArticleExtendedRequest): Promise<DataServiceResponseData>;
|
|
49
49
|
getCatalogDefinitions(showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
50
50
|
getExternalSource(externalSourceId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
51
|
+
getExternalSourceInfo(externalSourceId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
51
52
|
getArticleFullObject(id: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
52
53
|
getArticleFlat(sku: string): Promise<DataServiceResponseData>;
|
|
53
54
|
getWarehouses(goodId: number): Promise<DataServiceResponseData>;
|
package/build/articles-auth.js
CHANGED
|
@@ -283,6 +283,17 @@ export class ArticlesAuth extends IoneApiArticles {
|
|
|
283
283
|
return this._call(DataServiceMethod.SelectSingleObject, data, BackendServiceName.DataService, showLoader);
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
|
+
getExternalSourceInfo(externalSourceId_1) {
|
|
287
|
+
return __awaiter(this, arguments, void 0, function* (externalSourceId, showLoader = true) {
|
|
288
|
+
const data = {
|
|
289
|
+
moduleName: ModuleName.MasterData,
|
|
290
|
+
objectName: MasterDataObjectName.ExternalSourceInfo,
|
|
291
|
+
refCursorAsArray: true,
|
|
292
|
+
objectId: externalSourceId
|
|
293
|
+
};
|
|
294
|
+
return this._call(DataServiceMethod.SelectSingleObject, data, BackendServiceName.DataService, showLoader);
|
|
295
|
+
});
|
|
296
|
+
}
|
|
286
297
|
getArticleFullObject(id, showLoader = true) {
|
|
287
298
|
const data = {
|
|
288
299
|
moduleName: ModuleName.Articles,
|
|
@@ -48,6 +48,7 @@ export declare class ArticlesPublic extends IoneApiArticles {
|
|
|
48
48
|
getBrandsFilter(request: ArticleExtendedRequest): Promise<DataServiceResponseData>;
|
|
49
49
|
getCatalogDefinitions(showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
50
50
|
getExternalSource(externalSourceId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
51
|
+
getExternalSourceInfo(externalSourceId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
51
52
|
getGoodIdFromArticleNr(sku: string): Promise<DataServiceResponseData>;
|
|
52
53
|
getArticleFullObject(goodId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
53
54
|
getArticleFlat(sku: string): Promise<DataServiceResponseData>;
|
package/build/articles-public.js
CHANGED
|
@@ -132,6 +132,13 @@ export class ArticlesPublic extends IoneApiArticles {
|
|
|
132
132
|
return this._call(PublicServiceMethod.GetExternalSource, data, showLoader);
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
|
+
getExternalSourceInfo(externalSourceId_1) {
|
|
136
|
+
return __awaiter(this, arguments, void 0, function* (externalSourceId, showLoader = true) {
|
|
137
|
+
const params = { id: externalSourceId };
|
|
138
|
+
const data = Object.assign(Object.assign({}, this.createServiceRequestData()), { parameterValues: params });
|
|
139
|
+
return this._call(PublicServiceMethod.GetExternalSourceInfo, data, showLoader);
|
|
140
|
+
});
|
|
141
|
+
}
|
|
135
142
|
getGoodIdFromArticleNr(sku) {
|
|
136
143
|
return __awaiter(this, void 0, void 0, function* () {
|
|
137
144
|
const params = { artikelnr: sku };
|
package/build/articles.d.ts
CHANGED
|
@@ -69,6 +69,7 @@ export declare class Articles {
|
|
|
69
69
|
getBrandsFilter(request: ArticleExtendedRequest): Promise<DataServiceResponseData>;
|
|
70
70
|
getCatalogDefinitions(showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
71
71
|
getExternalSource(externalSourceId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
72
|
+
getExternalSourceInfo(externalSourceId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
72
73
|
getArticleFullObject(id: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
73
74
|
getArticleFlat(sku: string): Promise<DataServiceResponseData>;
|
|
74
75
|
getWarehouses(goodId: number): Promise<DataServiceResponseData>;
|
package/build/articles.js
CHANGED
|
@@ -133,6 +133,9 @@ export class Articles {
|
|
|
133
133
|
getExternalSource(externalSourceId, showLoader = true) {
|
|
134
134
|
return this.articles.getExternalSource(externalSourceId, showLoader);
|
|
135
135
|
}
|
|
136
|
+
getExternalSourceInfo(externalSourceId, showLoader = true) {
|
|
137
|
+
return this.articles.getExternalSourceInfo(externalSourceId, showLoader);
|
|
138
|
+
}
|
|
136
139
|
getArticleFullObject(id, showLoader = true) {
|
|
137
140
|
return this.articles.getArticleFullObject(id, showLoader);
|
|
138
141
|
}
|
|
@@ -21,10 +21,10 @@ import { ArticleFlat } from "./model/article-flat.bo";
|
|
|
21
21
|
const localOptions = {
|
|
22
22
|
url: "https://develop.colijn-it.nl/",
|
|
23
23
|
schema: "815",
|
|
24
|
-
version: "
|
|
24
|
+
version: "300",
|
|
25
25
|
useLoginEncryption: true,
|
|
26
|
-
username: "
|
|
27
|
-
password: "
|
|
26
|
+
username: "patrick",
|
|
27
|
+
password: "vankeulen1234567890!"
|
|
28
28
|
};
|
|
29
29
|
const remoteOptions = {
|
|
30
30
|
url: "http://130.62.7.55:8888/ione",
|
|
@@ -240,6 +240,11 @@ describe("ArticlesAPI", () => {
|
|
|
240
240
|
const result = yield articles.getExternalSource(94);
|
|
241
241
|
expect(result).toBeDefined();
|
|
242
242
|
}));
|
|
243
|
+
it('getExternalSourceInfo', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
244
|
+
yield articles.connect();
|
|
245
|
+
const result = yield articles.getExternalSourceInfo(148);
|
|
246
|
+
expect(result).toBeDefined();
|
|
247
|
+
}));
|
|
243
248
|
it('getTurnoverGroupImages', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
244
249
|
const result = yield articles.getTurnoverGroups();
|
|
245
250
|
expect(result).toBeDefined();
|
|
@@ -10,6 +10,7 @@ export declare enum MasterDataObjectName {
|
|
|
10
10
|
DeliveryMethod = "DeliveryMethod",
|
|
11
11
|
DeliveryOption = "DeliveryOption",
|
|
12
12
|
ExternalSource = "ExternalSource",
|
|
13
|
+
ExternalSourceInfo = "ExternalSourceInfo",
|
|
13
14
|
MarketingCode = "MarketingCode",
|
|
14
15
|
PrivacySettingDTO = "PrivacySettingDTO",
|
|
15
16
|
SuperArticle = "SuperArticle",
|
|
@@ -11,6 +11,7 @@ export var MasterDataObjectName;
|
|
|
11
11
|
MasterDataObjectName["DeliveryMethod"] = "DeliveryMethod";
|
|
12
12
|
MasterDataObjectName["DeliveryOption"] = "DeliveryOption";
|
|
13
13
|
MasterDataObjectName["ExternalSource"] = "ExternalSource";
|
|
14
|
+
MasterDataObjectName["ExternalSourceInfo"] = "ExternalSourceInfo";
|
|
14
15
|
MasterDataObjectName["MarketingCode"] = "MarketingCode";
|
|
15
16
|
MasterDataObjectName["PrivacySettingDTO"] = "PrivacySettingDTO";
|
|
16
17
|
MasterDataObjectName["SuperArticle"] = "SuperArticle";
|
|
@@ -87,6 +87,7 @@ export declare enum PublicServiceMethod {
|
|
|
87
87
|
getBrandsUsedInArticles = "getBrandsUsedInArticles",
|
|
88
88
|
GetCatalogDefinitions = "getCatalogDefinitions",
|
|
89
89
|
GetExternalSource = "getExternalSource",
|
|
90
|
+
GetExternalSourceInfo = "getExternalSourceInfo",
|
|
90
91
|
getGeneratedArtDirectly = "getGeneratedArtDirectly",
|
|
91
92
|
StorePreset = "storePreset"
|
|
92
93
|
}
|
|
@@ -88,6 +88,7 @@ export var PublicServiceMethod;
|
|
|
88
88
|
PublicServiceMethod["getBrandsUsedInArticles"] = "getBrandsUsedInArticles";
|
|
89
89
|
PublicServiceMethod["GetCatalogDefinitions"] = "getCatalogDefinitions";
|
|
90
90
|
PublicServiceMethod["GetExternalSource"] = "getExternalSource";
|
|
91
|
+
PublicServiceMethod["GetExternalSourceInfo"] = "getExternalSourceInfo";
|
|
91
92
|
PublicServiceMethod["getGeneratedArtDirectly"] = "getGeneratedArtDirectly";
|
|
92
93
|
PublicServiceMethod["StorePreset"] = "storePreset";
|
|
93
94
|
})(PublicServiceMethod || (PublicServiceMethod = {}));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CatalogDefinition } from '../model/catalog-definition.bo';
|
|
2
|
-
import { ExternalSource } from '../model/external-source.bo';
|
|
3
2
|
import { ArticleFullObject } from '../model/article-full-object';
|
|
3
|
+
import { ExternalSourceInfo } from '../model/external-source-info.bo';
|
|
4
4
|
export interface ExternalSourceArticleAddInterface {
|
|
5
5
|
quantity: number;
|
|
6
6
|
article: string | ArticleFullObject;
|
|
7
7
|
catalogDefinition: CatalogDefinition;
|
|
8
|
-
externalSource:
|
|
8
|
+
externalSource: ExternalSourceInfo;
|
|
9
9
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ArticleListObjectExtended } from '../model/article-list-object-extended.bo';
|
|
2
2
|
import { CatalogDefinition } from '../model/catalog-definition.bo';
|
|
3
|
-
import { ExternalSource } from '../model/external-source.bo';
|
|
4
3
|
import { ExternalSettingsInterface } from './external-settings.interface';
|
|
4
|
+
import { ExternalSourceInfo } from '../model/external-source-info.bo';
|
|
5
5
|
export interface ExternalSourceArticleClickInterface {
|
|
6
6
|
article: string | ArticleListObjectExtended;
|
|
7
7
|
settings: ExternalSettingsInterface;
|
|
8
8
|
catalogDefinition: CatalogDefinition;
|
|
9
|
-
externalSource:
|
|
9
|
+
externalSource: ExternalSourceInfo;
|
|
10
10
|
}
|
|
@@ -54,6 +54,7 @@ export declare abstract class IoneApiArticles {
|
|
|
54
54
|
abstract getBrandsFilter(request: ArticleExtendedRequest): Promise<DataServiceResponseData>;
|
|
55
55
|
abstract getCatalogDefinitions(showLoader: boolean): Promise<DataServiceResponseData>;
|
|
56
56
|
abstract getExternalSource(externalSourceId: number, showLoader: boolean): Promise<DataServiceResponseData>;
|
|
57
|
+
abstract getExternalSourceInfo(externalSourceId: number, showLoader: boolean): Promise<DataServiceResponseData>;
|
|
57
58
|
abstract getArticleFullObject(id: number, showLoader: boolean): Promise<DataServiceResponseData>;
|
|
58
59
|
abstract getArticleFlat(sku: string): Promise<DataServiceResponseData>;
|
|
59
60
|
abstract getWarehouses(goodId: number): Promise<DataServiceResponseData>;
|
|
@@ -4,10 +4,12 @@ export declare class ArticleTransaction extends BusinessObject {
|
|
|
4
4
|
transId: number;
|
|
5
5
|
relationId: number;
|
|
6
6
|
orderTotalExcl: number;
|
|
7
|
+
commissionCode: number;
|
|
7
8
|
type: string;
|
|
8
9
|
transactionDate: Date;
|
|
9
10
|
currencyId: number;
|
|
10
11
|
amountInOrder: number;
|
|
12
|
+
amountAllocated: number;
|
|
11
13
|
orderTotalIncl: number;
|
|
12
14
|
status: string;
|
|
13
15
|
InOrderForStock: number;
|
|
@@ -19,4 +21,5 @@ export declare class ArticleTransaction extends BusinessObject {
|
|
|
19
21
|
batchNo: string;
|
|
20
22
|
serialNo: string;
|
|
21
23
|
lineNr: number;
|
|
24
|
+
commissionCodeDescription: string;
|
|
22
25
|
}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
1
7
|
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
8
|
+
import { NoDbField } from '@colijnit/ioneconnector/build/factory/decorators/no-db-field.decorator';
|
|
2
9
|
export class ArticleTransaction extends BusinessObject {
|
|
3
10
|
}
|
|
11
|
+
__decorate([
|
|
12
|
+
NoDbField()
|
|
13
|
+
], ArticleTransaction.prototype, "commissionCodeDescription", void 0);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BusinessObject } from
|
|
2
|
-
import {
|
|
1
|
+
import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
2
|
+
import { ExternalSourceInfo } from './external-source-info.bo';
|
|
3
3
|
export declare class ExternalCatalogStartupInfo extends BusinessObject {
|
|
4
|
-
externalSource:
|
|
4
|
+
externalSource: ExternalSourceInfo;
|
|
5
5
|
username: string;
|
|
6
6
|
password: string;
|
|
7
7
|
token: string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
2
|
+
import { ExternalSourceParameter } from './external-source-parameter.bo';
|
|
3
|
+
export declare class ExternalSourceInfo extends BusinessObject {
|
|
4
|
+
sourceId: number;
|
|
5
|
+
type: string;
|
|
6
|
+
branchNr: string;
|
|
7
|
+
description: string;
|
|
8
|
+
url: string;
|
|
9
|
+
domain: string;
|
|
10
|
+
schema: string;
|
|
11
|
+
language: string;
|
|
12
|
+
retailFormulas: string[];
|
|
13
|
+
parameters: ExternalSourceParameter[];
|
|
14
|
+
supplierNr: number;
|
|
15
|
+
constructor();
|
|
16
|
+
getId(): number;
|
|
17
|
+
setId(value: number): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
8
|
+
import { ComplexArray } from '@colijnit/ioneconnector/build/factory/decorators/complex-array.decorator';
|
|
9
|
+
import { ExternalSourceParameter } from './external-source-parameter.bo';
|
|
10
|
+
export class ExternalSourceInfo extends BusinessObject {
|
|
11
|
+
constructor() {
|
|
12
|
+
super();
|
|
13
|
+
this.retailFormulas = [];
|
|
14
|
+
this.parameters = [];
|
|
15
|
+
}
|
|
16
|
+
getId() {
|
|
17
|
+
return this.sourceId;
|
|
18
|
+
}
|
|
19
|
+
setId(value) {
|
|
20
|
+
this.sourceId = value;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
__decorate([
|
|
24
|
+
ComplexArray(ExternalSourceParameter)
|
|
25
|
+
], ExternalSourceInfo.prototype, "parameters", void 0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/articleapi",
|
|
3
|
-
"version": "300.1.
|
|
3
|
+
"version": "300.1.2",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "grunt clean && tsc",
|
|
6
6
|
"browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"unit": "jest unit",
|
|
14
14
|
"integration": "jest int"
|
|
15
15
|
},
|
|
16
|
-
"description": "public api for ione backend specific for articles and version
|
|
16
|
+
"description": "public api for ione backend specific for articles and version 3.0.0.",
|
|
17
17
|
"repository": "npm/npm",
|
|
18
18
|
"author": "Colijn IT",
|
|
19
19
|
"license": "ISC",
|