@engyalo/workflow-types 1.1.5 → 1.1.6-feat-event-log-source-bf4d5b1

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.
@@ -16,6 +16,10 @@ export declare enum Roles {
16
16
  ADMIN = "admin",
17
17
  USER = "user"
18
18
  }
19
+ export declare enum EventLogSource {
20
+ PLATFORM = "platform",
21
+ CLI = "cli"
22
+ }
19
23
  export declare enum LogActions {
20
24
  CREATED_WORKFLOW = "CREATE_WORKFLOW",
21
25
  UPDATED_WORKFLOW = "UPDATE_WORKFLOW",
@@ -50,4 +54,5 @@ export interface IEventLogs {
50
54
  componentReference?: string;
51
55
  componentName: string;
52
56
  createdAt: Date;
57
+ source?: EventLogSource;
53
58
  }
@@ -1,11 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LogActions = exports.Roles = void 0;
3
+ exports.LogActions = exports.EventLogSource = exports.Roles = void 0;
4
4
  var Roles;
5
5
  (function (Roles) {
6
6
  Roles["ADMIN"] = "admin";
7
7
  Roles["USER"] = "user";
8
8
  })(Roles || (exports.Roles = Roles = {}));
9
+ var EventLogSource;
10
+ (function (EventLogSource) {
11
+ EventLogSource["PLATFORM"] = "platform";
12
+ EventLogSource["CLI"] = "cli";
13
+ })(EventLogSource || (exports.EventLogSource = EventLogSource = {}));
9
14
  var LogActions;
10
15
  (function (LogActions) {
11
16
  LogActions["CREATED_WORKFLOW"] = "CREATE_WORKFLOW";
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/models/client.ts"],"names":[],"mappings":";;;AAiBA,IAAY,KAGX;AAHD,WAAY,KAAK;IAChB,wBAAe,CAAA;IACf,sBAAa,CAAA;AACd,CAAC,EAHW,KAAK,qBAAL,KAAK,QAGhB;AAED,IAAY,UAwBX;AAxBD,WAAY,UAAU;IACrB,kDAAoC,CAAA;IACpC,kDAAoC,CAAA;IACpC,qDAAuC,C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;IAC/C,6EAA+D,CAAA;IAC/D,6EAA+D,CAAA;IAC/D,uEAAyD,CAAA;AAC1D,CAAC,EAxBW,UAAU,0BAAV,UAAU,QAwBrB"}
@@ -1,4 +1,4 @@
1
- export { IClient, Roles, IPrivileges, IReadWriteSettings, LogActions, IEventLogs } from './client';
1
+ export { IClient, Roles, IPrivileges, IReadWriteSettings, LogActions, IEventLogs, EventLogSource } from './client';
2
2
  export { IGeneralStatus } from './status';
3
3
  export { TriggerTypes, ITriggers } from './triggers';
4
4
  export { IWorkflow, IWorkflowCreatePayload, IWorkflowCreateRespose, IWorkflowUpdatePayload, IWorkflowUpdateResponse, IWorkflowDeletePayload, IWorkflowDeleteResponse } from './workflows';
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isValidAgentToolType = exports.IAgentToolType = exports.AvailableTemplates = exports.IExtensionStatus = exports.GoToSchema_Version1 = exports.BaseActionSchema = exports.ActionSchemaTypes = exports.ICustomIntentStatus = exports.IActivityTemplateType = exports.IColumnTypes = exports.IntentsResponseError = exports.TablesResponseError = exports.VersioningResponseError = exports.SharedResponseErrors = exports.TriggerResponseError = exports.ScopeResponseError = exports.ComponentResponseError = exports.ActivityTemplateResponseError = exports.ActivityResponseErrors = exports.WorkflowResponseErrors = exports.HttpStatusCodes = exports.IComponentType = exports.ComponentTypeEnum = exports.TriggerTypes = exports.IGeneralStatus = exports.LogActions = exports.Roles = void 0;
3
+ exports.isValidAgentToolType = exports.IAgentToolType = exports.AvailableTemplates = exports.IExtensionStatus = exports.GoToSchema_Version1 = exports.BaseActionSchema = exports.ActionSchemaTypes = exports.ICustomIntentStatus = exports.IActivityTemplateType = exports.IColumnTypes = exports.IntentsResponseError = exports.TablesResponseError = exports.VersioningResponseError = exports.SharedResponseErrors = exports.TriggerResponseError = exports.ScopeResponseError = exports.ComponentResponseError = exports.ActivityTemplateResponseError = exports.ActivityResponseErrors = exports.WorkflowResponseErrors = exports.HttpStatusCodes = exports.IComponentType = exports.ComponentTypeEnum = exports.TriggerTypes = exports.IGeneralStatus = exports.EventLogSource = exports.LogActions = exports.Roles = void 0;
4
4
  var client_1 = require("./client");
5
5
  Object.defineProperty(exports, "Roles", { enumerable: true, get: function () { return client_1.Roles; } });
6
6
  Object.defineProperty(exports, "LogActions", { enumerable: true, get: function () { return client_1.LogActions; } });
7
+ Object.defineProperty(exports, "EventLogSource", { enumerable: true, get: function () { return client_1.EventLogSource; } });
7
8
  var status_1 = require("./status");
8
9
  Object.defineProperty(exports, "IGeneralStatus", { enumerable: true, get: function () { return status_1.IGeneralStatus; } });
9
10
  var triggers_1 = require("./triggers");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;AAAA,mCAAmG;AAAjF,+FAAA,KAAK,OAAA;AAAmC,oGAAA,UAAU,OAAA;AACpE,mCAA0C;AAAjC,wGAAA,cAAc,OAAA;AACvB,uCAAqD;AAA5C,wGAAA,YAAY,OAAA;AAGrB,2CAoBsB;AATrB,+GAAA,iBAAiB,OAAA;AACjB,4GAAA,cAAc,OAAA;AAef,uCAeoB;AAXnB,2GAAA,eAAe,OAAA;AACf,kHAAA,sBAAsB,OAAA;AACtB,kHAAA,sBAAsB,OAAA;AACtB,yHAAA,6BAA6B,OAAA;AAC7B,kHAAA,sBAAsB,OAAA;AACtB,8GAAA,kBAAkB,OAAA;AAClB,gHAAA,oBAAoB,OAAA;AACpB,gHAAA,oBAAoB,OAAA;AACpB,mHAAA,uBAAuB,OAAA;AACvB,+GAAA,mBAAmB,OAAA;AACnB,gHAAA,oBAAoB,OAAA;AAGrB,mCAA+E;AAA/C,sGAAA,YAAY,OAAA;AAC5C,2DAAgK;AAAvJ,2HAAA,qBAAqB,OAAA;AAE9B,mDAAsE;AAA9C,qHAAA,mBAAmB,OAAA;AAE3C,mDAA0I;AAAjI,mHAAA,iBAAiB,OAAA;AAAsB,kHAAA,gBAAgB,OAAA;AAAqB,qHAAA,mBAAmB,OAAA;AAGxG,qDAAmK;AAAlF,mHAAA,gBAAgB,OAAA;AAAoB,qHAAA,kBAAkB,OAAA;AAEvI,6CAAkG;AAA5D,6GAAA,cAAc,OAAA;AAAE,mHAAA,oBAAoB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;AAAA,mCAAmH;AAAjG,+FAAA,KAAK,OAAA;AAAmC,oGAAA,UAAU,OAAA;AAAc,wGAAA,cAAc,OAAA;AAChG,mCAA0C;AAAjC,wGAAA,cAAc,OAAA;AACvB,uCAAqD;AAA5C,wGAAA,YAAY,OAAA;AAGrB,2CAoBsB;AATrB,+GAAA,iBAAiB,OAAA;AACjB,4GAAA,cAAc,OAAA;AAef,uCAeoB;AAXnB,2GAAA,eAAe,OAAA;AACf,kHAAA,sBAAsB,OAAA;AACtB,kHAAA,sBAAsB,OAAA;AACtB,yHAAA,6BAA6B,OAAA;AAC7B,kHAAA,sBAAsB,OAAA;AACtB,8GAAA,kBAAkB,OAAA;AAClB,gHAAA,oBAAoB,OAAA;AACpB,gHAAA,oBAAoB,OAAA;AACpB,mHAAA,uBAAuB,OAAA;AACvB,+GAAA,mBAAmB,OAAA;AACnB,gHAAA,oBAAoB,OAAA;AAGrB,mCAA+E;AAA/C,sGAAA,YAAY,OAAA;AAC5C,2DAAgK;AAAvJ,2HAAA,qBAAqB,OAAA;AAE9B,mDAAsE;AAA9C,qHAAA,mBAAmB,OAAA;AAE3C,mDAA0I;AAAjI,mHAAA,iBAAiB,OAAA;AAAsB,kHAAA,gBAAgB,OAAA;AAAqB,qHAAA,mBAAmB,OAAA;AAGxG,qDAAmK;AAAlF,mHAAA,gBAAgB,OAAA;AAAoB,qHAAA,kBAAkB,OAAA;AAEvI,6CAAkG;AAA5D,6GAAA,cAAc,OAAA;AAAE,mHAAA,oBAAoB,OAAA"}
@@ -11,6 +11,7 @@ export interface IWorkflow {
11
11
  language?: string;
12
12
  partnerId: string;
13
13
  customerId: string;
14
+ workspaceId?: string;
14
15
  stepSequence: number;
15
16
  status: IGeneralStatus;
16
17
  channels: IChannel[];
@@ -42,6 +43,7 @@ export interface IWorkflowUpdatePayload {
42
43
  language?: string;
43
44
  partnerId?: string;
44
45
  customerId?: string;
46
+ workspaceId?: string;
45
47
  stepSequence?: number;
46
48
  channels?: IChannel[];
47
49
  config?: unknown;
package/package.json CHANGED
@@ -1,105 +1,105 @@
1
1
  {
2
- "name": "@engyalo/workflow-types",
3
- "version": "1.1.5",
4
- "description": "",
5
- "main": "./lib/index.js",
6
- "types": "./lib/index.d.ts",
7
- "scripts": {
8
- "lint": "eslint . --ext ts --fix",
9
- "tsc": "tsc --build",
10
- "clearjs": "npx rimraf ./lib",
11
- "pretest": "npx typescript-json-schema src/models/workflows.ts \"*\" --strictNullChecks --noExtraProps --required --id workflowsSchema -o tests/schemas/workflows.schema.json",
12
- "test": "jest",
13
- "prebuild": "npm run clearjs",
14
- "build": "npm run tsc"
15
- },
16
- "repository": {
17
- "type": "git",
18
- "url": "git@github.com:yalochat/worfklows-types.git"
19
- },
20
- "directories": {
21
- "lib": "lib"
22
- },
23
- "files": [
24
- "lib"
25
- ],
26
- "keywords": [
27
- "workflow",
28
- "types"
29
- ],
30
- "author": "Engineering @ Yalo",
31
- "license": "MIT",
32
- "eslintConfig": {
33
- "extends": [
34
- "plugin:@typescript-eslint/recommended",
35
- "plugin:prettier/recommended"
36
- ],
37
- "parser": "@typescript-eslint/parser",
38
- "rules": {
39
- "quotes": [
40
- 2,
41
- "single",
42
- "avoid-escape"
43
- ],
44
- "no-debugger": "error",
45
- "no-process-env": "off",
46
- "import/prefer-default-export": "off",
47
- "@typescript-eslint/explicit-function-return-type": "off",
48
- "@typescript-eslint/no-unused-vars": [
49
- "error",
50
- {
51
- "vars": "all",
52
- "args": "after-used",
53
- "ignoreRestSiblings": true
54
- }
55
- ],
56
- "new-cap": [
57
- "error",
58
- {
59
- "capIsNewExceptions": [
60
- "Injectable",
61
- "Inject"
62
- ]
63
- }
64
- ],
65
- "prefer-destructuring": [
66
- "error",
67
- {
68
- "VariableDeclarator": {
69
- "array": false,
70
- "object": true
71
- },
72
- "AssignmentExpression": {
73
- "array": true,
74
- "object": false
75
- }
76
- },
77
- {
78
- "enforceForRenamedProperties": false
79
- }
80
- ]
81
- }
82
- },
83
- "devDependencies": {
84
- "@types/jest": "29.5.8",
85
- "@types/jest-json-schema": "6.1.4",
86
- "@types/node": "^16.18.114",
87
- "@typescript-eslint/eslint-plugin": "6.10.0",
88
- "@typescript-eslint/parser": "6.10.0",
89
- "eslint": "8.53.0",
90
- "eslint-config-prettier": "9.0.0",
91
- "eslint-plugin-import": "2.29.0",
92
- "eslint-plugin-prettier": "5.0.1",
93
- "jest": "29.7.0",
94
- "jest-json-schema": "6.1.0",
95
- "prettier": "3.0.3",
96
- "ts-jest": "29.1.1",
97
- "typescript": "5.2.2"
98
- },
99
- "dependencies": {
100
- "zod": "3.22.4"
101
- },
102
- "overrides": {
103
- "cross-spawn": "7.0.6"
104
- }
105
- }
2
+ "name": "@engyalo/workflow-types",
3
+ "version": "1.1.6-feat-event-log-source-bf4d5b1",
4
+ "description": "",
5
+ "main": "./lib/index.js",
6
+ "types": "./lib/index.d.ts",
7
+ "scripts": {
8
+ "lint": "eslint . --ext ts --fix",
9
+ "tsc": "tsc --build",
10
+ "clearjs": "npx rimraf ./lib",
11
+ "pretest": "npx typescript-json-schema src/models/workflows.ts \"*\" --strictNullChecks --noExtraProps --required --id workflowsSchema -o tests/schemas/workflows.schema.json",
12
+ "test": "jest",
13
+ "prebuild": "npm run clearjs",
14
+ "build": "npm run tsc"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git@github.com:yalochat/worfklows-types.git"
19
+ },
20
+ "directories": {
21
+ "lib": "lib"
22
+ },
23
+ "files": [
24
+ "lib"
25
+ ],
26
+ "keywords": [
27
+ "workflow",
28
+ "types"
29
+ ],
30
+ "author": "Engineering @ Yalo",
31
+ "license": "MIT",
32
+ "eslintConfig": {
33
+ "extends": [
34
+ "plugin:@typescript-eslint/recommended",
35
+ "plugin:prettier/recommended"
36
+ ],
37
+ "parser": "@typescript-eslint/parser",
38
+ "rules": {
39
+ "quotes": [
40
+ 2,
41
+ "single",
42
+ "avoid-escape"
43
+ ],
44
+ "no-debugger": "error",
45
+ "no-process-env": "off",
46
+ "import/prefer-default-export": "off",
47
+ "@typescript-eslint/explicit-function-return-type": "off",
48
+ "@typescript-eslint/no-unused-vars": [
49
+ "error",
50
+ {
51
+ "vars": "all",
52
+ "args": "after-used",
53
+ "ignoreRestSiblings": true
54
+ }
55
+ ],
56
+ "new-cap": [
57
+ "error",
58
+ {
59
+ "capIsNewExceptions": [
60
+ "Injectable",
61
+ "Inject"
62
+ ]
63
+ }
64
+ ],
65
+ "prefer-destructuring": [
66
+ "error",
67
+ {
68
+ "VariableDeclarator": {
69
+ "array": false,
70
+ "object": true
71
+ },
72
+ "AssignmentExpression": {
73
+ "array": true,
74
+ "object": false
75
+ }
76
+ },
77
+ {
78
+ "enforceForRenamedProperties": false
79
+ }
80
+ ]
81
+ }
82
+ },
83
+ "devDependencies": {
84
+ "@types/jest": "29.5.14",
85
+ "@types/jest-json-schema": "6.1.4",
86
+ "@types/node": "16.18.126",
87
+ "@typescript-eslint/eslint-plugin": "6.10.0",
88
+ "@typescript-eslint/parser": "6.10.0",
89
+ "eslint": "8.57.1",
90
+ "eslint-config-prettier": "10.1.8",
91
+ "eslint-plugin-import": "2.32.0",
92
+ "eslint-plugin-prettier": "5.5.5",
93
+ "jest": "29.7.0",
94
+ "jest-json-schema": "6.1.0",
95
+ "prettier": "3.8.3",
96
+ "ts-jest": "29.1.1",
97
+ "typescript": "5.2.2"
98
+ },
99
+ "dependencies": {
100
+ "zod": "3.22.4"
101
+ },
102
+ "overrides": {
103
+ "cross-spawn": "7.0.6"
104
+ }
105
+ }