@randock/nameshift-api-client 0.0.474 → 0.0.476

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 (52) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +71 -1
  4. package/dist/apis/AdminApi.js +288 -0
  5. package/dist/apis/BuyersApi.d.ts +15 -1
  6. package/dist/apis/BuyersApi.js +58 -0
  7. package/dist/apis/CustomerSuccessApi.d.ts +57 -1
  8. package/dist/apis/CustomerSuccessApi.js +230 -0
  9. package/dist/models/AccountNoteAuthorDto.d.ts +50 -0
  10. package/dist/models/AccountNoteAuthorDto.js +63 -0
  11. package/dist/models/AccountNoteDto.d.ts +63 -0
  12. package/dist/models/AccountNoteDto.js +72 -0
  13. package/dist/models/AccountNoteListDto.d.ts +33 -0
  14. package/dist/models/AccountNoteListDto.js +52 -0
  15. package/dist/models/AdminListAccountDto.d.ts +12 -0
  16. package/dist/models/AdminListAccountDto.js +8 -0
  17. package/dist/models/BuyerSubscriptionListItemDto.d.ts +7 -0
  18. package/dist/models/BuyerSubscriptionListItemDto.js +5 -0
  19. package/dist/models/CompanyInformationDto.d.ts +2 -2
  20. package/dist/models/CreateAccountNoteInput.d.ts +32 -0
  21. package/dist/models/CreateAccountNoteInput.js +51 -0
  22. package/dist/models/CustomerSuccessListAccountDto.d.ts +12 -0
  23. package/dist/models/CustomerSuccessListAccountDto.js +8 -0
  24. package/dist/models/ForbiddenException.d.ts +44 -0
  25. package/dist/models/ForbiddenException.js +59 -0
  26. package/dist/models/SubscriptionDetailsDto.d.ts +7 -0
  27. package/dist/models/SubscriptionDetailsDto.js +5 -0
  28. package/dist/models/UpdateAccountNoteInput.d.ts +32 -0
  29. package/dist/models/UpdateAccountNoteInput.js +51 -0
  30. package/dist/models/UpdateSubscriptionBuyerInformationInput.d.ts +33 -0
  31. package/dist/models/UpdateSubscriptionBuyerInformationInput.js +52 -0
  32. package/dist/models/index.d.ts +7 -0
  33. package/dist/models/index.js +7 -0
  34. package/package.json +1 -1
  35. package/src/apis/AccountsApi.ts +3 -0
  36. package/src/apis/AdminApi.ts +295 -0
  37. package/src/apis/BuyersApi.ts +63 -0
  38. package/src/apis/CustomerSuccessApi.ts +238 -0
  39. package/src/apis/DomainsApi.ts +3 -0
  40. package/src/models/AccountNoteAuthorDto.ts +93 -0
  41. package/src/models/AccountNoteDto.ts +119 -0
  42. package/src/models/AccountNoteListDto.ts +74 -0
  43. package/src/models/AdminListAccountDto.ts +18 -0
  44. package/src/models/BuyerSubscriptionListItemDto.ts +16 -0
  45. package/src/models/CompanyInformationDto.ts +2 -2
  46. package/src/models/CreateAccountNoteInput.ts +66 -0
  47. package/src/models/CustomerSuccessListAccountDto.ts +18 -0
  48. package/src/models/ForbiddenException.ts +84 -0
  49. package/src/models/SubscriptionDetailsDto.ts +16 -0
  50. package/src/models/UpdateAccountNoteInput.ts +66 -0
  51. package/src/models/UpdateSubscriptionBuyerInformationInput.ts +74 -0
  52. package/src/models/index.ts +7 -0
@@ -56,6 +56,9 @@ src/models/AccountNameshiftCommissionByTypeDto.ts
56
56
  src/models/AccountNameshiftCommissionItemDto.ts
57
57
  src/models/AccountNameshiftCommissionReasonDto.ts
58
58
  src/models/AccountNameshiftCommissionSubtypeCurrentDto.ts
59
+ src/models/AccountNoteAuthorDto.ts
60
+ src/models/AccountNoteDto.ts
61
+ src/models/AccountNoteListDto.ts
59
62
  src/models/AccountNotificationDto.ts
60
63
  src/models/AccountNotificationReadStatusDto.ts
61
64
  src/models/AccountOnboardingDto.ts
@@ -207,6 +210,7 @@ src/models/CommissionsStatsDto.ts
207
210
  src/models/CompanyInformationDto.ts
208
211
  src/models/CompanyTaxIdDto.ts
209
212
  src/models/ConflictException.ts
213
+ src/models/CreateAccountNoteInput.ts
210
214
  src/models/CreateAccountPaymentInput.ts
211
215
  src/models/CreateAccountPaymentManualTransactionInput.ts
212
216
  src/models/CreateApiKeyInput.ts
@@ -283,6 +287,7 @@ src/models/FixedCommissionPayloadDto.ts
283
287
  src/models/FixedCommissionPayloadInput.ts
284
288
  src/models/FixedCommissionPayloadSimulationInput.ts
285
289
  src/models/FixedCommissionReasonPayloadDto.ts
290
+ src/models/ForbiddenException.ts
286
291
  src/models/ForgotPasswordRequestInput.ts
287
292
  src/models/GetAccountChallengeRewardUsagesListDto.ts
288
293
  src/models/GetAccountNameshiftCommissionsResponseDto.ts
@@ -557,6 +562,7 @@ src/models/TranslateDomainSearchInput.ts
557
562
  src/models/UkBankAccountDetails.ts
558
563
  src/models/UpdateAccountBillingInformationInput.ts
559
564
  src/models/UpdateAccountChallengeRewardBalanceInput.ts
565
+ src/models/UpdateAccountNoteInput.ts
560
566
  src/models/UpdateApiKeyInput.ts
561
567
  src/models/UpdateAuctionMuteStatusInput.ts
562
568
  src/models/UpdateBuyerDomainTransferBuyerInfoInput.ts
@@ -575,6 +581,7 @@ src/models/UpdateMarketplaceInput.ts
575
581
  src/models/UpdateOrderInput.ts
576
582
  src/models/UpdateRentConfigurationDto.ts
577
583
  src/models/UpdateSubscriptionBillingPeriodicityInput.ts
584
+ src/models/UpdateSubscriptionBuyerInformationInput.ts
578
585
  src/models/UpdateSubscriptionDomainNameserversInput.ts
579
586
  src/models/UpdateSubscriptionDomainRecordInput.ts
580
587
  src/models/UpdateSubscriptionInput.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.474
1
+ ## @randock/nameshift-api-client@0.0.476
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.474 --save
39
+ npm install @randock/nameshift-api-client@0.0.476 --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
- aff3238d8ae415357baf707afd5d34b65d7d97daffca13ad4af88942937bc55de9ce029ce26b43c217873fbfefe6d46b
47
+ e119b1473338a7f1a447a219151b5a1217411f1a8dc87cf2156a7946a97e4d6061488f58081a9957b6bfd7faf7e21a81
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountNameshiftCommissionByTypeDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, AdminMarketplaceDto, BulkCommissionActionsInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CommissionSimulationResultDto, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListDomains200Response, ListLeads200Response, ObjectId, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SimulateCommissionInput, StatsFilterInputDateRange, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateChallengeInput, UpdateFeatureFlagInput, UpdateMarketplaceInput } from '../models/index';
13
+ import type { AccountNameshiftCommissionByTypeDto, AccountNoteListDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, AdminMarketplaceDto, BulkCommissionActionsInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CommissionSimulationResultDto, CreateAccountNoteInput, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListDomains200Response, ListLeads200Response, ObjectId, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SimulateCommissionInput, StatsFilterInputDateRange, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateAccountNoteInput, UpdateChallengeInput, UpdateFeatureFlagInput, UpdateMarketplaceInput, UpdateSubscriptionBuyerInformationInput } from '../models/index';
14
14
  export interface AdminApiAdminDeleteAuctionRequest {
15
15
  auctionId: string;
16
16
  }
@@ -45,12 +45,20 @@ export interface AdminApiChangeSubscriptionStatusRequest {
45
45
  export interface AdminApiCheckDomainNameserverRequest {
46
46
  domainId: string;
47
47
  }
48
+ export interface AdminApiCreateAccountNoteRequest {
49
+ accountId: string;
50
+ createAccountNoteInput: CreateAccountNoteInput;
51
+ }
48
52
  export interface AdminApiCreateChallengeRequest {
49
53
  createChallengeInput: CreateChallengeInput;
50
54
  }
51
55
  export interface AdminApiCreateNegativeInvoiceRequest {
52
56
  invoiceId: string;
53
57
  }
58
+ export interface AdminApiDeleteAccountNoteRequest {
59
+ accountId: string;
60
+ noteId: string;
61
+ }
54
62
  export interface AdminApiDeleteChallengeRequest {
55
63
  id: string;
56
64
  }
@@ -171,6 +179,9 @@ export interface AdminApiLinkBankDepositToInvoiceRequest {
171
179
  depositId: string;
172
180
  linkBankDepositToInvoiceInput: LinkBankDepositToInvoiceInput;
173
181
  }
182
+ export interface AdminApiListAccountNotesRequest {
183
+ accountId: string;
184
+ }
174
185
  export interface AdminApiListAccountsRequest {
175
186
  filter?: {
176
187
  [key: string]: string;
@@ -286,6 +297,11 @@ export interface AdminApiUpdateAccountChallengeRewardBalancePointsRequest {
286
297
  accountId: string;
287
298
  updateAccountChallengeRewardBalanceInput: UpdateAccountChallengeRewardBalanceInput;
288
299
  }
300
+ export interface AdminApiUpdateAccountNoteRequest {
301
+ accountId: string;
302
+ noteId: string;
303
+ updateAccountNoteInput: UpdateAccountNoteInput;
304
+ }
289
305
  export interface AdminApiUpdateAccountSettingsRequest {
290
306
  accountId: string;
291
307
  adminAccountSettingsInput: AdminAccountSettingsInput;
@@ -302,6 +318,10 @@ export interface AdminApiUpdateMarketplaceRequest {
302
318
  code: UpdateMarketplaceCodeEnum;
303
319
  updateMarketplaceInput: UpdateMarketplaceInput;
304
320
  }
321
+ export interface AdminApiUpdateSubscriptionBuyerInformationRequest {
322
+ subscriptionId: string;
323
+ updateSubscriptionBuyerInformationInput: UpdateSubscriptionBuyerInformationInput;
324
+ }
305
325
  export interface AdminApiVerifyAccountAliasRequest {
306
326
  accountId: string;
307
327
  }
@@ -392,6 +412,16 @@ export declare class AdminApi extends runtime.BaseAPI {
392
412
  * Check domain nameservers
393
413
  */
394
414
  checkDomainNameserver(requestParameters: AdminApiCheckDomainNameserverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
415
+ /**
416
+ * Adds a private note to a seller account.
417
+ * Create account note
418
+ */
419
+ createAccountNoteRaw(requestParameters: AdminApiCreateAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
420
+ /**
421
+ * Adds a private note to a seller account.
422
+ * Create account note
423
+ */
424
+ createAccountNote(requestParameters: AdminApiCreateAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
395
425
  /**
396
426
  * Creates a new challenge.
397
427
  * Create challenge
@@ -412,6 +442,16 @@ export declare class AdminApi extends runtime.BaseAPI {
412
442
  * Create negative invoice
413
443
  */
414
444
  createNegativeInvoice(requestParameters: AdminApiCreateNegativeInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId>;
445
+ /**
446
+ * Soft-deletes a note. Only its author, or a super admin, may do so.
447
+ * Delete account note
448
+ */
449
+ deleteAccountNoteRaw(requestParameters: AdminApiDeleteAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
450
+ /**
451
+ * Soft-deletes a note. Only its author, or a super admin, may do so.
452
+ * Delete account note
453
+ */
454
+ deleteAccountNote(requestParameters: AdminApiDeleteAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
415
455
  /**
416
456
  * Soft-deletes a multi-count challenge. At least one challenge of each type must remain.
417
457
  * Delete challenge
@@ -652,6 +692,16 @@ export declare class AdminApi extends runtime.BaseAPI {
652
692
  * Link bank deposit to invoice
653
693
  */
654
694
  linkBankDepositToInvoice(requestParameters: AdminApiLinkBankDepositToInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
695
+ /**
696
+ * Lists the private notes of a seller account, oldest first. Every internal role sees the same notes.
697
+ * List account notes
698
+ */
699
+ listAccountNotesRaw(requestParameters: AdminApiListAccountNotesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountNoteListDto>>;
700
+ /**
701
+ * Lists the private notes of a seller account, oldest first. Every internal role sees the same notes.
702
+ * List account notes
703
+ */
704
+ listAccountNotes(requestParameters: AdminApiListAccountNotesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountNoteListDto>;
655
705
  /**
656
706
  * Lists all seller accounts.
657
707
  * List accounts
@@ -922,6 +972,16 @@ export declare class AdminApi extends runtime.BaseAPI {
922
972
  * Update challenge reward balance
923
973
  */
924
974
  updateAccountChallengeRewardBalancePoints(requestParameters: AdminApiUpdateAccountChallengeRewardBalancePointsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
975
+ /**
976
+ * Updates the body of a note. Only its author, or a super admin, may do so.
977
+ * Update account note
978
+ */
979
+ updateAccountNoteRaw(requestParameters: AdminApiUpdateAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
980
+ /**
981
+ * Updates the body of a note. Only its author, or a super admin, may do so.
982
+ * Update account note
983
+ */
984
+ updateAccountNote(requestParameters: AdminApiUpdateAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
925
985
  /**
926
986
  * Updates admin-managed account settings.
927
987
  * Update account settings
@@ -962,6 +1022,16 @@ export declare class AdminApi extends runtime.BaseAPI {
962
1022
  * Update a marketplace
963
1023
  */
964
1024
  updateMarketplace(requestParameters: AdminApiUpdateMarketplaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
1025
+ /**
1026
+ * Updates the buyer information stored on the subscription. The change is applied from the next renewal onwards: the already issued invoices, including the active one, are left untouched. Note that the emails related to the current invoice are still sent to the email of that invoice.
1027
+ * Update subscription buyer information
1028
+ */
1029
+ updateSubscriptionBuyerInformationRaw(requestParameters: AdminApiUpdateSubscriptionBuyerInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
1030
+ /**
1031
+ * Updates the buyer information stored on the subscription. The change is applied from the next renewal onwards: the already issued invoices, including the active one, are left untouched. Note that the emails related to the current invoice are still sent to the email of that invoice.
1032
+ * Update subscription buyer information
1033
+ */
1034
+ updateSubscriptionBuyerInformation(requestParameters: AdminApiUpdateSubscriptionBuyerInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
965
1035
  /**
966
1036
  * Marks the account alias as verified.
967
1037
  * Verify account alias
@@ -534,6 +534,64 @@ var AdminApi = /** @class */ (function (_super) {
534
534
  });
535
535
  });
536
536
  };
537
+ /**
538
+ * Adds a private note to a seller account.
539
+ * Create account note
540
+ */
541
+ AdminApi.prototype.createAccountNoteRaw = function (requestParameters, initOverrides) {
542
+ return __awaiter(this, void 0, void 0, function () {
543
+ var queryParameters, headerParameters, token, tokenString, response;
544
+ return __generator(this, function (_a) {
545
+ switch (_a.label) {
546
+ case 0:
547
+ if (requestParameters['accountId'] == null) {
548
+ throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling createAccountNote().');
549
+ }
550
+ if (requestParameters['createAccountNoteInput'] == null) {
551
+ throw new runtime.RequiredError('createAccountNoteInput', 'Required parameter "createAccountNoteInput" was null or undefined when calling createAccountNote().');
552
+ }
553
+ queryParameters = {};
554
+ headerParameters = {};
555
+ headerParameters['Content-Type'] = 'application/json';
556
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
557
+ token = this.configuration.accessToken;
558
+ return [4 /*yield*/, token("bearer", [])];
559
+ case 1:
560
+ tokenString = _a.sent();
561
+ if (tokenString) {
562
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
563
+ }
564
+ _a.label = 2;
565
+ case 2: return [4 /*yield*/, this.request({
566
+ path: "/admin/accounts/{accountId}/notes".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
567
+ method: 'POST',
568
+ headers: headerParameters,
569
+ query: queryParameters,
570
+ body: (0, index_1.CreateAccountNoteInputToJSON)(requestParameters['createAccountNoteInput']),
571
+ }, initOverrides)];
572
+ case 3:
573
+ response = _a.sent();
574
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
575
+ }
576
+ });
577
+ });
578
+ };
579
+ /**
580
+ * Adds a private note to a seller account.
581
+ * Create account note
582
+ */
583
+ AdminApi.prototype.createAccountNote = function (requestParameters, initOverrides) {
584
+ return __awaiter(this, void 0, void 0, function () {
585
+ return __generator(this, function (_a) {
586
+ switch (_a.label) {
587
+ case 0: return [4 /*yield*/, this.createAccountNoteRaw(requestParameters, initOverrides)];
588
+ case 1:
589
+ _a.sent();
590
+ return [2 /*return*/];
591
+ }
592
+ });
593
+ });
594
+ };
537
595
  /**
538
596
  * Creates a new challenge.
539
597
  * Create challenge
@@ -644,6 +702,62 @@ var AdminApi = /** @class */ (function (_super) {
644
702
  });
645
703
  });
646
704
  };
705
+ /**
706
+ * Soft-deletes a note. Only its author, or a super admin, may do so.
707
+ * Delete account note
708
+ */
709
+ AdminApi.prototype.deleteAccountNoteRaw = function (requestParameters, initOverrides) {
710
+ return __awaiter(this, void 0, void 0, function () {
711
+ var queryParameters, headerParameters, token, tokenString, response;
712
+ return __generator(this, function (_a) {
713
+ switch (_a.label) {
714
+ case 0:
715
+ if (requestParameters['accountId'] == null) {
716
+ throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling deleteAccountNote().');
717
+ }
718
+ if (requestParameters['noteId'] == null) {
719
+ throw new runtime.RequiredError('noteId', 'Required parameter "noteId" was null or undefined when calling deleteAccountNote().');
720
+ }
721
+ queryParameters = {};
722
+ headerParameters = {};
723
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
724
+ token = this.configuration.accessToken;
725
+ return [4 /*yield*/, token("bearer", [])];
726
+ case 1:
727
+ tokenString = _a.sent();
728
+ if (tokenString) {
729
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
730
+ }
731
+ _a.label = 2;
732
+ case 2: return [4 /*yield*/, this.request({
733
+ path: "/admin/accounts/{accountId}/notes/{noteId}".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))).replace("{".concat("noteId", "}"), encodeURIComponent(String(requestParameters['noteId']))),
734
+ method: 'DELETE',
735
+ headers: headerParameters,
736
+ query: queryParameters,
737
+ }, initOverrides)];
738
+ case 3:
739
+ response = _a.sent();
740
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
741
+ }
742
+ });
743
+ });
744
+ };
745
+ /**
746
+ * Soft-deletes a note. Only its author, or a super admin, may do so.
747
+ * Delete account note
748
+ */
749
+ AdminApi.prototype.deleteAccountNote = function (requestParameters, initOverrides) {
750
+ return __awaiter(this, void 0, void 0, function () {
751
+ return __generator(this, function (_a) {
752
+ switch (_a.label) {
753
+ case 0: return [4 /*yield*/, this.deleteAccountNoteRaw(requestParameters, initOverrides)];
754
+ case 1:
755
+ _a.sent();
756
+ return [2 /*return*/];
757
+ }
758
+ });
759
+ });
760
+ };
647
761
  /**
648
762
  * Soft-deletes a multi-count challenge. At least one challenge of each type must remain.
649
763
  * Delete challenge
@@ -2080,6 +2194,61 @@ var AdminApi = /** @class */ (function (_super) {
2080
2194
  });
2081
2195
  });
2082
2196
  };
2197
+ /**
2198
+ * Lists the private notes of a seller account, oldest first. Every internal role sees the same notes.
2199
+ * List account notes
2200
+ */
2201
+ AdminApi.prototype.listAccountNotesRaw = function (requestParameters, initOverrides) {
2202
+ return __awaiter(this, void 0, void 0, function () {
2203
+ var queryParameters, headerParameters, token, tokenString, response;
2204
+ return __generator(this, function (_a) {
2205
+ switch (_a.label) {
2206
+ case 0:
2207
+ if (requestParameters['accountId'] == null) {
2208
+ throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling listAccountNotes().');
2209
+ }
2210
+ queryParameters = {};
2211
+ headerParameters = {};
2212
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
2213
+ token = this.configuration.accessToken;
2214
+ return [4 /*yield*/, token("bearer", [])];
2215
+ case 1:
2216
+ tokenString = _a.sent();
2217
+ if (tokenString) {
2218
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
2219
+ }
2220
+ _a.label = 2;
2221
+ case 2: return [4 /*yield*/, this.request({
2222
+ path: "/admin/accounts/{accountId}/notes".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
2223
+ method: 'GET',
2224
+ headers: headerParameters,
2225
+ query: queryParameters,
2226
+ }, initOverrides)];
2227
+ case 3:
2228
+ response = _a.sent();
2229
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AccountNoteListDtoFromJSON)(jsonValue); })];
2230
+ }
2231
+ });
2232
+ });
2233
+ };
2234
+ /**
2235
+ * Lists the private notes of a seller account, oldest first. Every internal role sees the same notes.
2236
+ * List account notes
2237
+ */
2238
+ AdminApi.prototype.listAccountNotes = function (requestParameters, initOverrides) {
2239
+ return __awaiter(this, void 0, void 0, function () {
2240
+ var response;
2241
+ return __generator(this, function (_a) {
2242
+ switch (_a.label) {
2243
+ case 0: return [4 /*yield*/, this.listAccountNotesRaw(requestParameters, initOverrides)];
2244
+ case 1:
2245
+ response = _a.sent();
2246
+ return [4 /*yield*/, response.value()];
2247
+ case 2: return [2 /*return*/, _a.sent()];
2248
+ }
2249
+ });
2250
+ });
2251
+ };
2083
2252
  /**
2084
2253
  * Lists all seller accounts.
2085
2254
  * List accounts
@@ -3646,6 +3815,67 @@ var AdminApi = /** @class */ (function (_super) {
3646
3815
  });
3647
3816
  });
3648
3817
  };
3818
+ /**
3819
+ * Updates the body of a note. Only its author, or a super admin, may do so.
3820
+ * Update account note
3821
+ */
3822
+ AdminApi.prototype.updateAccountNoteRaw = function (requestParameters, initOverrides) {
3823
+ return __awaiter(this, void 0, void 0, function () {
3824
+ var queryParameters, headerParameters, token, tokenString, response;
3825
+ return __generator(this, function (_a) {
3826
+ switch (_a.label) {
3827
+ case 0:
3828
+ if (requestParameters['accountId'] == null) {
3829
+ throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling updateAccountNote().');
3830
+ }
3831
+ if (requestParameters['noteId'] == null) {
3832
+ throw new runtime.RequiredError('noteId', 'Required parameter "noteId" was null or undefined when calling updateAccountNote().');
3833
+ }
3834
+ if (requestParameters['updateAccountNoteInput'] == null) {
3835
+ throw new runtime.RequiredError('updateAccountNoteInput', 'Required parameter "updateAccountNoteInput" was null or undefined when calling updateAccountNote().');
3836
+ }
3837
+ queryParameters = {};
3838
+ headerParameters = {};
3839
+ headerParameters['Content-Type'] = 'application/json';
3840
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
3841
+ token = this.configuration.accessToken;
3842
+ return [4 /*yield*/, token("bearer", [])];
3843
+ case 1:
3844
+ tokenString = _a.sent();
3845
+ if (tokenString) {
3846
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
3847
+ }
3848
+ _a.label = 2;
3849
+ case 2: return [4 /*yield*/, this.request({
3850
+ path: "/admin/accounts/{accountId}/notes/{noteId}".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))).replace("{".concat("noteId", "}"), encodeURIComponent(String(requestParameters['noteId']))),
3851
+ method: 'PATCH',
3852
+ headers: headerParameters,
3853
+ query: queryParameters,
3854
+ body: (0, index_1.UpdateAccountNoteInputToJSON)(requestParameters['updateAccountNoteInput']),
3855
+ }, initOverrides)];
3856
+ case 3:
3857
+ response = _a.sent();
3858
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
3859
+ }
3860
+ });
3861
+ });
3862
+ };
3863
+ /**
3864
+ * Updates the body of a note. Only its author, or a super admin, may do so.
3865
+ * Update account note
3866
+ */
3867
+ AdminApi.prototype.updateAccountNote = function (requestParameters, initOverrides) {
3868
+ return __awaiter(this, void 0, void 0, function () {
3869
+ return __generator(this, function (_a) {
3870
+ switch (_a.label) {
3871
+ case 0: return [4 /*yield*/, this.updateAccountNoteRaw(requestParameters, initOverrides)];
3872
+ case 1:
3873
+ _a.sent();
3874
+ return [2 /*return*/];
3875
+ }
3876
+ });
3877
+ });
3878
+ };
3649
3879
  /**
3650
3880
  * Updates admin-managed account settings.
3651
3881
  * Update account settings
@@ -3878,6 +4108,64 @@ var AdminApi = /** @class */ (function (_super) {
3878
4108
  });
3879
4109
  });
3880
4110
  };
4111
+ /**
4112
+ * Updates the buyer information stored on the subscription. The change is applied from the next renewal onwards: the already issued invoices, including the active one, are left untouched. Note that the emails related to the current invoice are still sent to the email of that invoice.
4113
+ * Update subscription buyer information
4114
+ */
4115
+ AdminApi.prototype.updateSubscriptionBuyerInformationRaw = function (requestParameters, initOverrides) {
4116
+ return __awaiter(this, void 0, void 0, function () {
4117
+ var queryParameters, headerParameters, token, tokenString, response;
4118
+ return __generator(this, function (_a) {
4119
+ switch (_a.label) {
4120
+ case 0:
4121
+ if (requestParameters['subscriptionId'] == null) {
4122
+ throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling updateSubscriptionBuyerInformation().');
4123
+ }
4124
+ if (requestParameters['updateSubscriptionBuyerInformationInput'] == null) {
4125
+ throw new runtime.RequiredError('updateSubscriptionBuyerInformationInput', 'Required parameter "updateSubscriptionBuyerInformationInput" was null or undefined when calling updateSubscriptionBuyerInformation().');
4126
+ }
4127
+ queryParameters = {};
4128
+ headerParameters = {};
4129
+ headerParameters['Content-Type'] = 'application/json';
4130
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
4131
+ token = this.configuration.accessToken;
4132
+ return [4 /*yield*/, token("bearer", [])];
4133
+ case 1:
4134
+ tokenString = _a.sent();
4135
+ if (tokenString) {
4136
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
4137
+ }
4138
+ _a.label = 2;
4139
+ case 2: return [4 /*yield*/, this.request({
4140
+ path: "/admin/subscriptions/{subscriptionId}/buyer-information".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))),
4141
+ method: 'PATCH',
4142
+ headers: headerParameters,
4143
+ query: queryParameters,
4144
+ body: (0, index_1.UpdateSubscriptionBuyerInformationInputToJSON)(requestParameters['updateSubscriptionBuyerInformationInput']),
4145
+ }, initOverrides)];
4146
+ case 3:
4147
+ response = _a.sent();
4148
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
4149
+ }
4150
+ });
4151
+ });
4152
+ };
4153
+ /**
4154
+ * Updates the buyer information stored on the subscription. The change is applied from the next renewal onwards: the already issued invoices, including the active one, are left untouched. Note that the emails related to the current invoice are still sent to the email of that invoice.
4155
+ * Update subscription buyer information
4156
+ */
4157
+ AdminApi.prototype.updateSubscriptionBuyerInformation = function (requestParameters, initOverrides) {
4158
+ return __awaiter(this, void 0, void 0, function () {
4159
+ return __generator(this, function (_a) {
4160
+ switch (_a.label) {
4161
+ case 0: return [4 /*yield*/, this.updateSubscriptionBuyerInformationRaw(requestParameters, initOverrides)];
4162
+ case 1:
4163
+ _a.sent();
4164
+ return [2 /*return*/];
4165
+ }
4166
+ });
4167
+ });
4168
+ };
3881
4169
  /**
3882
4170
  * Marks the account alias as verified.
3883
4171
  * Verify account alias
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AddSubscriptionDomainRecordInput, AuctionBidInput, AuctionBuyerDto, BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BulkMarkBuyerNotificationsAsReadInputDto, BuyerAccessTokenDto, BuyerAuctionDetailDto, BuyerDomainRecordsDto, BuyerDomainTransferAuthCodeDto, BuyerNotificationDto, BuyerNotificationSettingsDto, BuyerSessionDto, BuyerTaskDetailsDto, CreateBuyerLeadMessageInput, GetBuyerAuctions200Response, GetBuyerInvoices200Response, GetBuyerLeads200Response, GetBuyerSubscriptions200Response, GetBuyerTransfers200Response, LeadDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, LeadMessageDto, ListBuyerNotifications200Response, ObjectId, PutBuyerLeadOfferInput, RegisterAuctionBuyerPhoneInput, RegisterInput, RemoveSubscriptionDomainRecordInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput, UpdateAuctionMuteStatusInput, UpdateBuyerDomainTransferBuyerInfoInput, UpdateBuyerDomainTransferIpsTagInputDto, UpdateBuyerNotificationSettingsInput, UpdateLeadMuteStatusForBuyerInput, UpdateSubscriptionDomainNameserversInput, UpdateSubscriptionDomainRecordInput, UpdateTaskMuteStatusForBuyerInput, VerifyPhoneOtpInput } from '../models/index';
13
+ import type { AddSubscriptionDomainRecordInput, AuctionBidInput, AuctionBuyerDto, BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BulkMarkBuyerNotificationsAsReadInputDto, BuyerAccessTokenDto, BuyerAuctionDetailDto, BuyerDomainRecordsDto, BuyerDomainTransferAuthCodeDto, BuyerNotificationDto, BuyerNotificationSettingsDto, BuyerSessionDto, BuyerTaskDetailsDto, CreateBuyerLeadMessageInput, GetBuyerAuctions200Response, GetBuyerInvoices200Response, GetBuyerLeads200Response, GetBuyerSubscriptions200Response, GetBuyerTransfers200Response, LeadDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, LeadMessageDto, ListBuyerNotifications200Response, ObjectId, PutBuyerLeadOfferInput, RegisterAuctionBuyerPhoneInput, RegisterInput, RemoveSubscriptionDomainRecordInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput, UpdateAuctionMuteStatusInput, UpdateBuyerDomainTransferBuyerInfoInput, UpdateBuyerDomainTransferIpsTagInputDto, UpdateBuyerNotificationSettingsInput, UpdateLeadMuteStatusForBuyerInput, UpdateSubscriptionBuyerInformationInput, UpdateSubscriptionDomainNameserversInput, UpdateSubscriptionDomainRecordInput, UpdateTaskMuteStatusForBuyerInput, VerifyPhoneOtpInput } from '../models/index';
14
14
  export interface BuyersApiAcceptBuyerLeadOfferRequest {
15
15
  leadId: string;
16
16
  }
@@ -161,6 +161,10 @@ export interface BuyersApiUpdateBuyerDomainTransferBuyerInfoRequest {
161
161
  export interface BuyersApiUpdateBuyerNotificationSettingsRequest {
162
162
  updateBuyerNotificationSettingsInput: UpdateBuyerNotificationSettingsInput;
163
163
  }
164
+ export interface BuyersApiUpdateBuyerSubscriptionBuyerInformationRequest {
165
+ subscriptionId: string;
166
+ updateSubscriptionBuyerInformationInput: UpdateSubscriptionBuyerInformationInput;
167
+ }
164
168
  export interface BuyersApiUpdateDomainTransferIpsTagRequest {
165
169
  transferId: string;
166
170
  updateBuyerDomainTransferIpsTagInputDto: UpdateBuyerDomainTransferIpsTagInputDto;
@@ -581,6 +585,16 @@ export declare class BuyersApi extends runtime.BaseAPI {
581
585
  * Update notification settings
582
586
  */
583
587
  updateBuyerNotificationSettings(requestParameters: BuyersApiUpdateBuyerNotificationSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
588
+ /**
589
+ * Updates the billing information stored on one of the subscriptions of the current buyer. The change is applied from the next renewal onwards: the already issued invoices, including the active one, are left untouched.
590
+ * Update the billing information of a subscription
591
+ */
592
+ updateBuyerSubscriptionBuyerInformationRaw(requestParameters: BuyersApiUpdateBuyerSubscriptionBuyerInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
593
+ /**
594
+ * Updates the billing information stored on one of the subscriptions of the current buyer. The change is applied from the next renewal onwards: the already issued invoices, including the active one, are left untouched.
595
+ * Update the billing information of a subscription
596
+ */
597
+ updateBuyerSubscriptionBuyerInformation(requestParameters: BuyersApiUpdateBuyerSubscriptionBuyerInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
584
598
  /**
585
599
  * Updates the IPS tag for a .uk domain transfer during the buyer workflow step.
586
600
  * Update IPS tag
@@ -2313,6 +2313,64 @@ var BuyersApi = /** @class */ (function (_super) {
2313
2313
  });
2314
2314
  });
2315
2315
  };
2316
+ /**
2317
+ * Updates the billing information stored on one of the subscriptions of the current buyer. The change is applied from the next renewal onwards: the already issued invoices, including the active one, are left untouched.
2318
+ * Update the billing information of a subscription
2319
+ */
2320
+ BuyersApi.prototype.updateBuyerSubscriptionBuyerInformationRaw = function (requestParameters, initOverrides) {
2321
+ return __awaiter(this, void 0, void 0, function () {
2322
+ var queryParameters, headerParameters, token, tokenString, response;
2323
+ return __generator(this, function (_a) {
2324
+ switch (_a.label) {
2325
+ case 0:
2326
+ if (requestParameters['subscriptionId'] == null) {
2327
+ throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling updateBuyerSubscriptionBuyerInformation().');
2328
+ }
2329
+ if (requestParameters['updateSubscriptionBuyerInformationInput'] == null) {
2330
+ throw new runtime.RequiredError('updateSubscriptionBuyerInformationInput', 'Required parameter "updateSubscriptionBuyerInformationInput" was null or undefined when calling updateBuyerSubscriptionBuyerInformation().');
2331
+ }
2332
+ queryParameters = {};
2333
+ headerParameters = {};
2334
+ headerParameters['Content-Type'] = 'application/json';
2335
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
2336
+ token = this.configuration.accessToken;
2337
+ return [4 /*yield*/, token("bearer", [])];
2338
+ case 1:
2339
+ tokenString = _a.sent();
2340
+ if (tokenString) {
2341
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
2342
+ }
2343
+ _a.label = 2;
2344
+ case 2: return [4 /*yield*/, this.request({
2345
+ path: "/buyers/private/subscriptions/{subscriptionId}/buyer-information".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))),
2346
+ method: 'PATCH',
2347
+ headers: headerParameters,
2348
+ query: queryParameters,
2349
+ body: (0, index_1.UpdateSubscriptionBuyerInformationInputToJSON)(requestParameters['updateSubscriptionBuyerInformationInput']),
2350
+ }, initOverrides)];
2351
+ case 3:
2352
+ response = _a.sent();
2353
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
2354
+ }
2355
+ });
2356
+ });
2357
+ };
2358
+ /**
2359
+ * Updates the billing information stored on one of the subscriptions of the current buyer. The change is applied from the next renewal onwards: the already issued invoices, including the active one, are left untouched.
2360
+ * Update the billing information of a subscription
2361
+ */
2362
+ BuyersApi.prototype.updateBuyerSubscriptionBuyerInformation = function (requestParameters, initOverrides) {
2363
+ return __awaiter(this, void 0, void 0, function () {
2364
+ return __generator(this, function (_a) {
2365
+ switch (_a.label) {
2366
+ case 0: return [4 /*yield*/, this.updateBuyerSubscriptionBuyerInformationRaw(requestParameters, initOverrides)];
2367
+ case 1:
2368
+ _a.sent();
2369
+ return [2 /*return*/];
2370
+ }
2371
+ });
2372
+ });
2373
+ };
2316
2374
  /**
2317
2375
  * Updates the IPS tag for a .uk domain transfer during the buyer workflow step.
2318
2376
  * Update IPS tag