@infrab4a/connect 4.23.0-beta.6 → 4.23.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 +0 -1
- package/index.esm.js +0 -1
- package/package.json +1 -1
- package/src/domain/shop-settings/models/home.d.ts +2 -1
- package/src/domain/shop-settings/models/types/index.d.ts +1 -0
- package/src/domain/shop-settings/models/types/shop-sameday-not-available.d.ts +6 -0
- package/src/domain/shopping/models/coupons/coupon.d.ts +1 -1
- package/src/domain/shopping/models/shipping-method.d.ts +13 -9
- package/src/domain/shopping/types/checkout-paylod-request.type.d.ts +15 -0
- package/src/domain/shopping/types/checkout-response.type.d.ts +7 -0
- package/src/domain/shopping/types/checkout-stock-validation.type.d.ts +5 -0
- package/src/domain/shopping/types/index.d.ts +5 -0
- package/src/domain/shopping/types/shipping-method-response.type.d.ts +13 -0
- package/src/domain/shopping/types/shipping-product-request.type.d.ts +9 -0
- package/src/domain/users/models/user-address.d.ts +1 -0
package/index.cjs.js
CHANGED
|
@@ -5832,7 +5832,6 @@ class ProductErrorsHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHas
|
|
|
5832
5832
|
'error',
|
|
5833
5833
|
{ createdAt: { columnName: 'created_at' } },
|
|
5834
5834
|
{ updatedAt: { columnName: 'updated_at' } },
|
|
5835
|
-
{ errors: { columnName: 'errors', type: HasuraGraphQLColumnType.Jsonb } },
|
|
5836
5835
|
{
|
|
5837
5836
|
product: {
|
|
5838
5837
|
columnName: 'product',
|
package/index.esm.js
CHANGED
|
@@ -5826,7 +5826,6 @@ class ProductErrorsHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHas
|
|
|
5826
5826
|
'error',
|
|
5827
5827
|
{ createdAt: { columnName: 'created_at' } },
|
|
5828
5828
|
{ updatedAt: { columnName: 'updated_at' } },
|
|
5829
|
-
{ errors: { columnName: 'errors', type: HasuraGraphQLColumnType.Jsonb } },
|
|
5830
5829
|
{
|
|
5831
5830
|
product: {
|
|
5832
5831
|
columnName: 'product',
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseModel, GenericIdentifier } from '../../generic/model';
|
|
2
|
-
import { Banner, Benefit, HomeDataStructure } from './types';
|
|
2
|
+
import { Banner, Benefit, HomeDataStructure, ShopSameDayNotAvailable } from './types';
|
|
3
3
|
export declare class Home extends BaseModel<Home> {
|
|
4
4
|
benefitsSection: Benefit[];
|
|
5
5
|
blockBanners: Banner[];
|
|
@@ -14,5 +14,6 @@ export declare class Home extends BaseModel<Home> {
|
|
|
14
14
|
id: string;
|
|
15
15
|
data: HomeDataStructure;
|
|
16
16
|
minValueForFreeShipping: number;
|
|
17
|
+
sameDayNotAvaliable: ShopSameDayNotAvailable;
|
|
17
18
|
static get identifiersFields(): GenericIdentifier[];
|
|
18
19
|
}
|
|
@@ -13,5 +13,6 @@ export * from './shop-collection.type';
|
|
|
13
13
|
export * from './shop-gift.type';
|
|
14
14
|
export * from './shop-home';
|
|
15
15
|
export * from './shop-post.type';
|
|
16
|
+
export * from './shop-sameday-not-available';
|
|
16
17
|
export * from './shop-section.type';
|
|
17
18
|
export * from './sub-menu.type';
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import { BaseModel, GenericIdentifier } from '../../generic/model/base.model';
|
|
2
2
|
export declare class ShippingMethod extends BaseModel<ShippingMethod> {
|
|
3
|
-
id
|
|
4
|
-
|
|
3
|
+
id?: string;
|
|
4
|
+
cnpj: string;
|
|
5
5
|
DaysToDelivery: number;
|
|
6
|
-
MaxGrams
|
|
7
|
-
MinGrams
|
|
8
|
-
ServiceCompanyRangeId
|
|
9
|
-
ShippingCompanyId
|
|
6
|
+
MaxGrams?: number;
|
|
7
|
+
MinGrams?: number;
|
|
8
|
+
ServiceCompanyRangeId?: number;
|
|
9
|
+
ShippingCompanyId?: number;
|
|
10
10
|
ShippingCompanyName: string;
|
|
11
11
|
ShippingPrice: number;
|
|
12
|
-
State
|
|
13
|
-
ZipEnd
|
|
14
|
-
ZipStart
|
|
12
|
+
State?: string;
|
|
13
|
+
ZipEnd?: number;
|
|
14
|
+
ZipStart?: number;
|
|
15
15
|
invoiceNumber?: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
additionalDescription?: string;
|
|
18
|
+
serviceCode?: string;
|
|
19
|
+
isSubscriptionAddress?: boolean;
|
|
16
20
|
static get identifiersFields(): GenericIdentifier[];
|
|
17
21
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PaymentProvider } from './payment-provider.type';
|
|
2
|
+
export type CheckoutPayloadRequest = {
|
|
3
|
+
checkoutId: string;
|
|
4
|
+
shopId: string;
|
|
5
|
+
paymentProvider: PaymentProvider;
|
|
6
|
+
isChange?: boolean;
|
|
7
|
+
card?: {
|
|
8
|
+
installments: number;
|
|
9
|
+
cardId: string;
|
|
10
|
+
cardCvv?: string;
|
|
11
|
+
};
|
|
12
|
+
boleto?: boolean;
|
|
13
|
+
pix?: boolean;
|
|
14
|
+
applicationVersion?: string;
|
|
15
|
+
};
|
|
@@ -2,6 +2,9 @@ export * from './adyen-card.type';
|
|
|
2
2
|
export * from './adyen-credentials.type';
|
|
3
3
|
export * from './antifraud-provider.type';
|
|
4
4
|
export * from './card-info.type';
|
|
5
|
+
export * from './checkout-paylod-request.type';
|
|
6
|
+
export * from './checkout-response.type';
|
|
7
|
+
export * from './checkout-stock-validation.type';
|
|
5
8
|
export * from './glam-credentials.type';
|
|
6
9
|
export * from './order-tracking-events.type';
|
|
7
10
|
export * from './pagarme-card.type';
|
|
@@ -9,3 +12,5 @@ export * from './pagarme-credentials.type';
|
|
|
9
12
|
export * from './payment-card-info.type';
|
|
10
13
|
export * from './payment-method.type';
|
|
11
14
|
export * from './payment-provider.type';
|
|
15
|
+
export * from './shipping-method-response.type';
|
|
16
|
+
export * from './shipping-product-request.type';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type ShippingMethodResponse = {
|
|
2
|
+
daysToDelivery: number;
|
|
3
|
+
currency?: string;
|
|
4
|
+
description: string;
|
|
5
|
+
maxDeliveryDate: string;
|
|
6
|
+
minDeliveryDate: string;
|
|
7
|
+
serviceCode: string;
|
|
8
|
+
serviceName: string;
|
|
9
|
+
totalPrice: number;
|
|
10
|
+
additionalDescription?: string;
|
|
11
|
+
cnpj?: string;
|
|
12
|
+
ShippingCompanyName?: string;
|
|
13
|
+
};
|
|
@@ -2,5 +2,6 @@ import { Address } from '../../location/models/address';
|
|
|
2
2
|
export type UserAddressIdentifiers = 'id' | 'userId';
|
|
3
3
|
export declare class UserAddress extends Address<UserAddress, UserAddressIdentifiers> {
|
|
4
4
|
userId: string;
|
|
5
|
+
subscription?: boolean;
|
|
5
6
|
static get identifiersFields(): UserAddressIdentifiers[];
|
|
6
7
|
}
|