@reacon-io/sdk 0.3.0-beta.1 → 0.5.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/esm/models/CrmSyncConfigurationResponse.js +5 -2
- package/dist/esm/models/EmailMention.js +5 -2
- package/dist/esm/models/IntegrationCapabilityResponse.d.ts +1 -1
- package/dist/esm/models/IntegrationCapabilityResponseOutput.d.ts +54 -6
- package/dist/esm/models/IntegrationCapabilityResponseOutput.js +54 -29
- package/dist/esm/models/IntegrationCapabilityResponseOutputNonNull.d.ts +24 -0
- package/dist/esm/models/IntegrationCapabilityResponseOutputNonNull.js +58 -0
- package/dist/esm/models/IntegrationConnection.js +5 -2
- package/dist/esm/models/IntegrationConnectionHealth.js +5 -2
- package/dist/esm/models/ProductToolRequestInput.d.ts +30 -129
- package/dist/esm/models/ProductToolRequestInput.js +80 -120
- package/dist/esm/models/QueuedIntegrationJob.js +5 -2
- package/dist/esm/models/UpdateLeadRequestCompany.js +5 -2
- package/dist/esm/models/UpdateLeadRequestPerson.js +5 -2
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/CrmSyncConfigurationResponse.js +5 -2
- package/dist/models/EmailMention.js +5 -2
- package/dist/models/IntegrationCapabilityResponse.d.ts +1 -1
- package/dist/models/IntegrationCapabilityResponseOutput.d.ts +54 -6
- package/dist/models/IntegrationCapabilityResponseOutput.js +55 -29
- package/dist/models/IntegrationCapabilityResponseOutputNonNull.d.ts +24 -0
- package/dist/models/IntegrationCapabilityResponseOutputNonNull.js +64 -0
- package/dist/models/IntegrationConnection.js +5 -2
- package/dist/models/IntegrationConnectionHealth.js +5 -2
- package/dist/models/ProductToolRequestInput.d.ts +30 -129
- package/dist/models/ProductToolRequestInput.js +80 -120
- package/dist/models/QueuedIntegrationJob.js +5 -2
- package/dist/models/UpdateLeadRequestCompany.js +5 -2
- package/dist/models/UpdateLeadRequestPerson.js +5 -2
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
|
@@ -1,122 +1,82 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
'attributes': json['attributes'] == null ? undefined : json['attributes'],
|
|
71
|
-
'firstName': json['firstName'] == null ? undefined : json['firstName'],
|
|
72
|
-
'idempotencyKey': json['idempotencyKey'],
|
|
73
|
-
'lastName': json['lastName'] == null ? undefined : json['lastName'],
|
|
74
|
-
'position': json['position'] == null ? undefined : json['position'],
|
|
75
|
-
'leadIds': json['leadIds'],
|
|
76
|
-
'name': json['name'],
|
|
77
|
-
'tagId': json['tagId'],
|
|
78
|
-
'key': json['key'],
|
|
79
|
-
'companyId': json['companyId'],
|
|
80
|
-
'employeeRange': json['employeeRange'] == null ? undefined : json['employeeRange'],
|
|
81
|
-
'sequenceId': json['sequenceId'],
|
|
82
|
-
'recipients': (json['recipients'].map(ProductSequenceRecipientsAddInputRecipientsInnerFromJSON)),
|
|
83
|
-
'recipientId': json['recipientId'],
|
|
84
|
-
'connectionId': json['connectionId'],
|
|
85
|
-
};
|
|
1
|
+
// Generated typed alternatives retained by the Reacon input-union adapter.
|
|
2
|
+
import { ProductDiscoverCompaniesInputFromJSON, ProductDiscoverCompaniesInputToJSON } from './ProductDiscoverCompaniesInput.js';
|
|
3
|
+
import { ProductDiscoverPeopleInputFromJSON, ProductDiscoverPeopleInputToJSON } from './ProductDiscoverPeopleInput.js';
|
|
4
|
+
import { ProductDomainFinderInputFromJSON, ProductDomainFinderInputToJSON } from './ProductDomainFinderInput.js';
|
|
5
|
+
import { ProductEmailCountInputFromJSON, ProductEmailCountInputToJSON } from './ProductEmailCountInput.js';
|
|
6
|
+
import { ProductPersonEnrichInputFromJSON, ProductPersonEnrichInputToJSON } from './ProductPersonEnrichInput.js';
|
|
7
|
+
import { ProductLeadsListInputFromJSON, ProductLeadsListInputToJSON } from './ProductLeadsListInput.js';
|
|
8
|
+
import { ProductLeadGetInputFromJSON, ProductLeadGetInputToJSON } from './ProductLeadGetInput.js';
|
|
9
|
+
import { ProductLeadCreateInputFromJSON, ProductLeadCreateInputToJSON } from './ProductLeadCreateInput.js';
|
|
10
|
+
import { ProductLeadUpdateInputFromJSON, ProductLeadUpdateInputToJSON } from './ProductLeadUpdateInput.js';
|
|
11
|
+
import { ProductLeadDeleteInputFromJSON, ProductLeadDeleteInputToJSON } from './ProductLeadDeleteInput.js';
|
|
12
|
+
import { ProductLeadBulkDeleteInputFromJSON, ProductLeadBulkDeleteInputToJSON } from './ProductLeadBulkDeleteInput.js';
|
|
13
|
+
import { ProductLeadTagCreateInputFromJSON, ProductLeadTagCreateInputToJSON } from './ProductLeadTagCreateInput.js';
|
|
14
|
+
import { ProductLeadTagAssignInputFromJSON, ProductLeadTagAssignInputToJSON } from './ProductLeadTagAssignInput.js';
|
|
15
|
+
import { ProductCustomAttributeCreateInputFromJSON, ProductCustomAttributeCreateInputToJSON } from './ProductCustomAttributeCreateInput.js';
|
|
16
|
+
import { ProductLeadListUpdateInputFromJSON, ProductLeadListUpdateInputToJSON } from './ProductLeadListUpdateInput.js';
|
|
17
|
+
import { ProductLeadListDeleteInputFromJSON, ProductLeadListDeleteInputToJSON } from './ProductLeadListDeleteInput.js';
|
|
18
|
+
import { ProductLeadListAddLeadInputFromJSON, ProductLeadListAddLeadInputToJSON } from './ProductLeadListAddLeadInput.js';
|
|
19
|
+
import { ProductCompaniesListInputFromJSON, ProductCompaniesListInputToJSON } from './ProductCompaniesListInput.js';
|
|
20
|
+
import { ProductCompanyTrackInputFromJSON, ProductCompanyTrackInputToJSON } from './ProductCompanyTrackInput.js';
|
|
21
|
+
import { ProductCompanyUpdateInputFromJSON, ProductCompanyUpdateInputToJSON } from './ProductCompanyUpdateInput.js';
|
|
22
|
+
import { ProductCompanyDeleteInputFromJSON, ProductCompanyDeleteInputToJSON } from './ProductCompanyDeleteInput.js';
|
|
23
|
+
import { ProductCompanyListAddInputFromJSON, ProductCompanyListAddInputToJSON } from './ProductCompanyListAddInput.js';
|
|
24
|
+
import { ProductSequenceRecipientsListInputFromJSON, ProductSequenceRecipientsListInputToJSON } from './ProductSequenceRecipientsListInput.js';
|
|
25
|
+
import { ProductSequenceRecipientsAddInputFromJSON, ProductSequenceRecipientsAddInputToJSON } from './ProductSequenceRecipientsAddInput.js';
|
|
26
|
+
import { ProductSequenceRecipientAddInputFromJSON, ProductSequenceRecipientAddInputToJSON } from './ProductSequenceRecipientAddInput.js';
|
|
27
|
+
import { ProductSequenceRecipientCancelInputFromJSON, ProductSequenceRecipientCancelInputToJSON } from './ProductSequenceRecipientCancelInput.js';
|
|
28
|
+
import { ProductSequenceStartInputFromJSON, ProductSequenceStartInputToJSON } from './ProductSequenceStartInput.js';
|
|
29
|
+
import { ProductConnectedAppPushInputFromJSON, ProductConnectedAppPushInputToJSON } from './ProductConnectedAppPushInput.js';
|
|
30
|
+
const alternatives = [
|
|
31
|
+
{ keys: ["industry", "limit", "location", "query"], required: [], read: ProductDiscoverCompaniesInputFromJSON, write: ProductDiscoverCompaniesInputToJSON },
|
|
32
|
+
{ keys: ["domain", "jobTitle", "limit", "query"], required: [], read: ProductDiscoverPeopleInputFromJSON, write: ProductDiscoverPeopleInputToJSON },
|
|
33
|
+
{ keys: ["company"], required: ["company"], read: ProductDomainFinderInputFromJSON, write: ProductDomainFinderInputToJSON },
|
|
34
|
+
{ keys: ["domain"], required: ["domain"], read: ProductEmailCountInputFromJSON, write: ProductEmailCountInputToJSON },
|
|
35
|
+
{ keys: ["email"], required: ["email"], read: ProductPersonEnrichInputFromJSON, write: ProductPersonEnrichInputToJSON },
|
|
36
|
+
{ keys: ["limit", "listId", "offset"], required: [], read: ProductLeadsListInputFromJSON, write: ProductLeadsListInputToJSON },
|
|
37
|
+
{ keys: ["leadId"], required: ["leadId"], read: ProductLeadGetInputFromJSON, write: ProductLeadGetInputToJSON },
|
|
38
|
+
{ keys: ["attributes", "company", "email", "firstName", "idempotencyKey", "lastName", "position"], required: ["email", "idempotencyKey"], read: ProductLeadCreateInputFromJSON, write: ProductLeadCreateInputToJSON },
|
|
39
|
+
{ keys: ["attributes", "company", "firstName", "idempotencyKey", "lastName", "leadId", "position"], required: ["leadId", "idempotencyKey"], read: ProductLeadUpdateInputFromJSON, write: ProductLeadUpdateInputToJSON },
|
|
40
|
+
{ keys: ["idempotencyKey", "leadId"], required: ["leadId", "idempotencyKey"], read: ProductLeadDeleteInputFromJSON, write: ProductLeadDeleteInputToJSON },
|
|
41
|
+
{ keys: ["idempotencyKey", "leadIds"], required: ["leadIds", "idempotencyKey"], read: ProductLeadBulkDeleteInputFromJSON, write: ProductLeadBulkDeleteInputToJSON },
|
|
42
|
+
{ keys: ["idempotencyKey", "name"], required: ["name", "idempotencyKey"], read: ProductLeadTagCreateInputFromJSON, write: ProductLeadTagCreateInputToJSON },
|
|
43
|
+
{ keys: ["idempotencyKey", "leadId", "tagId"], required: ["leadId", "tagId", "idempotencyKey"], read: ProductLeadTagAssignInputFromJSON, write: ProductLeadTagAssignInputToJSON },
|
|
44
|
+
{ keys: ["idempotencyKey", "key", "name"], required: ["name", "key", "idempotencyKey"], read: ProductCustomAttributeCreateInputFromJSON, write: ProductCustomAttributeCreateInputToJSON },
|
|
45
|
+
{ keys: ["idempotencyKey", "listId", "name"], required: ["listId", "name", "idempotencyKey"], read: ProductLeadListUpdateInputFromJSON, write: ProductLeadListUpdateInputToJSON },
|
|
46
|
+
{ keys: ["idempotencyKey", "listId"], required: ["listId", "idempotencyKey"], read: ProductLeadListDeleteInputFromJSON, write: ProductLeadListDeleteInputToJSON },
|
|
47
|
+
{ keys: ["idempotencyKey", "leadId", "listId"], required: ["listId", "leadId", "idempotencyKey"], read: ProductLeadListAddLeadInputFromJSON, write: ProductLeadListAddLeadInputToJSON },
|
|
48
|
+
{ keys: ["limit", "offset"], required: [], read: ProductCompaniesListInputFromJSON, write: ProductCompaniesListInputToJSON },
|
|
49
|
+
{ keys: ["domain", "idempotencyKey", "name"], required: ["domain", "idempotencyKey"], read: ProductCompanyTrackInputFromJSON, write: ProductCompanyTrackInputToJSON },
|
|
50
|
+
{ keys: ["companyId", "employeeRange", "idempotencyKey", "industry", "name"], required: ["companyId", "idempotencyKey"], read: ProductCompanyUpdateInputFromJSON, write: ProductCompanyUpdateInputToJSON },
|
|
51
|
+
{ keys: ["companyId", "idempotencyKey"], required: ["companyId", "idempotencyKey"], read: ProductCompanyDeleteInputFromJSON, write: ProductCompanyDeleteInputToJSON },
|
|
52
|
+
{ keys: ["companyId", "idempotencyKey", "listId"], required: ["listId", "companyId", "idempotencyKey"], read: ProductCompanyListAddInputFromJSON, write: ProductCompanyListAddInputToJSON },
|
|
53
|
+
{ keys: ["sequenceId"], required: ["sequenceId"], read: ProductSequenceRecipientsListInputFromJSON, write: ProductSequenceRecipientsListInputToJSON },
|
|
54
|
+
{ keys: ["idempotencyKey", "recipients", "sequenceId"], required: ["sequenceId", "recipients", "idempotencyKey"], read: ProductSequenceRecipientsAddInputFromJSON, write: ProductSequenceRecipientsAddInputToJSON },
|
|
55
|
+
{ keys: ["email", "idempotencyKey", "leadId", "sequenceId"], required: ["sequenceId", "email", "idempotencyKey"], read: ProductSequenceRecipientAddInputFromJSON, write: ProductSequenceRecipientAddInputToJSON },
|
|
56
|
+
{ keys: ["idempotencyKey", "recipientId"], required: ["recipientId", "idempotencyKey"], read: ProductSequenceRecipientCancelInputFromJSON, write: ProductSequenceRecipientCancelInputToJSON },
|
|
57
|
+
{ keys: ["idempotencyKey", "sequenceId"], required: ["sequenceId", "idempotencyKey"], read: ProductSequenceStartInputFromJSON, write: ProductSequenceStartInputToJSON },
|
|
58
|
+
{ keys: ["connectionId", "idempotencyKey", "leadIds"], required: ["connectionId", "leadIds", "idempotencyKey"], read: ProductConnectedAppPushInputFromJSON, write: ProductConnectedAppPushInputToJSON },
|
|
59
|
+
];
|
|
60
|
+
function select(value) {
|
|
61
|
+
if (value === null || typeof value !== "object" || Array.isArray(value))
|
|
62
|
+
throw new TypeError("Product tool input must be an object");
|
|
63
|
+
const keys = Object.keys(value).filter(key => value[key] !== undefined);
|
|
64
|
+
if (!keys.length)
|
|
65
|
+
return null;
|
|
66
|
+
const branch = alternatives.find(branch => keys.every(key => branch.keys.includes(key)) && branch.required.every(key => value[key] !== undefined));
|
|
67
|
+
if (!branch)
|
|
68
|
+
throw new TypeError("Product tool input does not match a declared object shape");
|
|
69
|
+
return branch;
|
|
86
70
|
}
|
|
87
|
-
export function
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
export function ProductToolRequestInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
91
|
-
if (value == null) {
|
|
92
|
-
return value;
|
|
93
|
-
}
|
|
94
|
-
return {
|
|
95
|
-
'industry': value['industry'],
|
|
96
|
-
'limit': value['limit'],
|
|
97
|
-
'location': value['location'],
|
|
98
|
-
'query': value['query'],
|
|
99
|
-
'domain': value['domain'],
|
|
100
|
-
'jobTitle': value['jobTitle'],
|
|
101
|
-
'company': value['company'],
|
|
102
|
-
'email': value['email'],
|
|
103
|
-
'listId': value['listId'],
|
|
104
|
-
'offset': value['offset'],
|
|
105
|
-
'leadId': value['leadId'],
|
|
106
|
-
'attributes': value['attributes'],
|
|
107
|
-
'firstName': value['firstName'],
|
|
108
|
-
'idempotencyKey': value['idempotencyKey'],
|
|
109
|
-
'lastName': value['lastName'],
|
|
110
|
-
'position': value['position'],
|
|
111
|
-
'leadIds': value['leadIds'],
|
|
112
|
-
'name': value['name'],
|
|
113
|
-
'tagId': value['tagId'],
|
|
114
|
-
'key': value['key'],
|
|
115
|
-
'companyId': value['companyId'],
|
|
116
|
-
'employeeRange': value['employeeRange'],
|
|
117
|
-
'sequenceId': value['sequenceId'],
|
|
118
|
-
'recipients': (value['recipients'].map(ProductSequenceRecipientsAddInputRecipientsInnerToJSON)),
|
|
119
|
-
'recipientId': value['recipientId'],
|
|
120
|
-
'connectionId': value['connectionId'],
|
|
121
|
-
};
|
|
71
|
+
export function instanceOfProductToolRequestInput(value) { try {
|
|
72
|
+
select(value);
|
|
73
|
+
return true;
|
|
122
74
|
}
|
|
75
|
+
catch {
|
|
76
|
+
return false;
|
|
77
|
+
} }
|
|
78
|
+
export function ProductToolRequestInputFromJSON(json) { const branch = select(json); return branch ? branch.read(json) : {}; }
|
|
79
|
+
export function ProductToolRequestInputFromJSONTyped(json, ignoreDiscriminator) { return ProductToolRequestInputFromJSON(json); }
|
|
80
|
+
export function ProductToolRequestInputToJSON(value) { if (value === undefined)
|
|
81
|
+
return undefined; const branch = select(value); return branch ? branch.write(value) : {}; }
|
|
82
|
+
export function ProductToolRequestInputToJSONTyped(value, ignoreDiscriminator = false) { return ProductToolRequestInputToJSON(value); }
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
const reaconAdditionalPropertyCollisions = Symbol('reacon.additionalPropertyCollisions');
|
|
14
15
|
import { QueuedIntegrationJobStreamPositionFromJSON, QueuedIntegrationJobStreamPositionToJSON, } from './QueuedIntegrationJobStreamPosition.js';
|
|
15
16
|
/**
|
|
16
17
|
* Check if a given object implements the QueuedIntegrationJob interface.
|
|
@@ -80,7 +81,8 @@ export function QueuedIntegrationJobFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
80
81
|
return json;
|
|
81
82
|
}
|
|
82
83
|
return {
|
|
83
|
-
...json,
|
|
84
|
+
...Object.fromEntries(Object.entries(json).filter(([key]) => !["attempt", "cancel_requested_at", "cancel_requested_by_user_id", "canonical_event_id", "connection_id", "counters", "created_at", "created_by_user_id", "error_code", "error_message_redacted", "finished_at", "id", "idempotency_key", "input_ref", "job_type", "lease_expires_at", "lease_owner", "max_attempts", "next_attempt_at", "result_ref", "started_at", "status", "stream_position", "subject_id", "subject_type", "team_id", "updated_at"].includes(key))),
|
|
85
|
+
...{ [reaconAdditionalPropertyCollisions]: Object.fromEntries(Object.entries(json).filter(([key]) => ["cancelRequestedAt", "cancelRequestedByUserId", "canonicalEventId", "connectionId", "createdAt", "createdByUserId", "errorCode", "errorMessageRedacted", "finishedAt", "idempotencyKey", "inputRef", "jobType", "leaseExpiresAt", "leaseOwner", "maxAttempts", "nextAttemptAt", "resultRef", "startedAt", "streamPosition", "subjectId", "subjectType", "teamId", "updatedAt"].includes(key))) },
|
|
84
86
|
'attempt': json['attempt'],
|
|
85
87
|
'cancelRequestedAt': json['cancel_requested_at'],
|
|
86
88
|
'cancelRequestedByUserId': json['cancel_requested_by_user_id'],
|
|
@@ -118,7 +120,8 @@ export function QueuedIntegrationJobToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
118
120
|
return value;
|
|
119
121
|
}
|
|
120
122
|
return {
|
|
121
|
-
...value,
|
|
123
|
+
...Object.fromEntries(Object.entries(value).filter(([key]) => !["attempt", "cancelRequestedAt", "cancelRequestedByUserId", "canonicalEventId", "connectionId", "counters", "createdAt", "createdByUserId", "errorCode", "errorMessageRedacted", "finishedAt", "id", "idempotencyKey", "inputRef", "jobType", "leaseExpiresAt", "leaseOwner", "maxAttempts", "nextAttemptAt", "resultRef", "startedAt", "status", "streamPosition", "subjectId", "subjectType", "teamId", "updatedAt"].includes(key))),
|
|
124
|
+
...(value[reaconAdditionalPropertyCollisions] ?? {}),
|
|
122
125
|
'attempt': value['attempt'],
|
|
123
126
|
'cancel_requested_at': value['cancelRequestedAt'],
|
|
124
127
|
'cancel_requested_by_user_id': value['cancelRequestedByUserId'],
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
const reaconAdditionalPropertyCollisions = Symbol('reacon.additionalPropertyCollisions');
|
|
14
15
|
import { CompanyListResultsInnerAddressesInnerFromJSON, CompanyListResultsInnerAddressesInnerToJSON, } from './CompanyListResultsInnerAddressesInner.js';
|
|
15
16
|
/**
|
|
16
17
|
* Check if a given object implements the UpdateLeadRequestCompany interface.
|
|
@@ -26,7 +27,8 @@ export function UpdateLeadRequestCompanyFromJSONTyped(json, ignoreDiscriminator)
|
|
|
26
27
|
return json;
|
|
27
28
|
}
|
|
28
29
|
return {
|
|
29
|
-
...json,
|
|
30
|
+
...Object.fromEntries(Object.entries(json).filter(([key]) => !["addresses", "founded_on", "industry", "linkedin", "location", "name", "number_of_employees", "stock", "twitter", "type", "website"].includes(key))),
|
|
31
|
+
...{ [reaconAdditionalPropertyCollisions]: Object.fromEntries(Object.entries(json).filter(([key]) => ["foundedOn", "numberOfEmployees"].includes(key))) },
|
|
30
32
|
'addresses': json['addresses'] === undefined ? undefined : json['addresses'] === null ? null : (json['addresses'].map(CompanyListResultsInnerAddressesInnerFromJSON)),
|
|
31
33
|
'foundedOn': json['founded_on'] === undefined ? undefined : json['founded_on'] === null ? null : json['founded_on'],
|
|
32
34
|
'industry': json['industry'] === undefined ? undefined : json['industry'] === null ? null : json['industry'],
|
|
@@ -48,7 +50,8 @@ export function UpdateLeadRequestCompanyToJSONTyped(value, ignoreDiscriminator =
|
|
|
48
50
|
return value;
|
|
49
51
|
}
|
|
50
52
|
return {
|
|
51
|
-
...value,
|
|
53
|
+
...Object.fromEntries(Object.entries(value).filter(([key]) => !["addresses", "foundedOn", "industry", "linkedin", "location", "name", "numberOfEmployees", "stock", "twitter", "type", "website"].includes(key))),
|
|
54
|
+
...(value[reaconAdditionalPropertyCollisions] ?? {}),
|
|
52
55
|
'addresses': value['addresses'] === undefined ? undefined : value['addresses'] === null ? null : (value['addresses'].map(CompanyListResultsInnerAddressesInnerToJSON)),
|
|
53
56
|
'founded_on': value['foundedOn'],
|
|
54
57
|
'industry': value['industry'],
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
const reaconAdditionalPropertyCollisions = Symbol('reacon.additionalPropertyCollisions');
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the UpdateLeadRequestPerson interface.
|
|
16
17
|
*/
|
|
@@ -25,7 +26,8 @@ export function UpdateLeadRequestPersonFromJSONTyped(json, ignoreDiscriminator)
|
|
|
25
26
|
return json;
|
|
26
27
|
}
|
|
27
28
|
return {
|
|
28
|
-
...json,
|
|
29
|
+
...Object.fromEntries(Object.entries(json).filter(([key]) => !["first_name", "last_name", "lead_location", "linkedin", "phone_number", "position", "twitter"].includes(key))),
|
|
30
|
+
...{ [reaconAdditionalPropertyCollisions]: Object.fromEntries(Object.entries(json).filter(([key]) => ["firstName", "lastName", "leadLocation", "phoneNumber"].includes(key))) },
|
|
29
31
|
'firstName': json['first_name'] === undefined ? undefined : json['first_name'] === null ? null : json['first_name'],
|
|
30
32
|
'lastName': json['last_name'] === undefined ? undefined : json['last_name'] === null ? null : json['last_name'],
|
|
31
33
|
'leadLocation': json['lead_location'] === undefined ? undefined : json['lead_location'] === null ? null : json['lead_location'],
|
|
@@ -43,7 +45,8 @@ export function UpdateLeadRequestPersonToJSONTyped(value, ignoreDiscriminator =
|
|
|
43
45
|
return value;
|
|
44
46
|
}
|
|
45
47
|
return {
|
|
46
|
-
...value,
|
|
48
|
+
...Object.fromEntries(Object.entries(value).filter(([key]) => !["firstName", "lastName", "leadLocation", "linkedin", "phoneNumber", "position", "twitter"].includes(key))),
|
|
49
|
+
...(value[reaconAdditionalPropertyCollisions] ?? {}),
|
|
47
50
|
'first_name': value['firstName'],
|
|
48
51
|
'last_name': value['lastName'],
|
|
49
52
|
'lead_location': value['leadLocation'],
|
|
@@ -120,6 +120,7 @@ export * from './InspectExcelWorkbookRequest.js';
|
|
|
120
120
|
export * from './InspectGoogleSheetRequest.js';
|
|
121
121
|
export * from './IntegrationCapabilityResponse.js';
|
|
122
122
|
export * from './IntegrationCapabilityResponseOutput.js';
|
|
123
|
+
export * from './IntegrationCapabilityResponseOutputNonNull.js';
|
|
123
124
|
export * from './IntegrationConnection.js';
|
|
124
125
|
export * from './IntegrationConnectionHealth.js';
|
|
125
126
|
export * from './IntegrationConnectionList.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -122,6 +122,7 @@ export * from './InspectExcelWorkbookRequest.js';
|
|
|
122
122
|
export * from './InspectGoogleSheetRequest.js';
|
|
123
123
|
export * from './IntegrationCapabilityResponse.js';
|
|
124
124
|
export * from './IntegrationCapabilityResponseOutput.js';
|
|
125
|
+
export * from './IntegrationCapabilityResponseOutputNonNull.js';
|
|
125
126
|
export * from './IntegrationConnection.js';
|
|
126
127
|
export * from './IntegrationConnectionHealth.js';
|
|
127
128
|
export * from './IntegrationConnectionList.js';
|
|
@@ -18,6 +18,7 @@ exports.CrmSyncConfigurationResponseFromJSON = CrmSyncConfigurationResponseFromJ
|
|
|
18
18
|
exports.CrmSyncConfigurationResponseFromJSONTyped = CrmSyncConfigurationResponseFromJSONTyped;
|
|
19
19
|
exports.CrmSyncConfigurationResponseToJSON = CrmSyncConfigurationResponseToJSON;
|
|
20
20
|
exports.CrmSyncConfigurationResponseToJSONTyped = CrmSyncConfigurationResponseToJSONTyped;
|
|
21
|
+
const reaconAdditionalPropertyCollisions = Symbol('reacon.additionalPropertyCollisions');
|
|
21
22
|
const CrmSyncConfiguration_js_1 = require("./CrmSyncConfiguration.js");
|
|
22
23
|
const IntegrationConnection_js_1 = require("./IntegrationConnection.js");
|
|
23
24
|
/**
|
|
@@ -38,7 +39,8 @@ function CrmSyncConfigurationResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
39
|
return json;
|
|
39
40
|
}
|
|
40
41
|
return {
|
|
41
|
-
...json,
|
|
42
|
+
...Object.fromEntries(Object.entries(json).filter(([key]) => !["configuration", "connection"].includes(key))),
|
|
43
|
+
...{ [reaconAdditionalPropertyCollisions]: Object.fromEntries(Object.entries(json).filter(([key]) => ["_configuration"].includes(key))) },
|
|
42
44
|
'_configuration': (0, CrmSyncConfiguration_js_1.CrmSyncConfigurationFromJSON)(json['configuration']),
|
|
43
45
|
'connection': (0, IntegrationConnection_js_1.IntegrationConnectionFromJSON)(json['connection']),
|
|
44
46
|
};
|
|
@@ -51,7 +53,8 @@ function CrmSyncConfigurationResponseToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
51
53
|
return value;
|
|
52
54
|
}
|
|
53
55
|
return {
|
|
54
|
-
...value,
|
|
56
|
+
...Object.fromEntries(Object.entries(value).filter(([key]) => !["_configuration", "connection"].includes(key))),
|
|
57
|
+
...(value[reaconAdditionalPropertyCollisions] ?? {}),
|
|
55
58
|
'configuration': (0, CrmSyncConfiguration_js_1.CrmSyncConfigurationToJSON)(value['_configuration']),
|
|
56
59
|
'connection': (0, IntegrationConnection_js_1.IntegrationConnectionToJSON)(value['connection']),
|
|
57
60
|
};
|
|
@@ -18,6 +18,7 @@ exports.EmailMentionFromJSON = EmailMentionFromJSON;
|
|
|
18
18
|
exports.EmailMentionFromJSONTyped = EmailMentionFromJSONTyped;
|
|
19
19
|
exports.EmailMentionToJSON = EmailMentionToJSON;
|
|
20
20
|
exports.EmailMentionToJSONTyped = EmailMentionToJSONTyped;
|
|
21
|
+
const reaconAdditionalPropertyCollisions = Symbol('reacon.additionalPropertyCollisions');
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the EmailMention interface.
|
|
23
24
|
*/
|
|
@@ -44,7 +45,8 @@ function EmailMentionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
45
|
return json;
|
|
45
46
|
}
|
|
46
47
|
return {
|
|
47
|
-
...json,
|
|
48
|
+
...Object.fromEntries(Object.entries(json).filter(([key]) => !["domain", "email", "first_seen", "last_seen", "source_type", "source_url"].includes(key))),
|
|
49
|
+
...{ [reaconAdditionalPropertyCollisions]: Object.fromEntries(Object.entries(json).filter(([key]) => ["firstSeen", "lastSeen", "sourceType", "sourceUrl"].includes(key))) },
|
|
48
50
|
'domain': json['domain'],
|
|
49
51
|
'email': json['email'],
|
|
50
52
|
'firstSeen': json['first_seen'],
|
|
@@ -61,7 +63,8 @@ function EmailMentionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
61
63
|
return value;
|
|
62
64
|
}
|
|
63
65
|
return {
|
|
64
|
-
...value,
|
|
66
|
+
...Object.fromEntries(Object.entries(value).filter(([key]) => !["domain", "email", "firstSeen", "lastSeen", "sourceType", "sourceUrl"].includes(key))),
|
|
67
|
+
...(value[reaconAdditionalPropertyCollisions] ?? {}),
|
|
65
68
|
'domain': value['domain'],
|
|
66
69
|
'email': value['email'],
|
|
67
70
|
'first_seen': value['firstSeen'],
|
|
@@ -9,16 +9,64 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
13
|
-
import type {
|
|
14
|
-
import type { CapabilityEmailVerified } from './CapabilityEmailVerified.js';
|
|
12
|
+
import type { CapabilityDomainSearchContactsInner } from './CapabilityDomainSearchContactsInner.js';
|
|
13
|
+
import type { CapabilityEmailVerifiedDetails } from './CapabilityEmailVerifiedDetails.js';
|
|
15
14
|
/**
|
|
16
|
-
* @type IntegrationCapabilityResponseOutput
|
|
17
15
|
* Null in preview mode; otherwise the result for the selected capability.
|
|
18
16
|
* @export
|
|
17
|
+
* @interface IntegrationCapabilityResponseOutput
|
|
19
18
|
*/
|
|
20
|
-
export
|
|
19
|
+
export interface IntegrationCapabilityResponseOutput {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
confidence: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
freshness: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
status: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
checkedAt: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
details: CapabilityEmailVerifiedDetails;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
score: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
sources: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
contacts: Array<CapabilityDomainSearchContactsInner>;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
domain: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
organization?: string;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Check if a given object implements the IntegrationCapabilityResponseOutput interface.
|
|
67
|
+
*/
|
|
68
|
+
export declare function instanceOfIntegrationCapabilityResponseOutput(value: object): value is IntegrationCapabilityResponseOutput;
|
|
21
69
|
export declare function IntegrationCapabilityResponseOutputFromJSON(json: any): IntegrationCapabilityResponseOutput;
|
|
22
70
|
export declare function IntegrationCapabilityResponseOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationCapabilityResponseOutput;
|
|
23
|
-
export declare function IntegrationCapabilityResponseOutputToJSON(json: any):
|
|
71
|
+
export declare function IntegrationCapabilityResponseOutputToJSON(json: any): IntegrationCapabilityResponseOutput;
|
|
24
72
|
export declare function IntegrationCapabilityResponseOutputToJSONTyped(value?: IntegrationCapabilityResponseOutput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,13 +13,39 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfIntegrationCapabilityResponseOutput = instanceOfIntegrationCapabilityResponseOutput;
|
|
16
17
|
exports.IntegrationCapabilityResponseOutputFromJSON = IntegrationCapabilityResponseOutputFromJSON;
|
|
17
18
|
exports.IntegrationCapabilityResponseOutputFromJSONTyped = IntegrationCapabilityResponseOutputFromJSONTyped;
|
|
18
19
|
exports.IntegrationCapabilityResponseOutputToJSON = IntegrationCapabilityResponseOutputToJSON;
|
|
19
20
|
exports.IntegrationCapabilityResponseOutputToJSONTyped = IntegrationCapabilityResponseOutputToJSONTyped;
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
|
|
21
|
+
const CapabilityDomainSearchContactsInner_js_1 = require("./CapabilityDomainSearchContactsInner.js");
|
|
22
|
+
const CapabilityEmailVerifiedDetails_js_1 = require("./CapabilityEmailVerifiedDetails.js");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the IntegrationCapabilityResponseOutput interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfIntegrationCapabilityResponseOutput(value) {
|
|
27
|
+
if (!('confidence' in value) || value['confidence'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('freshness' in value) || value['freshness'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('checkedAt' in value) || value['checkedAt'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('details' in value) || value['details'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('score' in value) || value['score'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('sources' in value) || value['sources'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('contacts' in value) || value['contacts'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('domain' in value) || value['domain'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
23
49
|
function IntegrationCapabilityResponseOutputFromJSON(json) {
|
|
24
50
|
return IntegrationCapabilityResponseOutputFromJSONTyped(json, false);
|
|
25
51
|
}
|
|
@@ -27,19 +53,19 @@ function IntegrationCapabilityResponseOutputFromJSONTyped(json, ignoreDiscrimina
|
|
|
27
53
|
if (json == null) {
|
|
28
54
|
return json;
|
|
29
55
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
56
|
+
return {
|
|
57
|
+
'confidence': json['confidence'],
|
|
58
|
+
'email': json['email'],
|
|
59
|
+
'freshness': json['freshness'],
|
|
60
|
+
'status': json['status'],
|
|
61
|
+
'checkedAt': json['checkedAt'],
|
|
62
|
+
'details': (0, CapabilityEmailVerifiedDetails_js_1.CapabilityEmailVerifiedDetailsFromJSON)(json['details']),
|
|
63
|
+
'score': json['score'],
|
|
64
|
+
'sources': json['sources'],
|
|
65
|
+
'contacts': (json['contacts'].map(CapabilityDomainSearchContactsInner_js_1.CapabilityDomainSearchContactsInnerFromJSON)),
|
|
66
|
+
'domain': json['domain'],
|
|
67
|
+
'organization': json['organization'] == null ? undefined : json['organization'],
|
|
68
|
+
};
|
|
43
69
|
}
|
|
44
70
|
function IntegrationCapabilityResponseOutputToJSON(json) {
|
|
45
71
|
return IntegrationCapabilityResponseOutputToJSONTyped(json, false);
|
|
@@ -48,17 +74,17 @@ function IntegrationCapabilityResponseOutputToJSONTyped(value, ignoreDiscriminat
|
|
|
48
74
|
if (value == null) {
|
|
49
75
|
return value;
|
|
50
76
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
77
|
+
return {
|
|
78
|
+
'confidence': value['confidence'],
|
|
79
|
+
'email': value['email'],
|
|
80
|
+
'freshness': value['freshness'],
|
|
81
|
+
'status': value['status'],
|
|
82
|
+
'checkedAt': value['checkedAt'],
|
|
83
|
+
'details': (0, CapabilityEmailVerifiedDetails_js_1.CapabilityEmailVerifiedDetailsToJSON)(value['details']),
|
|
84
|
+
'score': value['score'],
|
|
85
|
+
'sources': value['sources'],
|
|
86
|
+
'contacts': (value['contacts'].map(CapabilityDomainSearchContactsInner_js_1.CapabilityDomainSearchContactsInnerToJSON)),
|
|
87
|
+
'domain': value['domain'],
|
|
88
|
+
'organization': value['organization'],
|
|
89
|
+
};
|
|
64
90
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reacon API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { CapabilityDomainSearch } from './CapabilityDomainSearch.js';
|
|
13
|
+
import type { CapabilityEmailFound } from './CapabilityEmailFound.js';
|
|
14
|
+
import type { CapabilityEmailVerified } from './CapabilityEmailVerified.js';
|
|
15
|
+
/**
|
|
16
|
+
* @type IntegrationCapabilityResponseOutputNonNull
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export type IntegrationCapabilityResponseOutputNonNull = CapabilityDomainSearch | CapabilityEmailFound | CapabilityEmailVerified;
|
|
21
|
+
export declare function IntegrationCapabilityResponseOutputNonNullFromJSON(json: any): IntegrationCapabilityResponseOutputNonNull;
|
|
22
|
+
export declare function IntegrationCapabilityResponseOutputNonNullFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationCapabilityResponseOutputNonNull;
|
|
23
|
+
export declare function IntegrationCapabilityResponseOutputNonNullToJSON(json: any): any;
|
|
24
|
+
export declare function IntegrationCapabilityResponseOutputNonNullToJSONTyped(value?: IntegrationCapabilityResponseOutputNonNull | null, ignoreDiscriminator?: boolean): any;
|