@randock/nameshift-api-client 0.0.375 → 0.0.377
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 +7 -0
- package/README.md +3 -3
- package/dist/apis/AccountsApi.d.ts +9 -1
- package/dist/apis/AccountsApi.js +50 -0
- package/dist/models/AccountNameshiftCommissionBySubtypePercentagesDto.d.ts +51 -0
- package/dist/models/AccountNameshiftCommissionBySubtypePercentagesDto.js +64 -0
- package/dist/models/AccountNameshiftCommissionByTypeDto.d.ts +7 -0
- package/dist/models/AccountNameshiftCommissionByTypeDto.js +5 -0
- package/dist/models/AccountNameshiftCommissionItemDto.d.ts +73 -0
- package/dist/models/AccountNameshiftCommissionItemDto.js +82 -0
- package/dist/models/AccountNameshiftCommissionReasonDto.d.ts +112 -0
- package/dist/models/AccountNameshiftCommissionReasonDto.js +88 -0
- package/dist/models/AccountNameshiftCommissionSubtypeCurrentDto.d.ts +39 -0
- package/dist/models/AccountNameshiftCommissionSubtypeCurrentDto.js +56 -0
- package/dist/models/AdminListAccountDto.d.ts +13 -0
- package/dist/models/AdminListAccountDto.js +9 -0
- package/dist/models/CommissionReasonDto.d.ts +6 -0
- package/dist/models/CommissionReasonDto.js +2 -0
- package/dist/models/GetAccountNameshiftCommissionsResponseDto.d.ts +40 -0
- package/dist/models/GetAccountNameshiftCommissionsResponseDto.js +57 -0
- package/dist/models/ListAccountPortfolioSizeDto.d.ts +38 -0
- package/dist/models/ListAccountPortfolioSizeDto.js +55 -0
- package/dist/models/RegisterAccountInput.d.ts +13 -0
- package/dist/models/RegisterAccountInput.js +5 -0
- package/dist/models/RegisterAccountPortfolioSizeInput.d.ts +38 -0
- package/dist/models/RegisterAccountPortfolioSizeInput.js +53 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +37 -0
- package/src/models/AccountNameshiftCommissionBySubtypePercentagesDto.ts +101 -0
- package/src/models/AccountNameshiftCommissionByTypeDto.ts +16 -0
- package/src/models/AccountNameshiftCommissionItemDto.ts +132 -0
- package/src/models/AccountNameshiftCommissionReasonDto.ts +182 -0
- package/src/models/AccountNameshiftCommissionSubtypeCurrentDto.ts +83 -0
- package/src/models/AdminListAccountDto.ts +25 -0
- package/src/models/CommissionReasonDto.ts +8 -0
- package/src/models/GetAccountNameshiftCommissionsResponseDto.ts +90 -0
- package/src/models/ListAccountPortfolioSizeDto.ts +75 -0
- package/src/models/RegisterAccountInput.ts +24 -0
- package/src/models/RegisterAccountPortfolioSizeInput.ts +74 -0
- package/src/models/index.ts +7 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -42,7 +42,11 @@ src/models/AccountCountryStatsDto.ts
|
|
|
42
42
|
src/models/AccountDto.ts
|
|
43
43
|
src/models/AccountMetricsDto.ts
|
|
44
44
|
src/models/AccountNameshiftCommissionBySubtypeDto.ts
|
|
45
|
+
src/models/AccountNameshiftCommissionBySubtypePercentagesDto.ts
|
|
45
46
|
src/models/AccountNameshiftCommissionByTypeDto.ts
|
|
47
|
+
src/models/AccountNameshiftCommissionItemDto.ts
|
|
48
|
+
src/models/AccountNameshiftCommissionReasonDto.ts
|
|
49
|
+
src/models/AccountNameshiftCommissionSubtypeCurrentDto.ts
|
|
46
50
|
src/models/AccountNotificationDto.ts
|
|
47
51
|
src/models/AccountNotificationReadStatusDto.ts
|
|
48
52
|
src/models/AccountOnboardingDto.ts
|
|
@@ -222,6 +226,7 @@ src/models/FixedCommissionPayloadDto.ts
|
|
|
222
226
|
src/models/FixedCommissionPayloadInput.ts
|
|
223
227
|
src/models/FixedCommissionReasonPayloadDto.ts
|
|
224
228
|
src/models/ForgotPasswordRequestInput.ts
|
|
229
|
+
src/models/GetAccountNameshiftCommissionsResponseDto.ts
|
|
225
230
|
src/models/GetAllAffiliateCommissions200Response.ts
|
|
226
231
|
src/models/GetAllAuctions200Response.ts
|
|
227
232
|
src/models/GetAllAuctions200Response1.ts
|
|
@@ -284,6 +289,7 @@ src/models/List200Response2.ts
|
|
|
284
289
|
src/models/List200Response3.ts
|
|
285
290
|
src/models/List200Response4.ts
|
|
286
291
|
src/models/ListAccountMetricsDto.ts
|
|
292
|
+
src/models/ListAccountPortfolioSizeDto.ts
|
|
287
293
|
src/models/ListAccountUserDto.ts
|
|
288
294
|
src/models/ListAccounts200Response.ts
|
|
289
295
|
src/models/ListAuctions200Response.ts
|
|
@@ -344,6 +350,7 @@ src/models/PublicSalesDto.ts
|
|
|
344
350
|
src/models/PutBuyerLeadOfferInput.ts
|
|
345
351
|
src/models/PutLeadOfferInput.ts
|
|
346
352
|
src/models/RegisterAccountInput.ts
|
|
353
|
+
src/models/RegisterAccountPortfolioSizeInput.ts
|
|
347
354
|
src/models/RegisterAuctionBuyerPhoneInput.ts
|
|
348
355
|
src/models/RegisterInput.ts
|
|
349
356
|
src/models/RelatedDomainsDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.377
|
|
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.377 --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
|
+
ed979396fc42a8197f83c39a33a36d2c9ebdce423bbf32aaf6fb85dbd54c59a61274bb4c65a42f0a31bff44d93b61888
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AccountOnboardingSessionDto, AccountPaymentDto, AccountPaymentMethodDto, AccountSettingsDto, AccountSettingsInput, CreateAccountPaymentInput, CreateAccountPaymentManualTransactionInput, GetAllAffiliateCommissions200Response, GetAllReferrals200Response, MoneyDto, ObjectId, PayAccountPaymentInput, PrivateAccountGetMeResponse, SetPayoutProviderInput, UpdateAccountBillingInformationInput } from '../models/index';
|
|
13
|
+
import type { AccountOnboardingSessionDto, AccountPaymentDto, AccountPaymentMethodDto, AccountSettingsDto, AccountSettingsInput, CreateAccountPaymentInput, CreateAccountPaymentManualTransactionInput, GetAccountNameshiftCommissionsResponseDto, GetAllAffiliateCommissions200Response, GetAllReferrals200Response, MoneyDto, ObjectId, PayAccountPaymentInput, PrivateAccountGetMeResponse, SetPayoutProviderInput, UpdateAccountBillingInformationInput } from '../models/index';
|
|
14
14
|
export interface AccountsApiCreateAccountPaymentRequest {
|
|
15
15
|
accountId: string;
|
|
16
16
|
createAccountPaymentInput: CreateAccountPaymentInput;
|
|
@@ -159,6 +159,14 @@ export declare class AccountsApi extends runtime.BaseAPI {
|
|
|
159
159
|
*
|
|
160
160
|
*/
|
|
161
161
|
getAllReferrals(requestParameters: AccountsApiGetAllReferralsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllReferrals200Response>;
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
*/
|
|
165
|
+
getNameshiftCommissionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAccountNameshiftCommissionsResponseDto>>;
|
|
166
|
+
/**
|
|
167
|
+
*
|
|
168
|
+
*/
|
|
169
|
+
getNameshiftCommissions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAccountNameshiftCommissionsResponseDto>;
|
|
162
170
|
/**
|
|
163
171
|
*
|
|
164
172
|
*/
|
package/dist/apis/AccountsApi.js
CHANGED
|
@@ -640,6 +640,56 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
640
640
|
});
|
|
641
641
|
});
|
|
642
642
|
};
|
|
643
|
+
/**
|
|
644
|
+
*
|
|
645
|
+
*/
|
|
646
|
+
AccountsApi.prototype.getNameshiftCommissionsRaw = function (initOverrides) {
|
|
647
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
648
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
649
|
+
return __generator(this, function (_a) {
|
|
650
|
+
switch (_a.label) {
|
|
651
|
+
case 0:
|
|
652
|
+
queryParameters = {};
|
|
653
|
+
headerParameters = {};
|
|
654
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
655
|
+
token = this.configuration.accessToken;
|
|
656
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
657
|
+
case 1:
|
|
658
|
+
tokenString = _a.sent();
|
|
659
|
+
if (tokenString) {
|
|
660
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
661
|
+
}
|
|
662
|
+
_a.label = 2;
|
|
663
|
+
case 2: return [4 /*yield*/, this.request({
|
|
664
|
+
path: "/private/accounts/me/nameshift-commissions",
|
|
665
|
+
method: 'GET',
|
|
666
|
+
headers: headerParameters,
|
|
667
|
+
query: queryParameters,
|
|
668
|
+
}, initOverrides)];
|
|
669
|
+
case 3:
|
|
670
|
+
response = _a.sent();
|
|
671
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAccountNameshiftCommissionsResponseDtoFromJSON)(jsonValue); })];
|
|
672
|
+
}
|
|
673
|
+
});
|
|
674
|
+
});
|
|
675
|
+
};
|
|
676
|
+
/**
|
|
677
|
+
*
|
|
678
|
+
*/
|
|
679
|
+
AccountsApi.prototype.getNameshiftCommissions = function (initOverrides) {
|
|
680
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
681
|
+
var response;
|
|
682
|
+
return __generator(this, function (_a) {
|
|
683
|
+
switch (_a.label) {
|
|
684
|
+
case 0: return [4 /*yield*/, this.getNameshiftCommissionsRaw(initOverrides)];
|
|
685
|
+
case 1:
|
|
686
|
+
response = _a.sent();
|
|
687
|
+
return [4 /*yield*/, response.value()];
|
|
688
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
689
|
+
}
|
|
690
|
+
});
|
|
691
|
+
});
|
|
692
|
+
};
|
|
643
693
|
/**
|
|
644
694
|
*
|
|
645
695
|
*/
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { AccountNameshiftCommissionSubtypeCurrentDto } from './AccountNameshiftCommissionSubtypeCurrentDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AccountNameshiftCommissionBySubtypePercentagesDto
|
|
17
|
+
*/
|
|
18
|
+
export interface AccountNameshiftCommissionBySubtypePercentagesDto {
|
|
19
|
+
/**
|
|
20
|
+
* Current commission for pointing subtype
|
|
21
|
+
* @type {AccountNameshiftCommissionSubtypeCurrentDto}
|
|
22
|
+
* @memberof AccountNameshiftCommissionBySubtypePercentagesDto
|
|
23
|
+
*/
|
|
24
|
+
pointing: AccountNameshiftCommissionSubtypeCurrentDto;
|
|
25
|
+
/**
|
|
26
|
+
* Current commission for not_pointing subtype
|
|
27
|
+
* @type {AccountNameshiftCommissionSubtypeCurrentDto}
|
|
28
|
+
* @memberof AccountNameshiftCommissionBySubtypePercentagesDto
|
|
29
|
+
*/
|
|
30
|
+
notPointing: AccountNameshiftCommissionSubtypeCurrentDto;
|
|
31
|
+
/**
|
|
32
|
+
* Current commission for manual_lead subtype
|
|
33
|
+
* @type {AccountNameshiftCommissionSubtypeCurrentDto}
|
|
34
|
+
* @memberof AccountNameshiftCommissionBySubtypePercentagesDto
|
|
35
|
+
*/
|
|
36
|
+
manualLead: AccountNameshiftCommissionSubtypeCurrentDto;
|
|
37
|
+
/**
|
|
38
|
+
* Current commission for auction subtype
|
|
39
|
+
* @type {AccountNameshiftCommissionSubtypeCurrentDto}
|
|
40
|
+
* @memberof AccountNameshiftCommissionBySubtypePercentagesDto
|
|
41
|
+
*/
|
|
42
|
+
auction: AccountNameshiftCommissionSubtypeCurrentDto;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the AccountNameshiftCommissionBySubtypePercentagesDto interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfAccountNameshiftCommissionBySubtypePercentagesDto(value: object): value is AccountNameshiftCommissionBySubtypePercentagesDto;
|
|
48
|
+
export declare function AccountNameshiftCommissionBySubtypePercentagesDtoFromJSON(json: any): AccountNameshiftCommissionBySubtypePercentagesDto;
|
|
49
|
+
export declare function AccountNameshiftCommissionBySubtypePercentagesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountNameshiftCommissionBySubtypePercentagesDto;
|
|
50
|
+
export declare function AccountNameshiftCommissionBySubtypePercentagesDtoToJSON(json: any): AccountNameshiftCommissionBySubtypePercentagesDto;
|
|
51
|
+
export declare function AccountNameshiftCommissionBySubtypePercentagesDtoToJSONTyped(value?: AccountNameshiftCommissionBySubtypePercentagesDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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.instanceOfAccountNameshiftCommissionBySubtypePercentagesDto = instanceOfAccountNameshiftCommissionBySubtypePercentagesDto;
|
|
17
|
+
exports.AccountNameshiftCommissionBySubtypePercentagesDtoFromJSON = AccountNameshiftCommissionBySubtypePercentagesDtoFromJSON;
|
|
18
|
+
exports.AccountNameshiftCommissionBySubtypePercentagesDtoFromJSONTyped = AccountNameshiftCommissionBySubtypePercentagesDtoFromJSONTyped;
|
|
19
|
+
exports.AccountNameshiftCommissionBySubtypePercentagesDtoToJSON = AccountNameshiftCommissionBySubtypePercentagesDtoToJSON;
|
|
20
|
+
exports.AccountNameshiftCommissionBySubtypePercentagesDtoToJSONTyped = AccountNameshiftCommissionBySubtypePercentagesDtoToJSONTyped;
|
|
21
|
+
var AccountNameshiftCommissionSubtypeCurrentDto_1 = require("./AccountNameshiftCommissionSubtypeCurrentDto");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AccountNameshiftCommissionBySubtypePercentagesDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAccountNameshiftCommissionBySubtypePercentagesDto(value) {
|
|
26
|
+
if (!('pointing' in value) || value['pointing'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('notPointing' in value) || value['notPointing'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('manualLead' in value) || value['manualLead'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('auction' in value) || value['auction'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function AccountNameshiftCommissionBySubtypePercentagesDtoFromJSON(json) {
|
|
37
|
+
return AccountNameshiftCommissionBySubtypePercentagesDtoFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function AccountNameshiftCommissionBySubtypePercentagesDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'pointing': (0, AccountNameshiftCommissionSubtypeCurrentDto_1.AccountNameshiftCommissionSubtypeCurrentDtoFromJSON)(json['pointing']),
|
|
45
|
+
'notPointing': (0, AccountNameshiftCommissionSubtypeCurrentDto_1.AccountNameshiftCommissionSubtypeCurrentDtoFromJSON)(json['notPointing']),
|
|
46
|
+
'manualLead': (0, AccountNameshiftCommissionSubtypeCurrentDto_1.AccountNameshiftCommissionSubtypeCurrentDtoFromJSON)(json['manualLead']),
|
|
47
|
+
'auction': (0, AccountNameshiftCommissionSubtypeCurrentDto_1.AccountNameshiftCommissionSubtypeCurrentDtoFromJSON)(json['auction']),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function AccountNameshiftCommissionBySubtypePercentagesDtoToJSON(json) {
|
|
51
|
+
return AccountNameshiftCommissionBySubtypePercentagesDtoToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function AccountNameshiftCommissionBySubtypePercentagesDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'pointing': (0, AccountNameshiftCommissionSubtypeCurrentDto_1.AccountNameshiftCommissionSubtypeCurrentDtoToJSON)(value['pointing']),
|
|
60
|
+
'notPointing': (0, AccountNameshiftCommissionSubtypeCurrentDto_1.AccountNameshiftCommissionSubtypeCurrentDtoToJSON)(value['notPointing']),
|
|
61
|
+
'manualLead': (0, AccountNameshiftCommissionSubtypeCurrentDto_1.AccountNameshiftCommissionSubtypeCurrentDtoToJSON)(value['manualLead']),
|
|
62
|
+
'auction': (0, AccountNameshiftCommissionSubtypeCurrentDto_1.AccountNameshiftCommissionSubtypeCurrentDtoToJSON)(value['auction']),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { AccountNameshiftCommissionBySubtypeDto } from './AccountNameshiftCommissionBySubtypeDto';
|
|
13
|
+
import type { AccountNameshiftCommissionItemDto } from './AccountNameshiftCommissionItemDto';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -22,6 +23,12 @@ export interface AccountNameshiftCommissionByTypeDto {
|
|
|
22
23
|
* @memberof AccountNameshiftCommissionByTypeDto
|
|
23
24
|
*/
|
|
24
25
|
commissions: Array<AccountNameshiftCommissionBySubtypeDto>;
|
|
26
|
+
/**
|
|
27
|
+
* List of nameshift commissions (not expired or not yet started)
|
|
28
|
+
* @type {Array<AccountNameshiftCommissionItemDto>}
|
|
29
|
+
* @memberof AccountNameshiftCommissionByTypeDto
|
|
30
|
+
*/
|
|
31
|
+
details: Array<AccountNameshiftCommissionItemDto>;
|
|
25
32
|
}
|
|
26
33
|
/**
|
|
27
34
|
* Check if a given object implements the AccountNameshiftCommissionByTypeDto interface.
|
|
@@ -19,12 +19,15 @@ exports.AccountNameshiftCommissionByTypeDtoFromJSONTyped = AccountNameshiftCommi
|
|
|
19
19
|
exports.AccountNameshiftCommissionByTypeDtoToJSON = AccountNameshiftCommissionByTypeDtoToJSON;
|
|
20
20
|
exports.AccountNameshiftCommissionByTypeDtoToJSONTyped = AccountNameshiftCommissionByTypeDtoToJSONTyped;
|
|
21
21
|
var AccountNameshiftCommissionBySubtypeDto_1 = require("./AccountNameshiftCommissionBySubtypeDto");
|
|
22
|
+
var AccountNameshiftCommissionItemDto_1 = require("./AccountNameshiftCommissionItemDto");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the AccountNameshiftCommissionByTypeDto interface.
|
|
24
25
|
*/
|
|
25
26
|
function instanceOfAccountNameshiftCommissionByTypeDto(value) {
|
|
26
27
|
if (!('commissions' in value) || value['commissions'] === undefined)
|
|
27
28
|
return false;
|
|
29
|
+
if (!('details' in value) || value['details'] === undefined)
|
|
30
|
+
return false;
|
|
28
31
|
return true;
|
|
29
32
|
}
|
|
30
33
|
function AccountNameshiftCommissionByTypeDtoFromJSON(json) {
|
|
@@ -36,6 +39,7 @@ function AccountNameshiftCommissionByTypeDtoFromJSONTyped(json, ignoreDiscrimina
|
|
|
36
39
|
}
|
|
37
40
|
return {
|
|
38
41
|
'commissions': (json['commissions'].map(AccountNameshiftCommissionBySubtypeDto_1.AccountNameshiftCommissionBySubtypeDtoFromJSON)),
|
|
42
|
+
'details': (json['details'].map(AccountNameshiftCommissionItemDto_1.AccountNameshiftCommissionItemDtoFromJSON)),
|
|
39
43
|
};
|
|
40
44
|
}
|
|
41
45
|
function AccountNameshiftCommissionByTypeDtoToJSON(json) {
|
|
@@ -48,5 +52,6 @@ function AccountNameshiftCommissionByTypeDtoToJSONTyped(value, ignoreDiscriminat
|
|
|
48
52
|
}
|
|
49
53
|
return {
|
|
50
54
|
'commissions': (value['commissions'].map(AccountNameshiftCommissionBySubtypeDto_1.AccountNameshiftCommissionBySubtypeDtoToJSON)),
|
|
55
|
+
'details': (value['details'].map(AccountNameshiftCommissionItemDto_1.AccountNameshiftCommissionItemDtoToJSON)),
|
|
51
56
|
};
|
|
52
57
|
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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 { CommissionConfigurationDto } from './CommissionConfigurationDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AccountNameshiftCommissionItemDto
|
|
17
|
+
*/
|
|
18
|
+
export interface AccountNameshiftCommissionItemDto {
|
|
19
|
+
/**
|
|
20
|
+
* Commission id
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AccountNameshiftCommissionItemDto
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Commission subtype
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AccountNameshiftCommissionItemDto
|
|
29
|
+
*/
|
|
30
|
+
subtype: AccountNameshiftCommissionItemDtoSubtypeEnum;
|
|
31
|
+
/**
|
|
32
|
+
* Commission label
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AccountNameshiftCommissionItemDto
|
|
35
|
+
*/
|
|
36
|
+
label: string;
|
|
37
|
+
/**
|
|
38
|
+
* Commission configuration (factor and payload)
|
|
39
|
+
* @type {CommissionConfigurationDto}
|
|
40
|
+
* @memberof AccountNameshiftCommissionItemDto
|
|
41
|
+
*/
|
|
42
|
+
config: CommissionConfigurationDto | null;
|
|
43
|
+
/**
|
|
44
|
+
* Start date of the commission period
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof AccountNameshiftCommissionItemDto
|
|
47
|
+
*/
|
|
48
|
+
dateStart: Date;
|
|
49
|
+
/**
|
|
50
|
+
* End date of the commission period, or null if ongoing
|
|
51
|
+
* @type {Date}
|
|
52
|
+
* @memberof AccountNameshiftCommissionItemDto
|
|
53
|
+
*/
|
|
54
|
+
dateEnd: Date | null;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @export
|
|
58
|
+
*/
|
|
59
|
+
export declare const AccountNameshiftCommissionItemDtoSubtypeEnum: {
|
|
60
|
+
readonly POINTING: "pointing";
|
|
61
|
+
readonly NOT_POINTING: "not_pointing";
|
|
62
|
+
readonly MANUAL_LEAD: "manual_lead";
|
|
63
|
+
readonly AUCTION: "auction";
|
|
64
|
+
};
|
|
65
|
+
export type AccountNameshiftCommissionItemDtoSubtypeEnum = typeof AccountNameshiftCommissionItemDtoSubtypeEnum[keyof typeof AccountNameshiftCommissionItemDtoSubtypeEnum];
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the AccountNameshiftCommissionItemDto interface.
|
|
68
|
+
*/
|
|
69
|
+
export declare function instanceOfAccountNameshiftCommissionItemDto(value: object): value is AccountNameshiftCommissionItemDto;
|
|
70
|
+
export declare function AccountNameshiftCommissionItemDtoFromJSON(json: any): AccountNameshiftCommissionItemDto;
|
|
71
|
+
export declare function AccountNameshiftCommissionItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountNameshiftCommissionItemDto;
|
|
72
|
+
export declare function AccountNameshiftCommissionItemDtoToJSON(json: any): AccountNameshiftCommissionItemDto;
|
|
73
|
+
export declare function AccountNameshiftCommissionItemDtoToJSONTyped(value?: AccountNameshiftCommissionItemDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,82 @@
|
|
|
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.AccountNameshiftCommissionItemDtoSubtypeEnum = void 0;
|
|
17
|
+
exports.instanceOfAccountNameshiftCommissionItemDto = instanceOfAccountNameshiftCommissionItemDto;
|
|
18
|
+
exports.AccountNameshiftCommissionItemDtoFromJSON = AccountNameshiftCommissionItemDtoFromJSON;
|
|
19
|
+
exports.AccountNameshiftCommissionItemDtoFromJSONTyped = AccountNameshiftCommissionItemDtoFromJSONTyped;
|
|
20
|
+
exports.AccountNameshiftCommissionItemDtoToJSON = AccountNameshiftCommissionItemDtoToJSON;
|
|
21
|
+
exports.AccountNameshiftCommissionItemDtoToJSONTyped = AccountNameshiftCommissionItemDtoToJSONTyped;
|
|
22
|
+
var CommissionConfigurationDto_1 = require("./CommissionConfigurationDto");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AccountNameshiftCommissionItemDtoSubtypeEnum = {
|
|
27
|
+
POINTING: 'pointing',
|
|
28
|
+
NOT_POINTING: 'not_pointing',
|
|
29
|
+
MANUAL_LEAD: 'manual_lead',
|
|
30
|
+
AUCTION: 'auction'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the AccountNameshiftCommissionItemDto interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfAccountNameshiftCommissionItemDto(value) {
|
|
36
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('subtype' in value) || value['subtype'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('config' in value) || value['config'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('dateStart' in value) || value['dateStart'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('dateEnd' in value) || value['dateEnd'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
function AccountNameshiftCommissionItemDtoFromJSON(json) {
|
|
51
|
+
return AccountNameshiftCommissionItemDtoFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function AccountNameshiftCommissionItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': json['id'],
|
|
59
|
+
'subtype': json['subtype'],
|
|
60
|
+
'label': json['label'],
|
|
61
|
+
'config': (0, CommissionConfigurationDto_1.CommissionConfigurationDtoFromJSON)(json['config']),
|
|
62
|
+
'dateStart': (new Date(json['dateStart'])),
|
|
63
|
+
'dateEnd': (json['dateEnd'] == null ? null : new Date(json['dateEnd'])),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function AccountNameshiftCommissionItemDtoToJSON(json) {
|
|
67
|
+
return AccountNameshiftCommissionItemDtoToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
function AccountNameshiftCommissionItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
70
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'id': value['id'],
|
|
76
|
+
'subtype': value['subtype'],
|
|
77
|
+
'label': value['label'],
|
|
78
|
+
'config': (0, CommissionConfigurationDto_1.CommissionConfigurationDtoToJSON)(value['config']),
|
|
79
|
+
'dateStart': ((value['dateStart']).toISOString()),
|
|
80
|
+
'dateEnd': (value['dateEnd'] == null ? null : value['dateEnd'].toISOString()),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
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 { CommissionReasonConfigDto } from './CommissionReasonConfigDto';
|
|
13
|
+
import type { CommissionPercentageRangeDto } from './CommissionPercentageRangeDto';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AccountNameshiftCommissionReasonDto
|
|
18
|
+
*/
|
|
19
|
+
export interface AccountNameshiftCommissionReasonDto {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof AccountNameshiftCommissionReasonDto
|
|
24
|
+
*/
|
|
25
|
+
commissionId?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof AccountNameshiftCommissionReasonDto
|
|
30
|
+
*/
|
|
31
|
+
text?: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof AccountNameshiftCommissionReasonDto
|
|
36
|
+
*/
|
|
37
|
+
type?: AccountNameshiftCommissionReasonDtoTypeEnum;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof AccountNameshiftCommissionReasonDto
|
|
42
|
+
*/
|
|
43
|
+
subtype?: AccountNameshiftCommissionReasonDtoSubtypeEnum;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof AccountNameshiftCommissionReasonDto
|
|
48
|
+
*/
|
|
49
|
+
label?: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {CommissionReasonConfigDto}
|
|
53
|
+
* @memberof AccountNameshiftCommissionReasonDto
|
|
54
|
+
*/
|
|
55
|
+
config?: CommissionReasonConfigDto | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof AccountNameshiftCommissionReasonDto
|
|
60
|
+
*/
|
|
61
|
+
dateStart?: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof AccountNameshiftCommissionReasonDto
|
|
66
|
+
*/
|
|
67
|
+
dateEnd?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {number}
|
|
71
|
+
* @memberof AccountNameshiftCommissionReasonDto
|
|
72
|
+
*/
|
|
73
|
+
selectedValue?: number;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {CommissionPercentageRangeDto}
|
|
77
|
+
* @memberof AccountNameshiftCommissionReasonDto
|
|
78
|
+
*/
|
|
79
|
+
selectedTier?: CommissionPercentageRangeDto | null;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {number}
|
|
83
|
+
* @memberof AccountNameshiftCommissionReasonDto
|
|
84
|
+
*/
|
|
85
|
+
factorCountResult?: number | null;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* @export
|
|
89
|
+
*/
|
|
90
|
+
export declare const AccountNameshiftCommissionReasonDtoTypeEnum: {
|
|
91
|
+
readonly NAMESHIFT_COMMISSIONS: "nameshift_commissions";
|
|
92
|
+
readonly AFFILIATE_COMMISSIONS: "affiliate_commissions";
|
|
93
|
+
};
|
|
94
|
+
export type AccountNameshiftCommissionReasonDtoTypeEnum = typeof AccountNameshiftCommissionReasonDtoTypeEnum[keyof typeof AccountNameshiftCommissionReasonDtoTypeEnum];
|
|
95
|
+
/**
|
|
96
|
+
* @export
|
|
97
|
+
*/
|
|
98
|
+
export declare const AccountNameshiftCommissionReasonDtoSubtypeEnum: {
|
|
99
|
+
readonly POINTING: "pointing";
|
|
100
|
+
readonly NOT_POINTING: "not_pointing";
|
|
101
|
+
readonly MANUAL_LEAD: "manual_lead";
|
|
102
|
+
readonly AUCTION: "auction";
|
|
103
|
+
};
|
|
104
|
+
export type AccountNameshiftCommissionReasonDtoSubtypeEnum = typeof AccountNameshiftCommissionReasonDtoSubtypeEnum[keyof typeof AccountNameshiftCommissionReasonDtoSubtypeEnum];
|
|
105
|
+
/**
|
|
106
|
+
* Check if a given object implements the AccountNameshiftCommissionReasonDto interface.
|
|
107
|
+
*/
|
|
108
|
+
export declare function instanceOfAccountNameshiftCommissionReasonDto(value: object): value is AccountNameshiftCommissionReasonDto;
|
|
109
|
+
export declare function AccountNameshiftCommissionReasonDtoFromJSON(json: any): AccountNameshiftCommissionReasonDto;
|
|
110
|
+
export declare function AccountNameshiftCommissionReasonDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountNameshiftCommissionReasonDto;
|
|
111
|
+
export declare function AccountNameshiftCommissionReasonDtoToJSON(json: any): AccountNameshiftCommissionReasonDto;
|
|
112
|
+
export declare function AccountNameshiftCommissionReasonDtoToJSONTyped(value?: AccountNameshiftCommissionReasonDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,88 @@
|
|
|
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.AccountNameshiftCommissionReasonDtoSubtypeEnum = exports.AccountNameshiftCommissionReasonDtoTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfAccountNameshiftCommissionReasonDto = instanceOfAccountNameshiftCommissionReasonDto;
|
|
18
|
+
exports.AccountNameshiftCommissionReasonDtoFromJSON = AccountNameshiftCommissionReasonDtoFromJSON;
|
|
19
|
+
exports.AccountNameshiftCommissionReasonDtoFromJSONTyped = AccountNameshiftCommissionReasonDtoFromJSONTyped;
|
|
20
|
+
exports.AccountNameshiftCommissionReasonDtoToJSON = AccountNameshiftCommissionReasonDtoToJSON;
|
|
21
|
+
exports.AccountNameshiftCommissionReasonDtoToJSONTyped = AccountNameshiftCommissionReasonDtoToJSONTyped;
|
|
22
|
+
var CommissionReasonConfigDto_1 = require("./CommissionReasonConfigDto");
|
|
23
|
+
var CommissionPercentageRangeDto_1 = require("./CommissionPercentageRangeDto");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.AccountNameshiftCommissionReasonDtoTypeEnum = {
|
|
28
|
+
NAMESHIFT_COMMISSIONS: 'nameshift_commissions',
|
|
29
|
+
AFFILIATE_COMMISSIONS: 'affiliate_commissions'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
exports.AccountNameshiftCommissionReasonDtoSubtypeEnum = {
|
|
35
|
+
POINTING: 'pointing',
|
|
36
|
+
NOT_POINTING: 'not_pointing',
|
|
37
|
+
MANUAL_LEAD: 'manual_lead',
|
|
38
|
+
AUCTION: 'auction'
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the AccountNameshiftCommissionReasonDto interface.
|
|
42
|
+
*/
|
|
43
|
+
function instanceOfAccountNameshiftCommissionReasonDto(value) {
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
function AccountNameshiftCommissionReasonDtoFromJSON(json) {
|
|
47
|
+
return AccountNameshiftCommissionReasonDtoFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function AccountNameshiftCommissionReasonDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'commissionId': json['commissionId'] == null ? undefined : json['commissionId'],
|
|
55
|
+
'text': json['text'] == null ? undefined : json['text'],
|
|
56
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
57
|
+
'subtype': json['subtype'] == null ? undefined : json['subtype'],
|
|
58
|
+
'label': json['label'] == null ? undefined : json['label'],
|
|
59
|
+
'config': json['config'] == null ? undefined : (0, CommissionReasonConfigDto_1.CommissionReasonConfigDtoFromJSON)(json['config']),
|
|
60
|
+
'dateStart': json['dateStart'] == null ? undefined : json['dateStart'],
|
|
61
|
+
'dateEnd': json['dateEnd'] == null ? undefined : json['dateEnd'],
|
|
62
|
+
'selectedValue': json['selectedValue'] == null ? undefined : json['selectedValue'],
|
|
63
|
+
'selectedTier': json['selectedTier'] == null ? undefined : (0, CommissionPercentageRangeDto_1.CommissionPercentageRangeDtoFromJSON)(json['selectedTier']),
|
|
64
|
+
'factorCountResult': json['factorCountResult'] == null ? undefined : json['factorCountResult'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function AccountNameshiftCommissionReasonDtoToJSON(json) {
|
|
68
|
+
return AccountNameshiftCommissionReasonDtoToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
function AccountNameshiftCommissionReasonDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
71
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
'commissionId': value['commissionId'],
|
|
77
|
+
'text': value['text'],
|
|
78
|
+
'type': value['type'],
|
|
79
|
+
'subtype': value['subtype'],
|
|
80
|
+
'label': value['label'],
|
|
81
|
+
'config': (0, CommissionReasonConfigDto_1.CommissionReasonConfigDtoToJSON)(value['config']),
|
|
82
|
+
'dateStart': value['dateStart'],
|
|
83
|
+
'dateEnd': value['dateEnd'],
|
|
84
|
+
'selectedValue': value['selectedValue'],
|
|
85
|
+
'selectedTier': (0, CommissionPercentageRangeDto_1.CommissionPercentageRangeDtoToJSON)(value['selectedTier']),
|
|
86
|
+
'factorCountResult': value['factorCountResult'],
|
|
87
|
+
};
|
|
88
|
+
}
|