@nomalism-com/types 0.18.24 → 0.18.26

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
- import * as IShared from '../../../shared/interface';
2
- import { EmailLog } from '../../../shared/entities';
1
+ import * as IShared from "../../../shared/interface";
2
+ import { EmailLog } from "../../../shared/entities";
3
3
  export type Entity = EmailLog;
4
4
  export declare const Route = "email_log";
5
5
  export declare const UpperName = "EmailLog";
@@ -16,6 +16,7 @@ export interface IFindResponse {
16
16
  subject: string;
17
17
  sent: boolean;
18
18
  rejected: boolean;
19
+ error: string | null;
19
20
  }
20
21
  export interface IEmailAddress {
21
22
  name: string;
@@ -39,16 +40,10 @@ export interface IFindByIdResponse {
39
40
  subject: string;
40
41
  html: string;
41
42
  attachments: IEmailAttachment[];
42
- }
43
- export interface ICreateRequest {
44
- template: string;
45
- variables: unknown;
46
- mail_options: unknown;
47
- smtp_response: unknown;
43
+ error: string | null;
48
44
  }
49
45
  export interface IRepository {
50
46
  find(params: IFindRequest): Promise<IFindResponse[]>;
51
47
  findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse>;
52
- create(data: ICreateRequest): Promise<void>;
53
48
  }
54
- export type IApi = Omit<IRepository, 'create'>;
49
+ export type IApi = IRepository;
@@ -1,4 +1,4 @@
1
- import { IProjectInfoType } from '../../modules/integration/projectInfo/interfaces';
1
+ import { IProjectInfoType } from "../../modules/integration/projectInfo/interfaces";
2
2
  export type Observation = {
3
3
  id: string;
4
4
  owner_id: string;
@@ -69,6 +69,7 @@ export type EmailLog = {
69
69
  variables: unknown;
70
70
  mail_options: unknown;
71
71
  smtp_response: unknown;
72
+ error: string | null;
72
73
  created_at: Date;
73
74
  updated_at: Date;
74
75
  };
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.18.24",
12
+ "version": "0.18.26",
13
13
  "main": "./dist/index.min.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [
@@ -39,11 +39,11 @@
39
39
  "devDependencies": {
40
40
  "@rollup/plugin-terser": "^0.4.4",
41
41
  "@rollup/plugin-typescript": "^11.1.6",
42
- "@types/node": "^20.11.17",
42
+ "@types/node": "^20.11.19",
43
43
  "@typescript-eslint/eslint-plugin": "^7.0.1",
44
44
  "@typescript-eslint/parser": "^7.0.1",
45
45
  "eslint": "^8.56.0",
46
- "rollup": "^4.10.0",
46
+ "rollup": "^4.11.0",
47
47
  "tslib": "^2.6.2"
48
48
  }
49
49
  }