@infrab4a/connect 5.3.0-beta.28 → 5.3.0-beta.29
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 +6 -0
- package/index.esm.js +6 -0
- package/package.json +1 -1
- package/src/domain/catalog/models/product-base.d.ts +6 -0
- 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/shipping-thresholds.type.d.ts +17 -0
package/index.cjs.js
CHANGED
|
@@ -8173,6 +8173,9 @@ const commonFields = [
|
|
|
8173
8173
|
{ daysOfUse: { columnName: 'days_of_use' } },
|
|
8174
8174
|
{ showVariants: { columnName: 'show_variants' } },
|
|
8175
8175
|
{ variantSlug: { columnName: 'variant_slug' } },
|
|
8176
|
+
{ caixariaMinima: { columnName: 'caixaria_minima', type: HasuraGraphQLColumnType.Jsonb } },
|
|
8177
|
+
'suppliers',
|
|
8178
|
+
'curve',
|
|
8176
8179
|
];
|
|
8177
8180
|
const fieldsConfiguration$2 = [
|
|
8178
8181
|
...commonFields,
|
|
@@ -9306,6 +9309,9 @@ const fieldsConfiguration$1 = [
|
|
|
9306
9309
|
},
|
|
9307
9310
|
},
|
|
9308
9311
|
{ variantSlug: { columnName: 'variant_slug' } },
|
|
9312
|
+
{ caixariaMinima: { columnName: 'caixaria_minima', type: HasuraGraphQLColumnType.Jsonb } },
|
|
9313
|
+
'suppliers',
|
|
9314
|
+
'curve',
|
|
9309
9315
|
{ createdAt: { columnName: 'created_at' } },
|
|
9310
9316
|
{ updatedAt: { columnName: 'updated_at' } },
|
|
9311
9317
|
];
|
package/index.esm.js
CHANGED
|
@@ -8149,6 +8149,9 @@ const commonFields = [
|
|
|
8149
8149
|
{ daysOfUse: { columnName: 'days_of_use' } },
|
|
8150
8150
|
{ showVariants: { columnName: 'show_variants' } },
|
|
8151
8151
|
{ variantSlug: { columnName: 'variant_slug' } },
|
|
8152
|
+
{ caixariaMinima: { columnName: 'caixaria_minima', type: HasuraGraphQLColumnType.Jsonb } },
|
|
8153
|
+
'suppliers',
|
|
8154
|
+
'curve',
|
|
8152
8155
|
];
|
|
8153
8156
|
const fieldsConfiguration$2 = [
|
|
8154
8157
|
...commonFields,
|
|
@@ -9282,6 +9285,9 @@ const fieldsConfiguration$1 = [
|
|
|
9282
9285
|
},
|
|
9283
9286
|
},
|
|
9284
9287
|
{ variantSlug: { columnName: 'variant_slug' } },
|
|
9288
|
+
{ caixariaMinima: { columnName: 'caixaria_minima', type: HasuraGraphQLColumnType.Jsonb } },
|
|
9289
|
+
'suppliers',
|
|
9290
|
+
'curve',
|
|
9285
9291
|
{ createdAt: { columnName: 'created_at' } },
|
|
9286
9292
|
{ updatedAt: { columnName: 'updated_at' } },
|
|
9287
9293
|
];
|
package/package.json
CHANGED
|
@@ -43,6 +43,12 @@ export declare class ProductBase<T extends ProductBase<T, I>, I = ProductIdentif
|
|
|
43
43
|
validity: boolean;
|
|
44
44
|
daysOfUse?: number;
|
|
45
45
|
variantSlug?: string;
|
|
46
|
+
caixariaMinima?: number;
|
|
47
|
+
suppliers?: {
|
|
48
|
+
clientId: number;
|
|
49
|
+
name: string;
|
|
50
|
+
}[];
|
|
51
|
+
curve?: string;
|
|
46
52
|
category: Category;
|
|
47
53
|
kitProducts?: KitProduct[];
|
|
48
54
|
reviews?: ProductReview[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseModel, GenericIdentifier } from '../../generic/model';
|
|
2
|
-
import { Banner, Benefit, HomeDataStructure, ShopSameDayNotAvailable } from './types';
|
|
2
|
+
import { Banner, Benefit, HomeDataStructure, ShopSameDayNotAvailable, ShippingThresholds } from './types';
|
|
3
3
|
export declare class Home extends BaseModel<Home> {
|
|
4
4
|
benefitsSection: Benefit[];
|
|
5
5
|
blockBanners: Banner[];
|
|
@@ -15,5 +15,6 @@ export declare class Home extends BaseModel<Home> {
|
|
|
15
15
|
data: HomeDataStructure;
|
|
16
16
|
minValueForFreeShipping: number;
|
|
17
17
|
sameDayNotAvaliable: ShopSameDayNotAvailable;
|
|
18
|
+
shippingThresholds?: ShippingThresholds;
|
|
18
19
|
static get identifiersFields(): GenericIdentifier[];
|
|
19
20
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Thresholds de frete grátis configurados no documento Home (Firestore `dms/glamshop`).
|
|
3
|
+
*
|
|
4
|
+
* - `edition`: valor mínimo para frete grátis "junto com a edição" (assinante com
|
|
5
|
+
* edição pendente).
|
|
6
|
+
* - `avulsoSp`: valor mínimo para frete grátis avulso no estado de São Paulo.
|
|
7
|
+
* - `avulsoOutro`: valor mínimo para frete grátis avulso nos demais estados
|
|
8
|
+
* (`null` quando não há frete grátis fora de SP).
|
|
9
|
+
*
|
|
10
|
+
* Todos os campos são opcionais para preservar compatibilidade com documentos
|
|
11
|
+
* Home que ainda não possuam essa estrutura.
|
|
12
|
+
*/
|
|
13
|
+
export interface ShippingThresholds {
|
|
14
|
+
edition?: number;
|
|
15
|
+
avulsoSp?: number;
|
|
16
|
+
avulsoOutro?: number | null;
|
|
17
|
+
}
|