@infrab4a/connect 4.3.4-beta.0 → 4.3.4
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
|
@@ -4831,28 +4831,22 @@ class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
|
|
|
4831
4831
|
price,
|
|
4832
4832
|
fullPrice: data.full_price,
|
|
4833
4833
|
subscriberDiscountPercentage: data.subscriber_discount_percentage,
|
|
4834
|
-
fullPriceDiscountPercentage: data.full_price_discount_percentage,
|
|
4835
4834
|
subscriberPrice: data.subscriber_price,
|
|
4836
4835
|
}),
|
|
4837
4836
|
bindFindFilter: (filters) => {
|
|
4838
|
-
return Object.assign(Object.assign(Object.assign(Object.assign(
|
|
4837
|
+
return Object.assign(Object.assign(Object.assign(Object.assign({}, (((filters === null || filters === void 0 ? void 0 : filters.price) || (filters === null || filters === void 0 ? void 0 : filters.price) === 0) && { price: filters.price })), ((filters.fullPrice || filters.fullPrice === 0) && { full_price: filters.fullPrice })), ((filters.subscriberDiscountPercentage || filters.subscriberDiscountPercentage === 0) && {
|
|
4839
4838
|
subscriber_discount_percentage: filters.subscriberDiscountPercentage,
|
|
4840
4839
|
})), ((filters.subscriberPrice || filters.subscriberPrice === 0) && {
|
|
4841
4840
|
subscriber_price: filters.subscriberPrice,
|
|
4842
|
-
})), ((filters.fullPriceDiscountPercentage || filters.fullPriceDiscountPercentage === 0) && {
|
|
4843
|
-
full_price_discount_percentage: filters.fullPriceDiscountPercentage,
|
|
4844
4841
|
}));
|
|
4845
4842
|
},
|
|
4846
|
-
bindPersistData: (priceData) => (Object.assign(Object.assign(Object.assign(Object.assign(
|
|
4843
|
+
bindPersistData: (priceData) => (Object.assign(Object.assign(Object.assign(Object.assign({}, ((priceData === null || priceData === void 0 ? void 0 : priceData.price) >= 0 && { price: priceData.price })), (priceData.fullPrice >= 0 && { full_price: priceData.fullPrice })), (priceData.subscriberDiscountPercentage >= 0 && {
|
|
4847
4844
|
subscriber_discount_percentage: priceData.subscriberDiscountPercentage,
|
|
4848
|
-
})), (priceData.subscriberPrice >= 0 && { subscriber_price: priceData.subscriberPrice })),
|
|
4849
|
-
full_price_discount_percentage: priceData.fullPriceDiscountPercentage,
|
|
4850
|
-
}))),
|
|
4845
|
+
})), (priceData.subscriberPrice >= 0 && { subscriber_price: priceData.subscriberPrice }))),
|
|
4851
4846
|
},
|
|
4852
4847
|
},
|
|
4853
4848
|
{ fullPrice: { columnName: 'full_price' } },
|
|
4854
4849
|
{ subscriberDiscountPercentage: { columnName: 'subscriber_discount_percentage' } },
|
|
4855
|
-
{ fullPriceDiscountPercentage: { columnName: 'full_price_discount_percentage' } },
|
|
4856
4850
|
{ subscriberPrice: { columnName: 'subscriber_price' } },
|
|
4857
4851
|
'published',
|
|
4858
4852
|
'sku',
|
package/index.esm.js
CHANGED
|
@@ -4825,28 +4825,22 @@ class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
|
|
|
4825
4825
|
price,
|
|
4826
4826
|
fullPrice: data.full_price,
|
|
4827
4827
|
subscriberDiscountPercentage: data.subscriber_discount_percentage,
|
|
4828
|
-
fullPriceDiscountPercentage: data.full_price_discount_percentage,
|
|
4829
4828
|
subscriberPrice: data.subscriber_price,
|
|
4830
4829
|
}),
|
|
4831
4830
|
bindFindFilter: (filters) => {
|
|
4832
|
-
return Object.assign(Object.assign(Object.assign(Object.assign(
|
|
4831
|
+
return Object.assign(Object.assign(Object.assign(Object.assign({}, (((filters === null || filters === void 0 ? void 0 : filters.price) || (filters === null || filters === void 0 ? void 0 : filters.price) === 0) && { price: filters.price })), ((filters.fullPrice || filters.fullPrice === 0) && { full_price: filters.fullPrice })), ((filters.subscriberDiscountPercentage || filters.subscriberDiscountPercentage === 0) && {
|
|
4833
4832
|
subscriber_discount_percentage: filters.subscriberDiscountPercentage,
|
|
4834
4833
|
})), ((filters.subscriberPrice || filters.subscriberPrice === 0) && {
|
|
4835
4834
|
subscriber_price: filters.subscriberPrice,
|
|
4836
|
-
})), ((filters.fullPriceDiscountPercentage || filters.fullPriceDiscountPercentage === 0) && {
|
|
4837
|
-
full_price_discount_percentage: filters.fullPriceDiscountPercentage,
|
|
4838
4835
|
}));
|
|
4839
4836
|
},
|
|
4840
|
-
bindPersistData: (priceData) => (Object.assign(Object.assign(Object.assign(Object.assign(
|
|
4837
|
+
bindPersistData: (priceData) => (Object.assign(Object.assign(Object.assign(Object.assign({}, ((priceData === null || priceData === void 0 ? void 0 : priceData.price) >= 0 && { price: priceData.price })), (priceData.fullPrice >= 0 && { full_price: priceData.fullPrice })), (priceData.subscriberDiscountPercentage >= 0 && {
|
|
4841
4838
|
subscriber_discount_percentage: priceData.subscriberDiscountPercentage,
|
|
4842
|
-
})), (priceData.subscriberPrice >= 0 && { subscriber_price: priceData.subscriberPrice })),
|
|
4843
|
-
full_price_discount_percentage: priceData.fullPriceDiscountPercentage,
|
|
4844
|
-
}))),
|
|
4839
|
+
})), (priceData.subscriberPrice >= 0 && { subscriber_price: priceData.subscriberPrice }))),
|
|
4845
4840
|
},
|
|
4846
4841
|
},
|
|
4847
4842
|
{ fullPrice: { columnName: 'full_price' } },
|
|
4848
4843
|
{ subscriberDiscountPercentage: { columnName: 'subscriber_discount_percentage' } },
|
|
4849
|
-
{ fullPriceDiscountPercentage: { columnName: 'full_price_discount_percentage' } },
|
|
4850
4844
|
{ subscriberPrice: { columnName: 'subscriber_price' } },
|
|
4851
4845
|
'published',
|
|
4852
4846
|
'sku',
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FirebaseStorage } from 'firebase/storage';
|
|
2
2
|
import { FileUploaderService } from '../../../domain';
|
|
3
3
|
export declare class FirebaseFileUploaderService implements FileUploaderService {
|
|
4
4
|
private storage;
|
|
5
5
|
private baseUrl;
|
|
6
|
-
constructor(storage:
|
|
6
|
+
constructor(storage: FirebaseStorage, baseUrl: string);
|
|
7
7
|
upload(path: string, file: Blob | Uint8Array | ArrayBuffer): Promise<string>;
|
|
8
8
|
}
|