@randock/nameshift-api-client 0.0.448 → 0.0.450

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 (162) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/README.md +3 -3
  3. package/dist/apis/APIKeysApi.d.ts +78 -0
  4. package/dist/apis/APIKeysApi.js +354 -0
  5. package/dist/apis/AccountsApi.d.ts +36 -36
  6. package/dist/apis/AccountsApi.js +360 -216
  7. package/dist/apis/AdminApi.d.ts +37 -1
  8. package/dist/apis/AdminApi.js +122 -1
  9. package/dist/apis/AuctionsApi.d.ts +4 -4
  10. package/dist/apis/AuctionsApi.js +40 -24
  11. package/dist/apis/BankAccountsApi.d.ts +10 -10
  12. package/dist/apis/BankAccountsApi.js +100 -60
  13. package/dist/apis/ChallengesApi.d.ts +6 -6
  14. package/dist/apis/ChallengesApi.js +60 -36
  15. package/dist/apis/DomainTransfersApi.d.ts +2 -2
  16. package/dist/apis/DomainTransfersApi.js +20 -12
  17. package/dist/apis/DomainsApi.d.ts +44 -44
  18. package/dist/apis/DomainsApi.js +440 -264
  19. package/dist/apis/EppApi.d.ts +2 -2
  20. package/dist/apis/EppApi.js +20 -12
  21. package/dist/apis/InvoicesApi.d.ts +6 -6
  22. package/dist/apis/InvoicesApi.js +60 -36
  23. package/dist/apis/LeadsApi.d.ts +38 -38
  24. package/dist/apis/LeadsApi.js +380 -228
  25. package/dist/apis/MarketplacesApi.d.ts +89 -0
  26. package/dist/apis/MarketplacesApi.js +332 -0
  27. package/dist/apis/NotificationsApi.d.ts +8 -8
  28. package/dist/apis/NotificationsApi.js +80 -48
  29. package/dist/apis/StatsApi.d.ts +14 -14
  30. package/dist/apis/StatsApi.js +140 -84
  31. package/dist/apis/SubscriptionsApi.d.ts +2 -2
  32. package/dist/apis/SubscriptionsApi.js +20 -12
  33. package/dist/apis/TasksApi.d.ts +6 -6
  34. package/dist/apis/TasksApi.js +60 -36
  35. package/dist/apis/UsersApi.d.ts +10 -10
  36. package/dist/apis/UsersApi.js +100 -60
  37. package/dist/apis/index.d.ts +2 -0
  38. package/dist/apis/index.js +2 -0
  39. package/dist/models/AccountMarketplaceDto.d.ts +56 -0
  40. package/dist/models/AccountMarketplaceDto.js +71 -0
  41. package/dist/models/AccountNameshiftCommissionBySubtypeDto.d.ts +1 -0
  42. package/dist/models/AccountNameshiftCommissionBySubtypeDto.js +1 -0
  43. package/dist/models/AccountNameshiftCommissionItemDto.d.ts +1 -0
  44. package/dist/models/AccountNameshiftCommissionItemDto.js +1 -0
  45. package/dist/models/AccountNameshiftCommissionReasonDto.d.ts +1 -0
  46. package/dist/models/AccountNameshiftCommissionReasonDto.js +1 -0
  47. package/dist/models/AccountSettingsDto.d.ts +18 -0
  48. package/dist/models/AccountSettingsDto.js +16 -0
  49. package/dist/models/AccountSettingsInput.d.ts +18 -0
  50. package/dist/models/AccountSettingsInput.js +14 -0
  51. package/dist/models/AdminDomainListItemDto.d.ts +19 -0
  52. package/dist/models/AdminDomainListItemDto.js +17 -1
  53. package/dist/models/AdminMarketplaceDto.d.ts +86 -0
  54. package/dist/models/AdminMarketplaceDto.js +91 -0
  55. package/dist/models/ApiKeyDto.d.ts +107 -0
  56. package/dist/models/ApiKeyDto.js +114 -0
  57. package/dist/models/ApiKeyScopeDto.d.ts +83 -0
  58. package/dist/models/ApiKeyScopeDto.js +98 -0
  59. package/dist/models/CommissionDto.d.ts +1 -0
  60. package/dist/models/CommissionDto.js +1 -0
  61. package/dist/models/CommissionPayloadInput.d.ts +1 -0
  62. package/dist/models/CommissionPayloadInput.js +1 -0
  63. package/dist/models/CommissionReasonDto.d.ts +1 -0
  64. package/dist/models/CommissionReasonDto.js +1 -0
  65. package/dist/models/CommissionSimulationItemInput.d.ts +1 -0
  66. package/dist/models/CommissionSimulationItemInput.js +1 -0
  67. package/dist/models/CreateApiKeyInput.d.ts +83 -0
  68. package/dist/models/CreateApiKeyInput.js +96 -0
  69. package/dist/models/CreateOrderInput.d.ts +6 -0
  70. package/dist/models/CreateOrderInput.js +2 -0
  71. package/dist/models/CreateSubscriptionInput.d.ts +6 -0
  72. package/dist/models/CreateSubscriptionInput.js +2 -0
  73. package/dist/models/CreatedApiKeyDto.d.ts +113 -0
  74. package/dist/models/CreatedApiKeyDto.js +118 -0
  75. package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
  76. package/dist/models/FeatureFlagListItemDto.js +2 -1
  77. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  78. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  79. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +18 -0
  80. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +16 -0
  81. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +18 -0
  82. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +16 -0
  83. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +18 -0
  84. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +16 -0
  85. package/dist/models/MarketplaceDto.d.ts +74 -0
  86. package/dist/models/MarketplaceDto.js +83 -0
  87. package/dist/models/OrderDto.d.ts +7 -1
  88. package/dist/models/OrderDto.js +4 -0
  89. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  90. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  91. package/dist/models/SetAccountMarketplaceInput.d.ts +32 -0
  92. package/dist/models/SetAccountMarketplaceInput.js +51 -0
  93. package/dist/models/SimulateCommissionInput.d.ts +1 -0
  94. package/dist/models/SimulateCommissionInput.js +1 -0
  95. package/dist/models/SubscriptionDto.d.ts +7 -1
  96. package/dist/models/SubscriptionDto.js +4 -0
  97. package/dist/models/UpdateApiKeyInput.d.ts +77 -0
  98. package/dist/models/UpdateApiKeyInput.js +90 -0
  99. package/dist/models/UpdateDomainInput.d.ts +18 -0
  100. package/dist/models/UpdateDomainInput.js +14 -0
  101. package/dist/models/UpdateMarketplaceInput.d.ts +44 -0
  102. package/dist/models/UpdateMarketplaceInput.js +53 -0
  103. package/dist/models/UpdateOrderInput.d.ts +6 -0
  104. package/dist/models/UpdateOrderInput.js +2 -0
  105. package/dist/models/UpdateSubscriptionInput.d.ts +6 -0
  106. package/dist/models/UpdateSubscriptionInput.js +2 -0
  107. package/dist/models/index.d.ts +10 -0
  108. package/dist/models/index.js +10 -0
  109. package/package.json +1 -1
  110. package/src/apis/APIKeysApi.ts +271 -0
  111. package/src/apis/AccountsApi.ts +108 -36
  112. package/src/apis/AdminApi.ts +112 -0
  113. package/src/apis/AuctionsApi.ts +12 -4
  114. package/src/apis/BankAccountsApi.ts +30 -10
  115. package/src/apis/ChallengesApi.ts +18 -6
  116. package/src/apis/DomainTransfersApi.ts +6 -2
  117. package/src/apis/DomainsApi.ts +132 -44
  118. package/src/apis/EppApi.ts +6 -2
  119. package/src/apis/InvoicesApi.ts +18 -6
  120. package/src/apis/LeadsApi.ts +114 -38
  121. package/src/apis/MarketplacesApi.ts +240 -0
  122. package/src/apis/NotificationsApi.ts +24 -8
  123. package/src/apis/StatsApi.ts +42 -14
  124. package/src/apis/SubscriptionsApi.ts +6 -2
  125. package/src/apis/TasksApi.ts +18 -6
  126. package/src/apis/UsersApi.ts +30 -10
  127. package/src/apis/index.ts +2 -0
  128. package/src/models/AccountMarketplaceDto.ts +99 -0
  129. package/src/models/AccountNameshiftCommissionBySubtypeDto.ts +1 -0
  130. package/src/models/AccountNameshiftCommissionItemDto.ts +1 -0
  131. package/src/models/AccountNameshiftCommissionReasonDto.ts +1 -0
  132. package/src/models/AccountSettingsDto.ts +24 -0
  133. package/src/models/AccountSettingsInput.ts +23 -0
  134. package/src/models/AdminDomainListItemDto.ts +23 -0
  135. package/src/models/AdminMarketplaceDto.ts +144 -0
  136. package/src/models/ApiKeyDto.ts +162 -0
  137. package/src/models/ApiKeyScopeDto.ts +126 -0
  138. package/src/models/CommissionDto.ts +1 -0
  139. package/src/models/CommissionPayloadInput.ts +1 -0
  140. package/src/models/CommissionReasonDto.ts +1 -0
  141. package/src/models/CommissionSimulationItemInput.ts +1 -0
  142. package/src/models/CreateApiKeyInput.ts +125 -0
  143. package/src/models/CreateOrderInput.ts +8 -0
  144. package/src/models/CreateSubscriptionInput.ts +8 -0
  145. package/src/models/CreatedApiKeyDto.ts +171 -0
  146. package/src/models/FeatureFlagListItemDto.ts +2 -1
  147. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  148. package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +24 -0
  149. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +24 -0
  150. package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +24 -0
  151. package/src/models/MarketplaceDto.ts +126 -0
  152. package/src/models/OrderDto.ts +10 -1
  153. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  154. package/src/models/SetAccountMarketplaceInput.ts +66 -0
  155. package/src/models/SimulateCommissionInput.ts +1 -0
  156. package/src/models/SubscriptionDto.ts +10 -1
  157. package/src/models/UpdateApiKeyInput.ts +115 -0
  158. package/src/models/UpdateDomainInput.ts +23 -0
  159. package/src/models/UpdateMarketplaceInput.ts +81 -0
  160. package/src/models/UpdateOrderInput.ts +8 -0
  161. package/src/models/UpdateSubscriptionInput.ts +8 -0
  162. package/src/models/index.ts +10 -0
@@ -0,0 +1,81 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface UpdateMarketplaceInput
20
+ */
21
+ export interface UpdateMarketplaceInput {
22
+ /**
23
+ * Display name of the marketplace.
24
+ * @type {string}
25
+ * @memberof UpdateMarketplaceInput
26
+ */
27
+ name?: string;
28
+ /**
29
+ * Whether domains may be routed to this marketplace. Domains already pointed at a disabled marketplace fall back to our own landing page.
30
+ * @type {boolean}
31
+ * @memberof UpdateMarketplaceInput
32
+ */
33
+ enabled?: boolean;
34
+ /**
35
+ * Authoritative nameservers queried when resolving a domain routed here. Reaches the edge on the next export.
36
+ * @type {Array<string>}
37
+ * @memberof UpdateMarketplaceInput
38
+ */
39
+ nameservers?: Array<string>;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the UpdateMarketplaceInput interface.
44
+ */
45
+ export function instanceOfUpdateMarketplaceInput(value: object): value is UpdateMarketplaceInput {
46
+ return true;
47
+ }
48
+
49
+ export function UpdateMarketplaceInputFromJSON(json: any): UpdateMarketplaceInput {
50
+ return UpdateMarketplaceInputFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function UpdateMarketplaceInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateMarketplaceInput {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+
59
+ 'name': json['name'] == null ? undefined : json['name'],
60
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
61
+ 'nameservers': json['nameservers'] == null ? undefined : json['nameservers'],
62
+ };
63
+ }
64
+
65
+ export function UpdateMarketplaceInputToJSON(json: any): UpdateMarketplaceInput {
66
+ return UpdateMarketplaceInputToJSONTyped(json, false);
67
+ }
68
+
69
+ export function UpdateMarketplaceInputToJSONTyped(value?: UpdateMarketplaceInput | null, ignoreDiscriminator: boolean = false): any {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+
74
+ return {
75
+
76
+ 'name': value['name'],
77
+ 'enabled': value['enabled'],
78
+ 'nameservers': value['nameservers'],
79
+ };
80
+ }
81
+
@@ -99,6 +99,12 @@ export interface UpdateOrderInput {
99
99
  * @memberof UpdateOrderInput
100
100
  */
101
101
  selfDeclaredTaxCountry?: string;
102
+ /**
103
+ * Controls payment methods cache refresh. true: force recalculation even if the fingerprint is still valid. false: never refresh payment methods on this update. omit/undefined: refresh only when the cache is missing or the fingerprint changed.
104
+ * @type {boolean}
105
+ * @memberof UpdateOrderInput
106
+ */
107
+ forceUpdatePaymentMethods?: boolean;
102
108
  }
103
109
 
104
110
  /**
@@ -130,6 +136,7 @@ export function UpdateOrderInputFromJSONTyped(json: any, ignoreDiscriminator: bo
130
136
  'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
131
137
  'companyInfo': json['companyInfo'] == null ? undefined : OrderCompanyInfoDtoFromJSON(json['companyInfo']),
132
138
  'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
139
+ 'forceUpdatePaymentMethods': json['forceUpdatePaymentMethods'] == null ? undefined : json['forceUpdatePaymentMethods'],
133
140
  };
134
141
  }
135
142
 
@@ -156,6 +163,7 @@ export function UpdateOrderInputToJSONTyped(value?: UpdateOrderInput | null, ign
156
163
  'addressCity': value['addressCity'],
157
164
  'companyInfo': OrderCompanyInfoDtoToJSON(value['companyInfo']),
158
165
  'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
166
+ 'forceUpdatePaymentMethods': value['forceUpdatePaymentMethods'],
159
167
  };
160
168
  }
161
169
 
@@ -118,6 +118,12 @@ export interface UpdateSubscriptionInput {
118
118
  * @memberof UpdateSubscriptionInput
119
119
  */
120
120
  selfDeclaredTaxCountry?: string;
121
+ /**
122
+ * Controls payment methods cache refresh. true: force recalculation even if the fingerprint is still valid. false: never refresh payment methods on this update. omit/undefined: refresh only when the cache is missing or the fingerprint changed.
123
+ * @type {boolean}
124
+ * @memberof UpdateSubscriptionInput
125
+ */
126
+ forceUpdatePaymentMethods?: boolean;
121
127
  }
122
128
 
123
129
  /**
@@ -151,6 +157,7 @@ export function UpdateSubscriptionInputFromJSONTyped(json: any, ignoreDiscrimina
151
157
  'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
152
158
  'companyInfo': json['companyInfo'] == null ? undefined : SubscriptionCompanyInfoDtoFromJSON(json['companyInfo']),
153
159
  'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
160
+ 'forceUpdatePaymentMethods': json['forceUpdatePaymentMethods'] == null ? undefined : json['forceUpdatePaymentMethods'],
154
161
  };
155
162
  }
156
163
 
@@ -179,6 +186,7 @@ export function UpdateSubscriptionInputToJSONTyped(value?: UpdateSubscriptionInp
179
186
  'addressCity': value['addressCity'],
180
187
  'companyInfo': SubscriptionCompanyInfoDtoToJSON(value['companyInfo']),
181
188
  'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
189
+ 'forceUpdatePaymentMethods': value['forceUpdatePaymentMethods'],
182
190
  };
183
191
  }
184
192
 
@@ -9,6 +9,7 @@ export * from './AccountChallengeRewardUsageListItemDtoMetadata';
9
9
  export * from './AccountCommissionByDateRangeDto';
10
10
  export * from './AccountCountryStatsDto';
11
11
  export * from './AccountDto';
12
+ export * from './AccountMarketplaceDto';
12
13
  export * from './AccountMetricsDto';
13
14
  export * from './AccountNameshiftCommissionBySubtypeDto';
14
15
  export * from './AccountNameshiftCommissionBySubtypePercentagesDto';
@@ -62,6 +63,7 @@ export * from './AdminLeadListItemBuyerDto';
62
63
  export * from './AdminLeadListItemDomainDto';
63
64
  export * from './AdminLeadListItemDto';
64
65
  export * from './AdminListAccountDto';
66
+ export * from './AdminMarketplaceDto';
65
67
  export * from './AdminVerificationDepositDto';
66
68
  export * from './AffiliatesStatsDto';
67
69
  export * from './AggregatedPaginationResponse';
@@ -71,6 +73,8 @@ export * from './AirwallexBankAccountDetailsDtoLocalMethod';
71
73
  export * from './AirwallexBankAccountDetailsDtoLocalMethodCode';
72
74
  export * from './AirwallexDepositDto';
73
75
  export * from './AirwallexDepositDtoFee';
76
+ export * from './ApiKeyDto';
77
+ export * from './ApiKeyScopeDto';
74
78
  export * from './AuBankAccountDetails';
75
79
  export * from './AuctionBidDto';
76
80
  export * from './AuctionBidInput';
@@ -161,6 +165,7 @@ export * from './CompanyTaxIdDto';
161
165
  export * from './ConflictException';
162
166
  export * from './CreateAccountPaymentInput';
163
167
  export * from './CreateAccountPaymentManualTransactionInput';
168
+ export * from './CreateApiKeyInput';
164
169
  export * from './CreateBankAccountInput';
165
170
  export * from './CreateBuyerLeadMessageInput';
166
171
  export * from './CreateChallengeInput';
@@ -172,6 +177,7 @@ export * from './CreateOrderInput';
172
177
  export * from './CreateSubscriptionBillingPeriodicityInput';
173
178
  export * from './CreateSubscriptionInput';
174
179
  export * from './CreateSubscriptionManualTransactionInput';
180
+ export * from './CreatedApiKeyDto';
175
181
  export * from './CursorBasedPageInfo';
176
182
  export * from './CursorBasedPaginationResponse';
177
183
  export * from './DeleteDomainsInput';
@@ -330,6 +336,7 @@ export * from './ManualLeadLeaseToOwnDto';
330
336
  export * from './MarketingDashboardStatsDto';
331
337
  export * from './MarketingOrderListItemDto';
332
338
  export * from './MarketingSalesFiltersDto';
339
+ export * from './MarketplaceDto';
333
340
  export * from './MoneyDecimalDto';
334
341
  export * from './MoneyDto';
335
342
  export * from './MoneyInput';
@@ -428,6 +435,7 @@ export * from './SendAdminLeadAiPriceNegotiatorAgentChatMessageInput';
428
435
  export * from './SendAdminLeadAiPriceNegotiatorAgentChatMessageInputAiModel';
429
436
  export * from './SeoMetricsDto';
430
437
  export * from './SepaBankAccountDetails';
438
+ export * from './SetAccountMarketplaceInput';
431
439
  export * from './SetDomainTransferConfirmationInput';
432
440
  export * from './SetNewPasswordInput';
433
441
  export * from './SetPayoutProviderInput';
@@ -471,6 +479,7 @@ export * from './TopSellerAccountDto';
471
479
  export * from './UkBankAccountDetails';
472
480
  export * from './UpdateAccountBillingInformationInput';
473
481
  export * from './UpdateAccountChallengeRewardBalanceInput';
482
+ export * from './UpdateApiKeyInput';
474
483
  export * from './UpdateAuctionMuteStatusInput';
475
484
  export * from './UpdateBuyerDomainTransferBuyerInfoInput';
476
485
  export * from './UpdateBuyerDomainTransferIpsTagInputDto';
@@ -484,6 +493,7 @@ export * from './UpdateLeadInput';
484
493
  export * from './UpdateLeadMuteStatusForBuyerInput';
485
494
  export * from './UpdateLeadMuteStatusInput';
486
495
  export * from './UpdateLeaseToOwnConfigurationDto';
496
+ export * from './UpdateMarketplaceInput';
487
497
  export * from './UpdateOrderInput';
488
498
  export * from './UpdateRentConfigurationDto';
489
499
  export * from './UpdateSubscriptionBillingPeriodicityInput';