mftsccs-browser 2.1.239-beta → 2.1.240-beta

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.
@@ -11,6 +11,8 @@ export declare class BaseUrl {
11
11
  static isNearestCache: boolean;
12
12
  static isPwa: boolean;
13
13
  static FLAGS: any;
14
+ static RECAPTCHA_SITE_KEY: string;
15
+ static RECAPTCHA_ACTION: string;
14
16
  static BASE_RANDOMIZER: number;
15
17
  static setRandomizer(id: number): void;
16
18
  static getRandomizer(): number;
@@ -81,6 +83,7 @@ export declare class BaseUrl {
81
83
  static r2PresignedUploadUrl(): string;
82
84
  static sendMail(): string;
83
85
  static sendBulkMail(): string;
86
+ static sendPersonalMail(): string;
84
87
  static getWidgetData(): string;
85
88
  static getLatestWidgetData(): string;
86
89
  static getRecentWidgetData(): string;
@@ -3,16 +3,39 @@ export interface EmailBody {
3
3
  heading: string;
4
4
  body?: string;
5
5
  attachments?: Array<string>;
6
+ CaptchaToken?: string;
7
+ recaptchaAction?: string;
6
8
  }
7
9
  export interface BulkEmailBody extends Omit<EmailBody, 'toAddress'> {
8
10
  toAddress?: string;
9
11
  ccAddresses: Array<string>;
10
12
  }
13
+ export interface RecaptchaOptions {
14
+ token: string;
15
+ action?: string;
16
+ fieldName?: string;
17
+ actionFieldName?: string;
18
+ headerName?: string;
19
+ }
20
+ export interface SendEmailOptions {
21
+ bulk?: boolean;
22
+ personal?: boolean;
23
+ recaptcha?: string | RecaptchaOptions;
24
+ }
11
25
  /**
12
26
  * Method to send Email to user
13
27
  * @param body FormData | EmailBody
14
28
  * @param token string
15
- * @param bulk boolean
29
+ * @param bulkOrOptions boolean | SendEmailOptions
30
+ * @param recaptchaToken string
31
+ * @returns JSON | string | null
32
+ */
33
+ export declare const sendEmail: (body: FormData | EmailBody | BulkEmailBody, token: string, bulkOrOptions?: boolean | SendEmailOptions, recaptchaToken?: string) => Promise<any>;
34
+ /**
35
+ * Method to send a personal Email to user.
36
+ * @param body FormData | EmailBody
37
+ * @param token string
38
+ * @param options SendEmailOptions
16
39
  * @returns JSON | string | null
17
40
  */
18
- export declare const sendEmail: (body: FormData | EmailBody | BulkEmailBody, token: string, bulk?: boolean) => Promise<any>;
41
+ export declare const sendPersonalEmail: (body: FormData | EmailBody, token: string, options?: Omit<SendEmailOptions, "personal" | "bulk">) => Promise<any>;
@@ -107,7 +107,8 @@ export { FilterSearch } from './DataStructures/FilterSearch';
107
107
  export { SearchStructure } from './DataStructures/Search/SearchStructure';
108
108
  export { LocalConceptsData } from './DataStructures/Local/LocalConceptData';
109
109
  export { Logger } from "./Middleware/logger.service";
110
- export { sendEmail } from "./Services/Mail";
110
+ export { sendEmail, sendPersonalEmail } from "./Services/Mail";
111
+ export type { RecaptchaOptions, SendEmailOptions } from "./Services/Mail";
111
112
  export { BuilderStatefulWidget } from "./Widgets/BuilderStatefulWidget";
112
113
  export { LocalTransaction } from "./Services/Transaction/LocalTransaction";
113
114
  export { InnerActions } from "./Constants/general.const";
@@ -357,6 +358,8 @@ declare function init(url?: string, aiurl?: string, accessToken?: string, nodeUr
357
358
  logserver?: string;
358
359
  isPwa?: boolean;
359
360
  enableCache?: boolean;
361
+ recaptchaSiteKey?: string;
362
+ recaptchaAction?: string;
360
363
  }): Promise<true | undefined>;
361
364
  /**
362
365
  * Method to send message to the service worker from main thread
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mftsccs-browser",
3
- "version": "2.1.239-beta",
3
+ "version": "2.1.240-beta",
4
4
  "environment": "production",
5
5
  "description": "Full Pack of concept and connection system",
6
6
  "main": "dist/main.bundle.js",