@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.
Files changed (34) hide show
  1. package/README.md +3 -2
  2. package/dist/esm/models/CrmSyncConfigurationResponse.js +5 -2
  3. package/dist/esm/models/EmailMention.js +5 -2
  4. package/dist/esm/models/IntegrationCapabilityResponse.d.ts +1 -1
  5. package/dist/esm/models/IntegrationCapabilityResponseOutput.d.ts +54 -6
  6. package/dist/esm/models/IntegrationCapabilityResponseOutput.js +54 -29
  7. package/dist/esm/models/IntegrationCapabilityResponseOutputNonNull.d.ts +24 -0
  8. package/dist/esm/models/IntegrationCapabilityResponseOutputNonNull.js +58 -0
  9. package/dist/esm/models/IntegrationConnection.js +5 -2
  10. package/dist/esm/models/IntegrationConnectionHealth.js +5 -2
  11. package/dist/esm/models/ProductToolRequestInput.d.ts +30 -129
  12. package/dist/esm/models/ProductToolRequestInput.js +80 -120
  13. package/dist/esm/models/QueuedIntegrationJob.js +5 -2
  14. package/dist/esm/models/UpdateLeadRequestCompany.js +5 -2
  15. package/dist/esm/models/UpdateLeadRequestPerson.js +5 -2
  16. package/dist/esm/models/index.d.ts +1 -0
  17. package/dist/esm/models/index.js +1 -0
  18. package/dist/models/CrmSyncConfigurationResponse.js +5 -2
  19. package/dist/models/EmailMention.js +5 -2
  20. package/dist/models/IntegrationCapabilityResponse.d.ts +1 -1
  21. package/dist/models/IntegrationCapabilityResponseOutput.d.ts +54 -6
  22. package/dist/models/IntegrationCapabilityResponseOutput.js +55 -29
  23. package/dist/models/IntegrationCapabilityResponseOutputNonNull.d.ts +24 -0
  24. package/dist/models/IntegrationCapabilityResponseOutputNonNull.js +64 -0
  25. package/dist/models/IntegrationConnection.js +5 -2
  26. package/dist/models/IntegrationConnectionHealth.js +5 -2
  27. package/dist/models/ProductToolRequestInput.d.ts +30 -129
  28. package/dist/models/ProductToolRequestInput.js +80 -120
  29. package/dist/models/QueuedIntegrationJob.js +5 -2
  30. package/dist/models/UpdateLeadRequestCompany.js +5 -2
  31. package/dist/models/UpdateLeadRequestPerson.js +5 -2
  32. package/dist/models/index.d.ts +1 -0
  33. package/dist/models/index.js +1 -0
  34. package/package.json +1 -1
@@ -1,122 +1,82 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Reacon API
5
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
- *
7
- * The version of the OpenAPI document: 0.1.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import { ProductSequenceRecipientsAddInputRecipientsInnerFromJSON, ProductSequenceRecipientsAddInputRecipientsInnerToJSON, } from './ProductSequenceRecipientsAddInputRecipientsInner.js';
15
- /**
16
- * Check if a given object implements the ProductToolRequestInput interface.
17
- */
18
- export function instanceOfProductToolRequestInput(value) {
19
- if (!('domain' in value) || value['domain'] === undefined)
20
- return false;
21
- if (!('company' in value) || value['company'] === undefined)
22
- return false;
23
- if (!('email' in value) || value['email'] === undefined)
24
- return false;
25
- if (!('listId' in value) || value['listId'] === undefined)
26
- return false;
27
- if (!('leadId' in value) || value['leadId'] === undefined)
28
- return false;
29
- if (!('idempotencyKey' in value) || value['idempotencyKey'] === undefined)
30
- return false;
31
- if (!('leadIds' in value) || value['leadIds'] === undefined)
32
- return false;
33
- if (!('name' in value) || value['name'] === undefined)
34
- return false;
35
- if (!('tagId' in value) || value['tagId'] === undefined)
36
- return false;
37
- if (!('key' in value) || value['key'] === undefined)
38
- return false;
39
- if (!('companyId' in value) || value['companyId'] === undefined)
40
- return false;
41
- if (!('sequenceId' in value) || value['sequenceId'] === undefined)
42
- return false;
43
- if (!('recipients' in value) || value['recipients'] === undefined)
44
- return false;
45
- if (!('recipientId' in value) || value['recipientId'] === undefined)
46
- return false;
47
- if (!('connectionId' in value) || value['connectionId'] === undefined)
48
- return false;
49
- return true;
50
- }
51
- export function ProductToolRequestInputFromJSON(json) {
52
- return ProductToolRequestInputFromJSONTyped(json, false);
53
- }
54
- export function ProductToolRequestInputFromJSONTyped(json, ignoreDiscriminator) {
55
- if (json == null) {
56
- return json;
57
- }
58
- return {
59
- 'industry': json['industry'] == null ? undefined : json['industry'],
60
- 'limit': json['limit'] == null ? undefined : json['limit'],
61
- 'location': json['location'] == null ? undefined : json['location'],
62
- 'query': json['query'] == null ? undefined : json['query'],
63
- 'domain': json['domain'],
64
- 'jobTitle': json['jobTitle'] == null ? undefined : json['jobTitle'],
65
- 'company': json['company'],
66
- 'email': json['email'],
67
- 'listId': json['listId'],
68
- 'offset': json['offset'] == null ? undefined : json['offset'],
69
- 'leadId': json['leadId'],
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 ProductToolRequestInputToJSON(json) {
88
- return ProductToolRequestInputToJSONTyped(json, false);
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';
@@ -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'],
@@ -48,7 +48,7 @@ export interface IntegrationCapabilityResponse {
48
48
  /**
49
49
  *
50
50
  */
51
- output: IntegrationCapabilityResponseOutput;
51
+ output: IntegrationCapabilityResponseOutput | null;
52
52
  /**
53
53
  *
54
54
  */
@@ -9,16 +9,64 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { CapabilityDomainSearch } from './CapabilityDomainSearch.js';
13
- import type { CapabilityEmailFound } from './CapabilityEmailFound.js';
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 type IntegrationCapabilityResponseOutput = CapabilityDomainSearch | CapabilityEmailFound | CapabilityEmailVerified | object;
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): 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 CapabilityDomainSearch_js_1 = require("./CapabilityDomainSearch.js");
21
- const CapabilityEmailFound_js_1 = require("./CapabilityEmailFound.js");
22
- const CapabilityEmailVerified_js_1 = require("./CapabilityEmailVerified.js");
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
- if (typeof json !== 'object') {
31
- return json;
32
- }
33
- if ((0, CapabilityDomainSearch_js_1.instanceOfCapabilityDomainSearch)(json)) {
34
- return (0, CapabilityDomainSearch_js_1.CapabilityDomainSearchFromJSONTyped)(json, true);
35
- }
36
- if ((0, CapabilityEmailFound_js_1.instanceOfCapabilityEmailFound)(json)) {
37
- return (0, CapabilityEmailFound_js_1.CapabilityEmailFoundFromJSONTyped)(json, true);
38
- }
39
- if ((0, CapabilityEmailVerified_js_1.instanceOfCapabilityEmailVerified)(json)) {
40
- return (0, CapabilityEmailVerified_js_1.CapabilityEmailVerifiedFromJSONTyped)(json, true);
41
- }
42
- return {};
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
- if (typeof value !== 'object') {
52
- return value;
53
- }
54
- if ((0, CapabilityDomainSearch_js_1.instanceOfCapabilityDomainSearch)(value)) {
55
- return (0, CapabilityDomainSearch_js_1.CapabilityDomainSearchToJSON)(value);
56
- }
57
- if ((0, CapabilityEmailFound_js_1.instanceOfCapabilityEmailFound)(value)) {
58
- return (0, CapabilityEmailFound_js_1.CapabilityEmailFoundToJSON)(value);
59
- }
60
- if ((0, CapabilityEmailVerified_js_1.instanceOfCapabilityEmailVerified)(value)) {
61
- return (0, CapabilityEmailVerified_js_1.CapabilityEmailVerifiedToJSON)(value);
62
- }
63
- return {};
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;