@randock/nameshift-api-client 0.0.338 → 0.0.340

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 (36) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +3 -3
  3. package/dist/apis/BuyersApi.d.ts +24 -1
  4. package/dist/apis/BuyersApi.js +109 -0
  5. package/dist/models/AuctionBidDto.d.ts +6 -0
  6. package/dist/models/AuctionBidDto.js +4 -0
  7. package/dist/models/BuyerAuctionDetailDto.d.ts +45 -0
  8. package/dist/models/BuyerAuctionDetailDto.js +60 -0
  9. package/dist/models/BuyerAuctionDetailDtoDomain.d.ts +32 -0
  10. package/dist/models/BuyerAuctionDetailDtoDomain.js +51 -0
  11. package/dist/models/BuyerAuctionListItemDto.d.ts +6 -0
  12. package/dist/models/BuyerAuctionListItemDto.js +4 -0
  13. package/dist/models/BuyerNotificationDto.d.ts +2 -1
  14. package/dist/models/BuyerNotificationDto.js +2 -1
  15. package/dist/models/BuyerNotificationListItemDto.d.ts +2 -1
  16. package/dist/models/BuyerNotificationListItemDto.js +2 -1
  17. package/dist/models/UpdateAuctionMuteStatusInput.d.ts +32 -0
  18. package/dist/models/UpdateAuctionMuteStatusInput.js +51 -0
  19. package/dist/models/UserNotificationDto.d.ts +2 -1
  20. package/dist/models/UserNotificationDto.js +2 -1
  21. package/dist/models/UserNotificationListItemDto.d.ts +2 -1
  22. package/dist/models/UserNotificationListItemDto.js +2 -1
  23. package/dist/models/index.d.ts +3 -0
  24. package/dist/models/index.js +3 -0
  25. package/package.json +1 -1
  26. package/src/apis/BuyersApi.ts +106 -0
  27. package/src/models/AuctionBidDto.ts +9 -0
  28. package/src/models/BuyerAuctionDetailDto.ts +92 -0
  29. package/src/models/BuyerAuctionDetailDtoDomain.ts +66 -0
  30. package/src/models/BuyerAuctionListItemDto.ts +9 -0
  31. package/src/models/BuyerNotificationDto.ts +2 -1
  32. package/src/models/BuyerNotificationListItemDto.ts +2 -1
  33. package/src/models/UpdateAuctionMuteStatusInput.ts +66 -0
  34. package/src/models/UserNotificationDto.ts +2 -1
  35. package/src/models/UserNotificationListItemDto.ts +2 -1
  36. package/src/models/index.ts +3 -0
@@ -94,6 +94,8 @@ src/models/BulkMarkBuyerNotificationsAsReadInputDto.ts
94
94
  src/models/BulkMarkNotificationsAsReadInputDto.ts
95
95
  src/models/BulkUpdateDomainsWithFiltersInput.ts
96
96
  src/models/BuyerAccessTokenDto.ts
97
+ src/models/BuyerAuctionDetailDto.ts
98
+ src/models/BuyerAuctionDetailDtoDomain.ts
97
99
  src/models/BuyerAuctionListItemDto.ts
98
100
  src/models/BuyerAuctionListItemDtoDomainInformation.ts
99
101
  src/models/BuyerAuctionListItemDtoSellerAccount.ts
@@ -351,6 +353,7 @@ src/models/TimeTableConfigurationDto.ts
351
353
  src/models/TimeTableConfigurationInput.ts
352
354
  src/models/UkBankAccountDetails.ts
353
355
  src/models/UpdateAccountBillingInformationInput.ts
356
+ src/models/UpdateAuctionMuteStatusInput.ts
354
357
  src/models/UpdateBuyerDomainTransferIpsTagInputDto.ts
355
358
  src/models/UpdateBuyerNotificationSettingsInput.ts
356
359
  src/models/UpdateDomainInput.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.338
1
+ ## @randock/nameshift-api-client@0.0.340
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.338 --save
39
+ npm install @randock/nameshift-api-client@0.0.340 --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
- 0c91197ff4c26c0e8020df1e51ee8d64ad8a57e0ef56041b0d10c0053f916fcafaccd10f6b4b2a72df498272a563cbfd
47
+ d32dd46bceb82ad61c3a2b96a389443b4a8a8f4d22614af5a525cd63ac515df85aaf6d9e661c7a133f812ebd20de959b
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AuctionBidInput, AuctionBuyerDto, BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BulkMarkBuyerNotificationsAsReadInputDto, BuyerAccessTokenDto, BuyerDomainTransferAuthCodeDto, BuyerNotificationDto, BuyerNotificationSettingsDto, BuyerSessionDto, BuyerTaskDetailsDto, CreateBuyerLeadMessageInput, GetBuyerAuctions200Response, GetBuyerInvoices200Response, GetBuyerLeads200Response, GetBuyerSubscriptions200Response, GetBuyerTransfers200Response, LeadDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, LeadMessageDto, ListBuyerNotifications200Response, ObjectId, PutBuyerLeadOfferInput, RegisterAuctionBuyerPhoneInput, RegisterInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput, UpdateBuyerDomainTransferIpsTagInputDto, UpdateBuyerNotificationSettingsInput, UpdateLeadMuteStatusForBuyerInput, UpdateTaskMuteStatusForBuyerInput, VerifyPhoneOtpInput } from '../models/index';
13
+ import type { AuctionBidInput, AuctionBuyerDto, BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BulkMarkBuyerNotificationsAsReadInputDto, BuyerAccessTokenDto, BuyerAuctionDetailDto, BuyerDomainTransferAuthCodeDto, BuyerNotificationDto, BuyerNotificationSettingsDto, BuyerSessionDto, BuyerTaskDetailsDto, CreateBuyerLeadMessageInput, GetBuyerAuctions200Response, GetBuyerInvoices200Response, GetBuyerLeads200Response, GetBuyerSubscriptions200Response, GetBuyerTransfers200Response, LeadDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, LeadMessageDto, ListBuyerNotifications200Response, ObjectId, PutBuyerLeadOfferInput, RegisterAuctionBuyerPhoneInput, RegisterInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput, UpdateAuctionMuteStatusInput, UpdateBuyerDomainTransferIpsTagInputDto, UpdateBuyerNotificationSettingsInput, UpdateLeadMuteStatusForBuyerInput, UpdateTaskMuteStatusForBuyerInput, VerifyPhoneOtpInput } from '../models/index';
14
14
  export interface BuyersApiAcceptBuyerLeadOfferRequest {
15
15
  leadId: string;
16
16
  }
@@ -45,6 +45,9 @@ export interface BuyersApiDownloadBuyerNotificationAttachmentRequest {
45
45
  notificationId: string;
46
46
  attachmentId: string;
47
47
  }
48
+ export interface BuyersApiGetBuyerAuctionDetailRequest {
49
+ auctionId: string;
50
+ }
48
51
  export interface BuyersApiGetBuyerAuctionsRequest {
49
52
  filter?: object;
50
53
  page?: number;
@@ -116,6 +119,10 @@ export interface BuyersApiRevokeScheduledSubscriptionCancellationRequest {
116
119
  export interface BuyersApiSetLocaleRequest {
117
120
  storeBuyerLocaleInput: StoreBuyerLocaleInput;
118
121
  }
122
+ export interface BuyersApiUpdateAuctionMuteStatusRequest {
123
+ auctionId: string;
124
+ updateAuctionMuteStatusInput: UpdateAuctionMuteStatusInput;
125
+ }
119
126
  export interface BuyersApiUpdateBuyerNotificationSettingsRequest {
120
127
  updateBuyerNotificationSettingsInput: UpdateBuyerNotificationSettingsInput;
121
128
  }
@@ -249,6 +256,14 @@ export declare class BuyersApi extends runtime.BaseAPI {
249
256
  *
250
257
  */
251
258
  generateBuyerAccessToken(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerAccessTokenDto>;
259
+ /**
260
+ *
261
+ */
262
+ getBuyerAuctionDetailRaw(requestParameters: BuyersApiGetBuyerAuctionDetailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerAuctionDetailDto>>;
263
+ /**
264
+ *
265
+ */
266
+ getBuyerAuctionDetail(requestParameters: BuyersApiGetBuyerAuctionDetailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerAuctionDetailDto>;
252
267
  /**
253
268
  *
254
269
  */
@@ -401,6 +416,14 @@ export declare class BuyersApi extends runtime.BaseAPI {
401
416
  *
402
417
  */
403
418
  setLocale(requestParameters: BuyersApiSetLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
419
+ /**
420
+ *
421
+ */
422
+ updateAuctionMuteStatusRaw(requestParameters: BuyersApiUpdateAuctionMuteStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
423
+ /**
424
+ *
425
+ */
426
+ updateAuctionMuteStatus(requestParameters: BuyersApiUpdateAuctionMuteStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
404
427
  /**
405
428
  *
406
429
  */
@@ -767,6 +767,59 @@ var BuyersApi = /** @class */ (function (_super) {
767
767
  });
768
768
  });
769
769
  };
770
+ /**
771
+ *
772
+ */
773
+ BuyersApi.prototype.getBuyerAuctionDetailRaw = function (requestParameters, initOverrides) {
774
+ return __awaiter(this, void 0, void 0, function () {
775
+ var queryParameters, headerParameters, token, tokenString, response;
776
+ return __generator(this, function (_a) {
777
+ switch (_a.label) {
778
+ case 0:
779
+ if (requestParameters['auctionId'] == null) {
780
+ throw new runtime.RequiredError('auctionId', 'Required parameter "auctionId" was null or undefined when calling getBuyerAuctionDetail().');
781
+ }
782
+ queryParameters = {};
783
+ headerParameters = {};
784
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
785
+ token = this.configuration.accessToken;
786
+ return [4 /*yield*/, token("bearer", [])];
787
+ case 1:
788
+ tokenString = _a.sent();
789
+ if (tokenString) {
790
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
791
+ }
792
+ _a.label = 2;
793
+ case 2: return [4 /*yield*/, this.request({
794
+ path: "/buyers/private/auctions/{auctionId}".replace("{".concat("auctionId", "}"), encodeURIComponent(String(requestParameters['auctionId']))),
795
+ method: 'GET',
796
+ headers: headerParameters,
797
+ query: queryParameters,
798
+ }, initOverrides)];
799
+ case 3:
800
+ response = _a.sent();
801
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BuyerAuctionDetailDtoFromJSON)(jsonValue); })];
802
+ }
803
+ });
804
+ });
805
+ };
806
+ /**
807
+ *
808
+ */
809
+ BuyersApi.prototype.getBuyerAuctionDetail = function (requestParameters, initOverrides) {
810
+ return __awaiter(this, void 0, void 0, function () {
811
+ var response;
812
+ return __generator(this, function (_a) {
813
+ switch (_a.label) {
814
+ case 0: return [4 /*yield*/, this.getBuyerAuctionDetailRaw(requestParameters, initOverrides)];
815
+ case 1:
816
+ response = _a.sent();
817
+ return [4 /*yield*/, response.value()];
818
+ case 2: return [2 /*return*/, _a.sent()];
819
+ }
820
+ });
821
+ });
822
+ };
770
823
  /**
771
824
  *
772
825
  */
@@ -1832,6 +1885,62 @@ var BuyersApi = /** @class */ (function (_super) {
1832
1885
  });
1833
1886
  });
1834
1887
  };
1888
+ /**
1889
+ *
1890
+ */
1891
+ BuyersApi.prototype.updateAuctionMuteStatusRaw = function (requestParameters, initOverrides) {
1892
+ return __awaiter(this, void 0, void 0, function () {
1893
+ var queryParameters, headerParameters, token, tokenString, response;
1894
+ return __generator(this, function (_a) {
1895
+ switch (_a.label) {
1896
+ case 0:
1897
+ if (requestParameters['auctionId'] == null) {
1898
+ throw new runtime.RequiredError('auctionId', 'Required parameter "auctionId" was null or undefined when calling updateAuctionMuteStatus().');
1899
+ }
1900
+ if (requestParameters['updateAuctionMuteStatusInput'] == null) {
1901
+ throw new runtime.RequiredError('updateAuctionMuteStatusInput', 'Required parameter "updateAuctionMuteStatusInput" was null or undefined when calling updateAuctionMuteStatus().');
1902
+ }
1903
+ queryParameters = {};
1904
+ headerParameters = {};
1905
+ headerParameters['Content-Type'] = 'application/json';
1906
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1907
+ token = this.configuration.accessToken;
1908
+ return [4 /*yield*/, token("bearer", [])];
1909
+ case 1:
1910
+ tokenString = _a.sent();
1911
+ if (tokenString) {
1912
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1913
+ }
1914
+ _a.label = 2;
1915
+ case 2: return [4 /*yield*/, this.request({
1916
+ path: "/buyers/private/auctions/{auctionId}/mute".replace("{".concat("auctionId", "}"), encodeURIComponent(String(requestParameters['auctionId']))),
1917
+ method: 'PUT',
1918
+ headers: headerParameters,
1919
+ query: queryParameters,
1920
+ body: (0, index_1.UpdateAuctionMuteStatusInputToJSON)(requestParameters['updateAuctionMuteStatusInput']),
1921
+ }, initOverrides)];
1922
+ case 3:
1923
+ response = _a.sent();
1924
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
1925
+ }
1926
+ });
1927
+ });
1928
+ };
1929
+ /**
1930
+ *
1931
+ */
1932
+ BuyersApi.prototype.updateAuctionMuteStatus = function (requestParameters, initOverrides) {
1933
+ return __awaiter(this, void 0, void 0, function () {
1934
+ return __generator(this, function (_a) {
1935
+ switch (_a.label) {
1936
+ case 0: return [4 /*yield*/, this.updateAuctionMuteStatusRaw(requestParameters, initOverrides)];
1937
+ case 1:
1938
+ _a.sent();
1939
+ return [2 /*return*/];
1940
+ }
1941
+ });
1942
+ });
1943
+ };
1835
1944
  /**
1836
1945
  *
1837
1946
  */
@@ -23,6 +23,12 @@ export interface AuctionBidDto {
23
23
  * @memberof AuctionBidDto
24
24
  */
25
25
  id: string;
26
+ /**
27
+ * Bidder Id
28
+ * @type {string}
29
+ * @memberof AuctionBidDto
30
+ */
31
+ bidderId: string;
26
32
  /**
27
33
  * Auction Bid amount
28
34
  * @type {MoneyDto}
@@ -26,6 +26,8 @@ var AuctionBidMetricsDto_1 = require("./AuctionBidMetricsDto");
26
26
  function instanceOfAuctionBidDto(value) {
27
27
  if (!('id' in value) || value['id'] === undefined)
28
28
  return false;
29
+ if (!('bidderId' in value) || value['bidderId'] === undefined)
30
+ return false;
29
31
  if (!('amount' in value) || value['amount'] === undefined)
30
32
  return false;
31
33
  if (!('nickname' in value) || value['nickname'] === undefined)
@@ -53,6 +55,7 @@ function AuctionBidDtoFromJSONTyped(json, ignoreDiscriminator) {
53
55
  }
54
56
  return {
55
57
  'id': json['id'],
58
+ 'bidderId': json['bidderId'],
56
59
  'amount': (0, MoneyDto_1.MoneyDtoFromJSON)(json['amount']),
57
60
  'nickname': json['nickname'],
58
61
  'createdAt': (new Date(json['createdAt'])),
@@ -73,6 +76,7 @@ function AuctionBidDtoToJSONTyped(value, ignoreDiscriminator) {
73
76
  }
74
77
  return {
75
78
  'id': value['id'],
79
+ 'bidderId': value['bidderId'],
76
80
  'amount': (0, MoneyDto_1.MoneyDtoToJSON)(value['amount']),
77
81
  'nickname': value['nickname'],
78
82
  'createdAt': ((value['createdAt']).toISOString()),
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 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 { BuyerAuctionDetailDtoDomain } from './BuyerAuctionDetailDtoDomain';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface BuyerAuctionDetailDto
17
+ */
18
+ export interface BuyerAuctionDetailDto {
19
+ /**
20
+ * Auction Id
21
+ * @type {string}
22
+ * @memberof BuyerAuctionDetailDto
23
+ */
24
+ id: string;
25
+ /**
26
+ * Auction is muted for buyer
27
+ * @type {boolean}
28
+ * @memberof BuyerAuctionDetailDto
29
+ */
30
+ isMuted: boolean;
31
+ /**
32
+ * Auction domain information
33
+ * @type {BuyerAuctionDetailDtoDomain}
34
+ * @memberof BuyerAuctionDetailDto
35
+ */
36
+ domain: BuyerAuctionDetailDtoDomain;
37
+ }
38
+ /**
39
+ * Check if a given object implements the BuyerAuctionDetailDto interface.
40
+ */
41
+ export declare function instanceOfBuyerAuctionDetailDto(value: object): value is BuyerAuctionDetailDto;
42
+ export declare function BuyerAuctionDetailDtoFromJSON(json: any): BuyerAuctionDetailDto;
43
+ export declare function BuyerAuctionDetailDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerAuctionDetailDto;
44
+ export declare function BuyerAuctionDetailDtoToJSON(json: any): BuyerAuctionDetailDto;
45
+ export declare function BuyerAuctionDetailDtoToJSONTyped(value?: BuyerAuctionDetailDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 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.instanceOfBuyerAuctionDetailDto = instanceOfBuyerAuctionDetailDto;
17
+ exports.BuyerAuctionDetailDtoFromJSON = BuyerAuctionDetailDtoFromJSON;
18
+ exports.BuyerAuctionDetailDtoFromJSONTyped = BuyerAuctionDetailDtoFromJSONTyped;
19
+ exports.BuyerAuctionDetailDtoToJSON = BuyerAuctionDetailDtoToJSON;
20
+ exports.BuyerAuctionDetailDtoToJSONTyped = BuyerAuctionDetailDtoToJSONTyped;
21
+ var BuyerAuctionDetailDtoDomain_1 = require("./BuyerAuctionDetailDtoDomain");
22
+ /**
23
+ * Check if a given object implements the BuyerAuctionDetailDto interface.
24
+ */
25
+ function instanceOfBuyerAuctionDetailDto(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('isMuted' in value) || value['isMuted'] === undefined)
29
+ return false;
30
+ if (!('domain' in value) || value['domain'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function BuyerAuctionDetailDtoFromJSON(json) {
35
+ return BuyerAuctionDetailDtoFromJSONTyped(json, false);
36
+ }
37
+ function BuyerAuctionDetailDtoFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'id': json['id'],
43
+ 'isMuted': json['isMuted'],
44
+ 'domain': (0, BuyerAuctionDetailDtoDomain_1.BuyerAuctionDetailDtoDomainFromJSON)(json['domain']),
45
+ };
46
+ }
47
+ function BuyerAuctionDetailDtoToJSON(json) {
48
+ return BuyerAuctionDetailDtoToJSONTyped(json, false);
49
+ }
50
+ function BuyerAuctionDetailDtoToJSONTyped(value, ignoreDiscriminator) {
51
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'id': value['id'],
57
+ 'isMuted': value['isMuted'],
58
+ 'domain': (0, BuyerAuctionDetailDtoDomain_1.BuyerAuctionDetailDtoDomainToJSON)(value['domain']),
59
+ };
60
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 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 BuyerAuctionDetailDtoDomain
16
+ */
17
+ export interface BuyerAuctionDetailDtoDomain {
18
+ /**
19
+ * Domain display name
20
+ * @type {string}
21
+ * @memberof BuyerAuctionDetailDtoDomain
22
+ */
23
+ displayName: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the BuyerAuctionDetailDtoDomain interface.
27
+ */
28
+ export declare function instanceOfBuyerAuctionDetailDtoDomain(value: object): value is BuyerAuctionDetailDtoDomain;
29
+ export declare function BuyerAuctionDetailDtoDomainFromJSON(json: any): BuyerAuctionDetailDtoDomain;
30
+ export declare function BuyerAuctionDetailDtoDomainFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerAuctionDetailDtoDomain;
31
+ export declare function BuyerAuctionDetailDtoDomainToJSON(json: any): BuyerAuctionDetailDtoDomain;
32
+ export declare function BuyerAuctionDetailDtoDomainToJSONTyped(value?: BuyerAuctionDetailDtoDomain | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 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.instanceOfBuyerAuctionDetailDtoDomain = instanceOfBuyerAuctionDetailDtoDomain;
17
+ exports.BuyerAuctionDetailDtoDomainFromJSON = BuyerAuctionDetailDtoDomainFromJSON;
18
+ exports.BuyerAuctionDetailDtoDomainFromJSONTyped = BuyerAuctionDetailDtoDomainFromJSONTyped;
19
+ exports.BuyerAuctionDetailDtoDomainToJSON = BuyerAuctionDetailDtoDomainToJSON;
20
+ exports.BuyerAuctionDetailDtoDomainToJSONTyped = BuyerAuctionDetailDtoDomainToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the BuyerAuctionDetailDtoDomain interface.
23
+ */
24
+ function instanceOfBuyerAuctionDetailDtoDomain(value) {
25
+ if (!('displayName' in value) || value['displayName'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function BuyerAuctionDetailDtoDomainFromJSON(json) {
30
+ return BuyerAuctionDetailDtoDomainFromJSONTyped(json, false);
31
+ }
32
+ function BuyerAuctionDetailDtoDomainFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'displayName': json['displayName'],
38
+ };
39
+ }
40
+ function BuyerAuctionDetailDtoDomainToJSON(json) {
41
+ return BuyerAuctionDetailDtoDomainToJSONTyped(json, false);
42
+ }
43
+ function BuyerAuctionDetailDtoDomainToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'displayName': value['displayName'],
50
+ };
51
+ }
@@ -103,6 +103,12 @@ export interface BuyerAuctionListItemDto {
103
103
  * @memberof BuyerAuctionListItemDto
104
104
  */
105
105
  orderId: string | null;
106
+ /**
107
+ * Auction is muted for buyer
108
+ * @type {boolean}
109
+ * @memberof BuyerAuctionListItemDto
110
+ */
111
+ isMuted: boolean;
106
112
  }
107
113
  /**
108
114
  * @export
@@ -65,6 +65,8 @@ function instanceOfBuyerAuctionListItemDto(value) {
65
65
  return false;
66
66
  if (!('orderId' in value) || value['orderId'] === undefined)
67
67
  return false;
68
+ if (!('isMuted' in value) || value['isMuted'] === undefined)
69
+ return false;
68
70
  return true;
69
71
  }
70
72
  function BuyerAuctionListItemDtoFromJSON(json) {
@@ -89,6 +91,7 @@ function BuyerAuctionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
89
91
  'numberOfBids': json['numberOfBids'],
90
92
  'bids': (json['bids'].map(AuctionBidDto_1.AuctionBidDtoFromJSON)),
91
93
  'orderId': json['orderId'],
94
+ 'isMuted': json['isMuted'],
92
95
  };
93
96
  }
94
97
  function BuyerAuctionListItemDtoToJSON(json) {
@@ -114,5 +117,6 @@ function BuyerAuctionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
114
117
  'numberOfBids': value['numberOfBids'],
115
118
  'bids': (value['bids'].map(AuctionBidDto_1.AuctionBidDtoToJSON)),
116
119
  'orderId': value['orderId'],
120
+ 'isMuted': value['isMuted'],
117
121
  };
118
122
  }
@@ -133,7 +133,8 @@ export declare const BuyerNotificationDtoTypeEnum: {
133
133
  readonly TASKS_REMINDER_LEAD: "tasks.reminder.lead";
134
134
  readonly TASKS_REMINDER_DOMAIN_TRANSFER: "tasks.reminder.domain_transfer";
135
135
  readonly TASKS_REMINDER_ORDER: "tasks.reminder.order";
136
- readonly AUCTION_BID_CREATED: "auction.bid_created";
136
+ readonly AUCTION_BUYER_OUTBID: "auction.buyer_outbid";
137
+ readonly AUCTION_BID_CREATED_FOR_BIDDER: "auction.bid_created_for_bidder";
137
138
  readonly AUCTION_WINNER_CONTINUE_ORDER_EMAIL: "auction.winner_continue_order_email";
138
139
  };
139
140
  export type BuyerNotificationDtoTypeEnum = typeof BuyerNotificationDtoTypeEnum[keyof typeof BuyerNotificationDtoTypeEnum];
@@ -94,7 +94,8 @@ exports.BuyerNotificationDtoTypeEnum = {
94
94
  TASKS_REMINDER_LEAD: 'tasks.reminder.lead',
95
95
  TASKS_REMINDER_DOMAIN_TRANSFER: 'tasks.reminder.domain_transfer',
96
96
  TASKS_REMINDER_ORDER: 'tasks.reminder.order',
97
- AUCTION_BID_CREATED: 'auction.bid_created',
97
+ AUCTION_BUYER_OUTBID: 'auction.buyer_outbid',
98
+ AUCTION_BID_CREATED_FOR_BIDDER: 'auction.bid_created_for_bidder',
98
99
  AUCTION_WINNER_CONTINUE_ORDER_EMAIL: 'auction.winner_continue_order_email'
99
100
  };
100
101
  /**
@@ -126,7 +126,8 @@ export declare const BuyerNotificationListItemDtoTypeEnum: {
126
126
  readonly TASKS_REMINDER_LEAD: "tasks.reminder.lead";
127
127
  readonly TASKS_REMINDER_DOMAIN_TRANSFER: "tasks.reminder.domain_transfer";
128
128
  readonly TASKS_REMINDER_ORDER: "tasks.reminder.order";
129
- readonly AUCTION_BID_CREATED: "auction.bid_created";
129
+ readonly AUCTION_BUYER_OUTBID: "auction.buyer_outbid";
130
+ readonly AUCTION_BID_CREATED_FOR_BIDDER: "auction.bid_created_for_bidder";
130
131
  readonly AUCTION_WINNER_CONTINUE_ORDER_EMAIL: "auction.winner_continue_order_email";
131
132
  };
132
133
  export type BuyerNotificationListItemDtoTypeEnum = typeof BuyerNotificationListItemDtoTypeEnum[keyof typeof BuyerNotificationListItemDtoTypeEnum];
@@ -93,7 +93,8 @@ exports.BuyerNotificationListItemDtoTypeEnum = {
93
93
  TASKS_REMINDER_LEAD: 'tasks.reminder.lead',
94
94
  TASKS_REMINDER_DOMAIN_TRANSFER: 'tasks.reminder.domain_transfer',
95
95
  TASKS_REMINDER_ORDER: 'tasks.reminder.order',
96
- AUCTION_BID_CREATED: 'auction.bid_created',
96
+ AUCTION_BUYER_OUTBID: 'auction.buyer_outbid',
97
+ AUCTION_BID_CREATED_FOR_BIDDER: 'auction.bid_created_for_bidder',
97
98
  AUCTION_WINNER_CONTINUE_ORDER_EMAIL: 'auction.winner_continue_order_email'
98
99
  };
99
100
  /**
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 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 UpdateAuctionMuteStatusInput
16
+ */
17
+ export interface UpdateAuctionMuteStatusInput {
18
+ /**
19
+ * Whether the auction should be muted for the buyer
20
+ * @type {boolean}
21
+ * @memberof UpdateAuctionMuteStatusInput
22
+ */
23
+ muted: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the UpdateAuctionMuteStatusInput interface.
27
+ */
28
+ export declare function instanceOfUpdateAuctionMuteStatusInput(value: object): value is UpdateAuctionMuteStatusInput;
29
+ export declare function UpdateAuctionMuteStatusInputFromJSON(json: any): UpdateAuctionMuteStatusInput;
30
+ export declare function UpdateAuctionMuteStatusInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAuctionMuteStatusInput;
31
+ export declare function UpdateAuctionMuteStatusInputToJSON(json: any): UpdateAuctionMuteStatusInput;
32
+ export declare function UpdateAuctionMuteStatusInputToJSONTyped(value?: UpdateAuctionMuteStatusInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 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.instanceOfUpdateAuctionMuteStatusInput = instanceOfUpdateAuctionMuteStatusInput;
17
+ exports.UpdateAuctionMuteStatusInputFromJSON = UpdateAuctionMuteStatusInputFromJSON;
18
+ exports.UpdateAuctionMuteStatusInputFromJSONTyped = UpdateAuctionMuteStatusInputFromJSONTyped;
19
+ exports.UpdateAuctionMuteStatusInputToJSON = UpdateAuctionMuteStatusInputToJSON;
20
+ exports.UpdateAuctionMuteStatusInputToJSONTyped = UpdateAuctionMuteStatusInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UpdateAuctionMuteStatusInput interface.
23
+ */
24
+ function instanceOfUpdateAuctionMuteStatusInput(value) {
25
+ if (!('muted' in value) || value['muted'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function UpdateAuctionMuteStatusInputFromJSON(json) {
30
+ return UpdateAuctionMuteStatusInputFromJSONTyped(json, false);
31
+ }
32
+ function UpdateAuctionMuteStatusInputFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'muted': json['muted'],
38
+ };
39
+ }
40
+ function UpdateAuctionMuteStatusInputToJSON(json) {
41
+ return UpdateAuctionMuteStatusInputToJSONTyped(json, false);
42
+ }
43
+ function UpdateAuctionMuteStatusInputToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'muted': value['muted'],
50
+ };
51
+ }
@@ -133,7 +133,8 @@ export declare const UserNotificationDtoTypeEnum: {
133
133
  readonly TASKS_REMINDER_LEAD: "tasks.reminder.lead";
134
134
  readonly TASKS_REMINDER_DOMAIN_TRANSFER: "tasks.reminder.domain_transfer";
135
135
  readonly TASKS_REMINDER_ORDER: "tasks.reminder.order";
136
- readonly AUCTION_BID_CREATED: "auction.bid_created";
136
+ readonly AUCTION_BUYER_OUTBID: "auction.buyer_outbid";
137
+ readonly AUCTION_BID_CREATED_FOR_BIDDER: "auction.bid_created_for_bidder";
137
138
  readonly AUCTION_WINNER_CONTINUE_ORDER_EMAIL: "auction.winner_continue_order_email";
138
139
  };
139
140
  export type UserNotificationDtoTypeEnum = typeof UserNotificationDtoTypeEnum[keyof typeof UserNotificationDtoTypeEnum];
@@ -94,7 +94,8 @@ exports.UserNotificationDtoTypeEnum = {
94
94
  TASKS_REMINDER_LEAD: 'tasks.reminder.lead',
95
95
  TASKS_REMINDER_DOMAIN_TRANSFER: 'tasks.reminder.domain_transfer',
96
96
  TASKS_REMINDER_ORDER: 'tasks.reminder.order',
97
- AUCTION_BID_CREATED: 'auction.bid_created',
97
+ AUCTION_BUYER_OUTBID: 'auction.buyer_outbid',
98
+ AUCTION_BID_CREATED_FOR_BIDDER: 'auction.bid_created_for_bidder',
98
99
  AUCTION_WINNER_CONTINUE_ORDER_EMAIL: 'auction.winner_continue_order_email'
99
100
  };
100
101
  /**
@@ -126,7 +126,8 @@ export declare const UserNotificationListItemDtoTypeEnum: {
126
126
  readonly TASKS_REMINDER_LEAD: "tasks.reminder.lead";
127
127
  readonly TASKS_REMINDER_DOMAIN_TRANSFER: "tasks.reminder.domain_transfer";
128
128
  readonly TASKS_REMINDER_ORDER: "tasks.reminder.order";
129
- readonly AUCTION_BID_CREATED: "auction.bid_created";
129
+ readonly AUCTION_BUYER_OUTBID: "auction.buyer_outbid";
130
+ readonly AUCTION_BID_CREATED_FOR_BIDDER: "auction.bid_created_for_bidder";
130
131
  readonly AUCTION_WINNER_CONTINUE_ORDER_EMAIL: "auction.winner_continue_order_email";
131
132
  };
132
133
  export type UserNotificationListItemDtoTypeEnum = typeof UserNotificationListItemDtoTypeEnum[keyof typeof UserNotificationListItemDtoTypeEnum];
@@ -93,7 +93,8 @@ exports.UserNotificationListItemDtoTypeEnum = {
93
93
  TASKS_REMINDER_LEAD: 'tasks.reminder.lead',
94
94
  TASKS_REMINDER_DOMAIN_TRANSFER: 'tasks.reminder.domain_transfer',
95
95
  TASKS_REMINDER_ORDER: 'tasks.reminder.order',
96
- AUCTION_BID_CREATED: 'auction.bid_created',
96
+ AUCTION_BUYER_OUTBID: 'auction.buyer_outbid',
97
+ AUCTION_BID_CREATED_FOR_BIDDER: 'auction.bid_created_for_bidder',
97
98
  AUCTION_WINNER_CONTINUE_ORDER_EMAIL: 'auction.winner_continue_order_email'
98
99
  };
99
100
  /**
@@ -60,6 +60,8 @@ export * from './BulkMarkBuyerNotificationsAsReadInputDto';
60
60
  export * from './BulkMarkNotificationsAsReadInputDto';
61
61
  export * from './BulkUpdateDomainsWithFiltersInput';
62
62
  export * from './BuyerAccessTokenDto';
63
+ export * from './BuyerAuctionDetailDto';
64
+ export * from './BuyerAuctionDetailDtoDomain';
63
65
  export * from './BuyerAuctionListItemDto';
64
66
  export * from './BuyerAuctionListItemDtoDomainInformation';
65
67
  export * from './BuyerAuctionListItemDtoSellerAccount';
@@ -317,6 +319,7 @@ export * from './TimeTableConfigurationDto';
317
319
  export * from './TimeTableConfigurationInput';
318
320
  export * from './UkBankAccountDetails';
319
321
  export * from './UpdateAccountBillingInformationInput';
322
+ export * from './UpdateAuctionMuteStatusInput';
320
323
  export * from './UpdateBuyerDomainTransferIpsTagInputDto';
321
324
  export * from './UpdateBuyerNotificationSettingsInput';
322
325
  export * from './UpdateDomainInput';
@@ -78,6 +78,8 @@ __exportStar(require("./BulkMarkBuyerNotificationsAsReadInputDto"), exports);
78
78
  __exportStar(require("./BulkMarkNotificationsAsReadInputDto"), exports);
79
79
  __exportStar(require("./BulkUpdateDomainsWithFiltersInput"), exports);
80
80
  __exportStar(require("./BuyerAccessTokenDto"), exports);
81
+ __exportStar(require("./BuyerAuctionDetailDto"), exports);
82
+ __exportStar(require("./BuyerAuctionDetailDtoDomain"), exports);
81
83
  __exportStar(require("./BuyerAuctionListItemDto"), exports);
82
84
  __exportStar(require("./BuyerAuctionListItemDtoDomainInformation"), exports);
83
85
  __exportStar(require("./BuyerAuctionListItemDtoSellerAccount"), exports);
@@ -335,6 +337,7 @@ __exportStar(require("./TimeTableConfigurationDto"), exports);
335
337
  __exportStar(require("./TimeTableConfigurationInput"), exports);
336
338
  __exportStar(require("./UkBankAccountDetails"), exports);
337
339
  __exportStar(require("./UpdateAccountBillingInformationInput"), exports);
340
+ __exportStar(require("./UpdateAuctionMuteStatusInput"), exports);
338
341
  __exportStar(require("./UpdateBuyerDomainTransferIpsTagInputDto"), exports);
339
342
  __exportStar(require("./UpdateBuyerNotificationSettingsInput"), exports);
340
343
  __exportStar(require("./UpdateDomainInput"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.338",
3
+ "version": "0.0.340",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -23,6 +23,7 @@ import type {
23
23
  BatchVerifyBuyerLeadsInput,
24
24
  BulkMarkBuyerNotificationsAsReadInputDto,
25
25
  BuyerAccessTokenDto,
26
+ BuyerAuctionDetailDto,
26
27
  BuyerDomainTransferAuthCodeDto,
27
28
  BuyerNotificationDto,
28
29
  BuyerNotificationSettingsDto,
@@ -45,6 +46,7 @@ import type {
45
46
  RegisterInput,
46
47
  SetDomainTransferConfirmationInput,
47
48
  StoreBuyerLocaleInput,
49
+ UpdateAuctionMuteStatusInput,
48
50
  UpdateBuyerDomainTransferIpsTagInputDto,
49
51
  UpdateBuyerNotificationSettingsInput,
50
52
  UpdateLeadMuteStatusForBuyerInput,
@@ -69,6 +71,8 @@ import {
69
71
  BulkMarkBuyerNotificationsAsReadInputDtoToJSON,
70
72
  BuyerAccessTokenDtoFromJSON,
71
73
  BuyerAccessTokenDtoToJSON,
74
+ BuyerAuctionDetailDtoFromJSON,
75
+ BuyerAuctionDetailDtoToJSON,
72
76
  BuyerDomainTransferAuthCodeDtoFromJSON,
73
77
  BuyerDomainTransferAuthCodeDtoToJSON,
74
78
  BuyerNotificationDtoFromJSON,
@@ -113,6 +117,8 @@ import {
113
117
  SetDomainTransferConfirmationInputToJSON,
114
118
  StoreBuyerLocaleInputFromJSON,
115
119
  StoreBuyerLocaleInputToJSON,
120
+ UpdateAuctionMuteStatusInputFromJSON,
121
+ UpdateAuctionMuteStatusInputToJSON,
116
122
  UpdateBuyerDomainTransferIpsTagInputDtoFromJSON,
117
123
  UpdateBuyerDomainTransferIpsTagInputDtoToJSON,
118
124
  UpdateBuyerNotificationSettingsInputFromJSON,
@@ -171,6 +177,10 @@ export interface BuyersApiDownloadBuyerNotificationAttachmentRequest {
171
177
  attachmentId: string;
172
178
  }
173
179
 
180
+ export interface BuyersApiGetBuyerAuctionDetailRequest {
181
+ auctionId: string;
182
+ }
183
+
174
184
  export interface BuyersApiGetBuyerAuctionsRequest {
175
185
  filter?: object;
176
186
  page?: number;
@@ -259,6 +269,11 @@ export interface BuyersApiSetLocaleRequest {
259
269
  storeBuyerLocaleInput: StoreBuyerLocaleInput;
260
270
  }
261
271
 
272
+ export interface BuyersApiUpdateAuctionMuteStatusRequest {
273
+ auctionId: string;
274
+ updateAuctionMuteStatusInput: UpdateAuctionMuteStatusInput;
275
+ }
276
+
262
277
  export interface BuyersApiUpdateBuyerNotificationSettingsRequest {
263
278
  updateBuyerNotificationSettingsInput: UpdateBuyerNotificationSettingsInput;
264
279
  }
@@ -845,6 +860,47 @@ export class BuyersApi extends runtime.BaseAPI {
845
860
  return await response.value();
846
861
  }
847
862
 
863
+ /**
864
+ *
865
+ */
866
+ async getBuyerAuctionDetailRaw(requestParameters: BuyersApiGetBuyerAuctionDetailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerAuctionDetailDto>> {
867
+ if (requestParameters['auctionId'] == null) {
868
+ throw new runtime.RequiredError(
869
+ 'auctionId',
870
+ 'Required parameter "auctionId" was null or undefined when calling getBuyerAuctionDetail().'
871
+ );
872
+ }
873
+
874
+ const queryParameters: any = {};
875
+
876
+ const headerParameters: runtime.HTTPHeaders = {};
877
+
878
+ if (this.configuration && this.configuration.accessToken) {
879
+ const token = this.configuration.accessToken;
880
+ const tokenString = await token("bearer", []);
881
+
882
+ if (tokenString) {
883
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
884
+ }
885
+ }
886
+ const response = await this.request({
887
+ path: `/buyers/private/auctions/{auctionId}`.replace(`{${"auctionId"}}`, encodeURIComponent(String(requestParameters['auctionId']))),
888
+ method: 'GET',
889
+ headers: headerParameters,
890
+ query: queryParameters,
891
+ }, initOverrides);
892
+
893
+ return new runtime.JSONApiResponse(response, (jsonValue) => BuyerAuctionDetailDtoFromJSON(jsonValue));
894
+ }
895
+
896
+ /**
897
+ *
898
+ */
899
+ async getBuyerAuctionDetail(requestParameters: BuyersApiGetBuyerAuctionDetailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerAuctionDetailDto> {
900
+ const response = await this.getBuyerAuctionDetailRaw(requestParameters, initOverrides);
901
+ return await response.value();
902
+ }
903
+
848
904
  /**
849
905
  *
850
906
  */
@@ -1687,6 +1743,56 @@ export class BuyersApi extends runtime.BaseAPI {
1687
1743
  await this.setLocaleRaw(requestParameters, initOverrides);
1688
1744
  }
1689
1745
 
1746
+ /**
1747
+ *
1748
+ */
1749
+ async updateAuctionMuteStatusRaw(requestParameters: BuyersApiUpdateAuctionMuteStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1750
+ if (requestParameters['auctionId'] == null) {
1751
+ throw new runtime.RequiredError(
1752
+ 'auctionId',
1753
+ 'Required parameter "auctionId" was null or undefined when calling updateAuctionMuteStatus().'
1754
+ );
1755
+ }
1756
+
1757
+ if (requestParameters['updateAuctionMuteStatusInput'] == null) {
1758
+ throw new runtime.RequiredError(
1759
+ 'updateAuctionMuteStatusInput',
1760
+ 'Required parameter "updateAuctionMuteStatusInput" was null or undefined when calling updateAuctionMuteStatus().'
1761
+ );
1762
+ }
1763
+
1764
+ const queryParameters: any = {};
1765
+
1766
+ const headerParameters: runtime.HTTPHeaders = {};
1767
+
1768
+ headerParameters['Content-Type'] = 'application/json';
1769
+
1770
+ if (this.configuration && this.configuration.accessToken) {
1771
+ const token = this.configuration.accessToken;
1772
+ const tokenString = await token("bearer", []);
1773
+
1774
+ if (tokenString) {
1775
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1776
+ }
1777
+ }
1778
+ const response = await this.request({
1779
+ path: `/buyers/private/auctions/{auctionId}/mute`.replace(`{${"auctionId"}}`, encodeURIComponent(String(requestParameters['auctionId']))),
1780
+ method: 'PUT',
1781
+ headers: headerParameters,
1782
+ query: queryParameters,
1783
+ body: UpdateAuctionMuteStatusInputToJSON(requestParameters['updateAuctionMuteStatusInput']),
1784
+ }, initOverrides);
1785
+
1786
+ return new runtime.VoidApiResponse(response);
1787
+ }
1788
+
1789
+ /**
1790
+ *
1791
+ */
1792
+ async updateAuctionMuteStatus(requestParameters: BuyersApiUpdateAuctionMuteStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
1793
+ await this.updateAuctionMuteStatusRaw(requestParameters, initOverrides);
1794
+ }
1795
+
1690
1796
  /**
1691
1797
  *
1692
1798
  */
@@ -40,6 +40,12 @@ export interface AuctionBidDto {
40
40
  * @memberof AuctionBidDto
41
41
  */
42
42
  id: string;
43
+ /**
44
+ * Bidder Id
45
+ * @type {string}
46
+ * @memberof AuctionBidDto
47
+ */
48
+ bidderId: string;
43
49
  /**
44
50
  * Auction Bid amount
45
51
  * @type {MoneyDto}
@@ -95,6 +101,7 @@ export interface AuctionBidDto {
95
101
  */
96
102
  export function instanceOfAuctionBidDto(value: object): value is AuctionBidDto {
97
103
  if (!('id' in value) || value['id'] === undefined) return false;
104
+ if (!('bidderId' in value) || value['bidderId'] === undefined) return false;
98
105
  if (!('amount' in value) || value['amount'] === undefined) return false;
99
106
  if (!('nickname' in value) || value['nickname'] === undefined) return false;
100
107
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
@@ -117,6 +124,7 @@ export function AuctionBidDtoFromJSONTyped(json: any, ignoreDiscriminator: boole
117
124
  return {
118
125
 
119
126
  'id': json['id'],
127
+ 'bidderId': json['bidderId'],
120
128
  'amount': MoneyDtoFromJSON(json['amount']),
121
129
  'nickname': json['nickname'],
122
130
  'createdAt': (new Date(json['createdAt'])),
@@ -140,6 +148,7 @@ export function AuctionBidDtoToJSONTyped(value?: AuctionBidDto | null, ignoreDis
140
148
  return {
141
149
 
142
150
  'id': value['id'],
151
+ 'bidderId': value['bidderId'],
143
152
  'amount': MoneyDtoToJSON(value['amount']),
144
153
  'nickname': value['nickname'],
145
154
  'createdAt': ((value['createdAt']).toISOString()),
@@ -0,0 +1,92 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 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
+ import { mapValues } from '../runtime';
16
+ import type { BuyerAuctionDetailDtoDomain } from './BuyerAuctionDetailDtoDomain';
17
+ import {
18
+ BuyerAuctionDetailDtoDomainFromJSON,
19
+ BuyerAuctionDetailDtoDomainFromJSONTyped,
20
+ BuyerAuctionDetailDtoDomainToJSON,
21
+ BuyerAuctionDetailDtoDomainToJSONTyped,
22
+ } from './BuyerAuctionDetailDtoDomain';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface BuyerAuctionDetailDto
28
+ */
29
+ export interface BuyerAuctionDetailDto {
30
+ /**
31
+ * Auction Id
32
+ * @type {string}
33
+ * @memberof BuyerAuctionDetailDto
34
+ */
35
+ id: string;
36
+ /**
37
+ * Auction is muted for buyer
38
+ * @type {boolean}
39
+ * @memberof BuyerAuctionDetailDto
40
+ */
41
+ isMuted: boolean;
42
+ /**
43
+ * Auction domain information
44
+ * @type {BuyerAuctionDetailDtoDomain}
45
+ * @memberof BuyerAuctionDetailDto
46
+ */
47
+ domain: BuyerAuctionDetailDtoDomain;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the BuyerAuctionDetailDto interface.
52
+ */
53
+ export function instanceOfBuyerAuctionDetailDto(value: object): value is BuyerAuctionDetailDto {
54
+ if (!('id' in value) || value['id'] === undefined) return false;
55
+ if (!('isMuted' in value) || value['isMuted'] === undefined) return false;
56
+ if (!('domain' in value) || value['domain'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function BuyerAuctionDetailDtoFromJSON(json: any): BuyerAuctionDetailDto {
61
+ return BuyerAuctionDetailDtoFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function BuyerAuctionDetailDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerAuctionDetailDto {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'id': json['id'],
71
+ 'isMuted': json['isMuted'],
72
+ 'domain': BuyerAuctionDetailDtoDomainFromJSON(json['domain']),
73
+ };
74
+ }
75
+
76
+ export function BuyerAuctionDetailDtoToJSON(json: any): BuyerAuctionDetailDto {
77
+ return BuyerAuctionDetailDtoToJSONTyped(json, false);
78
+ }
79
+
80
+ export function BuyerAuctionDetailDtoToJSONTyped(value?: BuyerAuctionDetailDto | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'id': value['id'],
88
+ 'isMuted': value['isMuted'],
89
+ 'domain': BuyerAuctionDetailDtoDomainToJSON(value['domain']),
90
+ };
91
+ }
92
+
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface BuyerAuctionDetailDtoDomain
20
+ */
21
+ export interface BuyerAuctionDetailDtoDomain {
22
+ /**
23
+ * Domain display name
24
+ * @type {string}
25
+ * @memberof BuyerAuctionDetailDtoDomain
26
+ */
27
+ displayName: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the BuyerAuctionDetailDtoDomain interface.
32
+ */
33
+ export function instanceOfBuyerAuctionDetailDtoDomain(value: object): value is BuyerAuctionDetailDtoDomain {
34
+ if (!('displayName' in value) || value['displayName'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function BuyerAuctionDetailDtoDomainFromJSON(json: any): BuyerAuctionDetailDtoDomain {
39
+ return BuyerAuctionDetailDtoDomainFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function BuyerAuctionDetailDtoDomainFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerAuctionDetailDtoDomain {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'displayName': json['displayName'],
49
+ };
50
+ }
51
+
52
+ export function BuyerAuctionDetailDtoDomainToJSON(json: any): BuyerAuctionDetailDtoDomain {
53
+ return BuyerAuctionDetailDtoDomainToJSONTyped(json, false);
54
+ }
55
+
56
+ export function BuyerAuctionDetailDtoDomainToJSONTyped(value?: BuyerAuctionDetailDtoDomain | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'displayName': value['displayName'],
64
+ };
65
+ }
66
+
@@ -132,6 +132,12 @@ export interface BuyerAuctionListItemDto {
132
132
  * @memberof BuyerAuctionListItemDto
133
133
  */
134
134
  orderId: string | null;
135
+ /**
136
+ * Auction is muted for buyer
137
+ * @type {boolean}
138
+ * @memberof BuyerAuctionListItemDto
139
+ */
140
+ isMuted: boolean;
135
141
  }
136
142
 
137
143
 
@@ -166,6 +172,7 @@ export function instanceOfBuyerAuctionListItemDto(value: object): value is Buyer
166
172
  if (!('numberOfBids' in value) || value['numberOfBids'] === undefined) return false;
167
173
  if (!('bids' in value) || value['bids'] === undefined) return false;
168
174
  if (!('orderId' in value) || value['orderId'] === undefined) return false;
175
+ if (!('isMuted' in value) || value['isMuted'] === undefined) return false;
169
176
  return true;
170
177
  }
171
178
 
@@ -193,6 +200,7 @@ export function BuyerAuctionListItemDtoFromJSONTyped(json: any, ignoreDiscrimina
193
200
  'numberOfBids': json['numberOfBids'],
194
201
  'bids': ((json['bids'] as Array<any>).map(AuctionBidDtoFromJSON)),
195
202
  'orderId': json['orderId'],
203
+ 'isMuted': json['isMuted'],
196
204
  };
197
205
  }
198
206
 
@@ -221,6 +229,7 @@ export function BuyerAuctionListItemDtoToJSONTyped(value?: BuyerAuctionListItemD
221
229
  'numberOfBids': value['numberOfBids'],
222
230
  'bids': ((value['bids'] as Array<any>).map(AuctionBidDtoToJSON)),
223
231
  'orderId': value['orderId'],
232
+ 'isMuted': value['isMuted'],
224
233
  };
225
234
  }
226
235
 
@@ -146,7 +146,8 @@ export const BuyerNotificationDtoTypeEnum = {
146
146
  TASKS_REMINDER_LEAD: 'tasks.reminder.lead',
147
147
  TASKS_REMINDER_DOMAIN_TRANSFER: 'tasks.reminder.domain_transfer',
148
148
  TASKS_REMINDER_ORDER: 'tasks.reminder.order',
149
- AUCTION_BID_CREATED: 'auction.bid_created',
149
+ AUCTION_BUYER_OUTBID: 'auction.buyer_outbid',
150
+ AUCTION_BID_CREATED_FOR_BIDDER: 'auction.bid_created_for_bidder',
150
151
  AUCTION_WINNER_CONTINUE_ORDER_EMAIL: 'auction.winner_continue_order_email'
151
152
  } as const;
152
153
  export type BuyerNotificationDtoTypeEnum = typeof BuyerNotificationDtoTypeEnum[keyof typeof BuyerNotificationDtoTypeEnum];
@@ -132,7 +132,8 @@ export const BuyerNotificationListItemDtoTypeEnum = {
132
132
  TASKS_REMINDER_LEAD: 'tasks.reminder.lead',
133
133
  TASKS_REMINDER_DOMAIN_TRANSFER: 'tasks.reminder.domain_transfer',
134
134
  TASKS_REMINDER_ORDER: 'tasks.reminder.order',
135
- AUCTION_BID_CREATED: 'auction.bid_created',
135
+ AUCTION_BUYER_OUTBID: 'auction.buyer_outbid',
136
+ AUCTION_BID_CREATED_FOR_BIDDER: 'auction.bid_created_for_bidder',
136
137
  AUCTION_WINNER_CONTINUE_ORDER_EMAIL: 'auction.winner_continue_order_email'
137
138
  } as const;
138
139
  export type BuyerNotificationListItemDtoTypeEnum = typeof BuyerNotificationListItemDtoTypeEnum[keyof typeof BuyerNotificationListItemDtoTypeEnum];
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface UpdateAuctionMuteStatusInput
20
+ */
21
+ export interface UpdateAuctionMuteStatusInput {
22
+ /**
23
+ * Whether the auction should be muted for the buyer
24
+ * @type {boolean}
25
+ * @memberof UpdateAuctionMuteStatusInput
26
+ */
27
+ muted: boolean;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the UpdateAuctionMuteStatusInput interface.
32
+ */
33
+ export function instanceOfUpdateAuctionMuteStatusInput(value: object): value is UpdateAuctionMuteStatusInput {
34
+ if (!('muted' in value) || value['muted'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function UpdateAuctionMuteStatusInputFromJSON(json: any): UpdateAuctionMuteStatusInput {
39
+ return UpdateAuctionMuteStatusInputFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function UpdateAuctionMuteStatusInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAuctionMuteStatusInput {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'muted': json['muted'],
49
+ };
50
+ }
51
+
52
+ export function UpdateAuctionMuteStatusInputToJSON(json: any): UpdateAuctionMuteStatusInput {
53
+ return UpdateAuctionMuteStatusInputToJSONTyped(json, false);
54
+ }
55
+
56
+ export function UpdateAuctionMuteStatusInputToJSONTyped(value?: UpdateAuctionMuteStatusInput | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'muted': value['muted'],
64
+ };
65
+ }
66
+
@@ -146,7 +146,8 @@ export const UserNotificationDtoTypeEnum = {
146
146
  TASKS_REMINDER_LEAD: 'tasks.reminder.lead',
147
147
  TASKS_REMINDER_DOMAIN_TRANSFER: 'tasks.reminder.domain_transfer',
148
148
  TASKS_REMINDER_ORDER: 'tasks.reminder.order',
149
- AUCTION_BID_CREATED: 'auction.bid_created',
149
+ AUCTION_BUYER_OUTBID: 'auction.buyer_outbid',
150
+ AUCTION_BID_CREATED_FOR_BIDDER: 'auction.bid_created_for_bidder',
150
151
  AUCTION_WINNER_CONTINUE_ORDER_EMAIL: 'auction.winner_continue_order_email'
151
152
  } as const;
152
153
  export type UserNotificationDtoTypeEnum = typeof UserNotificationDtoTypeEnum[keyof typeof UserNotificationDtoTypeEnum];
@@ -132,7 +132,8 @@ export const UserNotificationListItemDtoTypeEnum = {
132
132
  TASKS_REMINDER_LEAD: 'tasks.reminder.lead',
133
133
  TASKS_REMINDER_DOMAIN_TRANSFER: 'tasks.reminder.domain_transfer',
134
134
  TASKS_REMINDER_ORDER: 'tasks.reminder.order',
135
- AUCTION_BID_CREATED: 'auction.bid_created',
135
+ AUCTION_BUYER_OUTBID: 'auction.buyer_outbid',
136
+ AUCTION_BID_CREATED_FOR_BIDDER: 'auction.bid_created_for_bidder',
136
137
  AUCTION_WINNER_CONTINUE_ORDER_EMAIL: 'auction.winner_continue_order_email'
137
138
  } as const;
138
139
  export type UserNotificationListItemDtoTypeEnum = typeof UserNotificationListItemDtoTypeEnum[keyof typeof UserNotificationListItemDtoTypeEnum];
@@ -62,6 +62,8 @@ export * from './BulkMarkBuyerNotificationsAsReadInputDto';
62
62
  export * from './BulkMarkNotificationsAsReadInputDto';
63
63
  export * from './BulkUpdateDomainsWithFiltersInput';
64
64
  export * from './BuyerAccessTokenDto';
65
+ export * from './BuyerAuctionDetailDto';
66
+ export * from './BuyerAuctionDetailDtoDomain';
65
67
  export * from './BuyerAuctionListItemDto';
66
68
  export * from './BuyerAuctionListItemDtoDomainInformation';
67
69
  export * from './BuyerAuctionListItemDtoSellerAccount';
@@ -319,6 +321,7 @@ export * from './TimeTableConfigurationDto';
319
321
  export * from './TimeTableConfigurationInput';
320
322
  export * from './UkBankAccountDetails';
321
323
  export * from './UpdateAccountBillingInformationInput';
324
+ export * from './UpdateAuctionMuteStatusInput';
322
325
  export * from './UpdateBuyerDomainTransferIpsTagInputDto';
323
326
  export * from './UpdateBuyerNotificationSettingsInput';
324
327
  export * from './UpdateDomainInput';