@randock/nameshift-api-client 0.0.17 → 0.0.19

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 (157) hide show
  1. package/.openapi-generator/FILES +3 -2
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +6 -4
  4. package/dist/apis/AccountsApi.js +18 -18
  5. package/dist/apis/AuthApi.js +3 -3
  6. package/dist/apis/DomainsApi.d.ts +1 -1
  7. package/dist/apis/DomainsApi.js +30 -30
  8. package/dist/apis/LeadsApi.js +18 -18
  9. package/dist/apis/LeadsPublicApi.js +3 -3
  10. package/dist/apis/index.d.ts +0 -1
  11. package/dist/apis/index.js +0 -1
  12. package/dist/models/AccountAddressDto.js +21 -21
  13. package/dist/models/AccountAddressInput.js +21 -21
  14. package/dist/models/AccountDto.js +10 -12
  15. package/dist/models/AccountFinancialInput.js +16 -16
  16. package/dist/models/AccountSettingsInput.js +6 -11
  17. package/dist/models/BatchUpdate404Response.js +12 -15
  18. package/dist/models/BatchUpdateDomainsInput.js +10 -12
  19. package/dist/models/CreateLeadInput.js +22 -20
  20. package/dist/models/CreateLeadMessageInput.js +7 -10
  21. package/dist/models/DeleteDomainsInput.js +7 -10
  22. package/dist/models/DomainDto.d.ts +2 -2
  23. package/dist/models/DomainDto.js +25 -22
  24. package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.js +19 -18
  25. package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +2 -2
  26. package/dist/models/IntersectionDomainDtoWithAccountDto.js +28 -24
  27. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +2 -2
  28. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +31 -26
  29. package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +22 -20
  30. package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +40 -32
  31. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.js +7 -10
  32. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.js +10 -12
  33. package/dist/models/LeadMessageData.js +7 -10
  34. package/dist/models/LeadMessageDto.js +25 -22
  35. package/dist/models/LeadMessageDtoData.js +7 -10
  36. package/dist/models/List200Response.js +13 -14
  37. package/dist/models/List400Response.d.ts +3 -3
  38. package/dist/models/List400Response.js +12 -15
  39. package/dist/models/List401Response.js +12 -15
  40. package/dist/models/ListLeadMessagesDto.js +7 -10
  41. package/dist/models/Login401Response.js +12 -15
  42. package/dist/models/Login429Response.js +12 -15
  43. package/dist/models/LoginInput.js +10 -12
  44. package/dist/models/MoneyDto.js +10 -12
  45. package/dist/models/MoneyInput.js +10 -12
  46. package/dist/models/ObjectId.js +7 -10
  47. package/dist/models/PaginateResponse.js +13 -14
  48. package/dist/models/PaginateResponseLinks.d.ts +5 -5
  49. package/dist/models/PaginateResponseLinks.js +14 -19
  50. package/dist/models/PaginateResponseMeta.js +18 -23
  51. package/dist/models/PutLeadInput.js +7 -10
  52. package/dist/models/TokenDto.js +7 -10
  53. package/dist/models/UpdateDomainInput.d.ts +2 -2
  54. package/dist/models/UpdateDomainInput.js +8 -13
  55. package/dist/models/UpdateFinancial400Response.d.ts +43 -0
  56. package/dist/models/UpdateFinancial400Response.js +53 -0
  57. package/dist/models/UpdateSettings400Response.d.ts +43 -0
  58. package/dist/models/UpdateSettings400Response.js +53 -0
  59. package/dist/models/UpdateSettings401Response.js +12 -15
  60. package/dist/models/UpdateSettings429Response.js +12 -15
  61. package/dist/models/WithFinancialDtoInner.js +16 -16
  62. package/dist/models/WithSettingsInner.js +7 -10
  63. package/dist/models/index.d.ts +2 -1
  64. package/dist/models/index.js +2 -1
  65. package/dist/runtime.d.ts +2 -3
  66. package/dist/runtime.js +1 -6
  67. package/package.json +1 -1
  68. package/src/apis/AccountsApi.ts +42 -18
  69. package/src/apis/AuthApi.ts +6 -3
  70. package/src/apis/DomainsApi.ts +49 -31
  71. package/src/apis/LeadsApi.ts +39 -18
  72. package/src/apis/LeadsPublicApi.ts +9 -3
  73. package/src/apis/index.ts +0 -1
  74. package/src/models/AccountAddressDto.ts +17 -22
  75. package/src/models/AccountAddressInput.ts +17 -22
  76. package/src/models/AccountDto.ts +9 -14
  77. package/src/models/AccountFinancialInput.ts +13 -18
  78. package/src/models/AccountSettingsInput.ts +7 -12
  79. package/src/models/BatchUpdate404Response.ts +11 -16
  80. package/src/models/BatchUpdateDomainsInput.ts +9 -14
  81. package/src/models/CreateLeadInput.ts +17 -22
  82. package/src/models/CreateLeadMessageInput.ts +7 -12
  83. package/src/models/DeleteDomainsInput.ts +7 -12
  84. package/src/models/DomainDto.ts +21 -26
  85. package/src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts +15 -20
  86. package/src/models/IntersectionDomainDtoWithAccountDto.ts +23 -28
  87. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +25 -30
  88. package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +17 -22
  89. package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +29 -34
  90. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.ts +7 -12
  91. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.ts +9 -14
  92. package/src/models/LeadMessageData.ts +7 -12
  93. package/src/models/LeadMessageDto.ts +19 -24
  94. package/src/models/LeadMessageDtoData.ts +7 -12
  95. package/src/models/List200Response.ts +11 -16
  96. package/src/models/List400Response.ts +14 -19
  97. package/src/models/List401Response.ts +11 -16
  98. package/src/models/ListLeadMessagesDto.ts +7 -12
  99. package/src/models/Login401Response.ts +11 -16
  100. package/src/models/Login429Response.ts +11 -16
  101. package/src/models/LoginInput.ts +9 -14
  102. package/src/models/MoneyDto.ts +9 -14
  103. package/src/models/MoneyInput.ts +9 -14
  104. package/src/models/ObjectId.ts +7 -12
  105. package/src/models/PaginateResponse.ts +11 -16
  106. package/src/models/PaginateResponseLinks.ts +20 -25
  107. package/src/models/PaginateResponseMeta.ts +19 -24
  108. package/src/models/PutLeadInput.ts +7 -12
  109. package/src/models/TokenDto.ts +7 -12
  110. package/src/models/UpdateDomainInput.ts +11 -16
  111. package/src/models/UpdateFinancial400Response.ts +78 -0
  112. package/src/models/UpdateSettings400Response.ts +78 -0
  113. package/src/models/UpdateSettings401Response.ts +11 -16
  114. package/src/models/UpdateSettings429Response.ts +11 -16
  115. package/src/models/WithFinancialDtoInner.ts +13 -18
  116. package/src/models/WithSettingsInner.ts +7 -12
  117. package/src/models/index.ts +2 -1
  118. package/src/runtime.ts +3 -8
  119. package/dist/apis/DomainsPublicApi.d.ts +0 -35
  120. package/dist/apis/DomainsPublicApi.js +0 -164
  121. package/dist/apis/TestApi.d.ts +0 -23
  122. package/dist/apis/TestApi.js +0 -116
  123. package/dist/models/CreateLeadMessageInputData.d.ts +0 -32
  124. package/dist/models/CreateLeadMessageInputData.js +0 -51
  125. package/dist/models/ImportDomainsDto.d.ts +0 -49
  126. package/dist/models/ImportDomainsDto.js +0 -59
  127. package/dist/models/IntersectionAccountDtoWithAddressDto.d.ts +0 -44
  128. package/dist/models/IntersectionAccountDtoWithAddressDto.js +0 -57
  129. package/dist/models/IntersectionAccountDtoWithFinancialDto.d.ts +0 -44
  130. package/dist/models/IntersectionAccountDtoWithFinancialDto.js +0 -57
  131. package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.d.ts +0 -49
  132. package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.js +0 -56
  133. package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +0 -44
  134. package/dist/models/IntersectionAccountDtoWithSettingsDto.js +0 -57
  135. package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.d.ts +0 -32
  136. package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.js +0 -51
  137. package/dist/models/IntersectionLeadDto.d.ts +0 -52
  138. package/dist/models/IntersectionLeadDto.js +0 -64
  139. package/dist/models/LeadDto.d.ts +0 -74
  140. package/dist/models/LeadDto.js +0 -79
  141. package/dist/models/List429Response.d.ts +0 -43
  142. package/dist/models/List429Response.js +0 -56
  143. package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.d.ts +0 -43
  144. package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.js +0 -56
  145. package/src/apis/DomainsPublicApi.ts +0 -97
  146. package/src/apis/TestApi.ts +0 -46
  147. package/src/models/CreateLeadMessageInputData.ts +0 -73
  148. package/src/models/ImportDomainsDto.ts +0 -93
  149. package/src/models/IntersectionAccountDtoWithAddressDto.ts +0 -91
  150. package/src/models/IntersectionAccountDtoWithFinancialDto.ts +0 -91
  151. package/src/models/IntersectionAccountDtoWithFinancialDtoFinancial.ts +0 -89
  152. package/src/models/IntersectionAccountDtoWithSettingsDto.ts +0 -91
  153. package/src/models/IntersectionAccountDtoWithSettingsDtoSettings.ts +0 -72
  154. package/src/models/IntersectionLeadDto.ts +0 -96
  155. package/src/models/LeadDto.ts +0 -131
  156. package/src/models/List429Response.ts +0 -83
  157. package/src/models/PublicDomainControllerGetDomainIdentifier404Response.ts +0 -83
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  /**
17
17
  * Returned if more than 300 requests are made per minute.
18
18
  * @export
@@ -43,11 +43,9 @@ export interface UpdateSettings429Response {
43
43
  * Check if a given object implements the UpdateSettings429Response interface.
44
44
  */
45
45
  export function instanceOfUpdateSettings429Response(value: object): boolean {
46
- let isInstance = true;
47
- isInstance = isInstance && "statusCode" in value;
48
- isInstance = isInstance && "message" in value;
49
-
50
- return isInstance;
46
+ if (!('statusCode' in value)) return false;
47
+ if (!('message' in value)) return false;
48
+ return true;
51
49
  }
52
50
 
53
51
  export function UpdateSettings429ResponseFromJSON(json: any): UpdateSettings429Response {
@@ -55,29 +53,26 @@ export function UpdateSettings429ResponseFromJSON(json: any): UpdateSettings429R
55
53
  }
56
54
 
57
55
  export function UpdateSettings429ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSettings429Response {
58
- if ((json === undefined) || (json === null)) {
56
+ if (json == null) {
59
57
  return json;
60
58
  }
61
59
  return {
62
60
 
63
61
  'statusCode': json['statusCode'],
64
62
  'message': json['message'],
65
- 'error': !exists(json, 'error') ? undefined : json['error'],
63
+ 'error': json['error'] == null ? undefined : json['error'],
66
64
  };
67
65
  }
68
66
 
69
67
  export function UpdateSettings429ResponseToJSON(value?: UpdateSettings429Response | null): any {
70
- if (value === undefined) {
71
- return undefined;
72
- }
73
- if (value === null) {
74
- return null;
68
+ if (value == null) {
69
+ return value;
75
70
  }
76
71
  return {
77
72
 
78
- 'statusCode': value.statusCode,
79
- 'message': value.message,
80
- 'error': value.error,
73
+ 'statusCode': value['statusCode'],
74
+ 'message': value['message'],
75
+ 'error': value['error'],
81
76
  };
82
77
  }
83
78
 
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
@@ -49,13 +49,11 @@ export interface WithFinancialDtoInner {
49
49
  * Check if a given object implements the WithFinancialDtoInner interface.
50
50
  */
51
51
  export function instanceOfWithFinancialDtoInner(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;
52
+ if (!('company' in value)) return false;
53
+ if (!('companyName' in value)) return false;
54
+ if (!('companyVatNumber' in value)) return false;
55
+ if (!('companyRegistrationNumber' in value)) return false;
56
+ return true;
59
57
  }
60
58
 
61
59
  export function WithFinancialDtoInnerFromJSON(json: any): WithFinancialDtoInner {
@@ -63,7 +61,7 @@ export function WithFinancialDtoInnerFromJSON(json: any): WithFinancialDtoInner
63
61
  }
64
62
 
65
63
  export function WithFinancialDtoInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithFinancialDtoInner {
66
- if ((json === undefined) || (json === null)) {
64
+ if (json == null) {
67
65
  return json;
68
66
  }
69
67
  return {
@@ -76,18 +74,15 @@ export function WithFinancialDtoInnerFromJSONTyped(json: any, ignoreDiscriminato
76
74
  }
77
75
 
78
76
  export function WithFinancialDtoInnerToJSON(value?: WithFinancialDtoInner | null): any {
79
- if (value === undefined) {
80
- return undefined;
81
- }
82
- if (value === null) {
83
- return null;
77
+ if (value == null) {
78
+ return value;
84
79
  }
85
80
  return {
86
81
 
87
- 'company': value.company,
88
- 'companyName': value.companyName,
89
- 'companyVatNumber': value.companyVatNumber,
90
- 'companyRegistrationNumber': value.companyRegistrationNumber,
82
+ 'company': value['company'],
83
+ 'companyName': value['companyName'],
84
+ 'companyVatNumber': value['companyVatNumber'],
85
+ 'companyRegistrationNumber': value['companyRegistrationNumber'],
91
86
  };
92
87
  }
93
88
 
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  import type { MoneyDto } from './MoneyDto';
17
17
  import {
18
18
  MoneyDtoFromJSON,
@@ -38,10 +38,8 @@ export interface WithSettingsInner {
38
38
  * Check if a given object implements the WithSettingsInner interface.
39
39
  */
40
40
  export function instanceOfWithSettingsInner(value: object): boolean {
41
- let isInstance = true;
42
- isInstance = isInstance && "defaultStartingOffer" in value;
43
-
44
- return isInstance;
41
+ if (!('defaultStartingOffer' in value)) return false;
42
+ return true;
45
43
  }
46
44
 
47
45
  export function WithSettingsInnerFromJSON(json: any): WithSettingsInner {
@@ -49,7 +47,7 @@ export function WithSettingsInnerFromJSON(json: any): WithSettingsInner {
49
47
  }
50
48
 
51
49
  export function WithSettingsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithSettingsInner {
52
- if ((json === undefined) || (json === null)) {
50
+ if (json == null) {
53
51
  return json;
54
52
  }
55
53
  return {
@@ -59,15 +57,12 @@ export function WithSettingsInnerFromJSONTyped(json: any, ignoreDiscriminator: b
59
57
  }
60
58
 
61
59
  export function WithSettingsInnerToJSON(value?: WithSettingsInner | null): any {
62
- if (value === undefined) {
63
- return undefined;
64
- }
65
- if (value === null) {
66
- return null;
60
+ if (value == null) {
61
+ return value;
67
62
  }
68
63
  return {
69
64
 
70
- 'defaultStartingOffer': MoneyDtoToJSON(value.defaultStartingOffer),
65
+ 'defaultStartingOffer': MoneyDtoToJSON(value['defaultStartingOffer']),
71
66
  };
72
67
  }
73
68
 
@@ -34,10 +34,11 @@ export * from './ObjectId';
34
34
  export * from './PaginateResponse';
35
35
  export * from './PaginateResponseLinks';
36
36
  export * from './PaginateResponseMeta';
37
- export * from './PublicDomainControllerGetDomainIdentifier404Response';
38
37
  export * from './PutLeadInput';
39
38
  export * from './TokenDto';
40
39
  export * from './UpdateDomainInput';
40
+ export * from './UpdateFinancial400Response';
41
+ export * from './UpdateSettings400Response';
41
42
  export * from './UpdateSettings401Response';
42
43
  export * from './UpdateSettings429Response';
43
44
  export * from './WithFinancialDtoInner';
package/src/runtime.ts CHANGED
@@ -22,7 +22,7 @@ export interface ConfigurationParameters {
22
22
  queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings
23
23
  username?: string; // parameter for basic security
24
24
  password?: string; // parameter for basic security
25
- apiKey?: string | ((name: string) => string); // parameter for apiKey security
25
+ apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>); // parameter for apiKey security
26
26
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>); // parameter for oauth2 security
27
27
  headers?: HTTPHeaders; //header params we want to use on every request
28
28
  credentials?: RequestCredentials; //value for the credentials param we want to use on each request
@@ -59,7 +59,7 @@ export class Configuration {
59
59
  return this.configuration.password;
60
60
  }
61
61
 
62
- get apiKey(): ((name: string) => string) | undefined {
62
+ get apiKey(): ((name: string) => string | Promise<string>) | undefined {
63
63
  const apiKey = this.configuration.apiKey;
64
64
  if (apiKey) {
65
65
  return typeof apiKey === 'function' ? apiKey : () => apiKey;
@@ -91,7 +91,7 @@ export const DefaultConfig = new Configuration();
91
91
  */
92
92
  export class BaseAPI {
93
93
 
94
- private static readonly jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
94
+ private static readonly jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
95
95
  private middleware: Middleware[];
96
96
 
97
97
  constructor(protected configuration = DefaultConfig) {
@@ -310,11 +310,6 @@ export interface RequestOpts {
310
310
  body?: HTTPBody;
311
311
  }
312
312
 
313
- export function exists(json: any, key: string) {
314
- const value = json[key];
315
- return value !== null && value !== undefined;
316
- }
317
-
318
313
  export function querystring(params: HTTPQuery, prefix: string = ''): string {
319
314
  return Object.keys(params)
320
315
  .map(key => querystringSingleKey(key, params[key], prefix))
@@ -1,35 +0,0 @@
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 * as runtime from '../runtime';
13
- export interface DomainsPublicApiPublicDomainControllerGetCaddyRequest {
14
- domain: string;
15
- }
16
- export interface DomainsPublicApiPublicDomainControllerGetDomainIdentifierRequest {
17
- domainName: string;
18
- }
19
- /**
20
- *
21
- */
22
- export declare class DomainsPublicApi extends runtime.BaseAPI {
23
- /**
24
- */
25
- publicDomainControllerGetCaddyRaw(requestParameters: DomainsPublicApiPublicDomainControllerGetCaddyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
26
- /**
27
- */
28
- publicDomainControllerGetCaddy(requestParameters: DomainsPublicApiPublicDomainControllerGetCaddyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
29
- /**
30
- */
31
- publicDomainControllerGetDomainIdentifierRaw(requestParameters: DomainsPublicApiPublicDomainControllerGetDomainIdentifierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
32
- /**
33
- */
34
- publicDomainControllerGetDomainIdentifier(requestParameters: DomainsPublicApiPublicDomainControllerGetDomainIdentifierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
35
- }
@@ -1,164 +0,0 @@
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
- var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = function (d, b) {
17
- extendStatics = Object.setPrototypeOf ||
18
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
- return extendStatics(d, b);
21
- };
22
- return function (d, b) {
23
- if (typeof b !== "function" && b !== null)
24
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
- extendStatics(d, b);
26
- function __() { this.constructor = d; }
27
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
- };
29
- })();
30
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
- return new (P || (P = Promise))(function (resolve, reject) {
33
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
- step((generator = generator.apply(thisArg, _arguments || [])).next());
37
- });
38
- };
39
- var __generator = (this && this.__generator) || function (thisArg, body) {
40
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
41
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
- function verb(n) { return function (v) { return step([n, v]); }; }
43
- function step(op) {
44
- if (f) throw new TypeError("Generator is already executing.");
45
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
- if (y = 0, t) op = [op[0] & 2, t.value];
48
- switch (op[0]) {
49
- case 0: case 1: t = op; break;
50
- case 4: _.label++; return { value: op[1], done: false };
51
- case 5: _.label++; y = op[1]; op = [0]; continue;
52
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
- default:
54
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
- if (t[2]) _.ops.pop();
59
- _.trys.pop(); continue;
60
- }
61
- op = body.call(thisArg, _);
62
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
- }
65
- };
66
- Object.defineProperty(exports, "__esModule", { value: true });
67
- exports.DomainsPublicApi = void 0;
68
- var runtime = require("../runtime");
69
- /**
70
- *
71
- */
72
- var DomainsPublicApi = /** @class */ (function (_super) {
73
- __extends(DomainsPublicApi, _super);
74
- function DomainsPublicApi() {
75
- return _super !== null && _super.apply(this, arguments) || this;
76
- }
77
- /**
78
- */
79
- DomainsPublicApi.prototype.publicDomainControllerGetCaddyRaw = function (requestParameters, initOverrides) {
80
- return __awaiter(this, void 0, void 0, function () {
81
- var queryParameters, headerParameters, response;
82
- return __generator(this, function (_a) {
83
- switch (_a.label) {
84
- case 0:
85
- if (requestParameters.domain === null || requestParameters.domain === undefined) {
86
- throw new runtime.RequiredError('domain', 'Required parameter requestParameters.domain was null or undefined when calling publicDomainControllerGetCaddy.');
87
- }
88
- queryParameters = {};
89
- if (requestParameters.domain !== undefined) {
90
- queryParameters['domain'] = requestParameters.domain;
91
- }
92
- headerParameters = {};
93
- return [4 /*yield*/, this.request({
94
- path: "/caddy",
95
- method: 'GET',
96
- headers: headerParameters,
97
- query: queryParameters,
98
- }, initOverrides)];
99
- case 1:
100
- response = _a.sent();
101
- return [2 /*return*/, new runtime.VoidApiResponse(response)];
102
- }
103
- });
104
- });
105
- };
106
- /**
107
- */
108
- DomainsPublicApi.prototype.publicDomainControllerGetCaddy = function (requestParameters, initOverrides) {
109
- return __awaiter(this, void 0, void 0, function () {
110
- return __generator(this, function (_a) {
111
- switch (_a.label) {
112
- case 0: return [4 /*yield*/, this.publicDomainControllerGetCaddyRaw(requestParameters, initOverrides)];
113
- case 1:
114
- _a.sent();
115
- return [2 /*return*/];
116
- }
117
- });
118
- });
119
- };
120
- /**
121
- */
122
- DomainsPublicApi.prototype.publicDomainControllerGetDomainIdentifierRaw = function (requestParameters, initOverrides) {
123
- return __awaiter(this, void 0, void 0, function () {
124
- var queryParameters, headerParameters, response;
125
- return __generator(this, function (_a) {
126
- switch (_a.label) {
127
- case 0:
128
- if (requestParameters.domainName === null || requestParameters.domainName === undefined) {
129
- throw new runtime.RequiredError('domainName', 'Required parameter requestParameters.domainName was null or undefined when calling publicDomainControllerGetDomainIdentifier.');
130
- }
131
- queryParameters = {};
132
- headerParameters = {};
133
- return [4 /*yield*/, this.request({
134
- path: "/domains/by-name/{domainName}/identifier".replace("{".concat("domainName", "}"), encodeURIComponent(String(requestParameters.domainName))),
135
- method: 'GET',
136
- headers: headerParameters,
137
- query: queryParameters,
138
- }, initOverrides)];
139
- case 1:
140
- response = _a.sent();
141
- return [2 /*return*/, new runtime.JSONApiResponse(response)];
142
- }
143
- });
144
- });
145
- };
146
- /**
147
- */
148
- DomainsPublicApi.prototype.publicDomainControllerGetDomainIdentifier = function (requestParameters, initOverrides) {
149
- return __awaiter(this, void 0, void 0, function () {
150
- var response;
151
- return __generator(this, function (_a) {
152
- switch (_a.label) {
153
- case 0: return [4 /*yield*/, this.publicDomainControllerGetDomainIdentifierRaw(requestParameters, initOverrides)];
154
- case 1:
155
- response = _a.sent();
156
- return [4 /*yield*/, response.value()];
157
- case 2: return [2 /*return*/, _a.sent()];
158
- }
159
- });
160
- });
161
- };
162
- return DomainsPublicApi;
163
- }(runtime.BaseAPI));
164
- exports.DomainsPublicApi = DomainsPublicApi;
@@ -1,23 +0,0 @@
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 * as runtime from '../runtime';
13
- /**
14
- *
15
- */
16
- export declare class TestApi extends runtime.BaseAPI {
17
- /**
18
- */
19
- testControllerTestRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
20
- /**
21
- */
22
- testControllerTest(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
23
- }
@@ -1,116 +0,0 @@
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
- var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = function (d, b) {
17
- extendStatics = Object.setPrototypeOf ||
18
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
- return extendStatics(d, b);
21
- };
22
- return function (d, b) {
23
- if (typeof b !== "function" && b !== null)
24
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
- extendStatics(d, b);
26
- function __() { this.constructor = d; }
27
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
- };
29
- })();
30
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
- return new (P || (P = Promise))(function (resolve, reject) {
33
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
- step((generator = generator.apply(thisArg, _arguments || [])).next());
37
- });
38
- };
39
- var __generator = (this && this.__generator) || function (thisArg, body) {
40
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
41
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
- function verb(n) { return function (v) { return step([n, v]); }; }
43
- function step(op) {
44
- if (f) throw new TypeError("Generator is already executing.");
45
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
- if (y = 0, t) op = [op[0] & 2, t.value];
48
- switch (op[0]) {
49
- case 0: case 1: t = op; break;
50
- case 4: _.label++; return { value: op[1], done: false };
51
- case 5: _.label++; y = op[1]; op = [0]; continue;
52
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
- default:
54
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
- if (t[2]) _.ops.pop();
59
- _.trys.pop(); continue;
60
- }
61
- op = body.call(thisArg, _);
62
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
- }
65
- };
66
- Object.defineProperty(exports, "__esModule", { value: true });
67
- exports.TestApi = void 0;
68
- var runtime = require("../runtime");
69
- /**
70
- *
71
- */
72
- var TestApi = /** @class */ (function (_super) {
73
- __extends(TestApi, _super);
74
- function TestApi() {
75
- return _super !== null && _super.apply(this, arguments) || this;
76
- }
77
- /**
78
- */
79
- TestApi.prototype.testControllerTestRaw = function (initOverrides) {
80
- return __awaiter(this, void 0, void 0, function () {
81
- var queryParameters, headerParameters, response;
82
- return __generator(this, function (_a) {
83
- switch (_a.label) {
84
- case 0:
85
- queryParameters = {};
86
- headerParameters = {};
87
- return [4 /*yield*/, this.request({
88
- path: "/testtesttest",
89
- method: 'GET',
90
- headers: headerParameters,
91
- query: queryParameters,
92
- }, initOverrides)];
93
- case 1:
94
- response = _a.sent();
95
- return [2 /*return*/, new runtime.VoidApiResponse(response)];
96
- }
97
- });
98
- });
99
- };
100
- /**
101
- */
102
- TestApi.prototype.testControllerTest = function (initOverrides) {
103
- return __awaiter(this, void 0, void 0, function () {
104
- return __generator(this, function (_a) {
105
- switch (_a.label) {
106
- case 0: return [4 /*yield*/, this.testControllerTestRaw(initOverrides)];
107
- case 1:
108
- _a.sent();
109
- return [2 /*return*/];
110
- }
111
- });
112
- });
113
- };
114
- return TestApi;
115
- }(runtime.BaseAPI));
116
- exports.TestApi = TestApi;
@@ -1,32 +0,0 @@
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 { MoneyDto } from './MoneyDto';
13
- /**
14
- *
15
- * @export
16
- * @interface CreateLeadMessageInputData
17
- */
18
- export interface CreateLeadMessageInputData {
19
- /**
20
- *
21
- * @type {MoneyDto}
22
- * @memberof CreateLeadMessageInputData
23
- */
24
- price: MoneyDto;
25
- }
26
- /**
27
- * Check if a given object implements the CreateLeadMessageInputData interface.
28
- */
29
- export declare function instanceOfCreateLeadMessageInputData(value: object): boolean;
30
- export declare function CreateLeadMessageInputDataFromJSON(json: any): CreateLeadMessageInputData;
31
- export declare function CreateLeadMessageInputDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLeadMessageInputData;
32
- export declare function CreateLeadMessageInputDataToJSON(value?: CreateLeadMessageInputData | null): any;
@@ -1,51 +0,0 @@
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.CreateLeadMessageInputDataToJSON = exports.CreateLeadMessageInputDataFromJSONTyped = exports.CreateLeadMessageInputDataFromJSON = exports.instanceOfCreateLeadMessageInputData = void 0;
17
- var MoneyDto_1 = require("./MoneyDto");
18
- /**
19
- * Check if a given object implements the CreateLeadMessageInputData interface.
20
- */
21
- function instanceOfCreateLeadMessageInputData(value) {
22
- var isInstance = true;
23
- isInstance = isInstance && "price" in value;
24
- return isInstance;
25
- }
26
- exports.instanceOfCreateLeadMessageInputData = instanceOfCreateLeadMessageInputData;
27
- function CreateLeadMessageInputDataFromJSON(json) {
28
- return CreateLeadMessageInputDataFromJSONTyped(json, false);
29
- }
30
- exports.CreateLeadMessageInputDataFromJSON = CreateLeadMessageInputDataFromJSON;
31
- function CreateLeadMessageInputDataFromJSONTyped(json, ignoreDiscriminator) {
32
- if ((json === undefined) || (json === null)) {
33
- return json;
34
- }
35
- return {
36
- 'price': (0, MoneyDto_1.MoneyDtoFromJSON)(json['price']),
37
- };
38
- }
39
- exports.CreateLeadMessageInputDataFromJSONTyped = CreateLeadMessageInputDataFromJSONTyped;
40
- function CreateLeadMessageInputDataToJSON(value) {
41
- if (value === undefined) {
42
- return undefined;
43
- }
44
- if (value === null) {
45
- return null;
46
- }
47
- return {
48
- 'price': (0, MoneyDto_1.MoneyDtoToJSON)(value.price),
49
- };
50
- }
51
- exports.CreateLeadMessageInputDataToJSON = CreateLeadMessageInputDataToJSON;