@infrab4a/connect 4.1.1-beta.0 → 4.1.2-beta.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 +47 -1
- package/index.esm.js +46 -2
- package/package.json +1 -1
- package/src/domain/shop-settings/enums/index.d.ts +1 -0
- package/src/domain/shop-settings/enums/shop-page-name.enum.d.ts +19 -0
- package/src/domain/shop-settings/models/campaign-banner.d.ts +11 -0
- package/src/domain/shop-settings/models/campaign.d.ts +10 -0
- package/src/domain/shop-settings/models/index.d.ts +2 -0
- package/src/domain/shop-settings/models/shop-settings.d.ts +7 -3
- package/src/domain/shop-settings/models/types/campaign-page.d.ts +17 -0
- package/src/domain/shop-settings/models/types/index.d.ts +6 -0
- package/src/domain/shop-settings/models/types/landing-page.d.ts +8 -0
- package/src/domain/shop-settings/models/types/sections.type.d.ts +34 -0
- package/src/domain/shop-settings/models/types/shop-banner.type.d.ts +7 -6
- package/src/domain/shop-settings/models/types/shop-carousel.type.d.ts +1 -2
- package/src/domain/shop-settings/models/types/shop-gift.type.d.ts +8 -0
- package/src/domain/shop-settings/models/types/shop-home.d.ts +12 -0
- package/src/domain/shop-settings/models/types/shop-post.type.d.ts +7 -0
- package/src/domain/shop-settings/models/types/shop-section.type.d.ts +3 -0
- package/src/domain/shop-settings/repositories/campaign-banner.repository.d.ts +4 -0
- package/src/domain/shop-settings/repositories/campaign.repository.d.ts +4 -0
- package/src/domain/shop-settings/repositories/index.d.ts +2 -0
- package/teste2.d.ts +1 -0
package/index.cjs.js
CHANGED
|
@@ -2310,6 +2310,27 @@ exports.QuestionsFilters = void 0;
|
|
|
2310
2310
|
QuestionsFilters["PRODUCT_SPENT"] = "Qual \u00E9 o seu nivel de gasto mensal em produtos de beleza e cuidados pessoais?";
|
|
2311
2311
|
})(exports.QuestionsFilters || (exports.QuestionsFilters = {}));
|
|
2312
2312
|
|
|
2313
|
+
exports.ShopPageName = void 0;
|
|
2314
|
+
(function (ShopPageName) {
|
|
2315
|
+
ShopPageName["LP_CLUB"] = "LP_CLUBE";
|
|
2316
|
+
ShopPageName["SUBSCRIBER_PANEL"] = "SUBSCRIBER_PANEL";
|
|
2317
|
+
ShopPageName["INVITE_FRIENDS"] = "INVITE_FRIENDS";
|
|
2318
|
+
ShopPageName["INVITE_AND_WIN"] = "INVITE_AND_WIN";
|
|
2319
|
+
ShopPageName["WIN_GLAMPOINTS"] = "WIN_GLAMPOINTS";
|
|
2320
|
+
ShopPageName["POSTS"] = "POSTS";
|
|
2321
|
+
ShopPageName["GLAMPOINTS_SHOWCASE"] = "GLAMPOINTS_SHOWCASE";
|
|
2322
|
+
ShopPageName["LP_EDITIONS"] = "LP_EDITIONS";
|
|
2323
|
+
ShopPageName["LP_GLAMBOX_EDITION"] = "LP_GLAMBOX_EDITION";
|
|
2324
|
+
ShopPageName["LP_GLAMBOX_PROMOTION"] = "LP_GLAMBOX_PROMOTION";
|
|
2325
|
+
ShopPageName["LP_GLAMBAG_PROMOTION"] = "LP_GLAMBAG_PROMOTION";
|
|
2326
|
+
ShopPageName["LP_GLAMPASS_PROMOTION"] = "LP_GLAMPASS_PROMOTION";
|
|
2327
|
+
ShopPageName["LP_SUBSCRIPTION_PROMOTION"] = "LP_SUBSCRIPTION_PROMOTION";
|
|
2328
|
+
ShopPageName["LP_GLAMPARTNER_PROMOTION"] = "LP_GLAMPARTNER_PROMOTION";
|
|
2329
|
+
ShopPageName["LP_GLAMQUEENS"] = "LP_GLAMQUEENS";
|
|
2330
|
+
ShopPageName["LP_INVITE"] = "LP_INVITE";
|
|
2331
|
+
ShopPageName["LP_LIVELO"] = "LP_LIVELO";
|
|
2332
|
+
})(exports.ShopPageName || (exports.ShopPageName = {}));
|
|
2333
|
+
|
|
2313
2334
|
class BeautyQuestionsHelper {
|
|
2314
2335
|
static getAnswers(filter) {
|
|
2315
2336
|
switch (filter) {
|
|
@@ -2355,6 +2376,18 @@ class BeautyQuestionsHelper {
|
|
|
2355
2376
|
}
|
|
2356
2377
|
}
|
|
2357
2378
|
|
|
2379
|
+
class Campaign extends BaseModel {
|
|
2380
|
+
static get identifiersFields() {
|
|
2381
|
+
return ['id'];
|
|
2382
|
+
}
|
|
2383
|
+
}
|
|
2384
|
+
|
|
2385
|
+
class CampaignBanner extends BaseModel {
|
|
2386
|
+
static get identifiersFields() {
|
|
2387
|
+
return ['id'];
|
|
2388
|
+
}
|
|
2389
|
+
}
|
|
2390
|
+
|
|
2358
2391
|
class Home extends BaseModel {
|
|
2359
2392
|
static get identifiersFields() {
|
|
2360
2393
|
return ['id'];
|
|
@@ -2505,7 +2538,18 @@ class ProductsIndex {
|
|
|
2505
2538
|
must: {
|
|
2506
2539
|
multi_match: {
|
|
2507
2540
|
query: `${searchTerm}`,
|
|
2508
|
-
|
|
2541
|
+
type: 'bool_prefix',
|
|
2542
|
+
fields: [
|
|
2543
|
+
'name',
|
|
2544
|
+
'name.folded',
|
|
2545
|
+
'name.search',
|
|
2546
|
+
'description',
|
|
2547
|
+
'description.search',
|
|
2548
|
+
'description.folded',
|
|
2549
|
+
'brand',
|
|
2550
|
+
'brand.search',
|
|
2551
|
+
'brand.folded',
|
|
2552
|
+
],
|
|
2509
2553
|
fuzziness: 2,
|
|
2510
2554
|
},
|
|
2511
2555
|
},
|
|
@@ -5612,6 +5656,8 @@ exports.BeautyProfile = BeautyProfile;
|
|
|
5612
5656
|
exports.BeautyQuestionsHelper = BeautyQuestionsHelper;
|
|
5613
5657
|
exports.Buy2Win = Buy2Win;
|
|
5614
5658
|
exports.Buy2WinFirestoreRepository = Buy2WinFirestoreRepository;
|
|
5659
|
+
exports.Campaign = Campaign;
|
|
5660
|
+
exports.CampaignBanner = CampaignBanner;
|
|
5615
5661
|
exports.CampaignDashboard = CampaignDashboard;
|
|
5616
5662
|
exports.CampaignDashboardFirestoreRepository = CampaignDashboardFirestoreRepository;
|
|
5617
5663
|
exports.CampaignHashtag = CampaignHashtag;
|
package/index.esm.js
CHANGED
|
@@ -2286,6 +2286,27 @@ var QuestionsFilters;
|
|
|
2286
2286
|
QuestionsFilters["PRODUCT_SPENT"] = "Qual \u00E9 o seu nivel de gasto mensal em produtos de beleza e cuidados pessoais?";
|
|
2287
2287
|
})(QuestionsFilters || (QuestionsFilters = {}));
|
|
2288
2288
|
|
|
2289
|
+
var ShopPageName;
|
|
2290
|
+
(function (ShopPageName) {
|
|
2291
|
+
ShopPageName["LP_CLUB"] = "LP_CLUBE";
|
|
2292
|
+
ShopPageName["SUBSCRIBER_PANEL"] = "SUBSCRIBER_PANEL";
|
|
2293
|
+
ShopPageName["INVITE_FRIENDS"] = "INVITE_FRIENDS";
|
|
2294
|
+
ShopPageName["INVITE_AND_WIN"] = "INVITE_AND_WIN";
|
|
2295
|
+
ShopPageName["WIN_GLAMPOINTS"] = "WIN_GLAMPOINTS";
|
|
2296
|
+
ShopPageName["POSTS"] = "POSTS";
|
|
2297
|
+
ShopPageName["GLAMPOINTS_SHOWCASE"] = "GLAMPOINTS_SHOWCASE";
|
|
2298
|
+
ShopPageName["LP_EDITIONS"] = "LP_EDITIONS";
|
|
2299
|
+
ShopPageName["LP_GLAMBOX_EDITION"] = "LP_GLAMBOX_EDITION";
|
|
2300
|
+
ShopPageName["LP_GLAMBOX_PROMOTION"] = "LP_GLAMBOX_PROMOTION";
|
|
2301
|
+
ShopPageName["LP_GLAMBAG_PROMOTION"] = "LP_GLAMBAG_PROMOTION";
|
|
2302
|
+
ShopPageName["LP_GLAMPASS_PROMOTION"] = "LP_GLAMPASS_PROMOTION";
|
|
2303
|
+
ShopPageName["LP_SUBSCRIPTION_PROMOTION"] = "LP_SUBSCRIPTION_PROMOTION";
|
|
2304
|
+
ShopPageName["LP_GLAMPARTNER_PROMOTION"] = "LP_GLAMPARTNER_PROMOTION";
|
|
2305
|
+
ShopPageName["LP_GLAMQUEENS"] = "LP_GLAMQUEENS";
|
|
2306
|
+
ShopPageName["LP_INVITE"] = "LP_INVITE";
|
|
2307
|
+
ShopPageName["LP_LIVELO"] = "LP_LIVELO";
|
|
2308
|
+
})(ShopPageName || (ShopPageName = {}));
|
|
2309
|
+
|
|
2289
2310
|
class BeautyQuestionsHelper {
|
|
2290
2311
|
static getAnswers(filter) {
|
|
2291
2312
|
switch (filter) {
|
|
@@ -2331,6 +2352,18 @@ class BeautyQuestionsHelper {
|
|
|
2331
2352
|
}
|
|
2332
2353
|
}
|
|
2333
2354
|
|
|
2355
|
+
class Campaign extends BaseModel {
|
|
2356
|
+
static get identifiersFields() {
|
|
2357
|
+
return ['id'];
|
|
2358
|
+
}
|
|
2359
|
+
}
|
|
2360
|
+
|
|
2361
|
+
class CampaignBanner extends BaseModel {
|
|
2362
|
+
static get identifiersFields() {
|
|
2363
|
+
return ['id'];
|
|
2364
|
+
}
|
|
2365
|
+
}
|
|
2366
|
+
|
|
2334
2367
|
class Home extends BaseModel {
|
|
2335
2368
|
static get identifiersFields() {
|
|
2336
2369
|
return ['id'];
|
|
@@ -2481,7 +2514,18 @@ class ProductsIndex {
|
|
|
2481
2514
|
must: {
|
|
2482
2515
|
multi_match: {
|
|
2483
2516
|
query: `${searchTerm}`,
|
|
2484
|
-
|
|
2517
|
+
type: 'bool_prefix',
|
|
2518
|
+
fields: [
|
|
2519
|
+
'name',
|
|
2520
|
+
'name.folded',
|
|
2521
|
+
'name.search',
|
|
2522
|
+
'description',
|
|
2523
|
+
'description.search',
|
|
2524
|
+
'description.folded',
|
|
2525
|
+
'brand',
|
|
2526
|
+
'brand.search',
|
|
2527
|
+
'brand.folded',
|
|
2528
|
+
],
|
|
2485
2529
|
fuzziness: 2,
|
|
2486
2530
|
},
|
|
2487
2531
|
},
|
|
@@ -5466,4 +5510,4 @@ class WishlistHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
5466
5510
|
}
|
|
5467
5511
|
}
|
|
5468
5512
|
|
|
5469
|
-
export { AccessoryImportances, Address, Area, Authentication, AuthenticationFirebaseAuthService, AxiosAdapter, Base, BaseModel, BeardProblems, BeardSizes, BeautyProductImportances, BeautyProfile, BeautyQuestionsHelper, BillingStatus, BodyProblems, BodyShapes, BodyTattoos, Buy2Win, Buy2WinFirestoreRepository, CampaignDashboard, CampaignDashboardFirestoreRepository, CampaignHashtag, CampaignHashtagFirestoreRepository, Category, CategoryCollectionChildren, CategoryCollectionChildrenHasuraGraphQLRepository, CategoryFilter, CategoryFilterHasuraGraphQLRepository, CategoryFirestoreRepository, CategoryHasuraGraphQL, CategoryHasuraGraphQLRepository, Checkout, CheckoutFirestoreRepository, CheckoutSubscription, CheckoutSubscriptionFirestoreRepository, CheckoutTypes, ClassNameHelper, Coupon, CouponFirestoreRepository, CouponSubtypes, CouponTypes, Debug, DebugDecoratorHelper, DebugHelper, DebugNamespaces, DuplicatedResultsError, Edition, EditionStatus, Exclusivities, FaceSkinOilinesses, FaceSkinProblems, FaceSkinTones, FamilyIncomes, Filter, FilterHasuraGraphQLRepository, FilterOption, FilterOptionHasuraGraphQLRepository, FilterType, FragranceImportances, GenderDestination, HairColors, HairProblems, HairStrands, HairTypes, Home, HomeFirestoreRepository, InvalidArgumentError, KitProduct, KitProductHasuraGraphQL, Lead, LeadFirestoreRepository, LegacyOrderFirestoreRepository, LineItem, Log, Logger, NotFoundError, OfficePosition, Order, OrderFirestoreRepository, OrderStatus, Payment, PaymentFirestoreRepository, PaymentType, Product, ProductFirestoreRepository, ProductHasuraGraphQL, ProductHasuraGraphQLRepository, ProductSpents, ProductVariantFirestoreRepository, ProductsIndex, QuestionsFilters, RecoveryPassword, ReflectHelper, Register, RegisterFirebaseAuthService, RequiredArgumentError, RoundProductPricesHelper, ShippingMethod, ShopMenu, ShopMenuFirestoreRepository, ShopSettings, ShopSettingsFirestoreRepository, Shops, SignInMethods, SignOut, Status, Subscription, SubscriptionEditionFirestoreRepository, SubscriptionFirestoreRepository, SubscriptionPayment, SubscriptionPaymentFirestoreRepository, SubscriptionPlan, SubscriptionPlanFirestoreRepository, SubscriptionProductFirestoreRepository, Trace, UnauthorizedError, UpdateOptionActions, User, UserAddress, UserAddressFirestoreRepository, UserAlreadyRegisteredError, UserBeautyProfileFirestoreRepository, UserFirestoreRepository, UserPaymentMethod, UserPaymentMethodFirestoreRepository, UserType, Variant, VariantHasuraGraphQL, VariantHasuraGraphQLRepository, WeakPasswordError, Where, Wishlist, WishlistHasuraGraphQLRepository, is, isDebuggable, isUUID, parseDateTime, withCreateFirestore, withCreateHasuraGraphQL, withCrudFirestore, withCrudHasuraGraphQL, withDeleteFirestore, withDeleteHasuraGraphQL, withFindFirestore, withFindHasuraGraphQL, withFirestore, withGetFirestore, withGetHasuraGraphQL, withHasuraGraphQL, withHelpers, withSubCollection, withUpdateFirestore, withUpdateHasuraGraphQL };
|
|
5513
|
+
export { AccessoryImportances, Address, Area, Authentication, AuthenticationFirebaseAuthService, AxiosAdapter, Base, BaseModel, BeardProblems, BeardSizes, BeautyProductImportances, BeautyProfile, BeautyQuestionsHelper, BillingStatus, BodyProblems, BodyShapes, BodyTattoos, Buy2Win, Buy2WinFirestoreRepository, Campaign, CampaignBanner, CampaignDashboard, CampaignDashboardFirestoreRepository, CampaignHashtag, CampaignHashtagFirestoreRepository, Category, CategoryCollectionChildren, CategoryCollectionChildrenHasuraGraphQLRepository, CategoryFilter, CategoryFilterHasuraGraphQLRepository, CategoryFirestoreRepository, CategoryHasuraGraphQL, CategoryHasuraGraphQLRepository, Checkout, CheckoutFirestoreRepository, CheckoutSubscription, CheckoutSubscriptionFirestoreRepository, CheckoutTypes, ClassNameHelper, Coupon, CouponFirestoreRepository, CouponSubtypes, CouponTypes, Debug, DebugDecoratorHelper, DebugHelper, DebugNamespaces, DuplicatedResultsError, Edition, EditionStatus, Exclusivities, FaceSkinOilinesses, FaceSkinProblems, FaceSkinTones, FamilyIncomes, Filter, FilterHasuraGraphQLRepository, FilterOption, FilterOptionHasuraGraphQLRepository, FilterType, FragranceImportances, GenderDestination, HairColors, HairProblems, HairStrands, HairTypes, Home, HomeFirestoreRepository, InvalidArgumentError, KitProduct, KitProductHasuraGraphQL, Lead, LeadFirestoreRepository, LegacyOrderFirestoreRepository, LineItem, Log, Logger, NotFoundError, OfficePosition, Order, OrderFirestoreRepository, OrderStatus, Payment, PaymentFirestoreRepository, PaymentType, Product, ProductFirestoreRepository, ProductHasuraGraphQL, ProductHasuraGraphQLRepository, ProductSpents, ProductVariantFirestoreRepository, ProductsIndex, QuestionsFilters, RecoveryPassword, ReflectHelper, Register, RegisterFirebaseAuthService, RequiredArgumentError, RoundProductPricesHelper, ShippingMethod, ShopMenu, ShopMenuFirestoreRepository, ShopPageName, ShopSettings, ShopSettingsFirestoreRepository, Shops, SignInMethods, SignOut, Status, Subscription, SubscriptionEditionFirestoreRepository, SubscriptionFirestoreRepository, SubscriptionPayment, SubscriptionPaymentFirestoreRepository, SubscriptionPlan, SubscriptionPlanFirestoreRepository, SubscriptionProductFirestoreRepository, Trace, UnauthorizedError, UpdateOptionActions, User, UserAddress, UserAddressFirestoreRepository, UserAlreadyRegisteredError, UserBeautyProfileFirestoreRepository, UserFirestoreRepository, UserPaymentMethod, UserPaymentMethodFirestoreRepository, UserType, Variant, VariantHasuraGraphQL, VariantHasuraGraphQLRepository, WeakPasswordError, Where, Wishlist, WishlistHasuraGraphQLRepository, is, isDebuggable, isUUID, parseDateTime, withCreateFirestore, withCreateHasuraGraphQL, withCrudFirestore, withCrudHasuraGraphQL, withDeleteFirestore, withDeleteHasuraGraphQL, withFindFirestore, withFindHasuraGraphQL, withFirestore, withGetFirestore, withGetHasuraGraphQL, withHasuraGraphQL, withHelpers, withSubCollection, withUpdateFirestore, withUpdateHasuraGraphQL };
|
package/package.json
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare enum ShopPageName {
|
|
2
|
+
LP_CLUB = "LP_CLUBE",
|
|
3
|
+
SUBSCRIBER_PANEL = "SUBSCRIBER_PANEL",
|
|
4
|
+
INVITE_FRIENDS = "INVITE_FRIENDS",
|
|
5
|
+
INVITE_AND_WIN = "INVITE_AND_WIN",
|
|
6
|
+
WIN_GLAMPOINTS = "WIN_GLAMPOINTS",
|
|
7
|
+
POSTS = "POSTS",
|
|
8
|
+
GLAMPOINTS_SHOWCASE = "GLAMPOINTS_SHOWCASE",
|
|
9
|
+
LP_EDITIONS = "LP_EDITIONS",
|
|
10
|
+
LP_GLAMBOX_EDITION = "LP_GLAMBOX_EDITION",
|
|
11
|
+
LP_GLAMBOX_PROMOTION = "LP_GLAMBOX_PROMOTION",
|
|
12
|
+
LP_GLAMBAG_PROMOTION = "LP_GLAMBAG_PROMOTION",
|
|
13
|
+
LP_GLAMPASS_PROMOTION = "LP_GLAMPASS_PROMOTION",
|
|
14
|
+
LP_SUBSCRIPTION_PROMOTION = "LP_SUBSCRIPTION_PROMOTION",
|
|
15
|
+
LP_GLAMPARTNER_PROMOTION = "LP_GLAMPARTNER_PROMOTION",
|
|
16
|
+
LP_GLAMQUEENS = "LP_GLAMQUEENS",
|
|
17
|
+
LP_INVITE = "LP_INVITE",
|
|
18
|
+
LP_LIVELO = "LP_LIVELO"
|
|
19
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseModel, GenericIdentifier } from '../../generic';
|
|
2
|
+
export declare class CampaignBanner extends BaseModel<CampaignBanner> {
|
|
3
|
+
imageDesk: string;
|
|
4
|
+
imageMobile: string;
|
|
5
|
+
titleMeta: string;
|
|
6
|
+
imageMeta: string;
|
|
7
|
+
title: string;
|
|
8
|
+
redirectLink: string;
|
|
9
|
+
altText: string;
|
|
10
|
+
static get identifiersFields(): GenericIdentifier[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Shops } from '../../catalog';
|
|
2
|
+
import { BaseModel, GenericIdentifier } from '../../generic';
|
|
3
|
+
import { CampaignPage } from './types/campaign-page';
|
|
4
|
+
export declare class Campaign extends BaseModel<Campaign> {
|
|
5
|
+
pages: CampaignPage;
|
|
6
|
+
publishDate: Date;
|
|
7
|
+
endDate: Date;
|
|
8
|
+
shop: Shops;
|
|
9
|
+
static get identifiersFields(): GenericIdentifier[];
|
|
10
|
+
}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { BaseModel, GenericIdentifier } from '../../generic/model';
|
|
2
|
-
import {
|
|
2
|
+
import { ShopPageName } from '../enums';
|
|
3
|
+
import { Section } from './types';
|
|
3
4
|
export declare class ShopSettings extends BaseModel<ShopSettings> {
|
|
4
|
-
id: string;
|
|
5
|
+
id: string | ShopPageName;
|
|
5
6
|
name: string;
|
|
6
7
|
shop: string;
|
|
7
|
-
sections:
|
|
8
|
+
sections: Section<any>;
|
|
9
|
+
descriptionMeta?: string;
|
|
10
|
+
titleMeta?: string;
|
|
11
|
+
imageMeta?: string;
|
|
8
12
|
static get identifiersFields(): GenericIdentifier[];
|
|
9
13
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ShopPageName } from '../../enums';
|
|
2
|
+
import { CampaignBanner } from '../campaign-banner';
|
|
3
|
+
export type CampaignPage = {
|
|
4
|
+
[key in ShopPageName]: CampaignPageBase;
|
|
5
|
+
};
|
|
6
|
+
export type CampaignPageBase = {
|
|
7
|
+
createdAt: Date;
|
|
8
|
+
updatedAt: Date;
|
|
9
|
+
};
|
|
10
|
+
export type CampaignPageBanner = CampaignPageBase & {
|
|
11
|
+
publishDate: Date;
|
|
12
|
+
deleteDate: Date;
|
|
13
|
+
};
|
|
14
|
+
export type CampaignPageLPClube = CampaignPageBase & {
|
|
15
|
+
mainCarousel: Array<CampaignBanner>;
|
|
16
|
+
editionsCarousel: Array<CampaignBanner>;
|
|
17
|
+
};
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
export * from './banner.type';
|
|
2
2
|
export * from './benefit.type';
|
|
3
|
+
export * from './campaign-page';
|
|
3
4
|
export * from './home-data.type';
|
|
5
|
+
export * from './landing-page';
|
|
4
6
|
export * from './menu-nav.type';
|
|
7
|
+
export * from './sections.type';
|
|
5
8
|
export * from './shop-banner.type';
|
|
6
9
|
export * from './shop-brands.type';
|
|
7
10
|
export * from './shop-carousel.type';
|
|
8
11
|
export * from './shop-collection.type';
|
|
12
|
+
export * from './shop-gift.type';
|
|
13
|
+
export * from './shop-home';
|
|
14
|
+
export * from './shop-post.type';
|
|
9
15
|
export * from './shop-section.type';
|
|
10
16
|
export * from './sub-menu.type';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ShopBanner } from './shop-banner.type';
|
|
2
|
+
import { ShopCarousel } from './shop-carousel.type';
|
|
3
|
+
import { ShopSection } from './shop-section.type';
|
|
4
|
+
export type LandingPageList = {
|
|
5
|
+
ShopCarousel: ShopCarousel;
|
|
6
|
+
ShopBanner: ShopBanner;
|
|
7
|
+
};
|
|
8
|
+
export type LandingPage<T extends keyof LandingPageList> = LandingPageList[T] & ShopSection;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { LandingPage } from './landing-page';
|
|
2
|
+
import { ShopBanner } from './shop-banner.type';
|
|
3
|
+
import { ShopCarousel } from './shop-carousel.type';
|
|
4
|
+
import { ShopGift } from './shop-gift.type';
|
|
5
|
+
import { ShopHome } from './shop-home';
|
|
6
|
+
import { ShopPost } from './shop-post.type';
|
|
7
|
+
import { ShopSection } from './shop-section.type';
|
|
8
|
+
export type HomeSection = [ShopHome<any>];
|
|
9
|
+
export type LPClubeShopSection = [ShopCarousel];
|
|
10
|
+
export type SubscriberPanelShopSection = [ShopCarousel[]];
|
|
11
|
+
export type InviteFriendsShopSection = [ShopCarousel];
|
|
12
|
+
export type InviteAndWinShopSection = [ShopGift];
|
|
13
|
+
export type WinGlampointsShopSection = [ShopGift];
|
|
14
|
+
export type PostsShopSection = [ShopSection & {
|
|
15
|
+
posts: ShopPost[];
|
|
16
|
+
}];
|
|
17
|
+
export type GlampointsVitrineShopSection = [ShopBanner];
|
|
18
|
+
export type SimpleLPShopSection = [(ShopBanner & {
|
|
19
|
+
carouselColor?: string;
|
|
20
|
+
})[]];
|
|
21
|
+
export type LandingPageSection = [LandingPage<any>];
|
|
22
|
+
export type SectionList = {
|
|
23
|
+
HomeSection: HomeSection;
|
|
24
|
+
LPClubeShopSection: LPClubeShopSection;
|
|
25
|
+
SubscriberPanelShopSection: SubscriberPanelShopSection;
|
|
26
|
+
InviteFriendsShopSection: InviteFriendsShopSection;
|
|
27
|
+
InviteAndWinShopSection: InviteAndWinShopSection;
|
|
28
|
+
WinGlampointsShopSection: WinGlampointsShopSection;
|
|
29
|
+
PostsShopSection: PostsShopSection;
|
|
30
|
+
GlampointsVitrineShopSection: GlampointsVitrineShopSection;
|
|
31
|
+
SimpleLPShopSection: SimpleLPShopSection;
|
|
32
|
+
LandingPageSection: LandingPageSection;
|
|
33
|
+
};
|
|
34
|
+
export type Section<T extends keyof SectionList> = SectionList[T];
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ShopSection } from './shop-section.type';
|
|
2
2
|
export interface ShopBanner extends ShopSection {
|
|
3
|
-
autoDelete
|
|
4
|
-
deleteDate
|
|
5
|
-
autoPublish
|
|
6
|
-
publishDate
|
|
7
|
-
link
|
|
3
|
+
autoDelete?: boolean;
|
|
4
|
+
deleteDate?: Date;
|
|
5
|
+
autoPublish?: boolean;
|
|
6
|
+
publishDate?: Date;
|
|
7
|
+
link?: string;
|
|
8
8
|
mobileImage: string;
|
|
9
9
|
desktopImage: string;
|
|
10
10
|
altText: string;
|
|
11
|
-
published
|
|
11
|
+
published?: boolean;
|
|
12
|
+
title: string;
|
|
12
13
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ShopBanner } from './shop-banner.type';
|
|
2
|
+
import { ShopBrands } from './shop-brands.type';
|
|
3
|
+
import { ShopCarousel } from './shop-carousel.type';
|
|
4
|
+
import { ShopCollection } from './shop-collection.type';
|
|
5
|
+
import { ShopSection } from './shop-section.type';
|
|
6
|
+
export type ShopHomeList = {
|
|
7
|
+
ShopBanner: ShopBanner;
|
|
8
|
+
ShopCarousel: ShopCarousel;
|
|
9
|
+
ShopCollection: ShopCollection;
|
|
10
|
+
ShopBrands: ShopBrands;
|
|
11
|
+
};
|
|
12
|
+
export type ShopHome<T extends keyof ShopHomeList> = ShopHomeList[T] & ShopSection;
|
package/teste2.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|