@glidevvr/storage-payload-types-pkg 1.0.27 → 1.0.28

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/payload-types.ts +38 -56
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glidevvr/storage-payload-types-pkg",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "Package for Payload CMS types.",
5
5
  "main": "payload-types.ts",
6
6
  "scripts": {
package/payload-types.ts CHANGED
@@ -6,6 +6,31 @@
6
6
  * and re-run `payload generate:types` to regenerate this file.
7
7
  */
8
8
 
9
+ /**
10
+ * This interface was referenced by `Config`'s JSON-Schema
11
+ * via the `definition` "Faqs".
12
+ */
13
+ export type Faqs =
14
+ | {
15
+ question: string;
16
+ answer: {
17
+ root: {
18
+ type: string;
19
+ children: {
20
+ type: string;
21
+ version: number;
22
+ [k: string]: unknown;
23
+ }[];
24
+ direction: ('ltr' | 'rtl') | null;
25
+ format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
26
+ indent: number;
27
+ version: number;
28
+ };
29
+ [k: string]: unknown;
30
+ };
31
+ id?: string | null;
32
+ }[]
33
+ | null;
9
34
  /**
10
35
  * This interface was referenced by `Config`'s JSON-Schema
11
36
  * via the `definition` "SocialMedia".
@@ -705,27 +730,7 @@ export interface Facility {
705
730
  */
706
731
  groupBy?: ('width' | 'length' | 'unit_type_id' | 'display_Rate' | 'floor')[] | null;
707
732
  };
708
- faq?:
709
- | {
710
- question: string;
711
- answer: {
712
- root: {
713
- type: string;
714
- children: {
715
- type: string;
716
- version: number;
717
- [k: string]: unknown;
718
- }[];
719
- direction: ('ltr' | 'rtl') | null;
720
- format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
721
- indent: number;
722
- version: number;
723
- };
724
- [k: string]: unknown;
725
- };
726
- id?: string | null;
727
- }[]
728
- | null;
733
+ faq?: Faqs;
729
734
  meta?: {
730
735
  title?: string | null;
731
736
  description?: string | null;
@@ -1084,27 +1089,7 @@ export interface FaqBlock {
1084
1089
  * Only one block per page should have the include FAQ schema option checked.
1085
1090
  */
1086
1091
  includeFaqSchema?: boolean | null;
1087
- faq?:
1088
- | {
1089
- question: string;
1090
- answer: {
1091
- root: {
1092
- type: string;
1093
- children: {
1094
- type: string;
1095
- version: number;
1096
- [k: string]: unknown;
1097
- }[];
1098
- direction: ('ltr' | 'rtl') | null;
1099
- format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
1100
- indent: number;
1101
- version: number;
1102
- };
1103
- [k: string]: unknown;
1104
- };
1105
- id?: string | null;
1106
- }[]
1107
- | null;
1092
+ faq?: Faqs;
1108
1093
  id?: string | null;
1109
1094
  blockName?: string | null;
1110
1095
  blockType: 'faq';
@@ -1909,16 +1894,19 @@ export interface ContentBlockSelect<T extends boolean = true> {
1909
1894
  export interface FaqBlockSelect<T extends boolean = true> {
1910
1895
  richText?: T;
1911
1896
  includeFaqSchema?: T;
1912
- faq?:
1913
- | T
1914
- | {
1915
- question?: T;
1916
- answer?: T;
1917
- id?: T;
1918
- };
1897
+ faq?: T | FaqsSelect<T>;
1919
1898
  id?: T;
1920
1899
  blockName?: T;
1921
1900
  }
1901
+ /**
1902
+ * This interface was referenced by `Config`'s JSON-Schema
1903
+ * via the `definition` "Faqs_select".
1904
+ */
1905
+ export interface FaqsSelect<T extends boolean = true> {
1906
+ question?: T;
1907
+ answer?: T;
1908
+ id?: T;
1909
+ }
1922
1910
  /**
1923
1911
  * This interface was referenced by `Config`'s JSON-Schema
1924
1912
  * via the `definition` "FeaturedLocationsBlock_select".
@@ -2405,13 +2393,7 @@ export interface FacilitiesSelect<T extends boolean = true> {
2405
2393
  sort?: T;
2406
2394
  groupBy?: T;
2407
2395
  };
2408
- faq?:
2409
- | T
2410
- | {
2411
- question?: T;
2412
- answer?: T;
2413
- id?: T;
2414
- };
2396
+ faq?: T | FaqsSelect<T>;
2415
2397
  meta?:
2416
2398
  | T
2417
2399
  | {