@glidevvr/storage-payload-types-pkg 1.0.33 → 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 +167 -42
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glidevvr/storage-payload-types-pkg",
3
- "version": "1.0.33",
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
  }
@@ -1723,6 +1691,98 @@ export interface FormSubmission {
1723
1691
  updatedAt: string;
1724
1692
  createdAt: string;
1725
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
+ }
1726
1786
  /**
1727
1787
  * This interface was referenced by `Config`'s JSON-Schema
1728
1788
  * via the `definition` "payload-locked-documents".
@@ -1789,6 +1849,10 @@ export interface PayloadLockedDocument {
1789
1849
  | ({
1790
1850
  relationTo: 'form-submissions';
1791
1851
  value: string | FormSubmission;
1852
+ } | null)
1853
+ | ({
1854
+ relationTo: 'payload-jobs';
1855
+ value: string | PayloadJob;
1792
1856
  } | null);
1793
1857
  globalSlug?: string | null;
1794
1858
  user: {
@@ -2758,6 +2822,37 @@ export interface FormSubmissionsSelect<T extends boolean = true> {
2758
2822
  updatedAt?: T;
2759
2823
  createdAt?: T;
2760
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
+ }
2761
2856
  /**
2762
2857
  * This interface was referenced by `Config`'s JSON-Schema
2763
2858
  * via the `definition` "payload-locked-documents_select".
@@ -2790,6 +2885,36 @@ export interface PayloadMigrationsSelect<T extends boolean = true> {
2790
2885
  updatedAt?: T;
2791
2886
  createdAt?: T;
2792
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
+ }
2793
2918
  /**
2794
2919
  * This interface was referenced by `Config`'s JSON-Schema
2795
2920
  * via the `definition` "BannerBlock".