drapcode-constant 1.6.8 → 1.7.0

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.
@@ -346,7 +346,12 @@ exports.linkField = [tel.id, url.id];
346
346
  exports.passwordUrlField = [password.id, url.id]; //N
347
347
  exports.largeTextNumberField = [large_text.id, number.id]; //N
348
348
  exports.booleanUrlField = [boolean.id, url.id]; //N
349
- exports.hiddenField = [createdBy.id, isDeleted.id, updatedBy.id, version.id]; //N
349
+ exports.hiddenField = [
350
+ createdBy.id,
351
+ isDeleted.id,
352
+ updatedBy.id,
353
+ version.id,
354
+ ]; //N
350
355
  exports.passwordBooleanField = [boolean.id, password.id]; //N
351
356
  exports.timeSlotPicker = [time_picker.id, time_slot.id]; //N
352
357
  exports.textNumberField = [text.id, number.id]; //N
@@ -24,14 +24,50 @@ exports.deepseekAiEngines = {
24
24
  };
25
25
  exports.aiModelEngines = [
26
26
  // { label: openAiEngines.GPT_4_VISION, value: openAiEngines.GPT_4_VISION, modelType: OPEN_AI },
27
- { label: exports.openAiEngines.GPT_4_TURBO_2024_04_09, value: exports.openAiEngines.GPT_4_TURBO_2024_04_09, modelType: exports.OPEN_AI },
28
- { label: exports.openAiEngines.GPT_4O_2024_05_13, value: exports.openAiEngines.GPT_4O_2024_05_13, modelType: exports.OPEN_AI },
27
+ {
28
+ label: exports.openAiEngines.GPT_4_TURBO_2024_04_09,
29
+ value: exports.openAiEngines.GPT_4_TURBO_2024_04_09,
30
+ modelType: exports.OPEN_AI,
31
+ },
32
+ {
33
+ label: exports.openAiEngines.GPT_4O_2024_05_13,
34
+ value: exports.openAiEngines.GPT_4O_2024_05_13,
35
+ modelType: exports.OPEN_AI,
36
+ },
29
37
  // { label: claudeAiEngines.CLAUDE_3_SONNET, value: claudeAiEngines.CLAUDE_3_SONNET, modelType: CLAUDE_AI },
30
- { label: exports.claudeAiEngines.CLAUDE_3_OPUS, value: exports.claudeAiEngines.CLAUDE_3_OPUS, modelType: exports.CLAUDE_AI },
31
- { label: exports.claudeAiEngines.CLAUDE_3_HAIKU, value: exports.claudeAiEngines.CLAUDE_3_HAIKU, modelType: exports.CLAUDE_AI },
32
- { label: exports.claudeAiEngines.CLAUDE_3_5_SONNET_2024_06_20, value: exports.claudeAiEngines.CLAUDE_3_5_SONNET_2024_06_20, modelType: exports.CLAUDE_AI },
33
- { label: exports.claudeAiEngines.CLAUDE_3_5_SONNET_2024_10_22, value: exports.claudeAiEngines.CLAUDE_3_5_SONNET_2024_10_22, modelType: exports.CLAUDE_AI },
34
- { label: exports.claudeAiEngines.CLAUDE_3_5_SONNET_LATEST, value: exports.claudeAiEngines.CLAUDE_3_5_SONNET_LATEST, modelType: exports.CLAUDE_AI },
35
- { label: exports.deepseekAiEngines.DEEP_SEEK_V3, value: exports.deepseekAiEngines.DEEP_SEEK_V3, modelType: exports.DEEPSEEK_AI },
36
- { label: exports.deepseekAiEngines.DEEP_SEEK_R1, value: exports.deepseekAiEngines.DEEP_SEEK_R1, modelType: exports.DEEPSEEK_AI },
38
+ {
39
+ label: exports.claudeAiEngines.CLAUDE_3_OPUS,
40
+ value: exports.claudeAiEngines.CLAUDE_3_OPUS,
41
+ modelType: exports.CLAUDE_AI,
42
+ },
43
+ {
44
+ label: exports.claudeAiEngines.CLAUDE_3_HAIKU,
45
+ value: exports.claudeAiEngines.CLAUDE_3_HAIKU,
46
+ modelType: exports.CLAUDE_AI,
47
+ },
48
+ {
49
+ label: exports.claudeAiEngines.CLAUDE_3_5_SONNET_2024_06_20,
50
+ value: exports.claudeAiEngines.CLAUDE_3_5_SONNET_2024_06_20,
51
+ modelType: exports.CLAUDE_AI,
52
+ },
53
+ {
54
+ label: exports.claudeAiEngines.CLAUDE_3_5_SONNET_2024_10_22,
55
+ value: exports.claudeAiEngines.CLAUDE_3_5_SONNET_2024_10_22,
56
+ modelType: exports.CLAUDE_AI,
57
+ },
58
+ {
59
+ label: exports.claudeAiEngines.CLAUDE_3_5_SONNET_LATEST,
60
+ value: exports.claudeAiEngines.CLAUDE_3_5_SONNET_LATEST,
61
+ modelType: exports.CLAUDE_AI,
62
+ },
63
+ {
64
+ label: exports.deepseekAiEngines.DEEP_SEEK_V3,
65
+ value: exports.deepseekAiEngines.DEEP_SEEK_V3,
66
+ modelType: exports.DEEPSEEK_AI,
67
+ },
68
+ {
69
+ label: exports.deepseekAiEngines.DEEP_SEEK_R1,
70
+ value: exports.deepseekAiEngines.DEEP_SEEK_R1,
71
+ modelType: exports.DEEPSEEK_AI,
72
+ },
37
73
  ];
@@ -3,8 +3,6 @@ export declare const getTimezoneOffset: (time?: string) => number;
3
3
  export declare const replaceNbsps: (str: string) => string;
4
4
  export declare const defaultMetaTags: string[];
5
5
  export declare const getAssetLink: (path: string) => string;
6
- export declare const getScriptTag: (paths: Array<string>, isDefer?: boolean) => string[];
7
- export declare const getCssTag: (paths: Array<string>, loadAsync?: boolean) => string[];
8
6
  export declare const defaultHeaderJS: string[];
9
7
  export declare const defaultHeaderCSS: string[];
10
8
  export declare const defaultFonts: string[];
@@ -12,8 +12,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.PAGE_SNAPSHOT = exports.CONSTRAINT = exports.CONSTANT = exports.APP_CONSTANT = exports.ENV_VARIABLE = exports.ENVIRONMENT = exports.RESOURCE = exports.DERIVED_FIELD = exports.CONSTRUCTOR = exports.HTML_THEME = exports.CUSTOM_JS = exports.CUSTOM_CSS = exports.PWA_CONFIG = exports.LOCALIZATION = exports.CODE_EXPORT = exports.DATABASE_EXPORT = exports.DEVELOPER_API = exports.PROJECT_VERSION = exports.BACKGROUND_TASK = exports.WEBHOOK = exports.FIELD = exports.ACTION = exports.DATA_SOURCE = exports.TOOLTIP_TEMPLATE_PER = exports.SMS_TEMPLATE_PER = exports.EMAIL_TEMPLATE_PER = exports.PLUGIN = exports.COLLECTION_ITEM = exports.CUSTOM_DATA_MAPPING = exports.CUSTOM_COMPONENT = exports.EXTERNAL_API = exports.EVENT = exports.SNIPPET = exports.PAGE = exports.VALIDATION = exports.FILTER = exports.RECORD = exports.COLLECTION = exports.primaryBodyJS = exports.brandMessage = exports.defaultFonts = exports.defaultHeaderCSS = exports.defaultHeaderJS = exports.getCssTag = exports.getScriptTag = exports.getAssetLink = exports.defaultMetaTags = exports.replaceNbsps = exports.getTimezoneOffset = exports.pageNotFound = void 0;
16
- exports.falsyValues = exports.truthyValues = exports.PERMISSION_TYPES = exports.SNIPPET_SNAPSHOT = void 0;
15
+ exports.PERMISSION_TYPES = exports.SNIPPET_SNAPSHOT = exports.PAGE_SNAPSHOT = exports.CONSTRAINT = exports.CONSTANT = exports.APP_CONSTANT = exports.ENV_VARIABLE = exports.ENVIRONMENT = exports.RESOURCE = exports.DERIVED_FIELD = exports.CONSTRUCTOR = exports.HTML_THEME = exports.CUSTOM_JS = exports.CUSTOM_CSS = exports.PWA_CONFIG = exports.LOCALIZATION = exports.CODE_EXPORT = exports.DATABASE_EXPORT = exports.DEVELOPER_API = exports.PROJECT_VERSION = exports.BACKGROUND_TASK = exports.WEBHOOK = exports.FIELD = exports.ACTION = exports.DATA_SOURCE = exports.TOOLTIP_TEMPLATE_PER = exports.SMS_TEMPLATE_PER = exports.EMAIL_TEMPLATE_PER = exports.PLUGIN = exports.COLLECTION_ITEM = exports.CUSTOM_DATA_MAPPING = exports.CUSTOM_COMPONENT = exports.EXTERNAL_API = exports.EVENT = exports.SNIPPET = exports.PAGE = exports.VALIDATION = exports.FILTER = exports.RECORD = exports.COLLECTION = exports.primaryBodyJS = exports.brandMessage = exports.defaultFonts = exports.defaultHeaderCSS = exports.defaultHeaderJS = exports.getAssetLink = exports.defaultMetaTags = exports.replaceNbsps = exports.getTimezoneOffset = exports.pageNotFound = void 0;
16
+ exports.falsyValues = exports.truthyValues = void 0;
17
17
  var moment_1 = __importDefault(require("moment"));
18
18
  var externalApi_1 = require("./externalApi");
19
19
  var pageNotFound = function () { return "\n<div data-js=\"drapcode-sections\" id=\"ioob\" class=\"dc-sections\"> \n<div id=\"i45i\" class=\"container\">\n<div id=\"ip9d\" class=\"row\">\n <div id=\"i5t6\" class=\"col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12\"> \n <div id=\"ipmr\" class=\"container\">\n <div id=\"iwzs\" class=\"row\">\n <div id=\"i8j4\" class=\"col\">\n <h1 id=\"il68\" class=\"display-1\">204</h1>\n </div>\n </div>\n <div id=\"ic9ma\" class=\"row\">\n <div id=\"iz54g\" class=\"col\">\n <h3 id=\"igrlf\">No Content<br/></h3>\n <p id=\"iwq91\">There's no page content available<br/></p>\n </div>\n </div>\n </div>\n </div>\n</div>\n</div>\n</div>"; };
@@ -45,7 +45,6 @@ var getScriptTag = function (paths, isDefer) {
45
45
  return "<script type=\"text/javascript\" src=\"".concat((0, exports.getAssetLink)("js/".concat(path)), "\" ").concat(isDefer ? "defer" : "", "></script>");
46
46
  });
47
47
  };
48
- exports.getScriptTag = getScriptTag;
49
48
  var getCssTag = function (paths, loadAsync) {
50
49
  if (loadAsync === void 0) { loadAsync = false; }
51
50
  if (loadAsync) {
@@ -59,11 +58,10 @@ var getCssTag = function (paths, loadAsync) {
59
58
  });
60
59
  }
61
60
  };
62
- exports.getCssTag = getCssTag;
63
- exports.defaultHeaderJS = __spreadArray(__spreadArray([], (0, exports.getScriptTag)(["popper.min.js", "bootstrap.min.js", "feather.min.js"], true), true), [
61
+ exports.defaultHeaderJS = __spreadArray(__spreadArray([], getScriptTag(["popper.min.js", "bootstrap.min.js", "feather.min.js"], true), true), [
64
62
  '<script type="text/javascript" src="https://polyfill.io/v3/polyfill.min.js?features=default" defer></script>',
65
63
  ], false);
66
- exports.defaultHeaderCSS = __spreadArray(__spreadArray([], (0, exports.getCssTag)([
64
+ exports.defaultHeaderCSS = __spreadArray(__spreadArray([], getCssTag([
67
65
  "bootstrap.min.css",
68
66
  "toastr.min.css",
69
67
  "sweetalert2.min.css",
@@ -82,7 +80,7 @@ exports.defaultHeaderCSS = __spreadArray(__spreadArray([], (0, exports.getCssTag
82
80
  ], false);
83
81
  exports.defaultFonts = __spreadArray([
84
82
  '<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>'
85
- ], (0, exports.getCssTag)(["googlefonts.css"], true), true);
83
+ ], getCssTag(["googlefonts.css"], true), true);
86
84
  var brandMessage = function (brand_msg) {
87
85
  return "<div style=\"background-color:white;padding:5px; position: fixed;right: 15px;bottom: 15px;font-size: 15px;font-weight: 600;border-radius: 5px;border: 1px solid #223049;z-index:9999;\">\n <a target=\"_blank\" href=\"https://drapcode.com\" style=\"text-decoration: none;color: #223049;display: flex;align-items: center\">\n <img src=\"https://drapcode.com/favicon.png\" alt=\"DrapCode\" style=\"object-fit: contain;width: 20px\"/> &nbsp;\n ".concat(brand_msg, "\n </a>\n </div>");
88
86
  };
@@ -90,7 +88,7 @@ exports.brandMessage = brandMessage;
90
88
  exports.primaryBodyJS = __spreadArray(__spreadArray([
91
89
  '<script type="text/javascript" src="/resources/constant.js"></script>',
92
90
  '<script type="text/javascript" src="/resources/drapcode.min.js"></script>'
93
- ], (0, exports.getScriptTag)([
91
+ ], getScriptTag([
94
92
  "jquery.validate.min.js",
95
93
  "math.min.js",
96
94
  "moment.js",
@@ -41,7 +41,6 @@ export declare const permissionTypes: {
41
41
  LOGIN_WITH_XANO: string;
42
42
  MAGIC_LINK_LOGIN: string;
43
43
  MESSAGING: string;
44
- MULTIPLE_ROLES: string;
45
44
  OAUTH_2: string;
46
45
  PERMISSIONS_MANAGE: string;
47
46
  PLAID: string;
@@ -35,7 +35,6 @@ var LOGIN_WITH_BACKENDLESS = "LOGIN_WITH_BACKENDLESS";
35
35
  var LOGIN_WITH_XANO = "LOGIN_WITH_XANO";
36
36
  var MAGIC_LINK_LOGIN = "MAGIC_LINK_LOGIN";
37
37
  var MESSAGING = "MESSAGING";
38
- var MULTIPLE_ROLES = "MULTIPLE_ROLES";
39
38
  var MULTI_TENANT_SAAS = "MULTI_TENANT_SAAS";
40
39
  var NOTIFICATION_SETTING = "NOTIFICATION_SETTING";
41
40
  var OAUTH_2 = "OAUTH_2";
@@ -108,7 +107,6 @@ exports.permissionTypes = {
108
107
  LOGIN_WITH_XANO: LOGIN_WITH_XANO,
109
108
  MAGIC_LINK_LOGIN: MAGIC_LINK_LOGIN,
110
109
  MESSAGING: MESSAGING,
111
- MULTIPLE_ROLES: MULTIPLE_ROLES,
112
110
  OAUTH_2: OAUTH_2,
113
111
  PERMISSIONS_MANAGE: PERMISSIONS_MANAGE,
114
112
  PLAID: PLAID,
@@ -40,7 +40,6 @@ export declare const pluginCode: {
40
40
  CHAT_GPT: string;
41
41
  PERMISSIONS_MANAGE: string;
42
42
  MESSAGING: string;
43
- MULTIPLE_ROLES: string;
44
43
  DATA_FORM_SEARCH_HISTORY: string;
45
44
  CHATGPT_CHATBOT_MESSAGING: string;
46
45
  TWO_FACTOR_AUTHENTICATION: string;
@@ -43,7 +43,6 @@ exports.pluginCode = {
43
43
  CHAT_GPT: "CHAT_GPT",
44
44
  PERMISSIONS_MANAGE: "PERMISSIONS_MANAGE",
45
45
  MESSAGING: "MESSAGING",
46
- MULTIPLE_ROLES: "MULTIPLE_ROLES",
47
46
  DATA_FORM_SEARCH_HISTORY: "DATA_FORM_SEARCH_HISTORY",
48
47
  CHATGPT_CHATBOT_MESSAGING: "CHATGPT_CHATBOT_MESSAGING",
49
48
  TWO_FACTOR_AUTHENTICATION: "TWO_FACTOR_AUTHENTICATION",
@@ -46,12 +46,3 @@ exports.DateConstant = __spreadArray([
46
46
  ], exports.DateTimeUnit, true);
47
47
  exports.DateRangeConstant = [exports.CURRENT_MONTH, exports.CURRENT_YEAR];
48
48
  exports.EQUALS_OR_IGNORE = "EQUALS_OR_IGNORE";
49
- /*
50
- export const dateRangeConstants = [
51
- CURRENT_USER,
52
- CURRENT_DATE,
53
- CURRENT_DATE_TIME,
54
- CURRENT_TIME,
55
- ];
56
-
57
- */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drapcode-constant",
3
- "version": "1.6.8",
3
+ "version": "1.7.0",
4
4
  "description": "Drapcode Constants",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",