@randock/nameshift-api-client 0.0.150 → 0.0.152
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.
- package/README.md +3 -3
- package/dist/apis/LeadsApi.js +2 -2
- package/dist/models/BuyerLeadListItemDto.d.ts +1 -2
- package/dist/models/BuyerLeadListItemDto.js +1 -2
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto.d.ts +7 -2
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto.js +5 -2
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.d.ts +7 -2
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +5 -2
- package/dist/models/LeadDto.d.ts +7 -2
- package/dist/models/LeadDto.js +5 -2
- package/dist/models/LeadStatusDto.d.ts +1 -2
- package/dist/models/LeadStatusDto.js +1 -2
- package/dist/models/PaginateResponseMeta.d.ts +1 -1
- package/dist/models/PaginateResponseMeta.js +2 -2
- package/dist/models/PublicLeadDto.d.ts +1 -2
- package/dist/models/PublicLeadDto.js +1 -2
- package/package.json +1 -1
- package/src/apis/LeadsApi.ts +2 -2
- package/src/models/BuyerLeadListItemDto.ts +1 -2
- package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto.ts +10 -2
- package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +10 -2
- package/src/models/LeadDto.ts +10 -2
- package/src/models/LeadStatusDto.ts +1 -2
- package/src/models/PaginateResponseMeta.ts +3 -3
- package/src/models/PublicLeadDto.ts +1 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.152
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@0.0.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.152 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
15b6fc2cef83211dfe59a324b9e3e58ec41b6548a16d789fcbb6d57ffac26ada8b3e569b8a3343d40bdad142b45bdda2
|
package/dist/apis/LeadsApi.js
CHANGED
|
@@ -150,7 +150,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
150
150
|
}
|
|
151
151
|
_a.label = 2;
|
|
152
152
|
case 2: return [4 /*yield*/, this.request({
|
|
153
|
-
path: "/private/leads/{leadId}/status/archive".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
153
|
+
path: "/private/leads/{leadId}/status/archive-for-seller".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
154
154
|
method: 'POST',
|
|
155
155
|
headers: headerParameters,
|
|
156
156
|
query: queryParameters,
|
|
@@ -540,7 +540,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
540
540
|
}
|
|
541
541
|
_a.label = 2;
|
|
542
542
|
case 2: return [4 /*yield*/, this.request({
|
|
543
|
-
path: "/private/leads/{leadId}/status/unarchive".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
543
|
+
path: "/private/leads/{leadId}/status/unarchive-for-seller".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
544
544
|
method: 'POST',
|
|
545
545
|
headers: headerParameters,
|
|
546
546
|
query: queryParameters,
|
|
@@ -74,8 +74,7 @@ export declare const BuyerLeadListItemDtoStatusEnum: {
|
|
|
74
74
|
readonly ACTIVE: "active";
|
|
75
75
|
readonly ACCEPTED: "accepted";
|
|
76
76
|
readonly FINISHED: "finished";
|
|
77
|
-
readonly
|
|
78
|
-
readonly ARCHIVED: "archived";
|
|
77
|
+
readonly CLOSED: "closed";
|
|
79
78
|
};
|
|
80
79
|
export type BuyerLeadListItemDtoStatusEnum = typeof BuyerLeadListItemDtoStatusEnum[keyof typeof BuyerLeadListItemDtoStatusEnum];
|
|
81
80
|
/**
|
|
@@ -54,6 +54,12 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto {
|
|
|
54
54
|
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
|
|
55
55
|
*/
|
|
56
56
|
buyer: BuyerDto;
|
|
57
|
+
/**
|
|
58
|
+
* Archived status
|
|
59
|
+
* @type {boolean}
|
|
60
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
|
|
61
|
+
*/
|
|
62
|
+
archived: boolean;
|
|
57
63
|
/**
|
|
58
64
|
* Created at date
|
|
59
65
|
* @type {Date}
|
|
@@ -87,8 +93,7 @@ export declare const IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoSta
|
|
|
87
93
|
readonly ACTIVE: "active";
|
|
88
94
|
readonly ACCEPTED: "accepted";
|
|
89
95
|
readonly FINISHED: "finished";
|
|
90
|
-
readonly
|
|
91
|
-
readonly ARCHIVED: "archived";
|
|
96
|
+
readonly CLOSED: "closed";
|
|
92
97
|
};
|
|
93
98
|
export type IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoStatusEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoStatusEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoStatusEnum];
|
|
94
99
|
/**
|
|
@@ -30,8 +30,7 @@ exports.IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoStatusEnum = {
|
|
|
30
30
|
ACTIVE: 'active',
|
|
31
31
|
ACCEPTED: 'accepted',
|
|
32
32
|
FINISHED: 'finished',
|
|
33
|
-
|
|
34
|
-
ARCHIVED: 'archived'
|
|
33
|
+
CLOSED: 'closed'
|
|
35
34
|
};
|
|
36
35
|
/**
|
|
37
36
|
* @export
|
|
@@ -57,6 +56,8 @@ function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto(valu
|
|
|
57
56
|
return false;
|
|
58
57
|
if (!('buyer' in value) || value['buyer'] === undefined)
|
|
59
58
|
return false;
|
|
59
|
+
if (!('archived' in value) || value['archived'] === undefined)
|
|
60
|
+
return false;
|
|
60
61
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
61
62
|
return false;
|
|
62
63
|
if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined)
|
|
@@ -81,6 +82,7 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSONTyped(j
|
|
|
81
82
|
'lastOfferBy': json['lastOfferBy'],
|
|
82
83
|
'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoFromJSON)(json['domain']),
|
|
83
84
|
'buyer': (0, BuyerDto_1.BuyerDtoFromJSON)(json['buyer']),
|
|
85
|
+
'archived': json['archived'],
|
|
84
86
|
'createdAt': (new Date(json['createdAt'])),
|
|
85
87
|
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
86
88
|
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
@@ -102,6 +104,7 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoToJSONTyped(val
|
|
|
102
104
|
'lastOfferBy': value['lastOfferBy'],
|
|
103
105
|
'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoToJSON)(value['domain']),
|
|
104
106
|
'buyer': (0, BuyerDto_1.BuyerDtoToJSON)(value['buyer']),
|
|
107
|
+
'archived': value['archived'],
|
|
105
108
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
106
109
|
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
|
107
110
|
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
@@ -60,6 +60,12 @@ export interface IntersectionLeadDtoWithListFieldsDto {
|
|
|
60
60
|
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
61
61
|
*/
|
|
62
62
|
lastMessageData: LeadMessageData | null;
|
|
63
|
+
/**
|
|
64
|
+
* Archived status
|
|
65
|
+
* @type {boolean}
|
|
66
|
+
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
67
|
+
*/
|
|
68
|
+
archived: boolean;
|
|
63
69
|
/**
|
|
64
70
|
* Created at date
|
|
65
71
|
* @type {Date}
|
|
@@ -129,8 +135,7 @@ export declare const IntersectionLeadDtoWithListFieldsDtoStatusEnum: {
|
|
|
129
135
|
readonly ACTIVE: "active";
|
|
130
136
|
readonly ACCEPTED: "accepted";
|
|
131
137
|
readonly FINISHED: "finished";
|
|
132
|
-
readonly
|
|
133
|
-
readonly ARCHIVED: "archived";
|
|
138
|
+
readonly CLOSED: "closed";
|
|
134
139
|
};
|
|
135
140
|
export type IntersectionLeadDtoWithListFieldsDtoStatusEnum = typeof IntersectionLeadDtoWithListFieldsDtoStatusEnum[keyof typeof IntersectionLeadDtoWithListFieldsDtoStatusEnum];
|
|
136
141
|
/**
|
|
@@ -30,8 +30,7 @@ exports.IntersectionLeadDtoWithListFieldsDtoStatusEnum = {
|
|
|
30
30
|
ACTIVE: 'active',
|
|
31
31
|
ACCEPTED: 'accepted',
|
|
32
32
|
FINISHED: 'finished',
|
|
33
|
-
|
|
34
|
-
ARCHIVED: 'archived'
|
|
33
|
+
CLOSED: 'closed'
|
|
35
34
|
};
|
|
36
35
|
/**
|
|
37
36
|
* @export
|
|
@@ -77,6 +76,8 @@ function instanceOfIntersectionLeadDtoWithListFieldsDto(value) {
|
|
|
77
76
|
return false;
|
|
78
77
|
if (!('lastMessageData' in value) || value['lastMessageData'] === undefined)
|
|
79
78
|
return false;
|
|
79
|
+
if (!('archived' in value) || value['archived'] === undefined)
|
|
80
|
+
return false;
|
|
80
81
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
81
82
|
return false;
|
|
82
83
|
if (!('domain' in value) || value['domain'] === undefined)
|
|
@@ -114,6 +115,7 @@ function IntersectionLeadDtoWithListFieldsDtoFromJSONTyped(json, ignoreDiscrimin
|
|
|
114
115
|
'lastMessageFrom': json['lastMessageFrom'],
|
|
115
116
|
'lastMessageType': json['lastMessageType'],
|
|
116
117
|
'lastMessageData': (0, LeadMessageData_1.LeadMessageDataFromJSON)(json['lastMessageData']),
|
|
118
|
+
'archived': json['archived'],
|
|
117
119
|
'createdAt': (new Date(json['createdAt'])),
|
|
118
120
|
'domain': (0, LeadDomainDto_1.LeadDomainDtoFromJSON)(json['domain']),
|
|
119
121
|
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
@@ -142,6 +144,7 @@ function IntersectionLeadDtoWithListFieldsDtoToJSONTyped(value, ignoreDiscrimina
|
|
|
142
144
|
'lastMessageFrom': value['lastMessageFrom'],
|
|
143
145
|
'lastMessageType': value['lastMessageType'],
|
|
144
146
|
'lastMessageData': (0, LeadMessageData_1.LeadMessageDataToJSON)(value['lastMessageData']),
|
|
147
|
+
'archived': value['archived'],
|
|
145
148
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
146
149
|
'domain': (0, LeadDomainDto_1.LeadDomainDtoToJSON)(value['domain']),
|
|
147
150
|
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
package/dist/models/LeadDto.d.ts
CHANGED
|
@@ -41,6 +41,12 @@ export interface LeadDto {
|
|
|
41
41
|
* @memberof LeadDto
|
|
42
42
|
*/
|
|
43
43
|
lastOfferBy: LeadDtoLastOfferByEnum | null;
|
|
44
|
+
/**
|
|
45
|
+
* Archived status
|
|
46
|
+
* @type {boolean}
|
|
47
|
+
* @memberof LeadDto
|
|
48
|
+
*/
|
|
49
|
+
archived: boolean;
|
|
44
50
|
/**
|
|
45
51
|
* Created at date
|
|
46
52
|
* @type {Date}
|
|
@@ -80,8 +86,7 @@ export declare const LeadDtoStatusEnum: {
|
|
|
80
86
|
readonly ACTIVE: "active";
|
|
81
87
|
readonly ACCEPTED: "accepted";
|
|
82
88
|
readonly FINISHED: "finished";
|
|
83
|
-
readonly
|
|
84
|
-
readonly ARCHIVED: "archived";
|
|
89
|
+
readonly CLOSED: "closed";
|
|
85
90
|
};
|
|
86
91
|
export type LeadDtoStatusEnum = typeof LeadDtoStatusEnum[keyof typeof LeadDtoStatusEnum];
|
|
87
92
|
/**
|
package/dist/models/LeadDto.js
CHANGED
|
@@ -29,8 +29,7 @@ exports.LeadDtoStatusEnum = {
|
|
|
29
29
|
ACTIVE: 'active',
|
|
30
30
|
ACCEPTED: 'accepted',
|
|
31
31
|
FINISHED: 'finished',
|
|
32
|
-
|
|
33
|
-
ARCHIVED: 'archived'
|
|
32
|
+
CLOSED: 'closed'
|
|
34
33
|
};
|
|
35
34
|
/**
|
|
36
35
|
* @export
|
|
@@ -52,6 +51,8 @@ function instanceOfLeadDto(value) {
|
|
|
52
51
|
return false;
|
|
53
52
|
if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined)
|
|
54
53
|
return false;
|
|
54
|
+
if (!('archived' in value) || value['archived'] === undefined)
|
|
55
|
+
return false;
|
|
55
56
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
56
57
|
return false;
|
|
57
58
|
if (!('domain' in value) || value['domain'] === undefined)
|
|
@@ -76,6 +77,7 @@ function LeadDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
76
77
|
'status': json['status'],
|
|
77
78
|
'lastOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['lastOffer']),
|
|
78
79
|
'lastOfferBy': json['lastOfferBy'],
|
|
80
|
+
'archived': json['archived'],
|
|
79
81
|
'createdAt': (new Date(json['createdAt'])),
|
|
80
82
|
'domain': (0, LeadDomainDto_1.LeadDomainDtoFromJSON)(json['domain']),
|
|
81
83
|
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
@@ -96,6 +98,7 @@ function LeadDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
96
98
|
'status': value['status'],
|
|
97
99
|
'lastOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['lastOffer']),
|
|
98
100
|
'lastOfferBy': value['lastOfferBy'],
|
|
101
|
+
'archived': value['archived'],
|
|
99
102
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
100
103
|
'domain': (0, LeadDomainDto_1.LeadDomainDtoToJSON)(value['domain']),
|
|
101
104
|
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
|
@@ -30,8 +30,7 @@ export declare const LeadStatusDtoStatusEnum: {
|
|
|
30
30
|
readonly ACTIVE: "active";
|
|
31
31
|
readonly ACCEPTED: "accepted";
|
|
32
32
|
readonly FINISHED: "finished";
|
|
33
|
-
readonly
|
|
34
|
-
readonly ARCHIVED: "archived";
|
|
33
|
+
readonly CLOSED: "closed";
|
|
35
34
|
};
|
|
36
35
|
export type LeadStatusDtoStatusEnum = typeof LeadStatusDtoStatusEnum[keyof typeof LeadStatusDtoStatusEnum];
|
|
37
36
|
/**
|
|
@@ -32,7 +32,7 @@ function PaginateResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
|
-
'
|
|
35
|
+
'currentPage': json['currentPage'] == null ? undefined : json['currentPage'],
|
|
36
36
|
'itemsPerPage': json['itemsPerPage'] == null ? undefined : json['itemsPerPage'],
|
|
37
37
|
'offset': json['offset'] == null ? undefined : json['offset'],
|
|
38
38
|
'unpaged': json['unpaged'] == null ? undefined : json['unpaged'],
|
|
@@ -50,7 +50,7 @@ function PaginateResponseMetaToJSONTyped(value, ignoreDiscriminator) {
|
|
|
50
50
|
return value;
|
|
51
51
|
}
|
|
52
52
|
return {
|
|
53
|
-
'
|
|
53
|
+
'currentPage': value['currentPage'],
|
|
54
54
|
'itemsPerPage': value['itemsPerPage'],
|
|
55
55
|
'offset': value['offset'],
|
|
56
56
|
'unpaged': value['unpaged'],
|
|
@@ -56,8 +56,7 @@ export declare const PublicLeadDtoStatusEnum: {
|
|
|
56
56
|
readonly ACTIVE: "active";
|
|
57
57
|
readonly ACCEPTED: "accepted";
|
|
58
58
|
readonly FINISHED: "finished";
|
|
59
|
-
readonly
|
|
60
|
-
readonly ARCHIVED: "archived";
|
|
59
|
+
readonly CLOSED: "closed";
|
|
61
60
|
};
|
|
62
61
|
export type PublicLeadDtoStatusEnum = typeof PublicLeadDtoStatusEnum[keyof typeof PublicLeadDtoStatusEnum];
|
|
63
62
|
/**
|
package/package.json
CHANGED
package/src/apis/LeadsApi.ts
CHANGED
|
@@ -160,7 +160,7 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
const response = await this.request({
|
|
163
|
-
path: `/private/leads/{leadId}/status/archive`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
163
|
+
path: `/private/leads/{leadId}/status/archive-for-seller`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
164
164
|
method: 'POST',
|
|
165
165
|
headers: headerParameters,
|
|
166
166
|
query: queryParameters,
|
|
@@ -483,7 +483,7 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
485
|
const response = await this.request({
|
|
486
|
-
path: `/private/leads/{leadId}/status/unarchive`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
486
|
+
path: `/private/leads/{leadId}/status/unarchive-for-seller`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
487
487
|
method: 'POST',
|
|
488
488
|
headers: headerParameters,
|
|
489
489
|
query: queryParameters,
|
|
@@ -93,8 +93,7 @@ export const BuyerLeadListItemDtoStatusEnum = {
|
|
|
93
93
|
ACTIVE: 'active',
|
|
94
94
|
ACCEPTED: 'accepted',
|
|
95
95
|
FINISHED: 'finished',
|
|
96
|
-
|
|
97
|
-
ARCHIVED: 'archived'
|
|
96
|
+
CLOSED: 'closed'
|
|
98
97
|
} as const;
|
|
99
98
|
export type BuyerLeadListItemDtoStatusEnum = typeof BuyerLeadListItemDtoStatusEnum[keyof typeof BuyerLeadListItemDtoStatusEnum];
|
|
100
99
|
|
|
@@ -77,6 +77,12 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto {
|
|
|
77
77
|
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
|
|
78
78
|
*/
|
|
79
79
|
buyer: BuyerDto;
|
|
80
|
+
/**
|
|
81
|
+
* Archived status
|
|
82
|
+
* @type {boolean}
|
|
83
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
|
|
84
|
+
*/
|
|
85
|
+
archived: boolean;
|
|
80
86
|
/**
|
|
81
87
|
* Created at date
|
|
82
88
|
* @type {Date}
|
|
@@ -112,8 +118,7 @@ export const IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoStatusEnum
|
|
|
112
118
|
ACTIVE: 'active',
|
|
113
119
|
ACCEPTED: 'accepted',
|
|
114
120
|
FINISHED: 'finished',
|
|
115
|
-
|
|
116
|
-
ARCHIVED: 'archived'
|
|
121
|
+
CLOSED: 'closed'
|
|
117
122
|
} as const;
|
|
118
123
|
export type IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoStatusEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoStatusEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoStatusEnum];
|
|
119
124
|
|
|
@@ -138,6 +143,7 @@ export function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsD
|
|
|
138
143
|
if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined) return false;
|
|
139
144
|
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
140
145
|
if (!('buyer' in value) || value['buyer'] === undefined) return false;
|
|
146
|
+
if (!('archived' in value) || value['archived'] === undefined) return false;
|
|
141
147
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
142
148
|
if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined) return false;
|
|
143
149
|
if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined) return false;
|
|
@@ -161,6 +167,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSON
|
|
|
161
167
|
'lastOfferBy': json['lastOfferBy'],
|
|
162
168
|
'domain': IntersectionDomainDtoWithAccountDtoFromJSON(json['domain']),
|
|
163
169
|
'buyer': BuyerDtoFromJSON(json['buyer']),
|
|
170
|
+
'archived': json['archived'],
|
|
164
171
|
'createdAt': (new Date(json['createdAt'])),
|
|
165
172
|
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
166
173
|
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
@@ -185,6 +192,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSON
|
|
|
185
192
|
'lastOfferBy': value['lastOfferBy'],
|
|
186
193
|
'domain': IntersectionDomainDtoWithAccountDtoToJSON(value['domain']),
|
|
187
194
|
'buyer': BuyerDtoToJSON(value['buyer']),
|
|
195
|
+
'archived': value['archived'],
|
|
188
196
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
189
197
|
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
|
190
198
|
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
@@ -83,6 +83,12 @@ export interface IntersectionLeadDtoWithListFieldsDto {
|
|
|
83
83
|
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
84
84
|
*/
|
|
85
85
|
lastMessageData: LeadMessageData | null;
|
|
86
|
+
/**
|
|
87
|
+
* Archived status
|
|
88
|
+
* @type {boolean}
|
|
89
|
+
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
90
|
+
*/
|
|
91
|
+
archived: boolean;
|
|
86
92
|
/**
|
|
87
93
|
* Created at date
|
|
88
94
|
* @type {Date}
|
|
@@ -154,8 +160,7 @@ export const IntersectionLeadDtoWithListFieldsDtoStatusEnum = {
|
|
|
154
160
|
ACTIVE: 'active',
|
|
155
161
|
ACCEPTED: 'accepted',
|
|
156
162
|
FINISHED: 'finished',
|
|
157
|
-
|
|
158
|
-
ARCHIVED: 'archived'
|
|
163
|
+
CLOSED: 'closed'
|
|
159
164
|
} as const;
|
|
160
165
|
export type IntersectionLeadDtoWithListFieldsDtoStatusEnum = typeof IntersectionLeadDtoWithListFieldsDtoStatusEnum[keyof typeof IntersectionLeadDtoWithListFieldsDtoStatusEnum];
|
|
161
166
|
|
|
@@ -203,6 +208,7 @@ export function instanceOfIntersectionLeadDtoWithListFieldsDto(value: object): v
|
|
|
203
208
|
if (!('lastMessageFrom' in value) || value['lastMessageFrom'] === undefined) return false;
|
|
204
209
|
if (!('lastMessageType' in value) || value['lastMessageType'] === undefined) return false;
|
|
205
210
|
if (!('lastMessageData' in value) || value['lastMessageData'] === undefined) return false;
|
|
211
|
+
if (!('archived' in value) || value['archived'] === undefined) return false;
|
|
206
212
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
207
213
|
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
208
214
|
if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined) return false;
|
|
@@ -233,6 +239,7 @@ export function IntersectionLeadDtoWithListFieldsDtoFromJSONTyped(json: any, ign
|
|
|
233
239
|
'lastMessageFrom': json['lastMessageFrom'],
|
|
234
240
|
'lastMessageType': json['lastMessageType'],
|
|
235
241
|
'lastMessageData': LeadMessageDataFromJSON(json['lastMessageData']),
|
|
242
|
+
'archived': json['archived'],
|
|
236
243
|
'createdAt': (new Date(json['createdAt'])),
|
|
237
244
|
'domain': LeadDomainDtoFromJSON(json['domain']),
|
|
238
245
|
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
@@ -264,6 +271,7 @@ export function IntersectionLeadDtoWithListFieldsDtoFromJSONTyped(json: any, ign
|
|
|
264
271
|
'lastMessageFrom': value['lastMessageFrom'],
|
|
265
272
|
'lastMessageType': value['lastMessageType'],
|
|
266
273
|
'lastMessageData': LeadMessageDataToJSON(value['lastMessageData']),
|
|
274
|
+
'archived': value['archived'],
|
|
267
275
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
268
276
|
'domain': LeadDomainDtoToJSON(value['domain']),
|
|
269
277
|
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
package/src/models/LeadDto.ts
CHANGED
|
@@ -58,6 +58,12 @@ export interface LeadDto {
|
|
|
58
58
|
* @memberof LeadDto
|
|
59
59
|
*/
|
|
60
60
|
lastOfferBy: LeadDtoLastOfferByEnum | null;
|
|
61
|
+
/**
|
|
62
|
+
* Archived status
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof LeadDto
|
|
65
|
+
*/
|
|
66
|
+
archived: boolean;
|
|
61
67
|
/**
|
|
62
68
|
* Created at date
|
|
63
69
|
* @type {Date}
|
|
@@ -99,8 +105,7 @@ export const LeadDtoStatusEnum = {
|
|
|
99
105
|
ACTIVE: 'active',
|
|
100
106
|
ACCEPTED: 'accepted',
|
|
101
107
|
FINISHED: 'finished',
|
|
102
|
-
|
|
103
|
-
ARCHIVED: 'archived'
|
|
108
|
+
CLOSED: 'closed'
|
|
104
109
|
} as const;
|
|
105
110
|
export type LeadDtoStatusEnum = typeof LeadDtoStatusEnum[keyof typeof LeadDtoStatusEnum];
|
|
106
111
|
|
|
@@ -123,6 +128,7 @@ export function instanceOfLeadDto(value: object): value is LeadDto {
|
|
|
123
128
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
124
129
|
if (!('lastOffer' in value) || value['lastOffer'] === undefined) return false;
|
|
125
130
|
if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined) return false;
|
|
131
|
+
if (!('archived' in value) || value['archived'] === undefined) return false;
|
|
126
132
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
127
133
|
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
128
134
|
if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined) return false;
|
|
@@ -145,6 +151,7 @@ export function LeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): L
|
|
|
145
151
|
'status': json['status'],
|
|
146
152
|
'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
|
|
147
153
|
'lastOfferBy': json['lastOfferBy'],
|
|
154
|
+
'archived': json['archived'],
|
|
148
155
|
'createdAt': (new Date(json['createdAt'])),
|
|
149
156
|
'domain': LeadDomainDtoFromJSON(json['domain']),
|
|
150
157
|
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
@@ -168,6 +175,7 @@ export function LeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): L
|
|
|
168
175
|
'status': value['status'],
|
|
169
176
|
'lastOffer': MoneyDtoToJSON(value['lastOffer']),
|
|
170
177
|
'lastOfferBy': value['lastOfferBy'],
|
|
178
|
+
'archived': value['archived'],
|
|
171
179
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
172
180
|
'domain': LeadDomainDtoToJSON(value['domain']),
|
|
173
181
|
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
|
@@ -36,8 +36,7 @@ export const LeadStatusDtoStatusEnum = {
|
|
|
36
36
|
ACTIVE: 'active',
|
|
37
37
|
ACCEPTED: 'accepted',
|
|
38
38
|
FINISHED: 'finished',
|
|
39
|
-
|
|
40
|
-
ARCHIVED: 'archived'
|
|
39
|
+
CLOSED: 'closed'
|
|
41
40
|
} as const;
|
|
42
41
|
export type LeadStatusDtoStatusEnum = typeof LeadStatusDtoStatusEnum[keyof typeof LeadStatusDtoStatusEnum];
|
|
43
42
|
|
|
@@ -24,7 +24,7 @@ export interface PaginateResponseMeta {
|
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof PaginateResponseMeta
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
currentPage?: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {number}
|
|
@@ -80,7 +80,7 @@ export function PaginateResponseMetaFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
80
80
|
}
|
|
81
81
|
return {
|
|
82
82
|
|
|
83
|
-
'
|
|
83
|
+
'currentPage': json['currentPage'] == null ? undefined : json['currentPage'],
|
|
84
84
|
'itemsPerPage': json['itemsPerPage'] == null ? undefined : json['itemsPerPage'],
|
|
85
85
|
'offset': json['offset'] == null ? undefined : json['offset'],
|
|
86
86
|
'unpaged': json['unpaged'] == null ? undefined : json['unpaged'],
|
|
@@ -101,7 +101,7 @@ export function PaginateResponseMetaFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
101
101
|
|
|
102
102
|
return {
|
|
103
103
|
|
|
104
|
-
'
|
|
104
|
+
'currentPage': value['currentPage'],
|
|
105
105
|
'itemsPerPage': value['itemsPerPage'],
|
|
106
106
|
'offset': value['offset'],
|
|
107
107
|
'unpaged': value['unpaged'],
|
|
@@ -75,8 +75,7 @@ export const PublicLeadDtoStatusEnum = {
|
|
|
75
75
|
ACTIVE: 'active',
|
|
76
76
|
ACCEPTED: 'accepted',
|
|
77
77
|
FINISHED: 'finished',
|
|
78
|
-
|
|
79
|
-
ARCHIVED: 'archived'
|
|
78
|
+
CLOSED: 'closed'
|
|
80
79
|
} as const;
|
|
81
80
|
export type PublicLeadDtoStatusEnum = typeof PublicLeadDtoStatusEnum[keyof typeof PublicLeadDtoStatusEnum];
|
|
82
81
|
|