@infrab4a/connect 4.9.7-beta.8 → 4.9.7-beta.9
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
|
@@ -5889,8 +5889,8 @@ class ProductStockNotificationHasuraGraphQLRepository extends withCrudHasuraGrap
|
|
|
5889
5889
|
email,
|
|
5890
5890
|
});
|
|
5891
5891
|
}
|
|
5892
|
-
async getNotificationsReport({ ean, sku, name, reference, }) {
|
|
5893
|
-
const query = Object.assign(Object.assign(Object.assign(Object.assign({}, (ean && { ean: { _eq: ean } })), (sku && { sku: { _eq: sku } })), (name && { name: {
|
|
5892
|
+
async getNotificationsReport({ ean, sku, name, category, reference, emailsCount, }) {
|
|
5893
|
+
const query = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (ean && { ean: { _eq: ean } })), (sku && { sku: { _eq: sku } })), (name && { name: { _iregex: name } })), (category && { category: { _iregex: category } })), (reference && { category_reference: { _eq: reference } })), (emailsCount && { emails_registered: { _eq: emailsCount } }));
|
|
5894
5894
|
const { report_stock_notification } = await this.query('report_stock_notification', ['ean', 'sku', 'name', 'stock', 'category', 'category_reference', 'emails_registered'], {
|
|
5895
5895
|
where: {
|
|
5896
5896
|
type: 'report_stock_notification_bool_exp',
|
package/index.esm.js
CHANGED
|
@@ -5883,8 +5883,8 @@ class ProductStockNotificationHasuraGraphQLRepository extends withCrudHasuraGrap
|
|
|
5883
5883
|
email,
|
|
5884
5884
|
});
|
|
5885
5885
|
}
|
|
5886
|
-
async getNotificationsReport({ ean, sku, name, reference, }) {
|
|
5887
|
-
const query = Object.assign(Object.assign(Object.assign(Object.assign({}, (ean && { ean: { _eq: ean } })), (sku && { sku: { _eq: sku } })), (name && { name: {
|
|
5886
|
+
async getNotificationsReport({ ean, sku, name, category, reference, emailsCount, }) {
|
|
5887
|
+
const query = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (ean && { ean: { _eq: ean } })), (sku && { sku: { _eq: sku } })), (name && { name: { _iregex: name } })), (category && { category: { _iregex: category } })), (reference && { category_reference: { _eq: reference } })), (emailsCount && { emails_registered: { _eq: emailsCount } }));
|
|
5888
5888
|
const { report_stock_notification } = await this.query('report_stock_notification', ['ean', 'sku', 'name', 'stock', 'category', 'category_reference', 'emails_registered'], {
|
|
5889
5889
|
where: {
|
|
5890
5890
|
type: 'report_stock_notification_bool_exp',
|
package/package.json
CHANGED
|
@@ -7,11 +7,13 @@ declare const ProductStockNotificationHasuraGraphQLRepository_base: import("../.
|
|
|
7
7
|
export declare class ProductStockNotificationHasuraGraphQLRepository extends ProductStockNotificationHasuraGraphQLRepository_base implements ProductStockNotificationRepository {
|
|
8
8
|
constructor({ endpoint, authOptions, interceptors, }: Pick<HasuraConstructorParams<Filter>, 'endpoint' | 'authOptions' | 'interceptors'>);
|
|
9
9
|
addCustomerEmail(shop: Shops, productId: string, name: string, email: string): Promise<void>;
|
|
10
|
-
getNotificationsReport({ ean, sku, name, reference, }: {
|
|
10
|
+
getNotificationsReport({ ean, sku, name, category, reference, emailsCount, }: {
|
|
11
11
|
ean?: string;
|
|
12
12
|
sku?: string;
|
|
13
13
|
name?: string;
|
|
14
|
+
category?: string;
|
|
14
15
|
reference?: string;
|
|
16
|
+
emailsCount?: number;
|
|
15
17
|
}): Promise<ReportStockNotification[]>;
|
|
16
18
|
}
|
|
17
19
|
export {};
|