@colijnit/articleapi 261.1.1 → 261.1.2

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.
@@ -53,6 +53,7 @@ export declare class ArticlesAuth extends IoneApiArticles {
53
53
  getFrozenArticle(configuratorStatistics: ConfiguratorStatisticsEnvironment, showLoader: boolean, instanceId: string): Promise<DataServiceResponseData>;
54
54
  getJsonArticleFlatTree(goodId: number, showLoader: boolean): Promise<DataServiceResponseData>;
55
55
  getGeneratedArtDirectly(goodId: number, showLoader: boolean): Promise<DataServiceResponseData>;
56
+ storePreset(): 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>;
@@ -353,6 +353,16 @@ export class ArticlesAuth extends IoneApiArticles {
353
353
  };
354
354
  return this._call(DataServiceMethod.ExecuteMethod, data);
355
355
  }
356
+ storePreset() {
357
+ const params = {};
358
+ const data = {
359
+ methodName: ArticleMethod.StorePreset,
360
+ moduleName: ModuleName.Articles,
361
+ refCursorAsArray: true,
362
+ parameterValues: params
363
+ };
364
+ return this._call(DataServiceMethod.ExecuteMethod, data);
365
+ }
356
366
  getTurnoverGroupImages(category, showLoader) {
357
367
  return __awaiter(this, void 0, void 0, function* () {
358
368
  const params = {};
@@ -54,6 +54,7 @@ export declare class ArticlesPublic extends IoneApiArticles {
54
54
  getFrozenArticle(configuratorStatistics: ConfiguratorStatisticsEnvironment, showLoader: boolean, instanceId: string): Promise<DataServiceResponseData>;
55
55
  getJsonArticleFlatTree(goodId: number, showLoader: boolean): Promise<DataServiceResponseData>;
56
56
  getGeneratedArtDirectly(goodId: number, showLoader: boolean): Promise<DataServiceResponseData>;
57
+ storePreset(showLoader?: boolean): Promise<DataServiceResponseData>;
57
58
  getTurnoverGroupImages(category: string, showLoader: boolean): Promise<DataServiceResponseData>;
58
59
  getMainArticles(articleNumber: string, description: string, paging: PagingParameters, showLoader?: boolean): Promise<DataServiceResponseData>;
59
60
  updateLocation(updateArticleStockInfo: UpdateArticleStockInfo): Promise<DataServiceResponseData>;
@@ -173,6 +173,11 @@ export class ArticlesPublic extends IoneApiArticles {
173
173
  const data = Object.assign(Object.assign({}, this.createServiceRequestData()), { parameterValues: params });
174
174
  return this._call(PublicServiceMethod.getGeneratedArtDirectly, data, showLoader);
175
175
  }
176
+ storePreset(showLoader = false) {
177
+ const params = {};
178
+ const data = Object.assign(Object.assign({}, this.createServiceRequestData()), { parameterValues: params });
179
+ return this._call(PublicServiceMethod.StorePreset, data, showLoader);
180
+ }
176
181
  getTurnoverGroupImages(category, showLoader) {
177
182
  const params = {};
178
183
  if (category) {
@@ -118,6 +118,7 @@ export declare class Articles {
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
120
  getGeneratedArtDirectly(goodId: number, showLoader: boolean): Promise<string>;
121
+ storePreset(): Promise<DataServiceResponseData>;
121
122
  static createConnector(isPublicSession: boolean, sessionExists: boolean): IoneApiArticles;
122
123
  getRequestUpload(uploadType: string, fileName: string, fileSize: number, fileHash: string, uploadId?: string): Promise<DataServiceResponseData>;
123
124
  uploadFilePart(uploadId: string, uploadType: string, partOffset: number, partSize: number, partContent: any, partHash: string): Promise<DataServiceResponseData>;
package/build/articles.js CHANGED
@@ -315,6 +315,9 @@ export class Articles {
315
315
  }
316
316
  }));
317
317
  }
318
+ storePreset() {
319
+ return this.articles.storePreset();
320
+ }
318
321
  static createConnector(isPublicSession, sessionExists) {
319
322
  if (!isPublicSession || sessionExists) {
320
323
  return new ArticlesAuth();
@@ -47,5 +47,6 @@ export declare enum ArticleMethod {
47
47
  SelectorMatchTable = "selectorMatchTabel",
48
48
  GetAnswerTexts = "getAnswerTexts",
49
49
  PrintPriceStickers = "printPriceStickers",
50
- getGeneratedArtDirectly = "getGeneratedArtDirectly"
50
+ getGeneratedArtDirectly = "getGeneratedArtDirectly",
51
+ StorePreset = "storePreset"
51
52
  }
@@ -49,4 +49,5 @@ export var ArticleMethod;
49
49
  ArticleMethod["GetAnswerTexts"] = "getAnswerTexts";
50
50
  ArticleMethod["PrintPriceStickers"] = "printPriceStickers";
51
51
  ArticleMethod["getGeneratedArtDirectly"] = "getGeneratedArtDirectly";
52
+ ArticleMethod["StorePreset"] = "storePreset";
52
53
  })(ArticleMethod || (ArticleMethod = {}));
@@ -87,5 +87,6 @@ export declare enum PublicServiceMethod {
87
87
  getBrandsUsedInArticles = "getBrandsUsedInArticles",
88
88
  GetCatalogDefinitions = "getCatalogDefinitions",
89
89
  GetExternalSource = "getExternalSource",
90
- getGeneratedArtDirectly = "getGeneratedArtDirectly"
90
+ getGeneratedArtDirectly = "getGeneratedArtDirectly",
91
+ StorePreset = "storePreset"
91
92
  }
@@ -89,4 +89,5 @@ export var PublicServiceMethod;
89
89
  PublicServiceMethod["GetCatalogDefinitions"] = "getCatalogDefinitions";
90
90
  PublicServiceMethod["GetExternalSource"] = "getExternalSource";
91
91
  PublicServiceMethod["getGeneratedArtDirectly"] = "getGeneratedArtDirectly";
92
+ PublicServiceMethod["StorePreset"] = "storePreset";
92
93
  })(PublicServiceMethod || (PublicServiceMethod = {}));
@@ -108,5 +108,6 @@ export declare abstract class IoneApiArticles {
108
108
  abstract getFileUploadStatus(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
109
109
  abstract getFileUploadComplete(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
110
110
  abstract cancelFileUpload(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
111
+ abstract storePreset(): Promise<DataServiceResponseData>;
111
112
  protected endPoint: string;
112
113
  }
@@ -33,5 +33,6 @@ export declare class ArticleQuickSel extends BusinessObject {
33
33
  stackable: boolean;
34
34
  sku: string;
35
35
  instanceId: string;
36
+ configPresetId: string;
36
37
  getMoodImages(): CoDocument[];
37
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/articleapi",
3
- "version": "261.1.1",
3
+ "version": "261.1.2",
4
4
  "scripts": {
5
5
  "build": "grunt clean && tsc",
6
6
  "browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",