@reacon-io/sdk 0.4.0-beta.1 → 0.6.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 +4 -3
- package/dist/esm/models/CrmSyncConfigurationResponse.js +5 -2
- package/dist/esm/models/EmailMention.js +5 -2
- package/dist/esm/models/IntegrationConnection.js +5 -2
- package/dist/esm/models/IntegrationConnectionHealth.js +5 -2
- 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/runtime.d.ts +0 -1
- package/dist/esm/runtime.js +3 -1
- package/dist/models/CrmSyncConfigurationResponse.js +5 -2
- package/dist/models/EmailMention.js +5 -2
- package/dist/models/IntegrationConnection.js +5 -2
- package/dist/models/IntegrationConnectionHealth.js +5 -2
- package/dist/models/QueuedIntegrationJob.js +5 -2
- package/dist/models/UpdateLeadRequestCompany.js +5 -2
- package/dist/models/UpdateLeadRequestPerson.js +5 -2
- package/dist/runtime.d.ts +0 -1
- package/dist/runtime.js +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @reacon-io/sdk@0.
|
|
1
|
+
# @reacon-io/sdk@0.6.0-beta.1
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the api.reacon.io API.
|
|
4
4
|
|
|
@@ -15,7 +15,6 @@ import {
|
|
|
15
15
|
|
|
16
16
|
const client = new DomainsApi(new Configuration({
|
|
17
17
|
apiKey: 'YOUR_API_KEY',
|
|
18
|
-
basePath: 'https://api.reacon.io',
|
|
19
18
|
requestTimeoutMs: 30_000,
|
|
20
19
|
}));
|
|
21
20
|
const cancellation = new AbortController();
|
|
@@ -931,7 +930,7 @@ and is automatically generated by the
|
|
|
931
930
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
932
931
|
|
|
933
932
|
- API version: `0.1.0`
|
|
934
|
-
- Package version: `0.
|
|
933
|
+
- Package version: `0.6.0-beta.1`
|
|
935
934
|
- Generator version: `7.25.0`
|
|
936
935
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
937
936
|
|
|
@@ -972,3 +971,5 @@ npm publish
|
|
|
972
971
|
## License
|
|
973
972
|
|
|
974
973
|
[Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0.html)
|
|
974
|
+
|
|
975
|
+
The service URL is fixed to https://api.reacon.io. SDKs do not accept a service URL override.
|
|
@@ -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 { CrmSyncConfigurationFromJSON, CrmSyncConfigurationToJSON, } from './CrmSyncConfiguration.js';
|
|
15
16
|
import { IntegrationConnectionFromJSON, IntegrationConnectionToJSON, } from './IntegrationConnection.js';
|
|
16
17
|
/**
|
|
@@ -31,7 +32,8 @@ export function CrmSyncConfigurationResponseFromJSONTyped(json, ignoreDiscrimina
|
|
|
31
32
|
return json;
|
|
32
33
|
}
|
|
33
34
|
return {
|
|
34
|
-
...json,
|
|
35
|
+
...Object.fromEntries(Object.entries(json).filter(([key]) => !["configuration", "connection"].includes(key))),
|
|
36
|
+
...{ [reaconAdditionalPropertyCollisions]: Object.fromEntries(Object.entries(json).filter(([key]) => ["_configuration"].includes(key))) },
|
|
35
37
|
'_configuration': CrmSyncConfigurationFromJSON(json['configuration']),
|
|
36
38
|
'connection': IntegrationConnectionFromJSON(json['connection']),
|
|
37
39
|
};
|
|
@@ -44,7 +46,8 @@ export function CrmSyncConfigurationResponseToJSONTyped(value, ignoreDiscriminat
|
|
|
44
46
|
return value;
|
|
45
47
|
}
|
|
46
48
|
return {
|
|
47
|
-
...value,
|
|
49
|
+
...Object.fromEntries(Object.entries(value).filter(([key]) => !["_configuration", "connection"].includes(key))),
|
|
50
|
+
...(value[reaconAdditionalPropertyCollisions] ?? {}),
|
|
48
51
|
'configuration': CrmSyncConfigurationToJSON(value['_configuration']),
|
|
49
52
|
'connection': IntegrationConnectionToJSON(value['connection']),
|
|
50
53
|
};
|
|
@@ -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 EmailMention interface.
|
|
16
17
|
*/
|
|
@@ -37,7 +38,8 @@ export function EmailMentionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
38
|
return json;
|
|
38
39
|
}
|
|
39
40
|
return {
|
|
40
|
-
...json,
|
|
41
|
+
...Object.fromEntries(Object.entries(json).filter(([key]) => !["domain", "email", "first_seen", "last_seen", "source_type", "source_url"].includes(key))),
|
|
42
|
+
...{ [reaconAdditionalPropertyCollisions]: Object.fromEntries(Object.entries(json).filter(([key]) => ["firstSeen", "lastSeen", "sourceType", "sourceUrl"].includes(key))) },
|
|
41
43
|
'domain': json['domain'],
|
|
42
44
|
'email': json['email'],
|
|
43
45
|
'firstSeen': json['first_seen'],
|
|
@@ -54,7 +56,8 @@ export function EmailMentionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
54
56
|
return value;
|
|
55
57
|
}
|
|
56
58
|
return {
|
|
57
|
-
...value,
|
|
59
|
+
...Object.fromEntries(Object.entries(value).filter(([key]) => !["domain", "email", "firstSeen", "lastSeen", "sourceType", "sourceUrl"].includes(key))),
|
|
60
|
+
...(value[reaconAdditionalPropertyCollisions] ?? {}),
|
|
58
61
|
'domain': value['domain'],
|
|
59
62
|
'email': value['email'],
|
|
60
63
|
'first_seen': value['firstSeen'],
|
|
@@ -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 { IntegrationConnectionHealthFromJSON, IntegrationConnectionHealthToJSON, } from './IntegrationConnectionHealth.js';
|
|
15
16
|
/**
|
|
16
17
|
* Check if a given object implements the IntegrationConnection interface.
|
|
@@ -52,7 +53,8 @@ export function IntegrationConnectionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
53
|
return json;
|
|
53
54
|
}
|
|
54
55
|
return {
|
|
55
|
-
...json,
|
|
56
|
+
...Object.fromEntries(Object.entries(json).filter(([key]) => !["capabilities", "config", "created_at", "health", "id", "label", "mode", "provider", "provider_account_id", "provider_base_url", "status", "team_id", "updated_at"].includes(key))),
|
|
57
|
+
...{ [reaconAdditionalPropertyCollisions]: Object.fromEntries(Object.entries(json).filter(([key]) => ["createdAt", "providerAccountId", "providerBaseUrl", "teamId", "updatedAt"].includes(key))) },
|
|
56
58
|
'capabilities': json['capabilities'],
|
|
57
59
|
'config': json['config'],
|
|
58
60
|
'createdAt': json['created_at'],
|
|
@@ -76,7 +78,8 @@ export function IntegrationConnectionToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
76
78
|
return value;
|
|
77
79
|
}
|
|
78
80
|
return {
|
|
79
|
-
...value,
|
|
81
|
+
...Object.fromEntries(Object.entries(value).filter(([key]) => !["capabilities", "config", "createdAt", "health", "id", "label", "mode", "provider", "providerAccountId", "providerBaseUrl", "status", "teamId", "updatedAt"].includes(key))),
|
|
82
|
+
...(value[reaconAdditionalPropertyCollisions] ?? {}),
|
|
80
83
|
'capabilities': value['capabilities'],
|
|
81
84
|
'config': value['config'],
|
|
82
85
|
'created_at': value['createdAt'],
|
|
@@ -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 IntegrationConnectionHealth interface.
|
|
16
17
|
*/
|
|
@@ -35,7 +36,8 @@ export function IntegrationConnectionHealthFromJSONTyped(json, ignoreDiscriminat
|
|
|
35
36
|
return json;
|
|
36
37
|
}
|
|
37
38
|
return {
|
|
38
|
-
...json,
|
|
39
|
+
...Object.fromEntries(Object.entries(json).filter(([key]) => !["checked_at", "code", "last_error_code", "last_error_message", "state"].includes(key))),
|
|
40
|
+
...{ [reaconAdditionalPropertyCollisions]: Object.fromEntries(Object.entries(json).filter(([key]) => ["checkedAt", "lastErrorCode", "lastErrorMessage"].includes(key))) },
|
|
39
41
|
'checkedAt': json['checked_at'],
|
|
40
42
|
'code': json['code'],
|
|
41
43
|
'lastErrorCode': json['last_error_code'],
|
|
@@ -51,7 +53,8 @@ export function IntegrationConnectionHealthToJSONTyped(value, ignoreDiscriminato
|
|
|
51
53
|
return value;
|
|
52
54
|
}
|
|
53
55
|
return {
|
|
54
|
-
...value,
|
|
56
|
+
...Object.fromEntries(Object.entries(value).filter(([key]) => !["checkedAt", "code", "lastErrorCode", "lastErrorMessage", "state"].includes(key))),
|
|
57
|
+
...(value[reaconAdditionalPropertyCollisions] ?? {}),
|
|
55
58
|
'checked_at': value['checkedAt'],
|
|
56
59
|
'code': value['code'],
|
|
57
60
|
'last_error_code': value['lastErrorCode'],
|
|
@@ -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'],
|
package/dist/esm/runtime.d.ts
CHANGED
|
@@ -17,7 +17,6 @@ export interface ConfigurationParameters {
|
|
|
17
17
|
safeRetries?: RetryOptions;
|
|
18
18
|
/** Total network deadline through body reads; defaults to 30000 milliseconds. */
|
|
19
19
|
requestTimeoutMs?: number;
|
|
20
|
-
basePath?: string;
|
|
21
20
|
fetchApi?: FetchAPI;
|
|
22
21
|
middleware?: Middleware[];
|
|
23
22
|
queryParamsStringify?: (params: HTTPQuery) => string;
|
package/dist/esm/runtime.js
CHANGED
|
@@ -17,12 +17,14 @@ export const BASE_PATH = "https://api.reacon.io".replace(/\/+$/, "");
|
|
|
17
17
|
export class Configuration {
|
|
18
18
|
constructor(configuration = {}) {
|
|
19
19
|
this.configuration = configuration;
|
|
20
|
+
if ('basePath' in configuration)
|
|
21
|
+
throw new TypeError('The Reacon API URL is fixed.');
|
|
20
22
|
}
|
|
21
23
|
set config(configuration) {
|
|
22
24
|
this.configuration = configuration;
|
|
23
25
|
}
|
|
24
26
|
get basePath() {
|
|
25
|
-
return
|
|
27
|
+
return BASE_PATH;
|
|
26
28
|
}
|
|
27
29
|
get requestTimeoutMs() { return this.configuration.requestTimeoutMs ?? 30000; }
|
|
28
30
|
get safeRetries() { return this.configuration.safeRetries; }
|
|
@@ -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'],
|
|
@@ -18,6 +18,7 @@ exports.IntegrationConnectionFromJSON = IntegrationConnectionFromJSON;
|
|
|
18
18
|
exports.IntegrationConnectionFromJSONTyped = IntegrationConnectionFromJSONTyped;
|
|
19
19
|
exports.IntegrationConnectionToJSON = IntegrationConnectionToJSON;
|
|
20
20
|
exports.IntegrationConnectionToJSONTyped = IntegrationConnectionToJSONTyped;
|
|
21
|
+
const reaconAdditionalPropertyCollisions = Symbol('reacon.additionalPropertyCollisions');
|
|
21
22
|
const IntegrationConnectionHealth_js_1 = require("./IntegrationConnectionHealth.js");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the IntegrationConnection interface.
|
|
@@ -59,7 +60,8 @@ function IntegrationConnectionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
60
|
return json;
|
|
60
61
|
}
|
|
61
62
|
return {
|
|
62
|
-
...json,
|
|
63
|
+
...Object.fromEntries(Object.entries(json).filter(([key]) => !["capabilities", "config", "created_at", "health", "id", "label", "mode", "provider", "provider_account_id", "provider_base_url", "status", "team_id", "updated_at"].includes(key))),
|
|
64
|
+
...{ [reaconAdditionalPropertyCollisions]: Object.fromEntries(Object.entries(json).filter(([key]) => ["createdAt", "providerAccountId", "providerBaseUrl", "teamId", "updatedAt"].includes(key))) },
|
|
63
65
|
'capabilities': json['capabilities'],
|
|
64
66
|
'config': json['config'],
|
|
65
67
|
'createdAt': json['created_at'],
|
|
@@ -83,7 +85,8 @@ function IntegrationConnectionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
83
85
|
return value;
|
|
84
86
|
}
|
|
85
87
|
return {
|
|
86
|
-
...value,
|
|
88
|
+
...Object.fromEntries(Object.entries(value).filter(([key]) => !["capabilities", "config", "createdAt", "health", "id", "label", "mode", "provider", "providerAccountId", "providerBaseUrl", "status", "teamId", "updatedAt"].includes(key))),
|
|
89
|
+
...(value[reaconAdditionalPropertyCollisions] ?? {}),
|
|
87
90
|
'capabilities': value['capabilities'],
|
|
88
91
|
'config': value['config'],
|
|
89
92
|
'created_at': value['createdAt'],
|
|
@@ -18,6 +18,7 @@ exports.IntegrationConnectionHealthFromJSON = IntegrationConnectionHealthFromJSO
|
|
|
18
18
|
exports.IntegrationConnectionHealthFromJSONTyped = IntegrationConnectionHealthFromJSONTyped;
|
|
19
19
|
exports.IntegrationConnectionHealthToJSON = IntegrationConnectionHealthToJSON;
|
|
20
20
|
exports.IntegrationConnectionHealthToJSONTyped = IntegrationConnectionHealthToJSONTyped;
|
|
21
|
+
const reaconAdditionalPropertyCollisions = Symbol('reacon.additionalPropertyCollisions');
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the IntegrationConnectionHealth interface.
|
|
23
24
|
*/
|
|
@@ -42,7 +43,8 @@ function IntegrationConnectionHealthFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
43
|
return json;
|
|
43
44
|
}
|
|
44
45
|
return {
|
|
45
|
-
...json,
|
|
46
|
+
...Object.fromEntries(Object.entries(json).filter(([key]) => !["checked_at", "code", "last_error_code", "last_error_message", "state"].includes(key))),
|
|
47
|
+
...{ [reaconAdditionalPropertyCollisions]: Object.fromEntries(Object.entries(json).filter(([key]) => ["checkedAt", "lastErrorCode", "lastErrorMessage"].includes(key))) },
|
|
46
48
|
'checkedAt': json['checked_at'],
|
|
47
49
|
'code': json['code'],
|
|
48
50
|
'lastErrorCode': json['last_error_code'],
|
|
@@ -58,7 +60,8 @@ function IntegrationConnectionHealthToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
58
60
|
return value;
|
|
59
61
|
}
|
|
60
62
|
return {
|
|
61
|
-
...value,
|
|
63
|
+
...Object.fromEntries(Object.entries(value).filter(([key]) => !["checkedAt", "code", "lastErrorCode", "lastErrorMessage", "state"].includes(key))),
|
|
64
|
+
...(value[reaconAdditionalPropertyCollisions] ?? {}),
|
|
62
65
|
'checked_at': value['checkedAt'],
|
|
63
66
|
'code': value['code'],
|
|
64
67
|
'last_error_code': value['lastErrorCode'],
|
|
@@ -18,6 +18,7 @@ exports.QueuedIntegrationJobFromJSON = QueuedIntegrationJobFromJSON;
|
|
|
18
18
|
exports.QueuedIntegrationJobFromJSONTyped = QueuedIntegrationJobFromJSONTyped;
|
|
19
19
|
exports.QueuedIntegrationJobToJSON = QueuedIntegrationJobToJSON;
|
|
20
20
|
exports.QueuedIntegrationJobToJSONTyped = QueuedIntegrationJobToJSONTyped;
|
|
21
|
+
const reaconAdditionalPropertyCollisions = Symbol('reacon.additionalPropertyCollisions');
|
|
21
22
|
const QueuedIntegrationJobStreamPosition_js_1 = require("./QueuedIntegrationJobStreamPosition.js");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the QueuedIntegrationJob interface.
|
|
@@ -87,7 +88,8 @@ function QueuedIntegrationJobFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
87
88
|
return json;
|
|
88
89
|
}
|
|
89
90
|
return {
|
|
90
|
-
...json,
|
|
91
|
+
...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))),
|
|
92
|
+
...{ [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))) },
|
|
91
93
|
'attempt': json['attempt'],
|
|
92
94
|
'cancelRequestedAt': json['cancel_requested_at'],
|
|
93
95
|
'cancelRequestedByUserId': json['cancel_requested_by_user_id'],
|
|
@@ -125,7 +127,8 @@ function QueuedIntegrationJobToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
125
127
|
return value;
|
|
126
128
|
}
|
|
127
129
|
return {
|
|
128
|
-
...value,
|
|
130
|
+
...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))),
|
|
131
|
+
...(value[reaconAdditionalPropertyCollisions] ?? {}),
|
|
129
132
|
'attempt': value['attempt'],
|
|
130
133
|
'cancel_requested_at': value['cancelRequestedAt'],
|
|
131
134
|
'cancel_requested_by_user_id': value['cancelRequestedByUserId'],
|
|
@@ -18,6 +18,7 @@ exports.UpdateLeadRequestCompanyFromJSON = UpdateLeadRequestCompanyFromJSON;
|
|
|
18
18
|
exports.UpdateLeadRequestCompanyFromJSONTyped = UpdateLeadRequestCompanyFromJSONTyped;
|
|
19
19
|
exports.UpdateLeadRequestCompanyToJSON = UpdateLeadRequestCompanyToJSON;
|
|
20
20
|
exports.UpdateLeadRequestCompanyToJSONTyped = UpdateLeadRequestCompanyToJSONTyped;
|
|
21
|
+
const reaconAdditionalPropertyCollisions = Symbol('reacon.additionalPropertyCollisions');
|
|
21
22
|
const CompanyListResultsInnerAddressesInner_js_1 = require("./CompanyListResultsInnerAddressesInner.js");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the UpdateLeadRequestCompany interface.
|
|
@@ -33,7 +34,8 @@ function UpdateLeadRequestCompanyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
34
|
return json;
|
|
34
35
|
}
|
|
35
36
|
return {
|
|
36
|
-
...json,
|
|
37
|
+
...Object.fromEntries(Object.entries(json).filter(([key]) => !["addresses", "founded_on", "industry", "linkedin", "location", "name", "number_of_employees", "stock", "twitter", "type", "website"].includes(key))),
|
|
38
|
+
...{ [reaconAdditionalPropertyCollisions]: Object.fromEntries(Object.entries(json).filter(([key]) => ["foundedOn", "numberOfEmployees"].includes(key))) },
|
|
37
39
|
'addresses': json['addresses'] === undefined ? undefined : json['addresses'] === null ? null : (json['addresses'].map(CompanyListResultsInnerAddressesInner_js_1.CompanyListResultsInnerAddressesInnerFromJSON)),
|
|
38
40
|
'foundedOn': json['founded_on'] === undefined ? undefined : json['founded_on'] === null ? null : json['founded_on'],
|
|
39
41
|
'industry': json['industry'] === undefined ? undefined : json['industry'] === null ? null : json['industry'],
|
|
@@ -55,7 +57,8 @@ function UpdateLeadRequestCompanyToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
55
57
|
return value;
|
|
56
58
|
}
|
|
57
59
|
return {
|
|
58
|
-
...value,
|
|
60
|
+
...Object.fromEntries(Object.entries(value).filter(([key]) => !["addresses", "foundedOn", "industry", "linkedin", "location", "name", "numberOfEmployees", "stock", "twitter", "type", "website"].includes(key))),
|
|
61
|
+
...(value[reaconAdditionalPropertyCollisions] ?? {}),
|
|
59
62
|
'addresses': value['addresses'] === undefined ? undefined : value['addresses'] === null ? null : (value['addresses'].map(CompanyListResultsInnerAddressesInner_js_1.CompanyListResultsInnerAddressesInnerToJSON)),
|
|
60
63
|
'founded_on': value['foundedOn'],
|
|
61
64
|
'industry': value['industry'],
|
|
@@ -18,6 +18,7 @@ exports.UpdateLeadRequestPersonFromJSON = UpdateLeadRequestPersonFromJSON;
|
|
|
18
18
|
exports.UpdateLeadRequestPersonFromJSONTyped = UpdateLeadRequestPersonFromJSONTyped;
|
|
19
19
|
exports.UpdateLeadRequestPersonToJSON = UpdateLeadRequestPersonToJSON;
|
|
20
20
|
exports.UpdateLeadRequestPersonToJSONTyped = UpdateLeadRequestPersonToJSONTyped;
|
|
21
|
+
const reaconAdditionalPropertyCollisions = Symbol('reacon.additionalPropertyCollisions');
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the UpdateLeadRequestPerson interface.
|
|
23
24
|
*/
|
|
@@ -32,7 +33,8 @@ function UpdateLeadRequestPersonFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
33
|
return json;
|
|
33
34
|
}
|
|
34
35
|
return {
|
|
35
|
-
...json,
|
|
36
|
+
...Object.fromEntries(Object.entries(json).filter(([key]) => !["first_name", "last_name", "lead_location", "linkedin", "phone_number", "position", "twitter"].includes(key))),
|
|
37
|
+
...{ [reaconAdditionalPropertyCollisions]: Object.fromEntries(Object.entries(json).filter(([key]) => ["firstName", "lastName", "leadLocation", "phoneNumber"].includes(key))) },
|
|
36
38
|
'firstName': json['first_name'] === undefined ? undefined : json['first_name'] === null ? null : json['first_name'],
|
|
37
39
|
'lastName': json['last_name'] === undefined ? undefined : json['last_name'] === null ? null : json['last_name'],
|
|
38
40
|
'leadLocation': json['lead_location'] === undefined ? undefined : json['lead_location'] === null ? null : json['lead_location'],
|
|
@@ -50,7 +52,8 @@ function UpdateLeadRequestPersonToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
50
52
|
return value;
|
|
51
53
|
}
|
|
52
54
|
return {
|
|
53
|
-
...value,
|
|
55
|
+
...Object.fromEntries(Object.entries(value).filter(([key]) => !["firstName", "lastName", "leadLocation", "linkedin", "phoneNumber", "position", "twitter"].includes(key))),
|
|
56
|
+
...(value[reaconAdditionalPropertyCollisions] ?? {}),
|
|
54
57
|
'first_name': value['firstName'],
|
|
55
58
|
'last_name': value['lastName'],
|
|
56
59
|
'lead_location': value['leadLocation'],
|
package/dist/runtime.d.ts
CHANGED
|
@@ -17,7 +17,6 @@ export interface ConfigurationParameters {
|
|
|
17
17
|
safeRetries?: RetryOptions;
|
|
18
18
|
/** Total network deadline through body reads; defaults to 30000 milliseconds. */
|
|
19
19
|
requestTimeoutMs?: number;
|
|
20
|
-
basePath?: string;
|
|
21
20
|
fetchApi?: FetchAPI;
|
|
22
21
|
middleware?: Middleware[];
|
|
23
22
|
queryParamsStringify?: (params: HTTPQuery) => string;
|
package/dist/runtime.js
CHANGED
|
@@ -31,12 +31,14 @@ exports.BASE_PATH = "https://api.reacon.io".replace(/\/+$/, "");
|
|
|
31
31
|
class Configuration {
|
|
32
32
|
constructor(configuration = {}) {
|
|
33
33
|
this.configuration = configuration;
|
|
34
|
+
if ('basePath' in configuration)
|
|
35
|
+
throw new TypeError('The Reacon API URL is fixed.');
|
|
34
36
|
}
|
|
35
37
|
set config(configuration) {
|
|
36
38
|
this.configuration = configuration;
|
|
37
39
|
}
|
|
38
40
|
get basePath() {
|
|
39
|
-
return
|
|
41
|
+
return exports.BASE_PATH;
|
|
40
42
|
}
|
|
41
43
|
get requestTimeoutMs() { return this.configuration.requestTimeoutMs ?? 30000; }
|
|
42
44
|
get safeRetries() { return this.configuration.safeRetries; }
|