@randock/nameshift-api-client 0.0.375 → 0.0.377

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AccountsApi.d.ts +9 -1
  4. package/dist/apis/AccountsApi.js +50 -0
  5. package/dist/models/AccountNameshiftCommissionBySubtypePercentagesDto.d.ts +51 -0
  6. package/dist/models/AccountNameshiftCommissionBySubtypePercentagesDto.js +64 -0
  7. package/dist/models/AccountNameshiftCommissionByTypeDto.d.ts +7 -0
  8. package/dist/models/AccountNameshiftCommissionByTypeDto.js +5 -0
  9. package/dist/models/AccountNameshiftCommissionItemDto.d.ts +73 -0
  10. package/dist/models/AccountNameshiftCommissionItemDto.js +82 -0
  11. package/dist/models/AccountNameshiftCommissionReasonDto.d.ts +112 -0
  12. package/dist/models/AccountNameshiftCommissionReasonDto.js +88 -0
  13. package/dist/models/AccountNameshiftCommissionSubtypeCurrentDto.d.ts +39 -0
  14. package/dist/models/AccountNameshiftCommissionSubtypeCurrentDto.js +56 -0
  15. package/dist/models/AdminListAccountDto.d.ts +13 -0
  16. package/dist/models/AdminListAccountDto.js +9 -0
  17. package/dist/models/CommissionReasonDto.d.ts +6 -0
  18. package/dist/models/CommissionReasonDto.js +2 -0
  19. package/dist/models/GetAccountNameshiftCommissionsResponseDto.d.ts +40 -0
  20. package/dist/models/GetAccountNameshiftCommissionsResponseDto.js +57 -0
  21. package/dist/models/ListAccountPortfolioSizeDto.d.ts +38 -0
  22. package/dist/models/ListAccountPortfolioSizeDto.js +55 -0
  23. package/dist/models/RegisterAccountInput.d.ts +13 -0
  24. package/dist/models/RegisterAccountInput.js +5 -0
  25. package/dist/models/RegisterAccountPortfolioSizeInput.d.ts +38 -0
  26. package/dist/models/RegisterAccountPortfolioSizeInput.js +53 -0
  27. package/dist/models/index.d.ts +7 -0
  28. package/dist/models/index.js +7 -0
  29. package/package.json +1 -1
  30. package/src/apis/AccountsApi.ts +37 -0
  31. package/src/models/AccountNameshiftCommissionBySubtypePercentagesDto.ts +101 -0
  32. package/src/models/AccountNameshiftCommissionByTypeDto.ts +16 -0
  33. package/src/models/AccountNameshiftCommissionItemDto.ts +132 -0
  34. package/src/models/AccountNameshiftCommissionReasonDto.ts +182 -0
  35. package/src/models/AccountNameshiftCommissionSubtypeCurrentDto.ts +83 -0
  36. package/src/models/AdminListAccountDto.ts +25 -0
  37. package/src/models/CommissionReasonDto.ts +8 -0
  38. package/src/models/GetAccountNameshiftCommissionsResponseDto.ts +90 -0
  39. package/src/models/ListAccountPortfolioSizeDto.ts +75 -0
  40. package/src/models/RegisterAccountInput.ts +24 -0
  41. package/src/models/RegisterAccountPortfolioSizeInput.ts +74 -0
  42. package/src/models/index.ts +7 -0
@@ -34,6 +34,12 @@ import {
34
34
  * @interface CommissionReasonDto
35
35
  */
36
36
  export interface CommissionReasonDto {
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof CommissionReasonDto
41
+ */
42
+ commissionId?: string;
37
43
  /**
38
44
  *
39
45
  * @type {string}
@@ -141,6 +147,7 @@ export function CommissionReasonDtoFromJSONTyped(json: any, ignoreDiscriminator:
141
147
  }
142
148
  return {
143
149
 
150
+ 'commissionId': json['commissionId'] == null ? undefined : json['commissionId'],
144
151
  'text': json['text'] == null ? undefined : json['text'],
145
152
  'type': json['type'] == null ? undefined : json['type'],
146
153
  'subtype': json['subtype'] == null ? undefined : json['subtype'],
@@ -166,6 +173,7 @@ export function CommissionReasonDtoToJSONTyped(value?: CommissionReasonDto | nul
166
173
 
167
174
  return {
168
175
 
176
+ 'commissionId': value['commissionId'],
169
177
  'text': value['text'],
170
178
  'type': value['type'],
171
179
  'subtype': value['subtype'],
@@ -0,0 +1,90 @@
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 { AccountNameshiftCommissionItemDto } from './AccountNameshiftCommissionItemDto';
17
+ import {
18
+ AccountNameshiftCommissionItemDtoFromJSON,
19
+ AccountNameshiftCommissionItemDtoFromJSONTyped,
20
+ AccountNameshiftCommissionItemDtoToJSON,
21
+ AccountNameshiftCommissionItemDtoToJSONTyped,
22
+ } from './AccountNameshiftCommissionItemDto';
23
+ import type { AccountNameshiftCommissionBySubtypePercentagesDto } from './AccountNameshiftCommissionBySubtypePercentagesDto';
24
+ import {
25
+ AccountNameshiftCommissionBySubtypePercentagesDtoFromJSON,
26
+ AccountNameshiftCommissionBySubtypePercentagesDtoFromJSONTyped,
27
+ AccountNameshiftCommissionBySubtypePercentagesDtoToJSON,
28
+ AccountNameshiftCommissionBySubtypePercentagesDtoToJSONTyped,
29
+ } from './AccountNameshiftCommissionBySubtypePercentagesDto';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface GetAccountNameshiftCommissionsResponseDto
35
+ */
36
+ export interface GetAccountNameshiftCommissionsResponseDto {
37
+ /**
38
+ * Current commission percentage by subtype
39
+ * @type {AccountNameshiftCommissionBySubtypePercentagesDto}
40
+ * @memberof GetAccountNameshiftCommissionsResponseDto
41
+ */
42
+ current: AccountNameshiftCommissionBySubtypePercentagesDto;
43
+ /**
44
+ * List of nameshift commissions (not expired or not yet started)
45
+ * @type {Array<AccountNameshiftCommissionItemDto>}
46
+ * @memberof GetAccountNameshiftCommissionsResponseDto
47
+ */
48
+ details: Array<AccountNameshiftCommissionItemDto>;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the GetAccountNameshiftCommissionsResponseDto interface.
53
+ */
54
+ export function instanceOfGetAccountNameshiftCommissionsResponseDto(value: object): value is GetAccountNameshiftCommissionsResponseDto {
55
+ if (!('current' in value) || value['current'] === undefined) return false;
56
+ if (!('details' in value) || value['details'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function GetAccountNameshiftCommissionsResponseDtoFromJSON(json: any): GetAccountNameshiftCommissionsResponseDto {
61
+ return GetAccountNameshiftCommissionsResponseDtoFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function GetAccountNameshiftCommissionsResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAccountNameshiftCommissionsResponseDto {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'current': AccountNameshiftCommissionBySubtypePercentagesDtoFromJSON(json['current']),
71
+ 'details': ((json['details'] as Array<any>).map(AccountNameshiftCommissionItemDtoFromJSON)),
72
+ };
73
+ }
74
+
75
+ export function GetAccountNameshiftCommissionsResponseDtoToJSON(json: any): GetAccountNameshiftCommissionsResponseDto {
76
+ return GetAccountNameshiftCommissionsResponseDtoToJSONTyped(json, false);
77
+ }
78
+
79
+ export function GetAccountNameshiftCommissionsResponseDtoToJSONTyped(value?: GetAccountNameshiftCommissionsResponseDto | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'current': AccountNameshiftCommissionBySubtypePercentagesDtoToJSON(value['current']),
87
+ 'details': ((value['details'] as Array<any>).map(AccountNameshiftCommissionItemDtoToJSON)),
88
+ };
89
+ }
90
+
@@ -0,0 +1,75 @@
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 ListAccountPortfolioSizeDto
20
+ */
21
+ export interface ListAccountPortfolioSizeDto {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ListAccountPortfolioSizeDto
26
+ */
27
+ from: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof ListAccountPortfolioSizeDto
32
+ */
33
+ to: number | null;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ListAccountPortfolioSizeDto interface.
38
+ */
39
+ export function instanceOfListAccountPortfolioSizeDto(value: object): value is ListAccountPortfolioSizeDto {
40
+ if (!('from' in value) || value['from'] === undefined) return false;
41
+ if (!('to' in value) || value['to'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function ListAccountPortfolioSizeDtoFromJSON(json: any): ListAccountPortfolioSizeDto {
46
+ return ListAccountPortfolioSizeDtoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ListAccountPortfolioSizeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAccountPortfolioSizeDto {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'from': json['from'],
56
+ 'to': json['to'],
57
+ };
58
+ }
59
+
60
+ export function ListAccountPortfolioSizeDtoToJSON(json: any): ListAccountPortfolioSizeDto {
61
+ return ListAccountPortfolioSizeDtoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function ListAccountPortfolioSizeDtoToJSONTyped(value?: ListAccountPortfolioSizeDto | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'from': value['from'],
72
+ 'to': value['to'],
73
+ };
74
+ }
75
+
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { RegisterAccountPortfolioSizeInput } from './RegisterAccountPortfolioSizeInput';
17
+ import {
18
+ RegisterAccountPortfolioSizeInputFromJSON,
19
+ RegisterAccountPortfolioSizeInputFromJSONTyped,
20
+ RegisterAccountPortfolioSizeInputToJSON,
21
+ RegisterAccountPortfolioSizeInputToJSONTyped,
22
+ } from './RegisterAccountPortfolioSizeInput';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -25,6 +33,18 @@ export interface RegisterAccountInput {
25
33
  * @memberof RegisterAccountInput
26
34
  */
27
35
  affiliateIdentifier?: string | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof RegisterAccountInput
40
+ */
41
+ companyName?: string | null;
42
+ /**
43
+ *
44
+ * @type {RegisterAccountPortfolioSizeInput}
45
+ * @memberof RegisterAccountInput
46
+ */
47
+ portfolioSize?: RegisterAccountPortfolioSizeInput | null;
28
48
  /**
29
49
  *
30
50
  * @type {string}
@@ -116,6 +136,8 @@ export function RegisterAccountInputFromJSONTyped(json: any, ignoreDiscriminator
116
136
  return {
117
137
 
118
138
  'affiliateIdentifier': json['affiliateIdentifier'] == null ? undefined : json['affiliateIdentifier'],
139
+ 'companyName': json['companyName'] == null ? undefined : json['companyName'],
140
+ 'portfolioSize': json['portfolioSize'] == null ? undefined : RegisterAccountPortfolioSizeInputFromJSON(json['portfolioSize']),
119
141
  'locale': json['locale'],
120
142
  'firstname': json['firstname'],
121
143
  'lastname': json['lastname'],
@@ -140,6 +162,8 @@ export function RegisterAccountInputToJSONTyped(value?: RegisterAccountInput | n
140
162
  return {
141
163
 
142
164
  'affiliateIdentifier': value['affiliateIdentifier'],
165
+ 'companyName': value['companyName'],
166
+ 'portfolioSize': RegisterAccountPortfolioSizeInputToJSON(value['portfolioSize']),
143
167
  'locale': value['locale'],
144
168
  'firstname': value['firstname'],
145
169
  'lastname': value['lastname'],
@@ -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
+ /**
17
+ *
18
+ * @export
19
+ * @interface RegisterAccountPortfolioSizeInput
20
+ */
21
+ export interface RegisterAccountPortfolioSizeInput {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof RegisterAccountPortfolioSizeInput
26
+ */
27
+ from: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof RegisterAccountPortfolioSizeInput
32
+ */
33
+ to?: number | null;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the RegisterAccountPortfolioSizeInput interface.
38
+ */
39
+ export function instanceOfRegisterAccountPortfolioSizeInput(value: object): value is RegisterAccountPortfolioSizeInput {
40
+ if (!('from' in value) || value['from'] === undefined) return false;
41
+ return true;
42
+ }
43
+
44
+ export function RegisterAccountPortfolioSizeInputFromJSON(json: any): RegisterAccountPortfolioSizeInput {
45
+ return RegisterAccountPortfolioSizeInputFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function RegisterAccountPortfolioSizeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterAccountPortfolioSizeInput {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'from': json['from'],
55
+ 'to': json['to'] == null ? undefined : json['to'],
56
+ };
57
+ }
58
+
59
+ export function RegisterAccountPortfolioSizeInputToJSON(json: any): RegisterAccountPortfolioSizeInput {
60
+ return RegisterAccountPortfolioSizeInputToJSONTyped(json, false);
61
+ }
62
+
63
+ export function RegisterAccountPortfolioSizeInputToJSONTyped(value?: RegisterAccountPortfolioSizeInput | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'from': value['from'],
71
+ 'to': value['to'],
72
+ };
73
+ }
74
+
@@ -9,7 +9,11 @@ export * from './AccountCountryStatsDto';
9
9
  export * from './AccountDto';
10
10
  export * from './AccountMetricsDto';
11
11
  export * from './AccountNameshiftCommissionBySubtypeDto';
12
+ export * from './AccountNameshiftCommissionBySubtypePercentagesDto';
12
13
  export * from './AccountNameshiftCommissionByTypeDto';
14
+ export * from './AccountNameshiftCommissionItemDto';
15
+ export * from './AccountNameshiftCommissionReasonDto';
16
+ export * from './AccountNameshiftCommissionSubtypeCurrentDto';
13
17
  export * from './AccountNotificationDto';
14
18
  export * from './AccountNotificationReadStatusDto';
15
19
  export * from './AccountOnboardingDto';
@@ -189,6 +193,7 @@ export * from './FixedCommissionPayloadDto';
189
193
  export * from './FixedCommissionPayloadInput';
190
194
  export * from './FixedCommissionReasonPayloadDto';
191
195
  export * from './ForgotPasswordRequestInput';
196
+ export * from './GetAccountNameshiftCommissionsResponseDto';
192
197
  export * from './GetAllAffiliateCommissions200Response';
193
198
  export * from './GetAllAuctions200Response';
194
199
  export * from './GetAllAuctions200Response1';
@@ -251,6 +256,7 @@ export * from './List200Response2';
251
256
  export * from './List200Response3';
252
257
  export * from './List200Response4';
253
258
  export * from './ListAccountMetricsDto';
259
+ export * from './ListAccountPortfolioSizeDto';
254
260
  export * from './ListAccountUserDto';
255
261
  export * from './ListAccounts200Response';
256
262
  export * from './ListAuctions200Response';
@@ -311,6 +317,7 @@ export * from './PublicSalesDto';
311
317
  export * from './PutBuyerLeadOfferInput';
312
318
  export * from './PutLeadOfferInput';
313
319
  export * from './RegisterAccountInput';
320
+ export * from './RegisterAccountPortfolioSizeInput';
314
321
  export * from './RegisterAuctionBuyerPhoneInput';
315
322
  export * from './RegisterInput';
316
323
  export * from './RelatedDomainsDto';