@maioradv/cms-basic-lib 1.5.6 → 1.5.8

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.
@@ -1,5 +1,5 @@
1
1
  import { ApiModule } from "../model";
2
- import { CreateImportDto, CreatePdfDto } from "./types";
2
+ import { CreateImportDto, CreatePdfDto, InitSeedingDto } from "./types";
3
3
  export default class IO extends ApiModule {
4
4
  importExcel(args: CreateImportDto): Promise<void>;
5
5
  RNImportExcel(formData: any): Promise<void>;
@@ -7,4 +7,5 @@ export default class IO extends ApiModule {
7
7
  excelModel(): Promise<Buffer>;
8
8
  createPdf(args: CreatePdfDto): Promise<boolean>;
9
9
  downloadPdf(): Promise<Buffer>;
10
+ seeding(args: InitSeedingDto): Promise<void>;
10
11
  }
package/dist/io/index.js CHANGED
@@ -34,5 +34,8 @@ class IO extends model_1.ApiModule {
34
34
  responseType: 'arraybuffer'
35
35
  });
36
36
  }
37
+ seeding(args) {
38
+ return this._call('post', '/seeding', args);
39
+ }
37
40
  }
38
41
  exports.default = IO;
@@ -11,3 +11,6 @@ export type CreatePdfDto = {
11
11
  email: string;
12
12
  displayName: string;
13
13
  };
14
+ export type InitSeedingDto = {
15
+ locale: string;
16
+ };
@@ -20,6 +20,7 @@ exports.LanguagesResolvers = {
20
20
  iso
21
21
  locale
22
22
  published
23
+ default
23
24
  translations {
24
25
  key
25
26
  locale
@@ -9,6 +9,7 @@ export type Language = {
9
9
  iso: string;
10
10
  locale: string;
11
11
  published: boolean;
12
+ default: boolean;
12
13
  translations: Translation[];
13
14
  createdAt: Date;
14
15
  updatedAt: Date;
@@ -25,5 +26,6 @@ export type ClausesLanguageDto = WhereClausesDto<{
25
26
  locale?: StringClause;
26
27
  active?: BooleanClause;
27
28
  published?: BooleanClause;
29
+ default?: BooleanClause;
28
30
  }>;
29
31
  export type QueryLanguageDto = QueryParamsDto<SortingLanguageDto, ClausesLanguageDto>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maioradv/cms-basic-lib",
3
- "version": "1.5.6",
3
+ "version": "1.5.8",
4
4
  "description": "JS lib for Maior CMS Basic Api",
5
5
  "repository": "https://github.com/maioradv/cms-basic-lib.git",
6
6
  "author": "Maior ADV Srl",