auth-mn 0.1.4 → 0.1.5

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/dist/index.d.ts CHANGED
@@ -55,6 +55,30 @@ declare const _default: {
55
55
  data: null;
56
56
  message: string;
57
57
  }>;
58
+ MAIL: (body: {
59
+ type: "notification" | "otp" | "custom";
60
+ form?: {
61
+ name?: string;
62
+ email?: string;
63
+ };
64
+ to: string[];
65
+ subject: string;
66
+ body: {
67
+ name: string;
68
+ title?: string;
69
+ desc?: string;
70
+ otp?: string | number;
71
+ button?: {
72
+ text: string;
73
+ url: string | null;
74
+ };
75
+ footer_text?: string;
76
+ };
77
+ }) => Promise<{
78
+ success: boolean;
79
+ data: null;
80
+ message: string;
81
+ }>;
58
82
  _3RD: {
59
83
  TOKI: (body: {
60
84
  accountId: string;
@@ -87,6 +87,11 @@ declare const _default: {
87
87
  data: null;
88
88
  message: string;
89
89
  }>;
90
+ MAIL: (body: MailT) => Promise<{
91
+ success: boolean;
92
+ data: null;
93
+ message: string;
94
+ }>;
90
95
  _3RD: {
91
96
  TOKI: (body: {
92
97
  accountId: string;
@@ -222,6 +222,7 @@ exports._3RD_TOKI_HIPAY = _3RD_TOKI_HIPAY;
222
222
  exports.default = {
223
223
  SinglePushNoti: exports.SinglePushNoti,
224
224
  SMS: exports.SMS,
225
+ MAIL: exports.MAIL,
225
226
  _3RD: {
226
227
  TOKI: exports._3RD_TOKI_NOTI,
227
228
  HIPAY: exports._3RD_TOKI_HIPAY,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auth-mn",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Auth.mn API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",