import{bc as l}from"./app-BgLa5dit.js";const s={getAllCatalogs(){return{key:"catalogs",url:"/ajax/marketing/catalogs/all",type:l.GET}},getCatalog(t,a){return{key:`catalog:${t}:${a}`,url:`/ajax/marketing/catalogs/${a}/${t}`,type:l.GET}},deleteCatalog(t,a){return{key:`delete:catalog:${t}:${a}`,url:`/ajax/marketing/catalogs/${a}/${t}`,type:l.DELETE,invalidationKeys:["catalogs"]}},createCatalog(t,a){return{key:`create:catalog:${a}`,url:`/ajax/marketing/catalogs/${a}`,type:l.POST,data:t,invalidationKeys:["catalogs"]}},getCatalogItems(t,a){return{key:`catalog:${t}:${a}:items`,url:`/ajax/marketing/catalogs/${a}/${t}/items`,type:l.GET}},createItem(t,a,e){return{key:`create:catalog:item:${t}:${e}`,url:`/ajax/marketing/catalogs/${e}/${t}/items`,type:l.POST,data:a,invalidationKeys:[`catalog:${t}:${e}:items`]}},createField(t,a,e){return{key:`create:catalog:field:${t}:${e}`,url:`/ajax/marketing/catalogs/${e}/${t}/fields`,type:l.POST,data:a,invalidationKeys:[`catalog:${t}:${e}`,`catalog:${t}:${e}:items`]}},updateCatalog(t,a,e){return{key:`update:catalog:${t}:${a}`,url:`/ajax/marketing/catalogs/${a}/${t}/items`,type:l.PUT,data:e,invalidationKeys:[`catalog:${t}:${a}:items`]}},deleteItem(t,a,e){return{key:`delete:catalog:item:${t}:${e}:${a}`,url:`/ajax/marketing/catalogs/${e}/${t}/items/${a}`,type:l.DELETE,invalidationKeys:[`catalog:${t}:${e}:items`]}},deleteField(t,a,e){return{key:`delete:catalog:field:${t}:${e}:${a}`,url:`/ajax/marketing/catalogs/${e}/${t}/fields/${a}`,type:l.DELETE,invalidationKeys:[`catalog:${t}:${e}`,`catalog:${t}:${e}:items`]}}};export{s as M};
//# sourceMappingURL=DwzYo0zp.chunk.js.map
