@infrab4a/connect 2.0.6 → 2.0.8

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.
@@ -1,4 +1,4 @@
1
- import { Category, CategoryRepository, GetRepositoryParams, Product, Shops } from '../../../../domain';
1
+ import { Category, CategoryRepository, GetRepositoryParams, Product, Shops, UpdateRepositoryParams } from '../../../../domain';
2
2
  import { CategoryHasuraGraphQL } from '../../models';
3
3
  import { HasuraGraphQLAuthOptions } from '../../types';
4
4
  import { ProductHasuraGraphQLRepository } from './product-hasura-graphql.repository';
@@ -9,6 +9,7 @@ export declare class CategoryHasuraGraphQLRepository extends CategoryHasuraGraph
9
9
  private readonly productRepository;
10
10
  constructor(endpoint: string, authOptions: HasuraGraphQLAuthOptions, productRepository: ProductHasuraGraphQLRepository);
11
11
  get(identifiers: GetRepositoryParams<CategoryHasuraGraphQL>): Promise<CategoryHasuraGraphQL>;
12
+ update(params: UpdateRepositoryParams<CategoryHasuraGraphQL>): Promise<CategoryHasuraGraphQL>;
12
13
  getCategoryBySlug(slug: string, shop: Shops): Promise<Category>;
13
14
  getCategoriesForHome(categoryIds: string[], limit?: number): Promise<{
14
15
  category: Category;
@@ -18,5 +19,7 @@ export declare class CategoryHasuraGraphQLRepository extends CategoryHasuraGraph
18
19
  limit?: number;
19
20
  hasStock?: boolean;
20
21
  }): Promise<Product[]>;
22
+ private getId;
23
+ private updateProducts;
21
24
  }
22
25
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },