@goldenhippo/builder-cart-schemas 0.2.0 → 0.4.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.
@@ -1,5 +1,6 @@
1
- import { BuilderResponseBaseData, ModelShape } from '@goldenhippo/builder-types';
1
+ import { BuilderResponseBaseData, ModelShape, BuilderContentReference } from '@goldenhippo/builder-types';
2
2
  import { BuilderContent } from '@builder.io/sdk';
3
+ import { BuilderBlogPageContent } from '../page/index.cjs';
3
4
 
4
5
  declare enum HeaderType {
5
6
  BASIC = "BASIC",
@@ -76,6 +77,94 @@ declare enum SubscriptionCancelButtonType {
76
77
  Cancel = "cancel"
77
78
  }
78
79
 
80
+ declare const createCategoryModel: () => ModelShape;
81
+ type BuilderProductCategoryContent = BuilderContent & Partial<{
82
+ data: BuilderResponseBaseData & {
83
+ name: string;
84
+ description?: string;
85
+ desktopImage?: string;
86
+ mobileImage?: string;
87
+ hidden?: boolean;
88
+ slug?: string;
89
+ searchKeys?: string[];
90
+ };
91
+ }>;
92
+
93
+ declare const createIngredientsModel: () => ModelShape;
94
+ type BuilderIngredientContent = BuilderContent & Partial<{
95
+ data: BuilderResponseBaseData & {
96
+ name: string;
97
+ description?: string;
98
+ image?: string;
99
+ shortDescription?: string;
100
+ searchKeys?: string[];
101
+ };
102
+ }>;
103
+
104
+ declare const createProductUseCaseModel: () => ModelShape;
105
+ type BuilderProductUseCaseContent = BuilderContent & Partial<{
106
+ data: BuilderResponseBaseData & {
107
+ name: string;
108
+ description?: string;
109
+ searchKeys?: string[];
110
+ image?: string;
111
+ hidden?: boolean;
112
+ };
113
+ }>;
114
+
115
+ declare const createProductTagModel: () => ModelShape;
116
+ type BuilderProductTagContent = BuilderContent & Partial<{
117
+ data: BuilderResponseBaseData & {
118
+ name: string;
119
+ tagColor: string;
120
+ hidden?: boolean;
121
+ image?: string;
122
+ pluralDisplayName?: string;
123
+ };
124
+ }>;
125
+
126
+ interface ProductFilterModels {
127
+ categoryId: string;
128
+ useCaseId: string;
129
+ ingredientId: string;
130
+ tagId: string;
131
+ }
132
+ declare enum FilterApplicationType {
133
+ Inclusive = "Inclusive",
134
+ Exclusive = "Exclusive"
135
+ }
136
+ declare const createProductGridConfigModel: (models: ProductFilterModels) => ModelShape;
137
+ type BuilderProductGridFilterGroupContent = BuilderContent & Partial<{
138
+ data: BuilderResponseBaseData & {
139
+ displayName: string;
140
+ categories: {
141
+ category: {
142
+ id: string;
143
+ value: BuilderContentReference<BuilderProductCategoryContent>;
144
+ };
145
+ }[];
146
+ ingredients: {
147
+ ingredient: {
148
+ id: string;
149
+ value: BuilderContentReference<BuilderIngredientContent>;
150
+ };
151
+ }[];
152
+ useCases: {
153
+ useCase: {
154
+ id: string;
155
+ value: BuilderContentReference<BuilderProductUseCaseContent>;
156
+ };
157
+ }[];
158
+ tags: {
159
+ tag: {
160
+ id: string;
161
+ value: BuilderContentReference<BuilderProductTagContent>;
162
+ };
163
+ }[];
164
+ filterApplicationType: FilterApplicationType;
165
+ };
166
+ }>;
167
+
79
168
  declare const createBrandConfigModel: (gridFilterModelId: string, bannerModelId: string) => ModelShape;
80
169
  type BuilderBrandConfigContent = BuilderContent & Partial<{
81
170
  data: BuilderResponseBaseData & {
@@ -106,7 +195,7 @@ type BuilderBrandConfigContent = BuilderContent & Partial<{
106
195
  banners: {
107
196
  banner: {
108
197
  id: string;
109
- name: string;
198
+ value: BuilderContentReference<BuilderContent>;
110
199
  };
111
200
  alwaysShow: boolean;
112
201
  }[];
@@ -251,6 +340,7 @@ type BuilderBrandConfigContent = BuilderContent & Partial<{
251
340
  productGridFilterGroups: {
252
341
  filterConfig: {
253
342
  id: string;
343
+ value: BuilderContentReference<BuilderProductGridFilterGroupContent>;
254
344
  };
255
345
  }[];
256
346
  productGridHideRestricted: boolean;
@@ -422,6 +512,7 @@ type BuilderBlogCommentContent = BuilderContent & Partial<{
422
512
  blog: {
423
513
  id: string;
424
514
  name: string;
515
+ value: BuilderContentReference<BuilderBlogPageContent>;
425
516
  };
426
517
  };
427
518
  }>;
@@ -459,26 +550,26 @@ type BuilderProductContent = BuilderContent & Partial<{
459
550
  };
460
551
  tags?: {
461
552
  tag: {
462
- name: string;
463
- displayName: string;
553
+ id: string;
554
+ value: BuilderContentReference<BuilderProductTagContent>;
464
555
  };
465
556
  }[];
466
557
  categories?: {
467
558
  category: {
468
- name: string;
469
- displayName: string;
559
+ id: string;
560
+ value: BuilderContentReference<BuilderProductCategoryContent>;
470
561
  };
471
562
  }[];
472
563
  ingredients?: {
473
564
  ingredient: {
474
- name: string;
475
- displayName: string;
565
+ id: string;
566
+ value: BuilderContentReference<BuilderIngredientContent>;
476
567
  };
477
568
  }[];
478
569
  useCases?: {
479
570
  useCase: {
480
- name: string;
481
- displayName: string;
571
+ id: string;
572
+ value: BuilderContentReference<BuilderProductUseCaseContent>;
482
573
  };
483
574
  }[];
484
575
  gh: {
@@ -502,7 +593,10 @@ type BuilderProductGroupContent = BuilderContent & Partial<{
502
593
  gridTagline?: string;
503
594
  shortDescription?: string;
504
595
  products: {
505
- product: string;
596
+ product: {
597
+ id: string;
598
+ value: BuilderContentReference<BuilderProductContent>;
599
+ };
506
600
  displayName?: string;
507
601
  isTrialSize?: boolean;
508
602
  }[];
@@ -517,88 +611,4 @@ type BuilderProductGroupContent = BuilderContent & Partial<{
517
611
  };
518
612
  }>;
519
613
 
520
- declare const createCategoryModel: () => ModelShape;
521
- type BuilderProductCategoryContent = BuilderContent & Partial<{
522
- data: BuilderResponseBaseData & {
523
- name: string;
524
- description?: string;
525
- desktopImage?: string;
526
- mobileImage?: string;
527
- hidden?: boolean;
528
- slug?: string;
529
- searchKeys?: string[];
530
- };
531
- }>;
532
-
533
- interface ProductFilterModels {
534
- categoryId: string;
535
- useCaseId: string;
536
- ingredientId: string;
537
- tagId: string;
538
- }
539
- declare enum FilterApplicationType {
540
- Inclusive = "Inclusive",
541
- Exclusive = "Exclusive"
542
- }
543
- declare const createProductGridConfigModel: (models: ProductFilterModels) => ModelShape;
544
- type BuilderProductGridFilterGroupContent = BuilderContent & Partial<{
545
- data: BuilderResponseBaseData & {
546
- displayName: string;
547
- categories: {
548
- category: {
549
- id: string;
550
- } & Record<string, any>;
551
- }[];
552
- ingredients: {
553
- ingredient: {
554
- id: string;
555
- } & Record<string, any>;
556
- }[];
557
- useCases: {
558
- useCase: {
559
- id: string;
560
- } & Record<string, any>;
561
- }[];
562
- tags: {
563
- tag: {
564
- id: string;
565
- } & Record<string, any>;
566
- }[];
567
- filterApplicationType: FilterApplicationType;
568
- };
569
- }>;
570
-
571
- declare const createIngredientsModel: () => ModelShape;
572
- type BuilderIngredientContent = BuilderContent & Partial<{
573
- data: BuilderResponseBaseData & {
574
- name: string;
575
- description?: string;
576
- image?: string;
577
- shortDescription?: string;
578
- searchKeys?: string[];
579
- };
580
- }>;
581
-
582
- declare const createProductTagModel: () => ModelShape;
583
- type BuilderProductTagContent = BuilderContent & Partial<{
584
- data: BuilderResponseBaseData & {
585
- name: string;
586
- tagColor: string;
587
- hidden?: boolean;
588
- image?: string;
589
- pluralDisplayName?: string;
590
- };
591
- }>;
592
-
593
- declare const createProductUseCaseModel: () => ModelShape;
594
- type BuilderProductUseCaseContent = BuilderContent & Partial<{
595
- data: BuilderResponseBaseData & {
596
- name: string;
597
- description?: string;
598
- searchKeys?: string[];
599
- image?: string;
600
- hidden?: boolean;
601
- };
602
- }>;
603
-
604
614
  export { type BuilderBlogCategoryContent, type BuilderBlogCommentContent, type BuilderBrandConfigContent, type BuilderIngredientContent, type BuilderProductCategoryContent, type BuilderProductContent, type BuilderProductGridFilterGroupContent, type BuilderProductGroupContent, type BuilderProductTagContent, type BuilderProductUseCaseContent, createBlogCategoryModel, createBlogCommentModel, createBrandConfigModel, createCategoryModel, createIngredientsModel, createProductGridConfigModel, createProductGroupModel, createProductModel, createProductTagModel, createProductUseCaseModel };
@@ -1,5 +1,6 @@
1
- import { BuilderResponseBaseData, ModelShape } from '@goldenhippo/builder-types';
1
+ import { BuilderResponseBaseData, ModelShape, BuilderContentReference } from '@goldenhippo/builder-types';
2
2
  import { BuilderContent } from '@builder.io/sdk';
3
+ import { BuilderBlogPageContent } from '../page/index.js';
3
4
 
4
5
  declare enum HeaderType {
5
6
  BASIC = "BASIC",
@@ -76,6 +77,94 @@ declare enum SubscriptionCancelButtonType {
76
77
  Cancel = "cancel"
77
78
  }
78
79
 
80
+ declare const createCategoryModel: () => ModelShape;
81
+ type BuilderProductCategoryContent = BuilderContent & Partial<{
82
+ data: BuilderResponseBaseData & {
83
+ name: string;
84
+ description?: string;
85
+ desktopImage?: string;
86
+ mobileImage?: string;
87
+ hidden?: boolean;
88
+ slug?: string;
89
+ searchKeys?: string[];
90
+ };
91
+ }>;
92
+
93
+ declare const createIngredientsModel: () => ModelShape;
94
+ type BuilderIngredientContent = BuilderContent & Partial<{
95
+ data: BuilderResponseBaseData & {
96
+ name: string;
97
+ description?: string;
98
+ image?: string;
99
+ shortDescription?: string;
100
+ searchKeys?: string[];
101
+ };
102
+ }>;
103
+
104
+ declare const createProductUseCaseModel: () => ModelShape;
105
+ type BuilderProductUseCaseContent = BuilderContent & Partial<{
106
+ data: BuilderResponseBaseData & {
107
+ name: string;
108
+ description?: string;
109
+ searchKeys?: string[];
110
+ image?: string;
111
+ hidden?: boolean;
112
+ };
113
+ }>;
114
+
115
+ declare const createProductTagModel: () => ModelShape;
116
+ type BuilderProductTagContent = BuilderContent & Partial<{
117
+ data: BuilderResponseBaseData & {
118
+ name: string;
119
+ tagColor: string;
120
+ hidden?: boolean;
121
+ image?: string;
122
+ pluralDisplayName?: string;
123
+ };
124
+ }>;
125
+
126
+ interface ProductFilterModels {
127
+ categoryId: string;
128
+ useCaseId: string;
129
+ ingredientId: string;
130
+ tagId: string;
131
+ }
132
+ declare enum FilterApplicationType {
133
+ Inclusive = "Inclusive",
134
+ Exclusive = "Exclusive"
135
+ }
136
+ declare const createProductGridConfigModel: (models: ProductFilterModels) => ModelShape;
137
+ type BuilderProductGridFilterGroupContent = BuilderContent & Partial<{
138
+ data: BuilderResponseBaseData & {
139
+ displayName: string;
140
+ categories: {
141
+ category: {
142
+ id: string;
143
+ value: BuilderContentReference<BuilderProductCategoryContent>;
144
+ };
145
+ }[];
146
+ ingredients: {
147
+ ingredient: {
148
+ id: string;
149
+ value: BuilderContentReference<BuilderIngredientContent>;
150
+ };
151
+ }[];
152
+ useCases: {
153
+ useCase: {
154
+ id: string;
155
+ value: BuilderContentReference<BuilderProductUseCaseContent>;
156
+ };
157
+ }[];
158
+ tags: {
159
+ tag: {
160
+ id: string;
161
+ value: BuilderContentReference<BuilderProductTagContent>;
162
+ };
163
+ }[];
164
+ filterApplicationType: FilterApplicationType;
165
+ };
166
+ }>;
167
+
79
168
  declare const createBrandConfigModel: (gridFilterModelId: string, bannerModelId: string) => ModelShape;
80
169
  type BuilderBrandConfigContent = BuilderContent & Partial<{
81
170
  data: BuilderResponseBaseData & {
@@ -106,7 +195,7 @@ type BuilderBrandConfigContent = BuilderContent & Partial<{
106
195
  banners: {
107
196
  banner: {
108
197
  id: string;
109
- name: string;
198
+ value: BuilderContentReference<BuilderContent>;
110
199
  };
111
200
  alwaysShow: boolean;
112
201
  }[];
@@ -251,6 +340,7 @@ type BuilderBrandConfigContent = BuilderContent & Partial<{
251
340
  productGridFilterGroups: {
252
341
  filterConfig: {
253
342
  id: string;
343
+ value: BuilderContentReference<BuilderProductGridFilterGroupContent>;
254
344
  };
255
345
  }[];
256
346
  productGridHideRestricted: boolean;
@@ -422,6 +512,7 @@ type BuilderBlogCommentContent = BuilderContent & Partial<{
422
512
  blog: {
423
513
  id: string;
424
514
  name: string;
515
+ value: BuilderContentReference<BuilderBlogPageContent>;
425
516
  };
426
517
  };
427
518
  }>;
@@ -459,26 +550,26 @@ type BuilderProductContent = BuilderContent & Partial<{
459
550
  };
460
551
  tags?: {
461
552
  tag: {
462
- name: string;
463
- displayName: string;
553
+ id: string;
554
+ value: BuilderContentReference<BuilderProductTagContent>;
464
555
  };
465
556
  }[];
466
557
  categories?: {
467
558
  category: {
468
- name: string;
469
- displayName: string;
559
+ id: string;
560
+ value: BuilderContentReference<BuilderProductCategoryContent>;
470
561
  };
471
562
  }[];
472
563
  ingredients?: {
473
564
  ingredient: {
474
- name: string;
475
- displayName: string;
565
+ id: string;
566
+ value: BuilderContentReference<BuilderIngredientContent>;
476
567
  };
477
568
  }[];
478
569
  useCases?: {
479
570
  useCase: {
480
- name: string;
481
- displayName: string;
571
+ id: string;
572
+ value: BuilderContentReference<BuilderProductUseCaseContent>;
482
573
  };
483
574
  }[];
484
575
  gh: {
@@ -502,7 +593,10 @@ type BuilderProductGroupContent = BuilderContent & Partial<{
502
593
  gridTagline?: string;
503
594
  shortDescription?: string;
504
595
  products: {
505
- product: string;
596
+ product: {
597
+ id: string;
598
+ value: BuilderContentReference<BuilderProductContent>;
599
+ };
506
600
  displayName?: string;
507
601
  isTrialSize?: boolean;
508
602
  }[];
@@ -517,88 +611,4 @@ type BuilderProductGroupContent = BuilderContent & Partial<{
517
611
  };
518
612
  }>;
519
613
 
520
- declare const createCategoryModel: () => ModelShape;
521
- type BuilderProductCategoryContent = BuilderContent & Partial<{
522
- data: BuilderResponseBaseData & {
523
- name: string;
524
- description?: string;
525
- desktopImage?: string;
526
- mobileImage?: string;
527
- hidden?: boolean;
528
- slug?: string;
529
- searchKeys?: string[];
530
- };
531
- }>;
532
-
533
- interface ProductFilterModels {
534
- categoryId: string;
535
- useCaseId: string;
536
- ingredientId: string;
537
- tagId: string;
538
- }
539
- declare enum FilterApplicationType {
540
- Inclusive = "Inclusive",
541
- Exclusive = "Exclusive"
542
- }
543
- declare const createProductGridConfigModel: (models: ProductFilterModels) => ModelShape;
544
- type BuilderProductGridFilterGroupContent = BuilderContent & Partial<{
545
- data: BuilderResponseBaseData & {
546
- displayName: string;
547
- categories: {
548
- category: {
549
- id: string;
550
- } & Record<string, any>;
551
- }[];
552
- ingredients: {
553
- ingredient: {
554
- id: string;
555
- } & Record<string, any>;
556
- }[];
557
- useCases: {
558
- useCase: {
559
- id: string;
560
- } & Record<string, any>;
561
- }[];
562
- tags: {
563
- tag: {
564
- id: string;
565
- } & Record<string, any>;
566
- }[];
567
- filterApplicationType: FilterApplicationType;
568
- };
569
- }>;
570
-
571
- declare const createIngredientsModel: () => ModelShape;
572
- type BuilderIngredientContent = BuilderContent & Partial<{
573
- data: BuilderResponseBaseData & {
574
- name: string;
575
- description?: string;
576
- image?: string;
577
- shortDescription?: string;
578
- searchKeys?: string[];
579
- };
580
- }>;
581
-
582
- declare const createProductTagModel: () => ModelShape;
583
- type BuilderProductTagContent = BuilderContent & Partial<{
584
- data: BuilderResponseBaseData & {
585
- name: string;
586
- tagColor: string;
587
- hidden?: boolean;
588
- image?: string;
589
- pluralDisplayName?: string;
590
- };
591
- }>;
592
-
593
- declare const createProductUseCaseModel: () => ModelShape;
594
- type BuilderProductUseCaseContent = BuilderContent & Partial<{
595
- data: BuilderResponseBaseData & {
596
- name: string;
597
- description?: string;
598
- searchKeys?: string[];
599
- image?: string;
600
- hidden?: boolean;
601
- };
602
- }>;
603
-
604
614
  export { type BuilderBlogCategoryContent, type BuilderBlogCommentContent, type BuilderBrandConfigContent, type BuilderIngredientContent, type BuilderProductCategoryContent, type BuilderProductContent, type BuilderProductGridFilterGroupContent, type BuilderProductGroupContent, type BuilderProductTagContent, type BuilderProductUseCaseContent, createBlogCategoryModel, createBlogCommentModel, createBrandConfigModel, createCategoryModel, createIngredientsModel, createProductGridConfigModel, createProductGroupModel, createProductModel, createProductTagModel, createProductUseCaseModel };
@@ -1,5 +1,3 @@
1
- 'use strict';
2
-
3
1
  // src/data/brand-config/sections/header-config.ts
4
2
  var headerOptions = {
5
3
  basic: {
@@ -3473,15 +3471,6 @@ var createProductUseCaseModel = () => ({
3473
3471
  ]
3474
3472
  });
3475
3473
 
3476
- exports.createBlogCategoryModel = createBlogCategoryModel;
3477
- exports.createBlogCommentModel = createBlogCommentModel;
3478
- exports.createBrandConfigModel = createBrandConfigModel;
3479
- exports.createCategoryModel = createCategoryModel;
3480
- exports.createIngredientsModel = createIngredientsModel;
3481
- exports.createProductGridConfigModel = createProductGridConfigModel;
3482
- exports.createProductGroupModel = createProductGroupModel;
3483
- exports.createProductModel = createProductModel;
3484
- exports.createProductTagModel = createProductTagModel;
3485
- exports.createProductUseCaseModel = createProductUseCaseModel;
3474
+ export { createBlogCategoryModel, createBlogCommentModel, createBrandConfigModel, createCategoryModel, createIngredientsModel, createProductGridConfigModel, createProductGroupModel, createProductModel, createProductTagModel, createProductUseCaseModel };
3486
3475
  //# sourceMappingURL=index.js.map
3487
3476
  //# sourceMappingURL=index.js.map