@solidpepper/solidpepper-service 1.1.1 → 1.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.
|
@@ -1665,6 +1665,12 @@ class ExchangesConfigurationsService {
|
|
|
1665
1665
|
overwrite: overwrite,
|
|
1666
1666
|
}, options);
|
|
1667
1667
|
}
|
|
1668
|
+
DeleteExchangeConfiguration(exchangeConfigurationGuid) {
|
|
1669
|
+
let headers = this._settings.getHeaders();
|
|
1670
|
+
return this.http.delete(this._settings.getSettings('apiUrl') +
|
|
1671
|
+
'exchangesconfigurations/' +
|
|
1672
|
+
exchangeConfigurationGuid, { headers });
|
|
1673
|
+
}
|
|
1668
1674
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ExchangesConfigurationsService, deps: [{ token: i1.HttpClient }, { token: SettingsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1669
1675
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ExchangesConfigurationsService, providedIn: 'root' }); }
|
|
1670
1676
|
}
|
|
@@ -2274,6 +2280,12 @@ class MenuService {
|
|
|
2274
2280
|
link: '/media/assets-selections',
|
|
2275
2281
|
icon: 'fas fa-file-zipper',
|
|
2276
2282
|
};
|
|
2283
|
+
const AssetsConversions = {
|
|
2284
|
+
rights: this.rightsAccesModule['rights']?.['Products']?.['Products']?.['MassUpdate']?.['functionIsActive'] ?? false,
|
|
2285
|
+
text: this.assetsConversionsLabel,
|
|
2286
|
+
link: '/media/conversions',
|
|
2287
|
+
icon: 'fas fa-wand-magic-sparkles',
|
|
2288
|
+
};
|
|
2277
2289
|
// const WorkFlows = {
|
|
2278
2290
|
// rights: this.rightsAccesModule['rights']['Workflows']['Workflows']['subModuleIsActive'],
|
|
2279
2291
|
// text: this.workFlowsLabel,
|
|
@@ -2299,6 +2311,7 @@ class MenuService {
|
|
|
2299
2311
|
RecentlyDeleted,
|
|
2300
2312
|
AssetsProfiles,
|
|
2301
2313
|
AssetsSelections,
|
|
2314
|
+
AssetsConversions,
|
|
2302
2315
|
// WorkFlows,
|
|
2303
2316
|
//AssetsOnHold,
|
|
2304
2317
|
//AssetsFavorites,
|
|
@@ -2794,6 +2807,9 @@ class MenuService {
|
|
|
2794
2807
|
tr.get('menu.media.ASSETSSELECTION').subscribe((res) => {
|
|
2795
2808
|
this.assetsSelectionsLabel = res;
|
|
2796
2809
|
});
|
|
2810
|
+
tr.get('menu.media.CONVERSIONS').subscribe((res) => {
|
|
2811
|
+
this.assetsConversionsLabel = res;
|
|
2812
|
+
});
|
|
2797
2813
|
tr.get('menu.workflows.WORKFLOWS').subscribe((res) => {
|
|
2798
2814
|
this.workFlowsLabel = res;
|
|
2799
2815
|
});
|
|
@@ -4748,6 +4764,7 @@ class ExportsService {
|
|
|
4748
4764
|
channelGuid: exchangeObject.channelGuid,
|
|
4749
4765
|
exchangeOrder: exchangeObject.exchangeOrder,
|
|
4750
4766
|
exportColumns: exchangeObject.exportColumns,
|
|
4767
|
+
attributesWithCode: exchangeObject.attributesWithCode
|
|
4751
4768
|
}, options);
|
|
4752
4769
|
}
|
|
4753
4770
|
exportDownloadCate(exchangeObject) {
|
|
@@ -12825,7 +12842,10 @@ class GenerationService {
|
|
|
12825
12842
|
// CHUNKS
|
|
12826
12843
|
const CHUNK_SIZE = 5 * 1024 * 1024;
|
|
12827
12844
|
const totalChunks = Math.ceil(zipBlob.size / CHUNK_SIZE);
|
|
12828
|
-
const
|
|
12845
|
+
const cleanSourceGuid = (objectGeneratePDF.sourceGuid || '')
|
|
12846
|
+
.toString()
|
|
12847
|
+
.replace(/[^a-zA-Z0-9_-]/g, '_');
|
|
12848
|
+
const uploadId = `${cleanSourceGuid}_${Date.now()}`;
|
|
12829
12849
|
// CHUNKS LOOP
|
|
12830
12850
|
for (let chunkIndex = 0; chunkIndex < totalChunks; chunkIndex++) {
|
|
12831
12851
|
const start = chunkIndex * CHUNK_SIZE;
|
|
@@ -12936,6 +12956,13 @@ class ProductSheetsService {
|
|
|
12936
12956
|
'Dam/product-sheets/asset/' +
|
|
12937
12957
|
assetGuid, { headers });
|
|
12938
12958
|
}
|
|
12959
|
+
exportProductSheetAsset(assetGuid) {
|
|
12960
|
+
let headers = this._settingsService.getHeaders();
|
|
12961
|
+
return this.http.get(this._settingsService.getSettings('apiUrl') +
|
|
12962
|
+
'Dam/product-sheets/asset/' +
|
|
12963
|
+
assetGuid +
|
|
12964
|
+
'/export', { headers, responseType: 'blob' });
|
|
12965
|
+
}
|
|
12939
12966
|
getProductSheetLines(productSheetGuid, start = 0, limit = 10000, summary = false) {
|
|
12940
12967
|
let headers = this._settingsService.getHeaders();
|
|
12941
12968
|
return this.http.get(this._settingsService.getSettings('apiUrl') +
|
|
@@ -15888,13 +15915,13 @@ class DocumentsService {
|
|
|
15888
15915
|
'/' +
|
|
15889
15916
|
version, { headers });
|
|
15890
15917
|
}
|
|
15891
|
-
createDocument(assetName, folderGuid) {
|
|
15918
|
+
createDocument(assetName, folderGuid, documentType = 'document') {
|
|
15892
15919
|
let headers = this._settingsService.getHeaders();
|
|
15893
15920
|
let options = { headers: headers };
|
|
15894
15921
|
return this.http.post(this._settingsService.getSettings('apiUrl') + 'Dam/documents', {
|
|
15895
15922
|
documentName: assetName,
|
|
15896
15923
|
folderGuid: folderGuid,
|
|
15897
|
-
documentType:
|
|
15924
|
+
documentType: documentType,
|
|
15898
15925
|
}, options);
|
|
15899
15926
|
}
|
|
15900
15927
|
duplicateDocument(assetGuid, documentName, publicationGuid, folderGuid) {
|
|
@@ -16263,6 +16290,7 @@ var AssetType;
|
|
|
16263
16290
|
AssetType["FILE"] = "file";
|
|
16264
16291
|
AssetType["PRODUCTSHEET"] = "productSheet";
|
|
16265
16292
|
AssetType["DATASHEETFILE"] = "datasheetfile";
|
|
16293
|
+
AssetType["YOUBOOKY"] = "youbooky";
|
|
16266
16294
|
AssetType["DOCUMENT"] = "document";
|
|
16267
16295
|
AssetType["PUBLICATION"] = "publication";
|
|
16268
16296
|
AssetType["TEMPLATE"] = "template";
|