@randock/nameshift-api-client 0.0.11 → 0.0.13

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 (39) hide show
  1. package/.openapi-generator/FILES +9 -0
  2. package/dist/apis/LeadsApi.d.ts +35 -1
  3. package/dist/apis/LeadsApi.js +164 -0
  4. package/dist/models/CreateLeadMessageInput.d.ts +52 -0
  5. package/dist/models/CreateLeadMessageInput.js +64 -0
  6. package/dist/models/CreateLeadMessageInputData.d.ts +32 -0
  7. package/dist/models/CreateLeadMessageInputData.js +51 -0
  8. package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +75 -0
  9. package/dist/models/IntersectionDomainDtoWithAccountDto.js +73 -0
  10. package/dist/models/IntersectionLeadDto.d.ts +52 -0
  11. package/dist/models/IntersectionLeadDto.js +64 -0
  12. package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.d.ts +59 -0
  13. package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +68 -0
  14. package/dist/models/IntersectionLeadDtoWithListFieldsDto.d.ts +3 -3
  15. package/dist/models/LeadDto.d.ts +3 -3
  16. package/dist/models/LeadMessageData.d.ts +32 -0
  17. package/dist/models/LeadMessageData.js +51 -0
  18. package/dist/models/LeadMessageDto.d.ts +79 -0
  19. package/dist/models/LeadMessageDto.js +81 -0
  20. package/dist/models/LeadMessageDtoData.d.ts +32 -0
  21. package/dist/models/LeadMessageDtoData.js +51 -0
  22. package/dist/models/ListLeadMessagesDto.d.ts +32 -0
  23. package/dist/models/ListLeadMessagesDto.js +51 -0
  24. package/dist/models/index.d.ts +9 -0
  25. package/dist/models/index.js +9 -0
  26. package/package.json +1 -2
  27. package/src/apis/LeadsApi.ts +146 -0
  28. package/src/models/CreateLeadMessageInput.ts +102 -0
  29. package/src/models/CreateLeadMessageInputData.ts +73 -0
  30. package/src/models/IntersectionDomainDtoWithAccountDto.ts +142 -0
  31. package/src/models/IntersectionLeadDto.ts +96 -0
  32. package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +112 -0
  33. package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +3 -3
  34. package/src/models/LeadDto.ts +3 -3
  35. package/src/models/LeadMessageData.ts +73 -0
  36. package/src/models/LeadMessageDto.ts +139 -0
  37. package/src/models/LeadMessageDtoData.ts +73 -0
  38. package/src/models/ListLeadMessagesDto.ts +73 -0
  39. package/src/models/index.ts +9 -0
@@ -0,0 +1,112 @@
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 { IntersectionDomainDtoWithAccountDto } from './IntersectionDomainDtoWithAccountDto';
17
+ import {
18
+ IntersectionDomainDtoWithAccountDtoFromJSON,
19
+ IntersectionDomainDtoWithAccountDtoFromJSONTyped,
20
+ IntersectionDomainDtoWithAccountDtoToJSON,
21
+ } from './IntersectionDomainDtoWithAccountDto';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface IntersectionLeadDtoWithLeadDetailsDto
27
+ */
28
+ export interface IntersectionLeadDtoWithLeadDetailsDto {
29
+ /**
30
+ * The current id
31
+ * @type {string}
32
+ * @memberof IntersectionLeadDtoWithLeadDetailsDto
33
+ */
34
+ id: string;
35
+ /**
36
+ * The current lead status
37
+ * @type {string}
38
+ * @memberof IntersectionLeadDtoWithLeadDetailsDto
39
+ */
40
+ status: IntersectionLeadDtoWithLeadDetailsDtoStatusEnum;
41
+ /**
42
+ *
43
+ * @type {IntersectionDomainDtoWithAccountDto}
44
+ * @memberof IntersectionLeadDtoWithLeadDetailsDto
45
+ */
46
+ domain: IntersectionDomainDtoWithAccountDto;
47
+ /**
48
+ * Created at date
49
+ * @type {Date}
50
+ * @memberof IntersectionLeadDtoWithLeadDetailsDto
51
+ */
52
+ createdAt: Date;
53
+ }
54
+
55
+
56
+ /**
57
+ * @export
58
+ */
59
+ export const IntersectionLeadDtoWithLeadDetailsDtoStatusEnum = {
60
+ ACTIVE: 'active',
61
+ DELETED: 'deleted',
62
+ ARCHIVED: 'archived'
63
+ } as const;
64
+ export type IntersectionLeadDtoWithLeadDetailsDtoStatusEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoStatusEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoStatusEnum];
65
+
66
+
67
+ /**
68
+ * Check if a given object implements the IntersectionLeadDtoWithLeadDetailsDto interface.
69
+ */
70
+ export function instanceOfIntersectionLeadDtoWithLeadDetailsDto(value: object): boolean {
71
+ let isInstance = true;
72
+ isInstance = isInstance && "id" in value;
73
+ isInstance = isInstance && "status" in value;
74
+ isInstance = isInstance && "domain" in value;
75
+ isInstance = isInstance && "createdAt" in value;
76
+
77
+ return isInstance;
78
+ }
79
+
80
+ export function IntersectionLeadDtoWithLeadDetailsDtoFromJSON(json: any): IntersectionLeadDtoWithLeadDetailsDto {
81
+ return IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json, false);
82
+ }
83
+
84
+ export function IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionLeadDtoWithLeadDetailsDto {
85
+ if ((json === undefined) || (json === null)) {
86
+ return json;
87
+ }
88
+ return {
89
+
90
+ 'id': json['id'],
91
+ 'status': json['status'],
92
+ 'domain': IntersectionDomainDtoWithAccountDtoFromJSON(json['domain']),
93
+ 'createdAt': (new Date(json['createdAt'])),
94
+ };
95
+ }
96
+
97
+ export function IntersectionLeadDtoWithLeadDetailsDtoToJSON(value?: IntersectionLeadDtoWithLeadDetailsDto | null): any {
98
+ if (value === undefined) {
99
+ return undefined;
100
+ }
101
+ if (value === null) {
102
+ return null;
103
+ }
104
+ return {
105
+
106
+ 'id': value.id,
107
+ 'status': value.status,
108
+ 'domain': IntersectionDomainDtoWithAccountDtoToJSON(value.domain),
109
+ 'createdAt': (value.createdAt.toISOString()),
110
+ };
111
+ }
112
+
@@ -20,13 +20,13 @@ import { exists, mapValues } from '../runtime';
20
20
  */
21
21
  export interface IntersectionLeadDtoWithListFieldsDto {
22
22
  /**
23
- *
23
+ * The current id
24
24
  * @type {string}
25
25
  * @memberof IntersectionLeadDtoWithListFieldsDto
26
26
  */
27
27
  id: string;
28
28
  /**
29
- *
29
+ * The current lead status
30
30
  * @type {string}
31
31
  * @memberof IntersectionLeadDtoWithListFieldsDto
32
32
  */
@@ -44,7 +44,7 @@ export interface IntersectionLeadDtoWithListFieldsDto {
44
44
  */
45
45
  lastMessageType: IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum;
46
46
  /**
47
- *
47
+ * Created at date
48
48
  * @type {Date}
49
49
  * @memberof IntersectionLeadDtoWithListFieldsDto
50
50
  */
@@ -20,19 +20,19 @@ import { exists, mapValues } from '../runtime';
20
20
  */
21
21
  export interface LeadDto {
22
22
  /**
23
- *
23
+ * The current id
24
24
  * @type {string}
25
25
  * @memberof LeadDto
26
26
  */
27
27
  id: string;
28
28
  /**
29
- *
29
+ * The current lead status
30
30
  * @type {string}
31
31
  * @memberof LeadDto
32
32
  */
33
33
  status: LeadDtoStatusEnum;
34
34
  /**
35
- *
35
+ * Created at date
36
36
  * @type {Date}
37
37
  * @memberof LeadDto
38
38
  */
@@ -0,0 +1,73 @@
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 { MoneyDto } from './MoneyDto';
17
+ import {
18
+ MoneyDtoFromJSON,
19
+ MoneyDtoFromJSONTyped,
20
+ MoneyDtoToJSON,
21
+ } from './MoneyDto';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface LeadMessageData
27
+ */
28
+ export interface LeadMessageData {
29
+ /**
30
+ *
31
+ * @type {MoneyDto}
32
+ * @memberof LeadMessageData
33
+ */
34
+ price: MoneyDto;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the LeadMessageData interface.
39
+ */
40
+ export function instanceOfLeadMessageData(value: object): boolean {
41
+ let isInstance = true;
42
+ isInstance = isInstance && "price" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function LeadMessageDataFromJSON(json: any): LeadMessageData {
48
+ return LeadMessageDataFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function LeadMessageDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadMessageData {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'price': MoneyDtoFromJSON(json['price']),
58
+ };
59
+ }
60
+
61
+ export function LeadMessageDataToJSON(value?: LeadMessageData | null): any {
62
+ if (value === undefined) {
63
+ return undefined;
64
+ }
65
+ if (value === null) {
66
+ return null;
67
+ }
68
+ return {
69
+
70
+ 'price': MoneyDtoToJSON(value.price),
71
+ };
72
+ }
73
+
@@ -0,0 +1,139 @@
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 { LeadMessageDtoData } from './LeadMessageDtoData';
17
+ import {
18
+ LeadMessageDtoDataFromJSON,
19
+ LeadMessageDtoDataFromJSONTyped,
20
+ LeadMessageDtoDataToJSON,
21
+ } from './LeadMessageDtoData';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface LeadMessageDto
27
+ */
28
+ export interface LeadMessageDto {
29
+ /**
30
+ * The current id
31
+ * @type {string}
32
+ * @memberof LeadMessageDto
33
+ */
34
+ id: string;
35
+ /**
36
+ * The message type
37
+ * @type {string}
38
+ * @memberof LeadMessageDto
39
+ */
40
+ type: LeadMessageDtoTypeEnum;
41
+ /**
42
+ * The message origin
43
+ * @type {string}
44
+ * @memberof LeadMessageDto
45
+ */
46
+ origin: LeadMessageDtoOriginEnum;
47
+ /**
48
+ *
49
+ * @type {LeadMessageDtoData}
50
+ * @memberof LeadMessageDto
51
+ */
52
+ data: LeadMessageDtoData | null;
53
+ /**
54
+ * Created at date
55
+ * @type {Date}
56
+ * @memberof LeadMessageDto
57
+ */
58
+ createdAt: Date;
59
+ /**
60
+ * Optional message *
61
+ * @type {string}
62
+ * @memberof LeadMessageDto
63
+ */
64
+ message: string | null;
65
+ }
66
+
67
+
68
+ /**
69
+ * @export
70
+ */
71
+ export const LeadMessageDtoTypeEnum = {
72
+ OFFER: 'offer',
73
+ MESSAGE: 'message'
74
+ } as const;
75
+ export type LeadMessageDtoTypeEnum = typeof LeadMessageDtoTypeEnum[keyof typeof LeadMessageDtoTypeEnum];
76
+
77
+ /**
78
+ * @export
79
+ */
80
+ export const LeadMessageDtoOriginEnum = {
81
+ BUYER: 'buyer',
82
+ SELLER: 'seller',
83
+ ADMIN: 'admin'
84
+ } as const;
85
+ export type LeadMessageDtoOriginEnum = typeof LeadMessageDtoOriginEnum[keyof typeof LeadMessageDtoOriginEnum];
86
+
87
+
88
+ /**
89
+ * Check if a given object implements the LeadMessageDto interface.
90
+ */
91
+ export function instanceOfLeadMessageDto(value: object): boolean {
92
+ let isInstance = true;
93
+ isInstance = isInstance && "id" in value;
94
+ isInstance = isInstance && "type" in value;
95
+ isInstance = isInstance && "origin" in value;
96
+ isInstance = isInstance && "data" in value;
97
+ isInstance = isInstance && "createdAt" in value;
98
+ isInstance = isInstance && "message" in value;
99
+
100
+ return isInstance;
101
+ }
102
+
103
+ export function LeadMessageDtoFromJSON(json: any): LeadMessageDto {
104
+ return LeadMessageDtoFromJSONTyped(json, false);
105
+ }
106
+
107
+ export function LeadMessageDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadMessageDto {
108
+ if ((json === undefined) || (json === null)) {
109
+ return json;
110
+ }
111
+ return {
112
+
113
+ 'id': json['id'],
114
+ 'type': json['type'],
115
+ 'origin': json['origin'],
116
+ 'data': LeadMessageDtoDataFromJSON(json['data']),
117
+ 'createdAt': (new Date(json['createdAt'])),
118
+ 'message': json['message'],
119
+ };
120
+ }
121
+
122
+ export function LeadMessageDtoToJSON(value?: LeadMessageDto | null): any {
123
+ if (value === undefined) {
124
+ return undefined;
125
+ }
126
+ if (value === null) {
127
+ return null;
128
+ }
129
+ return {
130
+
131
+ 'id': value.id,
132
+ 'type': value.type,
133
+ 'origin': value.origin,
134
+ 'data': LeadMessageDtoDataToJSON(value.data),
135
+ 'createdAt': (value.createdAt.toISOString()),
136
+ 'message': value.message,
137
+ };
138
+ }
139
+
@@ -0,0 +1,73 @@
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 { MoneyDto } from './MoneyDto';
17
+ import {
18
+ MoneyDtoFromJSON,
19
+ MoneyDtoFromJSONTyped,
20
+ MoneyDtoToJSON,
21
+ } from './MoneyDto';
22
+
23
+ /**
24
+ * Optional data *
25
+ * @export
26
+ * @interface LeadMessageDtoData
27
+ */
28
+ export interface LeadMessageDtoData {
29
+ /**
30
+ *
31
+ * @type {MoneyDto}
32
+ * @memberof LeadMessageDtoData
33
+ */
34
+ price: MoneyDto;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the LeadMessageDtoData interface.
39
+ */
40
+ export function instanceOfLeadMessageDtoData(value: object): boolean {
41
+ let isInstance = true;
42
+ isInstance = isInstance && "price" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function LeadMessageDtoDataFromJSON(json: any): LeadMessageDtoData {
48
+ return LeadMessageDtoDataFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function LeadMessageDtoDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadMessageDtoData {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'price': MoneyDtoFromJSON(json['price']),
58
+ };
59
+ }
60
+
61
+ export function LeadMessageDtoDataToJSON(value?: LeadMessageDtoData | null): any {
62
+ if (value === undefined) {
63
+ return undefined;
64
+ }
65
+ if (value === null) {
66
+ return null;
67
+ }
68
+ return {
69
+
70
+ 'price': MoneyDtoToJSON(value.price),
71
+ };
72
+ }
73
+
@@ -0,0 +1,73 @@
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 { LeadMessageDto } from './LeadMessageDto';
17
+ import {
18
+ LeadMessageDtoFromJSON,
19
+ LeadMessageDtoFromJSONTyped,
20
+ LeadMessageDtoToJSON,
21
+ } from './LeadMessageDto';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface ListLeadMessagesDto
27
+ */
28
+ export interface ListLeadMessagesDto {
29
+ /**
30
+ *
31
+ * @type {Array<LeadMessageDto>}
32
+ * @memberof ListLeadMessagesDto
33
+ */
34
+ messages: Array<LeadMessageDto>;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the ListLeadMessagesDto interface.
39
+ */
40
+ export function instanceOfListLeadMessagesDto(value: object): boolean {
41
+ let isInstance = true;
42
+ isInstance = isInstance && "messages" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function ListLeadMessagesDtoFromJSON(json: any): ListLeadMessagesDto {
48
+ return ListLeadMessagesDtoFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function ListLeadMessagesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListLeadMessagesDto {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'messages': ((json['messages'] as Array<any>).map(LeadMessageDtoFromJSON)),
58
+ };
59
+ }
60
+
61
+ export function ListLeadMessagesDtoToJSON(value?: ListLeadMessagesDto | null): any {
62
+ if (value === undefined) {
63
+ return undefined;
64
+ }
65
+ if (value === null) {
66
+ return null;
67
+ }
68
+ return {
69
+
70
+ 'messages': ((value.messages as Array<any>).map(LeadMessageDtoToJSON)),
71
+ };
72
+ }
73
+
@@ -2,11 +2,14 @@
2
2
  /* eslint-disable */
3
3
  export * from './AccountAddressDto';
4
4
  export * from './AccountAddressInput';
5
+ export * from './AccountDto';
5
6
  export * from './AccountFinancialInput';
6
7
  export * from './AccountSettingsInput';
7
8
  export * from './BatchUpdate404Response';
8
9
  export * from './BatchUpdateDomainsInput';
9
10
  export * from './CreateLeadInput';
11
+ export * from './CreateLeadMessageInput';
12
+ export * from './CreateLeadMessageInputData';
10
13
  export * from './DeleteDomainsInput';
11
14
  export * from './DomainDto';
12
15
  export * from './ImportDomainsDto';
@@ -14,11 +17,17 @@ export * from './IntersectionAccountDtoWithAddressDto';
14
17
  export * from './IntersectionAccountDtoWithFinancialDto';
15
18
  export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';
16
19
  export * from './IntersectionAccountDtoWithSettingsDto';
20
+ export * from './IntersectionDomainDtoWithAccountDto';
21
+ export * from './IntersectionLeadDtoWithLeadDetailsDto';
17
22
  export * from './IntersectionLeadDtoWithListFieldsDto';
18
23
  export * from './LeadDto';
24
+ export * from './LeadMessageData';
25
+ export * from './LeadMessageDto';
26
+ export * from './LeadMessageDtoData';
19
27
  export * from './List200Response';
20
28
  export * from './List400Response';
21
29
  export * from './List401Response';
30
+ export * from './ListLeadMessagesDto';
22
31
  export * from './Login401Response';
23
32
  export * from './Login429Response';
24
33
  export * from './LoginInput';