n8n-nodes-digit 0.1.5 → 0.1.7

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.
@@ -0,0 +1,9 @@
1
+ import type { ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class DIGITApi implements ICredentialType {
3
+ name: string;
4
+ type: string;
5
+ displayName: string;
6
+ description: string;
7
+ documentationUrl: string;
8
+ properties: INodeProperties[];
9
+ }
@@ -22,4 +22,3 @@ class DIGITApi {
22
22
  }
23
23
  }
24
24
  exports.DIGITApi = DIGITApi;
25
- //# sourceMappingURL=DIGITApi.credentials.js.map
@@ -0,0 +1,2 @@
1
+ import { DIGITApi } from './DIGITApi.credentials';
2
+ export { DIGITApi };
@@ -3,4 +3,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DIGITApi = void 0;
4
4
  const DIGITApi_credentials_1 = require("./DIGITApi.credentials");
5
5
  Object.defineProperty(exports, "DIGITApi", { enumerable: true, get: function () { return DIGITApi_credentials_1.DIGITApi; } });
6
- //# sourceMappingURL=index.js.map
@@ -0,0 +1,2 @@
1
+ export * from './nodes';
2
+ export * from './credentials';
package/dist/index.js CHANGED
@@ -16,4 +16,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./nodes"), exports);
18
18
  __exportStar(require("./credentials"), exports);
19
- //# sourceMappingURL=index.js.map
@@ -0,0 +1,6 @@
1
+ import { INodeType, INodeTypeDescription, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
2
+ export declare const description: INodeTypeDescription;
3
+ export declare class DIGIT implements INodeType {
4
+ description: INodeTypeDescription;
5
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
6
+ }
@@ -9,6 +9,9 @@ const filestore_operations_1 = require("./filestore.operations");
9
9
  const registry_operations_1 = require("./registry.operations");
10
10
  const notification_operations_1 = require("./notification.operations");
11
11
  const auth_operations_1 = require("./auth.operations");
12
+ // ======================================================
13
+ // ================= NODE DESCRIPTION ===================
14
+ // ======================================================
12
15
  exports.description = {
13
16
  displayName: 'DIGIT',
14
17
  name: 'digitApi',
@@ -64,6 +67,9 @@ exports.description = {
64
67
  ...auth_operations_1.authOperations,
65
68
  ],
66
69
  };
70
+ // ======================================================
71
+ // ================= EXECUTION ENGINE ===================
72
+ // ======================================================
67
73
  class DIGIT {
68
74
  constructor() {
69
75
  this.description = exports.description;
@@ -73,6 +79,9 @@ class DIGIT {
73
79
  const resource = this.getNodeParameter('resource', 0);
74
80
  const items = this.getInputData();
75
81
  const returnData = [];
82
+ // ==================================================
83
+ // AUTH — TOKEN DECODE
84
+ // ==================================================
76
85
  if (resource === 'auth') {
77
86
  const operation = this.getNodeParameter('authOperation', 0);
78
87
  if (operation === 'auth_decode_token') {
@@ -115,6 +124,9 @@ class DIGIT {
115
124
  return [returnData];
116
125
  }
117
126
  }
127
+ // ==================================================
128
+ // FILESTORE — FILE FETCH
129
+ // ==================================================
118
130
  if (resource === 'filestore') {
119
131
  const operation = this.getNodeParameter('filestoreOperation', 0);
120
132
  if (operation === 'file_get') {
@@ -149,6 +161,9 @@ class DIGIT {
149
161
  return [returnData];
150
162
  }
151
163
  }
164
+ // ==================================================
165
+ // BOUNDARY — SEARCH
166
+ // ==================================================
152
167
  if (resource === 'boundary') {
153
168
  const operation = this.getNodeParameter('boundaryOperation', 0);
154
169
  if (operation === 'boundary_search_codes') {
@@ -185,6 +200,9 @@ class DIGIT {
185
200
  return [returnData];
186
201
  }
187
202
  }
203
+ // ==================================================
204
+ // IDGEN — GENERATE
205
+ // ==================================================
188
206
  if (resource === 'idgen') {
189
207
  const operation = this.getNodeParameter('idgenOperation', 0);
190
208
  if (operation === 'idgen_generate') {
@@ -231,4 +249,3 @@ class DIGIT {
231
249
  }
232
250
  }
233
251
  exports.DIGIT = DIGIT;
234
- //# sourceMappingURL=DIGIT.node.js.map
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const authOperations: INodeProperties[];
@@ -1,7 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.authOperations = void 0;
4
+ // ======================================================
5
+ // Auth Operations
6
+ // ======================================================
4
7
  exports.authOperations = [
8
+ // ------------------------------------------------------
9
+ // OPERATION SELECTOR
10
+ // ------------------------------------------------------
5
11
  {
6
12
  displayName: 'Operation',
7
13
  name: 'authOperation',
@@ -13,6 +19,7 @@ exports.authOperations = [
13
19
  },
14
20
  },
15
21
  options: [
22
+ // ---------------- DECODE TOKEN ----------------
16
23
  {
17
24
  name: 'Auth → Decode Access Token',
18
25
  value: 'auth_decode_token',
@@ -22,6 +29,9 @@ exports.authOperations = [
22
29
  ],
23
30
  default: 'auth_decode_token',
24
31
  },
32
+ // ------------------------------------------------------
33
+ // PARAMETERS
34
+ // ------------------------------------------------------
25
35
  {
26
36
  displayName: 'Access Token',
27
37
  name: 'accessToken',
@@ -41,4 +51,3 @@ exports.authOperations = [
41
51
  },
42
52
  },
43
53
  ];
44
- //# sourceMappingURL=auth.operations.js.map
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const boundaryOperations: INodeProperties[];
@@ -1,7 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.boundaryOperations = void 0;
4
+ // ======================================================
5
+ // Boundary Operations (DIGIT)
6
+ // ======================================================
4
7
  exports.boundaryOperations = [
8
+ // ------------------------------------------------------
9
+ // OPERATION SELECTOR
10
+ // ------------------------------------------------------
5
11
  {
6
12
  displayName: 'Operation',
7
13
  name: 'boundaryOperation',
@@ -20,6 +26,9 @@ exports.boundaryOperations = [
20
26
  },
21
27
  ],
22
28
  },
29
+ // ------------------------------------------------------
30
+ // PARAMETERS
31
+ // ------------------------------------------------------
23
32
  {
24
33
  displayName: 'Codes',
25
34
  name: 'codes',
@@ -81,4 +90,3 @@ exports.boundaryOperations = [
81
90
  },
82
91
  },
83
92
  ];
84
- //# sourceMappingURL=boundary.operations.js.map
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const filestoreOperations: INodeProperties[];
@@ -1,7 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.filestoreOperations = void 0;
4
+ // ======================================================
5
+ // Filestore Operations (DIGIT)
6
+ // ======================================================
4
7
  exports.filestoreOperations = [
8
+ // ------------------------------------------------------
9
+ // OPERATION SELECTOR
10
+ // ------------------------------------------------------
5
11
  {
6
12
  displayName: 'Operation',
7
13
  name: 'filestoreOperation',
@@ -22,6 +28,9 @@ exports.filestoreOperations = [
22
28
  },
23
29
  ],
24
30
  },
31
+ // ------------------------------------------------------
32
+ // PARAMETERS
33
+ // ------------------------------------------------------
25
34
  {
26
35
  displayName: 'File ID',
27
36
  name: 'fileId',
@@ -71,4 +80,3 @@ exports.filestoreOperations = [
71
80
  },
72
81
  },
73
82
  ];
74
- //# sourceMappingURL=filestore.operations.js.map
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const idgenOperations: INodeProperties[];
@@ -1,7 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.idgenOperations = void 0;
4
+ // ======================================================
5
+ // IDGEN Operations (Generate Only)
6
+ // ======================================================
4
7
  exports.idgenOperations = [
8
+ // ------------------------------------------------------
9
+ // OPERATION SELECTOR
10
+ // ------------------------------------------------------
5
11
  {
6
12
  displayName: 'Operation',
7
13
  name: 'idgenOperation',
@@ -20,6 +26,9 @@ exports.idgenOperations = [
20
26
  ],
21
27
  default: 'idgen_generate',
22
28
  },
29
+ // ------------------------------------------------------
30
+ // REQUEST BODY
31
+ // ------------------------------------------------------
23
32
  {
24
33
  displayName: 'Request Body',
25
34
  name: 'requestBody',
@@ -93,4 +102,3 @@ exports.idgenOperations = [
93
102
  },
94
103
  },
95
104
  ];
96
- //# sourceMappingURL=idgen.operations.js.map
@@ -0,0 +1,2 @@
1
+ import { DIGIT } from './DIGIT.node';
2
+ export { DIGIT };
@@ -3,4 +3,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DIGIT = void 0;
4
4
  const DIGIT_node_1 = require("./DIGIT.node");
5
5
  Object.defineProperty(exports, "DIGIT", { enumerable: true, get: function () { return DIGIT_node_1.DIGIT; } });
6
- //# sourceMappingURL=index.js.map
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const notificationOperations: INodeProperties[];
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.notificationOperations = void 0;
4
+ // ======================================================
5
+ // Notification Operations
6
+ // ======================================================
4
7
  exports.notificationOperations = [
5
8
  {
6
9
  displayName: 'Operation',
@@ -21,6 +24,9 @@ exports.notificationOperations = [
21
24
  ],
22
25
  default: 'notification_send_email',
23
26
  },
27
+ // ------------------------------------------------------
28
+ // PARAMETERS
29
+ // ------------------------------------------------------
24
30
  {
25
31
  displayName: 'Tenant ID',
26
32
  name: 'tenantId',
@@ -68,4 +74,3 @@ exports.notificationOperations = [
68
74
  },
69
75
  },
70
76
  ];
71
- //# sourceMappingURL=notification.operations.js.map
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const registryOperations: INodeProperties[];
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.registryOperations = void 0;
4
+ // ======================================================
5
+ // Registry Operations (UI Parameters Only)
6
+ // ======================================================
4
7
  exports.registryOperations = [
5
8
  {
6
9
  displayName: 'Operation',
@@ -115,4 +118,3 @@ exports.registryOperations = [
115
118
  },
116
119
  },
117
120
  ];
118
- //# sourceMappingURL=registry.operations.js.map
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const workflowOperations: INodeProperties[];
@@ -1,7 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.workflowOperations = void 0;
4
+ // ======================================================
5
+ // Workflow Operations
6
+ // ======================================================
4
7
  exports.workflowOperations = [
8
+ // ------------------------------------------------------
9
+ // OPERATION SELECTOR
10
+ // ------------------------------------------------------
5
11
  {
6
12
  displayName: 'Operation',
7
13
  name: 'workflowOperation',
@@ -13,6 +19,7 @@ exports.workflowOperations = [
13
19
  },
14
20
  },
15
21
  options: [
22
+ // ---------------- TRANSITION ----------------
16
23
  {
17
24
  name: 'Transition → Execute',
18
25
  value: 'transition_execute',
@@ -22,6 +29,9 @@ exports.workflowOperations = [
22
29
  ],
23
30
  default: 'transition_execute',
24
31
  },
32
+ // ------------------------------------------------------
33
+ // SHARED PARAMETERS
34
+ // ------------------------------------------------------
25
35
  {
26
36
  displayName: 'Tenant ID',
27
37
  name: 'tenantId',
@@ -87,4 +97,3 @@ exports.workflowOperations = [
87
97
  },
88
98
  },
89
99
  ];
90
- //# sourceMappingURL=workflow.operations.js.map
package/package.json CHANGED
@@ -1,57 +1,22 @@
1
1
  {
2
2
  "name": "n8n-nodes-digit",
3
- "version": "0.1.5",
4
- "description": "DIGIT platform integration for workflow, boundary, filestore, registry, idgen and notification APIs",
5
- "keywords": [
6
- "n8n-community-node-package"
7
- ],
8
- "license": "MIT",
9
- "homepage": "https://github.com/srujana-egov/n8n-nodes-digit",
10
- "author": {
11
- "name": "Srujana Dadi (eGov)"
12
- },
13
- "repository": {
14
- "type": "git",
15
- "url": "https://github.com/srujana-egov/n8n-nodes-digit.git"
16
- },
3
+ "version": "0.1.7",
4
+ "description": "DIGIT Platform nodes for n8n",
17
5
  "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
18
7
  "files": [
19
- "dist/**/*.js",
20
- "dist/**/*.json",
21
- "dist/**/*.png",
22
- "LICENSE.md",
23
- "README.md"
8
+ "dist"
24
9
  ],
25
- "scripts": {
26
- "build": "tsc && gulp build:icons",
27
- "dev": "tsc --watch",
28
- "format": "prettier nodes credentials --write",
29
- "lint": "eslint nodes credentials package.json",
30
- "lintfix": "eslint nodes credentials package.json --fix",
31
- "prepublishOnly": "npm run build"
32
- },
33
10
  "n8n": {
34
- "n8nNodesApiVersion": 1,
35
- "credentials": [
36
- "dist/credentials/DigitApi.credentials.js"
37
- ],
38
11
  "nodes": [
39
- "dist/nodes/DIGIT.node.js"
12
+ "dist/nodes"
13
+ ],
14
+ "credentials": [
15
+ "dist/credentials"
40
16
  ]
41
17
  },
42
- "engines": {
43
- "node": ">=18"
44
- },
45
- "peerDependencies": {
46
- "n8n-workflow": "*"
47
- },
48
- "dependencies": {
49
- "gulp": "^5.0.1"
18
+ "scripts": {
19
+ "build": "tsc && gulp build:icons"
50
20
  },
51
- "devDependencies": {
52
- "@types/node": "^25.0.10",
53
- "@typescript-eslint/eslint-plugin": "^8.46.1",
54
- "@typescript-eslint/parser": "^8.46.1",
55
- "eslint": "^8.57.0"
56
- }
21
+ "license": "MIT"
57
22
  }
package/dist/package.json DELETED
@@ -1,57 +0,0 @@
1
- {
2
- "name": "n8n-nodes-digit",
3
- "version": "0.1.5",
4
- "description": "DIGIT platform integration for workflow, boundary, filestore, registry, idgen and notification APIs",
5
- "keywords": [
6
- "n8n-community-node-package"
7
- ],
8
- "license": "MIT",
9
- "homepage": "https://github.com/srujana-egov/n8n-nodes-digit",
10
- "author": {
11
- "name": "Srujana Dadi (eGov)"
12
- },
13
- "repository": {
14
- "type": "git",
15
- "url": "https://github.com/srujana-egov/n8n-nodes-digit.git"
16
- },
17
- "main": "dist/index.js",
18
- "files": [
19
- "dist/**/*.js",
20
- "dist/**/*.json",
21
- "dist/**/*.png",
22
- "LICENSE.md",
23
- "README.md"
24
- ],
25
- "scripts": {
26
- "build": "tsc && gulp build:icons",
27
- "dev": "tsc --watch",
28
- "format": "prettier nodes credentials --write",
29
- "lint": "eslint nodes credentials package.json",
30
- "lintfix": "eslint nodes credentials package.json --fix",
31
- "prepublishOnly": "npm run build"
32
- },
33
- "n8n": {
34
- "n8nNodesApiVersion": 1,
35
- "credentials": [
36
- "dist/credentials/DigitApi.credentials.js"
37
- ],
38
- "nodes": [
39
- "dist/nodes/DIGIT.node.js"
40
- ]
41
- },
42
- "engines": {
43
- "node": ">=18"
44
- },
45
- "peerDependencies": {
46
- "n8n-workflow": "*"
47
- },
48
- "dependencies": {
49
- "gulp": "^5.0.1"
50
- },
51
- "devDependencies": {
52
- "@types/node": "^25.0.10",
53
- "@typescript-eslint/eslint-plugin": "^8.46.1",
54
- "@typescript-eslint/parser": "^8.46.1",
55
- "eslint": "^8.57.0"
56
- }
57
- }