@gymspace/sdk 1.0.1 → 1.0.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.
@@ -57,11 +57,63 @@ export interface Gym {
57
57
  capacity?: number;
58
58
  amenities?: GymAmenities;
59
59
  settings?: GymSettings;
60
+ schedule?: GymSchedule;
61
+ socialMedia?: GymSocialMedia;
60
62
  isActive: boolean;
61
63
  createdAt: string;
62
64
  updatedAt: string;
63
65
  }
64
66
 
67
+ export interface TimeSlot {
68
+ open: string;
69
+ close: string;
70
+ }
71
+
72
+ export interface DaySchedule {
73
+ isOpen: boolean;
74
+ slots?: TimeSlot[];
75
+ }
76
+
77
+ export interface GymSchedule {
78
+ monday?: DaySchedule;
79
+ tuesday?: DaySchedule;
80
+ wednesday?: DaySchedule;
81
+ thursday?: DaySchedule;
82
+ friday?: DaySchedule;
83
+ saturday?: DaySchedule;
84
+ sunday?: DaySchedule;
85
+ }
86
+
87
+ export interface GymSocialMedia {
88
+ facebook?: string;
89
+ instagram?: string;
90
+ whatsapp?: string;
91
+ twitter?: string;
92
+ linkedin?: string;
93
+ youtube?: string;
94
+ tiktok?: string;
95
+ }
96
+
97
+ export interface UpdateGymScheduleDto {
98
+ monday?: DaySchedule;
99
+ tuesday?: DaySchedule;
100
+ wednesday?: DaySchedule;
101
+ thursday?: DaySchedule;
102
+ friday?: DaySchedule;
103
+ saturday?: DaySchedule;
104
+ sunday?: DaySchedule;
105
+ }
106
+
107
+ export interface UpdateGymSocialMediaDto {
108
+ facebook?: string;
109
+ instagram?: string;
110
+ whatsapp?: string;
111
+ twitter?: string;
112
+ linkedin?: string;
113
+ youtube?: string;
114
+ tiktok?: string;
115
+ }
116
+
65
117
  export interface GymStats {
66
118
  totalClients: number;
67
119
  activeClients: number;
@@ -1,5 +1,5 @@
1
1
  import { BaseResource } from './base';
2
- import { Gym, CreateGymDto, UpdateGymDto, GymStats } from '../models/gyms';
2
+ import { Gym, CreateGymDto, UpdateGymDto, GymStats, UpdateGymScheduleDto, UpdateGymSocialMediaDto } from '../models/gyms';
3
3
  import { RequestOptions } from '../types';
4
4
 
5
5
  export class GymsResource extends BaseResource {
@@ -58,4 +58,20 @@ export class GymsResource extends BaseResource {
58
58
  ): Promise<Gym> {
59
59
  return this.client.put<Gym>(`${this.basePath}/current`, data, options);
60
60
  }
61
+
62
+ async updateGymSchedule(
63
+ id: string,
64
+ data: UpdateGymScheduleDto,
65
+ options?: RequestOptions
66
+ ): Promise<Gym> {
67
+ return this.client.put<Gym>(`${this.basePath}/${id}/schedule`, data, options);
68
+ }
69
+
70
+ async updateGymSocialMedia(
71
+ id: string,
72
+ data: UpdateGymSocialMediaDto,
73
+ options?: RequestOptions
74
+ ): Promise<Gym> {
75
+ return this.client.put<Gym>(`${this.basePath}/${id}/social-media`, data, options);
76
+ }
61
77
  }