@activepieces/piece-aiprise 0.1.2 → 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 -171
- 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 -146
- 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 -37
- 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 -37
- 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 -38
- 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 -37
- 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 -38
- 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 -38
- 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 -37
- 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 -38
- 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 -47
- 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 -44
- 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 -74
- 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 -44
- 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 -54
- 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 -52
- 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,171 +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
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: 'Creates a new business (company) profile in AiPrise from supplied details (name, tax ID, addresses, contacts, etc.); the resulting profile is the entity you later run business verifications or document checks against. Use this as the setup step before Start Business Verification or Run Business Document Check. Only the business name is required. Not idempotent — each call creates a separate profile, even with identical input.',
|
|
17
|
-
idempotent: false,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
name: pieces_framework_1.Property.ShortText({
|
|
21
|
-
displayName: 'Business Name',
|
|
22
|
-
description: 'The business name. The legal name is preferred.',
|
|
23
|
-
required: true,
|
|
24
|
-
}),
|
|
25
|
-
alternate_name: pieces_framework_1.Property.ShortText({
|
|
26
|
-
displayName: 'Alternate Name (DBA)',
|
|
27
|
-
description: 'An alternate "doing business as" name, if any.',
|
|
28
|
-
required: false,
|
|
29
|
-
}),
|
|
30
|
-
tax_identification_number: pieces_framework_1.Property.ShortText({
|
|
31
|
-
displayName: 'Tax Identification Number',
|
|
32
|
-
description: 'The tax ID for this business (e.g. EIN in the US).',
|
|
33
|
-
required: false,
|
|
34
|
-
}),
|
|
35
|
-
website: pieces_framework_1.Property.ShortText({
|
|
36
|
-
displayName: 'Website',
|
|
37
|
-
description: 'The business website URL.',
|
|
38
|
-
required: false,
|
|
39
|
-
}),
|
|
40
|
-
formation_date: pieces_framework_1.Property.ShortText({
|
|
41
|
-
displayName: 'Formation Date',
|
|
42
|
-
description: 'The date the business was formed, in YYYY-MM-DD format.',
|
|
43
|
-
required: false,
|
|
44
|
-
}),
|
|
45
|
-
country_code: pieces_framework_1.Property.ShortText({
|
|
46
|
-
displayName: 'Country Code',
|
|
47
|
-
description: 'The 2-letter ISO country code where the business is registered (e.g. US, GB).',
|
|
48
|
-
required: false,
|
|
49
|
-
}),
|
|
50
|
-
state_code: pieces_framework_1.Property.ShortText({
|
|
51
|
-
displayName: 'State Code',
|
|
52
|
-
description: 'The state or province code where the business is registered (e.g. CA, NY).',
|
|
53
|
-
required: false,
|
|
54
|
-
}),
|
|
55
|
-
business_entity_id: pieces_framework_1.Property.ShortText({
|
|
56
|
-
displayName: 'Business Entity ID',
|
|
57
|
-
description: 'A government-issued entity identifier for this business.',
|
|
58
|
-
required: false,
|
|
59
|
-
}),
|
|
60
|
-
addresses: pieces_framework_1.Property.Array({
|
|
61
|
-
displayName: 'Addresses',
|
|
62
|
-
description: 'A JSON array of address objects associated with the business.',
|
|
63
|
-
required: false,
|
|
64
|
-
properties: {
|
|
65
|
-
address_street_1: pieces_framework_1.Property.ShortText({
|
|
66
|
-
displayName: 'Street Address 1',
|
|
67
|
-
required: false,
|
|
68
|
-
}),
|
|
69
|
-
address_street_2: pieces_framework_1.Property.ShortText({
|
|
70
|
-
displayName: 'Street Address 2',
|
|
71
|
-
required: false,
|
|
72
|
-
}),
|
|
73
|
-
address_city: pieces_framework_1.Property.ShortText({
|
|
74
|
-
displayName: 'City',
|
|
75
|
-
required: false,
|
|
76
|
-
}),
|
|
77
|
-
address_state: pieces_framework_1.Property.ShortText({
|
|
78
|
-
displayName: 'State/Province',
|
|
79
|
-
required: false,
|
|
80
|
-
}),
|
|
81
|
-
address_zip_code: pieces_framework_1.Property.ShortText({
|
|
82
|
-
displayName: 'ZIP/Postal Code',
|
|
83
|
-
required: false,
|
|
84
|
-
}),
|
|
85
|
-
address_country: pieces_framework_1.Property.ShortText({
|
|
86
|
-
displayName: 'Country Code',
|
|
87
|
-
description: '2-letter ISO country code (e.g. US, GB).',
|
|
88
|
-
required: false,
|
|
89
|
-
}),
|
|
90
|
-
},
|
|
91
|
-
}),
|
|
92
|
-
phone_numbers: pieces_framework_1.Property.Array({
|
|
93
|
-
displayName: 'Phone Numbers',
|
|
94
|
-
description: 'One or more phone numbers associated with the business.',
|
|
95
|
-
required: false,
|
|
96
|
-
}),
|
|
97
|
-
email_addresses: pieces_framework_1.Property.Array({
|
|
98
|
-
displayName: 'Email Addresses',
|
|
99
|
-
description: 'One or more email addresses associated with the business.',
|
|
100
|
-
required: false,
|
|
101
|
-
}),
|
|
102
|
-
additional_information: pieces_framework_1.Property.Array({
|
|
103
|
-
displayName: 'Additional Information',
|
|
104
|
-
description: 'A JSON array of supporting documents or extra data for this business.',
|
|
105
|
-
required: false,
|
|
106
|
-
}),
|
|
107
|
-
client_reference_id: pieces_framework_1.Property.ShortText({
|
|
108
|
-
displayName: 'Client Reference ID',
|
|
109
|
-
description: 'Your own internal identifier for this business.',
|
|
110
|
-
required: false,
|
|
111
|
-
}),
|
|
112
|
-
callback_url: pieces_framework_1.Property.ShortText({
|
|
113
|
-
displayName: 'Callback URL',
|
|
114
|
-
description: 'A webhook URL that AiPrise will call with verification results.',
|
|
115
|
-
required: false,
|
|
116
|
-
}),
|
|
117
|
-
events_callback_url: pieces_framework_1.Property.ShortText({
|
|
118
|
-
displayName: 'Events Callback URL',
|
|
119
|
-
description: 'A webhook URL that AiPrise will call with event notifications.',
|
|
120
|
-
required: false,
|
|
121
|
-
}),
|
|
122
|
-
tags: pieces_framework_1.Property.Array({
|
|
123
|
-
displayName: 'Tags',
|
|
124
|
-
description: 'Tag names used to categorize this business profile.',
|
|
125
|
-
required: false,
|
|
126
|
-
}),
|
|
127
|
-
},
|
|
128
|
-
run(context) {
|
|
129
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
130
|
-
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;
|
|
131
|
-
const body = { name };
|
|
132
|
-
if (alternate_name)
|
|
133
|
-
body['alternate_name'] = alternate_name;
|
|
134
|
-
if (tax_identification_number)
|
|
135
|
-
body['tax_identification_number'] = tax_identification_number;
|
|
136
|
-
if (website)
|
|
137
|
-
body['website'] = website;
|
|
138
|
-
if (formation_date)
|
|
139
|
-
body['formation_date'] = formation_date;
|
|
140
|
-
if (country_code)
|
|
141
|
-
body['country_code'] = country_code;
|
|
142
|
-
if (state_code)
|
|
143
|
-
body['state_code'] = state_code;
|
|
144
|
-
if (business_entity_id)
|
|
145
|
-
body['business_entity_id'] = business_entity_id;
|
|
146
|
-
if (addresses && addresses.length > 0)
|
|
147
|
-
body['addresses'] = addresses;
|
|
148
|
-
if (phone_numbers && phone_numbers.length > 0)
|
|
149
|
-
body['phone_numbers'] = phone_numbers;
|
|
150
|
-
if (email_addresses && email_addresses.length > 0)
|
|
151
|
-
body['email_addresses'] = email_addresses;
|
|
152
|
-
if (additional_information)
|
|
153
|
-
body['additional_information'] = additional_information;
|
|
154
|
-
if (client_reference_id)
|
|
155
|
-
body['client_reference_id'] = client_reference_id;
|
|
156
|
-
if (callback_url)
|
|
157
|
-
body['callback_url'] = callback_url;
|
|
158
|
-
if (events_callback_url)
|
|
159
|
-
body['events_callback_url'] = events_callback_url;
|
|
160
|
-
if (tags && tags.length > 0)
|
|
161
|
-
body['tags'] = tags;
|
|
162
|
-
return common_1.aiprise.makeRequest({
|
|
163
|
-
auth: context.auth.props,
|
|
164
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
165
|
-
path: '/verify/create_business_profile',
|
|
166
|
-
body,
|
|
167
|
-
});
|
|
168
|
-
});
|
|
169
|
-
},
|
|
170
|
-
});
|
|
171
|
-
//# sourceMappingURL=create-business-profile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-business-profile.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-business-profile.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,yBAAyB;IACtC,WAAW,EACT,0IAA0I;IAC5I,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,+aAA+a;QACjb,UAAU,EAAE,KAAK;KAClB;IACD,KAAK,EAAE;QACL,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,eAAe;YAC5B,WAAW,EAAE,iDAAiD;YAC9D,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,cAAc,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACjC,WAAW,EAAE,sBAAsB;YACnC,WAAW,EAAE,gDAAgD;YAC7D,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,yBAAyB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5C,WAAW,EAAE,2BAA2B;YACxC,WAAW,EAAE,oDAAoD;YACjE,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,OAAO,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC1B,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,2BAA2B;YACxC,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,cAAc,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACjC,WAAW,EAAE,gBAAgB;YAC7B,WAAW,EAAE,yDAAyD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I,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,iCAAiC;gBACvC,IAAI;aACL,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export 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;;;;;;;;;;;;;;;;;;;;;EA+IlC,CAAC"}
|
|
@@ -1,146 +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
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: 'Creates a new person (user) profile in AiPrise from supplied identity details (name, date of birth, contact, address, etc.); the resulting profile is the entity you later run identity verifications or ongoing monitoring against. Use this as the setup step before Start Identity Verification for a profile. All fields are optional. Not idempotent — each call creates a separate profile, even with identical input.',
|
|
17
|
-
idempotent: false,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
first_name: pieces_framework_1.Property.ShortText({
|
|
21
|
-
displayName: 'First Name',
|
|
22
|
-
required: false,
|
|
23
|
-
}),
|
|
24
|
-
middle_name: pieces_framework_1.Property.ShortText({
|
|
25
|
-
displayName: 'Middle Name',
|
|
26
|
-
required: false,
|
|
27
|
-
}),
|
|
28
|
-
last_name: pieces_framework_1.Property.ShortText({
|
|
29
|
-
displayName: 'Last Name',
|
|
30
|
-
required: false,
|
|
31
|
-
}),
|
|
32
|
-
second_last_name: pieces_framework_1.Property.ShortText({
|
|
33
|
-
displayName: 'Second Last Name',
|
|
34
|
-
description: "User's second surname, where applicable (e.g. in some Latin American naming conventions).",
|
|
35
|
-
required: false,
|
|
36
|
-
}),
|
|
37
|
-
full_name: pieces_framework_1.Property.ShortText({
|
|
38
|
-
displayName: 'Full Name',
|
|
39
|
-
description: 'The complete name. Use this if you do not have the name split into parts.',
|
|
40
|
-
required: false,
|
|
41
|
-
}),
|
|
42
|
-
date_of_birth: pieces_framework_1.Property.ShortText({
|
|
43
|
-
displayName: 'Date of Birth',
|
|
44
|
-
description: "User's date of birth in YYYY-MM-DD format.",
|
|
45
|
-
required: false,
|
|
46
|
-
}),
|
|
47
|
-
email_address: pieces_framework_1.Property.ShortText({
|
|
48
|
-
displayName: 'Email Address',
|
|
49
|
-
required: false,
|
|
50
|
-
}),
|
|
51
|
-
phone_number: pieces_framework_1.Property.ShortText({
|
|
52
|
-
displayName: 'Phone Number',
|
|
53
|
-
required: false,
|
|
54
|
-
}),
|
|
55
|
-
address_street_1: pieces_framework_1.Property.ShortText({
|
|
56
|
-
displayName: 'Street Address 1',
|
|
57
|
-
required: false,
|
|
58
|
-
}),
|
|
59
|
-
address_street_2: pieces_framework_1.Property.ShortText({
|
|
60
|
-
displayName: 'Street Address 2',
|
|
61
|
-
required: false,
|
|
62
|
-
}),
|
|
63
|
-
address_city: pieces_framework_1.Property.ShortText({
|
|
64
|
-
displayName: 'City',
|
|
65
|
-
required: false,
|
|
66
|
-
}),
|
|
67
|
-
address_state: pieces_framework_1.Property.ShortText({
|
|
68
|
-
displayName: 'State/Province',
|
|
69
|
-
required: false,
|
|
70
|
-
}),
|
|
71
|
-
address_zip_code: pieces_framework_1.Property.ShortText({
|
|
72
|
-
displayName: 'ZIP/Postal Code',
|
|
73
|
-
required: false,
|
|
74
|
-
}),
|
|
75
|
-
address_country: pieces_framework_1.Property.ShortText({
|
|
76
|
-
displayName: 'Country Code',
|
|
77
|
-
description: '2-letter ISO country code (e.g. US, GB).',
|
|
78
|
-
required: false,
|
|
79
|
-
}),
|
|
80
|
-
client_reference_id: pieces_framework_1.Property.ShortText({
|
|
81
|
-
displayName: 'Client Reference ID',
|
|
82
|
-
description: 'Your own internal identifier for this user.',
|
|
83
|
-
required: false,
|
|
84
|
-
}),
|
|
85
|
-
events_callback_url: pieces_framework_1.Property.ShortText({
|
|
86
|
-
displayName: 'Events Callback URL',
|
|
87
|
-
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.',
|
|
88
|
-
required: false,
|
|
89
|
-
}),
|
|
90
|
-
tags: pieces_framework_1.Property.Array({
|
|
91
|
-
displayName: 'Tags',
|
|
92
|
-
description: 'Tag names used to categorize this user profile. Tags are created if they do not already exist.',
|
|
93
|
-
required: false,
|
|
94
|
-
}),
|
|
95
|
-
},
|
|
96
|
-
run(context) {
|
|
97
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
98
|
-
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;
|
|
99
|
-
const body = {};
|
|
100
|
-
if (first_name)
|
|
101
|
-
body['first_name'] = first_name;
|
|
102
|
-
if (middle_name)
|
|
103
|
-
body['middle_name'] = middle_name;
|
|
104
|
-
if (last_name)
|
|
105
|
-
body['last_name'] = last_name;
|
|
106
|
-
if (second_last_name)
|
|
107
|
-
body['second_last_name'] = second_last_name;
|
|
108
|
-
if (full_name)
|
|
109
|
-
body['full_name'] = full_name;
|
|
110
|
-
if (date_of_birth)
|
|
111
|
-
body['date_of_birth'] = date_of_birth;
|
|
112
|
-
if (email_address)
|
|
113
|
-
body['email_address'] = email_address;
|
|
114
|
-
if (phone_number)
|
|
115
|
-
body['phone_number'] = phone_number;
|
|
116
|
-
const address = {};
|
|
117
|
-
if (address_street_1)
|
|
118
|
-
address['address_street_1'] = address_street_1;
|
|
119
|
-
if (address_street_2)
|
|
120
|
-
address['address_street_2'] = address_street_2;
|
|
121
|
-
if (address_city)
|
|
122
|
-
address['address_city'] = address_city;
|
|
123
|
-
if (address_state)
|
|
124
|
-
address['address_state'] = address_state;
|
|
125
|
-
if (address_zip_code)
|
|
126
|
-
address['address_zip_code'] = address_zip_code;
|
|
127
|
-
if (address_country)
|
|
128
|
-
address['address_country'] = address_country;
|
|
129
|
-
if (Object.keys(address).length > 0)
|
|
130
|
-
body['address'] = address;
|
|
131
|
-
if (client_reference_id)
|
|
132
|
-
body['client_reference_id'] = client_reference_id;
|
|
133
|
-
if (events_callback_url)
|
|
134
|
-
body['events_callback_url'] = events_callback_url;
|
|
135
|
-
if (tags && tags.length > 0)
|
|
136
|
-
body['tags'] = tags;
|
|
137
|
-
return common_1.aiprise.makeRequest({
|
|
138
|
-
auth: context.auth.props,
|
|
139
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
140
|
-
path: '/verify/create_user_profile',
|
|
141
|
-
body,
|
|
142
|
-
});
|
|
143
|
-
});
|
|
144
|
-
},
|
|
145
|
-
});
|
|
146
|
-
//# 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,E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,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;;;;;EA4BtC,CAAC"}
|
|
@@ -1,37 +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
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: 'Retrieves supplementary information gathered from a person during an identity verification — anything beyond the core identity fields, such as follow-up answers, extra documents, or custom form data — for a single session. Use when the primary submitted data (Get Person\'s Submitted Verification Data) is not enough. Requires the verification session ID. Read-only and idempotent.',
|
|
17
|
-
idempotent: true,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
session_id: pieces_framework_1.Property.ShortText({
|
|
21
|
-
displayName: 'Verification Session ID',
|
|
22
|
-
description: 'The ID of the verification to look up. You can get this from the output of the **Start Identity Verification** action',
|
|
23
|
-
required: true,
|
|
24
|
-
}),
|
|
25
|
-
},
|
|
26
|
-
run(context) {
|
|
27
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
28
|
-
const { session_id } = context.propsValue;
|
|
29
|
-
return common_1.aiprise.makeRequest({
|
|
30
|
-
auth: context.auth.props,
|
|
31
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
32
|
-
path: `/verify/get_additional_user_info_from_request/${session_id}`,
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
},
|
|
36
|
-
});
|
|
37
|
-
//# 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,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,+XAA+X;QACjY,UAAU,EAAE,IAAI;KACjB;IACD,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;;;;;EA4BrC,CAAC"}
|
|
@@ -1,37 +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
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: 'Lists every document attached to a given business profile, including each file\'s UUID, name, download URL, and the verification session it belongs to. Use this to discover a document\'s file UUID before running a document check, or to inventory what files a business has on file. Requires the business_profile_id. Read-only and idempotent.',
|
|
17
|
-
idempotent: true,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
business_profile_id: pieces_framework_1.Property.ShortText({
|
|
21
|
-
displayName: 'Business Profile ID',
|
|
22
|
-
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.',
|
|
23
|
-
required: true,
|
|
24
|
-
}),
|
|
25
|
-
},
|
|
26
|
-
run(context) {
|
|
27
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
28
|
-
const { business_profile_id } = context.propsValue;
|
|
29
|
-
return common_1.aiprise.makeRequest({
|
|
30
|
-
auth: context.auth.props,
|
|
31
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
32
|
-
path: `/verify/get_business_documents/${business_profile_id}`,
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
},
|
|
36
|
-
});
|
|
37
|
-
//# 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,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,sVAAsV;QACxV,UAAU,EAAE,IAAI;KACjB;IACD,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;;;;;EA6BrC,CAAC"}
|
|
@@ -1,38 +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
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: 'Retrieves the company data submitted for a single business verification session — name, registration number, directors, ownership, etc. Use this when you need the business\'s submitted input itself rather than the pass/fail decision (see Get Business Verification Result for the outcome). Requires the verification session ID. Read-only and idempotent.',
|
|
17
|
-
idempotent: true,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
session_id: pieces_framework_1.Property.ShortText({
|
|
21
|
-
displayName: 'Verification Session ID',
|
|
22
|
-
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.',
|
|
23
|
-
required: true,
|
|
24
|
-
}),
|
|
25
|
-
},
|
|
26
|
-
run(context) {
|
|
27
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
28
|
-
const { session_id } = context.propsValue;
|
|
29
|
-
const result = yield common_1.aiprise.makeRequest({
|
|
30
|
-
auth: context.auth.props,
|
|
31
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
32
|
-
path: `/verify/get_business_data_from_request/${session_id}`,
|
|
33
|
-
});
|
|
34
|
-
return result;
|
|
35
|
-
});
|
|
36
|
-
},
|
|
37
|
-
});
|
|
38
|
-
//# 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,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,kWAAkW;QACpW,UAAU,EAAE,IAAI;KACjB;IACD,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;;;;;EA4BnC,CAAC"}
|
|
@@ -1,37 +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
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: 'Fetches a single business (company) profile by its ID, returning the stored company details, addresses, tags, linked verification sessions, and metadata. Use this to read back a business profile you created or referenced. Requires the business_profile_id. Read-only and idempotent.',
|
|
17
|
-
idempotent: true,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
business_profile_id: pieces_framework_1.Property.ShortText({
|
|
21
|
-
displayName: 'Business Profile ID',
|
|
22
|
-
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.',
|
|
23
|
-
required: true,
|
|
24
|
-
}),
|
|
25
|
-
},
|
|
26
|
-
run(context) {
|
|
27
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
28
|
-
const { business_profile_id } = context.propsValue;
|
|
29
|
-
return common_1.aiprise.makeRequest({
|
|
30
|
-
auth: context.auth.props,
|
|
31
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
32
|
-
path: `/verify/get_business_profile/${encodeURIComponent(business_profile_id)}`,
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
},
|
|
36
|
-
});
|
|
37
|
-
//# 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,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,2RAA2R;QAC7R,UAAU,EAAE,IAAI;KACjB;IACD,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;;;;;EA6BlC,CAAC"}
|