@randock/nameshift-api-client 0.0.30 → 0.0.32

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 (72) hide show
  1. package/.openapi-generator/FILES +9 -11
  2. package/README.md +3 -3
  3. package/dist/apis/AccountsPublicApi.d.ts +40 -0
  4. package/dist/apis/{AuthApi.js → AccountsPublicApi.js} +53 -9
  5. package/dist/apis/DomainsPublicApi.d.ts +9 -0
  6. package/dist/apis/DomainsPublicApi.js +40 -0
  7. package/dist/apis/index.d.ts +1 -1
  8. package/dist/apis/index.js +1 -1
  9. package/dist/models/ConflictException.d.ts +49 -0
  10. package/dist/models/ConflictException.js +59 -0
  11. package/dist/models/HttpException.d.ts +43 -0
  12. package/dist/models/{List401Response.js → HttpException.js} +15 -13
  13. package/dist/models/NotFoundException.d.ts +43 -0
  14. package/dist/models/NotFoundException.js +55 -0
  15. package/dist/models/RegisterAccountInput.d.ts +49 -0
  16. package/dist/models/RegisterAccountInput.js +59 -0
  17. package/dist/models/ThrottlerException.d.ts +43 -0
  18. package/dist/models/ThrottlerException.js +55 -0
  19. package/dist/models/UnauthorizedException.d.ts +43 -0
  20. package/dist/models/UnauthorizedException.js +55 -0
  21. package/dist/models/ValidationError.d.ts +43 -0
  22. package/dist/models/ValidationError.js +55 -0
  23. package/dist/models/ValidationException.d.ts +44 -0
  24. package/dist/models/ValidationException.js +56 -0
  25. package/dist/models/index.d.ts +8 -10
  26. package/dist/models/index.js +8 -10
  27. package/package.json +1 -1
  28. package/src/apis/AccountsApi.ts +9 -12
  29. package/src/apis/AccountsPublicApi.ts +127 -0
  30. package/src/apis/AdminApi.ts +6 -6
  31. package/src/apis/DashboardApi.ts +6 -6
  32. package/src/apis/DomainsApi.ts +12 -12
  33. package/src/apis/DomainsPublicApi.ts +43 -6
  34. package/src/apis/LeadsApi.ts +6 -6
  35. package/src/apis/LeadsPublicApi.ts +9 -9
  36. package/src/apis/index.ts +1 -1
  37. package/src/models/ConflictException.ts +88 -0
  38. package/src/models/{List401Response.ts → HttpException.ts} +22 -21
  39. package/src/models/{Login429Response.ts → NotFoundException.ts} +22 -21
  40. package/src/models/RegisterAccountInput.ts +88 -0
  41. package/src/models/{Login401Response.ts → ThrottlerException.ts} +22 -21
  42. package/src/models/{BatchUpdate404Response.ts → UnauthorizedException.ts} +21 -20
  43. package/src/models/ValidationError.ts +79 -0
  44. package/src/models/ValidationException.ts +86 -0
  45. package/src/models/index.ts +8 -10
  46. package/dist/apis/AuthApi.d.ts +0 -29
  47. package/dist/models/BatchUpdate404Response.d.ts +0 -43
  48. package/dist/models/BatchUpdate404Response.js +0 -53
  49. package/dist/models/GetDomainSalesInformation404Response.d.ts +0 -43
  50. package/dist/models/GetDomainSalesInformation404Response.js +0 -53
  51. package/dist/models/List400Response.d.ts +0 -43
  52. package/dist/models/List400Response.js +0 -53
  53. package/dist/models/List401Response.d.ts +0 -43
  54. package/dist/models/ListAccounts400Response.d.ts +0 -43
  55. package/dist/models/ListAccounts400Response.js +0 -53
  56. package/dist/models/ListAccounts429Response.d.ts +0 -43
  57. package/dist/models/ListAccounts429Response.js +0 -53
  58. package/dist/models/Login401Response.d.ts +0 -43
  59. package/dist/models/Login401Response.js +0 -53
  60. package/dist/models/Login429Response.d.ts +0 -43
  61. package/dist/models/Login429Response.js +0 -53
  62. package/dist/models/UpdateSettings400Response.d.ts +0 -43
  63. package/dist/models/UpdateSettings400Response.js +0 -53
  64. package/dist/models/UpdateSettings401Response.d.ts +0 -43
  65. package/dist/models/UpdateSettings401Response.js +0 -53
  66. package/src/apis/AuthApi.ts +0 -79
  67. package/src/models/GetDomainSalesInformation404Response.ts +0 -78
  68. package/src/models/List400Response.ts +0 -78
  69. package/src/models/ListAccounts400Response.ts +0 -78
  70. package/src/models/ListAccounts429Response.ts +0 -78
  71. package/src/models/UpdateSettings400Response.ts +0 -78
  72. package/src/models/UpdateSettings401Response.ts +0 -78
@@ -1,43 +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
- /**
13
- * Returned if you are not authorized to change the settings.
14
- * @export
15
- * @interface UpdateSettings401Response
16
- */
17
- export interface UpdateSettings401Response {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof UpdateSettings401Response
22
- */
23
- statusCode: number;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof UpdateSettings401Response
28
- */
29
- message: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof UpdateSettings401Response
34
- */
35
- error?: string;
36
- }
37
- /**
38
- * Check if a given object implements the UpdateSettings401Response interface.
39
- */
40
- export declare function instanceOfUpdateSettings401Response(value: object): boolean;
41
- export declare function UpdateSettings401ResponseFromJSON(json: any): UpdateSettings401Response;
42
- export declare function UpdateSettings401ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSettings401Response;
43
- export declare function UpdateSettings401ResponseToJSON(value?: UpdateSettings401Response | null): any;
@@ -1,53 +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.UpdateSettings401ResponseToJSON = exports.UpdateSettings401ResponseFromJSONTyped = exports.UpdateSettings401ResponseFromJSON = exports.instanceOfUpdateSettings401Response = void 0;
17
- /**
18
- * Check if a given object implements the UpdateSettings401Response interface.
19
- */
20
- function instanceOfUpdateSettings401Response(value) {
21
- if (!('statusCode' in value))
22
- return false;
23
- if (!('message' in value))
24
- return false;
25
- return true;
26
- }
27
- exports.instanceOfUpdateSettings401Response = instanceOfUpdateSettings401Response;
28
- function UpdateSettings401ResponseFromJSON(json) {
29
- return UpdateSettings401ResponseFromJSONTyped(json, false);
30
- }
31
- exports.UpdateSettings401ResponseFromJSON = UpdateSettings401ResponseFromJSON;
32
- function UpdateSettings401ResponseFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'statusCode': json['statusCode'],
38
- 'message': json['message'],
39
- 'error': json['error'] == null ? undefined : json['error'],
40
- };
41
- }
42
- exports.UpdateSettings401ResponseFromJSONTyped = UpdateSettings401ResponseFromJSONTyped;
43
- function UpdateSettings401ResponseToJSON(value) {
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'statusCode': value['statusCode'],
49
- 'message': value['message'],
50
- 'error': value['error'],
51
- };
52
- }
53
- exports.UpdateSettings401ResponseToJSON = UpdateSettings401ResponseToJSON;
@@ -1,79 +0,0 @@
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
-
16
- import * as runtime from '../runtime';
17
- import type {
18
- Login401Response,
19
- Login429Response,
20
- LoginInput,
21
- TokenDto,
22
- } from '../models/index';
23
- import {
24
- Login401ResponseFromJSON,
25
- Login401ResponseToJSON,
26
- Login429ResponseFromJSON,
27
- Login429ResponseToJSON,
28
- LoginInputFromJSON,
29
- LoginInputToJSON,
30
- TokenDtoFromJSON,
31
- TokenDtoToJSON,
32
- } from '../models/index';
33
-
34
- export interface AuthApiLoginRequest {
35
- loginInput: LoginInput;
36
- }
37
-
38
- /**
39
- *
40
- */
41
- export class AuthApi extends runtime.BaseAPI {
42
-
43
- /**
44
- *
45
- */
46
- async loginRaw(requestParameters: AuthApiLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TokenDto>> {
47
- if (requestParameters['loginInput'] == null) {
48
- throw new runtime.RequiredError(
49
- 'loginInput',
50
- 'Required parameter "loginInput" was null or undefined when calling login().'
51
- );
52
- }
53
-
54
- const queryParameters: any = {};
55
-
56
- const headerParameters: runtime.HTTPHeaders = {};
57
-
58
- headerParameters['Content-Type'] = 'application/json';
59
-
60
- const response = await this.request({
61
- path: `/auth/login`,
62
- method: 'POST',
63
- headers: headerParameters,
64
- query: queryParameters,
65
- body: LoginInputToJSON(requestParameters['loginInput']),
66
- }, initOverrides);
67
-
68
- return new runtime.JSONApiResponse(response, (jsonValue) => TokenDtoFromJSON(jsonValue));
69
- }
70
-
71
- /**
72
- *
73
- */
74
- async login(requestParameters: AuthApiLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TokenDto> {
75
- const response = await this.loginRaw(requestParameters, initOverrides);
76
- return await response.value();
77
- }
78
-
79
- }
@@ -1,78 +0,0 @@
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
- * Thrown if domain is not found.
18
- * @export
19
- * @interface GetDomainSalesInformation404Response
20
- */
21
- export interface GetDomainSalesInformation404Response {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof GetDomainSalesInformation404Response
26
- */
27
- statusCode: number;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof GetDomainSalesInformation404Response
32
- */
33
- message: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof GetDomainSalesInformation404Response
38
- */
39
- error?: string;
40
- }
41
-
42
- /**
43
- * Check if a given object implements the GetDomainSalesInformation404Response interface.
44
- */
45
- export function instanceOfGetDomainSalesInformation404Response(value: object): boolean {
46
- if (!('statusCode' in value)) return false;
47
- if (!('message' in value)) return false;
48
- return true;
49
- }
50
-
51
- export function GetDomainSalesInformation404ResponseFromJSON(json: any): GetDomainSalesInformation404Response {
52
- return GetDomainSalesInformation404ResponseFromJSONTyped(json, false);
53
- }
54
-
55
- export function GetDomainSalesInformation404ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetDomainSalesInformation404Response {
56
- if (json == null) {
57
- return json;
58
- }
59
- return {
60
-
61
- 'statusCode': json['statusCode'],
62
- 'message': json['message'],
63
- 'error': json['error'] == null ? undefined : json['error'],
64
- };
65
- }
66
-
67
- export function GetDomainSalesInformation404ResponseToJSON(value?: GetDomainSalesInformation404Response | null): any {
68
- if (value == null) {
69
- return value;
70
- }
71
- return {
72
-
73
- 'statusCode': value['statusCode'],
74
- 'message': value['message'],
75
- 'error': value['error'],
76
- };
77
- }
78
-
@@ -1,78 +0,0 @@
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
- * Thrown in case of request errors.
18
- * @export
19
- * @interface List400Response
20
- */
21
- export interface List400Response {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof List400Response
26
- */
27
- statusCode: number;
28
- /**
29
- *
30
- * @type {Array<object>}
31
- * @memberof List400Response
32
- */
33
- message: Array<object>;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof List400Response
38
- */
39
- error?: string;
40
- }
41
-
42
- /**
43
- * Check if a given object implements the List400Response interface.
44
- */
45
- export function instanceOfList400Response(value: object): boolean {
46
- if (!('statusCode' in value)) return false;
47
- if (!('message' in value)) return false;
48
- return true;
49
- }
50
-
51
- export function List400ResponseFromJSON(json: any): List400Response {
52
- return List400ResponseFromJSONTyped(json, false);
53
- }
54
-
55
- export function List400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): List400Response {
56
- if (json == null) {
57
- return json;
58
- }
59
- return {
60
-
61
- 'statusCode': json['statusCode'],
62
- 'message': json['message'],
63
- 'error': json['error'] == null ? undefined : json['error'],
64
- };
65
- }
66
-
67
- export function List400ResponseToJSON(value?: List400Response | null): any {
68
- if (value == null) {
69
- return value;
70
- }
71
- return {
72
-
73
- 'statusCode': value['statusCode'],
74
- 'message': value['message'],
75
- 'error': value['error'],
76
- };
77
- }
78
-
@@ -1,78 +0,0 @@
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
- * Thrown in case of requestion validation errors.
18
- * @export
19
- * @interface ListAccounts400Response
20
- */
21
- export interface ListAccounts400Response {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof ListAccounts400Response
26
- */
27
- statusCode: number;
28
- /**
29
- *
30
- * @type {Array<object>}
31
- * @memberof ListAccounts400Response
32
- */
33
- message: Array<object>;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof ListAccounts400Response
38
- */
39
- error?: string;
40
- }
41
-
42
- /**
43
- * Check if a given object implements the ListAccounts400Response interface.
44
- */
45
- export function instanceOfListAccounts400Response(value: object): boolean {
46
- if (!('statusCode' in value)) return false;
47
- if (!('message' in value)) return false;
48
- return true;
49
- }
50
-
51
- export function ListAccounts400ResponseFromJSON(json: any): ListAccounts400Response {
52
- return ListAccounts400ResponseFromJSONTyped(json, false);
53
- }
54
-
55
- export function ListAccounts400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAccounts400Response {
56
- if (json == null) {
57
- return json;
58
- }
59
- return {
60
-
61
- 'statusCode': json['statusCode'],
62
- 'message': json['message'],
63
- 'error': json['error'] == null ? undefined : json['error'],
64
- };
65
- }
66
-
67
- export function ListAccounts400ResponseToJSON(value?: ListAccounts400Response | null): any {
68
- if (value == null) {
69
- return value;
70
- }
71
- return {
72
-
73
- 'statusCode': value['statusCode'],
74
- 'message': value['message'],
75
- 'error': value['error'],
76
- };
77
- }
78
-
@@ -1,78 +0,0 @@
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
- * Returned if more than 300 requests are made per minute.
18
- * @export
19
- * @interface ListAccounts429Response
20
- */
21
- export interface ListAccounts429Response {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof ListAccounts429Response
26
- */
27
- statusCode: number;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof ListAccounts429Response
32
- */
33
- message: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof ListAccounts429Response
38
- */
39
- error?: string;
40
- }
41
-
42
- /**
43
- * Check if a given object implements the ListAccounts429Response interface.
44
- */
45
- export function instanceOfListAccounts429Response(value: object): boolean {
46
- if (!('statusCode' in value)) return false;
47
- if (!('message' in value)) return false;
48
- return true;
49
- }
50
-
51
- export function ListAccounts429ResponseFromJSON(json: any): ListAccounts429Response {
52
- return ListAccounts429ResponseFromJSONTyped(json, false);
53
- }
54
-
55
- export function ListAccounts429ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAccounts429Response {
56
- if (json == null) {
57
- return json;
58
- }
59
- return {
60
-
61
- 'statusCode': json['statusCode'],
62
- 'message': json['message'],
63
- 'error': json['error'] == null ? undefined : json['error'],
64
- };
65
- }
66
-
67
- export function ListAccounts429ResponseToJSON(value?: ListAccounts429Response | null): any {
68
- if (value == null) {
69
- return value;
70
- }
71
- return {
72
-
73
- 'statusCode': value['statusCode'],
74
- 'message': value['message'],
75
- 'error': value['error'],
76
- };
77
- }
78
-
@@ -1,78 +0,0 @@
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
- * Thrown in case of validation errors.
18
- * @export
19
- * @interface UpdateSettings400Response
20
- */
21
- export interface UpdateSettings400Response {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof UpdateSettings400Response
26
- */
27
- statusCode: number;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof UpdateSettings400Response
32
- */
33
- message: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof UpdateSettings400Response
38
- */
39
- error?: string;
40
- }
41
-
42
- /**
43
- * Check if a given object implements the UpdateSettings400Response interface.
44
- */
45
- export function instanceOfUpdateSettings400Response(value: object): boolean {
46
- if (!('statusCode' in value)) return false;
47
- if (!('message' in value)) return false;
48
- return true;
49
- }
50
-
51
- export function UpdateSettings400ResponseFromJSON(json: any): UpdateSettings400Response {
52
- return UpdateSettings400ResponseFromJSONTyped(json, false);
53
- }
54
-
55
- export function UpdateSettings400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSettings400Response {
56
- if (json == null) {
57
- return json;
58
- }
59
- return {
60
-
61
- 'statusCode': json['statusCode'],
62
- 'message': json['message'],
63
- 'error': json['error'] == null ? undefined : json['error'],
64
- };
65
- }
66
-
67
- export function UpdateSettings400ResponseToJSON(value?: UpdateSettings400Response | null): any {
68
- if (value == null) {
69
- return value;
70
- }
71
- return {
72
-
73
- 'statusCode': value['statusCode'],
74
- 'message': value['message'],
75
- 'error': value['error'],
76
- };
77
- }
78
-
@@ -1,78 +0,0 @@
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
- * Returned if you are not authorized to change the settings.
18
- * @export
19
- * @interface UpdateSettings401Response
20
- */
21
- export interface UpdateSettings401Response {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof UpdateSettings401Response
26
- */
27
- statusCode: number;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof UpdateSettings401Response
32
- */
33
- message: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof UpdateSettings401Response
38
- */
39
- error?: string;
40
- }
41
-
42
- /**
43
- * Check if a given object implements the UpdateSettings401Response interface.
44
- */
45
- export function instanceOfUpdateSettings401Response(value: object): boolean {
46
- if (!('statusCode' in value)) return false;
47
- if (!('message' in value)) return false;
48
- return true;
49
- }
50
-
51
- export function UpdateSettings401ResponseFromJSON(json: any): UpdateSettings401Response {
52
- return UpdateSettings401ResponseFromJSONTyped(json, false);
53
- }
54
-
55
- export function UpdateSettings401ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSettings401Response {
56
- if (json == null) {
57
- return json;
58
- }
59
- return {
60
-
61
- 'statusCode': json['statusCode'],
62
- 'message': json['message'],
63
- 'error': json['error'] == null ? undefined : json['error'],
64
- };
65
- }
66
-
67
- export function UpdateSettings401ResponseToJSON(value?: UpdateSettings401Response | null): any {
68
- if (value == null) {
69
- return value;
70
- }
71
- return {
72
-
73
- 'statusCode': value['statusCode'],
74
- 'message': value['message'],
75
- 'error': value['error'],
76
- };
77
- }
78
-