@bondsports/types 2.2.282-team-a → 2.2.282
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/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/employees/dto/employee.dto.d.ts +5 -3
- package/dist/types/employees/dto/employee.dto.js +4 -0
- package/dist/types/employees/dto/employee.dto.js.map +1 -1
- package/dist/types/payment/dto/payment-plan.dto.d.ts +1 -1
- package/dist/types/payment/types/enums/payment.enums.d.ts +2 -1
- package/dist/types/payment/types/enums/payment.enums.js +1 -0
- package/dist/types/payment/types/enums/payment.enums.js.map +1 -1
- package/dist/types/programs-seasons/dto/program-seasons.dto.d.ts +2 -0
- package/dist/types/programs-seasons/dto/program-seasons.dto.js.map +1 -1
- package/dist/types/reservations/dto/reservation.dto.d.ts +3 -8
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
- package/dist/types/reservations/dto/slot.dto.d.ts +14 -45
- package/dist/types/reservations/dto/slot.dto.js +5 -33
- package/dist/types/reservations/dto/slot.dto.js.map +1 -1
- package/dist/types/reservations/types/consts/reservation.consts.d.ts +0 -1
- package/dist/types/reservations/types/consts/reservation.consts.js +1 -8
- package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -1
- package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +1 -20
- package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +0 -4
- package/dist/types/roles/dto/role.dto.d.ts +5 -7
- package/dist/types/roles/dto/role.dto.js +6 -5
- package/dist/types/roles/dto/role.dto.js.map +1 -1
- package/dist/types/roles/entities/Role.d.ts +1 -0
- package/dist/types/roles/entities/Role.js.map +1 -1
- package/package.json +1 -1
@@ -1,11 +1,11 @@
|
|
1
1
|
import { MediaDto } from '../../media/dto/media.dto';
|
2
2
|
import { CustomerTypeEnum, GenderEnum, OrderByEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
3
|
-
import { Role } from '../../roles/entities/Role';
|
4
3
|
import { EmployeeStatus, OrganizationUserOrderBy, UserOrderBy } from '../types/enums';
|
5
4
|
import { PaginationQuery } from '../../dto/general.dto';
|
6
5
|
import { OrganizationUsers } from '../../organization/entities/OrganizationUsers';
|
7
6
|
import { Address } from '../../address/entities/Address';
|
8
7
|
import { User } from '../../user/entities/User';
|
8
|
+
import { RoleDto, SimpleRoleDto } from '../../roles/dto/role.dto';
|
9
9
|
export declare class ByEmployeeIdDto {
|
10
10
|
employeeId: number;
|
11
11
|
}
|
@@ -29,7 +29,7 @@ export declare class EmployeeDto {
|
|
29
29
|
deletedAt?: Date;
|
30
30
|
}
|
31
31
|
export declare class EmployeeWithRoles extends EmployeeDto {
|
32
|
-
roles?:
|
32
|
+
roles?: SimpleRoleDto[];
|
33
33
|
}
|
34
34
|
export declare class EmployeeWithRoleIds extends EmployeeWithRoles {
|
35
35
|
rolesIds?: number[];
|
@@ -38,7 +38,7 @@ export declare class BuildEmployee {
|
|
38
38
|
user: User;
|
39
39
|
customerId: number;
|
40
40
|
organizationUser: OrganizationUsers;
|
41
|
-
roles:
|
41
|
+
roles: RoleDto[];
|
42
42
|
}
|
43
43
|
export declare class CreateEmployeeDto {
|
44
44
|
firstName: string;
|
@@ -107,6 +107,8 @@ export declare class UpdateEmployeeDto {
|
|
107
107
|
export declare class GetEmployeesByFilterOptions extends PaginationQuery {
|
108
108
|
statuses?: EmployeeStatus[];
|
109
109
|
rolesIds?: number[];
|
110
|
+
excludedRolesIds?: number[];
|
111
|
+
includeRoles?: boolean;
|
110
112
|
search?: string;
|
111
113
|
orderBy?: UserOrderBy | OrganizationUserOrderBy;
|
112
114
|
order?: OrderByEnum;
|
@@ -28,6 +28,10 @@ class UpdateEmployeeDto {
|
|
28
28
|
}
|
29
29
|
exports.UpdateEmployeeDto = UpdateEmployeeDto;
|
30
30
|
class GetEmployeesByFilterOptions extends general_dto_1.PaginationQuery {
|
31
|
+
constructor() {
|
32
|
+
super(...arguments);
|
33
|
+
this.includeRoles = true;
|
34
|
+
}
|
31
35
|
}
|
32
36
|
exports.GetEmployeesByFilterOptions = GetEmployeesByFilterOptions;
|
33
37
|
//# sourceMappingURL=employee.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"employee.dto.js","sourceRoot":"","sources":["../../../../src/types/employees/dto/employee.dto.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"employee.dto.js","sourceRoot":"","sources":["../../../../src/types/employees/dto/employee.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAwD;AAMxD,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,WAAW;CAkCvB;AAlCD,kCAkCC;AAED,MAAa,iBAAkB,SAAQ,WAAW;CAEjD;AAFD,8CAEC;AAED,MAAa,mBAAoB,SAAQ,iBAAiB;CAEzD;AAFD,kDAEC;AAED,MAAa,aAAa;CAQzB;AARD,sCAQC;AAED,MAAa,iBAAiB;CAoD7B;AApDD,8CAoDC;AAED,MAAa,qBAAqB;CAQjC;AARD,sDAQC;AAED,uCAAuC;AACvC,MAAa,iBAAiB;CAwD7B;AAxDD,8CAwDC;AAED,MAAa,2BAA4B,SAAQ,6BAAe;IAAhE;;QAOC,iBAAY,GAAa,IAAI,CAAC;IAS/B,CAAC;CAAA;AAhBD,kEAgBC"}
|
@@ -42,7 +42,7 @@ export declare class ScheduledPaymentDto {
|
|
42
42
|
originalPlannedDate?: Date;
|
43
43
|
}
|
44
44
|
export declare class FutureInstallmentsIdsDto {
|
45
|
-
paymentsIds
|
45
|
+
paymentsIds?: number[];
|
46
46
|
}
|
47
47
|
export declare class CancelFutureInstallmentsDto extends FutureInstallmentsIdsDto {
|
48
48
|
invoiceId: number;
|
@@ -20,6 +20,7 @@ var PaymentFilterByEnum;
|
|
20
20
|
PaymentFilterByEnum["STATUS"] = "status";
|
21
21
|
PaymentFilterByEnum["ID"] = "id";
|
22
22
|
PaymentFilterByEnum["CREATED_AT"] = "createdAt";
|
23
|
+
PaymentFilterByEnum["PRICE"] = "price";
|
23
24
|
})(PaymentFilterByEnum = exports.PaymentFilterByEnum || (exports.PaymentFilterByEnum = {}));
|
24
25
|
var ReasonTypeEnum;
|
25
26
|
(function (ReasonTypeEnum) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"payment.enums.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/enums/payment.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC5B,0CAAqB,CAAA;IACrB,gDAA2B,CAAA;IAC3B,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;IACrB,kCAAa,CAAA;IACb,0CAAqB,CAAA;IACrB,wDAAmC,CAAA;IACnC,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,4DAAuC,CAAA;AACxC,CAAC,EAXW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAW5B;AAED,IAAY,
|
1
|
+
{"version":3,"file":"payment.enums.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/enums/payment.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC5B,0CAAqB,CAAA;IACrB,gDAA2B,CAAA;IAC3B,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;IACrB,kCAAa,CAAA;IACb,0CAAqB,CAAA;IACrB,wDAAmC,CAAA;IACnC,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,4DAAuC,CAAA;AACxC,CAAC,EAXW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAW5B;AAED,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC9B,uDAAgC,CAAA;IAChC,wCAAiB,CAAA;IACjB,gCAAS,CAAA;IACT,+CAAwB,CAAA;IACxB,sCAAe,CAAA;AAChB,CAAC,EANW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAM9B;AAED,IAAY,cAKX;AALD,WAAY,cAAc;IACzB,mCAAiB,CAAA;IACjB,uCAAqB,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AAA;IACjB,kDAAuB,CAAA;IACvB,4CAAiB,CAAA;IACjB,gDAAqB,CAAA;IACrB,8CAAmB,CAAA;IACnB,kEAAuC,CAAA;AACxC,CAAC,EAPW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAOlC;AAEY,QAAA,wCAAwC,GAAG;IACvD,uBAAuB,CAAC,MAAM;IAC9B,uBAAuB,CAAC,OAAO;IAC/B,uBAAuB,CAAC,SAAS;CACjC,CAAC;AAEW,QAAA,6BAA6B,GAAG;IAC5C,uBAAuB,CAAC,MAAM;IAC9B,uBAAuB,CAAC,MAAM;IAC9B,uBAAuB,CAAC,iBAAiB;CACzC,CAAC;AAEF;;;;GAIG;AACU,QAAA,yBAAyB,GAAG,CAAC,uBAAuB,CAAC,MAAM,EAAE,uBAAuB,CAAC,iBAAiB,CAAC,CAAC;AAErH;;GAEG;AACH;;;GAGG;AACU,QAAA,yBAAyB,GAAG,CAAC,uBAAuB,CAAC,MAAM,EAAE,uBAAuB,CAAC,iBAAiB,CAAC,CAAC;AAErH,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC7B,2CAAqB,CAAA;IACrB,8CAAwB,CAAA;AACzB,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B"}
|
@@ -154,6 +154,7 @@ export declare class SimpleSessionDto extends IdAndNameDto {
|
|
154
154
|
startDate: Date;
|
155
155
|
endDate: Date;
|
156
156
|
programType?: ProgramTypesEnum;
|
157
|
+
productCount?: number;
|
157
158
|
}
|
158
159
|
export declare class SpaceResourcePairDto {
|
159
160
|
resourceType: ResourceNameTypeEnum;
|
@@ -250,4 +251,5 @@ export declare class RelatedSessionsDto {
|
|
250
251
|
export declare class GetRelatedProgramSessionsDto {
|
251
252
|
related?: RelatedSessionsDto;
|
252
253
|
statuses?: PublishingStatusEnum[];
|
254
|
+
includeProductsCount?: boolean;
|
253
255
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"program-seasons.dto.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/dto/program-seasons.dto.ts"],"names":[],"mappings":";;;AAEA,uDAAyF;AAEzF,yFAAoF;AACpF,8EAAyG;AACzG,gEAAuF;AAiBvF,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AAED,MAAa,WAAY,SAAQ,0BAAY;CAE5C;AAFD,kCAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,6BAA6B;CAEzC;AAFD,sEAEC;AAED,MAAa,wBAAyB,SAAQ,4CAAyB;CAEtE;AAFD,4DAEC;AAED,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AACD,MAAa,wBAAyB,SAAQ,6BAAe;CAU5D;AAVD,4DAUC;AAED,MAAa,qCAAsC,SAAQ,sCAAmB;CAE7E;AAFD,sFAEC;AAED,MAAa,uBAAuB;CAGnC;AAHD,0DAGC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,qBAAsB,SAAQ,wBAAwB;CAElE;AAFD,sDAEC;AAED,MAAa,6BAA8B,SAAQ,6BAAe;CAMjE;AAND,sEAMC;AAED,MAAa,eAAe;CAM3B;AAND,0CAMC;AAED,MAAa,oBAAoB;CA8EhC;AA9ED,oDA8EC;AAED,MAAa,wBAAwB;CAMpC;AAND,4DAMC;AAED,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,sBAAuB,SAAQ,oBAAoB;CAE/D;AAFD,wDAEC;AAED,MAAa,sBAAuB,SAAQ,oBAAoB;CAE/D;AAFD,wDAEC;AAED,MAAa,4BAA4B;CAGxC;AAHD,oEAGC;AAED,MAAa,6BAA6B;CAwDzC;AAxDD,sEAwDC;AAED,MAAa,yBAA0B,SAAQ,0BAAY;CAAG;AAA9D,8DAA8D;AAE9D,MAAa,gBAAiB,SAAQ,0BAAY;
|
1
|
+
{"version":3,"file":"program-seasons.dto.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/dto/program-seasons.dto.ts"],"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0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,eAAe;CAK3B;AALD,0CAKC;AAED,MAAa,gCAAgC;CAE5C;AAFD,4EAEC;AAED,MAAa,oBAAoB;CAShC;AATD,oDASC;AAED,MAAa,uBAAwB,SAAQ,oBAAoB;CAUhE;AAVD,0DAUC;AAED,MAAa,kBAAkB;CAY9B;AAZD,gDAYC;AAED,MAAa,4BAA4B;CAExC;AAFD,oEAEC;AAED,MAAa,6BAA8B,SAAQ,qCAAuB;CAAG;AAA7E,sEAA6E;AAE7E,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAED;;GAEG;AACH,MAAa,uBAAwB,SAAQ,2CAAmB;CAY/D;AAZD,0DAYC;AAED;;GAEG;AACH,MAAa,yBAA0B,SAAQ,2CAAmB;CAajE;AAbD,8DAaC;AAED,MAAa,iCAAkC,SAAQ,6BAAe;CAMrE;AAND,8EAMC;AAED,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,4BAA4B;CAMxC;AAND,oEAMC"}
|
@@ -20,11 +20,11 @@ import { AddonParentTypeEnum, FinancialStepEnum, NotifyMethodEnum, OrderByEnum,
|
|
20
20
|
import { Reservation } from '../entities/reservation.entity';
|
21
21
|
import { PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
|
22
22
|
import { ISegmentsAddons } from '../types/interfaces/addon.interfaces';
|
23
|
-
import { IBaseReservation, IBaseReservationItemLineItem, IDraftReservation, IDuplicateDetails,
|
23
|
+
import { IBaseReservation, IBaseReservationItemLineItem, IDraftReservation, IDuplicateDetails, IEditItemsRefundMetadata, IEditSlotsFinancialDetails, IExtendDraftSlotsOptions, IGetDraftReservationAddonsQuery, IGetDraftReservationOptions, IGetDraftReservationSlotsFilter, IGetDraftReservationSlotsOptions, IProductPrice, IRemoveSlotsFinancialData, ISaveReservationOptions } from '../types/interfaces/reservation.interfaces';
|
24
24
|
import { AddonDto, CreateDraftAddonDto, DraftAddonDto } from './addon.dto';
|
25
25
|
import { CreateDraftSegmentDto, DraftSegmentDto, SegmentDto } from './segment.dto';
|
26
26
|
import { SeriesDto } from './series.dto';
|
27
|
-
import {
|
27
|
+
import { SlotDto, TimeSlotConflictsDto, UpdateDraftSlotDto, UpdateSlotsColorsDto } from './slot.dto';
|
28
28
|
export declare class ProductPricesDto implements IProductPrice {
|
29
29
|
productId: number;
|
30
30
|
product?: Product;
|
@@ -112,7 +112,6 @@ export declare class DraftReservationDto extends SimpleDraftReservationDto imple
|
|
112
112
|
facilities: FacilityDto[];
|
113
113
|
segmentsAddons?: SegmentsAddonsDto[];
|
114
114
|
duplicateDetails?: DuplicatedDetailsDto;
|
115
|
-
combinedSlots?: DraftSlotsDto[];
|
116
115
|
}
|
117
116
|
export declare class ReservationInvoiceDto {
|
118
117
|
reservation: ReservationDto;
|
@@ -357,7 +356,6 @@ export declare class GenerateReservationDto {
|
|
357
356
|
}
|
358
357
|
export declare class UpdateDraftSlotsDto {
|
359
358
|
slots: UpdateDraftSlotDto[];
|
360
|
-
slotsIds?: string[];
|
361
359
|
overrideProducts?: boolean;
|
362
360
|
}
|
363
361
|
export declare class SegmentsAddonsGroupDto extends BaseSegmentsAddonsGroupDto {
|
@@ -385,12 +383,9 @@ export declare class PaginatedSlotsSharedDto {
|
|
385
383
|
export declare class DuplicateReservationDto {
|
386
384
|
isEdit?: boolean;
|
387
385
|
}
|
388
|
-
export declare class DuplicateReservationItemsDto extends DuplicateReservationDto
|
386
|
+
export declare class DuplicateReservationItemsDto extends DuplicateReservationDto {
|
389
387
|
slotsIds?: number[];
|
390
|
-
excludeIds?: number[];
|
391
388
|
reservationAddonsIds?: number[];
|
392
|
-
combineSlots?: boolean;
|
393
|
-
includedFields?: string[];
|
394
389
|
}
|
395
390
|
export declare class ReservationItemLineDto {
|
396
391
|
id: number;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;;AAKA,uDAAwD;AAExD,+DAA+G;AAE/G,8EAA8E;AAO9E,kEAAwF;
|
1
|
+
{"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;;AAKA,uDAAwD;AAExD,+DAA+G;AAE/G,8EAA8E;AAO9E,kEAAwF;AAkDxF,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAC3B,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAE7B,MAAa,gBAAgB;CAc5B;AAdD,4CAcC;AAED,MAAM,kBAAkB;CAgCvB;AAED,MAAa,oBAAqB,SAAQ,kBAAkB;CAM3D;AAND,oDAMC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,MAAa,cAAe,SAAQ,oBAAoB;CAWvD;AAXD,wCAWC;AAED,MAAa,kCAAkC;CAc9C;AAdD,gFAcC;AAED,MAAM,oBAAqB,SAAQ,kCAAkC;CAEpE;AAED,MAAM,0BAA0B;CAM/B;AAED,MAAa,uBAAwB,SAAQ,0BAA0B;CAEtE;AAFD,0DAEC;AAED,MAAa,iBAAkB,SAAQ,uBAAuB;CAE7D;AAFD,8CAEC;AAED,MAAa,yBAA0B,SAAQ,kBAAkB;CAEhE;AAFD,8DAEC;AAED,MAAa,yBAA0B,SAAQ,yBAAyB;CAIvE;AAJD,8DAIC;AAED,MAAa,mBAAoB,SAAQ,yBAAyB;CAoBjE;AApBD,kDAoBC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAED,MAAa,wBAAwB;CAQpC;AARD,4DAQC;AAED,MAAa,kBAAmB,SAAQ,wBAAwB;CAI/D;AAJD,gDAIC;AAED,MAAa,4BAA4B;CAcxC;AAdD,oEAcC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8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AAa,sBAAsB;CAkBlC;AAlBD,wDAkBC;AAED,MAAa,0BAA0B;CAItC;AAJD,gEAIC;AAED,MAAa,4BAA4B;CAkBxC;AAlBD,oEAkBC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,6BAA6B;CAIzC;AAJD,sEAIC"}
|
@@ -1,7 +1,5 @@
|
|
1
1
|
import { SimpleCustomerDto } from '../../customers/dto/customer-response.dto';
|
2
2
|
import { FacilityDto } from '../../dto/facilities.dto';
|
3
|
-
import { SimpleProductUserDto } from '../../dto/product-user';
|
4
|
-
import { SimpleInvoiceDto } from '../../invoice/dto/invoice.dto';
|
5
3
|
import { ProductDto } from '../../product-pricing/dto/product.dto';
|
6
4
|
import { Product } from '../../product-pricing/entities/Product';
|
7
5
|
import { InstructorResourceDto } from '../../resources/dto/instructor.dto';
|
@@ -11,8 +9,10 @@ import { Slot } from '../entities/slot.entity';
|
|
11
9
|
import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
|
12
10
|
import { IOverridePriceMeta } from '../types/interfaces/reservation.interfaces';
|
13
11
|
import { IBaseSlot, IDraftSlot, ISlotProductMetadata, ISlotProductPricesMetadata, ITimeSlot } from '../types/interfaces/slot.interfaces';
|
14
|
-
import { AddonDto,
|
12
|
+
import { AddonDto, DraftAddonDto } from './addon.dto';
|
15
13
|
import { MaintenanceDto } from './maintenance.dto';
|
14
|
+
import { SimpleProductUserDto } from '../../dto/product-user';
|
15
|
+
import { SimpleInvoiceDto } from '../../invoice/dto/invoice.dto';
|
16
16
|
export declare class SlotProductMetadataDto implements ISlotProductMetadata {
|
17
17
|
productId: number;
|
18
18
|
price: number;
|
@@ -26,29 +26,23 @@ export declare class SlotProductPricesMetadataDto implements ISlotProductPricesM
|
|
26
26
|
quantity: number;
|
27
27
|
totalPrice: number;
|
28
28
|
}
|
29
|
-
export declare class
|
30
|
-
organizationId?: number;
|
29
|
+
export declare class DateTimeAndResourcesDto {
|
31
30
|
startDate: string;
|
32
31
|
startTime?: string;
|
33
32
|
endDate?: string;
|
34
33
|
endTime?: string;
|
35
34
|
spaceId: number;
|
36
35
|
instructorsIds?: number[];
|
37
|
-
title?: string;
|
38
|
-
publicNotes?: string;
|
39
|
-
privateNotes?: string;
|
40
|
-
sportIds?: SportsEnum[];
|
41
|
-
privacySetting?: PrivacySettingsEnum;
|
42
|
-
colorCodeId?: number;
|
43
|
-
participantsNumber?: number;
|
44
|
-
maintenance?: MaintenanceDto[];
|
45
36
|
}
|
46
|
-
export declare class BaseSlotDto extends
|
37
|
+
export declare class BaseSlotDto extends DateTimeAndResourcesDto implements IBaseSlot {
|
38
|
+
organizationId?: number;
|
47
39
|
title: string;
|
48
40
|
creatorId?: number;
|
49
41
|
creatorType?: ResourceNameTypeEnum;
|
50
42
|
userCreatorId?: number;
|
51
43
|
timezone?: string;
|
44
|
+
publicNotes?: string;
|
45
|
+
privateNotes?: string;
|
52
46
|
slotType: SlotTypeEnum;
|
53
47
|
sportIds: SportsEnum[];
|
54
48
|
maintenanceDurationdurationType?: DurationUnitTypesEnum;
|
@@ -57,9 +51,13 @@ export declare class BaseSlotDto extends BaseSlotFieldsDto implements IBaseSlot
|
|
57
51
|
displayName?: string;
|
58
52
|
internalName?: string;
|
59
53
|
totalPrice?: number;
|
54
|
+
privacySetting?: PrivacySettingsEnum;
|
60
55
|
slotDurationType: DurationTypeEnum;
|
56
|
+
colorCodeId?: number;
|
57
|
+
participantsNumber?: number;
|
61
58
|
occurrence?: number;
|
62
59
|
productMetadata?: SlotProductMetadataDto;
|
60
|
+
maintenance?: MaintenanceDto[];
|
63
61
|
}
|
64
62
|
export declare class SlotDto extends BaseSlotDto {
|
65
63
|
id?: number;
|
@@ -93,35 +91,9 @@ export declare class BaseDraftSlotDto extends BaseSlotDto {
|
|
93
91
|
participantsIds?: number[];
|
94
92
|
slotId?: number;
|
95
93
|
}
|
96
|
-
export declare class UpdateDraftSlotDto {
|
97
|
-
id: string;
|
98
|
-
title?: string;
|
99
|
-
privacySetting?: PrivacySettingsEnum;
|
100
|
-
colorCodeId?: number;
|
101
|
-
spaceId?: number;
|
102
|
-
sportIds?: SportsEnum[];
|
103
|
-
startDate?: string;
|
104
|
-
startTime?: string;
|
105
|
-
endDate?: string;
|
106
|
-
endTime?: string;
|
107
|
-
maintenance?: MaintenanceDto[];
|
108
|
-
privateNotes?: string;
|
109
|
-
publicNotes?: string;
|
110
|
-
productsIds?: number[];
|
111
|
-
instructorsIds?: number[];
|
112
|
-
participantsIds?: number[];
|
113
|
-
participantsNumber?: number;
|
114
|
-
addons?: CreateDraftAddonDto[];
|
115
|
-
}
|
116
|
-
export declare class DraftSlotsDto extends BaseSlotFieldsDto {
|
117
|
-
constructor(editSlots?: Partial<DraftSlotsDto>);
|
118
|
-
ids: string[];
|
119
|
-
facilitiesIds: number[];
|
120
|
-
reservationId: string;
|
121
|
-
participantsIds?: number[];
|
94
|
+
export declare class UpdateDraftSlotDto extends BaseDraftSlotDto {
|
122
95
|
productsIds?: number[];
|
123
|
-
|
124
|
-
segmentsIds: string[];
|
96
|
+
productId?: number;
|
125
97
|
}
|
126
98
|
export declare class DraftSlotDto extends BaseDraftSlotDto implements IDraftSlot {
|
127
99
|
maintenanceSlots?: DraftSlotDto[];
|
@@ -171,16 +143,13 @@ export declare class DraftTimeSlotDto implements ITimeSlot {
|
|
171
143
|
parentSlotId?: string;
|
172
144
|
}
|
173
145
|
export declare class ProblematicSlotDto {
|
174
|
-
id: string;
|
175
146
|
startDate: string;
|
176
147
|
endDate: string;
|
177
148
|
startTime: string;
|
178
149
|
endTime: string;
|
179
150
|
spaceId: number;
|
180
|
-
title: string;
|
181
151
|
spaceName?: string;
|
182
152
|
instructorsIds?: number[];
|
183
|
-
slotId?: number;
|
184
153
|
}
|
185
154
|
export declare class CardSlotDto extends SlotDto {
|
186
155
|
resource: SpaceResourceDto;
|
@@ -1,16 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CardSlotDto = exports.ProblematicSlotDto = exports.DraftTimeSlotDto = exports.TimeSlotConflictsDto = exports.UpdateSlotsColorsDto = exports.SlotsIdsDto = exports.TimeSlotsDto = exports.TimeSlotDto = exports.DraftSlotDto = exports.
|
3
|
+
exports.CardSlotDto = exports.ProblematicSlotDto = exports.DraftTimeSlotDto = exports.TimeSlotConflictsDto = exports.UpdateSlotsColorsDto = exports.SlotsIdsDto = exports.TimeSlotsDto = exports.TimeSlotDto = exports.DraftSlotDto = exports.UpdateDraftSlotDto = exports.BaseDraftSlotDto = exports.SlotDto = exports.BaseSlotDto = exports.DateTimeAndResourcesDto = exports.SlotProductPricesMetadataDto = exports.SlotProductMetadataDto = void 0;
|
4
4
|
class SlotProductMetadataDto {
|
5
5
|
}
|
6
6
|
exports.SlotProductMetadataDto = SlotProductMetadataDto;
|
7
7
|
class SlotProductPricesMetadataDto {
|
8
8
|
}
|
9
9
|
exports.SlotProductPricesMetadataDto = SlotProductPricesMetadataDto;
|
10
|
-
class
|
10
|
+
class DateTimeAndResourcesDto {
|
11
11
|
}
|
12
|
-
exports.
|
13
|
-
class BaseSlotDto extends
|
12
|
+
exports.DateTimeAndResourcesDto = DateTimeAndResourcesDto;
|
13
|
+
class BaseSlotDto extends DateTimeAndResourcesDto {
|
14
14
|
}
|
15
15
|
exports.BaseSlotDto = BaseSlotDto;
|
16
16
|
class SlotDto extends BaseSlotDto {
|
@@ -19,37 +19,9 @@ exports.SlotDto = SlotDto;
|
|
19
19
|
class BaseDraftSlotDto extends BaseSlotDto {
|
20
20
|
}
|
21
21
|
exports.BaseDraftSlotDto = BaseDraftSlotDto;
|
22
|
-
class UpdateDraftSlotDto {
|
22
|
+
class UpdateDraftSlotDto extends BaseDraftSlotDto {
|
23
23
|
}
|
24
24
|
exports.UpdateDraftSlotDto = UpdateDraftSlotDto;
|
25
|
-
class DraftSlotsDto extends BaseSlotFieldsDto {
|
26
|
-
constructor(editSlots) {
|
27
|
-
super();
|
28
|
-
this.ids = editSlots === null || editSlots === void 0 ? void 0 : editSlots.ids;
|
29
|
-
this.organizationId = editSlots === null || editSlots === void 0 ? void 0 : editSlots.organizationId;
|
30
|
-
this.facilitiesIds = editSlots === null || editSlots === void 0 ? void 0 : editSlots.facilitiesIds;
|
31
|
-
this.reservationId = editSlots === null || editSlots === void 0 ? void 0 : editSlots.reservationId;
|
32
|
-
this.startDate = editSlots === null || editSlots === void 0 ? void 0 : editSlots.startDate;
|
33
|
-
this.startTime = editSlots === null || editSlots === void 0 ? void 0 : editSlots.startTime;
|
34
|
-
this.endDate = editSlots === null || editSlots === void 0 ? void 0 : editSlots.endDate;
|
35
|
-
this.endTime = editSlots === null || editSlots === void 0 ? void 0 : editSlots.endTime;
|
36
|
-
this.spaceId = editSlots === null || editSlots === void 0 ? void 0 : editSlots.spaceId;
|
37
|
-
this.instructorsIds = editSlots === null || editSlots === void 0 ? void 0 : editSlots.instructorsIds;
|
38
|
-
this.title = editSlots === null || editSlots === void 0 ? void 0 : editSlots.title;
|
39
|
-
this.publicNotes = editSlots === null || editSlots === void 0 ? void 0 : editSlots.publicNotes;
|
40
|
-
this.privateNotes = editSlots === null || editSlots === void 0 ? void 0 : editSlots.privateNotes;
|
41
|
-
this.sportIds = editSlots === null || editSlots === void 0 ? void 0 : editSlots.sportIds;
|
42
|
-
this.privacySetting = editSlots === null || editSlots === void 0 ? void 0 : editSlots.privacySetting;
|
43
|
-
this.colorCodeId = editSlots === null || editSlots === void 0 ? void 0 : editSlots.colorCodeId;
|
44
|
-
this.participantsNumber = editSlots === null || editSlots === void 0 ? void 0 : editSlots.participantsNumber;
|
45
|
-
this.participantsIds = editSlots === null || editSlots === void 0 ? void 0 : editSlots.participantsIds;
|
46
|
-
this.productsIds = editSlots === null || editSlots === void 0 ? void 0 : editSlots.productsIds;
|
47
|
-
this.maintenance = editSlots === null || editSlots === void 0 ? void 0 : editSlots.maintenance;
|
48
|
-
this.addons = editSlots === null || editSlots === void 0 ? void 0 : editSlots.addons;
|
49
|
-
this.segmentsIds = editSlots === null || editSlots === void 0 ? void 0 : editSlots.segmentsIds;
|
50
|
-
}
|
51
|
-
}
|
52
|
-
exports.DraftSlotsDto = DraftSlotsDto;
|
53
25
|
class DraftSlotDto extends BaseDraftSlotDto {
|
54
26
|
}
|
55
27
|
exports.DraftSlotDto = DraftSlotDto;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAgCA,MAAa,sBAAsB;CAUlC;AAVD,wDAUC;AAED,MAAa,4BAA4B;CAQxC;AARD,oEAQC;AAED,MAAa,
|
1
|
+
{"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAgCA,MAAa,sBAAsB;CAUlC;AAVD,wDAUC;AAED,MAAa,4BAA4B;CAQxC;AARD,oEAQC;AAED,MAAa,uBAAuB;CAYnC;AAZD,0DAYC;AAED,MAAa,WAAY,SAAQ,uBAAuB;CA8CvD;AA9CD,kCA8CC;AAED,MAAa,OAAQ,SAAQ,WAAW;CAkCvC;AAlCD,0BAkCC;AAED,MAAa,gBAAiB,SAAQ,WAAW;CAgBhD;AAhBD,4CAgBC;AAED,MAAa,kBAAmB,SAAQ,gBAAgB;CAKvD;AALD,gDAKC;AAED,MAAa,YAAa,SAAQ,gBAAgB;CAkBjD;AAlBD,oCAkBC;AAED,MAAa,WAAW;CAsBvB;AAtBD,kCAsBC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,oBAAoB;CAKhC;AALD,oDAKC;AAED,MAAa,gBAAgB;CAc5B;AAdD,4CAcC;AAED,MAAa,kBAAkB;CAc9B;AAdD,gDAcC;AAED,MAAa,WAAY,SAAQ,OAAO;CAcvC;AAdD,kCAcC"}
|
@@ -7,7 +7,6 @@ export declare const RESOURCE_TOTAL_FIELD = PriceFieldEnum.TOTAL_PRICE;
|
|
7
7
|
export declare const PUBLIC_NOTES_LIMIT = 500;
|
8
8
|
export declare const PRIVATE_NOTES_LIMIT = 500;
|
9
9
|
export declare const DEFAULT_PRICE_ID = 0;
|
10
|
-
export declare const MANDATORY_DRAFT_SLOTS_FIELDS: string[];
|
11
10
|
export declare const reservationStatusMapper: {
|
12
11
|
Planned: InvoiceStatusEnum;
|
13
12
|
Approved: InvoiceStatusEnum;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.reservationStatusToEventStatus = exports.reservationTypeMapper = exports.reservationStatusMapper = exports.
|
3
|
+
exports.reservationStatusToEventStatus = exports.reservationTypeMapper = exports.reservationStatusMapper = exports.DEFAULT_PRICE_ID = exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.RESOURCE_TOTAL_FIELD = exports.KEY_TTL = exports.RESERVATION_CHUNCK_SIZE = exports.DRAFT_RESERVATION_REDIS_TOKEN = void 0;
|
4
4
|
const enums_service_1 = require("../../../services/enums.service");
|
5
5
|
const reservation_enums_1 = require("../enums/reservation.enums");
|
6
6
|
exports.DRAFT_RESERVATION_REDIS_TOKEN = 'DRAFT_RESERVATION_REDIS_CLIENT';
|
@@ -11,13 +11,6 @@ exports.RESOURCE_TOTAL_FIELD = enums_service_1.PriceFieldEnum.TOTAL_PRICE;
|
|
11
11
|
exports.PUBLIC_NOTES_LIMIT = 500;
|
12
12
|
exports.PRIVATE_NOTES_LIMIT = 500;
|
13
13
|
exports.DEFAULT_PRICE_ID = 0;
|
14
|
-
exports.MANDATORY_DRAFT_SLOTS_FIELDS = [
|
15
|
-
'organizationId',
|
16
|
-
'reservationId',
|
17
|
-
'facilitiesIds',
|
18
|
-
'segmentsIds',
|
19
|
-
'ids',
|
20
|
-
];
|
21
14
|
exports.reservationStatusMapper = {
|
22
15
|
[reservation_enums_1.ReservationStatusEnum.PLANNED]: enums_service_1.InvoiceStatusEnum.DRAFT,
|
23
16
|
[reservation_enums_1.ReservationStatusEnum.APPROVED]: enums_service_1.InvoiceStatusEnum.DRAFT,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reservation.consts.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/reservation.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAqG;AACrG,kEAAsG;AAEzF,QAAA,6BAA6B,GAAG,gCAAgC,CAAC;AAEjE,QAAA,uBAAuB,GAAG,GAAG,CAAC;AAE3C,oBAAoB;AACP,QAAA,OAAO,GAAG,MAAM,CAAC;AAEjB,QAAA,oBAAoB,GAAG,8BAAc,CAAC,WAAW,CAAC;AAClD,QAAA,kBAAkB,GAAG,GAAG,CAAC;AACzB,QAAA,mBAAmB,GAAG,GAAG,CAAC;AAE1B,QAAA,gBAAgB,GAAG,CAAC,CAAC;AAErB,QAAA,
|
1
|
+
{"version":3,"file":"reservation.consts.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/reservation.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAqG;AACrG,kEAAsG;AAEzF,QAAA,6BAA6B,GAAG,gCAAgC,CAAC;AAEjE,QAAA,uBAAuB,GAAG,GAAG,CAAC;AAE3C,oBAAoB;AACP,QAAA,OAAO,GAAG,MAAM,CAAC;AAEjB,QAAA,oBAAoB,GAAG,8BAAc,CAAC,WAAW,CAAC;AAClD,QAAA,kBAAkB,GAAG,GAAG,CAAC;AACzB,QAAA,mBAAmB,GAAG,GAAG,CAAC;AAE1B,QAAA,gBAAgB,GAAG,CAAC,CAAC;AAErB,QAAA,uBAAuB,GAAG;IACtC,CAAC,yCAAqB,CAAC,OAAO,CAAC,EAAE,iCAAiB,CAAC,KAAK;IACxD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
19
19
|
import { SegmentDto } from '../../dto/segment.dto';
|
20
20
|
import { SeriesDto } from '../../dto/series.dto';
|
21
|
-
import { SlotDto
|
21
|
+
import { SlotDto } from '../../dto/slot.dto';
|
22
22
|
import { Addon } from '../../entities/addon.entity';
|
23
23
|
import { Reservation } from '../../entities/reservation.entity';
|
24
24
|
import { Segment } from '../../entities/segment.entity';
|
@@ -342,14 +342,6 @@ export interface IGetDraftReservationOptions {
|
|
342
342
|
includeConflicts?: boolean;
|
343
343
|
reservation?: DraftReservation;
|
344
344
|
}
|
345
|
-
export interface IDuplicateDraftReservation extends IGetDraftReservationOptions {
|
346
|
-
slotsIds?: number[];
|
347
|
-
excludeIds?: number[];
|
348
|
-
reservationAddonsIds?: number[];
|
349
|
-
isEdit?: boolean;
|
350
|
-
combineSlots?: boolean;
|
351
|
-
skipSave?: boolean;
|
352
|
-
}
|
353
345
|
export interface IGetDraftReservationSlotsOptions extends IPagination, IExtendDraftSlotsOptions {
|
354
346
|
segmentsIds?: string[];
|
355
347
|
slotsIds?: string[];
|
@@ -447,15 +439,4 @@ export interface IGetReservationOptions {
|
|
447
439
|
extraRelations?: string[];
|
448
440
|
includeProducts?: boolean;
|
449
441
|
}
|
450
|
-
export interface IDuplicateReservationItems {
|
451
|
-
slotsIds?: number[];
|
452
|
-
reservationAddonsIds?: number[];
|
453
|
-
excludeIds?: number[];
|
454
|
-
isEdit?: boolean;
|
455
|
-
combineSlots?: boolean;
|
456
|
-
}
|
457
|
-
export interface IUpdateDraftSlotsValidationResult {
|
458
|
-
slots: DraftSlot[];
|
459
|
-
updates: UpdateDraftSlotDto[];
|
460
|
-
}
|
461
442
|
export {};
|
@@ -17,22 +17,19 @@ export declare class CreateRoleDto extends OptionalFacilityIdDto {
|
|
17
17
|
permissionGroupsIds: number[];
|
18
18
|
usersIds: number[];
|
19
19
|
}
|
20
|
-
export declare class
|
20
|
+
export declare class SimpleRoleDto extends OptionalFacilityIdDto {
|
21
21
|
id: number;
|
22
22
|
name: string;
|
23
23
|
description?: string;
|
24
24
|
deletedAt?: Date;
|
25
25
|
isEditable?: boolean;
|
26
26
|
type?: number;
|
27
|
+
activeUsersCount?: number;
|
28
|
+
}
|
29
|
+
export declare class RoleDto extends SimpleRoleDto {
|
27
30
|
permissionGroups: PermissionGroupDto[];
|
28
31
|
usersRoles: UserRoleDto[];
|
29
32
|
}
|
30
|
-
export declare class SimpleRoleDto extends OptionalFacilityIdDto {
|
31
|
-
id: number;
|
32
|
-
name: string;
|
33
|
-
type?: number;
|
34
|
-
deletedAt?: Date;
|
35
|
-
}
|
36
33
|
export declare class GetRolesFiltersDto extends PaginatedSearchDto {
|
37
34
|
platforms?: PlatformsEnum[];
|
38
35
|
facilityId?: number;
|
@@ -41,6 +38,7 @@ export declare class GetRolesFiltersDto extends PaginatedSearchDto {
|
|
41
38
|
isEditable?: boolean;
|
42
39
|
rolesTypes?: RoleTypesEnum[];
|
43
40
|
includeBondy?: boolean;
|
41
|
+
countUserRoles?: boolean;
|
44
42
|
}
|
45
43
|
export declare class ByOrganizationIdAndRole extends ByOrganizationIdDto {
|
46
44
|
role: string;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.EditRoleDto = exports.DeprecatedRoleDto = exports.GetRolesOptionsDto = exports.DeleteRolesOptionsDto = exports.UpdateRoleDto = exports.RoleIdsAndUserIdDto = exports.RoleIdsDto = exports.RequiredRoleIdsDto = exports.ByOrganizationIdAndRole = exports.GetRolesFiltersDto = exports.
|
3
|
+
exports.EditRoleDto = exports.DeprecatedRoleDto = exports.GetRolesOptionsDto = exports.DeleteRolesOptionsDto = exports.UpdateRoleDto = exports.RoleIdsAndUserIdDto = exports.RoleIdsDto = exports.RequiredRoleIdsDto = exports.ByOrganizationIdAndRole = exports.GetRolesFiltersDto = exports.RoleDto = exports.SimpleRoleDto = exports.CreateRoleDto = exports.ByRoleIdDto = void 0;
|
4
4
|
const facilities_dto_1 = require("../../dto/facilities.dto");
|
5
5
|
const general_dto_1 = require("../../dto/general.dto");
|
6
6
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
@@ -10,20 +10,21 @@ exports.ByRoleIdDto = ByRoleIdDto;
|
|
10
10
|
class CreateRoleDto extends facilities_dto_1.OptionalFacilityIdDto {
|
11
11
|
}
|
12
12
|
exports.CreateRoleDto = CreateRoleDto;
|
13
|
-
class
|
13
|
+
class SimpleRoleDto extends facilities_dto_1.OptionalFacilityIdDto {
|
14
|
+
}
|
15
|
+
exports.SimpleRoleDto = SimpleRoleDto;
|
16
|
+
class RoleDto extends SimpleRoleDto {
|
14
17
|
constructor() {
|
15
18
|
super(...arguments);
|
16
19
|
this.permissionGroups = [];
|
17
20
|
}
|
18
21
|
}
|
19
22
|
exports.RoleDto = RoleDto;
|
20
|
-
class SimpleRoleDto extends facilities_dto_1.OptionalFacilityIdDto {
|
21
|
-
}
|
22
|
-
exports.SimpleRoleDto = SimpleRoleDto;
|
23
23
|
class GetRolesFiltersDto extends general_dto_1.PaginatedSearchDto {
|
24
24
|
constructor() {
|
25
25
|
super(...arguments);
|
26
26
|
this.includeBondy = false;
|
27
|
+
this.countUserRoles = false;
|
27
28
|
}
|
28
29
|
}
|
29
30
|
exports.GetRolesFiltersDto = GetRolesFiltersDto;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"role.dto.js","sourceRoot":"","sources":["../../../../src/types/roles/dto/role.dto.ts"],"names":[],"mappings":";;;AAAA,6DAAiE;AACjE,uDAA2D;AAC3D,8EAA8E;AAO9E,MAAa,WAAY,SAAQ,sCAAqB;CAErD;AAFD,kCAEC;AAED,MAAa,aAAc,SAAQ,sCAAqB;CAYvD;AAZD,sCAYC;AAED,MAAa,
|
1
|
+
{"version":3,"file":"role.dto.js","sourceRoot":"","sources":["../../../../src/types/roles/dto/role.dto.ts"],"names":[],"mappings":";;;AAAA,6DAAiE;AACjE,uDAA2D;AAC3D,8EAA8E;AAO9E,MAAa,WAAY,SAAQ,sCAAqB;CAErD;AAFD,kCAEC;AAED,MAAa,aAAc,SAAQ,sCAAqB;CAYvD;AAZD,sCAYC;AAED,MAAa,aAAc,SAAQ,sCAAqB;CAcvD;AAdD,sCAcC;AAED,MAAa,OAAQ,SAAQ,aAAa;IAA1C;;QACC,qBAAgB,GAAyB,EAAE,CAAC;IAG7C,CAAC;CAAA;AAJD,0BAIC;AAED,MAAa,kBAAmB,SAAQ,gCAAkB;IAA1D;;QAaC,iBAAY,GAAI,KAAK,CAAC;QAEtB,mBAAc,GAAI,KAAK,CAAC;IACzB,CAAC;CAAA;AAhBD,gDAgBC;AAED,MAAa,uBAAwB,SAAQ,sCAAmB;CAE/D;AAFD,0DAEC;AAED,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC;AAED,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED,MAAa,aAAc,SAAQ,sCAAqB;CAQvD;AARD,sCAQC;AAED,MAAa,qBAAsB,SAAQ,UAAU;IAArD;;QACC,qBAAgB,GAAI,IAAI,CAAC;IAC1B,CAAC;CAAA;AAFD,sDAEC;AAED,MAAa,kBAAkB;IAA/B;QACC,uBAAkB,GAAI,KAAK,CAAC;QAE5B,4BAAuB,GAAI,KAAK,CAAC;QAEjC,6BAAwB,GAAI,KAAK,CAAC;QAElC,qBAAgB,GAAI,KAAK,CAAC;IAC3B,CAAC;CAAA;AARD,gDAQC;AAED,MAAa,iBAAkB,SAAQ,OAAO;CAE7C;AAFD,8CAEC;AAED,MAAa,WAAW;CAUvB;AAVD,kCAUC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Role.js","sourceRoot":"","sources":["../../../../src/types/roles/entities/Role.ts"],"names":[],"mappings":";;;AACA,gEAA6D;AAI7D,MAAa,IAAK,SAAQ,+BAAc;
|
1
|
+
{"version":3,"file":"Role.js","sourceRoot":"","sources":["../../../../src/types/roles/entities/Role.ts"],"names":[],"mappings":";;;AACA,gEAA6D;AAI7D,MAAa,IAAK,SAAQ,+BAAc;CAoBvC;AApBD,oBAoBC"}
|