@colijnit/articleapi 256.1.8 → 256.1.10

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.
@@ -64,7 +64,7 @@ export declare class ArticlesAuth extends IoneApiArticles {
64
64
  getArticleStockInformation(goodId: number): Promise<DataServiceResponseData>;
65
65
  getArticlePrice(request: GetArticlePriceRequest): Promise<DataServiceResponseData>;
66
66
  getGoodIdFromArticleNr(sku: string): Promise<DataServiceResponseData>;
67
- getArticleQuickSel(goodId: number, branch: string): Promise<DataServiceResponseData>;
67
+ getArticleQuickSel(goodId: number, branch: string, includeBody?: boolean, includeThumbnail?: boolean): Promise<DataServiceResponseData>;
68
68
  getSuperArticleQuickSel(id: string, branch: string): Promise<DataServiceResponseData>;
69
69
  getSingleImage(nodeId: number | string, publication?: number, includeMimetype?: boolean, thumb?: boolean): Promise<DataServiceResponseData>;
70
70
  getDocumentContent(id: number, thumbnail?: boolean): Promise<DataServiceResponseData>;
@@ -505,11 +505,13 @@ export class ArticlesAuth extends IoneApiArticles {
505
505
  return resolve(this._call(DataServiceMethod.ExecuteMethod, data));
506
506
  });
507
507
  }
508
- getArticleQuickSel(goodId, branch) {
508
+ getArticleQuickSel(goodId, branch, includeBody = true, includeThumbnail = false) {
509
509
  const params = { goodId: goodId + "" };
510
510
  if (this.branchNr !== undefined && this.branchNr !== "") {
511
511
  params.branchNr = this.branchNr;
512
512
  }
513
+ params.includeBody = includeBody ? 'T' : 'F';
514
+ params.includeThumbnail = includeThumbnail ? 'T' : 'F';
513
515
  const data = {
514
516
  methodName: ArticleMethod.ArticleQuickSel,
515
517
  moduleName: ModuleName.Articles,
@@ -89,7 +89,7 @@ export declare class ArticlesPublic extends IoneApiArticles {
89
89
  getDeliveryPrognosis(goodId: number, branchNr?: string): Promise<DataServiceResponseData>;
90
90
  getSelectorDeliveryDate(branchNr?: string): Promise<any>;
91
91
  getDeliveryDate2(goodId: number, branchNr?: string): Promise<any>;
92
- getArticleQuickSel(goodId: number, branch: string): Promise<DataServiceResponseData>;
92
+ getArticleQuickSel(goodId: number, branch: string, includeBody?: boolean, includeThumbnail?: boolean): Promise<DataServiceResponseData>;
93
93
  getSuperArticleQuickSel(id: string, branch: string): Promise<DataServiceResponseData>;
94
94
  getWebviewStartupInfo(): Promise<DataServiceResponseData>;
95
95
  storeCatFarmCompositionArticle(): Promise<DataServiceResponseData>;
@@ -372,11 +372,13 @@ export class ArticlesPublic extends IoneApiArticles {
372
372
  return this._call(PublicServiceMethod.GetDeliveryDate2, data);
373
373
  });
374
374
  }
375
- getArticleQuickSel(goodId, branch) {
375
+ getArticleQuickSel(goodId, branch, includeBody = true, includeThumbnail = false) {
376
376
  const params = { goodId: goodId };
377
377
  if (branch) {
378
378
  params.branchNr = branch;
379
379
  }
380
+ params.includeBody = includeBody ? 'T' : 'F';
381
+ params.includeThumbnail = includeThumbnail ? 'T' : 'F';
380
382
  const data = Object.assign(Object.assign({}, this.createServiceRequestData()), { parameterValues: params });
381
383
  return this._call(PublicServiceMethod.ArticleQuickSel, data);
382
384
  }
@@ -85,7 +85,7 @@ export declare class Articles {
85
85
  getGoodIdFromArticleNr(skuOrId: string): Promise<DataServiceResponseData>;
86
86
  getSingleImage(nodeId: number | string, publication: number, includeMimetype: boolean, thumb: boolean): Promise<DataServiceResponseData>;
87
87
  getDocumentContent(id: number, thumbnail?: boolean): Promise<DataServiceResponseData>;
88
- getArticleQuickSel(goodId: number, branch: string): Promise<DataServiceResponseData>;
88
+ getArticleQuickSel(goodId: number, branch: string, includeBody?: boolean, includeThumbnail?: boolean): Promise<DataServiceResponseData>;
89
89
  getSuperArticleQuickSel(id: string, branch: string): Promise<DataServiceResponseData>;
90
90
  commit(): Promise<DataServiceResponseData>;
91
91
  getInOutCollection(languageCode: string): Promise<DataServiceResponseData>;
package/build/articles.js CHANGED
@@ -176,8 +176,8 @@ export class Articles {
176
176
  getDocumentContent(id, thumbnail = true) {
177
177
  return this.articles.getDocumentContent(id, thumbnail);
178
178
  }
179
- getArticleQuickSel(goodId, branch) {
180
- return this.articles.getArticleQuickSel(goodId, branch);
179
+ getArticleQuickSel(goodId, branch, includeBody = true, includeThumbnail = false) {
180
+ return this.articles.getArticleQuickSel(goodId, branch, includeBody, includeThumbnail);
181
181
  }
182
182
  getSuperArticleQuickSel(id, branch) {
183
183
  return this.articles.getSuperArticleQuickSel(id, branch);
@@ -89,7 +89,7 @@ export declare abstract class IoneApiArticles {
89
89
  abstract getDeliveryPrognosis(goodId: number, branchNr: string): Promise<DataServiceResponseData>;
90
90
  abstract getSelectorDeliveryDate(): Promise<DataServiceResponseData>;
91
91
  abstract getDeliveryDate2(goodId: number): Promise<DataServiceResponseData>;
92
- abstract getArticleQuickSel(goodId: number, branch: string): Promise<DataServiceResponseData>;
92
+ abstract getArticleQuickSel(goodId: number, branch: string, includeBody: boolean, includeThumbnail: boolean): Promise<DataServiceResponseData>;
93
93
  abstract getSuperArticleQuickSel(id: string, branch: string): Promise<DataServiceResponseData>;
94
94
  abstract getPrintStockStickers(request: PrintStockStickers): Promise<DataServiceResponseData>;
95
95
  abstract printPriceStickers(request: PrintPriceStickersRequest): Promise<DataServiceResponseData>;
@@ -11,6 +11,7 @@ export declare class ArticleExtendedRequest {
11
11
  deliveryCostsArticles?: boolean;
12
12
  showConfiguredArticles?: boolean;
13
13
  active?: string;
14
+ inStock?: string;
14
15
  rangeBarcode?: string;
15
16
  rangeArticleGroup?: string;
16
17
  rangeConcept?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/articleapi",
3
- "version": "256.1.8",
3
+ "version": "256.1.10",
4
4
  "scripts": {
5
5
  "build": "grunt clean && tsc",
6
6
  "browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",