@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,92 @@
|
|
|
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 { CommissionAction } from './CommissionAction';
|
|
17
|
+
import {
|
|
18
|
+
CommissionActionFromJSON,
|
|
19
|
+
CommissionActionFromJSONTyped,
|
|
20
|
+
CommissionActionToJSON,
|
|
21
|
+
CommissionActionToJSONTyped,
|
|
22
|
+
} from './CommissionAction';
|
|
23
|
+
import type { CommissionPayloadInput } from './CommissionPayloadInput';
|
|
24
|
+
import {
|
|
25
|
+
CommissionPayloadInputFromJSON,
|
|
26
|
+
CommissionPayloadInputFromJSONTyped,
|
|
27
|
+
CommissionPayloadInputToJSON,
|
|
28
|
+
CommissionPayloadInputToJSONTyped,
|
|
29
|
+
} from './CommissionPayloadInput';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface CommissionAddUpdateActionInput
|
|
35
|
+
*/
|
|
36
|
+
export interface CommissionAddUpdateActionInput {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {CommissionAction}
|
|
40
|
+
* @memberof CommissionAddUpdateActionInput
|
|
41
|
+
*/
|
|
42
|
+
action: CommissionAction;
|
|
43
|
+
/**
|
|
44
|
+
* Commission data for add/update actions
|
|
45
|
+
* @type {CommissionPayloadInput}
|
|
46
|
+
* @memberof CommissionAddUpdateActionInput
|
|
47
|
+
*/
|
|
48
|
+
payload: CommissionPayloadInput;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the CommissionAddUpdateActionInput interface.
|
|
55
|
+
*/
|
|
56
|
+
export function instanceOfCommissionAddUpdateActionInput(value: object): value is CommissionAddUpdateActionInput {
|
|
57
|
+
if (!('action' in value) || value['action'] === undefined) return false;
|
|
58
|
+
if (!('payload' in value) || value['payload'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function CommissionAddUpdateActionInputFromJSON(json: any): CommissionAddUpdateActionInput {
|
|
63
|
+
return CommissionAddUpdateActionInputFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function CommissionAddUpdateActionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommissionAddUpdateActionInput {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'action': CommissionActionFromJSON(json['action']),
|
|
73
|
+
'payload': CommissionPayloadInputFromJSON(json['payload']),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function CommissionAddUpdateActionInputToJSON(json: any): CommissionAddUpdateActionInput {
|
|
78
|
+
return CommissionAddUpdateActionInputToJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function CommissionAddUpdateActionInputToJSONTyped(value?: CommissionAddUpdateActionInput | null, ignoreDiscriminator: boolean = false): any {
|
|
82
|
+
if (value == null) {
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'action': CommissionActionToJSON(value['action']),
|
|
89
|
+
'payload': CommissionPayloadInputToJSON(value['payload']),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -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 { CommissionConfigurationDtoPayload } from './CommissionConfigurationDtoPayload';
|
|
17
|
+
import {
|
|
18
|
+
CommissionConfigurationDtoPayloadFromJSON,
|
|
19
|
+
CommissionConfigurationDtoPayloadFromJSONTyped,
|
|
20
|
+
CommissionConfigurationDtoPayloadToJSON,
|
|
21
|
+
CommissionConfigurationDtoPayloadToJSONTyped,
|
|
22
|
+
} from './CommissionConfigurationDtoPayload';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CommissionConfigurationDto
|
|
28
|
+
*/
|
|
29
|
+
export interface CommissionConfigurationDto {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {CommissionConfigurationDtoPayload}
|
|
33
|
+
* @memberof CommissionConfigurationDto
|
|
34
|
+
*/
|
|
35
|
+
payload: CommissionConfigurationDtoPayload | null;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the CommissionConfigurationDto interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfCommissionConfigurationDto(value: object): value is CommissionConfigurationDto {
|
|
42
|
+
if (!('payload' in value) || value['payload'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function CommissionConfigurationDtoFromJSON(json: any): CommissionConfigurationDto {
|
|
47
|
+
return CommissionConfigurationDtoFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function CommissionConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommissionConfigurationDto {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'payload': CommissionConfigurationDtoPayloadFromJSON(json['payload']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function CommissionConfigurationDtoToJSON(json: any): CommissionConfigurationDto {
|
|
61
|
+
return CommissionConfigurationDtoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function CommissionConfigurationDtoToJSONTyped(value?: CommissionConfigurationDto | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'payload': CommissionConfigurationDtoPayloadToJSON(value['payload']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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 { FixedCommissionPayloadDto } from './FixedCommissionPayloadDto';
|
|
16
|
+
import {
|
|
17
|
+
instanceOfFixedCommissionPayloadDto,
|
|
18
|
+
FixedCommissionPayloadDtoFromJSON,
|
|
19
|
+
FixedCommissionPayloadDtoFromJSONTyped,
|
|
20
|
+
FixedCommissionPayloadDtoToJSON,
|
|
21
|
+
} from './FixedCommissionPayloadDto';
|
|
22
|
+
import type { SalesCountCommissionPayloadDto } from './SalesCountCommissionPayloadDto';
|
|
23
|
+
import {
|
|
24
|
+
instanceOfSalesCountCommissionPayloadDto,
|
|
25
|
+
SalesCountCommissionPayloadDtoFromJSON,
|
|
26
|
+
SalesCountCommissionPayloadDtoFromJSONTyped,
|
|
27
|
+
SalesCountCommissionPayloadDtoToJSON,
|
|
28
|
+
} from './SalesCountCommissionPayloadDto';
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @type CommissionConfigurationDtoPayload
|
|
32
|
+
* For FIXED factor: object with factor and value properties. For SALES_COUNT factor: object with factor and value array properties.
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export type CommissionConfigurationDtoPayload = { factor: 'fixed' } & FixedCommissionPayloadDto | { factor: 'monthly_sales_count' } & SalesCountCommissionPayloadDto;
|
|
36
|
+
|
|
37
|
+
export function CommissionConfigurationDtoPayloadFromJSON(json: any): CommissionConfigurationDtoPayload {
|
|
38
|
+
return CommissionConfigurationDtoPayloadFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function CommissionConfigurationDtoPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommissionConfigurationDtoPayload {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
switch (json['factor']) {
|
|
46
|
+
case 'fixed':
|
|
47
|
+
return Object.assign({}, FixedCommissionPayloadDtoFromJSONTyped(json, true), { factor: 'fixed' } as const);
|
|
48
|
+
case 'monthly_sales_count':
|
|
49
|
+
return Object.assign({}, SalesCountCommissionPayloadDtoFromJSONTyped(json, true), { factor: 'monthly_sales_count' } as const);
|
|
50
|
+
default:
|
|
51
|
+
throw new Error(`No variant of CommissionConfigurationDtoPayload exists with 'factor=${json['factor']}'`);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function CommissionConfigurationDtoPayloadToJSON(json: any): any {
|
|
56
|
+
return CommissionConfigurationDtoPayloadToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function CommissionConfigurationDtoPayloadToJSONTyped(value?: CommissionConfigurationDtoPayload | null, ignoreDiscriminator: boolean = false): any {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
switch (value['factor']) {
|
|
64
|
+
case 'fixed':
|
|
65
|
+
return Object.assign({}, FixedCommissionPayloadDtoToJSON(value), { factor: 'fixed' } as const);
|
|
66
|
+
case 'monthly_sales_count':
|
|
67
|
+
return Object.assign({}, SalesCountCommissionPayloadDtoToJSON(value), { factor: 'monthly_sales_count' } as const);
|
|
68
|
+
default:
|
|
69
|
+
throw new Error(`No variant of CommissionConfigurationDtoPayload exists with 'factor=${value['factor']}'`);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
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 { CommissionFactor } from './CommissionFactor';
|
|
17
|
+
import {
|
|
18
|
+
CommissionFactorFromJSON,
|
|
19
|
+
CommissionFactorFromJSONTyped,
|
|
20
|
+
CommissionFactorToJSON,
|
|
21
|
+
CommissionFactorToJSONTyped,
|
|
22
|
+
} from './CommissionFactor';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CommissionConfigurationInput
|
|
28
|
+
*/
|
|
29
|
+
export interface CommissionConfigurationInput {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {CommissionFactor}
|
|
33
|
+
* @memberof CommissionConfigurationInput
|
|
34
|
+
*/
|
|
35
|
+
factor: CommissionFactor;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {object}
|
|
39
|
+
* @memberof CommissionConfigurationInput
|
|
40
|
+
*/
|
|
41
|
+
payload: object;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the CommissionConfigurationInput interface.
|
|
48
|
+
*/
|
|
49
|
+
export function instanceOfCommissionConfigurationInput(value: object): value is CommissionConfigurationInput {
|
|
50
|
+
if (!('factor' in value) || value['factor'] === undefined) return false;
|
|
51
|
+
if (!('payload' in value) || value['payload'] === undefined) return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function CommissionConfigurationInputFromJSON(json: any): CommissionConfigurationInput {
|
|
56
|
+
return CommissionConfigurationInputFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function CommissionConfigurationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommissionConfigurationInput {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'factor': CommissionFactorFromJSON(json['factor']),
|
|
66
|
+
'payload': json['payload'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function CommissionConfigurationInputToJSON(json: any): CommissionConfigurationInput {
|
|
71
|
+
return CommissionConfigurationInputToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function CommissionConfigurationInputToJSONTyped(value?: CommissionConfigurationInput | null, ignoreDiscriminator: boolean = false): any {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'factor': CommissionFactorToJSON(value['factor']),
|
|
82
|
+
'payload': value['payload'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
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 { CommissionAction } from './CommissionAction';
|
|
17
|
+
import {
|
|
18
|
+
CommissionActionFromJSON,
|
|
19
|
+
CommissionActionFromJSONTyped,
|
|
20
|
+
CommissionActionToJSON,
|
|
21
|
+
CommissionActionToJSONTyped,
|
|
22
|
+
} from './CommissionAction';
|
|
23
|
+
import type { CommissionPayloadIdInput } from './CommissionPayloadIdInput';
|
|
24
|
+
import {
|
|
25
|
+
CommissionPayloadIdInputFromJSON,
|
|
26
|
+
CommissionPayloadIdInputFromJSONTyped,
|
|
27
|
+
CommissionPayloadIdInputToJSON,
|
|
28
|
+
CommissionPayloadIdInputToJSONTyped,
|
|
29
|
+
} from './CommissionPayloadIdInput';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface CommissionDeleteActionInput
|
|
35
|
+
*/
|
|
36
|
+
export interface CommissionDeleteActionInput {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {CommissionAction}
|
|
40
|
+
* @memberof CommissionDeleteActionInput
|
|
41
|
+
*/
|
|
42
|
+
action: CommissionAction;
|
|
43
|
+
/**
|
|
44
|
+
* Commission ID for delete action
|
|
45
|
+
* @type {CommissionPayloadIdInput}
|
|
46
|
+
* @memberof CommissionDeleteActionInput
|
|
47
|
+
*/
|
|
48
|
+
payload: CommissionPayloadIdInput;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the CommissionDeleteActionInput interface.
|
|
55
|
+
*/
|
|
56
|
+
export function instanceOfCommissionDeleteActionInput(value: object): value is CommissionDeleteActionInput {
|
|
57
|
+
if (!('action' in value) || value['action'] === undefined) return false;
|
|
58
|
+
if (!('payload' in value) || value['payload'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function CommissionDeleteActionInputFromJSON(json: any): CommissionDeleteActionInput {
|
|
63
|
+
return CommissionDeleteActionInputFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function CommissionDeleteActionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommissionDeleteActionInput {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'action': CommissionActionFromJSON(json['action']),
|
|
73
|
+
'payload': CommissionPayloadIdInputFromJSON(json['payload']),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function CommissionDeleteActionInputToJSON(json: any): CommissionDeleteActionInput {
|
|
78
|
+
return CommissionDeleteActionInputToJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function CommissionDeleteActionInputToJSONTyped(value?: CommissionDeleteActionInput | null, ignoreDiscriminator: boolean = false): any {
|
|
82
|
+
if (value == null) {
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'action': CommissionActionToJSON(value['action']),
|
|
89
|
+
'payload': CommissionPayloadIdInputToJSON(value['payload']),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,193 @@
|
|
|
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 { CommissionAccountDto } from './CommissionAccountDto';
|
|
17
|
+
import {
|
|
18
|
+
CommissionAccountDtoFromJSON,
|
|
19
|
+
CommissionAccountDtoFromJSONTyped,
|
|
20
|
+
CommissionAccountDtoToJSON,
|
|
21
|
+
CommissionAccountDtoToJSONTyped,
|
|
22
|
+
} from './CommissionAccountDto';
|
|
23
|
+
import type { CommissionConfigurationDto } from './CommissionConfigurationDto';
|
|
24
|
+
import {
|
|
25
|
+
CommissionConfigurationDtoFromJSON,
|
|
26
|
+
CommissionConfigurationDtoFromJSONTyped,
|
|
27
|
+
CommissionConfigurationDtoToJSON,
|
|
28
|
+
CommissionConfigurationDtoToJSONTyped,
|
|
29
|
+
} from './CommissionConfigurationDto';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface CommissionDto
|
|
35
|
+
*/
|
|
36
|
+
export interface CommissionDto {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CommissionDto
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* Account information for this commission
|
|
45
|
+
* @type {CommissionAccountDto}
|
|
46
|
+
* @memberof CommissionDto
|
|
47
|
+
*/
|
|
48
|
+
account: CommissionAccountDto | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof CommissionDto
|
|
53
|
+
*/
|
|
54
|
+
type: CommissionDtoTypeEnum;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof CommissionDto
|
|
59
|
+
*/
|
|
60
|
+
subtype: CommissionDtoSubtypeEnum;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof CommissionDto
|
|
65
|
+
*/
|
|
66
|
+
label: string;
|
|
67
|
+
/**
|
|
68
|
+
* Commission configuration wrapping factor and payload
|
|
69
|
+
* @type {CommissionConfigurationDto}
|
|
70
|
+
* @memberof CommissionDto
|
|
71
|
+
*/
|
|
72
|
+
config: CommissionConfigurationDto | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Date}
|
|
76
|
+
* @memberof CommissionDto
|
|
77
|
+
*/
|
|
78
|
+
dateStart: Date;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Date}
|
|
82
|
+
* @memberof CommissionDto
|
|
83
|
+
*/
|
|
84
|
+
dateEnd: Date | null;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {Array<string>}
|
|
88
|
+
* @memberof CommissionDto
|
|
89
|
+
*/
|
|
90
|
+
excludedAccountIds: Array<string>;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {Date}
|
|
94
|
+
* @memberof CommissionDto
|
|
95
|
+
*/
|
|
96
|
+
createdAt: Date;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {Date}
|
|
100
|
+
* @memberof CommissionDto
|
|
101
|
+
*/
|
|
102
|
+
updatedAt: Date;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @export
|
|
108
|
+
*/
|
|
109
|
+
export const CommissionDtoTypeEnum = {
|
|
110
|
+
NAMESHIFT_COMMISSIONS: 'nameshift_commissions',
|
|
111
|
+
AFFILIATE_COMMISSIONS: 'affiliate_commissions'
|
|
112
|
+
} as const;
|
|
113
|
+
export type CommissionDtoTypeEnum = typeof CommissionDtoTypeEnum[keyof typeof CommissionDtoTypeEnum];
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @export
|
|
117
|
+
*/
|
|
118
|
+
export const CommissionDtoSubtypeEnum = {
|
|
119
|
+
POINTING: 'pointing',
|
|
120
|
+
NOT_POINTING: 'not_pointing',
|
|
121
|
+
MANUAL_LEAD: 'manual_lead',
|
|
122
|
+
AUCTION: 'auction'
|
|
123
|
+
} as const;
|
|
124
|
+
export type CommissionDtoSubtypeEnum = typeof CommissionDtoSubtypeEnum[keyof typeof CommissionDtoSubtypeEnum];
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Check if a given object implements the CommissionDto interface.
|
|
129
|
+
*/
|
|
130
|
+
export function instanceOfCommissionDto(value: object): value is CommissionDto {
|
|
131
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
132
|
+
if (!('account' in value) || value['account'] === undefined) return false;
|
|
133
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
134
|
+
if (!('subtype' in value) || value['subtype'] === undefined) return false;
|
|
135
|
+
if (!('label' in value) || value['label'] === undefined) return false;
|
|
136
|
+
if (!('config' in value) || value['config'] === undefined) return false;
|
|
137
|
+
if (!('dateStart' in value) || value['dateStart'] === undefined) return false;
|
|
138
|
+
if (!('dateEnd' in value) || value['dateEnd'] === undefined) return false;
|
|
139
|
+
if (!('excludedAccountIds' in value) || value['excludedAccountIds'] === undefined) return false;
|
|
140
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
141
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
142
|
+
return true;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function CommissionDtoFromJSON(json: any): CommissionDto {
|
|
146
|
+
return CommissionDtoFromJSONTyped(json, false);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export function CommissionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommissionDto {
|
|
150
|
+
if (json == null) {
|
|
151
|
+
return json;
|
|
152
|
+
}
|
|
153
|
+
return {
|
|
154
|
+
|
|
155
|
+
'id': json['id'],
|
|
156
|
+
'account': CommissionAccountDtoFromJSON(json['account']),
|
|
157
|
+
'type': json['type'],
|
|
158
|
+
'subtype': json['subtype'],
|
|
159
|
+
'label': json['label'],
|
|
160
|
+
'config': CommissionConfigurationDtoFromJSON(json['config']),
|
|
161
|
+
'dateStart': (new Date(json['dateStart'])),
|
|
162
|
+
'dateEnd': (json['dateEnd'] == null ? null : new Date(json['dateEnd'])),
|
|
163
|
+
'excludedAccountIds': json['excludedAccountIds'],
|
|
164
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
165
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export function CommissionDtoToJSON(json: any): CommissionDto {
|
|
170
|
+
return CommissionDtoToJSONTyped(json, false);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export function CommissionDtoToJSONTyped(value?: CommissionDto | null, ignoreDiscriminator: boolean = false): any {
|
|
174
|
+
if (value == null) {
|
|
175
|
+
return value;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
return {
|
|
179
|
+
|
|
180
|
+
'id': value['id'],
|
|
181
|
+
'account': CommissionAccountDtoToJSON(value['account']),
|
|
182
|
+
'type': value['type'],
|
|
183
|
+
'subtype': value['subtype'],
|
|
184
|
+
'label': value['label'],
|
|
185
|
+
'config': CommissionConfigurationDtoToJSON(value['config']),
|
|
186
|
+
'dateStart': ((value['dateStart']).toISOString()),
|
|
187
|
+
'dateEnd': (value['dateEnd'] == null ? null : (value['dateEnd'] as any).toISOString()),
|
|
188
|
+
'excludedAccountIds': value['excludedAccountIds'],
|
|
189
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
190
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
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 CommissionFactor = {
|
|
21
|
+
FIXED: 'fixed',
|
|
22
|
+
MONTHLY_SALES_COUNT: 'monthly_sales_count'
|
|
23
|
+
} as const;
|
|
24
|
+
export type CommissionFactor = typeof CommissionFactor[keyof typeof CommissionFactor];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfCommissionFactor(value: any): boolean {
|
|
28
|
+
for (const key in CommissionFactor) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(CommissionFactor, key)) {
|
|
30
|
+
if (CommissionFactor[key as keyof typeof CommissionFactor] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function CommissionFactorFromJSON(json: any): CommissionFactor {
|
|
39
|
+
return CommissionFactorFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function CommissionFactorFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommissionFactor {
|
|
43
|
+
return json as CommissionFactor;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function CommissionFactorToJSON(value?: CommissionFactor | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function CommissionFactorToJSONTyped(value: any, ignoreDiscriminator: boolean): CommissionFactor {
|
|
51
|
+
return value as CommissionFactor;
|
|
52
|
+
}
|
|
53
|
+
|