@randock/nameshift-api-client 0.0.447 → 0.0.449

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 (87) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +3 -3
  3. package/dist/apis/APIKeysApi.d.ts +78 -0
  4. package/dist/apis/APIKeysApi.js +354 -0
  5. package/dist/apis/AccountsApi.d.ts +36 -36
  6. package/dist/apis/AccountsApi.js +360 -216
  7. package/dist/apis/AdminApi.d.ts +26 -0
  8. package/dist/apis/AdminApi.js +106 -0
  9. package/dist/apis/AuctionsApi.d.ts +4 -4
  10. package/dist/apis/AuctionsApi.js +40 -24
  11. package/dist/apis/BankAccountsApi.d.ts +10 -10
  12. package/dist/apis/BankAccountsApi.js +100 -60
  13. package/dist/apis/ChallengesApi.d.ts +6 -6
  14. package/dist/apis/ChallengesApi.js +60 -36
  15. package/dist/apis/DomainTransfersApi.d.ts +2 -2
  16. package/dist/apis/DomainTransfersApi.js +20 -12
  17. package/dist/apis/DomainsApi.d.ts +44 -44
  18. package/dist/apis/DomainsApi.js +440 -264
  19. package/dist/apis/EppApi.d.ts +2 -2
  20. package/dist/apis/EppApi.js +20 -12
  21. package/dist/apis/InvoicesApi.d.ts +6 -6
  22. package/dist/apis/InvoicesApi.js +60 -36
  23. package/dist/apis/LeadsApi.d.ts +38 -38
  24. package/dist/apis/LeadsApi.js +380 -228
  25. package/dist/apis/MarketApi.d.ts +2 -2
  26. package/dist/apis/MarketApi.js +2 -2
  27. package/dist/apis/NotificationsApi.d.ts +8 -8
  28. package/dist/apis/NotificationsApi.js +80 -48
  29. package/dist/apis/StatsApi.d.ts +14 -14
  30. package/dist/apis/StatsApi.js +140 -84
  31. package/dist/apis/SubscriptionsApi.d.ts +2 -2
  32. package/dist/apis/SubscriptionsApi.js +20 -12
  33. package/dist/apis/TasksApi.d.ts +6 -6
  34. package/dist/apis/TasksApi.js +60 -36
  35. package/dist/apis/UsersApi.d.ts +10 -10
  36. package/dist/apis/UsersApi.js +100 -60
  37. package/dist/apis/index.d.ts +1 -0
  38. package/dist/apis/index.js +1 -0
  39. package/dist/models/AdminDomainListItemDto.d.ts +6 -0
  40. package/dist/models/AdminDomainListItemDto.js +4 -0
  41. package/dist/models/ApiKeyDto.d.ts +107 -0
  42. package/dist/models/ApiKeyDto.js +114 -0
  43. package/dist/models/ApiKeyScopeDto.d.ts +83 -0
  44. package/dist/models/ApiKeyScopeDto.js +98 -0
  45. package/dist/models/CreateApiKeyInput.d.ts +83 -0
  46. package/dist/models/CreateApiKeyInput.js +96 -0
  47. package/dist/models/CreatedApiKeyDto.d.ts +113 -0
  48. package/dist/models/CreatedApiKeyDto.js +118 -0
  49. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +6 -0
  50. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +4 -0
  51. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +6 -0
  52. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +4 -0
  53. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +6 -0
  54. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +4 -0
  55. package/dist/models/UpdateApiKeyInput.d.ts +77 -0
  56. package/dist/models/UpdateApiKeyInput.js +90 -0
  57. package/dist/models/index.d.ts +5 -0
  58. package/dist/models/index.js +5 -0
  59. package/package.json +1 -1
  60. package/src/apis/APIKeysApi.ts +271 -0
  61. package/src/apis/AccountsApi.ts +108 -36
  62. package/src/apis/AdminApi.ts +92 -0
  63. package/src/apis/AuctionsApi.ts +12 -4
  64. package/src/apis/BankAccountsApi.ts +30 -10
  65. package/src/apis/ChallengesApi.ts +18 -6
  66. package/src/apis/DomainTransfersApi.ts +6 -2
  67. package/src/apis/DomainsApi.ts +132 -44
  68. package/src/apis/EppApi.ts +6 -2
  69. package/src/apis/InvoicesApi.ts +18 -6
  70. package/src/apis/LeadsApi.ts +114 -38
  71. package/src/apis/MarketApi.ts +2 -2
  72. package/src/apis/NotificationsApi.ts +24 -8
  73. package/src/apis/StatsApi.ts +42 -14
  74. package/src/apis/SubscriptionsApi.ts +6 -2
  75. package/src/apis/TasksApi.ts +18 -6
  76. package/src/apis/UsersApi.ts +30 -10
  77. package/src/apis/index.ts +1 -0
  78. package/src/models/AdminDomainListItemDto.ts +9 -0
  79. package/src/models/ApiKeyDto.ts +162 -0
  80. package/src/models/ApiKeyScopeDto.ts +126 -0
  81. package/src/models/CreateApiKeyInput.ts +125 -0
  82. package/src/models/CreatedApiKeyDto.ts +171 -0
  83. package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +9 -0
  84. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +9 -0
  85. package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +9 -0
  86. package/src/models/UpdateApiKeyInput.ts +115 -0
  87. package/src/models/index.ts +5 -0
@@ -0,0 +1,113 @@
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 CreatedApiKeyDto
16
+ */
17
+ export interface CreatedApiKeyDto {
18
+ /**
19
+ * API key identifier.
20
+ * @type {string}
21
+ * @memberof CreatedApiKeyDto
22
+ */
23
+ id: string;
24
+ /**
25
+ * Human readable name given to the key on creation.
26
+ * @type {string}
27
+ * @memberof CreatedApiKeyDto
28
+ */
29
+ name: string;
30
+ /**
31
+ * Authorization scopes granted to this API key.
32
+ * @type {Array<string>}
33
+ * @memberof CreatedApiKeyDto
34
+ */
35
+ scope: Array<CreatedApiKeyDtoScopeEnum>;
36
+ /**
37
+ * Masked fragment of the token, for recognising the key in a list. The full token is only returned once, at creation.
38
+ * @type {string}
39
+ * @memberof CreatedApiKeyDto
40
+ */
41
+ displayPrefix: string | null;
42
+ /**
43
+ * When the key was last used to authenticate. Accurate to within 15 minutes; null if never used.
44
+ * @type {Date}
45
+ * @memberof CreatedApiKeyDto
46
+ */
47
+ lastUsedAt: Date | null;
48
+ /**
49
+ * When the key stops being accepted. Null if it never expires.
50
+ * @type {Date}
51
+ * @memberof CreatedApiKeyDto
52
+ */
53
+ expiresAt: Date | null;
54
+ /**
55
+ * When the key was created.
56
+ * @type {Date}
57
+ * @memberof CreatedApiKeyDto
58
+ */
59
+ createdAt: Date;
60
+ /**
61
+ * The API key token. Shown only once, on creation, and unrecoverable afterwards. Send it in the `apikey` request header.
62
+ * @type {string}
63
+ * @memberof CreatedApiKeyDto
64
+ */
65
+ token: string;
66
+ }
67
+ /**
68
+ * @export
69
+ */
70
+ export declare const CreatedApiKeyDtoScopeEnum: {
71
+ readonly DOMAIN_BUY_NOW_PRICES_UPDATES: "DOMAIN_BUY_NOW_PRICES_UPDATES";
72
+ readonly DOMAINS_FIND: "DOMAINS_FIND";
73
+ readonly AUCTION_LIST: "AUCTION_LIST";
74
+ readonly MARKET_DATA: "MARKET_DATA";
75
+ readonly DOMAINS_READ: "DOMAINS_READ";
76
+ readonly DOMAINS_WRITE: "DOMAINS_WRITE";
77
+ readonly EPP_WRITE: "EPP_WRITE";
78
+ readonly TRANSFERS_READ: "TRANSFERS_READ";
79
+ readonly TRANSFERS_WRITE: "TRANSFERS_WRITE";
80
+ readonly LEADS_READ: "LEADS_READ";
81
+ readonly LEADS_WRITE: "LEADS_WRITE";
82
+ readonly AUCTIONS_READ: "AUCTIONS_READ";
83
+ readonly AUCTIONS_WRITE: "AUCTIONS_WRITE";
84
+ readonly STATS_READ: "STATS_READ";
85
+ readonly INVOICES_READ: "INVOICES_READ";
86
+ readonly SUBSCRIPTIONS_READ: "SUBSCRIPTIONS_READ";
87
+ readonly COMMISSIONS_READ: "COMMISSIONS_READ";
88
+ readonly TASKS_READ: "TASKS_READ";
89
+ readonly TASKS_WRITE: "TASKS_WRITE";
90
+ readonly NOTIFICATIONS_READ: "NOTIFICATIONS_READ";
91
+ readonly NOTIFICATIONS_WRITE: "NOTIFICATIONS_WRITE";
92
+ readonly CHALLENGES_READ: "CHALLENGES_READ";
93
+ readonly CHALLENGES_WRITE: "CHALLENGES_WRITE";
94
+ readonly ACCOUNT_READ: "ACCOUNT_READ";
95
+ readonly ACCOUNT_WRITE: "ACCOUNT_WRITE";
96
+ readonly ACCOUNT_DELETE: "ACCOUNT_DELETE";
97
+ readonly PAYOUTS_READ: "PAYOUTS_READ";
98
+ readonly PAYOUTS_WRITE: "PAYOUTS_WRITE";
99
+ readonly PAYMENTS_READ: "PAYMENTS_READ";
100
+ readonly PAYMENTS_WRITE: "PAYMENTS_WRITE";
101
+ readonly USERS_READ: "USERS_READ";
102
+ readonly USERS_WRITE: "USERS_WRITE";
103
+ readonly USER_EMAIL_WRITE: "USER_EMAIL_WRITE";
104
+ };
105
+ export type CreatedApiKeyDtoScopeEnum = typeof CreatedApiKeyDtoScopeEnum[keyof typeof CreatedApiKeyDtoScopeEnum];
106
+ /**
107
+ * Check if a given object implements the CreatedApiKeyDto interface.
108
+ */
109
+ export declare function instanceOfCreatedApiKeyDto(value: object): value is CreatedApiKeyDto;
110
+ export declare function CreatedApiKeyDtoFromJSON(json: any): CreatedApiKeyDto;
111
+ export declare function CreatedApiKeyDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatedApiKeyDto;
112
+ export declare function CreatedApiKeyDtoToJSON(json: any): CreatedApiKeyDto;
113
+ export declare function CreatedApiKeyDtoToJSONTyped(value?: CreatedApiKeyDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,118 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreatedApiKeyDtoScopeEnum = void 0;
17
+ exports.instanceOfCreatedApiKeyDto = instanceOfCreatedApiKeyDto;
18
+ exports.CreatedApiKeyDtoFromJSON = CreatedApiKeyDtoFromJSON;
19
+ exports.CreatedApiKeyDtoFromJSONTyped = CreatedApiKeyDtoFromJSONTyped;
20
+ exports.CreatedApiKeyDtoToJSON = CreatedApiKeyDtoToJSON;
21
+ exports.CreatedApiKeyDtoToJSONTyped = CreatedApiKeyDtoToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.CreatedApiKeyDtoScopeEnum = {
26
+ DOMAIN_BUY_NOW_PRICES_UPDATES: 'DOMAIN_BUY_NOW_PRICES_UPDATES',
27
+ DOMAINS_FIND: 'DOMAINS_FIND',
28
+ AUCTION_LIST: 'AUCTION_LIST',
29
+ MARKET_DATA: 'MARKET_DATA',
30
+ DOMAINS_READ: 'DOMAINS_READ',
31
+ DOMAINS_WRITE: 'DOMAINS_WRITE',
32
+ EPP_WRITE: 'EPP_WRITE',
33
+ TRANSFERS_READ: 'TRANSFERS_READ',
34
+ TRANSFERS_WRITE: 'TRANSFERS_WRITE',
35
+ LEADS_READ: 'LEADS_READ',
36
+ LEADS_WRITE: 'LEADS_WRITE',
37
+ AUCTIONS_READ: 'AUCTIONS_READ',
38
+ AUCTIONS_WRITE: 'AUCTIONS_WRITE',
39
+ STATS_READ: 'STATS_READ',
40
+ INVOICES_READ: 'INVOICES_READ',
41
+ SUBSCRIPTIONS_READ: 'SUBSCRIPTIONS_READ',
42
+ COMMISSIONS_READ: 'COMMISSIONS_READ',
43
+ TASKS_READ: 'TASKS_READ',
44
+ TASKS_WRITE: 'TASKS_WRITE',
45
+ NOTIFICATIONS_READ: 'NOTIFICATIONS_READ',
46
+ NOTIFICATIONS_WRITE: 'NOTIFICATIONS_WRITE',
47
+ CHALLENGES_READ: 'CHALLENGES_READ',
48
+ CHALLENGES_WRITE: 'CHALLENGES_WRITE',
49
+ ACCOUNT_READ: 'ACCOUNT_READ',
50
+ ACCOUNT_WRITE: 'ACCOUNT_WRITE',
51
+ ACCOUNT_DELETE: 'ACCOUNT_DELETE',
52
+ PAYOUTS_READ: 'PAYOUTS_READ',
53
+ PAYOUTS_WRITE: 'PAYOUTS_WRITE',
54
+ PAYMENTS_READ: 'PAYMENTS_READ',
55
+ PAYMENTS_WRITE: 'PAYMENTS_WRITE',
56
+ USERS_READ: 'USERS_READ',
57
+ USERS_WRITE: 'USERS_WRITE',
58
+ USER_EMAIL_WRITE: 'USER_EMAIL_WRITE'
59
+ };
60
+ /**
61
+ * Check if a given object implements the CreatedApiKeyDto interface.
62
+ */
63
+ function instanceOfCreatedApiKeyDto(value) {
64
+ if (!('id' in value) || value['id'] === undefined)
65
+ return false;
66
+ if (!('name' in value) || value['name'] === undefined)
67
+ return false;
68
+ if (!('scope' in value) || value['scope'] === undefined)
69
+ return false;
70
+ if (!('displayPrefix' in value) || value['displayPrefix'] === undefined)
71
+ return false;
72
+ if (!('lastUsedAt' in value) || value['lastUsedAt'] === undefined)
73
+ return false;
74
+ if (!('expiresAt' in value) || value['expiresAt'] === undefined)
75
+ return false;
76
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
77
+ return false;
78
+ if (!('token' in value) || value['token'] === undefined)
79
+ return false;
80
+ return true;
81
+ }
82
+ function CreatedApiKeyDtoFromJSON(json) {
83
+ return CreatedApiKeyDtoFromJSONTyped(json, false);
84
+ }
85
+ function CreatedApiKeyDtoFromJSONTyped(json, ignoreDiscriminator) {
86
+ if (json == null) {
87
+ return json;
88
+ }
89
+ return {
90
+ 'id': json['id'],
91
+ 'name': json['name'],
92
+ 'scope': json['scope'],
93
+ 'displayPrefix': json['displayPrefix'],
94
+ 'lastUsedAt': (json['lastUsedAt'] == null ? null : new Date(json['lastUsedAt'])),
95
+ 'expiresAt': (json['expiresAt'] == null ? null : new Date(json['expiresAt'])),
96
+ 'createdAt': (new Date(json['createdAt'])),
97
+ 'token': json['token'],
98
+ };
99
+ }
100
+ function CreatedApiKeyDtoToJSON(json) {
101
+ return CreatedApiKeyDtoToJSONTyped(json, false);
102
+ }
103
+ function CreatedApiKeyDtoToJSONTyped(value, ignoreDiscriminator) {
104
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+ return {
109
+ 'id': value['id'],
110
+ 'name': value['name'],
111
+ 'scope': value['scope'],
112
+ 'displayPrefix': value['displayPrefix'],
113
+ 'lastUsedAt': (value['lastUsedAt'] == null ? null : value['lastUsedAt'].toISOString()),
114
+ 'expiresAt': (value['expiresAt'] == null ? null : value['expiresAt'].toISOString()),
115
+ 'createdAt': ((value['createdAt']).toISOString()),
116
+ 'token': value['token'],
117
+ };
118
+ }
@@ -196,6 +196,12 @@ export interface IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto {
196
196
  * @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
197
197
  */
198
198
  lockedUntil: Date | null;
199
+ /**
200
+ * Whether an admin picked this domain for the public showcase on the website.
201
+ * @type {boolean}
202
+ * @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
203
+ */
204
+ showcased: boolean;
199
205
  /**
200
206
  * Account that owns the domain.
201
207
  * @type {AccountDto}
@@ -87,6 +87,8 @@ function instanceOfIntersectionDomainDtoWithAccountDtoWithAuctionInfoDto(value)
87
87
  return false;
88
88
  if (!('lockedUntil' in value) || value['lockedUntil'] === undefined)
89
89
  return false;
90
+ if (!('showcased' in value) || value['showcased'] === undefined)
91
+ return false;
90
92
  if (!('account' in value) || value['account'] === undefined)
91
93
  return false;
92
94
  if (!('hasAuction' in value) || value['hasAuction'] === undefined)
@@ -130,6 +132,7 @@ function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyped(json
130
132
  'isDeleteable': json['isDeleteable'],
131
133
  'isLocked': json['isLocked'],
132
134
  'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
135
+ 'showcased': json['showcased'],
133
136
  'account': (0, AccountDto_1.AccountDtoFromJSON)(json['account']),
134
137
  'hasAuction': json['hasAuction'],
135
138
  };
@@ -172,6 +175,7 @@ function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped(value,
172
175
  'isDeleteable': value['isDeleteable'],
173
176
  'isLocked': value['isLocked'],
174
177
  'lockedUntil': (value['lockedUntil'] == null ? null : value['lockedUntil'].toISOString()),
178
+ 'showcased': value['showcased'],
175
179
  'account': (0, AccountDto_1.AccountDtoToJSON)(value['account']),
176
180
  'hasAuction': value['hasAuction'],
177
181
  };
@@ -196,6 +196,12 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
196
196
  * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
197
197
  */
198
198
  lockedUntil: Date | null;
199
+ /**
200
+ * Whether an admin picked this domain for the public showcase on the website.
201
+ * @type {boolean}
202
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
203
+ */
204
+ showcased: boolean;
199
205
  /**
200
206
  * Account managing the domain on behalf of the owner, when a hijacker is assigned.
201
207
  * @type {AccountDto}
@@ -87,6 +87,8 @@ function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(value) {
87
87
  return false;
88
88
  if (!('lockedUntil' in value) || value['lockedUntil'] === undefined)
89
89
  return false;
90
+ if (!('showcased' in value) || value['showcased'] === undefined)
91
+ return false;
90
92
  if (!('hijacker' in value) || value['hijacker'] === undefined)
91
93
  return false;
92
94
  if (!('account' in value) || value['account'] === undefined)
@@ -130,6 +132,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(json, i
130
132
  'isDeleteable': json['isDeleteable'],
131
133
  'isLocked': json['isLocked'],
132
134
  'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
135
+ 'showcased': json['showcased'],
133
136
  'hijacker': (0, AccountDto_1.AccountDtoFromJSON)(json['hijacker']),
134
137
  'account': (0, AccountDto_1.AccountDtoFromJSON)(json['account']),
135
138
  };
@@ -172,6 +175,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSONTyped(value, ig
172
175
  'isDeleteable': value['isDeleteable'],
173
176
  'isLocked': value['isLocked'],
174
177
  'lockedUntil': (value['lockedUntil'] == null ? null : value['lockedUntil'].toISOString()),
178
+ 'showcased': value['showcased'],
175
179
  'hijacker': (0, AccountDto_1.AccountDtoToJSON)(value['hijacker']),
176
180
  'account': (0, AccountDto_1.AccountDtoToJSON)(value['account']),
177
181
  };
@@ -196,6 +196,12 @@ export interface IntersectionDomainDtoWithSeoMetricsDto {
196
196
  * @memberof IntersectionDomainDtoWithSeoMetricsDto
197
197
  */
198
198
  lockedUntil: Date | null;
199
+ /**
200
+ * Whether an admin picked this domain for the public showcase on the website.
201
+ * @type {boolean}
202
+ * @memberof IntersectionDomainDtoWithSeoMetricsDto
203
+ */
204
+ showcased: boolean;
199
205
  /**
200
206
  * SEO metrics for the domain from Moz, Majestic, and historical sources.
201
207
  * @type {SeoMetricsDto}
@@ -87,6 +87,8 @@ function instanceOfIntersectionDomainDtoWithSeoMetricsDto(value) {
87
87
  return false;
88
88
  if (!('lockedUntil' in value) || value['lockedUntil'] === undefined)
89
89
  return false;
90
+ if (!('showcased' in value) || value['showcased'] === undefined)
91
+ return false;
90
92
  if (!('seoMetrics' in value) || value['seoMetrics'] === undefined)
91
93
  return false;
92
94
  return true;
@@ -128,6 +130,7 @@ function IntersectionDomainDtoWithSeoMetricsDtoFromJSONTyped(json, ignoreDiscrim
128
130
  'isDeleteable': json['isDeleteable'],
129
131
  'isLocked': json['isLocked'],
130
132
  'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
133
+ 'showcased': json['showcased'],
131
134
  'seoMetrics': (0, SeoMetricsDto_1.SeoMetricsDtoFromJSON)(json['seoMetrics']),
132
135
  };
133
136
  }
@@ -169,6 +172,7 @@ function IntersectionDomainDtoWithSeoMetricsDtoToJSONTyped(value, ignoreDiscrimi
169
172
  'isDeleteable': value['isDeleteable'],
170
173
  'isLocked': value['isLocked'],
171
174
  'lockedUntil': (value['lockedUntil'] == null ? null : value['lockedUntil'].toISOString()),
175
+ 'showcased': value['showcased'],
172
176
  'seoMetrics': (0, SeoMetricsDto_1.SeoMetricsDtoToJSON)(value['seoMetrics']),
173
177
  };
174
178
  }
@@ -0,0 +1,77 @@
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 UpdateApiKeyInput
16
+ */
17
+ export interface UpdateApiKeyInput {
18
+ /**
19
+ * New name for the key.
20
+ * @type {string}
21
+ * @memberof UpdateApiKeyInput
22
+ */
23
+ name?: string;
24
+ /**
25
+ * Replacement set of scopes. Takes effect on the next request made with the key.
26
+ * @type {Array<string>}
27
+ * @memberof UpdateApiKeyInput
28
+ */
29
+ scope?: Array<UpdateApiKeyInputScopeEnum>;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const UpdateApiKeyInputScopeEnum: {
35
+ readonly DOMAIN_BUY_NOW_PRICES_UPDATES: "DOMAIN_BUY_NOW_PRICES_UPDATES";
36
+ readonly DOMAINS_FIND: "DOMAINS_FIND";
37
+ readonly AUCTION_LIST: "AUCTION_LIST";
38
+ readonly MARKET_DATA: "MARKET_DATA";
39
+ readonly DOMAINS_READ: "DOMAINS_READ";
40
+ readonly DOMAINS_WRITE: "DOMAINS_WRITE";
41
+ readonly EPP_WRITE: "EPP_WRITE";
42
+ readonly TRANSFERS_READ: "TRANSFERS_READ";
43
+ readonly TRANSFERS_WRITE: "TRANSFERS_WRITE";
44
+ readonly LEADS_READ: "LEADS_READ";
45
+ readonly LEADS_WRITE: "LEADS_WRITE";
46
+ readonly AUCTIONS_READ: "AUCTIONS_READ";
47
+ readonly AUCTIONS_WRITE: "AUCTIONS_WRITE";
48
+ readonly STATS_READ: "STATS_READ";
49
+ readonly INVOICES_READ: "INVOICES_READ";
50
+ readonly SUBSCRIPTIONS_READ: "SUBSCRIPTIONS_READ";
51
+ readonly COMMISSIONS_READ: "COMMISSIONS_READ";
52
+ readonly TASKS_READ: "TASKS_READ";
53
+ readonly TASKS_WRITE: "TASKS_WRITE";
54
+ readonly NOTIFICATIONS_READ: "NOTIFICATIONS_READ";
55
+ readonly NOTIFICATIONS_WRITE: "NOTIFICATIONS_WRITE";
56
+ readonly CHALLENGES_READ: "CHALLENGES_READ";
57
+ readonly CHALLENGES_WRITE: "CHALLENGES_WRITE";
58
+ readonly ACCOUNT_READ: "ACCOUNT_READ";
59
+ readonly ACCOUNT_WRITE: "ACCOUNT_WRITE";
60
+ readonly ACCOUNT_DELETE: "ACCOUNT_DELETE";
61
+ readonly PAYOUTS_READ: "PAYOUTS_READ";
62
+ readonly PAYOUTS_WRITE: "PAYOUTS_WRITE";
63
+ readonly PAYMENTS_READ: "PAYMENTS_READ";
64
+ readonly PAYMENTS_WRITE: "PAYMENTS_WRITE";
65
+ readonly USERS_READ: "USERS_READ";
66
+ readonly USERS_WRITE: "USERS_WRITE";
67
+ readonly USER_EMAIL_WRITE: "USER_EMAIL_WRITE";
68
+ };
69
+ export type UpdateApiKeyInputScopeEnum = typeof UpdateApiKeyInputScopeEnum[keyof typeof UpdateApiKeyInputScopeEnum];
70
+ /**
71
+ * Check if a given object implements the UpdateApiKeyInput interface.
72
+ */
73
+ export declare function instanceOfUpdateApiKeyInput(value: object): value is UpdateApiKeyInput;
74
+ export declare function UpdateApiKeyInputFromJSON(json: any): UpdateApiKeyInput;
75
+ export declare function UpdateApiKeyInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateApiKeyInput;
76
+ export declare function UpdateApiKeyInputToJSON(json: any): UpdateApiKeyInput;
77
+ export declare function UpdateApiKeyInputToJSONTyped(value?: UpdateApiKeyInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.UpdateApiKeyInputScopeEnum = void 0;
17
+ exports.instanceOfUpdateApiKeyInput = instanceOfUpdateApiKeyInput;
18
+ exports.UpdateApiKeyInputFromJSON = UpdateApiKeyInputFromJSON;
19
+ exports.UpdateApiKeyInputFromJSONTyped = UpdateApiKeyInputFromJSONTyped;
20
+ exports.UpdateApiKeyInputToJSON = UpdateApiKeyInputToJSON;
21
+ exports.UpdateApiKeyInputToJSONTyped = UpdateApiKeyInputToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.UpdateApiKeyInputScopeEnum = {
26
+ DOMAIN_BUY_NOW_PRICES_UPDATES: 'DOMAIN_BUY_NOW_PRICES_UPDATES',
27
+ DOMAINS_FIND: 'DOMAINS_FIND',
28
+ AUCTION_LIST: 'AUCTION_LIST',
29
+ MARKET_DATA: 'MARKET_DATA',
30
+ DOMAINS_READ: 'DOMAINS_READ',
31
+ DOMAINS_WRITE: 'DOMAINS_WRITE',
32
+ EPP_WRITE: 'EPP_WRITE',
33
+ TRANSFERS_READ: 'TRANSFERS_READ',
34
+ TRANSFERS_WRITE: 'TRANSFERS_WRITE',
35
+ LEADS_READ: 'LEADS_READ',
36
+ LEADS_WRITE: 'LEADS_WRITE',
37
+ AUCTIONS_READ: 'AUCTIONS_READ',
38
+ AUCTIONS_WRITE: 'AUCTIONS_WRITE',
39
+ STATS_READ: 'STATS_READ',
40
+ INVOICES_READ: 'INVOICES_READ',
41
+ SUBSCRIPTIONS_READ: 'SUBSCRIPTIONS_READ',
42
+ COMMISSIONS_READ: 'COMMISSIONS_READ',
43
+ TASKS_READ: 'TASKS_READ',
44
+ TASKS_WRITE: 'TASKS_WRITE',
45
+ NOTIFICATIONS_READ: 'NOTIFICATIONS_READ',
46
+ NOTIFICATIONS_WRITE: 'NOTIFICATIONS_WRITE',
47
+ CHALLENGES_READ: 'CHALLENGES_READ',
48
+ CHALLENGES_WRITE: 'CHALLENGES_WRITE',
49
+ ACCOUNT_READ: 'ACCOUNT_READ',
50
+ ACCOUNT_WRITE: 'ACCOUNT_WRITE',
51
+ ACCOUNT_DELETE: 'ACCOUNT_DELETE',
52
+ PAYOUTS_READ: 'PAYOUTS_READ',
53
+ PAYOUTS_WRITE: 'PAYOUTS_WRITE',
54
+ PAYMENTS_READ: 'PAYMENTS_READ',
55
+ PAYMENTS_WRITE: 'PAYMENTS_WRITE',
56
+ USERS_READ: 'USERS_READ',
57
+ USERS_WRITE: 'USERS_WRITE',
58
+ USER_EMAIL_WRITE: 'USER_EMAIL_WRITE'
59
+ };
60
+ /**
61
+ * Check if a given object implements the UpdateApiKeyInput interface.
62
+ */
63
+ function instanceOfUpdateApiKeyInput(value) {
64
+ return true;
65
+ }
66
+ function UpdateApiKeyInputFromJSON(json) {
67
+ return UpdateApiKeyInputFromJSONTyped(json, false);
68
+ }
69
+ function UpdateApiKeyInputFromJSONTyped(json, ignoreDiscriminator) {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+ 'name': json['name'] == null ? undefined : json['name'],
75
+ 'scope': json['scope'] == null ? undefined : json['scope'],
76
+ };
77
+ }
78
+ function UpdateApiKeyInputToJSON(json) {
79
+ return UpdateApiKeyInputToJSONTyped(json, false);
80
+ }
81
+ function UpdateApiKeyInputToJSONTyped(value, ignoreDiscriminator) {
82
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
83
+ if (value == null) {
84
+ return value;
85
+ }
86
+ return {
87
+ 'name': value['name'],
88
+ 'scope': value['scope'],
89
+ };
90
+ }
@@ -69,6 +69,8 @@ export * from './AirwallexBankAccountDetailsDtoLocalMethod';
69
69
  export * from './AirwallexBankAccountDetailsDtoLocalMethodCode';
70
70
  export * from './AirwallexDepositDto';
71
71
  export * from './AirwallexDepositDtoFee';
72
+ export * from './ApiKeyDto';
73
+ export * from './ApiKeyScopeDto';
72
74
  export * from './AuBankAccountDetails';
73
75
  export * from './AuctionBidDto';
74
76
  export * from './AuctionBidInput';
@@ -159,6 +161,7 @@ export * from './CompanyTaxIdDto';
159
161
  export * from './ConflictException';
160
162
  export * from './CreateAccountPaymentInput';
161
163
  export * from './CreateAccountPaymentManualTransactionInput';
164
+ export * from './CreateApiKeyInput';
162
165
  export * from './CreateBankAccountInput';
163
166
  export * from './CreateBuyerLeadMessageInput';
164
167
  export * from './CreateChallengeInput';
@@ -170,6 +173,7 @@ export * from './CreateOrderInput';
170
173
  export * from './CreateSubscriptionBillingPeriodicityInput';
171
174
  export * from './CreateSubscriptionInput';
172
175
  export * from './CreateSubscriptionManualTransactionInput';
176
+ export * from './CreatedApiKeyDto';
173
177
  export * from './CursorBasedPageInfo';
174
178
  export * from './CursorBasedPaginationResponse';
175
179
  export * from './DeleteDomainsInput';
@@ -469,6 +473,7 @@ export * from './TopSellerAccountDto';
469
473
  export * from './UkBankAccountDetails';
470
474
  export * from './UpdateAccountBillingInformationInput';
471
475
  export * from './UpdateAccountChallengeRewardBalanceInput';
476
+ export * from './UpdateApiKeyInput';
472
477
  export * from './UpdateAuctionMuteStatusInput';
473
478
  export * from './UpdateBuyerDomainTransferBuyerInfoInput';
474
479
  export * from './UpdateBuyerDomainTransferIpsTagInputDto';
@@ -87,6 +87,8 @@ __exportStar(require("./AirwallexBankAccountDetailsDtoLocalMethod"), exports);
87
87
  __exportStar(require("./AirwallexBankAccountDetailsDtoLocalMethodCode"), exports);
88
88
  __exportStar(require("./AirwallexDepositDto"), exports);
89
89
  __exportStar(require("./AirwallexDepositDtoFee"), exports);
90
+ __exportStar(require("./ApiKeyDto"), exports);
91
+ __exportStar(require("./ApiKeyScopeDto"), exports);
90
92
  __exportStar(require("./AuBankAccountDetails"), exports);
91
93
  __exportStar(require("./AuctionBidDto"), exports);
92
94
  __exportStar(require("./AuctionBidInput"), exports);
@@ -177,6 +179,7 @@ __exportStar(require("./CompanyTaxIdDto"), exports);
177
179
  __exportStar(require("./ConflictException"), exports);
178
180
  __exportStar(require("./CreateAccountPaymentInput"), exports);
179
181
  __exportStar(require("./CreateAccountPaymentManualTransactionInput"), exports);
182
+ __exportStar(require("./CreateApiKeyInput"), exports);
180
183
  __exportStar(require("./CreateBankAccountInput"), exports);
181
184
  __exportStar(require("./CreateBuyerLeadMessageInput"), exports);
182
185
  __exportStar(require("./CreateChallengeInput"), exports);
@@ -188,6 +191,7 @@ __exportStar(require("./CreateOrderInput"), exports);
188
191
  __exportStar(require("./CreateSubscriptionBillingPeriodicityInput"), exports);
189
192
  __exportStar(require("./CreateSubscriptionInput"), exports);
190
193
  __exportStar(require("./CreateSubscriptionManualTransactionInput"), exports);
194
+ __exportStar(require("./CreatedApiKeyDto"), exports);
191
195
  __exportStar(require("./CursorBasedPageInfo"), exports);
192
196
  __exportStar(require("./CursorBasedPaginationResponse"), exports);
193
197
  __exportStar(require("./DeleteDomainsInput"), exports);
@@ -487,6 +491,7 @@ __exportStar(require("./TopSellerAccountDto"), exports);
487
491
  __exportStar(require("./UkBankAccountDetails"), exports);
488
492
  __exportStar(require("./UpdateAccountBillingInformationInput"), exports);
489
493
  __exportStar(require("./UpdateAccountChallengeRewardBalanceInput"), exports);
494
+ __exportStar(require("./UpdateApiKeyInput"), exports);
490
495
  __exportStar(require("./UpdateAuctionMuteStatusInput"), exports);
491
496
  __exportStar(require("./UpdateBuyerDomainTransferBuyerInfoInput"), exports);
492
497
  __exportStar(require("./UpdateBuyerDomainTransferIpsTagInputDto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.447",
3
+ "version": "0.0.449",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {