@activepieces/piece-gender-api 0.0.4 → 0.0.6
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 +8 -19
- package/src/index.d.ts +1 -0
- package/src/index.d.ts.map +1 -0
- package/src/index.js.map +1 -1
- package/src/lib/actions/get-gender-by-first-name.d.ts +1 -0
- package/src/lib/actions/get-gender-by-first-name.d.ts.map +1 -0
- package/src/lib/actions/get-gender-by-first-name.js +5 -0
- package/src/lib/actions/get-gender-by-first-name.js.map +1 -1
- package/src/lib/actions/get-gender-by-full-name.d.ts +1 -0
- package/src/lib/actions/get-gender-by-full-name.d.ts.map +1 -0
- package/src/lib/actions/get-gender-by-full-name.js +5 -0
- package/src/lib/actions/get-gender-by-full-name.js.map +1 -1
- package/src/lib/actions/get-statistics.d.ts +1 -0
- package/src/lib/actions/get-statistics.d.ts.map +1 -0
- package/src/lib/actions/get-statistics.js +5 -0
- package/src/lib/actions/get-statistics.js.map +1 -1
- package/src/lib/common/auth.d.ts +1 -0
- package/src/lib/common/auth.d.ts.map +1 -0
- package/src/lib/common/auth.js.map +1 -1
- package/README.md +0 -7
package/package.json
CHANGED
|
@@ -1,28 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/piece-gender-api",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"deepmerge-ts": "7.1.0",
|
|
13
|
-
"form-data": "4.0.4",
|
|
14
|
-
"i18next": "23.13.0",
|
|
15
|
-
"mime-types": "2.1.35",
|
|
16
|
-
"nanoid": "3.3.8",
|
|
17
|
-
"semver": "7.6.0",
|
|
18
|
-
"socket.io-client": "4.8.1",
|
|
19
|
-
"tslib": "^2.3.0",
|
|
20
|
-
"zod": "4.1.13",
|
|
21
|
-
"@activepieces/pieces-common": "0.11.5",
|
|
22
|
-
"@activepieces/pieces-framework": "0.25.2",
|
|
23
|
-
"@activepieces/shared": "0.34.0"
|
|
8
|
+
"@activepieces/pieces-common": "0.12.3",
|
|
9
|
+
"@activepieces/pieces-framework": "0.30.0",
|
|
10
|
+
"@activepieces/shared": "0.87.1",
|
|
11
|
+
"tslib": "2.3.0"
|
|
24
12
|
},
|
|
25
|
-
"
|
|
26
|
-
"
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "tsc -p tsconfig.lib.json && cp package.json dist/",
|
|
15
|
+
"lint": "eslint 'src/**/*.ts'"
|
|
27
16
|
}
|
|
28
17
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS,mHAsBpB,CAAC"}
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,4CAAkD;AAClD,iEAA6D;AAC7D,mFAA4E;AAC5E,qFAA8E;AAC9E,+DAAwE;AAE3D,QAAA,SAAS,GAAG,IAAA,8BAAW,EAAC;IACnC,WAAW,EAAE,YAAY;IACzB,IAAI,EAAE,oBAAa;IACnB,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,oDAAoD;IAC7D,OAAO,EAAE,CAAC,aAAa,CAAC;IACxB,WAAW,EAAE,8EAA8E;IAC3F,OAAO,EAAE;QACP,+CAAoB;QACpB,6CAAmB;QACnB,8BAAa;QACb,IAAA,yCAAyB,EAAC;YACxB,IAAI,EAAE,oBAAa;YACnB,OAAO,EAAE,GAAG,EAAE,CAAC,2BAA2B;YAC1C,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAC1B,OAAO;oBACL,aAAa,EAAE,UAAU,IAAI,CAAC,WAAW,EAAE;iBAC5C,CAAC;YACJ,CAAC,CAAA;SACF,CAAC;KACH;IACD,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
|
|
@@ -3,3 +3,4 @@ export declare const getGenderByFirstName: import("@activepieces/pieces-framewor
|
|
|
3
3
|
country_code: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
4
4
|
locale: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
5
5
|
}>;
|
|
6
|
+
//# sourceMappingURL=get-gender-by-first-name.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-gender-by-first-name.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-gender-by-first-name.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB;;;;EAqD/B,CAAC"}
|
|
@@ -10,6 +10,11 @@ exports.getGenderByFirstName = (0, pieces_framework_1.createAction)({
|
|
|
10
10
|
name: 'getGenderByFirstName',
|
|
11
11
|
displayName: 'Get Gender by First Name',
|
|
12
12
|
description: 'Predict the gender of a person based on their first name',
|
|
13
|
+
audience: 'both',
|
|
14
|
+
aiMetadata: {
|
|
15
|
+
description: 'Predicts the likely gender of a person from a single first name via the Gender API. Use when you have only a given name (not a full name); optionally pass a country code and/or locale to improve accuracy for region-specific names. Read-only lookup that is safe to repeat.',
|
|
16
|
+
idempotent: true,
|
|
17
|
+
},
|
|
13
18
|
props: {
|
|
14
19
|
first_name: pieces_framework_1.Property.ShortText({
|
|
15
20
|
displayName: 'First Name',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-gender-by-first-name.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"get-gender-by-first-name.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-gender-by-first-name.ts"],"names":[],"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OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;oBAClC,aAAa,EAAE,UAAU,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE;iBACpD;gBACD,IAAI,EAAE,OAAO;aACd,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -3,3 +3,4 @@ export declare const getGenderByFullName: import("@activepieces/pieces-framework
|
|
|
3
3
|
country_code: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
4
4
|
locale: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
5
5
|
}>;
|
|
6
|
+
//# sourceMappingURL=get-gender-by-full-name.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-gender-by-full-name.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-gender-by-full-name.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB;;;;EAqD9B,CAAC"}
|
|
@@ -10,6 +10,11 @@ exports.getGenderByFullName = (0, pieces_framework_1.createAction)({
|
|
|
10
10
|
name: 'getGenderByFullName',
|
|
11
11
|
displayName: 'Get Gender by Full Name',
|
|
12
12
|
description: 'Predict the gender of a person based on their full name',
|
|
13
|
+
audience: 'both',
|
|
14
|
+
aiMetadata: {
|
|
15
|
+
description: 'Predicts the likely gender of a person from a full name (first and last) via the Gender API, which extracts the first name internally. Use when you have the complete name rather than only a given name; optionally pass a country code and/or locale to improve accuracy for region-specific names. Read-only lookup that is safe to repeat.',
|
|
16
|
+
idempotent: true,
|
|
17
|
+
},
|
|
13
18
|
props: {
|
|
14
19
|
full_name: pieces_framework_1.Property.ShortText({
|
|
15
20
|
displayName: 'Full Name',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-gender-by-full-name.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"get-gender-by-full-name.js","sourceRoot":"","sources":["../../../../src/lib/actions/get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G,EAAE,kCAAkC;gBACvC,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;oBAClC,aAAa,EAAE,UAAU,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE;iBACpD;gBACD,IAAI,EAAE,OAAO;aACd,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-statistics.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-statistics.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,yHAyBxB,CAAC"}
|
|
@@ -10,6 +10,11 @@ exports.getStatistics = (0, pieces_framework_1.createAction)({
|
|
|
10
10
|
name: 'getStatistics',
|
|
11
11
|
displayName: 'Get Statistics',
|
|
12
12
|
description: 'Get account statistics including remaining credits and usage information',
|
|
13
|
+
audience: 'both',
|
|
14
|
+
aiMetadata: {
|
|
15
|
+
description: 'Retrieves the Gender API account statistics, including remaining credits and usage information. Use to check quota before running batches of name lookups. Takes no input; read-only and safe to repeat.',
|
|
16
|
+
idempotent: true,
|
|
17
|
+
},
|
|
13
18
|
props: {},
|
|
14
19
|
run(context) {
|
|
15
20
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-statistics.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"get-statistics.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-statistics.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,yCAA+C;AAC/C,+DAAqE;AAExD,QAAA,aAAa,GAAG,IAAA,+BAAY,EAAC;IACxC,IAAI,EAAE,oBAAa;IACnB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EACT,0EAA0E;IAC5E,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,0MAA0M;QAC5M,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE,EAAE;IACH,GAAG,CAAC,OAAO;;YACf,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG,EAAE,qCAAqC;gBAC1C,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;oBAClC,aAAa,EAAE,UAAU,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE;iBACpD;aACF,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
package/src/lib/common/auth.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/auth.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,mEAIxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../../src/lib/common/auth.ts"],"names":[],"mappings":";;;AAAA,qEAA2D;AAE9C,QAAA,aAAa,GAAG,4BAAS,CAAC,UAAU,CAAC;IAChD,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,kDAAkD;IAC/D,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC"}
|