@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,6 +93,9 @@ src/models/BillingInformationDto.ts
93
93
  src/models/BulkMarkBuyerNotificationsAsReadInputDto.ts
94
94
  src/models/BulkMarkNotificationsAsReadInputDto.ts
95
95
  src/models/BulkUpdateDomainsWithFiltersInput.ts
96
+ src/models/BuyerAccessTokenDto.ts
97
+ src/models/BuyerAuctionDetailDto.ts
98
+ src/models/BuyerAuctionDetailDtoDomain.ts
96
99
  src/models/BuyerAuctionListItemDto.ts
97
100
  src/models/BuyerAuctionListItemDtoDomainInformation.ts
98
101
  src/models/BuyerAuctionListItemDtoSellerAccount.ts
@@ -350,6 +353,7 @@ src/models/TimeTableConfigurationDto.ts
350
353
  src/models/TimeTableConfigurationInput.ts
351
354
  src/models/UkBankAccountDetails.ts
352
355
  src/models/UpdateAccountBillingInformationInput.ts
356
+ src/models/UpdateAuctionMuteStatusInput.ts
353
357
  src/models/UpdateBuyerDomainTransferIpsTagInputDto.ts
354
358
  src/models/UpdateBuyerNotificationSettingsInput.ts
355
359
  src/models/UpdateDomainInput.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.337
1
+ ## @randock/nameshift-api-client@0.0.339
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.337 --save
39
+ npm install @randock/nameshift-api-client@0.0.339 --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
- 6aea216a87c7c2346c842c02a0ece3d1fdccd5759936ab9e9492e573ac689d7095147214ae2aff6d93ed43ebe48d36fd
47
+ 73295eda911703f4d89099f60784319702adb90def308d3f4b2b19ac8a0a2eaa7fecc5735e909b3eaf79d3406ead8f21
@@ -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, 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
  }
@@ -241,6 +248,22 @@ export declare class BuyersApi extends runtime.BaseAPI {
241
248
  * Download buyer notification attachment
242
249
  */
243
250
  downloadBuyerNotificationAttachment(requestParameters: BuyersApiDownloadBuyerNotificationAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
251
+ /**
252
+ *
253
+ */
254
+ generateBuyerAccessTokenRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerAccessTokenDto>>;
255
+ /**
256
+ *
257
+ */
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>;
244
267
  /**
245
268
  *
246
269
  */
@@ -393,6 +416,14 @@ export declare class BuyersApi extends runtime.BaseAPI {
393
416
  *
394
417
  */
395
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>;
396
427
  /**
397
428
  *
398
429
  */
@@ -717,6 +717,109 @@ var BuyersApi = /** @class */ (function (_super) {
717
717
  });
718
718
  });
719
719
  };
720
+ /**
721
+ *
722
+ */
723
+ BuyersApi.prototype.generateBuyerAccessTokenRaw = function (initOverrides) {
724
+ return __awaiter(this, void 0, void 0, function () {
725
+ var queryParameters, headerParameters, token, tokenString, response;
726
+ return __generator(this, function (_a) {
727
+ switch (_a.label) {
728
+ case 0:
729
+ queryParameters = {};
730
+ headerParameters = {};
731
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
732
+ token = this.configuration.accessToken;
733
+ return [4 /*yield*/, token("bearer", [])];
734
+ case 1:
735
+ tokenString = _a.sent();
736
+ if (tokenString) {
737
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
738
+ }
739
+ _a.label = 2;
740
+ case 2: return [4 /*yield*/, this.request({
741
+ path: "/buyers/private/access-token",
742
+ method: 'GET',
743
+ headers: headerParameters,
744
+ query: queryParameters,
745
+ }, initOverrides)];
746
+ case 3:
747
+ response = _a.sent();
748
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BuyerAccessTokenDtoFromJSON)(jsonValue); })];
749
+ }
750
+ });
751
+ });
752
+ };
753
+ /**
754
+ *
755
+ */
756
+ BuyersApi.prototype.generateBuyerAccessToken = function (initOverrides) {
757
+ return __awaiter(this, void 0, void 0, function () {
758
+ var response;
759
+ return __generator(this, function (_a) {
760
+ switch (_a.label) {
761
+ case 0: return [4 /*yield*/, this.generateBuyerAccessTokenRaw(initOverrides)];
762
+ case 1:
763
+ response = _a.sent();
764
+ return [4 /*yield*/, response.value()];
765
+ case 2: return [2 /*return*/, _a.sent()];
766
+ }
767
+ });
768
+ });
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
+ };
720
823
  /**
721
824
  *
722
825
  */
@@ -1782,6 +1885,62 @@ var BuyersApi = /** @class */ (function (_super) {
1782
1885
  });
1783
1886
  });
1784
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
+ };
1785
1944
  /**
1786
1945
  *
1787
1946
  */
@@ -65,6 +65,12 @@ export interface AuctionBidDto {
65
65
  * @memberof AuctionBidDto
66
66
  */
67
67
  metrics: AuctionBidMetricsDto;
68
+ /**
69
+ * Auction Bidder email
70
+ * @type {string}
71
+ * @memberof AuctionBidDto
72
+ */
73
+ email: string | null;
68
74
  }
69
75
  /**
70
76
  * Check if a given object implements the AuctionBidDto interface.
@@ -40,6 +40,8 @@ function instanceOfAuctionBidDto(value) {
40
40
  return false;
41
41
  if (!('metrics' in value) || value['metrics'] === undefined)
42
42
  return false;
43
+ if (!('email' in value) || value['email'] === undefined)
44
+ return false;
43
45
  return true;
44
46
  }
45
47
  function AuctionBidDtoFromJSON(json) {
@@ -58,6 +60,7 @@ function AuctionBidDtoFromJSONTyped(json, ignoreDiscriminator) {
58
60
  'isPhoneVerified': json['isPhoneVerified'],
59
61
  'isKycCompleted': json['isKycCompleted'],
60
62
  'metrics': (0, AuctionBidMetricsDto_1.AuctionBidMetricsDtoFromJSON)(json['metrics']),
63
+ 'email': json['email'],
61
64
  };
62
65
  }
63
66
  function AuctionBidDtoToJSON(json) {
@@ -77,5 +80,6 @@ function AuctionBidDtoToJSONTyped(value, ignoreDiscriminator) {
77
80
  'isPhoneVerified': value['isPhoneVerified'],
78
81
  'isKycCompleted': value['isKycCompleted'],
79
82
  'metrics': (0, AuctionBidMetricsDto_1.AuctionBidMetricsDtoToJSON)(value['metrics']),
83
+ 'email': value['email'],
80
84
  };
81
85
  }
@@ -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 BuyerAccessTokenDto
16
+ */
17
+ export interface BuyerAccessTokenDto {
18
+ /**
19
+ * The generated access token ID for the buyer
20
+ * @type {string}
21
+ * @memberof BuyerAccessTokenDto
22
+ */
23
+ token: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the BuyerAccessTokenDto interface.
27
+ */
28
+ export declare function instanceOfBuyerAccessTokenDto(value: object): value is BuyerAccessTokenDto;
29
+ export declare function BuyerAccessTokenDtoFromJSON(json: any): BuyerAccessTokenDto;
30
+ export declare function BuyerAccessTokenDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerAccessTokenDto;
31
+ export declare function BuyerAccessTokenDtoToJSON(json: any): BuyerAccessTokenDto;
32
+ export declare function BuyerAccessTokenDtoToJSONTyped(value?: BuyerAccessTokenDto | 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.instanceOfBuyerAccessTokenDto = instanceOfBuyerAccessTokenDto;
17
+ exports.BuyerAccessTokenDtoFromJSON = BuyerAccessTokenDtoFromJSON;
18
+ exports.BuyerAccessTokenDtoFromJSONTyped = BuyerAccessTokenDtoFromJSONTyped;
19
+ exports.BuyerAccessTokenDtoToJSON = BuyerAccessTokenDtoToJSON;
20
+ exports.BuyerAccessTokenDtoToJSONTyped = BuyerAccessTokenDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the BuyerAccessTokenDto interface.
23
+ */
24
+ function instanceOfBuyerAccessTokenDto(value) {
25
+ if (!('token' in value) || value['token'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function BuyerAccessTokenDtoFromJSON(json) {
30
+ return BuyerAccessTokenDtoFromJSONTyped(json, false);
31
+ }
32
+ function BuyerAccessTokenDtoFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'token': json['token'],
38
+ };
39
+ }
40
+ function BuyerAccessTokenDtoToJSON(json) {
41
+ return BuyerAccessTokenDtoToJSONTyped(json, false);
42
+ }
43
+ function BuyerAccessTokenDtoToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'token': value['token'],
50
+ };
51
+ }
@@ -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];