@randock/nameshift-api-client 0.0.474 → 0.0.475

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +57 -1
  4. package/dist/apis/AdminApi.js +230 -0
  5. package/dist/apis/CustomerSuccessApi.d.ts +57 -1
  6. package/dist/apis/CustomerSuccessApi.js +230 -0
  7. package/dist/models/AccountNoteAuthorDto.d.ts +50 -0
  8. package/dist/models/AccountNoteAuthorDto.js +63 -0
  9. package/dist/models/AccountNoteDto.d.ts +63 -0
  10. package/dist/models/AccountNoteDto.js +72 -0
  11. package/dist/models/AccountNoteListDto.d.ts +33 -0
  12. package/dist/models/AccountNoteListDto.js +52 -0
  13. package/dist/models/AdminListAccountDto.d.ts +12 -0
  14. package/dist/models/AdminListAccountDto.js +8 -0
  15. package/dist/models/CreateAccountNoteInput.d.ts +32 -0
  16. package/dist/models/CreateAccountNoteInput.js +51 -0
  17. package/dist/models/CustomerSuccessListAccountDto.d.ts +12 -0
  18. package/dist/models/CustomerSuccessListAccountDto.js +8 -0
  19. package/dist/models/ForbiddenException.d.ts +44 -0
  20. package/dist/models/ForbiddenException.js +59 -0
  21. package/dist/models/UpdateAccountNoteInput.d.ts +32 -0
  22. package/dist/models/UpdateAccountNoteInput.js +51 -0
  23. package/dist/models/index.d.ts +6 -0
  24. package/dist/models/index.js +6 -0
  25. package/package.json +1 -1
  26. package/src/apis/AccountsApi.ts +3 -0
  27. package/src/apis/AdminApi.ts +235 -0
  28. package/src/apis/BuyersApi.ts +3 -0
  29. package/src/apis/CustomerSuccessApi.ts +238 -0
  30. package/src/apis/DomainsApi.ts +3 -0
  31. package/src/models/AccountNoteAuthorDto.ts +93 -0
  32. package/src/models/AccountNoteDto.ts +119 -0
  33. package/src/models/AccountNoteListDto.ts +74 -0
  34. package/src/models/AdminListAccountDto.ts +18 -0
  35. package/src/models/CreateAccountNoteInput.ts +66 -0
  36. package/src/models/CustomerSuccessListAccountDto.ts +18 -0
  37. package/src/models/ForbiddenException.ts +84 -0
  38. package/src/models/UpdateAccountNoteInput.ts +66 -0
  39. package/src/models/index.ts +6 -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
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.474
1
+ ## @randock/nameshift-api-client@0.0.475
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.475 --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
+ 05c66ce269439b857c42b2e92a88f9a5e82eb0db09d64d7f7402a4784a0bc207405198736983955a11778e652860a808
@@ -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 } 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;
@@ -392,6 +408,16 @@ export declare class AdminApi extends runtime.BaseAPI {
392
408
  * Check domain nameservers
393
409
  */
394
410
  checkDomainNameserver(requestParameters: AdminApiCheckDomainNameserverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
411
+ /**
412
+ * Adds a private note to a seller account.
413
+ * Create account note
414
+ */
415
+ createAccountNoteRaw(requestParameters: AdminApiCreateAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
416
+ /**
417
+ * Adds a private note to a seller account.
418
+ * Create account note
419
+ */
420
+ createAccountNote(requestParameters: AdminApiCreateAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
395
421
  /**
396
422
  * Creates a new challenge.
397
423
  * Create challenge
@@ -412,6 +438,16 @@ export declare class AdminApi extends runtime.BaseAPI {
412
438
  * Create negative invoice
413
439
  */
414
440
  createNegativeInvoice(requestParameters: AdminApiCreateNegativeInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId>;
441
+ /**
442
+ * Soft-deletes a note. Only its author, or a super admin, may do so.
443
+ * Delete account note
444
+ */
445
+ deleteAccountNoteRaw(requestParameters: AdminApiDeleteAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
446
+ /**
447
+ * Soft-deletes a note. Only its author, or a super admin, may do so.
448
+ * Delete account note
449
+ */
450
+ deleteAccountNote(requestParameters: AdminApiDeleteAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
415
451
  /**
416
452
  * Soft-deletes a multi-count challenge. At least one challenge of each type must remain.
417
453
  * Delete challenge
@@ -652,6 +688,16 @@ export declare class AdminApi extends runtime.BaseAPI {
652
688
  * Link bank deposit to invoice
653
689
  */
654
690
  linkBankDepositToInvoice(requestParameters: AdminApiLinkBankDepositToInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
691
+ /**
692
+ * Lists the private notes of a seller account, oldest first. Every internal role sees the same notes.
693
+ * List account notes
694
+ */
695
+ listAccountNotesRaw(requestParameters: AdminApiListAccountNotesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountNoteListDto>>;
696
+ /**
697
+ * Lists the private notes of a seller account, oldest first. Every internal role sees the same notes.
698
+ * List account notes
699
+ */
700
+ listAccountNotes(requestParameters: AdminApiListAccountNotesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountNoteListDto>;
655
701
  /**
656
702
  * Lists all seller accounts.
657
703
  * List accounts
@@ -922,6 +968,16 @@ export declare class AdminApi extends runtime.BaseAPI {
922
968
  * Update challenge reward balance
923
969
  */
924
970
  updateAccountChallengeRewardBalancePoints(requestParameters: AdminApiUpdateAccountChallengeRewardBalancePointsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
971
+ /**
972
+ * Updates the body of a note. Only its author, or a super admin, may do so.
973
+ * Update account note
974
+ */
975
+ updateAccountNoteRaw(requestParameters: AdminApiUpdateAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
976
+ /**
977
+ * Updates the body of a note. Only its author, or a super admin, may do so.
978
+ * Update account note
979
+ */
980
+ updateAccountNote(requestParameters: AdminApiUpdateAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
925
981
  /**
926
982
  * Updates admin-managed account settings.
927
983
  * Update account settings
@@ -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
@@ -10,7 +10,15 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ListCustomerSuccessAccountDomains200Response, ListCustomerSuccessAccounts200Response } from '../models/index';
13
+ import type { AccountNoteListDto, CreateAccountNoteInput, ListCustomerSuccessAccountDomains200Response, ListCustomerSuccessAccounts200Response, UpdateAccountNoteInput } from '../models/index';
14
+ export interface CustomerSuccessApiCreateCustomerSuccessAccountNoteRequest {
15
+ accountId: string;
16
+ createAccountNoteInput: CreateAccountNoteInput;
17
+ }
18
+ export interface CustomerSuccessApiDeleteCustomerSuccessAccountNoteRequest {
19
+ accountId: string;
20
+ noteId: string;
21
+ }
14
22
  export interface CustomerSuccessApiListCustomerSuccessAccountDomainsRequest {
15
23
  accountId: string;
16
24
  filter?: {
@@ -22,6 +30,9 @@ export interface CustomerSuccessApiListCustomerSuccessAccountDomainsRequest {
22
30
  filterSold?: string;
23
31
  filterPointingDnsStatus?: string;
24
32
  }
33
+ export interface CustomerSuccessApiListCustomerSuccessAccountNotesRequest {
34
+ accountId: string;
35
+ }
25
36
  export interface CustomerSuccessApiListCustomerSuccessAccountsRequest {
26
37
  filter?: {
27
38
  [key: string]: string;
@@ -33,10 +44,35 @@ export interface CustomerSuccessApiListCustomerSuccessAccountsRequest {
33
44
  filterOnboardingStatus?: string;
34
45
  filterAffiliateIdentifier?: string;
35
46
  }
47
+ export interface CustomerSuccessApiUpdateCustomerSuccessAccountNoteRequest {
48
+ accountId: string;
49
+ noteId: string;
50
+ updateAccountNoteInput: UpdateAccountNoteInput;
51
+ }
36
52
  /**
37
53
  *
38
54
  */
39
55
  export declare class CustomerSuccessApi extends runtime.BaseAPI {
56
+ /**
57
+ * Adds a private note to a seller account.
58
+ * Create account note
59
+ */
60
+ createCustomerSuccessAccountNoteRaw(requestParameters: CustomerSuccessApiCreateCustomerSuccessAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
61
+ /**
62
+ * Adds a private note to a seller account.
63
+ * Create account note
64
+ */
65
+ createCustomerSuccessAccountNote(requestParameters: CustomerSuccessApiCreateCustomerSuccessAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
66
+ /**
67
+ * Soft-deletes a note. Only its author, or a super admin, may do so.
68
+ * Delete account note
69
+ */
70
+ deleteCustomerSuccessAccountNoteRaw(requestParameters: CustomerSuccessApiDeleteCustomerSuccessAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
71
+ /**
72
+ * Soft-deletes a note. Only its author, or a super admin, may do so.
73
+ * Delete account note
74
+ */
75
+ deleteCustomerSuccessAccountNote(requestParameters: CustomerSuccessApiDeleteCustomerSuccessAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
40
76
  /**
41
77
  * Lists the domains of a single seller account for customer success follow-up. The account is taken from the path and cannot be widened through filters.
42
78
  * List account domains
@@ -47,6 +83,16 @@ export declare class CustomerSuccessApi extends runtime.BaseAPI {
47
83
  * List account domains
48
84
  */
49
85
  listCustomerSuccessAccountDomains(requestParameters: CustomerSuccessApiListCustomerSuccessAccountDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListCustomerSuccessAccountDomains200Response>;
86
+ /**
87
+ * Lists the private notes of a seller account, oldest first. Every internal role sees the same notes.
88
+ * List account notes
89
+ */
90
+ listCustomerSuccessAccountNotesRaw(requestParameters: CustomerSuccessApiListCustomerSuccessAccountNotesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountNoteListDto>>;
91
+ /**
92
+ * Lists the private notes of a seller account, oldest first. Every internal role sees the same notes.
93
+ * List account notes
94
+ */
95
+ listCustomerSuccessAccountNotes(requestParameters: CustomerSuccessApiListCustomerSuccessAccountNotesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountNoteListDto>;
50
96
  /**
51
97
  * Lists seller accounts for customer success follow-up.
52
98
  * List accounts
@@ -57,4 +103,14 @@ export declare class CustomerSuccessApi extends runtime.BaseAPI {
57
103
  * List accounts
58
104
  */
59
105
  listCustomerSuccessAccounts(requestParameters?: CustomerSuccessApiListCustomerSuccessAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListCustomerSuccessAccounts200Response>;
106
+ /**
107
+ * Updates the body of a note. Only its author, or a super admin, may do so.
108
+ * Update account note
109
+ */
110
+ updateCustomerSuccessAccountNoteRaw(requestParameters: CustomerSuccessApiUpdateCustomerSuccessAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
111
+ /**
112
+ * Updates the body of a note. Only its author, or a super admin, may do so.
113
+ * Update account note
114
+ */
115
+ updateCustomerSuccessAccountNote(requestParameters: CustomerSuccessApiUpdateCustomerSuccessAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
60
116
  }