@infrab4a/connect 1.0.0-beta.12 → 1.0.0-beta.13

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 { ProductRepository, Shops } from '../../../../domain';
1
+ import { ProductRepository, Shops, UpdateRepositoryParams } from '../../../../domain';
2
2
  import { ProductHasuraGraphQL } from '../../models';
3
3
  import { HasuraGraphQLAuthOptions } from '../../types';
4
4
  declare const ProductHasuraGraphQLRepository_base: import("../../../../utils").MixinCtor<import("../../types").GraphQLRepository<ProductHasuraGraphQL> & import("../../../../domain").CrudRepository<ProductHasuraGraphQL, import("../../../../domain").CrudParams<ProductHasuraGraphQL>> & import("../../../../domain").UpdateRepository<ProductHasuraGraphQL, import("../../../../domain").RepositoryUpdateParams<ProductHasuraGraphQL>> & {
@@ -7,5 +7,7 @@ declare const ProductHasuraGraphQLRepository_base: import("../../../../utils").M
7
7
  export declare class ProductHasuraGraphQLRepository extends ProductHasuraGraphQLRepository_base implements ProductRepository {
8
8
  constructor(endpoint: string, authOptions: HasuraGraphQLAuthOptions);
9
9
  getBySlug(slug: string, shop: Shops): Promise<ProductHasuraGraphQL>;
10
+ update(params: UpdateRepositoryParams<ProductHasuraGraphQL>): Promise<ProductHasuraGraphQL>;
11
+ private updateCategories;
10
12
  }
11
13
  export {};
@@ -39,4 +39,4 @@ export declare type HasuraGraphQLFields<Model extends ModelBaseStructure> = (Non
39
39
  [key in NonFunctionAndIdentifierPropertyNames<Model>]?: key extends 'aggregate' ? never : PropType<Model, key> extends ModelBaseStructure ? ColumnModelOptions<PropType<Model, key>, Model> : ColumnOptions<PropType<Model, key>, Model>;
40
40
  } | {
41
41
  aggregate: Array<AggregateOptions<Model> | 'count'>;
42
- })[];
42
+ } | 'affected_rows')[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "1.0.0-beta.12",
3
+ "version": "1.0.0-beta.13",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },