@bondsports/types 0.0.52 → 0.0.53

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/build/index.d.ts CHANGED
@@ -128,49 +128,6 @@ export declare class FindEventAttendeeOptionsDto extends PaginationRangeQuery {
128
128
  isWaiverSigned?: string;
129
129
  statuses?: string;
130
130
  }
131
- export declare class AddressDto {
132
- city: string;
133
- state: string;
134
- country: string;
135
- geo: number[];
136
- }
137
- export declare class OpeningTimeDto {
138
- open: string;
139
- close: string;
140
- dayOfWeek: number;
141
- }
142
- export declare class CreateFacilityDto {
143
- name: string;
144
- sports: number[];
145
- description?: string;
146
- longDescription?: string;
147
- info?: string;
148
- address: AddressDto;
149
- timezone: string;
150
- amenities: number[];
151
- openingTimes: OpeningTimeDto[];
152
- resourcesIds?: number[];
153
- }
154
- export declare class UpdateFacilityDetailsDto {
155
- name?: string;
156
- description?: string;
157
- longDescription?: string;
158
- info?: string;
159
- address?: AddressDto;
160
- timezone?: string;
161
- }
162
- export declare class UpdateFacilityOpeningTimesDto {
163
- openingTimes: OpeningTimeDto[];
164
- }
165
- export declare class UpdateFacilitySportsDto {
166
- sports: number[];
167
- }
168
- export declare class UpdateFacilityAmenitiesDto {
169
- amenities: number[];
170
- }
171
- export declare class FindFacilitiesOptionsDto extends PaginationQuery {
172
- nameSearch?: string;
173
- }
174
131
  export declare class FindByMembershipIdDto extends ByOrganizationIdDto {
175
132
  membershipId: number;
176
133
  }
@@ -229,6 +186,49 @@ export declare class AddEditCustomerDto {
229
186
  emergencyContactName?: string;
230
187
  emergencyContactPhone?: string;
231
188
  }
189
+ export declare class AddressDto {
190
+ city: string;
191
+ state: string;
192
+ country: string;
193
+ geo: number[];
194
+ }
195
+ export declare class OpeningTimeDto {
196
+ open: string;
197
+ close: string;
198
+ dayOfWeek: number;
199
+ }
200
+ export declare class CreateFacilityDto {
201
+ name: string;
202
+ sports: number[];
203
+ description?: string;
204
+ longDescription?: string;
205
+ info?: string;
206
+ address: AddressDto;
207
+ timezone: string;
208
+ amenities: number[];
209
+ openingTimes: OpeningTimeDto[];
210
+ resourcesIds?: number[];
211
+ }
212
+ export declare class UpdateFacilityDetailsDto {
213
+ name?: string;
214
+ description?: string;
215
+ longDescription?: string;
216
+ info?: string;
217
+ address?: AddressDto;
218
+ timezone?: string;
219
+ }
220
+ export declare class UpdateFacilityOpeningTimesDto {
221
+ openingTimes: OpeningTimeDto[];
222
+ }
223
+ export declare class UpdateFacilitySportsDto {
224
+ sports: number[];
225
+ }
226
+ export declare class UpdateFacilityAmenitiesDto {
227
+ amenities: number[];
228
+ }
229
+ export declare class FindFacilitiesOptionsDto extends PaginationQuery {
230
+ nameSearch?: string;
231
+ }
232
232
  export declare class FindFamilyAccountsDto {
233
233
  userId: number;
234
234
  }
@@ -1288,30 +1288,6 @@ export declare class EventAttendee extends BondBaseEntity {
1288
1288
  event: Event;
1289
1289
  purchasedResource: PurchasedResource;
1290
1290
  }
1291
- export declare class Facility extends OrganizationConnectionBaseEntity {
1292
- name: string;
1293
- description?: string;
1294
- addressId: number;
1295
- address: Address;
1296
- amenities?: number[];
1297
- timezone: string;
1298
- creatorId: number;
1299
- creatorType: string;
1300
- userCreatorId: number;
1301
- mainMediaId: number;
1302
- mainMedia: Media;
1303
- publishedDate?: Date;
1304
- isPublished: boolean;
1305
- sports?: number[];
1306
- info?: string;
1307
- longDescription?: string;
1308
- deletedAt?: Date;
1309
- openingTimes: OpeningTime[];
1310
- resources: Resource[];
1311
- spaces: Resource[];
1312
- programSeasons: ProgramSeason[];
1313
- linkSEO: string;
1314
- }
1315
1291
  export declare class Event extends OrganizationConnectionBaseEntity {
1316
1292
  constructor();
1317
1293
  defineCalculatedDateTimeProps(): void;
@@ -1367,6 +1343,30 @@ export declare class Event extends OrganizationConnectionBaseEntity {
1367
1343
  slots: Slot[];
1368
1344
  purchasedResources: PurchasedResource[];
1369
1345
  }
1346
+ export declare class Facility extends OrganizationConnectionBaseEntity {
1347
+ name: string;
1348
+ description?: string;
1349
+ addressId: number;
1350
+ address: Address;
1351
+ amenities?: number[];
1352
+ timezone: string;
1353
+ creatorId: number;
1354
+ creatorType: string;
1355
+ userCreatorId: number;
1356
+ mainMediaId: number;
1357
+ mainMedia: Media;
1358
+ publishedDate?: Date;
1359
+ isPublished: boolean;
1360
+ sports?: number[];
1361
+ info?: string;
1362
+ longDescription?: string;
1363
+ deletedAt?: Date;
1364
+ openingTimes: OpeningTime[];
1365
+ resources: Resource[];
1366
+ spaces: Resource[];
1367
+ programSeasons: ProgramSeason[];
1368
+ linkSEO: string;
1369
+ }
1370
1370
  export declare class FacilityToResource extends BondBaseEntity {
1371
1371
  facilityId: number;
1372
1372
  resourceId: number;
@@ -2068,34 +2068,6 @@ export declare class RegistrationConstraint extends OrganizationConnectionBaseEn
2068
2068
  closeTime?: string;
2069
2069
  deletedAt?: Date;
2070
2070
  }
2071
- export declare class Resource extends OrganizationConnectionBaseEntity {
2072
- name: string;
2073
- resourceType: ResourceTypeEnum;
2074
- resourceSubType: ResourceSubTypeEnum;
2075
- description?: string;
2076
- longDescription?: string;
2077
- surface?: SurfacesEnum;
2078
- properties?: SpacePropertiesEnum[];
2079
- mainMediaId?: number;
2080
- mainMedia: Media;
2081
- sports: SportsEnum[];
2082
- width?: number;
2083
- length?: number;
2084
- amenities?: AmenitiesEnum[];
2085
- parentSpaceId?: number;
2086
- ordinal?: number;
2087
- isAddOn: boolean;
2088
- ages?: ResourceAgesEnum;
2089
- deletedAt?: Date;
2090
- activityTimes: ActivityTimes[];
2091
- facilities: Facility[];
2092
- slots?: Slot[];
2093
- addons?: Addon[];
2094
- facilityId: number;
2095
- facility: Facility;
2096
- purchasedResources: PurchasedResource[];
2097
- linkSEO: string;
2098
- }
2099
2071
  export declare class Reservations extends OrganizationConnectionBaseEntity {
2100
2072
  name?: string;
2101
2073
  description?: string;
@@ -2128,6 +2100,34 @@ export declare class Reservations extends OrganizationConnectionBaseEntity {
2128
2100
  publicNotes?: string;
2129
2101
  slots?: Slot[];
2130
2102
  }
2103
+ export declare class Resource extends OrganizationConnectionBaseEntity {
2104
+ name: string;
2105
+ resourceType: ResourceTypeEnum;
2106
+ resourceSubType: ResourceSubTypeEnum;
2107
+ description?: string;
2108
+ longDescription?: string;
2109
+ surface?: SurfacesEnum;
2110
+ properties?: SpacePropertiesEnum[];
2111
+ mainMediaId?: number;
2112
+ mainMedia: Media;
2113
+ sports: SportsEnum[];
2114
+ width?: number;
2115
+ length?: number;
2116
+ amenities?: AmenitiesEnum[];
2117
+ parentSpaceId?: number;
2118
+ ordinal?: number;
2119
+ isAddOn: boolean;
2120
+ ages?: ResourceAgesEnum;
2121
+ deletedAt?: Date;
2122
+ activityTimes: ActivityTimes[];
2123
+ facilities: Facility[];
2124
+ slots?: Slot[];
2125
+ addons?: Addon[];
2126
+ facilityId: number;
2127
+ facility: Facility;
2128
+ purchasedResources: PurchasedResource[];
2129
+ linkSEO: string;
2130
+ }
2131
2131
  export declare class ResourceGroup extends OrganizationConnectionBaseEntity {
2132
2132
  name: string;
2133
2133
  facilityId: number;
@@ -3251,15 +3251,6 @@ export declare class AddFamilyDto {
3251
3251
  parents: AddImportedCustomerDto[];
3252
3252
  children: AddImportedCustomerDto[];
3253
3253
  }
3254
- export declare class ProductIdsDto {
3255
- productIds?: number[];
3256
- }
3257
- export declare class ProductImportDto {
3258
- product: Product;
3259
- prices: Price[];
3260
- resourceIds: number[];
3261
- oldId: number;
3262
- }
3263
3254
  export declare enum ImportPaymentTypeEnum {
3264
3255
  CREDIT_CARD = "card",
3265
3256
  ACH = "ach",
@@ -3295,6 +3286,15 @@ export declare class ImportedPaymentDto {
3295
3286
  date: string;
3296
3287
  time: string;
3297
3288
  }
3289
+ export declare class ProductIdsDto {
3290
+ productIds?: number[];
3291
+ }
3292
+ export declare class ProductImportDto {
3293
+ product: Product;
3294
+ prices: Price[];
3295
+ resourceIds: number[];
3296
+ oldId: number;
3297
+ }
3298
3298
  export declare class PunchPassDto {
3299
3299
  CustomerID: string;
3300
3300
  QuantityLeft: number;
@@ -3621,6 +3621,32 @@ export declare class VoidLineItemDto {
3621
3621
  isEdit?: boolean;
3622
3622
  amount?: number;
3623
3623
  }
3624
+ export declare class LineItemDto {
3625
+ id?: number;
3626
+ orderId?: number;
3627
+ type: LineItemsStatusEnum;
3628
+ organizationId: number;
3629
+ userId?: number;
3630
+ productId: number;
3631
+ product?: Product;
3632
+ productType: ProductTypesEnum;
3633
+ ordinal?: number;
3634
+ price: number;
3635
+ originalPrice?: number;
3636
+ paidAmount?: number;
3637
+ currency: CurrencyEnum;
3638
+ paymentStatus?: PaymentStatusEnum;
3639
+ isRefunded?: boolean;
3640
+ isTaxInclusive?: boolean;
3641
+ taxPrecent?: number;
3642
+ unitPrice?: number;
3643
+ quantity: number;
3644
+ resources?: PurchasedResourceDto[];
3645
+ relationType?: 'reservation-addon' | 'slots' | 'slot_addons';
3646
+ unitPriceWithTax?: number;
3647
+ unitTaxPrice?: number;
3648
+ parentOrdinal?: number;
3649
+ }
3624
3650
  export declare class MaintenanceDto {
3625
3651
  id?: number;
3626
3652
  title: string;
@@ -3677,32 +3703,6 @@ export declare class PurchasedResourceDto {
3677
3703
  endDate?: string;
3678
3704
  endTime?: string;
3679
3705
  }
3680
- export declare class LineItemDto {
3681
- id?: number;
3682
- orderId?: number;
3683
- type: LineItemsStatusEnum;
3684
- organizationId: number;
3685
- userId?: number;
3686
- productId: number;
3687
- product?: Product;
3688
- productType: ProductTypesEnum;
3689
- ordinal?: number;
3690
- price: number;
3691
- originalPrice?: number;
3692
- paidAmount?: number;
3693
- currency: CurrencyEnum;
3694
- paymentStatus?: PaymentStatusEnum;
3695
- isRefunded?: boolean;
3696
- isTaxInclusive?: boolean;
3697
- taxPrecent?: number;
3698
- unitPrice?: number;
3699
- quantity: number;
3700
- resources?: PurchasedResourceDto[];
3701
- relationType?: 'reservation-addon' | 'slots' | 'slot_addons';
3702
- unitPriceWithTax?: number;
3703
- unitTaxPrice?: number;
3704
- parentOrdinal?: number;
3705
- }
3706
3706
  export declare class ReservationDto {
3707
3707
  id?: number;
3708
3708
  organizationId?: number;
@@ -4157,6 +4157,9 @@ export declare class UserRole extends OrganizationConnectionBaseEntity {
4157
4157
  role: Role;
4158
4158
  user: User;
4159
4159
  }
4160
+ export declare class CloseShiftDto {
4161
+ closingCashAmount: number;
4162
+ }
4160
4163
  export declare class FindShiftsByIdsDto {
4161
4164
  shiftIds: number[];
4162
4165
  }
@@ -4191,9 +4194,6 @@ export declare class OpenShiftDto {
4191
4194
  openingCashAmount: number;
4192
4195
  stationId: number;
4193
4196
  }
4194
- export declare class CloseShiftDto {
4195
- closingCashAmount: number;
4196
- }
4197
4197
  export declare class Shift extends OrganizationConnectionBaseEntity {
4198
4198
  stationId: number;
4199
4199
  station?: Station;