drapcode-constant 1.6.4 → 1.6.6

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.
@@ -145,6 +145,18 @@ export declare const FieldTypes: {
145
145
  show: boolean;
146
146
  compositeKey: boolean;
147
147
  };
148
+ updatedBy: {
149
+ id: string;
150
+ name: string;
151
+ show: boolean;
152
+ compositeKey: boolean;
153
+ };
154
+ version: {
155
+ id: string;
156
+ name: string;
157
+ show: boolean;
158
+ compositeKey: boolean;
159
+ };
148
160
  isDeleted: {
149
161
  id: string;
150
162
  name: string;
@@ -149,6 +149,18 @@ exports.FieldTypes = {
149
149
  show: false,
150
150
  compositeKey: true,
151
151
  },
152
+ updatedBy: {
153
+ id: "updatedBy",
154
+ name: "Updated By",
155
+ show: false,
156
+ compositeKey: true,
157
+ },
158
+ version: {
159
+ id: "version",
160
+ name: "Version",
161
+ show: false,
162
+ compositeKey: true,
163
+ },
152
164
  isDeleted: {
153
165
  id: "isDeleted",
154
166
  name: "Is deleted",
@@ -241,7 +253,7 @@ var belongsTo = exports.FieldTypes.belongsTo, boolean = exports.FieldTypes.boole
241
253
  // slug,
242
254
  // json,
243
255
  // markdown,
244
- time_picker = exports.FieldTypes.time_picker, time_slot = exports.FieldTypes.time_slot;
256
+ time_picker = exports.FieldTypes.time_picker, time_slot = exports.FieldTypes.time_slot, updatedBy = exports.FieldTypes.updatedBy, version = exports.FieldTypes.version;
245
257
  exports.defaultFields = [
246
258
  "id",
247
259
  "uuid",
@@ -262,6 +274,8 @@ exports.defaultFields = [
262
274
  "is_delete",
263
275
  "isdelete",
264
276
  "delete",
277
+ "updatedBy",
278
+ "version",
265
279
  ];
266
280
  exports.crudKeys = ["create", "update", "detail", "list", "delete"];
267
281
  var fieldType = function (itemName, type) {
@@ -306,6 +320,8 @@ exports.fieldType = fieldType;
306
320
  var filterFieldsForForm = function (fields) {
307
321
  return fields.filter(function (field) {
308
322
  return (field.type !== createdBy.id &&
323
+ field.type !== updatedBy.id &&
324
+ field.type !== version.id &&
309
325
  field.type !== uuid.id &&
310
326
  field.type !== updatedAt.id &&
311
327
  field.type !== createdAt.id &&
@@ -330,7 +346,7 @@ exports.linkField = [tel.id, url.id];
330
346
  exports.passwordUrlField = [password.id, url.id]; //N
331
347
  exports.largeTextNumberField = [large_text.id, number.id]; //N
332
348
  exports.booleanUrlField = [boolean.id, url.id]; //N
333
- exports.hiddenField = [createdBy.id, isDeleted.id]; //N
349
+ exports.hiddenField = [createdBy.id, isDeleted.id, updatedBy.id]; //N
334
350
  exports.passwordBooleanField = [boolean.id, password.id]; //N
335
351
  exports.timeSlotPicker = [time_picker.id, time_slot.id]; //N
336
352
  exports.textNumberField = [text.id, number.id]; //N
@@ -429,6 +445,8 @@ var filterFieldsForDataTable = function (fields) {
429
445
  return fields.filter(function (field) {
430
446
  return (field.type !== "utility" &&
431
447
  field.type !== createdBy.id &&
448
+ field.type !== updatedBy.id &&
449
+ field.type !== version.id &&
432
450
  field.type !== uuid.id &&
433
451
  field.type !== updatedAt.id &&
434
452
  field.type !== createdAt.id &&
@@ -443,6 +461,8 @@ exports.filterFieldsForDataTable = filterFieldsForDataTable;
443
461
  var filterFieldsForItemList = function (fields) {
444
462
  return fields.filter(function (field) {
445
463
  return (field.type !== createdBy.id &&
464
+ field.type !== updatedBy.id &&
465
+ field.type !== version.id &&
446
466
  field.type !== uuid.id &&
447
467
  field.type !== isDeleted.id &&
448
468
  field.type !== password.id);
@@ -455,6 +475,8 @@ var filterSystemCreatedFieldsForItemList = function (fields) {
455
475
  exports.filterSystemCreatedFieldsForItemList = filterSystemCreatedFieldsForItemList;
456
476
  var filterFieldForItemTemplate = function (fieldName) {
457
477
  return (fieldName !== createdBy.id &&
478
+ fieldName !== updatedBy.id &&
479
+ fieldName !== version.id &&
458
480
  fieldName !== createdAt.id &&
459
481
  fieldName !== updatedAt.id &&
460
482
  fieldName !== uuid.id &&
@@ -468,6 +490,8 @@ exports.filterFieldForItemTemplate = filterFieldForItemTemplate;
468
490
  var filterFieldsForItemTemplate = function (fields) {
469
491
  return fields.filter(function (field) {
470
492
  return (field.type !== createdBy.id &&
493
+ field.type !== updatedBy.id &&
494
+ field.type !== version.id &&
471
495
  field.type !== createdAt.id &&
472
496
  field.type !== updatedAt.id &&
473
497
  field.type !== uuid.id &&
@@ -237,12 +237,66 @@ exports.PERMISSION_TYPES = [
237
237
  },
238
238
  { key: exports.VALIDATION, label: "Validations", category: "Collection" },
239
239
  { key: exports.WEBHOOK, label: "Webhooks", category: "Webhook" },
240
+ {
241
+ key: externalApi_1.AGREEMENT_TEMPLATE,
242
+ label: "Agreement Templates",
243
+ category: "Templates",
244
+ },
245
+ {
246
+ key: externalApi_1.TYPESENSE_SEARCH_TEMPLATE,
247
+ label: "Typesense Search Template",
248
+ category: "Templates",
249
+ },
240
250
  ];
241
251
  exports.truthyValues = [
242
- 1, '1', true, 'true', 'True', 'TRUE', 'yes', 'Yes', 'YES', 'y', 'Y', 't', 'T',
243
- 'on', 'On', 'ON', 'enable', 'Enable', 'ENABLE', 'enabled', 'Enabled', 'ENABLED'
252
+ 1,
253
+ "1",
254
+ true,
255
+ "true",
256
+ "True",
257
+ "TRUE",
258
+ "yes",
259
+ "Yes",
260
+ "YES",
261
+ "y",
262
+ "Y",
263
+ "t",
264
+ "T",
265
+ "on",
266
+ "On",
267
+ "ON",
268
+ "enable",
269
+ "Enable",
270
+ "ENABLE",
271
+ "enabled",
272
+ "Enabled",
273
+ "ENABLED",
244
274
  ];
245
275
  exports.falsyValues = [
246
- 0, '0', false, 'false', 'False', 'FALSE', 'no', 'No', 'NO', 'n', 'N', 'f', 'F',
247
- 'off', 'Off', 'OFF', 'disable', 'Disable', 'DISABLE', 'disabled', 'Disabled', 'DISABLED', '', null, undefined, NaN
276
+ 0,
277
+ "0",
278
+ false,
279
+ "false",
280
+ "False",
281
+ "FALSE",
282
+ "no",
283
+ "No",
284
+ "NO",
285
+ "n",
286
+ "N",
287
+ "f",
288
+ "F",
289
+ "off",
290
+ "Off",
291
+ "OFF",
292
+ "disable",
293
+ "Disable",
294
+ "DISABLE",
295
+ "disabled",
296
+ "Disabled",
297
+ "DISABLED",
298
+ "",
299
+ null,
300
+ undefined,
301
+ NaN,
248
302
  ];
@@ -52,6 +52,8 @@ export declare const XATA = "XATA";
52
52
  export declare const DIRECTUS = "DIRECTUS";
53
53
  export declare const SALESFORCE = "SALESFORCE";
54
54
  export declare const COLLECTION_SNAPSHOT = "COLLECTION_SNAPSHOT";
55
+ export declare const AGREEMENT_TEMPLATE = "AGREEMENT_TEMPLATE";
56
+ export declare const TYPESENSE_SEARCH_TEMPLATE = "TYPESENSE_SEARCH_TEMPLATE";
55
57
  export declare const API_TYPES: string[];
56
58
  export declare const API_TYPES2: string[];
57
59
  export declare const dataSourcePrimaryKeys: string[];
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  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.COOKIES = exports.LOCAL_STORAGE = exports.SESSION_STORAGE = exports.FORM_DATA_SESSION = exports.ENVIRONMENT_VARIABLE = exports.PROJECT_CONSTANTS = exports.COLLECTION_CONSTANTS = exports.DERIVED_FIELDS = exports.REFERENCE_FIELDS = exports.CURRENT_SETTINGS_LOWER = 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 = exports.COLLECTION_SNAPSHOT = exports.SALESFORCE = exports.DIRECTUS = exports.XATA = void 0;
4
+ exports.fieldsKeyPrefixMap = exports.fieldsPrefixForDF = exports.dataSourcePrimaryKeys = exports.API_TYPES2 = exports.API_TYPES = exports.TYPESENSE_SEARCH_TEMPLATE = exports.AGREEMENT_TEMPLATE = exports.COLLECTION_SNAPSHOT = exports.SALESFORCE = exports.DIRECTUS = exports.XATA = 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";
@@ -56,6 +56,8 @@ exports.XATA = "XATA";
56
56
  exports.DIRECTUS = "DIRECTUS";
57
57
  exports.SALESFORCE = "SALESFORCE";
58
58
  exports.COLLECTION_SNAPSHOT = "COLLECTION_SNAPSHOT";
59
+ exports.AGREEMENT_TEMPLATE = "AGREEMENT_TEMPLATE";
60
+ exports.TYPESENSE_SEARCH_TEMPLATE = "TYPESENSE_SEARCH_TEMPLATE";
59
61
  exports.API_TYPES = [
60
62
  exports.REST_API,
61
63
  exports.DATABASE,
@@ -62,4 +62,5 @@ export declare const permissionTypes: {
62
62
  AWS_SIGNATURE: string;
63
63
  AUDIT_TRAIL: string;
64
64
  AUDIT_LOG: string;
65
+ TYPESENSE_SEARCH: string;
65
66
  };
@@ -64,6 +64,7 @@ var AWS_SIGNATURE = "AWS_SIGNATURE";
64
64
  var AUDIT_TRAIL = "AUDIT_TRAIL";
65
65
  var AUDIT_LOG = "AUDIT_LOG";
66
66
  var EMAIL_OTP_AUTHENTICATOR = "EMAIL_OTP_AUTHENTICATOR";
67
+ var TYPESENSE_SEARCH = "TYPESENSE_SEARCH";
67
68
  exports.permissionTypes = {
68
69
  CUSTOM_COMPONENT: CUSTOM_COMPONENT,
69
70
  DATA_SOURCE: DATA_SOURCE,
@@ -128,4 +129,5 @@ exports.permissionTypes = {
128
129
  AWS_SIGNATURE: AWS_SIGNATURE,
129
130
  AUDIT_TRAIL: AUDIT_TRAIL,
130
131
  AUDIT_LOG: AUDIT_LOG,
132
+ TYPESENSE_SEARCH: TYPESENSE_SEARCH,
131
133
  };
@@ -64,6 +64,7 @@ export declare const pluginCode: {
64
64
  TEXT_ANONYMIZATION_ACTIVITY_TRACKER: string;
65
65
  AUDIT_LOG: string;
66
66
  AUDIT_TRAIL: string;
67
+ TYPESENSE_SEARCH: string;
67
68
  };
68
69
  export declare const loginPluginCode: string[];
69
70
  export declare const chatGptModels: {
@@ -67,6 +67,7 @@ exports.pluginCode = {
67
67
  TEXT_ANONYMIZATION_ACTIVITY_TRACKER: "TEXT_ANONYMIZATION_ACTIVITY_TRACKER",
68
68
  AUDIT_LOG: "AUDIT_LOG",
69
69
  AUDIT_TRAIL: "AUDIT_TRAIL",
70
+ TYPESENSE_SEARCH: "TYPESENSE_SEARCH",
70
71
  };
71
72
  exports.loginPluginCode = [
72
73
  exports.pluginCode.LOGIN,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drapcode-constant",
3
- "version": "1.6.4",
3
+ "version": "1.6.6",
4
4
  "description": "Drapcode Constants",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",