@randock/nameshift-api-client 0.0.492 → 0.0.494

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 (78) hide show
  1. package/.openapi-generator/FILES +11 -8
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +29 -1
  4. package/dist/apis/AdminApi.js +76 -1
  5. package/dist/apis/BankAccountsApi.d.ts +40 -1
  6. package/dist/apis/BankAccountsApi.js +197 -0
  7. package/dist/models/AccountBankAccountDetailsDto.d.ts +40 -0
  8. package/dist/models/AccountBankAccountDetailsDto.js +55 -0
  9. package/dist/models/AccountBankAccountDto.d.ts +10 -4
  10. package/dist/models/AccountBankAccountDto.js +7 -3
  11. package/dist/models/BankAccountFormatCountryDto.d.ts +38 -0
  12. package/dist/models/BankAccountFormatCountryDto.js +55 -0
  13. package/dist/models/BankAccountFormatDto.d.ts +45 -0
  14. package/dist/models/BankAccountFormatDto.js +60 -0
  15. package/dist/models/BankAccountFormatFieldDto.d.ts +76 -0
  16. package/dist/models/BankAccountFormatFieldDto.js +81 -0
  17. package/dist/models/BankAccountFormatFieldOptionDto.d.ts +38 -0
  18. package/dist/models/BankAccountFormatFieldOptionDto.js +55 -0
  19. package/dist/models/BankAccountFormatFieldType.d.ts +26 -0
  20. package/dist/models/BankAccountFormatFieldType.js +52 -0
  21. package/dist/models/BankAccountFormatsDto.d.ts +33 -0
  22. package/dist/models/BankAccountFormatsDto.js +52 -0
  23. package/dist/models/CreateBankAccountDetailsInput.d.ts +40 -0
  24. package/dist/models/CreateBankAccountDetailsInput.js +55 -0
  25. package/dist/models/CreateBankAccountInput.d.ts +5 -4
  26. package/dist/models/CreateBankAccountInput.js +3 -2
  27. package/dist/models/LandingDesignAccountDto.d.ts +44 -0
  28. package/dist/models/LandingDesignAccountDto.js +59 -0
  29. package/dist/models/LandingDesignUsageDto.d.ts +6 -0
  30. package/dist/models/LandingDesignUsageDto.js +4 -0
  31. package/dist/models/ListAdminLandingDesignAccounts200Response.d.ts +47 -0
  32. package/dist/models/ListAdminLandingDesignAccounts200Response.js +62 -0
  33. package/dist/models/SearchBankAccountInstitutionsInput.d.ts +46 -0
  34. package/dist/models/SearchBankAccountInstitutionsInput.js +55 -0
  35. package/dist/models/index.d.ts +11 -8
  36. package/dist/models/index.js +11 -8
  37. package/package.json +1 -1
  38. package/src/apis/AdminApi.ts +79 -0
  39. package/src/apis/BankAccountsApi.ts +181 -0
  40. package/src/models/AccountBankAccountDetailsDto.ts +75 -0
  41. package/src/models/AccountBankAccountDto.ts +20 -11
  42. package/src/models/BankAccountFormatCountryDto.ts +75 -0
  43. package/src/models/BankAccountFormatDto.ts +92 -0
  44. package/src/models/BankAccountFormatFieldDto.ts +146 -0
  45. package/src/models/BankAccountFormatFieldOptionDto.ts +75 -0
  46. package/src/models/BankAccountFormatFieldType.ts +54 -0
  47. package/src/models/BankAccountFormatsDto.ts +74 -0
  48. package/src/models/CreateBankAccountDetailsInput.ts +75 -0
  49. package/src/models/CreateBankAccountInput.ts +14 -6
  50. package/src/models/LandingDesignAccountDto.ts +84 -0
  51. package/src/models/LandingDesignUsageDto.ts +9 -0
  52. package/src/models/ListAdminLandingDesignAccounts200Response.ts +106 -0
  53. package/src/models/SearchBankAccountInstitutionsInput.ts +82 -0
  54. package/src/models/index.ts +11 -8
  55. package/dist/models/AccountBankAccountDtoDetails.d.ts +0 -42
  56. package/dist/models/AccountBankAccountDtoDetails.js +0 -79
  57. package/dist/models/AuBankAccountDetails.d.ts +0 -63
  58. package/dist/models/AuBankAccountDetails.js +0 -76
  59. package/dist/models/CaBankAccountDetails.d.ts +0 -69
  60. package/dist/models/CaBankAccountDetails.js +0 -80
  61. package/dist/models/NzBankAccountDetails.d.ts +0 -57
  62. package/dist/models/NzBankAccountDetails.js +0 -72
  63. package/dist/models/SeBankAccountDetails.d.ts +0 -75
  64. package/dist/models/SeBankAccountDetails.js +0 -84
  65. package/dist/models/SepaBankAccountDetails.d.ts +0 -63
  66. package/dist/models/SepaBankAccountDetails.js +0 -76
  67. package/dist/models/UkBankAccountDetails.d.ts +0 -63
  68. package/dist/models/UkBankAccountDetails.js +0 -76
  69. package/dist/models/UsBankAccountDetails.d.ts +0 -63
  70. package/dist/models/UsBankAccountDetails.js +0 -76
  71. package/src/models/AccountBankAccountDtoDetails.ts +0 -128
  72. package/src/models/AuBankAccountDetails.ts +0 -109
  73. package/src/models/CaBankAccountDetails.ts +0 -118
  74. package/src/models/NzBankAccountDetails.ts +0 -100
  75. package/src/models/SeBankAccountDetails.ts +0 -127
  76. package/src/models/SepaBankAccountDetails.ts +0 -109
  77. package/src/models/UkBankAccountDetails.ts +0 -109
  78. package/src/models/UsBankAccountDetails.ts +0 -109
@@ -43,8 +43,8 @@ src/apis/index.ts
43
43
  src/index.ts
44
44
  src/models/AccountAliasDto.ts
45
45
  src/models/AccountAliasInput.ts
46
+ src/models/AccountBankAccountDetailsDto.ts
46
47
  src/models/AccountBankAccountDto.ts
47
- src/models/AccountBankAccountDtoDetails.ts
48
48
  src/models/AccountBankAccountSummaryDto.ts
49
49
  src/models/AccountChallengeRewardUsageListItemDto.ts
50
50
  src/models/AccountChallengeRewardUsageListItemDtoMetadata.ts
@@ -125,7 +125,6 @@ src/models/ApiKeyDto.ts
125
125
  src/models/ApiKeyScopeDto.ts
126
126
  src/models/ApplyDomainEditInput.ts
127
127
  src/models/AssociateVisitorInput.ts
128
- src/models/AuBankAccountDetails.ts
129
128
  src/models/AuctionBidDto.ts
130
129
  src/models/AuctionBidInput.ts
131
130
  src/models/AuctionBidMetricsDto.ts
@@ -140,6 +139,12 @@ src/models/AuctionListItemDtoDomainInformation.ts
140
139
  src/models/AuctionListItemDtoSellerAccount.ts
141
140
  src/models/AuctionsStatsDto.ts
142
141
  src/models/BadRequestException.ts
142
+ src/models/BankAccountFormatCountryDto.ts
143
+ src/models/BankAccountFormatDto.ts
144
+ src/models/BankAccountFormatFieldDto.ts
145
+ src/models/BankAccountFormatFieldOptionDto.ts
146
+ src/models/BankAccountFormatFieldType.ts
147
+ src/models/BankAccountFormatsDto.ts
143
148
  src/models/BatchDeleteBuyerLeadsInput.ts
144
149
  src/models/BatchImportPreviewDto.ts
145
150
  src/models/BatchReadBuyerLeadMessageInput.ts
@@ -184,7 +189,6 @@ src/models/BuyerSessionDto.ts
184
189
  src/models/BuyerSubscriptionListItemDto.ts
185
190
  src/models/BuyerSubscriptionListItemDtoDomainInformation.ts
186
191
  src/models/BuyerTaskDetailsDto.ts
187
- src/models/CaBankAccountDetails.ts
188
192
  src/models/ChallengeRewardBalanceDto.ts
189
193
  src/models/ChangeInvoiceStatusInput.ts
190
194
  src/models/ChangeOrderStatusInput.ts
@@ -221,6 +225,7 @@ src/models/CreateAccountNoteInput.ts
221
225
  src/models/CreateAccountPaymentInput.ts
222
226
  src/models/CreateAccountPaymentManualTransactionInput.ts
223
227
  src/models/CreateApiKeyInput.ts
228
+ src/models/CreateBankAccountDetailsInput.ts
224
229
  src/models/CreateBankAccountInput.ts
225
230
  src/models/CreateBuyerDomainAppraisalRequestInput.ts
226
231
  src/models/CreateBuyerLeadMessageInput.ts
@@ -346,6 +351,7 @@ src/models/JobDto.ts
346
351
  src/models/JobFailureDto.ts
347
352
  src/models/JobStatus.ts
348
353
  src/models/JobType.ts
354
+ src/models/LandingDesignAccountDto.ts
349
355
  src/models/LandingDesignUsageDto.ts
350
356
  src/models/LandingPageDesignSettingsDto.ts
351
357
  src/models/LandingPageDesignSettingsInput.ts
@@ -406,6 +412,7 @@ src/models/ListAccountMetricsDto.ts
406
412
  src/models/ListAccountPortfolioSizeDto.ts
407
413
  src/models/ListAccountUserDto.ts
408
414
  src/models/ListAccounts200Response.ts
415
+ src/models/ListAdminLandingDesignAccounts200Response.ts
409
416
  src/models/ListAdminRelatedLeads200Response.ts
410
417
  src/models/ListAuctions200Response.ts
411
418
  src/models/ListBankAccounts200Response.ts
@@ -439,7 +446,6 @@ src/models/MoneyInput.ts
439
446
  src/models/MozMetrics.ts
440
447
  src/models/NotFoundException.ts
441
448
  src/models/NotificationsUnsubscribeResultDto.ts
442
- src/models/NzBankAccountDetails.ts
443
449
  src/models/ObjectId.ts
444
450
  src/models/OrderCompanyInfoDto.ts
445
451
  src/models/OrderCompanyTaxIdDto.ts
@@ -499,7 +505,7 @@ src/models/SalesCountCommissionPayloadDto.ts
499
505
  src/models/SalesCountCommissionPayloadInput.ts
500
506
  src/models/SalesCountCommissionPayloadSimulationInput.ts
501
507
  src/models/SalesCountCommissionReasonPayloadDto.ts
502
- src/models/SeBankAccountDetails.ts
508
+ src/models/SearchBankAccountInstitutionsInput.ts
503
509
  src/models/SellerAccountReferralListItemDto.ts
504
510
  src/models/SellerAffiliateCommissionDto.ts
505
511
  src/models/SellerAuctionListItemDto.ts
@@ -533,7 +539,6 @@ src/models/SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto.ts
533
539
  src/models/SendAdminLeadAiPriceNegotiatorAgentChatMessageInput.ts
534
540
  src/models/SendAdminLeadAiPriceNegotiatorAgentChatMessageInputAiModel.ts
535
541
  src/models/SeoMetricsDto.ts
536
- src/models/SepaBankAccountDetails.ts
537
542
  src/models/SetAccountMarketplaceInput.ts
538
543
  src/models/SetDomainTransferConfirmationInput.ts
539
544
  src/models/SetNewPasswordInput.ts
@@ -576,7 +581,6 @@ src/models/TimeTableConfigurationInput.ts
576
581
  src/models/TopAffiliateSellerDto.ts
577
582
  src/models/TopSellerAccountDto.ts
578
583
  src/models/TranslateDomainSearchInput.ts
579
- src/models/UkBankAccountDetails.ts
580
584
  src/models/UpdateAccountBillingInformationInput.ts
581
585
  src/models/UpdateAccountChallengeRewardBalanceInput.ts
582
586
  src/models/UpdateAccountNoteInput.ts
@@ -607,7 +611,6 @@ src/models/UpdateSubscriptionInput.ts
607
611
  src/models/UpdateTaskMuteStatusForBuyerInput.ts
608
612
  src/models/UpdateTaskMuteStatusInput.ts
609
613
  src/models/UpdateUserNotificationSettingsInput.ts
610
- src/models/UsBankAccountDetails.ts
611
614
  src/models/UserNotificationAttachmentDto.ts
612
615
  src/models/UserNotificationDto.ts
613
616
  src/models/UserNotificationListItemDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.492
1
+ ## @randock/nameshift-api-client@0.0.494
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.492 --save
39
+ npm install @randock/nameshift-api-client@0.0.494 --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
- 5b1e45bef11b94ee4ff2796fa861bdb05f3034baa67b8397fa64a227e1d50a4261aa772677e5aae23ccb94f81331a660
47
+ 8ee860c785950fa4dcb730787fa978e171c98493a721840fe5c00d30ab5f82aa2969873e627145c16d6ec426a3176960
@@ -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, AccountNoteListDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, AdminLandingDesignStatsDto, AdminMarketplaceDto, BulkCommissionActionsInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CommissionSimulationResultDto, CreateAccountNoteInput, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAdminDomainAppraisalRequests200Response, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadEnrichmentDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListAdminRelatedLeads200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListDomains200Response, ListLeadMessagesDto, ListLeads200Response, ObjectId, SellerLeadDetails, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SimulateCommissionInput, StatsFilterInputDateRange, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateAccountNoteInput, UpdateAdminDomainTransferBuyerCompanyInfoInput, UpdateAdminDomainTransferBuyerInfoInput, UpdateChallengeInput, UpdateFeatureFlagInput, UpdateMarketplaceInput, UpdateSubscriptionBuyerInformationInput } from '../models/index';
13
+ import type { AccountNameshiftCommissionByTypeDto, AccountNoteListDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, AdminLandingDesignStatsDto, AdminMarketplaceDto, BulkCommissionActionsInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CommissionSimulationResultDto, CreateAccountNoteInput, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAdminDomainAppraisalRequests200Response, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadEnrichmentDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListAdminLandingDesignAccounts200Response, ListAdminRelatedLeads200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListDomains200Response, ListLeadMessagesDto, ListLeads200Response, ObjectId, SellerLeadDetails, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SimulateCommissionInput, StatsFilterInputDateRange, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateAccountNoteInput, UpdateAdminDomainTransferBuyerCompanyInfoInput, UpdateAdminDomainTransferBuyerInfoInput, UpdateChallengeInput, UpdateFeatureFlagInput, UpdateMarketplaceInput, UpdateSubscriptionBuyerInformationInput } from '../models/index';
14
14
  export interface AdminApiAdminDeleteAuctionRequest {
15
15
  auctionId: string;
16
16
  }
@@ -217,6 +217,15 @@ export interface AdminApiListAccountsRequest {
217
217
  sortBy?: Array<string>;
218
218
  filterSearchTerm?: string;
219
219
  }
220
+ export interface AdminApiListAdminLandingDesignAccountsRequest {
221
+ design: ListAdminLandingDesignAccountsDesignEnum;
222
+ filter?: {
223
+ [key: string]: string;
224
+ };
225
+ page?: number;
226
+ limit?: number;
227
+ sortBy?: Array<string>;
228
+ }
220
229
  export interface AdminApiListAdminLeadMessagesRequest {
221
230
  leadId: string;
222
231
  }
@@ -820,6 +829,16 @@ export declare class AdminApi extends runtime.BaseAPI {
820
829
  * List accounts
821
830
  */
822
831
  listAccounts(requestParameters?: AdminApiListAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAccounts200Response>;
832
+ /**
833
+ * Lists the accounts with at least one live domain whose effective landing page design is the given one, by identifier.
834
+ * List the accounts using a landing design
835
+ */
836
+ listAdminLandingDesignAccountsRaw(requestParameters: AdminApiListAdminLandingDesignAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListAdminLandingDesignAccounts200Response>>;
837
+ /**
838
+ * Lists the accounts with at least one live domain whose effective landing page design is the given one, by identifier.
839
+ * List the accounts using a landing design
840
+ */
841
+ listAdminLandingDesignAccounts(requestParameters: AdminApiListAdminLandingDesignAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAdminLandingDesignAccounts200Response>;
823
842
  /**
824
843
  * Lists the messages of a lead conversation, for any account. Read only: nothing is marked as read. Requires admin bearer authentication.
825
844
  * List lead messages
@@ -1211,6 +1230,15 @@ export declare class AdminApi extends runtime.BaseAPI {
1211
1230
  */
1212
1231
  verifyBankAccount(requestParameters: AdminApiVerifyBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
1213
1232
  }
1233
+ /**
1234
+ * @export
1235
+ */
1236
+ export declare const ListAdminLandingDesignAccountsDesignEnum: {
1237
+ readonly ORIGINAL: "original";
1238
+ readonly MODERN: "modern";
1239
+ readonly MINIMAL: "minimal";
1240
+ };
1241
+ export type ListAdminLandingDesignAccountsDesignEnum = typeof ListAdminLandingDesignAccountsDesignEnum[keyof typeof ListAdminLandingDesignAccountsDesignEnum];
1214
1242
  /**
1215
1243
  * @export
1216
1244
  */
@@ -64,7 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
64
64
  }
65
65
  };
66
66
  Object.defineProperty(exports, "__esModule", { value: true });
67
- exports.UpdateMarketplaceCodeEnum = exports.AdminApi = void 0;
67
+ exports.UpdateMarketplaceCodeEnum = exports.ListAdminLandingDesignAccountsDesignEnum = exports.AdminApi = void 0;
68
68
  var runtime = require("../runtime");
69
69
  var index_1 = require("../models/index");
70
70
  /**
@@ -2672,6 +2672,73 @@ var AdminApi = /** @class */ (function (_super) {
2672
2672
  });
2673
2673
  });
2674
2674
  };
2675
+ /**
2676
+ * Lists the accounts with at least one live domain whose effective landing page design is the given one, by identifier.
2677
+ * List the accounts using a landing design
2678
+ */
2679
+ AdminApi.prototype.listAdminLandingDesignAccountsRaw = function (requestParameters, initOverrides) {
2680
+ return __awaiter(this, void 0, void 0, function () {
2681
+ var queryParameters, headerParameters, token, tokenString, response;
2682
+ return __generator(this, function (_a) {
2683
+ switch (_a.label) {
2684
+ case 0:
2685
+ if (requestParameters['design'] == null) {
2686
+ throw new runtime.RequiredError('design', 'Required parameter "design" was null or undefined when calling listAdminLandingDesignAccounts().');
2687
+ }
2688
+ queryParameters = {};
2689
+ if (requestParameters['filter'] != null) {
2690
+ queryParameters['filter'] = requestParameters['filter'];
2691
+ }
2692
+ if (requestParameters['page'] != null) {
2693
+ queryParameters['page'] = requestParameters['page'];
2694
+ }
2695
+ if (requestParameters['limit'] != null) {
2696
+ queryParameters['limit'] = requestParameters['limit'];
2697
+ }
2698
+ if (requestParameters['sortBy'] != null) {
2699
+ queryParameters['sortBy'] = requestParameters['sortBy'];
2700
+ }
2701
+ headerParameters = {};
2702
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
2703
+ token = this.configuration.accessToken;
2704
+ return [4 /*yield*/, token("bearer", [])];
2705
+ case 1:
2706
+ tokenString = _a.sent();
2707
+ if (tokenString) {
2708
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
2709
+ }
2710
+ _a.label = 2;
2711
+ case 2: return [4 /*yield*/, this.request({
2712
+ path: "/admin/stats/landing-designs/{design}/accounts".replace("{".concat("design", "}"), encodeURIComponent(String(requestParameters['design']))),
2713
+ method: 'GET',
2714
+ headers: headerParameters,
2715
+ query: queryParameters,
2716
+ }, initOverrides)];
2717
+ case 3:
2718
+ response = _a.sent();
2719
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListAdminLandingDesignAccounts200ResponseFromJSON)(jsonValue); })];
2720
+ }
2721
+ });
2722
+ });
2723
+ };
2724
+ /**
2725
+ * Lists the accounts with at least one live domain whose effective landing page design is the given one, by identifier.
2726
+ * List the accounts using a landing design
2727
+ */
2728
+ AdminApi.prototype.listAdminLandingDesignAccounts = function (requestParameters, initOverrides) {
2729
+ return __awaiter(this, void 0, void 0, function () {
2730
+ var response;
2731
+ return __generator(this, function (_a) {
2732
+ switch (_a.label) {
2733
+ case 0: return [4 /*yield*/, this.listAdminLandingDesignAccountsRaw(requestParameters, initOverrides)];
2734
+ case 1:
2735
+ response = _a.sent();
2736
+ return [4 /*yield*/, response.value()];
2737
+ case 2: return [2 /*return*/, _a.sent()];
2738
+ }
2739
+ });
2740
+ });
2741
+ };
2675
2742
  /**
2676
2743
  * Lists the messages of a lead conversation, for any account. Read only: nothing is marked as read. Requires admin bearer authentication.
2677
2744
  * List lead messages
@@ -4914,6 +4981,14 @@ var AdminApi = /** @class */ (function (_super) {
4914
4981
  return AdminApi;
4915
4982
  }(runtime.BaseAPI));
4916
4983
  exports.AdminApi = AdminApi;
4984
+ /**
4985
+ * @export
4986
+ */
4987
+ exports.ListAdminLandingDesignAccountsDesignEnum = {
4988
+ ORIGINAL: 'original',
4989
+ MODERN: 'modern',
4990
+ MINIMAL: 'minimal'
4991
+ };
4917
4992
  /**
4918
4993
  * @export
4919
4994
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountBankAccountDto, AirwallexBankAccountDetailsDto, CreateBankAccountInput } from '../models/index';
13
+ import type { AccountBankAccountDto, AirwallexBankAccountDetailsDto, BankAccountFormatDto, BankAccountFormatFieldOptionDto, BankAccountFormatsDto, CreateBankAccountInput, SearchBankAccountInstitutionsInput } from '../models/index';
14
14
  export interface BankAccountsApiCreateBankAccountRequest {
15
15
  accountId: string;
16
16
  createBankAccountInput: CreateBankAccountInput;
@@ -19,6 +19,10 @@ export interface BankAccountsApiDeleteBankAccountRequest {
19
19
  accountId: string;
20
20
  bankAccountId: string;
21
21
  }
22
+ export interface BankAccountsApiGetBankAccountFormatRequest {
23
+ countryCode: string;
24
+ currencyCode: string;
25
+ }
22
26
  export interface BankAccountsApiGetBankAccountToUseForMicrodepositRequest {
23
27
  bankAccountId: string;
24
28
  accountId: string;
@@ -30,6 +34,11 @@ export interface BankAccountsApiMakeBankAccountPrimaryRequest {
30
34
  accountId: string;
31
35
  bankAccountId: string;
32
36
  }
37
+ export interface BankAccountsApiSearchBankAccountInstitutionsRequest {
38
+ countryCode: string;
39
+ currencyCode: string;
40
+ searchBankAccountInstitutionsInput: SearchBankAccountInstitutionsInput;
41
+ }
33
42
  /**
34
43
  *
35
44
  */
@@ -54,6 +63,16 @@ export declare class BankAccountsApi extends runtime.BaseAPI {
54
63
  * Delete bank account
55
64
  */
56
65
  deleteBankAccount(requestParameters: BankAccountsApiDeleteBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
66
+ /**
67
+ * Returns the fields a bank account in this country and currency needs, to render the form from and submit in `details.fields`. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
68
+ * Get the bank details to ask for
69
+ */
70
+ getBankAccountFormatRaw(requestParameters: BankAccountsApiGetBankAccountFormatRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BankAccountFormatDto>>;
71
+ /**
72
+ * Returns the fields a bank account in this country and currency needs, to render the form from and submit in `details.fields`. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
73
+ * Get the bank details to ask for
74
+ */
75
+ getBankAccountFormat(requestParameters: BankAccountsApiGetBankAccountFormatRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BankAccountFormatDto>;
57
76
  /**
58
77
  * Returns bank account details to use for microdeposit verification. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
59
78
  * Get microdeposit bank account details
@@ -64,6 +83,16 @@ export declare class BankAccountsApi extends runtime.BaseAPI {
64
83
  * Get microdeposit bank account details
65
84
  */
66
85
  getBankAccountToUseForMicrodeposit(requestParameters: BankAccountsApiGetBankAccountToUseForMicrodepositRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AirwallexBankAccountDetailsDto>;
86
+ /**
87
+ * Returns the bank countries and currencies we pay out to, for the current seller\'s entity type (business or personal). **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
88
+ * List bank account countries and currencies
89
+ */
90
+ listBankAccountFormatsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BankAccountFormatsDto>>;
91
+ /**
92
+ * Returns the bank countries and currencies we pay out to, for the current seller\'s entity type (business or personal). **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
93
+ * List bank account countries and currencies
94
+ */
95
+ listBankAccountFormats(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BankAccountFormatsDto>;
67
96
  /**
68
97
  * Returns all bank accounts configured for the current seller account. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
69
98
  * List bank accounts
@@ -84,4 +113,14 @@ export declare class BankAccountsApi extends runtime.BaseAPI {
84
113
  * Set primary bank account
85
114
  */
86
115
  makeBankAccountPrimary(requestParameters: BankAccountsApiMakeBankAccountPrimaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
116
+ /**
117
+ * Returns the banks or branches matching what the seller typed in a LOOKUP field, e.g. an IFSC code or a Japanese branch. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
118
+ * Search banks or branches
119
+ */
120
+ searchBankAccountInstitutionsRaw(requestParameters: BankAccountsApiSearchBankAccountInstitutionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<BankAccountFormatFieldOptionDto>>>;
121
+ /**
122
+ * Returns the banks or branches matching what the seller typed in a LOOKUP field, e.g. an IFSC code or a Japanese branch. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
123
+ * Search banks or branches
124
+ */
125
+ searchBankAccountInstitutions(requestParameters: BankAccountsApiSearchBankAccountInstitutionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<BankAccountFormatFieldOptionDto>>;
87
126
  }
@@ -205,6 +205,72 @@ var BankAccountsApi = /** @class */ (function (_super) {
205
205
  });
206
206
  });
207
207
  };
208
+ /**
209
+ * Returns the fields a bank account in this country and currency needs, to render the form from and submit in `details.fields`. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
210
+ * Get the bank details to ask for
211
+ */
212
+ BankAccountsApi.prototype.getBankAccountFormatRaw = function (requestParameters, initOverrides) {
213
+ return __awaiter(this, void 0, void 0, function () {
214
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
215
+ return __generator(this, function (_c) {
216
+ switch (_c.label) {
217
+ case 0:
218
+ if (requestParameters['countryCode'] == null) {
219
+ throw new runtime.RequiredError('countryCode', 'Required parameter "countryCode" was null or undefined when calling getBankAccountFormat().');
220
+ }
221
+ if (requestParameters['currencyCode'] == null) {
222
+ throw new runtime.RequiredError('currencyCode', 'Required parameter "currencyCode" was null or undefined when calling getBankAccountFormat().');
223
+ }
224
+ queryParameters = {};
225
+ headerParameters = {};
226
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
227
+ _a = headerParameters;
228
+ _b = "apikey";
229
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
230
+ case 1:
231
+ _a[_b] = _c.sent(); // api_key authentication
232
+ _c.label = 2;
233
+ case 2:
234
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
235
+ token = this.configuration.accessToken;
236
+ return [4 /*yield*/, token("bearer", [])];
237
+ case 3:
238
+ tokenString = _c.sent();
239
+ if (tokenString) {
240
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
241
+ }
242
+ _c.label = 4;
243
+ case 4: return [4 /*yield*/, this.request({
244
+ path: "/private/bank-account-formats/{countryCode}/{currencyCode}".replace("{".concat("countryCode", "}"), encodeURIComponent(String(requestParameters['countryCode']))).replace("{".concat("currencyCode", "}"), encodeURIComponent(String(requestParameters['currencyCode']))),
245
+ method: 'GET',
246
+ headers: headerParameters,
247
+ query: queryParameters,
248
+ }, initOverrides)];
249
+ case 5:
250
+ response = _c.sent();
251
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BankAccountFormatDtoFromJSON)(jsonValue); })];
252
+ }
253
+ });
254
+ });
255
+ };
256
+ /**
257
+ * Returns the fields a bank account in this country and currency needs, to render the form from and submit in `details.fields`. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
258
+ * Get the bank details to ask for
259
+ */
260
+ BankAccountsApi.prototype.getBankAccountFormat = function (requestParameters, initOverrides) {
261
+ return __awaiter(this, void 0, void 0, function () {
262
+ var response;
263
+ return __generator(this, function (_a) {
264
+ switch (_a.label) {
265
+ case 0: return [4 /*yield*/, this.getBankAccountFormatRaw(requestParameters, initOverrides)];
266
+ case 1:
267
+ response = _a.sent();
268
+ return [4 /*yield*/, response.value()];
269
+ case 2: return [2 /*return*/, _a.sent()];
270
+ }
271
+ });
272
+ });
273
+ };
208
274
  /**
209
275
  * Returns bank account details to use for microdeposit verification. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
210
276
  * Get microdeposit bank account details
@@ -271,6 +337,66 @@ var BankAccountsApi = /** @class */ (function (_super) {
271
337
  });
272
338
  });
273
339
  };
340
+ /**
341
+ * Returns the bank countries and currencies we pay out to, for the current seller\'s entity type (business or personal). **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
342
+ * List bank account countries and currencies
343
+ */
344
+ BankAccountsApi.prototype.listBankAccountFormatsRaw = function (initOverrides) {
345
+ return __awaiter(this, void 0, void 0, function () {
346
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
347
+ return __generator(this, function (_c) {
348
+ switch (_c.label) {
349
+ case 0:
350
+ queryParameters = {};
351
+ headerParameters = {};
352
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
353
+ _a = headerParameters;
354
+ _b = "apikey";
355
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
356
+ case 1:
357
+ _a[_b] = _c.sent(); // api_key authentication
358
+ _c.label = 2;
359
+ case 2:
360
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
361
+ token = this.configuration.accessToken;
362
+ return [4 /*yield*/, token("bearer", [])];
363
+ case 3:
364
+ tokenString = _c.sent();
365
+ if (tokenString) {
366
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
367
+ }
368
+ _c.label = 4;
369
+ case 4: return [4 /*yield*/, this.request({
370
+ path: "/private/bank-account-formats",
371
+ method: 'GET',
372
+ headers: headerParameters,
373
+ query: queryParameters,
374
+ }, initOverrides)];
375
+ case 5:
376
+ response = _c.sent();
377
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BankAccountFormatsDtoFromJSON)(jsonValue); })];
378
+ }
379
+ });
380
+ });
381
+ };
382
+ /**
383
+ * Returns the bank countries and currencies we pay out to, for the current seller\'s entity type (business or personal). **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
384
+ * List bank account countries and currencies
385
+ */
386
+ BankAccountsApi.prototype.listBankAccountFormats = function (initOverrides) {
387
+ return __awaiter(this, void 0, void 0, function () {
388
+ var response;
389
+ return __generator(this, function (_a) {
390
+ switch (_a.label) {
391
+ case 0: return [4 /*yield*/, this.listBankAccountFormatsRaw(initOverrides)];
392
+ case 1:
393
+ response = _a.sent();
394
+ return [4 /*yield*/, response.value()];
395
+ case 2: return [2 /*return*/, _a.sent()];
396
+ }
397
+ });
398
+ });
399
+ };
274
400
  /**
275
401
  * Returns all bank accounts configured for the current seller account. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
276
402
  * List bank accounts
@@ -398,6 +524,77 @@ var BankAccountsApi = /** @class */ (function (_super) {
398
524
  });
399
525
  });
400
526
  };
527
+ /**
528
+ * Returns the banks or branches matching what the seller typed in a LOOKUP field, e.g. an IFSC code or a Japanese branch. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
529
+ * Search banks or branches
530
+ */
531
+ BankAccountsApi.prototype.searchBankAccountInstitutionsRaw = function (requestParameters, initOverrides) {
532
+ return __awaiter(this, void 0, void 0, function () {
533
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
534
+ return __generator(this, function (_c) {
535
+ switch (_c.label) {
536
+ case 0:
537
+ if (requestParameters['countryCode'] == null) {
538
+ throw new runtime.RequiredError('countryCode', 'Required parameter "countryCode" was null or undefined when calling searchBankAccountInstitutions().');
539
+ }
540
+ if (requestParameters['currencyCode'] == null) {
541
+ throw new runtime.RequiredError('currencyCode', 'Required parameter "currencyCode" was null or undefined when calling searchBankAccountInstitutions().');
542
+ }
543
+ if (requestParameters['searchBankAccountInstitutionsInput'] == null) {
544
+ throw new runtime.RequiredError('searchBankAccountInstitutionsInput', 'Required parameter "searchBankAccountInstitutionsInput" was null or undefined when calling searchBankAccountInstitutions().');
545
+ }
546
+ queryParameters = {};
547
+ headerParameters = {};
548
+ headerParameters['Content-Type'] = 'application/json';
549
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
550
+ _a = headerParameters;
551
+ _b = "apikey";
552
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
553
+ case 1:
554
+ _a[_b] = _c.sent(); // api_key authentication
555
+ _c.label = 2;
556
+ case 2:
557
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
558
+ token = this.configuration.accessToken;
559
+ return [4 /*yield*/, token("bearer", [])];
560
+ case 3:
561
+ tokenString = _c.sent();
562
+ if (tokenString) {
563
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
564
+ }
565
+ _c.label = 4;
566
+ case 4: return [4 /*yield*/, this.request({
567
+ path: "/private/bank-account-formats/{countryCode}/{currencyCode}/institutions".replace("{".concat("countryCode", "}"), encodeURIComponent(String(requestParameters['countryCode']))).replace("{".concat("currencyCode", "}"), encodeURIComponent(String(requestParameters['currencyCode']))),
568
+ method: 'POST',
569
+ headers: headerParameters,
570
+ query: queryParameters,
571
+ body: (0, index_1.SearchBankAccountInstitutionsInputToJSON)(requestParameters['searchBankAccountInstitutionsInput']),
572
+ }, initOverrides)];
573
+ case 5:
574
+ response = _c.sent();
575
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.BankAccountFormatFieldOptionDtoFromJSON); })];
576
+ }
577
+ });
578
+ });
579
+ };
580
+ /**
581
+ * Returns the banks or branches matching what the seller typed in a LOOKUP field, e.g. an IFSC code or a Japanese branch. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
582
+ * Search banks or branches
583
+ */
584
+ BankAccountsApi.prototype.searchBankAccountInstitutions = function (requestParameters, initOverrides) {
585
+ return __awaiter(this, void 0, void 0, function () {
586
+ var response;
587
+ return __generator(this, function (_a) {
588
+ switch (_a.label) {
589
+ case 0: return [4 /*yield*/, this.searchBankAccountInstitutionsRaw(requestParameters, initOverrides)];
590
+ case 1:
591
+ response = _a.sent();
592
+ return [4 /*yield*/, response.value()];
593
+ case 2: return [2 /*return*/, _a.sent()];
594
+ }
595
+ });
596
+ });
597
+ };
401
598
  return BankAccountsApi;
402
599
  }(runtime.BaseAPI));
403
600
  exports.BankAccountsApi = BankAccountsApi;
@@ -0,0 +1,40 @@
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 AccountBankAccountDetailsDto
16
+ */
17
+ export interface AccountBankAccountDetailsDto {
18
+ /**
19
+ * ISO country code of the country the account is held in.
20
+ * @type {string}
21
+ * @memberof AccountBankAccountDetailsDto
22
+ */
23
+ countryCode: string;
24
+ /**
25
+ * The bank details by the key the bank account format lists after `bank_details.`, with routing types next to their values, e.g. `account_routing_type1: sort_code`.
26
+ * @type {{ [key: string]: string; }}
27
+ * @memberof AccountBankAccountDetailsDto
28
+ */
29
+ bankDetails: {
30
+ [key: string]: string;
31
+ };
32
+ }
33
+ /**
34
+ * Check if a given object implements the AccountBankAccountDetailsDto interface.
35
+ */
36
+ export declare function instanceOfAccountBankAccountDetailsDto(value: object): value is AccountBankAccountDetailsDto;
37
+ export declare function AccountBankAccountDetailsDtoFromJSON(json: any): AccountBankAccountDetailsDto;
38
+ export declare function AccountBankAccountDetailsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountBankAccountDetailsDto;
39
+ export declare function AccountBankAccountDetailsDtoToJSON(json: any): AccountBankAccountDetailsDto;
40
+ export declare function AccountBankAccountDetailsDtoToJSONTyped(value?: AccountBankAccountDetailsDto | null, ignoreDiscriminator?: boolean): any;