@infrab4a/connect 4.9.7-beta.35 → 4.9.7-beta.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 +597 -1036
- package/index.esm.js +598 -1029
- package/package.json +1 -1
- package/src/domain/catalog/models/category-base.d.ts +3 -5
- package/src/domain/catalog/models/enums/index.d.ts +0 -2
- package/src/domain/catalog/models/filter.d.ts +0 -1
- package/src/domain/catalog/models/index.d.ts +0 -1
- package/src/domain/catalog/models/product-base.d.ts +1 -4
- package/src/domain/catalog/models/types/index.d.ts +1 -3
- package/src/domain/catalog/models/variant.d.ts +0 -4
- package/src/domain/catalog/models/wishlist.d.ts +0 -3
- package/src/domain/catalog/repositories/category.repository.d.ts +3 -3
- package/src/domain/catalog/repositories/index.d.ts +0 -1
- package/src/domain/catalog/repositories/product-reviews.repository.d.ts +0 -1
- package/src/domain/catalog/repositories/product-stock-notification.repository.d.ts +1 -9
- package/src/domain/catalog/repositories/product.repository.d.ts +1 -2
- package/src/domain/catalog/repositories/wishlist.repository.d.ts +1 -6
- package/src/domain/general/index.d.ts +0 -3
- package/src/domain/shopping/index.d.ts +0 -1
- package/src/domain/shopping/models/buy-2-win.d.ts +0 -2
- package/src/domain/shopping/models/coupons/coupon.d.ts +4 -8
- package/src/domain/shopping/models/coupons/enums/coupon-types.enum.d.ts +1 -2
- package/src/domain/shopping/models/coupons/enums/index.d.ts +1 -3
- package/src/domain/shopping/models/index.d.ts +0 -1
- package/src/domain/shopping/models/order.d.ts +0 -4
- package/src/domain/shopping/repositories/index.d.ts +0 -1
- package/src/domain/users/models/enums/index.d.ts +0 -1
- package/src/domain/users/models/index.d.ts +2 -3
- package/src/infra/elasticsearch/indexes/products-index.d.ts +1 -39
- package/src/infra/firebase/firestore/mixins/with-helpers.mixin.d.ts +1 -1
- package/src/infra/firebase/firestore/repositories/catalog/category-firestore.repository.d.ts +2 -2
- package/src/infra/firebase/firestore/repositories/catalog/product-firestore.repository.d.ts +1 -2
- package/src/infra/firebase/firestore/repositories/index.d.ts +2 -3
- package/src/infra/firebase/firestore/repositories/shopping/index.d.ts +0 -1
- package/src/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.d.ts +0 -1
- package/src/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.d.ts +2 -2
- package/src/infra/hasura-graphql/repositories/catalog/index.d.ts +0 -1
- package/src/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.d.ts +2 -2
- package/src/infra/hasura-graphql/repositories/catalog/product-review-hasura-graphql.repository.d.ts +0 -1
- package/src/infra/hasura-graphql/repositories/catalog/product-stock-notification-hasura-graphql.repository.d.ts +1 -8
- package/src/infra/hasura-graphql/repositories/catalog/wishlist-hasura-graphql.repository.d.ts +15 -18
- package/src/infra/index.d.ts +0 -1
- package/src/domain/catalog/models/category-product.d.ts +0 -8
- package/src/domain/catalog/models/enums/product-label.enum.d.ts +0 -6
- package/src/domain/catalog/models/enums/wishlist-log.enum.d.ts +0 -7
- package/src/domain/catalog/models/types/product-label.type.d.ts +0 -2
- package/src/domain/catalog/models/types/product-variant-report.type.d.ts +0 -46
- package/src/domain/catalog/models/types/report-stock-notification.type.d.ts +0 -21
- package/src/domain/catalog/repositories/category-product.repository.d.ts +0 -6
- package/src/domain/general/models/index.d.ts +0 -1
- package/src/domain/general/models/log-document.d.ts +0 -15
- package/src/domain/general/repositories/index.d.ts +0 -1
- package/src/domain/general/repositories/log.repository.d.ts +0 -4
- package/src/domain/general/search/index.d.ts +0 -1
- package/src/domain/general/search/product-search-index.d.ts +0 -3
- package/src/domain/shopping/models/coupons/enums/coupon-category.enum.d.ts +0 -41
- package/src/domain/shopping/models/coupons/enums/coupon-channels.enum.d.ts +0 -10
- package/src/domain/shopping/models/coupons/types/coupon-category.type.d.ts +0 -2
- package/src/domain/shopping/models/coupons/types/coupon-channel.type.d.ts +0 -2
- package/src/domain/shopping/models/coupons/types/index.d.ts +0 -2
- package/src/domain/shopping/models/order-blocked.d.ts +0 -26
- package/src/domain/shopping/repositories/order-blocked.repository.d.ts +0 -6
- package/src/domain/shopping/types/index.d.ts +0 -2
- package/src/domain/shopping/types/order-tracking-events.type.d.ts +0 -14
- package/src/domain/shopping/types/payment-card-info.type.d.ts +0 -4
- package/src/domain/users/models/enums/person-types.enum.d.ts +0 -5
- package/src/domain/users/models/types/index.d.ts +0 -1
- package/src/domain/users/models/types/person.type.d.ts +0 -2
- package/src/infra/firebase/firestore/repositories/general/index.d.ts +0 -1
- package/src/infra/firebase/firestore/repositories/general/log-firestore.repository.d.ts +0 -7
- package/src/infra/firebase/firestore/repositories/shopping/order-blocked-firestore.repository.ts.d.ts +0 -9
- package/src/infra/hasura-graphql/models/wishlist-hasura-graphql.d.ts +0 -4
- package/src/infra/hasura-graphql/repositories/catalog/category-product-hasura-graphql.repository.d.ts +0 -11
- package/src/infra/vertex-ai/adapters/index.d.ts +0 -2
- package/src/infra/vertex-ai/adapters/vertex-ai-search.adapter.d.ts +0 -10
- package/src/infra/vertex-ai/adapters/vertex-axios.adapter.d.ts +0 -15
- package/src/infra/vertex-ai/index.d.ts +0 -3
- package/src/infra/vertex-ai/indexes/index.d.ts +0 -1
- package/src/infra/vertex-ai/indexes/products-vertex-search.d.ts +0 -13
- package/src/infra/vertex-ai/types/axios-vertex-search-config.d.ts +0 -4
- package/src/infra/vertex-ai/types/index.d.ts +0 -3
- package/src/infra/vertex-ai/types/product-bulk.d.ts +0 -4
- package/src/infra/vertex-ai/types/product-search.d.ts +0 -21
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
export type ProductVariantReport = {
|
|
2
|
-
id: number;
|
|
3
|
-
name?: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
slug?: string;
|
|
6
|
-
sku?: string;
|
|
7
|
-
ean?: string;
|
|
8
|
-
cest?: string;
|
|
9
|
-
ncm?: string;
|
|
10
|
-
has_variants?: boolean;
|
|
11
|
-
is_variant?: boolean;
|
|
12
|
-
grade: any;
|
|
13
|
-
type?: string;
|
|
14
|
-
is_kit?: boolean;
|
|
15
|
-
tags?: string[];
|
|
16
|
-
published?: boolean;
|
|
17
|
-
stock?: number;
|
|
18
|
-
brand?: string;
|
|
19
|
-
brand_description?: string;
|
|
20
|
-
images?: string[];
|
|
21
|
-
miniatures?: string[];
|
|
22
|
-
video?: string;
|
|
23
|
-
weight?: number;
|
|
24
|
-
cost_price?: number;
|
|
25
|
-
full_price?: number;
|
|
26
|
-
price?: number;
|
|
27
|
-
subscriber_discount_percentage?: number;
|
|
28
|
-
subscriber_price?: number;
|
|
29
|
-
how_to_use?: string;
|
|
30
|
-
who_must_use?: string;
|
|
31
|
-
differentials?: string;
|
|
32
|
-
ingredients?: string;
|
|
33
|
-
purpose?: string;
|
|
34
|
-
filters: string[];
|
|
35
|
-
category_id?: number;
|
|
36
|
-
outlet?: boolean;
|
|
37
|
-
label?: string;
|
|
38
|
-
group?: number;
|
|
39
|
-
validity?: boolean;
|
|
40
|
-
gender?: string;
|
|
41
|
-
shopping_count?: number;
|
|
42
|
-
rating?: number;
|
|
43
|
-
reviews_total?: number;
|
|
44
|
-
created_at?: Date;
|
|
45
|
-
updated_at?: Date;
|
|
46
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export type ReportStockNotification = {
|
|
2
|
-
product_id: string;
|
|
3
|
-
ean: string;
|
|
4
|
-
sku: string;
|
|
5
|
-
name: string;
|
|
6
|
-
stock: number;
|
|
7
|
-
category: string;
|
|
8
|
-
category_id: string;
|
|
9
|
-
category_reference: string;
|
|
10
|
-
emails_registered: number;
|
|
11
|
-
};
|
|
12
|
-
export type ReportStockNotificationInput = {
|
|
13
|
-
productId?: string;
|
|
14
|
-
ean?: string;
|
|
15
|
-
sku?: string;
|
|
16
|
-
name?: string;
|
|
17
|
-
category?: string;
|
|
18
|
-
categoryId?: string;
|
|
19
|
-
reference?: string;
|
|
20
|
-
emailsCount?: number;
|
|
21
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { CrudRepository } from '../../generic/repository/crud.repository';
|
|
2
|
-
import { CategoryProduct } from '../models';
|
|
3
|
-
export interface CategoryProductRepository extends CrudRepository<CategoryProduct> {
|
|
4
|
-
removeProductFromCategory(categoryId: string, productId: string): Promise<void>;
|
|
5
|
-
addProductToCategory(categoryId: string, productId: string): Promise<void>;
|
|
6
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './log-document';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BaseModel, GenericIdentifier } from '../../generic';
|
|
2
|
-
export declare class LogDocument extends BaseModel<LogDocument> {
|
|
3
|
-
id?: string;
|
|
4
|
-
collection: string;
|
|
5
|
-
documentId: string;
|
|
6
|
-
user?: {
|
|
7
|
-
id?: string;
|
|
8
|
-
name?: string;
|
|
9
|
-
email?: string;
|
|
10
|
-
};
|
|
11
|
-
document: any;
|
|
12
|
-
date: Date;
|
|
13
|
-
operation: 'CREATE' | 'UPDATE' | 'DELETE';
|
|
14
|
-
static get identifiersFields(): GenericIdentifier[];
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './log.repository';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './product-search-index';
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export declare enum CouponCategory {
|
|
2
|
-
Reembolso = "Reembolso",
|
|
3
|
-
Desculpas = "Desculpas",
|
|
4
|
-
BFlu = "BFlu",
|
|
5
|
-
ROYAL = "Royal",
|
|
6
|
-
Glamqueens = "Glamqueens",
|
|
7
|
-
Glampartner = "Glampartner",
|
|
8
|
-
Glamgirls = "Glamgirls",
|
|
9
|
-
Glamdiva = "Glamdiva",
|
|
10
|
-
Impulsionamento = "Impulsionamento",
|
|
11
|
-
PaidMedia = "Paid Media",
|
|
12
|
-
Organic = "Organic",
|
|
13
|
-
Direct = "Direct",
|
|
14
|
-
CRM = "CRM",
|
|
15
|
-
LOJAUNICO = "Loja \u00FAnico",
|
|
16
|
-
Outros = "Outros"
|
|
17
|
-
}
|
|
18
|
-
export declare enum CouponOldCategories {
|
|
19
|
-
Reembolso = "Reembolso",
|
|
20
|
-
Desculpas = "Desculpas",
|
|
21
|
-
BFlu = "BFlu",
|
|
22
|
-
ROYAL = "Royal",
|
|
23
|
-
Glamqueens = "Glamqueens",
|
|
24
|
-
Glampartner = "Glampartner",
|
|
25
|
-
Glamgirls = "Glamgirls",
|
|
26
|
-
Glamdiva = "Glamdiva",
|
|
27
|
-
Impulsionamento = "Impulsionamento",
|
|
28
|
-
PaidMedia = "Paid Media",
|
|
29
|
-
Organic = "Organic",
|
|
30
|
-
Direct = "Direct",
|
|
31
|
-
CRM = "CRM",
|
|
32
|
-
LOJAUNICO = "Loja \u00FAnico",
|
|
33
|
-
Outros = "Outros"
|
|
34
|
-
}
|
|
35
|
-
export declare enum CouponCategories {
|
|
36
|
-
API_001 = "API-001",
|
|
37
|
-
COMPRE_E_GANHE = "COMPRE E GANHE",
|
|
38
|
-
DESCONTO = "DESCONTO",
|
|
39
|
-
REEMBOLSO = "REEMBOLSO",
|
|
40
|
-
DESCULPAS = "DESCULPAS"
|
|
41
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { BaseModel, GenericIdentifier } from '../../generic';
|
|
2
|
-
import { UserAddress } from '../../users';
|
|
3
|
-
export declare class OrderBlocked extends BaseModel<OrderBlocked> {
|
|
4
|
-
id?: string;
|
|
5
|
-
customer: {
|
|
6
|
-
name: string;
|
|
7
|
-
cpf: string;
|
|
8
|
-
id: string;
|
|
9
|
-
email: string;
|
|
10
|
-
phoneNumber: string;
|
|
11
|
-
isSubscriber: boolean;
|
|
12
|
-
subscriptionPlan: string;
|
|
13
|
-
shippingAddress: UserAddress;
|
|
14
|
-
};
|
|
15
|
-
blockType: string;
|
|
16
|
-
limiteRange: string;
|
|
17
|
-
type: string;
|
|
18
|
-
card?: any;
|
|
19
|
-
checkout: {
|
|
20
|
-
id: string;
|
|
21
|
-
shop: string;
|
|
22
|
-
total: number;
|
|
23
|
-
};
|
|
24
|
-
date: Date;
|
|
25
|
-
static get identifiersFields(): GenericIdentifier[];
|
|
26
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { CrudRepository } from '../../generic/repository/crud.repository';
|
|
2
|
-
import { Checkout, OrderBlocked } from '../models';
|
|
3
|
-
import { PaymentCardInfo } from '../types';
|
|
4
|
-
export interface OrderBlockedRepository extends CrudRepository<OrderBlocked> {
|
|
5
|
-
createBlockedOrderOrPayment(checkout: Checkout, blockType: string, type: string, limiteRange: string, card?: PaymentCardInfo): Promise<OrderBlocked>;
|
|
6
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export type OrderTrackingEvent = {
|
|
2
|
-
cnpj?: string;
|
|
3
|
-
eventCategory?: string;
|
|
4
|
-
eventDate?: string;
|
|
5
|
-
eventDescription?: string;
|
|
6
|
-
eventTime?: string;
|
|
7
|
-
invoiceNumber?: string;
|
|
8
|
-
observation?: string;
|
|
9
|
-
proofUrl?: string;
|
|
10
|
-
receiverDocument?: string;
|
|
11
|
-
receiverName?: string;
|
|
12
|
-
receiverRelationship?: string;
|
|
13
|
-
shippingCompanyName?: string;
|
|
14
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './person.type';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './log-firestore.repository';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { LogDocument, LogRepository } from '../../../../../domain';
|
|
2
|
-
import { FirestoreConstructorParams } from '../../mixins';
|
|
3
|
-
declare const LogFirestoreRepository_base: import("../../../../../utils").MixinCtor<import("../..").FirestoreRepository<LogDocument> & import("../../../../../domain").CrudRepository<LogDocument, import("../../../../../domain").CrudParams<LogDocument>> & import("../..").FirestoreHelpers, [FirestoreConstructorParams<LogDocument>, ...any[]]>;
|
|
4
|
-
export declare class LogFirestoreRepository extends LogFirestoreRepository_base implements LogRepository {
|
|
5
|
-
constructor({ firestore, interceptors, }: Pick<FirestoreConstructorParams<LogDocument>, 'firestore' | 'interceptors'>);
|
|
6
|
-
}
|
|
7
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Checkout, OrderBlocked, OrderBlockedRepository, PaymentCardInfo } from '../../../../../domain';
|
|
2
|
-
import { FirestoreConstructorParams } from '../../mixins';
|
|
3
|
-
declare const OrderBlockedFirestoreRepository_base: import("../../../../../utils").MixinCtor<import("../..").FirestoreRepository<OrderBlocked> & import("../../../../../domain").CrudRepository<OrderBlocked, import("../../../../../domain").CrudParams<OrderBlocked>> & import("../..").FirestoreHelpers, [FirestoreConstructorParams<OrderBlocked>, ...any[]]>;
|
|
4
|
-
export declare class OrderBlockedFirestoreRepository extends OrderBlockedFirestoreRepository_base implements OrderBlockedRepository {
|
|
5
|
-
constructor({ firestore, interceptors, }: Pick<FirestoreConstructorParams<OrderBlocked>, 'firestore' | 'interceptors'>);
|
|
6
|
-
createBlockedOrderOrPayment(checkout: Checkout, blockType: string, type: string, limiteRange: string, card?: PaymentCardInfo): Promise<OrderBlocked>;
|
|
7
|
-
private formatZip;
|
|
8
|
-
}
|
|
9
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CategoryProduct, CategoryProductRepository } from '../../../../domain';
|
|
2
|
-
import { HasuraConstructorParams } from '../../mixins';
|
|
3
|
-
declare const CategoryProductHasuraGraphQLRepository_base: import("../../../../utils").MixinCtor<import("../..").GraphQLRepository<CategoryProduct> & import("../../../../domain").CrudRepository<CategoryProduct, import("../../../../domain").CrudParams<CategoryProduct>> & import("../../../../domain").UpdateRepository<CategoryProduct, import("../../../../domain").RepositoryUpdateParams<CategoryProduct>> & {
|
|
4
|
-
paramsToPlain(params: import("../../../../domain").RepositoryUpdateParams<CategoryProduct>): Partial<CategoryProduct>;
|
|
5
|
-
}, [HasuraConstructorParams<CategoryProduct> & import("../../mixins").CreateConstructorParams & import("../../mixins").DeleteConstructorParams & import("../../mixins").GetConstructorParams & import("../../mixins").UpdateConstructorParams, ...any[]]>;
|
|
6
|
-
export declare class CategoryProductHasuraGraphQLRepository extends CategoryProductHasuraGraphQLRepository_base implements CategoryProductRepository {
|
|
7
|
-
constructor({ endpoint, authOptions, interceptors, }: Pick<HasuraConstructorParams<CategoryProduct>, 'endpoint' | 'authOptions' | 'interceptors'>);
|
|
8
|
-
removeProductFromCategory(categoryId: string, productId: string): Promise<void>;
|
|
9
|
-
addProductToCategory(categoryId: string, productId: string): Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Product } from '../../../domain';
|
|
2
|
-
import { ProductBulk } from '../types';
|
|
3
|
-
export interface VertexSearchAdapter<T> {
|
|
4
|
-
query(searchTerm: string, total: number, gender?: String): Promise<T[]>;
|
|
5
|
-
get(id: string): Promise<T>;
|
|
6
|
-
save(data: Product): Promise<any>;
|
|
7
|
-
update(id: string, data: Product): Promise<any>;
|
|
8
|
-
delete(id: string): Promise<void>;
|
|
9
|
-
bulkProducts(products: ProductBulk[]): Promise<void>;
|
|
10
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Product } from '../../../domain';
|
|
2
|
-
import { ProductBulk, ProductSearch } from '../types';
|
|
3
|
-
import { VertexSearchConfig } from '../types/axios-vertex-search-config';
|
|
4
|
-
import { VertexSearchAdapter } from './vertex-ai-search.adapter';
|
|
5
|
-
export declare class VertexAxiosAdapter implements VertexSearchAdapter<ProductSearch> {
|
|
6
|
-
private readonly config;
|
|
7
|
-
private logger;
|
|
8
|
-
constructor(config: VertexSearchConfig);
|
|
9
|
-
query(term: string, total: number, gender?: String): Promise<ProductSearch[]>;
|
|
10
|
-
get(id: string): Promise<ProductSearch>;
|
|
11
|
-
save(data: Product): Promise<any>;
|
|
12
|
-
update(id: string, data: Product): Promise<any>;
|
|
13
|
-
delete(id: string): Promise<void>;
|
|
14
|
-
bulkProducts(products: ProductBulk[]): Promise<void>;
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './products-vertex-search';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ProductSearchIndex } from '../../../domain';
|
|
2
|
-
import { ProductHasuraGraphQL } from '../../hasura-graphql';
|
|
3
|
-
import { VertexSearchAdapter } from '../adapters';
|
|
4
|
-
import { ProductSearch } from '../types';
|
|
5
|
-
export declare class ProductsVertexSearch implements ProductSearchIndex {
|
|
6
|
-
private readonly adapter;
|
|
7
|
-
constructor(adapter: VertexSearchAdapter<ProductSearch>);
|
|
8
|
-
getById(id: string): Promise<ProductSearch>;
|
|
9
|
-
search<ProductSearch>(searchTerm: string, total: number, gender?: String): Promise<ProductSearch[]>;
|
|
10
|
-
save(product: ProductHasuraGraphQL): Promise<void>;
|
|
11
|
-
update(product: ProductHasuraGraphQL): Promise<void>;
|
|
12
|
-
delete(id: string): Promise<void>;
|
|
13
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export type ProductSearch = {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
ean?: string;
|
|
5
|
-
sku: string;
|
|
6
|
-
icon?: string;
|
|
7
|
-
miniatures?: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
slug: string;
|
|
10
|
-
brand: string;
|
|
11
|
-
published: boolean;
|
|
12
|
-
gender: string;
|
|
13
|
-
shoppingCount: number;
|
|
14
|
-
stock: number;
|
|
15
|
-
rating: number;
|
|
16
|
-
fullPrice: number;
|
|
17
|
-
price: number;
|
|
18
|
-
subscriberPrice: number;
|
|
19
|
-
outlet: boolean;
|
|
20
|
-
createdAt: Date;
|
|
21
|
-
};
|