drapcode-constant 1.0.3-beta → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,10 @@
1
1
  "use strict";
2
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
4
- if (ar || !(i in from)) {
5
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
6
- ar[i] = from[i];
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;
@@ -300,85 +298,85 @@ exports.mixedField = [
300
298
  boolean.id,
301
299
  ];
302
300
  /** Usage of emailField */
303
- var stringField = __spreadArray(__spreadArray([], exports.emailField, true), [color.id, uuid.id, custom_uuid.id], false);
304
- exports.pureTextField = __spreadArray(__spreadArray(__spreadArray(__spreadArray([], exports.emailField, true), exports.numberTextField, true), exports.linkField, true), [
301
+ var stringField = __spreadArrays(exports.emailField, [color.id, uuid.id, custom_uuid.id]);
302
+ exports.pureTextField = __spreadArrays(exports.emailField, exports.numberTextField, exports.linkField, [
305
303
  color.id,
306
- ], false);
307
- exports.simpleTextFeild = __spreadArray(__spreadArray([], exports.emailField, true), [
304
+ ]);
305
+ exports.simpleTextFeild = __spreadArrays(exports.emailField, [
308
306
  boolean.id,
309
307
  url.id,
310
308
  large_text.id,
311
309
  number.id,
312
- ], false);
313
- exports.textEmailPasswordField = __spreadArray(__spreadArray([], exports.emailField, true), [password.id], false);
314
- exports.NoRefFields = __spreadArray(__spreadArray(__spreadArray([], exports.emailField, true), exports.numberTextField, true), [
310
+ ]);
311
+ exports.textEmailPasswordField = __spreadArrays(exports.emailField, [password.id]);
312
+ exports.NoRefFields = __spreadArrays(exports.emailField, exports.numberTextField, [
315
313
  color.id,
316
314
  boolean.id,
317
- ], false);
318
- exports.textField1 = __spreadArray(__spreadArray(__spreadArray([], exports.emailField, true), exports.numberTextField, true), [
315
+ ]);
316
+ exports.textField1 = __spreadArrays(exports.emailField, exports.numberTextField, [
319
317
  boolean.id,
320
318
  url.id,
321
- ], false);
319
+ ]);
322
320
  /** Usage of uuidField */
323
- exports.pageCollectionFields = __spreadArray(__spreadArray([], exports.uuidField, true), [
321
+ exports.pageCollectionFields = __spreadArrays(exports.uuidField, [
324
322
  large_text.id,
325
323
  createdAt.id,
326
324
  number.id,
327
325
  boolean.id,
328
- ], false);
329
- exports.referenceTextField = __spreadArray(__spreadArray(__spreadArray([], exports.uuidField, true), exports.childDataField, true), [number.id], false);
326
+ ]);
327
+ exports.referenceTextField = __spreadArrays(exports.uuidField, exports.childDataField, [number.id]);
330
328
  /** Usage of textEmailPasswordField */
331
- exports.StringFields = __spreadArray(__spreadArray([], exports.textEmailPasswordField, true), exports.linkField, true);
329
+ exports.StringFields = __spreadArrays(exports.textEmailPasswordField, exports.linkField);
332
330
  /** Usage of ImageFields */
333
- exports.ImageUrlFields = __spreadArray(__spreadArray([], exports.ImageFields, true), [file.id], false);
331
+ exports.ImageUrlFields = __spreadArrays(exports.ImageFields, [file.id]);
334
332
  /** Usage of onlyReferenceField */
335
- exports.BelongsToReferenceField = __spreadArray(__spreadArray([], exports.onlyReferenceField, true), [belongsTo.id], false);
336
- exports.referenceAndDynamicField = __spreadArray(__spreadArray([], exports.onlyReferenceField, true), [dynamic_option.id], false);
337
- exports.ReferenceCreatedByFields = __spreadArray(__spreadArray([], exports.onlyReferenceField, true), [createdBy.id], false);
338
- exports.placeholderField = __spreadArray(__spreadArray(__spreadArray([], exports.onlyReferenceField, true), exports.systemDateField, true), [
333
+ exports.BelongsToReferenceField = __spreadArrays(exports.onlyReferenceField, [belongsTo.id]);
334
+ exports.referenceAndDynamicField = __spreadArrays(exports.onlyReferenceField, [dynamic_option.id]);
335
+ exports.ReferenceCreatedByFields = __spreadArrays(exports.onlyReferenceField, [createdBy.id]);
336
+ exports.placeholderField = __spreadArrays(exports.onlyReferenceField, exports.systemDateField, [
339
337
  createdBy.id,
340
338
  isDeleted.id,
341
339
  password.id,
342
- ], false);
340
+ ]);
343
341
  /** Usage of systemDateField and systemHideField */
344
- exports.systemAndRefField = __spreadArray(__spreadArray([], exports.systemHideField, true), exports.referenceAndDynamicField, true);
345
- exports.DefaultPrivateField = __spreadArray(__spreadArray([], exports.systemHideField, true), [password.id], false);
346
- exports.hiddenFormField = __spreadArray(__spreadArray([], exports.systemHideField, true), exports.systemDateField, true);
347
- exports.notFieldForExport = __spreadArray(__spreadArray(__spreadArray([], exports.systemDateField, true), exports.exportHideField, true), [
342
+ exports.systemAndRefField = __spreadArrays(exports.systemHideField, exports.referenceAndDynamicField);
343
+ exports.DefaultPrivateField = __spreadArrays(exports.systemHideField, [password.id]);
344
+ exports.hiddenFormField = __spreadArrays(exports.systemHideField, exports.systemDateField);
345
+ exports.notFieldForExport = __spreadArrays(exports.systemDateField, exports.exportHideField, [
348
346
  isDeleted.id,
349
347
  object.id,
350
348
  createdBy.id,
351
- ], false);
352
- exports.notFieldForImport = __spreadArray(__spreadArray(__spreadArray(__spreadArray([], exports.systemDateField, true), exports.systemHideField, true), exports.ImageFields, true), [
349
+ ]);
350
+ exports.notFieldForImport = __spreadArrays(exports.systemDateField, exports.systemHideField, exports.ImageFields, [
353
351
  password.id,
354
- ], false);
352
+ ]);
355
353
  /** Usage of BelongsToReferenceField */
356
- exports.BelongsCreatedByRefField = __spreadArray(__spreadArray([], exports.BelongsToReferenceField, true), [
354
+ exports.BelongsCreatedByRefField = __spreadArrays(exports.BelongsToReferenceField, [
357
355
  createdBy.id,
358
- ], false);
359
- exports.level3ReferenceField2 = __spreadArray(__spreadArray(__spreadArray([], exports.BelongsToReferenceField, true), exports.hiddenFormField, true), exports.exportHideField, true);
360
- exports.level3ReferenceField = __spreadArray(__spreadArray(__spreadArray(__spreadArray([], exports.BelongsCreatedByRefField, true), exports.systemDateField, true), exports.exportHideField, true), [
356
+ ]);
357
+ exports.level3ReferenceField2 = __spreadArrays(exports.BelongsToReferenceField, exports.hiddenFormField, exports.exportHideField);
358
+ exports.level3ReferenceField = __spreadArrays(exports.BelongsCreatedByRefField, exports.systemDateField, exports.exportHideField, [
361
359
  isDeleted.id,
362
- ], false);
360
+ ]);
363
361
  /** Usage of OptionTypeFields */
364
- exports.SelectOptionFields = __spreadArray(__spreadArray([], exports.OptionTypeFields, true), [reference.id], false);
365
- exports.MultiSelectOptionFields = __spreadArray(__spreadArray([], exports.OptionTypeFields, true), [belongsTo.id], false);
366
- exports.NonBelongsSelectOptionFields = __spreadArray(__spreadArray([], exports.OptionTypeFields, true), exports.onlyReferenceField, true);
367
- exports.nonReferenceField = __spreadArray(__spreadArray(__spreadArray([], stringField, true), exports.linkField, true), [
362
+ exports.SelectOptionFields = __spreadArrays(exports.OptionTypeFields, [reference.id]);
363
+ exports.MultiSelectOptionFields = __spreadArrays(exports.OptionTypeFields, [belongsTo.id]);
364
+ exports.NonBelongsSelectOptionFields = __spreadArrays(exports.OptionTypeFields, exports.onlyReferenceField);
365
+ exports.nonReferenceField = __spreadArrays(stringField, exports.linkField, [
368
366
  large_text.id,
369
367
  number.id,
370
368
  password.id,
371
369
  video_link.id,
372
370
  boolean.id,
373
- ], false);
374
- exports.AllSelectOptionFields = __spreadArray(__spreadArray([], exports.onlyReferenceField, true), exports.MultiSelectOptionFields, true);
375
- var textField = __spreadArray(__spreadArray(__spreadArray([], exports.linkField, true), stringField, true), [
371
+ ]);
372
+ exports.AllSelectOptionFields = __spreadArrays(exports.onlyReferenceField, exports.MultiSelectOptionFields);
373
+ var textField = __spreadArrays(exports.linkField, stringField, [
376
374
  number.id,
377
375
  date.id,
378
376
  boolean.id,
379
377
  unix_timestamp.id,
380
378
  password.id,
381
- ], false);
379
+ ]);
382
380
  exports.collectionDefaultFieldSortOrder = [
383
381
  { order: 1, field: uuid.id },
384
382
  { order: 2, field: createdAt.id },
@@ -403,11 +401,11 @@ var filterFieldForCommandObj = function () {
403
401
  // field != static_option.id &&
404
402
  // field != multi_image.id
405
403
  // );
406
- return !__spreadArray(__spreadArray(__spreadArray(__spreadArray([], exports.systemDateField, true), exports.systemAndRefField, true), exports.ImageUrlFields, true), [
404
+ return !__spreadArrays(exports.systemDateField, exports.systemAndRefField, exports.ImageUrlFields, [
407
405
  belongsTo.id,
408
406
  static_option.id,
409
407
  color.id,
410
- ], false).includes(field);
408
+ ]).includes(field);
411
409
  });
412
410
  };
413
411
  exports.filterFieldForCommandObj = filterFieldForCommandObj;
@@ -1,12 +1,10 @@
1
1
  "use strict";
2
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
4
- if (ar || !(i in from)) {
5
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
6
- ar[i] = from[i];
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 (0, moment_1.default)().utcOffset(str).utcOffset();
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/".concat(path);
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=\"".concat((0, exports.getAssetLink)("js/".concat(path)), "\" ").concat(isDefer ? 'defer' : '', "></script>");
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=\"".concat((0, exports.getAssetLink)("css/".concat(path)), "\" as=\"style\" onload=\"this.onload=null;this.rel='stylesheet'\">\n <noscript><link rel=\"stylesheet\" href=\"").concat((0, exports.getAssetLink)("css/".concat(path)), "\"></noscript>");
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=\"".concat((0, exports.getAssetLink)("css/".concat(path)), "\">");
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 = __spreadArray(__spreadArray([], (0, exports.getScriptTag)(["popper.min.js", "bootstrap.min.js", "feather.min.js"], true), true), [
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
- ], false);
64
- exports.defaultHeaderCSS = __spreadArray(__spreadArray([], (0, exports.getCssTag)([
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), true), [
75
- "<link rel='stylesheet' type='text/css' href='".concat((0, exports.getAssetLink)("intl-tel-input/intlTelInput.min.css"), "'>"),
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
- ], false);
80
- exports.defaultFonts = __spreadArray([
77
+ ]);
78
+ exports.defaultFonts = __spreadArrays([
81
79
  '<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>'
82
- ], (0, exports.getCssTag)(["googlefonts.css"], true), true);
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\"/> &nbsp;\n ".concat(brand_msg, "\n </a>\n </div>");
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\"/> &nbsp;\n " + brand_msg + "\n </a>\n </div>";
85
83
  };
86
84
  exports.brandMessage = brandMessage;
87
- exports.primaryBodyJS = __spreadArray(__spreadArray([
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
- ], (0, exports.getScriptTag)([
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
- ]), true), [
106
- "<script type=\"text/javascript\" src=\"".concat((0, exports.getAssetLink)("intl-tel-input/intlTelInput-jquery.min.js"), "\"></script>"),
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
- ], false);
117
+ ]);
@@ -1,10 +1,4 @@
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
1
  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
2
  export declare const REST_API = "REST_API";
9
3
  export declare const DATABASE = "DATABASE";
10
4
  export declare const GOOGLE_SHEET = "GOOGLE_SHEET";
@@ -13,7 +7,6 @@ export declare const FIREBASE_REALTIME_DATABASE = "FIREBASE_REALTIME_DATABASE";
13
7
  export declare const FIREBASE_CLOUD_FIRESTORE = "FIREBASE_CLOUD_FIRESTORE";
14
8
  export declare const FIREBASE_FUNCTION = "FIREBASE_FUNCTION";
15
9
  export declare const ZAPIER = "ZAPIER";
16
- export declare const CHAT_GPT = "CHAT_GPT";
17
10
  export declare const INTEGROMAT = "INTEGROMAT";
18
11
  export declare const MAKE = "MAKE";
19
12
  export declare const XANO = "XANO";
@@ -1,13 +1,7 @@
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.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.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";
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.REST_API_PRIMAREY_KEY = void 0;
8
4
  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
5
  exports.REST_API = "REST_API";
12
6
  exports.DATABASE = "DATABASE";
13
7
  exports.GOOGLE_SHEET = "GOOGLE_SHEET";
@@ -16,7 +10,6 @@ exports.FIREBASE_REALTIME_DATABASE = "FIREBASE_REALTIME_DATABASE";
16
10
  exports.FIREBASE_CLOUD_FIRESTORE = "FIREBASE_CLOUD_FIRESTORE";
17
11
  exports.FIREBASE_FUNCTION = "FIREBASE_FUNCTION";
18
12
  exports.ZAPIER = "ZAPIER";
19
- exports.CHAT_GPT = "CHAT_GPT";
20
13
  exports.INTEGROMAT = "INTEGROMAT";
21
14
  exports.MAKE = "MAKE";
22
15
  exports.XANO = "XANO";
@@ -57,7 +50,6 @@ exports.API_TYPES = [
57
50
  exports.SUPABASE,
58
51
  exports.APPWRITE,
59
52
  exports.NOTION,
60
- exports.CHAT_GPT,
61
53
  ];
62
54
  exports.API_TYPES2 = [
63
55
  exports.REST_API,
@@ -67,17 +59,8 @@ exports.API_TYPES2 = [
67
59
  exports.FIREBASE_REALTIME_DATABASE,
68
60
  exports.FIREBASE_CLOUD_FIRESTORE,
69
61
  exports.FIREBASE_FUNCTION,
70
- exports.CHAT_GPT,
71
- ];
72
- exports.dataSourcePrimaryKeys = [
73
- exports.AIRTABLE_PRIMAREY_KEY,
74
- exports.FIREBASE_REALTIME_DATABASE_PRIMAREY_KEY,
75
- exports.FIREBASE_CLOUD_FIRESTORE_PRIMAREY_KEY,
76
- exports.GOOGLE_SHEET_PRIMAREY_KEY,
77
- exports.REST_API_PRIMAREY_KEY,
78
- exports.DATABASE_PRIMAREY_KEY,
79
- exports.FIREBASE_FUNCTION_PRIMAREY_KEY,
80
62
  ];
63
+ exports.dataSourcePrimaryKeys = [exports.REST_API_PRIMAREY_KEY];
81
64
  exports.fieldsPrefixForDF = [
82
65
  exports.CURRENT_USER_PREFIX,
83
66
  exports.CURRENT_USER_REFERENCE_FIELDS_PREFIX,
@@ -41,10 +41,5 @@ export declare const pluginCode: {
41
41
  FIRESTORE: string;
42
42
  APPWRITE: string;
43
43
  BACKGROUND_TASK: string;
44
- CHAT_GPT: string;
45
44
  };
46
45
  export declare const loginPluginCode: string[];
47
- export declare const chatGptModels: {
48
- label: string;
49
- value: string;
50
- }[];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.chatGptModels = exports.loginPluginCode = exports.pluginCode = void 0;
3
+ exports.loginPluginCode = exports.pluginCode = void 0;
4
4
  exports.pluginCode = {
5
5
  AWS_SES: "AWS_SES",
6
6
  FACEBOOK_WIDGET: "FACEBOOK_WIDGET",
@@ -44,7 +44,6 @@ exports.pluginCode = {
44
44
  FIRESTORE: "FIRESTORE",
45
45
  APPWRITE: "APPWRITE",
46
46
  BACKGROUND_TASK: "BACKGROUND_TASK",
47
- CHAT_GPT: "CHAT_GPT",
48
47
  };
49
48
  exports.loginPluginCode = [
50
49
  exports.pluginCode.LOGIN,
@@ -52,7 +51,3 @@ exports.loginPluginCode = [
52
51
  exports.pluginCode.LOGIN_WITH_FIREBASE,
53
52
  exports.pluginCode.LOGIN_WITH_XANO,
54
53
  ];
55
- exports.chatGptModels = [
56
- { label: "GPT 3.5", value: "gpt-3.5-turbo" },
57
- { label: "GPT 4.0", value: "gpt-4" },
58
- ];
@@ -1,12 +1,10 @@
1
1
  "use strict";
2
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
4
- if (ar || !(i in from)) {
5
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
6
- ar[i] = from[i];
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 = __spreadArray([
34
+ exports.DateConstant = __spreadArrays([
37
35
  exports.CURRENT_DATE,
38
36
  exports.CURRENT_TIME,
39
37
  exports.CURRENT_DATE_TIME
40
- ], exports.DateTimeUnit, true);
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
- var desc = Object.getOwnPropertyDescriptor(m, k);
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];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drapcode-constant",
3
- "version": "1.0.3-beta",
3
+ "version": "1.0.3",
4
4
  "description": "Drapcode Constants",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",