@randock/nameshift-api-client 0.0.12 → 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 (32) hide show
  1. package/.openapi-generator/FILES +9 -1
  2. package/dist/apis/LeadsApi.d.ts +26 -3
  3. package/dist/apis/LeadsApi.js +112 -1
  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/IntersectionLeadDtoWithLeadDetailsDto.d.ts +59 -0
  11. package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +68 -0
  12. package/dist/models/LeadMessageData.d.ts +32 -0
  13. package/dist/models/LeadMessageData.js +51 -0
  14. package/dist/models/LeadMessageDto.d.ts +79 -0
  15. package/dist/models/LeadMessageDto.js +81 -0
  16. package/dist/models/LeadMessageDtoData.d.ts +32 -0
  17. package/dist/models/LeadMessageDtoData.js +51 -0
  18. package/dist/models/ListLeadMessagesDto.d.ts +32 -0
  19. package/dist/models/ListLeadMessagesDto.js +51 -0
  20. package/dist/models/index.d.ts +9 -1
  21. package/dist/models/index.js +9 -1
  22. package/package.json +1 -1
  23. package/src/apis/LeadsApi.ts +107 -6
  24. package/src/models/CreateLeadMessageInput.ts +102 -0
  25. package/src/models/CreateLeadMessageInputData.ts +73 -0
  26. package/src/models/IntersectionDomainDtoWithAccountDto.ts +142 -0
  27. package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +112 -0
  28. package/src/models/LeadMessageData.ts +73 -0
  29. package/src/models/LeadMessageDto.ts +139 -0
  30. package/src/models/LeadMessageDtoData.ts +73 -0
  31. package/src/models/ListLeadMessagesDto.ts +73 -0
  32. package/src/models/index.ts +9 -1
@@ -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,12 +17,17 @@ export * from './IntersectionAccountDtoWithAddressDto';
14
17
  export * from './IntersectionAccountDtoWithFinancialDto';
15
18
  export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';
16
19
  export * from './IntersectionAccountDtoWithSettingsDto';
17
- export * from './IntersectionLeadDto';
20
+ export * from './IntersectionDomainDtoWithAccountDto';
21
+ export * from './IntersectionLeadDtoWithLeadDetailsDto';
18
22
  export * from './IntersectionLeadDtoWithListFieldsDto';
19
23
  export * from './LeadDto';
24
+ export * from './LeadMessageData';
25
+ export * from './LeadMessageDto';
26
+ export * from './LeadMessageDtoData';
20
27
  export * from './List200Response';
21
28
  export * from './List400Response';
22
29
  export * from './List401Response';
30
+ export * from './ListLeadMessagesDto';
23
31
  export * from './Login401Response';
24
32
  export * from './Login429Response';
25
33
  export * from './LoginInput';