@colijnit/articleapi 258.1.1 → 258.1.3

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.
@@ -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: number): Promise<DataServiceResponseData>;
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>;
@@ -96,6 +96,11 @@ export declare class ArticlesAuth extends IoneApiArticles {
96
96
  getArticleListWithBarcodeArticleNrEanCode(searchString: string, showLoader?: boolean): Promise<DataServiceResponseData>;
97
97
  getCategoryTypes(): Promise<DataServiceResponseData>;
98
98
  getCategoryDesigns(): Promise<DataServiceResponseData>;
99
+ getRequestUpload(uploadType: string, fileName: string, fileSize: number, fileHash: string, uploadId?: string): Promise<DataServiceResponseData>;
100
+ uploadFilePart(uploadId: string, uploadType: string, partOffset: number, partSize: number, partContent: any, partHash: string): Promise<DataServiceResponseData>;
101
+ getFileUploadStatus(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
102
+ getFileUploadComplete(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
103
+ cancelFileUpload(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
99
104
  private _getDomainCollection;
100
105
  private _getMultipleDomainCollection;
101
106
  private _callGetSingleImage;
@@ -28,6 +28,7 @@ import { ReportingDocumentsMethod } from './enum/reporting-documents-method.enum
28
28
  import { LogisticsMethod } from './enum/logistics-method.enum';
29
29
  import { ExternalCatalogMethod } from "./enum/external-catalog-method.enum";
30
30
  import { ArticleFlatStorageRequest } from "./model/article-flat-storage-request";
31
+ import { ArticleBulkUploadMethodEnum } from './enum/article-bulk-upload.method.enum';
31
32
  export class ArticlesAuth extends IoneApiArticles {
32
33
  constructor() {
33
34
  super(...arguments);
@@ -800,6 +801,78 @@ export class ArticlesAuth extends IoneApiArticles {
800
801
  getCategoryDesigns() {
801
802
  return this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.CategoryDesign);
802
803
  }
804
+ getRequestUpload(uploadType, fileName, fileSize, fileHash, uploadId) {
805
+ const params = {
806
+ uploadType: uploadType,
807
+ fileName: fileName,
808
+ fileSize: fileSize,
809
+ fileHash: fileHash,
810
+ uploadId: uploadId
811
+ };
812
+ const data = {
813
+ moduleName: ModuleName.General,
814
+ methodName: ArticleBulkUploadMethodEnum.FileUploadRequest,
815
+ refCursorAsArray: true,
816
+ parameterValues: params
817
+ };
818
+ return this._call(DataServiceMethod.ExecuteMethod, data);
819
+ }
820
+ uploadFilePart(uploadId, uploadType, partOffset, partSize, partContent, partHash) {
821
+ const params = {
822
+ uploadId: uploadId,
823
+ uploadType: uploadType,
824
+ partOffset: partOffset,
825
+ partSize: partSize,
826
+ partContent: partContent,
827
+ partHash: partHash
828
+ };
829
+ const data = {
830
+ moduleName: ModuleName.General,
831
+ methodName: ArticleBulkUploadMethodEnum.FileUploadPart,
832
+ refCursorAsArray: true,
833
+ parameterValues: params
834
+ };
835
+ return this._call(DataServiceMethod.ExecuteMethod, data);
836
+ }
837
+ getFileUploadStatus(uploadId, uploadType) {
838
+ const params = {
839
+ uploadId: uploadId,
840
+ uploadType: uploadType
841
+ };
842
+ const data = {
843
+ moduleName: ModuleName.General,
844
+ methodName: ArticleBulkUploadMethodEnum.FileUploadStatus,
845
+ refCursorAsArray: true,
846
+ parameterValues: params
847
+ };
848
+ return this._call(DataServiceMethod.ExecuteMethod, data);
849
+ }
850
+ getFileUploadComplete(uploadId, uploadType) {
851
+ const params = {
852
+ uploadId: uploadId,
853
+ uploadType: uploadType
854
+ };
855
+ const data = {
856
+ moduleName: ModuleName.General,
857
+ methodName: ArticleBulkUploadMethodEnum.FileUploadComplete,
858
+ refCursorAsArray: true,
859
+ parameterValues: params
860
+ };
861
+ return this._call(DataServiceMethod.ExecuteMethod, data);
862
+ }
863
+ cancelFileUpload(uploadId, uploadType) {
864
+ const params = {
865
+ uploadId: uploadId,
866
+ uploadType: uploadType
867
+ };
868
+ const data = {
869
+ moduleName: ModuleName.General,
870
+ methodName: ArticleBulkUploadMethodEnum.FileUploadCancel,
871
+ refCursorAsArray: true,
872
+ parameterValues: params
873
+ };
874
+ return this._call(DataServiceMethod.ExecuteMethod, data);
875
+ }
803
876
  _getDomainCollection(languageCode, domainName) {
804
877
  const params = {
805
878
  domainName: domainName,
@@ -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: number): Promise<DataServiceResponseData>;
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>;
@@ -92,6 +92,11 @@ export declare class ArticlesPublic extends IoneApiArticles {
92
92
  getArticleQuickSel(goodId: number, branch: string): Promise<DataServiceResponseData>;
93
93
  getSuperArticleQuickSel(id: string, branch: string): Promise<DataServiceResponseData>;
94
94
  getWebviewStartupInfo(): Promise<DataServiceResponseData>;
95
+ getRequestUpload(uploadType: string, fileName: string, fileSize: number, fileHash: string, uploadId?: string): Promise<DataServiceResponseData>;
96
+ uploadFilePart(uploadId: string, uploadType: string, partOffset: number, partSize: number, partContent: any, partHash: string): Promise<DataServiceResponseData>;
97
+ getFileUploadStatus(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
98
+ getFileUploadComplete(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
99
+ cancelFileUpload(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
95
100
  storeCatFarmCompositionArticle(): Promise<DataServiceResponseData>;
96
101
  getArticleListWithBarcodeArticleNrEanCode(searchString: string, showLoader?: boolean): Promise<DataServiceResponseData>;
97
102
  getCategoryTypes(): Promise<DataServiceResponseData>;
@@ -394,6 +394,26 @@ export class ArticlesPublic extends IoneApiArticles {
394
394
  console.warn('getWebviewStartupInfo not implemented');
395
395
  return Promise.resolve(new DataServiceResponseData());
396
396
  }
397
+ getRequestUpload(uploadType, fileName, fileSize, fileHash, uploadId) {
398
+ console.warn('getRequestUpload not implemented');
399
+ return Promise.resolve(new DataServiceResponseData());
400
+ }
401
+ uploadFilePart(uploadId, uploadType, partOffset, partSize, partContent, partHash) {
402
+ console.warn('uploadFilePart not implemented');
403
+ return Promise.resolve(new DataServiceResponseData());
404
+ }
405
+ getFileUploadStatus(uploadId, uploadType) {
406
+ console.warn('getFileUploadStatus not implemented');
407
+ return Promise.resolve(new DataServiceResponseData());
408
+ }
409
+ getFileUploadComplete(uploadId, uploadType) {
410
+ console.warn('getFileUploadComplete not implemented');
411
+ return Promise.resolve(new DataServiceResponseData());
412
+ }
413
+ cancelFileUpload(uploadId, uploadType) {
414
+ console.warn('cancelFileUpload not implemented');
415
+ return Promise.resolve(new DataServiceResponseData());
416
+ }
397
417
  storeCatFarmCompositionArticle() {
398
418
  console.warn('storeCatFarmCompositionArticle not implemented');
399
419
  return Promise.resolve(new DataServiceResponseData());
@@ -113,9 +113,14 @@ export declare class Articles {
113
113
  getArticleListWithBarcodeArticleNrEanCode(searchString: string, showLoader?: boolean): Promise<DataServiceResponseData>;
114
114
  getCategoryTypes(): Promise<DataServiceResponseData>;
115
115
  getCategoryDesigns(): Promise<DataServiceResponseData>;
116
- getJsonConfiguredArticles(configuratorStatistics?: ConfiguratorStatisticsEnvironment, showLoader?: boolean, instanceId?: number): Promise<DataServiceResponseData>;
117
- getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, externalSource?: boolean, showLoader?: boolean, instanceId?: number, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
116
+ getJsonConfiguredArticles(configuratorStatistics?: ConfiguratorStatisticsEnvironment, showLoader?: boolean, instanceId?: string): Promise<DataServiceResponseData>;
117
+ getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, externalSource?: boolean, showLoader?: boolean, instanceId?: string, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
118
118
  static createConnector(isPublicSession: boolean, sessionExists: boolean): IoneApiArticles;
119
+ getRequestUpload(uploadType: string, fileName: string, fileSize: number, fileHash: string, uploadId?: string): Promise<DataServiceResponseData>;
120
+ uploadFilePart(uploadId: string, uploadType: string, partOffset: number, partSize: number, partContent: any, partHash: string): Promise<DataServiceResponseData>;
121
+ getFileUploadStatus(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
122
+ getFileUploadComplete(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
123
+ cancelFileUpload(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
119
124
  private _getFrozenArticle;
120
125
  private _getArticleFlatTree;
121
126
  }
package/build/articles.js CHANGED
@@ -307,6 +307,23 @@ export class Articles {
307
307
  }
308
308
  return new ArticlesPublic();
309
309
  }
310
+ getRequestUpload(uploadType, fileName, fileSize, fileHash, uploadId) {
311
+ return uploadId
312
+ ? this.articles.getRequestUpload(uploadType, fileName, fileSize, fileHash, uploadId)
313
+ : this.articles.getRequestUpload(uploadType, fileName, fileSize, fileHash);
314
+ }
315
+ uploadFilePart(uploadId, uploadType, partOffset, partSize, partContent, partHash) {
316
+ return this.articles.uploadFilePart(uploadId, uploadType, partOffset, partSize, partContent, partHash);
317
+ }
318
+ getFileUploadStatus(uploadId, uploadType) {
319
+ return this.articles.getFileUploadStatus(uploadId, uploadType);
320
+ }
321
+ getFileUploadComplete(uploadId, uploadType) {
322
+ return this.articles.getFileUploadComplete(uploadId, uploadType);
323
+ }
324
+ cancelFileUpload(uploadId, uploadType) {
325
+ return this.articles.cancelFileUpload(uploadId, uploadType);
326
+ }
310
327
  _getFrozenArticle(instanceId, configuratorStatistics, showLoader) {
311
328
  return __awaiter(this, void 0, void 0, function* () {
312
329
  const frozenArticleResponse = yield this.articles.getFrozenArticle(configuratorStatistics, showLoader, instanceId);
@@ -0,0 +1,7 @@
1
+ export declare enum ArticleBulkUploadMethodEnum {
2
+ FileUploadRequest = "fileUploadRequest",
3
+ FileUploadPart = "fileUploadPart",
4
+ FileUploadStatus = "fileUploadStatus",
5
+ FileUploadComplete = "fileUploadComplete",
6
+ FileUploadCancel = "fileUploadCancel"
7
+ }
@@ -0,0 +1,8 @@
1
+ export var ArticleBulkUploadMethodEnum;
2
+ (function (ArticleBulkUploadMethodEnum) {
3
+ ArticleBulkUploadMethodEnum["FileUploadRequest"] = "fileUploadRequest";
4
+ ArticleBulkUploadMethodEnum["FileUploadPart"] = "fileUploadPart";
5
+ ArticleBulkUploadMethodEnum["FileUploadStatus"] = "fileUploadStatus";
6
+ ArticleBulkUploadMethodEnum["FileUploadComplete"] = "fileUploadComplete";
7
+ ArticleBulkUploadMethodEnum["FileUploadCancel"] = "fileUploadCancel";
8
+ })(ArticleBulkUploadMethodEnum || (ArticleBulkUploadMethodEnum = {}));
@@ -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: number): Promise<DataServiceResponseData>;
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>;
@@ -102,5 +102,10 @@ export declare abstract class IoneApiArticles {
102
102
  abstract getArticleListWithBarcodeArticleNrEanCode(searchString: string, showLoader?: boolean): Promise<DataServiceResponseData>;
103
103
  abstract getCategoryTypes(): Promise<DataServiceResponseData>;
104
104
  abstract getCategoryDesigns(): Promise<DataServiceResponseData>;
105
+ abstract getRequestUpload(uploadType: string, fileName: string, fileSize: number, fileHash: string, uploadId?: string): Promise<DataServiceResponseData>;
106
+ abstract uploadFilePart(uploadId: string, uploadType: string, partOffset: number, partSize: number, partContent: any, partHash: string): Promise<DataServiceResponseData>;
107
+ abstract getFileUploadStatus(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
108
+ abstract getFileUploadComplete(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
109
+ abstract cancelFileUpload(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
105
110
  protected endPoint: string;
106
111
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/articleapi",
3
- "version": "258.1.1",
3
+ "version": "258.1.3",
4
4
  "scripts": {
5
5
  "build": "grunt clean && tsc",
6
6
  "browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",