@randock/nameshift-api-client 0.0.328 → 0.0.330

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.
@@ -34,6 +34,7 @@ src/models/AccountAliasDto.ts
34
34
  src/models/AccountAliasInput.ts
35
35
  src/models/AccountBankAccountDto.ts
36
36
  src/models/AccountBankAccountDtoDetails.ts
37
+ src/models/AccountCommissionByDateRangeDto.ts
37
38
  src/models/AccountDto.ts
38
39
  src/models/AccountMetricsDto.ts
39
40
  src/models/AccountNotificationDto.ts
@@ -51,6 +52,7 @@ src/models/AccountSettingsLeaseToOwnConfigurationDto.ts
51
52
  src/models/AccountSettingsRentConfigurationDto.ts
52
53
  src/models/AccountSettingsSidnDto.ts
53
54
  src/models/AddressDto.ts
55
+ src/models/AdminAccountCommissionByDateRangeInput.ts
54
56
  src/models/AdminAccountLoginDto.ts
55
57
  src/models/AdminAccountSettingsAffiliateCommissionInput.ts
56
58
  src/models/AdminAccountSettingsAffiliateInput.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.328
1
+ ## @randock/nameshift-api-client@0.0.330
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @randock/nameshift-api-client@0.0.328 --save
39
+ npm install @randock/nameshift-api-client@0.0.330 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
- df57fbeef520635b30b876ec614113b8bd32383d5fd034b1e9259e68991c7aec248d505b5591944aeaade1ceee3546df
47
+ d2c9168b75090ca121bf54ba04445d451e5c0d6e9e4ffb0a2a5c30f585325a737be0226ef1b727faf92ed327fd667abe
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface AccountCommissionByDateRangeDto
16
+ */
17
+ export interface AccountCommissionByDateRangeDto {
18
+ /**
19
+ *
20
+ * @type {Date}
21
+ * @memberof AccountCommissionByDateRangeDto
22
+ */
23
+ start: Date;
24
+ /**
25
+ *
26
+ * @type {Date}
27
+ * @memberof AccountCommissionByDateRangeDto
28
+ */
29
+ end: Date | null;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof AccountCommissionByDateRangeDto
34
+ */
35
+ commissionPercentage: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the AccountCommissionByDateRangeDto interface.
39
+ */
40
+ export declare function instanceOfAccountCommissionByDateRangeDto(value: object): value is AccountCommissionByDateRangeDto;
41
+ export declare function AccountCommissionByDateRangeDtoFromJSON(json: any): AccountCommissionByDateRangeDto;
42
+ export declare function AccountCommissionByDateRangeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountCommissionByDateRangeDto;
43
+ export declare function AccountCommissionByDateRangeDtoToJSON(json: any): AccountCommissionByDateRangeDto;
44
+ export declare function AccountCommissionByDateRangeDtoToJSONTyped(value?: AccountCommissionByDateRangeDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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.instanceOfAccountCommissionByDateRangeDto = instanceOfAccountCommissionByDateRangeDto;
17
+ exports.AccountCommissionByDateRangeDtoFromJSON = AccountCommissionByDateRangeDtoFromJSON;
18
+ exports.AccountCommissionByDateRangeDtoFromJSONTyped = AccountCommissionByDateRangeDtoFromJSONTyped;
19
+ exports.AccountCommissionByDateRangeDtoToJSON = AccountCommissionByDateRangeDtoToJSON;
20
+ exports.AccountCommissionByDateRangeDtoToJSONTyped = AccountCommissionByDateRangeDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AccountCommissionByDateRangeDto interface.
23
+ */
24
+ function instanceOfAccountCommissionByDateRangeDto(value) {
25
+ if (!('start' in value) || value['start'] === undefined)
26
+ return false;
27
+ if (!('end' in value) || value['end'] === undefined)
28
+ return false;
29
+ if (!('commissionPercentage' in value) || value['commissionPercentage'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function AccountCommissionByDateRangeDtoFromJSON(json) {
34
+ return AccountCommissionByDateRangeDtoFromJSONTyped(json, false);
35
+ }
36
+ function AccountCommissionByDateRangeDtoFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'start': (new Date(json['start'])),
42
+ 'end': (json['end'] == null ? null : new Date(json['end'])),
43
+ 'commissionPercentage': json['commissionPercentage'],
44
+ };
45
+ }
46
+ function AccountCommissionByDateRangeDtoToJSON(json) {
47
+ return AccountCommissionByDateRangeDtoToJSONTyped(json, false);
48
+ }
49
+ function AccountCommissionByDateRangeDtoToJSONTyped(value, ignoreDiscriminator) {
50
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'start': ((value['start']).toISOString()),
56
+ 'end': (value['end'] == null ? null : value['end'].toISOString()),
57
+ 'commissionPercentage': value['commissionPercentage'],
58
+ };
59
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface AdminAccountCommissionByDateRangeInput
16
+ */
17
+ export interface AdminAccountCommissionByDateRangeInput {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AdminAccountCommissionByDateRangeInput
22
+ */
23
+ startDate: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AdminAccountCommissionByDateRangeInput
28
+ */
29
+ endDate?: string | null;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof AdminAccountCommissionByDateRangeInput
34
+ */
35
+ commissionPercentage: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the AdminAccountCommissionByDateRangeInput interface.
39
+ */
40
+ export declare function instanceOfAdminAccountCommissionByDateRangeInput(value: object): value is AdminAccountCommissionByDateRangeInput;
41
+ export declare function AdminAccountCommissionByDateRangeInputFromJSON(json: any): AdminAccountCommissionByDateRangeInput;
42
+ export declare function AdminAccountCommissionByDateRangeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminAccountCommissionByDateRangeInput;
43
+ export declare function AdminAccountCommissionByDateRangeInputToJSON(json: any): AdminAccountCommissionByDateRangeInput;
44
+ export declare function AdminAccountCommissionByDateRangeInputToJSONTyped(value?: AdminAccountCommissionByDateRangeInput | 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.instanceOfAdminAccountCommissionByDateRangeInput = instanceOfAdminAccountCommissionByDateRangeInput;
17
+ exports.AdminAccountCommissionByDateRangeInputFromJSON = AdminAccountCommissionByDateRangeInputFromJSON;
18
+ exports.AdminAccountCommissionByDateRangeInputFromJSONTyped = AdminAccountCommissionByDateRangeInputFromJSONTyped;
19
+ exports.AdminAccountCommissionByDateRangeInputToJSON = AdminAccountCommissionByDateRangeInputToJSON;
20
+ exports.AdminAccountCommissionByDateRangeInputToJSONTyped = AdminAccountCommissionByDateRangeInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AdminAccountCommissionByDateRangeInput interface.
23
+ */
24
+ function instanceOfAdminAccountCommissionByDateRangeInput(value) {
25
+ if (!('startDate' in value) || value['startDate'] === undefined)
26
+ return false;
27
+ if (!('commissionPercentage' in value) || value['commissionPercentage'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function AdminAccountCommissionByDateRangeInputFromJSON(json) {
32
+ return AdminAccountCommissionByDateRangeInputFromJSONTyped(json, false);
33
+ }
34
+ function AdminAccountCommissionByDateRangeInputFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'startDate': json['startDate'],
40
+ 'endDate': json['endDate'] == null ? undefined : json['endDate'],
41
+ 'commissionPercentage': json['commissionPercentage'],
42
+ };
43
+ }
44
+ function AdminAccountCommissionByDateRangeInputToJSON(json) {
45
+ return AdminAccountCommissionByDateRangeInputToJSONTyped(json, false);
46
+ }
47
+ function AdminAccountCommissionByDateRangeInputToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'startDate': value['startDate'],
54
+ 'endDate': value['endDate'],
55
+ 'commissionPercentage': value['commissionPercentage'],
56
+ };
57
+ }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { AdminAccountSettingsAffiliateInput } from './AdminAccountSettingsAffiliateInput';
13
+ import type { AdminAccountCommissionByDateRangeInput } from './AdminAccountCommissionByDateRangeInput';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -28,6 +29,18 @@ export interface AdminAccountSettingsInput {
28
29
  * @memberof AdminAccountSettingsInput
29
30
  */
30
31
  leaseToOwnKickBackPercentage?: number;
32
+ /**
33
+ *
34
+ * @type {number}
35
+ * @memberof AdminAccountSettingsInput
36
+ */
37
+ commissionPercentage?: number;
38
+ /**
39
+ *
40
+ * @type {Array<AdminAccountCommissionByDateRangeInput>}
41
+ * @memberof AdminAccountSettingsInput
42
+ */
43
+ commissionsByDateRange?: Array<AdminAccountCommissionByDateRangeInput>;
31
44
  /**
32
45
  *
33
46
  * @type {AdminAccountSettingsAffiliateInput}
@@ -19,6 +19,7 @@ exports.AdminAccountSettingsInputFromJSONTyped = AdminAccountSettingsInputFromJS
19
19
  exports.AdminAccountSettingsInputToJSON = AdminAccountSettingsInputToJSON;
20
20
  exports.AdminAccountSettingsInputToJSONTyped = AdminAccountSettingsInputToJSONTyped;
21
21
  var AdminAccountSettingsAffiliateInput_1 = require("./AdminAccountSettingsAffiliateInput");
22
+ var AdminAccountCommissionByDateRangeInput_1 = require("./AdminAccountCommissionByDateRangeInput");
22
23
  /**
23
24
  * Check if a given object implements the AdminAccountSettingsInput interface.
24
25
  */
@@ -35,6 +36,8 @@ function AdminAccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
35
36
  return {
36
37
  'automaticPayouts': json['automaticPayouts'] == null ? undefined : json['automaticPayouts'],
37
38
  'leaseToOwnKickBackPercentage': json['leaseToOwnKickBackPercentage'] == null ? undefined : json['leaseToOwnKickBackPercentage'],
39
+ 'commissionPercentage': json['commissionPercentage'] == null ? undefined : json['commissionPercentage'],
40
+ 'commissionsByDateRange': json['commissionsByDateRange'] == null ? undefined : (json['commissionsByDateRange'].map(AdminAccountCommissionByDateRangeInput_1.AdminAccountCommissionByDateRangeInputFromJSON)),
38
41
  'affiliate': json['affiliate'] == null ? undefined : (0, AdminAccountSettingsAffiliateInput_1.AdminAccountSettingsAffiliateInputFromJSON)(json['affiliate']),
39
42
  'domainAffiliate': json['domainAffiliate'] == null ? undefined : (0, AdminAccountSettingsAffiliateInput_1.AdminAccountSettingsAffiliateInputFromJSON)(json['domainAffiliate']),
40
43
  };
@@ -50,6 +53,8 @@ function AdminAccountSettingsInputToJSONTyped(value, ignoreDiscriminator) {
50
53
  return {
51
54
  'automaticPayouts': value['automaticPayouts'],
52
55
  'leaseToOwnKickBackPercentage': value['leaseToOwnKickBackPercentage'],
56
+ 'commissionPercentage': value['commissionPercentage'],
57
+ 'commissionsByDateRange': value['commissionsByDateRange'] == null ? undefined : (value['commissionsByDateRange'].map(AdminAccountCommissionByDateRangeInput_1.AdminAccountCommissionByDateRangeInputToJSON)),
53
58
  'affiliate': (0, AdminAccountSettingsAffiliateInput_1.AdminAccountSettingsAffiliateInputToJSON)(value['affiliate']),
54
59
  'domainAffiliate': (0, AdminAccountSettingsAffiliateInput_1.AdminAccountSettingsAffiliateInputToJSON)(value['domainAffiliate']),
55
60
  };
@@ -101,6 +101,12 @@ export interface IntersectionListAccountDtoWithAccountCommissionDto {
101
101
  * @memberof IntersectionListAccountDtoWithAccountCommissionDto
102
102
  */
103
103
  users: Array<ListAccountUserDto>;
104
+ /**
105
+ *
106
+ * @type {number}
107
+ * @memberof IntersectionListAccountDtoWithAccountCommissionDto
108
+ */
109
+ defaultCommissionPercentage: number;
104
110
  /**
105
111
  *
106
112
  * @type {number}
@@ -75,6 +75,8 @@ function instanceOfIntersectionListAccountDtoWithAccountCommissionDto(value) {
75
75
  return false;
76
76
  if (!('users' in value) || value['users'] === undefined)
77
77
  return false;
78
+ if (!('defaultCommissionPercentage' in value) || value['defaultCommissionPercentage'] === undefined)
79
+ return false;
78
80
  if (!('commissionPercentage' in value) || value['commissionPercentage'] === undefined)
79
81
  return false;
80
82
  return true;
@@ -101,6 +103,7 @@ function IntersectionListAccountDtoWithAccountCommissionDtoFromJSONTyped(json, i
101
103
  'metrics': (0, ListAccountMetricsDto_1.ListAccountMetricsDtoFromJSON)(json['metrics']),
102
104
  'lastOnline': (new Date(json['lastOnline'])),
103
105
  'users': (json['users'].map(ListAccountUserDto_1.ListAccountUserDtoFromJSON)),
106
+ 'defaultCommissionPercentage': json['defaultCommissionPercentage'],
104
107
  'commissionPercentage': json['commissionPercentage'],
105
108
  };
106
109
  }
@@ -127,6 +130,7 @@ function IntersectionListAccountDtoWithAccountCommissionDtoToJSONTyped(value, ig
127
130
  'metrics': (0, ListAccountMetricsDto_1.ListAccountMetricsDtoToJSON)(value['metrics']),
128
131
  'lastOnline': ((value['lastOnline']).toISOString()),
129
132
  'users': (value['users'].map(ListAccountUserDto_1.ListAccountUserDtoToJSON)),
133
+ 'defaultCommissionPercentage': value['defaultCommissionPercentage'],
130
134
  'commissionPercentage': value['commissionPercentage'],
131
135
  };
132
136
  }
@@ -57,6 +57,12 @@ export interface ListAccountMetricsDto {
57
57
  * @memberof ListAccountMetricsDto
58
58
  */
59
59
  referralsNumber: number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof ListAccountMetricsDto
64
+ */
65
+ pointingDomainsNumber: number;
60
66
  }
61
67
  /**
62
68
  * Check if a given object implements the ListAccountMetricsDto interface.
@@ -36,6 +36,8 @@ function instanceOfListAccountMetricsDto(value) {
36
36
  return false;
37
37
  if (!('referralsNumber' in value) || value['referralsNumber'] === undefined)
38
38
  return false;
39
+ if (!('pointingDomainsNumber' in value) || value['pointingDomainsNumber'] === undefined)
40
+ return false;
39
41
  return true;
40
42
  }
41
43
  function ListAccountMetricsDtoFromJSON(json) {
@@ -53,6 +55,7 @@ function ListAccountMetricsDtoFromJSONTyped(json, ignoreDiscriminator) {
53
55
  'tasksNumber': json['tasksNumber'],
54
56
  'soldDomainsNumber': json['soldDomainsNumber'],
55
57
  'referralsNumber': json['referralsNumber'],
58
+ 'pointingDomainsNumber': json['pointingDomainsNumber'],
56
59
  };
57
60
  }
58
61
  function ListAccountMetricsDtoToJSON(json) {
@@ -71,5 +74,6 @@ function ListAccountMetricsDtoToJSONTyped(value, ignoreDiscriminator) {
71
74
  'tasksNumber': value['tasksNumber'],
72
75
  'soldDomainsNumber': value['soldDomainsNumber'],
73
76
  'referralsNumber': value['referralsNumber'],
77
+ 'pointingDomainsNumber': value['pointingDomainsNumber'],
74
78
  };
75
79
  }
@@ -14,6 +14,7 @@ import type { AccountSettingsAffiliateDto } from './AccountSettingsAffiliateDto'
14
14
  import type { MoneyDto } from './MoneyDto';
15
15
  import type { AccountAliasDto } from './AccountAliasDto';
16
16
  import type { AccountSettingsLeaseToOwnConfigurationDto } from './AccountSettingsLeaseToOwnConfigurationDto';
17
+ import type { AccountCommissionByDateRangeDto } from './AccountCommissionByDateRangeDto';
17
18
  import type { TimeTableConfigurationDto } from './TimeTableConfigurationDto';
18
19
  import type { AccountSettingsRentConfigurationDto } from './AccountSettingsRentConfigurationDto';
19
20
  /**
@@ -136,6 +137,18 @@ export interface WithSettingsInner {
136
137
  * @memberof WithSettingsInner
137
138
  */
138
139
  transferCostPaymentMaxPercentage: number;
140
+ /**
141
+ *
142
+ * @type {number}
143
+ * @memberof WithSettingsInner
144
+ */
145
+ commissionPercentage: number;
146
+ /**
147
+ *
148
+ * @type {Array<AccountCommissionByDateRangeDto>}
149
+ * @memberof WithSettingsInner
150
+ */
151
+ commissionsByDateRange: Array<AccountCommissionByDateRangeDto>;
139
152
  }
140
153
  /**
141
154
  * Check if a given object implements the WithSettingsInner interface.
@@ -23,6 +23,7 @@ var AccountSettingsAffiliateDto_1 = require("./AccountSettingsAffiliateDto");
23
23
  var MoneyDto_1 = require("./MoneyDto");
24
24
  var AccountAliasDto_1 = require("./AccountAliasDto");
25
25
  var AccountSettingsLeaseToOwnConfigurationDto_1 = require("./AccountSettingsLeaseToOwnConfigurationDto");
26
+ var AccountCommissionByDateRangeDto_1 = require("./AccountCommissionByDateRangeDto");
26
27
  var TimeTableConfigurationDto_1 = require("./TimeTableConfigurationDto");
27
28
  var AccountSettingsRentConfigurationDto_1 = require("./AccountSettingsRentConfigurationDto");
28
29
  /**
@@ -67,6 +68,10 @@ function instanceOfWithSettingsInner(value) {
67
68
  return false;
68
69
  if (!('transferCostPaymentMaxPercentage' in value) || value['transferCostPaymentMaxPercentage'] === undefined)
69
70
  return false;
71
+ if (!('commissionPercentage' in value) || value['commissionPercentage'] === undefined)
72
+ return false;
73
+ if (!('commissionsByDateRange' in value) || value['commissionsByDateRange'] === undefined)
74
+ return false;
70
75
  return true;
71
76
  }
72
77
  function WithSettingsInnerFromJSON(json) {
@@ -96,6 +101,8 @@ function WithSettingsInnerFromJSONTyped(json, ignoreDiscriminator) {
96
101
  'affiliate': (0, AccountSettingsAffiliateDto_1.AccountSettingsAffiliateDtoFromJSON)(json['affiliate']),
97
102
  'domainAffiliate': (0, AccountSettingsAffiliateDto_1.AccountSettingsAffiliateDtoFromJSON)(json['domainAffiliate']),
98
103
  'transferCostPaymentMaxPercentage': json['transferCostPaymentMaxPercentage'],
104
+ 'commissionPercentage': json['commissionPercentage'],
105
+ 'commissionsByDateRange': (json['commissionsByDateRange'].map(AccountCommissionByDateRangeDto_1.AccountCommissionByDateRangeDtoFromJSON)),
99
106
  };
100
107
  }
101
108
  function WithSettingsInnerToJSON(json) {
@@ -126,5 +133,7 @@ function WithSettingsInnerToJSONTyped(value, ignoreDiscriminator) {
126
133
  'affiliate': (0, AccountSettingsAffiliateDto_1.AccountSettingsAffiliateDtoToJSON)(value['affiliate']),
127
134
  'domainAffiliate': (0, AccountSettingsAffiliateDto_1.AccountSettingsAffiliateDtoToJSON)(value['domainAffiliate']),
128
135
  'transferCostPaymentMaxPercentage': value['transferCostPaymentMaxPercentage'],
136
+ 'commissionPercentage': value['commissionPercentage'],
137
+ 'commissionsByDateRange': (value['commissionsByDateRange'].map(AccountCommissionByDateRangeDto_1.AccountCommissionByDateRangeDtoToJSON)),
129
138
  };
130
139
  }
@@ -2,6 +2,7 @@ export * from './AccountAliasDto';
2
2
  export * from './AccountAliasInput';
3
3
  export * from './AccountBankAccountDto';
4
4
  export * from './AccountBankAccountDtoDetails';
5
+ export * from './AccountCommissionByDateRangeDto';
5
6
  export * from './AccountDto';
6
7
  export * from './AccountMetricsDto';
7
8
  export * from './AccountNotificationDto';
@@ -19,6 +20,7 @@ export * from './AccountSettingsLeaseToOwnConfigurationDto';
19
20
  export * from './AccountSettingsRentConfigurationDto';
20
21
  export * from './AccountSettingsSidnDto';
21
22
  export * from './AddressDto';
23
+ export * from './AdminAccountCommissionByDateRangeInput';
22
24
  export * from './AdminAccountLoginDto';
23
25
  export * from './AdminAccountSettingsAffiliateCommissionInput';
24
26
  export * from './AdminAccountSettingsAffiliateInput';
@@ -20,6 +20,7 @@ __exportStar(require("./AccountAliasDto"), exports);
20
20
  __exportStar(require("./AccountAliasInput"), exports);
21
21
  __exportStar(require("./AccountBankAccountDto"), exports);
22
22
  __exportStar(require("./AccountBankAccountDtoDetails"), exports);
23
+ __exportStar(require("./AccountCommissionByDateRangeDto"), exports);
23
24
  __exportStar(require("./AccountDto"), exports);
24
25
  __exportStar(require("./AccountMetricsDto"), exports);
25
26
  __exportStar(require("./AccountNotificationDto"), exports);
@@ -37,6 +38,7 @@ __exportStar(require("./AccountSettingsLeaseToOwnConfigurationDto"), exports);
37
38
  __exportStar(require("./AccountSettingsRentConfigurationDto"), exports);
38
39
  __exportStar(require("./AccountSettingsSidnDto"), exports);
39
40
  __exportStar(require("./AddressDto"), exports);
41
+ __exportStar(require("./AdminAccountCommissionByDateRangeInput"), exports);
40
42
  __exportStar(require("./AdminAccountLoginDto"), exports);
41
43
  __exportStar(require("./AdminAccountSettingsAffiliateCommissionInput"), exports);
42
44
  __exportStar(require("./AdminAccountSettingsAffiliateInput"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.328",
3
+ "version": "0.0.330",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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 AccountCommissionByDateRangeDto
20
+ */
21
+ export interface AccountCommissionByDateRangeDto {
22
+ /**
23
+ *
24
+ * @type {Date}
25
+ * @memberof AccountCommissionByDateRangeDto
26
+ */
27
+ start: Date;
28
+ /**
29
+ *
30
+ * @type {Date}
31
+ * @memberof AccountCommissionByDateRangeDto
32
+ */
33
+ end: Date | null;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof AccountCommissionByDateRangeDto
38
+ */
39
+ commissionPercentage: number;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the AccountCommissionByDateRangeDto interface.
44
+ */
45
+ export function instanceOfAccountCommissionByDateRangeDto(value: object): value is AccountCommissionByDateRangeDto {
46
+ if (!('start' in value) || value['start'] === undefined) return false;
47
+ if (!('end' in value) || value['end'] === undefined) return false;
48
+ if (!('commissionPercentage' in value) || value['commissionPercentage'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function AccountCommissionByDateRangeDtoFromJSON(json: any): AccountCommissionByDateRangeDto {
53
+ return AccountCommissionByDateRangeDtoFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function AccountCommissionByDateRangeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountCommissionByDateRangeDto {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'start': (new Date(json['start'])),
63
+ 'end': (json['end'] == null ? null : new Date(json['end'])),
64
+ 'commissionPercentage': json['commissionPercentage'],
65
+ };
66
+ }
67
+
68
+ export function AccountCommissionByDateRangeDtoToJSON(json: any): AccountCommissionByDateRangeDto {
69
+ return AccountCommissionByDateRangeDtoToJSONTyped(json, false);
70
+ }
71
+
72
+ export function AccountCommissionByDateRangeDtoToJSONTyped(value?: AccountCommissionByDateRangeDto | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'start': ((value['start']).toISOString()),
80
+ 'end': (value['end'] == null ? null : (value['end'] as any).toISOString()),
81
+ 'commissionPercentage': value['commissionPercentage'],
82
+ };
83
+ }
84
+
@@ -0,0 +1,83 @@
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 AdminAccountCommissionByDateRangeInput
20
+ */
21
+ export interface AdminAccountCommissionByDateRangeInput {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AdminAccountCommissionByDateRangeInput
26
+ */
27
+ startDate: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AdminAccountCommissionByDateRangeInput
32
+ */
33
+ endDate?: string | null;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof AdminAccountCommissionByDateRangeInput
38
+ */
39
+ commissionPercentage: number;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the AdminAccountCommissionByDateRangeInput interface.
44
+ */
45
+ export function instanceOfAdminAccountCommissionByDateRangeInput(value: object): value is AdminAccountCommissionByDateRangeInput {
46
+ if (!('startDate' in value) || value['startDate'] === undefined) return false;
47
+ if (!('commissionPercentage' in value) || value['commissionPercentage'] === undefined) return false;
48
+ return true;
49
+ }
50
+
51
+ export function AdminAccountCommissionByDateRangeInputFromJSON(json: any): AdminAccountCommissionByDateRangeInput {
52
+ return AdminAccountCommissionByDateRangeInputFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function AdminAccountCommissionByDateRangeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminAccountCommissionByDateRangeInput {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'startDate': json['startDate'],
62
+ 'endDate': json['endDate'] == null ? undefined : json['endDate'],
63
+ 'commissionPercentage': json['commissionPercentage'],
64
+ };
65
+ }
66
+
67
+ export function AdminAccountCommissionByDateRangeInputToJSON(json: any): AdminAccountCommissionByDateRangeInput {
68
+ return AdminAccountCommissionByDateRangeInputToJSONTyped(json, false);
69
+ }
70
+
71
+ export function AdminAccountCommissionByDateRangeInputToJSONTyped(value?: AdminAccountCommissionByDateRangeInput | null, ignoreDiscriminator: boolean = false): any {
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+
76
+ return {
77
+
78
+ 'startDate': value['startDate'],
79
+ 'endDate': value['endDate'],
80
+ 'commissionPercentage': value['commissionPercentage'],
81
+ };
82
+ }
83
+
@@ -20,6 +20,13 @@ import {
20
20
  AdminAccountSettingsAffiliateInputToJSON,
21
21
  AdminAccountSettingsAffiliateInputToJSONTyped,
22
22
  } from './AdminAccountSettingsAffiliateInput';
23
+ import type { AdminAccountCommissionByDateRangeInput } from './AdminAccountCommissionByDateRangeInput';
24
+ import {
25
+ AdminAccountCommissionByDateRangeInputFromJSON,
26
+ AdminAccountCommissionByDateRangeInputFromJSONTyped,
27
+ AdminAccountCommissionByDateRangeInputToJSON,
28
+ AdminAccountCommissionByDateRangeInputToJSONTyped,
29
+ } from './AdminAccountCommissionByDateRangeInput';
23
30
 
24
31
  /**
25
32
  *
@@ -39,6 +46,18 @@ export interface AdminAccountSettingsInput {
39
46
  * @memberof AdminAccountSettingsInput
40
47
  */
41
48
  leaseToOwnKickBackPercentage?: number;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof AdminAccountSettingsInput
53
+ */
54
+ commissionPercentage?: number;
55
+ /**
56
+ *
57
+ * @type {Array<AdminAccountCommissionByDateRangeInput>}
58
+ * @memberof AdminAccountSettingsInput
59
+ */
60
+ commissionsByDateRange?: Array<AdminAccountCommissionByDateRangeInput>;
42
61
  /**
43
62
  *
44
63
  * @type {AdminAccountSettingsAffiliateInput}
@@ -72,6 +91,8 @@ export function AdminAccountSettingsInputFromJSONTyped(json: any, ignoreDiscrimi
72
91
 
73
92
  'automaticPayouts': json['automaticPayouts'] == null ? undefined : json['automaticPayouts'],
74
93
  'leaseToOwnKickBackPercentage': json['leaseToOwnKickBackPercentage'] == null ? undefined : json['leaseToOwnKickBackPercentage'],
94
+ 'commissionPercentage': json['commissionPercentage'] == null ? undefined : json['commissionPercentage'],
95
+ 'commissionsByDateRange': json['commissionsByDateRange'] == null ? undefined : ((json['commissionsByDateRange'] as Array<any>).map(AdminAccountCommissionByDateRangeInputFromJSON)),
75
96
  'affiliate': json['affiliate'] == null ? undefined : AdminAccountSettingsAffiliateInputFromJSON(json['affiliate']),
76
97
  'domainAffiliate': json['domainAffiliate'] == null ? undefined : AdminAccountSettingsAffiliateInputFromJSON(json['domainAffiliate']),
77
98
  };
@@ -90,6 +111,8 @@ export function AdminAccountSettingsInputToJSONTyped(value?: AdminAccountSetting
90
111
 
91
112
  'automaticPayouts': value['automaticPayouts'],
92
113
  'leaseToOwnKickBackPercentage': value['leaseToOwnKickBackPercentage'],
114
+ 'commissionPercentage': value['commissionPercentage'],
115
+ 'commissionsByDateRange': value['commissionsByDateRange'] == null ? undefined : ((value['commissionsByDateRange'] as Array<any>).map(AdminAccountCommissionByDateRangeInputToJSON)),
93
116
  'affiliate': AdminAccountSettingsAffiliateInputToJSON(value['affiliate']),
94
117
  'domainAffiliate': AdminAccountSettingsAffiliateInputToJSON(value['domainAffiliate']),
95
118
  };
@@ -118,6 +118,12 @@ export interface IntersectionListAccountDtoWithAccountCommissionDto {
118
118
  * @memberof IntersectionListAccountDtoWithAccountCommissionDto
119
119
  */
120
120
  users: Array<ListAccountUserDto>;
121
+ /**
122
+ *
123
+ * @type {number}
124
+ * @memberof IntersectionListAccountDtoWithAccountCommissionDto
125
+ */
126
+ defaultCommissionPercentage: number;
121
127
  /**
122
128
  *
123
129
  * @type {number}
@@ -174,6 +180,7 @@ export function instanceOfIntersectionListAccountDtoWithAccountCommissionDto(val
174
180
  if (!('metrics' in value) || value['metrics'] === undefined) return false;
175
181
  if (!('lastOnline' in value) || value['lastOnline'] === undefined) return false;
176
182
  if (!('users' in value) || value['users'] === undefined) return false;
183
+ if (!('defaultCommissionPercentage' in value) || value['defaultCommissionPercentage'] === undefined) return false;
177
184
  if (!('commissionPercentage' in value) || value['commissionPercentage'] === undefined) return false;
178
185
  return true;
179
186
  }
@@ -202,6 +209,7 @@ export function IntersectionListAccountDtoWithAccountCommissionDtoFromJSONTyped(
202
209
  'metrics': ListAccountMetricsDtoFromJSON(json['metrics']),
203
210
  'lastOnline': (new Date(json['lastOnline'])),
204
211
  'users': ((json['users'] as Array<any>).map(ListAccountUserDtoFromJSON)),
212
+ 'defaultCommissionPercentage': json['defaultCommissionPercentage'],
205
213
  'commissionPercentage': json['commissionPercentage'],
206
214
  };
207
215
  }
@@ -231,6 +239,7 @@ export function IntersectionListAccountDtoWithAccountCommissionDtoToJSONTyped(va
231
239
  'metrics': ListAccountMetricsDtoToJSON(value['metrics']),
232
240
  'lastOnline': ((value['lastOnline']).toISOString()),
233
241
  'users': ((value['users'] as Array<any>).map(ListAccountUserDtoToJSON)),
242
+ 'defaultCommissionPercentage': value['defaultCommissionPercentage'],
234
243
  'commissionPercentage': value['commissionPercentage'],
235
244
  };
236
245
  }
@@ -61,6 +61,12 @@ export interface ListAccountMetricsDto {
61
61
  * @memberof ListAccountMetricsDto
62
62
  */
63
63
  referralsNumber: number;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof ListAccountMetricsDto
68
+ */
69
+ pointingDomainsNumber: number;
64
70
  }
65
71
 
66
72
  /**
@@ -74,6 +80,7 @@ export function instanceOfListAccountMetricsDto(value: object): value is ListAcc
74
80
  if (!('tasksNumber' in value) || value['tasksNumber'] === undefined) return false;
75
81
  if (!('soldDomainsNumber' in value) || value['soldDomainsNumber'] === undefined) return false;
76
82
  if (!('referralsNumber' in value) || value['referralsNumber'] === undefined) return false;
83
+ if (!('pointingDomainsNumber' in value) || value['pointingDomainsNumber'] === undefined) return false;
77
84
  return true;
78
85
  }
79
86
 
@@ -94,6 +101,7 @@ export function ListAccountMetricsDtoFromJSONTyped(json: any, ignoreDiscriminato
94
101
  'tasksNumber': json['tasksNumber'],
95
102
  'soldDomainsNumber': json['soldDomainsNumber'],
96
103
  'referralsNumber': json['referralsNumber'],
104
+ 'pointingDomainsNumber': json['pointingDomainsNumber'],
97
105
  };
98
106
  }
99
107
 
@@ -115,6 +123,7 @@ export function ListAccountMetricsDtoToJSONTyped(value?: ListAccountMetricsDto |
115
123
  'tasksNumber': value['tasksNumber'],
116
124
  'soldDomainsNumber': value['soldDomainsNumber'],
117
125
  'referralsNumber': value['referralsNumber'],
126
+ 'pointingDomainsNumber': value['pointingDomainsNumber'],
118
127
  };
119
128
  }
120
129
 
@@ -48,6 +48,13 @@ import {
48
48
  AccountSettingsLeaseToOwnConfigurationDtoToJSON,
49
49
  AccountSettingsLeaseToOwnConfigurationDtoToJSONTyped,
50
50
  } from './AccountSettingsLeaseToOwnConfigurationDto';
51
+ import type { AccountCommissionByDateRangeDto } from './AccountCommissionByDateRangeDto';
52
+ import {
53
+ AccountCommissionByDateRangeDtoFromJSON,
54
+ AccountCommissionByDateRangeDtoFromJSONTyped,
55
+ AccountCommissionByDateRangeDtoToJSON,
56
+ AccountCommissionByDateRangeDtoToJSONTyped,
57
+ } from './AccountCommissionByDateRangeDto';
51
58
  import type { TimeTableConfigurationDto } from './TimeTableConfigurationDto';
52
59
  import {
53
60
  TimeTableConfigurationDtoFromJSON,
@@ -183,6 +190,18 @@ export interface WithSettingsInner {
183
190
  * @memberof WithSettingsInner
184
191
  */
185
192
  transferCostPaymentMaxPercentage: number;
193
+ /**
194
+ *
195
+ * @type {number}
196
+ * @memberof WithSettingsInner
197
+ */
198
+ commissionPercentage: number;
199
+ /**
200
+ *
201
+ * @type {Array<AccountCommissionByDateRangeDto>}
202
+ * @memberof WithSettingsInner
203
+ */
204
+ commissionsByDateRange: Array<AccountCommissionByDateRangeDto>;
186
205
  }
187
206
 
188
207
  /**
@@ -208,6 +227,8 @@ export function instanceOfWithSettingsInner(value: object): value is WithSetting
208
227
  if (!('affiliate' in value) || value['affiliate'] === undefined) return false;
209
228
  if (!('domainAffiliate' in value) || value['domainAffiliate'] === undefined) return false;
210
229
  if (!('transferCostPaymentMaxPercentage' in value) || value['transferCostPaymentMaxPercentage'] === undefined) return false;
230
+ if (!('commissionPercentage' in value) || value['commissionPercentage'] === undefined) return false;
231
+ if (!('commissionsByDateRange' in value) || value['commissionsByDateRange'] === undefined) return false;
211
232
  return true;
212
233
  }
213
234
 
@@ -240,6 +261,8 @@ export function WithSettingsInnerFromJSONTyped(json: any, ignoreDiscriminator: b
240
261
  'affiliate': AccountSettingsAffiliateDtoFromJSON(json['affiliate']),
241
262
  'domainAffiliate': AccountSettingsAffiliateDtoFromJSON(json['domainAffiliate']),
242
263
  'transferCostPaymentMaxPercentage': json['transferCostPaymentMaxPercentage'],
264
+ 'commissionPercentage': json['commissionPercentage'],
265
+ 'commissionsByDateRange': ((json['commissionsByDateRange'] as Array<any>).map(AccountCommissionByDateRangeDtoFromJSON)),
243
266
  };
244
267
  }
245
268
 
@@ -273,6 +296,8 @@ export function WithSettingsInnerToJSONTyped(value?: WithSettingsInner | null, i
273
296
  'affiliate': AccountSettingsAffiliateDtoToJSON(value['affiliate']),
274
297
  'domainAffiliate': AccountSettingsAffiliateDtoToJSON(value['domainAffiliate']),
275
298
  'transferCostPaymentMaxPercentage': value['transferCostPaymentMaxPercentage'],
299
+ 'commissionPercentage': value['commissionPercentage'],
300
+ 'commissionsByDateRange': ((value['commissionsByDateRange'] as Array<any>).map(AccountCommissionByDateRangeDtoToJSON)),
276
301
  };
277
302
  }
278
303
 
@@ -4,6 +4,7 @@ export * from './AccountAliasDto';
4
4
  export * from './AccountAliasInput';
5
5
  export * from './AccountBankAccountDto';
6
6
  export * from './AccountBankAccountDtoDetails';
7
+ export * from './AccountCommissionByDateRangeDto';
7
8
  export * from './AccountDto';
8
9
  export * from './AccountMetricsDto';
9
10
  export * from './AccountNotificationDto';
@@ -21,6 +22,7 @@ export * from './AccountSettingsLeaseToOwnConfigurationDto';
21
22
  export * from './AccountSettingsRentConfigurationDto';
22
23
  export * from './AccountSettingsSidnDto';
23
24
  export * from './AddressDto';
25
+ export * from './AdminAccountCommissionByDateRangeInput';
24
26
  export * from './AdminAccountLoginDto';
25
27
  export * from './AdminAccountSettingsAffiliateCommissionInput';
26
28
  export * from './AdminAccountSettingsAffiliateInput';