@randock/nameshift-api-client 0.0.470 → 0.0.471
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.
- package/.openapi-generator/FILES +9 -0
- package/README.md +3 -3
- package/dist/apis/CustomerSuccessApi.d.ts +60 -0
- package/dist/apis/CustomerSuccessApi.js +227 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/BuyerNotificationDto.d.ts +1 -0
- package/dist/models/BuyerNotificationDto.js +1 -0
- package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
- package/dist/models/BuyerNotificationListItemDto.js +1 -0
- package/dist/models/CustomerSuccessDomainAuctionDto.d.ts +86 -0
- package/dist/models/CustomerSuccessDomainAuctionDto.js +91 -0
- package/dist/models/CustomerSuccessDomainListItemDto.d.ts +255 -0
- package/dist/models/CustomerSuccessDomainListItemDto.js +209 -0
- package/dist/models/CustomerSuccessListAccountDto.d.ts +163 -0
- package/dist/models/CustomerSuccessListAccountDto.js +146 -0
- package/dist/models/CustomerSuccessListAccountMetricsDto.d.ts +80 -0
- package/dist/models/CustomerSuccessListAccountMetricsDto.js +83 -0
- package/dist/models/CustomerSuccessListAccountPortfolioSizeDto.d.ts +38 -0
- package/dist/models/CustomerSuccessListAccountPortfolioSizeDto.js +55 -0
- package/dist/models/CustomerSuccessListAccountUserDto.d.ts +44 -0
- package/dist/models/CustomerSuccessListAccountUserDto.js +59 -0
- package/dist/models/ListCustomerSuccessAccountDomains200Response.d.ts +47 -0
- package/dist/models/ListCustomerSuccessAccountDomains200Response.js +62 -0
- package/dist/models/ListCustomerSuccessAccounts200Response.d.ts +47 -0
- package/dist/models/ListCustomerSuccessAccounts200Response.js +62 -0
- package/dist/models/UserNotificationDto.d.ts +1 -0
- package/dist/models/UserNotificationDto.js +1 -0
- package/dist/models/UserNotificationListItemDto.d.ts +1 -0
- package/dist/models/UserNotificationListItemDto.js +1 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/CustomerSuccessApi.ts +187 -0
- package/src/apis/index.ts +1 -0
- package/src/models/BuyerNotificationDto.ts +1 -0
- package/src/models/BuyerNotificationListItemDto.ts +1 -0
- package/src/models/CustomerSuccessDomainAuctionDto.ts +151 -0
- package/src/models/CustomerSuccessDomainListItemDto.ts +426 -0
- package/src/models/CustomerSuccessListAccountDto.ts +278 -0
- package/src/models/CustomerSuccessListAccountMetricsDto.ts +138 -0
- package/src/models/CustomerSuccessListAccountPortfolioSizeDto.ts +75 -0
- package/src/models/CustomerSuccessListAccountUserDto.ts +84 -0
- package/src/models/ListCustomerSuccessAccountDomains200Response.ts +106 -0
- package/src/models/ListCustomerSuccessAccounts200Response.ts +106 -0
- package/src/models/UserNotificationDto.ts +1 -0
- package/src/models/UserNotificationListItemDto.ts +1 -0
- package/src/models/index.ts +8 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -14,6 +14,7 @@ src/apis/BankAccountsApi.ts
|
|
|
14
14
|
src/apis/BuyersApi.ts
|
|
15
15
|
src/apis/BuyersPublicApi.ts
|
|
16
16
|
src/apis/ChallengesApi.ts
|
|
17
|
+
src/apis/CustomerSuccessApi.ts
|
|
17
18
|
src/apis/DomainTransfersApi.ts
|
|
18
19
|
src/apis/DomainsApi.ts
|
|
19
20
|
src/apis/DomainsPublicApi.ts
|
|
@@ -223,6 +224,12 @@ src/models/CreateSubscriptionManualTransactionInput.ts
|
|
|
223
224
|
src/models/CreatedApiKeyDto.ts
|
|
224
225
|
src/models/CursorBasedPageInfo.ts
|
|
225
226
|
src/models/CursorBasedPaginationResponse.ts
|
|
227
|
+
src/models/CustomerSuccessDomainAuctionDto.ts
|
|
228
|
+
src/models/CustomerSuccessDomainListItemDto.ts
|
|
229
|
+
src/models/CustomerSuccessListAccountDto.ts
|
|
230
|
+
src/models/CustomerSuccessListAccountMetricsDto.ts
|
|
231
|
+
src/models/CustomerSuccessListAccountPortfolioSizeDto.ts
|
|
232
|
+
src/models/CustomerSuccessListAccountUserDto.ts
|
|
226
233
|
src/models/DeleteDomainsInput.ts
|
|
227
234
|
src/models/DomainAuctionDto.ts
|
|
228
235
|
src/models/DomainCategoryItemDto.ts
|
|
@@ -380,6 +387,8 @@ src/models/ListAuctions200Response.ts
|
|
|
380
387
|
src/models/ListBankAccounts200Response.ts
|
|
381
388
|
src/models/ListBankDeposits200Response.ts
|
|
382
389
|
src/models/ListBuyerNotifications200Response.ts
|
|
390
|
+
src/models/ListCustomerSuccessAccountDomains200Response.ts
|
|
391
|
+
src/models/ListCustomerSuccessAccounts200Response.ts
|
|
383
392
|
src/models/ListDomains200Response.ts
|
|
384
393
|
src/models/ListDomainsWithUpdatedPricing200Response.ts
|
|
385
394
|
src/models/ListJobs200Response.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.471
|
|
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.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.471 --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
|
-
|
|
47
|
+
f00e4924e32532df29048172ec31a2da18134508b5acefc918c38d56632f1e69fd2aae78dd6e0b9a3621715871a3f4b5
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { ListCustomerSuccessAccountDomains200Response, ListCustomerSuccessAccounts200Response } from '../models/index';
|
|
14
|
+
export interface CustomerSuccessApiListCustomerSuccessAccountDomainsRequest {
|
|
15
|
+
accountId: string;
|
|
16
|
+
filter?: {
|
|
17
|
+
[key: string]: string;
|
|
18
|
+
};
|
|
19
|
+
page?: number;
|
|
20
|
+
limit?: number;
|
|
21
|
+
sortBy?: Array<string>;
|
|
22
|
+
filterSold?: string;
|
|
23
|
+
filterPointingDnsStatus?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface CustomerSuccessApiListCustomerSuccessAccountsRequest {
|
|
26
|
+
filter?: {
|
|
27
|
+
[key: string]: string;
|
|
28
|
+
};
|
|
29
|
+
page?: number;
|
|
30
|
+
limit?: number;
|
|
31
|
+
sortBy?: Array<string>;
|
|
32
|
+
filterSearchTerm?: string;
|
|
33
|
+
filterOnboardingStatus?: string;
|
|
34
|
+
filterAffiliateIdentifier?: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
export declare class CustomerSuccessApi extends runtime.BaseAPI {
|
|
40
|
+
/**
|
|
41
|
+
* 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
|
+
* List account domains
|
|
43
|
+
*/
|
|
44
|
+
listCustomerSuccessAccountDomainsRaw(requestParameters: CustomerSuccessApiListCustomerSuccessAccountDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListCustomerSuccessAccountDomains200Response>>;
|
|
45
|
+
/**
|
|
46
|
+
* 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.
|
|
47
|
+
* List account domains
|
|
48
|
+
*/
|
|
49
|
+
listCustomerSuccessAccountDomains(requestParameters: CustomerSuccessApiListCustomerSuccessAccountDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListCustomerSuccessAccountDomains200Response>;
|
|
50
|
+
/**
|
|
51
|
+
* Lists seller accounts for customer success follow-up.
|
|
52
|
+
* List accounts
|
|
53
|
+
*/
|
|
54
|
+
listCustomerSuccessAccountsRaw(requestParameters: CustomerSuccessApiListCustomerSuccessAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListCustomerSuccessAccounts200Response>>;
|
|
55
|
+
/**
|
|
56
|
+
* Lists seller accounts for customer success follow-up.
|
|
57
|
+
* List accounts
|
|
58
|
+
*/
|
|
59
|
+
listCustomerSuccessAccounts(requestParameters?: CustomerSuccessApiListCustomerSuccessAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListCustomerSuccessAccounts200Response>;
|
|
60
|
+
}
|
|
@@ -0,0 +1,227 @@
|
|
|
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
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.CustomerSuccessApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var CustomerSuccessApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(CustomerSuccessApi, _super);
|
|
75
|
+
function CustomerSuccessApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* 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.
|
|
80
|
+
* List account domains
|
|
81
|
+
*/
|
|
82
|
+
CustomerSuccessApi.prototype.listCustomerSuccessAccountDomainsRaw = function (requestParameters, initOverrides) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
85
|
+
return __generator(this, function (_a) {
|
|
86
|
+
switch (_a.label) {
|
|
87
|
+
case 0:
|
|
88
|
+
if (requestParameters['accountId'] == null) {
|
|
89
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling listCustomerSuccessAccountDomains().');
|
|
90
|
+
}
|
|
91
|
+
queryParameters = {};
|
|
92
|
+
if (requestParameters['filter'] != null) {
|
|
93
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
94
|
+
}
|
|
95
|
+
if (requestParameters['page'] != null) {
|
|
96
|
+
queryParameters['page'] = requestParameters['page'];
|
|
97
|
+
}
|
|
98
|
+
if (requestParameters['limit'] != null) {
|
|
99
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
100
|
+
}
|
|
101
|
+
if (requestParameters['sortBy'] != null) {
|
|
102
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
103
|
+
}
|
|
104
|
+
if (requestParameters['filterSold'] != null) {
|
|
105
|
+
queryParameters['filter[sold]'] = requestParameters['filterSold'];
|
|
106
|
+
}
|
|
107
|
+
if (requestParameters['filterPointingDnsStatus'] != null) {
|
|
108
|
+
queryParameters['filter[pointingDnsStatus]'] = requestParameters['filterPointingDnsStatus'];
|
|
109
|
+
}
|
|
110
|
+
headerParameters = {};
|
|
111
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
112
|
+
token = this.configuration.accessToken;
|
|
113
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
114
|
+
case 1:
|
|
115
|
+
tokenString = _a.sent();
|
|
116
|
+
if (tokenString) {
|
|
117
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
118
|
+
}
|
|
119
|
+
_a.label = 2;
|
|
120
|
+
case 2: return [4 /*yield*/, this.request({
|
|
121
|
+
path: "/customer-success/accounts/{accountId}/domains".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
122
|
+
method: 'GET',
|
|
123
|
+
headers: headerParameters,
|
|
124
|
+
query: queryParameters,
|
|
125
|
+
}, initOverrides)];
|
|
126
|
+
case 3:
|
|
127
|
+
response = _a.sent();
|
|
128
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListCustomerSuccessAccountDomains200ResponseFromJSON)(jsonValue); })];
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* 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.
|
|
135
|
+
* List account domains
|
|
136
|
+
*/
|
|
137
|
+
CustomerSuccessApi.prototype.listCustomerSuccessAccountDomains = function (requestParameters, initOverrides) {
|
|
138
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
139
|
+
var response;
|
|
140
|
+
return __generator(this, function (_a) {
|
|
141
|
+
switch (_a.label) {
|
|
142
|
+
case 0: return [4 /*yield*/, this.listCustomerSuccessAccountDomainsRaw(requestParameters, initOverrides)];
|
|
143
|
+
case 1:
|
|
144
|
+
response = _a.sent();
|
|
145
|
+
return [4 /*yield*/, response.value()];
|
|
146
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Lists seller accounts for customer success follow-up.
|
|
153
|
+
* List accounts
|
|
154
|
+
*/
|
|
155
|
+
CustomerSuccessApi.prototype.listCustomerSuccessAccountsRaw = function (requestParameters, initOverrides) {
|
|
156
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
157
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
158
|
+
return __generator(this, function (_a) {
|
|
159
|
+
switch (_a.label) {
|
|
160
|
+
case 0:
|
|
161
|
+
queryParameters = {};
|
|
162
|
+
if (requestParameters['filter'] != null) {
|
|
163
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
164
|
+
}
|
|
165
|
+
if (requestParameters['page'] != null) {
|
|
166
|
+
queryParameters['page'] = requestParameters['page'];
|
|
167
|
+
}
|
|
168
|
+
if (requestParameters['limit'] != null) {
|
|
169
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
170
|
+
}
|
|
171
|
+
if (requestParameters['sortBy'] != null) {
|
|
172
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
173
|
+
}
|
|
174
|
+
if (requestParameters['filterSearchTerm'] != null) {
|
|
175
|
+
queryParameters['filter[search_term]'] = requestParameters['filterSearchTerm'];
|
|
176
|
+
}
|
|
177
|
+
if (requestParameters['filterOnboardingStatus'] != null) {
|
|
178
|
+
queryParameters['filter[onboarding_status]'] = requestParameters['filterOnboardingStatus'];
|
|
179
|
+
}
|
|
180
|
+
if (requestParameters['filterAffiliateIdentifier'] != null) {
|
|
181
|
+
queryParameters['filter[affiliate.identifier]'] = requestParameters['filterAffiliateIdentifier'];
|
|
182
|
+
}
|
|
183
|
+
headerParameters = {};
|
|
184
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
185
|
+
token = this.configuration.accessToken;
|
|
186
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
187
|
+
case 1:
|
|
188
|
+
tokenString = _a.sent();
|
|
189
|
+
if (tokenString) {
|
|
190
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
191
|
+
}
|
|
192
|
+
_a.label = 2;
|
|
193
|
+
case 2: return [4 /*yield*/, this.request({
|
|
194
|
+
path: "/customer-success/accounts",
|
|
195
|
+
method: 'GET',
|
|
196
|
+
headers: headerParameters,
|
|
197
|
+
query: queryParameters,
|
|
198
|
+
}, initOverrides)];
|
|
199
|
+
case 3:
|
|
200
|
+
response = _a.sent();
|
|
201
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListCustomerSuccessAccounts200ResponseFromJSON)(jsonValue); })];
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
});
|
|
205
|
+
};
|
|
206
|
+
/**
|
|
207
|
+
* Lists seller accounts for customer success follow-up.
|
|
208
|
+
* List accounts
|
|
209
|
+
*/
|
|
210
|
+
CustomerSuccessApi.prototype.listCustomerSuccessAccounts = function () {
|
|
211
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
212
|
+
var response;
|
|
213
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
214
|
+
return __generator(this, function (_a) {
|
|
215
|
+
switch (_a.label) {
|
|
216
|
+
case 0: return [4 /*yield*/, this.listCustomerSuccessAccountsRaw(requestParameters, initOverrides)];
|
|
217
|
+
case 1:
|
|
218
|
+
response = _a.sent();
|
|
219
|
+
return [4 /*yield*/, response.value()];
|
|
220
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
});
|
|
224
|
+
};
|
|
225
|
+
return CustomerSuccessApi;
|
|
226
|
+
}(runtime.BaseAPI));
|
|
227
|
+
exports.CustomerSuccessApi = CustomerSuccessApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from './BankAccountsApi';
|
|
|
9
9
|
export * from './BuyersApi';
|
|
10
10
|
export * from './BuyersPublicApi';
|
|
11
11
|
export * from './ChallengesApi';
|
|
12
|
+
export * from './CustomerSuccessApi';
|
|
12
13
|
export * from './DomainTransfersApi';
|
|
13
14
|
export * from './DomainsApi';
|
|
14
15
|
export * from './DomainsPublicApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -27,6 +27,7 @@ __exportStar(require("./BankAccountsApi"), exports);
|
|
|
27
27
|
__exportStar(require("./BuyersApi"), exports);
|
|
28
28
|
__exportStar(require("./BuyersPublicApi"), exports);
|
|
29
29
|
__exportStar(require("./ChallengesApi"), exports);
|
|
30
|
+
__exportStar(require("./CustomerSuccessApi"), exports);
|
|
30
31
|
__exportStar(require("./DomainTransfersApi"), exports);
|
|
31
32
|
__exportStar(require("./DomainsApi"), exports);
|
|
32
33
|
__exportStar(require("./DomainsPublicApi"), exports);
|
|
@@ -114,6 +114,7 @@ export declare const BuyerNotificationDtoTypeEnum: {
|
|
|
114
114
|
readonly RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: "rent_subscription_rent_indexation_applied";
|
|
115
115
|
readonly PASSWORD_RESET: "password_reset";
|
|
116
116
|
readonly USER_EMAIL_CHANGED: "user_email_changed";
|
|
117
|
+
readonly USER_EMAIL_CHANGE_CONFIRMED: "user_email_change_confirmed";
|
|
117
118
|
readonly BUYER_INVOICE: "buyer_invoice";
|
|
118
119
|
readonly BUYER_RENT_INSTALLMENT_INVOICE: "buyer_rent_installment_invoice";
|
|
119
120
|
readonly BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: "buyer_lease_to_own_installment_invoice";
|
|
@@ -75,6 +75,7 @@ exports.BuyerNotificationDtoTypeEnum = {
|
|
|
75
75
|
RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: 'rent_subscription_rent_indexation_applied',
|
|
76
76
|
PASSWORD_RESET: 'password_reset',
|
|
77
77
|
USER_EMAIL_CHANGED: 'user_email_changed',
|
|
78
|
+
USER_EMAIL_CHANGE_CONFIRMED: 'user_email_change_confirmed',
|
|
78
79
|
BUYER_INVOICE: 'buyer_invoice',
|
|
79
80
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
80
81
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
@@ -107,6 +107,7 @@ export declare const BuyerNotificationListItemDtoTypeEnum: {
|
|
|
107
107
|
readonly RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: "rent_subscription_rent_indexation_applied";
|
|
108
108
|
readonly PASSWORD_RESET: "password_reset";
|
|
109
109
|
readonly USER_EMAIL_CHANGED: "user_email_changed";
|
|
110
|
+
readonly USER_EMAIL_CHANGE_CONFIRMED: "user_email_change_confirmed";
|
|
110
111
|
readonly BUYER_INVOICE: "buyer_invoice";
|
|
111
112
|
readonly BUYER_RENT_INSTALLMENT_INVOICE: "buyer_rent_installment_invoice";
|
|
112
113
|
readonly BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: "buyer_lease_to_own_installment_invoice";
|
|
@@ -74,6 +74,7 @@ exports.BuyerNotificationListItemDtoTypeEnum = {
|
|
|
74
74
|
RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: 'rent_subscription_rent_indexation_applied',
|
|
75
75
|
PASSWORD_RESET: 'password_reset',
|
|
76
76
|
USER_EMAIL_CHANGED: 'user_email_changed',
|
|
77
|
+
USER_EMAIL_CHANGE_CONFIRMED: 'user_email_change_confirmed',
|
|
77
78
|
BUYER_INVOICE: 'buyer_invoice',
|
|
78
79
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
79
80
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
@@ -0,0 +1,86 @@
|
|
|
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
|
+
import type { MoneyDto } from './MoneyDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CustomerSuccessDomainAuctionDto
|
|
17
|
+
*/
|
|
18
|
+
export interface CustomerSuccessDomainAuctionDto {
|
|
19
|
+
/**
|
|
20
|
+
* Unique identifier of the auction.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CustomerSuccessDomainAuctionDto
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Minimum bid amount required to participate.
|
|
27
|
+
* @type {MoneyDto}
|
|
28
|
+
* @memberof CustomerSuccessDomainAuctionDto
|
|
29
|
+
*/
|
|
30
|
+
minimumBid: MoneyDto;
|
|
31
|
+
/**
|
|
32
|
+
* Hidden reserve price that must be met to sell the domain.
|
|
33
|
+
* @type {MoneyDto}
|
|
34
|
+
* @memberof CustomerSuccessDomainAuctionDto
|
|
35
|
+
*/
|
|
36
|
+
reservePrice: MoneyDto | null;
|
|
37
|
+
/**
|
|
38
|
+
* Auction start date and time.
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof CustomerSuccessDomainAuctionDto
|
|
41
|
+
*/
|
|
42
|
+
startDate: Date;
|
|
43
|
+
/**
|
|
44
|
+
* Auction end date and time.
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof CustomerSuccessDomainAuctionDto
|
|
47
|
+
*/
|
|
48
|
+
endDate: Date;
|
|
49
|
+
/**
|
|
50
|
+
* Current highest bid, or null if no bids have been placed.
|
|
51
|
+
* @type {MoneyDto}
|
|
52
|
+
* @memberof CustomerSuccessDomainAuctionDto
|
|
53
|
+
*/
|
|
54
|
+
highestBid: MoneyDto | null;
|
|
55
|
+
/**
|
|
56
|
+
* Current lifecycle status of the auction.
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof CustomerSuccessDomainAuctionDto
|
|
59
|
+
*/
|
|
60
|
+
status: CustomerSuccessDomainAuctionDtoStatusEnum;
|
|
61
|
+
/**
|
|
62
|
+
* Account payment ID linked to the paid auction fee, when applicable.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof CustomerSuccessDomainAuctionDto
|
|
65
|
+
*/
|
|
66
|
+
accountPaymentId: string | null;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
export declare const CustomerSuccessDomainAuctionDtoStatusEnum: {
|
|
72
|
+
readonly SCHEDULED: "scheduled";
|
|
73
|
+
readonly ACTIVE: "active";
|
|
74
|
+
readonly ENDED: "ended";
|
|
75
|
+
readonly PENDING_PAYMENT: "pending_payment";
|
|
76
|
+
readonly FINISHED: "finished";
|
|
77
|
+
};
|
|
78
|
+
export type CustomerSuccessDomainAuctionDtoStatusEnum = typeof CustomerSuccessDomainAuctionDtoStatusEnum[keyof typeof CustomerSuccessDomainAuctionDtoStatusEnum];
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the CustomerSuccessDomainAuctionDto interface.
|
|
81
|
+
*/
|
|
82
|
+
export declare function instanceOfCustomerSuccessDomainAuctionDto(value: object): value is CustomerSuccessDomainAuctionDto;
|
|
83
|
+
export declare function CustomerSuccessDomainAuctionDtoFromJSON(json: any): CustomerSuccessDomainAuctionDto;
|
|
84
|
+
export declare function CustomerSuccessDomainAuctionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerSuccessDomainAuctionDto;
|
|
85
|
+
export declare function CustomerSuccessDomainAuctionDtoToJSON(json: any): CustomerSuccessDomainAuctionDto;
|
|
86
|
+
export declare function CustomerSuccessDomainAuctionDtoToJSONTyped(value?: CustomerSuccessDomainAuctionDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,91 @@
|
|
|
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.CustomerSuccessDomainAuctionDtoStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfCustomerSuccessDomainAuctionDto = instanceOfCustomerSuccessDomainAuctionDto;
|
|
18
|
+
exports.CustomerSuccessDomainAuctionDtoFromJSON = CustomerSuccessDomainAuctionDtoFromJSON;
|
|
19
|
+
exports.CustomerSuccessDomainAuctionDtoFromJSONTyped = CustomerSuccessDomainAuctionDtoFromJSONTyped;
|
|
20
|
+
exports.CustomerSuccessDomainAuctionDtoToJSON = CustomerSuccessDomainAuctionDtoToJSON;
|
|
21
|
+
exports.CustomerSuccessDomainAuctionDtoToJSONTyped = CustomerSuccessDomainAuctionDtoToJSONTyped;
|
|
22
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.CustomerSuccessDomainAuctionDtoStatusEnum = {
|
|
27
|
+
SCHEDULED: 'scheduled',
|
|
28
|
+
ACTIVE: 'active',
|
|
29
|
+
ENDED: 'ended',
|
|
30
|
+
PENDING_PAYMENT: 'pending_payment',
|
|
31
|
+
FINISHED: 'finished'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the CustomerSuccessDomainAuctionDto interface.
|
|
35
|
+
*/
|
|
36
|
+
function instanceOfCustomerSuccessDomainAuctionDto(value) {
|
|
37
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('minimumBid' in value) || value['minimumBid'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('reservePrice' in value) || value['reservePrice'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('startDate' in value) || value['startDate'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('endDate' in value) || value['endDate'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('highestBid' in value) || value['highestBid'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('accountPaymentId' in value) || value['accountPaymentId'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
function CustomerSuccessDomainAuctionDtoFromJSON(json) {
|
|
56
|
+
return CustomerSuccessDomainAuctionDtoFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function CustomerSuccessDomainAuctionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
59
|
+
if (json == null) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'id': json['id'],
|
|
64
|
+
'minimumBid': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minimumBid']),
|
|
65
|
+
'reservePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['reservePrice']),
|
|
66
|
+
'startDate': (new Date(json['startDate'])),
|
|
67
|
+
'endDate': (new Date(json['endDate'])),
|
|
68
|
+
'highestBid': (0, MoneyDto_1.MoneyDtoFromJSON)(json['highestBid']),
|
|
69
|
+
'status': json['status'],
|
|
70
|
+
'accountPaymentId': json['accountPaymentId'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function CustomerSuccessDomainAuctionDtoToJSON(json) {
|
|
74
|
+
return CustomerSuccessDomainAuctionDtoToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
function CustomerSuccessDomainAuctionDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
77
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
'id': value['id'],
|
|
83
|
+
'minimumBid': (0, MoneyDto_1.MoneyDtoToJSON)(value['minimumBid']),
|
|
84
|
+
'reservePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['reservePrice']),
|
|
85
|
+
'startDate': ((value['startDate']).toISOString()),
|
|
86
|
+
'endDate': ((value['endDate']).toISOString()),
|
|
87
|
+
'highestBid': (0, MoneyDto_1.MoneyDtoToJSON)(value['highestBid']),
|
|
88
|
+
'status': value['status'],
|
|
89
|
+
'accountPaymentId': value['accountPaymentId'],
|
|
90
|
+
};
|
|
91
|
+
}
|