PMCORE-3300: Custom cases list: Enable Search Filter does not work
fix code style change service method fix CR notes migrate GET to POST fix card view
This commit is contained in:
58
resources/assets/js/api/Custom.js
Normal file
58
resources/assets/js/api/Custom.js
Normal file
@@ -0,0 +1,58 @@
|
||||
import axios from "axios";
|
||||
import ApiInstance from "./Api.js";
|
||||
import Services from "./Services";
|
||||
let Api = new ApiInstance( Services );
|
||||
|
||||
export let custom = {
|
||||
inbox(data) {
|
||||
let service = "INBOX_CUSTOM_LIST",
|
||||
keys = {},
|
||||
params;
|
||||
keys["id"] = data.id,
|
||||
params = data.filters;
|
||||
return Api.post({
|
||||
service,
|
||||
data: params,
|
||||
keys
|
||||
});
|
||||
},
|
||||
draft(data) {
|
||||
let service = "INBOX_CUSTOM_LIST",
|
||||
keys = {},
|
||||
params;
|
||||
service = "DRAFT_CUSTOM_LIST";
|
||||
keys["id"] = data.id;
|
||||
params = data.filters;
|
||||
return Api.post({
|
||||
service,
|
||||
data: params,
|
||||
keys
|
||||
});
|
||||
},
|
||||
paused(data) {
|
||||
let service = "INBOX_CUSTOM_LIST",
|
||||
keys = {},
|
||||
params;
|
||||
service = "PAUSED_CUSTOM_LIST";
|
||||
keys["id"] = data.id;
|
||||
params = data.filters;
|
||||
return Api.post({
|
||||
service,
|
||||
data: params,
|
||||
keys
|
||||
});
|
||||
},
|
||||
unassigned(data) {
|
||||
let service = "INBOX_CUSTOM_LIST",
|
||||
keys = {},
|
||||
params;
|
||||
service = "UNASSIGNED_CUSTOM_LIST";
|
||||
keys["id"] = data.id;
|
||||
params = data.filters;
|
||||
return Api.post({
|
||||
service,
|
||||
data: params,
|
||||
keys
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -5,7 +5,7 @@ import { config } from "./Config";
|
||||
import { caseNotes } from "./CaseNotes";
|
||||
import { process } from "./Process";
|
||||
import { filters } from "./Filters";
|
||||
|
||||
import { custom } from "./Custom";
|
||||
|
||||
export default {
|
||||
menu,
|
||||
@@ -14,5 +14,6 @@ export default {
|
||||
process,
|
||||
caseNotes,
|
||||
filters,
|
||||
config
|
||||
config,
|
||||
custom
|
||||
};
|
||||
Reference in New Issue
Block a user