@randock/nameshift-api-client 0.0.563 → 0.0.564

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 +4 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +28 -1
  4. package/dist/apis/AdminApi.js +113 -0
  5. package/dist/apis/LeadsApi.d.ts +28 -1
  6. package/dist/apis/LeadsApi.js +129 -0
  7. package/dist/models/AcceptHighestBuyerLeadOfferInput.d.ts +32 -0
  8. package/dist/models/AcceptHighestBuyerLeadOfferInput.js +51 -0
  9. package/dist/models/BuyerNotificationDto.d.ts +1 -0
  10. package/dist/models/BuyerNotificationDto.js +1 -0
  11. package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
  12. package/dist/models/BuyerNotificationListItemDto.js +1 -0
  13. package/dist/models/LeadOfferSummaryCannotAcceptReason.d.ts +29 -0
  14. package/dist/models/LeadOfferSummaryCannotAcceptReason.js +55 -0
  15. package/dist/models/LeadOfferSummaryDto.d.ts +52 -0
  16. package/dist/models/LeadOfferSummaryDto.js +65 -0
  17. package/dist/models/LeadOfferSummaryItemDto.d.ts +61 -0
  18. package/dist/models/LeadOfferSummaryItemDto.js +74 -0
  19. package/dist/models/UserNotificationDto.d.ts +1 -0
  20. package/dist/models/UserNotificationDto.js +1 -0
  21. package/dist/models/UserNotificationListItemDto.d.ts +1 -0
  22. package/dist/models/UserNotificationListItemDto.js +1 -0
  23. package/dist/models/index.d.ts +4 -0
  24. package/dist/models/index.js +4 -0
  25. package/package.json +1 -1
  26. package/src/apis/AdminApi.ts +110 -0
  27. package/src/apis/LeadsApi.ts +118 -0
  28. package/src/models/AcceptHighestBuyerLeadOfferInput.ts +66 -0
  29. package/src/models/BuyerNotificationDto.ts +1 -0
  30. package/src/models/BuyerNotificationListItemDto.ts +1 -0
  31. package/src/models/LeadOfferSummaryCannotAcceptReason.ts +57 -0
  32. package/src/models/LeadOfferSummaryDto.ts +110 -0
  33. package/src/models/LeadOfferSummaryItemDto.ts +114 -0
  34. package/src/models/UserNotificationDto.ts +1 -0
  35. package/src/models/UserNotificationListItemDto.ts +1 -0
  36. package/src/models/index.ts +4 -0
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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.LeadOfferSummaryCannotAcceptReason = void 0;
17
+ exports.instanceOfLeadOfferSummaryCannotAcceptReason = instanceOfLeadOfferSummaryCannotAcceptReason;
18
+ exports.LeadOfferSummaryCannotAcceptReasonFromJSON = LeadOfferSummaryCannotAcceptReasonFromJSON;
19
+ exports.LeadOfferSummaryCannotAcceptReasonFromJSONTyped = LeadOfferSummaryCannotAcceptReasonFromJSONTyped;
20
+ exports.LeadOfferSummaryCannotAcceptReasonToJSON = LeadOfferSummaryCannotAcceptReasonToJSON;
21
+ exports.LeadOfferSummaryCannotAcceptReasonToJSONTyped = LeadOfferSummaryCannotAcceptReasonToJSONTyped;
22
+ /**
23
+ * Why the highest buyer offer cannot be accepted, if so.
24
+ * @export
25
+ */
26
+ exports.LeadOfferSummaryCannotAcceptReason = {
27
+ NO_BUYER_OFFER: 'no_buyer_offer',
28
+ LEAD_NOT_NEGOTIABLE: 'lead_not_negotiable',
29
+ MANUAL_LEAD: 'manual_lead',
30
+ DOMAIN_IS_LOCKED: 'domain_is_locked',
31
+ DOMAIN_HAS_AN_AUCTION: 'domain_has_an_auction',
32
+ DOMAIN_NOT_PURCHASABLE: 'domain_not_purchasable'
33
+ };
34
+ function instanceOfLeadOfferSummaryCannotAcceptReason(value) {
35
+ for (var key in exports.LeadOfferSummaryCannotAcceptReason) {
36
+ if (Object.prototype.hasOwnProperty.call(exports.LeadOfferSummaryCannotAcceptReason, key)) {
37
+ if (exports.LeadOfferSummaryCannotAcceptReason[key] === value) {
38
+ return true;
39
+ }
40
+ }
41
+ }
42
+ return false;
43
+ }
44
+ function LeadOfferSummaryCannotAcceptReasonFromJSON(json) {
45
+ return LeadOfferSummaryCannotAcceptReasonFromJSONTyped(json, false);
46
+ }
47
+ function LeadOfferSummaryCannotAcceptReasonFromJSONTyped(json, ignoreDiscriminator) {
48
+ return json;
49
+ }
50
+ function LeadOfferSummaryCannotAcceptReasonToJSON(value) {
51
+ return value;
52
+ }
53
+ function LeadOfferSummaryCannotAcceptReasonToJSONTyped(value, ignoreDiscriminator) {
54
+ return value;
55
+ }
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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 { LeadOfferSummaryCannotAcceptReason } from './LeadOfferSummaryCannotAcceptReason';
13
+ import type { LeadOfferSummaryItemDto } from './LeadOfferSummaryItemDto';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface LeadOfferSummaryDto
18
+ */
19
+ export interface LeadOfferSummaryDto {
20
+ /**
21
+ * The highest plain purchase offer the buyer made and did not withdraw, in the domain currency. Null when there is none.
22
+ * @type {LeadOfferSummaryItemDto}
23
+ * @memberof LeadOfferSummaryDto
24
+ */
25
+ highestBuyerOffer: LeadOfferSummaryItemDto | null;
26
+ /**
27
+ * The lowest plain purchase offer the seller side (seller or price negotiator) made and did not withdraw, in the domain currency. Null when there is none.
28
+ * @type {LeadOfferSummaryItemDto}
29
+ * @memberof LeadOfferSummaryDto
30
+ */
31
+ lowestSellerOffer: LeadOfferSummaryItemDto | null;
32
+ /**
33
+ * Whether the highest buyer offer can be accepted right now with the accept-highest-buyer-offer endpoint.
34
+ * @type {boolean}
35
+ * @memberof LeadOfferSummaryDto
36
+ */
37
+ canAcceptHighestBuyerOffer: boolean;
38
+ /**
39
+ * Why the highest buyer offer cannot be accepted, if so.
40
+ * @type {LeadOfferSummaryCannotAcceptReason}
41
+ * @memberof LeadOfferSummaryDto
42
+ */
43
+ cannotAcceptReason: LeadOfferSummaryCannotAcceptReason | null;
44
+ }
45
+ /**
46
+ * Check if a given object implements the LeadOfferSummaryDto interface.
47
+ */
48
+ export declare function instanceOfLeadOfferSummaryDto(value: object): value is LeadOfferSummaryDto;
49
+ export declare function LeadOfferSummaryDtoFromJSON(json: any): LeadOfferSummaryDto;
50
+ export declare function LeadOfferSummaryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadOfferSummaryDto;
51
+ export declare function LeadOfferSummaryDtoToJSON(json: any): LeadOfferSummaryDto;
52
+ export declare function LeadOfferSummaryDtoToJSONTyped(value?: LeadOfferSummaryDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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.instanceOfLeadOfferSummaryDto = instanceOfLeadOfferSummaryDto;
17
+ exports.LeadOfferSummaryDtoFromJSON = LeadOfferSummaryDtoFromJSON;
18
+ exports.LeadOfferSummaryDtoFromJSONTyped = LeadOfferSummaryDtoFromJSONTyped;
19
+ exports.LeadOfferSummaryDtoToJSON = LeadOfferSummaryDtoToJSON;
20
+ exports.LeadOfferSummaryDtoToJSONTyped = LeadOfferSummaryDtoToJSONTyped;
21
+ var LeadOfferSummaryCannotAcceptReason_1 = require("./LeadOfferSummaryCannotAcceptReason");
22
+ var LeadOfferSummaryItemDto_1 = require("./LeadOfferSummaryItemDto");
23
+ /**
24
+ * Check if a given object implements the LeadOfferSummaryDto interface.
25
+ */
26
+ function instanceOfLeadOfferSummaryDto(value) {
27
+ if (!('highestBuyerOffer' in value) || value['highestBuyerOffer'] === undefined)
28
+ return false;
29
+ if (!('lowestSellerOffer' in value) || value['lowestSellerOffer'] === undefined)
30
+ return false;
31
+ if (!('canAcceptHighestBuyerOffer' in value) || value['canAcceptHighestBuyerOffer'] === undefined)
32
+ return false;
33
+ if (!('cannotAcceptReason' in value) || value['cannotAcceptReason'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function LeadOfferSummaryDtoFromJSON(json) {
38
+ return LeadOfferSummaryDtoFromJSONTyped(json, false);
39
+ }
40
+ function LeadOfferSummaryDtoFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'highestBuyerOffer': (0, LeadOfferSummaryItemDto_1.LeadOfferSummaryItemDtoFromJSON)(json['highestBuyerOffer']),
46
+ 'lowestSellerOffer': (0, LeadOfferSummaryItemDto_1.LeadOfferSummaryItemDtoFromJSON)(json['lowestSellerOffer']),
47
+ 'canAcceptHighestBuyerOffer': json['canAcceptHighestBuyerOffer'],
48
+ 'cannotAcceptReason': (0, LeadOfferSummaryCannotAcceptReason_1.LeadOfferSummaryCannotAcceptReasonFromJSON)(json['cannotAcceptReason']),
49
+ };
50
+ }
51
+ function LeadOfferSummaryDtoToJSON(json) {
52
+ return LeadOfferSummaryDtoToJSONTyped(json, false);
53
+ }
54
+ function LeadOfferSummaryDtoToJSONTyped(value, ignoreDiscriminator) {
55
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'highestBuyerOffer': (0, LeadOfferSummaryItemDto_1.LeadOfferSummaryItemDtoToJSON)(value['highestBuyerOffer']),
61
+ 'lowestSellerOffer': (0, LeadOfferSummaryItemDto_1.LeadOfferSummaryItemDtoToJSON)(value['lowestSellerOffer']),
62
+ 'canAcceptHighestBuyerOffer': value['canAcceptHighestBuyerOffer'],
63
+ 'cannotAcceptReason': (0, LeadOfferSummaryCannotAcceptReason_1.LeadOfferSummaryCannotAcceptReasonToJSON)(value['cannotAcceptReason']),
64
+ };
65
+ }
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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 { MoneyDto } from './MoneyDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface LeadOfferSummaryItemDto
17
+ */
18
+ export interface LeadOfferSummaryItemDto {
19
+ /**
20
+ * The id of the offer message in the lead conversation.
21
+ * @type {string}
22
+ * @memberof LeadOfferSummaryItemDto
23
+ */
24
+ leadMessageId: string;
25
+ /**
26
+ * The amount offered.
27
+ * @type {MoneyDto}
28
+ * @memberof LeadOfferSummaryItemDto
29
+ */
30
+ price: MoneyDto;
31
+ /**
32
+ * Who made the offer.
33
+ * @type {string}
34
+ * @memberof LeadOfferSummaryItemDto
35
+ */
36
+ origin: LeadOfferSummaryItemDtoOriginEnum;
37
+ /**
38
+ * When the offer was made.
39
+ * @type {Date}
40
+ * @memberof LeadOfferSummaryItemDto
41
+ */
42
+ createdAt: Date;
43
+ }
44
+ /**
45
+ * @export
46
+ */
47
+ export declare const LeadOfferSummaryItemDtoOriginEnum: {
48
+ readonly BUYER: "buyer";
49
+ readonly SELLER: "seller";
50
+ readonly AI: "ai";
51
+ readonly ADMIN: "admin";
52
+ };
53
+ export type LeadOfferSummaryItemDtoOriginEnum = typeof LeadOfferSummaryItemDtoOriginEnum[keyof typeof LeadOfferSummaryItemDtoOriginEnum];
54
+ /**
55
+ * Check if a given object implements the LeadOfferSummaryItemDto interface.
56
+ */
57
+ export declare function instanceOfLeadOfferSummaryItemDto(value: object): value is LeadOfferSummaryItemDto;
58
+ export declare function LeadOfferSummaryItemDtoFromJSON(json: any): LeadOfferSummaryItemDto;
59
+ export declare function LeadOfferSummaryItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadOfferSummaryItemDto;
60
+ export declare function LeadOfferSummaryItemDtoToJSON(json: any): LeadOfferSummaryItemDto;
61
+ export declare function LeadOfferSummaryItemDtoToJSONTyped(value?: LeadOfferSummaryItemDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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.LeadOfferSummaryItemDtoOriginEnum = void 0;
17
+ exports.instanceOfLeadOfferSummaryItemDto = instanceOfLeadOfferSummaryItemDto;
18
+ exports.LeadOfferSummaryItemDtoFromJSON = LeadOfferSummaryItemDtoFromJSON;
19
+ exports.LeadOfferSummaryItemDtoFromJSONTyped = LeadOfferSummaryItemDtoFromJSONTyped;
20
+ exports.LeadOfferSummaryItemDtoToJSON = LeadOfferSummaryItemDtoToJSON;
21
+ exports.LeadOfferSummaryItemDtoToJSONTyped = LeadOfferSummaryItemDtoToJSONTyped;
22
+ var MoneyDto_1 = require("./MoneyDto");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.LeadOfferSummaryItemDtoOriginEnum = {
27
+ BUYER: 'buyer',
28
+ SELLER: 'seller',
29
+ AI: 'ai',
30
+ ADMIN: 'admin'
31
+ };
32
+ /**
33
+ * Check if a given object implements the LeadOfferSummaryItemDto interface.
34
+ */
35
+ function instanceOfLeadOfferSummaryItemDto(value) {
36
+ if (!('leadMessageId' in value) || value['leadMessageId'] === undefined)
37
+ return false;
38
+ if (!('price' in value) || value['price'] === undefined)
39
+ return false;
40
+ if (!('origin' in value) || value['origin'] === undefined)
41
+ return false;
42
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
43
+ return false;
44
+ return true;
45
+ }
46
+ function LeadOfferSummaryItemDtoFromJSON(json) {
47
+ return LeadOfferSummaryItemDtoFromJSONTyped(json, false);
48
+ }
49
+ function LeadOfferSummaryItemDtoFromJSONTyped(json, ignoreDiscriminator) {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+ 'leadMessageId': json['leadMessageId'],
55
+ 'price': (0, MoneyDto_1.MoneyDtoFromJSON)(json['price']),
56
+ 'origin': json['origin'],
57
+ 'createdAt': (new Date(json['createdAt'])),
58
+ };
59
+ }
60
+ function LeadOfferSummaryItemDtoToJSON(json) {
61
+ return LeadOfferSummaryItemDtoToJSONTyped(json, false);
62
+ }
63
+ function LeadOfferSummaryItemDtoToJSONTyped(value, ignoreDiscriminator) {
64
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+ return {
69
+ 'leadMessageId': value['leadMessageId'],
70
+ 'price': (0, MoneyDto_1.MoneyDtoToJSON)(value['price']),
71
+ 'origin': value['origin'],
72
+ 'createdAt': ((value['createdAt']).toISOString()),
73
+ };
74
+ }
@@ -102,6 +102,7 @@ export declare const UserNotificationDtoTypeEnum: {
102
102
  readonly DOMAIN_OFFER_VERIFIED_BUYER_ACCESS_LINK_EMAIL: "domain_offer_verified_buyer_access_link_email";
103
103
  readonly DOMAIN_OFFER_RECEIVED_BUYER_ACCESS_LINK_EMAIL: "domain_offer_received_buyer_access_link_email";
104
104
  readonly DOMAIN_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: "domain_offer_accepted_continue_order_email";
105
+ readonly DOMAIN_EARLIER_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: "domain_earlier_offer_accepted_continue_order_email";
105
106
  readonly DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL: "domain_offer_accepted_continue_lease_to_own_email";
106
107
  readonly DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL_INSTALLMENTS_RANGE: "domain_offer_accepted_continue_lease_to_own_email_installments_range";
107
108
  readonly DOMAIN_OFFER_ACCEPTED_CONTINUE_RENT_EMAIL: "domain_offer_accepted_continue_rent_email";
@@ -63,6 +63,7 @@ exports.UserNotificationDtoTypeEnum = {
63
63
  DOMAIN_OFFER_VERIFIED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_verified_buyer_access_link_email',
64
64
  DOMAIN_OFFER_RECEIVED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_received_buyer_access_link_email',
65
65
  DOMAIN_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: 'domain_offer_accepted_continue_order_email',
66
+ DOMAIN_EARLIER_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: 'domain_earlier_offer_accepted_continue_order_email',
66
67
  DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL: 'domain_offer_accepted_continue_lease_to_own_email',
67
68
  DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL_INSTALLMENTS_RANGE: 'domain_offer_accepted_continue_lease_to_own_email_installments_range',
68
69
  DOMAIN_OFFER_ACCEPTED_CONTINUE_RENT_EMAIL: 'domain_offer_accepted_continue_rent_email',
@@ -95,6 +95,7 @@ export declare const UserNotificationListItemDtoTypeEnum: {
95
95
  readonly DOMAIN_OFFER_VERIFIED_BUYER_ACCESS_LINK_EMAIL: "domain_offer_verified_buyer_access_link_email";
96
96
  readonly DOMAIN_OFFER_RECEIVED_BUYER_ACCESS_LINK_EMAIL: "domain_offer_received_buyer_access_link_email";
97
97
  readonly DOMAIN_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: "domain_offer_accepted_continue_order_email";
98
+ readonly DOMAIN_EARLIER_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: "domain_earlier_offer_accepted_continue_order_email";
98
99
  readonly DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL: "domain_offer_accepted_continue_lease_to_own_email";
99
100
  readonly DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL_INSTALLMENTS_RANGE: "domain_offer_accepted_continue_lease_to_own_email_installments_range";
100
101
  readonly DOMAIN_OFFER_ACCEPTED_CONTINUE_RENT_EMAIL: "domain_offer_accepted_continue_rent_email";
@@ -62,6 +62,7 @@ exports.UserNotificationListItemDtoTypeEnum = {
62
62
  DOMAIN_OFFER_VERIFIED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_verified_buyer_access_link_email',
63
63
  DOMAIN_OFFER_RECEIVED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_received_buyer_access_link_email',
64
64
  DOMAIN_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: 'domain_offer_accepted_continue_order_email',
65
+ DOMAIN_EARLIER_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: 'domain_earlier_offer_accepted_continue_order_email',
65
66
  DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL: 'domain_offer_accepted_continue_lease_to_own_email',
66
67
  DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL_INSTALLMENTS_RANGE: 'domain_offer_accepted_continue_lease_to_own_email_installments_range',
67
68
  DOMAIN_OFFER_ACCEPTED_CONTINUE_RENT_EMAIL: 'domain_offer_accepted_continue_rent_email',
@@ -1,3 +1,4 @@
1
+ export * from './AcceptHighestBuyerLeadOfferInput';
1
2
  export * from './AccountAliasDto';
2
3
  export * from './AccountAliasInput';
3
4
  export * from './AccountBankAccountDetailsDto';
@@ -436,6 +437,9 @@ export * from './LeadOfferDto';
436
437
  export * from './LeadOfferExpirationConfigurationDto';
437
438
  export * from './LeadOfferExpirationConfigurationInput';
438
439
  export * from './LeadOfferExpirationDurationInput';
440
+ export * from './LeadOfferSummaryCannotAcceptReason';
441
+ export * from './LeadOfferSummaryDto';
442
+ export * from './LeadOfferSummaryItemDto';
439
443
  export * from './LeadPhoneVerificationDeliveryDto';
440
444
  export * from './LeadPhoneVerificationDto';
441
445
  export * from './LeadPhoneVerificationReason';
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
+ __exportStar(require("./AcceptHighestBuyerLeadOfferInput"), exports);
19
20
  __exportStar(require("./AccountAliasDto"), exports);
20
21
  __exportStar(require("./AccountAliasInput"), exports);
21
22
  __exportStar(require("./AccountBankAccountDetailsDto"), exports);
@@ -454,6 +455,9 @@ __exportStar(require("./LeadOfferDto"), exports);
454
455
  __exportStar(require("./LeadOfferExpirationConfigurationDto"), exports);
455
456
  __exportStar(require("./LeadOfferExpirationConfigurationInput"), exports);
456
457
  __exportStar(require("./LeadOfferExpirationDurationInput"), exports);
458
+ __exportStar(require("./LeadOfferSummaryCannotAcceptReason"), exports);
459
+ __exportStar(require("./LeadOfferSummaryDto"), exports);
460
+ __exportStar(require("./LeadOfferSummaryItemDto"), exports);
457
461
  __exportStar(require("./LeadPhoneVerificationDeliveryDto"), exports);
458
462
  __exportStar(require("./LeadPhoneVerificationDto"), exports);
459
463
  __exportStar(require("./LeadPhoneVerificationReason"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.563",
3
+ "version": "0.0.564",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -15,6 +15,7 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ AcceptHighestBuyerLeadOfferInput,
18
19
  AccountNameshiftCommissionByTypeDto,
19
20
  AccountNoteListDto,
20
21
  AccountPaymentMethodProfileDto,
@@ -61,6 +62,7 @@ import type {
61
62
  IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto,
62
63
  LeadEnrichmentDto,
63
64
  LeadMessageDto,
65
+ LeadOfferSummaryDto,
64
66
  LedgerMutationsDto,
65
67
  LinkBankDepositToBankAccountInput,
66
68
  LinkBankDepositToInvoiceInput,
@@ -106,6 +108,8 @@ import type {
106
108
  ValidationException,
107
109
  } from '../models/index';
108
110
  import {
111
+ AcceptHighestBuyerLeadOfferInputFromJSON,
112
+ AcceptHighestBuyerLeadOfferInputToJSON,
109
113
  AccountNameshiftCommissionByTypeDtoFromJSON,
110
114
  AccountNameshiftCommissionByTypeDtoToJSON,
111
115
  AccountNoteListDtoFromJSON,
@@ -198,6 +202,8 @@ import {
198
202
  LeadEnrichmentDtoToJSON,
199
203
  LeadMessageDtoFromJSON,
200
204
  LeadMessageDtoToJSON,
205
+ LeadOfferSummaryDtoFromJSON,
206
+ LeadOfferSummaryDtoToJSON,
201
207
  LedgerMutationsDtoFromJSON,
202
208
  LedgerMutationsDtoToJSON,
203
209
  LinkBankDepositToBankAccountInputFromJSON,
@@ -286,6 +292,11 @@ import {
286
292
  ValidationExceptionToJSON,
287
293
  } from '../models/index';
288
294
 
295
+ export interface AdminApiAcceptHighestBuyerAdminLeadOfferRequest {
296
+ leadId: string;
297
+ acceptHighestBuyerLeadOfferInput: AcceptHighestBuyerLeadOfferInput;
298
+ }
299
+
289
300
  export interface AdminApiAdminDeleteAuctionRequest {
290
301
  auctionId: string;
291
302
  }
@@ -485,6 +496,10 @@ export interface AdminApiGetAdminLeadEnrichmentRequest {
485
496
  leadId: string;
486
497
  }
487
498
 
499
+ export interface AdminApiGetAdminLeadOfferSummaryRequest {
500
+ leadId: string;
501
+ }
502
+
488
503
  export interface AdminApiGetAdminSalesByTldRequest {
489
504
  currency: string;
490
505
  accountId?: string;
@@ -845,6 +860,58 @@ export interface AdminApiVerifyBankAccountRequest {
845
860
  */
846
861
  export class AdminApi extends runtime.BaseAPI {
847
862
 
863
+ /**
864
+ * Accepts the highest offer the buyer made, at any time, replacing the seller counter-offer that may be open. Creates the order and emails the buyer the payment link. `leadMessageId` is the offer the seller confirmed (see the offer summary); the request is refused when it is not the highest buyer offer any more. Validation error codes: NO_BUYER_OFFER, HIGHEST_BUYER_OFFER_CHANGED, MANUAL_LEAD, DOMAIN_IS_LOCKED, DOMAIN_HAS_AN_AUCTION, DOMAIN_IS_NOT_PURCHASABLE, MESSAGE_LIMIT_REACHED. The admin acts for the seller; the message is written as the seller. Requires admin bearer authentication.
865
+ * Accept the highest buyer offer
866
+ */
867
+ async acceptHighestBuyerAdminLeadOfferRaw(requestParameters: AdminApiAcceptHighestBuyerAdminLeadOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
868
+ if (requestParameters['leadId'] == null) {
869
+ throw new runtime.RequiredError(
870
+ 'leadId',
871
+ 'Required parameter "leadId" was null or undefined when calling acceptHighestBuyerAdminLeadOffer().'
872
+ );
873
+ }
874
+
875
+ if (requestParameters['acceptHighestBuyerLeadOfferInput'] == null) {
876
+ throw new runtime.RequiredError(
877
+ 'acceptHighestBuyerLeadOfferInput',
878
+ 'Required parameter "acceptHighestBuyerLeadOfferInput" was null or undefined when calling acceptHighestBuyerAdminLeadOffer().'
879
+ );
880
+ }
881
+
882
+ const queryParameters: any = {};
883
+
884
+ const headerParameters: runtime.HTTPHeaders = {};
885
+
886
+ headerParameters['Content-Type'] = 'application/json';
887
+
888
+ if (this.configuration && this.configuration.accessToken) {
889
+ const token = this.configuration.accessToken;
890
+ const tokenString = await token("bearer", []);
891
+
892
+ if (tokenString) {
893
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
894
+ }
895
+ }
896
+ const response = await this.request({
897
+ path: `/admin/leads/{leadId}/status/accept-highest-buyer-offer`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
898
+ method: 'POST',
899
+ headers: headerParameters,
900
+ query: queryParameters,
901
+ body: AcceptHighestBuyerLeadOfferInputToJSON(requestParameters['acceptHighestBuyerLeadOfferInput']),
902
+ }, initOverrides);
903
+
904
+ return new runtime.VoidApiResponse(response);
905
+ }
906
+
907
+ /**
908
+ * Accepts the highest offer the buyer made, at any time, replacing the seller counter-offer that may be open. Creates the order and emails the buyer the payment link. `leadMessageId` is the offer the seller confirmed (see the offer summary); the request is refused when it is not the highest buyer offer any more. Validation error codes: NO_BUYER_OFFER, HIGHEST_BUYER_OFFER_CHANGED, MANUAL_LEAD, DOMAIN_IS_LOCKED, DOMAIN_HAS_AN_AUCTION, DOMAIN_IS_NOT_PURCHASABLE, MESSAGE_LIMIT_REACHED. The admin acts for the seller; the message is written as the seller. Requires admin bearer authentication.
909
+ * Accept the highest buyer offer
910
+ */
911
+ async acceptHighestBuyerAdminLeadOffer(requestParameters: AdminApiAcceptHighestBuyerAdminLeadOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
912
+ await this.acceptHighestBuyerAdminLeadOfferRaw(requestParameters, initOverrides);
913
+ }
914
+
848
915
  /**
849
916
  * Force-deletes an auction regardless of its current status. Requires admin privileges.
850
917
  * Admin delete auction
@@ -2841,6 +2908,49 @@ export class AdminApi extends runtime.BaseAPI {
2841
2908
  return await response.value();
2842
2909
  }
2843
2910
 
2911
+ /**
2912
+ * Returns the highest buyer offer and the lowest seller offer of the negotiation (plain purchase offers in the domain currency, not withdrawn), and whether the highest buyer offer can be accepted now, for any account. Requires admin bearer authentication.
2913
+ * Get the offer summary of a lead
2914
+ */
2915
+ async getAdminLeadOfferSummaryRaw(requestParameters: AdminApiGetAdminLeadOfferSummaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadOfferSummaryDto>> {
2916
+ if (requestParameters['leadId'] == null) {
2917
+ throw new runtime.RequiredError(
2918
+ 'leadId',
2919
+ 'Required parameter "leadId" was null or undefined when calling getAdminLeadOfferSummary().'
2920
+ );
2921
+ }
2922
+
2923
+ const queryParameters: any = {};
2924
+
2925
+ const headerParameters: runtime.HTTPHeaders = {};
2926
+
2927
+ if (this.configuration && this.configuration.accessToken) {
2928
+ const token = this.configuration.accessToken;
2929
+ const tokenString = await token("bearer", []);
2930
+
2931
+ if (tokenString) {
2932
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2933
+ }
2934
+ }
2935
+ const response = await this.request({
2936
+ path: `/admin/leads/{leadId}/offer-summary`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
2937
+ method: 'GET',
2938
+ headers: headerParameters,
2939
+ query: queryParameters,
2940
+ }, initOverrides);
2941
+
2942
+ return new runtime.JSONApiResponse(response, (jsonValue) => LeadOfferSummaryDtoFromJSON(jsonValue));
2943
+ }
2944
+
2945
+ /**
2946
+ * Returns the highest buyer offer and the lowest seller offer of the negotiation (plain purchase offers in the domain currency, not withdrawn), and whether the highest buyer offer can be accepted now, for any account. Requires admin bearer authentication.
2947
+ * Get the offer summary of a lead
2948
+ */
2949
+ async getAdminLeadOfferSummary(requestParameters: AdminApiGetAdminLeadOfferSummaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadOfferSummaryDto> {
2950
+ const response = await this.getAdminLeadOfferSummaryRaw(requestParameters, initOverrides);
2951
+ return await response.value();
2952
+ }
2953
+
2844
2954
  /**
2845
2955
  * Returns sales statistics grouped by top-level domain, optionally filtered by account, currency, and date range.
2846
2956
  * Get admin sales by TLD