@solidpepper/solidpepper-service 1.0.9 → 1.1.0
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.
|
@@ -296,6 +296,42 @@ class RightsService {
|
|
|
296
296
|
getRights() {
|
|
297
297
|
return this.rightsAccessModule.asObservable();
|
|
298
298
|
}
|
|
299
|
+
hasAccess(rightsObj, module, subModule, func) {
|
|
300
|
+
if (!rightsObj?.['rights']) {
|
|
301
|
+
return false;
|
|
302
|
+
}
|
|
303
|
+
const targetModule = rightsObj['rights']?.[module];
|
|
304
|
+
if (!targetModule) {
|
|
305
|
+
console.error(`[RightsService] Module "${module}" does not exist in rights object. Available modules:`);
|
|
306
|
+
return false;
|
|
307
|
+
}
|
|
308
|
+
if (!subModule) {
|
|
309
|
+
return targetModule['moduleIsActive'] === true;
|
|
310
|
+
}
|
|
311
|
+
const targetSubModule = targetModule[subModule];
|
|
312
|
+
if (!targetSubModule) {
|
|
313
|
+
console.error(`[RightsService] Submodule "${subModule}" does not exist under module "${module}". Available submodules:`);
|
|
314
|
+
return false;
|
|
315
|
+
}
|
|
316
|
+
if (!func) {
|
|
317
|
+
return targetSubModule['subModuleIsActive'] === true;
|
|
318
|
+
}
|
|
319
|
+
const targetFunc = targetSubModule[func];
|
|
320
|
+
if (!targetFunc) {
|
|
321
|
+
console.error(`[RightsService] Function "${func}" does not exist under submodule "${subModule}" in module "${module}". `);
|
|
322
|
+
return false;
|
|
323
|
+
}
|
|
324
|
+
return targetFunc['functionIsActive'] === true;
|
|
325
|
+
}
|
|
326
|
+
isModuleActive(rightsObj, module) {
|
|
327
|
+
return this.hasAccess(rightsObj, module);
|
|
328
|
+
}
|
|
329
|
+
isSubModuleActive(rightsObj, module, subModule) {
|
|
330
|
+
return this.hasAccess(rightsObj, module, subModule);
|
|
331
|
+
}
|
|
332
|
+
isFunctionActive(rightsObj, module, subModule, func) {
|
|
333
|
+
return this.hasAccess(rightsObj, module, subModule, func);
|
|
334
|
+
}
|
|
299
335
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: RightsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
300
336
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: RightsService, providedIn: 'root' }); }
|
|
301
337
|
}
|
|
@@ -1668,6 +1704,69 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
|
|
|
1668
1704
|
}]
|
|
1669
1705
|
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: SettingsService }, { type: AuthService }] });
|
|
1670
1706
|
|
|
1707
|
+
var ModuleType;
|
|
1708
|
+
(function (ModuleType) {
|
|
1709
|
+
ModuleType["PRODUCTS"] = "Products";
|
|
1710
|
+
ModuleType["SALES"] = "Sales";
|
|
1711
|
+
ModuleType["SALESPLUS"] = "Salesplus";
|
|
1712
|
+
ModuleType["MEDIA"] = "Media";
|
|
1713
|
+
ModuleType["PUBLICATIONS"] = "Publications";
|
|
1714
|
+
ModuleType["BOMS"] = "Boms";
|
|
1715
|
+
ModuleType["CHANNELS"] = "Channels";
|
|
1716
|
+
ModuleType["SETTINGS"] = "Settings";
|
|
1717
|
+
ModuleType["WORKFLOWS"] = "Workflows";
|
|
1718
|
+
})(ModuleType || (ModuleType = {}));
|
|
1719
|
+
|
|
1720
|
+
var SubModuleType;
|
|
1721
|
+
(function (SubModuleType) {
|
|
1722
|
+
// Publications
|
|
1723
|
+
SubModuleType["PROJECTS"] = "Projects";
|
|
1724
|
+
SubModuleType["DOCUMENTS"] = "Documents";
|
|
1725
|
+
SubModuleType["MODELS"] = "Models";
|
|
1726
|
+
SubModuleType["PUBLICATION_IMPORTS"] = "PublicationImports";
|
|
1727
|
+
SubModuleType["PUBLICATION_EXPORTS"] = "PublicationExports";
|
|
1728
|
+
SubModuleType["PRODUCT_SHEETS"] = "ProductSheets";
|
|
1729
|
+
// Media
|
|
1730
|
+
SubModuleType["MEDIA_DAM_ASSETS"] = "DamAssets";
|
|
1731
|
+
SubModuleType["MEDIA_MISSING"] = "DamAssetsMissing";
|
|
1732
|
+
SubModuleType["MEDIA_ORPHANS"] = "DamAssetsOrhpans";
|
|
1733
|
+
SubModuleType["MEDIA_RECENTLY_DELETED"] = "DamAssetsRecentlyDeleted";
|
|
1734
|
+
SubModuleType["MEDIA_PROFILES"] = "DamAssetsProfiles";
|
|
1735
|
+
SubModuleType["MEDIA_SELECTIONS"] = "DamAssetsSelections";
|
|
1736
|
+
// Products
|
|
1737
|
+
SubModuleType["PRODUCTS_PRODUCTS"] = "Products";
|
|
1738
|
+
SubModuleType["PRODUCTS_CATEGORIES"] = "Categories";
|
|
1739
|
+
SubModuleType["PRODUCTS_SUPPLIERS"] = "Suppliers";
|
|
1740
|
+
SubModuleType["PRODUCTS_VIEWS"] = "Views";
|
|
1741
|
+
// Workflows
|
|
1742
|
+
SubModuleType["WORKFLOWS_WORKFLOWS"] = "Workflows";
|
|
1743
|
+
SubModuleType["WORKFLOWS_STEPS"] = "Steps";
|
|
1744
|
+
SubModuleType["WORKFLOWS_WORKROOMS"] = "Workrooms";
|
|
1745
|
+
SubModuleType["WORKFLOWS_COMPLETENESS_RULES"] = "CompletenessRules";
|
|
1746
|
+
SubModuleType["WORKFLOWS_HISTORY"] = "History";
|
|
1747
|
+
// Sales
|
|
1748
|
+
SubModuleType["SALES_ORDERS"] = "Orders";
|
|
1749
|
+
SubModuleType["SALES_QUOTES"] = "Quotes";
|
|
1750
|
+
SubModuleType["SALES_CUSTOMERS"] = "Customers";
|
|
1751
|
+
SubModuleType["SALES_REQUESTS"] = "Requests";
|
|
1752
|
+
// Boms
|
|
1753
|
+
SubModuleType["BOMS_BOMS"] = "Boms";
|
|
1754
|
+
// Channels
|
|
1755
|
+
SubModuleType["CHANNELS_CHANNELS"] = "Channels";
|
|
1756
|
+
// Settings
|
|
1757
|
+
SubModuleType["SETTINGS_ATTRIBUTES_PRODUCTS"] = "AttributesProducts";
|
|
1758
|
+
SubModuleType["SETTINGS_ATTRIBUTES_CATEGORIES"] = "AttributesCategories";
|
|
1759
|
+
SubModuleType["SETTINGS_ATTRIBUTES_SUPPLIERS"] = "AttributesSuppliers";
|
|
1760
|
+
SubModuleType["SETTINGS_ATTRIBUTES_ASSETS"] = "AttributesAssets";
|
|
1761
|
+
SubModuleType["SETTINGS_ATTRIBUTES_ACCOUNTS_CONTACTS"] = "AttributesAccountsContacts";
|
|
1762
|
+
SubModuleType["SETTINGS_ATTRIBUTES_ACCOUNTS"] = "AttributesAccounts";
|
|
1763
|
+
SubModuleType["SETTINGS_MASKS"] = "Masks";
|
|
1764
|
+
SubModuleType["SETTINGS_MAPPING"] = "Mapping";
|
|
1765
|
+
SubModuleType["SETTINGS_IMPORTS"] = "Imports";
|
|
1766
|
+
SubModuleType["SETTINGS_EXPORTS"] = "Exports";
|
|
1767
|
+
SubModuleType["SETTINGS_TEMPLATES_EXCEL"] = "TemplatesExcel";
|
|
1768
|
+
})(SubModuleType || (SubModuleType = {}));
|
|
1769
|
+
|
|
1671
1770
|
class ViewsService {
|
|
1672
1771
|
constructor(http, _settingsService) {
|
|
1673
1772
|
this.http = http;
|
|
@@ -2207,23 +2306,22 @@ class MenuService {
|
|
|
2207
2306
|
}
|
|
2208
2307
|
defineMenuPublications() {
|
|
2209
2308
|
const Projects = {
|
|
2210
|
-
rights: this.rightsAccesModule
|
|
2309
|
+
rights: this.rights.hasAccess(this.rightsAccesModule, ModuleType.PUBLICATIONS, SubModuleType.PROJECTS),
|
|
2211
2310
|
text: this.publicationLabel,
|
|
2212
2311
|
link: '/publications/listing',
|
|
2213
2312
|
icon: 'fas fa-book-open',
|
|
2214
2313
|
};
|
|
2215
|
-
// this.rightsAccesModule['rights']['Publications']['Documents']['subModuleIsActive']
|
|
2216
2314
|
const Separation = {
|
|
2217
2315
|
text: this.separationLabel,
|
|
2218
2316
|
};
|
|
2219
2317
|
const Templates = {
|
|
2220
|
-
rights: this.rightsAccesModule
|
|
2318
|
+
rights: this.rights.hasAccess(this.rightsAccesModule, ModuleType.PUBLICATIONS, SubModuleType.MODELS),
|
|
2221
2319
|
text: this.publicationTemplatesLabel,
|
|
2222
2320
|
link: '/publications/templates',
|
|
2223
2321
|
icon: 'fas fa-file-pen',
|
|
2224
2322
|
};
|
|
2225
2323
|
const ProductSheets = {
|
|
2226
|
-
rights: this.rightsAccesModule
|
|
2324
|
+
rights: this.rights.hasAccess(this.rightsAccesModule, ModuleType.PUBLICATIONS, SubModuleType.PRODUCT_SHEETS),
|
|
2227
2325
|
text: this.publicationProductSheetsLabel,
|
|
2228
2326
|
link: '/publications/productSheets',
|
|
2229
2327
|
icon: 'fas fa-database',
|
|
@@ -2769,6 +2867,143 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
|
|
|
2769
2867
|
type: Injectable
|
|
2770
2868
|
}], ctorParameters: () => [{ type: i1$1.TranslateService }, { type: i1.HttpClient }, { type: RightsService }, { type: i3.Router }, { type: ViewsService }] });
|
|
2771
2869
|
|
|
2870
|
+
var FunctionType;
|
|
2871
|
+
(function (FunctionType) {
|
|
2872
|
+
// =========================================================================
|
|
2873
|
+
// 1. PRODUCTS
|
|
2874
|
+
// =========================================================================
|
|
2875
|
+
// Product Sheets
|
|
2876
|
+
FunctionType["MODIFY"] = "Modify";
|
|
2877
|
+
FunctionType["ADD"] = "Add";
|
|
2878
|
+
FunctionType["DELETE"] = "Delete";
|
|
2879
|
+
FunctionType["DUPLICATE"] = "Duplicate";
|
|
2880
|
+
FunctionType["MASS_UPDATE"] = "MassUpdate";
|
|
2881
|
+
FunctionType["ASSIGN_TO_CHANNEL"] = "AssignToChannel";
|
|
2882
|
+
FunctionType["EXPORT_FILE_WITH_FILTER"] = "ExportFileWithFilter";
|
|
2883
|
+
FunctionType["GENERATE_TECHNICAL_SHEET"] = "GenerateTechnicalSheet";
|
|
2884
|
+
FunctionType["EXPORT_FILE_WITH_TEMPLATE"] = "ExportFileWithTemplate";
|
|
2885
|
+
FunctionType["GENERATE_TECHNICAL_SHEET_BATCH"] = "GenerateTechnicalSheetBatch";
|
|
2886
|
+
// Versions
|
|
2887
|
+
FunctionType["UPDATE"] = "Update";
|
|
2888
|
+
FunctionType["PUBLISH"] = "Publish";
|
|
2889
|
+
// Categories
|
|
2890
|
+
FunctionType["RE_ORDER"] = "ReOrder";
|
|
2891
|
+
// =========================================================================
|
|
2892
|
+
// 2. SALES
|
|
2893
|
+
// =========================================================================
|
|
2894
|
+
// Orders
|
|
2895
|
+
FunctionType["CHANGE_STATE"] = "ChangeState";
|
|
2896
|
+
FunctionType["REGENERATE_PDF"] = "RegeneratePDF";
|
|
2897
|
+
FunctionType["DOWNLOAD_PDF"] = "DownloadPDF";
|
|
2898
|
+
FunctionType["SEND"] = "Send";
|
|
2899
|
+
// Customers
|
|
2900
|
+
FunctionType["GEOLOCATE"] = "Geolocate";
|
|
2901
|
+
// Requests
|
|
2902
|
+
FunctionType["CONVERT"] = "Convert";
|
|
2903
|
+
FunctionType["READ"] = "Read";
|
|
2904
|
+
FunctionType["REPLY"] = "Reply";
|
|
2905
|
+
// =========================================================================
|
|
2906
|
+
// 3. MEDIA
|
|
2907
|
+
// =========================================================================
|
|
2908
|
+
// Library (DamAssets)
|
|
2909
|
+
FunctionType["ADD_FOLDER"] = "AddFolder";
|
|
2910
|
+
FunctionType["DELETE_FOLDER"] = "DeleteFolder";
|
|
2911
|
+
FunctionType["MOVE_FOLDER"] = "MoveFolder";
|
|
2912
|
+
FunctionType["DOWNLOAD_FOLDER"] = "DownloadFolder";
|
|
2913
|
+
FunctionType["RENAME_FOLDER"] = "RenameFolder";
|
|
2914
|
+
FunctionType["ASSIGN_TEAM"] = "AssignTeam";
|
|
2915
|
+
FunctionType["COPY_FOLDER_GUID"] = "CopyFolderGuid";
|
|
2916
|
+
FunctionType["UPLOAD"] = "Upload";
|
|
2917
|
+
FunctionType["MOVE"] = "Move";
|
|
2918
|
+
FunctionType["RENAME"] = "Rename";
|
|
2919
|
+
FunctionType["COPY_URL"] = "CopyURL";
|
|
2920
|
+
FunctionType["SHARE_PHOTO"] = "SharePhoto";
|
|
2921
|
+
FunctionType["OPEN_IN_NEW_TAB"] = "OpenInNewTab";
|
|
2922
|
+
FunctionType["CHANGE_STATUS"] = "ChangeStatus";
|
|
2923
|
+
FunctionType["AUTO_TAG"] = "AutoTag";
|
|
2924
|
+
FunctionType["REMOVE_BACKGROUND"] = "RemoveBackground";
|
|
2925
|
+
FunctionType["DOWNLOAD"] = "Download";
|
|
2926
|
+
FunctionType["MEDIA_TREATMENT"] = "MediaTreatment";
|
|
2927
|
+
// Recently Deleted Assets
|
|
2928
|
+
FunctionType["RESTORE"] = "Restore";
|
|
2929
|
+
FunctionType["SHOW_ALL"] = "ShowAll";
|
|
2930
|
+
// Media Selections
|
|
2931
|
+
FunctionType["REGENERATE"] = "Regenerate";
|
|
2932
|
+
// =========================================================================
|
|
2933
|
+
// 4. PUBLICATIONS
|
|
2934
|
+
// =========================================================================
|
|
2935
|
+
// Models (Templates)
|
|
2936
|
+
FunctionType["ADD_CALLOUT"] = "AddCallout";
|
|
2937
|
+
// Documents
|
|
2938
|
+
FunctionType["REVIEW"] = "Review";
|
|
2939
|
+
// Publications Projects
|
|
2940
|
+
FunctionType["ADD_PUBLICATION"] = "AddPublication";
|
|
2941
|
+
FunctionType["DELETE_PUBLICATION"] = "DeletePublication";
|
|
2942
|
+
FunctionType["DUPLICATE_PUBLICATION"] = "DuplicatePublication";
|
|
2943
|
+
FunctionType["RENAME_PUBLICATION"] = "RenamePublication";
|
|
2944
|
+
FunctionType["MOVE_PUBLICATION"] = "MovePublication";
|
|
2945
|
+
FunctionType["ADD_SECTION"] = "AddSection";
|
|
2946
|
+
FunctionType["DELETE_SECTION"] = "DeleteSection";
|
|
2947
|
+
FunctionType["ADD_PRODUCTS"] = "AddProducts";
|
|
2948
|
+
FunctionType["REMOVE_PRODUCTS"] = "RemoveProducts";
|
|
2949
|
+
FunctionType["MOVE_PRODUCTS"] = "MoveProducts";
|
|
2950
|
+
FunctionType["GENERATE_CATALOG"] = "GenerateCatalog";
|
|
2951
|
+
FunctionType["GENERATE_DATA_SHEET"] = "GenerateDataSheet";
|
|
2952
|
+
FunctionType["GENERATE_XML"] = "GenerateXML";
|
|
2953
|
+
FunctionType["FLIPBOOK"] = "Flipbook";
|
|
2954
|
+
FunctionType["PREVIEW"] = "Preview";
|
|
2955
|
+
FunctionType["YOU_BOOKY"] = "YouBooky";
|
|
2956
|
+
// Product Sheets (Publication Submodule)
|
|
2957
|
+
FunctionType["ADD_PRODUCT_SHEET"] = "AddProductSheet";
|
|
2958
|
+
FunctionType["EDIT_PRODUCT_SHEET"] = "EditProductSheet";
|
|
2959
|
+
FunctionType["REMOVE_PRODUCT_SHEET"] = "RemoveProductSheet";
|
|
2960
|
+
FunctionType["ADD_PRODUCT_SHEET_COLUMN"] = "AddProductSheetColumn";
|
|
2961
|
+
FunctionType["EDIT_PRODUCT_SHEET_COLUMN"] = "EditProductSheetColumn";
|
|
2962
|
+
FunctionType["REMOVE_PRODUCT_SHEET_COLUMN"] = "RemoveProductSheetColumn";
|
|
2963
|
+
FunctionType["ADD_PRODUCT_SHEET_LINE"] = "AddProductSheetLine";
|
|
2964
|
+
FunctionType["EDIT_PRODUCT_SHEET_LINE"] = "EditProductSheetLine";
|
|
2965
|
+
FunctionType["REMOVE_PRODUCT_SHEET_LINE"] = "RemoveProductSheetLine";
|
|
2966
|
+
FunctionType["IMPORT_PRODUCT_SHEET_PASTE"] = "ImportProductSheetPaste";
|
|
2967
|
+
FunctionType["IMPORT_PRODUCT_SHEET_FILE"] = "ImportProductSheetFile";
|
|
2968
|
+
// =========================================================================
|
|
2969
|
+
// 5. BOMS
|
|
2970
|
+
// =========================================================================
|
|
2971
|
+
FunctionType["ADD_COMPONENT"] = "AddComponent";
|
|
2972
|
+
FunctionType["DELETE_COMPONENT"] = "DeleteComponent";
|
|
2973
|
+
// =========================================================================
|
|
2974
|
+
// 6. CHANNELS
|
|
2975
|
+
// =========================================================================
|
|
2976
|
+
FunctionType["ADD_B2B"] = "AddB2B";
|
|
2977
|
+
FunctionType["ADD_PRESTASHOP"] = "AddPrestashop";
|
|
2978
|
+
FunctionType["ADD_STORYBLOK"] = "AddStoryblok";
|
|
2979
|
+
// =========================================================================
|
|
2980
|
+
// 7. SETTINGS
|
|
2981
|
+
// =========================================================================
|
|
2982
|
+
// Attributes
|
|
2983
|
+
FunctionType["ADD_GROUP"] = "AddGroup";
|
|
2984
|
+
FunctionType["DELETE_GROUP"] = "DeleteGroup";
|
|
2985
|
+
FunctionType["ADD_ATTRIBUTE"] = "AddAttribute";
|
|
2986
|
+
FunctionType["DELETE_ATTRIBUTE"] = "DeleteAttribute";
|
|
2987
|
+
FunctionType["RESTORE_ATTRIBUTE"] = "RestoreAttribute";
|
|
2988
|
+
// Scheduled Tasks (Batch)
|
|
2989
|
+
FunctionType["EXECUTE"] = "Execute";
|
|
2990
|
+
// Imports / Exports
|
|
2991
|
+
FunctionType["IMPORT_PRODUCTS"] = "ImportProducts";
|
|
2992
|
+
FunctionType["IMPORT_SALES"] = "ImportSales";
|
|
2993
|
+
FunctionType["IMPORT_ATTRIBUTES"] = "ImportAttributes";
|
|
2994
|
+
FunctionType["IMPORT_ASSETS"] = "ImportAssets";
|
|
2995
|
+
FunctionType["EXPORT_PRODUCTS"] = "ExportProducts";
|
|
2996
|
+
FunctionType["EXPORT_SALES"] = "ExportSales";
|
|
2997
|
+
FunctionType["EXPORT_ASSETS"] = "ExportAssets";
|
|
2998
|
+
// Completeness Rules
|
|
2999
|
+
FunctionType["ADD_STANDARD"] = "AddStandard";
|
|
3000
|
+
FunctionType["DELETE_STANDARD"] = "DeleteStandard";
|
|
3001
|
+
FunctionType["UPDATE_STANDARD"] = "UpdateStandard";
|
|
3002
|
+
FunctionType["ADD_CONDITION"] = "AddCondition";
|
|
3003
|
+
FunctionType["DELETE_CONDITION"] = "DeleteCondition";
|
|
3004
|
+
FunctionType["UPDATE_CONDITION"] = "UpdateCondition";
|
|
3005
|
+
})(FunctionType || (FunctionType = {}));
|
|
3006
|
+
|
|
2772
3007
|
class RoleService {
|
|
2773
3008
|
constructor(authorizationDataService) {
|
|
2774
3009
|
this.authorizationDataService = authorizationDataService;
|
|
@@ -13029,7 +13264,8 @@ class Publication {
|
|
|
13029
13264
|
this.publicationContents = data.publicationContents ?? '';
|
|
13030
13265
|
this.publicationMasterSpreads = data.publicationMasterSpreads ?? '';
|
|
13031
13266
|
this.publicationFormat = data.publicationFormat ?? '';
|
|
13032
|
-
this.publicationOrientationPortrait =
|
|
13267
|
+
this.publicationOrientationPortrait =
|
|
13268
|
+
data.publicationOrientationPortrait ?? false;
|
|
13033
13269
|
this.publicationPreview = data.publicationPreview ?? '';
|
|
13034
13270
|
this.publicationDraft = data.publicationDraft ?? '';
|
|
13035
13271
|
this.publicationBeta = data.publicationBeta ?? '';
|
|
@@ -13041,31 +13277,39 @@ class Publication {
|
|
|
13041
13277
|
this.publicationPageStart = data.publicationPageStart ?? 1;
|
|
13042
13278
|
this.publicationPageStartLeft = data.publicationPageStartLeft ?? false;
|
|
13043
13279
|
this.selectionCode = data.selectionCode ?? data.SelectionCode ?? '';
|
|
13044
|
-
this.publicationTemplateGuid =
|
|
13280
|
+
this.publicationTemplateGuid =
|
|
13281
|
+
data.publicationTemplateGuid ?? DEFAULT_PUBLICATION_STR;
|
|
13045
13282
|
this.publicationCoverpage = data.publicationCoverpage ?? '';
|
|
13046
13283
|
this.publicationDealGuid = data.publicationDealGuid ?? '';
|
|
13047
13284
|
this.publicationRatebase = data.publicationRatebase ?? 0;
|
|
13048
|
-
this.publicationPriceListGuid =
|
|
13285
|
+
this.publicationPriceListGuid =
|
|
13286
|
+
data.publicationPriceListGuid ?? DEFAULT_PUBLICATION_STR;
|
|
13049
13287
|
this.publicationAccountGuid = data.publicationAccountGuid ?? '';
|
|
13050
13288
|
this.publicationAttributes = data.publicationAttributes ?? [];
|
|
13051
13289
|
this.publicationLanguage = data.publicationLanguage ?? '';
|
|
13052
13290
|
this.publicationAutoGeneration = data.publicationAutoGeneration ?? true;
|
|
13053
13291
|
this.publicationYouBooky = data.publicationYouBooky ?? false;
|
|
13054
13292
|
this.publicationProductSheetGuid = data.publicationProductSheetGuid ?? null;
|
|
13055
|
-
this.publicationProductSheetAssetGuid =
|
|
13293
|
+
this.publicationProductSheetAssetGuid =
|
|
13294
|
+
data.publicationProductSheetAssetGuid ?? null;
|
|
13056
13295
|
this.publicationRelecturePDFs = data.publicationRelecturePDFs ?? [];
|
|
13057
|
-
this.publicationTemplateDefaultBackgroundGuid =
|
|
13296
|
+
this.publicationTemplateDefaultBackgroundGuid =
|
|
13297
|
+
data.publicationTemplateDefaultBackgroundGuid ?? '';
|
|
13058
13298
|
this.publicationPageIdFirst = data.publicationPageIdFirst ?? '';
|
|
13059
|
-
this.publicationTemplateBackgroundName =
|
|
13299
|
+
this.publicationTemplateBackgroundName =
|
|
13300
|
+
data.publicationTemplateBackgroundName ?? '';
|
|
13060
13301
|
this.publicationPreviewUrl = data.publicationPreviewUrl ?? '';
|
|
13061
13302
|
this.publicationTemplateName = data.publicationTemplateName ?? '';
|
|
13062
13303
|
this.publicationCoverpageUrl = data.publicationCoverpageUrl ?? '';
|
|
13063
13304
|
this.publicationNbPages = data.publicationNbPages ?? 0;
|
|
13064
13305
|
this.publicationNbSkus = data.publicationNbSkus ?? 0;
|
|
13065
|
-
this._publicationFolderGuid =
|
|
13306
|
+
this._publicationFolderGuid =
|
|
13307
|
+
data.publicationFolderGuid ?? data.PublicationFolderGuid ?? '';
|
|
13066
13308
|
if (data.publicationPages) {
|
|
13067
13309
|
const pages = data.publicationPages;
|
|
13068
|
-
this._publicationPages = Array.isArray(pages)
|
|
13310
|
+
this._publicationPages = Array.isArray(pages)
|
|
13311
|
+
? pages.map((p) => new PublicationPage(p))
|
|
13312
|
+
: [];
|
|
13069
13313
|
}
|
|
13070
13314
|
else {
|
|
13071
13315
|
this._publicationPages = [];
|
|
@@ -14246,6 +14490,7 @@ class PublicationsService {
|
|
|
14246
14490
|
publicationAccountGuid: publication.publicationAccountGuid,
|
|
14247
14491
|
publicationLanguage: publication.publicationLanguage,
|
|
14248
14492
|
publicationProductSheetGuid: publication.publicationProductSheetGuid,
|
|
14493
|
+
publicationProductSheetAssetGuid: publication.publicationProductSheetAssetGuid,
|
|
14249
14494
|
}, options)
|
|
14250
14495
|
.pipe(finalize(() => {
|
|
14251
14496
|
if (this._webSocket.connection?.state === HubConnectionState.Connected) {
|
|
@@ -16116,5 +16361,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
|
|
|
16116
16361
|
* Generated bundle index. Do not edit.
|
|
16117
16362
|
*/
|
|
16118
16363
|
|
|
16119
|
-
export { AccountsService, AllLanguagesService, AttributesService, AuthService, AuthTwoFactorService, BatchService, BomService, BomsitemsService, CataloguesService, CategoriesService, ChannelsService, CmsService, ColorsService, CompaniesService, CompanyService, CompletenessService, DEFAULT_PUBLICATION_STR, DEFAULT_TEMPLATEGUID, DamAssetsProfilesService, DamAssetsSelectionsService, DamAssetsService, DashboardService, Document, DocumentCommentService, DocumentsService, EasypiechartDirective, EcoTaxService, ExchangesConfigurationsService, ExportsService, FrameworkagreementsService, GenerationService, ImportsService, InformationsService, LocaleNumberPipe, LoginService, MappingsService, MasksService, MediaSelectionDeclinaisonService, MediaSelectionService, MenuService, NotificationServiceService, OpenAiService, OrdersService, OrganizationsService, PresetsService, PricesTaxService, ProductSheetsService, ProfilesService, ProjectType, PromotionsService, PromptsService, Publication, PublicationBreak, PublicationData, PublicationDataType, PublicationPage, PublicationTemplate, PublicationsService, PublicationsTemplatesService, QuotesService, ReportsService, RequestsService, RightsService, RoleService, RouterExtServiceService, RulesCompletenessService, SOLIDPEPPER_API_URL, SOLIDPEPPER_TOKEN_GETTER, SalersService, SearchDamAssetsService, SearchService, SearchsService, SettingsService, SidebarRightService, SkusDeclinaisonsService, SkusPricesService, SkusService, SkusSuppliersService, SkusTrackingService, StatusService, StocksService, StripeService, SuppliersService, TeamsService, Template, TemplatesService, ThumbnailService, TimeElapsedPipe, TranslateService, TranslatorService, UsersService, UtilsService, ViewsService, WorkflowsDesksService, WorkflowsGlobalStepsService, WorkflowsHistoricalService, WorkflowsRulesService, websocketService };
|
|
16364
|
+
export { AccountsService, AllLanguagesService, AttributesService, AuthService, AuthTwoFactorService, BatchService, BomService, BomsitemsService, CataloguesService, CategoriesService, ChannelsService, CmsService, ColorsService, CompaniesService, CompanyService, CompletenessService, DEFAULT_PUBLICATION_STR, DEFAULT_TEMPLATEGUID, DamAssetsProfilesService, DamAssetsSelectionsService, DamAssetsService, DashboardService, Document, DocumentCommentService, DocumentsService, EasypiechartDirective, EcoTaxService, ExchangesConfigurationsService, ExportsService, FrameworkagreementsService, FunctionType, GenerationService, ImportsService, InformationsService, LocaleNumberPipe, LoginService, MappingsService, MasksService, MediaSelectionDeclinaisonService, MediaSelectionService, MenuService, ModuleType, NotificationServiceService, OpenAiService, OrdersService, OrganizationsService, PresetsService, PricesTaxService, ProductSheetsService, ProfilesService, ProjectType, PromotionsService, PromptsService, Publication, PublicationBreak, PublicationData, PublicationDataType, PublicationPage, PublicationTemplate, PublicationsService, PublicationsTemplatesService, QuotesService, ReportsService, RequestsService, RightsService, RoleService, RouterExtServiceService, RulesCompletenessService, SOLIDPEPPER_API_URL, SOLIDPEPPER_TOKEN_GETTER, SalersService, SearchDamAssetsService, SearchService, SearchsService, SettingsService, SidebarRightService, SkusDeclinaisonsService, SkusPricesService, SkusService, SkusSuppliersService, SkusTrackingService, StatusService, StocksService, StripeService, SubModuleType, SuppliersService, TeamsService, Template, TemplatesService, ThumbnailService, TimeElapsedPipe, TranslateService, TranslatorService, UsersService, UtilsService, ViewsService, WorkflowsDesksService, WorkflowsGlobalStepsService, WorkflowsHistoricalService, WorkflowsRulesService, websocketService };
|
|
16120
16365
|
//# sourceMappingURL=solidpepper-solidpepper-service.mjs.map
|