@plyaz/types 1.42.4 → 1.42.6

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.
@@ -38,7 +38,7 @@ export type DeleteCampaignDTO = z.infer<typeof DeleteCampaignSchema>;
38
38
  * Update campaign params interface for API operations
39
39
  */
40
40
  export interface UpdateCampaignParams {
41
- campaignId: string;
41
+ id: string;
42
42
  data: PatchCampaignDTO;
43
43
  }
44
44
  /**
@@ -257,3 +257,50 @@ export interface DraftCampaignData extends FormCampaignDataInterface {
257
257
  /** Timestamp when the draft was last saved */
258
258
  lastSavedAt: Date;
259
259
  }
260
+ /**
261
+ * Database row type for Campaign entity
262
+ */
263
+ export interface CampaignDatabaseRow {
264
+ /** Unique campaign identifier */
265
+ id: string;
266
+ /** Campaign creator user ID */
267
+ creator_id: string;
268
+ /** Campaign title */
269
+ title: string;
270
+ /** Campaign subtitle */
271
+ subtitle: string;
272
+ /** Campaign story/description */
273
+ story: string;
274
+ /** Campaign funding target amount */
275
+ funding_target: number;
276
+ /** Campaign status */
277
+ status: string;
278
+ /** Campaign images array */
279
+ campaign_images?: string[];
280
+ /** Campaign start date */
281
+ start_date?: string;
282
+ /** Campaign duration in days */
283
+ duration?: number;
284
+ /** Campaign location region */
285
+ location_region?: string;
286
+ /** Campaign location city */
287
+ location_city?: string;
288
+ /** Campaign sport */
289
+ sport?: string;
290
+ /** Campaign category */
291
+ category?: string;
292
+ /** Campaign tags */
293
+ tags?: string[];
294
+ /** Campaign videos array */
295
+ campaign_videos?: string[];
296
+ /** First contribution timestamp */
297
+ first_contribution_at?: string;
298
+ /** Creation timestamp */
299
+ created_at: string;
300
+ /** Last update timestamp */
301
+ updated_at: string;
302
+ /** Soft delete timestamp (nullable) */
303
+ deleted_at?: string | null;
304
+ /** Additional dynamic properties */
305
+ [key: string]: unknown;
306
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plyaz/types",
3
- "version": "1.42.4",
3
+ "version": "1.42.6",
4
4
  "author": "Redeemer Pace",
5
5
  "license": "ISC",
6
6
  "description": "Provides shared TypeScript types and schema utilities for validation and parsing in the @playz ecosystem.",