@maioradv/cms-basic-lib 1.3.7 → 1.3.9
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/collections/index.d.ts +1 -0
- package/dist/collections/index.js +3 -0
- package/dist/configs/index.d.ts +2 -1
- package/dist/configs/index.js +3 -0
- package/dist/configs/services/ti-delizio.config.d.ts +1 -0
- package/dist/configs/types.d.ts +1 -0
- package/dist/images/index.d.ts +1 -0
- package/dist/images/index.js +7 -0
- package/dist/products/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ import { Collection, CollectionImage, CreateCollectionDto, CreateCollectionImage
|
|
|
9
9
|
export default class Collections extends ApiModule implements RestApiModuleI, GraphApiModuleI {
|
|
10
10
|
create(args: CreateCollectionDto): Promise<Collection>;
|
|
11
11
|
findAll(args?: QueryCollectionDto): Promise<PaginatedDto<FindAllCollectionDto>>;
|
|
12
|
+
count(id: number): Promise<number>;
|
|
12
13
|
findOne(id: number): Promise<FindOneCollectionDto>;
|
|
13
14
|
findSlug(slug: string): Promise<FindOneCollectionDto>;
|
|
14
15
|
update(id: number, data: UpdateCollectionDto): Promise<Collection>;
|
|
@@ -10,6 +10,9 @@ class Collections extends model_1.ApiModule {
|
|
|
10
10
|
findAll(args = {}) {
|
|
11
11
|
return this._call('get', '/collections', (0, queryParams_1.queryParams)(args));
|
|
12
12
|
}
|
|
13
|
+
count(id) {
|
|
14
|
+
return this._call('get', `/collections/${id}/count`);
|
|
15
|
+
}
|
|
13
16
|
findOne(id) {
|
|
14
17
|
return this._call('get', `/collections/${id}`);
|
|
15
18
|
}
|
package/dist/configs/index.d.ts
CHANGED
|
@@ -3,9 +3,10 @@ import { RemoveGQL } from "../core/model/remove-gql.response";
|
|
|
3
3
|
import { RestApiModuleI, ApiModule, GraphApiModuleI } from "../model";
|
|
4
4
|
import { QueryConfigGQLDto } from "./graphql";
|
|
5
5
|
import { TiDelizioConfig, TiDelizioPlan } from "./services/ti-delizio.config";
|
|
6
|
-
import { Config, CreateConfigDto, QueryConfigDto, UpdateConfigDto } from "./types";
|
|
6
|
+
import { Config, CreateConfigDto, PutConfigDto, QueryConfigDto, UpdateConfigDto } from "./types";
|
|
7
7
|
export default class Configs extends ApiModule implements RestApiModuleI, GraphApiModuleI {
|
|
8
8
|
create(args: CreateConfigDto): Promise<Config>;
|
|
9
|
+
put(args: PutConfigDto): Promise<Config>;
|
|
9
10
|
findAll(args?: QueryConfigDto): Promise<PaginatedDto<Config>>;
|
|
10
11
|
findOne(id: number): Promise<Config>;
|
|
11
12
|
update(id: number, data: UpdateConfigDto): Promise<Config>;
|
package/dist/configs/index.js
CHANGED
|
@@ -7,6 +7,9 @@ class Configs extends model_1.ApiModule {
|
|
|
7
7
|
create(args) {
|
|
8
8
|
return this._call('post', '/configs', args);
|
|
9
9
|
}
|
|
10
|
+
put(args) {
|
|
11
|
+
return this._call('put', '/configs', args);
|
|
12
|
+
}
|
|
10
13
|
findAll(args = {}) {
|
|
11
14
|
return this._call('get', '/configs', (0, queryParams_1.queryParams)(args));
|
|
12
15
|
}
|
|
@@ -10,6 +10,7 @@ export interface TiDelizioConfig extends ServiceConfig {
|
|
|
10
10
|
allowLocalization?: boolean;
|
|
11
11
|
allowProductVideo?: boolean;
|
|
12
12
|
allowPopup?: boolean;
|
|
13
|
+
allowCustomTheme?: boolean;
|
|
13
14
|
plan?: TiDelizioPlan;
|
|
14
15
|
qrLinkRedirect?: string;
|
|
15
16
|
maxMenuCollectionNumber?: number;
|
package/dist/configs/types.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export type Config = {
|
|
|
12
12
|
updatedAt: Date;
|
|
13
13
|
};
|
|
14
14
|
export type CreateConfigDto = OmitRequire<Config, 'id' | 'createdAt' | 'updatedAt', 'name' | 'value'>;
|
|
15
|
+
export type PutConfigDto = CreateConfigDto;
|
|
15
16
|
export type UpdateConfigDto = Partial<CreateConfigDto>;
|
|
16
17
|
export type SortingConfigDto = SortingParamsDto<{
|
|
17
18
|
name?: Sorting;
|
package/dist/images/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { QueryImageGQLDto } from "./graphql";
|
|
|
4
4
|
import { CreateImageDto, Image, QueryImageDto } from "./types";
|
|
5
5
|
export default class Images extends ApiModule {
|
|
6
6
|
create(args: CreateImageDto): Promise<Image>;
|
|
7
|
+
RNCreate(formData: any): Promise<Image>;
|
|
7
8
|
findAll(args?: QueryImageDto): Promise<PaginatedDto<Image>>;
|
|
8
9
|
findOne(id: number): Promise<Image>;
|
|
9
10
|
remove(id: number): Promise<Image>;
|
package/dist/images/index.js
CHANGED
|
@@ -11,6 +11,13 @@ class Images extends model_1.ApiModule {
|
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
+
RNCreate(formData) {
|
|
15
|
+
return this._call('post', `/images`, formData, {
|
|
16
|
+
headers: {
|
|
17
|
+
'Content-Type': 'multipart/form-data'
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
14
21
|
findAll(args = {}) {
|
|
15
22
|
return this._call('get', '/images', (0, queryParams_1.queryParams)(args));
|
|
16
23
|
}
|
package/dist/products/types.d.ts
CHANGED
|
@@ -91,5 +91,6 @@ export type ClausesProductDto = WhereClausesDto<{
|
|
|
91
91
|
collectionId?: NumberClause;
|
|
92
92
|
attributes?: NumberClause;
|
|
93
93
|
published?: BooleanClause;
|
|
94
|
+
noCollections?: BooleanClause;
|
|
94
95
|
}>;
|
|
95
96
|
export type QueryProductDto = QueryParamsDto<SortingProductDto, ClausesProductDto>;
|