@akinon/next 1.49.0 → 1.50.0
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/CHANGELOG.md +6 -0
- package/data/client/wishlist.ts +8 -1
- package/data/urls.ts +2 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/data/client/wishlist.ts
CHANGED
|
@@ -170,6 +170,12 @@ export const wishlistApi = api.injectEndpoints({
|
|
|
170
170
|
method: 'DELETE'
|
|
171
171
|
})
|
|
172
172
|
}),
|
|
173
|
+
deleteCollectionItem: build.query<void, number>({
|
|
174
|
+
query: (pk: number) => ({
|
|
175
|
+
url: buildClientRequestUrl(wishlist.deleteCollectionItem(pk)),
|
|
176
|
+
method: 'DELETE'
|
|
177
|
+
})
|
|
178
|
+
}),
|
|
173
179
|
editCollection: build.mutation<
|
|
174
180
|
CollectionItem,
|
|
175
181
|
{ name: string; pk: number }
|
|
@@ -200,5 +206,6 @@ export const {
|
|
|
200
206
|
useGetCollectionsOOSQuery,
|
|
201
207
|
useLazyGetCollectionsOOSQuery,
|
|
202
208
|
useLazyDeleteCollectionQuery,
|
|
203
|
-
useEditCollectionMutation
|
|
209
|
+
useEditCollectionMutation,
|
|
210
|
+
useDeleteCollectionItemQuery
|
|
204
211
|
} = wishlistApi;
|
package/data/urls.ts
CHANGED
|
@@ -170,6 +170,8 @@ export const wishlist = {
|
|
|
170
170
|
product_id ? product_id : ''
|
|
171
171
|
}`,
|
|
172
172
|
deleteCollection: (pk: number) => `/wishlists/user-collections/${pk}/`,
|
|
173
|
+
deleteCollectionItem: (pk: number) =>
|
|
174
|
+
`/wishlists/user-collection-items/${pk}/`,
|
|
173
175
|
editCollection: (pk: number) => `/wishlists/user-collections/${pk}/`
|
|
174
176
|
};
|
|
175
177
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akinon/next",
|
|
3
3
|
"description": "Core package for Project Zero Next",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.50.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bin": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@typescript-eslint/eslint-plugin": "6.7.4",
|
|
35
35
|
"@typescript-eslint/parser": "6.7.4",
|
|
36
36
|
"eslint": "^8.14.0",
|
|
37
|
-
"@akinon/eslint-plugin-projectzero": "1.
|
|
37
|
+
"@akinon/eslint-plugin-projectzero": "1.50.0",
|
|
38
38
|
"eslint-config-prettier": "8.5.0"
|
|
39
39
|
}
|
|
40
40
|
}
|