@itutoring/itutoring_application_js_api 1.7.13 → 1.7.15

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
1
  /*
2
- * Copyright (C) 2024 iTutoring s.r.o.
2
+ * Copyright (C) 2025 iTutoring s.r.o.
3
3
  * All rights reserved.
4
4
  *
5
5
  *
@@ -17,7 +17,16 @@ class CustomerAuth
17
17
 
18
18
  // All method names
19
19
  static #SIGN_IN = "SignIn";
20
+ static #RESEND_CONFIRMATION_EMAIL = 'ResendConfirmationEmail';
20
21
 
22
+ static async ResendConfirmationEmail(email)
23
+ {
24
+ var result = await APIController.Post(this.#MODULE, this.#RESEND_CONFIRMATION_EMAIL, {
25
+ 'email': email
26
+ });
27
+
28
+ return result;
29
+ }
21
30
 
22
31
  /**
23
32
  *
@@ -7,7 +7,6 @@
7
7
  */
8
8
 
9
9
  import APIController from "./../apiController";
10
- import Customer from "./../objects/Customer";
11
10
 
12
11
  class CustomerPortal
13
12
  {
@@ -21,25 +20,11 @@ class CustomerPortal
21
20
 
22
21
  /**
23
22
  * Customer must be logged in otherwise this method will return null object.
24
- * @returns Customer object
23
+ * @returns Customer (CRM Object)
25
24
  */
26
25
  static async GetCustomerInfo()
27
26
  {
28
- var customerString = await APIController.Get(this.#MODULE, this.#GET_CUSTOMER_INFO);
29
- if (customerString == "null")
30
- {
31
- return null;
32
-
33
- }
34
- var customerArray = JSON.parse(customerString);
35
-
36
- var customer = new Customer();
37
- customer.Email = customerArray['Email'];
38
- customer.FirstName = customerArray['FirstName'];
39
- customer.LastName = customerArray['LastName'];
40
- customer.ID = customerArray['ID'];
41
- customer.Phone = customerArray['Phone'];
42
-
27
+ var customer = await APIController.Get(this.#MODULE, this.#GET_CUSTOMER_INFO);
43
28
  return customer;
44
29
  }
45
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.7.13",
3
+ "version": "1.7.15",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",