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.
@@ -1,5 +1,5 @@
1
1
 
2
- > tonightpass@0.0.106 build /home/runner/work/tonightpass/tonightpass/packages/node
2
+ > tonightpass@0.0.108 build /home/runner/work/tonightpass/tonightpass/packages/node
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -10,12 +10,12 @@
10
10
  CJS Build start
11
11
  ESM Build start
12
12
  DTS Build start
13
- CJS dist/index.js 26.65 KB
14
- CJS dist/index.js.map 95.12 KB
15
- CJS ⚡️ Build success in 649ms
16
13
  ESM dist/index.mjs 24.22 KB
17
- ESM dist/index.mjs.map 94.99 KB
18
- ESM ⚡️ Build success in 650ms
19
- DTS ⚡️ Build success in 4351ms
20
- DTS dist/index.d.ts 38.45 KB
21
- DTS dist/index.d.mts 38.45 KB
14
+ ESM dist/index.mjs.map 94.88 KB
15
+ ESM ⚡️ Build success in 776ms
16
+ CJS dist/index.js 26.65 KB
17
+ CJS dist/index.js.map 95.01 KB
18
+ CJS ⚡️ Build success in 777ms
19
+ DTS ⚡️ Build success in 4218ms
20
+ DTS dist/index.d.ts 38.76 KB
21
+ DTS dist/index.d.mts 38.76 KB
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 };