@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 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
- fields: ['name', 'name.folded', 'name.search', 'description', 'brand'],
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
- fields: ['name', 'name.folded', 'name.search', 'description', 'brand'],
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "4.1.1-beta.0",
3
+ "version": "4.1.2-beta.0",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -1,2 +1,3 @@
1
1
  export * from './filter-type.enum';
2
2
  export * from './questions-filters.enum';
3
+ export * from './shop-page-name.enum';
@@ -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,3 +1,5 @@
1
+ export * from './campaign';
2
+ export * from './campaign-banner';
1
3
  export * from './home';
2
4
  export * from './shop-menu';
3
5
  export * from './shop-settings';
@@ -1,9 +1,13 @@
1
1
  import { BaseModel, GenericIdentifier } from '../../generic/model';
2
- import { ShopBanner, ShopBrands, ShopCarousel, ShopCollection } from './types';
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: (ShopBanner | ShopCarousel | ShopCollection | ShopBrands)[];
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: boolean;
4
- deleteDate: Date;
5
- autoPublish: boolean;
6
- publishDate: Date;
7
- link: string;
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: boolean;
11
+ published?: boolean;
12
+ title: string;
12
13
  }
@@ -1,5 +1,4 @@
1
1
  import { ShopBanner } from './shop-banner.type';
2
- import { ShopSection } from './shop-section.type';
3
- export interface ShopCarousel extends ShopSection {
2
+ export interface ShopCarousel {
4
3
  banners: ShopBanner[];
5
4
  }
@@ -0,0 +1,8 @@
1
+ import { ShopSection } from './shop-section.type';
2
+ export interface ShopGift extends ShopSection {
3
+ nameGift: string;
4
+ imageGift: string;
5
+ altTextGift: string;
6
+ discount: string;
7
+ expiration: Date;
8
+ }
@@ -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;
@@ -0,0 +1,7 @@
1
+ import { ShopSection } from './shop-section.type';
2
+ export interface ShopPost extends ShopSection {
3
+ image: string;
4
+ imageTitle: string;
5
+ postSuggestion: string;
6
+ tag: string;
7
+ }
@@ -6,4 +6,7 @@ export type ShopSection = {
6
6
  updatedAt?: Date;
7
7
  fixed: boolean;
8
8
  editable: boolean;
9
+ titleMeta: string;
10
+ descriptionMeta: string;
11
+ imageMeta: string;
9
12
  };
@@ -0,0 +1,4 @@
1
+ import { CrudRepository } from '../../generic/repository/crud.repository';
2
+ import { CampaignBanner } from '../models';
3
+ export interface CampaignBannerRepository extends CrudRepository<CampaignBanner> {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { CrudRepository } from '../../generic/repository/crud.repository';
2
+ import { Campaign } from '../models';
3
+ export interface CampaignRepository extends CrudRepository<Campaign> {
4
+ }
@@ -1,3 +1,5 @@
1
+ export * from './campaign-banner.repository';
2
+ export * from './campaign.repository';
1
3
  export * from './home.repository';
2
4
  export * from './shop-menu.repository';
3
5
  export * from './shop-settings.repository';
package/teste2.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {};