@colijnit/articleapi 255.1.3 → 255.1.5
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 +14 -0
- package/build/articles-public.d.ts +1 -0
- package/build/articles-public.js +4 -0
- package/build/articles.d.ts +1 -0
- package/build/articles.js +3 -0
- package/build/articles.unit.test.js +2 -2
- package/build/interface/external-settings.interface.d.ts +4 -0
- package/build/interface/external-settings.interface.js +1 -0
- package/build/interface/external-source-article-add.interface.d.ts +9 -0
- package/build/interface/external-source-article-add.interface.js +1 -0
- package/build/interface/external-source-article-click.interface.d.ts +10 -0
- package/build/interface/external-source-article-click.interface.js +1 -0
- package/build/ione-api-articles.d.ts +1 -0
- package/package.json +1 -1
package/build/articles-auth.d.ts
CHANGED
|
@@ -93,6 +93,7 @@ export declare class ArticlesAuth extends IoneApiArticles {
|
|
|
93
93
|
transferStock(transferStock: TransferStock): Promise<DataServiceResponseData>;
|
|
94
94
|
getWebviewStartupInfo(request: ExternalCatalogStartupInfoRequest): Promise<DataServiceResponseData>;
|
|
95
95
|
storeCatFarmCompositionArticle(catalogId: number, articleFlatTree: ArticleFlatTreeDTO): Promise<DataServiceResponseData>;
|
|
96
|
+
getArticleListWithBarcodeArticleNrEanCode(searchString: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
96
97
|
private _getDomainCollection;
|
|
97
98
|
private _getMultipleDomainCollection;
|
|
98
99
|
private _callGetSingleImage;
|
package/build/articles-auth.js
CHANGED
|
@@ -780,6 +780,20 @@ export class ArticlesAuth extends IoneApiArticles {
|
|
|
780
780
|
};
|
|
781
781
|
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
782
782
|
}
|
|
783
|
+
getArticleListWithBarcodeArticleNrEanCode(searchString, showLoader) {
|
|
784
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
785
|
+
const params = {
|
|
786
|
+
searchValue: searchString,
|
|
787
|
+
};
|
|
788
|
+
const data = {
|
|
789
|
+
moduleName: ModuleName.Articles,
|
|
790
|
+
methodName: ArticleMethod.GetArticlesByBcArtNrEan,
|
|
791
|
+
refCursorAsArray: true,
|
|
792
|
+
parameterValues: params
|
|
793
|
+
};
|
|
794
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
795
|
+
});
|
|
796
|
+
}
|
|
783
797
|
_getDomainCollection(languageCode, domainName) {
|
|
784
798
|
const params = {
|
|
785
799
|
domainName: domainName,
|
|
@@ -93,6 +93,7 @@ export declare class ArticlesPublic extends IoneApiArticles {
|
|
|
93
93
|
getSuperArticleQuickSel(id: string, branch: string): Promise<DataServiceResponseData>;
|
|
94
94
|
getWebviewStartupInfo(): Promise<DataServiceResponseData>;
|
|
95
95
|
storeCatFarmCompositionArticle(): Promise<DataServiceResponseData>;
|
|
96
|
+
getArticleListWithBarcodeArticleNrEanCode(searchString: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
96
97
|
private createServiceRequestData;
|
|
97
98
|
private _getDomainCollection;
|
|
98
99
|
private _getMultipleDomainCollection;
|
package/build/articles-public.js
CHANGED
|
@@ -398,6 +398,10 @@ export class ArticlesPublic extends IoneApiArticles {
|
|
|
398
398
|
console.warn('storeCatFarmCompositionArticle not implemented');
|
|
399
399
|
return Promise.resolve(new DataServiceResponseData());
|
|
400
400
|
}
|
|
401
|
+
getArticleListWithBarcodeArticleNrEanCode(searchString, showLoader) {
|
|
402
|
+
console.warn('getArticleListWithBarcodeArticleNrEanCode not implemented');
|
|
403
|
+
return Promise.resolve(new DataServiceResponseData());
|
|
404
|
+
}
|
|
401
405
|
createServiceRequestData() {
|
|
402
406
|
const data = { languageCode: this.languageCode };
|
|
403
407
|
return data;
|
package/build/articles.d.ts
CHANGED
|
@@ -111,6 +111,7 @@ export declare class Articles {
|
|
|
111
111
|
getDeliveryDate2(goodId: number): Promise<DataServiceResponseData>;
|
|
112
112
|
getWebviewStartupInfo(request: ExternalCatalogStartupInfoRequest): Promise<DataServiceResponseData>;
|
|
113
113
|
storeCatFarmCompositionArticle(catalogId: number, articleFlatTree: ArticleFlatTreeDTO): Promise<DataServiceResponseData>;
|
|
114
|
+
getArticleListWithBarcodeArticleNrEanCode(searchString: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
114
115
|
getJsonConfiguredArticles(configuratorStatistics?: ConfiguratorStatisticsEnvironment, showLoader?: boolean, instanceId?: number): Promise<DataServiceResponseData>;
|
|
115
116
|
getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, showLoader?: boolean, instanceId?: number, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
|
|
116
117
|
static createConnector(isPublicSession: boolean, sessionExists: boolean): IoneApiArticles;
|
package/build/articles.js
CHANGED
|
@@ -253,6 +253,9 @@ export class Articles {
|
|
|
253
253
|
storeCatFarmCompositionArticle(catalogId, articleFlatTree) {
|
|
254
254
|
return this.articles.storeCatFarmCompositionArticle(catalogId, articleFlatTree);
|
|
255
255
|
}
|
|
256
|
+
getArticleListWithBarcodeArticleNrEanCode(searchString, showLoader) {
|
|
257
|
+
return this.articles.getArticleListWithBarcodeArticleNrEanCode(searchString, showLoader);
|
|
258
|
+
}
|
|
256
259
|
getJsonConfiguredArticles(configuratorStatistics, showLoader = true, instanceId = undefined) {
|
|
257
260
|
return this.articles.getFrozenArticle(configuratorStatistics, showLoader, instanceId);
|
|
258
261
|
}
|
|
@@ -21,7 +21,7 @@ import { ArticleFlat } from "./model/article-flat.bo";
|
|
|
21
21
|
const localOptions = {
|
|
22
22
|
url: "http://localhost:8080/ione",
|
|
23
23
|
schema: "815",
|
|
24
|
-
version: "
|
|
24
|
+
version: "253",
|
|
25
25
|
useLoginEncryption: true,
|
|
26
26
|
username: "elske",
|
|
27
27
|
password: "elske1"
|
|
@@ -42,7 +42,7 @@ const publicOptions = {
|
|
|
42
42
|
describe("ArticlesAPI", () => {
|
|
43
43
|
let articles;
|
|
44
44
|
const articleExtendedRequest = {
|
|
45
|
-
|
|
45
|
+
articleNumber: '1000234793',
|
|
46
46
|
paging: new PagingParameters(1, 20, 20)
|
|
47
47
|
};
|
|
48
48
|
const articleNrArticleExtendedRequest = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CatalogDefinition } from '../model/catalog-definition.bo';
|
|
2
|
+
import { ExternalSource } from '../model/external-source.bo';
|
|
3
|
+
import { ArticleListObjectExtended } from '../model/article-list-object-extended.bo';
|
|
4
|
+
export interface ExternalSourceArticleAddInterface {
|
|
5
|
+
quantity: number;
|
|
6
|
+
article: string | ArticleListObjectExtended;
|
|
7
|
+
catalogDefinition: CatalogDefinition;
|
|
8
|
+
externalSource: ExternalSource;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ArticleListObjectExtended } from '../model/article-list-object-extended.bo';
|
|
2
|
+
import { CatalogDefinition } from '../model/catalog-definition.bo';
|
|
3
|
+
import { ExternalSource } from '../model/external-source.bo';
|
|
4
|
+
import { ExternalSettingsInterface } from './external-settings.interface';
|
|
5
|
+
export interface ExternalSourceArticleClickInterface {
|
|
6
|
+
article: string | ArticleListObjectExtended;
|
|
7
|
+
settings: ExternalSettingsInterface;
|
|
8
|
+
catalogDefinition: CatalogDefinition;
|
|
9
|
+
externalSource: ExternalSource;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -99,5 +99,6 @@ export declare abstract class IoneApiArticles {
|
|
|
99
99
|
abstract getPriceTagPrintLayouts(): Promise<DataServiceResponseData>;
|
|
100
100
|
abstract getWebviewStartupInfo(request: ExternalCatalogStartupInfoRequest): Promise<DataServiceResponseData>;
|
|
101
101
|
abstract storeCatFarmCompositionArticle(catalogId: number, articleFlatTree: ArticleFlatTreeDTO): Promise<DataServiceResponseData>;
|
|
102
|
+
abstract getArticleListWithBarcodeArticleNrEanCode(searchString: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
102
103
|
protected endPoint: string;
|
|
103
104
|
}
|