@maioradv/cms-basic-lib 1.7.3 → 1.7.5
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.
|
@@ -4,6 +4,7 @@ import { CreateLinkCollectionDto, CreateLinkDto, FindOneLinkCollectionDto, Link,
|
|
|
4
4
|
export default class LinkCollections extends ApiModule implements RestApiModuleI {
|
|
5
5
|
create(args: CreateLinkCollectionDto): Promise<LinkCollection>;
|
|
6
6
|
findAll(args?: QueryLinkCollectionDto): Promise<PaginatedDto<LinkCollection>>;
|
|
7
|
+
count(id: number): Promise<number>;
|
|
7
8
|
findOne(id: number): Promise<FindOneLinkCollectionDto>;
|
|
8
9
|
update(id: number, data: UpdateLinkCollectionDto): Promise<LinkCollection>;
|
|
9
10
|
remove(id: number): Promise<LinkCollection>;
|
|
@@ -9,6 +9,9 @@ class LinkCollections extends model_1.ApiModule {
|
|
|
9
9
|
findAll(args = {}) {
|
|
10
10
|
return this._call('get', '/link-collections', (0, queryParams_1.queryParams)(args));
|
|
11
11
|
}
|
|
12
|
+
count(id) {
|
|
13
|
+
return this._call('get', `/link-collections/${id}/count`);
|
|
14
|
+
}
|
|
12
15
|
findOne(id) {
|
|
13
16
|
return this._call('get', `/link-collections/${id}`);
|
|
14
17
|
}
|
|
@@ -33,9 +33,9 @@ export type Reservation = {
|
|
|
33
33
|
createdAt: Date;
|
|
34
34
|
updatedAt: Date;
|
|
35
35
|
};
|
|
36
|
-
export type CreateReservationDto = OmitRequire<Reservation, 'id' | 'createdAt' | 'updatedAt', 'date' | 'guestCount' | 'name' | 'phone'>;
|
|
36
|
+
export type CreateReservationDto = OmitRequire<Reservation, 'id' | 'createdAt' | 'updatedAt' | 'token', 'date' | 'guestCount' | 'name' | 'phone'>;
|
|
37
37
|
export type UpdateReservationDto = Partial<CreateReservationDto>;
|
|
38
|
-
export type PushReservationDto = OmitRequire<Reservation, 'id' | 'createdAt' | 'updatedAt' | 'status', 'date' | 'guestCount' | 'name' | 'phone'>;
|
|
38
|
+
export type PushReservationDto = OmitRequire<Reservation, 'id' | 'createdAt' | 'updatedAt' | 'status' | 'token', 'date' | 'guestCount' | 'name' | 'phone'>;
|
|
39
39
|
export type SortingReservationDto = SortingParamsDto<{
|
|
40
40
|
name?: Sorting;
|
|
41
41
|
date?: Sorting;
|