@solidpepper/solidpepper-service 1.1.0 → 1.1.1
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.
|
@@ -1720,8 +1720,9 @@ var ModuleType;
|
|
|
1720
1720
|
var SubModuleType;
|
|
1721
1721
|
(function (SubModuleType) {
|
|
1722
1722
|
// Publications
|
|
1723
|
+
SubModuleType["PUBLICATIONS"] = "Projects";
|
|
1723
1724
|
SubModuleType["PROJECTS"] = "Projects";
|
|
1724
|
-
SubModuleType["
|
|
1725
|
+
SubModuleType["CATALOGS"] = "Catalogs";
|
|
1725
1726
|
SubModuleType["MODELS"] = "Models";
|
|
1726
1727
|
SubModuleType["PUBLICATION_IMPORTS"] = "PublicationImports";
|
|
1727
1728
|
SubModuleType["PUBLICATION_EXPORTS"] = "PublicationExports";
|
|
@@ -2937,22 +2938,42 @@ var FunctionType;
|
|
|
2937
2938
|
// Documents
|
|
2938
2939
|
FunctionType["REVIEW"] = "Review";
|
|
2939
2940
|
// Publications Projects
|
|
2940
|
-
FunctionType["
|
|
2941
|
-
FunctionType["
|
|
2942
|
-
FunctionType["
|
|
2943
|
-
FunctionType["
|
|
2944
|
-
FunctionType["
|
|
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";
|
|
2941
|
+
FunctionType["ADD_YOUBOOKY"] = "AddYouBooky";
|
|
2942
|
+
FunctionType["ADD_DOCUMENT"] = "AddDocument";
|
|
2943
|
+
FunctionType["ADD_TECHNICAL_SHEETS"] = "AddTechnicalSheets";
|
|
2944
|
+
FunctionType["ADD_CATALOG"] = "AddCatalog";
|
|
2945
|
+
FunctionType["CONFIGURE_PROJECT"] = "ConfigureProject";
|
|
2950
2946
|
FunctionType["GENERATE_CATALOG"] = "GenerateCatalog";
|
|
2951
2947
|
FunctionType["GENERATE_DATA_SHEET"] = "GenerateDataSheet";
|
|
2952
|
-
FunctionType["
|
|
2948
|
+
FunctionType["GENERATE_HD"] = "GenerateHD";
|
|
2949
|
+
FunctionType["GENERATE_CMYK"] = "GenerateCMYK";
|
|
2953
2950
|
FunctionType["FLIPBOOK"] = "Flipbook";
|
|
2954
|
-
FunctionType["
|
|
2951
|
+
FunctionType["REVIEWER"] = "Reviewer";
|
|
2952
|
+
FunctionType["MANAGE_FONTS"] = "ManageFonts";
|
|
2955
2953
|
FunctionType["YOU_BOOKY"] = "YouBooky";
|
|
2954
|
+
// Publications Catalogs
|
|
2955
|
+
FunctionType["AUTO_GENERATION"] = "AutoGeneration";
|
|
2956
|
+
FunctionType["PREVIEW_AUTO_GENERATION"] = "PreviewAutoGeneration";
|
|
2957
|
+
FunctionType["CREATE_VERSION"] = "CreateVersion";
|
|
2958
|
+
FunctionType["GENERATE_XML"] = "GenerateXML";
|
|
2959
|
+
FunctionType["EXPORT_EXCEL_DATA"] = "ExportExcelData";
|
|
2960
|
+
FunctionType["ADD_SECTION"] = "AddSection";
|
|
2961
|
+
FunctionType["DUPLICATE_SECTION"] = "DuplicateSection";
|
|
2962
|
+
FunctionType["CONFIGURE_SECTION"] = "ConfigureSection";
|
|
2963
|
+
FunctionType["DELETE_SECTION"] = "DeleteSection";
|
|
2964
|
+
FunctionType["ADD_PRODUCT"] = "AddProduct";
|
|
2965
|
+
FunctionType["ADD_PRODUCTS"] = "AddProduct";
|
|
2966
|
+
FunctionType["CONFIGURE_PRODUCT"] = "ConfigureProduct";
|
|
2967
|
+
FunctionType["REMOVE_PRODUCT"] = "RemoveProduct";
|
|
2968
|
+
FunctionType["REMOVE_PRODUCTS"] = "RemoveProduct";
|
|
2969
|
+
FunctionType["MOVE_PRODUCTS"] = "MoveProducts";
|
|
2970
|
+
FunctionType["REORDER_PRODUCTS"] = "ReorderProducts";
|
|
2971
|
+
FunctionType["MASS_ADD_PRODUCTS"] = "MassAddProducts";
|
|
2972
|
+
FunctionType["MASS_EXCLUDE_PRODUCTS"] = "MassExcludeProducts";
|
|
2973
|
+
FunctionType["MASS_EDIT_PRICES"] = "MassEditPrices";
|
|
2974
|
+
FunctionType["ADD_LINE_BREAK"] = "AddLineBreak";
|
|
2975
|
+
FunctionType["ADD_PAGE_BREAK"] = "AddPageBreak";
|
|
2976
|
+
FunctionType["ADD_CALLOUT_ELEMENT"] = "AddCalloutElement";
|
|
2956
2977
|
// Product Sheets (Publication Submodule)
|
|
2957
2978
|
FunctionType["ADD_PRODUCT_SHEET"] = "AddProductSheet";
|
|
2958
2979
|
FunctionType["EDIT_PRODUCT_SHEET"] = "EditProductSheet";
|
|
@@ -13082,13 +13103,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
|
|
|
13082
13103
|
var ProjectType;
|
|
13083
13104
|
(function (ProjectType) {
|
|
13084
13105
|
// DEPRECATED
|
|
13085
|
-
ProjectType["STATIC"] = "
|
|
13086
|
-
ProjectType["DYNAMIC"] = "
|
|
13106
|
+
ProjectType["STATIC"] = "STATIC";
|
|
13107
|
+
ProjectType["DYNAMIC"] = "DYNAMIC";
|
|
13087
13108
|
// CURRENT
|
|
13088
|
-
ProjectType["YOUBOOKY"] = "
|
|
13089
|
-
ProjectType["DOCUMENT"] = "
|
|
13090
|
-
ProjectType["
|
|
13091
|
-
ProjectType["TECHNICAL_SHEET"] = "
|
|
13109
|
+
ProjectType["YOUBOOKY"] = "YOUBOOKY";
|
|
13110
|
+
ProjectType["DOCUMENT"] = "DOCUMENT";
|
|
13111
|
+
ProjectType["CATALOG"] = "CATALOG";
|
|
13112
|
+
ProjectType["TECHNICAL_SHEET"] = "DATASHEET";
|
|
13092
13113
|
})(ProjectType || (ProjectType = {}));
|
|
13093
13114
|
|
|
13094
13115
|
class PublicationPage {
|
|
@@ -13098,6 +13119,7 @@ class PublicationPage {
|
|
|
13098
13119
|
this._name = '';
|
|
13099
13120
|
this._status = 0; // PageStatus enum: Draft = 0, Waiting = 1, Ready = 2, InProcess = 3
|
|
13100
13121
|
this._background = '';
|
|
13122
|
+
this._gabarit = '';
|
|
13101
13123
|
this._order = 0;
|
|
13102
13124
|
this._modifiedAt = null;
|
|
13103
13125
|
this._type = 'SKUS';
|
|
@@ -13108,6 +13130,7 @@ class PublicationPage {
|
|
|
13108
13130
|
this.name = data.name ?? '';
|
|
13109
13131
|
this.status = data.status ?? 0;
|
|
13110
13132
|
this.background = data.background ?? '';
|
|
13133
|
+
this.gabarit = data.gabarit ?? '';
|
|
13111
13134
|
this.order = data.order ?? 0;
|
|
13112
13135
|
this.modifiedAt = data.modifiedAt ?? null;
|
|
13113
13136
|
this.type = data.type ?? 'SKUS';
|
|
@@ -13144,6 +13167,12 @@ class PublicationPage {
|
|
|
13144
13167
|
set background(value) {
|
|
13145
13168
|
this._background = value || '';
|
|
13146
13169
|
}
|
|
13170
|
+
get gabarit() {
|
|
13171
|
+
return this._gabarit;
|
|
13172
|
+
}
|
|
13173
|
+
set gabarit(value) {
|
|
13174
|
+
this._gabarit = value || '';
|
|
13175
|
+
}
|
|
13147
13176
|
get order() {
|
|
13148
13177
|
return this._order;
|
|
13149
13178
|
}
|
|
@@ -13181,6 +13210,7 @@ class PublicationPage {
|
|
|
13181
13210
|
name: this.name,
|
|
13182
13211
|
status: this.status,
|
|
13183
13212
|
background: this.background,
|
|
13213
|
+
gabarit: this.gabarit,
|
|
13184
13214
|
order: this.order,
|
|
13185
13215
|
modifiedAt: this.modifiedAt,
|
|
13186
13216
|
type: this.type,
|
|
@@ -14489,8 +14519,10 @@ class PublicationsService {
|
|
|
14489
14519
|
publicationPriceListGuid: publication.publicationPriceListGuid,
|
|
14490
14520
|
publicationAccountGuid: publication.publicationAccountGuid,
|
|
14491
14521
|
publicationLanguage: publication.publicationLanguage,
|
|
14522
|
+
publicationType: publication.publicationType,
|
|
14492
14523
|
publicationProductSheetGuid: publication.publicationProductSheetGuid,
|
|
14493
14524
|
publicationProductSheetAssetGuid: publication.publicationProductSheetAssetGuid,
|
|
14525
|
+
publicationPages: publication.publicationPages?.map((p) => typeof p.toJSON === 'function' ? p.toJSON() : p) || [],
|
|
14494
14526
|
}, options)
|
|
14495
14527
|
.pipe(finalize(() => {
|
|
14496
14528
|
if (this._webSocket.connection?.state === HubConnectionState.Connected) {
|
|
@@ -15084,6 +15116,31 @@ class PublicationsService {
|
|
|
15084
15116
|
this._webSocket.connection.invoke('refresh', 'dashboardRefresh');
|
|
15085
15117
|
}));
|
|
15086
15118
|
}
|
|
15119
|
+
// ***********************************************************************************
|
|
15120
|
+
// * DATASHEET / TECHNICAL SHEET
|
|
15121
|
+
// ***********************************************************************************
|
|
15122
|
+
getPublicationDatasheetStatus(publicationGuid, options) {
|
|
15123
|
+
const headers = this._settingsService.getHeaders();
|
|
15124
|
+
const queryParams = [];
|
|
15125
|
+
if (options?.page)
|
|
15126
|
+
queryParams.push(`page=${options.page}`);
|
|
15127
|
+
if (options?.pageSize)
|
|
15128
|
+
queryParams.push(`pageSize=${options.pageSize}`);
|
|
15129
|
+
if (options?.search)
|
|
15130
|
+
queryParams.push(`search=${encodeURIComponent(options.search)}`);
|
|
15131
|
+
if (options?.filterStatus)
|
|
15132
|
+
queryParams.push(`filterStatus=${options.filterStatus}`);
|
|
15133
|
+
if (options?.level)
|
|
15134
|
+
queryParams.push(`level=${options.level}`);
|
|
15135
|
+
const queryString = queryParams.length > 0 ? `?${queryParams.join('&')}` : '';
|
|
15136
|
+
const url = `${this._settingsService.getSettings('apiUrl')}Publications/${publicationGuid}/datasheet-status${queryString}`;
|
|
15137
|
+
return this.http.get(url, { headers });
|
|
15138
|
+
}
|
|
15139
|
+
checkDatasheetSkuDocumentExists(publicationGuid, sku) {
|
|
15140
|
+
const headers = this._settingsService.getHeaders();
|
|
15141
|
+
const url = `${this._settingsService.getSettings('apiUrl')}Publications/${publicationGuid}/datasheet-sku-exists?sku=${encodeURIComponent(sku)}`;
|
|
15142
|
+
return this.http.get(url, { headers });
|
|
15143
|
+
}
|
|
15087
15144
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: PublicationsService, deps: [{ token: SettingsService }, { token: i1.HttpClient }, { token: websocketService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
15088
15145
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: PublicationsService, providedIn: 'root' }); }
|
|
15089
15146
|
}
|
|
@@ -16197,6 +16254,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
|
|
|
16197
16254
|
}]
|
|
16198
16255
|
}], ctorParameters: () => [{ type: SettingsService }, { type: i1.HttpClient }, { type: websocketService }] });
|
|
16199
16256
|
|
|
16257
|
+
var AssetType;
|
|
16258
|
+
(function (AssetType) {
|
|
16259
|
+
AssetType["IMAGE"] = "image";
|
|
16260
|
+
AssetType["IMAGE_MULTILANG"] = "imagemultilang";
|
|
16261
|
+
AssetType["AUDIO"] = "audio";
|
|
16262
|
+
AssetType["VIDEO"] = "video";
|
|
16263
|
+
AssetType["FILE"] = "file";
|
|
16264
|
+
AssetType["PRODUCTSHEET"] = "productSheet";
|
|
16265
|
+
AssetType["DATASHEETFILE"] = "datasheetfile";
|
|
16266
|
+
AssetType["DOCUMENT"] = "document";
|
|
16267
|
+
AssetType["PUBLICATION"] = "publication";
|
|
16268
|
+
AssetType["TEMPLATE"] = "template";
|
|
16269
|
+
AssetType["CALLOUT"] = "callout";
|
|
16270
|
+
AssetType["PROJECT"] = "project";
|
|
16271
|
+
AssetType["FILE_MULTILANG"] = "filemultilang";
|
|
16272
|
+
AssetType["FILE_TRAD"] = "filetrad";
|
|
16273
|
+
AssetType["FILES"] = "files";
|
|
16274
|
+
AssetType["FILES_TRAD"] = "filestrad";
|
|
16275
|
+
})(AssetType || (AssetType = {}));
|
|
16276
|
+
|
|
16200
16277
|
class DashboardService {
|
|
16201
16278
|
constructor(_settings, http) {
|
|
16202
16279
|
this._settings = _settings;
|
|
@@ -16361,5 +16438,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
|
|
|
16361
16438
|
* Generated bundle index. Do not edit.
|
|
16362
16439
|
*/
|
|
16363
16440
|
|
|
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 };
|
|
16441
|
+
export { AccountsService, AllLanguagesService, AssetType, 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 };
|
|
16365
16442
|
//# sourceMappingURL=solidpepper-solidpepper-service.mjs.map
|