@randock/nameshift-api-client 0.0.248 → 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.248
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.248 --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
- 09b23109c8cde7689abd6bfeadbaf33ed4c98741b1c0f5fa1d78817bec0f23405c8f82d0c869f27d81b563094ebe798f
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
  */
@@ -127,7 +127,7 @@ export interface DomainDto {
127
127
  * @type {boolean}
128
128
  * @memberof DomainDto
129
129
  */
130
- allowThirdPartySalesDataSharing: boolean;
130
+ allowThirdPartySalesDataSharing: boolean | null;
131
131
  }
132
132
  /**
133
133
  * Check if a given object implements the DomainDto interface.
@@ -128,7 +128,7 @@ export interface IntersectionDomainDtoWithAccountDto {
128
128
  * @type {boolean}
129
129
  * @memberof IntersectionDomainDtoWithAccountDto
130
130
  */
131
- allowThirdPartySalesDataSharing: boolean;
131
+ allowThirdPartySalesDataSharing: boolean | null;
132
132
  /**
133
133
  *
134
134
  * @type {AccountDto}
@@ -128,7 +128,7 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
128
128
  * @type {boolean}
129
129
  * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
130
130
  */
131
- allowThirdPartySalesDataSharing: boolean;
131
+ allowThirdPartySalesDataSharing: boolean | null;
132
132
  /**
133
133
  *
134
134
  * @type {AccountDto}
@@ -60,7 +60,7 @@ export interface UpdateDomainInput {
60
60
  * @type {boolean}
61
61
  * @memberof UpdateDomainInput
62
62
  */
63
- allowThirdPartySalesDataSharing?: boolean;
63
+ allowThirdPartySalesDataSharing?: boolean | null;
64
64
  }
65
65
  /**
66
66
  * Check if a given object implements the UpdateDomainInput interface.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.248",
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
  */
@@ -156,7 +156,7 @@ export interface DomainDto {
156
156
  * @type {boolean}
157
157
  * @memberof DomainDto
158
158
  */
159
- allowThirdPartySalesDataSharing: boolean;
159
+ allowThirdPartySalesDataSharing: boolean | null;
160
160
  }
161
161
 
162
162
  /**
@@ -163,7 +163,7 @@ export interface IntersectionDomainDtoWithAccountDto {
163
163
  * @type {boolean}
164
164
  * @memberof IntersectionDomainDtoWithAccountDto
165
165
  */
166
- allowThirdPartySalesDataSharing: boolean;
166
+ allowThirdPartySalesDataSharing: boolean | null;
167
167
  /**
168
168
  *
169
169
  * @type {AccountDto}
@@ -163,7 +163,7 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
163
163
  * @type {boolean}
164
164
  * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
165
165
  */
166
- allowThirdPartySalesDataSharing: boolean;
166
+ allowThirdPartySalesDataSharing: boolean | null;
167
167
  /**
168
168
  *
169
169
  * @type {AccountDto}
@@ -89,7 +89,7 @@ export interface UpdateDomainInput {
89
89
  * @type {boolean}
90
90
  * @memberof UpdateDomainInput
91
91
  */
92
- allowThirdPartySalesDataSharing?: boolean;
92
+ allowThirdPartySalesDataSharing?: boolean | null;
93
93
  }
94
94
 
95
95
  /**