@infrab4a/connect 3.0.0 → 3.1.0-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.
@@ -1,4 +1,4 @@
1
- import { Category, CategoryRepository, GetRepositoryParams, Product, Shops, UpdateRepositoryParams } from '../../../../domain';
1
+ import { Category, CategoryRepository, CreateRepositoryParams, 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';
@@ -8,6 +8,7 @@ declare const CategoryHasuraGraphQLRepository_base: import("../../../../utils").
8
8
  export declare class CategoryHasuraGraphQLRepository extends CategoryHasuraGraphQLRepository_base implements CategoryRepository {
9
9
  private readonly productRepository;
10
10
  constructor(endpoint: string, authOptions: HasuraGraphQLAuthOptions, productRepository: ProductHasuraGraphQLRepository);
11
+ create(params: CreateRepositoryParams<CategoryHasuraGraphQL>): Promise<CategoryHasuraGraphQL>;
11
12
  get(identifiers: GetRepositoryParams<CategoryHasuraGraphQL>): Promise<CategoryHasuraGraphQL>;
12
13
  update(params: UpdateRepositoryParams<CategoryHasuraGraphQL>): Promise<CategoryHasuraGraphQL>;
13
14
  getCategoryBySlug(slug: string, shop: Shops): Promise<Category>;
@@ -21,5 +22,6 @@ export declare class CategoryHasuraGraphQLRepository extends CategoryHasuraGraph
21
22
  }): Promise<Product[]>;
22
23
  private getId;
23
24
  private updateProducts;
25
+ private updateMetadata;
24
26
  }
25
27
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "3.0.0",
3
+ "version": "3.1.0-beta.0",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },