@randock/nameshift-api-client 0.0.382 → 0.0.384
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 +13 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +54 -1
- package/dist/apis/AdminApi.js +263 -0
- package/dist/apis/ChallengesApi.d.ts +46 -0
- package/dist/apis/ChallengesApi.js +234 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AccountChallengeRewardUsageListItemDto.d.ts +63 -0
- package/dist/models/AccountChallengeRewardUsageListItemDto.js +72 -0
- package/dist/models/AccountChallengeRewardUsageListItemDtoMetadata.d.ts +32 -0
- package/dist/models/AccountChallengeRewardUsageListItemDtoMetadata.js +49 -0
- package/dist/models/AccountDto.d.ts +7 -0
- package/dist/models/AccountDto.js +5 -0
- package/dist/models/AccountMetricsDto.d.ts +6 -0
- package/dist/models/AccountMetricsDto.js +4 -0
- package/dist/models/AdminChallengeListDto.d.ts +33 -0
- package/dist/models/AdminChallengeListDto.js +52 -0
- package/dist/models/AdminChallengeListItemDto.d.ts +125 -0
- package/dist/models/AdminChallengeListItemDto.js +125 -0
- package/dist/models/AdminListAccountDto.d.ts +7 -0
- package/dist/models/AdminListAccountDto.js +5 -0
- package/dist/models/ChallengeRewardBalanceDto.d.ts +38 -0
- package/dist/models/ChallengeRewardBalanceDto.js +55 -0
- package/dist/models/CreateChallengeInput.d.ts +67 -0
- package/dist/models/CreateChallengeInput.js +80 -0
- package/dist/models/GetAccountChallengeRewardUsagesListDto.d.ts +33 -0
- package/dist/models/GetAccountChallengeRewardUsagesListDto.js +52 -0
- package/dist/models/GetSellerChallengesListDto.d.ts +33 -0
- package/dist/models/GetSellerChallengesListDto.js +52 -0
- package/dist/models/GetSellerChallengesListDtoChallengesInner.d.ts +27 -0
- package/dist/models/GetSellerChallengesListDtoChallengesInner.js +54 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +10 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +9 -1
- package/dist/models/PrivateAccountGetMeResponse.d.ts +10 -0
- package/dist/models/PrivateAccountGetMeResponse.js +9 -1
- package/dist/models/SellerScaleChallengeListItemDto.d.ts +148 -0
- package/dist/models/SellerScaleChallengeListItemDto.js +142 -0
- package/dist/models/SellerTargetChallengeListItemDto.d.ts +154 -0
- package/dist/models/SellerTargetChallengeListItemDto.js +146 -0
- package/dist/models/UpdateChallengeInput.d.ts +44 -0
- package/dist/models/UpdateChallengeInput.js +53 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +240 -0
- package/src/apis/ChallengesApi.ts +156 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AccountChallengeRewardUsageListItemDto.ts +119 -0
- package/src/models/AccountChallengeRewardUsageListItemDtoMetadata.ts +65 -0
- package/src/models/AccountDto.ts +16 -0
- package/src/models/AccountMetricsDto.ts +9 -0
- package/src/models/AdminChallengeListDto.ts +74 -0
- package/src/models/AdminChallengeListItemDto.ts +185 -0
- package/src/models/AdminListAccountDto.ts +16 -0
- package/src/models/ChallengeRewardBalanceDto.ts +75 -0
- package/src/models/CreateChallengeInput.ts +109 -0
- package/src/models/GetAccountChallengeRewardUsagesListDto.ts +74 -0
- package/src/models/GetSellerChallengesListDto.ts +74 -0
- package/src/models/GetSellerChallengesListDtoChallengesInner.ts +73 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +20 -1
- package/src/models/PrivateAccountGetMeResponse.ts +20 -1
- package/src/models/SellerScaleChallengeListItemDto.ts +221 -0
- package/src/models/SellerTargetChallengeListItemDto.ts +230 -0
- package/src/models/UpdateChallengeInput.ts +81 -0
- package/src/models/index.ts +12 -0
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
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.ChallengesApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var ChallengesApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(ChallengesApi, _super);
|
|
75
|
+
function ChallengesApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
ChallengesApi.prototype.collectChallengeRewardRaw = function (requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
if (requestParameters['challengeId'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('challengeId', 'Required parameter "challengeId" was null or undefined when calling collectChallengeReward().');
|
|
89
|
+
}
|
|
90
|
+
if (requestParameters['progressId'] == null) {
|
|
91
|
+
throw new runtime.RequiredError('progressId', 'Required parameter "progressId" was null or undefined when calling collectChallengeReward().');
|
|
92
|
+
}
|
|
93
|
+
queryParameters = {};
|
|
94
|
+
headerParameters = {};
|
|
95
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
96
|
+
token = this.configuration.accessToken;
|
|
97
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
98
|
+
case 1:
|
|
99
|
+
tokenString = _a.sent();
|
|
100
|
+
if (tokenString) {
|
|
101
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
102
|
+
}
|
|
103
|
+
_a.label = 2;
|
|
104
|
+
case 2: return [4 /*yield*/, this.request({
|
|
105
|
+
path: "/private/challenges/{challengeId}/progress/{progressId}/collect".replace("{".concat("challengeId", "}"), encodeURIComponent(String(requestParameters['challengeId']))).replace("{".concat("progressId", "}"), encodeURIComponent(String(requestParameters['progressId']))),
|
|
106
|
+
method: 'POST',
|
|
107
|
+
headers: headerParameters,
|
|
108
|
+
query: queryParameters,
|
|
109
|
+
}, initOverrides)];
|
|
110
|
+
case 3:
|
|
111
|
+
response = _a.sent();
|
|
112
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
*/
|
|
120
|
+
ChallengesApi.prototype.collectChallengeReward = function (requestParameters, initOverrides) {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
122
|
+
return __generator(this, function (_a) {
|
|
123
|
+
switch (_a.label) {
|
|
124
|
+
case 0: return [4 /*yield*/, this.collectChallengeRewardRaw(requestParameters, initOverrides)];
|
|
125
|
+
case 1:
|
|
126
|
+
_a.sent();
|
|
127
|
+
return [2 /*return*/];
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
*/
|
|
135
|
+
ChallengesApi.prototype.getAccountChallengeRewardUsagesRaw = function (initOverrides) {
|
|
136
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
137
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
138
|
+
return __generator(this, function (_a) {
|
|
139
|
+
switch (_a.label) {
|
|
140
|
+
case 0:
|
|
141
|
+
queryParameters = {};
|
|
142
|
+
headerParameters = {};
|
|
143
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
144
|
+
token = this.configuration.accessToken;
|
|
145
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
146
|
+
case 1:
|
|
147
|
+
tokenString = _a.sent();
|
|
148
|
+
if (tokenString) {
|
|
149
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
150
|
+
}
|
|
151
|
+
_a.label = 2;
|
|
152
|
+
case 2: return [4 /*yield*/, this.request({
|
|
153
|
+
path: "/private/challenges/reward-usages",
|
|
154
|
+
method: 'GET',
|
|
155
|
+
headers: headerParameters,
|
|
156
|
+
query: queryParameters,
|
|
157
|
+
}, initOverrides)];
|
|
158
|
+
case 3:
|
|
159
|
+
response = _a.sent();
|
|
160
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAccountChallengeRewardUsagesListDtoFromJSON)(jsonValue); })];
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
*/
|
|
168
|
+
ChallengesApi.prototype.getAccountChallengeRewardUsages = function (initOverrides) {
|
|
169
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
170
|
+
var response;
|
|
171
|
+
return __generator(this, function (_a) {
|
|
172
|
+
switch (_a.label) {
|
|
173
|
+
case 0: return [4 /*yield*/, this.getAccountChallengeRewardUsagesRaw(initOverrides)];
|
|
174
|
+
case 1:
|
|
175
|
+
response = _a.sent();
|
|
176
|
+
return [4 /*yield*/, response.value()];
|
|
177
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
*
|
|
184
|
+
*/
|
|
185
|
+
ChallengesApi.prototype.getChallengesRaw = function (initOverrides) {
|
|
186
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
187
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
188
|
+
return __generator(this, function (_a) {
|
|
189
|
+
switch (_a.label) {
|
|
190
|
+
case 0:
|
|
191
|
+
queryParameters = {};
|
|
192
|
+
headerParameters = {};
|
|
193
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
194
|
+
token = this.configuration.accessToken;
|
|
195
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
196
|
+
case 1:
|
|
197
|
+
tokenString = _a.sent();
|
|
198
|
+
if (tokenString) {
|
|
199
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
200
|
+
}
|
|
201
|
+
_a.label = 2;
|
|
202
|
+
case 2: return [4 /*yield*/, this.request({
|
|
203
|
+
path: "/private/challenges",
|
|
204
|
+
method: 'GET',
|
|
205
|
+
headers: headerParameters,
|
|
206
|
+
query: queryParameters,
|
|
207
|
+
}, initOverrides)];
|
|
208
|
+
case 3:
|
|
209
|
+
response = _a.sent();
|
|
210
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetSellerChallengesListDtoFromJSON)(jsonValue); })];
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
});
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
*
|
|
217
|
+
*/
|
|
218
|
+
ChallengesApi.prototype.getChallenges = function (initOverrides) {
|
|
219
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
220
|
+
var response;
|
|
221
|
+
return __generator(this, function (_a) {
|
|
222
|
+
switch (_a.label) {
|
|
223
|
+
case 0: return [4 /*yield*/, this.getChallengesRaw(initOverrides)];
|
|
224
|
+
case 1:
|
|
225
|
+
response = _a.sent();
|
|
226
|
+
return [4 /*yield*/, response.value()];
|
|
227
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
});
|
|
231
|
+
};
|
|
232
|
+
return ChallengesApi;
|
|
233
|
+
}(runtime.BaseAPI));
|
|
234
|
+
exports.ChallengesApi = ChallengesApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './AuctionsPublicApi';
|
|
|
6
6
|
export * from './BankAccountsApi';
|
|
7
7
|
export * from './BuyersApi';
|
|
8
8
|
export * from './BuyersPublicApi';
|
|
9
|
+
export * from './ChallengesApi';
|
|
9
10
|
export * from './DomainTransfersApi';
|
|
10
11
|
export * from './DomainsApi';
|
|
11
12
|
export * from './DomainsPublicApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -24,6 +24,7 @@ __exportStar(require("./AuctionsPublicApi"), exports);
|
|
|
24
24
|
__exportStar(require("./BankAccountsApi"), exports);
|
|
25
25
|
__exportStar(require("./BuyersApi"), exports);
|
|
26
26
|
__exportStar(require("./BuyersPublicApi"), exports);
|
|
27
|
+
__exportStar(require("./ChallengesApi"), exports);
|
|
27
28
|
__exportStar(require("./DomainTransfersApi"), exports);
|
|
28
29
|
__exportStar(require("./DomainsApi"), exports);
|
|
29
30
|
__exportStar(require("./DomainsPublicApi"), exports);
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
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 { AccountChallengeRewardUsageListItemDtoMetadata } from './AccountChallengeRewardUsageListItemDtoMetadata';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AccountChallengeRewardUsageListItemDto
|
|
17
|
+
*/
|
|
18
|
+
export interface AccountChallengeRewardUsageListItemDto {
|
|
19
|
+
/**
|
|
20
|
+
* Usage id
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AccountChallengeRewardUsageListItemDto
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Invoice id where the reward was applied
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AccountChallengeRewardUsageListItemDto
|
|
29
|
+
*/
|
|
30
|
+
invoiceId: string;
|
|
31
|
+
/**
|
|
32
|
+
* Invoice number (human-readable)
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AccountChallengeRewardUsageListItemDto
|
|
35
|
+
*/
|
|
36
|
+
invoiceNumber: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Reward points used for this invoice
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof AccountChallengeRewardUsageListItemDto
|
|
41
|
+
*/
|
|
42
|
+
usedPoints: number;
|
|
43
|
+
/**
|
|
44
|
+
* Date when the reward was used
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof AccountChallengeRewardUsageListItemDto
|
|
47
|
+
*/
|
|
48
|
+
date: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {AccountChallengeRewardUsageListItemDtoMetadata}
|
|
52
|
+
* @memberof AccountChallengeRewardUsageListItemDto
|
|
53
|
+
*/
|
|
54
|
+
metadata: AccountChallengeRewardUsageListItemDtoMetadata;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the AccountChallengeRewardUsageListItemDto interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfAccountChallengeRewardUsageListItemDto(value: object): value is AccountChallengeRewardUsageListItemDto;
|
|
60
|
+
export declare function AccountChallengeRewardUsageListItemDtoFromJSON(json: any): AccountChallengeRewardUsageListItemDto;
|
|
61
|
+
export declare function AccountChallengeRewardUsageListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountChallengeRewardUsageListItemDto;
|
|
62
|
+
export declare function AccountChallengeRewardUsageListItemDtoToJSON(json: any): AccountChallengeRewardUsageListItemDto;
|
|
63
|
+
export declare function AccountChallengeRewardUsageListItemDtoToJSONTyped(value?: AccountChallengeRewardUsageListItemDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
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.instanceOfAccountChallengeRewardUsageListItemDto = instanceOfAccountChallengeRewardUsageListItemDto;
|
|
17
|
+
exports.AccountChallengeRewardUsageListItemDtoFromJSON = AccountChallengeRewardUsageListItemDtoFromJSON;
|
|
18
|
+
exports.AccountChallengeRewardUsageListItemDtoFromJSONTyped = AccountChallengeRewardUsageListItemDtoFromJSONTyped;
|
|
19
|
+
exports.AccountChallengeRewardUsageListItemDtoToJSON = AccountChallengeRewardUsageListItemDtoToJSON;
|
|
20
|
+
exports.AccountChallengeRewardUsageListItemDtoToJSONTyped = AccountChallengeRewardUsageListItemDtoToJSONTyped;
|
|
21
|
+
var AccountChallengeRewardUsageListItemDtoMetadata_1 = require("./AccountChallengeRewardUsageListItemDtoMetadata");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AccountChallengeRewardUsageListItemDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAccountChallengeRewardUsageListItemDto(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('invoiceId' in value) || value['invoiceId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('invoiceNumber' in value) || value['invoiceNumber'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('usedPoints' in value) || value['usedPoints'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('metadata' in value) || value['metadata'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function AccountChallengeRewardUsageListItemDtoFromJSON(json) {
|
|
41
|
+
return AccountChallengeRewardUsageListItemDtoFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AccountChallengeRewardUsageListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': json['id'],
|
|
49
|
+
'invoiceId': json['invoiceId'],
|
|
50
|
+
'invoiceNumber': json['invoiceNumber'],
|
|
51
|
+
'usedPoints': json['usedPoints'],
|
|
52
|
+
'date': json['date'],
|
|
53
|
+
'metadata': (0, AccountChallengeRewardUsageListItemDtoMetadata_1.AccountChallengeRewardUsageListItemDtoMetadataFromJSON)(json['metadata']),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function AccountChallengeRewardUsageListItemDtoToJSON(json) {
|
|
57
|
+
return AccountChallengeRewardUsageListItemDtoToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function AccountChallengeRewardUsageListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
60
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': value['id'],
|
|
66
|
+
'invoiceId': value['invoiceId'],
|
|
67
|
+
'invoiceNumber': value['invoiceNumber'],
|
|
68
|
+
'usedPoints': value['usedPoints'],
|
|
69
|
+
'date': value['date'],
|
|
70
|
+
'metadata': (0, AccountChallengeRewardUsageListItemDtoMetadata_1.AccountChallengeRewardUsageListItemDtoMetadataToJSON)(value['metadata']),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
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 AccountChallengeRewardUsageListItemDtoMetadata
|
|
16
|
+
*/
|
|
17
|
+
export interface AccountChallengeRewardUsageListItemDtoMetadata {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AccountChallengeRewardUsageListItemDtoMetadata
|
|
22
|
+
*/
|
|
23
|
+
initialCommissionPercentage?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AccountChallengeRewardUsageListItemDtoMetadata interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAccountChallengeRewardUsageListItemDtoMetadata(value: object): value is AccountChallengeRewardUsageListItemDtoMetadata;
|
|
29
|
+
export declare function AccountChallengeRewardUsageListItemDtoMetadataFromJSON(json: any): AccountChallengeRewardUsageListItemDtoMetadata;
|
|
30
|
+
export declare function AccountChallengeRewardUsageListItemDtoMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountChallengeRewardUsageListItemDtoMetadata;
|
|
31
|
+
export declare function AccountChallengeRewardUsageListItemDtoMetadataToJSON(json: any): AccountChallengeRewardUsageListItemDtoMetadata;
|
|
32
|
+
export declare function AccountChallengeRewardUsageListItemDtoMetadataToJSONTyped(value?: AccountChallengeRewardUsageListItemDtoMetadata | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
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.instanceOfAccountChallengeRewardUsageListItemDtoMetadata = instanceOfAccountChallengeRewardUsageListItemDtoMetadata;
|
|
17
|
+
exports.AccountChallengeRewardUsageListItemDtoMetadataFromJSON = AccountChallengeRewardUsageListItemDtoMetadataFromJSON;
|
|
18
|
+
exports.AccountChallengeRewardUsageListItemDtoMetadataFromJSONTyped = AccountChallengeRewardUsageListItemDtoMetadataFromJSONTyped;
|
|
19
|
+
exports.AccountChallengeRewardUsageListItemDtoMetadataToJSON = AccountChallengeRewardUsageListItemDtoMetadataToJSON;
|
|
20
|
+
exports.AccountChallengeRewardUsageListItemDtoMetadataToJSONTyped = AccountChallengeRewardUsageListItemDtoMetadataToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AccountChallengeRewardUsageListItemDtoMetadata interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAccountChallengeRewardUsageListItemDtoMetadata(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function AccountChallengeRewardUsageListItemDtoMetadataFromJSON(json) {
|
|
28
|
+
return AccountChallengeRewardUsageListItemDtoMetadataFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function AccountChallengeRewardUsageListItemDtoMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'initialCommissionPercentage': json['initialCommissionPercentage'] == null ? undefined : json['initialCommissionPercentage'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function AccountChallengeRewardUsageListItemDtoMetadataToJSON(json) {
|
|
39
|
+
return AccountChallengeRewardUsageListItemDtoMetadataToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function AccountChallengeRewardUsageListItemDtoMetadataToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'initialCommissionPercentage': value['initialCommissionPercentage'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { AccountPayoutDto } from './AccountPayoutDto';
|
|
13
13
|
import type { AccountOnboardingDto } from './AccountOnboardingDto';
|
|
14
|
+
import type { ChallengeRewardBalanceDto } from './ChallengeRewardBalanceDto';
|
|
14
15
|
import type { AccountMetricsDto } from './AccountMetricsDto';
|
|
15
16
|
import type { BillingInformationDto } from './BillingInformationDto';
|
|
16
17
|
/**
|
|
@@ -31,6 +32,12 @@ export interface AccountDto {
|
|
|
31
32
|
* @memberof AccountDto
|
|
32
33
|
*/
|
|
33
34
|
identifier: string;
|
|
35
|
+
/**
|
|
36
|
+
* Challenge reward balance (available and used).
|
|
37
|
+
* @type {ChallengeRewardBalanceDto}
|
|
38
|
+
* @memberof AccountDto
|
|
39
|
+
*/
|
|
40
|
+
challengeRewardBalance: ChallengeRewardBalanceDto;
|
|
34
41
|
/**
|
|
35
42
|
*
|
|
36
43
|
* @type {string}
|
|
@@ -20,6 +20,7 @@ exports.AccountDtoToJSON = AccountDtoToJSON;
|
|
|
20
20
|
exports.AccountDtoToJSONTyped = AccountDtoToJSONTyped;
|
|
21
21
|
var AccountPayoutDto_1 = require("./AccountPayoutDto");
|
|
22
22
|
var AccountOnboardingDto_1 = require("./AccountOnboardingDto");
|
|
23
|
+
var ChallengeRewardBalanceDto_1 = require("./ChallengeRewardBalanceDto");
|
|
23
24
|
var AccountMetricsDto_1 = require("./AccountMetricsDto");
|
|
24
25
|
var BillingInformationDto_1 = require("./BillingInformationDto");
|
|
25
26
|
/**
|
|
@@ -30,6 +31,8 @@ function instanceOfAccountDto(value) {
|
|
|
30
31
|
return false;
|
|
31
32
|
if (!('identifier' in value) || value['identifier'] === undefined)
|
|
32
33
|
return false;
|
|
34
|
+
if (!('challengeRewardBalance' in value) || value['challengeRewardBalance'] === undefined)
|
|
35
|
+
return false;
|
|
33
36
|
if (!('name' in value) || value['name'] === undefined)
|
|
34
37
|
return false;
|
|
35
38
|
if (!('metrics' in value) || value['metrics'] === undefined)
|
|
@@ -56,6 +59,7 @@ function AccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
59
|
return {
|
|
57
60
|
'id': json['id'],
|
|
58
61
|
'identifier': json['identifier'],
|
|
62
|
+
'challengeRewardBalance': (0, ChallengeRewardBalanceDto_1.ChallengeRewardBalanceDtoFromJSON)(json['challengeRewardBalance']),
|
|
59
63
|
'name': json['name'],
|
|
60
64
|
'metrics': (0, AccountMetricsDto_1.AccountMetricsDtoFromJSON)(json['metrics']),
|
|
61
65
|
'onboarding': (0, AccountOnboardingDto_1.AccountOnboardingDtoFromJSON)(json['onboarding']),
|
|
@@ -76,6 +80,7 @@ function AccountDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
76
80
|
return {
|
|
77
81
|
'id': value['id'],
|
|
78
82
|
'identifier': value['identifier'],
|
|
83
|
+
'challengeRewardBalance': (0, ChallengeRewardBalanceDto_1.ChallengeRewardBalanceDtoToJSON)(value['challengeRewardBalance']),
|
|
79
84
|
'name': value['name'],
|
|
80
85
|
'metrics': (0, AccountMetricsDto_1.AccountMetricsDtoToJSON)(value['metrics']),
|
|
81
86
|
'onboarding': (0, AccountOnboardingDto_1.AccountOnboardingDtoToJSON)(value['onboarding']),
|
|
@@ -51,6 +51,12 @@ export interface AccountMetricsDto {
|
|
|
51
51
|
* @memberof AccountMetricsDto
|
|
52
52
|
*/
|
|
53
53
|
soldDomainsNumber: number;
|
|
54
|
+
/**
|
|
55
|
+
* Total of pending challenges to collect number
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof AccountMetricsDto
|
|
58
|
+
*/
|
|
59
|
+
pendingChallengesToCollectNumber: number;
|
|
54
60
|
}
|
|
55
61
|
/**
|
|
56
62
|
* Check if a given object implements the AccountMetricsDto interface.
|
|
@@ -34,6 +34,8 @@ function instanceOfAccountMetricsDto(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
if (!('soldDomainsNumber' in value) || value['soldDomainsNumber'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
+
if (!('pendingChallengesToCollectNumber' in value) || value['pendingChallengesToCollectNumber'] === undefined)
|
|
38
|
+
return false;
|
|
37
39
|
return true;
|
|
38
40
|
}
|
|
39
41
|
function AccountMetricsDtoFromJSON(json) {
|
|
@@ -50,6 +52,7 @@ function AccountMetricsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
52
|
'activeDomainTransfersNumber': json['activeDomainTransfersNumber'],
|
|
51
53
|
'tasksNumber': json['tasksNumber'],
|
|
52
54
|
'soldDomainsNumber': json['soldDomainsNumber'],
|
|
55
|
+
'pendingChallengesToCollectNumber': json['pendingChallengesToCollectNumber'],
|
|
53
56
|
};
|
|
54
57
|
}
|
|
55
58
|
function AccountMetricsDtoToJSON(json) {
|
|
@@ -67,5 +70,6 @@ function AccountMetricsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
67
70
|
'activeDomainTransfersNumber': value['activeDomainTransfersNumber'],
|
|
68
71
|
'tasksNumber': value['tasksNumber'],
|
|
69
72
|
'soldDomainsNumber': value['soldDomainsNumber'],
|
|
73
|
+
'pendingChallengesToCollectNumber': value['pendingChallengesToCollectNumber'],
|
|
70
74
|
};
|
|
71
75
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
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 { AdminChallengeListItemDto } from './AdminChallengeListItemDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AdminChallengeListDto
|
|
17
|
+
*/
|
|
18
|
+
export interface AdminChallengeListDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<AdminChallengeListItemDto>}
|
|
22
|
+
* @memberof AdminChallengeListDto
|
|
23
|
+
*/
|
|
24
|
+
challenges: Array<AdminChallengeListItemDto>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the AdminChallengeListDto interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfAdminChallengeListDto(value: object): value is AdminChallengeListDto;
|
|
30
|
+
export declare function AdminChallengeListDtoFromJSON(json: any): AdminChallengeListDto;
|
|
31
|
+
export declare function AdminChallengeListDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminChallengeListDto;
|
|
32
|
+
export declare function AdminChallengeListDtoToJSON(json: any): AdminChallengeListDto;
|
|
33
|
+
export declare function AdminChallengeListDtoToJSONTyped(value?: AdminChallengeListDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
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.instanceOfAdminChallengeListDto = instanceOfAdminChallengeListDto;
|
|
17
|
+
exports.AdminChallengeListDtoFromJSON = AdminChallengeListDtoFromJSON;
|
|
18
|
+
exports.AdminChallengeListDtoFromJSONTyped = AdminChallengeListDtoFromJSONTyped;
|
|
19
|
+
exports.AdminChallengeListDtoToJSON = AdminChallengeListDtoToJSON;
|
|
20
|
+
exports.AdminChallengeListDtoToJSONTyped = AdminChallengeListDtoToJSONTyped;
|
|
21
|
+
var AdminChallengeListItemDto_1 = require("./AdminChallengeListItemDto");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AdminChallengeListDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAdminChallengeListDto(value) {
|
|
26
|
+
if (!('challenges' in value) || value['challenges'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function AdminChallengeListDtoFromJSON(json) {
|
|
31
|
+
return AdminChallengeListDtoFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function AdminChallengeListDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'challenges': (json['challenges'].map(AdminChallengeListItemDto_1.AdminChallengeListItemDtoFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AdminChallengeListDtoToJSON(json) {
|
|
42
|
+
return AdminChallengeListDtoToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AdminChallengeListDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'challenges': (value['challenges'].map(AdminChallengeListItemDto_1.AdminChallengeListItemDtoToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|