drapcode-constant 1.3.6 → 1.3.8
Sign up to get free protection for your applications and to get access to all the features.
- package/build/constants/builder.d.ts +2 -0
- package/build/constants/builder.js +17 -2
- package/build/constants/externalApi.d.ts +1 -0
- package/build/constants/externalApi.js +3 -2
- package/build/constants/plugins.d.ts +2 -0
- package/build/constants/plugins.js +2 -0
- package/build/constants/redis.d.ts +1 -0
- package/build/constants/redis.js +2 -1
- package/package.json +1 -1
@@ -47,6 +47,8 @@ export declare const ENV_VARIABLE = "ENV_VARIABLE";
|
|
47
47
|
export declare const APP_CONSTANT = "APP_CONSTANT";
|
48
48
|
export declare const CONSTANT = "CONSTANT";
|
49
49
|
export declare const CONSTRAINT = "CONSTRAINT";
|
50
|
+
export declare const PAGE_SNAPSHOT = "PAGE_SNAPSHOT";
|
51
|
+
export declare const SNIPPET_SNAPSHOT = "SNIPPET_SNAPSHOT";
|
50
52
|
export declare const PERMISSION_TYPES: ({
|
51
53
|
key: string;
|
52
54
|
label: string;
|
@@ -12,8 +12,10 @@ 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.
|
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.PERMISSION_TYPES = exports.SNIPPET_SNAPSHOT = void 0;
|
16
17
|
var moment_1 = __importDefault(require("moment"));
|
18
|
+
var externalApi_1 = require("./externalApi");
|
17
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>"; };
|
18
20
|
exports.pageNotFound = pageNotFound;
|
19
21
|
var getTimezoneOffset = function (time) {
|
@@ -162,6 +164,8 @@ exports.ENV_VARIABLE = "ENV_VARIABLE";
|
|
162
164
|
exports.APP_CONSTANT = "APP_CONSTANT";
|
163
165
|
exports.CONSTANT = "CONSTANT";
|
164
166
|
exports.CONSTRAINT = "CONSTRAINT";
|
167
|
+
exports.PAGE_SNAPSHOT = "PAGE_SNAPSHOT";
|
168
|
+
exports.SNIPPET_SNAPSHOT = "SNIPPET_SNAPSHOT";
|
165
169
|
exports.PERMISSION_TYPES = [
|
166
170
|
{ key: exports.RECORD, label: "All Records", category: "Collection" },
|
167
171
|
{ key: exports.ACTION, label: "Actions", category: "Action" },
|
@@ -170,6 +174,11 @@ exports.PERMISSION_TYPES = [
|
|
170
174
|
{ key: exports.CODE_EXPORT, label: "Code Export", category: "App Settings" },
|
171
175
|
{ key: exports.COLLECTION, label: "Collections", category: "Collection" },
|
172
176
|
{ key: exports.COLLECTION_ITEM, label: "Collection Items", category: "Collection" },
|
177
|
+
{
|
178
|
+
key: externalApi_1.COLLECTION_SNAPSHOT,
|
179
|
+
label: "Collection Snapshots",
|
180
|
+
category: "App Settings",
|
181
|
+
},
|
173
182
|
{ key: exports.CONSTANT, label: "Collection Constants", category: "Collection" },
|
174
183
|
{ key: exports.CONSTRAINT, label: "Constraints", category: "Collection" },
|
175
184
|
{ key: exports.CONSTRUCTOR, label: "Constructors", category: "Collection" },
|
@@ -206,12 +215,18 @@ exports.PERMISSION_TYPES = [
|
|
206
215
|
{ key: exports.PLUGIN, label: "Plugins", category: "Plugin" },
|
207
216
|
{ key: exports.PROJECT_VERSION, label: "Project Version", category: "App Settings" },
|
208
217
|
{ key: exports.PWA_CONFIG, label: "PWA Config", category: "App Settings" },
|
218
|
+
{ key: exports.PAGE_SNAPSHOT, label: "Page Snapshots", category: "App Settings" },
|
209
219
|
{ key: exports.RESOURCE, label: "Resources", category: "App Settings" },
|
210
220
|
{ key: exports.SMS_TEMPLATE_PER, label: "SMS Templates", category: "Templates" },
|
211
221
|
{ key: exports.SNIPPET, label: "Snippets", category: "App Settings" },
|
222
|
+
{
|
223
|
+
key: exports.SNIPPET_SNAPSHOT,
|
224
|
+
label: "Snippet Snapshots",
|
225
|
+
category: "App Settings",
|
226
|
+
},
|
212
227
|
{
|
213
228
|
key: exports.TOOLTIP_TEMPLATE_PER,
|
214
|
-
label: "
|
229
|
+
label: "Tooltip Templates",
|
215
230
|
category: "Templates",
|
216
231
|
},
|
217
232
|
{ key: exports.VALIDATION, label: "Validations", category: "Collection" },
|
@@ -47,6 +47,7 @@ export declare const CURRENT_USER_REFERENCE_FIELDS_PREFIX = "current_user_refere
|
|
47
47
|
export declare const XATA = "XATA";
|
48
48
|
export declare const DIRECTUS = "DIRECTUS";
|
49
49
|
export declare const SALESFORCE = "SALESFORCE";
|
50
|
+
export declare const COLLECTION_SNAPSHOT = "COLLECTION_SNAPSHOT";
|
50
51
|
export declare const API_TYPES: string[];
|
51
52
|
export declare const API_TYPES2: string[];
|
52
53
|
export declare const dataSourcePrimaryKeys: string[];
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
exports.fieldsKeyPrefixMap = exports.fieldsPrefixForDF = exports.dataSourcePrimaryKeys = exports.API_TYPES2 = void 0;
|
3
|
+
exports.COLLECTION_SNAPSHOT = exports.SALESFORCE = exports.DIRECTUS = exports.XATA = exports.CURRENT_USER_REFERENCE_FIELDS_PREFIX = exports.CURRENT_USER_PREFIX = exports.ENVIRONMENT_VARIABLE_PREFIX = exports.CURRENT_USER_DERIVED_FIELDS_PREFIX = exports.PROJECT_CONSTANTS_PREFIX = exports.COLLECTION_CONSTANTS_PREFIX = exports.DERIVED_FIELDS_PREFIX = exports.REFERENCE_FIELDS_PREFIX = exports.FORM_DATA_SESSION = exports.ENVIRONMENT_VARIABLE = exports.PROJECT_CONSTANTS = exports.COLLECTION_CONSTANTS = exports.DERIVED_FIELDS = exports.REFERENCE_FIELDS = exports.CURRENT_TENANT_LOWER = exports.CURRENT_USER_LOWER = exports.CURRENT_SESSION = exports.OAUTH2 = exports.AURORA = exports.MARIADB = exports.ORACLEDB = exports.MS_SQL_SERVER = exports.SQLITE = exports.MYSQL = exports.POSTGRESQL = exports.TOOLTIP_TEMPLATE = exports.SMS_TEMPLATE = exports.EMAIL_TEMPLATE = exports.DRAPCODE = exports.APP_WRITE = exports.NOTION = exports.APPWRITE = exports.SUPABASE = exports.XANO = exports.MAKE = exports.INTEGROMAT = exports.CHAT_GPT = exports.ZAPIER = exports.FIREBASE_FUNCTION = exports.FIREBASE_CLOUD_FIRESTORE = exports.FIREBASE_REALTIME_DATABASE = exports.AIRTABLE = exports.GOOGLE_SHEET = exports.DATABASE = exports.REST_API = exports.REST_API_PRIMAREY_KEY = void 0;
|
4
|
+
exports.fieldsKeyPrefixMap = exports.fieldsPrefixForDF = exports.dataSourcePrimaryKeys = exports.API_TYPES2 = exports.API_TYPES = void 0;
|
5
5
|
exports.REST_API_PRIMAREY_KEY = "_data_source_rest_api_primary_id";
|
6
6
|
exports.REST_API = "REST_API";
|
7
7
|
exports.DATABASE = "DATABASE";
|
@@ -51,6 +51,7 @@ exports.CURRENT_USER_REFERENCE_FIELDS_PREFIX = "current_user_reference_field.";
|
|
51
51
|
exports.XATA = "XATA";
|
52
52
|
exports.DIRECTUS = "DIRECTUS";
|
53
53
|
exports.SALESFORCE = "SALESFORCE";
|
54
|
+
exports.COLLECTION_SNAPSHOT = "COLLECTION_SNAPSHOT";
|
54
55
|
exports.API_TYPES = [
|
55
56
|
exports.REST_API,
|
56
57
|
exports.DATABASE,
|
@@ -52,6 +52,8 @@ export declare const pluginCode: {
|
|
52
52
|
LOAN_MANAGEMENT: string;
|
53
53
|
OAUTH_2: string;
|
54
54
|
DATA_VIEW_ACTIVITY_TRACKER: string;
|
55
|
+
FACEBOOK_LOGIN: string;
|
56
|
+
TWITTER_LOGIN: string;
|
55
57
|
};
|
56
58
|
export declare const loginPluginCode: string[];
|
57
59
|
export declare const chatGptModels: {
|
@@ -55,6 +55,8 @@ exports.pluginCode = {
|
|
55
55
|
LOAN_MANAGEMENT: "LOAN_MANAGEMENT",
|
56
56
|
OAUTH_2: "OAUTH_2",
|
57
57
|
DATA_VIEW_ACTIVITY_TRACKER: "DATA_VIEW_ACTIVITY_TRACKER",
|
58
|
+
FACEBOOK_LOGIN: "FACEBOOK_LOGIN",
|
59
|
+
TWITTER_LOGIN: "TWITTER_LOGIN",
|
58
60
|
};
|
59
61
|
exports.loginPluginCode = [
|
60
62
|
exports.pluginCode.LOGIN,
|
@@ -13,3 +13,4 @@ export declare const PROJECT_DETAIL = "project_detail";
|
|
13
13
|
export declare const PROJECT_PAGE_SNAPSHOT_DETAIL = "project_page_snapshot_detail";
|
14
14
|
export declare const PROJECT_SNIPPET_SNAPSHOT_DETAIL = "project_snippet_snapshot_detail";
|
15
15
|
export declare const COLLECTION_DETAIL_FOR_QUERY = "collection-detail-for-query";
|
16
|
+
export declare const PROJECT_COLLECTION_SNAPSHOT_DETAIL = "project_collection_snapshot_detail";
|
package/build/constants/redis.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.COLLECTION_DETAIL_FOR_QUERY = exports.PROJECT_SNIPPET_SNAPSHOT_DETAIL = exports.PROJECT_PAGE_SNAPSHOT_DETAIL = exports.PROJECT_DETAIL = exports.PROJECT_LIST = exports.ERROR_404_PAGE = exports.DEFAULT_PAGE = exports.PROJECT_PAGE_DETAIL = exports.PROJECT_FOLDER_LIST = exports.FOLDER_LIST = exports.COLLECTION_BY_UUID = exports.COLLECTION_BY_NAME = exports.PROJECT_COLLECTION = exports.PROJECT_DOMAIN_COLLECTIONS = exports.PROJECT_COLLECTIONS = void 0;
|
3
|
+
exports.PROJECT_COLLECTION_SNAPSHOT_DETAIL = exports.COLLECTION_DETAIL_FOR_QUERY = exports.PROJECT_SNIPPET_SNAPSHOT_DETAIL = exports.PROJECT_PAGE_SNAPSHOT_DETAIL = exports.PROJECT_DETAIL = exports.PROJECT_LIST = exports.ERROR_404_PAGE = exports.DEFAULT_PAGE = exports.PROJECT_PAGE_DETAIL = exports.PROJECT_FOLDER_LIST = exports.FOLDER_LIST = exports.COLLECTION_BY_UUID = exports.COLLECTION_BY_NAME = exports.PROJECT_COLLECTION = exports.PROJECT_DOMAIN_COLLECTIONS = exports.PROJECT_COLLECTIONS = void 0;
|
4
4
|
exports.PROJECT_COLLECTIONS = "project-collections";
|
5
5
|
exports.PROJECT_DOMAIN_COLLECTIONS = "project-domain-collections";
|
6
6
|
exports.PROJECT_COLLECTION = "project-collection";
|
@@ -16,3 +16,4 @@ exports.PROJECT_DETAIL = "project_detail";
|
|
16
16
|
exports.PROJECT_PAGE_SNAPSHOT_DETAIL = "project_page_snapshot_detail";
|
17
17
|
exports.PROJECT_SNIPPET_SNAPSHOT_DETAIL = "project_snippet_snapshot_detail";
|
18
18
|
exports.COLLECTION_DETAIL_FOR_QUERY = "collection-detail-for-query";
|
19
|
+
exports.PROJECT_COLLECTION_SNAPSHOT_DETAIL = "project_collection_snapshot_detail";
|