@reacon-io/sdk 0.2.0-beta.1 → 0.4.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 (26) hide show
  1. package/README.md +3 -3
  2. package/dist/esm/models/IntegrationCapabilityResponse.d.ts +1 -1
  3. package/dist/esm/models/IntegrationCapabilityResponseOutput.d.ts +54 -6
  4. package/dist/esm/models/IntegrationCapabilityResponseOutput.js +54 -29
  5. package/dist/esm/models/IntegrationCapabilityResponseOutputNonNull.d.ts +24 -0
  6. package/dist/esm/models/IntegrationCapabilityResponseOutputNonNull.js +58 -0
  7. package/dist/esm/models/MailPostAnalyticsExportResponse200.d.ts +1 -1
  8. package/dist/esm/models/ProductToolRequestInput.d.ts +30 -129
  9. package/dist/esm/models/ProductToolRequestInput.js +80 -120
  10. package/dist/esm/models/index.d.ts +1 -1
  11. package/dist/esm/models/index.js +1 -1
  12. package/dist/models/IntegrationCapabilityResponse.d.ts +1 -1
  13. package/dist/models/IntegrationCapabilityResponseOutput.d.ts +54 -6
  14. package/dist/models/IntegrationCapabilityResponseOutput.js +55 -29
  15. package/dist/models/IntegrationCapabilityResponseOutputNonNull.d.ts +24 -0
  16. package/dist/models/IntegrationCapabilityResponseOutputNonNull.js +64 -0
  17. package/dist/models/MailPostAnalyticsExportResponse200.d.ts +1 -1
  18. package/dist/models/ProductToolRequestInput.d.ts +30 -129
  19. package/dist/models/ProductToolRequestInput.js +80 -120
  20. package/dist/models/index.d.ts +1 -1
  21. package/dist/models/index.js +1 -1
  22. package/package.json +1 -1
  23. package/dist/esm/models/MailPostAnalyticsExportResponse200NextCursorAnyOf.d.ts +0 -34
  24. package/dist/esm/models/MailPostAnalyticsExportResponse200NextCursorAnyOf.js +0 -47
  25. package/dist/models/MailPostAnalyticsExportResponse200NextCursorAnyOf.d.ts +0 -34
  26. package/dist/models/MailPostAnalyticsExportResponse200NextCursorAnyOf.js +0 -54
@@ -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); }
@@ -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';
@@ -283,7 +284,6 @@ export * from './MailPostAnalyticsExportRequest.js';
283
284
  export * from './MailPostAnalyticsExportRequestAfter.js';
284
285
  export * from './MailPostAnalyticsExportResponse200.js';
285
286
  export * from './MailPostAnalyticsExportResponse200NextCursor.js';
286
- export * from './MailPostAnalyticsExportResponse200NextCursorAnyOf.js';
287
287
  export * from './MailPostCadenceCampaignsByCampaignIdStateRequest.js';
288
288
  export * from './MailPostCadenceCampaignsByCampaignIdStateResponse200.js';
289
289
  export * from './MailPostCadenceCampaignsByCampaignIdStateResponse200AnyOf.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';
@@ -285,7 +286,6 @@ export * from './MailPostAnalyticsExportRequest.js';
285
286
  export * from './MailPostAnalyticsExportRequestAfter.js';
286
287
  export * from './MailPostAnalyticsExportResponse200.js';
287
288
  export * from './MailPostAnalyticsExportResponse200NextCursor.js';
288
- export * from './MailPostAnalyticsExportResponse200NextCursorAnyOf.js';
289
289
  export * from './MailPostCadenceCampaignsByCampaignIdStateRequest.js';
290
290
  export * from './MailPostCadenceCampaignsByCampaignIdStateResponse200.js';
291
291
  export * from './MailPostCadenceCampaignsByCampaignIdStateResponse200AnyOf.js';
@@ -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;
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Reacon API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.IntegrationCapabilityResponseOutputNonNullFromJSON = IntegrationCapabilityResponseOutputNonNullFromJSON;
17
+ exports.IntegrationCapabilityResponseOutputNonNullFromJSONTyped = IntegrationCapabilityResponseOutputNonNullFromJSONTyped;
18
+ exports.IntegrationCapabilityResponseOutputNonNullToJSON = IntegrationCapabilityResponseOutputNonNullToJSON;
19
+ exports.IntegrationCapabilityResponseOutputNonNullToJSONTyped = IntegrationCapabilityResponseOutputNonNullToJSONTyped;
20
+ const CapabilityDomainSearch_js_1 = require("./CapabilityDomainSearch.js");
21
+ const CapabilityEmailFound_js_1 = require("./CapabilityEmailFound.js");
22
+ const CapabilityEmailVerified_js_1 = require("./CapabilityEmailVerified.js");
23
+ function IntegrationCapabilityResponseOutputNonNullFromJSON(json) {
24
+ return IntegrationCapabilityResponseOutputNonNullFromJSONTyped(json, false);
25
+ }
26
+ function IntegrationCapabilityResponseOutputNonNullFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
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 {};
43
+ }
44
+ function IntegrationCapabilityResponseOutputNonNullToJSON(json) {
45
+ return IntegrationCapabilityResponseOutputNonNullToJSONTyped(json, false);
46
+ }
47
+ function IntegrationCapabilityResponseOutputNonNullToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
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 {};
64
+ }
@@ -31,7 +31,7 @@ export interface MailPostAnalyticsExportResponse200 {
31
31
  /**
32
32
  *
33
33
  */
34
- nextCursor: MailPostAnalyticsExportResponse200NextCursor;
34
+ nextCursor: MailPostAnalyticsExportResponse200NextCursor | null;
35
35
  /**
36
36
  *
37
37
  */