Skip to content

Commit

Permalink
feat!: remove deprecated timestamp fields
Browse files Browse the repository at this point in the history
  • Loading branch information
figueredo committed Jul 24, 2024
1 parent 652b479 commit 226b86d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ export type RegisterFeedbackBodyProps = {
loginId?: string
paymentId?: string
signupId?: string
/** @deprecated use occurredAt instead */
timestamp?: number
occurredAt?: Date
expiresAt?: Date
[x: string]: any
Expand All @@ -135,8 +133,6 @@ export type RegisterTransactionProps = (
type TransactionLocation = {
latitude: number
longitude: number
/** @deprecated use collectedAt instead */
timestamp?: number
collectedAt?: Date
}

Expand Down
2 changes: 0 additions & 2 deletions test/incogniaApi.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,6 @@ describe('API', () => {
loginId: 'login_id',
paymentId: 'payment_id',
signupId: 'signup_id',
timestamp: 123,
occurredAt: new Date("Jul 19 2024 01:02:03 UTC"),
expiresAt: new Date("Jul 30 2024 01:02:03 UTC"),
},
Expand All @@ -282,7 +281,6 @@ describe('API', () => {
login_id: 'login_id',
payment_id: 'payment_id',
signup_id: 'signup_id',
timestamp: 123,
occurred_at: '2024-07-19T01:02:03.000Z',
expires_at: '2024-07-30T01:02:03.000Z'
}
Expand Down

0 comments on commit 226b86d

Please sign in to comment.