@infrab4a/connect 4.4.0-beta.9 → 4.4.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
@@ -562,6 +562,10 @@ tslib_1.__decorate([
562
562
  classTransformer.Expose({ name: 'paid_amount' }),
563
563
  tslib_1.__metadata("design:type", Number)
564
564
  ], Payment.prototype, "paidAmount", void 0);
565
+ tslib_1.__decorate([
566
+ classTransformer.Expose({ name: 'paid_at' }),
567
+ tslib_1.__metadata("design:type", String)
568
+ ], Payment.prototype, "paidAt", void 0);
565
569
  tslib_1.__decorate([
566
570
  classTransformer.Expose({ name: 'refunded_amount' }),
567
571
  tslib_1.__metadata("design:type", Number)
@@ -4921,7 +4925,7 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
4921
4925
  }
4922
4926
  }
4923
4927
  async getChildren(parentId) {
4924
- const { category_tree } = await this.query('category_tree', ['id', 'name', 'parent_id'], {
4928
+ const { category_tree } = await this.query('category_tree', ['id', 'name', 'parent_id', 'slug', 'reference'], {
4925
4929
  args: {
4926
4930
  type: 'category_tree_args',
4927
4931
  value: { parentid: parentId },
package/index.esm.js CHANGED
@@ -538,6 +538,10 @@ __decorate([
538
538
  Expose({ name: 'paid_amount' }),
539
539
  __metadata("design:type", Number)
540
540
  ], Payment.prototype, "paidAmount", void 0);
541
+ __decorate([
542
+ Expose({ name: 'paid_at' }),
543
+ __metadata("design:type", String)
544
+ ], Payment.prototype, "paidAt", void 0);
541
545
  __decorate([
542
546
  Expose({ name: 'refunded_amount' }),
543
547
  __metadata("design:type", Number)
@@ -4897,7 +4901,7 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
4897
4901
  }
4898
4902
  }
4899
4903
  async getChildren(parentId) {
4900
- const { category_tree } = await this.query('category_tree', ['id', 'name', 'parent_id'], {
4904
+ const { category_tree } = await this.query('category_tree', ['id', 'name', 'parent_id', 'slug', 'reference'], {
4901
4905
  args: {
4902
4906
  type: 'category_tree_args',
4903
4907
  value: { parentid: parentId },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "4.4.0-beta.9",
3
+ "version": "4.4.0",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -1,7 +1,9 @@
1
+ import { Shops } from '../../catalog';
1
2
  import { BaseModel, GenericIdentifier } from '../../generic/model';
2
3
  import { MenuNav } from './types/menu-nav.type';
3
4
  export declare class ShopMenu extends BaseModel<ShopMenu> {
4
5
  menuNav: MenuNav[];
6
+ shop: Shops;
5
7
  id: string;
6
8
  static get identifiersFields(): GenericIdentifier[];
7
9
  }
@@ -1,8 +1,9 @@
1
1
  import { SubMenu } from './sub-menu.type';
2
2
  export type MenuNav = {
3
- image: string;
3
+ image?: string;
4
4
  label: string;
5
5
  path: string;
6
6
  position: string;
7
7
  subMenu: SubMenu[];
8
+ static: boolean;
8
9
  };
@@ -34,6 +34,7 @@ export declare class Payment extends BaseModel<Payment> {
34
34
  dateUpdated: string;
35
35
  authorizedAmount: number;
36
36
  paidAmount: number;
37
+ paidAt: string;
37
38
  refundedAmount: number;
38
39
  cardHolderName: string;
39
40
  cardLastDigits: string;