@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 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,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "4.23.0-beta.6",
3
+ "version": "4.23.0",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -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';
@@ -0,0 +1,6 @@
1
+ export type ShopSameDayNotAvailable = {
2
+ [key: string]: {
3
+ beginDate: string;
4
+ endDate: string;
5
+ };
6
+ };
@@ -49,7 +49,7 @@ export declare class Coupon extends BaseModel<Coupon> {
49
49
  campaign?: string;
50
50
  nickname: string;
51
51
  beginAt: Date;
52
- expiresIn?: Date;
52
+ expiresIn?: Date | number;
53
53
  shopAvailability: Shops;
54
54
  personId?: number;
55
55
  personEmail?: string;
@@ -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: string;
4
- CNPJ: string;
3
+ id?: string;
4
+ cnpj: string;
5
5
  DaysToDelivery: number;
6
- MaxGrams: number;
7
- MinGrams: number;
8
- ServiceCompanyRangeId: number;
9
- ShippingCompanyId: number;
6
+ MaxGrams?: number;
7
+ MinGrams?: number;
8
+ ServiceCompanyRangeId?: number;
9
+ ShippingCompanyId?: number;
10
10
  ShippingCompanyName: string;
11
11
  ShippingPrice: number;
12
- State: string;
13
- ZipEnd: number;
14
- ZipStart: number;
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
+ };
@@ -0,0 +1,7 @@
1
+ export type CheckoutResponse = {
2
+ data: {
3
+ orderId: string;
4
+ boletoUrl?: string;
5
+ pixQrCodeString?: string;
6
+ };
7
+ };
@@ -0,0 +1,5 @@
1
+ export type CheckoutStockValidation = {
2
+ valid: boolean;
3
+ outOfStock: string[];
4
+ limitedStock: string[];
5
+ };
@@ -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
+ };
@@ -0,0 +1,9 @@
1
+ import { Shops } from '../../catalog';
2
+ export type ShippingProductRequest = {
3
+ shop: Shops;
4
+ zip: string;
5
+ weightGrams: number;
6
+ productPrice: number;
7
+ userId?: number;
8
+ userSubscriptionPlan?: string;
9
+ };
@@ -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
  }