@glidevvr/storage-payload-types-pkg 1.0.32 → 1.0.34

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 +192 -74
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glidevvr/storage-payload-types-pkg",
3
- "version": "1.0.32",
3
+ "version": "1.0.34",
4
4
  "description": "Package for Payload CMS types.",
5
5
  "main": "payload-types.ts",
6
6
  "scripts": {
package/payload-types.ts CHANGED
@@ -150,53 +150,13 @@ export type NavItem =
150
150
  * via the `definition` "supportedTimezones".
151
151
  */
152
152
  export type SupportedTimezones =
153
- | 'Pacific/Midway'
154
- | 'Pacific/Niue'
155
153
  | 'Pacific/Honolulu'
156
- | 'Pacific/Rarotonga'
157
154
  | 'America/Anchorage'
158
- | 'Pacific/Gambier'
159
155
  | 'America/Los_Angeles'
160
- | 'America/Tijuana'
161
156
  | 'America/Denver'
162
157
  | 'America/Phoenix'
163
158
  | 'America/Chicago'
164
- | 'America/Guatemala'
165
- | 'America/New_York'
166
- | 'America/Bogota'
167
- | 'America/Caracas'
168
- | 'America/Santiago'
169
- | 'America/Buenos_Aires'
170
- | 'America/Sao_Paulo'
171
- | 'Atlantic/South_Georgia'
172
- | 'Atlantic/Azores'
173
- | 'Atlantic/Cape_Verde'
174
- | 'Europe/London'
175
- | 'Europe/Berlin'
176
- | 'Africa/Lagos'
177
- | 'Europe/Athens'
178
- | 'Africa/Cairo'
179
- | 'Europe/Moscow'
180
- | 'Asia/Riyadh'
181
- | 'Asia/Dubai'
182
- | 'Asia/Baku'
183
- | 'Asia/Karachi'
184
- | 'Asia/Tashkent'
185
- | 'Asia/Calcutta'
186
- | 'Asia/Dhaka'
187
- | 'Asia/Almaty'
188
- | 'Asia/Jakarta'
189
- | 'Asia/Bangkok'
190
- | 'Asia/Shanghai'
191
- | 'Asia/Singapore'
192
- | 'Asia/Tokyo'
193
- | 'Asia/Seoul'
194
- | 'Australia/Brisbane'
195
- | 'Australia/Sydney'
196
- | 'Pacific/Guam'
197
- | 'Pacific/Noumea'
198
- | 'Pacific/Auckland'
199
- | 'Pacific/Fiji';
159
+ | 'America/New_York';
200
160
 
201
161
  export interface Config {
202
162
  auth: {
@@ -219,6 +179,7 @@ export interface Config {
219
179
  redirects: Redirect;
220
180
  forms: Form;
221
181
  'form-submissions': FormSubmission;
182
+ 'payload-jobs': PayloadJob;
222
183
  'payload-locked-documents': PayloadLockedDocument;
223
184
  'payload-preferences': PayloadPreference;
224
185
  'payload-migrations': PayloadMigration;
@@ -244,6 +205,7 @@ export interface Config {
244
205
  redirects: RedirectsSelect<false> | RedirectsSelect<true>;
245
206
  forms: FormsSelect<false> | FormsSelect<true>;
246
207
  'form-submissions': FormSubmissionsSelect<false> | FormSubmissionsSelect<true>;
208
+ 'payload-jobs': PayloadJobsSelect<false> | PayloadJobsSelect<true>;
247
209
  'payload-locked-documents': PayloadLockedDocumentsSelect<false> | PayloadLockedDocumentsSelect<true>;
248
210
  'payload-preferences': PayloadPreferencesSelect<false> | PayloadPreferencesSelect<true>;
249
211
  'payload-migrations': PayloadMigrationsSelect<false> | PayloadMigrationsSelect<true>;
@@ -258,7 +220,13 @@ export interface Config {
258
220
  collection: 'users';
259
221
  };
260
222
  jobs: {
261
- tasks: unknown;
223
+ tasks: {
224
+ schedulePublish: TaskSchedulePublish;
225
+ inline: {
226
+ input: unknown;
227
+ output: unknown;
228
+ };
229
+ };
262
230
  workflows: unknown;
263
231
  };
264
232
  }
@@ -292,7 +260,6 @@ export interface Page {
292
260
  title: string;
293
261
  layout: (
294
262
  | ArchiveBlock
295
- | BreadcrumbsBlock
296
263
  | CallToActionBlock
297
264
  | ContentBlock
298
265
  | FaqBlock
@@ -560,7 +527,6 @@ export interface Market {
560
527
  layout?:
561
528
  | (
562
529
  | ArchiveBlock
563
- | BreadcrumbsBlock
564
530
  | CallToActionBlock
565
531
  | ContentBlock
566
532
  | FaqBlock
@@ -630,14 +596,6 @@ export interface Facility {
630
596
  */
631
597
  facilityFeatures?: (string | FacilityFeature)[] | null;
632
598
  facilityPaymentSystem?: ('default' | 'none' | 'provider' | 'storage_essentials') | null;
633
- /**
634
- * Notify customers about a promotion or holiday hours. Displays in a banner at the top of the page.
635
- */
636
- facilityNotice?: string | null;
637
- /**
638
- * Short callout about a promotion (i.e 50% OFF First Months Rent!). This displays on market pages.
639
- */
640
- facilityPromotion?: string | null;
641
599
  /**
642
600
  * The first image selected is displayed on market pages.
643
601
  */
@@ -712,6 +670,28 @@ export interface Facility {
712
670
  groupBy?: ('width' | 'length' | 'unit_type_id' | 'display_Rate' | 'floor')[] | null;
713
671
  };
714
672
  faq?: Faqs;
673
+ /**
674
+ * Notify customers about a promotion or announcement. Displays in a square block at the top of the page.
675
+ */
676
+ facilityNotice?: {
677
+ root: {
678
+ type: string;
679
+ children: {
680
+ type: string;
681
+ version: number;
682
+ [k: string]: unknown;
683
+ }[];
684
+ direction: ('ltr' | 'rtl') | null;
685
+ format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
686
+ indent: number;
687
+ version: number;
688
+ };
689
+ [k: string]: unknown;
690
+ } | null;
691
+ /**
692
+ * Short callout about a promotion (i.e 50% OFF First Months Rent!). This displays on market pages.
693
+ */
694
+ marketNotice?: string | null;
715
695
  meta?: {
716
696
  title?: string | null;
717
697
  description?: string | null;
@@ -821,7 +801,7 @@ export interface ContentTabs {
821
801
  };
822
802
  map?: {
823
803
  /**
824
- * This content, like directions, is displayed below the map.
804
+ * This content, like directions to the facility, is displayed below the map.
825
805
  */
826
806
  content?: {
827
807
  root: {
@@ -971,15 +951,6 @@ export interface Post {
971
951
  createdAt: string;
972
952
  _status?: ('draft' | 'published') | null;
973
953
  }
974
- /**
975
- * This interface was referenced by `Config`'s JSON-Schema
976
- * via the `definition` "BreadcrumbsBlock".
977
- */
978
- export interface BreadcrumbsBlock {
979
- id?: string | null;
980
- blockName?: string | null;
981
- blockType: 'breadcrumbs';
982
- }
983
954
  /**
984
955
  * This interface was referenced by `Config`'s JSON-Schema
985
956
  * via the `definition` "CallToActionBlock".
@@ -1720,6 +1691,98 @@ export interface FormSubmission {
1720
1691
  updatedAt: string;
1721
1692
  createdAt: string;
1722
1693
  }
1694
+ /**
1695
+ * This interface was referenced by `Config`'s JSON-Schema
1696
+ * via the `definition` "payload-jobs".
1697
+ */
1698
+ export interface PayloadJob {
1699
+ id: string;
1700
+ /**
1701
+ * Input data provided to the job
1702
+ */
1703
+ input?:
1704
+ | {
1705
+ [k: string]: unknown;
1706
+ }
1707
+ | unknown[]
1708
+ | string
1709
+ | number
1710
+ | boolean
1711
+ | null;
1712
+ taskStatus?:
1713
+ | {
1714
+ [k: string]: unknown;
1715
+ }
1716
+ | unknown[]
1717
+ | string
1718
+ | number
1719
+ | boolean
1720
+ | null;
1721
+ completedAt?: string | null;
1722
+ totalTried?: number | null;
1723
+ /**
1724
+ * If hasError is true this job will not be retried
1725
+ */
1726
+ hasError?: boolean | null;
1727
+ /**
1728
+ * If hasError is true, this is the error that caused it
1729
+ */
1730
+ error?:
1731
+ | {
1732
+ [k: string]: unknown;
1733
+ }
1734
+ | unknown[]
1735
+ | string
1736
+ | number
1737
+ | boolean
1738
+ | null;
1739
+ /**
1740
+ * Task execution log
1741
+ */
1742
+ log?:
1743
+ | {
1744
+ executedAt: string;
1745
+ completedAt: string;
1746
+ taskSlug: 'inline' | 'schedulePublish';
1747
+ taskID: string;
1748
+ input?:
1749
+ | {
1750
+ [k: string]: unknown;
1751
+ }
1752
+ | unknown[]
1753
+ | string
1754
+ | number
1755
+ | boolean
1756
+ | null;
1757
+ output?:
1758
+ | {
1759
+ [k: string]: unknown;
1760
+ }
1761
+ | unknown[]
1762
+ | string
1763
+ | number
1764
+ | boolean
1765
+ | null;
1766
+ state: 'failed' | 'succeeded';
1767
+ error?:
1768
+ | {
1769
+ [k: string]: unknown;
1770
+ }
1771
+ | unknown[]
1772
+ | string
1773
+ | number
1774
+ | boolean
1775
+ | null;
1776
+ id?: string | null;
1777
+ }[]
1778
+ | null;
1779
+ taskSlug?: ('inline' | 'schedulePublish') | null;
1780
+ queue?: string | null;
1781
+ waitUntil?: string | null;
1782
+ processing?: boolean | null;
1783
+ updatedAt: string;
1784
+ createdAt: string;
1785
+ }
1723
1786
  /**
1724
1787
  * This interface was referenced by `Config`'s JSON-Schema
1725
1788
  * via the `definition` "payload-locked-documents".
@@ -1786,6 +1849,10 @@ export interface PayloadLockedDocument {
1786
1849
  | ({
1787
1850
  relationTo: 'form-submissions';
1788
1851
  value: string | FormSubmission;
1852
+ } | null)
1853
+ | ({
1854
+ relationTo: 'payload-jobs';
1855
+ value: string | PayloadJob;
1789
1856
  } | null);
1790
1857
  globalSlug?: string | null;
1791
1858
  user: {
@@ -1840,7 +1907,6 @@ export interface PagesSelect<T extends boolean = true> {
1840
1907
  | T
1841
1908
  | {
1842
1909
  archive?: T | ArchiveBlockSelect<T>;
1843
- breadcrumbs?: T | BreadcrumbsBlockSelect<T>;
1844
1910
  cta?: T | CallToActionBlockSelect<T>;
1845
1911
  content?: T | ContentBlockSelect<T>;
1846
1912
  faq?: T | FaqBlockSelect<T>;
@@ -1896,14 +1962,6 @@ export interface ArchiveBlockSelect<T extends boolean = true> {
1896
1962
  id?: T;
1897
1963
  blockName?: T;
1898
1964
  }
1899
- /**
1900
- * This interface was referenced by `Config`'s JSON-Schema
1901
- * via the `definition` "BreadcrumbsBlock_select".
1902
- */
1903
- export interface BreadcrumbsBlockSelect<T extends boolean = true> {
1904
- id?: T;
1905
- blockName?: T;
1906
- }
1907
1965
  /**
1908
1966
  * This interface was referenced by `Config`'s JSON-Schema
1909
1967
  * via the `definition` "CallToActionBlock_select".
@@ -2426,8 +2484,6 @@ export interface FacilitiesSelect<T extends boolean = true> {
2426
2484
  brandSelection?: T;
2427
2485
  facilityFeatures?: T;
2428
2486
  facilityPaymentSystem?: T;
2429
- facilityNotice?: T;
2430
- facilityPromotion?: T;
2431
2487
  gallery?: T;
2432
2488
  contentTabs?: T | ContentTabsSelect<T>;
2433
2489
  unitTableSettings?:
@@ -2456,6 +2512,8 @@ export interface FacilitiesSelect<T extends boolean = true> {
2456
2512
  groupBy?: T;
2457
2513
  };
2458
2514
  faq?: T | FaqsSelect<T>;
2515
+ facilityNotice?: T;
2516
+ marketNotice?: T;
2459
2517
  meta?:
2460
2518
  | T
2461
2519
  | {
@@ -2524,7 +2582,6 @@ export interface MarketsSelect<T extends boolean = true> {
2524
2582
  | T
2525
2583
  | {
2526
2584
  archive?: T | ArchiveBlockSelect<T>;
2527
- breadcrumbs?: T | BreadcrumbsBlockSelect<T>;
2528
2585
  cta?: T | CallToActionBlockSelect<T>;
2529
2586
  content?: T | ContentBlockSelect<T>;
2530
2587
  faq?: T | FaqBlockSelect<T>;
@@ -2765,6 +2822,37 @@ export interface FormSubmissionsSelect<T extends boolean = true> {
2765
2822
  updatedAt?: T;
2766
2823
  createdAt?: T;
2767
2824
  }
2825
+ /**
2826
+ * This interface was referenced by `Config`'s JSON-Schema
2827
+ * via the `definition` "payload-jobs_select".
2828
+ */
2829
+ export interface PayloadJobsSelect<T extends boolean = true> {
2830
+ input?: T;
2831
+ taskStatus?: T;
2832
+ completedAt?: T;
2833
+ totalTried?: T;
2834
+ hasError?: T;
2835
+ error?: T;
2836
+ log?:
2837
+ | T
2838
+ | {
2839
+ executedAt?: T;
2840
+ completedAt?: T;
2841
+ taskSlug?: T;
2842
+ taskID?: T;
2843
+ input?: T;
2844
+ output?: T;
2845
+ state?: T;
2846
+ error?: T;
2847
+ id?: T;
2848
+ };
2849
+ taskSlug?: T;
2850
+ queue?: T;
2851
+ waitUntil?: T;
2852
+ processing?: T;
2853
+ updatedAt?: T;
2854
+ createdAt?: T;
2855
+ }
2768
2856
  /**
2769
2857
  * This interface was referenced by `Config`'s JSON-Schema
2770
2858
  * via the `definition` "payload-locked-documents_select".
@@ -2797,6 +2885,36 @@ export interface PayloadMigrationsSelect<T extends boolean = true> {
2797
2885
  updatedAt?: T;
2798
2886
  createdAt?: T;
2799
2887
  }
2888
+ /**
2889
+ * This interface was referenced by `Config`'s JSON-Schema
2890
+ * via the `definition` "TaskSchedulePublish".
2891
+ */
2892
+ export interface TaskSchedulePublish {
2893
+ input: {
2894
+ type?: ('publish' | 'unpublish') | null;
2895
+ locale?: string | null;
2896
+ doc?:
2897
+ | ({
2898
+ relationTo: 'pages';
2899
+ value: string | Page;
2900
+ } | null)
2901
+ | ({
2902
+ relationTo: 'posts';
2903
+ value: string | Post;
2904
+ } | null)
2905
+ | ({
2906
+ relationTo: 'facilities';
2907
+ value: string | Facility;
2908
+ } | null)
2909
+ | ({
2910
+ relationTo: 'markets';
2911
+ value: string | Market;
2912
+ } | null);
2913
+ global?: string | null;
2914
+ user?: (string | null) | User;
2915
+ };
2916
+ output?: unknown;
2917
+ }
2800
2918
  /**
2801
2919
  * This interface was referenced by `Config`'s JSON-Schema
2802
2920
  * via the `definition` "BannerBlock".