@colijnit/articleapi 258.1.1 → 258.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.
- package/build/articles-auth.d.ts +5 -0
- package/build/articles-auth.js +73 -0
- package/build/articles-public.d.ts +5 -0
- package/build/articles-public.js +20 -0
- package/build/articles.d.ts +5 -0
- package/build/articles.js +17 -0
- package/build/enum/article-bulk-upload.method.enum.d.ts +7 -0
- package/build/enum/article-bulk-upload.method.enum.js +8 -0
- package/build/enum/external-source-group.enum.d.ts +9 -0
- package/build/enum/external-source-group.enum.js +10 -0
- package/build/ione-api-articles.d.ts +5 -0
- package/package.json +1 -1
package/build/articles-auth.d.ts
CHANGED
|
@@ -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;
|
package/build/articles-auth.js
CHANGED
|
@@ -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,
|
|
@@ -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>;
|
package/build/articles-public.js
CHANGED
|
@@ -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());
|
package/build/articles.d.ts
CHANGED
|
@@ -116,6 +116,11 @@ export declare class Articles {
|
|
|
116
116
|
getJsonConfiguredArticles(configuratorStatistics?: ConfiguratorStatisticsEnvironment, showLoader?: boolean, instanceId?: number): Promise<DataServiceResponseData>;
|
|
117
117
|
getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, externalSource?: boolean, showLoader?: boolean, instanceId?: number, 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,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 = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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 = {}));
|
|
@@ -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
|
}
|