@randock/nameshift-api-client 0.0.111 → 0.0.112

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 (41) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AccountsApi.js +1 -1
  4. package/dist/apis/AdminApi.d.ts +24 -1
  5. package/dist/apis/AdminApi.js +109 -0
  6. package/dist/apis/DomainsApi.d.ts +3 -3
  7. package/dist/apis/DomainsApi.js +1 -1
  8. package/dist/apis/LeadsApi.d.ts +3 -3
  9. package/dist/apis/LeadsApi.js +1 -1
  10. package/dist/models/AccountSettingsDto.d.ts +50 -0
  11. package/dist/models/AccountSettingsDto.js +59 -0
  12. package/dist/models/AdminAccountSettingsInput.d.ts +31 -0
  13. package/dist/models/AdminAccountSettingsInput.js +44 -0
  14. package/dist/models/List200Response.d.ts +3 -3
  15. package/dist/models/List200Response.js +3 -3
  16. package/dist/models/List200Response1.d.ts +3 -3
  17. package/dist/models/List200Response1.js +3 -3
  18. package/dist/models/ThrottlerException.d.ts +43 -0
  19. package/dist/models/ThrottlerException.js +54 -0
  20. package/dist/models/index.d.ts +3 -0
  21. package/dist/models/index.js +3 -0
  22. package/package.json +1 -1
  23. package/src/apis/AccountsApi.ts +4 -1
  24. package/src/apis/AccountsPublicApi.ts +3 -0
  25. package/src/apis/AdminApi.ts +109 -0
  26. package/src/apis/BuyersApi.ts +3 -0
  27. package/src/apis/BuyersPublicApi.ts +3 -0
  28. package/src/apis/DomainsApi.ts +9 -6
  29. package/src/apis/DomainsPublicApi.ts +3 -0
  30. package/src/apis/LeadsApi.ts +9 -6
  31. package/src/apis/LeadsPublicApi.ts +3 -0
  32. package/src/apis/OrdersPublicApi.ts +3 -0
  33. package/src/apis/StripePublicApi.ts +3 -0
  34. package/src/apis/UsersApi.ts +3 -0
  35. package/src/apis/UsersPublicApi.ts +3 -0
  36. package/src/models/AccountSettingsDto.ts +95 -0
  37. package/src/models/AdminAccountSettingsInput.ts +60 -0
  38. package/src/models/List200Response.ts +9 -9
  39. package/src/models/List200Response1.ts +9 -9
  40. package/src/models/ThrottlerException.ts +79 -0
  41. package/src/models/index.ts +3 -0
@@ -0,0 +1,60 @@
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 AdminAccountSettingsInput
20
+ */
21
+ export interface AdminAccountSettingsInput {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof AdminAccountSettingsInput
26
+ */
27
+ automaticPayouts?: boolean;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the AdminAccountSettingsInput interface.
32
+ */
33
+ export function instanceOfAdminAccountSettingsInput(value: object): value is AdminAccountSettingsInput {
34
+ return true;
35
+ }
36
+
37
+ export function AdminAccountSettingsInputFromJSON(json: any): AdminAccountSettingsInput {
38
+ return AdminAccountSettingsInputFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function AdminAccountSettingsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminAccountSettingsInput {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'automaticPayouts': json['automaticPayouts'] == null ? undefined : json['automaticPayouts'],
48
+ };
49
+ }
50
+
51
+ export function AdminAccountSettingsInputToJSON(value?: AdminAccountSettingsInput | null): any {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+
57
+ 'automaticPayouts': value['automaticPayouts'],
58
+ };
59
+ }
60
+
@@ -19,12 +19,12 @@ import {
19
19
  PaginateResponseLinksFromJSONTyped,
20
20
  PaginateResponseLinksToJSON,
21
21
  } from './PaginateResponseLinks';
22
- import type { IntersectionDomainDtoWithDomainUrlDto } from './IntersectionDomainDtoWithDomainUrlDto';
22
+ import type { IntersectionLeadDtoWithListFieldsDto } from './IntersectionLeadDtoWithListFieldsDto';
23
23
  import {
24
- IntersectionDomainDtoWithDomainUrlDtoFromJSON,
25
- IntersectionDomainDtoWithDomainUrlDtoFromJSONTyped,
26
- IntersectionDomainDtoWithDomainUrlDtoToJSON,
27
- } from './IntersectionDomainDtoWithDomainUrlDto';
24
+ IntersectionLeadDtoWithListFieldsDtoFromJSON,
25
+ IntersectionLeadDtoWithListFieldsDtoFromJSONTyped,
26
+ IntersectionLeadDtoWithListFieldsDtoToJSON,
27
+ } from './IntersectionLeadDtoWithListFieldsDto';
28
28
  import type { PaginateResponseMeta } from './PaginateResponseMeta';
29
29
  import {
30
30
  PaginateResponseMetaFromJSON,
@@ -40,10 +40,10 @@ import {
40
40
  export interface List200Response {
41
41
  /**
42
42
  *
43
- * @type {Array<IntersectionDomainDtoWithDomainUrlDto>}
43
+ * @type {Array<IntersectionLeadDtoWithListFieldsDto>}
44
44
  * @memberof List200Response
45
45
  */
46
- data: Array<IntersectionDomainDtoWithDomainUrlDto>;
46
+ data: Array<IntersectionLeadDtoWithListFieldsDto>;
47
47
  /**
48
48
  *
49
49
  * @type {PaginateResponseMeta}
@@ -78,7 +78,7 @@ export function List200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boo
78
78
  }
79
79
  return {
80
80
 
81
- 'data': ((json['data'] as Array<any>).map(IntersectionDomainDtoWithDomainUrlDtoFromJSON)),
81
+ 'data': ((json['data'] as Array<any>).map(IntersectionLeadDtoWithListFieldsDtoFromJSON)),
82
82
  'meta': PaginateResponseMetaFromJSON(json['meta']),
83
83
  'links': PaginateResponseLinksFromJSON(json['links']),
84
84
  };
@@ -90,7 +90,7 @@ export function List200ResponseToJSON(value?: List200Response | null): any {
90
90
  }
91
91
  return {
92
92
 
93
- 'data': ((value['data'] as Array<any>).map(IntersectionDomainDtoWithDomainUrlDtoToJSON)),
93
+ 'data': ((value['data'] as Array<any>).map(IntersectionLeadDtoWithListFieldsDtoToJSON)),
94
94
  'meta': PaginateResponseMetaToJSON(value['meta']),
95
95
  'links': PaginateResponseLinksToJSON(value['links']),
96
96
  };
@@ -19,12 +19,12 @@ import {
19
19
  PaginateResponseLinksFromJSONTyped,
20
20
  PaginateResponseLinksToJSON,
21
21
  } from './PaginateResponseLinks';
22
- import type { IntersectionLeadDtoWithListFieldsDto } from './IntersectionLeadDtoWithListFieldsDto';
22
+ import type { IntersectionDomainDtoWithDomainUrlDto } from './IntersectionDomainDtoWithDomainUrlDto';
23
23
  import {
24
- IntersectionLeadDtoWithListFieldsDtoFromJSON,
25
- IntersectionLeadDtoWithListFieldsDtoFromJSONTyped,
26
- IntersectionLeadDtoWithListFieldsDtoToJSON,
27
- } from './IntersectionLeadDtoWithListFieldsDto';
24
+ IntersectionDomainDtoWithDomainUrlDtoFromJSON,
25
+ IntersectionDomainDtoWithDomainUrlDtoFromJSONTyped,
26
+ IntersectionDomainDtoWithDomainUrlDtoToJSON,
27
+ } from './IntersectionDomainDtoWithDomainUrlDto';
28
28
  import type { PaginateResponseMeta } from './PaginateResponseMeta';
29
29
  import {
30
30
  PaginateResponseMetaFromJSON,
@@ -40,10 +40,10 @@ import {
40
40
  export interface List200Response1 {
41
41
  /**
42
42
  *
43
- * @type {Array<IntersectionLeadDtoWithListFieldsDto>}
43
+ * @type {Array<IntersectionDomainDtoWithDomainUrlDto>}
44
44
  * @memberof List200Response1
45
45
  */
46
- data: Array<IntersectionLeadDtoWithListFieldsDto>;
46
+ data: Array<IntersectionDomainDtoWithDomainUrlDto>;
47
47
  /**
48
48
  *
49
49
  * @type {PaginateResponseMeta}
@@ -78,7 +78,7 @@ export function List200Response1FromJSONTyped(json: any, ignoreDiscriminator: bo
78
78
  }
79
79
  return {
80
80
 
81
- 'data': ((json['data'] as Array<any>).map(IntersectionLeadDtoWithListFieldsDtoFromJSON)),
81
+ 'data': ((json['data'] as Array<any>).map(IntersectionDomainDtoWithDomainUrlDtoFromJSON)),
82
82
  'meta': PaginateResponseMetaFromJSON(json['meta']),
83
83
  'links': PaginateResponseLinksFromJSON(json['links']),
84
84
  };
@@ -90,7 +90,7 @@ export function List200Response1ToJSON(value?: List200Response1 | null): any {
90
90
  }
91
91
  return {
92
92
 
93
- 'data': ((value['data'] as Array<any>).map(IntersectionLeadDtoWithListFieldsDtoToJSON)),
93
+ 'data': ((value['data'] as Array<any>).map(IntersectionDomainDtoWithDomainUrlDtoToJSON)),
94
94
  'meta': PaginateResponseMetaToJSON(value['meta']),
95
95
  'links': PaginateResponseLinksToJSON(value['links']),
96
96
  };
@@ -0,0 +1,79 @@
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 ThrottlerException
20
+ */
21
+ export interface ThrottlerException {
22
+ /**
23
+ * Exception name
24
+ * @type {string}
25
+ * @memberof ThrottlerException
26
+ */
27
+ name: string;
28
+ /**
29
+ * http status code
30
+ * @type {number}
31
+ * @memberof ThrottlerException
32
+ */
33
+ statusCode: number;
34
+ /**
35
+ * error message
36
+ * @type {string}
37
+ * @memberof ThrottlerException
38
+ */
39
+ message: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the ThrottlerException interface.
44
+ */
45
+ export function instanceOfThrottlerException(value: object): value is ThrottlerException {
46
+ if (!('name' in value) || value['name'] === undefined) return false;
47
+ if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
48
+ if (!('message' in value) || value['message'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function ThrottlerExceptionFromJSON(json: any): ThrottlerException {
53
+ return ThrottlerExceptionFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function ThrottlerExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThrottlerException {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'name': json['name'],
63
+ 'statusCode': json['statusCode'],
64
+ 'message': json['message'],
65
+ };
66
+ }
67
+
68
+ export function ThrottlerExceptionToJSON(value?: ThrottlerException | null): any {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+ return {
73
+
74
+ 'name': value['name'],
75
+ 'statusCode': value['statusCode'],
76
+ 'message': value['message'],
77
+ };
78
+ }
79
+
@@ -3,8 +3,10 @@
3
3
  export * from './AccountDto';
4
4
  export * from './AccountMetricsDto';
5
5
  export * from './AccountPaymentProviderSessionDto';
6
+ export * from './AccountSettingsDto';
6
7
  export * from './AccountSettingsInput';
7
8
  export * from './AddressDto';
9
+ export * from './AdminAccountSettingsInput';
8
10
  export * from './AdminGetAllDomainTransfers200Response';
9
11
  export * from './BadRequestException';
10
12
  export * from './BatchReadBuyerLeadMessageInput';
@@ -110,6 +112,7 @@ export * from './SetDomainTransferConfirmationInput';
110
112
  export * from './SetNewPasswordInput';
111
113
  export * from './StoreBuyerLocaleInput';
112
114
  export * from './StoreUserLocaleInput';
115
+ export * from './ThrottlerException';
113
116
  export * from './UpdateDomainInput';
114
117
  export * from './UpdateDomainTransferAuthCodeInput';
115
118
  export * from './UpdateLeadInput';