@randock/nameshift-api-client 0.0.337 → 0.0.339

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 (39) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +3 -3
  3. package/dist/apis/BuyersApi.d.ts +32 -1
  4. package/dist/apis/BuyersApi.js +159 -0
  5. package/dist/models/AuctionBidDto.d.ts +6 -0
  6. package/dist/models/AuctionBidDto.js +4 -0
  7. package/dist/models/BuyerAccessTokenDto.d.ts +32 -0
  8. package/dist/models/BuyerAccessTokenDto.js +51 -0
  9. package/dist/models/BuyerAuctionDetailDto.d.ts +45 -0
  10. package/dist/models/BuyerAuctionDetailDto.js +60 -0
  11. package/dist/models/BuyerAuctionDetailDtoDomain.d.ts +32 -0
  12. package/dist/models/BuyerAuctionDetailDtoDomain.js +51 -0
  13. package/dist/models/BuyerAuctionListItemDto.d.ts +6 -0
  14. package/dist/models/BuyerAuctionListItemDto.js +4 -0
  15. package/dist/models/BuyerNotificationDto.d.ts +2 -1
  16. package/dist/models/BuyerNotificationDto.js +2 -1
  17. package/dist/models/BuyerNotificationListItemDto.d.ts +2 -1
  18. package/dist/models/BuyerNotificationListItemDto.js +2 -1
  19. package/dist/models/UpdateAuctionMuteStatusInput.d.ts +32 -0
  20. package/dist/models/UpdateAuctionMuteStatusInput.js +51 -0
  21. package/dist/models/UserNotificationDto.d.ts +2 -1
  22. package/dist/models/UserNotificationDto.js +2 -1
  23. package/dist/models/UserNotificationListItemDto.d.ts +2 -1
  24. package/dist/models/UserNotificationListItemDto.js +2 -1
  25. package/dist/models/index.d.ts +4 -0
  26. package/dist/models/index.js +4 -0
  27. package/package.json +1 -1
  28. package/src/apis/BuyersApi.ts +143 -0
  29. package/src/models/AuctionBidDto.ts +9 -0
  30. package/src/models/BuyerAccessTokenDto.ts +66 -0
  31. package/src/models/BuyerAuctionDetailDto.ts +92 -0
  32. package/src/models/BuyerAuctionDetailDtoDomain.ts +66 -0
  33. package/src/models/BuyerAuctionListItemDto.ts +9 -0
  34. package/src/models/BuyerNotificationDto.ts +2 -1
  35. package/src/models/BuyerNotificationListItemDto.ts +2 -1
  36. package/src/models/UpdateAuctionMuteStatusInput.ts +66 -0
  37. package/src/models/UserNotificationDto.ts +2 -1
  38. package/src/models/UserNotificationListItemDto.ts +2 -1
  39. package/src/models/index.ts +4 -0
@@ -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
  /**
@@ -59,6 +59,9 @@ export * from './BillingInformationDto';
59
59
  export * from './BulkMarkBuyerNotificationsAsReadInputDto';
60
60
  export * from './BulkMarkNotificationsAsReadInputDto';
61
61
  export * from './BulkUpdateDomainsWithFiltersInput';
62
+ export * from './BuyerAccessTokenDto';
63
+ export * from './BuyerAuctionDetailDto';
64
+ export * from './BuyerAuctionDetailDtoDomain';
62
65
  export * from './BuyerAuctionListItemDto';
63
66
  export * from './BuyerAuctionListItemDtoDomainInformation';
64
67
  export * from './BuyerAuctionListItemDtoSellerAccount';
@@ -316,6 +319,7 @@ export * from './TimeTableConfigurationDto';
316
319
  export * from './TimeTableConfigurationInput';
317
320
  export * from './UkBankAccountDetails';
318
321
  export * from './UpdateAccountBillingInformationInput';
322
+ export * from './UpdateAuctionMuteStatusInput';
319
323
  export * from './UpdateBuyerDomainTransferIpsTagInputDto';
320
324
  export * from './UpdateBuyerNotificationSettingsInput';
321
325
  export * from './UpdateDomainInput';
@@ -77,6 +77,9 @@ __exportStar(require("./BillingInformationDto"), exports);
77
77
  __exportStar(require("./BulkMarkBuyerNotificationsAsReadInputDto"), exports);
78
78
  __exportStar(require("./BulkMarkNotificationsAsReadInputDto"), exports);
79
79
  __exportStar(require("./BulkUpdateDomainsWithFiltersInput"), exports);
80
+ __exportStar(require("./BuyerAccessTokenDto"), exports);
81
+ __exportStar(require("./BuyerAuctionDetailDto"), exports);
82
+ __exportStar(require("./BuyerAuctionDetailDtoDomain"), exports);
80
83
  __exportStar(require("./BuyerAuctionListItemDto"), exports);
81
84
  __exportStar(require("./BuyerAuctionListItemDtoDomainInformation"), exports);
82
85
  __exportStar(require("./BuyerAuctionListItemDtoSellerAccount"), exports);
@@ -334,6 +337,7 @@ __exportStar(require("./TimeTableConfigurationDto"), exports);
334
337
  __exportStar(require("./TimeTableConfigurationInput"), exports);
335
338
  __exportStar(require("./UkBankAccountDetails"), exports);
336
339
  __exportStar(require("./UpdateAccountBillingInformationInput"), exports);
340
+ __exportStar(require("./UpdateAuctionMuteStatusInput"), exports);
337
341
  __exportStar(require("./UpdateBuyerDomainTransferIpsTagInputDto"), exports);
338
342
  __exportStar(require("./UpdateBuyerNotificationSettingsInput"), exports);
339
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.337",
3
+ "version": "0.0.339",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -22,6 +22,8 @@ import type {
22
22
  BatchReadBuyerLeadMessageInput,
23
23
  BatchVerifyBuyerLeadsInput,
24
24
  BulkMarkBuyerNotificationsAsReadInputDto,
25
+ BuyerAccessTokenDto,
26
+ BuyerAuctionDetailDto,
25
27
  BuyerDomainTransferAuthCodeDto,
26
28
  BuyerNotificationDto,
27
29
  BuyerNotificationSettingsDto,
@@ -44,6 +46,7 @@ import type {
44
46
  RegisterInput,
45
47
  SetDomainTransferConfirmationInput,
46
48
  StoreBuyerLocaleInput,
49
+ UpdateAuctionMuteStatusInput,
47
50
  UpdateBuyerDomainTransferIpsTagInputDto,
48
51
  UpdateBuyerNotificationSettingsInput,
49
52
  UpdateLeadMuteStatusForBuyerInput,
@@ -66,6 +69,10 @@ import {
66
69
  BatchVerifyBuyerLeadsInputToJSON,
67
70
  BulkMarkBuyerNotificationsAsReadInputDtoFromJSON,
68
71
  BulkMarkBuyerNotificationsAsReadInputDtoToJSON,
72
+ BuyerAccessTokenDtoFromJSON,
73
+ BuyerAccessTokenDtoToJSON,
74
+ BuyerAuctionDetailDtoFromJSON,
75
+ BuyerAuctionDetailDtoToJSON,
69
76
  BuyerDomainTransferAuthCodeDtoFromJSON,
70
77
  BuyerDomainTransferAuthCodeDtoToJSON,
71
78
  BuyerNotificationDtoFromJSON,
@@ -110,6 +117,8 @@ import {
110
117
  SetDomainTransferConfirmationInputToJSON,
111
118
  StoreBuyerLocaleInputFromJSON,
112
119
  StoreBuyerLocaleInputToJSON,
120
+ UpdateAuctionMuteStatusInputFromJSON,
121
+ UpdateAuctionMuteStatusInputToJSON,
113
122
  UpdateBuyerDomainTransferIpsTagInputDtoFromJSON,
114
123
  UpdateBuyerDomainTransferIpsTagInputDtoToJSON,
115
124
  UpdateBuyerNotificationSettingsInputFromJSON,
@@ -168,6 +177,10 @@ export interface BuyersApiDownloadBuyerNotificationAttachmentRequest {
168
177
  attachmentId: string;
169
178
  }
170
179
 
180
+ export interface BuyersApiGetBuyerAuctionDetailRequest {
181
+ auctionId: string;
182
+ }
183
+
171
184
  export interface BuyersApiGetBuyerAuctionsRequest {
172
185
  filter?: object;
173
186
  page?: number;
@@ -256,6 +269,11 @@ export interface BuyersApiSetLocaleRequest {
256
269
  storeBuyerLocaleInput: StoreBuyerLocaleInput;
257
270
  }
258
271
 
272
+ export interface BuyersApiUpdateAuctionMuteStatusRequest {
273
+ auctionId: string;
274
+ updateAuctionMuteStatusInput: UpdateAuctionMuteStatusInput;
275
+ }
276
+
259
277
  export interface BuyersApiUpdateBuyerNotificationSettingsRequest {
260
278
  updateBuyerNotificationSettingsInput: UpdateBuyerNotificationSettingsInput;
261
279
  }
@@ -808,6 +826,81 @@ export class BuyersApi extends runtime.BaseAPI {
808
826
  return await response.value();
809
827
  }
810
828
 
829
+ /**
830
+ *
831
+ */
832
+ async generateBuyerAccessTokenRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerAccessTokenDto>> {
833
+ const queryParameters: any = {};
834
+
835
+ const headerParameters: runtime.HTTPHeaders = {};
836
+
837
+ if (this.configuration && this.configuration.accessToken) {
838
+ const token = this.configuration.accessToken;
839
+ const tokenString = await token("bearer", []);
840
+
841
+ if (tokenString) {
842
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
843
+ }
844
+ }
845
+ const response = await this.request({
846
+ path: `/buyers/private/access-token`,
847
+ method: 'GET',
848
+ headers: headerParameters,
849
+ query: queryParameters,
850
+ }, initOverrides);
851
+
852
+ return new runtime.JSONApiResponse(response, (jsonValue) => BuyerAccessTokenDtoFromJSON(jsonValue));
853
+ }
854
+
855
+ /**
856
+ *
857
+ */
858
+ async generateBuyerAccessToken(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerAccessTokenDto> {
859
+ const response = await this.generateBuyerAccessTokenRaw(initOverrides);
860
+ return await response.value();
861
+ }
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
+
811
904
  /**
812
905
  *
813
906
  */
@@ -1650,6 +1743,56 @@ export class BuyersApi extends runtime.BaseAPI {
1650
1743
  await this.setLocaleRaw(requestParameters, initOverrides);
1651
1744
  }
1652
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
+
1653
1796
  /**
1654
1797
  *
1655
1798
  */
@@ -82,6 +82,12 @@ export interface AuctionBidDto {
82
82
  * @memberof AuctionBidDto
83
83
  */
84
84
  metrics: AuctionBidMetricsDto;
85
+ /**
86
+ * Auction Bidder email
87
+ * @type {string}
88
+ * @memberof AuctionBidDto
89
+ */
90
+ email: string | null;
85
91
  }
86
92
 
87
93
  /**
@@ -96,6 +102,7 @@ export function instanceOfAuctionBidDto(value: object): value is AuctionBidDto {
96
102
  if (!('isPhoneVerified' in value) || value['isPhoneVerified'] === undefined) return false;
97
103
  if (!('isKycCompleted' in value) || value['isKycCompleted'] === undefined) return false;
98
104
  if (!('metrics' in value) || value['metrics'] === undefined) return false;
105
+ if (!('email' in value) || value['email'] === undefined) return false;
99
106
  return true;
100
107
  }
101
108
 
@@ -117,6 +124,7 @@ export function AuctionBidDtoFromJSONTyped(json: any, ignoreDiscriminator: boole
117
124
  'isPhoneVerified': json['isPhoneVerified'],
118
125
  'isKycCompleted': json['isKycCompleted'],
119
126
  'metrics': AuctionBidMetricsDtoFromJSON(json['metrics']),
127
+ 'email': json['email'],
120
128
  };
121
129
  }
122
130
 
@@ -139,6 +147,7 @@ export function AuctionBidDtoToJSONTyped(value?: AuctionBidDto | null, ignoreDis
139
147
  'isPhoneVerified': value['isPhoneVerified'],
140
148
  'isKycCompleted': value['isKycCompleted'],
141
149
  'metrics': AuctionBidMetricsDtoToJSON(value['metrics']),
150
+ 'email': value['email'],
142
151
  };
143
152
  }
144
153
 
@@ -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 BuyerAccessTokenDto
20
+ */
21
+ export interface BuyerAccessTokenDto {
22
+ /**
23
+ * The generated access token ID for the buyer
24
+ * @type {string}
25
+ * @memberof BuyerAccessTokenDto
26
+ */
27
+ token: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the BuyerAccessTokenDto interface.
32
+ */
33
+ export function instanceOfBuyerAccessTokenDto(value: object): value is BuyerAccessTokenDto {
34
+ if (!('token' in value) || value['token'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function BuyerAccessTokenDtoFromJSON(json: any): BuyerAccessTokenDto {
39
+ return BuyerAccessTokenDtoFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function BuyerAccessTokenDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerAccessTokenDto {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'token': json['token'],
49
+ };
50
+ }
51
+
52
+ export function BuyerAccessTokenDtoToJSON(json: any): BuyerAccessTokenDto {
53
+ return BuyerAccessTokenDtoToJSONTyped(json, false);
54
+ }
55
+
56
+ export function BuyerAccessTokenDtoToJSONTyped(value?: BuyerAccessTokenDto | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'token': value['token'],
64
+ };
65
+ }
66
+
@@ -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