drapcode-constant 1.0.7 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- package/build/constants/FieldTypes.js +48 -50
- package/build/constants/builder.js +25 -27
- package/build/constants/externalApi.d.ts +1 -0
- package/build/constants/externalApi.js +4 -2
- package/build/constants/plugins.d.ts +2 -0
- package/build/constants/plugins.js +2 -0
- package/build/constants/query.js +8 -10
- package/build/index.js +1 -5
- package/package.json +1 -1
@@ -1,12 +1,10 @@
|
|
1
1
|
"use strict";
|
2
|
-
var
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
}
|
9
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
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;
|
10
8
|
};
|
11
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
10
|
exports.filterFieldsForDataTable = exports.fieldToShow = exports.filterFieldForCommandObj = exports.collectionDefaultFieldSortOrder = exports.AllSelectOptionFields = exports.nonReferenceField = exports.NonBelongsSelectOptionFields = exports.MultiSelectOptionFields = exports.SelectOptionFields = exports.level3ReferenceField = exports.level3ReferenceField2 = exports.BelongsCreatedByRefField = exports.notFieldForImport = exports.notFieldForExport = exports.hiddenFormField = exports.DefaultPrivateField = exports.systemAndRefField = exports.placeholderField = exports.ReferenceCreatedByFields = exports.referenceAndDynamicField = exports.BelongsToReferenceField = exports.ImageUrlFields = exports.StringFields = exports.referenceTextField = exports.pageCollectionFields = exports.textField1 = exports.NoRefFields = exports.textEmailPasswordField = exports.simpleTextFeild = exports.pureTextField = exports.mixedField = exports.systemHideField = exports.linkField = exports.numberTextField = exports.exportHideField = exports.uuidField = exports.passwordField = exports.emailField = exports.systemDateField = exports.FileUrlFields = exports.URLFields = exports.ImageFields = exports.childDataField = exports.onlyReferenceField = exports.OptionTypeFields = exports.filterFieldsForForm = exports.fieldType = exports.crudKeys = exports.defaultFields = exports.FieldTypes = void 0;
|
@@ -307,85 +305,85 @@ exports.mixedField = [
|
|
307
305
|
boolean.id,
|
308
306
|
];
|
309
307
|
/** Usage of emailField */
|
310
|
-
var stringField =
|
311
|
-
exports.pureTextField =
|
308
|
+
var stringField = __spreadArrays(exports.emailField, [color.id, uuid.id, custom_uuid.id]);
|
309
|
+
exports.pureTextField = __spreadArrays(exports.emailField, exports.numberTextField, exports.linkField, [
|
312
310
|
color.id,
|
313
|
-
]
|
314
|
-
exports.simpleTextFeild =
|
311
|
+
]);
|
312
|
+
exports.simpleTextFeild = __spreadArrays(exports.emailField, [
|
315
313
|
boolean.id,
|
316
314
|
url.id,
|
317
315
|
large_text.id,
|
318
316
|
number.id,
|
319
|
-
]
|
320
|
-
exports.textEmailPasswordField =
|
321
|
-
exports.NoRefFields =
|
317
|
+
]);
|
318
|
+
exports.textEmailPasswordField = __spreadArrays(exports.emailField, [password.id]);
|
319
|
+
exports.NoRefFields = __spreadArrays(exports.emailField, exports.numberTextField, [
|
322
320
|
color.id,
|
323
321
|
boolean.id,
|
324
|
-
]
|
325
|
-
exports.textField1 =
|
322
|
+
]);
|
323
|
+
exports.textField1 = __spreadArrays(exports.emailField, exports.numberTextField, [
|
326
324
|
boolean.id,
|
327
325
|
url.id,
|
328
|
-
]
|
326
|
+
]);
|
329
327
|
/** Usage of uuidField */
|
330
|
-
exports.pageCollectionFields =
|
328
|
+
exports.pageCollectionFields = __spreadArrays(exports.uuidField, [
|
331
329
|
large_text.id,
|
332
330
|
createdAt.id,
|
333
331
|
number.id,
|
334
332
|
boolean.id,
|
335
|
-
]
|
336
|
-
exports.referenceTextField =
|
333
|
+
]);
|
334
|
+
exports.referenceTextField = __spreadArrays(exports.uuidField, exports.childDataField, [number.id]);
|
337
335
|
/** Usage of textEmailPasswordField */
|
338
|
-
exports.StringFields =
|
336
|
+
exports.StringFields = __spreadArrays(exports.textEmailPasswordField, exports.linkField);
|
339
337
|
/** Usage of ImageFields */
|
340
|
-
exports.ImageUrlFields =
|
338
|
+
exports.ImageUrlFields = __spreadArrays(exports.ImageFields, [file.id]);
|
341
339
|
/** Usage of onlyReferenceField */
|
342
|
-
exports.BelongsToReferenceField =
|
343
|
-
exports.referenceAndDynamicField =
|
344
|
-
exports.ReferenceCreatedByFields =
|
345
|
-
exports.placeholderField =
|
340
|
+
exports.BelongsToReferenceField = __spreadArrays(exports.onlyReferenceField, [belongsTo.id]);
|
341
|
+
exports.referenceAndDynamicField = __spreadArrays(exports.onlyReferenceField, [dynamic_option.id]);
|
342
|
+
exports.ReferenceCreatedByFields = __spreadArrays(exports.onlyReferenceField, [createdBy.id]);
|
343
|
+
exports.placeholderField = __spreadArrays(exports.onlyReferenceField, exports.systemDateField, [
|
346
344
|
createdBy.id,
|
347
345
|
isDeleted.id,
|
348
346
|
password.id,
|
349
|
-
]
|
347
|
+
]);
|
350
348
|
/** Usage of systemDateField and systemHideField */
|
351
|
-
exports.systemAndRefField =
|
352
|
-
exports.DefaultPrivateField =
|
353
|
-
exports.hiddenFormField =
|
354
|
-
exports.notFieldForExport =
|
349
|
+
exports.systemAndRefField = __spreadArrays(exports.systemHideField, exports.referenceAndDynamicField);
|
350
|
+
exports.DefaultPrivateField = __spreadArrays(exports.systemHideField, [password.id]);
|
351
|
+
exports.hiddenFormField = __spreadArrays(exports.systemHideField, exports.systemDateField);
|
352
|
+
exports.notFieldForExport = __spreadArrays(exports.systemDateField, exports.exportHideField, [
|
355
353
|
isDeleted.id,
|
356
354
|
object.id,
|
357
355
|
createdBy.id,
|
358
|
-
]
|
359
|
-
exports.notFieldForImport =
|
356
|
+
]);
|
357
|
+
exports.notFieldForImport = __spreadArrays(exports.systemDateField, exports.systemHideField, exports.ImageFields, [
|
360
358
|
password.id,
|
361
|
-
]
|
359
|
+
]);
|
362
360
|
/** Usage of BelongsToReferenceField */
|
363
|
-
exports.BelongsCreatedByRefField =
|
361
|
+
exports.BelongsCreatedByRefField = __spreadArrays(exports.BelongsToReferenceField, [
|
364
362
|
createdBy.id,
|
365
|
-
]
|
366
|
-
exports.level3ReferenceField2 =
|
367
|
-
exports.level3ReferenceField =
|
363
|
+
]);
|
364
|
+
exports.level3ReferenceField2 = __spreadArrays(exports.BelongsToReferenceField, exports.hiddenFormField, exports.exportHideField);
|
365
|
+
exports.level3ReferenceField = __spreadArrays(exports.BelongsCreatedByRefField, exports.systemDateField, exports.exportHideField, [
|
368
366
|
isDeleted.id,
|
369
|
-
]
|
367
|
+
]);
|
370
368
|
/** Usage of OptionTypeFields */
|
371
|
-
exports.SelectOptionFields =
|
372
|
-
exports.MultiSelectOptionFields =
|
373
|
-
exports.NonBelongsSelectOptionFields =
|
374
|
-
exports.nonReferenceField =
|
369
|
+
exports.SelectOptionFields = __spreadArrays(exports.OptionTypeFields, [reference.id]);
|
370
|
+
exports.MultiSelectOptionFields = __spreadArrays(exports.OptionTypeFields, [belongsTo.id]);
|
371
|
+
exports.NonBelongsSelectOptionFields = __spreadArrays(exports.OptionTypeFields, exports.onlyReferenceField);
|
372
|
+
exports.nonReferenceField = __spreadArrays(stringField, exports.linkField, [
|
375
373
|
large_text.id,
|
376
374
|
number.id,
|
377
375
|
password.id,
|
378
376
|
video_link.id,
|
379
377
|
boolean.id,
|
380
|
-
]
|
381
|
-
exports.AllSelectOptionFields =
|
382
|
-
var textField =
|
378
|
+
]);
|
379
|
+
exports.AllSelectOptionFields = __spreadArrays(exports.onlyReferenceField, exports.MultiSelectOptionFields);
|
380
|
+
var textField = __spreadArrays(exports.linkField, stringField, [
|
383
381
|
number.id,
|
384
382
|
date.id,
|
385
383
|
boolean.id,
|
386
384
|
unix_timestamp.id,
|
387
385
|
password.id,
|
388
|
-
]
|
386
|
+
]);
|
389
387
|
exports.collectionDefaultFieldSortOrder = [
|
390
388
|
{ order: 1, field: uuid.id },
|
391
389
|
{ order: 2, field: createdAt.id },
|
@@ -410,11 +408,11 @@ var filterFieldForCommandObj = function () {
|
|
410
408
|
// field != static_option.id &&
|
411
409
|
// field != multi_image.id
|
412
410
|
// );
|
413
|
-
return !
|
411
|
+
return !__spreadArrays(exports.systemDateField, exports.systemAndRefField, exports.ImageUrlFields, [
|
414
412
|
belongsTo.id,
|
415
413
|
static_option.id,
|
416
414
|
color.id,
|
417
|
-
]
|
415
|
+
]).includes(field);
|
418
416
|
});
|
419
417
|
};
|
420
418
|
exports.filterFieldForCommandObj = filterFieldForCommandObj;
|
@@ -1,12 +1,10 @@
|
|
1
1
|
"use strict";
|
2
|
-
var
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
}
|
9
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
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;
|
10
8
|
};
|
11
9
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
10
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
@@ -22,7 +20,7 @@ var getTimezoneOffset = function (time) {
|
|
22
20
|
time = "(GMT+5:30)";
|
23
21
|
}
|
24
22
|
var str = time.substring(4, 10);
|
25
|
-
return
|
23
|
+
return moment_1.default().utcOffset(str).utcOffset();
|
26
24
|
};
|
27
25
|
exports.getTimezoneOffset = getTimezoneOffset;
|
28
26
|
var replaceNbsps = function (str) {
|
@@ -34,13 +32,13 @@ exports.defaultMetaTags = [
|
|
34
32
|
'<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">',
|
35
33
|
];
|
36
34
|
var getAssetLink = function (path) {
|
37
|
-
return "https://asset.drapcode.com/"
|
35
|
+
return "https://asset.drapcode.com/" + path;
|
38
36
|
};
|
39
37
|
exports.getAssetLink = getAssetLink;
|
40
38
|
var getScriptTag = function (paths, isDefer) {
|
41
39
|
if (isDefer === void 0) { isDefer = false; }
|
42
40
|
return paths.map(function (path) {
|
43
|
-
return "<script type=\"text/javascript\" src=\""
|
41
|
+
return "<script type=\"text/javascript\" src=\"" + exports.getAssetLink("js/" + path) + "\" " + (isDefer ? 'defer' : '') + "></script>";
|
44
42
|
});
|
45
43
|
};
|
46
44
|
exports.getScriptTag = getScriptTag;
|
@@ -48,20 +46,20 @@ var getCssTag = function (paths, loadAsync) {
|
|
48
46
|
if (loadAsync === void 0) { loadAsync = false; }
|
49
47
|
if (loadAsync) {
|
50
48
|
return paths.map(function (path) {
|
51
|
-
return "<link rel=\"preload\" href=\""
|
49
|
+
return "<link rel=\"preload\" href=\"" + exports.getAssetLink("css/" + path) + "\" as=\"style\" onload=\"this.onload=null;this.rel='stylesheet'\">\n <noscript><link rel=\"stylesheet\" href=\"" + exports.getAssetLink("css/" + path) + "\"></noscript>";
|
52
50
|
});
|
53
51
|
}
|
54
52
|
else {
|
55
53
|
return paths.map(function (path) {
|
56
|
-
return "<link rel='stylesheet' type='text/css' href=\""
|
54
|
+
return "<link rel='stylesheet' type='text/css' href=\"" + exports.getAssetLink("css/" + path) + "\">";
|
57
55
|
});
|
58
56
|
}
|
59
57
|
};
|
60
58
|
exports.getCssTag = getCssTag;
|
61
|
-
exports.defaultHeaderJS =
|
59
|
+
exports.defaultHeaderJS = __spreadArrays(exports.getScriptTag(["popper.min.js", "bootstrap.min.js", "feather.min.js"], true), [
|
62
60
|
'<script type="text/javascript" src="https://polyfill.io/v3/polyfill.min.js?features=default" defer></script>',
|
63
|
-
]
|
64
|
-
exports.defaultHeaderCSS =
|
61
|
+
]);
|
62
|
+
exports.defaultHeaderCSS = __spreadArrays(exports.getCssTag([
|
65
63
|
"bootstrap.min.css",
|
66
64
|
"toastr.min.css",
|
67
65
|
"sweetalert2.min.css",
|
@@ -71,23 +69,23 @@ exports.defaultHeaderCSS = __spreadArray(__spreadArray([], (0, exports.getCssTag
|
|
71
69
|
"loader.css",
|
72
70
|
"all.min.css",
|
73
71
|
'dc-custom.min.css',
|
74
|
-
], true),
|
75
|
-
"<link rel='stylesheet' type='text/css' href='"
|
72
|
+
], true), [
|
73
|
+
"<link rel='stylesheet' type='text/css' href='" + exports.getAssetLink("intl-tel-input/intlTelInput.min.css") + "'>",
|
76
74
|
"<link rel='stylesheet' type='text/css' href='https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css'>",
|
77
75
|
"<link rel='stylesheet' type='text/css' href='https://unpkg.com/dropzone@5/dist/min/dropzone.min.css'>",
|
78
76
|
"<link rel='stylesheet' type='text/css' href='https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/magnific-popup.min.css'>",
|
79
|
-
]
|
80
|
-
exports.defaultFonts =
|
77
|
+
]);
|
78
|
+
exports.defaultFonts = __spreadArrays([
|
81
79
|
'<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>'
|
82
|
-
],
|
80
|
+
], exports.getCssTag(["googlefonts.css"], true));
|
83
81
|
var brandMessage = function (brand_msg) {
|
84
|
-
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\"/> \n "
|
82
|
+
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\"/> \n " + brand_msg + "\n </a>\n </div>";
|
85
83
|
};
|
86
84
|
exports.brandMessage = brandMessage;
|
87
|
-
exports.primaryBodyJS =
|
85
|
+
exports.primaryBodyJS = __spreadArrays([
|
88
86
|
'<script type="text/javascript" src="/resources/constant.js"></script>',
|
89
87
|
'<script type="text/javascript" src="/resources/drapcode.min.js"></script>'
|
90
|
-
],
|
88
|
+
], exports.getScriptTag([
|
91
89
|
"jquery.validate.min.js",
|
92
90
|
"math.min.js",
|
93
91
|
"moment.js",
|
@@ -102,8 +100,8 @@ exports.primaryBodyJS = __spreadArray(__spreadArray([
|
|
102
100
|
"toastr.min.js",
|
103
101
|
"axios.js",
|
104
102
|
"sweetalert2.all.min.js",
|
105
|
-
]),
|
106
|
-
"<script type=\"text/javascript\" src=\""
|
103
|
+
]), [
|
104
|
+
"<script type=\"text/javascript\" src=\"" + exports.getAssetLink("intl-tel-input/intlTelInput-jquery.min.js") + "\"></script>",
|
107
105
|
'<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/apexcharts"></script>',
|
108
106
|
'<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/lodash@4.17.21/lodash.min.js"></script>',
|
109
107
|
'<script type="text/javascript" src="https://unpkg.com/dropzone@5/dist/min/dropzone.min.js"></script>',
|
@@ -116,4 +114,4 @@ exports.primaryBodyJS = __spreadArray(__spreadArray([
|
|
116
114
|
'<script type="text/javascript" src="/resources/dataLoader.min.js"></script>',
|
117
115
|
'<script type="text/javascript" src="/resources/drapcode.body.min.js"></script>',
|
118
116
|
'<script type="text/javascript" src="/resources/drapcode.modal.min.js"></script>',
|
119
|
-
]
|
117
|
+
]);
|
@@ -36,6 +36,7 @@ export declare const CURRENT_USER_PREFIX = "current_user.";
|
|
36
36
|
export declare const CURRENT_USER_REFERENCE_FIELDS_PREFIX = "current_user_reference_field.";
|
37
37
|
export declare const XATA = "XATA";
|
38
38
|
export declare const DIRECTUS = "DIRECTUS";
|
39
|
+
export declare const SALESFORCE = "SALESFORCE";
|
39
40
|
export declare const API_TYPES: string[];
|
40
41
|
export declare const API_TYPES2: string[];
|
41
42
|
export declare const dataSourcePrimaryKeys: string[];
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.fieldsKeyPrefixMap = exports.fieldsPrefixForDF = exports.dataSourcePrimaryKeys = exports.API_TYPES2 = exports.API_TYPES = 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_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.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;
|
3
|
+
exports.fieldsKeyPrefixMap = exports.fieldsPrefixForDF = exports.dataSourcePrimaryKeys = exports.API_TYPES2 = exports.API_TYPES = 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_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.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
4
|
exports.REST_API_PRIMAREY_KEY = "_data_source_rest_api_primary_id";
|
5
5
|
exports.REST_API = "REST_API";
|
6
6
|
exports.DATABASE = "DATABASE";
|
@@ -39,6 +39,7 @@ exports.CURRENT_USER_PREFIX = "current_user.";
|
|
39
39
|
exports.CURRENT_USER_REFERENCE_FIELDS_PREFIX = "current_user_reference_field.";
|
40
40
|
exports.XATA = "XATA";
|
41
41
|
exports.DIRECTUS = 'DIRECTUS';
|
42
|
+
exports.SALESFORCE = 'SALESFORCE';
|
42
43
|
exports.API_TYPES = [
|
43
44
|
exports.REST_API,
|
44
45
|
exports.DATABASE,
|
@@ -55,7 +56,8 @@ exports.API_TYPES = [
|
|
55
56
|
exports.NOTION,
|
56
57
|
exports.CHAT_GPT,
|
57
58
|
exports.XATA,
|
58
|
-
exports.DIRECTUS
|
59
|
+
exports.DIRECTUS,
|
60
|
+
exports.SALESFORCE
|
59
61
|
];
|
60
62
|
exports.API_TYPES2 = [
|
61
63
|
exports.REST_API,
|
package/build/constants/query.js
CHANGED
@@ -1,12 +1,10 @@
|
|
1
1
|
"use strict";
|
2
|
-
var
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
}
|
9
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
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;
|
10
8
|
};
|
11
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
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;
|
@@ -33,11 +31,11 @@ exports.WEEK = "WEEK";
|
|
33
31
|
exports.MONTH = "MONTH";
|
34
32
|
exports.YEAR = "YEAR";
|
35
33
|
exports.DateTimeUnit = [exports.HOUR, exports.DAY, exports.WEEK, exports.MONTH, exports.YEAR];
|
36
|
-
exports.DateConstant =
|
34
|
+
exports.DateConstant = __spreadArrays([
|
37
35
|
exports.CURRENT_DATE,
|
38
36
|
exports.CURRENT_TIME,
|
39
37
|
exports.CURRENT_DATE_TIME
|
40
|
-
], exports.DateTimeUnit
|
38
|
+
], exports.DateTimeUnit);
|
41
39
|
/*
|
42
40
|
export const dateRangeConstants = [
|
43
41
|
CURRENT_USER,
|
package/build/index.js
CHANGED
@@ -1,11 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
9
5
|
}) : (function(o, m, k, k2) {
|
10
6
|
if (k2 === undefined) k2 = k;
|
11
7
|
o[k2] = m[k];
|