n8n-nodes-confirm8 0.10.0 → 0.13.0

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "n8n-nodes-confirm8",
3
- "version": "0.10.0",
4
- "description": "n8n node for Confirm8 API",
3
+ "version": "0.13.0",
4
+ "description": "Simple n8n node for Confirm8 API - no credentials needed",
5
5
  "license": "MIT",
6
6
  "author": "Bill Hebert",
7
7
  "keywords": [
@@ -20,9 +20,6 @@
20
20
  "dev": "tsc --watch"
21
21
  },
22
22
  "n8n": {
23
- "credentials": [
24
- "dist/credentials/Confirm8Api.credentials.js"
25
- ],
26
23
  "nodes": [
27
24
  "dist/nodes/Confirm8/ApiConfirm8.node.js"
28
25
  ]
@@ -1,9 +0,0 @@
1
- import type { ICredentialType, INodeProperties, ICredentialTestRequest, IHttpRequestOptions, ICredentialDataDecryptedObject } from 'n8n-workflow';
2
- export declare class Confirm8Api implements ICredentialType {
3
- name: string;
4
- displayName: string;
5
- documentationUrl: string;
6
- properties: INodeProperties[];
7
- test: ICredentialTestRequest;
8
- authenticate(credentials: ICredentialDataDecryptedObject, requestOptions: IHttpRequestOptions): Promise<IHttpRequestOptions>;
9
- }
@@ -1,63 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Confirm8Api = void 0;
4
- class Confirm8Api {
5
- constructor() {
6
- this.name = 'confirm8Api';
7
- this.displayName = 'Confirm8 API';
8
- this.documentationUrl = 'https://confirm8.com/api/docs';
9
- this.properties = [
10
- {
11
- displayName: 'Base URL',
12
- name: 'baseUrl',
13
- type: 'string',
14
- default: '',
15
- placeholder: 'https://api.confirm8.com',
16
- required: true,
17
- },
18
- {
19
- displayName: 'Bearer Token',
20
- name: 'bearerToken',
21
- type: 'string',
22
- typeOptions: {
23
- password: true,
24
- },
25
- default: '',
26
- required: true,
27
- },
28
- {
29
- displayName: 'X-API-DOMAIN',
30
- name: 'apiDomain',
31
- type: 'string',
32
- default: '',
33
- required: true,
34
- },
35
- {
36
- displayName: 'X-APIKEY-TOKEN',
37
- name: 'apiKeyToken',
38
- type: 'string',
39
- typeOptions: {
40
- password: true,
41
- },
42
- default: '',
43
- required: true,
44
- },
45
- ];
46
- this.test = {
47
- request: {
48
- baseURL: '={{$credentials.baseUrl}}',
49
- url: '/health',
50
- method: 'GET',
51
- },
52
- };
53
- }
54
- async authenticate(credentials, requestOptions) {
55
- requestOptions.baseURL = credentials.baseUrl;
56
- requestOptions.headers = requestOptions.headers || {};
57
- requestOptions.headers['Authorization'] = `Bearer ${credentials.bearerToken}`;
58
- requestOptions.headers['X-API-DOMAIN'] = credentials.apiDomain;
59
- requestOptions.headers['X-APIKEY-TOKEN'] = credentials.apiKeyToken;
60
- return requestOptions;
61
- }
62
- }
63
- exports.Confirm8Api = Confirm8Api;