@infrab4a/connect 5.2.1 → 5.2.2-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.
package/index.cjs.js CHANGED
@@ -7346,6 +7346,12 @@ const commonFields = [
7346
7346
  to: (value) => (value?.length > 0 ? `{"${value?.join?.('","') || ''}"}` : '{}'),
7347
7347
  },
7348
7348
  },
7349
+ {
7350
+ imagesCard: {
7351
+ columnName: 'images_card',
7352
+ to: (value) => (value?.length > 0 ? `{"${value?.join?.('","') || ''}"}` : '{}'),
7353
+ },
7354
+ },
7349
7355
  'name',
7350
7356
  {
7351
7357
  price: {
@@ -8099,6 +8105,24 @@ const fieldsConfiguration$1 = [
8099
8105
  'validity',
8100
8106
  { tags: { columnName: 'tags', type: HasuraGraphQLColumnType.Jsonb } },
8101
8107
  'published',
8108
+ {
8109
+ images: {
8110
+ columnName: 'images',
8111
+ to: (value) => (value?.length > 0 ? `{"${value?.join?.('","') || ''}"}` : '{}'),
8112
+ },
8113
+ },
8114
+ {
8115
+ miniatures: {
8116
+ columnName: 'miniatures',
8117
+ to: (value) => (value?.length > 0 ? `{"${value?.join?.('","') || ''}"}` : '{}'),
8118
+ },
8119
+ },
8120
+ {
8121
+ imagesCard: {
8122
+ columnName: 'images_card',
8123
+ to: (value) => (value?.length > 0 ? `{"${value?.join?.('","') || ''}"}` : '{}'),
8124
+ },
8125
+ },
8102
8126
  ];
8103
8127
  class VariantHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGraphQL(Base)) {
8104
8128
  constructor({ endpoint, authOptions, interceptors, cache, }) {
package/index.esm.js CHANGED
@@ -7321,6 +7321,12 @@ const commonFields = [
7321
7321
  to: (value) => (value?.length > 0 ? `{"${value?.join?.('","') || ''}"}` : '{}'),
7322
7322
  },
7323
7323
  },
7324
+ {
7325
+ imagesCard: {
7326
+ columnName: 'images_card',
7327
+ to: (value) => (value?.length > 0 ? `{"${value?.join?.('","') || ''}"}` : '{}'),
7328
+ },
7329
+ },
7324
7330
  'name',
7325
7331
  {
7326
7332
  price: {
@@ -8074,6 +8080,24 @@ const fieldsConfiguration$1 = [
8074
8080
  'validity',
8075
8081
  { tags: { columnName: 'tags', type: HasuraGraphQLColumnType.Jsonb } },
8076
8082
  'published',
8083
+ {
8084
+ images: {
8085
+ columnName: 'images',
8086
+ to: (value) => (value?.length > 0 ? `{"${value?.join?.('","') || ''}"}` : '{}'),
8087
+ },
8088
+ },
8089
+ {
8090
+ miniatures: {
8091
+ columnName: 'miniatures',
8092
+ to: (value) => (value?.length > 0 ? `{"${value?.join?.('","') || ''}"}` : '{}'),
8093
+ },
8094
+ },
8095
+ {
8096
+ imagesCard: {
8097
+ columnName: 'images_card',
8098
+ to: (value) => (value?.length > 0 ? `{"${value?.join?.('","') || ''}"}` : '{}'),
8099
+ },
8100
+ },
8077
8101
  ];
8078
8102
  class VariantHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGraphQL(Base)) {
8079
8103
  constructor({ endpoint, authOptions, interceptors, cache, }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "5.2.1",
3
+ "version": "5.2.2-beta.0",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -19,6 +19,7 @@ export declare class ProductBase<T extends ProductBase<T, I>, I = ProductIdentif
19
19
  costPrice: number;
20
20
  images?: string[];
21
21
  miniatures?: string[];
22
+ imagesCard?: string[];
22
23
  published: boolean;
23
24
  createdAt?: Date;
24
25
  updatedAt?: Date;