@nomalism-com/types 0.43.73 → 0.43.74
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.
|
@@ -32,12 +32,19 @@ export interface ISendRequest {
|
|
|
32
32
|
html: string;
|
|
33
33
|
attachments: IEmailAttachment[];
|
|
34
34
|
}
|
|
35
|
+
export interface EmailPreviewRequest {
|
|
36
|
+
body: string;
|
|
37
|
+
}
|
|
38
|
+
export interface EmailPreviewResponse {
|
|
39
|
+
html: string;
|
|
40
|
+
}
|
|
35
41
|
export interface IRepository {
|
|
36
42
|
find(): Promise<IEntityExtended[]>;
|
|
37
43
|
create(data: ICreateRequest): Promise<string>;
|
|
38
44
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
|
|
39
45
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
40
46
|
send(data: ISendRequest): Promise<void>;
|
|
47
|
+
preview(selector: IShared.IFindByIdRequest, data: EmailPreviewRequest): Promise<EmailPreviewResponse>;
|
|
41
48
|
}
|
|
42
49
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
43
50
|
export type IApi = IRepository;
|
|
@@ -143,11 +143,12 @@ export type Country = {
|
|
|
143
143
|
export type Language = {
|
|
144
144
|
id: string;
|
|
145
145
|
name: string;
|
|
146
|
-
native_name: string;
|
|
147
|
-
iso_code: string;
|
|
148
|
-
short_list: boolean;
|
|
149
146
|
created_at: Date;
|
|
150
147
|
updated_at: Date;
|
|
148
|
+
created_by: string;
|
|
149
|
+
updated_by: string;
|
|
150
|
+
origin_id: string | null;
|
|
151
|
+
external_id: string | null;
|
|
151
152
|
};
|
|
152
153
|
/**
|
|
153
154
|
* Model Clients
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/types",
|
|
3
3
|
"description": "A nomalism package with all necessary types and validations for developing APIs",
|
|
4
|
-
"version": "0.43.
|
|
4
|
+
"version": "0.43.74",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|