drapcode-constant 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/build/constants/FieldTypes.d.ts +270 -0
- package/build/constants/FieldTypes.js +483 -0
- package/build/constants/builder.d.ts +12 -0
- package/build/constants/builder.js +117 -0
- package/build/constants/collection.d.ts +2 -0
- package/build/constants/collection.js +23 -0
- package/build/constants/errors.d.ts +0 -0
- package/build/constants/errors.js +1 -0
- package/build/constants/externalApi.d.ts +49 -0
- package/build/constants/externalApi.js +94 -0
- package/build/constants/messages.d.ts +13 -0
- package/build/constants/messages.js +16 -0
- package/build/constants/plugins.d.ts +44 -0
- package/build/constants/plugins.js +52 -0
- package/build/constants/query.d.ts +24 -0
- package/build/constants/query.js +47 -0
- package/build/constants/redis.d.ts +14 -0
- package/build/constants/redis.js +17 -0
- package/build/index.d.ts +8 -0
- package/build/index.js +20 -0
- package/package.json +24 -0
@@ -0,0 +1,49 @@
|
|
1
|
+
export declare const AIRTABLE_PRIMAREY_KEY = "_data_source_airtbale_primary_id";
|
2
|
+
export declare const FIREBASE_REALTIME_DATABASE_PRIMAREY_KEY = "_data_source_firebase_realtime_database_primary_id";
|
3
|
+
export declare const FIREBASE_CLOUD_FIRESTORE_PRIMAREY_KEY = "_data_source_firebase_cloud_firestore_primary_id";
|
4
|
+
export declare const GOOGLE_SHEET_PRIMAREY_KEY = "_data_source_google_sheet_primary_id";
|
5
|
+
export declare const REST_API_PRIMAREY_KEY = "_data_source_rest_api_primary_id";
|
6
|
+
export declare const DATABASE_PRIMAREY_KEY = "_data_source_database_primary_id";
|
7
|
+
export declare const FIREBASE_FUNCTION_PRIMAREY_KEY = "_data_source_firebase_function_primary_id";
|
8
|
+
export declare const REST_API = "REST_API";
|
9
|
+
export declare const DATABASE = "DATABASE";
|
10
|
+
export declare const GOOGLE_SHEET = "GOOGLE_SHEET";
|
11
|
+
export declare const AIRTABLE = "AIRTABLE";
|
12
|
+
export declare const FIREBASE_REALTIME_DATABASE = "FIREBASE_REALTIME_DATABASE";
|
13
|
+
export declare const FIREBASE_CLOUD_FIRESTORE = "FIREBASE_CLOUD_FIRESTORE";
|
14
|
+
export declare const FIREBASE_FUNCTION = "FIREBASE_FUNCTION";
|
15
|
+
export declare const ZAPIER = "ZAPIER";
|
16
|
+
export declare const INTEGROMAT = "INTEGROMAT";
|
17
|
+
export declare const MAKE = "MAKE";
|
18
|
+
export declare const XANO = "XANO";
|
19
|
+
export declare const SUPABASE = "SUPABASE";
|
20
|
+
export declare const APPWRITE = "APPWRITE";
|
21
|
+
export declare const NOTION = "NOTION";
|
22
|
+
export declare const APP_WRITE = "APP_WRITE";
|
23
|
+
export declare const DRAPCODE = "DRAPCODE";
|
24
|
+
export declare const EMAIL_TEMPLATE = "EMAIL_TEMPLATE";
|
25
|
+
export declare const SMS_TEMPLATE = "SMS_TEMPLATE";
|
26
|
+
export declare const CURRENT_SESSION = "current_session";
|
27
|
+
export declare const CURRENT_USER_LOWER = "current_user";
|
28
|
+
export declare const REFERENCE_FIELDS = "reference_fields";
|
29
|
+
export declare const DERIVED_FIELDS = "derived_fields";
|
30
|
+
export declare const COLLECTION_CONSTANTS = "collection_constants";
|
31
|
+
export declare const PROJECT_CONSTANTS = "project_constants";
|
32
|
+
export declare const ENVIRONMENT_VARIABLE = "environment_variable";
|
33
|
+
export declare const FORM_DATA_SESSION = "form_data_session";
|
34
|
+
export declare const REFERENCE_FIELDS_PREFIX = "RF::";
|
35
|
+
export declare const DERIVED_FIELDS_PREFIX = "DF::";
|
36
|
+
export declare const COLLECTION_CONSTANTS_PREFIX = "CC::";
|
37
|
+
export declare const PROJECT_CONSTANTS_PREFIX = "PC::";
|
38
|
+
export declare const CURRENT_USER_DERIVED_FIELDS_PREFIX = "current_user.DF::";
|
39
|
+
export declare const ENVIRONMENT_VARIABLE_PREFIX = "environment_variable.";
|
40
|
+
export declare const CURRENT_USER_PREFIX = "current_user.";
|
41
|
+
export declare const CURRENT_USER_REFERENCE_FIELDS_PREFIX = "current_user_reference_field.";
|
42
|
+
export declare const API_TYPES: string[];
|
43
|
+
export declare const API_TYPES2: string[];
|
44
|
+
export declare const dataSourcePrimaryKeys: string[];
|
45
|
+
export declare const fieldsPrefixForDF: string[];
|
46
|
+
export declare const fieldsKeyPrefixMap: {
|
47
|
+
key: string;
|
48
|
+
prefix: string;
|
49
|
+
}[];
|
@@ -0,0 +1,94 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.fieldsKeyPrefixMap = exports.fieldsPrefixForDF = exports.dataSourcePrimaryKeys = exports.API_TYPES2 = exports.API_TYPES = 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_USER_LOWER = exports.CURRENT_SESSION = exports.SMS_TEMPLATE = exports.EMAIL_TEMPLATE = exports.DRAPCODE = exports.APP_WRITE = exports.NOTION = exports.APPWRITE = exports.SUPABASE = exports.XANO = exports.MAKE = exports.INTEGROMAT = exports.ZAPIER = exports.FIREBASE_FUNCTION = exports.FIREBASE_CLOUD_FIRESTORE = exports.FIREBASE_REALTIME_DATABASE = exports.AIRTABLE = exports.GOOGLE_SHEET = exports.DATABASE = exports.REST_API = exports.FIREBASE_FUNCTION_PRIMAREY_KEY = exports.DATABASE_PRIMAREY_KEY = exports.REST_API_PRIMAREY_KEY = exports.GOOGLE_SHEET_PRIMAREY_KEY = exports.FIREBASE_CLOUD_FIRESTORE_PRIMAREY_KEY = exports.FIREBASE_REALTIME_DATABASE_PRIMAREY_KEY = exports.AIRTABLE_PRIMAREY_KEY = void 0;
|
4
|
+
exports.AIRTABLE_PRIMAREY_KEY = "_data_source_airtbale_primary_id";
|
5
|
+
exports.FIREBASE_REALTIME_DATABASE_PRIMAREY_KEY = "_data_source_firebase_realtime_database_primary_id";
|
6
|
+
exports.FIREBASE_CLOUD_FIRESTORE_PRIMAREY_KEY = "_data_source_firebase_cloud_firestore_primary_id";
|
7
|
+
exports.GOOGLE_SHEET_PRIMAREY_KEY = "_data_source_google_sheet_primary_id";
|
8
|
+
exports.REST_API_PRIMAREY_KEY = "_data_source_rest_api_primary_id";
|
9
|
+
exports.DATABASE_PRIMAREY_KEY = "_data_source_database_primary_id";
|
10
|
+
exports.FIREBASE_FUNCTION_PRIMAREY_KEY = "_data_source_firebase_function_primary_id";
|
11
|
+
exports.REST_API = "REST_API";
|
12
|
+
exports.DATABASE = "DATABASE";
|
13
|
+
exports.GOOGLE_SHEET = "GOOGLE_SHEET";
|
14
|
+
exports.AIRTABLE = "AIRTABLE";
|
15
|
+
exports.FIREBASE_REALTIME_DATABASE = "FIREBASE_REALTIME_DATABASE";
|
16
|
+
exports.FIREBASE_CLOUD_FIRESTORE = "FIREBASE_CLOUD_FIRESTORE";
|
17
|
+
exports.FIREBASE_FUNCTION = "FIREBASE_FUNCTION";
|
18
|
+
exports.ZAPIER = "ZAPIER";
|
19
|
+
exports.INTEGROMAT = "INTEGROMAT";
|
20
|
+
exports.MAKE = "MAKE";
|
21
|
+
exports.XANO = "XANO";
|
22
|
+
exports.SUPABASE = "SUPABASE";
|
23
|
+
exports.APPWRITE = "APPWRITE";
|
24
|
+
exports.NOTION = "NOTION";
|
25
|
+
exports.APP_WRITE = "APP_WRITE";
|
26
|
+
exports.DRAPCODE = "DRAPCODE";
|
27
|
+
exports.EMAIL_TEMPLATE = "EMAIL_TEMPLATE";
|
28
|
+
exports.SMS_TEMPLATE = "SMS_TEMPLATE";
|
29
|
+
exports.CURRENT_SESSION = "current_session";
|
30
|
+
exports.CURRENT_USER_LOWER = "current_user";
|
31
|
+
exports.REFERENCE_FIELDS = "reference_fields";
|
32
|
+
exports.DERIVED_FIELDS = "derived_fields";
|
33
|
+
exports.COLLECTION_CONSTANTS = "collection_constants";
|
34
|
+
exports.PROJECT_CONSTANTS = "project_constants";
|
35
|
+
exports.ENVIRONMENT_VARIABLE = "environment_variable";
|
36
|
+
exports.FORM_DATA_SESSION = "form_data_session";
|
37
|
+
exports.REFERENCE_FIELDS_PREFIX = "RF::";
|
38
|
+
exports.DERIVED_FIELDS_PREFIX = "DF::";
|
39
|
+
exports.COLLECTION_CONSTANTS_PREFIX = "CC::";
|
40
|
+
exports.PROJECT_CONSTANTS_PREFIX = "PC::";
|
41
|
+
exports.CURRENT_USER_DERIVED_FIELDS_PREFIX = "current_user.DF::";
|
42
|
+
exports.ENVIRONMENT_VARIABLE_PREFIX = "environment_variable.";
|
43
|
+
exports.CURRENT_USER_PREFIX = "current_user.";
|
44
|
+
exports.CURRENT_USER_REFERENCE_FIELDS_PREFIX = "current_user_reference_field.";
|
45
|
+
exports.API_TYPES = [
|
46
|
+
exports.REST_API,
|
47
|
+
exports.DATABASE,
|
48
|
+
exports.GOOGLE_SHEET,
|
49
|
+
exports.AIRTABLE,
|
50
|
+
exports.FIREBASE_REALTIME_DATABASE,
|
51
|
+
exports.FIREBASE_CLOUD_FIRESTORE,
|
52
|
+
exports.FIREBASE_FUNCTION,
|
53
|
+
exports.ZAPIER,
|
54
|
+
exports.MAKE,
|
55
|
+
exports.XANO,
|
56
|
+
exports.SUPABASE,
|
57
|
+
exports.APPWRITE,
|
58
|
+
exports.NOTION,
|
59
|
+
];
|
60
|
+
exports.API_TYPES2 = [
|
61
|
+
exports.REST_API,
|
62
|
+
exports.DATABASE,
|
63
|
+
exports.GOOGLE_SHEET,
|
64
|
+
exports.AIRTABLE,
|
65
|
+
exports.FIREBASE_REALTIME_DATABASE,
|
66
|
+
exports.FIREBASE_CLOUD_FIRESTORE,
|
67
|
+
exports.FIREBASE_FUNCTION,
|
68
|
+
];
|
69
|
+
exports.dataSourcePrimaryKeys = [
|
70
|
+
exports.AIRTABLE_PRIMAREY_KEY,
|
71
|
+
exports.FIREBASE_REALTIME_DATABASE_PRIMAREY_KEY,
|
72
|
+
exports.FIREBASE_CLOUD_FIRESTORE_PRIMAREY_KEY,
|
73
|
+
exports.GOOGLE_SHEET_PRIMAREY_KEY,
|
74
|
+
exports.REST_API_PRIMAREY_KEY,
|
75
|
+
exports.DATABASE_PRIMAREY_KEY,
|
76
|
+
exports.FIREBASE_FUNCTION_PRIMAREY_KEY,
|
77
|
+
];
|
78
|
+
exports.fieldsPrefixForDF = [
|
79
|
+
exports.CURRENT_USER_PREFIX,
|
80
|
+
exports.CURRENT_USER_REFERENCE_FIELDS_PREFIX,
|
81
|
+
exports.ENVIRONMENT_VARIABLE_PREFIX,
|
82
|
+
exports.COLLECTION_CONSTANTS_PREFIX,
|
83
|
+
exports.PROJECT_CONSTANTS_PREFIX,
|
84
|
+
exports.REFERENCE_FIELDS_PREFIX,
|
85
|
+
];
|
86
|
+
exports.fieldsKeyPrefixMap = [
|
87
|
+
{ key: exports.CURRENT_USER_LOWER, prefix: exports.CURRENT_USER_LOWER },
|
88
|
+
{ key: exports.CURRENT_SESSION, prefix: exports.CURRENT_SESSION },
|
89
|
+
{ key: exports.ENVIRONMENT_VARIABLE, prefix: exports.ENVIRONMENT_VARIABLE },
|
90
|
+
{ key: exports.REFERENCE_FIELDS, prefix: exports.REFERENCE_FIELDS_PREFIX },
|
91
|
+
{ key: exports.DERIVED_FIELDS, prefix: exports.DERIVED_FIELDS_PREFIX },
|
92
|
+
{ key: exports.COLLECTION_CONSTANTS, prefix: exports.COLLECTION_CONSTANTS_PREFIX },
|
93
|
+
{ key: exports.PROJECT_CONSTANTS, prefix: exports.PROJECT_CONSTANTS_PREFIX },
|
94
|
+
];
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export declare const PROJECT_NOT_FOUND = "Project not found.";
|
2
|
+
export declare const PROJECT_CONSTANT_ALREADY_EXISTS = "A constant with this name already exists.";
|
3
|
+
export declare const PROJECT_ENVIRONMENT_ALREADY_EXISTS = "A environment with this name already exists.";
|
4
|
+
export declare const PROJECT_ENVIRONMENT_TYPE_ALREADY_EXISTS = "A environment with this type already exists.";
|
5
|
+
export declare const PROJECT_CSS_ALREADY_EXISTS = "A CSS Class with this name already exists.";
|
6
|
+
export declare const PROJECT_CSS_URL_ALREADY_EXISTS = "A CSS URL already exists.";
|
7
|
+
export declare const FILE_NOT_FOUND = "File not found";
|
8
|
+
export declare const CSS_URL_TAG_ALREADY_EXISTS = "A CSS URL/Link Tag already exists.";
|
9
|
+
export declare const JS_URL_TAG_ALREADY_EXISTS = "A JavaScript URL/Script Tag already exists.";
|
10
|
+
export declare const ENVIRONMENT_NOT_FOUND = "Environment not found.";
|
11
|
+
export declare const CONSTANT_NOT_FUND = "Constant not found.";
|
12
|
+
export declare const PROJECT_THEME_ALREADY_EXISTS = "Project already has a theme.";
|
13
|
+
export declare const CUSTOM_THEME_NOT_FUND = "Custom Theme not Found";
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CUSTOM_THEME_NOT_FUND = exports.PROJECT_THEME_ALREADY_EXISTS = exports.CONSTANT_NOT_FUND = exports.ENVIRONMENT_NOT_FOUND = exports.JS_URL_TAG_ALREADY_EXISTS = exports.CSS_URL_TAG_ALREADY_EXISTS = exports.FILE_NOT_FOUND = exports.PROJECT_CSS_URL_ALREADY_EXISTS = exports.PROJECT_CSS_ALREADY_EXISTS = exports.PROJECT_ENVIRONMENT_TYPE_ALREADY_EXISTS = exports.PROJECT_ENVIRONMENT_ALREADY_EXISTS = exports.PROJECT_CONSTANT_ALREADY_EXISTS = exports.PROJECT_NOT_FOUND = void 0;
|
4
|
+
exports.PROJECT_NOT_FOUND = "Project not found.";
|
5
|
+
exports.PROJECT_CONSTANT_ALREADY_EXISTS = "A constant with this name already exists.";
|
6
|
+
exports.PROJECT_ENVIRONMENT_ALREADY_EXISTS = "A environment with this name already exists.";
|
7
|
+
exports.PROJECT_ENVIRONMENT_TYPE_ALREADY_EXISTS = "A environment with this type already exists.";
|
8
|
+
exports.PROJECT_CSS_ALREADY_EXISTS = "A CSS Class with this name already exists.";
|
9
|
+
exports.PROJECT_CSS_URL_ALREADY_EXISTS = "A CSS URL already exists.";
|
10
|
+
exports.FILE_NOT_FOUND = "File not found";
|
11
|
+
exports.CSS_URL_TAG_ALREADY_EXISTS = "A CSS URL/Link Tag already exists.";
|
12
|
+
exports.JS_URL_TAG_ALREADY_EXISTS = "A JavaScript URL/Script Tag already exists.";
|
13
|
+
exports.ENVIRONMENT_NOT_FOUND = "Environment not found.";
|
14
|
+
exports.CONSTANT_NOT_FUND = "Constant not found.";
|
15
|
+
exports.PROJECT_THEME_ALREADY_EXISTS = "Project already has a theme.";
|
16
|
+
exports.CUSTOM_THEME_NOT_FUND = "Custom Theme not Found";
|
@@ -0,0 +1,44 @@
|
|
1
|
+
export declare const pluginCode: {
|
2
|
+
AWS_SES: string;
|
3
|
+
FACEBOOK_WIDGET: string;
|
4
|
+
GOOGLE_ANALYTICS: string;
|
5
|
+
TRUSTPILOT_WIDGET: string;
|
6
|
+
TWILIO: string;
|
7
|
+
TWITTER_WIDGET: string;
|
8
|
+
ELFSIGHT_WIDGET: string;
|
9
|
+
GETSITECONTROL: string;
|
10
|
+
SURVEYMONKEY: string;
|
11
|
+
PINTEREST_WIDGET: string;
|
12
|
+
TYPEFORM: string;
|
13
|
+
CALENDLY: string;
|
14
|
+
LANDBOT: string;
|
15
|
+
STRIPE: string;
|
16
|
+
FACEBOOK_LOGIN: string;
|
17
|
+
GOOGLE_LOGIN: string;
|
18
|
+
GITHUB_LOGIN: string;
|
19
|
+
TWITTER_LOGIN: string;
|
20
|
+
LINKEDIN_LOGIN: string;
|
21
|
+
ATOM_CHAT: string;
|
22
|
+
SNIPCART: string;
|
23
|
+
LOGIN: string;
|
24
|
+
LOGIN_WITH_BACKENDLESS: string;
|
25
|
+
LOGIN_WITH_FIREBASE: string;
|
26
|
+
LOGIN_WITH_XANO: string;
|
27
|
+
SUBSCRIBE: string;
|
28
|
+
PLAID: string;
|
29
|
+
GOOGLE_MAP: string;
|
30
|
+
MAGIC_LINK_LOGIN: string;
|
31
|
+
MULTI_TENANT_SAAS: string;
|
32
|
+
STRIPE_CONNECT: string;
|
33
|
+
QUESTIONNAIRE_SURVEY_FORM: string;
|
34
|
+
XANO: string;
|
35
|
+
SUPABASE: string;
|
36
|
+
AIRTABLE: string;
|
37
|
+
NOTION: string;
|
38
|
+
BNG_PAYMENT: string;
|
39
|
+
FLUID_PAY: string;
|
40
|
+
FIREBASE: string;
|
41
|
+
FIRESTORE: string;
|
42
|
+
APPWRITE: string;
|
43
|
+
};
|
44
|
+
export declare const loginPluginCode: string[];
|
@@ -0,0 +1,52 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.loginPluginCode = exports.pluginCode = void 0;
|
4
|
+
exports.pluginCode = {
|
5
|
+
AWS_SES: "AWS_SES",
|
6
|
+
FACEBOOK_WIDGET: "FACEBOOK_WIDGET",
|
7
|
+
GOOGLE_ANALYTICS: "GOOGLE_ANALYTICS",
|
8
|
+
TRUSTPILOT_WIDGET: "TRUSTPILOT_WIDGET",
|
9
|
+
TWILIO: "TWILIO",
|
10
|
+
TWITTER_WIDGET: "TWITTER_WIDGET",
|
11
|
+
ELFSIGHT_WIDGET: "ELFSIGHT_WIDGET",
|
12
|
+
GETSITECONTROL: "GETSITECONTROL",
|
13
|
+
SURVEYMONKEY: "SURVEYMONKEY",
|
14
|
+
PINTEREST_WIDGET: "PINTEREST_WIDGET",
|
15
|
+
TYPEFORM: "TYPEFORM",
|
16
|
+
CALENDLY: "CALENDLY",
|
17
|
+
LANDBOT: "LANDBOT",
|
18
|
+
STRIPE: "STRIPE",
|
19
|
+
FACEBOOK_LOGIN: "FACEBOOK_LOGIN",
|
20
|
+
GOOGLE_LOGIN: "GOOGLE_LOGIN",
|
21
|
+
GITHUB_LOGIN: "GITHUB_LOGIN",
|
22
|
+
TWITTER_LOGIN: "TWITTER_LOGIN",
|
23
|
+
LINKEDIN_LOGIN: "LINKEDIN_LOGIN",
|
24
|
+
ATOM_CHAT: "ATOM_CHAT",
|
25
|
+
SNIPCART: "SNIPCART",
|
26
|
+
LOGIN: "LOGIN",
|
27
|
+
LOGIN_WITH_BACKENDLESS: "LOGIN_WITH_BACKENDLESS",
|
28
|
+
LOGIN_WITH_FIREBASE: "LOGIN_WITH_FIREBASE",
|
29
|
+
LOGIN_WITH_XANO: "LOGIN_WITH_XANO",
|
30
|
+
SUBSCRIBE: "SUBSCRIBE",
|
31
|
+
PLAID: "PLAID",
|
32
|
+
GOOGLE_MAP: "GOOGLE_MAP",
|
33
|
+
MAGIC_LINK_LOGIN: "MAGIC_LINK_LOGIN",
|
34
|
+
MULTI_TENANT_SAAS: "MULTI_TENANT_SAAS",
|
35
|
+
STRIPE_CONNECT: "STRIPE_CONNECT",
|
36
|
+
QUESTIONNAIRE_SURVEY_FORM: "QUESTIONNAIRE_SURVEY_FORM",
|
37
|
+
XANO: "XANO",
|
38
|
+
SUPABASE: "SUPABASE",
|
39
|
+
AIRTABLE: "AIRTABLE",
|
40
|
+
NOTION: "NOTION",
|
41
|
+
BNG_PAYMENT: "BNG_PAYMENT",
|
42
|
+
FLUID_PAY: "FLUID_PAY",
|
43
|
+
FIREBASE: "FIREBASE",
|
44
|
+
FIRESTORE: "FIRESTORE",
|
45
|
+
APPWRITE: "APPWRITE",
|
46
|
+
};
|
47
|
+
exports.loginPluginCode = [
|
48
|
+
exports.pluginCode.LOGIN,
|
49
|
+
exports.pluginCode.LOGIN_WITH_BACKENDLESS,
|
50
|
+
exports.pluginCode.LOGIN_WITH_FIREBASE,
|
51
|
+
exports.pluginCode.LOGIN_WITH_XANO,
|
52
|
+
];
|
@@ -0,0 +1,24 @@
|
|
1
|
+
export declare const EQUALS = "EQUALS";
|
2
|
+
export declare const IS_NOT_NULL = "IS_NOT_NULL";
|
3
|
+
export declare const IS_NULL = "IS_NULL";
|
4
|
+
export declare const LIKE = "LIKE";
|
5
|
+
export declare const IN_LIST = "IN_LIST";
|
6
|
+
export declare const NOT_IN_LIST = "NOT_IN_LIST";
|
7
|
+
export declare const LESS_THAN = "LESS_THAN";
|
8
|
+
export declare const GREATER_THAN = "GREATER_THAN";
|
9
|
+
export declare const LESS_THAN_EQUALS_TO = "LESS_THAN_EQUALS_TO";
|
10
|
+
export declare const GREATER_THAN_EQUALS_TO = "GREATER_THAN_EQUALS_TO";
|
11
|
+
export declare const BETWEEN = "BETWEEN";
|
12
|
+
export declare const NOT_EQUAL = "NOT_EQUAL";
|
13
|
+
export declare const CURRENT_USER = "CURRENT_USER";
|
14
|
+
export declare const CURRENT_TENANT = "CURRENT_TENANT";
|
15
|
+
export declare const CURRENT_TIME = "CURRENT_TIME";
|
16
|
+
export declare const CURRENT_DATE = "CURRENT_DATE";
|
17
|
+
export declare const CURRENT_DATE_TIME = "CURRENT_DATE_TIME";
|
18
|
+
export declare const HOUR = "HOUR";
|
19
|
+
export declare const DAY = "DAY";
|
20
|
+
export declare const WEEK = "WEEK";
|
21
|
+
export declare const MONTH = "MONTH";
|
22
|
+
export declare const YEAR = "YEAR";
|
23
|
+
export declare const DateTimeUnit: string[];
|
24
|
+
export declare const DateConstant: string[];
|
@@ -0,0 +1,47 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __spreadArrays = (this && this.__spreadArrays) || function () {
|
3
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
4
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
5
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
6
|
+
r[k] = a[j];
|
7
|
+
return r;
|
8
|
+
};
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
+
exports.DateConstant = exports.DateTimeUnit = exports.YEAR = exports.MONTH = exports.WEEK = exports.DAY = exports.HOUR = exports.CURRENT_DATE_TIME = exports.CURRENT_DATE = exports.CURRENT_TIME = exports.CURRENT_TENANT = exports.CURRENT_USER = exports.NOT_EQUAL = exports.BETWEEN = exports.GREATER_THAN_EQUALS_TO = exports.LESS_THAN_EQUALS_TO = exports.GREATER_THAN = exports.LESS_THAN = exports.NOT_IN_LIST = exports.IN_LIST = exports.LIKE = exports.IS_NULL = exports.IS_NOT_NULL = exports.EQUALS = void 0;
|
11
|
+
exports.EQUALS = "EQUALS";
|
12
|
+
exports.IS_NOT_NULL = "IS_NOT_NULL";
|
13
|
+
exports.IS_NULL = "IS_NULL";
|
14
|
+
exports.LIKE = "LIKE";
|
15
|
+
exports.IN_LIST = "IN_LIST";
|
16
|
+
exports.NOT_IN_LIST = "NOT_IN_LIST";
|
17
|
+
exports.LESS_THAN = "LESS_THAN";
|
18
|
+
exports.GREATER_THAN = "GREATER_THAN";
|
19
|
+
exports.LESS_THAN_EQUALS_TO = "LESS_THAN_EQUALS_TO";
|
20
|
+
exports.GREATER_THAN_EQUALS_TO = "GREATER_THAN_EQUALS_TO";
|
21
|
+
exports.BETWEEN = "BETWEEN";
|
22
|
+
exports.NOT_EQUAL = "NOT_EQUAL";
|
23
|
+
exports.CURRENT_USER = "CURRENT_USER";
|
24
|
+
exports.CURRENT_TENANT = "CURRENT_TENANT";
|
25
|
+
exports.CURRENT_TIME = "CURRENT_TIME";
|
26
|
+
exports.CURRENT_DATE = "CURRENT_DATE";
|
27
|
+
exports.CURRENT_DATE_TIME = "CURRENT_DATE_TIME";
|
28
|
+
exports.HOUR = "HOUR";
|
29
|
+
exports.DAY = "DAY";
|
30
|
+
exports.WEEK = "WEEK";
|
31
|
+
exports.MONTH = "MONTH";
|
32
|
+
exports.YEAR = "YEAR";
|
33
|
+
exports.DateTimeUnit = [exports.HOUR, exports.DAY, exports.WEEK, exports.MONTH, exports.YEAR];
|
34
|
+
exports.DateConstant = __spreadArrays([
|
35
|
+
exports.CURRENT_DATE,
|
36
|
+
exports.CURRENT_TIME,
|
37
|
+
exports.CURRENT_DATE_TIME
|
38
|
+
], exports.DateTimeUnit);
|
39
|
+
/*
|
40
|
+
export const dateRangeConstants = [
|
41
|
+
CURRENT_USER,
|
42
|
+
CURRENT_DATE,
|
43
|
+
CURRENT_DATE_TIME,
|
44
|
+
CURRENT_TIME,
|
45
|
+
];
|
46
|
+
|
47
|
+
*/
|
@@ -0,0 +1,14 @@
|
|
1
|
+
export declare const PROJECT_COLLECTIONS = "project-collections";
|
2
|
+
export declare const PROJECT_DOMAIN_COLLECTIONS = "project-domain-collections";
|
3
|
+
export declare const PROJECT_COLLECTION = "project-collection";
|
4
|
+
export declare const COLLECTION_BY_NAME = "collection-by-name";
|
5
|
+
export declare const COLLECTION_BY_UUID = "collection-by-uuid";
|
6
|
+
export declare const FOLDER_LIST = "folder-list";
|
7
|
+
export declare const PROJECT_FOLDER_LIST = "project-folder-list";
|
8
|
+
export declare const PROJECT_PAGE_DETAIL = "project-page-detail";
|
9
|
+
export declare const DEFAULT_PAGE = "default-page";
|
10
|
+
export declare const PROJECT_LIST = "project_list";
|
11
|
+
export declare const PROJECT_DETAIL = "project_detail";
|
12
|
+
export declare const PROJECT_PAGE_SNAPSHOT_DETAIL = "project_page_snapshot_detail";
|
13
|
+
export declare const PROJECT_SNIPPET_SNAPSHOT_DETAIL = "project_snippet_snapshot_detail";
|
14
|
+
export declare const COLLECTION_DETAIL_FOR_QUERY = "collection-detail-for-query";
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
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.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
|
+
exports.PROJECT_COLLECTIONS = "project-collections";
|
5
|
+
exports.PROJECT_DOMAIN_COLLECTIONS = "project-domain-collections";
|
6
|
+
exports.PROJECT_COLLECTION = "project-collection";
|
7
|
+
exports.COLLECTION_BY_NAME = "collection-by-name";
|
8
|
+
exports.COLLECTION_BY_UUID = "collection-by-uuid";
|
9
|
+
exports.FOLDER_LIST = "folder-list";
|
10
|
+
exports.PROJECT_FOLDER_LIST = "project-folder-list";
|
11
|
+
exports.PROJECT_PAGE_DETAIL = "project-page-detail";
|
12
|
+
exports.DEFAULT_PAGE = "default-page";
|
13
|
+
exports.PROJECT_LIST = "project_list";
|
14
|
+
exports.PROJECT_DETAIL = "project_detail";
|
15
|
+
exports.PROJECT_PAGE_SNAPSHOT_DETAIL = "project_page_snapshot_detail";
|
16
|
+
exports.PROJECT_SNIPPET_SNAPSHOT_DETAIL = "project_snippet_snapshot_detail";
|
17
|
+
exports.COLLECTION_DETAIL_FOR_QUERY = "collection-detail-for-query";
|
package/build/index.d.ts
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
export * from "./constants/redis";
|
2
|
+
export * from "./constants/query";
|
3
|
+
export * from "./constants/plugins";
|
4
|
+
export * from "./constants/builder";
|
5
|
+
export * from "./constants/externalApi";
|
6
|
+
export * from "./constants/FieldTypes";
|
7
|
+
export * from "./constants/collection";
|
8
|
+
export * from "./constants/messages";
|
package/build/index.js
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
5
|
+
}) : (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
o[k2] = m[k];
|
8
|
+
}));
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
11
|
+
};
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
13
|
+
__exportStar(require("./constants/redis"), exports);
|
14
|
+
__exportStar(require("./constants/query"), exports);
|
15
|
+
__exportStar(require("./constants/plugins"), exports);
|
16
|
+
__exportStar(require("./constants/builder"), exports);
|
17
|
+
__exportStar(require("./constants/externalApi"), exports);
|
18
|
+
__exportStar(require("./constants/FieldTypes"), exports);
|
19
|
+
__exportStar(require("./constants/collection"), exports);
|
20
|
+
__exportStar(require("./constants/messages"), exports);
|
package/package.json
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
{
|
2
|
+
"name": "drapcode-constant",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "Drapcode Constants",
|
5
|
+
"main": "build/index.js",
|
6
|
+
"types": "build/index.d.ts",
|
7
|
+
"files": [
|
8
|
+
"build/**/*"
|
9
|
+
],
|
10
|
+
"scripts": {
|
11
|
+
"clean": "del ./build/*",
|
12
|
+
"build": "npm run clean && tsc"
|
13
|
+
},
|
14
|
+
"keywords": [],
|
15
|
+
"author": "",
|
16
|
+
"license": "ISC",
|
17
|
+
"devDependencies": {
|
18
|
+
"del-cli": "^5.0.0",
|
19
|
+
"typescript": "^4.0.2"
|
20
|
+
},
|
21
|
+
"dependencies": {
|
22
|
+
"moment": "^2.29.0"
|
23
|
+
}
|
24
|
+
}
|