@colijnit/articleapi 258.1.4 → 258.1.6

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.
@@ -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>;
@@ -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>;
@@ -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) {
@@ -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>;
@@ -157,5 +157,6 @@ export declare class ArticleFullObject extends BusinessObject {
157
157
  warranty: any;
158
158
  weight: any;
159
159
  width: any;
160
+ isConfigurable: boolean;
160
161
  getId(): string;
161
162
  }
@@ -44,3 +44,6 @@ __decorate([
44
44
  __decorate([
45
45
  ComplexArray(CoText)
46
46
  ], ArticleFullObject.prototype, "texts", void 0);
47
+ __decorate([
48
+ BooleanText("T")
49
+ ], ArticleFullObject.prototype, "isConfigurable", void 0);
@@ -16,4 +16,6 @@ export declare class ArticleTransaction extends BusinessObject {
16
16
  reserved: string;
17
17
  warehouseDescription: string;
18
18
  warehouseNumber: number;
19
+ batchNo: string;
20
+ serialNo: string;
19
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/articleapi",
3
- "version": "258.1.4",
3
+ "version": "258.1.6",
4
4
  "scripts": {
5
5
  "build": "grunt clean && tsc",
6
6
  "browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",
@@ -27,7 +27,7 @@
27
27
  "@colijnit/mainapi": ">=258.1.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@colijnit/ioneconnector": "258.1.0",
30
+ "@colijnit/ioneconnector": "258.1.2",
31
31
  "@colijnit/mainapi": "258.1.0",
32
32
  "@types/jest": "^24.0.13",
33
33
  "grunt": "^1.0.3",
@@ -1,9 +0,0 @@
1
- export declare enum ExternalSourceGroup {
2
- Catalog = "CATALOG",
3
- Financial = "FINANCIAL",
4
- LogisticServiceProviders = "LOGISTIC_SERVICE_PROVIDERS",
5
- PaymentServiceProvider = "PAYMENT_SERVICE_PROVIDER",
6
- Verzuim = "VERZUIM",
7
- Deprecated = "DEPRECATED",
8
- None = "NONE"
9
- }
@@ -1,10 +0,0 @@
1
- export var ExternalSourceGroup;
2
- (function (ExternalSourceGroup) {
3
- ExternalSourceGroup["Catalog"] = "CATALOG";
4
- ExternalSourceGroup["Financial"] = "FINANCIAL";
5
- ExternalSourceGroup["LogisticServiceProviders"] = "LOGISTIC_SERVICE_PROVIDERS";
6
- ExternalSourceGroup["PaymentServiceProvider"] = "PAYMENT_SERVICE_PROVIDER";
7
- ExternalSourceGroup["Verzuim"] = "VERZUIM";
8
- ExternalSourceGroup["Deprecated"] = "DEPRECATED";
9
- ExternalSourceGroup["None"] = "NONE";
10
- })(ExternalSourceGroup || (ExternalSourceGroup = {}));