@randock/nameshift-api-client 0.0.367 → 0.0.368
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 +28 -1
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +34 -1
- package/dist/apis/AdminApi.js +160 -0
- package/dist/models/AccountNameshiftCommissionBySubtypeDto.d.ts +55 -0
- package/dist/models/AccountNameshiftCommissionBySubtypeDto.js +70 -0
- package/dist/models/AccountNameshiftCommissionByTypeDto.d.ts +33 -0
- package/dist/models/AccountNameshiftCommissionByTypeDto.js +52 -0
- package/dist/models/AdminListAccountDto.d.ts +137 -0
- package/dist/models/{IntersectionListAccountDtoWithAccountCommissionDto.js → AdminListAccountDto.js} +17 -25
- package/dist/models/BulkCommissionActionsInput.d.ts +33 -0
- package/dist/models/BulkCommissionActionsInput.js +52 -0
- package/dist/models/BulkCommissionActionsInputActionsInner.d.ts +29 -0
- package/dist/models/BulkCommissionActionsInputActionsInner.js +58 -0
- package/dist/models/CommissionAccountDto.d.ts +44 -0
- package/dist/models/CommissionAccountDto.js +59 -0
- package/dist/models/CommissionAction.d.ts +26 -0
- package/dist/models/CommissionAction.js +52 -0
- package/dist/models/CommissionAddUpdateActionInput.d.ts +40 -0
- package/dist/models/CommissionAddUpdateActionInput.js +57 -0
- package/dist/models/CommissionConfigurationDto.d.ts +33 -0
- package/dist/models/CommissionConfigurationDto.js +52 -0
- package/dist/models/CommissionConfigurationDtoPayload.d.ts +27 -0
- package/dist/models/CommissionConfigurationDtoPayload.js +54 -0
- package/dist/models/CommissionConfigurationInput.d.ts +39 -0
- package/dist/models/CommissionConfigurationInput.js +56 -0
- package/dist/models/CommissionDeleteActionInput.d.ts +40 -0
- package/dist/models/CommissionDeleteActionInput.js +57 -0
- package/dist/models/CommissionDto.d.ts +112 -0
- package/dist/models/CommissionDto.js +110 -0
- package/dist/models/CommissionFactor.d.ts +25 -0
- package/dist/models/CommissionFactor.js +51 -0
- package/dist/models/CommissionListDto.d.ts +33 -0
- package/dist/models/CommissionListDto.js +52 -0
- package/dist/models/CommissionPayloadIdInput.d.ts +32 -0
- package/dist/models/CommissionPayloadIdInput.js +51 -0
- package/dist/models/CommissionPayloadInput.d.ts +99 -0
- package/dist/models/CommissionPayloadInput.js +101 -0
- package/dist/models/CommissionPercentageRangeDto.d.ts +44 -0
- package/dist/models/CommissionPercentageRangeDto.js +59 -0
- package/dist/models/CommissionPercentageRangeInput.d.ts +44 -0
- package/dist/models/CommissionPercentageRangeInput.js +59 -0
- package/dist/models/CommissionReasonConfigDto.d.ts +47 -0
- package/dist/models/CommissionReasonConfigDto.js +64 -0
- package/dist/models/CommissionReasonConfigDtoPayload.d.ts +27 -0
- package/dist/models/CommissionReasonConfigDtoPayload.js +54 -0
- package/dist/models/CommissionReasonDto.d.ts +112 -0
- package/dist/models/CommissionReasonDto.js +88 -0
- package/dist/models/FixedCommissionPayloadDto.d.ts +39 -0
- package/dist/models/FixedCommissionPayloadDto.js +56 -0
- package/dist/models/FixedCommissionPayloadInput.d.ts +32 -0
- package/dist/models/FixedCommissionPayloadInput.js +51 -0
- package/dist/models/FixedCommissionReasonPayloadDto.d.ts +39 -0
- package/dist/models/FixedCommissionReasonPayloadDto.js +56 -0
- package/dist/models/ListAccounts200Response.d.ts +3 -3
- package/dist/models/ListAccounts200Response.js +3 -3
- package/dist/models/SalesCountCommissionPayloadDto.d.ts +40 -0
- package/dist/models/SalesCountCommissionPayloadDto.js +57 -0
- package/dist/models/SalesCountCommissionPayloadInput.d.ts +33 -0
- package/dist/models/SalesCountCommissionPayloadInput.js +52 -0
- package/dist/models/SalesCountCommissionReasonPayloadDto.d.ts +40 -0
- package/dist/models/SalesCountCommissionReasonPayloadDto.js +57 -0
- package/dist/models/index.d.ts +28 -1
- package/dist/models/index.js +28 -1
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +143 -0
- package/src/models/AccountNameshiftCommissionBySubtypeDto.ts +105 -0
- package/src/models/AccountNameshiftCommissionByTypeDto.ts +74 -0
- package/src/models/{IntersectionListAccountDtoWithAccountCommissionDto.ts → AdminListAccountDto.ts} +33 -51
- package/src/models/BulkCommissionActionsInput.ts +74 -0
- package/src/models/BulkCommissionActionsInputActionsInner.ts +77 -0
- package/src/models/CommissionAccountDto.ts +84 -0
- package/src/models/CommissionAction.ts +54 -0
- package/src/models/CommissionAddUpdateActionInput.ts +92 -0
- package/src/models/CommissionConfigurationDto.ts +74 -0
- package/src/models/CommissionConfigurationDtoPayload.ts +73 -0
- package/src/models/CommissionConfigurationInput.ts +85 -0
- package/src/models/CommissionDeleteActionInput.ts +92 -0
- package/src/models/CommissionDto.ts +193 -0
- package/src/models/CommissionFactor.ts +53 -0
- package/src/models/CommissionListDto.ts +74 -0
- package/src/models/CommissionPayloadIdInput.ts +66 -0
- package/src/models/CommissionPayloadInput.ts +168 -0
- package/src/models/CommissionPercentageRangeDto.ts +84 -0
- package/src/models/CommissionPercentageRangeInput.ts +84 -0
- package/src/models/CommissionReasonConfigDto.ts +94 -0
- package/src/models/CommissionReasonConfigDtoPayload.ts +73 -0
- package/src/models/CommissionReasonDto.ts +182 -0
- package/src/models/FixedCommissionPayloadDto.ts +85 -0
- package/src/models/FixedCommissionPayloadInput.ts +66 -0
- package/src/models/FixedCommissionReasonPayloadDto.ts +85 -0
- package/src/models/ListAccounts200Response.ts +10 -10
- package/src/models/SalesCountCommissionPayloadDto.ts +92 -0
- package/src/models/SalesCountCommissionPayloadInput.ts +74 -0
- package/src/models/SalesCountCommissionReasonPayloadDto.ts +92 -0
- package/src/models/index.ts +28 -1
- package/dist/models/IntersectionListAccountDtoWithAccountCommissionDto.d.ts +0 -149
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { CommissionReasonDto } from './CommissionReasonDto';
|
|
17
|
+
import {
|
|
18
|
+
CommissionReasonDtoFromJSON,
|
|
19
|
+
CommissionReasonDtoFromJSONTyped,
|
|
20
|
+
CommissionReasonDtoToJSON,
|
|
21
|
+
CommissionReasonDtoToJSONTyped,
|
|
22
|
+
} from './CommissionReasonDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AccountNameshiftCommissionBySubtypeDto
|
|
28
|
+
*/
|
|
29
|
+
export interface AccountNameshiftCommissionBySubtypeDto {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AccountNameshiftCommissionBySubtypeDto
|
|
34
|
+
*/
|
|
35
|
+
subtype: AccountNameshiftCommissionBySubtypeDtoSubtypeEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AccountNameshiftCommissionBySubtypeDto
|
|
40
|
+
*/
|
|
41
|
+
percentage: number | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {CommissionReasonDto}
|
|
45
|
+
* @memberof AccountNameshiftCommissionBySubtypeDto
|
|
46
|
+
*/
|
|
47
|
+
reason: CommissionReasonDto | null;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @export
|
|
53
|
+
*/
|
|
54
|
+
export const AccountNameshiftCommissionBySubtypeDtoSubtypeEnum = {
|
|
55
|
+
POINTING: 'pointing',
|
|
56
|
+
NOT_POINTING: 'not_pointing',
|
|
57
|
+
MANUAL_LEAD: 'manual_lead',
|
|
58
|
+
AUCTION: 'auction'
|
|
59
|
+
} as const;
|
|
60
|
+
export type AccountNameshiftCommissionBySubtypeDtoSubtypeEnum = typeof AccountNameshiftCommissionBySubtypeDtoSubtypeEnum[keyof typeof AccountNameshiftCommissionBySubtypeDtoSubtypeEnum];
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the AccountNameshiftCommissionBySubtypeDto interface.
|
|
65
|
+
*/
|
|
66
|
+
export function instanceOfAccountNameshiftCommissionBySubtypeDto(value: object): value is AccountNameshiftCommissionBySubtypeDto {
|
|
67
|
+
if (!('subtype' in value) || value['subtype'] === undefined) return false;
|
|
68
|
+
if (!('percentage' in value) || value['percentage'] === undefined) return false;
|
|
69
|
+
if (!('reason' in value) || value['reason'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function AccountNameshiftCommissionBySubtypeDtoFromJSON(json: any): AccountNameshiftCommissionBySubtypeDto {
|
|
74
|
+
return AccountNameshiftCommissionBySubtypeDtoFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function AccountNameshiftCommissionBySubtypeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountNameshiftCommissionBySubtypeDto {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'subtype': json['subtype'],
|
|
84
|
+
'percentage': json['percentage'],
|
|
85
|
+
'reason': CommissionReasonDtoFromJSON(json['reason']),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function AccountNameshiftCommissionBySubtypeDtoToJSON(json: any): AccountNameshiftCommissionBySubtypeDto {
|
|
90
|
+
return AccountNameshiftCommissionBySubtypeDtoToJSONTyped(json, false);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function AccountNameshiftCommissionBySubtypeDtoToJSONTyped(value?: AccountNameshiftCommissionBySubtypeDto | null, ignoreDiscriminator: boolean = false): any {
|
|
94
|
+
if (value == null) {
|
|
95
|
+
return value;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'subtype': value['subtype'],
|
|
101
|
+
'percentage': value['percentage'],
|
|
102
|
+
'reason': CommissionReasonDtoToJSON(value['reason']),
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { AccountNameshiftCommissionBySubtypeDto } from './AccountNameshiftCommissionBySubtypeDto';
|
|
17
|
+
import {
|
|
18
|
+
AccountNameshiftCommissionBySubtypeDtoFromJSON,
|
|
19
|
+
AccountNameshiftCommissionBySubtypeDtoFromJSONTyped,
|
|
20
|
+
AccountNameshiftCommissionBySubtypeDtoToJSON,
|
|
21
|
+
AccountNameshiftCommissionBySubtypeDtoToJSONTyped,
|
|
22
|
+
} from './AccountNameshiftCommissionBySubtypeDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AccountNameshiftCommissionByTypeDto
|
|
28
|
+
*/
|
|
29
|
+
export interface AccountNameshiftCommissionByTypeDto {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<AccountNameshiftCommissionBySubtypeDto>}
|
|
33
|
+
* @memberof AccountNameshiftCommissionByTypeDto
|
|
34
|
+
*/
|
|
35
|
+
commissions: Array<AccountNameshiftCommissionBySubtypeDto>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AccountNameshiftCommissionByTypeDto interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfAccountNameshiftCommissionByTypeDto(value: object): value is AccountNameshiftCommissionByTypeDto {
|
|
42
|
+
if (!('commissions' in value) || value['commissions'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function AccountNameshiftCommissionByTypeDtoFromJSON(json: any): AccountNameshiftCommissionByTypeDto {
|
|
47
|
+
return AccountNameshiftCommissionByTypeDtoFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function AccountNameshiftCommissionByTypeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountNameshiftCommissionByTypeDto {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'commissions': ((json['commissions'] as Array<any>).map(AccountNameshiftCommissionBySubtypeDtoFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function AccountNameshiftCommissionByTypeDtoToJSON(json: any): AccountNameshiftCommissionByTypeDto {
|
|
61
|
+
return AccountNameshiftCommissionByTypeDtoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function AccountNameshiftCommissionByTypeDtoToJSONTyped(value?: AccountNameshiftCommissionByTypeDto | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'commissions': ((value['commissions'] as Array<any>).map(AccountNameshiftCommissionBySubtypeDtoToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
package/src/models/{IntersectionListAccountDtoWithAccountCommissionDto.ts → AdminListAccountDto.ts}
RENAMED
|
@@ -31,141 +31,129 @@ import {
|
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @export
|
|
34
|
-
* @interface
|
|
34
|
+
* @interface AdminListAccountDto
|
|
35
35
|
*/
|
|
36
|
-
export interface
|
|
36
|
+
export interface AdminListAccountDto {
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {string}
|
|
40
|
-
* @memberof
|
|
40
|
+
* @memberof AdminListAccountDto
|
|
41
41
|
*/
|
|
42
42
|
id: string;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {string}
|
|
46
|
-
* @memberof
|
|
46
|
+
* @memberof AdminListAccountDto
|
|
47
47
|
*/
|
|
48
48
|
alias: string | null;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {boolean}
|
|
52
|
-
* @memberof
|
|
52
|
+
* @memberof AdminListAccountDto
|
|
53
53
|
*/
|
|
54
54
|
aliasVerified: boolean;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @type {string}
|
|
58
|
-
* @memberof
|
|
58
|
+
* @memberof AdminListAccountDto
|
|
59
59
|
*/
|
|
60
|
-
onboardingProvider:
|
|
60
|
+
onboardingProvider: AdminListAccountDtoOnboardingProviderEnum;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {string}
|
|
64
|
-
* @memberof
|
|
64
|
+
* @memberof AdminListAccountDto
|
|
65
65
|
*/
|
|
66
|
-
onboardingStatus:
|
|
66
|
+
onboardingStatus: AdminListAccountDtoOnboardingStatusEnum;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {string}
|
|
70
|
-
* @memberof
|
|
70
|
+
* @memberof AdminListAccountDto
|
|
71
71
|
*/
|
|
72
|
-
payoutProvider:
|
|
72
|
+
payoutProvider: AdminListAccountDtoPayoutProviderEnum;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {string}
|
|
76
|
-
* @memberof
|
|
76
|
+
* @memberof AdminListAccountDto
|
|
77
77
|
*/
|
|
78
78
|
affiliateId: string | null;
|
|
79
79
|
/**
|
|
80
80
|
*
|
|
81
81
|
* @type {string}
|
|
82
|
-
* @memberof
|
|
82
|
+
* @memberof AdminListAccountDto
|
|
83
83
|
*/
|
|
84
84
|
identifier: string;
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
87
|
* @type {Date}
|
|
88
|
-
* @memberof
|
|
88
|
+
* @memberof AdminListAccountDto
|
|
89
89
|
*/
|
|
90
90
|
createdAt: Date;
|
|
91
91
|
/**
|
|
92
92
|
*
|
|
93
93
|
* @type {string}
|
|
94
|
-
* @memberof
|
|
94
|
+
* @memberof AdminListAccountDto
|
|
95
95
|
*/
|
|
96
96
|
name: string | null;
|
|
97
97
|
/**
|
|
98
98
|
*
|
|
99
99
|
* @type {string}
|
|
100
|
-
* @memberof
|
|
100
|
+
* @memberof AdminListAccountDto
|
|
101
101
|
*/
|
|
102
102
|
type: string | null;
|
|
103
103
|
/**
|
|
104
104
|
*
|
|
105
105
|
* @type {ListAccountMetricsDto}
|
|
106
|
-
* @memberof
|
|
106
|
+
* @memberof AdminListAccountDto
|
|
107
107
|
*/
|
|
108
108
|
metrics: ListAccountMetricsDto;
|
|
109
109
|
/**
|
|
110
110
|
*
|
|
111
111
|
* @type {Date}
|
|
112
|
-
* @memberof
|
|
112
|
+
* @memberof AdminListAccountDto
|
|
113
113
|
*/
|
|
114
114
|
lastOnline: Date;
|
|
115
115
|
/**
|
|
116
116
|
*
|
|
117
117
|
* @type {Array<ListAccountUserDto>}
|
|
118
|
-
* @memberof
|
|
118
|
+
* @memberof AdminListAccountDto
|
|
119
119
|
*/
|
|
120
120
|
users: Array<ListAccountUserDto>;
|
|
121
|
-
/**
|
|
122
|
-
*
|
|
123
|
-
* @type {number}
|
|
124
|
-
* @memberof IntersectionListAccountDtoWithAccountCommissionDto
|
|
125
|
-
*/
|
|
126
|
-
defaultCommissionPercentage: number;
|
|
127
|
-
/**
|
|
128
|
-
*
|
|
129
|
-
* @type {number}
|
|
130
|
-
* @memberof IntersectionListAccountDtoWithAccountCommissionDto
|
|
131
|
-
*/
|
|
132
|
-
commissionPercentage: number;
|
|
133
121
|
}
|
|
134
122
|
|
|
135
123
|
|
|
136
124
|
/**
|
|
137
125
|
* @export
|
|
138
126
|
*/
|
|
139
|
-
export const
|
|
127
|
+
export const AdminListAccountDtoOnboardingProviderEnum = {
|
|
140
128
|
STRIPE: 'stripe',
|
|
141
129
|
SUMSUB: 'sumsub'
|
|
142
130
|
} as const;
|
|
143
|
-
export type
|
|
131
|
+
export type AdminListAccountDtoOnboardingProviderEnum = typeof AdminListAccountDtoOnboardingProviderEnum[keyof typeof AdminListAccountDtoOnboardingProviderEnum];
|
|
144
132
|
|
|
145
133
|
/**
|
|
146
134
|
* @export
|
|
147
135
|
*/
|
|
148
|
-
export const
|
|
136
|
+
export const AdminListAccountDtoOnboardingStatusEnum = {
|
|
149
137
|
PENDING: 'pending',
|
|
150
138
|
ACTIVE: 'active',
|
|
151
139
|
REJECTED: 'rejected'
|
|
152
140
|
} as const;
|
|
153
|
-
export type
|
|
141
|
+
export type AdminListAccountDtoOnboardingStatusEnum = typeof AdminListAccountDtoOnboardingStatusEnum[keyof typeof AdminListAccountDtoOnboardingStatusEnum];
|
|
154
142
|
|
|
155
143
|
/**
|
|
156
144
|
* @export
|
|
157
145
|
*/
|
|
158
|
-
export const
|
|
146
|
+
export const AdminListAccountDtoPayoutProviderEnum = {
|
|
159
147
|
STRIPE: 'stripe',
|
|
160
148
|
BANK_ACCOUNT: 'bank_account'
|
|
161
149
|
} as const;
|
|
162
|
-
export type
|
|
150
|
+
export type AdminListAccountDtoPayoutProviderEnum = typeof AdminListAccountDtoPayoutProviderEnum[keyof typeof AdminListAccountDtoPayoutProviderEnum];
|
|
163
151
|
|
|
164
152
|
|
|
165
153
|
/**
|
|
166
|
-
* Check if a given object implements the
|
|
154
|
+
* Check if a given object implements the AdminListAccountDto interface.
|
|
167
155
|
*/
|
|
168
|
-
export function
|
|
156
|
+
export function instanceOfAdminListAccountDto(value: object): value is AdminListAccountDto {
|
|
169
157
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
170
158
|
if (!('alias' in value) || value['alias'] === undefined) return false;
|
|
171
159
|
if (!('aliasVerified' in value) || value['aliasVerified'] === undefined) return false;
|
|
@@ -180,16 +168,14 @@ export function instanceOfIntersectionListAccountDtoWithAccountCommissionDto(val
|
|
|
180
168
|
if (!('metrics' in value) || value['metrics'] === undefined) return false;
|
|
181
169
|
if (!('lastOnline' in value) || value['lastOnline'] === undefined) return false;
|
|
182
170
|
if (!('users' in value) || value['users'] === undefined) return false;
|
|
183
|
-
if (!('defaultCommissionPercentage' in value) || value['defaultCommissionPercentage'] === undefined) return false;
|
|
184
|
-
if (!('commissionPercentage' in value) || value['commissionPercentage'] === undefined) return false;
|
|
185
171
|
return true;
|
|
186
172
|
}
|
|
187
173
|
|
|
188
|
-
export function
|
|
189
|
-
return
|
|
174
|
+
export function AdminListAccountDtoFromJSON(json: any): AdminListAccountDto {
|
|
175
|
+
return AdminListAccountDtoFromJSONTyped(json, false);
|
|
190
176
|
}
|
|
191
177
|
|
|
192
|
-
export function
|
|
178
|
+
export function AdminListAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminListAccountDto {
|
|
193
179
|
if (json == null) {
|
|
194
180
|
return json;
|
|
195
181
|
}
|
|
@@ -209,16 +195,14 @@ export function IntersectionListAccountDtoWithAccountCommissionDtoFromJSONTyped(
|
|
|
209
195
|
'metrics': ListAccountMetricsDtoFromJSON(json['metrics']),
|
|
210
196
|
'lastOnline': (new Date(json['lastOnline'])),
|
|
211
197
|
'users': ((json['users'] as Array<any>).map(ListAccountUserDtoFromJSON)),
|
|
212
|
-
'defaultCommissionPercentage': json['defaultCommissionPercentage'],
|
|
213
|
-
'commissionPercentage': json['commissionPercentage'],
|
|
214
198
|
};
|
|
215
199
|
}
|
|
216
200
|
|
|
217
|
-
export function
|
|
218
|
-
return
|
|
201
|
+
export function AdminListAccountDtoToJSON(json: any): AdminListAccountDto {
|
|
202
|
+
return AdminListAccountDtoToJSONTyped(json, false);
|
|
219
203
|
}
|
|
220
204
|
|
|
221
|
-
export function
|
|
205
|
+
export function AdminListAccountDtoToJSONTyped(value?: AdminListAccountDto | null, ignoreDiscriminator: boolean = false): any {
|
|
222
206
|
if (value == null) {
|
|
223
207
|
return value;
|
|
224
208
|
}
|
|
@@ -239,8 +223,6 @@ export function IntersectionListAccountDtoWithAccountCommissionDtoToJSONTyped(va
|
|
|
239
223
|
'metrics': ListAccountMetricsDtoToJSON(value['metrics']),
|
|
240
224
|
'lastOnline': ((value['lastOnline']).toISOString()),
|
|
241
225
|
'users': ((value['users'] as Array<any>).map(ListAccountUserDtoToJSON)),
|
|
242
|
-
'defaultCommissionPercentage': value['defaultCommissionPercentage'],
|
|
243
|
-
'commissionPercentage': value['commissionPercentage'],
|
|
244
226
|
};
|
|
245
227
|
}
|
|
246
228
|
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { BulkCommissionActionsInputActionsInner } from './BulkCommissionActionsInputActionsInner';
|
|
17
|
+
import {
|
|
18
|
+
BulkCommissionActionsInputActionsInnerFromJSON,
|
|
19
|
+
BulkCommissionActionsInputActionsInnerFromJSONTyped,
|
|
20
|
+
BulkCommissionActionsInputActionsInnerToJSON,
|
|
21
|
+
BulkCommissionActionsInputActionsInnerToJSONTyped,
|
|
22
|
+
} from './BulkCommissionActionsInputActionsInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface BulkCommissionActionsInput
|
|
28
|
+
*/
|
|
29
|
+
export interface BulkCommissionActionsInput {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<BulkCommissionActionsInputActionsInner>}
|
|
33
|
+
* @memberof BulkCommissionActionsInput
|
|
34
|
+
*/
|
|
35
|
+
actions: Array<BulkCommissionActionsInputActionsInner>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the BulkCommissionActionsInput interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfBulkCommissionActionsInput(value: object): value is BulkCommissionActionsInput {
|
|
42
|
+
if (!('actions' in value) || value['actions'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function BulkCommissionActionsInputFromJSON(json: any): BulkCommissionActionsInput {
|
|
47
|
+
return BulkCommissionActionsInputFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function BulkCommissionActionsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkCommissionActionsInput {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'actions': ((json['actions'] as Array<any>).map(BulkCommissionActionsInputActionsInnerFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function BulkCommissionActionsInputToJSON(json: any): BulkCommissionActionsInput {
|
|
61
|
+
return BulkCommissionActionsInputToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function BulkCommissionActionsInputToJSONTyped(value?: BulkCommissionActionsInput | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'actions': ((value['actions'] as Array<any>).map(BulkCommissionActionsInputActionsInnerToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import type { CommissionAddUpdateActionInput } from './CommissionAddUpdateActionInput';
|
|
16
|
+
import {
|
|
17
|
+
instanceOfCommissionAddUpdateActionInput,
|
|
18
|
+
CommissionAddUpdateActionInputFromJSON,
|
|
19
|
+
CommissionAddUpdateActionInputFromJSONTyped,
|
|
20
|
+
CommissionAddUpdateActionInputToJSON,
|
|
21
|
+
} from './CommissionAddUpdateActionInput';
|
|
22
|
+
import type { CommissionDeleteActionInput } from './CommissionDeleteActionInput';
|
|
23
|
+
import {
|
|
24
|
+
instanceOfCommissionDeleteActionInput,
|
|
25
|
+
CommissionDeleteActionInputFromJSON,
|
|
26
|
+
CommissionDeleteActionInputFromJSONTyped,
|
|
27
|
+
CommissionDeleteActionInputToJSON,
|
|
28
|
+
} from './CommissionDeleteActionInput';
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @type BulkCommissionActionsInputActionsInner
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export type BulkCommissionActionsInputActionsInner = { action: 'add' } & CommissionAddUpdateActionInput | { action: 'delete' } & CommissionDeleteActionInput | { action: 'update' } & CommissionAddUpdateActionInput;
|
|
36
|
+
|
|
37
|
+
export function BulkCommissionActionsInputActionsInnerFromJSON(json: any): BulkCommissionActionsInputActionsInner {
|
|
38
|
+
return BulkCommissionActionsInputActionsInnerFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function BulkCommissionActionsInputActionsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkCommissionActionsInputActionsInner {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
switch (json['action']) {
|
|
46
|
+
case 'add':
|
|
47
|
+
return Object.assign({}, CommissionAddUpdateActionInputFromJSONTyped(json, true), { action: 'add' } as const);
|
|
48
|
+
case 'delete':
|
|
49
|
+
return Object.assign({}, CommissionDeleteActionInputFromJSONTyped(json, true), { action: 'delete' } as const);
|
|
50
|
+
case 'update':
|
|
51
|
+
return Object.assign({}, CommissionAddUpdateActionInputFromJSONTyped(json, true), { action: 'update' } as const);
|
|
52
|
+
default:
|
|
53
|
+
throw new Error(`No variant of BulkCommissionActionsInputActionsInner exists with 'action=${json['action']}'`);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function BulkCommissionActionsInputActionsInnerToJSON(json: any): any {
|
|
58
|
+
return BulkCommissionActionsInputActionsInnerToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function BulkCommissionActionsInputActionsInnerToJSONTyped(value?: BulkCommissionActionsInputActionsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
switch (value['action']) {
|
|
66
|
+
case 'add':
|
|
67
|
+
return Object.assign({}, CommissionAddUpdateActionInputToJSON(value), { action: 'add' } as const);
|
|
68
|
+
case 'delete':
|
|
69
|
+
return Object.assign({}, CommissionDeleteActionInputToJSON(value), { action: 'delete' } as const);
|
|
70
|
+
case 'update':
|
|
71
|
+
return Object.assign({}, CommissionAddUpdateActionInputToJSON(value), { action: 'update' } as const);
|
|
72
|
+
default:
|
|
73
|
+
throw new Error(`No variant of BulkCommissionActionsInputActionsInner exists with 'action=${value['action']}'`);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
}
|
|
77
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CommissionAccountDto
|
|
20
|
+
*/
|
|
21
|
+
export interface CommissionAccountDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CommissionAccountDto
|
|
26
|
+
*/
|
|
27
|
+
id: string | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CommissionAccountDto
|
|
32
|
+
*/
|
|
33
|
+
identifier: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CommissionAccountDto
|
|
38
|
+
*/
|
|
39
|
+
name: string | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the CommissionAccountDto interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfCommissionAccountDto(value: object): value is CommissionAccountDto {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('identifier' in value) || value['identifier'] === undefined) return false;
|
|
48
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function CommissionAccountDtoFromJSON(json: any): CommissionAccountDto {
|
|
53
|
+
return CommissionAccountDtoFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function CommissionAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommissionAccountDto {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'identifier': json['identifier'],
|
|
64
|
+
'name': json['name'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function CommissionAccountDtoToJSON(json: any): CommissionAccountDto {
|
|
69
|
+
return CommissionAccountDtoToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function CommissionAccountDtoToJSONTyped(value?: CommissionAccountDto | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'identifier': value['identifier'],
|
|
81
|
+
'name': value['name'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const CommissionAction = {
|
|
21
|
+
ADD: 'add',
|
|
22
|
+
UPDATE: 'update',
|
|
23
|
+
DELETE: 'delete'
|
|
24
|
+
} as const;
|
|
25
|
+
export type CommissionAction = typeof CommissionAction[keyof typeof CommissionAction];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfCommissionAction(value: any): boolean {
|
|
29
|
+
for (const key in CommissionAction) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(CommissionAction, key)) {
|
|
31
|
+
if (CommissionAction[key as keyof typeof CommissionAction] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function CommissionActionFromJSON(json: any): CommissionAction {
|
|
40
|
+
return CommissionActionFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function CommissionActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommissionAction {
|
|
44
|
+
return json as CommissionAction;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function CommissionActionToJSON(value?: CommissionAction | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function CommissionActionToJSONTyped(value: any, ignoreDiscriminator: boolean): CommissionAction {
|
|
52
|
+
return value as CommissionAction;
|
|
53
|
+
}
|
|
54
|
+
|