@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,166 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createBusinessProfileAction = 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.createBusinessProfileAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.aipriseAuth,
|
|
11
|
-
name: 'create_business_profile',
|
|
12
|
-
displayName: 'Create Business Profile',
|
|
13
|
-
description: 'Creates a new business profile in AiPrise. The returned profile can then be used to run document checks or other business verifications.',
|
|
14
|
-
props: {
|
|
15
|
-
name: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'Business Name',
|
|
17
|
-
description: 'The business name. The legal name is preferred.',
|
|
18
|
-
required: true,
|
|
19
|
-
}),
|
|
20
|
-
alternate_name: pieces_framework_1.Property.ShortText({
|
|
21
|
-
displayName: 'Alternate Name (DBA)',
|
|
22
|
-
description: 'An alternate "doing business as" name, if any.',
|
|
23
|
-
required: false,
|
|
24
|
-
}),
|
|
25
|
-
tax_identification_number: pieces_framework_1.Property.ShortText({
|
|
26
|
-
displayName: 'Tax Identification Number',
|
|
27
|
-
description: 'The tax ID for this business (e.g. EIN in the US).',
|
|
28
|
-
required: false,
|
|
29
|
-
}),
|
|
30
|
-
website: pieces_framework_1.Property.ShortText({
|
|
31
|
-
displayName: 'Website',
|
|
32
|
-
description: 'The business website URL.',
|
|
33
|
-
required: false,
|
|
34
|
-
}),
|
|
35
|
-
formation_date: pieces_framework_1.Property.ShortText({
|
|
36
|
-
displayName: 'Formation Date',
|
|
37
|
-
description: 'The date the business was formed, in YYYY-MM-DD format.',
|
|
38
|
-
required: false,
|
|
39
|
-
}),
|
|
40
|
-
country_code: pieces_framework_1.Property.ShortText({
|
|
41
|
-
displayName: 'Country Code',
|
|
42
|
-
description: 'The 2-letter ISO country code where the business is registered (e.g. US, GB).',
|
|
43
|
-
required: false,
|
|
44
|
-
}),
|
|
45
|
-
state_code: pieces_framework_1.Property.ShortText({
|
|
46
|
-
displayName: 'State Code',
|
|
47
|
-
description: 'The state or province code where the business is registered (e.g. CA, NY).',
|
|
48
|
-
required: false,
|
|
49
|
-
}),
|
|
50
|
-
business_entity_id: pieces_framework_1.Property.ShortText({
|
|
51
|
-
displayName: 'Business Entity ID',
|
|
52
|
-
description: 'A government-issued entity identifier for this business.',
|
|
53
|
-
required: false,
|
|
54
|
-
}),
|
|
55
|
-
addresses: pieces_framework_1.Property.Array({
|
|
56
|
-
displayName: 'Addresses',
|
|
57
|
-
description: 'A JSON array of address objects associated with the business.',
|
|
58
|
-
required: false,
|
|
59
|
-
properties: {
|
|
60
|
-
address_street_1: pieces_framework_1.Property.ShortText({
|
|
61
|
-
displayName: 'Street Address 1',
|
|
62
|
-
required: false,
|
|
63
|
-
}),
|
|
64
|
-
address_street_2: pieces_framework_1.Property.ShortText({
|
|
65
|
-
displayName: 'Street Address 2',
|
|
66
|
-
required: false,
|
|
67
|
-
}),
|
|
68
|
-
address_city: pieces_framework_1.Property.ShortText({
|
|
69
|
-
displayName: 'City',
|
|
70
|
-
required: false,
|
|
71
|
-
}),
|
|
72
|
-
address_state: pieces_framework_1.Property.ShortText({
|
|
73
|
-
displayName: 'State/Province',
|
|
74
|
-
required: false,
|
|
75
|
-
}),
|
|
76
|
-
address_zip_code: pieces_framework_1.Property.ShortText({
|
|
77
|
-
displayName: 'ZIP/Postal Code',
|
|
78
|
-
required: false,
|
|
79
|
-
}),
|
|
80
|
-
address_country: pieces_framework_1.Property.ShortText({
|
|
81
|
-
displayName: 'Country Code',
|
|
82
|
-
description: '2-letter ISO country code (e.g. US, GB).',
|
|
83
|
-
required: false,
|
|
84
|
-
}),
|
|
85
|
-
},
|
|
86
|
-
}),
|
|
87
|
-
phone_numbers: pieces_framework_1.Property.Array({
|
|
88
|
-
displayName: 'Phone Numbers',
|
|
89
|
-
description: 'One or more phone numbers associated with the business.',
|
|
90
|
-
required: false,
|
|
91
|
-
}),
|
|
92
|
-
email_addresses: pieces_framework_1.Property.Array({
|
|
93
|
-
displayName: 'Email Addresses',
|
|
94
|
-
description: 'One or more email addresses associated with the business.',
|
|
95
|
-
required: false,
|
|
96
|
-
}),
|
|
97
|
-
additional_information: pieces_framework_1.Property.Array({
|
|
98
|
-
displayName: 'Additional Information',
|
|
99
|
-
description: 'A JSON array of supporting documents or extra data for this business.',
|
|
100
|
-
required: false,
|
|
101
|
-
}),
|
|
102
|
-
client_reference_id: pieces_framework_1.Property.ShortText({
|
|
103
|
-
displayName: 'Client Reference ID',
|
|
104
|
-
description: 'Your own internal identifier for this business.',
|
|
105
|
-
required: false,
|
|
106
|
-
}),
|
|
107
|
-
callback_url: pieces_framework_1.Property.ShortText({
|
|
108
|
-
displayName: 'Callback URL',
|
|
109
|
-
description: 'A webhook URL that AiPrise will call with verification results.',
|
|
110
|
-
required: false,
|
|
111
|
-
}),
|
|
112
|
-
events_callback_url: pieces_framework_1.Property.ShortText({
|
|
113
|
-
displayName: 'Events Callback URL',
|
|
114
|
-
description: 'A webhook URL that AiPrise will call with event notifications.',
|
|
115
|
-
required: false,
|
|
116
|
-
}),
|
|
117
|
-
tags: pieces_framework_1.Property.Array({
|
|
118
|
-
displayName: 'Tags',
|
|
119
|
-
description: 'Tag names used to categorize this business profile.',
|
|
120
|
-
required: false,
|
|
121
|
-
}),
|
|
122
|
-
},
|
|
123
|
-
run(context) {
|
|
124
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
125
|
-
const { name, alternate_name, tax_identification_number, website, formation_date, country_code, state_code, business_entity_id, addresses, phone_numbers, email_addresses, additional_information, client_reference_id, callback_url, events_callback_url, tags, } = context.propsValue;
|
|
126
|
-
const body = { name };
|
|
127
|
-
if (alternate_name)
|
|
128
|
-
body['alternate_name'] = alternate_name;
|
|
129
|
-
if (tax_identification_number)
|
|
130
|
-
body['tax_identification_number'] = tax_identification_number;
|
|
131
|
-
if (website)
|
|
132
|
-
body['website'] = website;
|
|
133
|
-
if (formation_date)
|
|
134
|
-
body['formation_date'] = formation_date;
|
|
135
|
-
if (country_code)
|
|
136
|
-
body['country_code'] = country_code;
|
|
137
|
-
if (state_code)
|
|
138
|
-
body['state_code'] = state_code;
|
|
139
|
-
if (business_entity_id)
|
|
140
|
-
body['business_entity_id'] = business_entity_id;
|
|
141
|
-
if (addresses && addresses.length > 0)
|
|
142
|
-
body['addresses'] = addresses;
|
|
143
|
-
if (phone_numbers && phone_numbers.length > 0)
|
|
144
|
-
body['phone_numbers'] = phone_numbers;
|
|
145
|
-
if (email_addresses && email_addresses.length > 0)
|
|
146
|
-
body['email_addresses'] = email_addresses;
|
|
147
|
-
if (additional_information)
|
|
148
|
-
body['additional_information'] = additional_information;
|
|
149
|
-
if (client_reference_id)
|
|
150
|
-
body['client_reference_id'] = client_reference_id;
|
|
151
|
-
if (callback_url)
|
|
152
|
-
body['callback_url'] = callback_url;
|
|
153
|
-
if (events_callback_url)
|
|
154
|
-
body['events_callback_url'] = events_callback_url;
|
|
155
|
-
if (tags && tags.length > 0)
|
|
156
|
-
body['tags'] = tags;
|
|
157
|
-
return common_1.aiprise.makeRequest({
|
|
158
|
-
auth: context.auth.props,
|
|
159
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
160
|
-
path: '/verify/create_business_profile',
|
|
161
|
-
body,
|
|
162
|
-
});
|
|
163
|
-
});
|
|
164
|
-
},
|
|
165
|
-
});
|
|
166
|
-
//# sourceMappingURL=create-business-profile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-business-profile.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-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declare const createUserProfileAction: 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
|
-
first_name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
6
|
-
middle_name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
7
|
-
last_name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
8
|
-
second_last_name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
9
|
-
full_name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
10
|
-
date_of_birth: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
11
|
-
email_address: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
12
|
-
phone_number: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
13
|
-
address_street_1: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
14
|
-
address_street_2: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
15
|
-
address_city: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
16
|
-
address_state: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
17
|
-
address_zip_code: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
18
|
-
address_country: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
19
|
-
client_reference_id: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
20
|
-
events_callback_url: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
21
|
-
tags: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
22
|
-
}>;
|
|
23
|
-
//# sourceMappingURL=create-user-profile.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-user-profile.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-user-profile.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;EAyIlC,CAAC"}
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createUserProfileAction = 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.createUserProfileAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.aipriseAuth,
|
|
11
|
-
name: 'create_user_profile',
|
|
12
|
-
displayName: 'Create User Profile',
|
|
13
|
-
description: 'Creates a new user profile in AiPrise. The returned profile can then be used for repeated verifications or ongoing monitoring for the same person.',
|
|
14
|
-
props: {
|
|
15
|
-
first_name: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'First Name',
|
|
17
|
-
required: false,
|
|
18
|
-
}),
|
|
19
|
-
middle_name: pieces_framework_1.Property.ShortText({
|
|
20
|
-
displayName: 'Middle Name',
|
|
21
|
-
required: false,
|
|
22
|
-
}),
|
|
23
|
-
last_name: pieces_framework_1.Property.ShortText({
|
|
24
|
-
displayName: 'Last Name',
|
|
25
|
-
required: false,
|
|
26
|
-
}),
|
|
27
|
-
second_last_name: pieces_framework_1.Property.ShortText({
|
|
28
|
-
displayName: 'Second Last Name',
|
|
29
|
-
description: "User's second surname, where applicable (e.g. in some Latin American naming conventions).",
|
|
30
|
-
required: false,
|
|
31
|
-
}),
|
|
32
|
-
full_name: pieces_framework_1.Property.ShortText({
|
|
33
|
-
displayName: 'Full Name',
|
|
34
|
-
description: 'The complete name. Use this if you do not have the name split into parts.',
|
|
35
|
-
required: false,
|
|
36
|
-
}),
|
|
37
|
-
date_of_birth: pieces_framework_1.Property.ShortText({
|
|
38
|
-
displayName: 'Date of Birth',
|
|
39
|
-
description: "User's date of birth in YYYY-MM-DD format.",
|
|
40
|
-
required: false,
|
|
41
|
-
}),
|
|
42
|
-
email_address: pieces_framework_1.Property.ShortText({
|
|
43
|
-
displayName: 'Email Address',
|
|
44
|
-
required: false,
|
|
45
|
-
}),
|
|
46
|
-
phone_number: pieces_framework_1.Property.ShortText({
|
|
47
|
-
displayName: 'Phone Number',
|
|
48
|
-
required: false,
|
|
49
|
-
}),
|
|
50
|
-
address_street_1: pieces_framework_1.Property.ShortText({
|
|
51
|
-
displayName: 'Street Address 1',
|
|
52
|
-
required: false,
|
|
53
|
-
}),
|
|
54
|
-
address_street_2: pieces_framework_1.Property.ShortText({
|
|
55
|
-
displayName: 'Street Address 2',
|
|
56
|
-
required: false,
|
|
57
|
-
}),
|
|
58
|
-
address_city: pieces_framework_1.Property.ShortText({
|
|
59
|
-
displayName: 'City',
|
|
60
|
-
required: false,
|
|
61
|
-
}),
|
|
62
|
-
address_state: pieces_framework_1.Property.ShortText({
|
|
63
|
-
displayName: 'State/Province',
|
|
64
|
-
required: false,
|
|
65
|
-
}),
|
|
66
|
-
address_zip_code: pieces_framework_1.Property.ShortText({
|
|
67
|
-
displayName: 'ZIP/Postal Code',
|
|
68
|
-
required: false,
|
|
69
|
-
}),
|
|
70
|
-
address_country: pieces_framework_1.Property.ShortText({
|
|
71
|
-
displayName: 'Country Code',
|
|
72
|
-
description: '2-letter ISO country code (e.g. US, GB).',
|
|
73
|
-
required: false,
|
|
74
|
-
}),
|
|
75
|
-
client_reference_id: pieces_framework_1.Property.ShortText({
|
|
76
|
-
displayName: 'Client Reference ID',
|
|
77
|
-
description: 'Your own internal identifier for this user.',
|
|
78
|
-
required: false,
|
|
79
|
-
}),
|
|
80
|
-
events_callback_url: pieces_framework_1.Property.ShortText({
|
|
81
|
-
displayName: 'Events Callback URL',
|
|
82
|
-
description: 'A webhook URL that AiPrise will call with event notifications for this profile. Paste the webhook URL from the **Verification Event Received** trigger here.',
|
|
83
|
-
required: false,
|
|
84
|
-
}),
|
|
85
|
-
tags: pieces_framework_1.Property.Array({
|
|
86
|
-
displayName: 'Tags',
|
|
87
|
-
description: 'Tag names used to categorize this user profile. Tags are created if they do not already exist.',
|
|
88
|
-
required: false,
|
|
89
|
-
}),
|
|
90
|
-
},
|
|
91
|
-
run(context) {
|
|
92
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
93
|
-
const { first_name, middle_name, last_name, second_last_name, full_name, date_of_birth, email_address, phone_number, address_street_1, address_street_2, address_city, address_state, address_zip_code, address_country, client_reference_id, events_callback_url, tags, } = context.propsValue;
|
|
94
|
-
const body = {};
|
|
95
|
-
if (first_name)
|
|
96
|
-
body['first_name'] = first_name;
|
|
97
|
-
if (middle_name)
|
|
98
|
-
body['middle_name'] = middle_name;
|
|
99
|
-
if (last_name)
|
|
100
|
-
body['last_name'] = last_name;
|
|
101
|
-
if (second_last_name)
|
|
102
|
-
body['second_last_name'] = second_last_name;
|
|
103
|
-
if (full_name)
|
|
104
|
-
body['full_name'] = full_name;
|
|
105
|
-
if (date_of_birth)
|
|
106
|
-
body['date_of_birth'] = date_of_birth;
|
|
107
|
-
if (email_address)
|
|
108
|
-
body['email_address'] = email_address;
|
|
109
|
-
if (phone_number)
|
|
110
|
-
body['phone_number'] = phone_number;
|
|
111
|
-
const address = {};
|
|
112
|
-
if (address_street_1)
|
|
113
|
-
address['address_street_1'] = address_street_1;
|
|
114
|
-
if (address_street_2)
|
|
115
|
-
address['address_street_2'] = address_street_2;
|
|
116
|
-
if (address_city)
|
|
117
|
-
address['address_city'] = address_city;
|
|
118
|
-
if (address_state)
|
|
119
|
-
address['address_state'] = address_state;
|
|
120
|
-
if (address_zip_code)
|
|
121
|
-
address['address_zip_code'] = address_zip_code;
|
|
122
|
-
if (address_country)
|
|
123
|
-
address['address_country'] = address_country;
|
|
124
|
-
if (Object.keys(address).length > 0)
|
|
125
|
-
body['address'] = address;
|
|
126
|
-
if (client_reference_id)
|
|
127
|
-
body['client_reference_id'] = client_reference_id;
|
|
128
|
-
if (events_callback_url)
|
|
129
|
-
body['events_callback_url'] = events_callback_url;
|
|
130
|
-
if (tags && tags.length > 0)
|
|
131
|
-
body['tags'] = tags;
|
|
132
|
-
return common_1.aiprise.makeRequest({
|
|
133
|
-
auth: context.auth.props,
|
|
134
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
135
|
-
path: '/verify/create_user_profile',
|
|
136
|
-
body,
|
|
137
|
-
});
|
|
138
|
-
});
|
|
139
|
-
},
|
|
140
|
-
});
|
|
141
|
-
//# sourceMappingURL=create-user-profile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-user-profile.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-user-profile.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,yCAA6C;AAEhC,QAAA,uBAAuB,GAAG,IAAA,+BAAY,EAAC;IAClD,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,qBAAqB;IAClC,WAAW,EACT,oJAAoJ;IACtJ,KAAK,EAAE;QACL,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,YAAY;YACzB,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,SAAS,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,WAAW;YACxB,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,gBAAgB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACnC,WAAW,EAAE,kBAAkB;YAC/B,WAAW,EAAE,2FAA2F;YACxG,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,SAAS,EAAE,2BAA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gBAAgB;gBAAE,OAAO,CAAC,kBAAkB,CAAC,GAAG,gBAAgB,CAAC;YACrE,IAAI,gBAAgB;gBAAE,OAAO,CAAC,kBAAkB,CAAC,GAAG,gBAAgB,CAAC;YACrE,IAAI,YAAY;gBAAE,OAAO,CAAC,cAAc,CAAC,GAAG,YAAY,CAAC;YACzD,IAAI,aAAa;gBAAE,OAAO,CAAC,eAAe,CAAC,GAAG,aAAa,CAAC;YAC5D,IAAI,gBAAgB;gBAAE,OAAO,CAAC,kBAAkB,CAAC,GAAG,gBAAgB,CAAC;YACrE,IAAI,eAAe;gBAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG,eAAe,CAAC;YAClE,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,GAAG,CAAC;gBAAE,IAAI,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC;YAE/D,IAAI,mBAAmB;gBAAE,IAAI,CAAC,qBAAqB,CAAC,GAAG,mBAAmB,CAAC;YAC3E,IAAI,mBAAmB;gBAAE,IAAI,CAAC,qBAAqB,CAAC,GAAG,mBAAmB,CAAC;YAC3E,IAAI,IAAI,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC;gBAAE,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;YAEjD,OAAO,gBAAO,CAAC,WAAW,CAA0B;gBAClD,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,IAAI,EAAE,6BAA6B;gBACnC,IAAI;aACL,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const getAdditionalUserInfoAction: 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-additional-user-info.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-additional-user-info.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-additional-user-info.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,2BAA2B;;;;;EAsBtC,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getAdditionalUserInfoAction = 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.getAdditionalUserInfoAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.aipriseAuth,
|
|
11
|
-
name: 'get_additional_user_info',
|
|
12
|
-
displayName: "Get Person's Additional Info",
|
|
13
|
-
description: "Fetches supplementary information collected from the person during a verification — anything beyond the primary identity fields, such as follow-up answers, extra documents, or custom form data.",
|
|
14
|
-
props: {
|
|
15
|
-
session_id: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'Verification Session ID',
|
|
17
|
-
description: 'The ID of the verification to look up. You can get this from the output of the **Start Identity Verification** action',
|
|
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
|
-
return common_1.aiprise.makeRequest({
|
|
25
|
-
auth: context.auth.props,
|
|
26
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
27
|
-
path: `/verify/get_additional_user_info_from_request/${session_id}`,
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
//# sourceMappingURL=get-additional-user-info.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-additional-user-info.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-additional-user-info.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,0BAA0B;IAChC,WAAW,EAAE,8BAA8B;IAC3C,WAAW,EACT,mMAAmM;IACrM,KAAK,EAAE;QACL,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,yBAAyB;YACtC,WAAW,EACT,uHAAuH;YACzH,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAC1C,OAAO,gBAAO,CAAC,WAAW,CAA0B;gBAClD,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,iDAAiD,UAAU,EAAE;aACpE,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const getBusinessDocumentsAction: 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
|
-
}>;
|
|
7
|
-
//# sourceMappingURL=get-business-documents.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-business-documents.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-business-documents.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,0BAA0B;;;;;EAsBrC,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getBusinessDocumentsAction = 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.getBusinessDocumentsAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.aipriseAuth,
|
|
11
|
-
name: 'get_business_documents',
|
|
12
|
-
displayName: 'Get Business Documents',
|
|
13
|
-
description: 'Lists all documents attached to a business profile — including file UUIDs, names, S3 URLs, timestamps, document sources, and associated verification sessions.',
|
|
14
|
-
props: {
|
|
15
|
-
business_profile_id: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'Business Profile ID',
|
|
17
|
-
description: 'The ID of the business profile whose documents you want to list. You can get this from the output of the **Create Business Profile** action.',
|
|
18
|
-
required: true,
|
|
19
|
-
}),
|
|
20
|
-
},
|
|
21
|
-
run(context) {
|
|
22
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
const { business_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_business_documents/${business_profile_id}`,
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
//# sourceMappingURL=get-business-documents.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-business-documents.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-business-documents.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,yCAA6C;AAEhC,QAAA,0BAA0B,GAAG,IAAA,+BAAY,EAAC;IACrD,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,wBAAwB;IAC9B,WAAW,EAAE,wBAAwB;IACrC,WAAW,EACT,gKAAgK;IAClK,KAAK,EAAE;QACL,mBAAmB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACtC,WAAW,EAAE,qBAAqB;YAClC,WAAW,EACT,8IAA8I;YAChJ,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,mBAAmB,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YACnD,OAAO,gBAAO,CAAC,WAAW,CAA0B;gBAClD,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,kCAAkC,mBAAmB,EAAE;aAC9D,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const getBusinessInputDataAction: 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-business-input-data.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-business-input-data.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-business-input-data.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,0BAA0B;;;;;EAuBrC,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getBusinessInputDataAction = 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.getBusinessInputDataAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.aipriseAuth,
|
|
11
|
-
name: 'get_business_input_data',
|
|
12
|
-
displayName: "Get Business's Submitted Verification Data",
|
|
13
|
-
description: 'Returns the company information provided during a business verification — such as company name, registration number, directors, and ownership details.',
|
|
14
|
-
props: {
|
|
15
|
-
session_id: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'Verification Session ID',
|
|
17
|
-
description: 'The ID of the business verification to retrieve data from. You can get this from the output of the **Start Business 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_business_data_from_request/${session_id}`,
|
|
28
|
-
});
|
|
29
|
-
return result;
|
|
30
|
-
});
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
//# sourceMappingURL=get-business-input-data.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-business-input-data.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-business-input-data.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,yCAA6C;AAEhC,QAAA,0BAA0B,GAAG,IAAA,+BAAY,EAAC;IACrD,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE,4CAA4C;IACzD,WAAW,EACT,wJAAwJ;IAC1J,KAAK,EAAE;QACL,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,yBAAyB;YACtC,WAAW,EACT,kNAAkN;YACpN,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,0CAA0C,UAAU,EAAE;aAC7D,CAAC,CAAC;YACH,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const getBusinessProfileAction: 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
|
-
}>;
|
|
7
|
-
//# sourceMappingURL=get-business-profile.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-business-profile.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-business-profile.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,wBAAwB;;;;;EAsBnC,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getBusinessProfileAction = 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.getBusinessProfileAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.aipriseAuth,
|
|
11
|
-
name: 'get_business_profile',
|
|
12
|
-
displayName: 'Get Business Profile',
|
|
13
|
-
description: 'Fetches a business profile from AiPrise by its ID — including the stored company details, addresses, tags, linked verification sessions, and metadata.',
|
|
14
|
-
props: {
|
|
15
|
-
business_profile_id: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'Business Profile ID',
|
|
17
|
-
description: 'The ID of the business profile to retrieve. You can get this from the output of the **Create Business Profile** action, or from the `business_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 { business_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_business_profile/${encodeURIComponent(business_profile_id)}`,
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
//# sourceMappingURL=get-business-profile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-business-profile.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-business-profile.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,sBAAsB;IACnC,WAAW,EACT,wJAAwJ;IAC1J,KAAK,EAAE;QACL,mBAAmB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACtC,WAAW,EAAE,qBAAqB;YAClC,WAAW,EACT,sMAAsM;YACxM,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,mBAAmB,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YACnD,OAAO,gBAAO,CAAC,WAAW,CAA0B;gBAClD,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK;gBACxB,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,gCAAgC,kBAAkB,CAAC,mBAAmB,CAAC,EAAE;aAChF,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const getBusinessResultAction: 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-business-result.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-business-result.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-business-result.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB;;;;;EAuBlC,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getBusinessResultAction = 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.getBusinessResultAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.aipriseAuth,
|
|
11
|
-
name: 'get_business_verification_result',
|
|
12
|
-
displayName: 'Get Business Verification Result',
|
|
13
|
-
description: "Fetches the current status and outcome of a company's background check — whether it is still running, approved, or declined.",
|
|
14
|
-
props: {
|
|
15
|
-
session_id: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'Verification Session ID',
|
|
17
|
-
description: 'The ID of the business verification to look up. You can get this from the output of the **Start Business 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_business_verification_result/${session_id}`,
|
|
28
|
-
});
|
|
29
|
-
return result;
|
|
30
|
-
});
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
//# sourceMappingURL=get-business-result.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-business-result.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-business-result.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,sCAAoC;AACpC,yCAA6C;AAEhC,QAAA,uBAAuB,GAAG,IAAA,+BAAY,EAAC;IAClD,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,kCAAkC;IACxC,WAAW,EAAE,kCAAkC;IAC/C,WAAW,EACT,8HAA8H;IAChI,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,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 getUserInputDataAction: 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-user-input-data.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-input-data.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-user-input-data.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sBAAsB;;;;;EAuBjC,CAAC"}
|