@solidpepper/solidpepper-service 1.0.9 → 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.
package/index.d.ts CHANGED
@@ -65,11 +65,186 @@ declare class CompanyService {
65
65
  static ɵprov: i0.ɵɵInjectableDeclaration<CompanyService>;
66
66
  }
67
67
 
68
+ declare enum ModuleType {
69
+ PRODUCTS = "Products",
70
+ SALES = "Sales",
71
+ SALESPLUS = "Salesplus",
72
+ MEDIA = "Media",
73
+ PUBLICATIONS = "Publications",
74
+ BOMS = "Boms",
75
+ CHANNELS = "Channels",
76
+ SETTINGS = "Settings",
77
+ WORKFLOWS = "Workflows"
78
+ }
79
+
80
+ declare enum SubModuleType {
81
+ PUBLICATIONS = "Projects",
82
+ PROJECTS = "Projects",
83
+ CATALOGS = "Catalogs",
84
+ MODELS = "Models",
85
+ PUBLICATION_IMPORTS = "PublicationImports",
86
+ PUBLICATION_EXPORTS = "PublicationExports",
87
+ PRODUCT_SHEETS = "ProductSheets",
88
+ MEDIA_DAM_ASSETS = "DamAssets",
89
+ MEDIA_MISSING = "DamAssetsMissing",
90
+ MEDIA_ORPHANS = "DamAssetsOrhpans",
91
+ MEDIA_RECENTLY_DELETED = "DamAssetsRecentlyDeleted",
92
+ MEDIA_PROFILES = "DamAssetsProfiles",
93
+ MEDIA_SELECTIONS = "DamAssetsSelections",
94
+ PRODUCTS_PRODUCTS = "Products",
95
+ PRODUCTS_CATEGORIES = "Categories",
96
+ PRODUCTS_SUPPLIERS = "Suppliers",
97
+ PRODUCTS_VIEWS = "Views",
98
+ WORKFLOWS_WORKFLOWS = "Workflows",
99
+ WORKFLOWS_STEPS = "Steps",
100
+ WORKFLOWS_WORKROOMS = "Workrooms",
101
+ WORKFLOWS_COMPLETENESS_RULES = "CompletenessRules",
102
+ WORKFLOWS_HISTORY = "History",
103
+ SALES_ORDERS = "Orders",
104
+ SALES_QUOTES = "Quotes",
105
+ SALES_CUSTOMERS = "Customers",
106
+ SALES_REQUESTS = "Requests",
107
+ BOMS_BOMS = "Boms",
108
+ CHANNELS_CHANNELS = "Channels",
109
+ SETTINGS_ATTRIBUTES_PRODUCTS = "AttributesProducts",
110
+ SETTINGS_ATTRIBUTES_CATEGORIES = "AttributesCategories",
111
+ SETTINGS_ATTRIBUTES_SUPPLIERS = "AttributesSuppliers",
112
+ SETTINGS_ATTRIBUTES_ASSETS = "AttributesAssets",
113
+ SETTINGS_ATTRIBUTES_ACCOUNTS_CONTACTS = "AttributesAccountsContacts",
114
+ SETTINGS_ATTRIBUTES_ACCOUNTS = "AttributesAccounts",
115
+ SETTINGS_MASKS = "Masks",
116
+ SETTINGS_MAPPING = "Mapping",
117
+ SETTINGS_IMPORTS = "Imports",
118
+ SETTINGS_EXPORTS = "Exports",
119
+ SETTINGS_TEMPLATES_EXCEL = "TemplatesExcel"
120
+ }
121
+
122
+ declare enum FunctionType {
123
+ MODIFY = "Modify",
124
+ ADD = "Add",
125
+ DELETE = "Delete",
126
+ DUPLICATE = "Duplicate",
127
+ MASS_UPDATE = "MassUpdate",
128
+ ASSIGN_TO_CHANNEL = "AssignToChannel",
129
+ EXPORT_FILE_WITH_FILTER = "ExportFileWithFilter",
130
+ GENERATE_TECHNICAL_SHEET = "GenerateTechnicalSheet",
131
+ EXPORT_FILE_WITH_TEMPLATE = "ExportFileWithTemplate",
132
+ GENERATE_TECHNICAL_SHEET_BATCH = "GenerateTechnicalSheetBatch",
133
+ UPDATE = "Update",
134
+ PUBLISH = "Publish",
135
+ RE_ORDER = "ReOrder",
136
+ CHANGE_STATE = "ChangeState",
137
+ REGENERATE_PDF = "RegeneratePDF",
138
+ DOWNLOAD_PDF = "DownloadPDF",
139
+ SEND = "Send",
140
+ GEOLOCATE = "Geolocate",
141
+ CONVERT = "Convert",
142
+ READ = "Read",
143
+ REPLY = "Reply",
144
+ ADD_FOLDER = "AddFolder",
145
+ DELETE_FOLDER = "DeleteFolder",
146
+ MOVE_FOLDER = "MoveFolder",
147
+ DOWNLOAD_FOLDER = "DownloadFolder",
148
+ RENAME_FOLDER = "RenameFolder",
149
+ ASSIGN_TEAM = "AssignTeam",
150
+ COPY_FOLDER_GUID = "CopyFolderGuid",
151
+ UPLOAD = "Upload",
152
+ MOVE = "Move",
153
+ RENAME = "Rename",
154
+ COPY_URL = "CopyURL",
155
+ SHARE_PHOTO = "SharePhoto",
156
+ OPEN_IN_NEW_TAB = "OpenInNewTab",
157
+ CHANGE_STATUS = "ChangeStatus",
158
+ AUTO_TAG = "AutoTag",
159
+ REMOVE_BACKGROUND = "RemoveBackground",
160
+ DOWNLOAD = "Download",
161
+ MEDIA_TREATMENT = "MediaTreatment",
162
+ RESTORE = "Restore",
163
+ SHOW_ALL = "ShowAll",
164
+ REGENERATE = "Regenerate",
165
+ ADD_CALLOUT = "AddCallout",
166
+ REVIEW = "Review",
167
+ ADD_YOUBOOKY = "AddYouBooky",
168
+ ADD_DOCUMENT = "AddDocument",
169
+ ADD_TECHNICAL_SHEETS = "AddTechnicalSheets",
170
+ ADD_CATALOG = "AddCatalog",
171
+ CONFIGURE_PROJECT = "ConfigureProject",
172
+ GENERATE_CATALOG = "GenerateCatalog",
173
+ GENERATE_DATA_SHEET = "GenerateDataSheet",
174
+ GENERATE_HD = "GenerateHD",
175
+ GENERATE_CMYK = "GenerateCMYK",
176
+ FLIPBOOK = "Flipbook",
177
+ REVIEWER = "Reviewer",
178
+ MANAGE_FONTS = "ManageFonts",
179
+ YOU_BOOKY = "YouBooky",
180
+ AUTO_GENERATION = "AutoGeneration",
181
+ PREVIEW_AUTO_GENERATION = "PreviewAutoGeneration",
182
+ CREATE_VERSION = "CreateVersion",
183
+ GENERATE_XML = "GenerateXML",
184
+ EXPORT_EXCEL_DATA = "ExportExcelData",
185
+ ADD_SECTION = "AddSection",
186
+ DUPLICATE_SECTION = "DuplicateSection",
187
+ CONFIGURE_SECTION = "ConfigureSection",
188
+ DELETE_SECTION = "DeleteSection",
189
+ ADD_PRODUCT = "AddProduct",
190
+ ADD_PRODUCTS = "AddProduct",
191
+ CONFIGURE_PRODUCT = "ConfigureProduct",
192
+ REMOVE_PRODUCT = "RemoveProduct",
193
+ REMOVE_PRODUCTS = "RemoveProduct",
194
+ MOVE_PRODUCTS = "MoveProducts",
195
+ REORDER_PRODUCTS = "ReorderProducts",
196
+ MASS_ADD_PRODUCTS = "MassAddProducts",
197
+ MASS_EXCLUDE_PRODUCTS = "MassExcludeProducts",
198
+ MASS_EDIT_PRICES = "MassEditPrices",
199
+ ADD_LINE_BREAK = "AddLineBreak",
200
+ ADD_PAGE_BREAK = "AddPageBreak",
201
+ ADD_CALLOUT_ELEMENT = "AddCalloutElement",
202
+ ADD_PRODUCT_SHEET = "AddProductSheet",
203
+ EDIT_PRODUCT_SHEET = "EditProductSheet",
204
+ REMOVE_PRODUCT_SHEET = "RemoveProductSheet",
205
+ ADD_PRODUCT_SHEET_COLUMN = "AddProductSheetColumn",
206
+ EDIT_PRODUCT_SHEET_COLUMN = "EditProductSheetColumn",
207
+ REMOVE_PRODUCT_SHEET_COLUMN = "RemoveProductSheetColumn",
208
+ ADD_PRODUCT_SHEET_LINE = "AddProductSheetLine",
209
+ EDIT_PRODUCT_SHEET_LINE = "EditProductSheetLine",
210
+ REMOVE_PRODUCT_SHEET_LINE = "RemoveProductSheetLine",
211
+ IMPORT_PRODUCT_SHEET_PASTE = "ImportProductSheetPaste",
212
+ IMPORT_PRODUCT_SHEET_FILE = "ImportProductSheetFile",
213
+ ADD_COMPONENT = "AddComponent",
214
+ DELETE_COMPONENT = "DeleteComponent",
215
+ ADD_B2B = "AddB2B",
216
+ ADD_PRESTASHOP = "AddPrestashop",
217
+ ADD_STORYBLOK = "AddStoryblok",
218
+ ADD_GROUP = "AddGroup",
219
+ DELETE_GROUP = "DeleteGroup",
220
+ ADD_ATTRIBUTE = "AddAttribute",
221
+ DELETE_ATTRIBUTE = "DeleteAttribute",
222
+ RESTORE_ATTRIBUTE = "RestoreAttribute",
223
+ EXECUTE = "Execute",
224
+ IMPORT_PRODUCTS = "ImportProducts",
225
+ IMPORT_SALES = "ImportSales",
226
+ IMPORT_ATTRIBUTES = "ImportAttributes",
227
+ IMPORT_ASSETS = "ImportAssets",
228
+ EXPORT_PRODUCTS = "ExportProducts",
229
+ EXPORT_SALES = "ExportSales",
230
+ EXPORT_ASSETS = "ExportAssets",
231
+ ADD_STANDARD = "AddStandard",
232
+ DELETE_STANDARD = "DeleteStandard",
233
+ UPDATE_STANDARD = "UpdateStandard",
234
+ ADD_CONDITION = "AddCondition",
235
+ DELETE_CONDITION = "DeleteCondition",
236
+ UPDATE_CONDITION = "UpdateCondition"
237
+ }
238
+
68
239
  declare class RightsService {
69
240
  private rightsAccessModule;
70
241
  constructor();
71
242
  sendRights(rights: any): void;
72
243
  getRights(): Observable<any>;
244
+ hasAccess(rightsObj: any, module: ModuleType | string, subModule?: SubModuleType | string, func?: FunctionType | string): boolean;
245
+ isModuleActive(rightsObj: any, module: ModuleType | string): boolean;
246
+ isSubModuleActive(rightsObj: any, module: ModuleType | string, subModule: SubModuleType | string): boolean;
247
+ isFunctionActive(rightsObj: any, module: ModuleType | string, subModule: SubModuleType | string, func: FunctionType | string): boolean;
73
248
  static ɵfac: i0.ɵɵFactoryDeclaration<RightsService, never>;
74
249
  static ɵprov: i0.ɵɵInjectableDeclaration<RightsService>;
75
250
  }
@@ -3255,12 +3430,12 @@ declare class ProductSheetsService {
3255
3430
  }
3256
3431
 
3257
3432
  declare enum ProjectType {
3258
- STATIC = "static",
3259
- DYNAMIC = "dynamic",
3260
- YOUBOOKY = "youbooky",
3261
- DOCUMENT = "document",
3262
- CATALOGUE = "catalogue",
3263
- TECHNICAL_SHEET = "technicalSheet"
3433
+ STATIC = "STATIC",
3434
+ DYNAMIC = "DYNAMIC",
3435
+ YOUBOOKY = "YOUBOOKY",
3436
+ DOCUMENT = "DOCUMENT",
3437
+ CATALOG = "CATALOG",
3438
+ TECHNICAL_SHEET = "DATASHEET"
3264
3439
  }
3265
3440
 
3266
3441
  interface PublicationPageProps {
@@ -3269,6 +3444,7 @@ interface PublicationPageProps {
3269
3444
  name?: string;
3270
3445
  status?: number;
3271
3446
  background?: string;
3447
+ gabarit?: string;
3272
3448
  order?: number;
3273
3449
  modifiedAt?: Date | string | null;
3274
3450
  type?: string;
@@ -3282,6 +3458,7 @@ declare class PublicationPage {
3282
3458
  private _name;
3283
3459
  private _status;
3284
3460
  private _background;
3461
+ private _gabarit;
3285
3462
  private _order;
3286
3463
  private _modifiedAt;
3287
3464
  private _type;
@@ -3298,6 +3475,8 @@ declare class PublicationPage {
3298
3475
  set status(value: number);
3299
3476
  get background(): string;
3300
3477
  set background(value: string);
3478
+ get gabarit(): string;
3479
+ set gabarit(value: string);
3301
3480
  get order(): number;
3302
3481
  set order(value: number);
3303
3482
  get modifiedAt(): Date | string | null;
@@ -3314,6 +3493,7 @@ declare class PublicationPage {
3314
3493
  name: string;
3315
3494
  status: number;
3316
3495
  background: string;
3496
+ gabarit: string;
3317
3497
  order: number;
3318
3498
  modifiedAt: string | Date | null;
3319
3499
  type: string;
@@ -3760,6 +3940,7 @@ declare class Publication {
3760
3940
  name: string;
3761
3941
  status: number;
3762
3942
  background: string;
3943
+ gabarit: string;
3763
3944
  order: number;
3764
3945
  modifiedAt: string | Date | null;
3765
3946
  type: string;
@@ -3997,6 +4178,19 @@ declare class PublicationsService {
3997
4178
  createDocumentFromPublication(documentName: string, publicationGuid: string, folderSelected: string): Observable<Object>;
3998
4179
  createEmptyDocumentFromPublication(documentName: string, publicationGuid: string, folderSelected: string): Observable<Object>;
3999
4180
  shareToYoubooky(publicationGuid: string): Observable<Object>;
4181
+ getPublicationDatasheetStatus(publicationGuid: string, options?: {
4182
+ page?: number;
4183
+ pageSize?: number;
4184
+ search?: string;
4185
+ filterStatus?: 'all' | 'generated' | 'not_generated' | 'orphan';
4186
+ level?: 'products' | 'variants';
4187
+ }): Observable<any>;
4188
+ checkDatasheetSkuDocumentExists(publicationGuid: string, sku: string): Observable<{
4189
+ exists: boolean;
4190
+ sku: string;
4191
+ documentGuid?: string;
4192
+ documentUrlSmall?: string;
4193
+ }>;
4000
4194
  static ɵfac: i0.ɵɵFactoryDeclaration<PublicationsService, never>;
4001
4195
  static ɵprov: i0.ɵɵInjectableDeclaration<PublicationsService>;
4002
4196
  }
@@ -4378,6 +4572,25 @@ declare class DamAssetsProfilesService {
4378
4572
  static ɵprov: i0.ɵɵInjectableDeclaration<DamAssetsProfilesService>;
4379
4573
  }
4380
4574
 
4575
+ declare enum AssetType {
4576
+ IMAGE = "image",
4577
+ IMAGE_MULTILANG = "imagemultilang",
4578
+ AUDIO = "audio",
4579
+ VIDEO = "video",
4580
+ FILE = "file",
4581
+ PRODUCTSHEET = "productSheet",
4582
+ DATASHEETFILE = "datasheetfile",
4583
+ DOCUMENT = "document",
4584
+ PUBLICATION = "publication",
4585
+ TEMPLATE = "template",
4586
+ CALLOUT = "callout",
4587
+ PROJECT = "project",
4588
+ FILE_MULTILANG = "filemultilang",
4589
+ FILE_TRAD = "filetrad",
4590
+ FILES = "files",
4591
+ FILES_TRAD = "filestrad"
4592
+ }
4593
+
4381
4594
  declare class DashboardService {
4382
4595
  private _settings;
4383
4596
  private http;
@@ -4416,5 +4629,5 @@ declare class PresetsService {
4416
4629
  static ɵprov: i0.ɵɵInjectableDeclaration<PresetsService>;
4417
4630
  }
4418
4631
 
4419
- 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 };
4632
+ 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 };
4420
4633
  export type { AttributeObject, AttributesGroup, AuthGroup, Bom, CategoryObject, Company, DocumentComment, DocumentProps, Mask, MaskName, Prompt, PublicationDataProps, PublicationPageProps, PublicationPagesResponse, PublicationProductsResponse, PublicationProps, PublicationTemplateProps, Supplier, TemplateProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidpepper/solidpepper-service",
3
- "version": "1.0.9",
3
+ "version": "1.1.1",
4
4
  "description": "Services d'accès aux APIs Solidpepper",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^20.3.0",