tonightpass 0.0.105 → 0.0.107
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.
- package/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +12 -0
- package/dist/index.d.mts +23 -12
- package/dist/index.d.ts +23 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/rest/types/index.ts +1 -12
- package/src/rest/types/locations/index.ts +18 -0
- package/src/rest/types/organizations/events/index.ts +9 -5
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> tonightpass@0.0.
|
|
2
|
+
> tonightpass@0.0.107 build /home/runner/work/tonightpass/tonightpass/packages/node
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[34mDTS[39m Build start
|
|
13
13
|
[32mESM[39m [1mdist/index.mjs [22m[32m24.22 KB[39m
|
|
14
|
-
[32mESM[39m [1mdist/index.mjs.map [22m[32m94.
|
|
15
|
-
[32mESM[39m ⚡️ Build success in
|
|
14
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m94.88 KB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 681ms
|
|
16
16
|
[32mCJS[39m [1mdist/index.js [22m[32m26.65 KB[39m
|
|
17
|
-
[32mCJS[39m [1mdist/index.js.map [22m[32m95.
|
|
18
|
-
[32mCJS[39m ⚡️ Build success in
|
|
19
|
-
[32mDTS[39m ⚡️ Build success in
|
|
20
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m38.
|
|
21
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m38.
|
|
17
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m95.01 KB[39m
|
|
18
|
+
[32mCJS[39m ⚡️ Build success in 682ms
|
|
19
|
+
[32mDTS[39m ⚡️ Build success in 4237ms
|
|
20
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m38.70 KB[39m
|
|
21
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m38.70 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# tonightpass
|
|
2
2
|
|
|
3
|
+
## 0.0.107
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`5c172ad`](https://github.com/tonightpass/tonightpass/commit/5c172ad4e7152f4ebd3567a8cc8693683120cc5b) Thanks [@AntoineKM](https://github.com/AntoineKM)! - Add location types and geometry definitions in a new locations module
|
|
8
|
+
|
|
9
|
+
## 0.0.106
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`704be44`](https://github.com/tonightpass/tonightpass/commit/704be441b4bea857e2781a6058c6bae3a5dd50dd) Thanks [@AntoineKM](https://github.com/AntoineKM)! - Add GeoPoint type and update Location geometry to use GeoPoint
|
|
14
|
+
|
|
3
15
|
## 0.0.105
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -232,6 +232,25 @@ interface Health<T extends string = string> extends HealthCheckResult {
|
|
|
232
232
|
}
|
|
233
233
|
type HealthEndpoints = Endpoint<"GET", "/health", Health<"database" | "app" | "api" | "database">> | Endpoint<"GET", "/health/database", Health<"database">> | Endpoint<"GET", "/health/api", Health<"api">> | Endpoint<"GET", "/health/app", Health<"app">>;
|
|
234
234
|
|
|
235
|
+
type GeoPoint = {
|
|
236
|
+
type: "Point";
|
|
237
|
+
coordinates: [number, number];
|
|
238
|
+
};
|
|
239
|
+
type Location$1 = {
|
|
240
|
+
name?: string;
|
|
241
|
+
address: string;
|
|
242
|
+
zipCode: string;
|
|
243
|
+
city: string;
|
|
244
|
+
country: string;
|
|
245
|
+
geometry: GeoPoint;
|
|
246
|
+
};
|
|
247
|
+
interface GeoSearchAggregation<T> {
|
|
248
|
+
metadata: {
|
|
249
|
+
total: number;
|
|
250
|
+
}[];
|
|
251
|
+
data: T[];
|
|
252
|
+
}
|
|
253
|
+
|
|
235
254
|
type OrganizationEventOrderEndpoints = Endpoint<"POST", "/organizations/:organizationSlug/events/:eventSlug/orders", Order, CreateOrganizationEventOrderDto>;
|
|
236
255
|
|
|
237
256
|
declare class CreateOrganizationEventStyleDto {
|
|
@@ -307,6 +326,9 @@ type OrganizationEvent = Base & {
|
|
|
307
326
|
startAt: Date;
|
|
308
327
|
endAt: Date;
|
|
309
328
|
};
|
|
329
|
+
type OrganizationEventWithDistance = OrganizationEvent & {
|
|
330
|
+
distance: number;
|
|
331
|
+
};
|
|
310
332
|
declare enum OrganizationEventType {
|
|
311
333
|
Clubbing = "clubbing",
|
|
312
334
|
Concert = "concert",
|
|
@@ -450,17 +472,6 @@ type Base = {
|
|
|
450
472
|
updatedAt: Date;
|
|
451
473
|
};
|
|
452
474
|
type ExcludeBase<T> = Omit<T, keyof Base>;
|
|
453
|
-
type Location$1 = {
|
|
454
|
-
name?: string;
|
|
455
|
-
address: string;
|
|
456
|
-
zipCode: string;
|
|
457
|
-
city: string;
|
|
458
|
-
country: string;
|
|
459
|
-
geometry?: {
|
|
460
|
-
latitude: number;
|
|
461
|
-
longitude: number;
|
|
462
|
-
};
|
|
463
|
-
};
|
|
464
475
|
declare enum Currency {
|
|
465
476
|
EUR = "EUR",
|
|
466
477
|
USD = "USD",
|
|
@@ -962,4 +973,4 @@ declare class TonightPass {
|
|
|
962
973
|
declare const isBrowser: boolean;
|
|
963
974
|
declare function buildFileFormData(key: string, files: File | File[] | FileList): FormData;
|
|
964
975
|
|
|
965
|
-
export { type APIRequestOptions, type APIResponse, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type AuthEndpoints, type Base, type BaseProfile, type BaseProfileMetadata, type Body, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, Client, type ClientOptions, CreateOrganizationDto, CreateOrganizationEventDto, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, CreateUserIdentityDto, Currency, DEFAULT_API_URL, type Endpoint, type Endpoints, type ErroredAPIResponse, type ExcludeBase, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, type Order, type OrderEndpoints, type Organization, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventEndpoints, type OrganizationEventOrderEndpoints, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationSocialLink, OrganizationSocialType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type QueryParams, REGEX, type Response, type ResponseFor, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, type User, type UserBooking, type UserBookingEndpoints, type UserBookingTicket, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, UserFileType, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserNotification, type UserNotificationBase, type UserNotificationEndpoints, type UserNotificationFollow, UserNotificationType, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, buildFileFormData, careers, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
|
|
976
|
+
export { type APIRequestOptions, type APIResponse, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type AuthEndpoints, type Base, type BaseProfile, type BaseProfileMetadata, type Body, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, Client, type ClientOptions, CreateOrganizationDto, CreateOrganizationEventDto, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, CreateUserIdentityDto, Currency, DEFAULT_API_URL, type Endpoint, type Endpoints, type ErroredAPIResponse, type ExcludeBase, type GeoPoint, type GeoSearchAggregation, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, type Order, type OrderEndpoints, type Organization, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventEndpoints, type OrganizationEventOrderEndpoints, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, type OrganizationEventWithDistance, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationSocialLink, OrganizationSocialType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type QueryParams, REGEX, type Response, type ResponseFor, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, type User, type UserBooking, type UserBookingEndpoints, type UserBookingTicket, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, UserFileType, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserNotification, type UserNotificationBase, type UserNotificationEndpoints, type UserNotificationFollow, UserNotificationType, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, buildFileFormData, careers, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
|
package/dist/index.d.ts
CHANGED
|
@@ -232,6 +232,25 @@ interface Health<T extends string = string> extends HealthCheckResult {
|
|
|
232
232
|
}
|
|
233
233
|
type HealthEndpoints = Endpoint<"GET", "/health", Health<"database" | "app" | "api" | "database">> | Endpoint<"GET", "/health/database", Health<"database">> | Endpoint<"GET", "/health/api", Health<"api">> | Endpoint<"GET", "/health/app", Health<"app">>;
|
|
234
234
|
|
|
235
|
+
type GeoPoint = {
|
|
236
|
+
type: "Point";
|
|
237
|
+
coordinates: [number, number];
|
|
238
|
+
};
|
|
239
|
+
type Location$1 = {
|
|
240
|
+
name?: string;
|
|
241
|
+
address: string;
|
|
242
|
+
zipCode: string;
|
|
243
|
+
city: string;
|
|
244
|
+
country: string;
|
|
245
|
+
geometry: GeoPoint;
|
|
246
|
+
};
|
|
247
|
+
interface GeoSearchAggregation<T> {
|
|
248
|
+
metadata: {
|
|
249
|
+
total: number;
|
|
250
|
+
}[];
|
|
251
|
+
data: T[];
|
|
252
|
+
}
|
|
253
|
+
|
|
235
254
|
type OrganizationEventOrderEndpoints = Endpoint<"POST", "/organizations/:organizationSlug/events/:eventSlug/orders", Order, CreateOrganizationEventOrderDto>;
|
|
236
255
|
|
|
237
256
|
declare class CreateOrganizationEventStyleDto {
|
|
@@ -307,6 +326,9 @@ type OrganizationEvent = Base & {
|
|
|
307
326
|
startAt: Date;
|
|
308
327
|
endAt: Date;
|
|
309
328
|
};
|
|
329
|
+
type OrganizationEventWithDistance = OrganizationEvent & {
|
|
330
|
+
distance: number;
|
|
331
|
+
};
|
|
310
332
|
declare enum OrganizationEventType {
|
|
311
333
|
Clubbing = "clubbing",
|
|
312
334
|
Concert = "concert",
|
|
@@ -450,17 +472,6 @@ type Base = {
|
|
|
450
472
|
updatedAt: Date;
|
|
451
473
|
};
|
|
452
474
|
type ExcludeBase<T> = Omit<T, keyof Base>;
|
|
453
|
-
type Location$1 = {
|
|
454
|
-
name?: string;
|
|
455
|
-
address: string;
|
|
456
|
-
zipCode: string;
|
|
457
|
-
city: string;
|
|
458
|
-
country: string;
|
|
459
|
-
geometry?: {
|
|
460
|
-
latitude: number;
|
|
461
|
-
longitude: number;
|
|
462
|
-
};
|
|
463
|
-
};
|
|
464
475
|
declare enum Currency {
|
|
465
476
|
EUR = "EUR",
|
|
466
477
|
USD = "USD",
|
|
@@ -962,4 +973,4 @@ declare class TonightPass {
|
|
|
962
973
|
declare const isBrowser: boolean;
|
|
963
974
|
declare function buildFileFormData(key: string, files: File | File[] | FileList): FormData;
|
|
964
975
|
|
|
965
|
-
export { type APIRequestOptions, type APIResponse, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type AuthEndpoints, type Base, type BaseProfile, type BaseProfileMetadata, type Body, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, Client, type ClientOptions, CreateOrganizationDto, CreateOrganizationEventDto, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, CreateUserIdentityDto, Currency, DEFAULT_API_URL, type Endpoint, type Endpoints, type ErroredAPIResponse, type ExcludeBase, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, type Order, type OrderEndpoints, type Organization, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventEndpoints, type OrganizationEventOrderEndpoints, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationSocialLink, OrganizationSocialType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type QueryParams, REGEX, type Response, type ResponseFor, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, type User, type UserBooking, type UserBookingEndpoints, type UserBookingTicket, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, UserFileType, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserNotification, type UserNotificationBase, type UserNotificationEndpoints, type UserNotificationFollow, UserNotificationType, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, buildFileFormData, careers, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
|
|
976
|
+
export { type APIRequestOptions, type APIResponse, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type AuthEndpoints, type Base, type BaseProfile, type BaseProfileMetadata, type Body, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, Client, type ClientOptions, CreateOrganizationDto, CreateOrganizationEventDto, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, CreateUserIdentityDto, Currency, DEFAULT_API_URL, type Endpoint, type Endpoints, type ErroredAPIResponse, type ExcludeBase, type GeoPoint, type GeoSearchAggregation, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, type Order, type OrderEndpoints, type Organization, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventEndpoints, type OrganizationEventOrderEndpoints, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, type OrganizationEventWithDistance, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationSocialLink, OrganizationSocialType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type QueryParams, REGEX, type Response, type ResponseFor, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, type User, type UserBooking, type UserBookingEndpoints, type UserBookingTicket, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, UserFileType, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserNotification, type UserNotificationBase, type UserNotificationEndpoints, type UserNotificationFollow, UserNotificationType, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, buildFileFormData, careers, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
|