ztechno_core 0.0.42 → 0.0.43
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/lib/crypto_service.d.ts +1 -1
- package/lib/index.d.ts +4 -4
- package/lib/mail_service.d.ts +1 -1
- package/lib/typings/crypto_types.d.ts +4 -0
- package/lib/typings/crypto_types.js +2 -0
- package/lib/typings/mail_types.d.ts +22 -0
- package/lib/typings/mail_types.js +2 -0
- package/lib/typings/translate_types.d.ts +34 -0
- package/lib/typings/translate_types.js +2 -0
- package/lib/typings/user_types.d.ts +22 -0
- package/lib/typings/user_types.js +2 -0
- package/lib/user_service.d.ts +1 -1
- package/package.json +1 -1
package/lib/crypto_service.d.ts
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -4,14 +4,14 @@ import { ZMailService } from './mail_service';
|
|
|
4
4
|
import { ZSqlService } from './sql_service';
|
|
5
5
|
import { ZTranslateService } from './translate_service';
|
|
6
6
|
import { ZUserService } from './user_service';
|
|
7
|
-
export { HashStruct } from './typings/
|
|
7
|
+
export { HashStruct } from './typings/crypto_types';
|
|
8
8
|
export {
|
|
9
9
|
MailOptions,
|
|
10
10
|
MailOptionsBase,
|
|
11
11
|
MailOptionsHtml,
|
|
12
12
|
MailOptionsText,
|
|
13
13
|
MailServiceOptions,
|
|
14
|
-
} from './typings/
|
|
15
|
-
export { TranslateData, ZDom, ZNode, ZNodeText, dbTranslationRow } from './typings/
|
|
16
|
-
export { ZRequiredUserColumns, ZUser, ZUserCredentials, ZUserSession } from './typings/
|
|
14
|
+
} from './typings/mail_types';
|
|
15
|
+
export { TranslateData, ZDom, ZNode, ZNodeText, dbTranslationRow } from './typings/translate_types';
|
|
16
|
+
export { ZRequiredUserColumns, ZUser, ZUserCredentials, ZUserSession } from './typings/user_types';
|
|
17
17
|
export { ZCryptoService, ZMailService, ZSqlService, ZTranslateService, ZUserService, ZEngineBase };
|
package/lib/mail_service.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MailOptionsHtml, MailOptionsText, MailServiceOptions } from './typings/
|
|
1
|
+
import { MailOptionsHtml, MailOptionsText, MailServiceOptions } from './typings/mail_types';
|
|
2
2
|
export declare class ZMailService {
|
|
3
3
|
private opt;
|
|
4
4
|
constructor(opt: MailServiceOptions);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type MailServiceOptions = {
|
|
2
|
+
auth: {
|
|
3
|
+
user: string;
|
|
4
|
+
pass: string;
|
|
5
|
+
};
|
|
6
|
+
mailSender: string;
|
|
7
|
+
};
|
|
8
|
+
export type MailOptionsBase = {
|
|
9
|
+
recipient: string;
|
|
10
|
+
subject: string;
|
|
11
|
+
from?: string;
|
|
12
|
+
};
|
|
13
|
+
export type MailOptionsText = MailOptionsBase & {
|
|
14
|
+
body: string;
|
|
15
|
+
};
|
|
16
|
+
export type MailOptionsHtml = MailOptionsBase & {
|
|
17
|
+
html: string;
|
|
18
|
+
};
|
|
19
|
+
export type MailOptions = MailOptionsBase & {
|
|
20
|
+
body?: string;
|
|
21
|
+
html?: string;
|
|
22
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export type ZDom = {} & ZNode;
|
|
2
|
+
export type ZNode = {
|
|
3
|
+
getAttribute: (attr: string) => string;
|
|
4
|
+
getElementsByTagName: (tag: string) => ZNode[];
|
|
5
|
+
getElementsByClassName: (cls: string) => ZNode[];
|
|
6
|
+
getElementById: (id: string) => ZNode;
|
|
7
|
+
getElementsByName: (name: string) => ZNode[];
|
|
8
|
+
nodeType: string;
|
|
9
|
+
nodeName: string;
|
|
10
|
+
childNodes: ZNode[];
|
|
11
|
+
firstChild: ZNode;
|
|
12
|
+
lastChild: ZNode;
|
|
13
|
+
parentNode: ZNode;
|
|
14
|
+
attributes: any[];
|
|
15
|
+
innerHTML: string;
|
|
16
|
+
outerHTML: string;
|
|
17
|
+
textContent: string;
|
|
18
|
+
text: string;
|
|
19
|
+
};
|
|
20
|
+
export type ZNodeText = {
|
|
21
|
+
text: string;
|
|
22
|
+
} & ZNode;
|
|
23
|
+
export type TranslateData = {
|
|
24
|
+
value: string;
|
|
25
|
+
meta?: {
|
|
26
|
+
prefix: string;
|
|
27
|
+
suffix: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export type dbTranslationRow = {
|
|
31
|
+
lang: string;
|
|
32
|
+
key: string;
|
|
33
|
+
value: string;
|
|
34
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type ZUser = {
|
|
2
|
+
id: number;
|
|
3
|
+
email: string;
|
|
4
|
+
session: string;
|
|
5
|
+
role: string | null;
|
|
6
|
+
admin: 0 | 1;
|
|
7
|
+
updated_at: any;
|
|
8
|
+
created_at: any;
|
|
9
|
+
};
|
|
10
|
+
export type ZRequiredUserColumns = {
|
|
11
|
+
email: string;
|
|
12
|
+
role: string | null;
|
|
13
|
+
pass: string;
|
|
14
|
+
admin: 0 | 1;
|
|
15
|
+
};
|
|
16
|
+
export type ZUserCredentials = {
|
|
17
|
+
email: string;
|
|
18
|
+
pass: string;
|
|
19
|
+
};
|
|
20
|
+
export type ZUserSession = {
|
|
21
|
+
session: string;
|
|
22
|
+
};
|
package/lib/user_service.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZSqlService } from './sql_service';
|
|
2
|
-
import { ZRequiredUserColumns, ZUser, ZUserSession, ZUserCredentials } from './typings/
|
|
2
|
+
import { ZRequiredUserColumns, ZUser, ZUserSession, ZUserCredentials } from './typings/user_types';
|
|
3
3
|
export declare class ZUserService {
|
|
4
4
|
private tableName;
|
|
5
5
|
private sqlService;
|