Skip to content
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

[6.0.0] feat!: remove deprecated timestamp fields #86

Closed
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
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
Loading