Skip to content

Fix misleading Date types #163

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/api/src/archive/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export interface Tag {
archiveId: string;
status: string;
type: string;
createdDt: Date;
updatedDt: Date;
createdDt: string;
updatedDt: string;
}

export interface AccountStorage {
Expand All @@ -17,8 +17,8 @@ export interface AccountStorage {
filesTotal: string;
status: string;
type: string;
createdDt: Date;
updatedDt: Date;
createdDt: string;
updatedDt: string;
}

export interface FeaturedArchive {
Expand Down
10 changes: 5 additions & 5 deletions packages/api/src/directive/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ export interface DirectiveTrigger {
directiveTriggerId: string;
directiveId: string;
type: string;
createdDt: Date;
updatedDt: Date;
createdDt: string;
updatedDt: string;
}

export interface Directive {
directiveId: string;
archiveId: string;
type: string;
createdDt: Date;
updatedDt: Date;
createdDt: string;
updatedDt: string;
trigger: DirectiveTrigger;
steward?: DirectiveSteward;
note?: string;
executionDt?: Date;
executionDt?: string;
}

export interface DirectiveExecutionResult {
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/legacy_contact/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ export interface LegacyContact {
accountId: string;
name: string;
email: string;
createdDt: Date;
updatedDt: Date;
createdDt: string;
updatedDt: string;
}
10 changes: 5 additions & 5 deletions packages/api/src/promo/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export interface CreatePromoRequest {
code: string;
storageInMB: number;
expirationTimestamp: string;
totalUses: Date;
totalUses: number;
}

export interface Promo {
Expand All @@ -15,8 +15,8 @@ export interface Promo {
remainingUses: number;
status: string;
type: string;
createdAt: Date;
updatedAt: Date;
createdAt: string;
updatedAt: string;
}

export interface PromoRow {
Expand All @@ -27,6 +27,6 @@ export interface PromoRow {
remainingUses: string;
status: string;
type: string;
createdAt: Date;
updatedAt: Date;
createdAt: string;
updatedAt: string;
}
Loading