@colijnit/articleapi 258.1.5 → 259.1.0
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 +10 -0
- package/build/articles-public.d.ts +1 -0
- package/build/articles-public.js +5 -0
- package/build/articles.d.ts +2 -0
- package/build/articles.js +19 -0
- package/build/enum/article-method.enum.d.ts +2 -1
- package/build/enum/article-method.enum.js +1 -0
- package/build/enum/public-service-method.d.ts +2 -1
- package/build/enum/public-service-method.js +1 -0
- package/build/ione-api-articles.d.ts +1 -0
- package/build/model/article-full-object.d.ts +1 -0
- package/build/model/article-full-object.js +3 -0
- package/build/model/article-transaction.bo.d.ts +1 -0
- package/package.json +5 -5
package/build/articles-auth.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ export declare class ArticlesAuth extends IoneApiArticles {
|
|
|
52
52
|
getWarehouses(goodId: number): Promise<DataServiceResponseData>;
|
|
53
53
|
getFrozenArticle(configuratorStatistics: ConfiguratorStatisticsEnvironment, showLoader: boolean, instanceId: string): Promise<DataServiceResponseData>;
|
|
54
54
|
getJsonArticleFlatTree(goodId: number, showLoader: boolean): Promise<DataServiceResponseData>;
|
|
55
|
+
getGeneratedArtDirectly(goodId: number, showLoader: boolean): Promise<DataServiceResponseData>;
|
|
55
56
|
getTurnoverGroupImages(category: string, showLoader: boolean): Promise<DataServiceResponseData>;
|
|
56
57
|
getMainArticles(articleNumber: string, description: string, paging: PagingParameters, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
57
58
|
updateLocation(updateArticleStockInfo: UpdateArticleStockInfo): Promise<DataServiceResponseData>;
|
package/build/articles-auth.js
CHANGED
|
@@ -343,6 +343,16 @@ export class ArticlesAuth extends IoneApiArticles {
|
|
|
343
343
|
};
|
|
344
344
|
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
345
345
|
}
|
|
346
|
+
getGeneratedArtDirectly(goodId, showLoader) {
|
|
347
|
+
const params = { goodId: goodId };
|
|
348
|
+
const data = {
|
|
349
|
+
methodName: ArticleMethod.getGeneratedArtDirectly,
|
|
350
|
+
moduleName: ModuleName.Articles,
|
|
351
|
+
refCursorAsArray: true,
|
|
352
|
+
parameterValues: params
|
|
353
|
+
};
|
|
354
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
355
|
+
}
|
|
346
356
|
getTurnoverGroupImages(category, showLoader) {
|
|
347
357
|
return __awaiter(this, void 0, void 0, function* () {
|
|
348
358
|
const params = {};
|
|
@@ -53,6 +53,7 @@ export declare class ArticlesPublic extends IoneApiArticles {
|
|
|
53
53
|
getWarehouses(goodId: number): Promise<DataServiceResponseData>;
|
|
54
54
|
getFrozenArticle(configuratorStatistics: ConfiguratorStatisticsEnvironment, showLoader: boolean, instanceId: string): Promise<DataServiceResponseData>;
|
|
55
55
|
getJsonArticleFlatTree(goodId: number, showLoader: boolean): Promise<DataServiceResponseData>;
|
|
56
|
+
getGeneratedArtDirectly(goodId: number, showLoader: boolean): Promise<DataServiceResponseData>;
|
|
56
57
|
getTurnoverGroupImages(category: string, showLoader: boolean): Promise<DataServiceResponseData>;
|
|
57
58
|
getMainArticles(articleNumber: string, description: string, paging: PagingParameters, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
58
59
|
updateLocation(updateArticleStockInfo: UpdateArticleStockInfo): Promise<DataServiceResponseData>;
|
package/build/articles-public.js
CHANGED
|
@@ -168,6 +168,11 @@ export class ArticlesPublic extends IoneApiArticles {
|
|
|
168
168
|
const data = Object.assign(Object.assign({}, this.createServiceRequestData()), { parameterValues: params });
|
|
169
169
|
return this._call(PublicServiceMethod.GetArticleTree, data, showLoader);
|
|
170
170
|
}
|
|
171
|
+
getGeneratedArtDirectly(goodId, showLoader) {
|
|
172
|
+
const params = { goodId: goodId };
|
|
173
|
+
const data = Object.assign(Object.assign({}, this.createServiceRequestData()), { parameterValues: params });
|
|
174
|
+
return this._call(PublicServiceMethod.getGeneratedArtDirectly, data, showLoader);
|
|
175
|
+
}
|
|
171
176
|
getTurnoverGroupImages(category, showLoader) {
|
|
172
177
|
const params = {};
|
|
173
178
|
if (category) {
|
package/build/articles.d.ts
CHANGED
|
@@ -117,6 +117,7 @@ export declare class Articles {
|
|
|
117
117
|
getCategoryDesigns(): Promise<DataServiceResponseData>;
|
|
118
118
|
getJsonConfiguredArticles(configuratorStatistics?: ConfiguratorStatisticsEnvironment, showLoader?: boolean, instanceId?: string): Promise<DataServiceResponseData>;
|
|
119
119
|
getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, externalSource?: boolean, showLoader?: boolean, instanceId?: string, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
|
|
120
|
+
getGeneratedArtDirectly(goodId: number, showLoader: boolean): Promise<string>;
|
|
120
121
|
static createConnector(isPublicSession: boolean, sessionExists: boolean): IoneApiArticles;
|
|
121
122
|
getRequestUpload(uploadType: string, fileName: string, fileSize: number, fileHash: string, uploadId?: string): Promise<DataServiceResponseData>;
|
|
122
123
|
uploadFilePart(uploadId: string, uploadType: string, partOffset: number, partSize: number, partContent: any, partHash: string): Promise<DataServiceResponseData>;
|
|
@@ -125,4 +126,5 @@ export declare class Articles {
|
|
|
125
126
|
cancelFileUpload(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
|
|
126
127
|
private _getFrozenArticle;
|
|
127
128
|
private _getArticleFlatTree;
|
|
129
|
+
private _getGeneratedArtDirectly;
|
|
128
130
|
}
|
package/build/articles.js
CHANGED
|
@@ -307,6 +307,14 @@ export class Articles {
|
|
|
307
307
|
resolve(JSON.stringify(returnObject));
|
|
308
308
|
}));
|
|
309
309
|
}
|
|
310
|
+
getGeneratedArtDirectly(goodId, showLoader) {
|
|
311
|
+
return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
|
|
312
|
+
const generatedArticle = yield this._getGeneratedArtDirectly(goodId, showLoader);
|
|
313
|
+
if (generatedArticle) {
|
|
314
|
+
resolve(generatedArticle);
|
|
315
|
+
}
|
|
316
|
+
}));
|
|
317
|
+
}
|
|
310
318
|
static createConnector(isPublicSession, sessionExists) {
|
|
311
319
|
if (!isPublicSession || sessionExists) {
|
|
312
320
|
return new ArticlesAuth();
|
|
@@ -368,4 +376,15 @@ export class Articles {
|
|
|
368
376
|
}
|
|
369
377
|
});
|
|
370
378
|
}
|
|
379
|
+
_getGeneratedArtDirectly(goodId, showLoader) {
|
|
380
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
381
|
+
const generatedArticle = yield this.articles.getGeneratedArtDirectly(goodId, showLoader);
|
|
382
|
+
if (generatedArticle && generatedArticle.validationResult && generatedArticle.validationResult.success) {
|
|
383
|
+
if (generatedArticle.resultObject) {
|
|
384
|
+
return generatedArticle.resultObject;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
return;
|
|
388
|
+
});
|
|
389
|
+
}
|
|
371
390
|
}
|
|
@@ -46,5 +46,6 @@ export declare enum ArticleMethod {
|
|
|
46
46
|
NavigateTo = "navigateTo",
|
|
47
47
|
SelectorMatchTable = "selectorMatchTabel",
|
|
48
48
|
GetAnswerTexts = "getAnswerTexts",
|
|
49
|
-
PrintPriceStickers = "printPriceStickers"
|
|
49
|
+
PrintPriceStickers = "printPriceStickers",
|
|
50
|
+
getGeneratedArtDirectly = "getGeneratedArtDirectly"
|
|
50
51
|
}
|
|
@@ -48,4 +48,5 @@ export var ArticleMethod;
|
|
|
48
48
|
ArticleMethod["SelectorMatchTable"] = "selectorMatchTabel";
|
|
49
49
|
ArticleMethod["GetAnswerTexts"] = "getAnswerTexts";
|
|
50
50
|
ArticleMethod["PrintPriceStickers"] = "printPriceStickers";
|
|
51
|
+
ArticleMethod["getGeneratedArtDirectly"] = "getGeneratedArtDirectly";
|
|
51
52
|
})(ArticleMethod || (ArticleMethod = {}));
|
|
@@ -86,5 +86,6 @@ export declare enum PublicServiceMethod {
|
|
|
86
86
|
GetTurnoverGroupsUsedInArticles = "getTurnoverGroupsUsedInArticles",
|
|
87
87
|
getBrandsUsedInArticles = "getBrandsUsedInArticles",
|
|
88
88
|
GetCatalogDefinitions = "getCatalogDefinitions",
|
|
89
|
-
GetExternalSource = "getExternalSource"
|
|
89
|
+
GetExternalSource = "getExternalSource",
|
|
90
|
+
getGeneratedArtDirectly = "getGeneratedArtDirectly"
|
|
90
91
|
}
|
|
@@ -88,4 +88,5 @@ export var PublicServiceMethod;
|
|
|
88
88
|
PublicServiceMethod["getBrandsUsedInArticles"] = "getBrandsUsedInArticles";
|
|
89
89
|
PublicServiceMethod["GetCatalogDefinitions"] = "getCatalogDefinitions";
|
|
90
90
|
PublicServiceMethod["GetExternalSource"] = "getExternalSource";
|
|
91
|
+
PublicServiceMethod["getGeneratedArtDirectly"] = "getGeneratedArtDirectly";
|
|
91
92
|
})(PublicServiceMethod || (PublicServiceMethod = {}));
|
|
@@ -58,6 +58,7 @@ export declare abstract class IoneApiArticles {
|
|
|
58
58
|
abstract getWarehouses(goodId: number): Promise<DataServiceResponseData>;
|
|
59
59
|
abstract getFrozenArticle(configuratorStatistics: ConfiguratorStatisticsEnvironment, showLoader: boolean, instanceId: string): Promise<DataServiceResponseData>;
|
|
60
60
|
abstract getJsonArticleFlatTree(goodId: number, showLoader: boolean): Promise<DataServiceResponseData>;
|
|
61
|
+
abstract getGeneratedArtDirectly(goodId: number, showLoader: boolean): Promise<DataServiceResponseData>;
|
|
61
62
|
abstract getTurnoverGroupImages(category: string, showLoader: boolean): Promise<DataServiceResponseData>;
|
|
62
63
|
abstract getMainArticles(articleNumber: string, description: string, paging: PagingParameters): Promise<DataServiceResponseData>;
|
|
63
64
|
abstract updateLocation(updateArticleStockInfo: UpdateArticleStockInfo): Promise<DataServiceResponseData>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/articleapi",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "259.1.0",
|
|
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,12 +23,12 @@
|
|
|
23
23
|
"rxjs": "6.6.3"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@colijnit/ioneconnector": ">=
|
|
27
|
-
"@colijnit/mainapi": ">=
|
|
26
|
+
"@colijnit/ioneconnector": ">=259.1.0",
|
|
27
|
+
"@colijnit/mainapi": ">=259.1.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@colijnit/ioneconnector": "
|
|
31
|
-
"@colijnit/mainapi": "
|
|
30
|
+
"@colijnit/ioneconnector": "259.1.0",
|
|
31
|
+
"@colijnit/mainapi": "259.1.0",
|
|
32
32
|
"@types/jest": "^24.0.13",
|
|
33
33
|
"grunt": "^1.0.3",
|
|
34
34
|
"grunt-clean": "^0.4.0",
|