drapcode-constant 1.2.9 → 1.3.1
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.
@@ -10,3 +10,51 @@ export declare const defaultHeaderCSS: string[];
|
|
10
10
|
export declare const defaultFonts: string[];
|
11
11
|
export declare const brandMessage: (brand_msg: string) => string;
|
12
12
|
export declare const primaryBodyJS: string[];
|
13
|
+
export declare const COLLECTION = "COLLECTION";
|
14
|
+
export declare const RECORD = "RECORD";
|
15
|
+
export declare const FILTER = "FILTER";
|
16
|
+
export declare const VALIDATION = "VALIDATION";
|
17
|
+
export declare const PAGE = "PAGE";
|
18
|
+
export declare const SNIPPET = "SNIPPET";
|
19
|
+
export declare const EVENT = "EVENT";
|
20
|
+
export declare const EXTERNAL_API = "EXTERNAL_API";
|
21
|
+
export declare const CUSTOM_COMPONENT = "CUSTOM_COMPONENT";
|
22
|
+
export declare const CUSTOM_DATA_MAPPING = "CUSTOM_DATA_MAPPING";
|
23
|
+
export declare const COLLECTION_ITEM = "COLLECTION_ITEM";
|
24
|
+
export declare const PLUGIN = "PLUGIN";
|
25
|
+
export declare const EMAIL_TEMPLATE_PER = "EMAIL_TEMPLATE";
|
26
|
+
export declare const SMS_TEMPLATE_PER = "SMS_TEMPLATE";
|
27
|
+
export declare const TOOLTIP_TEMPLATE_PER = "TOOLTIP_TEMPLATE";
|
28
|
+
export declare const DATA_SOURCE = "DATA_SOURCE";
|
29
|
+
export declare const ACTION = "ACTION";
|
30
|
+
export declare const FIELD = "FIELD";
|
31
|
+
export declare const WEBHOOK = "WEBHOOK";
|
32
|
+
export declare const BACKGROUND_TASK = "BACKGROUND_TASK";
|
33
|
+
export declare const PROJECT_VERSION = "PROJECT_VERSION";
|
34
|
+
export declare const DEVELOPER_API = "DEVELOPER_API";
|
35
|
+
export declare const DATABASE_EXPORT = "DATABASE_EXPORT";
|
36
|
+
export declare const CODE_EXPORT = "CODE_EXPORT";
|
37
|
+
export declare const LOCALIZATION = "LOCALIZATION";
|
38
|
+
export declare const PWA_CONFIG = "PWA_CONFIG";
|
39
|
+
export declare const CUSTOM_CSS = "CUSTOM_CSS";
|
40
|
+
export declare const CUSTOM_JS = "CUSTOM_JS";
|
41
|
+
export declare const HTML_THEME = "HTML_THEME";
|
42
|
+
export declare const CONSTRUCTOR = "CONSTRUCTOR";
|
43
|
+
export declare const DERIVED_FIELD = "DERIVED_FIELD";
|
44
|
+
export declare const RESOURCE = "RESOURCE";
|
45
|
+
export declare const ENVIRONMENT = "ENVIRONMENT";
|
46
|
+
export declare const ENV_VARIABLE = "ENV_VARIABLE";
|
47
|
+
export declare const APP_CONSTANT = "APP_CONSTANT";
|
48
|
+
export declare const CONSTANT = "CONSTANT";
|
49
|
+
export declare const CONSTRAINT = "CONSTRAINT";
|
50
|
+
export declare const PERMISSION_TYPES: ({
|
51
|
+
key: string;
|
52
|
+
label: string;
|
53
|
+
category: string;
|
54
|
+
catgeory?: undefined;
|
55
|
+
} | {
|
56
|
+
key: string;
|
57
|
+
label: string;
|
58
|
+
catgeory: string;
|
59
|
+
category?: undefined;
|
60
|
+
})[];
|
@@ -12,7 +12,7 @@ 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.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;
|
15
|
+
exports.PERMISSION_TYPES = 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
16
|
var moment_1 = __importDefault(require("moment"));
|
17
17
|
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>"; };
|
18
18
|
exports.pageNotFound = pageNotFound;
|
@@ -124,3 +124,95 @@ exports.primaryBodyJS = __spreadArray(__spreadArray([
|
|
124
124
|
'<script src="https://unpkg.com/@popperjs/core@2"></script>',
|
125
125
|
'<script src="https://unpkg.com/tippy.js@6"></script>',
|
126
126
|
], false);
|
127
|
+
exports.COLLECTION = "COLLECTION";
|
128
|
+
exports.RECORD = "RECORD";
|
129
|
+
exports.FILTER = "FILTER";
|
130
|
+
exports.VALIDATION = "VALIDATION";
|
131
|
+
exports.PAGE = "PAGE";
|
132
|
+
exports.SNIPPET = "SNIPPET";
|
133
|
+
exports.EVENT = "EVENT";
|
134
|
+
exports.EXTERNAL_API = "EXTERNAL_API";
|
135
|
+
exports.CUSTOM_COMPONENT = "CUSTOM_COMPONENT";
|
136
|
+
exports.CUSTOM_DATA_MAPPING = "CUSTOM_DATA_MAPPING";
|
137
|
+
exports.COLLECTION_ITEM = "COLLECTION_ITEM";
|
138
|
+
exports.PLUGIN = "PLUGIN";
|
139
|
+
exports.EMAIL_TEMPLATE_PER = "EMAIL_TEMPLATE";
|
140
|
+
exports.SMS_TEMPLATE_PER = "SMS_TEMPLATE";
|
141
|
+
exports.TOOLTIP_TEMPLATE_PER = "TOOLTIP_TEMPLATE";
|
142
|
+
exports.DATA_SOURCE = "DATA_SOURCE";
|
143
|
+
exports.ACTION = "ACTION";
|
144
|
+
exports.FIELD = "FIELD";
|
145
|
+
exports.WEBHOOK = "WEBHOOK";
|
146
|
+
exports.BACKGROUND_TASK = "BACKGROUND_TASK";
|
147
|
+
exports.PROJECT_VERSION = "PROJECT_VERSION";
|
148
|
+
exports.DEVELOPER_API = "DEVELOPER_API";
|
149
|
+
exports.DATABASE_EXPORT = "DATABASE_EXPORT";
|
150
|
+
exports.CODE_EXPORT = "CODE_EXPORT";
|
151
|
+
exports.LOCALIZATION = "LOCALIZATION";
|
152
|
+
exports.PWA_CONFIG = "PWA_CONFIG";
|
153
|
+
exports.CUSTOM_CSS = "CUSTOM_CSS";
|
154
|
+
exports.CUSTOM_JS = "CUSTOM_JS";
|
155
|
+
exports.HTML_THEME = "HTML_THEME";
|
156
|
+
exports.CONSTRUCTOR = "CONSTRUCTOR";
|
157
|
+
exports.DERIVED_FIELD = "DERIVED_FIELD";
|
158
|
+
exports.RESOURCE = "RESOURCE";
|
159
|
+
exports.ENVIRONMENT = "ENVIRONMENT";
|
160
|
+
exports.ENV_VARIABLE = "ENV_VARIABLE";
|
161
|
+
exports.APP_CONSTANT = "APP_CONSTANT";
|
162
|
+
exports.CONSTANT = "CONSTANT";
|
163
|
+
exports.CONSTRAINT = "CONSTRAINT";
|
164
|
+
exports.PERMISSION_TYPES = [
|
165
|
+
{ key: exports.RECORD, label: "All Records", category: "Collection" },
|
166
|
+
{ key: exports.ACTION, label: "Actions", category: "Action" },
|
167
|
+
{ key: exports.APP_CONSTANT, label: "App Constants", category: "App Settings" },
|
168
|
+
{ key: exports.BACKGROUND_TASK, label: "Background Task", category: "App Settings" },
|
169
|
+
{ key: exports.CODE_EXPORT, label: "Code Export", category: "App Settings" },
|
170
|
+
{ key: exports.COLLECTION, label: "Collections", category: "Collection" },
|
171
|
+
{ key: exports.COLLECTION_ITEM, label: "Collection Items", category: "Collection" },
|
172
|
+
{ key: exports.CONSTANT, label: "Collection Constants", category: "Collection" },
|
173
|
+
{ key: exports.CONSTRAINT, label: "Constraints", category: "Collection" },
|
174
|
+
{ key: exports.CONSTRUCTOR, label: "Constructors", category: "Collection" },
|
175
|
+
{
|
176
|
+
key: exports.CUSTOM_COMPONENT,
|
177
|
+
label: "Custom Components",
|
178
|
+
category: "App Settings",
|
179
|
+
},
|
180
|
+
{ key: exports.CUSTOM_CSS, label: "Custom CSS", category: "App Settings" },
|
181
|
+
{
|
182
|
+
key: exports.CUSTOM_DATA_MAPPING,
|
183
|
+
label: "Custom Data Mappings",
|
184
|
+
category: "App Settings",
|
185
|
+
},
|
186
|
+
{ key: exports.CUSTOM_JS, label: "Custom JS", category: "App Settings" },
|
187
|
+
{ key: exports.DATABASE_EXPORT, label: "Database Export", category: "App Settings" },
|
188
|
+
{ key: exports.DATA_SOURCE, label: "Data Sources", category: "Data Sources" },
|
189
|
+
{ key: exports.DERIVED_FIELD, label: "Derived Fields", category: "Collection" },
|
190
|
+
{ key: exports.DEVELOPER_API, label: "Developer API", category: "App Settings" },
|
191
|
+
{ key: exports.EMAIL_TEMPLATE_PER, label: "Email Templates", category: "Templates" },
|
192
|
+
{ key: exports.ENVIRONMENT, label: "Environment", category: "App Settings" },
|
193
|
+
{
|
194
|
+
key: exports.ENV_VARIABLE,
|
195
|
+
label: "Environment Variables",
|
196
|
+
category: "App Settings",
|
197
|
+
},
|
198
|
+
{ key: exports.EVENT, label: "Events", category: "Event" },
|
199
|
+
{ key: exports.EXTERNAL_API, label: "External APIs", catgeory: "External API" },
|
200
|
+
{ key: exports.FIELD, label: "Fields", category: "Collection" },
|
201
|
+
{ key: exports.FILTER, label: "Filters", category: "Collection" },
|
202
|
+
{ key: exports.HTML_THEME, label: "HTML Theme", category: "App Settings" },
|
203
|
+
{ key: exports.LOCALIZATION, label: "Localization", category: "App Settings" },
|
204
|
+
{ key: exports.PAGE, label: "Pages", category: "App Settings" },
|
205
|
+
{ key: exports.PLUGIN, label: "Plugins", category: "Plugin" },
|
206
|
+
{ key: exports.PROJECT_VERSION, label: "Project Version", category: "App Settings" },
|
207
|
+
{ key: exports.PWA_CONFIG, label: "PWA Config", category: "App Settings" },
|
208
|
+
{ key: exports.RESOURCE, label: "Resources", category: "App Settings" },
|
209
|
+
{ key: exports.SMS_TEMPLATE_PER, label: "SMS Templates", category: "Templates" },
|
210
|
+
{ key: exports.SNIPPET, label: "Snippets", category: "App Settings" },
|
211
|
+
{
|
212
|
+
key: exports.TOOLTIP_TEMPLATE_PER,
|
213
|
+
label: "ToolTip Templates",
|
214
|
+
category: "Templates",
|
215
|
+
},
|
216
|
+
{ key: exports.VALIDATION, label: "Validations", category: "Collection" },
|
217
|
+
{ key: exports.WEBHOOK, label: "Webhooks", category: "Webhook" },
|
218
|
+
];
|