@colijnit/articleapi 258.1.2 → 258.1.4
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
CHANGED
|
@@ -50,7 +50,7 @@ export declare class ArticlesAuth extends IoneApiArticles {
|
|
|
50
50
|
getArticleFullObject(id: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
51
51
|
getArticleFlat(sku: string): Promise<DataServiceResponseData>;
|
|
52
52
|
getWarehouses(goodId: number): Promise<DataServiceResponseData>;
|
|
53
|
-
getFrozenArticle(configuratorStatistics: ConfiguratorStatisticsEnvironment, showLoader: boolean, instanceId:
|
|
53
|
+
getFrozenArticle(configuratorStatistics: ConfiguratorStatisticsEnvironment, showLoader: boolean, instanceId: string): Promise<DataServiceResponseData>;
|
|
54
54
|
getJsonArticleFlatTree(goodId: number, showLoader: boolean): Promise<DataServiceResponseData>;
|
|
55
55
|
getTurnoverGroupImages(category: string, showLoader: boolean): Promise<DataServiceResponseData>;
|
|
56
56
|
getMainArticles(articleNumber: string, description: string, paging: PagingParameters, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
@@ -51,7 +51,7 @@ export declare class ArticlesPublic extends IoneApiArticles {
|
|
|
51
51
|
getArticleFullObject(goodId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
52
52
|
getArticleFlat(sku: string): Promise<DataServiceResponseData>;
|
|
53
53
|
getWarehouses(goodId: number): Promise<DataServiceResponseData>;
|
|
54
|
-
getFrozenArticle(configuratorStatistics: ConfiguratorStatisticsEnvironment, showLoader: boolean, instanceId:
|
|
54
|
+
getFrozenArticle(configuratorStatistics: ConfiguratorStatisticsEnvironment, showLoader: boolean, instanceId: string): Promise<DataServiceResponseData>;
|
|
55
55
|
getJsonArticleFlatTree(goodId: number, showLoader: boolean): Promise<DataServiceResponseData>;
|
|
56
56
|
getTurnoverGroupImages(category: string, showLoader: boolean): Promise<DataServiceResponseData>;
|
|
57
57
|
getMainArticles(articleNumber: string, description: string, paging: PagingParameters, showLoader?: boolean): Promise<DataServiceResponseData>;
|
package/build/articles.d.ts
CHANGED
|
@@ -39,7 +39,9 @@ export declare class Articles {
|
|
|
39
39
|
private _connector;
|
|
40
40
|
private boFactory;
|
|
41
41
|
constructor(options?: Options);
|
|
42
|
+
destroy(): void;
|
|
42
43
|
connect(url?: string, schema?: string, version?: string): Promise<LoginResponse>;
|
|
44
|
+
logOut(): void;
|
|
43
45
|
searchArticles(request: ArticleExtendedRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
44
46
|
searchArticlesLight(request: ArticleExtendedRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
45
47
|
searchArticlesForTileView(request: ArticleStockSearchRequest, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
@@ -113,8 +115,8 @@ export declare class Articles {
|
|
|
113
115
|
getArticleListWithBarcodeArticleNrEanCode(searchString: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
114
116
|
getCategoryTypes(): Promise<DataServiceResponseData>;
|
|
115
117
|
getCategoryDesigns(): Promise<DataServiceResponseData>;
|
|
116
|
-
getJsonConfiguredArticles(configuratorStatistics?: ConfiguratorStatisticsEnvironment, showLoader?: boolean, instanceId?:
|
|
117
|
-
getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, externalSource?: boolean, showLoader?: boolean, instanceId?:
|
|
118
|
+
getJsonConfiguredArticles(configuratorStatistics?: ConfiguratorStatisticsEnvironment, showLoader?: boolean, instanceId?: string): Promise<DataServiceResponseData>;
|
|
119
|
+
getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, externalSource?: boolean, showLoader?: boolean, instanceId?: string, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
|
|
118
120
|
static createConnector(isPublicSession: boolean, sessionExists: boolean): IoneApiArticles;
|
|
119
121
|
getRequestUpload(uploadType: string, fileName: string, fileSize: number, fileHash: string, uploadId?: string): Promise<DataServiceResponseData>;
|
|
120
122
|
uploadFilePart(uploadId: string, uploadType: string, partOffset: number, partSize: number, partContent: any, partHash: string): Promise<DataServiceResponseData>;
|
package/build/articles.js
CHANGED
|
@@ -40,11 +40,17 @@ export class Articles {
|
|
|
40
40
|
this.connectionAborted = this._connector.connectionAborted;
|
|
41
41
|
this.connectionResetInactivity = this._connector.connectionResetInactivity;
|
|
42
42
|
}
|
|
43
|
+
destroy() {
|
|
44
|
+
this._connector = null;
|
|
45
|
+
}
|
|
43
46
|
connect(url, schema, version) {
|
|
44
47
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
48
|
return this._connector.connect(url, schema, version);
|
|
46
49
|
});
|
|
47
50
|
}
|
|
51
|
+
logOut() {
|
|
52
|
+
this._connector.logOut();
|
|
53
|
+
}
|
|
48
54
|
searchArticles(request, showLoader = true) {
|
|
49
55
|
return this.articles.searchArticles(request, showLoader);
|
|
50
56
|
}
|
|
@@ -56,7 +56,7 @@ export declare abstract class IoneApiArticles {
|
|
|
56
56
|
abstract getArticleFullObject(id: number, showLoader: boolean): Promise<DataServiceResponseData>;
|
|
57
57
|
abstract getArticleFlat(sku: string): Promise<DataServiceResponseData>;
|
|
58
58
|
abstract getWarehouses(goodId: number): Promise<DataServiceResponseData>;
|
|
59
|
-
abstract getFrozenArticle(configuratorStatistics: ConfiguratorStatisticsEnvironment, showLoader: boolean, instanceId:
|
|
59
|
+
abstract getFrozenArticle(configuratorStatistics: ConfiguratorStatisticsEnvironment, showLoader: boolean, instanceId: string): Promise<DataServiceResponseData>;
|
|
60
60
|
abstract getJsonArticleFlatTree(goodId: number, showLoader: boolean): Promise<DataServiceResponseData>;
|
|
61
61
|
abstract getTurnoverGroupImages(category: string, showLoader: boolean): Promise<DataServiceResponseData>;
|
|
62
62
|
abstract getMainArticles(articleNumber: string, description: string, paging: PagingParameters): Promise<DataServiceResponseData>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/articleapi",
|
|
3
|
-
"version": "258.1.
|
|
3
|
+
"version": "258.1.4",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "grunt clean && tsc",
|
|
6
6
|
"browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"rxjs": "6.6.3"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@colijnit/ioneconnector": ">=258.1.
|
|
26
|
+
"@colijnit/ioneconnector": ">=258.1.2",
|
|
27
27
|
"@colijnit/mainapi": ">=258.1.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|