eleven-solutions-common-website-unique-web 9.0.42 → 9.0.43

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.
@@ -3,5 +3,5 @@ export declare const fetchTemplatesApi: () => Promise<unknown>;
3
3
  export declare const fetchTemplateByIdApi: (id: string) => Promise<unknown>;
4
4
  export declare const updateTemplateApi: (id: string, name: string, content: string) => Promise<unknown>;
5
5
  export declare const deleteTemplateApi: (id: string) => Promise<{
6
- isDeleted: boolean;
6
+ id: string;
7
7
  }>;
@@ -83,13 +83,13 @@ export const deleteTemplateApi = (id) => __awaiter(void 0, void 0, void 0, funct
83
83
  try {
84
84
  const response = yield axios.request({
85
85
  method: "PATCH",
86
- url: `${apiUrl}/template/deletetemplate/${id}`,
86
+ url: `${apiUrl}/template/deletetemplate`,
87
87
  headers: {
88
88
  Authorization: `Bearer ${token}`,
89
89
  "Content-Type": "application/json",
90
90
  },
91
91
  data: {
92
- isDeleted: true, // Update only the isDeleted property
92
+ id,
93
93
  },
94
94
  });
95
95
  return response.data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eleven-solutions-common-website-unique-web",
3
- "version": "9.0.42",
3
+ "version": "9.0.43",
4
4
  "main": "./dist/index.js",
5
5
  "scripts": {
6
6
  "build": "tsc",
@@ -96,13 +96,13 @@ export const deleteTemplateApi = async (id: string) => {
96
96
  try {
97
97
  const response = await axios.request({
98
98
  method: "PATCH",
99
- url: `${apiUrl}/template/deletetemplate/${id}`,
99
+ url: `${apiUrl}/template/deletetemplate`,
100
100
  headers: {
101
101
  Authorization: `Bearer ${token}`,
102
102
  "Content-Type": "application/json",
103
103
  },
104
104
  data: {
105
- isDeleted: true, // Update only the isDeleted property
105
+ id,
106
106
  },
107
107
  });
108
108
  return response.data;