@randock/nameshift-api-client 0.0.13 → 0.0.14

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 +3 -1
  2. package/dist/apis/LeadsApi.d.ts +13 -1
  3. package/dist/apis/LeadsApi.js +58 -0
  4. package/dist/models/CreateLeadMessageInput.d.ts +1 -22
  5. package/dist/models/CreateLeadMessageInput.js +1 -15
  6. package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.d.ts +22 -0
  7. package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +16 -1
  8. package/dist/models/IntersectionLeadDtoWithListFieldsDto.d.ts +37 -2
  9. package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +23 -1
  10. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.d.ts +32 -0
  11. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.js +51 -0
  12. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.d.ts +37 -0
  13. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.js +53 -0
  14. package/dist/models/LeadDto.d.ts +22 -0
  15. package/dist/models/LeadDto.js +16 -1
  16. package/dist/models/LeadMessageDto.d.ts +6 -0
  17. package/dist/models/LeadMessageDto.js +3 -0
  18. package/dist/models/PutLeadInput.d.ts +32 -0
  19. package/dist/models/PutLeadInput.js +51 -0
  20. package/dist/models/index.d.ts +3 -1
  21. package/dist/models/index.js +3 -1
  22. package/package.json +2 -1
  23. package/src/apis/LeadsApi.ts +53 -0
  24. package/src/models/CreateLeadMessageInput.ts +1 -37
  25. package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +34 -0
  26. package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +61 -2
  27. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.ts +73 -0
  28. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.ts +75 -0
  29. package/src/models/LeadDto.ts +35 -0
  30. package/src/models/LeadMessageDto.ts +9 -0
  31. package/src/models/PutLeadInput.ts +73 -0
  32. package/src/models/index.ts +3 -1
@@ -0,0 +1,75 @@
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 IntersectionLeadDtoWithListFieldsDtoLastOffer
20
+ */
21
+ export interface IntersectionLeadDtoWithListFieldsDtoLastOffer {
22
+ /**
23
+ * Monetary amount, represented as an integer without scale/decimals.
24
+ * @type {number}
25
+ * @memberof IntersectionLeadDtoWithListFieldsDtoLastOffer
26
+ */
27
+ amount: number;
28
+ /**
29
+ * Three letter ISO currency code
30
+ * @type {string}
31
+ * @memberof IntersectionLeadDtoWithListFieldsDtoLastOffer
32
+ */
33
+ currencyCode: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the IntersectionLeadDtoWithListFieldsDtoLastOffer interface.
38
+ */
39
+ export function instanceOfIntersectionLeadDtoWithListFieldsDtoLastOffer(value: object): boolean {
40
+ let isInstance = true;
41
+ isInstance = isInstance && "amount" in value;
42
+ isInstance = isInstance && "currencyCode" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON(json: any): IntersectionLeadDtoWithListFieldsDtoLastOffer {
48
+ return IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionLeadDtoWithListFieldsDtoLastOffer {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'amount': json['amount'],
58
+ 'currencyCode': json['currencyCode'],
59
+ };
60
+ }
61
+
62
+ export function IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON(value?: IntersectionLeadDtoWithListFieldsDtoLastOffer | null): any {
63
+ if (value === undefined) {
64
+ return undefined;
65
+ }
66
+ if (value === null) {
67
+ return null;
68
+ }
69
+ return {
70
+
71
+ 'amount': value.amount,
72
+ 'currencyCode': value.currencyCode,
73
+ };
74
+ }
75
+
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { IntersectionLeadDtoWithListFieldsDtoLastOffer } from './IntersectionLeadDtoWithListFieldsDtoLastOffer';
17
+ import {
18
+ IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON,
19
+ IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSONTyped,
20
+ IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON,
21
+ } from './IntersectionLeadDtoWithListFieldsDtoLastOffer';
22
+
16
23
  /**
17
24
  *
18
25
  * @export
@@ -31,6 +38,18 @@ export interface LeadDto {
31
38
  * @memberof LeadDto
32
39
  */
33
40
  status: LeadDtoStatusEnum;
41
+ /**
42
+ *
43
+ * @type {IntersectionLeadDtoWithListFieldsDtoLastOffer}
44
+ * @memberof LeadDto
45
+ */
46
+ lastOffer: IntersectionLeadDtoWithListFieldsDtoLastOffer | null;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof LeadDto
51
+ */
52
+ lastOfferBy: LeadDtoLastOfferByEnum | null;
34
53
  /**
35
54
  * Created at date
36
55
  * @type {Date}
@@ -50,6 +69,16 @@ export const LeadDtoStatusEnum = {
50
69
  } as const;
51
70
  export type LeadDtoStatusEnum = typeof LeadDtoStatusEnum[keyof typeof LeadDtoStatusEnum];
52
71
 
72
+ /**
73
+ * @export
74
+ */
75
+ export const LeadDtoLastOfferByEnum = {
76
+ BUYER: 'buyer',
77
+ SELLER: 'seller',
78
+ ADMIN: 'admin'
79
+ } as const;
80
+ export type LeadDtoLastOfferByEnum = typeof LeadDtoLastOfferByEnum[keyof typeof LeadDtoLastOfferByEnum];
81
+
53
82
 
54
83
  /**
55
84
  * Check if a given object implements the LeadDto interface.
@@ -58,6 +87,8 @@ export function instanceOfLeadDto(value: object): boolean {
58
87
  let isInstance = true;
59
88
  isInstance = isInstance && "id" in value;
60
89
  isInstance = isInstance && "status" in value;
90
+ isInstance = isInstance && "lastOffer" in value;
91
+ isInstance = isInstance && "lastOfferBy" in value;
61
92
  isInstance = isInstance && "createdAt" in value;
62
93
 
63
94
  return isInstance;
@@ -75,6 +106,8 @@ export function LeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): L
75
106
 
76
107
  'id': json['id'],
77
108
  'status': json['status'],
109
+ 'lastOffer': IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON(json['lastOffer']),
110
+ 'lastOfferBy': json['lastOfferBy'],
78
111
  'createdAt': (new Date(json['createdAt'])),
79
112
  };
80
113
  }
@@ -90,6 +123,8 @@ export function LeadDtoToJSON(value?: LeadDto | null): any {
90
123
 
91
124
  'id': value.id,
92
125
  'status': value.status,
126
+ 'lastOffer': IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON(value.lastOffer),
127
+ 'lastOfferBy': value.lastOfferBy,
93
128
  'createdAt': (value.createdAt.toISOString()),
94
129
  };
95
130
  }
@@ -56,6 +56,12 @@ export interface LeadMessageDto {
56
56
  * @memberof LeadMessageDto
57
57
  */
58
58
  createdAt: Date;
59
+ /**
60
+ * Initials of the buyer/seller *
61
+ * @type {string}
62
+ * @memberof LeadMessageDto
63
+ */
64
+ initials: string;
59
65
  /**
60
66
  * Optional message *
61
67
  * @type {string}
@@ -95,6 +101,7 @@ export function instanceOfLeadMessageDto(value: object): boolean {
95
101
  isInstance = isInstance && "origin" in value;
96
102
  isInstance = isInstance && "data" in value;
97
103
  isInstance = isInstance && "createdAt" in value;
104
+ isInstance = isInstance && "initials" in value;
98
105
  isInstance = isInstance && "message" in value;
99
106
 
100
107
  return isInstance;
@@ -115,6 +122,7 @@ export function LeadMessageDtoFromJSONTyped(json: any, ignoreDiscriminator: bool
115
122
  'origin': json['origin'],
116
123
  'data': LeadMessageDtoDataFromJSON(json['data']),
117
124
  'createdAt': (new Date(json['createdAt'])),
125
+ 'initials': json['initials'],
118
126
  'message': json['message'],
119
127
  };
120
128
  }
@@ -133,6 +141,7 @@ export function LeadMessageDtoToJSON(value?: LeadMessageDto | null): any {
133
141
  'origin': value.origin,
134
142
  'data': LeadMessageDtoDataToJSON(value.data),
135
143
  'createdAt': (value.createdAt.toISOString()),
144
+ 'initials': value.initials,
136
145
  'message': value.message,
137
146
  };
138
147
  }
@@ -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 PutLeadInput
27
+ */
28
+ export interface PutLeadInput {
29
+ /**
30
+ *
31
+ * @type {MoneyDto}
32
+ * @memberof PutLeadInput
33
+ */
34
+ offer: MoneyDto | null;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the PutLeadInput interface.
39
+ */
40
+ export function instanceOfPutLeadInput(value: object): boolean {
41
+ let isInstance = true;
42
+ isInstance = isInstance && "offer" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function PutLeadInputFromJSON(json: any): PutLeadInput {
48
+ return PutLeadInputFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function PutLeadInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLeadInput {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'offer': MoneyDtoFromJSON(json['offer']),
58
+ };
59
+ }
60
+
61
+ export function PutLeadInputToJSON(value?: PutLeadInput | null): any {
62
+ if (value === undefined) {
63
+ return undefined;
64
+ }
65
+ if (value === null) {
66
+ return null;
67
+ }
68
+ return {
69
+
70
+ 'offer': MoneyDtoToJSON(value.offer),
71
+ };
72
+ }
73
+
@@ -9,7 +9,6 @@ export * from './BatchUpdate404Response';
9
9
  export * from './BatchUpdateDomainsInput';
10
10
  export * from './CreateLeadInput';
11
11
  export * from './CreateLeadMessageInput';
12
- export * from './CreateLeadMessageInputData';
13
12
  export * from './DeleteDomainsInput';
14
13
  export * from './DomainDto';
15
14
  export * from './ImportDomainsDto';
@@ -20,6 +19,8 @@ export * from './IntersectionAccountDtoWithSettingsDto';
20
19
  export * from './IntersectionDomainDtoWithAccountDto';
21
20
  export * from './IntersectionLeadDtoWithLeadDetailsDto';
22
21
  export * from './IntersectionLeadDtoWithListFieldsDto';
22
+ export * from './IntersectionLeadDtoWithListFieldsDtoLastMessageData';
23
+ export * from './IntersectionLeadDtoWithListFieldsDtoLastOffer';
23
24
  export * from './LeadDto';
24
25
  export * from './LeadMessageData';
25
26
  export * from './LeadMessageDto';
@@ -37,6 +38,7 @@ export * from './PaginateResponse';
37
38
  export * from './PaginateResponseLinks';
38
39
  export * from './PaginateResponseMeta';
39
40
  export * from './PublicDomainControllerGetDomainIdentifier404Response';
41
+ export * from './PutLeadInput';
40
42
  export * from './TokenDto';
41
43
  export * from './UpdateDomainInput';
42
44
  export * from './UpdateSettings401Response';