@maioradv/cms-basic-lib 1.3.0 → 1.3.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.
@@ -1,8 +1,8 @@
1
1
  import { ServiceConfig } from "../model";
2
2
  export declare enum TiDelizioPlan {
3
- basic = "basic",
4
3
  standard = "standard",
5
- pro = "pro"
4
+ plus = "plus",
5
+ premium = "premium"
6
6
  }
7
7
  export interface TiDelizioConfig extends ServiceConfig {
8
8
  allowAdvancedMenu?: boolean;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TiDelizioPlan = void 0;
4
4
  var TiDelizioPlan;
5
5
  (function (TiDelizioPlan) {
6
- TiDelizioPlan["basic"] = "basic";
7
6
  TiDelizioPlan["standard"] = "standard";
8
- TiDelizioPlan["pro"] = "pro";
7
+ TiDelizioPlan["plus"] = "plus";
8
+ TiDelizioPlan["premium"] = "premium";
9
9
  })(TiDelizioPlan || (exports.TiDelizioPlan = TiDelizioPlan = {}));
@@ -1,5 +1,6 @@
1
1
  import { ApiModule } from "../model";
2
- import { CreateImportDto } from "./types";
2
+ import { CreateImportDto, CreatePdfDto } from "./types";
3
3
  export default class IO extends ApiModule {
4
4
  importExcel(args: CreateImportDto): Promise<void>;
5
+ createPdf(args: CreatePdfDto): Promise<boolean>;
5
6
  }
package/dist/io/index.js CHANGED
@@ -9,5 +9,8 @@ class IO extends model_1.ApiModule {
9
9
  }
10
10
  });
11
11
  }
12
+ createPdf(args) {
13
+ return this._call('post', '/pdf', args);
14
+ }
12
15
  }
13
16
  exports.default = IO;
@@ -2,3 +2,12 @@ import { ReadStream } from "fs";
2
2
  export type CreateImportDto = {
3
3
  file: ReadStream;
4
4
  };
5
+ export declare enum PdfModel {
6
+ tidelizio = "tidelizio"
7
+ }
8
+ export type CreatePdfDto = {
9
+ model: PdfModel;
10
+ locale: string;
11
+ email: string;
12
+ displayName: string;
13
+ };
package/dist/io/types.js CHANGED
@@ -1,2 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PdfModel = void 0;
4
+ var PdfModel;
5
+ (function (PdfModel) {
6
+ PdfModel["tidelizio"] = "tidelizio";
7
+ })(PdfModel || (exports.PdfModel = PdfModel = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maioradv/cms-basic-lib",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
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",