@randock/nameshift-api-client 0.0.1

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 (123) hide show
  1. package/.openapi-generator/FILES +45 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +45 -0
  5. package/dist/apis/AccountsApi.d.ts +54 -0
  6. package/dist/apis/AccountsApi.js +254 -0
  7. package/dist/apis/AuthApi.d.ts +27 -0
  8. package/dist/apis/AuthApi.js +124 -0
  9. package/dist/apis/DomainsApi.d.ts +77 -0
  10. package/dist/apis/DomainsApi.js +374 -0
  11. package/dist/apis/LeadsApi.d.ts +27 -0
  12. package/dist/apis/LeadsApi.js +124 -0
  13. package/dist/apis/TestApi.d.ts +23 -0
  14. package/dist/apis/TestApi.js +116 -0
  15. package/dist/apis/index.d.ts +5 -0
  16. package/dist/apis/index.js +23 -0
  17. package/dist/index.d.ts +3 -0
  18. package/dist/index.js +21 -0
  19. package/dist/models/AccountAddressDto.d.ts +68 -0
  20. package/dist/models/AccountAddressDto.js +71 -0
  21. package/dist/models/AccountAddressInput.d.ts +68 -0
  22. package/dist/models/AccountAddressInput.js +71 -0
  23. package/dist/models/AccountFinancialInput.d.ts +49 -0
  24. package/dist/models/AccountFinancialInput.js +59 -0
  25. package/dist/models/AccountSettingsInput.d.ts +32 -0
  26. package/dist/models/AccountSettingsInput.js +51 -0
  27. package/dist/models/BatchUpdate404Response.d.ts +43 -0
  28. package/dist/models/BatchUpdate404Response.js +56 -0
  29. package/dist/models/BatchUpdateDomainsInput.d.ts +38 -0
  30. package/dist/models/BatchUpdateDomainsInput.js +54 -0
  31. package/dist/models/CreateLeadInput.d.ts +61 -0
  32. package/dist/models/CreateLeadInput.js +65 -0
  33. package/dist/models/DomainDto.d.ts +62 -0
  34. package/dist/models/DomainDto.js +66 -0
  35. package/dist/models/ImportDomainsDto.d.ts +49 -0
  36. package/dist/models/ImportDomainsDto.js +59 -0
  37. package/dist/models/IntersectionAccountDtoWithAddressDto.d.ts +38 -0
  38. package/dist/models/IntersectionAccountDtoWithAddressDto.js +54 -0
  39. package/dist/models/IntersectionAccountDtoWithFinancialDto.d.ts +38 -0
  40. package/dist/models/IntersectionAccountDtoWithFinancialDto.js +54 -0
  41. package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.d.ts +49 -0
  42. package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.js +56 -0
  43. package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +38 -0
  44. package/dist/models/IntersectionAccountDtoWithSettingsDto.js +54 -0
  45. package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.d.ts +32 -0
  46. package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.js +51 -0
  47. package/dist/models/LeadDto.d.ts +31 -0
  48. package/dist/models/LeadDto.js +50 -0
  49. package/dist/models/List200Response.d.ts +46 -0
  50. package/dist/models/List200Response.js +59 -0
  51. package/dist/models/List400Response.d.ts +43 -0
  52. package/dist/models/List400Response.js +56 -0
  53. package/dist/models/List401Response.d.ts +43 -0
  54. package/dist/models/List401Response.js +56 -0
  55. package/dist/models/List429Response.d.ts +43 -0
  56. package/dist/models/List429Response.js +56 -0
  57. package/dist/models/LoginInput.d.ts +37 -0
  58. package/dist/models/LoginInput.js +53 -0
  59. package/dist/models/MoneyDto.d.ts +37 -0
  60. package/dist/models/MoneyDto.js +53 -0
  61. package/dist/models/MoneyInput.d.ts +37 -0
  62. package/dist/models/MoneyInput.js +53 -0
  63. package/dist/models/PaginateResponse.d.ts +45 -0
  64. package/dist/models/PaginateResponse.js +58 -0
  65. package/dist/models/PaginateResponseLinks.d.ts +55 -0
  66. package/dist/models/PaginateResponseLinks.js +58 -0
  67. package/dist/models/PaginateResponseMeta.d.ts +67 -0
  68. package/dist/models/PaginateResponseMeta.js +62 -0
  69. package/dist/models/TokenDto.d.ts +31 -0
  70. package/dist/models/TokenDto.js +50 -0
  71. package/dist/models/UpdateDomainInput.d.ts +38 -0
  72. package/dist/models/UpdateDomainInput.js +53 -0
  73. package/dist/models/UpdateSettings401Response.d.ts +43 -0
  74. package/dist/models/UpdateSettings401Response.js +56 -0
  75. package/dist/models/UserAuthControllerLogin401Response.d.ts +43 -0
  76. package/dist/models/UserAuthControllerLogin401Response.js +56 -0
  77. package/dist/models/UserAuthControllerLogin429Response.d.ts +43 -0
  78. package/dist/models/UserAuthControllerLogin429Response.js +56 -0
  79. package/dist/models/index.d.ts +30 -0
  80. package/dist/models/index.js +48 -0
  81. package/dist/runtime.d.ts +182 -0
  82. package/dist/runtime.js +562 -0
  83. package/package.json +19 -0
  84. package/src/apis/AccountsApi.ts +201 -0
  85. package/src/apis/AuthApi.ts +74 -0
  86. package/src/apis/DomainsApi.ts +305 -0
  87. package/src/apis/LeadsApi.ts +71 -0
  88. package/src/apis/TestApi.ts +46 -0
  89. package/src/apis/index.ts +7 -0
  90. package/src/index.ts +5 -0
  91. package/src/models/AccountAddressDto.ts +120 -0
  92. package/src/models/AccountAddressInput.ts +120 -0
  93. package/src/models/AccountFinancialInput.ts +93 -0
  94. package/src/models/AccountSettingsInput.ts +72 -0
  95. package/src/models/BatchUpdate404Response.ts +83 -0
  96. package/src/models/BatchUpdateDomainsInput.ts +82 -0
  97. package/src/models/CreateLeadInput.ts +111 -0
  98. package/src/models/DomainDto.ts +118 -0
  99. package/src/models/ImportDomainsDto.ts +93 -0
  100. package/src/models/IntersectionAccountDtoWithAddressDto.ts +82 -0
  101. package/src/models/IntersectionAccountDtoWithFinancialDto.ts +82 -0
  102. package/src/models/IntersectionAccountDtoWithFinancialDtoFinancial.ts +89 -0
  103. package/src/models/IntersectionAccountDtoWithSettingsDto.ts +82 -0
  104. package/src/models/IntersectionAccountDtoWithSettingsDtoSettings.ts +72 -0
  105. package/src/models/LeadDto.ts +66 -0
  106. package/src/models/List200Response.ts +103 -0
  107. package/src/models/List400Response.ts +83 -0
  108. package/src/models/List401Response.ts +83 -0
  109. package/src/models/List429Response.ts +83 -0
  110. package/src/models/LoginInput.ts +75 -0
  111. package/src/models/MoneyDto.ts +75 -0
  112. package/src/models/MoneyInput.ts +75 -0
  113. package/src/models/PaginateResponse.ts +97 -0
  114. package/src/models/PaginateResponseLinks.ts +97 -0
  115. package/src/models/PaginateResponseMeta.ts +113 -0
  116. package/src/models/TokenDto.ts +66 -0
  117. package/src/models/UpdateDomainInput.ts +80 -0
  118. package/src/models/UpdateSettings401Response.ts +83 -0
  119. package/src/models/UserAuthControllerLogin401Response.ts +83 -0
  120. package/src/models/UserAuthControllerLogin429Response.ts +83 -0
  121. package/src/models/index.ts +32 -0
  122. package/src/runtime.ts +431 -0
  123. package/tsconfig.json +20 -0
@@ -0,0 +1,7 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './AccountsApi';
4
+ export * from './AuthApi';
5
+ export * from './DomainsApi';
6
+ export * from './LeadsApi';
7
+ export * from './TestApi';
package/src/index.ts ADDED
@@ -0,0 +1,5 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './runtime';
4
+ export * from './apis/index';
5
+ export * from './models/index';
@@ -0,0 +1,120 @@
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 { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AccountAddressDto
20
+ */
21
+ export interface AccountAddressDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AccountAddressDto
26
+ */
27
+ type: AccountAddressDtoTypeEnum;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AccountAddressDto
32
+ */
33
+ address: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof AccountAddressDto
38
+ */
39
+ postalCode: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof AccountAddressDto
44
+ */
45
+ city: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof AccountAddressDto
50
+ */
51
+ state?: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof AccountAddressDto
56
+ */
57
+ country: string;
58
+ }
59
+
60
+
61
+ /**
62
+ * @export
63
+ */
64
+ export const AccountAddressDtoTypeEnum = {
65
+ BILLING: 'billing'
66
+ } as const;
67
+ export type AccountAddressDtoTypeEnum = typeof AccountAddressDtoTypeEnum[keyof typeof AccountAddressDtoTypeEnum];
68
+
69
+
70
+ /**
71
+ * Check if a given object implements the AccountAddressDto interface.
72
+ */
73
+ export function instanceOfAccountAddressDto(value: object): boolean {
74
+ let isInstance = true;
75
+ isInstance = isInstance && "type" in value;
76
+ isInstance = isInstance && "address" in value;
77
+ isInstance = isInstance && "postalCode" in value;
78
+ isInstance = isInstance && "city" in value;
79
+ isInstance = isInstance && "country" in value;
80
+
81
+ return isInstance;
82
+ }
83
+
84
+ export function AccountAddressDtoFromJSON(json: any): AccountAddressDto {
85
+ return AccountAddressDtoFromJSONTyped(json, false);
86
+ }
87
+
88
+ export function AccountAddressDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountAddressDto {
89
+ if ((json === undefined) || (json === null)) {
90
+ return json;
91
+ }
92
+ return {
93
+
94
+ 'type': json['type'],
95
+ 'address': json['address'],
96
+ 'postalCode': json['postalCode'],
97
+ 'city': json['city'],
98
+ 'state': !exists(json, 'state') ? undefined : json['state'],
99
+ 'country': json['country'],
100
+ };
101
+ }
102
+
103
+ export function AccountAddressDtoToJSON(value?: AccountAddressDto | null): any {
104
+ if (value === undefined) {
105
+ return undefined;
106
+ }
107
+ if (value === null) {
108
+ return null;
109
+ }
110
+ return {
111
+
112
+ 'type': value.type,
113
+ 'address': value.address,
114
+ 'postalCode': value.postalCode,
115
+ 'city': value.city,
116
+ 'state': value.state,
117
+ 'country': value.country,
118
+ };
119
+ }
120
+
@@ -0,0 +1,120 @@
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 { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AccountAddressInput
20
+ */
21
+ export interface AccountAddressInput {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AccountAddressInput
26
+ */
27
+ type: AccountAddressInputTypeEnum;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AccountAddressInput
32
+ */
33
+ address: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof AccountAddressInput
38
+ */
39
+ postalCode: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof AccountAddressInput
44
+ */
45
+ city: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof AccountAddressInput
50
+ */
51
+ state?: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof AccountAddressInput
56
+ */
57
+ country: string;
58
+ }
59
+
60
+
61
+ /**
62
+ * @export
63
+ */
64
+ export const AccountAddressInputTypeEnum = {
65
+ BILLING: 'billing'
66
+ } as const;
67
+ export type AccountAddressInputTypeEnum = typeof AccountAddressInputTypeEnum[keyof typeof AccountAddressInputTypeEnum];
68
+
69
+
70
+ /**
71
+ * Check if a given object implements the AccountAddressInput interface.
72
+ */
73
+ export function instanceOfAccountAddressInput(value: object): boolean {
74
+ let isInstance = true;
75
+ isInstance = isInstance && "type" in value;
76
+ isInstance = isInstance && "address" in value;
77
+ isInstance = isInstance && "postalCode" in value;
78
+ isInstance = isInstance && "city" in value;
79
+ isInstance = isInstance && "country" in value;
80
+
81
+ return isInstance;
82
+ }
83
+
84
+ export function AccountAddressInputFromJSON(json: any): AccountAddressInput {
85
+ return AccountAddressInputFromJSONTyped(json, false);
86
+ }
87
+
88
+ export function AccountAddressInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountAddressInput {
89
+ if ((json === undefined) || (json === null)) {
90
+ return json;
91
+ }
92
+ return {
93
+
94
+ 'type': json['type'],
95
+ 'address': json['address'],
96
+ 'postalCode': json['postalCode'],
97
+ 'city': json['city'],
98
+ 'state': !exists(json, 'state') ? undefined : json['state'],
99
+ 'country': json['country'],
100
+ };
101
+ }
102
+
103
+ export function AccountAddressInputToJSON(value?: AccountAddressInput | null): any {
104
+ if (value === undefined) {
105
+ return undefined;
106
+ }
107
+ if (value === null) {
108
+ return null;
109
+ }
110
+ return {
111
+
112
+ 'type': value.type,
113
+ 'address': value.address,
114
+ 'postalCode': value.postalCode,
115
+ 'city': value.city,
116
+ 'state': value.state,
117
+ 'country': value.country,
118
+ };
119
+ }
120
+
@@ -0,0 +1,93 @@
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 { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AccountFinancialInput
20
+ */
21
+ export interface AccountFinancialInput {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof AccountFinancialInput
26
+ */
27
+ company: boolean;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AccountFinancialInput
32
+ */
33
+ companyName: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof AccountFinancialInput
38
+ */
39
+ companyVatNumber: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof AccountFinancialInput
44
+ */
45
+ companyRegistrationNumber: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the AccountFinancialInput interface.
50
+ */
51
+ export function instanceOfAccountFinancialInput(value: object): boolean {
52
+ let isInstance = true;
53
+ isInstance = isInstance && "company" in value;
54
+ isInstance = isInstance && "companyName" in value;
55
+ isInstance = isInstance && "companyVatNumber" in value;
56
+ isInstance = isInstance && "companyRegistrationNumber" in value;
57
+
58
+ return isInstance;
59
+ }
60
+
61
+ export function AccountFinancialInputFromJSON(json: any): AccountFinancialInput {
62
+ return AccountFinancialInputFromJSONTyped(json, false);
63
+ }
64
+
65
+ export function AccountFinancialInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountFinancialInput {
66
+ if ((json === undefined) || (json === null)) {
67
+ return json;
68
+ }
69
+ return {
70
+
71
+ 'company': json['company'],
72
+ 'companyName': json['companyName'],
73
+ 'companyVatNumber': json['companyVatNumber'],
74
+ 'companyRegistrationNumber': json['companyRegistrationNumber'],
75
+ };
76
+ }
77
+
78
+ export function AccountFinancialInputToJSON(value?: AccountFinancialInput | null): any {
79
+ if (value === undefined) {
80
+ return undefined;
81
+ }
82
+ if (value === null) {
83
+ return null;
84
+ }
85
+ return {
86
+
87
+ 'company': value.company,
88
+ 'companyName': value.companyName,
89
+ 'companyVatNumber': value.companyVatNumber,
90
+ 'companyRegistrationNumber': value.companyRegistrationNumber,
91
+ };
92
+ }
93
+
@@ -0,0 +1,72 @@
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 { exists, mapValues } from '../runtime';
16
+ import type { MoneyInput } from './MoneyInput';
17
+ import {
18
+ MoneyInputFromJSON,
19
+ MoneyInputFromJSONTyped,
20
+ MoneyInputToJSON,
21
+ } from './MoneyInput';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface AccountSettingsInput
27
+ */
28
+ export interface AccountSettingsInput {
29
+ /**
30
+ *
31
+ * @type {MoneyInput}
32
+ * @memberof AccountSettingsInput
33
+ */
34
+ defaultStartingOffer?: MoneyInput;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the AccountSettingsInput interface.
39
+ */
40
+ export function instanceOfAccountSettingsInput(value: object): boolean {
41
+ let isInstance = true;
42
+
43
+ return isInstance;
44
+ }
45
+
46
+ export function AccountSettingsInputFromJSON(json: any): AccountSettingsInput {
47
+ return AccountSettingsInputFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function AccountSettingsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountSettingsInput {
51
+ if ((json === undefined) || (json === null)) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'defaultStartingOffer': !exists(json, 'defaultStartingOffer') ? undefined : MoneyInputFromJSON(json['defaultStartingOffer']),
57
+ };
58
+ }
59
+
60
+ export function AccountSettingsInputToJSON(value?: AccountSettingsInput | null): any {
61
+ if (value === undefined) {
62
+ return undefined;
63
+ }
64
+ if (value === null) {
65
+ return null;
66
+ }
67
+ return {
68
+
69
+ 'defaultStartingOffer': MoneyInputToJSON(value.defaultStartingOffer),
70
+ };
71
+ }
72
+
@@ -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 { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface BatchUpdate404Response
20
+ */
21
+ export interface BatchUpdate404Response {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof BatchUpdate404Response
26
+ */
27
+ statusCode: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof BatchUpdate404Response
32
+ */
33
+ message: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof BatchUpdate404Response
38
+ */
39
+ error?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the BatchUpdate404Response interface.
44
+ */
45
+ export function instanceOfBatchUpdate404Response(value: object): boolean {
46
+ let isInstance = true;
47
+ isInstance = isInstance && "statusCode" in value;
48
+ isInstance = isInstance && "message" in value;
49
+
50
+ return isInstance;
51
+ }
52
+
53
+ export function BatchUpdate404ResponseFromJSON(json: any): BatchUpdate404Response {
54
+ return BatchUpdate404ResponseFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function BatchUpdate404ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchUpdate404Response {
58
+ if ((json === undefined) || (json === null)) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'statusCode': json['statusCode'],
64
+ 'message': json['message'],
65
+ 'error': !exists(json, 'error') ? undefined : json['error'],
66
+ };
67
+ }
68
+
69
+ export function BatchUpdate404ResponseToJSON(value?: BatchUpdate404Response | null): any {
70
+ if (value === undefined) {
71
+ return undefined;
72
+ }
73
+ if (value === null) {
74
+ return null;
75
+ }
76
+ return {
77
+
78
+ 'statusCode': value.statusCode,
79
+ 'message': value.message,
80
+ 'error': value.error,
81
+ };
82
+ }
83
+
@@ -0,0 +1,82 @@
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 { exists, mapValues } from '../runtime';
16
+ import type { UpdateDomainInput } from './UpdateDomainInput';
17
+ import {
18
+ UpdateDomainInputFromJSON,
19
+ UpdateDomainInputFromJSONTyped,
20
+ UpdateDomainInputToJSON,
21
+ } from './UpdateDomainInput';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface BatchUpdateDomainsInput
27
+ */
28
+ export interface BatchUpdateDomainsInput {
29
+ /**
30
+ *
31
+ * @type {Array<string>}
32
+ * @memberof BatchUpdateDomainsInput
33
+ */
34
+ domainIds: Array<string>;
35
+ /**
36
+ *
37
+ * @type {UpdateDomainInput}
38
+ * @memberof BatchUpdateDomainsInput
39
+ */
40
+ update: UpdateDomainInput;
41
+ }
42
+
43
+ /**
44
+ * Check if a given object implements the BatchUpdateDomainsInput interface.
45
+ */
46
+ export function instanceOfBatchUpdateDomainsInput(value: object): boolean {
47
+ let isInstance = true;
48
+ isInstance = isInstance && "domainIds" in value;
49
+ isInstance = isInstance && "update" in value;
50
+
51
+ return isInstance;
52
+ }
53
+
54
+ export function BatchUpdateDomainsInputFromJSON(json: any): BatchUpdateDomainsInput {
55
+ return BatchUpdateDomainsInputFromJSONTyped(json, false);
56
+ }
57
+
58
+ export function BatchUpdateDomainsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchUpdateDomainsInput {
59
+ if ((json === undefined) || (json === null)) {
60
+ return json;
61
+ }
62
+ return {
63
+
64
+ 'domainIds': json['domainIds'],
65
+ 'update': UpdateDomainInputFromJSON(json['update']),
66
+ };
67
+ }
68
+
69
+ export function BatchUpdateDomainsInputToJSON(value?: BatchUpdateDomainsInput | null): any {
70
+ if (value === undefined) {
71
+ return undefined;
72
+ }
73
+ if (value === null) {
74
+ return null;
75
+ }
76
+ return {
77
+
78
+ 'domainIds': value.domainIds,
79
+ 'update': UpdateDomainInputToJSON(value.update),
80
+ };
81
+ }
82
+
@@ -0,0 +1,111 @@
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 { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface CreateLeadInput
20
+ */
21
+ export interface CreateLeadInput {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CreateLeadInput
26
+ */
27
+ domainId: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof CreateLeadInput
32
+ */
33
+ firstname: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof CreateLeadInput
38
+ */
39
+ lastname: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof CreateLeadInput
44
+ */
45
+ email: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof CreateLeadInput
50
+ */
51
+ phone: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof CreateLeadInput
56
+ */
57
+ companyName: string | null;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the CreateLeadInput interface.
62
+ */
63
+ export function instanceOfCreateLeadInput(value: object): boolean {
64
+ let isInstance = true;
65
+ isInstance = isInstance && "domainId" in value;
66
+ isInstance = isInstance && "firstname" in value;
67
+ isInstance = isInstance && "lastname" in value;
68
+ isInstance = isInstance && "email" in value;
69
+ isInstance = isInstance && "phone" in value;
70
+ isInstance = isInstance && "companyName" in value;
71
+
72
+ return isInstance;
73
+ }
74
+
75
+ export function CreateLeadInputFromJSON(json: any): CreateLeadInput {
76
+ return CreateLeadInputFromJSONTyped(json, false);
77
+ }
78
+
79
+ export function CreateLeadInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLeadInput {
80
+ if ((json === undefined) || (json === null)) {
81
+ return json;
82
+ }
83
+ return {
84
+
85
+ 'domainId': json['domainId'],
86
+ 'firstname': json['firstname'],
87
+ 'lastname': json['lastname'],
88
+ 'email': json['email'],
89
+ 'phone': json['phone'],
90
+ 'companyName': json['companyName'],
91
+ };
92
+ }
93
+
94
+ export function CreateLeadInputToJSON(value?: CreateLeadInput | null): any {
95
+ if (value === undefined) {
96
+ return undefined;
97
+ }
98
+ if (value === null) {
99
+ return null;
100
+ }
101
+ return {
102
+
103
+ 'domainId': value.domainId,
104
+ 'firstname': value.firstname,
105
+ 'lastname': value.lastname,
106
+ 'email': value.email,
107
+ 'phone': value.phone,
108
+ 'companyName': value.companyName,
109
+ };
110
+ }
111
+