@infrab4a/connect 4.13.0 → 4.13.1-beta.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/index.cjs.js CHANGED
@@ -6259,6 +6259,12 @@ class WishlistHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
6259
6259
  options: {
6260
6260
  enableCount: false,
6261
6261
  },
6262
+ orderBy: {
6263
+ id: 'asc',
6264
+ },
6265
+ limits: {
6266
+ limit: 1,
6267
+ },
6262
6268
  });
6263
6269
  if (!data.length)
6264
6270
  throw new NotFoundError(`Wishlists from person ${personId} not found`);
package/index.esm.js CHANGED
@@ -6253,6 +6253,12 @@ class WishlistHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
6253
6253
  options: {
6254
6254
  enableCount: false,
6255
6255
  },
6256
+ orderBy: {
6257
+ id: 'asc',
6258
+ },
6259
+ limits: {
6260
+ limit: 1,
6261
+ },
6256
6262
  });
6257
6263
  if (!data.length)
6258
6264
  throw new NotFoundError(`Wishlists from person ${personId} not found`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "4.13.0",
3
+ "version": "4.13.1-beta.0",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -2,7 +2,7 @@ import { CrudRepository } from '../../generic/repository/crud.repository';
2
2
  import { Product } from '../models';
3
3
  import { Category } from '../models/category';
4
4
  import { Shops } from '../models/enums/shops.enum';
5
- export interface CategoryRepository extends CrudRepository<Category> {
5
+ export interface CategoryRepository<T extends Category = Category> extends CrudRepository<T> {
6
6
  getCategoryBySlug(slug: string, shop: Shops): Promise<Category>;
7
7
  getCategoryByShop(shop: string): Promise<Category[]>;
8
8
  getCategoriesForHome(categoryIds: string[], limit?: number, gender?: string): Promise<{
@@ -2,7 +2,7 @@ import { CategoryRepository } from '.';
2
2
  import { FindRepositoryParams, RepositoryFindResult } from '../../generic';
3
3
  import { Shops } from '../models';
4
4
  import { Wishlist } from '../models/wishlist';
5
- export interface WishlistRepository extends CategoryRepository {
5
+ export interface WishlistRepository extends CategoryRepository<Wishlist> {
6
6
  getWishlistBySlug(slug: string): Promise<Wishlist>;
7
7
  getWishlistByPerson(personId: string): Promise<Wishlist[]>;
8
8
  findBfluOrGlamgirlWishlists(params: FindRepositoryParams<Wishlist>, shops: Shops[]): Promise<RepositoryFindResult<Wishlist>>;