@infrab4a/connect 5.4.0-beta.12 → 5.4.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.
package/index.cjs.js CHANGED
@@ -8661,6 +8661,7 @@ const fieldsConfiguration$1 = [
8661
8661
  },
8662
8662
  },
8663
8663
  'group',
8664
+ 'type',
8664
8665
  'validity',
8665
8666
  'published',
8666
8667
  { tagsCollection: { columnName: 'tags_collection', type: HasuraGraphQLColumnType.Jsonb } },
@@ -8757,6 +8758,17 @@ const fieldsConfiguration$1 = [
8757
8758
  fields: ['id', 'name', 'reference', 'slug'],
8758
8759
  },
8759
8760
  },
8761
+ {
8762
+ categories: {
8763
+ columnName: 'categories',
8764
+ fields: ['category_id'],
8765
+ bindPersistData: (value) => ({
8766
+ categories: { data: value.map((category) => ({ category_id: +category })) },
8767
+ }),
8768
+ to: (categories) => categories.map((categoryId) => +categoryId),
8769
+ from: (categories) => categories?.map((category) => category?.category_id?.toString()) || [],
8770
+ },
8771
+ },
8760
8772
  {
8761
8773
  metadata: {
8762
8774
  columnName: 'metadata',
package/index.esm.js CHANGED
@@ -8637,6 +8637,7 @@ const fieldsConfiguration$1 = [
8637
8637
  },
8638
8638
  },
8639
8639
  'group',
8640
+ 'type',
8640
8641
  'validity',
8641
8642
  'published',
8642
8643
  { tagsCollection: { columnName: 'tags_collection', type: HasuraGraphQLColumnType.Jsonb } },
@@ -8733,6 +8734,17 @@ const fieldsConfiguration$1 = [
8733
8734
  fields: ['id', 'name', 'reference', 'slug'],
8734
8735
  },
8735
8736
  },
8737
+ {
8738
+ categories: {
8739
+ columnName: 'categories',
8740
+ fields: ['category_id'],
8741
+ bindPersistData: (value) => ({
8742
+ categories: { data: value.map((category) => ({ category_id: +category })) },
8743
+ }),
8744
+ to: (categories) => categories.map((categoryId) => +categoryId),
8745
+ from: (categories) => categories?.map((category) => category?.category_id?.toString()) || [],
8746
+ },
8747
+ },
8736
8748
  {
8737
8749
  metadata: {
8738
8750
  columnName: 'metadata',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "5.4.0-beta.12",
3
+ "version": "5.4.0-beta.13",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },