@maioradv/cms-basic-lib 1.0.0 → 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.
- package/dist/collections/types.d.ts +5 -2
- package/dist/index.d.ts +10 -1
- package/dist/index.js +11 -4
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { Sorting, SortingParamsDto } from "../core/dto/sorting";
|
|
|
3
3
|
import { QueryParamsDto } from "../core/utils/queryParams";
|
|
4
4
|
import { CreateImageDto, Image } from "../images/types";
|
|
5
5
|
import { CreateProductCollectionDto, Product, ProductCollection, ProductImage } from "../products/types";
|
|
6
|
-
import { Metafield, OmitRequire, Translation, WithRelation } from "../types";
|
|
6
|
+
import { Metafield, OmitRequire, Translation, WithRelation, WithRelations } from "../types";
|
|
7
7
|
export type Collection = {
|
|
8
8
|
id: number;
|
|
9
9
|
slug: string;
|
|
@@ -47,7 +47,10 @@ export type ClausesCollectionDto = WhereClausesDto<{
|
|
|
47
47
|
allowChildren?: BooleanClause;
|
|
48
48
|
}>;
|
|
49
49
|
export type QueryCollectionDto = QueryParamsDto<SortingCollectionDto, ClausesCollectionDto>;
|
|
50
|
-
export type FindAllCollectionDto =
|
|
50
|
+
export type FindAllCollectionDto = WithRelations<Collection, {
|
|
51
|
+
CollectionImage: WithRelation<CollectionImage, 'Image', Image>[];
|
|
52
|
+
children: Collection[];
|
|
53
|
+
}>;
|
|
51
54
|
export type CreateCollectionImageDto = OmitRequire<CollectionImage, 'collectionId' | 'createdAt' | 'updatedAt' | 'imageId'> & CreateImageDto;
|
|
52
55
|
export type UpdateCollectionImageDto = Omit<CreateCollectionImageDto, 'file'>;
|
|
53
56
|
export type CreateProductOnCollectionDto = Omit<CreateProductCollectionDto, 'collectionId'>;
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,15 @@ export type MaiorCmsApiConfigs = ApiConfigs;
|
|
|
5
5
|
export * from './types';
|
|
6
6
|
export * from './error';
|
|
7
7
|
export * from './auth/types';
|
|
8
|
-
export
|
|
8
|
+
export * from './apitokens/types';
|
|
9
|
+
export * from './collections/types';
|
|
10
|
+
export * from './configs/types';
|
|
11
|
+
export * from './images/types';
|
|
12
|
+
export * from './io/types';
|
|
13
|
+
export * from './languages/types';
|
|
14
|
+
export * from './popups/types';
|
|
15
|
+
export * from './productAttributes/types';
|
|
16
|
+
export * from './products/types';
|
|
17
|
+
export * from './roles/types';
|
|
9
18
|
export { TiDelizioPlan } from './configs/services/ti-delizio.config';
|
|
10
19
|
export declare function maiorCmsApiClient(opt: MaiorCmsApiConfigs): MaiorCmsApiClient;
|
package/dist/index.js
CHANGED
|
@@ -14,16 +14,23 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.TiDelizioPlan = exports.
|
|
17
|
+
exports.TiDelizioPlan = exports.MaiorCmsApiClient = void 0;
|
|
18
18
|
exports.maiorCmsApiClient = maiorCmsApiClient;
|
|
19
19
|
const client_1 = require("./client");
|
|
20
20
|
Object.defineProperty(exports, "MaiorCmsApiClient", { enumerable: true, get: function () { return client_1.MaiorCmsApiClient; } });
|
|
21
21
|
__exportStar(require("./types"), exports);
|
|
22
22
|
__exportStar(require("./error"), exports);
|
|
23
23
|
__exportStar(require("./auth/types"), exports);
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
__exportStar(require("./apitokens/types"), exports);
|
|
25
|
+
__exportStar(require("./collections/types"), exports);
|
|
26
|
+
__exportStar(require("./configs/types"), exports);
|
|
27
|
+
__exportStar(require("./images/types"), exports);
|
|
28
|
+
__exportStar(require("./io/types"), exports);
|
|
29
|
+
__exportStar(require("./languages/types"), exports);
|
|
30
|
+
__exportStar(require("./popups/types"), exports);
|
|
31
|
+
__exportStar(require("./productAttributes/types"), exports);
|
|
32
|
+
__exportStar(require("./products/types"), exports);
|
|
33
|
+
__exportStar(require("./roles/types"), exports);
|
|
27
34
|
var ti_delizio_config_1 = require("./configs/services/ti-delizio.config");
|
|
28
35
|
Object.defineProperty(exports, "TiDelizioPlan", { enumerable: true, get: function () { return ti_delizio_config_1.TiDelizioPlan; } });
|
|
29
36
|
function maiorCmsApiClient(opt) {
|