tonightpass 0.0.106 → 0.0.108
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 +9 -9
- package/CHANGELOG.md +12 -0
- package/dist/index.d.mts +26 -13
- package/dist/index.d.ts +26 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/rest/types/index.ts +1 -14
- package/src/rest/types/locations/index.ts +22 -0
- package/src/rest/types/organizations/events/index.ts +4 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> tonightpass@0.0.
|
|
2
|
+
> tonightpass@0.0.108 build /home/runner/work/tonightpass/tonightpass/packages/node
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[34mDTS[39m Build start
|
|
13
|
-
[32mCJS[39m [1mdist/index.js [22m[32m26.65 KB[39m
|
|
14
|
-
[32mCJS[39m [1mdist/index.js.map [22m[32m95.12 KB[39m
|
|
15
|
-
[32mCJS[39m ⚡️ Build success in 649ms
|
|
16
13
|
[32mESM[39m [1mdist/index.mjs [22m[32m24.22 KB[39m
|
|
17
|
-
[32mESM[39m [1mdist/index.mjs.map [22m[32m94.
|
|
18
|
-
[32mESM[39m ⚡️ Build success in
|
|
19
|
-
[
|
|
20
|
-
[
|
|
21
|
-
[
|
|
14
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m94.88 KB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 776ms
|
|
16
|
+
[32mCJS[39m [1mdist/index.js [22m[32m26.65 KB[39m
|
|
17
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m95.01 KB[39m
|
|
18
|
+
[32mCJS[39m ⚡️ Build success in 777ms
|
|
19
|
+
[32mDTS[39m ⚡️ Build success in 4218ms
|
|
20
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m38.76 KB[39m
|
|
21
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m38.76 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# tonightpass
|
|
2
2
|
|
|
3
|
+
## 0.0.108
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`4c5beb1`](https://github.com/tonightpass/tonightpass/commit/4c5beb171610e943692dec16ca1f60e9704a4409) Thanks [@AntoineKM](https://github.com/AntoineKM)! - Add Distance type to include distance property in GeoSearchAggregation
|
|
8
|
+
|
|
9
|
+
## 0.0.107
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`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
|
|
14
|
+
|
|
3
15
|
## 0.0.106
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -232,6 +232,28 @@ 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
|
+
type Distance<T> = T & {
|
|
254
|
+
distance: number;
|
|
255
|
+
};
|
|
256
|
+
|
|
235
257
|
type OrganizationEventOrderEndpoints = Endpoint<"POST", "/organizations/:organizationSlug/events/:eventSlug/orders", Order, CreateOrganizationEventOrderDto>;
|
|
236
258
|
|
|
237
259
|
declare class CreateOrganizationEventStyleDto {
|
|
@@ -307,6 +329,9 @@ type OrganizationEvent = Base & {
|
|
|
307
329
|
startAt: Date;
|
|
308
330
|
endAt: Date;
|
|
309
331
|
};
|
|
332
|
+
type OrganizationEventWithDistance = OrganizationEvent & {
|
|
333
|
+
distance: number;
|
|
334
|
+
};
|
|
310
335
|
declare enum OrganizationEventType {
|
|
311
336
|
Clubbing = "clubbing",
|
|
312
337
|
Concert = "concert",
|
|
@@ -450,18 +475,6 @@ type Base = {
|
|
|
450
475
|
updatedAt: Date;
|
|
451
476
|
};
|
|
452
477
|
type ExcludeBase<T> = Omit<T, keyof Base>;
|
|
453
|
-
type GeoPoint = {
|
|
454
|
-
type: "Point";
|
|
455
|
-
coordinates: [number, number];
|
|
456
|
-
};
|
|
457
|
-
type Location$1 = {
|
|
458
|
-
name?: string;
|
|
459
|
-
address: string;
|
|
460
|
-
zipCode: string;
|
|
461
|
-
city: string;
|
|
462
|
-
country: string;
|
|
463
|
-
geometry: GeoPoint;
|
|
464
|
-
};
|
|
465
478
|
declare enum Currency {
|
|
466
479
|
EUR = "EUR",
|
|
467
480
|
USD = "USD",
|
|
@@ -963,4 +976,4 @@ declare class TonightPass {
|
|
|
963
976
|
declare const isBrowser: boolean;
|
|
964
977
|
declare function buildFileFormData(key: string, files: File | File[] | FileList): FormData;
|
|
965
978
|
|
|
966
|
-
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 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 };
|
|
979
|
+
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 Distance, 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,28 @@ 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
|
+
type Distance<T> = T & {
|
|
254
|
+
distance: number;
|
|
255
|
+
};
|
|
256
|
+
|
|
235
257
|
type OrganizationEventOrderEndpoints = Endpoint<"POST", "/organizations/:organizationSlug/events/:eventSlug/orders", Order, CreateOrganizationEventOrderDto>;
|
|
236
258
|
|
|
237
259
|
declare class CreateOrganizationEventStyleDto {
|
|
@@ -307,6 +329,9 @@ type OrganizationEvent = Base & {
|
|
|
307
329
|
startAt: Date;
|
|
308
330
|
endAt: Date;
|
|
309
331
|
};
|
|
332
|
+
type OrganizationEventWithDistance = OrganizationEvent & {
|
|
333
|
+
distance: number;
|
|
334
|
+
};
|
|
310
335
|
declare enum OrganizationEventType {
|
|
311
336
|
Clubbing = "clubbing",
|
|
312
337
|
Concert = "concert",
|
|
@@ -450,18 +475,6 @@ type Base = {
|
|
|
450
475
|
updatedAt: Date;
|
|
451
476
|
};
|
|
452
477
|
type ExcludeBase<T> = Omit<T, keyof Base>;
|
|
453
|
-
type GeoPoint = {
|
|
454
|
-
type: "Point";
|
|
455
|
-
coordinates: [number, number];
|
|
456
|
-
};
|
|
457
|
-
type Location$1 = {
|
|
458
|
-
name?: string;
|
|
459
|
-
address: string;
|
|
460
|
-
zipCode: string;
|
|
461
|
-
city: string;
|
|
462
|
-
country: string;
|
|
463
|
-
geometry: GeoPoint;
|
|
464
|
-
};
|
|
465
478
|
declare enum Currency {
|
|
466
479
|
EUR = "EUR",
|
|
467
480
|
USD = "USD",
|
|
@@ -963,4 +976,4 @@ declare class TonightPass {
|
|
|
963
976
|
declare const isBrowser: boolean;
|
|
964
977
|
declare function buildFileFormData(key: string, files: File | File[] | FileList): FormData;
|
|
965
978
|
|
|
966
|
-
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 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 };
|
|
979
|
+
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 Distance, 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 };
|