@randock/nameshift-api-client 0.0.247 → 0.0.249

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 CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.247
1
+ ## @randock/nameshift-api-client@0.0.249
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @randock/nameshift-api-client@0.0.247 --save
39
+ npm install @randock/nameshift-api-client@0.0.249 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
- bf22e24f1d6dc345c6b0fc8f97632d255bb3ac41a452c03c03b2e0e2a8705aa1b78e9139e2e740557dde2acdf28bba2c
47
+ 9aed13d086230a50398321e22d75eae6267c51a24f5c64707ae84ca17a3b18f5ed45ff5487bb4cdd3cca0a6ce4e77e61
@@ -11,9 +11,6 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import type { AccountOnboardingSessionDto, AccountSettingsDto, AccountSettingsInput, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, SetPayoutProviderInput, UpdateAccountBillingInformationInput } from '../models/index';
14
- export interface AccountsApiDeleteAccountRequest {
15
- accountId: string;
16
- }
17
14
  export interface AccountsApiGetAccountPaymentProviderSessionRequest {
18
15
  accountId: string;
19
16
  }
@@ -44,11 +41,11 @@ export declare class AccountsApi extends runtime.BaseAPI {
44
41
  /**
45
42
  *
46
43
  */
47
- deleteAccountRaw(requestParameters: AccountsApiDeleteAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
44
+ deleteMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
48
45
  /**
49
46
  *
50
47
  */
51
- deleteAccount(requestParameters: AccountsApiDeleteAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
48
+ deleteMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
52
49
  /**
53
50
  *
54
51
  */
@@ -78,15 +78,12 @@ var AccountsApi = /** @class */ (function (_super) {
78
78
  /**
79
79
  *
80
80
  */
81
- AccountsApi.prototype.deleteAccountRaw = function (requestParameters, initOverrides) {
81
+ AccountsApi.prototype.deleteMeRaw = function (initOverrides) {
82
82
  return __awaiter(this, void 0, void 0, function () {
83
83
  var queryParameters, headerParameters, token, tokenString, response;
84
84
  return __generator(this, function (_a) {
85
85
  switch (_a.label) {
86
86
  case 0:
87
- if (requestParameters['accountId'] == null) {
88
- throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling deleteAccount().');
89
- }
90
87
  queryParameters = {};
91
88
  headerParameters = {};
92
89
  if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
@@ -99,7 +96,7 @@ var AccountsApi = /** @class */ (function (_super) {
99
96
  }
100
97
  _a.label = 2;
101
98
  case 2: return [4 /*yield*/, this.request({
102
- path: "/private/accounts/{accountId}".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
99
+ path: "/private/accounts/me",
103
100
  method: 'DELETE',
104
101
  headers: headerParameters,
105
102
  query: queryParameters,
@@ -114,11 +111,11 @@ var AccountsApi = /** @class */ (function (_super) {
114
111
  /**
115
112
  *
116
113
  */
117
- AccountsApi.prototype.deleteAccount = function (requestParameters, initOverrides) {
114
+ AccountsApi.prototype.deleteMe = function (initOverrides) {
118
115
  return __awaiter(this, void 0, void 0, function () {
119
116
  return __generator(this, function (_a) {
120
117
  switch (_a.label) {
121
- case 0: return [4 /*yield*/, this.deleteAccountRaw(requestParameters, initOverrides)];
118
+ case 0: return [4 /*yield*/, this.deleteMeRaw(initOverrides)];
122
119
  case 1:
123
120
  _a.sent();
124
121
  return [2 /*return*/];
@@ -148,6 +148,14 @@ export declare class BuyersApi extends runtime.BaseAPI {
148
148
  *
149
149
  */
150
150
  deleteBuyerLeads(requestParameters: BuyersApiDeleteBuyerLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
151
+ /**
152
+ *
153
+ */
154
+ deleteMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
155
+ /**
156
+ *
157
+ */
158
+ deleteMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
151
159
  /**
152
160
  *
153
161
  */
@@ -447,6 +447,54 @@ var BuyersApi = /** @class */ (function (_super) {
447
447
  });
448
448
  });
449
449
  };
450
+ /**
451
+ *
452
+ */
453
+ BuyersApi.prototype.deleteMeRaw = function (initOverrides) {
454
+ return __awaiter(this, void 0, void 0, function () {
455
+ var queryParameters, headerParameters, token, tokenString, response;
456
+ return __generator(this, function (_a) {
457
+ switch (_a.label) {
458
+ case 0:
459
+ queryParameters = {};
460
+ headerParameters = {};
461
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
462
+ token = this.configuration.accessToken;
463
+ return [4 /*yield*/, token("bearer", [])];
464
+ case 1:
465
+ tokenString = _a.sent();
466
+ if (tokenString) {
467
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
468
+ }
469
+ _a.label = 2;
470
+ case 2: return [4 /*yield*/, this.request({
471
+ path: "/buyers/private/me",
472
+ method: 'DELETE',
473
+ headers: headerParameters,
474
+ query: queryParameters,
475
+ }, initOverrides)];
476
+ case 3:
477
+ response = _a.sent();
478
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
479
+ }
480
+ });
481
+ });
482
+ };
483
+ /**
484
+ *
485
+ */
486
+ BuyersApi.prototype.deleteMe = function (initOverrides) {
487
+ return __awaiter(this, void 0, void 0, function () {
488
+ return __generator(this, function (_a) {
489
+ switch (_a.label) {
490
+ case 0: return [4 /*yield*/, this.deleteMeRaw(initOverrides)];
491
+ case 1:
492
+ _a.sent();
493
+ return [2 /*return*/];
494
+ }
495
+ });
496
+ });
497
+ };
450
498
  /**
451
499
  *
452
500
  */
@@ -54,6 +54,12 @@ export interface AccountSettingsInput {
54
54
  * @memberof AccountSettingsInput
55
55
  */
56
56
  description?: string | null;
57
+ /**
58
+ *
59
+ * @type {boolean}
60
+ * @memberof AccountSettingsInput
61
+ */
62
+ allowThirdPartySalesDataSharing?: boolean;
57
63
  }
58
64
  /**
59
65
  * Check if a given object implements the AccountSettingsInput interface.
@@ -41,6 +41,7 @@ function AccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
41
41
  'landingPage': json['landingPage'] == null ? undefined : (0, LandingPageInput_1.LandingPageInputFromJSON)(json['landingPage']),
42
42
  'leaseToOwn': json['leaseToOwn'] == null ? undefined : (0, LeaseToOwnConfigurationInput_1.LeaseToOwnConfigurationInputFromJSON)(json['leaseToOwn']),
43
43
  'description': json['description'] == null ? undefined : json['description'],
44
+ 'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'] == null ? undefined : json['allowThirdPartySalesDataSharing'],
44
45
  };
45
46
  }
46
47
  function AccountSettingsInputToJSON(json) {
@@ -58,5 +59,6 @@ function AccountSettingsInputToJSONTyped(value, ignoreDiscriminator) {
58
59
  'landingPage': (0, LandingPageInput_1.LandingPageInputToJSON)(value['landingPage']),
59
60
  'leaseToOwn': (0, LeaseToOwnConfigurationInput_1.LeaseToOwnConfigurationInputToJSON)(value['leaseToOwn']),
60
61
  'description': value['description'],
62
+ 'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
61
63
  };
62
64
  }
@@ -122,6 +122,12 @@ export interface DomainDto {
122
122
  * @memberof DomainDto
123
123
  */
124
124
  pageviews: number;
125
+ /**
126
+ * Whether the third party sales data sharing is enabled.
127
+ * @type {boolean}
128
+ * @memberof DomainDto
129
+ */
130
+ allowThirdPartySalesDataSharing: boolean | null;
125
131
  }
126
132
  /**
127
133
  * Check if a given object implements the DomainDto interface.
@@ -60,6 +60,8 @@ function instanceOfDomainDto(value) {
60
60
  return false;
61
61
  if (!('pageviews' in value) || value['pageviews'] === undefined)
62
62
  return false;
63
+ if (!('allowThirdPartySalesDataSharing' in value) || value['allowThirdPartySalesDataSharing'] === undefined)
64
+ return false;
63
65
  return true;
64
66
  }
65
67
  function DomainDtoFromJSON(json) {
@@ -87,6 +89,7 @@ function DomainDtoFromJSONTyped(json, ignoreDiscriminator) {
87
89
  'createdAt': (new Date(json['createdAt'])),
88
90
  'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
89
91
  'pageviews': json['pageviews'],
92
+ 'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
90
93
  };
91
94
  }
92
95
  function DomainDtoToJSON(json) {
@@ -115,5 +118,6 @@ function DomainDtoToJSONTyped(value, ignoreDiscriminator) {
115
118
  'createdAt': ((value['createdAt']).toISOString()),
116
119
  'deletedAt': (value['deletedAt'] == null ? null : value['deletedAt'].toISOString()),
117
120
  'pageviews': value['pageviews'],
121
+ 'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
118
122
  };
119
123
  }
@@ -123,6 +123,12 @@ export interface IntersectionDomainDtoWithAccountDto {
123
123
  * @memberof IntersectionDomainDtoWithAccountDto
124
124
  */
125
125
  pageviews: number;
126
+ /**
127
+ * Whether the third party sales data sharing is enabled.
128
+ * @type {boolean}
129
+ * @memberof IntersectionDomainDtoWithAccountDto
130
+ */
131
+ allowThirdPartySalesDataSharing: boolean | null;
126
132
  /**
127
133
  *
128
134
  * @type {AccountDto}
@@ -61,6 +61,8 @@ function instanceOfIntersectionDomainDtoWithAccountDto(value) {
61
61
  return false;
62
62
  if (!('pageviews' in value) || value['pageviews'] === undefined)
63
63
  return false;
64
+ if (!('allowThirdPartySalesDataSharing' in value) || value['allowThirdPartySalesDataSharing'] === undefined)
65
+ return false;
64
66
  if (!('account' in value) || value['account'] === undefined)
65
67
  return false;
66
68
  return true;
@@ -90,6 +92,7 @@ function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json, ignoreDiscrimina
90
92
  'createdAt': (new Date(json['createdAt'])),
91
93
  'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
92
94
  'pageviews': json['pageviews'],
95
+ 'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
93
96
  'account': (0, AccountDto_1.AccountDtoFromJSON)(json['account']),
94
97
  };
95
98
  }
@@ -119,6 +122,7 @@ function IntersectionDomainDtoWithAccountDtoToJSONTyped(value, ignoreDiscriminat
119
122
  'createdAt': ((value['createdAt']).toISOString()),
120
123
  'deletedAt': (value['deletedAt'] == null ? null : value['deletedAt'].toISOString()),
121
124
  'pageviews': value['pageviews'],
125
+ 'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
122
126
  'account': (0, AccountDto_1.AccountDtoToJSON)(value['account']),
123
127
  };
124
128
  }
@@ -123,6 +123,12 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
123
123
  * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
124
124
  */
125
125
  pageviews: number;
126
+ /**
127
+ * Whether the third party sales data sharing is enabled.
128
+ * @type {boolean}
129
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
130
+ */
131
+ allowThirdPartySalesDataSharing: boolean | null;
126
132
  /**
127
133
  *
128
134
  * @type {AccountDto}
@@ -61,6 +61,8 @@ function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(value) {
61
61
  return false;
62
62
  if (!('pageviews' in value) || value['pageviews'] === undefined)
63
63
  return false;
64
+ if (!('allowThirdPartySalesDataSharing' in value) || value['allowThirdPartySalesDataSharing'] === undefined)
65
+ return false;
64
66
  if (!('hijacker' in value) || value['hijacker'] === undefined)
65
67
  return false;
66
68
  if (!('account' in value) || value['account'] === undefined)
@@ -92,6 +94,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(json, i
92
94
  'createdAt': (new Date(json['createdAt'])),
93
95
  'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
94
96
  'pageviews': json['pageviews'],
97
+ 'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
95
98
  'hijacker': (0, AccountDto_1.AccountDtoFromJSON)(json['hijacker']),
96
99
  'account': (0, AccountDto_1.AccountDtoFromJSON)(json['account']),
97
100
  };
@@ -122,6 +125,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSONTyped(value, ig
122
125
  'createdAt': ((value['createdAt']).toISOString()),
123
126
  'deletedAt': (value['deletedAt'] == null ? null : value['deletedAt'].toISOString()),
124
127
  'pageviews': value['pageviews'],
128
+ 'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
125
129
  'hijacker': (0, AccountDto_1.AccountDtoToJSON)(value['hijacker']),
126
130
  'account': (0, AccountDto_1.AccountDtoToJSON)(value['account']),
127
131
  };
@@ -55,6 +55,12 @@ export interface UpdateDomainInput {
55
55
  * @memberof UpdateDomainInput
56
56
  */
57
57
  landingPage?: LandingPageInput;
58
+ /**
59
+ *
60
+ * @type {boolean}
61
+ * @memberof UpdateDomainInput
62
+ */
63
+ allowThirdPartySalesDataSharing?: boolean | null;
58
64
  }
59
65
  /**
60
66
  * Check if a given object implements the UpdateDomainInput interface.
@@ -42,6 +42,7 @@ function UpdateDomainInputFromJSONTyped(json, ignoreDiscriminator) {
42
42
  'leaseToOwn': json['leaseToOwn'] == null ? undefined : (0, LeaseToOwnConfigurationInput_1.LeaseToOwnConfigurationInputFromJSON)(json['leaseToOwn']),
43
43
  'rent': json['rent'] == null ? undefined : (0, RentConfigurationInput_1.RentConfigurationInputFromJSON)(json['rent']),
44
44
  'landingPage': json['landingPage'] == null ? undefined : (0, LandingPageInput_1.LandingPageInputFromJSON)(json['landingPage']),
45
+ 'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'] == null ? undefined : json['allowThirdPartySalesDataSharing'],
45
46
  };
46
47
  }
47
48
  function UpdateDomainInputToJSON(json) {
@@ -59,5 +60,6 @@ function UpdateDomainInputToJSONTyped(value, ignoreDiscriminator) {
59
60
  'leaseToOwn': (0, LeaseToOwnConfigurationInput_1.LeaseToOwnConfigurationInputToJSON)(value['leaseToOwn']),
60
61
  'rent': (0, RentConfigurationInput_1.RentConfigurationInputToJSON)(value['rent']),
61
62
  'landingPage': (0, LandingPageInput_1.LandingPageInputToJSON)(value['landingPage']),
63
+ 'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
62
64
  };
63
65
  }
@@ -72,6 +72,12 @@ export interface WithSettingsInner {
72
72
  * @memberof WithSettingsInner
73
73
  */
74
74
  rent: AccountSettingsRentConfigurationDto;
75
+ /**
76
+ *
77
+ * @type {boolean}
78
+ * @memberof WithSettingsInner
79
+ */
80
+ allowThirdPartySalesDataSharing: boolean;
75
81
  }
76
82
  /**
77
83
  * Check if a given object implements the WithSettingsInner interface.
@@ -43,6 +43,8 @@ function instanceOfWithSettingsInner(value) {
43
43
  return false;
44
44
  if (!('rent' in value) || value['rent'] === undefined)
45
45
  return false;
46
+ if (!('allowThirdPartySalesDataSharing' in value) || value['allowThirdPartySalesDataSharing'] === undefined)
47
+ return false;
46
48
  return true;
47
49
  }
48
50
  function WithSettingsInnerFromJSON(json) {
@@ -62,6 +64,7 @@ function WithSettingsInnerFromJSONTyped(json, ignoreDiscriminator) {
62
64
  'sidnIdcode': json['sidnIdcode'],
63
65
  'leaseToOwn': (0, AccountSettingsLeaseToOwnConfigurationDto_1.AccountSettingsLeaseToOwnConfigurationDtoFromJSON)(json['leaseToOwn']),
64
66
  'rent': (0, AccountSettingsRentConfigurationDto_1.AccountSettingsRentConfigurationDtoFromJSON)(json['rent']),
67
+ 'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
65
68
  };
66
69
  }
67
70
  function WithSettingsInnerToJSON(json) {
@@ -82,5 +85,6 @@ function WithSettingsInnerToJSONTyped(value, ignoreDiscriminator) {
82
85
  'sidnIdcode': value['sidnIdcode'],
83
86
  'leaseToOwn': (0, AccountSettingsLeaseToOwnConfigurationDto_1.AccountSettingsLeaseToOwnConfigurationDtoToJSON)(value['leaseToOwn']),
84
87
  'rent': (0, AccountSettingsRentConfigurationDto_1.AccountSettingsRentConfigurationDtoToJSON)(value['rent']),
88
+ 'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
85
89
  };
86
90
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.247",
3
+ "version": "0.0.249",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -49,10 +49,6 @@ import {
49
49
  ValidationExceptionToJSON,
50
50
  } from '../models/index';
51
51
 
52
- export interface AccountsApiDeleteAccountRequest {
53
- accountId: string;
54
- }
55
-
56
52
  export interface AccountsApiGetAccountPaymentProviderSessionRequest {
57
53
  accountId: string;
58
54
  }
@@ -90,14 +86,7 @@ export class AccountsApi extends runtime.BaseAPI {
90
86
  /**
91
87
  *
92
88
  */
93
- async deleteAccountRaw(requestParameters: AccountsApiDeleteAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
94
- if (requestParameters['accountId'] == null) {
95
- throw new runtime.RequiredError(
96
- 'accountId',
97
- 'Required parameter "accountId" was null or undefined when calling deleteAccount().'
98
- );
99
- }
100
-
89
+ async deleteMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
101
90
  const queryParameters: any = {};
102
91
 
103
92
  const headerParameters: runtime.HTTPHeaders = {};
@@ -111,7 +100,7 @@ export class AccountsApi extends runtime.BaseAPI {
111
100
  }
112
101
  }
113
102
  const response = await this.request({
114
- path: `/private/accounts/{accountId}`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
103
+ path: `/private/accounts/me`,
115
104
  method: 'DELETE',
116
105
  headers: headerParameters,
117
106
  query: queryParameters,
@@ -123,8 +112,8 @@ export class AccountsApi extends runtime.BaseAPI {
123
112
  /**
124
113
  *
125
114
  */
126
- async deleteAccount(requestParameters: AccountsApiDeleteAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
127
- await this.deleteAccountRaw(requestParameters, initOverrides);
115
+ async deleteMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
116
+ await this.deleteMeRaw(initOverrides);
128
117
  }
129
118
 
130
119
  /**
@@ -485,6 +485,39 @@ export class BuyersApi extends runtime.BaseAPI {
485
485
  await this.deleteBuyerLeadsRaw(requestParameters, initOverrides);
486
486
  }
487
487
 
488
+ /**
489
+ *
490
+ */
491
+ async deleteMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
492
+ const queryParameters: any = {};
493
+
494
+ const headerParameters: runtime.HTTPHeaders = {};
495
+
496
+ if (this.configuration && this.configuration.accessToken) {
497
+ const token = this.configuration.accessToken;
498
+ const tokenString = await token("bearer", []);
499
+
500
+ if (tokenString) {
501
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
502
+ }
503
+ }
504
+ const response = await this.request({
505
+ path: `/buyers/private/me`,
506
+ method: 'DELETE',
507
+ headers: headerParameters,
508
+ query: queryParameters,
509
+ }, initOverrides);
510
+
511
+ return new runtime.VoidApiResponse(response);
512
+ }
513
+
514
+ /**
515
+ *
516
+ */
517
+ async deleteMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
518
+ await this.deleteMeRaw(initOverrides);
519
+ }
520
+
488
521
  /**
489
522
  *
490
523
  */
@@ -77,6 +77,12 @@ export interface AccountSettingsInput {
77
77
  * @memberof AccountSettingsInput
78
78
  */
79
79
  description?: string | null;
80
+ /**
81
+ *
82
+ * @type {boolean}
83
+ * @memberof AccountSettingsInput
84
+ */
85
+ allowThirdPartySalesDataSharing?: boolean;
80
86
  }
81
87
 
82
88
  /**
@@ -102,6 +108,7 @@ export function AccountSettingsInputFromJSONTyped(json: any, ignoreDiscriminator
102
108
  'landingPage': json['landingPage'] == null ? undefined : LandingPageInputFromJSON(json['landingPage']),
103
109
  'leaseToOwn': json['leaseToOwn'] == null ? undefined : LeaseToOwnConfigurationInputFromJSON(json['leaseToOwn']),
104
110
  'description': json['description'] == null ? undefined : json['description'],
111
+ 'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'] == null ? undefined : json['allowThirdPartySalesDataSharing'],
105
112
  };
106
113
  }
107
114
 
@@ -122,6 +129,7 @@ export function AccountSettingsInputToJSONTyped(value?: AccountSettingsInput | n
122
129
  'landingPage': LandingPageInputToJSON(value['landingPage']),
123
130
  'leaseToOwn': LeaseToOwnConfigurationInputToJSON(value['leaseToOwn']),
124
131
  'description': value['description'],
132
+ 'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
125
133
  };
126
134
  }
127
135
 
@@ -151,6 +151,12 @@ export interface DomainDto {
151
151
  * @memberof DomainDto
152
152
  */
153
153
  pageviews: number;
154
+ /**
155
+ * Whether the third party sales data sharing is enabled.
156
+ * @type {boolean}
157
+ * @memberof DomainDto
158
+ */
159
+ allowThirdPartySalesDataSharing: boolean | null;
154
160
  }
155
161
 
156
162
  /**
@@ -174,6 +180,7 @@ export function instanceOfDomainDto(value: object): value is DomainDto {
174
180
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
175
181
  if (!('deletedAt' in value) || value['deletedAt'] === undefined) return false;
176
182
  if (!('pageviews' in value) || value['pageviews'] === undefined) return false;
183
+ if (!('allowThirdPartySalesDataSharing' in value) || value['allowThirdPartySalesDataSharing'] === undefined) return false;
177
184
  return true;
178
185
  }
179
186
 
@@ -204,6 +211,7 @@ export function DomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
204
211
  'createdAt': (new Date(json['createdAt'])),
205
212
  'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
206
213
  'pageviews': json['pageviews'],
214
+ 'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
207
215
  };
208
216
  }
209
217
 
@@ -235,6 +243,7 @@ export function DomainDtoToJSONTyped(value?: DomainDto | null, ignoreDiscriminat
235
243
  'createdAt': ((value['createdAt']).toISOString()),
236
244
  'deletedAt': (value['deletedAt'] == null ? null : (value['deletedAt'] as any).toISOString()),
237
245
  'pageviews': value['pageviews'],
246
+ 'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
238
247
  };
239
248
  }
240
249
 
@@ -158,6 +158,12 @@ export interface IntersectionDomainDtoWithAccountDto {
158
158
  * @memberof IntersectionDomainDtoWithAccountDto
159
159
  */
160
160
  pageviews: number;
161
+ /**
162
+ * Whether the third party sales data sharing is enabled.
163
+ * @type {boolean}
164
+ * @memberof IntersectionDomainDtoWithAccountDto
165
+ */
166
+ allowThirdPartySalesDataSharing: boolean | null;
161
167
  /**
162
168
  *
163
169
  * @type {AccountDto}
@@ -187,6 +193,7 @@ export function instanceOfIntersectionDomainDtoWithAccountDto(value: object): va
187
193
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
188
194
  if (!('deletedAt' in value) || value['deletedAt'] === undefined) return false;
189
195
  if (!('pageviews' in value) || value['pageviews'] === undefined) return false;
196
+ if (!('allowThirdPartySalesDataSharing' in value) || value['allowThirdPartySalesDataSharing'] === undefined) return false;
190
197
  if (!('account' in value) || value['account'] === undefined) return false;
191
198
  return true;
192
199
  }
@@ -218,6 +225,7 @@ export function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json: any, igno
218
225
  'createdAt': (new Date(json['createdAt'])),
219
226
  'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
220
227
  'pageviews': json['pageviews'],
228
+ 'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
221
229
  'account': AccountDtoFromJSON(json['account']),
222
230
  };
223
231
  }
@@ -250,6 +258,7 @@ export function IntersectionDomainDtoWithAccountDtoToJSONTyped(value?: Intersect
250
258
  'createdAt': ((value['createdAt']).toISOString()),
251
259
  'deletedAt': (value['deletedAt'] == null ? null : (value['deletedAt'] as any).toISOString()),
252
260
  'pageviews': value['pageviews'],
261
+ 'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
253
262
  'account': AccountDtoToJSON(value['account']),
254
263
  };
255
264
  }
@@ -158,6 +158,12 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
158
158
  * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
159
159
  */
160
160
  pageviews: number;
161
+ /**
162
+ * Whether the third party sales data sharing is enabled.
163
+ * @type {boolean}
164
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
165
+ */
166
+ allowThirdPartySalesDataSharing: boolean | null;
161
167
  /**
162
168
  *
163
169
  * @type {AccountDto}
@@ -193,6 +199,7 @@ export function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(val
193
199
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
194
200
  if (!('deletedAt' in value) || value['deletedAt'] === undefined) return false;
195
201
  if (!('pageviews' in value) || value['pageviews'] === undefined) return false;
202
+ if (!('allowThirdPartySalesDataSharing' in value) || value['allowThirdPartySalesDataSharing'] === undefined) return false;
196
203
  if (!('hijacker' in value) || value['hijacker'] === undefined) return false;
197
204
  if (!('account' in value) || value['account'] === undefined) return false;
198
205
  return true;
@@ -225,6 +232,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(
225
232
  'createdAt': (new Date(json['createdAt'])),
226
233
  'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
227
234
  'pageviews': json['pageviews'],
235
+ 'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
228
236
  'hijacker': AccountDtoFromJSON(json['hijacker']),
229
237
  'account': AccountDtoFromJSON(json['account']),
230
238
  };
@@ -258,6 +266,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSONTyped(va
258
266
  'createdAt': ((value['createdAt']).toISOString()),
259
267
  'deletedAt': (value['deletedAt'] == null ? null : (value['deletedAt'] as any).toISOString()),
260
268
  'pageviews': value['pageviews'],
269
+ 'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
261
270
  'hijacker': AccountDtoToJSON(value['hijacker']),
262
271
  'account': AccountDtoToJSON(value['account']),
263
272
  };
@@ -84,6 +84,12 @@ export interface UpdateDomainInput {
84
84
  * @memberof UpdateDomainInput
85
85
  */
86
86
  landingPage?: LandingPageInput;
87
+ /**
88
+ *
89
+ * @type {boolean}
90
+ * @memberof UpdateDomainInput
91
+ */
92
+ allowThirdPartySalesDataSharing?: boolean | null;
87
93
  }
88
94
 
89
95
  /**
@@ -109,6 +115,7 @@ export function UpdateDomainInputFromJSONTyped(json: any, ignoreDiscriminator: b
109
115
  'leaseToOwn': json['leaseToOwn'] == null ? undefined : LeaseToOwnConfigurationInputFromJSON(json['leaseToOwn']),
110
116
  'rent': json['rent'] == null ? undefined : RentConfigurationInputFromJSON(json['rent']),
111
117
  'landingPage': json['landingPage'] == null ? undefined : LandingPageInputFromJSON(json['landingPage']),
118
+ 'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'] == null ? undefined : json['allowThirdPartySalesDataSharing'],
112
119
  };
113
120
  }
114
121
 
@@ -129,6 +136,7 @@ export function UpdateDomainInputToJSONTyped(value?: UpdateDomainInput | null, i
129
136
  'leaseToOwn': LeaseToOwnConfigurationInputToJSON(value['leaseToOwn']),
130
137
  'rent': RentConfigurationInputToJSON(value['rent']),
131
138
  'landingPage': LandingPageInputToJSON(value['landingPage']),
139
+ 'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
132
140
  };
133
141
  }
134
142
 
@@ -95,6 +95,12 @@ export interface WithSettingsInner {
95
95
  * @memberof WithSettingsInner
96
96
  */
97
97
  rent: AccountSettingsRentConfigurationDto;
98
+ /**
99
+ *
100
+ * @type {boolean}
101
+ * @memberof WithSettingsInner
102
+ */
103
+ allowThirdPartySalesDataSharing: boolean;
98
104
  }
99
105
 
100
106
  /**
@@ -110,6 +116,7 @@ export function instanceOfWithSettingsInner(value: object): value is WithSetting
110
116
  if (!('sidnIdcode' in value) || value['sidnIdcode'] === undefined) return false;
111
117
  if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
112
118
  if (!('rent' in value) || value['rent'] === undefined) return false;
119
+ if (!('allowThirdPartySalesDataSharing' in value) || value['allowThirdPartySalesDataSharing'] === undefined) return false;
113
120
  return true;
114
121
  }
115
122
 
@@ -132,6 +139,7 @@ export function WithSettingsInnerFromJSONTyped(json: any, ignoreDiscriminator: b
132
139
  'sidnIdcode': json['sidnIdcode'],
133
140
  'leaseToOwn': AccountSettingsLeaseToOwnConfigurationDtoFromJSON(json['leaseToOwn']),
134
141
  'rent': AccountSettingsRentConfigurationDtoFromJSON(json['rent']),
142
+ 'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
135
143
  };
136
144
  }
137
145
 
@@ -155,6 +163,7 @@ export function WithSettingsInnerToJSONTyped(value?: WithSettingsInner | null, i
155
163
  'sidnIdcode': value['sidnIdcode'],
156
164
  'leaseToOwn': AccountSettingsLeaseToOwnConfigurationDtoToJSON(value['leaseToOwn']),
157
165
  'rent': AccountSettingsRentConfigurationDtoToJSON(value['rent']),
166
+ 'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
158
167
  };
159
168
  }
160
169