@gymspace/sdk 1.1.1 → 1.1.2

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/dist/index.d.mts CHANGED
@@ -36,6 +36,7 @@ declare class ApiClient {
36
36
  private axiosInstance;
37
37
  private config;
38
38
  private refreshToken;
39
+ getAccessToken(): string | null;
39
40
  constructor(config: GymSpaceConfig);
40
41
  private setupInterceptors;
41
42
  private handleError;
@@ -563,6 +564,12 @@ interface Client {
563
564
  evaluations: number;
564
565
  checkIns: number;
565
566
  };
567
+ hasCheckedInToday?: boolean;
568
+ lastCheckIn?: {
569
+ id: string;
570
+ timestamp: string;
571
+ createdAt: string;
572
+ };
566
573
  }
567
574
  interface ClientStat {
568
575
  key: string;
@@ -606,6 +613,8 @@ interface SearchClientsParams extends PaginationQueryDto {
606
613
  clientNumber?: string;
607
614
  documentId?: string;
608
615
  includeContractStatus?: boolean;
616
+ notCheckedInToday?: boolean;
617
+ checkedInToday?: boolean;
609
618
  }
610
619
  interface ClientSearchForCheckInResponse {
611
620
  data: Client[];
@@ -2003,7 +2012,7 @@ declare class PaymentMethodsResource extends BaseResource {
2003
2012
  }
2004
2013
 
2005
2014
  declare class GymSpaceSdk {
2006
- private client;
2015
+ client: ApiClient;
2007
2016
  auth: AuthResource;
2008
2017
  organizations: OrganizationsResource;
2009
2018
  gyms: GymsResource;
package/dist/index.d.ts CHANGED
@@ -36,6 +36,7 @@ declare class ApiClient {
36
36
  private axiosInstance;
37
37
  private config;
38
38
  private refreshToken;
39
+ getAccessToken(): string | null;
39
40
  constructor(config: GymSpaceConfig);
40
41
  private setupInterceptors;
41
42
  private handleError;
@@ -563,6 +564,12 @@ interface Client {
563
564
  evaluations: number;
564
565
  checkIns: number;
565
566
  };
567
+ hasCheckedInToday?: boolean;
568
+ lastCheckIn?: {
569
+ id: string;
570
+ timestamp: string;
571
+ createdAt: string;
572
+ };
566
573
  }
567
574
  interface ClientStat {
568
575
  key: string;
@@ -606,6 +613,8 @@ interface SearchClientsParams extends PaginationQueryDto {
606
613
  clientNumber?: string;
607
614
  documentId?: string;
608
615
  includeContractStatus?: boolean;
616
+ notCheckedInToday?: boolean;
617
+ checkedInToday?: boolean;
609
618
  }
610
619
  interface ClientSearchForCheckInResponse {
611
620
  data: Client[];
@@ -2003,7 +2012,7 @@ declare class PaymentMethodsResource extends BaseResource {
2003
2012
  }
2004
2013
 
2005
2014
  declare class GymSpaceSdk {
2006
- private client;
2015
+ client: ApiClient;
2007
2016
  auth: AuthResource;
2008
2017
  organizations: OrganizationsResource;
2009
2018
  gyms: GymsResource;
package/dist/index.js CHANGED
@@ -65,6 +65,9 @@ var ApiClient = class {
65
65
  });
66
66
  this.setupInterceptors();
67
67
  }
68
+ getAccessToken() {
69
+ return this.config.apiKey || null;
70
+ }
68
71
  setupInterceptors() {
69
72
  this.axiosInstance.interceptors.request.use(
70
73
  (config) => {