@reacon-io/sdk 0.1.0-beta.3 → 0.3.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 (54) hide show
  1. package/README.md +4 -4
  2. package/dist/apis/DomainsApi.d.ts +4 -4
  3. package/dist/apis/DomainsApi.js +2 -2
  4. package/dist/esm/apis/DomainsApi.d.ts +4 -4
  5. package/dist/esm/apis/DomainsApi.js +2 -2
  6. package/dist/esm/models/MailExperimentReport.d.ts +1 -1
  7. package/dist/esm/models/MailGetPortfolioResponse200.d.ts +2 -2
  8. package/dist/esm/models/MailGetPortfolioResponse200.js +3 -3
  9. package/dist/esm/models/MailGetPortfolioResponse200Portfolio.d.ts +50 -0
  10. package/dist/esm/models/MailGetPortfolioResponse200Portfolio.js +63 -0
  11. package/dist/esm/models/MailGetTrackingDomainResponse200.d.ts +1 -1
  12. package/dist/esm/models/MailPostAnalyticsExportResponse200.d.ts +1 -1
  13. package/dist/esm/models/MailPostCampaignsByCampaignIdLaunchResponse200.d.ts +2 -2
  14. package/dist/esm/models/MailPostCampaignsByCampaignIdLaunchResponse200.js +3 -3
  15. package/dist/esm/models/MailPostCampaignsByCampaignIdLaunchResponse200AnyOf.d.ts +2 -2
  16. package/dist/esm/models/MailPostCampaignsByCampaignIdLaunchResponse200AnyOf.js +3 -3
  17. package/dist/esm/models/MailPostCampaignsByCampaignIdLaunchResponse200AnyOf1.d.ts +2 -2
  18. package/dist/esm/models/MailPostCampaignsByCampaignIdLaunchResponse200AnyOf1.js +3 -3
  19. package/dist/{models/MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign.d.ts → esm/models/MailPostCampaignsByCampaignIdLaunchResponse200Campaign.d.ts} +8 -8
  20. package/dist/esm/models/{MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign.js → MailPostCampaignsByCampaignIdLaunchResponse200Campaign.js} +8 -8
  21. package/dist/esm/models/MailPostInboxByMessageIdResponse200.d.ts +1 -1
  22. package/dist/esm/models/MailPostPortfolioSuppressionsRequest.d.ts +1 -0
  23. package/dist/esm/models/MailPostPortfolioSuppressionsRequest.js +1 -2
  24. package/dist/esm/models/MailPostSuppressionsRequest.d.ts +1 -0
  25. package/dist/esm/models/MailPostSuppressionsRequest.js +1 -2
  26. package/dist/esm/models/index.d.ts +2 -2
  27. package/dist/esm/models/index.js +2 -2
  28. package/dist/models/MailExperimentReport.d.ts +1 -1
  29. package/dist/models/MailGetPortfolioResponse200.d.ts +2 -2
  30. package/dist/models/MailGetPortfolioResponse200.js +3 -3
  31. package/dist/models/MailGetPortfolioResponse200Portfolio.d.ts +50 -0
  32. package/dist/models/MailGetPortfolioResponse200Portfolio.js +70 -0
  33. package/dist/models/MailGetTrackingDomainResponse200.d.ts +1 -1
  34. package/dist/models/MailPostAnalyticsExportResponse200.d.ts +1 -1
  35. package/dist/models/MailPostCampaignsByCampaignIdLaunchResponse200.d.ts +2 -2
  36. package/dist/models/MailPostCampaignsByCampaignIdLaunchResponse200.js +3 -3
  37. package/dist/models/MailPostCampaignsByCampaignIdLaunchResponse200AnyOf.d.ts +2 -2
  38. package/dist/models/MailPostCampaignsByCampaignIdLaunchResponse200AnyOf.js +3 -3
  39. package/dist/models/MailPostCampaignsByCampaignIdLaunchResponse200AnyOf1.d.ts +2 -2
  40. package/dist/models/MailPostCampaignsByCampaignIdLaunchResponse200AnyOf1.js +3 -3
  41. package/dist/{esm/models/MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign.d.ts → models/MailPostCampaignsByCampaignIdLaunchResponse200Campaign.d.ts} +8 -8
  42. package/dist/models/{MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign.js → MailPostCampaignsByCampaignIdLaunchResponse200Campaign.js} +13 -13
  43. package/dist/models/MailPostInboxByMessageIdResponse200.d.ts +1 -1
  44. package/dist/models/MailPostPortfolioSuppressionsRequest.d.ts +1 -0
  45. package/dist/models/MailPostPortfolioSuppressionsRequest.js +1 -2
  46. package/dist/models/MailPostSuppressionsRequest.d.ts +1 -0
  47. package/dist/models/MailPostSuppressionsRequest.js +1 -2
  48. package/dist/models/index.d.ts +2 -2
  49. package/dist/models/index.js +2 -2
  50. package/package.json +1 -1
  51. package/dist/esm/models/MailPostAnalyticsExportResponse200NextCursorAnyOf.d.ts +0 -34
  52. package/dist/esm/models/MailPostAnalyticsExportResponse200NextCursorAnyOf.js +0 -47
  53. package/dist/models/MailPostAnalyticsExportResponse200NextCursorAnyOf.d.ts +0 -34
  54. package/dist/models/MailPostAnalyticsExportResponse200NextCursorAnyOf.js +0 -54
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @reacon-io/sdk@0.1.0-beta.3
1
+ # @reacon-io/sdk@0.3.0-beta.1
2
2
 
3
3
  A TypeScript SDK client for the api.reacon.io API.
4
4
 
@@ -527,6 +527,7 @@ All URIs are relative to *https://api.reacon.io*
527
527
  - [MailGetPortfolioResponse200](docs/MailGetPortfolioResponse200.md)
528
528
  - [MailGetPortfolioResponse200AnyOf](docs/MailGetPortfolioResponse200AnyOf.md)
529
529
  - [MailGetPortfolioResponse200AnyOf1](docs/MailGetPortfolioResponse200AnyOf1.md)
530
+ - [MailGetPortfolioResponse200Portfolio](docs/MailGetPortfolioResponse200Portfolio.md)
530
531
  - [MailGetQueueResponse200](docs/MailGetQueueResponse200.md)
531
532
  - [MailGetReplyAutomationsResponse200](docs/MailGetReplyAutomationsResponse200.md)
532
533
  - [MailGetSignaturesResponse200](docs/MailGetSignaturesResponse200.md)
@@ -573,7 +574,6 @@ All URIs are relative to *https://api.reacon.io*
573
574
  - [MailPostAnalyticsExportRequestAfter](docs/MailPostAnalyticsExportRequestAfter.md)
574
575
  - [MailPostAnalyticsExportResponse200](docs/MailPostAnalyticsExportResponse200.md)
575
576
  - [MailPostAnalyticsExportResponse200NextCursor](docs/MailPostAnalyticsExportResponse200NextCursor.md)
576
- - [MailPostAnalyticsExportResponse200NextCursorAnyOf](docs/MailPostAnalyticsExportResponse200NextCursorAnyOf.md)
577
577
  - [MailPostCadenceCampaignsByCampaignIdStateRequest](docs/MailPostCadenceCampaignsByCampaignIdStateRequest.md)
578
578
  - [MailPostCadenceCampaignsByCampaignIdStateResponse200](docs/MailPostCadenceCampaignsByCampaignIdStateResponse200.md)
579
579
  - [MailPostCadenceCampaignsByCampaignIdStateResponse200AnyOf](docs/MailPostCadenceCampaignsByCampaignIdStateResponse200AnyOf.md)
@@ -609,7 +609,7 @@ All URIs are relative to *https://api.reacon.io*
609
609
  - [MailPostCampaignsByCampaignIdLaunchResponse200](docs/MailPostCampaignsByCampaignIdLaunchResponse200.md)
610
610
  - [MailPostCampaignsByCampaignIdLaunchResponse200AnyOf](docs/MailPostCampaignsByCampaignIdLaunchResponse200AnyOf.md)
611
611
  - [MailPostCampaignsByCampaignIdLaunchResponse200AnyOf1](docs/MailPostCampaignsByCampaignIdLaunchResponse200AnyOf1.md)
612
- - [MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign](docs/MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign.md)
612
+ - [MailPostCampaignsByCampaignIdLaunchResponse200Campaign](docs/MailPostCampaignsByCampaignIdLaunchResponse200Campaign.md)
613
613
  - [MailPostCampaignsByCampaignIdStateRequest](docs/MailPostCampaignsByCampaignIdStateRequest.md)
614
614
  - [MailPostCampaignsByCampaignIdStateResponse200](docs/MailPostCampaignsByCampaignIdStateResponse200.md)
615
615
  - [MailPostCampaignsRequest](docs/MailPostCampaignsRequest.md)
@@ -930,7 +930,7 @@ and is automatically generated by the
930
930
  [OpenAPI Generator](https://openapi-generator.tech) project:
931
931
 
932
932
  - API version: `0.1.0`
933
- - Package version: `0.1.0-beta.3`
933
+ - Package version: `0.3.0-beta.1`
934
934
  - Generator version: `7.25.0`
935
935
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
936
936
 
@@ -88,7 +88,7 @@ export interface DomainsApiInterface {
88
88
  */
89
89
  getDomainCountsRequestOpts(requestParameters: GetDomainCountsRequest): Promise<runtime.RequestOpts>;
90
90
  /**
91
- * Returns personal, generic and total email counts for the domain. Authenticate with X-API-Key.
91
+ * Returns personal, generic and total known email counts for the domain. Authenticate with X-API-Key. This endpoint reports counts only; it does not reveal email addresses. The recorded example uses a reserved example.invalid domain with zero known emails.
92
92
  * @summary Count known emails for a domain
93
93
  * @param {string} domain
94
94
  * @param {*} [options] Override http request option.
@@ -97,7 +97,7 @@ export interface DomainsApiInterface {
97
97
  */
98
98
  getDomainCountsRaw(requestParameters: GetDomainCountsRequest, initOverrides?: runtime.RequestOptions | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainCounts>>;
99
99
  /**
100
- * Returns personal, generic and total email counts for the domain. Authenticate with X-API-Key.
100
+ * Returns personal, generic and total known email counts for the domain. Authenticate with X-API-Key. This endpoint reports counts only; it does not reveal email addresses. The recorded example uses a reserved example.invalid domain with zero known emails.
101
101
  * Count known emails for a domain
102
102
  */
103
103
  getDomainCounts(requestParameters: GetDomainCountsRequest, initOverrides?: runtime.RequestOptions | runtime.InitOverrideFunction): Promise<DomainCounts>;
@@ -139,12 +139,12 @@ export declare class DomainsApi extends runtime.BaseAPI implements DomainsApiInt
139
139
  */
140
140
  getDomainCountsRequestOpts(requestParameters: GetDomainCountsRequest): Promise<runtime.RequestOpts>;
141
141
  /**
142
- * Returns personal, generic and total email counts for the domain. Authenticate with X-API-Key.
142
+ * Returns personal, generic and total known email counts for the domain. Authenticate with X-API-Key. This endpoint reports counts only; it does not reveal email addresses. The recorded example uses a reserved example.invalid domain with zero known emails.
143
143
  * Count known emails for a domain
144
144
  */
145
145
  getDomainCountsRaw(requestParameters: GetDomainCountsRequest, initOverrides?: runtime.RequestOptions | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainCounts>>;
146
146
  /**
147
- * Returns personal, generic and total email counts for the domain. Authenticate with X-API-Key.
147
+ * Returns personal, generic and total known email counts for the domain. Authenticate with X-API-Key. This endpoint reports counts only; it does not reveal email addresses. The recorded example uses a reserved example.invalid domain with zero known emails.
148
148
  * Count known emails for a domain
149
149
  */
150
150
  getDomainCounts(requestParameters: GetDomainCountsRequest, initOverrides?: runtime.RequestOptions | runtime.InitOverrideFunction): Promise<DomainCounts>;
@@ -120,7 +120,7 @@ class DomainsApi extends runtime.BaseAPI {
120
120
  };
121
121
  }
122
122
  /**
123
- * Returns personal, generic and total email counts for the domain. Authenticate with X-API-Key.
123
+ * Returns personal, generic and total known email counts for the domain. Authenticate with X-API-Key. This endpoint reports counts only; it does not reveal email addresses. The recorded example uses a reserved example.invalid domain with zero known emails.
124
124
  * Count known emails for a domain
125
125
  */
126
126
  async getDomainCountsRaw(requestParameters, initOverrides) {
@@ -129,7 +129,7 @@ class DomainsApi extends runtime.BaseAPI {
129
129
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, DomainCounts_js_1.DomainCountsFromJSON)(jsonValue));
130
130
  }
131
131
  /**
132
- * Returns personal, generic and total email counts for the domain. Authenticate with X-API-Key.
132
+ * Returns personal, generic and total known email counts for the domain. Authenticate with X-API-Key. This endpoint reports counts only; it does not reveal email addresses. The recorded example uses a reserved example.invalid domain with zero known emails.
133
133
  * Count known emails for a domain
134
134
  */
135
135
  async getDomainCounts(requestParameters, initOverrides) {
@@ -88,7 +88,7 @@ export interface DomainsApiInterface {
88
88
  */
89
89
  getDomainCountsRequestOpts(requestParameters: GetDomainCountsRequest): Promise<runtime.RequestOpts>;
90
90
  /**
91
- * Returns personal, generic and total email counts for the domain. Authenticate with X-API-Key.
91
+ * Returns personal, generic and total known email counts for the domain. Authenticate with X-API-Key. This endpoint reports counts only; it does not reveal email addresses. The recorded example uses a reserved example.invalid domain with zero known emails.
92
92
  * @summary Count known emails for a domain
93
93
  * @param {string} domain
94
94
  * @param {*} [options] Override http request option.
@@ -97,7 +97,7 @@ export interface DomainsApiInterface {
97
97
  */
98
98
  getDomainCountsRaw(requestParameters: GetDomainCountsRequest, initOverrides?: runtime.RequestOptions | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainCounts>>;
99
99
  /**
100
- * Returns personal, generic and total email counts for the domain. Authenticate with X-API-Key.
100
+ * Returns personal, generic and total known email counts for the domain. Authenticate with X-API-Key. This endpoint reports counts only; it does not reveal email addresses. The recorded example uses a reserved example.invalid domain with zero known emails.
101
101
  * Count known emails for a domain
102
102
  */
103
103
  getDomainCounts(requestParameters: GetDomainCountsRequest, initOverrides?: runtime.RequestOptions | runtime.InitOverrideFunction): Promise<DomainCounts>;
@@ -139,12 +139,12 @@ export declare class DomainsApi extends runtime.BaseAPI implements DomainsApiInt
139
139
  */
140
140
  getDomainCountsRequestOpts(requestParameters: GetDomainCountsRequest): Promise<runtime.RequestOpts>;
141
141
  /**
142
- * Returns personal, generic and total email counts for the domain. Authenticate with X-API-Key.
142
+ * Returns personal, generic and total known email counts for the domain. Authenticate with X-API-Key. This endpoint reports counts only; it does not reveal email addresses. The recorded example uses a reserved example.invalid domain with zero known emails.
143
143
  * Count known emails for a domain
144
144
  */
145
145
  getDomainCountsRaw(requestParameters: GetDomainCountsRequest, initOverrides?: runtime.RequestOptions | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainCounts>>;
146
146
  /**
147
- * Returns personal, generic and total email counts for the domain. Authenticate with X-API-Key.
147
+ * Returns personal, generic and total known email counts for the domain. Authenticate with X-API-Key. This endpoint reports counts only; it does not reveal email addresses. The recorded example uses a reserved example.invalid domain with zero known emails.
148
148
  * Count known emails for a domain
149
149
  */
150
150
  getDomainCounts(requestParameters: GetDomainCountsRequest, initOverrides?: runtime.RequestOptions | runtime.InitOverrideFunction): Promise<DomainCounts>;
@@ -117,7 +117,7 @@ export class DomainsApi extends runtime.BaseAPI {
117
117
  };
118
118
  }
119
119
  /**
120
- * Returns personal, generic and total email counts for the domain. Authenticate with X-API-Key.
120
+ * Returns personal, generic and total known email counts for the domain. Authenticate with X-API-Key. This endpoint reports counts only; it does not reveal email addresses. The recorded example uses a reserved example.invalid domain with zero known emails.
121
121
  * Count known emails for a domain
122
122
  */
123
123
  async getDomainCountsRaw(requestParameters, initOverrides) {
@@ -126,7 +126,7 @@ export class DomainsApi extends runtime.BaseAPI {
126
126
  return new runtime.JSONApiResponse(response, (jsonValue) => DomainCountsFromJSON(jsonValue));
127
127
  }
128
128
  /**
129
- * Returns personal, generic and total email counts for the domain. Authenticate with X-API-Key.
129
+ * Returns personal, generic and total known email counts for the domain. Authenticate with X-API-Key. This endpoint reports counts only; it does not reveal email addresses. The recorded example uses a reserved example.invalid domain with zero known emails.
130
130
  * Count known emails for a domain
131
131
  */
132
132
  async getDomainCounts(requestParameters, initOverrides) {
@@ -38,7 +38,7 @@ export interface MailExperimentReport {
38
38
  /**
39
39
  *
40
40
  */
41
- decision: MailExperimentReportDecision;
41
+ decision: MailExperimentReportDecision | null;
42
42
  /**
43
43
  *
44
44
  */
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { MailGetPortfolioResponse200Portfolio } from './MailGetPortfolioResponse200Portfolio.js';
12
13
  import type { MailMailPortfolioSuppression } from './MailMailPortfolioSuppression.js';
13
- import type { MailMailPortfolio } from './MailMailPortfolio.js';
14
14
  import type { MailMailPortfolioTeam } from './MailMailPortfolioTeam.js';
15
15
  /**
16
16
  *
@@ -21,7 +21,7 @@ export interface MailGetPortfolioResponse200 {
21
21
  /**
22
22
  *
23
23
  */
24
- portfolio: MailMailPortfolio;
24
+ portfolio: MailGetPortfolioResponse200Portfolio | null;
25
25
  /**
26
26
  *
27
27
  */
@@ -11,8 +11,8 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { MailGetPortfolioResponse200PortfolioFromJSON, MailGetPortfolioResponse200PortfolioToJSON, } from './MailGetPortfolioResponse200Portfolio.js';
14
15
  import { MailMailPortfolioSuppressionFromJSON, MailMailPortfolioSuppressionToJSON, } from './MailMailPortfolioSuppression.js';
15
- import { MailMailPortfolioFromJSON, MailMailPortfolioToJSON, } from './MailMailPortfolio.js';
16
16
  import { MailMailPortfolioTeamFromJSON, MailMailPortfolioTeamToJSON, } from './MailMailPortfolioTeam.js';
17
17
  /**
18
18
  * Check if a given object implements the MailGetPortfolioResponse200 interface.
@@ -34,7 +34,7 @@ export function MailGetPortfolioResponse200FromJSONTyped(json, ignoreDiscriminat
34
34
  return json;
35
35
  }
36
36
  return {
37
- 'portfolio': MailMailPortfolioFromJSON(json['portfolio']),
37
+ 'portfolio': MailGetPortfolioResponse200PortfolioFromJSON(json['portfolio']),
38
38
  'suppressions': (json['suppressions'].map(MailMailPortfolioSuppressionFromJSON)),
39
39
  'teams': (json['teams'].map(MailMailPortfolioTeamFromJSON)),
40
40
  };
@@ -47,7 +47,7 @@ export function MailGetPortfolioResponse200ToJSONTyped(value, ignoreDiscriminato
47
47
  return value;
48
48
  }
49
49
  return {
50
- 'portfolio': MailMailPortfolioToJSON(value['portfolio']),
50
+ 'portfolio': MailGetPortfolioResponse200PortfolioToJSON(value['portfolio']),
51
51
  'suppressions': (value['suppressions'].map(MailMailPortfolioSuppressionToJSON)),
52
52
  'teams': (value['teams'].map(MailMailPortfolioTeamToJSON)),
53
53
  };
@@ -0,0 +1,50 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface MailGetPortfolioResponse200Portfolio
16
+ */
17
+ export interface MailGetPortfolioResponse200Portfolio {
18
+ /**
19
+ *
20
+ */
21
+ createdAt: string;
22
+ /**
23
+ *
24
+ */
25
+ createdByActorId: string;
26
+ /**
27
+ *
28
+ */
29
+ id: string;
30
+ /**
31
+ *
32
+ */
33
+ name: string;
34
+ /**
35
+ *
36
+ */
37
+ ownerTeamId: string;
38
+ /**
39
+ *
40
+ */
41
+ updatedAt: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the MailGetPortfolioResponse200Portfolio interface.
45
+ */
46
+ export declare function instanceOfMailGetPortfolioResponse200Portfolio(value: object): value is MailGetPortfolioResponse200Portfolio;
47
+ export declare function MailGetPortfolioResponse200PortfolioFromJSON(json: any): MailGetPortfolioResponse200Portfolio;
48
+ export declare function MailGetPortfolioResponse200PortfolioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MailGetPortfolioResponse200Portfolio;
49
+ export declare function MailGetPortfolioResponse200PortfolioToJSON(json: any): MailGetPortfolioResponse200Portfolio;
50
+ export declare function MailGetPortfolioResponse200PortfolioToJSONTyped(value?: MailGetPortfolioResponse200Portfolio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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
+ /**
15
+ * Check if a given object implements the MailGetPortfolioResponse200Portfolio interface.
16
+ */
17
+ export function instanceOfMailGetPortfolioResponse200Portfolio(value) {
18
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
19
+ return false;
20
+ if (!('createdByActorId' in value) || value['createdByActorId'] === undefined)
21
+ return false;
22
+ if (!('id' in value) || value['id'] === undefined)
23
+ return false;
24
+ if (!('name' in value) || value['name'] === undefined)
25
+ return false;
26
+ if (!('ownerTeamId' in value) || value['ownerTeamId'] === undefined)
27
+ return false;
28
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function MailGetPortfolioResponse200PortfolioFromJSON(json) {
33
+ return MailGetPortfolioResponse200PortfolioFromJSONTyped(json, false);
34
+ }
35
+ export function MailGetPortfolioResponse200PortfolioFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'createdAt': json['createdAt'],
41
+ 'createdByActorId': json['createdByActorId'],
42
+ 'id': json['id'],
43
+ 'name': json['name'],
44
+ 'ownerTeamId': json['ownerTeamId'],
45
+ 'updatedAt': json['updatedAt'],
46
+ };
47
+ }
48
+ export function MailGetPortfolioResponse200PortfolioToJSON(json) {
49
+ return MailGetPortfolioResponse200PortfolioToJSONTyped(json, false);
50
+ }
51
+ export function MailGetPortfolioResponse200PortfolioToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'createdAt': value['createdAt'],
57
+ 'createdByActorId': value['createdByActorId'],
58
+ 'id': value['id'],
59
+ 'name': value['name'],
60
+ 'ownerTeamId': value['ownerTeamId'],
61
+ 'updatedAt': value['updatedAt'],
62
+ };
63
+ }
@@ -19,7 +19,7 @@ export interface MailGetTrackingDomainResponse200 {
19
19
  /**
20
20
  *
21
21
  */
22
- domain: MailGetTrackingDomainResponse200Domain;
22
+ domain: MailGetTrackingDomainResponse200Domain | null;
23
23
  }
24
24
  /**
25
25
  * Check if a given object implements the MailGetTrackingDomainResponse200 interface.
@@ -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
  */
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign } from './MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign.js';
12
+ import type { MailPostCampaignsByCampaignIdLaunchResponse200Campaign } from './MailPostCampaignsByCampaignIdLaunchResponse200Campaign.js';
13
13
  import type { MailSequenceRunRecord } from './MailSequenceRunRecord.js';
14
14
  import type { MailCampaignDraftRecord } from './MailCampaignDraftRecord.js';
15
15
  /**
@@ -21,7 +21,7 @@ export interface MailPostCampaignsByCampaignIdLaunchResponse200 {
21
21
  /**
22
22
  *
23
23
  */
24
- campaign: MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign;
24
+ campaign: MailPostCampaignsByCampaignIdLaunchResponse200Campaign | null;
25
25
  /**
26
26
  *
27
27
  */
@@ -11,7 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaignFromJSON, MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaignToJSON, } from './MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign.js';
14
+ import { MailPostCampaignsByCampaignIdLaunchResponse200CampaignFromJSON, MailPostCampaignsByCampaignIdLaunchResponse200CampaignToJSON, } from './MailPostCampaignsByCampaignIdLaunchResponse200Campaign.js';
15
15
  import { MailSequenceRunRecordFromJSON, MailSequenceRunRecordToJSON, } from './MailSequenceRunRecord.js';
16
16
  import { MailCampaignDraftRecordFromJSON, MailCampaignDraftRecordToJSON, } from './MailCampaignDraftRecord.js';
17
17
  /**
@@ -34,7 +34,7 @@ export function MailPostCampaignsByCampaignIdLaunchResponse200FromJSONTyped(json
34
34
  return json;
35
35
  }
36
36
  return {
37
- 'campaign': MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaignFromJSON(json['campaign']),
37
+ 'campaign': MailPostCampaignsByCampaignIdLaunchResponse200CampaignFromJSON(json['campaign']),
38
38
  'draft': MailCampaignDraftRecordFromJSON(json['draft']),
39
39
  'sequences': (json['sequences'].map(MailSequenceRunRecordFromJSON)),
40
40
  };
@@ -47,7 +47,7 @@ export function MailPostCampaignsByCampaignIdLaunchResponse200ToJSONTyped(value,
47
47
  return value;
48
48
  }
49
49
  return {
50
- 'campaign': MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaignToJSON(value['campaign']),
50
+ 'campaign': MailPostCampaignsByCampaignIdLaunchResponse200CampaignToJSON(value['campaign']),
51
51
  'draft': MailCampaignDraftRecordToJSON(value['draft']),
52
52
  'sequences': (value['sequences'].map(MailSequenceRunRecordToJSON)),
53
53
  };
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign } from './MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign.js';
12
+ import type { MailPostCampaignsByCampaignIdLaunchResponse200Campaign } from './MailPostCampaignsByCampaignIdLaunchResponse200Campaign.js';
13
13
  import type { MailCampaignDraftRecord } from './MailCampaignDraftRecord.js';
14
14
  /**
15
15
  *
@@ -20,7 +20,7 @@ export interface MailPostCampaignsByCampaignIdLaunchResponse200AnyOf {
20
20
  /**
21
21
  *
22
22
  */
23
- campaign: MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign;
23
+ campaign: MailPostCampaignsByCampaignIdLaunchResponse200Campaign;
24
24
  /**
25
25
  *
26
26
  */
@@ -11,7 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaignFromJSON, MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaignToJSON, } from './MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign.js';
14
+ import { MailPostCampaignsByCampaignIdLaunchResponse200CampaignFromJSON, MailPostCampaignsByCampaignIdLaunchResponse200CampaignToJSON, } from './MailPostCampaignsByCampaignIdLaunchResponse200Campaign.js';
15
15
  import { MailCampaignDraftRecordFromJSON, MailCampaignDraftRecordToJSON, } from './MailCampaignDraftRecord.js';
16
16
  /**
17
17
  * Check if a given object implements the MailPostCampaignsByCampaignIdLaunchResponse200AnyOf interface.
@@ -33,7 +33,7 @@ export function MailPostCampaignsByCampaignIdLaunchResponse200AnyOfFromJSONTyped
33
33
  return json;
34
34
  }
35
35
  return {
36
- 'campaign': MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaignFromJSON(json['campaign']),
36
+ 'campaign': MailPostCampaignsByCampaignIdLaunchResponse200CampaignFromJSON(json['campaign']),
37
37
  'draft': MailCampaignDraftRecordFromJSON(json['draft']),
38
38
  'sequences': json['sequences'],
39
39
  };
@@ -46,7 +46,7 @@ export function MailPostCampaignsByCampaignIdLaunchResponse200AnyOfToJSONTyped(v
46
46
  return value;
47
47
  }
48
48
  return {
49
- 'campaign': MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaignToJSON(value['campaign']),
49
+ 'campaign': MailPostCampaignsByCampaignIdLaunchResponse200CampaignToJSON(value['campaign']),
50
50
  'draft': MailCampaignDraftRecordToJSON(value['draft']),
51
51
  'sequences': value['sequences'],
52
52
  };
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign } from './MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign.js';
12
+ import type { MailPostCampaignsByCampaignIdLaunchResponse200Campaign } from './MailPostCampaignsByCampaignIdLaunchResponse200Campaign.js';
13
13
  import type { MailSequenceRunRecord } from './MailSequenceRunRecord.js';
14
14
  import type { MailCampaignDraftRecord } from './MailCampaignDraftRecord.js';
15
15
  /**
@@ -21,7 +21,7 @@ export interface MailPostCampaignsByCampaignIdLaunchResponse200AnyOf1 {
21
21
  /**
22
22
  *
23
23
  */
24
- campaign: MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign;
24
+ campaign: MailPostCampaignsByCampaignIdLaunchResponse200Campaign;
25
25
  /**
26
26
  *
27
27
  */
@@ -11,7 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaignFromJSON, MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaignToJSON, } from './MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign.js';
14
+ import { MailPostCampaignsByCampaignIdLaunchResponse200CampaignFromJSON, MailPostCampaignsByCampaignIdLaunchResponse200CampaignToJSON, } from './MailPostCampaignsByCampaignIdLaunchResponse200Campaign.js';
15
15
  import { MailSequenceRunRecordFromJSON, MailSequenceRunRecordToJSON, } from './MailSequenceRunRecord.js';
16
16
  import { MailCampaignDraftRecordFromJSON, MailCampaignDraftRecordToJSON, } from './MailCampaignDraftRecord.js';
17
17
  /**
@@ -34,7 +34,7 @@ export function MailPostCampaignsByCampaignIdLaunchResponse200AnyOf1FromJSONType
34
34
  return json;
35
35
  }
36
36
  return {
37
- 'campaign': MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaignFromJSON(json['campaign']),
37
+ 'campaign': MailPostCampaignsByCampaignIdLaunchResponse200CampaignFromJSON(json['campaign']),
38
38
  'draft': MailCampaignDraftRecordFromJSON(json['draft']),
39
39
  'sequences': (json['sequences'].map(MailSequenceRunRecordFromJSON)),
40
40
  };
@@ -47,7 +47,7 @@ export function MailPostCampaignsByCampaignIdLaunchResponse200AnyOf1ToJSONTyped(
47
47
  return value;
48
48
  }
49
49
  return {
50
- 'campaign': MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaignToJSON(value['campaign']),
50
+ 'campaign': MailPostCampaignsByCampaignIdLaunchResponse200CampaignToJSON(value['campaign']),
51
51
  'draft': MailCampaignDraftRecordToJSON(value['draft']),
52
52
  'sequences': (value['sequences'].map(MailSequenceRunRecordToJSON)),
53
53
  };
@@ -13,9 +13,9 @@ import type { MailCampaignProgressMessageCounts } from './MailCampaignProgressMe
13
13
  /**
14
14
  *
15
15
  * @export
16
- * @interface MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign
16
+ * @interface MailPostCampaignsByCampaignIdLaunchResponse200Campaign
17
17
  */
18
- export interface MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign {
18
+ export interface MailPostCampaignsByCampaignIdLaunchResponse200Campaign {
19
19
  /**
20
20
  *
21
21
  */
@@ -58,10 +58,10 @@ export interface MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign {
58
58
  updatedAt: string;
59
59
  }
60
60
  /**
61
- * Check if a given object implements the MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign interface.
61
+ * Check if a given object implements the MailPostCampaignsByCampaignIdLaunchResponse200Campaign interface.
62
62
  */
63
- export declare function instanceOfMailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign(value: object): value is MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign;
64
- export declare function MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaignFromJSON(json: any): MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign;
65
- export declare function MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaignFromJSONTyped(json: any, ignoreDiscriminator: boolean): MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign;
66
- export declare function MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaignToJSON(json: any): MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign;
67
- export declare function MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaignToJSONTyped(value?: MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign | null, ignoreDiscriminator?: boolean): any;
63
+ export declare function instanceOfMailPostCampaignsByCampaignIdLaunchResponse200Campaign(value: object): value is MailPostCampaignsByCampaignIdLaunchResponse200Campaign;
64
+ export declare function MailPostCampaignsByCampaignIdLaunchResponse200CampaignFromJSON(json: any): MailPostCampaignsByCampaignIdLaunchResponse200Campaign;
65
+ export declare function MailPostCampaignsByCampaignIdLaunchResponse200CampaignFromJSONTyped(json: any, ignoreDiscriminator: boolean): MailPostCampaignsByCampaignIdLaunchResponse200Campaign;
66
+ export declare function MailPostCampaignsByCampaignIdLaunchResponse200CampaignToJSON(json: any): MailPostCampaignsByCampaignIdLaunchResponse200Campaign;
67
+ export declare function MailPostCampaignsByCampaignIdLaunchResponse200CampaignToJSONTyped(value?: MailPostCampaignsByCampaignIdLaunchResponse200Campaign | null, ignoreDiscriminator?: boolean): any;
@@ -13,9 +13,9 @@
13
13
  */
14
14
  import { MailCampaignProgressMessageCountsFromJSON, MailCampaignProgressMessageCountsToJSON, } from './MailCampaignProgressMessageCounts.js';
15
15
  /**
16
- * Check if a given object implements the MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign interface.
16
+ * Check if a given object implements the MailPostCampaignsByCampaignIdLaunchResponse200Campaign interface.
17
17
  */
18
- export function instanceOfMailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaign(value) {
18
+ export function instanceOfMailPostCampaignsByCampaignIdLaunchResponse200Campaign(value) {
19
19
  if (!('createdAt' in value) || value['createdAt'] === undefined)
20
20
  return false;
21
21
  if (!('id' in value) || value['id'] === undefined)
@@ -38,10 +38,10 @@ export function instanceOfMailPostCampaignsByCampaignIdLaunchResponse200AnyOfCam
38
38
  return false;
39
39
  return true;
40
40
  }
41
- export function MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaignFromJSON(json) {
42
- return MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaignFromJSONTyped(json, false);
41
+ export function MailPostCampaignsByCampaignIdLaunchResponse200CampaignFromJSON(json) {
42
+ return MailPostCampaignsByCampaignIdLaunchResponse200CampaignFromJSONTyped(json, false);
43
43
  }
44
- export function MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaignFromJSONTyped(json, ignoreDiscriminator) {
44
+ export function MailPostCampaignsByCampaignIdLaunchResponse200CampaignFromJSONTyped(json, ignoreDiscriminator) {
45
45
  if (json == null) {
46
46
  return json;
47
47
  }
@@ -58,10 +58,10 @@ export function MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaignFromJ
58
58
  'updatedAt': json['updatedAt'],
59
59
  };
60
60
  }
61
- export function MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaignToJSON(json) {
62
- return MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaignToJSONTyped(json, false);
61
+ export function MailPostCampaignsByCampaignIdLaunchResponse200CampaignToJSON(json) {
62
+ return MailPostCampaignsByCampaignIdLaunchResponse200CampaignToJSONTyped(json, false);
63
63
  }
64
- export function MailPostCampaignsByCampaignIdLaunchResponse200AnyOfCampaignToJSONTyped(value, ignoreDiscriminator = false) {
64
+ export function MailPostCampaignsByCampaignIdLaunchResponse200CampaignToJSONTyped(value, ignoreDiscriminator = false) {
65
65
  if (value == null) {
66
66
  return value;
67
67
  }
@@ -19,7 +19,7 @@ export interface MailPostInboxByMessageIdResponse200 {
19
19
  /**
20
20
  *
21
21
  */
22
- message: MailPostInboxByMessageIdResponse200Message;
22
+ message: MailPostInboxByMessageIdResponse200Message | null;
23
23
  }
24
24
  /**
25
25
  * Check if a given object implements the MailPostInboxByMessageIdResponse200 interface.
@@ -32,6 +32,7 @@ export interface MailPostPortfolioSuppressionsRequest {
32
32
  * @export
33
33
  */
34
34
  export declare const MailPostPortfolioSuppressionsRequestScopeEnum: {
35
+ readonly Email: "email";
35
36
  readonly Domain: "domain";
36
37
  };
37
38
  export type MailPostPortfolioSuppressionsRequestScopeEnum = typeof MailPostPortfolioSuppressionsRequestScopeEnum[keyof typeof MailPostPortfolioSuppressionsRequestScopeEnum];
@@ -15,6 +15,7 @@
15
15
  * @export
16
16
  */
17
17
  export const MailPostPortfolioSuppressionsRequestScopeEnum = {
18
+ Email: 'email',
18
19
  Domain: 'domain',
19
20
  };
20
21
  /**
@@ -23,8 +24,6 @@ export const MailPostPortfolioSuppressionsRequestScopeEnum = {
23
24
  export function instanceOfMailPostPortfolioSuppressionsRequest(value) {
24
25
  if (!('scope' in value) || value['scope'] === undefined)
25
26
  return false;
26
- if (value['scope'] !== 'domain')
27
- return false;
28
27
  if (!('value' in value) || value['value'] === undefined)
29
28
  return false;
30
29
  return true;
@@ -28,6 +28,7 @@ export interface MailPostSuppressionsRequest {
28
28
  * @export
29
29
  */
30
30
  export declare const MailPostSuppressionsRequestScopeEnum: {
31
+ readonly Email: "email";
31
32
  readonly Domain: "domain";
32
33
  };
33
34
  export type MailPostSuppressionsRequestScopeEnum = typeof MailPostSuppressionsRequestScopeEnum[keyof typeof MailPostSuppressionsRequestScopeEnum];
@@ -15,6 +15,7 @@
15
15
  * @export
16
16
  */
17
17
  export const MailPostSuppressionsRequestScopeEnum = {
18
+ Email: 'email',
18
19
  Domain: 'domain',
19
20
  };
20
21
  /**
@@ -23,8 +24,6 @@ export const MailPostSuppressionsRequestScopeEnum = {
23
24
  export function instanceOfMailPostSuppressionsRequest(value) {
24
25
  if (!('scope' in value) || value['scope'] === undefined)
25
26
  return false;
26
- if (value['scope'] !== 'domain')
27
- return false;
28
27
  if (!('value' in value) || value['value'] === undefined)
29
28
  return false;
30
29
  return true;