@infrab4a/connect 5.2.1-alpha.0 → 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
|
@@ -5,7 +5,7 @@ import { FirestoreRepository, FirestoreSubRepository } from '../types';
|
|
|
5
5
|
export declare const withHelpers: <TMixinBase extends MixinCtor<any, any[]> = MixinCtor<any, any[]>>(MixinBase: MixinCtor<any, any[]> & TMixinBase) => {
|
|
6
6
|
new (...args: any[]): {
|
|
7
7
|
[x: string]: any;
|
|
8
|
-
toArray<T extends ModelBaseStructure<T, T["identifiersFields"][number]>>(snapShot: QuerySnapshot<T> | QueryDocumentSnapshot<T>[]): T[];
|
|
8
|
+
toArray<T extends ModelBaseStructure<T, T["identifiersFields"][number]>>(snapShot: QuerySnapshot<T, import("firebase/firestore").DocumentData> | QueryDocumentSnapshot<T, import("firebase/firestore").DocumentData>[]): T[];
|
|
9
9
|
isSubCollection<T_1 extends ModelBaseStructure<T_1, T_1["identifiersFields"][number]>, E extends ModelBaseStructure<E, E["identifiersFields"][number]>>(repository: FirestoreRepository<T_1> | FirestoreSubRepository<T_1, E>): repository is FirestoreSubRepository<T_1, E>;
|
|
10
10
|
};
|
|
11
11
|
} & TMixinBase;
|