-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from ClicknClear/event-sync
Event sync
- Loading branch information
Showing
10 changed files
with
1,147 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,14 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## [1.0.4](https://github.com/clicknclear/API-Documentation/compare/@clicknclear/[email protected]...@clicknclear/[email protected]) (2024-10-21) | ||
|
||
**Note:** Version bump only for package @clicknclear/apis | ||
|
||
|
||
|
||
|
||
|
||
## [1.0.3](https://github.com/ClicknClear/Public-Resources/compare/@clicknclear/[email protected]...@clicknclear/[email protected]) (2024-10-10) | ||
|
||
**Note:** Version bump only for package @clicknclear/apis | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,14 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## [1.0.4](https://github.com/ClicknClear/Public-Resources/compare/@clicknclear/[email protected]...@clicknclear/[email protected]) (2024-10-21) | ||
|
||
**Note:** Version bump only for package @clicknclear/lvs-types-public | ||
|
||
|
||
|
||
|
||
|
||
## [1.0.3](https://github.com/ClicknClear/Public-Resources/compare/@clicknclear/[email protected]...@clicknclear/[email protected]) (2024-10-10) | ||
|
||
**Note:** Version bump only for package @clicknclear/lvs-types-public | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,38 @@ | ||
import { z } from 'zod'; | ||
import { paginationBaseV1 } from './pagination'; | ||
import { ISignupFieldV1 } from './signupField'; | ||
import { zParsedNumber } from './zodHelpers'; | ||
|
||
export interface IEventV1 { | ||
id: number | ||
name: string | ||
title: string | ||
/** | ||
* ISO Date String. | ||
*/ | ||
startDate: string | ||
inviteURL: string | null | ||
/** | ||
* ISO Date String. | ||
*/ | ||
endDate: string | ||
territories: string[] | ||
inviteURL: string | null | ||
/** | ||
* ISO Territory codes to check licenses against in this event. https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 | ||
* null if the event venue address has not been set | ||
*/ | ||
territory: string | null | ||
/** | ||
* if isLocked is true Team/Athletes will no longer be able to signup | ||
*/ | ||
isLocked: boolean | ||
organisationId: number | ||
signupFields: ISignupFieldV1[] | ||
} | ||
|
||
export type GetEventsQueryV1 = z.infer<typeof getEventsQuerySchemaV1> | ||
/** | ||
* Used to query events via the GET Events API endpoint | ||
*/ | ||
export const getEventsQuerySchemaV1 = paginationBaseV1.extend({ | ||
//If undefined, all events will be fetched | ||
organisationId: zParsedNumber().optional() | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { z } from 'zod'; | ||
import { zParsedNumber } from './zodHelpers'; | ||
|
||
export const paginationBaseV1 = z.object({ | ||
limit: zParsedNumber(z.number().max(100)).default(25).optional(), | ||
offset: zParsedNumber().default(0).optional() | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters