directus 9.11.1 → 9.12.2

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.
Files changed (104) hide show
  1. package/dist/app.js +14 -1
  2. package/dist/cli/utils/create-env/env-stub.liquid +266 -9
  3. package/dist/constants.d.ts +1 -0
  4. package/dist/constants.js +5 -1
  5. package/dist/controllers/activity.js +1 -1
  6. package/dist/controllers/flows.d.ts +2 -0
  7. package/dist/controllers/flows.js +157 -0
  8. package/dist/controllers/folders.js +1 -1
  9. package/dist/controllers/notifications.js +1 -1
  10. package/dist/controllers/operations.d.ts +2 -0
  11. package/dist/controllers/operations.js +138 -0
  12. package/dist/database/helpers/fn/dialects/oracle.d.ts +9 -9
  13. package/dist/database/helpers/fn/dialects/oracle.js +22 -16
  14. package/dist/database/helpers/fn/dialects/sqlite.d.ts +9 -9
  15. package/dist/database/helpers/fn/dialects/sqlite.js +46 -16
  16. package/dist/database/helpers/fn/types.d.ts +12 -9
  17. package/dist/database/index.js +10 -19
  18. package/dist/database/migrations/20220429A-add-flows.d.ts +3 -0
  19. package/dist/database/migrations/20220429A-add-flows.js +83 -0
  20. package/dist/database/migrations/20220429B-add-color-to-insights-icon.d.ts +3 -0
  21. package/dist/database/migrations/20220429B-add-color-to-insights-icon.js +15 -0
  22. package/dist/database/migrations/20220429C-drop-non-null-from-ip-of-activity.d.ts +3 -0
  23. package/dist/database/migrations/20220429C-drop-non-null-from-ip-of-activity.js +15 -0
  24. package/dist/database/migrations/20220429D-drop-non-null-from-sender-of-notifications.d.ts +3 -0
  25. package/dist/database/migrations/20220429D-drop-non-null-from-sender-of-notifications.js +15 -0
  26. package/dist/database/seeds/05-activity.yaml +0 -1
  27. package/dist/database/system-data/collections/collections.yaml +4 -0
  28. package/dist/database/system-data/fields/flows.yaml +21 -0
  29. package/dist/database/system-data/fields/operations.yaml +19 -0
  30. package/dist/database/system-data/fields/users.yaml +2 -4
  31. package/dist/database/system-data/relations/relations.yaml +20 -0
  32. package/dist/env.d.ts +1 -1
  33. package/dist/env.js +6 -30
  34. package/dist/extensions.d.ts +5 -1
  35. package/dist/extensions.js +96 -39
  36. package/dist/flows.d.ts +22 -0
  37. package/dist/flows.js +332 -0
  38. package/dist/messenger.d.ts +24 -0
  39. package/dist/messenger.js +64 -0
  40. package/dist/operations/condition/index.d.ts +6 -0
  41. package/dist/operations/condition/index.js +15 -0
  42. package/dist/operations/item-create/index.d.ts +8 -0
  43. package/dist/operations/item-create/index.js +40 -0
  44. package/dist/operations/item-delete/index.d.ts +9 -0
  45. package/dist/operations/item-delete/index.js +45 -0
  46. package/dist/operations/item-read/index.d.ts +9 -0
  47. package/dist/operations/item-read/index.js +45 -0
  48. package/dist/operations/item-update/index.d.ts +10 -0
  49. package/dist/operations/item-update/index.js +50 -0
  50. package/dist/operations/log/index.d.ts +5 -0
  51. package/dist/operations/log/index.js +14 -0
  52. package/dist/operations/mail/index.d.ts +7 -0
  53. package/dist/operations/mail/index.js +16 -0
  54. package/dist/operations/notification/index.d.ts +8 -0
  55. package/dist/operations/notification/index.js +39 -0
  56. package/dist/operations/request/index.d.ts +12 -0
  57. package/dist/operations/request/index.js +18 -0
  58. package/dist/operations/sleep/index.d.ts +5 -0
  59. package/dist/operations/sleep/index.js +9 -0
  60. package/dist/operations/transform/index.d.ts +5 -0
  61. package/dist/operations/transform/index.js +10 -0
  62. package/dist/operations/trigger/index.d.ts +6 -0
  63. package/dist/operations/trigger/index.js +21 -0
  64. package/dist/services/activity.d.ts +1 -2
  65. package/dist/services/activity.js +10 -10
  66. package/dist/services/authentication.d.ts +2 -2
  67. package/dist/services/authentication.js +7 -7
  68. package/dist/services/authorization.js +12 -0
  69. package/dist/services/flows.d.ts +12 -0
  70. package/dist/services/flows.js +47 -0
  71. package/dist/services/graphql.js +13 -2
  72. package/dist/services/import-export.js +7 -3
  73. package/dist/services/index.d.ts +2 -0
  74. package/dist/services/index.js +2 -0
  75. package/dist/services/items.js +1 -1
  76. package/dist/services/mail/index.js +2 -1
  77. package/dist/services/notifications.d.ts +2 -1
  78. package/dist/services/notifications.js +4 -3
  79. package/dist/services/operations.d.ts +12 -0
  80. package/dist/services/operations.js +47 -0
  81. package/dist/services/users.js +5 -0
  82. package/dist/services/webhooks.d.ts +2 -0
  83. package/dist/services/webhooks.js +8 -7
  84. package/dist/types/events.d.ts +18 -0
  85. package/dist/types/events.js +2 -0
  86. package/dist/types/index.d.ts +1 -1
  87. package/dist/types/index.js +1 -1
  88. package/dist/utils/apply-snapshot.js +3 -0
  89. package/dist/utils/construct-flow-tree.d.ts +2 -0
  90. package/dist/utils/construct-flow-tree.js +31 -0
  91. package/dist/utils/get-accountability-for-role.d.ts +7 -0
  92. package/dist/utils/get-accountability-for-role.js +36 -0
  93. package/dist/utils/get-column.js +1 -1
  94. package/dist/utils/job-queue.d.ts +9 -0
  95. package/dist/utils/job-queue.js +24 -0
  96. package/dist/utils/operation-options.d.ts +3 -0
  97. package/dist/utils/operation-options.js +45 -0
  98. package/dist/utils/validate-query.js +1 -1
  99. package/dist/webhooks.d.ts +2 -0
  100. package/dist/webhooks.js +17 -2
  101. package/package.json +19 -15
  102. package/dist/types/activity.d.ts +0 -9
  103. package/dist/types/activity.js +0 -13
  104. package/example.env +0 -202
@@ -1,6 +1,8 @@
1
1
  import { AbstractServiceOptions, Item, PrimaryKey, Webhook, MutationOptions } from '../types';
2
2
  import { ItemsService } from './items';
3
+ import { Messenger } from '../messenger';
3
4
  export declare class WebhooksService extends ItemsService<Webhook> {
5
+ messenger: Messenger;
4
6
  constructor(options: AbstractServiceOptions);
5
7
  createOne(data: Partial<Item>, opts?: MutationOptions): Promise<PrimaryKey>;
6
8
  createMany(data: Partial<Item>[], opts?: MutationOptions): Promise<PrimaryKey[]>;
@@ -1,40 +1,41 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WebhooksService = void 0;
4
- const webhooks_1 = require("../webhooks");
5
4
  const items_1 = require("./items");
5
+ const messenger_1 = require("../messenger");
6
6
  class WebhooksService extends items_1.ItemsService {
7
7
  constructor(options) {
8
8
  super('directus_webhooks', options);
9
+ this.messenger = (0, messenger_1.getMessenger)();
9
10
  }
10
11
  async createOne(data, opts) {
11
12
  const result = await super.createOne(data, opts);
12
- await (0, webhooks_1.register)();
13
+ this.messenger.publish('webhooks', { type: 'reload' });
13
14
  return result;
14
15
  }
15
16
  async createMany(data, opts) {
16
17
  const result = await super.createMany(data, opts);
17
- await (0, webhooks_1.register)();
18
+ this.messenger.publish('webhooks', { type: 'reload' });
18
19
  return result;
19
20
  }
20
21
  async updateOne(key, data, opts) {
21
22
  const result = await super.updateOne(key, data, opts);
22
- await (0, webhooks_1.register)();
23
+ this.messenger.publish('webhooks', { type: 'reload' });
23
24
  return result;
24
25
  }
25
26
  async updateMany(keys, data, opts) {
26
27
  const result = await super.updateMany(keys, data, opts);
27
- await (0, webhooks_1.register)();
28
+ this.messenger.publish('webhooks', { type: 'reload' });
28
29
  return result;
29
30
  }
30
31
  async deleteOne(key, opts) {
31
32
  const result = await super.deleteOne(key, opts);
32
- await (0, webhooks_1.register)();
33
+ this.messenger.publish('webhooks', { type: 'reload' });
33
34
  return result;
34
35
  }
35
36
  async deleteMany(keys, opts) {
36
37
  const result = await super.deleteMany(keys, opts);
37
- await (0, webhooks_1.register)();
38
+ this.messenger.publish('webhooks', { type: 'reload' });
38
39
  return result;
39
40
  }
40
41
  }
@@ -0,0 +1,18 @@
1
+ import { ActionHandler, FilterHandler, InitHandler } from '@directus/shared/types';
2
+ import { ScheduledTask } from 'node-cron';
3
+ export declare type EventHandler = {
4
+ type: 'filter';
5
+ name: string;
6
+ handler: FilterHandler;
7
+ } | {
8
+ type: 'action';
9
+ name: string;
10
+ handler: ActionHandler;
11
+ } | {
12
+ type: 'init';
13
+ name: string;
14
+ handler: InitHandler;
15
+ } | {
16
+ type: 'schedule';
17
+ task: ScheduledTask;
18
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +1,8 @@
1
- export * from './activity';
2
1
  export * from './assets';
3
2
  export * from './ast';
4
3
  export * from './auth';
5
4
  export * from './collection';
5
+ export * from './events';
6
6
  export * from './files';
7
7
  export * from './graphql';
8
8
  export * from './items';
@@ -10,11 +10,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
- __exportStar(require("./activity"), exports);
14
13
  __exportStar(require("./assets"), exports);
15
14
  __exportStar(require("./ast"), exports);
16
15
  __exportStar(require("./auth"), exports);
17
16
  __exportStar(require("./collection"), exports);
17
+ __exportStar(require("./events"), exports);
18
18
  __exportStar(require("./files"), exports);
19
19
  __exportStar(require("./graphql"), exports);
20
20
  __exportStar(require("./items"), exports);
@@ -11,10 +11,12 @@ const services_1 = require("../services");
11
11
  const get_schema_1 = require("./get-schema");
12
12
  const get_snapshot_1 = require("./get-snapshot");
13
13
  const get_snapshot_diff_1 = require("./get-snapshot-diff");
14
+ const cache_1 = require("../cache");
14
15
  async function applySnapshot(snapshot, options) {
15
16
  var _a, _b, _c, _d;
16
17
  const database = (_a = options === null || options === void 0 ? void 0 : options.database) !== null && _a !== void 0 ? _a : (0, database_1.default)();
17
18
  const schema = (_b = options === null || options === void 0 ? void 0 : options.schema) !== null && _b !== void 0 ? _b : (await (0, get_schema_1.getSchema)({ database }));
19
+ const { systemCache } = (0, cache_1.getCache)();
18
20
  const current = (_c = options === null || options === void 0 ? void 0 : options.current) !== null && _c !== void 0 ? _c : (await (0, get_snapshot_1.getSnapshot)({ database, schema }));
19
21
  const snapshotDiff = (_d = options === null || options === void 0 ? void 0 : options.diff) !== null && _d !== void 0 ? _d : (0, get_snapshot_diff_1.getSnapshotDiff)(current, snapshot);
20
22
  await database.transaction(async (trx) => {
@@ -178,6 +180,7 @@ async function applySnapshot(snapshot, options) {
178
180
  }
179
181
  }
180
182
  });
183
+ await (systemCache === null || systemCache === void 0 ? void 0 : systemCache.clear());
181
184
  }
182
185
  exports.applySnapshot = applySnapshot;
183
186
  function isNestedMetaUpdate(diff) {
@@ -0,0 +1,2 @@
1
+ import { Flow, FlowRaw } from '@directus/shared/types';
2
+ export declare function constructFlowTree(flow: FlowRaw): Flow;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.constructFlowTree = void 0;
4
+ const lodash_1 = require("lodash");
5
+ function constructFlowTree(flow) {
6
+ var _a;
7
+ const rootOperation = (_a = flow.operations.find((operation) => operation.id === flow.operation)) !== null && _a !== void 0 ? _a : null;
8
+ const operationTree = constructOperationTree(rootOperation, flow.operations);
9
+ const flowTree = {
10
+ ...(0, lodash_1.omit)(flow, 'operations'),
11
+ operation: operationTree,
12
+ };
13
+ return flowTree;
14
+ }
15
+ exports.constructFlowTree = constructFlowTree;
16
+ function constructOperationTree(root, operations) {
17
+ if (root === null) {
18
+ return null;
19
+ }
20
+ const resolveOperation = root.resolve !== null ? operations.find((operation) => operation.id === root.resolve) : null;
21
+ const rejectOperation = root.reject !== null ? operations.find((operation) => operation.id === root.reject) : null;
22
+ if (resolveOperation === undefined || rejectOperation === undefined) {
23
+ throw new Error('Undefined reference in operations');
24
+ }
25
+ const operationTree = {
26
+ ...(0, lodash_1.omit)(root, 'flow'),
27
+ resolve: constructOperationTree(resolveOperation, operations),
28
+ reject: constructOperationTree(rejectOperation, operations),
29
+ };
30
+ return operationTree;
31
+ }
@@ -0,0 +1,7 @@
1
+ import { Accountability, SchemaOverview } from '@directus/shared/types';
2
+ import { Knex } from 'knex';
3
+ export declare function getAccountabilityForRole(role: null | string, context: {
4
+ accountability: null | Accountability;
5
+ schema: SchemaOverview;
6
+ database: Knex;
7
+ }): Promise<Accountability>;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAccountabilityForRole = void 0;
4
+ const get_permissions_1 = require("./get-permissions");
5
+ const exceptions_1 = require("../exceptions");
6
+ async function getAccountabilityForRole(role, context) {
7
+ let generatedAccountability = context.accountability;
8
+ if (role === null) {
9
+ generatedAccountability = {
10
+ role: null,
11
+ user: null,
12
+ admin: false,
13
+ app: false,
14
+ };
15
+ generatedAccountability.permissions = await (0, get_permissions_1.getPermissions)(generatedAccountability, context.schema);
16
+ }
17
+ else {
18
+ const roleInfo = await context.database
19
+ .select(['app_access', 'admin_access'])
20
+ .from('directus_roles')
21
+ .where({ id: role })
22
+ .first();
23
+ if (!roleInfo) {
24
+ throw new exceptions_1.InvalidConfigException(`Configured role "${role}" isn't a valid role ID or doesn't exist.`);
25
+ }
26
+ generatedAccountability = {
27
+ role,
28
+ user: null,
29
+ admin: roleInfo.admin_access === 1 || roleInfo.admin_access === '1' || roleInfo.admin_access === true,
30
+ app: roleInfo.app_access === 1 || roleInfo.app_access === '1' || roleInfo.app_access === true,
31
+ };
32
+ generatedAccountability.permissions = await (0, get_permissions_1.getPermissions)(generatedAccountability, context.schema);
33
+ }
34
+ return generatedAccountability;
35
+ }
36
+ exports.getAccountabilityForRole = getAccountabilityForRole;
@@ -28,7 +28,7 @@ function getColumn(knex, table, column, alias = (0, apply_function_to_column_nam
28
28
  if (allowedFunctions.includes(functionName) === false) {
29
29
  throw new exceptions_1.InvalidQueryException(`Invalid function specified "${functionName}"`);
30
30
  }
31
- const result = fn[functionName](table, columnName);
31
+ const result = fn[functionName](table, columnName, { type });
32
32
  if (alias) {
33
33
  return knex.raw(result + ' AS ??', [alias]);
34
34
  }
@@ -0,0 +1,9 @@
1
+ declare type Job = () => Promise<void> | void;
2
+ export declare class JobQueue {
3
+ private running;
4
+ private jobs;
5
+ constructor();
6
+ enqueue(job: Job): void;
7
+ private run;
8
+ }
9
+ export {};
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.JobQueue = void 0;
4
+ class JobQueue {
5
+ constructor() {
6
+ this.running = false;
7
+ this.jobs = [];
8
+ }
9
+ enqueue(job) {
10
+ this.jobs.push(job);
11
+ if (!this.running) {
12
+ this.run();
13
+ }
14
+ }
15
+ async run() {
16
+ this.running = true;
17
+ while (this.jobs.length > 0) {
18
+ const job = this.jobs.shift();
19
+ await job();
20
+ }
21
+ this.running = false;
22
+ }
23
+ }
24
+ exports.JobQueue = JobQueue;
@@ -0,0 +1,3 @@
1
+ export declare function applyOperationOptions(options: Record<string, any>, data: Record<string, any>): Record<string, any>;
2
+ export declare function optionToObject<T>(option: T): Exclude<T, string>;
3
+ export declare function optionToString(option: unknown): string;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.optionToString = exports.optionToObject = exports.applyOperationOptions = void 0;
4
+ const micromustache_1 = require("micromustache");
5
+ const parse_json_1 = require("./parse-json");
6
+ function resolveFn(path, scope) {
7
+ if (!scope)
8
+ return undefined;
9
+ const value = (0, micromustache_1.get)(scope, path);
10
+ return typeof value === 'object' ? JSON.stringify(value) : value;
11
+ }
12
+ function renderMustache(item, scope) {
13
+ if (typeof item === 'string') {
14
+ return (0, micromustache_1.renderFn)(item, resolveFn, scope, { explicit: true });
15
+ }
16
+ else if (Array.isArray(item)) {
17
+ return item.map((element) => renderMustache(element, scope));
18
+ }
19
+ else if (typeof item === 'object' && item !== null) {
20
+ return Object.fromEntries(Object.entries(item).map(([key, value]) => [key, renderMustache(value, scope)]));
21
+ }
22
+ else {
23
+ return item;
24
+ }
25
+ }
26
+ function applyOperationOptions(options, data) {
27
+ return Object.fromEntries(Object.entries(options).map(([key, value]) => {
28
+ if (typeof value === 'string') {
29
+ const single = value.match(/^\{\{\s*([^}\s]+)\s*\}\}$/);
30
+ if (single !== null) {
31
+ return [key, (0, micromustache_1.get)(data, single[1])];
32
+ }
33
+ }
34
+ return [key, renderMustache(value, data)];
35
+ }));
36
+ }
37
+ exports.applyOperationOptions = applyOperationOptions;
38
+ function optionToObject(option) {
39
+ return typeof option === 'string' ? (0, parse_json_1.parseJSON)(option) : option;
40
+ }
41
+ exports.optionToObject = optionToObject;
42
+ function optionToString(option) {
43
+ return typeof option === 'object' ? JSON.stringify(option) : String(option);
44
+ }
45
+ exports.optionToString = optionToString;
@@ -104,7 +104,7 @@ function validateFilterPrimitive(value, key) {
104
104
  false) {
105
105
  throw new exceptions_1.InvalidQueryException(`The filter value for "${key}" has to be a string, number, or boolean`);
106
106
  }
107
- if (typeof value === 'number' && Number.isNaN(value) && value <= Number.MAX_SAFE_INTEGER) {
107
+ if (typeof value === 'number' && (Number.isNaN(value) || value > Number.MAX_SAFE_INTEGER)) {
108
108
  throw new exceptions_1.InvalidQueryException(`The filter value for "${key}" is not a valid number`);
109
109
  }
110
110
  if (typeof value === 'string' && value.length === 0) {
@@ -1,2 +1,4 @@
1
+ export declare function init(): Promise<void>;
2
+ export declare function reload(): Promise<void>;
1
3
  export declare function register(): Promise<void>;
2
4
  export declare function unregister(): void;
package/dist/webhooks.js CHANGED
@@ -3,16 +3,31 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.unregister = exports.register = void 0;
6
+ exports.unregister = exports.register = exports.reload = exports.init = void 0;
7
7
  const axios_1 = __importDefault(require("axios"));
8
8
  const database_1 = __importDefault(require("./database"));
9
9
  const emitter_1 = __importDefault(require("./emitter"));
10
10
  const logger_1 = __importDefault(require("./logger"));
11
11
  const services_1 = require("./services");
12
12
  const get_schema_1 = require("./utils/get-schema");
13
+ const messenger_1 = require("./messenger");
13
14
  let registered = [];
14
- async function register() {
15
+ async function init() {
16
+ await register();
17
+ const messenger = (0, messenger_1.getMessenger)();
18
+ messenger.subscribe('webhooks', (event) => {
19
+ if (event.type === 'reload') {
20
+ reload();
21
+ }
22
+ });
23
+ }
24
+ exports.init = init;
25
+ async function reload() {
15
26
  unregister();
27
+ await register();
28
+ }
29
+ exports.reload = reload;
30
+ async function register() {
16
31
  const webhookService = new services_1.WebhooksService({ knex: (0, database_1.default)(), schema: await (0, get_schema_1.getSchema)() });
17
32
  const webhooks = await webhookService.readByQuery({ filter: { status: { _eq: 'active' } } });
18
33
  for (const webhook of webhooks) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "directus",
3
- "version": "9.11.1",
3
+ "version": "9.12.2",
4
4
  "license": "GPL-3.0-only",
5
5
  "homepage": "https://github.com/directus/directus#readme",
6
6
  "description": "Directus is a real-time API and App dashboard for managing SQL database content.",
@@ -73,21 +73,20 @@
73
73
  "files": [
74
74
  "dist",
75
75
  "LICENSE",
76
- "README.md",
77
- "example.env"
76
+ "README.md"
78
77
  ],
79
78
  "dependencies": {
80
79
  "@aws-sdk/client-ses": "^3.40.0",
81
- "@directus/app": "9.11.1",
82
- "@directus/drive": "9.11.1",
83
- "@directus/drive-azure": "9.11.1",
84
- "@directus/drive-gcs": "9.11.1",
85
- "@directus/drive-s3": "9.11.1",
86
- "@directus/extensions-sdk": "9.11.1",
87
- "@directus/format-title": "9.11.1",
88
- "@directus/schema": "9.11.1",
89
- "@directus/shared": "9.11.1",
90
- "@directus/specs": "9.11.1",
80
+ "@directus/app": "9.12.2",
81
+ "@directus/drive": "9.12.2",
82
+ "@directus/drive-azure": "9.12.2",
83
+ "@directus/drive-gcs": "9.12.2",
84
+ "@directus/drive-s3": "9.12.2",
85
+ "@directus/extensions-sdk": "9.12.2",
86
+ "@directus/format-title": "9.12.2",
87
+ "@directus/schema": "9.12.2",
88
+ "@directus/shared": "9.12.2",
89
+ "@directus/specs": "9.12.2",
91
90
  "@godaddy/terminus": "^4.9.0",
92
91
  "@rollup/plugin-alias": "^3.1.9",
93
92
  "@rollup/plugin-virtual": "^2.0.3",
@@ -112,12 +111,15 @@
112
111
  "execa": "^5.1.1",
113
112
  "exifr": "^7.1.2",
114
113
  "express": "^4.17.1",
114
+ "fast-redact": "^3.1.1",
115
115
  "flat": "^5.0.2",
116
116
  "fs-extra": "^10.0.0",
117
+ "globby": "^11.0.4",
117
118
  "graphql": "^15.5.0",
118
119
  "graphql-compose": "^9.0.1",
119
120
  "helmet": "^4.6.0",
120
121
  "inquirer": "^8.1.1",
122
+ "ioredis": "^4.27.6",
121
123
  "joi": "^17.3.0",
122
124
  "js-yaml": "^4.1.0",
123
125
  "js2xmlparser": "^4.0.1",
@@ -131,6 +133,7 @@
131
133
  "lodash": "^4.17.21",
132
134
  "macos-release": "^2.4.1",
133
135
  "marked": "^4.0.3",
136
+ "micromustache": "^8.0.3",
134
137
  "mime-types": "^2.1.31",
135
138
  "ms": "^2.1.3",
136
139
  "nanoid": "^3.1.23",
@@ -162,7 +165,6 @@
162
165
  },
163
166
  "optionalDependencies": {
164
167
  "@keyv/redis": "^2.1.2",
165
- "ioredis": "^4.27.6",
166
168
  "keyv-memcache": "^1.2.5",
167
169
  "memcached": "^2.2.2",
168
170
  "mysql": "^2.18.1",
@@ -171,7 +173,7 @@
171
173
  "sqlite3": "^5.0.6",
172
174
  "tedious": "^13.0.0"
173
175
  },
174
- "gitHead": "7e9812d04a95272720180d1cd60cfe9ee8075027",
176
+ "gitHead": "bce19abf6f52adc933ebc4f557e6959aa69d083e",
175
177
  "devDependencies": {
176
178
  "@types/async": "3.2.10",
177
179
  "@types/body-parser": "1.19.2",
@@ -183,9 +185,11 @@
183
185
  "@types/express": "4.17.13",
184
186
  "@types/express-pino-logger": "4.0.3",
185
187
  "@types/express-session": "1.17.4",
188
+ "@types/fast-redact": "^3.0.1",
186
189
  "@types/flat": "5.0.2",
187
190
  "@types/fs-extra": "9.0.13",
188
191
  "@types/inquirer": "8.1.3",
192
+ "@types/ioredis": "^4.28.10",
189
193
  "@types/jest": "27.4.1",
190
194
  "@types/js-yaml": "4.0.5",
191
195
  "@types/json2csv": "5.0.3",
@@ -1,9 +0,0 @@
1
- export declare enum Action {
2
- CREATE = "create",
3
- UPDATE = "update",
4
- DELETE = "delete",
5
- REVERT = "revert",
6
- COMMENT = "comment",
7
- UPLOAD = "upload",
8
- LOGIN = "login"
9
- }
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Action = void 0;
4
- var Action;
5
- (function (Action) {
6
- Action["CREATE"] = "create";
7
- Action["UPDATE"] = "update";
8
- Action["DELETE"] = "delete";
9
- Action["REVERT"] = "revert";
10
- Action["COMMENT"] = "comment";
11
- Action["UPLOAD"] = "upload";
12
- Action["LOGIN"] = "login";
13
- })(Action = exports.Action || (exports.Action = {}));