@n8n-dev/n8n-nodes-namsor 1.0.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/README.md +103 -0
- package/dist/banner.svg +232 -0
- package/dist/credentials/NamsorApi.credentials.d.ts +9 -0
- package/dist/credentials/NamsorApi.credentials.js +49 -0
- package/dist/credentials/NamsorApi.credentials.js.map +1 -0
- package/dist/icons/namsor.dark.png +0 -0
- package/dist/icons/namsor.png +0 -0
- package/dist/nodes/Namsor/Namsor.node.d.ts +4 -0
- package/dist/nodes/Namsor/Namsor.node.js +96 -0
- package/dist/nodes/Namsor/Namsor.node.js.map +1 -0
- package/dist/nodes/Namsor/Namsor.node.json +20 -0
- package/dist/nodes/Namsor/namsor.dark.png +0 -0
- package/dist/nodes/Namsor/namsor.png +0 -0
- package/dist/nodes/Namsor/resources/admin/index.d.ts +2 -0
- package/dist/nodes/Namsor/resources/admin/index.js +758 -0
- package/dist/nodes/Namsor/resources/admin/index.js.map +1 -0
- package/dist/nodes/Namsor/resources/chinese/index.d.ts +2 -0
- package/dist/nodes/Namsor/resources/chinese/index.js +1363 -0
- package/dist/nodes/Namsor/resources/chinese/index.js.map +1 -0
- package/dist/nodes/Namsor/resources/general/index.d.ts +2 -0
- package/dist/nodes/Namsor/resources/general/index.js +393 -0
- package/dist/nodes/Namsor/resources/general/index.js.map +1 -0
- package/dist/nodes/Namsor/resources/index.d.ts +7 -0
- package/dist/nodes/Namsor/resources/index.js +18 -0
- package/dist/nodes/Namsor/resources/index.js.map +1 -0
- package/dist/nodes/Namsor/resources/indian/index.d.ts +2 -0
- package/dist/nodes/Namsor/resources/indian/index.js +604 -0
- package/dist/nodes/Namsor/resources/indian/index.js.map +1 -0
- package/dist/nodes/Namsor/resources/japanese/index.d.ts +2 -0
- package/dist/nodes/Namsor/resources/japanese/index.js +1487 -0
- package/dist/nodes/Namsor/resources/japanese/index.js.map +1 -0
- package/dist/nodes/Namsor/resources/personal/index.d.ts +2 -0
- package/dist/nodes/Namsor/resources/personal/index.js +2913 -0
- package/dist/nodes/Namsor/resources/personal/index.js.map +1 -0
- package/dist/nodes/Namsor/resources/social/index.d.ts +2 -0
- package/dist/nodes/Namsor/resources/social/index.js +602 -0
- package/dist/nodes/Namsor/resources/social/index.js.map +1 -0
- package/dist/package.json +62 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +62 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IAuthenticateGeneric, Icon, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class NamsorApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
icon: Icon;
|
|
6
|
+
documentationUrl: string;
|
|
7
|
+
properties: INodeProperties[];
|
|
8
|
+
authenticate: IAuthenticateGeneric;
|
|
9
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NamsorApi = void 0;
|
|
4
|
+
class NamsorApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'N8nDevNamsorApi';
|
|
7
|
+
this.displayName = 'namsor API';
|
|
8
|
+
this.icon = { light: 'file:../nodes/Namsor/namsor.png', dark: 'file:../nodes/Namsor/namsor.dark.png' };
|
|
9
|
+
this.documentationUrl = '';
|
|
10
|
+
this.properties = [
|
|
11
|
+
{
|
|
12
|
+
displayName: 'Base URL',
|
|
13
|
+
name: 'url',
|
|
14
|
+
type: 'string',
|
|
15
|
+
default: 'https://v2.namsor.com/NamSorAPIv2',
|
|
16
|
+
required: true,
|
|
17
|
+
placeholder: 'https://v2.namsor.com/NamSorAPIv2',
|
|
18
|
+
description: 'The base URL of your namsor API server',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
displayName: 'API Key',
|
|
22
|
+
name: 'apiKey',
|
|
23
|
+
type: 'string',
|
|
24
|
+
typeOptions: { password: true },
|
|
25
|
+
default: '',
|
|
26
|
+
required: false,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"displayName": "❤️ Keep It Moving: One developer built a tool that auto-generates n8n nodes from any OpenAPI spec. Your donation funds new features, more API support, and better tooling for every developer after you. <a href=\"https://n8n-code.github.io/membership/#/eyJ0aXRsZSI6IktlZXAgSXQgTW92aW5nIiwiZGVzYyI6Ik9uZSBkZXZlbG9wZXIgYnVpbHQgYSB0b29sIHRoYXQgYXV0by1nZW5lcmF0ZXNcbm44biBub2RlcyBmcm9tIGFueSBPcGVuQVBJIHNwZWMuXG5cbllvdXIgZG9uYXRpb24gZnVuZHMgbmV3IGZlYXR1cmVzLCBtb3JlIEFQSSBzdXBwb3J0LFxuYW5kIGJldHRlciB0b29saW5nIGZvciBldmVyeSBkZXZlbG9wZXIgYWZ0ZXIgeW91LiIsInRhcmdldCI6NTAwMCwiYWRkcmVzc2VzIjp7ImV0aGVyZXVtIjoiMHhmMDU1NWQ0MGRiRkI0ZTNCZjA3MDQ0MjgyQjc4RjJmRTFmNTFFZjcyIiwic29sYW5hIjoiNlpEVk5BYmpZZExEcXo4cGt3VUNHYllaNVV3QlFranB0QzU1Wk5vTFcybVUifSwiZGlzY29yZCI6Imh0dHBzOi8vZGlzY29yZC5nZy9wdERaOGU0aDkzIn0\" target=\"_blank\">☕ Buy me a coffee</a>",
|
|
30
|
+
"name": "n8nCodeNotice",
|
|
31
|
+
"type": "notice",
|
|
32
|
+
"default": "",
|
|
33
|
+
"displayOptions": {
|
|
34
|
+
"show": {}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
];
|
|
38
|
+
this.authenticate = {
|
|
39
|
+
type: 'generic',
|
|
40
|
+
properties: {
|
|
41
|
+
headers: {
|
|
42
|
+
'X-API-KEY': '={{$credentials.apiKey}}',
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.NamsorApi = NamsorApi;
|
|
49
|
+
//# sourceMappingURL=NamsorApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NamsorApi.credentials.js","sourceRoot":"","sources":["../../credentials/NamsorApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,SAAS;IAAtB;QACC,SAAI,GAAG,iBAAiB,CAAC;QAEzB,gBAAW,GAAG,YAAY,CAAC;QAE3B,SAAI,GAAS,EAAE,KAAK,EAAE,iCAAiC,EAAE,IAAI,EAAE,sCAAsC,EAAE,CAAC;QAExG,qBAAgB,GAAG,EAAE,CAAC;QAEtB,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,mCAAmC;gBAC5C,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,mCAAmC;gBAChD,WAAW,EAAE,wCAAwC;aACrD;YACD;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,KAAK;aACf;YACD;gBACC,aAAa,EAAE,k0BAAk0B;gBACj1B,MAAM,EAAE,eAAe;gBACvB,MAAM,EAAE,QAAQ;gBAChB,SAAS,EAAE,EAAE;gBACb,gBAAgB,EAAE;oBACjB,MAAM,EAAE,EAAE;iBACV;aACD;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,WAAW,EAAE,0BAA0B;iBACvC;aACD;SACD,CAAC;IAGH,CAAC;CAAA;AAhDD,8BAgDC"}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Namsor = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const personal_1 = require("./resources/personal");
|
|
6
|
+
const social_1 = require("./resources/social");
|
|
7
|
+
const chinese_1 = require("./resources/chinese");
|
|
8
|
+
const japanese_1 = require("./resources/japanese");
|
|
9
|
+
const indian_1 = require("./resources/indian");
|
|
10
|
+
const admin_1 = require("./resources/admin");
|
|
11
|
+
const general_1 = require("./resources/general");
|
|
12
|
+
class Namsor {
|
|
13
|
+
constructor() {
|
|
14
|
+
this.description = {
|
|
15
|
+
displayName: 'namsor',
|
|
16
|
+
name: 'N8nDevNamsor',
|
|
17
|
+
icon: { light: 'file:./namsor.png', dark: 'file:./namsor.dark.png' },
|
|
18
|
+
group: ['input'],
|
|
19
|
+
version: 1,
|
|
20
|
+
subtitle: '={{\$parameter["operation"] + ": " + \$parameter["resource"]}}',
|
|
21
|
+
description: 'NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classif..',
|
|
22
|
+
defaults: { name: 'namsor' },
|
|
23
|
+
usableAsTool: true,
|
|
24
|
+
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
25
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
26
|
+
credentials: [
|
|
27
|
+
{
|
|
28
|
+
name: 'N8nDevNamsorApi',
|
|
29
|
+
required: true,
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
requestDefaults: {
|
|
33
|
+
baseURL: '={{\$credentials.url}}',
|
|
34
|
+
headers: {
|
|
35
|
+
Accept: 'application/json',
|
|
36
|
+
'Content-Type': 'application/json',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
properties: [
|
|
40
|
+
{
|
|
41
|
+
"displayName": "Resource",
|
|
42
|
+
"name": "resource",
|
|
43
|
+
"type": "options",
|
|
44
|
+
"noDataExpression": true,
|
|
45
|
+
"options": [
|
|
46
|
+
{
|
|
47
|
+
"name": "Personal",
|
|
48
|
+
"value": "Personal",
|
|
49
|
+
"description": "Personal names (anthroponyms) : gender, country origin/ethnicity, diaspora, US 'race'/ethniciy"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "Social",
|
|
53
|
+
"value": "Social",
|
|
54
|
+
"description": "Social media and pseudonyms"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "Chinese",
|
|
58
|
+
"value": "Chinese",
|
|
59
|
+
"description": "CHINESE special features"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "Japanese",
|
|
63
|
+
"value": "Japanese",
|
|
64
|
+
"description": "JAPANESE special features"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "Indian",
|
|
68
|
+
"value": "Indian",
|
|
69
|
+
"description": "INDIAN special features"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "Admin",
|
|
73
|
+
"value": "Admin",
|
|
74
|
+
"description": "Administrative, system management."
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "General",
|
|
78
|
+
"value": "General",
|
|
79
|
+
"description": ""
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"default": ""
|
|
83
|
+
},
|
|
84
|
+
...personal_1.personalDescription,
|
|
85
|
+
...social_1.socialDescription,
|
|
86
|
+
...chinese_1.chineseDescription,
|
|
87
|
+
...japanese_1.japaneseDescription,
|
|
88
|
+
...indian_1.indianDescription,
|
|
89
|
+
...admin_1.adminDescription,
|
|
90
|
+
...general_1.generalDescription
|
|
91
|
+
],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.Namsor = Namsor;
|
|
96
|
+
//# sourceMappingURL=Namsor.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Namsor.node.js","sourceRoot":"","sources":["../../../nodes/Namsor/Namsor.node.ts"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;yBACzC;wBACD;4BACC,MAAM,EAAE,UAAU;4BAClB,OAAO,EAAE,UAAU;4BACnB,aAAa,EAAE,2BAA2B;yBAC1C;wBACD;4BACC,MAAM,EAAE,QAAQ;4BAChB,OAAO,EAAE,QAAQ;4BACjB,aAAa,EAAE,yBAAyB;yBACxC;wBACD;4BACC,MAAM,EAAE,OAAO;4BACf,OAAO,EAAE,OAAO;4BAChB,aAAa,EAAE,oCAAoC;yBACnD;wBACD;4BACC,MAAM,EAAE,SAAS;4BACjB,OAAO,EAAE,SAAS;4BAClB,aAAa,EAAE,EAAE;yBACjB;qBACD;oBACD,SAAS,EAAE,EAAE;iBACb;gBACD,GAAG,8BAAmB;gBACtB,GAAG,0BAAiB;gBACpB,GAAG,4BAAkB;gBACrB,GAAG,8BAAmB;gBACtB,GAAG,0BAAiB;gBACpB,GAAG,wBAAgB;gBACnB,GAAG,4BAAkB;aACpB;SACD,CAAC;IACH,CAAC;CAAA;AAhFD,wBAgFC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node": "N8nDevNamsor",
|
|
3
|
+
"nodeVersion": "1.0",
|
|
4
|
+
"codexVersion": "1.0",
|
|
5
|
+
"categories": [
|
|
6
|
+
"Development"
|
|
7
|
+
],
|
|
8
|
+
"resources": {
|
|
9
|
+
"primaryDocumentation": [
|
|
10
|
+
{
|
|
11
|
+
"url": "https://github.com/n8n-code/n8n-nodes-namsor"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"credentialDocumentation": [
|
|
15
|
+
{
|
|
16
|
+
"url": "https://github.com/n8n-code/n8n-nodes-namsor?tab=readme-ov-file#credentials"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
Binary file
|
|
Binary file
|