@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,57 @@
|
|
|
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.instanceOfCommissionAddUpdateActionInput = instanceOfCommissionAddUpdateActionInput;
|
|
17
|
+
exports.CommissionAddUpdateActionInputFromJSON = CommissionAddUpdateActionInputFromJSON;
|
|
18
|
+
exports.CommissionAddUpdateActionInputFromJSONTyped = CommissionAddUpdateActionInputFromJSONTyped;
|
|
19
|
+
exports.CommissionAddUpdateActionInputToJSON = CommissionAddUpdateActionInputToJSON;
|
|
20
|
+
exports.CommissionAddUpdateActionInputToJSONTyped = CommissionAddUpdateActionInputToJSONTyped;
|
|
21
|
+
var CommissionAction_1 = require("./CommissionAction");
|
|
22
|
+
var CommissionPayloadInput_1 = require("./CommissionPayloadInput");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the CommissionAddUpdateActionInput interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfCommissionAddUpdateActionInput(value) {
|
|
27
|
+
if (!('action' in value) || value['action'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('payload' in value) || value['payload'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function CommissionAddUpdateActionInputFromJSON(json) {
|
|
34
|
+
return CommissionAddUpdateActionInputFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function CommissionAddUpdateActionInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'action': (0, CommissionAction_1.CommissionActionFromJSON)(json['action']),
|
|
42
|
+
'payload': (0, CommissionPayloadInput_1.CommissionPayloadInputFromJSON)(json['payload']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function CommissionAddUpdateActionInputToJSON(json) {
|
|
46
|
+
return CommissionAddUpdateActionInputToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function CommissionAddUpdateActionInputToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'action': (0, CommissionAction_1.CommissionActionToJSON)(value['action']),
|
|
55
|
+
'payload': (0, CommissionPayloadInput_1.CommissionPayloadInputToJSON)(value['payload']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { CommissionConfigurationDtoPayload } from './CommissionConfigurationDtoPayload';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CommissionConfigurationDto
|
|
17
|
+
*/
|
|
18
|
+
export interface CommissionConfigurationDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {CommissionConfigurationDtoPayload}
|
|
22
|
+
* @memberof CommissionConfigurationDto
|
|
23
|
+
*/
|
|
24
|
+
payload: CommissionConfigurationDtoPayload | null;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the CommissionConfigurationDto interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfCommissionConfigurationDto(value: object): value is CommissionConfigurationDto;
|
|
30
|
+
export declare function CommissionConfigurationDtoFromJSON(json: any): CommissionConfigurationDto;
|
|
31
|
+
export declare function CommissionConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommissionConfigurationDto;
|
|
32
|
+
export declare function CommissionConfigurationDtoToJSON(json: any): CommissionConfigurationDto;
|
|
33
|
+
export declare function CommissionConfigurationDtoToJSONTyped(value?: CommissionConfigurationDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCommissionConfigurationDto = instanceOfCommissionConfigurationDto;
|
|
17
|
+
exports.CommissionConfigurationDtoFromJSON = CommissionConfigurationDtoFromJSON;
|
|
18
|
+
exports.CommissionConfigurationDtoFromJSONTyped = CommissionConfigurationDtoFromJSONTyped;
|
|
19
|
+
exports.CommissionConfigurationDtoToJSON = CommissionConfigurationDtoToJSON;
|
|
20
|
+
exports.CommissionConfigurationDtoToJSONTyped = CommissionConfigurationDtoToJSONTyped;
|
|
21
|
+
var CommissionConfigurationDtoPayload_1 = require("./CommissionConfigurationDtoPayload");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CommissionConfigurationDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCommissionConfigurationDto(value) {
|
|
26
|
+
if (!('payload' in value) || value['payload'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function CommissionConfigurationDtoFromJSON(json) {
|
|
31
|
+
return CommissionConfigurationDtoFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function CommissionConfigurationDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'payload': (0, CommissionConfigurationDtoPayload_1.CommissionConfigurationDtoPayloadFromJSON)(json['payload']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function CommissionConfigurationDtoToJSON(json) {
|
|
42
|
+
return CommissionConfigurationDtoToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function CommissionConfigurationDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'payload': (0, CommissionConfigurationDtoPayload_1.CommissionConfigurationDtoPayloadToJSON)(value['payload']),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 { FixedCommissionPayloadDto } from './FixedCommissionPayloadDto';
|
|
13
|
+
import type { SalesCountCommissionPayloadDto } from './SalesCountCommissionPayloadDto';
|
|
14
|
+
/**
|
|
15
|
+
* @type CommissionConfigurationDtoPayload
|
|
16
|
+
* For FIXED factor: object with factor and value properties. For SALES_COUNT factor: object with factor and value array properties.
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export type CommissionConfigurationDtoPayload = {
|
|
20
|
+
factor: 'fixed';
|
|
21
|
+
} & FixedCommissionPayloadDto | {
|
|
22
|
+
factor: 'monthly_sales_count';
|
|
23
|
+
} & SalesCountCommissionPayloadDto;
|
|
24
|
+
export declare function CommissionConfigurationDtoPayloadFromJSON(json: any): CommissionConfigurationDtoPayload;
|
|
25
|
+
export declare function CommissionConfigurationDtoPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommissionConfigurationDtoPayload;
|
|
26
|
+
export declare function CommissionConfigurationDtoPayloadToJSON(json: any): any;
|
|
27
|
+
export declare function CommissionConfigurationDtoPayloadToJSONTyped(value?: CommissionConfigurationDtoPayload | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.CommissionConfigurationDtoPayloadFromJSON = CommissionConfigurationDtoPayloadFromJSON;
|
|
17
|
+
exports.CommissionConfigurationDtoPayloadFromJSONTyped = CommissionConfigurationDtoPayloadFromJSONTyped;
|
|
18
|
+
exports.CommissionConfigurationDtoPayloadToJSON = CommissionConfigurationDtoPayloadToJSON;
|
|
19
|
+
exports.CommissionConfigurationDtoPayloadToJSONTyped = CommissionConfigurationDtoPayloadToJSONTyped;
|
|
20
|
+
var FixedCommissionPayloadDto_1 = require("./FixedCommissionPayloadDto");
|
|
21
|
+
var SalesCountCommissionPayloadDto_1 = require("./SalesCountCommissionPayloadDto");
|
|
22
|
+
function CommissionConfigurationDtoPayloadFromJSON(json) {
|
|
23
|
+
return CommissionConfigurationDtoPayloadFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
function CommissionConfigurationDtoPayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
switch (json['factor']) {
|
|
30
|
+
case 'fixed':
|
|
31
|
+
return Object.assign({}, (0, FixedCommissionPayloadDto_1.FixedCommissionPayloadDtoFromJSONTyped)(json, true), { factor: 'fixed' });
|
|
32
|
+
case 'monthly_sales_count':
|
|
33
|
+
return Object.assign({}, (0, SalesCountCommissionPayloadDto_1.SalesCountCommissionPayloadDtoFromJSONTyped)(json, true), { factor: 'monthly_sales_count' });
|
|
34
|
+
default:
|
|
35
|
+
throw new Error("No variant of CommissionConfigurationDtoPayload exists with 'factor=".concat(json['factor'], "'"));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function CommissionConfigurationDtoPayloadToJSON(json) {
|
|
39
|
+
return CommissionConfigurationDtoPayloadToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function CommissionConfigurationDtoPayloadToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
switch (value['factor']) {
|
|
47
|
+
case 'fixed':
|
|
48
|
+
return Object.assign({}, (0, FixedCommissionPayloadDto_1.FixedCommissionPayloadDtoToJSON)(value), { factor: 'fixed' });
|
|
49
|
+
case 'monthly_sales_count':
|
|
50
|
+
return Object.assign({}, (0, SalesCountCommissionPayloadDto_1.SalesCountCommissionPayloadDtoToJSON)(value), { factor: 'monthly_sales_count' });
|
|
51
|
+
default:
|
|
52
|
+
throw new Error("No variant of CommissionConfigurationDtoPayload exists with 'factor=".concat(value['factor'], "'"));
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { CommissionFactor } from './CommissionFactor';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CommissionConfigurationInput
|
|
17
|
+
*/
|
|
18
|
+
export interface CommissionConfigurationInput {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {CommissionFactor}
|
|
22
|
+
* @memberof CommissionConfigurationInput
|
|
23
|
+
*/
|
|
24
|
+
factor: CommissionFactor;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {object}
|
|
28
|
+
* @memberof CommissionConfigurationInput
|
|
29
|
+
*/
|
|
30
|
+
payload: object;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the CommissionConfigurationInput interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfCommissionConfigurationInput(value: object): value is CommissionConfigurationInput;
|
|
36
|
+
export declare function CommissionConfigurationInputFromJSON(json: any): CommissionConfigurationInput;
|
|
37
|
+
export declare function CommissionConfigurationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommissionConfigurationInput;
|
|
38
|
+
export declare function CommissionConfigurationInputToJSON(json: any): CommissionConfigurationInput;
|
|
39
|
+
export declare function CommissionConfigurationInputToJSONTyped(value?: CommissionConfigurationInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.instanceOfCommissionConfigurationInput = instanceOfCommissionConfigurationInput;
|
|
17
|
+
exports.CommissionConfigurationInputFromJSON = CommissionConfigurationInputFromJSON;
|
|
18
|
+
exports.CommissionConfigurationInputFromJSONTyped = CommissionConfigurationInputFromJSONTyped;
|
|
19
|
+
exports.CommissionConfigurationInputToJSON = CommissionConfigurationInputToJSON;
|
|
20
|
+
exports.CommissionConfigurationInputToJSONTyped = CommissionConfigurationInputToJSONTyped;
|
|
21
|
+
var CommissionFactor_1 = require("./CommissionFactor");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CommissionConfigurationInput interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCommissionConfigurationInput(value) {
|
|
26
|
+
if (!('factor' in value) || value['factor'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('payload' in value) || value['payload'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function CommissionConfigurationInputFromJSON(json) {
|
|
33
|
+
return CommissionConfigurationInputFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function CommissionConfigurationInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'factor': (0, CommissionFactor_1.CommissionFactorFromJSON)(json['factor']),
|
|
41
|
+
'payload': json['payload'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function CommissionConfigurationInputToJSON(json) {
|
|
45
|
+
return CommissionConfigurationInputToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function CommissionConfigurationInputToJSONTyped(value, ignoreDiscriminator) {
|
|
48
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'factor': (0, CommissionFactor_1.CommissionFactorToJSON)(value['factor']),
|
|
54
|
+
'payload': value['payload'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { CommissionAction } from './CommissionAction';
|
|
13
|
+
import type { CommissionPayloadIdInput } from './CommissionPayloadIdInput';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CommissionDeleteActionInput
|
|
18
|
+
*/
|
|
19
|
+
export interface CommissionDeleteActionInput {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {CommissionAction}
|
|
23
|
+
* @memberof CommissionDeleteActionInput
|
|
24
|
+
*/
|
|
25
|
+
action: CommissionAction;
|
|
26
|
+
/**
|
|
27
|
+
* Commission ID for delete action
|
|
28
|
+
* @type {CommissionPayloadIdInput}
|
|
29
|
+
* @memberof CommissionDeleteActionInput
|
|
30
|
+
*/
|
|
31
|
+
payload: CommissionPayloadIdInput;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the CommissionDeleteActionInput interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfCommissionDeleteActionInput(value: object): value is CommissionDeleteActionInput;
|
|
37
|
+
export declare function CommissionDeleteActionInputFromJSON(json: any): CommissionDeleteActionInput;
|
|
38
|
+
export declare function CommissionDeleteActionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommissionDeleteActionInput;
|
|
39
|
+
export declare function CommissionDeleteActionInputToJSON(json: any): CommissionDeleteActionInput;
|
|
40
|
+
export declare function CommissionDeleteActionInputToJSONTyped(value?: CommissionDeleteActionInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfCommissionDeleteActionInput = instanceOfCommissionDeleteActionInput;
|
|
17
|
+
exports.CommissionDeleteActionInputFromJSON = CommissionDeleteActionInputFromJSON;
|
|
18
|
+
exports.CommissionDeleteActionInputFromJSONTyped = CommissionDeleteActionInputFromJSONTyped;
|
|
19
|
+
exports.CommissionDeleteActionInputToJSON = CommissionDeleteActionInputToJSON;
|
|
20
|
+
exports.CommissionDeleteActionInputToJSONTyped = CommissionDeleteActionInputToJSONTyped;
|
|
21
|
+
var CommissionAction_1 = require("./CommissionAction");
|
|
22
|
+
var CommissionPayloadIdInput_1 = require("./CommissionPayloadIdInput");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the CommissionDeleteActionInput interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfCommissionDeleteActionInput(value) {
|
|
27
|
+
if (!('action' in value) || value['action'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('payload' in value) || value['payload'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function CommissionDeleteActionInputFromJSON(json) {
|
|
34
|
+
return CommissionDeleteActionInputFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function CommissionDeleteActionInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'action': (0, CommissionAction_1.CommissionActionFromJSON)(json['action']),
|
|
42
|
+
'payload': (0, CommissionPayloadIdInput_1.CommissionPayloadIdInputFromJSON)(json['payload']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function CommissionDeleteActionInputToJSON(json) {
|
|
46
|
+
return CommissionDeleteActionInputToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function CommissionDeleteActionInputToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'action': (0, CommissionAction_1.CommissionActionToJSON)(value['action']),
|
|
55
|
+
'payload': (0, CommissionPayloadIdInput_1.CommissionPayloadIdInputToJSON)(value['payload']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -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 { CommissionAccountDto } from './CommissionAccountDto';
|
|
13
|
+
import type { CommissionConfigurationDto } from './CommissionConfigurationDto';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CommissionDto
|
|
18
|
+
*/
|
|
19
|
+
export interface CommissionDto {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof CommissionDto
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* Account information for this commission
|
|
28
|
+
* @type {CommissionAccountDto}
|
|
29
|
+
* @memberof CommissionDto
|
|
30
|
+
*/
|
|
31
|
+
account: CommissionAccountDto | null;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof CommissionDto
|
|
36
|
+
*/
|
|
37
|
+
type: CommissionDtoTypeEnum;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof CommissionDto
|
|
42
|
+
*/
|
|
43
|
+
subtype: CommissionDtoSubtypeEnum;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof CommissionDto
|
|
48
|
+
*/
|
|
49
|
+
label: string;
|
|
50
|
+
/**
|
|
51
|
+
* Commission configuration wrapping factor and payload
|
|
52
|
+
* @type {CommissionConfigurationDto}
|
|
53
|
+
* @memberof CommissionDto
|
|
54
|
+
*/
|
|
55
|
+
config: CommissionConfigurationDto | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Date}
|
|
59
|
+
* @memberof CommissionDto
|
|
60
|
+
*/
|
|
61
|
+
dateStart: Date;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Date}
|
|
65
|
+
* @memberof CommissionDto
|
|
66
|
+
*/
|
|
67
|
+
dateEnd: Date | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Array<string>}
|
|
71
|
+
* @memberof CommissionDto
|
|
72
|
+
*/
|
|
73
|
+
excludedAccountIds: Array<string>;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {Date}
|
|
77
|
+
* @memberof CommissionDto
|
|
78
|
+
*/
|
|
79
|
+
createdAt: Date;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {Date}
|
|
83
|
+
* @memberof CommissionDto
|
|
84
|
+
*/
|
|
85
|
+
updatedAt: Date;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* @export
|
|
89
|
+
*/
|
|
90
|
+
export declare const CommissionDtoTypeEnum: {
|
|
91
|
+
readonly NAMESHIFT_COMMISSIONS: "nameshift_commissions";
|
|
92
|
+
readonly AFFILIATE_COMMISSIONS: "affiliate_commissions";
|
|
93
|
+
};
|
|
94
|
+
export type CommissionDtoTypeEnum = typeof CommissionDtoTypeEnum[keyof typeof CommissionDtoTypeEnum];
|
|
95
|
+
/**
|
|
96
|
+
* @export
|
|
97
|
+
*/
|
|
98
|
+
export declare const CommissionDtoSubtypeEnum: {
|
|
99
|
+
readonly POINTING: "pointing";
|
|
100
|
+
readonly NOT_POINTING: "not_pointing";
|
|
101
|
+
readonly MANUAL_LEAD: "manual_lead";
|
|
102
|
+
readonly AUCTION: "auction";
|
|
103
|
+
};
|
|
104
|
+
export type CommissionDtoSubtypeEnum = typeof CommissionDtoSubtypeEnum[keyof typeof CommissionDtoSubtypeEnum];
|
|
105
|
+
/**
|
|
106
|
+
* Check if a given object implements the CommissionDto interface.
|
|
107
|
+
*/
|
|
108
|
+
export declare function instanceOfCommissionDto(value: object): value is CommissionDto;
|
|
109
|
+
export declare function CommissionDtoFromJSON(json: any): CommissionDto;
|
|
110
|
+
export declare function CommissionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommissionDto;
|
|
111
|
+
export declare function CommissionDtoToJSON(json: any): CommissionDto;
|
|
112
|
+
export declare function CommissionDtoToJSONTyped(value?: CommissionDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,110 @@
|
|
|
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.CommissionDtoSubtypeEnum = exports.CommissionDtoTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfCommissionDto = instanceOfCommissionDto;
|
|
18
|
+
exports.CommissionDtoFromJSON = CommissionDtoFromJSON;
|
|
19
|
+
exports.CommissionDtoFromJSONTyped = CommissionDtoFromJSONTyped;
|
|
20
|
+
exports.CommissionDtoToJSON = CommissionDtoToJSON;
|
|
21
|
+
exports.CommissionDtoToJSONTyped = CommissionDtoToJSONTyped;
|
|
22
|
+
var CommissionAccountDto_1 = require("./CommissionAccountDto");
|
|
23
|
+
var CommissionConfigurationDto_1 = require("./CommissionConfigurationDto");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.CommissionDtoTypeEnum = {
|
|
28
|
+
NAMESHIFT_COMMISSIONS: 'nameshift_commissions',
|
|
29
|
+
AFFILIATE_COMMISSIONS: 'affiliate_commissions'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
exports.CommissionDtoSubtypeEnum = {
|
|
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 CommissionDto interface.
|
|
42
|
+
*/
|
|
43
|
+
function instanceOfCommissionDto(value) {
|
|
44
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('account' in value) || value['account'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('subtype' in value) || value['subtype'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('config' in value) || value['config'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('dateStart' in value) || value['dateStart'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('dateEnd' in value) || value['dateEnd'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('excludedAccountIds' in value) || value['excludedAccountIds'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
65
|
+
return false;
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
function CommissionDtoFromJSON(json) {
|
|
69
|
+
return CommissionDtoFromJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
function CommissionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
'id': json['id'],
|
|
77
|
+
'account': (0, CommissionAccountDto_1.CommissionAccountDtoFromJSON)(json['account']),
|
|
78
|
+
'type': json['type'],
|
|
79
|
+
'subtype': json['subtype'],
|
|
80
|
+
'label': json['label'],
|
|
81
|
+
'config': (0, CommissionConfigurationDto_1.CommissionConfigurationDtoFromJSON)(json['config']),
|
|
82
|
+
'dateStart': (new Date(json['dateStart'])),
|
|
83
|
+
'dateEnd': (json['dateEnd'] == null ? null : new Date(json['dateEnd'])),
|
|
84
|
+
'excludedAccountIds': json['excludedAccountIds'],
|
|
85
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
86
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
function CommissionDtoToJSON(json) {
|
|
90
|
+
return CommissionDtoToJSONTyped(json, false);
|
|
91
|
+
}
|
|
92
|
+
function CommissionDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
93
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
94
|
+
if (value == null) {
|
|
95
|
+
return value;
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
'id': value['id'],
|
|
99
|
+
'account': (0, CommissionAccountDto_1.CommissionAccountDtoToJSON)(value['account']),
|
|
100
|
+
'type': value['type'],
|
|
101
|
+
'subtype': value['subtype'],
|
|
102
|
+
'label': value['label'],
|
|
103
|
+
'config': (0, CommissionConfigurationDto_1.CommissionConfigurationDtoToJSON)(value['config']),
|
|
104
|
+
'dateStart': ((value['dateStart']).toISOString()),
|
|
105
|
+
'dateEnd': (value['dateEnd'] == null ? null : value['dateEnd'].toISOString()),
|
|
106
|
+
'excludedAccountIds': value['excludedAccountIds'],
|
|
107
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
108
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
109
|
+
};
|
|
110
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const CommissionFactor: {
|
|
17
|
+
readonly FIXED: "fixed";
|
|
18
|
+
readonly MONTHLY_SALES_COUNT: "monthly_sales_count";
|
|
19
|
+
};
|
|
20
|
+
export type CommissionFactor = typeof CommissionFactor[keyof typeof CommissionFactor];
|
|
21
|
+
export declare function instanceOfCommissionFactor(value: any): boolean;
|
|
22
|
+
export declare function CommissionFactorFromJSON(json: any): CommissionFactor;
|
|
23
|
+
export declare function CommissionFactorFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommissionFactor;
|
|
24
|
+
export declare function CommissionFactorToJSON(value?: CommissionFactor | null): any;
|
|
25
|
+
export declare function CommissionFactorToJSONTyped(value: any, ignoreDiscriminator: boolean): CommissionFactor;
|