package io.live4.api3;

import org.stjs.javascript.annotation.Namespace;

@Namespace("live4api")
public class Api3UserUrls {
    public static final String API_3_USER = "/api/3/users";
    public static final String BYEMAIL = "/byemail";

    public static final String OBJECT = "/object";
    public static final String LIST = "/list";
    public static final String CHECK = "/check";

    public static final String createUrl() {
        return API_3_USER + OBJECT;
    }

    public static final String updateUrl() {
        return API_3_USER + OBJECT;
    }

    public static final String getUrl(String id) {
        return API_3_USER + OBJECT + "/" + id;
    }

    public static final String listUrl(String orgId) {
        return API_3_USER + LIST + "/" + orgId;
    }

    public static String byEmailUrl(String email) {
        return API_3_USER + BYEMAIL + "/" + email;
    }

    public static String checkUserByEmail(String email) {
        return API_3_USER + CHECK + "/" + email;
    }
}

@@ -378,16 +378,67 @@
 /check%22;
+%0A    public static final String ISTEMP = %22/istemp%22;
 %0A%0A    pu
@@ -1044,11 +1044,120 @@
 l;%0A    %7D
+%0A%0A    public static String isUserTemp(String email) %7B%0A        return API_3_USER + ISTEMP + %22/%22 + email;%0A    %7D
 %0A%7D%0A

is user temp