@randock/nameshift-api-client 0.0.487 → 0.0.488

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 (67) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +23 -1
  4. package/dist/apis/AdminApi.js +77 -0
  5. package/dist/apis/BuyersApi.d.ts +33 -1
  6. package/dist/apis/BuyersApi.js +121 -0
  7. package/dist/apis/DomainAppraisalRequestsApi.d.ts +50 -0
  8. package/dist/apis/DomainAppraisalRequestsApi.js +217 -0
  9. package/dist/apis/DomainAppraisalRequestsPublicApi.d.ts +86 -0
  10. package/dist/apis/DomainAppraisalRequestsPublicApi.js +321 -0
  11. package/dist/apis/index.d.ts +2 -0
  12. package/dist/apis/index.js +2 -0
  13. package/dist/models/AdminDomainAppraisalRequestListItemDto.d.ts +118 -0
  14. package/dist/models/AdminDomainAppraisalRequestListItemDto.js +109 -0
  15. package/dist/models/BuyerDomainAppraisalRequestCheckoutDto.d.ts +268 -0
  16. package/dist/models/BuyerDomainAppraisalRequestCheckoutDto.js +237 -0
  17. package/dist/models/BuyerInvoiceDto.d.ts +2 -2
  18. package/dist/models/BuyerSessionDto.d.ts +6 -0
  19. package/dist/models/BuyerSessionDto.js +4 -0
  20. package/dist/models/CreateAccountPaymentInput.d.ts +1 -0
  21. package/dist/models/CreateAccountPaymentInput.js +2 -1
  22. package/dist/models/CreateBuyerDomainAppraisalRequestInput.d.ts +44 -0
  23. package/dist/models/CreateBuyerDomainAppraisalRequestInput.js +59 -0
  24. package/dist/models/DomainAppraisalRequestListItemDto.d.ts +82 -0
  25. package/dist/models/DomainAppraisalRequestListItemDto.js +85 -0
  26. package/dist/models/DomainAppraisalRequestStatus.d.ts +27 -0
  27. package/dist/models/DomainAppraisalRequestStatus.js +53 -0
  28. package/dist/models/DomainAppraisalRequester.d.ts +25 -0
  29. package/dist/models/DomainAppraisalRequester.js +51 -0
  30. package/dist/models/DomainSalesInformationDto.d.ts +6 -0
  31. package/dist/models/DomainSalesInformationDto.js +4 -0
  32. package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
  33. package/dist/models/FeatureFlagListItemDto.js +2 -1
  34. package/dist/models/GetAdminDomainAppraisalRequests200Response.d.ts +47 -0
  35. package/dist/models/GetAdminDomainAppraisalRequests200Response.js +62 -0
  36. package/dist/models/GetBuyerDomainAppraisalRequests200Response.d.ts +47 -0
  37. package/dist/models/GetBuyerDomainAppraisalRequests200Response.js +62 -0
  38. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  39. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  40. package/dist/models/InvoiceDto.d.ts +2 -2
  41. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  42. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  43. package/dist/models/index.d.ts +8 -0
  44. package/dist/models/index.js +8 -0
  45. package/package.json +1 -1
  46. package/src/apis/AdminApi.ts +82 -0
  47. package/src/apis/BuyersApi.ts +113 -0
  48. package/src/apis/DomainAppraisalRequestsApi.ts +157 -0
  49. package/src/apis/DomainAppraisalRequestsPublicApi.ts +271 -0
  50. package/src/apis/index.ts +2 -0
  51. package/src/models/AdminDomainAppraisalRequestListItemDto.ts +209 -0
  52. package/src/models/BuyerDomainAppraisalRequestCheckoutDto.ts +411 -0
  53. package/src/models/BuyerInvoiceDto.ts +2 -2
  54. package/src/models/BuyerSessionDto.ts +9 -0
  55. package/src/models/CreateAccountPaymentInput.ts +2 -1
  56. package/src/models/CreateBuyerDomainAppraisalRequestInput.ts +84 -0
  57. package/src/models/DomainAppraisalRequestListItemDto.ts +155 -0
  58. package/src/models/DomainAppraisalRequestStatus.ts +55 -0
  59. package/src/models/DomainAppraisalRequester.ts +53 -0
  60. package/src/models/DomainSalesInformationDto.ts +9 -0
  61. package/src/models/FeatureFlagListItemDto.ts +2 -1
  62. package/src/models/GetAdminDomainAppraisalRequests200Response.ts +106 -0
  63. package/src/models/GetBuyerDomainAppraisalRequests200Response.ts +106 -0
  64. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  65. package/src/models/InvoiceDto.ts +2 -2
  66. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  67. package/src/models/index.ts +8 -0
@@ -0,0 +1,237 @@
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.BuyerDomainAppraisalRequestCheckoutDtoSelectedPaymentMethodEnum = exports.BuyerDomainAppraisalRequestCheckoutDtoEnabledPaymentMethodsEnum = exports.BuyerDomainAppraisalRequestCheckoutDtoStatusEnum = void 0;
17
+ exports.instanceOfBuyerDomainAppraisalRequestCheckoutDto = instanceOfBuyerDomainAppraisalRequestCheckoutDto;
18
+ exports.BuyerDomainAppraisalRequestCheckoutDtoFromJSON = BuyerDomainAppraisalRequestCheckoutDtoFromJSON;
19
+ exports.BuyerDomainAppraisalRequestCheckoutDtoFromJSONTyped = BuyerDomainAppraisalRequestCheckoutDtoFromJSONTyped;
20
+ exports.BuyerDomainAppraisalRequestCheckoutDtoToJSON = BuyerDomainAppraisalRequestCheckoutDtoToJSON;
21
+ exports.BuyerDomainAppraisalRequestCheckoutDtoToJSONTyped = BuyerDomainAppraisalRequestCheckoutDtoToJSONTyped;
22
+ var InvoiceItemDto_1 = require("./InvoiceItemDto");
23
+ var InvoiceTransactionDto_1 = require("./InvoiceTransactionDto");
24
+ var MoneyDto_1 = require("./MoneyDto");
25
+ var OrderCompanyInfoDto_1 = require("./OrderCompanyInfoDto");
26
+ var AddressDto_1 = require("./AddressDto");
27
+ var DomainAppraisalRequestStatus_1 = require("./DomainAppraisalRequestStatus");
28
+ /**
29
+ * @export
30
+ */
31
+ exports.BuyerDomainAppraisalRequestCheckoutDtoStatusEnum = {
32
+ DRAFT: 'draft',
33
+ PENDING_PAYMENT: 'pending_payment',
34
+ PAID: 'paid',
35
+ CANCELLED: 'cancelled'
36
+ };
37
+ /**
38
+ * @export
39
+ */
40
+ exports.BuyerDomainAppraisalRequestCheckoutDtoEnabledPaymentMethodsEnum = {
41
+ COMMON: 'common',
42
+ CRYPTO: 'crypto'
43
+ };
44
+ /**
45
+ * @export
46
+ */
47
+ exports.BuyerDomainAppraisalRequestCheckoutDtoSelectedPaymentMethodEnum = {
48
+ ACSS_DEBIT: 'acss_debit',
49
+ AFFIRM: 'affirm',
50
+ AFTERPAY_CLEARPAY: 'afterpay_clearpay',
51
+ ALIPAY: 'alipay',
52
+ ALMA: 'alma',
53
+ AMAZON_PAY: 'amazon_pay',
54
+ APPLE_PAY: 'apple_pay',
55
+ AU_BECS_DEBIT: 'au_becs_debit',
56
+ BACS_DEBIT: 'bacs_debit',
57
+ BANCOMAT_PAY: 'bancomat_pay',
58
+ BANCONTACT: 'bancontact',
59
+ BELFIUS: 'belfius',
60
+ BILLIE: 'billie',
61
+ BLIK: 'blik',
62
+ BOLETO: 'boleto',
63
+ BANK_TRANSFER: 'bank_transfer',
64
+ CARD: 'card',
65
+ CARD_PRESENT: 'card_present',
66
+ CASHAPP: 'cashapp',
67
+ CUSTOMER_BALANCE: 'customer_balance',
68
+ EPS: 'eps',
69
+ FPX: 'fpx',
70
+ GIFTCARD: 'giftcard',
71
+ GIROPAY: 'giropay',
72
+ GOOGLE_PAY: 'google_pay',
73
+ GOPAY: 'gopay',
74
+ GRABPAY: 'grabpay',
75
+ ID_BANK_TRANSFER: 'id_bank_transfer',
76
+ IDEAL: 'ideal',
77
+ IN3: 'in3',
78
+ INTERAC_PRESENT: 'interac_present',
79
+ KAKAO_PAY: 'kakao_pay',
80
+ KBC: 'kbc',
81
+ KLARNA: 'klarna',
82
+ KONBINI: 'konbini',
83
+ KR_CARD: 'kr_card',
84
+ LINK: 'link',
85
+ MB_WAY: 'mb_way',
86
+ MOBILEPAY: 'mobilepay',
87
+ MULTIBANCO: 'multibanco',
88
+ NAVER_PAY: 'naver_pay',
89
+ NZ_BANK_ACCOUNT: 'nz_bank_account',
90
+ OXXO: 'oxxo',
91
+ PAY_BY_BANK: 'pay_by_bank',
92
+ PAYCO: 'payco',
93
+ PAYNOW: 'paynow',
94
+ PAYPAL: 'paypal',
95
+ PAYTO: 'payto',
96
+ PIX: 'pix',
97
+ PROMPTPAY: 'promptpay',
98
+ PRZELEWY24: 'przelewy24',
99
+ QRIS: 'qris',
100
+ RECHNUNG: 'rechnung',
101
+ REVOLUT_PAY: 'revolut_pay',
102
+ SAMSUNG_PAY: 'samsung_pay',
103
+ SATISPAY: 'satispay',
104
+ SEPA_DEBIT: 'sepa_debit',
105
+ SHOPEEPAY: 'shopeepay',
106
+ SOFORT: 'sofort',
107
+ STRIPE_BALANCE: 'stripe_balance',
108
+ SWISH: 'swish',
109
+ TWINT: 'twint',
110
+ US_BANK_ACCOUNT: 'us_bank_account',
111
+ VOUCHER: 'voucher',
112
+ WECHAT_PAY: 'wechat_pay',
113
+ ZIP: 'zip'
114
+ };
115
+ /**
116
+ * Check if a given object implements the BuyerDomainAppraisalRequestCheckoutDto interface.
117
+ */
118
+ function instanceOfBuyerDomainAppraisalRequestCheckoutDto(value) {
119
+ if (!('id' in value) || value['id'] === undefined)
120
+ return false;
121
+ if (!('domainAppraisalRequestStatus' in value) || value['domainAppraisalRequestStatus'] === undefined)
122
+ return false;
123
+ if (!('domainName' in value) || value['domainName'] === undefined)
124
+ return false;
125
+ if (!('status' in value) || value['status'] === undefined)
126
+ return false;
127
+ if (!('basePrice' in value) || value['basePrice'] === undefined)
128
+ return false;
129
+ if (!('totalPrice' in value) || value['totalPrice'] === undefined)
130
+ return false;
131
+ if (!('totalTaxPrice' in value) || value['totalTaxPrice'] === undefined)
132
+ return false;
133
+ if (!('items' in value) || value['items'] === undefined)
134
+ return false;
135
+ if (!('firstName' in value) || value['firstName'] === undefined)
136
+ return false;
137
+ if (!('lastName' in value) || value['lastName'] === undefined)
138
+ return false;
139
+ if (!('email' in value) || value['email'] === undefined)
140
+ return false;
141
+ if (!('phone' in value) || value['phone'] === undefined)
142
+ return false;
143
+ if (!('address' in value) || value['address'] === undefined)
144
+ return false;
145
+ if (!('locale' in value) || value['locale'] === undefined)
146
+ return false;
147
+ if (!('companyInfo' in value) || value['companyInfo'] === undefined)
148
+ return false;
149
+ if (!('selfDeclaredTaxCountry' in value) || value['selfDeclaredTaxCountry'] === undefined)
150
+ return false;
151
+ if (!('decidedCountry' in value) || value['decidedCountry'] === undefined)
152
+ return false;
153
+ if (!('transaction' in value) || value['transaction'] === undefined)
154
+ return false;
155
+ if (!('hasPendingTransaction' in value) || value['hasPendingTransaction'] === undefined)
156
+ return false;
157
+ if (!('enabledPaymentMethods' in value) || value['enabledPaymentMethods'] === undefined)
158
+ return false;
159
+ if (!('availablePaymentMethods' in value) || value['availablePaymentMethods'] === undefined)
160
+ return false;
161
+ if (!('selectedPaymentMethod' in value) || value['selectedPaymentMethod'] === undefined)
162
+ return false;
163
+ if (!('availablePaymentMethodsExpiresAt' in value) || value['availablePaymentMethodsExpiresAt'] === undefined)
164
+ return false;
165
+ if (!('canBeProforma' in value) || value['canBeProforma'] === undefined)
166
+ return false;
167
+ return true;
168
+ }
169
+ function BuyerDomainAppraisalRequestCheckoutDtoFromJSON(json) {
170
+ return BuyerDomainAppraisalRequestCheckoutDtoFromJSONTyped(json, false);
171
+ }
172
+ function BuyerDomainAppraisalRequestCheckoutDtoFromJSONTyped(json, ignoreDiscriminator) {
173
+ if (json == null) {
174
+ return json;
175
+ }
176
+ return {
177
+ 'id': json['id'],
178
+ 'domainAppraisalRequestStatus': (0, DomainAppraisalRequestStatus_1.DomainAppraisalRequestStatusFromJSON)(json['domainAppraisalRequestStatus']),
179
+ 'domainName': json['domainName'],
180
+ 'status': json['status'],
181
+ 'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
182
+ 'totalPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalPrice']),
183
+ 'totalTaxPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalTaxPrice']),
184
+ 'items': (json['items'].map(InvoiceItemDto_1.InvoiceItemDtoFromJSON)),
185
+ 'firstName': json['firstName'],
186
+ 'lastName': json['lastName'],
187
+ 'email': json['email'],
188
+ 'phone': json['phone'],
189
+ 'address': (0, AddressDto_1.AddressDtoFromJSON)(json['address']),
190
+ 'locale': json['locale'],
191
+ 'companyInfo': (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoFromJSON)(json['companyInfo']),
192
+ 'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'],
193
+ 'decidedCountry': json['decidedCountry'],
194
+ 'transaction': (0, InvoiceTransactionDto_1.InvoiceTransactionDtoFromJSON)(json['transaction']),
195
+ 'hasPendingTransaction': json['hasPendingTransaction'],
196
+ 'enabledPaymentMethods': json['enabledPaymentMethods'],
197
+ 'availablePaymentMethods': json['availablePaymentMethods'],
198
+ 'selectedPaymentMethod': json['selectedPaymentMethod'],
199
+ 'availablePaymentMethodsExpiresAt': (json['availablePaymentMethodsExpiresAt'] == null ? null : new Date(json['availablePaymentMethodsExpiresAt'])),
200
+ 'canBeProforma': json['canBeProforma'],
201
+ };
202
+ }
203
+ function BuyerDomainAppraisalRequestCheckoutDtoToJSON(json) {
204
+ return BuyerDomainAppraisalRequestCheckoutDtoToJSONTyped(json, false);
205
+ }
206
+ function BuyerDomainAppraisalRequestCheckoutDtoToJSONTyped(value, ignoreDiscriminator) {
207
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
208
+ if (value == null) {
209
+ return value;
210
+ }
211
+ return {
212
+ 'id': value['id'],
213
+ 'domainAppraisalRequestStatus': (0, DomainAppraisalRequestStatus_1.DomainAppraisalRequestStatusToJSON)(value['domainAppraisalRequestStatus']),
214
+ 'domainName': value['domainName'],
215
+ 'status': value['status'],
216
+ 'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
217
+ 'totalPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalPrice']),
218
+ 'totalTaxPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalTaxPrice']),
219
+ 'items': (value['items'].map(InvoiceItemDto_1.InvoiceItemDtoToJSON)),
220
+ 'firstName': value['firstName'],
221
+ 'lastName': value['lastName'],
222
+ 'email': value['email'],
223
+ 'phone': value['phone'],
224
+ 'address': (0, AddressDto_1.AddressDtoToJSON)(value['address']),
225
+ 'locale': value['locale'],
226
+ 'companyInfo': (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoToJSON)(value['companyInfo']),
227
+ 'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
228
+ 'decidedCountry': value['decidedCountry'],
229
+ 'transaction': (0, InvoiceTransactionDto_1.InvoiceTransactionDtoToJSON)(value['transaction']),
230
+ 'hasPendingTransaction': value['hasPendingTransaction'],
231
+ 'enabledPaymentMethods': value['enabledPaymentMethods'],
232
+ 'availablePaymentMethods': value['availablePaymentMethods'],
233
+ 'selectedPaymentMethod': value['selectedPaymentMethod'],
234
+ 'availablePaymentMethodsExpiresAt': (value['availablePaymentMethodsExpiresAt'] == null ? null : value['availablePaymentMethodsExpiresAt'].toISOString()),
235
+ 'canBeProforma': value['canBeProforma'],
236
+ };
237
+ }
@@ -61,11 +61,11 @@ export interface BuyerInvoiceDto {
61
61
  */
62
62
  target: BuyerInvoiceDtoTargetEnum;
63
63
  /**
64
- * Seller account information.
64
+ * Seller account information; null only for the invoice of a buyer's domain appraisal, which Nameshift sells.
65
65
  * @type {BuyerInvoiceSellerAccountDto}
66
66
  * @memberof BuyerInvoiceDto
67
67
  */
68
- sellerAccount: BuyerInvoiceSellerAccountDto;
68
+ sellerAccount: BuyerInvoiceSellerAccountDto | null;
69
69
  /**
70
70
  * Parent invoice ID, if this is a child invoice.
71
71
  * @type {string}
@@ -69,6 +69,12 @@ export interface BuyerSessionDto {
69
69
  * @memberof BuyerSessionDto
70
70
  */
71
71
  hasAuctions: boolean;
72
+ /**
73
+ * Whether the buyer has requested any domain appraisal
74
+ * @type {boolean}
75
+ * @memberof BuyerSessionDto
76
+ */
77
+ hasDomainAppraisalRequests: boolean;
72
78
  }
73
79
  /**
74
80
  * @export
@@ -48,6 +48,8 @@ function instanceOfBuyerSessionDto(value) {
48
48
  return false;
49
49
  if (!('hasAuctions' in value) || value['hasAuctions'] === undefined)
50
50
  return false;
51
+ if (!('hasDomainAppraisalRequests' in value) || value['hasDomainAppraisalRequests'] === undefined)
52
+ return false;
51
53
  return true;
52
54
  }
53
55
  function BuyerSessionDtoFromJSON(json) {
@@ -67,6 +69,7 @@ function BuyerSessionDtoFromJSONTyped(json, ignoreDiscriminator) {
67
69
  'hasSubscriptions': json['hasSubscriptions'],
68
70
  'unreadNotificationsNumber': json['unreadNotificationsNumber'],
69
71
  'hasAuctions': json['hasAuctions'],
72
+ 'hasDomainAppraisalRequests': json['hasDomainAppraisalRequests'],
70
73
  };
71
74
  }
72
75
  function BuyerSessionDtoToJSON(json) {
@@ -87,5 +90,6 @@ function BuyerSessionDtoToJSONTyped(value, ignoreDiscriminator) {
87
90
  'hasSubscriptions': value['hasSubscriptions'],
88
91
  'unreadNotificationsNumber': value['unreadNotificationsNumber'],
89
92
  'hasAuctions': value['hasAuctions'],
93
+ 'hasDomainAppraisalRequests': value['hasDomainAppraisalRequests'],
90
94
  };
91
95
  }
@@ -41,6 +41,7 @@ export interface CreateAccountPaymentInput {
41
41
  */
42
42
  export declare const CreateAccountPaymentInputTypeEnum: {
43
43
  readonly PAID_AUCTION: "PAID_AUCTION";
44
+ readonly DOMAIN_APPRAISAL: "DOMAIN_APPRAISAL";
44
45
  };
45
46
  export type CreateAccountPaymentInputTypeEnum = typeof CreateAccountPaymentInputTypeEnum[keyof typeof CreateAccountPaymentInputTypeEnum];
46
47
  /**
@@ -23,7 +23,8 @@ exports.CreateAccountPaymentInputToJSONTyped = CreateAccountPaymentInputToJSONTy
23
23
  * @export
24
24
  */
25
25
  exports.CreateAccountPaymentInputTypeEnum = {
26
- PAID_AUCTION: 'PAID_AUCTION'
26
+ PAID_AUCTION: 'PAID_AUCTION',
27
+ DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL'
27
28
  };
28
29
  /**
29
30
  * Check if a given object implements the CreateAccountPaymentInput interface.
@@ -0,0 +1,44 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface CreateBuyerDomainAppraisalRequestInput
16
+ */
17
+ export interface CreateBuyerDomainAppraisalRequestInput {
18
+ /**
19
+ * Email of the buyer requesting the domain appraisal
20
+ * @type {string}
21
+ * @memberof CreateBuyerDomainAppraisalRequestInput
22
+ */
23
+ email: string;
24
+ /**
25
+ * Locale for the domain appraisal request and invoice communications
26
+ * @type {string}
27
+ * @memberof CreateBuyerDomainAppraisalRequestInput
28
+ */
29
+ locale: string;
30
+ /**
31
+ * Full name of the domain to appraise
32
+ * @type {string}
33
+ * @memberof CreateBuyerDomainAppraisalRequestInput
34
+ */
35
+ domainName: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the CreateBuyerDomainAppraisalRequestInput interface.
39
+ */
40
+ export declare function instanceOfCreateBuyerDomainAppraisalRequestInput(value: object): value is CreateBuyerDomainAppraisalRequestInput;
41
+ export declare function CreateBuyerDomainAppraisalRequestInputFromJSON(json: any): CreateBuyerDomainAppraisalRequestInput;
42
+ export declare function CreateBuyerDomainAppraisalRequestInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateBuyerDomainAppraisalRequestInput;
43
+ export declare function CreateBuyerDomainAppraisalRequestInputToJSON(json: any): CreateBuyerDomainAppraisalRequestInput;
44
+ export declare function CreateBuyerDomainAppraisalRequestInputToJSONTyped(value?: CreateBuyerDomainAppraisalRequestInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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.instanceOfCreateBuyerDomainAppraisalRequestInput = instanceOfCreateBuyerDomainAppraisalRequestInput;
17
+ exports.CreateBuyerDomainAppraisalRequestInputFromJSON = CreateBuyerDomainAppraisalRequestInputFromJSON;
18
+ exports.CreateBuyerDomainAppraisalRequestInputFromJSONTyped = CreateBuyerDomainAppraisalRequestInputFromJSONTyped;
19
+ exports.CreateBuyerDomainAppraisalRequestInputToJSON = CreateBuyerDomainAppraisalRequestInputToJSON;
20
+ exports.CreateBuyerDomainAppraisalRequestInputToJSONTyped = CreateBuyerDomainAppraisalRequestInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CreateBuyerDomainAppraisalRequestInput interface.
23
+ */
24
+ function instanceOfCreateBuyerDomainAppraisalRequestInput(value) {
25
+ if (!('email' in value) || value['email'] === undefined)
26
+ return false;
27
+ if (!('locale' in value) || value['locale'] === undefined)
28
+ return false;
29
+ if (!('domainName' in value) || value['domainName'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function CreateBuyerDomainAppraisalRequestInputFromJSON(json) {
34
+ return CreateBuyerDomainAppraisalRequestInputFromJSONTyped(json, false);
35
+ }
36
+ function CreateBuyerDomainAppraisalRequestInputFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'email': json['email'],
42
+ 'locale': json['locale'],
43
+ 'domainName': json['domainName'],
44
+ };
45
+ }
46
+ function CreateBuyerDomainAppraisalRequestInputToJSON(json) {
47
+ return CreateBuyerDomainAppraisalRequestInputToJSONTyped(json, false);
48
+ }
49
+ function CreateBuyerDomainAppraisalRequestInputToJSONTyped(value, ignoreDiscriminator) {
50
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'email': value['email'],
56
+ 'locale': value['locale'],
57
+ 'domainName': value['domainName'],
58
+ };
59
+ }
@@ -0,0 +1,82 @@
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 { DomainAppraisalRequester } from './DomainAppraisalRequester';
13
+ import type { DomainAppraisalRequestStatus } from './DomainAppraisalRequestStatus';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface DomainAppraisalRequestListItemDto
18
+ */
19
+ export interface DomainAppraisalRequestListItemDto {
20
+ /**
21
+ * Domain appraisal request identifier.
22
+ * @type {string}
23
+ * @memberof DomainAppraisalRequestListItemDto
24
+ */
25
+ id: string;
26
+ /**
27
+ * Appraised domain identifier.
28
+ * @type {string}
29
+ * @memberof DomainAppraisalRequestListItemDto
30
+ */
31
+ domainId: string;
32
+ /**
33
+ * Appraised domain name (Unicode).
34
+ * @type {string}
35
+ * @memberof DomainAppraisalRequestListItemDto
36
+ */
37
+ domainName: string;
38
+ /**
39
+ * Whether a buyer or the seller of the domain requested it.
40
+ * @type {DomainAppraisalRequester}
41
+ * @memberof DomainAppraisalRequestListItemDto
42
+ */
43
+ requester: DomainAppraisalRequester;
44
+ /**
45
+ * Domain appraisal request status.
46
+ * @type {DomainAppraisalRequestStatus}
47
+ * @memberof DomainAppraisalRequestListItemDto
48
+ */
49
+ status: DomainAppraisalRequestStatus;
50
+ /**
51
+ * Appraised amount in EUR, once appraised.
52
+ * @type {string}
53
+ * @memberof DomainAppraisalRequestListItemDto
54
+ */
55
+ appraisedAmountEur: string | null;
56
+ /**
57
+ * When it was appraised.
58
+ * @type {Date}
59
+ * @memberof DomainAppraisalRequestListItemDto
60
+ */
61
+ appraisedAt: Date | null;
62
+ /**
63
+ * When it was sent to be appraised, after payment.
64
+ * @type {Date}
65
+ * @memberof DomainAppraisalRequestListItemDto
66
+ */
67
+ requestedAt: Date | null;
68
+ /**
69
+ * When it was created.
70
+ * @type {Date}
71
+ * @memberof DomainAppraisalRequestListItemDto
72
+ */
73
+ createdAt: Date;
74
+ }
75
+ /**
76
+ * Check if a given object implements the DomainAppraisalRequestListItemDto interface.
77
+ */
78
+ export declare function instanceOfDomainAppraisalRequestListItemDto(value: object): value is DomainAppraisalRequestListItemDto;
79
+ export declare function DomainAppraisalRequestListItemDtoFromJSON(json: any): DomainAppraisalRequestListItemDto;
80
+ export declare function DomainAppraisalRequestListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainAppraisalRequestListItemDto;
81
+ export declare function DomainAppraisalRequestListItemDtoToJSON(json: any): DomainAppraisalRequestListItemDto;
82
+ export declare function DomainAppraisalRequestListItemDtoToJSONTyped(value?: DomainAppraisalRequestListItemDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,85 @@
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.instanceOfDomainAppraisalRequestListItemDto = instanceOfDomainAppraisalRequestListItemDto;
17
+ exports.DomainAppraisalRequestListItemDtoFromJSON = DomainAppraisalRequestListItemDtoFromJSON;
18
+ exports.DomainAppraisalRequestListItemDtoFromJSONTyped = DomainAppraisalRequestListItemDtoFromJSONTyped;
19
+ exports.DomainAppraisalRequestListItemDtoToJSON = DomainAppraisalRequestListItemDtoToJSON;
20
+ exports.DomainAppraisalRequestListItemDtoToJSONTyped = DomainAppraisalRequestListItemDtoToJSONTyped;
21
+ var DomainAppraisalRequester_1 = require("./DomainAppraisalRequester");
22
+ var DomainAppraisalRequestStatus_1 = require("./DomainAppraisalRequestStatus");
23
+ /**
24
+ * Check if a given object implements the DomainAppraisalRequestListItemDto interface.
25
+ */
26
+ function instanceOfDomainAppraisalRequestListItemDto(value) {
27
+ if (!('id' in value) || value['id'] === undefined)
28
+ return false;
29
+ if (!('domainId' in value) || value['domainId'] === undefined)
30
+ return false;
31
+ if (!('domainName' in value) || value['domainName'] === undefined)
32
+ return false;
33
+ if (!('requester' in value) || value['requester'] === undefined)
34
+ return false;
35
+ if (!('status' in value) || value['status'] === undefined)
36
+ return false;
37
+ if (!('appraisedAmountEur' in value) || value['appraisedAmountEur'] === undefined)
38
+ return false;
39
+ if (!('appraisedAt' in value) || value['appraisedAt'] === undefined)
40
+ return false;
41
+ if (!('requestedAt' in value) || value['requestedAt'] === undefined)
42
+ return false;
43
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
44
+ return false;
45
+ return true;
46
+ }
47
+ function DomainAppraisalRequestListItemDtoFromJSON(json) {
48
+ return DomainAppraisalRequestListItemDtoFromJSONTyped(json, false);
49
+ }
50
+ function DomainAppraisalRequestListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+ 'id': json['id'],
56
+ 'domainId': json['domainId'],
57
+ 'domainName': json['domainName'],
58
+ 'requester': (0, DomainAppraisalRequester_1.DomainAppraisalRequesterFromJSON)(json['requester']),
59
+ 'status': (0, DomainAppraisalRequestStatus_1.DomainAppraisalRequestStatusFromJSON)(json['status']),
60
+ 'appraisedAmountEur': json['appraisedAmountEur'],
61
+ 'appraisedAt': (json['appraisedAt'] == null ? null : new Date(json['appraisedAt'])),
62
+ 'requestedAt': (json['requestedAt'] == null ? null : new Date(json['requestedAt'])),
63
+ 'createdAt': (new Date(json['createdAt'])),
64
+ };
65
+ }
66
+ function DomainAppraisalRequestListItemDtoToJSON(json) {
67
+ return DomainAppraisalRequestListItemDtoToJSONTyped(json, false);
68
+ }
69
+ function DomainAppraisalRequestListItemDtoToJSONTyped(value, ignoreDiscriminator) {
70
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+ return {
75
+ 'id': value['id'],
76
+ 'domainId': value['domainId'],
77
+ 'domainName': value['domainName'],
78
+ 'requester': (0, DomainAppraisalRequester_1.DomainAppraisalRequesterToJSON)(value['requester']),
79
+ 'status': (0, DomainAppraisalRequestStatus_1.DomainAppraisalRequestStatusToJSON)(value['status']),
80
+ 'appraisedAmountEur': value['appraisedAmountEur'],
81
+ 'appraisedAt': (value['appraisedAt'] == null ? null : value['appraisedAt'].toISOString()),
82
+ 'requestedAt': (value['requestedAt'] == null ? null : value['requestedAt'].toISOString()),
83
+ 'createdAt': ((value['createdAt']).toISOString()),
84
+ };
85
+ }
@@ -0,0 +1,27 @@
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
+ /**
13
+ * Domain appraisal request status.
14
+ * @export
15
+ */
16
+ export declare const DomainAppraisalRequestStatus: {
17
+ readonly PENDING: "pending";
18
+ readonly REQUESTED: "requested";
19
+ readonly APPRAISED: "appraised";
20
+ readonly CANCELLED: "cancelled";
21
+ };
22
+ export type DomainAppraisalRequestStatus = typeof DomainAppraisalRequestStatus[keyof typeof DomainAppraisalRequestStatus];
23
+ export declare function instanceOfDomainAppraisalRequestStatus(value: any): boolean;
24
+ export declare function DomainAppraisalRequestStatusFromJSON(json: any): DomainAppraisalRequestStatus;
25
+ export declare function DomainAppraisalRequestStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainAppraisalRequestStatus;
26
+ export declare function DomainAppraisalRequestStatusToJSON(value?: DomainAppraisalRequestStatus | null): any;
27
+ export declare function DomainAppraisalRequestStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): DomainAppraisalRequestStatus;
@@ -0,0 +1,53 @@
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.DomainAppraisalRequestStatus = void 0;
17
+ exports.instanceOfDomainAppraisalRequestStatus = instanceOfDomainAppraisalRequestStatus;
18
+ exports.DomainAppraisalRequestStatusFromJSON = DomainAppraisalRequestStatusFromJSON;
19
+ exports.DomainAppraisalRequestStatusFromJSONTyped = DomainAppraisalRequestStatusFromJSONTyped;
20
+ exports.DomainAppraisalRequestStatusToJSON = DomainAppraisalRequestStatusToJSON;
21
+ exports.DomainAppraisalRequestStatusToJSONTyped = DomainAppraisalRequestStatusToJSONTyped;
22
+ /**
23
+ * Domain appraisal request status.
24
+ * @export
25
+ */
26
+ exports.DomainAppraisalRequestStatus = {
27
+ PENDING: 'pending',
28
+ REQUESTED: 'requested',
29
+ APPRAISED: 'appraised',
30
+ CANCELLED: 'cancelled'
31
+ };
32
+ function instanceOfDomainAppraisalRequestStatus(value) {
33
+ for (var key in exports.DomainAppraisalRequestStatus) {
34
+ if (Object.prototype.hasOwnProperty.call(exports.DomainAppraisalRequestStatus, key)) {
35
+ if (exports.DomainAppraisalRequestStatus[key] === value) {
36
+ return true;
37
+ }
38
+ }
39
+ }
40
+ return false;
41
+ }
42
+ function DomainAppraisalRequestStatusFromJSON(json) {
43
+ return DomainAppraisalRequestStatusFromJSONTyped(json, false);
44
+ }
45
+ function DomainAppraisalRequestStatusFromJSONTyped(json, ignoreDiscriminator) {
46
+ return json;
47
+ }
48
+ function DomainAppraisalRequestStatusToJSON(value) {
49
+ return value;
50
+ }
51
+ function DomainAppraisalRequestStatusToJSONTyped(value, ignoreDiscriminator) {
52
+ return value;
53
+ }