@glidevvr/storage-payload-types-pkg 1.0.207 → 1.0.209

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 +98 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glidevvr/storage-payload-types-pkg",
3
- "version": "1.0.207",
3
+ "version": "1.0.209",
4
4
  "description": "Package for Payload CMS types.",
5
5
  "main": "payload-types.ts",
6
6
  "scripts": {
package/payload-types.ts CHANGED
@@ -180,6 +180,7 @@ export interface Config {
180
180
  users: User;
181
181
  builds: Build;
182
182
  'deletion-logs': DeletionLog;
183
+ 'batch-statuses': BatchStatus;
183
184
  'payload-jobs': PayloadJob;
184
185
  'payload-locked-documents': PayloadLockedDocument;
185
186
  'payload-preferences': PayloadPreference;
@@ -207,6 +208,7 @@ export interface Config {
207
208
  users: UsersSelect<false> | UsersSelect<true>;
208
209
  builds: BuildsSelect<false> | BuildsSelect<true>;
209
210
  'deletion-logs': DeletionLogsSelect<false> | DeletionLogsSelect<true>;
211
+ 'batch-statuses': BatchStatusesSelect<false> | BatchStatusesSelect<true>;
210
212
  'payload-jobs': PayloadJobsSelect<false> | PayloadJobsSelect<true>;
211
213
  'payload-locked-documents': PayloadLockedDocumentsSelect<false> | PayloadLockedDocumentsSelect<true>;
212
214
  'payload-preferences': PayloadPreferencesSelect<false> | PayloadPreferencesSelect<true>;
@@ -2024,6 +2026,79 @@ export interface DeletionLog {
2024
2026
  updatedAt: string;
2025
2027
  createdAt: string;
2026
2028
  }
2029
+ /**
2030
+ * Tracks batch processing status for posts and facilities imports
2031
+ *
2032
+ * This interface was referenced by `Config`'s JSON-Schema
2033
+ * via the `definition` "batch-statuses".
2034
+ */
2035
+ export interface BatchStatus {
2036
+ id: string;
2037
+ tenant?: (string | null) | Tenant;
2038
+ /**
2039
+ * Unique identifier for the batch operation
2040
+ */
2041
+ batchId: string;
2042
+ /**
2043
+ * The type of items being processed in this batch
2044
+ */
2045
+ type: 'posts' | 'facilities';
2046
+ status: 'pending' | 'processing' | 'completed' | 'failed';
2047
+ /**
2048
+ * Total number of items in the batch
2049
+ */
2050
+ totalItems?: number | null;
2051
+ /**
2052
+ * Number of items processed so far
2053
+ */
2054
+ processedItems?: number | null;
2055
+ /**
2056
+ * Array of successfully created items: [{id, title, slug, seFacilityId?}]
2057
+ */
2058
+ createdItems?:
2059
+ | {
2060
+ [k: string]: unknown;
2061
+ }
2062
+ | unknown[]
2063
+ | string
2064
+ | number
2065
+ | boolean
2066
+ | null;
2067
+ /**
2068
+ * Array of successfully updated items (facilities only): [{id, title, slug, seFacilityId}]
2069
+ */
2070
+ updatedItems?:
2071
+ | {
2072
+ [k: string]: unknown;
2073
+ }
2074
+ | unknown[]
2075
+ | string
2076
+ | number
2077
+ | boolean
2078
+ | null;
2079
+ /**
2080
+ * Array of errors encountered during processing
2081
+ */
2082
+ errors?:
2083
+ | {
2084
+ [k: string]: unknown;
2085
+ }
2086
+ | unknown[]
2087
+ | string
2088
+ | number
2089
+ | boolean
2090
+ | null;
2091
+ /**
2092
+ * ID of the API user who initiated the batch
2093
+ */
2094
+ userId?: string | null;
2095
+ /**
2096
+ * Username of the API user who initiated the batch
2097
+ */
2098
+ userUsername?: string | null;
2099
+ updatedAt: string;
2100
+ createdAt: string;
2101
+ }
2027
2102
  /**
2028
2103
  * This interface was referenced by `Config`'s JSON-Schema
2029
2104
  * via the `definition` "payload-jobs".
@@ -2187,6 +2262,10 @@ export interface PayloadLockedDocument {
2187
2262
  relationTo: 'deletion-logs';
2188
2263
  value: string | DeletionLog;
2189
2264
  } | null)
2265
+ | ({
2266
+ relationTo: 'batch-statuses';
2267
+ value: string | BatchStatus;
2268
+ } | null)
2190
2269
  | ({
2191
2270
  relationTo: 'payload-jobs';
2192
2271
  value: string | PayloadJob;
@@ -3303,6 +3382,25 @@ export interface DeletionLogsSelect<T extends boolean = true> {
3303
3382
  updatedAt?: T;
3304
3383
  createdAt?: T;
3305
3384
  }
3385
+ /**
3386
+ * This interface was referenced by `Config`'s JSON-Schema
3387
+ * via the `definition` "batch-statuses_select".
3388
+ */
3389
+ export interface BatchStatusesSelect<T extends boolean = true> {
3390
+ tenant?: T;
3391
+ batchId?: T;
3392
+ type?: T;
3393
+ status?: T;
3394
+ totalItems?: T;
3395
+ processedItems?: T;
3396
+ createdItems?: T;
3397
+ updatedItems?: T;
3398
+ errors?: T;
3399
+ userId?: T;
3400
+ userUsername?: T;
3401
+ updatedAt?: T;
3402
+ createdAt?: T;
3403
+ }
3306
3404
  /**
3307
3405
  * This interface was referenced by `Config`'s JSON-Schema
3308
3406
  * via the `definition` "payload-jobs_select".