@activepieces/piece-aiprise 0.1.1 → 0.1.3
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 +7 -12
- package/src/index.js +17 -64
- package/src/index.d.ts +0 -5
- package/src/index.d.ts.map +0 -1
- package/src/index.js.map +0 -1
- package/src/lib/actions/create-business-profile.d.ts +0 -22
- package/src/lib/actions/create-business-profile.d.ts.map +0 -1
- package/src/lib/actions/create-business-profile.js +0 -166
- package/src/lib/actions/create-business-profile.js.map +0 -1
- package/src/lib/actions/create-user-profile.d.ts +0 -23
- package/src/lib/actions/create-user-profile.d.ts.map +0 -1
- package/src/lib/actions/create-user-profile.js +0 -141
- package/src/lib/actions/create-user-profile.js.map +0 -1
- package/src/lib/actions/get-additional-user-info.d.ts +0 -7
- package/src/lib/actions/get-additional-user-info.d.ts.map +0 -1
- package/src/lib/actions/get-additional-user-info.js +0 -32
- package/src/lib/actions/get-additional-user-info.js.map +0 -1
- package/src/lib/actions/get-business-documents.d.ts +0 -7
- package/src/lib/actions/get-business-documents.d.ts.map +0 -1
- package/src/lib/actions/get-business-documents.js +0 -32
- package/src/lib/actions/get-business-documents.js.map +0 -1
- package/src/lib/actions/get-business-input-data.d.ts +0 -7
- package/src/lib/actions/get-business-input-data.d.ts.map +0 -1
- package/src/lib/actions/get-business-input-data.js +0 -33
- package/src/lib/actions/get-business-input-data.js.map +0 -1
- package/src/lib/actions/get-business-profile.d.ts +0 -7
- package/src/lib/actions/get-business-profile.d.ts.map +0 -1
- package/src/lib/actions/get-business-profile.js +0 -32
- package/src/lib/actions/get-business-profile.js.map +0 -1
- package/src/lib/actions/get-business-result.d.ts +0 -7
- package/src/lib/actions/get-business-result.d.ts.map +0 -1
- package/src/lib/actions/get-business-result.js +0 -33
- package/src/lib/actions/get-business-result.js.map +0 -1
- package/src/lib/actions/get-user-input-data.d.ts +0 -7
- package/src/lib/actions/get-user-input-data.d.ts.map +0 -1
- package/src/lib/actions/get-user-input-data.js +0 -33
- package/src/lib/actions/get-user-input-data.js.map +0 -1
- package/src/lib/actions/get-user-profile.d.ts +0 -7
- package/src/lib/actions/get-user-profile.d.ts.map +0 -1
- package/src/lib/actions/get-user-profile.js +0 -32
- package/src/lib/actions/get-user-profile.js.map +0 -1
- package/src/lib/actions/get-verification-result.d.ts +0 -7
- package/src/lib/actions/get-verification-result.d.ts.map +0 -1
- package/src/lib/actions/get-verification-result.js +0 -33
- package/src/lib/actions/get-verification-result.js.map +0 -1
- package/src/lib/actions/get-verification-url.d.ts +0 -8
- package/src/lib/actions/get-verification-url.d.ts.map +0 -1
- package/src/lib/actions/get-verification-url.js +0 -42
- package/src/lib/actions/get-verification-url.js.map +0 -1
- package/src/lib/actions/run-business-verification.d.ts +0 -8
- package/src/lib/actions/run-business-verification.d.ts.map +0 -1
- package/src/lib/actions/run-business-verification.js +0 -39
- package/src/lib/actions/run-business-verification.js.map +0 -1
- package/src/lib/actions/run-document-check.d.ts +0 -12
- package/src/lib/actions/run-document-check.d.ts.map +0 -1
- package/src/lib/actions/run-document-check.js +0 -69
- package/src/lib/actions/run-document-check.js.map +0 -1
- package/src/lib/actions/run-user-verification-profile.d.ts +0 -8
- package/src/lib/actions/run-user-verification-profile.d.ts.map +0 -1
- package/src/lib/actions/run-user-verification-profile.js +0 -39
- package/src/lib/actions/run-user-verification-profile.js.map +0 -1
- package/src/lib/actions/search-businesses.d.ts +0 -9
- package/src/lib/actions/search-businesses.d.ts.map +0 -1
- package/src/lib/actions/search-businesses.js +0 -49
- package/src/lib/actions/search-businesses.js.map +0 -1
- package/src/lib/actions/update-verification-result.d.ts +0 -8
- package/src/lib/actions/update-verification-result.d.ts.map +0 -1
- package/src/lib/actions/update-verification-result.js +0 -47
- package/src/lib/actions/update-verification-result.js.map +0 -1
- package/src/lib/common/auth.d.ts +0 -5
- package/src/lib/common/auth.d.ts.map +0 -1
- package/src/lib/common/auth.js +0 -32
- package/src/lib/common/auth.js.map +0 -1
- package/src/lib/common/index.d.ts +0 -20
- package/src/lib/common/index.d.ts.map +0 -1
- package/src/lib/common/index.js +0 -31
- package/src/lib/common/index.js.map +0 -1
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getUserInputDataAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
const auth_1 = require("../common/auth");
|
|
9
|
-
exports.getUserInputDataAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.aipriseAuth,
|
|
11
|
-
name: 'get_user_input_data',
|
|
12
|
-
displayName: 'Get Person\'s Submitted Verification Data',
|
|
13
|
-
description: 'Returns the information the person entered and the documents they uploaded during their identity check (e.g. name, date of birth, ID document details).',
|
|
14
|
-
props: {
|
|
15
|
-
session_id: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'Verification Session ID',
|
|
17
|
-
description: 'The ID of the verification to retrieve data from. You can get this from the output of the **Start Identity Verification** action, or from the **session_id** field in any webhook payload from AiPrise.',
|
|
18
|
-
required: true,
|
|
19
|
-
}),
|
|
20
|
-
},
|
|
21
|
-
run(context) {
|
|
22
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
const { session_id } = context.propsValue;
|
|
24
|
-
const result = yield common_1.aiprise.makeRequest({
|
|
25
|
-
auth: context.auth.props,
|
|
26
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
27
|
-
path: `/verify/get_user_input_data_from_request/${session_id}`,
|
|
28
|
-
});
|
|
29
|
-
return result;
|
|
30
|
-
});
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
//# sourceMappingURL=get-user-input-data.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-input-data.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-user-input-data.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,yCAA6C;AAEhC,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IACjD,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,2CAA2C;IACxD,WAAW,EACT,yJAAyJ;IAC3J,KAAK,EAAE;QACL,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,yBAAyB;YACtC,WAAW,EACT,yMAAyM;YAC3M,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAC1C,MAAM,MAAM,GAAG,MAAM,gBAAO,CAAC,WAAW,CAA0B;gBAChE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,4CAA4C,UAAU,EAAE;aAC/D,CAAC,CAAC;YACH,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const getUserProfileAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
secret_text: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
-
environment: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
4
|
-
}>, {
|
|
5
|
-
user_profile_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
|
-
}>;
|
|
7
|
-
//# sourceMappingURL=get-user-profile.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-profile.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-user-profile.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB;;;;;EAsB/B,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getUserProfileAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
const auth_1 = require("../common/auth");
|
|
9
|
-
exports.getUserProfileAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.aipriseAuth,
|
|
11
|
-
name: 'get_user_profile',
|
|
12
|
-
displayName: 'Get User Profile',
|
|
13
|
-
description: "Fetches a user profile from AiPrise by its ID — including the person's stored details, tags, linked verification sessions, and metadata.",
|
|
14
|
-
props: {
|
|
15
|
-
user_profile_id: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'User Profile ID',
|
|
17
|
-
description: 'The ID of the user profile to retrieve. You can get this from the output of the **Create User Profile** action, or from the `user_profile_id` field in any webhook payload from AiPrise.',
|
|
18
|
-
required: true,
|
|
19
|
-
}),
|
|
20
|
-
},
|
|
21
|
-
run(context) {
|
|
22
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
const { user_profile_id } = context.propsValue;
|
|
24
|
-
return common_1.aiprise.makeRequest({
|
|
25
|
-
auth: context.auth.props,
|
|
26
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
27
|
-
path: `/verify/get_user_profile/${encodeURIComponent(user_profile_id)}`,
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
//# sourceMappingURL=get-user-profile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-profile.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-user-profile.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,yCAA6C;AAEhC,QAAA,oBAAoB,GAAG,IAAA,+BAAY,EAAC;IAC/C,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,kBAAkB;IAC/B,WAAW,EACT,0IAA0I;IAC5I,KAAK,EAAE;QACL,eAAe,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAClC,WAAW,EAAE,iBAAiB;YAC9B,WAAW,EACT,0LAA0L;YAC5L,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAC/C,OAAO,gBAAO,CAAC,WAAW,CAA0B;gBAClD,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,4BAA4B,kBAAkB,CAAC,eAAe,CAAC,EAAE;aACxE,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const getVerificationResultAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
secret_text: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
-
environment: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
4
|
-
}>, {
|
|
5
|
-
session_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
|
-
}>;
|
|
7
|
-
//# sourceMappingURL=get-verification-result.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-verification-result.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-verification-result.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,2BAA2B;;;;;EAuBtC,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getVerificationResultAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
const auth_1 = require("../common/auth");
|
|
9
|
-
exports.getVerificationResultAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.aipriseAuth,
|
|
11
|
-
name: 'get_verification_result',
|
|
12
|
-
displayName: 'Get Identity Verification Result',
|
|
13
|
-
description: 'Fetches the current status and outcome of a person\'s identity check — whether it is still in progress, approved, or declined.',
|
|
14
|
-
props: {
|
|
15
|
-
session_id: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'Verification Session ID',
|
|
17
|
-
description: 'The ID of the specific verification to look up. You can get this from the output of the **Start Identity Verification** action, or from the **session_id** field in any webhook payload from AiPrise.',
|
|
18
|
-
required: true,
|
|
19
|
-
}),
|
|
20
|
-
},
|
|
21
|
-
run(context) {
|
|
22
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
const { session_id } = context.propsValue;
|
|
24
|
-
const result = yield common_1.aiprise.makeRequest({
|
|
25
|
-
auth: context.auth.props,
|
|
26
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
27
|
-
path: `/verify/get_user_verification_result/${session_id}`,
|
|
28
|
-
});
|
|
29
|
-
return result;
|
|
30
|
-
});
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
//# sourceMappingURL=get-verification-result.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-verification-result.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-verification-result.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,yCAA6C;AAEhC,QAAA,2BAA2B,GAAG,IAAA,+BAAY,EAAC;IACtD,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE,kCAAkC;IAC/C,WAAW,EACT,gIAAgI;IAClI,KAAK,EAAE;QACL,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,yBAAyB;YACtC,WAAW,EACT,uMAAuM;YACzM,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAC1C,MAAM,MAAM,GAAG,MAAM,gBAAO,CAAC,WAAW,CAA0B;gBAChE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,wCAAwC,UAAU,EAAE;aAC3D,CAAC,CAAC;YACH,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const getVerificationUrlAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
secret_text: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
-
environment: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
4
|
-
}>, {
|
|
5
|
-
template_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
|
-
redirect_uri: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
7
|
-
}>;
|
|
8
|
-
//# sourceMappingURL=get-verification-url.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-verification-url.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-verification-url.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,wBAAwB;;;;;;EAiCnC,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getVerificationUrlAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
const auth_1 = require("../common/auth");
|
|
9
|
-
exports.getVerificationUrlAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.aipriseAuth,
|
|
11
|
-
name: 'get_verification_url',
|
|
12
|
-
displayName: 'Get Identity Verification Link',
|
|
13
|
-
description: 'Generates a secure link you can send to a person so they can complete their identity verification on an AiPrise-hosted page — no extra development needed.',
|
|
14
|
-
props: {
|
|
15
|
-
template_id: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'Verification Template',
|
|
17
|
-
description: 'Which set of checks the person will go through. To find this: log in to AiPrise → go to **Templates** → open the template you want → copy the **Template ID** shown at the top of the page.',
|
|
18
|
-
required: true,
|
|
19
|
-
}),
|
|
20
|
-
redirect_uri: pieces_framework_1.Property.ShortText({
|
|
21
|
-
displayName: 'Redirect URL',
|
|
22
|
-
description: 'The page the person will be sent to after they finish the verification on the AiPrise-hosted form (e.g. a "Thank you" or confirmation page on your website).',
|
|
23
|
-
required: true,
|
|
24
|
-
}),
|
|
25
|
-
},
|
|
26
|
-
run(context) {
|
|
27
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
28
|
-
const { template_id, redirect_uri } = context.propsValue;
|
|
29
|
-
const result = yield common_1.aiprise.makeRequest({
|
|
30
|
-
auth: context.auth.props,
|
|
31
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
32
|
-
path: '/verify/get_user_verification_url',
|
|
33
|
-
body: {
|
|
34
|
-
template_id,
|
|
35
|
-
redirect_uri,
|
|
36
|
-
},
|
|
37
|
-
});
|
|
38
|
-
return result;
|
|
39
|
-
});
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
//# sourceMappingURL=get-verification-url.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-verification-url.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-verification-url.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,yCAA6C;AAEhC,QAAA,wBAAwB,GAAG,IAAA,+BAAY,EAAC;IACnD,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,gCAAgC;IAC7C,WAAW,EACT,4JAA4J;IAC9J,KAAK,EAAE;QACL,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,uBAAuB;YACpC,WAAW,EACT,6LAA6L;YAC/L,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,YAAY,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC/B,WAAW,EAAE,cAAc;YAC3B,WAAW,EACT,8JAA8J;YAChK,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YACzD,MAAM,MAAM,GAAG,MAAM,gBAAO,CAAC,WAAW,CAA0B;gBAChE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,IAAI,EAAE,mCAAmC;gBACzC,IAAI,EAAE;oBACJ,WAAW;oBACX,YAAY;iBACb;aACF,CAAC,CAAC;YACH,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const runBusinessVerificationAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
secret_text: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
-
environment: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
4
|
-
}>, {
|
|
5
|
-
template_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
|
-
business_profile_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
7
|
-
}>;
|
|
8
|
-
//# sourceMappingURL=run-business-verification.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run-business-verification.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/run-business-verification.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,6BAA6B;;;;;;EA6BxC,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.runBusinessVerificationAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
const auth_1 = require("../common/auth");
|
|
9
|
-
exports.runBusinessVerificationAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.aipriseAuth,
|
|
11
|
-
name: 'run_business_verification',
|
|
12
|
-
displayName: 'Start Business Verification',
|
|
13
|
-
description: 'Kicks off a company background check. AiPrise will run the checks defined in your template — which can include company registry lookup, ownership structure (UBO), sanctions screening, and adverse media.',
|
|
14
|
-
props: {
|
|
15
|
-
template_id: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'Verification Template',
|
|
17
|
-
description: 'Which set of checks to run on the business. To find this: log in to AiPrise → go to **Templates** → open the template you want → copy the **Template ID** shown at the top of the page.',
|
|
18
|
-
required: true,
|
|
19
|
-
}),
|
|
20
|
-
business_profile_id: pieces_framework_1.Property.ShortText({
|
|
21
|
-
displayName: 'Business Profile ID',
|
|
22
|
-
description: ' The ID of the business profile you want to verify. This is returned when you create a business profile, or you can look it up using the List Business Profiles action.',
|
|
23
|
-
required: true,
|
|
24
|
-
}),
|
|
25
|
-
},
|
|
26
|
-
run(context) {
|
|
27
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
28
|
-
const { template_id, business_profile_id } = context.propsValue;
|
|
29
|
-
const result = yield common_1.aiprise.makeRequest({
|
|
30
|
-
auth: context.auth.props,
|
|
31
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
32
|
-
path: '/verify/run_verification_for_business_profile_id',
|
|
33
|
-
body: { template_id, business_profile_id },
|
|
34
|
-
});
|
|
35
|
-
return result;
|
|
36
|
-
});
|
|
37
|
-
},
|
|
38
|
-
});
|
|
39
|
-
//# sourceMappingURL=run-business-verification.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run-business-verification.js","sourceRoot":"","sources":["../../../../src/lib/actions/run-business-verification.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,yCAA6C;AAEhC,QAAA,6BAA6B,GAAG,IAAA,+BAAY,EAAC;IACxD,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,2BAA2B;IACjC,WAAW,EAAE,6BAA6B;IAC1C,WAAW,EACT,4MAA4M;IAC9M,KAAK,EAAE;QACL,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,uBAAuB;YACpC,WAAW,EACT,yLAAyL;YAC3L,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,mBAAmB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACtC,WAAW,EAAE,qBAAqB;YAClC,WAAW,EAAE,yKAAyK;YACtL,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,WAAW,EAAE,mBAAmB,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAChE,MAAM,MAAM,GAAG,MAAM,gBAAO,CAAC,WAAW,CAA0B;gBAChE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,IAAI,EAAE,kDAAkD;gBACxD,IAAI,EAAE,EAAE,WAAW,EAAE,mBAAmB,EAAE;aAC3C,CAAC,CAAC;YACH,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const runDocumentCheckAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
secret_text: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
-
environment: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
4
|
-
}>, {
|
|
5
|
-
business_profile_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
|
-
template_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
7
|
-
file_uuid: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
8
|
-
document_input_title: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
9
|
-
client_reference_id: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
10
|
-
client_reference_data: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
11
|
-
}>;
|
|
12
|
-
//# sourceMappingURL=run-document-check.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run-document-check.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/run-document-check.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sBAAsB;;;;;;;;;;EAsEjC,CAAC"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.runDocumentCheckAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
const auth_1 = require("../common/auth");
|
|
9
|
-
exports.runDocumentCheckAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.aipriseAuth,
|
|
11
|
-
name: 'run_document_check',
|
|
12
|
-
displayName: 'Run Business Document Check',
|
|
13
|
-
description: 'Runs a verification check on a document belonging to an existing business profile. AiPrise will process the uploaded file against the checks defined in the chosen template.',
|
|
14
|
-
props: {
|
|
15
|
-
business_profile_id: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'Business Profile ID',
|
|
17
|
-
description: 'The ID of the business profile the document belongs to. You can find this in AiPrise → **Businesses** → open the business → copy the **Profile ID**.',
|
|
18
|
-
required: true,
|
|
19
|
-
}),
|
|
20
|
-
template_id: pieces_framework_1.Property.ShortText({
|
|
21
|
-
displayName: 'Verification Template',
|
|
22
|
-
description: 'Which set of checks to run. To find this: log in to AiPrise → go to **Templates** → open the template you want → copy the **Template ID** shown at the top of the page.',
|
|
23
|
-
required: true,
|
|
24
|
-
}),
|
|
25
|
-
file_uuid: pieces_framework_1.Property.ShortText({
|
|
26
|
-
displayName: 'File UUID',
|
|
27
|
-
description: 'The UUID of the document file that was previously uploaded to AiPrise.',
|
|
28
|
-
required: true,
|
|
29
|
-
}),
|
|
30
|
-
document_input_title: pieces_framework_1.Property.ShortText({
|
|
31
|
-
displayName: 'Document Input Title',
|
|
32
|
-
description: 'An optional unique identifier for this document input. This value is included in webhook payloads and API responses so you can distinguish between multiple documents.',
|
|
33
|
-
required: false,
|
|
34
|
-
}),
|
|
35
|
-
client_reference_id: pieces_framework_1.Property.ShortText({
|
|
36
|
-
displayName: 'Client Reference ID',
|
|
37
|
-
description: 'Your own identifier to associate with this request — for example an order number or internal case ID.',
|
|
38
|
-
required: false,
|
|
39
|
-
}),
|
|
40
|
-
client_reference_data: pieces_framework_1.Property.Json({
|
|
41
|
-
displayName: 'Client Reference Data',
|
|
42
|
-
description: 'Any additional JSON data you want to store alongside this request.',
|
|
43
|
-
required: false,
|
|
44
|
-
}),
|
|
45
|
-
},
|
|
46
|
-
run(context) {
|
|
47
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
48
|
-
const { business_profile_id, template_id, file_uuid, document_input_title, client_reference_id, client_reference_data, } = context.propsValue;
|
|
49
|
-
const body = {
|
|
50
|
-
business_profile_id,
|
|
51
|
-
template_id,
|
|
52
|
-
file_uuid,
|
|
53
|
-
};
|
|
54
|
-
if (document_input_title)
|
|
55
|
-
body['document_input_title'] = document_input_title;
|
|
56
|
-
if (client_reference_id)
|
|
57
|
-
body['client_reference_id'] = client_reference_id;
|
|
58
|
-
if (client_reference_data)
|
|
59
|
-
body['client_reference_data'] = client_reference_data;
|
|
60
|
-
return common_1.aiprise.makeRequest({
|
|
61
|
-
auth: context.auth.props,
|
|
62
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
63
|
-
path: '/verify/run_check_on_business_document',
|
|
64
|
-
body,
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
},
|
|
68
|
-
});
|
|
69
|
-
//# sourceMappingURL=run-document-check.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run-document-check.js","sourceRoot":"","sources":["../../../../src/lib/actions/run-document-check.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,yCAA6C;AAEhC,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IACjD,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,6BAA6B;IAC1C,WAAW,EACT,8KAA8K;IAChL,KAAK,EAAE;QACL,mBAAmB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACtC,WAAW,EAAE,qBAAqB;YAClC,WAAW,EACT,sJAAsJ;YACxJ,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,uBAAuB;YACpC,WAAW,EACT,yKAAyK;YAC3K,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,SAAS,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,WAAW;YACxB,WAAW,EACT,wEAAwE;YAC1E,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,oBAAoB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvC,WAAW,EAAE,sBAAsB;YACnC,WAAW,EACT,wKAAwK;YAC1K,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,mBAAmB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACtC,WAAW,EAAE,qBAAqB;YAClC,WAAW,EACT,uGAAuG;YACzG,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,qBAAqB,EAAE,2BAAQ,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE,uBAAuB;YACpC,WAAW,EAAE,oEAAoE;YACjF,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EACJ,mBAAmB,EACnB,WAAW,EACX,SAAS,EACT,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,GACtB,GAAG,OAAO,CAAC,UAAU,CAAC;YAEvB,MAAM,IAAI,GAA4B;gBACpC,mBAAmB;gBACnB,WAAW;gBACX,SAAS;aACV,CAAC;YAEF,IAAI,oBAAoB;gBAAE,IAAI,CAAC,sBAAsB,CAAC,GAAG,oBAAoB,CAAC;YAC9E,IAAI,mBAAmB;gBAAE,IAAI,CAAC,qBAAqB,CAAC,GAAG,mBAAmB,CAAC;YAC3E,IAAI,qBAAqB;gBAAE,IAAI,CAAC,uBAAuB,CAAC,GAAG,qBAAqB,CAAC;YAEjF,OAAO,gBAAO,CAAC,WAAW,CAA0B;gBAClD,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,IAAI,EAAE,wCAAwC;gBAC9C,IAAI;aACL,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const runUserVerificationProfileAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
secret_text: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
-
environment: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
4
|
-
}>, {
|
|
5
|
-
template_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
|
-
user_profile_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
7
|
-
}>;
|
|
8
|
-
//# sourceMappingURL=run-user-verification-profile.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run-user-verification-profile.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/run-user-verification-profile.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gCAAgC;;;;;;EAqC3C,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.runUserVerificationProfileAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
const auth_1 = require("../common/auth");
|
|
9
|
-
exports.runUserVerificationProfileAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.aipriseAuth,
|
|
11
|
-
name: 'run_user_verification_profile',
|
|
12
|
-
displayName: 'Start Identity Verification for profile',
|
|
13
|
-
description: 'Kicks off a new identity check for a person. AiPrise will run the checks defined in your chosen template (e.g. ID document scan, liveness, address).',
|
|
14
|
-
props: {
|
|
15
|
-
template_id: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'Verification Template',
|
|
17
|
-
description: 'Which set of checks to run. To find this: log in to AiPrise → go to **Templates** → open the template you want → copy the **Template ID** shown at the top of the page.',
|
|
18
|
-
required: true,
|
|
19
|
-
}),
|
|
20
|
-
user_profile_id: pieces_framework_1.Property.ShortText({
|
|
21
|
-
displayName: 'User Profile ID',
|
|
22
|
-
description: 'Your own identifier for this person — for example their user ID, email address, or order number. AiPrise stores this alongside the verification so you can match results back to your records.',
|
|
23
|
-
required: true,
|
|
24
|
-
}),
|
|
25
|
-
},
|
|
26
|
-
run(context) {
|
|
27
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
28
|
-
const { template_id, user_profile_id, } = context.propsValue;
|
|
29
|
-
const body = { template_id, user_profile_id };
|
|
30
|
-
return common_1.aiprise.makeRequest({
|
|
31
|
-
auth: context.auth.props,
|
|
32
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
33
|
-
path: '/verify/run_verification_for_user_profile_id',
|
|
34
|
-
body,
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
},
|
|
38
|
-
});
|
|
39
|
-
//# sourceMappingURL=run-user-verification-profile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run-user-verification-profile.js","sourceRoot":"","sources":["../../../../src/lib/actions/run-user-verification-profile.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,yCAA6C;AAEhC,QAAA,gCAAgC,GAAG,IAAA,+BAAY,EAAC;IAC3D,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,+BAA+B;IACrC,WAAW,EAAE,yCAAyC;IACtD,WAAW,EACT,sJAAsJ;IACxJ,KAAK,EAAE;QACL,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,uBAAuB;YACpC,WAAW,EACT,yKAAyK;YAC3K,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,eAAe,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAClC,WAAW,EAAE,iBAAiB;YAC9B,WAAW,EACT,gMAAgM;YAClM,QAAQ,EAAE,IAAI;SACf,CAAC;KAEH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EACJ,WAAW,EACX,eAAe,GAEhB,GAAG,OAAO,CAAC,UAAU,CAAC;YAEvB,MAAM,IAAI,GAA4B,EAAE,WAAW,EAAC,eAAe,EAAE,CAAC;YAEtE,OAAO,gBAAO,CAAC,WAAW,CAA0B;gBAClD,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,IAAI,EAAE,8CAA8C;gBACpD,IAAI;aACL,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const searchBusinessesAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
secret_text: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
-
environment: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
4
|
-
}>, {
|
|
5
|
-
name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
|
-
country_code: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
7
|
-
state_code: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
8
|
-
}>;
|
|
9
|
-
//# sourceMappingURL=search-businesses.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search-businesses.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/search-businesses.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sBAAsB;;;;;;;EAwCjC,CAAC"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.searchBusinessesAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
const auth_1 = require("../common/auth");
|
|
9
|
-
exports.searchBusinessesAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.aipriseAuth,
|
|
11
|
-
name: 'search_businesses',
|
|
12
|
-
displayName: 'Search Businesses',
|
|
13
|
-
description: 'Searches public business registries by name and country, returning a list of matching companies with their entity IDs, types, and addresses. Useful for looking up a business before creating a profile or running a verification.',
|
|
14
|
-
props: {
|
|
15
|
-
name: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'Business Name',
|
|
17
|
-
description: 'The business name to search for. Partial matches are supported by AiPrise.',
|
|
18
|
-
required: true,
|
|
19
|
-
}),
|
|
20
|
-
country_code: pieces_framework_1.Property.ShortText({
|
|
21
|
-
displayName: 'Country Code',
|
|
22
|
-
description: '2-letter ISO country code where the business is registered (e.g. US, GB).',
|
|
23
|
-
required: true,
|
|
24
|
-
}),
|
|
25
|
-
state_code: pieces_framework_1.Property.ShortText({
|
|
26
|
-
displayName: 'State/Province Code',
|
|
27
|
-
description: 'Optional state or province code to narrow the search (e.g. CA, NY for the US). Leave empty to search the whole country.',
|
|
28
|
-
required: false,
|
|
29
|
-
}),
|
|
30
|
-
},
|
|
31
|
-
run(context) {
|
|
32
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
const { name, country_code, state_code } = context.propsValue;
|
|
34
|
-
const body = {
|
|
35
|
-
name,
|
|
36
|
-
country_code,
|
|
37
|
-
};
|
|
38
|
-
if (state_code)
|
|
39
|
-
body['state_code'] = state_code;
|
|
40
|
-
return common_1.aiprise.makeRequest({
|
|
41
|
-
auth: context.auth.props,
|
|
42
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
43
|
-
path: '/data/business/search',
|
|
44
|
-
body,
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
//# sourceMappingURL=search-businesses.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search-businesses.js","sourceRoot":"","sources":["../../../../src/lib/actions/search-businesses.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,yCAA6C;AAEhC,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IACjD,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,mBAAmB;IAChC,WAAW,EACT,oOAAoO;IACtO,KAAK,EAAE;QACL,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,eAAe;YAC5B,WAAW,EAAE,4EAA4E;YACzF,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,YAAY,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC/B,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,2EAA2E;YACxF,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,qBAAqB;YAClC,WAAW,EACT,yHAAyH;YAC3H,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAE9D,MAAM,IAAI,GAA4B;gBACpC,IAAI;gBACJ,YAAY;aACb,CAAC;YACF,IAAI,UAAU;gBAAE,IAAI,CAAC,YAAY,CAAC,GAAG,UAAU,CAAC;YAEhD,OAAO,gBAAO,CAAC,WAAW,CAA0B;gBAClD,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,IAAI,EAAE,uBAAuB;gBAC7B,IAAI;aACL,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const updateVerificationResultAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
secret_text: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
-
environment: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
4
|
-
}>, {
|
|
5
|
-
verification_session_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
|
-
result: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
7
|
-
}>;
|
|
8
|
-
//# sourceMappingURL=update-verification-result.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-verification-result.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/update-verification-result.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,8BAA8B;;;;;;EAsCzC,CAAC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateVerificationResultAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
const auth_1 = require("../common/auth");
|
|
9
|
-
exports.updateVerificationResultAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.aipriseAuth,
|
|
11
|
-
name: 'update_verification_result',
|
|
12
|
-
displayName: 'Override Identity Verification Decision',
|
|
13
|
-
description: 'Manually changes the outcome of an identity check — useful when a human reviewer needs to approve or decline a case that AiPrise flagged for manual review.',
|
|
14
|
-
props: {
|
|
15
|
-
verification_session_id: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'Verification Session ID',
|
|
17
|
-
description: 'The ID of the verification whose decision you want to change. You can get this from the output of the **Start Identity Verification** action, or from the **session_id** field in any webhook payload from AiPrise.',
|
|
18
|
-
required: true,
|
|
19
|
-
}),
|
|
20
|
-
result: pieces_framework_1.Property.StaticDropdown({
|
|
21
|
-
displayName: 'New Decision',
|
|
22
|
-
description: 'The outcome you want to set. Choose **Approved** to pass the person, **Declined** to reject them, or **Pending** to put the case back into manual review.',
|
|
23
|
-
required: true,
|
|
24
|
-
options: {
|
|
25
|
-
options: [
|
|
26
|
-
{ label: 'Approved — pass the person', value: 'APPROVED' },
|
|
27
|
-
{ label: 'Declined — reject the person', value: 'DECLINED' },
|
|
28
|
-
{ label: 'Review — put in manual review', value: 'REVIEW' },
|
|
29
|
-
{ label: 'Deactivated — deactivate the profile', value: 'DEACTIVATED' },
|
|
30
|
-
],
|
|
31
|
-
},
|
|
32
|
-
}),
|
|
33
|
-
},
|
|
34
|
-
run(context) {
|
|
35
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
const { verification_session_id, result } = context.propsValue;
|
|
37
|
-
const response = yield common_1.aiprise.makeRequest({
|
|
38
|
-
auth: context.auth.props,
|
|
39
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
40
|
-
path: '/verify/update_user_verification_result',
|
|
41
|
-
body: { verification_session_id, result },
|
|
42
|
-
});
|
|
43
|
-
return response;
|
|
44
|
-
});
|
|
45
|
-
},
|
|
46
|
-
});
|
|
47
|
-
//# sourceMappingURL=update-verification-result.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-verification-result.js","sourceRoot":"","sources":["../../../../src/lib/actions/update-verification-result.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,yCAA6C;AAEhC,QAAA,8BAA8B,GAAG,IAAA,+BAAY,EAAC;IACzD,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE,yCAAyC;IACtD,WAAW,EACT,6JAA6J;IAC/J,KAAK,EAAE;QACL,uBAAuB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC1C,WAAW,EAAE,yBAAyB;YACtC,WAAW,EACT,qNAAqN;YACvN,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,MAAM,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC9B,WAAW,EAAE,cAAc;YAC3B,WAAW,EACT,2JAA2J;YAC7J,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,4BAA4B,EAAE,KAAK,EAAE,UAAU,EAAE;oBAC1D,EAAE,KAAK,EAAE,8BAA8B,EAAE,KAAK,EAAE,UAAU,EAAE;oBAC5D,EAAE,KAAK,EAAE,+BAA+B,EAAE,KAAK,EAAE,QAAQ,EAAE;oBAC3D,EAAC,KAAK,EAAE,sCAAsC,EAAE,KAAK,EAAE,aAAa,EAAE;iBACvE;aACF;SACF,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,uBAAuB,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAC/D,MAAM,QAAQ,GAAG,MAAM,gBAAO,CAAC,WAAW,CAA0B;gBAClE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,IAAI,EAAE,yCAAyC;gBAC/C,IAAI,EAAE,EAAE,uBAAuB,EAAE,MAAM,EAAE;aAC1C,CAAC,CAAC;YACH,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
package/src/lib/common/auth.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const aipriseAuth: import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
secret_text: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
-
environment: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
4
|
-
}>;
|
|
5
|
-
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/auth.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;;;EA0BtB,CAAC"}
|
package/src/lib/common/auth.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.aipriseAuth = void 0;
|
|
4
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
5
|
-
exports.aipriseAuth = pieces_framework_1.PieceAuth.CustomAuth({
|
|
6
|
-
displayName: 'API Key',
|
|
7
|
-
description: `To get your AiPrise API key:
|
|
8
|
-
1. Log in to your [AiPrise dashboard](https://app.aiprise.com)
|
|
9
|
-
2. Go to **Settings > API Keys**
|
|
10
|
-
3. Copy your API key and paste it here
|
|
11
|
-
`,
|
|
12
|
-
required: true,
|
|
13
|
-
props: {
|
|
14
|
-
secret_text: pieces_framework_1.PieceAuth.SecretText({
|
|
15
|
-
displayName: 'API Key',
|
|
16
|
-
description: 'Your AiPrise API key',
|
|
17
|
-
required: true,
|
|
18
|
-
}),
|
|
19
|
-
environment: pieces_framework_1.Property.StaticDropdown({
|
|
20
|
-
displayName: 'Environment',
|
|
21
|
-
description: 'Select the AiPrise environment to use',
|
|
22
|
-
required: true,
|
|
23
|
-
options: {
|
|
24
|
-
options: [
|
|
25
|
-
{ label: 'Production', value: 'production' },
|
|
26
|
-
{ label: 'Sandbox', value: 'sandbox' },
|
|
27
|
-
],
|
|
28
|
-
},
|
|
29
|
-
}),
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
//# sourceMappingURL=auth.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../../src/lib/common/auth.ts"],"names":[],"mappings":";;;AAAA,qEAAqE;AAExD,QAAA,WAAW,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC9C,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE;;;;CAId;IACC,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE;QACL,WAAW,EAAE,4BAAS,CAAC,UAAU,CAAC;YAChC,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,sBAAsB;YACnC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,cAAc,CAAC;YACnC,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,uCAAuC;YACpD,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;oBAC5C,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;iBACvC;aACF;SACF,CAAC;KACH;CACF,CAAC,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { HttpMethod } from '@activepieces/pieces-common';
|
|
2
|
-
declare function getBaseUrl(environment: string): string;
|
|
3
|
-
declare function makeRequest<T>({ auth, method, path, body, }: {
|
|
4
|
-
auth: AipriseAuthValue;
|
|
5
|
-
method: HttpMethod;
|
|
6
|
-
path: string;
|
|
7
|
-
body?: Record<string, unknown>;
|
|
8
|
-
}): Promise<T>;
|
|
9
|
-
export declare const aiprise: {
|
|
10
|
-
PRODUCTION_BASE_URL: string;
|
|
11
|
-
SANDBOX_BASE_URL: string;
|
|
12
|
-
getBaseUrl: typeof getBaseUrl;
|
|
13
|
-
makeRequest: typeof makeRequest;
|
|
14
|
-
};
|
|
15
|
-
export type AipriseAuthValue = {
|
|
16
|
-
secret_text: string;
|
|
17
|
-
environment: string;
|
|
18
|
-
};
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=index.d.ts.map
|