@randock/nameshift-api-client 0.0.430 → 0.0.432
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/.openapi-generator/FILES +5 -0
- package/README.md +3 -3
- package/dist/apis/MarketingApi.d.ts +40 -0
- package/dist/apis/MarketingApi.js +193 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/BuyerNotificationDto.d.ts +2 -0
- package/dist/models/BuyerNotificationDto.js +2 -0
- package/dist/models/BuyerNotificationListItemDto.d.ts +2 -0
- package/dist/models/BuyerNotificationListItemDto.js +2 -0
- package/dist/models/GetMarketingSales200Response.d.ts +47 -0
- package/dist/models/GetMarketingSales200Response.js +62 -0
- package/dist/models/MarketingOrderListItemDto.d.ts +57 -0
- package/dist/models/MarketingOrderListItemDto.js +68 -0
- package/dist/models/MarketingSalesFiltersDto.d.ts +38 -0
- package/dist/models/MarketingSalesFiltersDto.js +55 -0
- package/dist/models/RentIndexationDto.d.ts +56 -0
- package/dist/models/RentIndexationDto.js +67 -0
- package/dist/models/SubscriptionDetailsDto.d.ts +53 -0
- package/dist/models/SubscriptionDetailsDto.js +44 -1
- package/dist/models/UserNotificationDto.d.ts +2 -0
- package/dist/models/UserNotificationDto.js +2 -0
- package/dist/models/UserNotificationListItemDto.d.ts +2 -0
- package/dist/models/UserNotificationListItemDto.js +2 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/MarketingApi.ts +127 -0
- package/src/apis/index.ts +1 -0
- package/src/models/BuyerNotificationDto.ts +2 -0
- package/src/models/BuyerNotificationListItemDto.ts +2 -0
- package/src/models/GetMarketingSales200Response.ts +106 -0
- package/src/models/MarketingOrderListItemDto.ts +110 -0
- package/src/models/MarketingSalesFiltersDto.ts +75 -0
- package/src/models/RentIndexationDto.ts +102 -0
- package/src/models/SubscriptionDetailsDto.ts +73 -0
- package/src/models/UserNotificationDto.ts +2 -0
- package/src/models/UserNotificationListItemDto.ts +2 -0
- package/src/models/index.ts +4 -0
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfMarketingSalesFiltersDto = instanceOfMarketingSalesFiltersDto;
|
|
17
|
+
exports.MarketingSalesFiltersDtoFromJSON = MarketingSalesFiltersDtoFromJSON;
|
|
18
|
+
exports.MarketingSalesFiltersDtoFromJSONTyped = MarketingSalesFiltersDtoFromJSONTyped;
|
|
19
|
+
exports.MarketingSalesFiltersDtoToJSON = MarketingSalesFiltersDtoToJSON;
|
|
20
|
+
exports.MarketingSalesFiltersDtoToJSONTyped = MarketingSalesFiltersDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the MarketingSalesFiltersDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfMarketingSalesFiltersDto(value) {
|
|
25
|
+
if (!('existingTldList' in value) || value['existingTldList'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('existingCurrencies' in value) || value['existingCurrencies'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function MarketingSalesFiltersDtoFromJSON(json) {
|
|
32
|
+
return MarketingSalesFiltersDtoFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function MarketingSalesFiltersDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'existingTldList': json['existingTldList'],
|
|
40
|
+
'existingCurrencies': json['existingCurrencies'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function MarketingSalesFiltersDtoToJSON(json) {
|
|
44
|
+
return MarketingSalesFiltersDtoToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function MarketingSalesFiltersDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'existingTldList': value['existingTldList'],
|
|
53
|
+
'existingCurrencies': value['existingCurrencies'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RentIndexationDto
|
|
16
|
+
*/
|
|
17
|
+
export interface RentIndexationDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Date}
|
|
21
|
+
* @memberof RentIndexationDto
|
|
22
|
+
*/
|
|
23
|
+
appliedAt: Date | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof RentIndexationDto
|
|
28
|
+
*/
|
|
29
|
+
appliedRate: number | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof RentIndexationDto
|
|
34
|
+
*/
|
|
35
|
+
inflationYear: number | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof RentIndexationDto
|
|
40
|
+
*/
|
|
41
|
+
advanceNotifiedAt: Date | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof RentIndexationDto
|
|
46
|
+
*/
|
|
47
|
+
advanceNotifiedForYear: number | null;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the RentIndexationDto interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfRentIndexationDto(value: object): value is RentIndexationDto;
|
|
53
|
+
export declare function RentIndexationDtoFromJSON(json: any): RentIndexationDto;
|
|
54
|
+
export declare function RentIndexationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RentIndexationDto;
|
|
55
|
+
export declare function RentIndexationDtoToJSON(json: any): RentIndexationDto;
|
|
56
|
+
export declare function RentIndexationDtoToJSONTyped(value?: RentIndexationDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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.instanceOfRentIndexationDto = instanceOfRentIndexationDto;
|
|
17
|
+
exports.RentIndexationDtoFromJSON = RentIndexationDtoFromJSON;
|
|
18
|
+
exports.RentIndexationDtoFromJSONTyped = RentIndexationDtoFromJSONTyped;
|
|
19
|
+
exports.RentIndexationDtoToJSON = RentIndexationDtoToJSON;
|
|
20
|
+
exports.RentIndexationDtoToJSONTyped = RentIndexationDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RentIndexationDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRentIndexationDto(value) {
|
|
25
|
+
if (!('appliedAt' in value) || value['appliedAt'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('appliedRate' in value) || value['appliedRate'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('inflationYear' in value) || value['inflationYear'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('advanceNotifiedAt' in value) || value['advanceNotifiedAt'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('advanceNotifiedForYear' in value) || value['advanceNotifiedForYear'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function RentIndexationDtoFromJSON(json) {
|
|
38
|
+
return RentIndexationDtoFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function RentIndexationDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'appliedAt': (json['appliedAt'] == null ? null : new Date(json['appliedAt'])),
|
|
46
|
+
'appliedRate': json['appliedRate'],
|
|
47
|
+
'inflationYear': json['inflationYear'],
|
|
48
|
+
'advanceNotifiedAt': (json['advanceNotifiedAt'] == null ? null : new Date(json['advanceNotifiedAt'])),
|
|
49
|
+
'advanceNotifiedForYear': json['advanceNotifiedForYear'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function RentIndexationDtoToJSON(json) {
|
|
53
|
+
return RentIndexationDtoToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function RentIndexationDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
56
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'appliedAt': (value['appliedAt'] == null ? null : value['appliedAt'].toISOString()),
|
|
62
|
+
'appliedRate': value['appliedRate'],
|
|
63
|
+
'inflationYear': value['inflationYear'],
|
|
64
|
+
'advanceNotifiedAt': (value['advanceNotifiedAt'] == null ? null : value['advanceNotifiedAt'].toISOString()),
|
|
65
|
+
'advanceNotifiedForYear': value['advanceNotifiedForYear'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { RentIndexationDto } from './RentIndexationDto';
|
|
12
13
|
import type { InvoiceItemDto } from './InvoiceItemDto';
|
|
13
14
|
import type { SubscriptionDetailsDomainDto } from './SubscriptionDetailsDomainDto';
|
|
14
15
|
import type { MoneyDto } from './MoneyDto';
|
|
@@ -215,6 +216,30 @@ export interface SubscriptionDetailsDto {
|
|
|
215
216
|
* @memberof SubscriptionDetailsDto
|
|
216
217
|
*/
|
|
217
218
|
scheduledCancellationReason: string | null;
|
|
219
|
+
/**
|
|
220
|
+
*
|
|
221
|
+
* @type {RentIndexationDto}
|
|
222
|
+
* @memberof SubscriptionDetailsDto
|
|
223
|
+
*/
|
|
224
|
+
lastRentIndexation: RentIndexationDto | null;
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
* @type {Date}
|
|
228
|
+
* @memberof SubscriptionDetailsDto
|
|
229
|
+
*/
|
|
230
|
+
nextEligibleRentIndexationDate: Date | null;
|
|
231
|
+
/**
|
|
232
|
+
*
|
|
233
|
+
* @type {string}
|
|
234
|
+
* @memberof SubscriptionDetailsDto
|
|
235
|
+
*/
|
|
236
|
+
rentIndexationStatus: SubscriptionDetailsDtoRentIndexationStatusEnum;
|
|
237
|
+
/**
|
|
238
|
+
*
|
|
239
|
+
* @type {string}
|
|
240
|
+
* @memberof SubscriptionDetailsDto
|
|
241
|
+
*/
|
|
242
|
+
rentIndexationSkipReason: SubscriptionDetailsDtoRentIndexationSkipReasonEnum;
|
|
218
243
|
}
|
|
219
244
|
/**
|
|
220
245
|
* @export
|
|
@@ -252,6 +277,34 @@ export declare const SubscriptionDetailsDtoRenewStatusReasonEnum: {
|
|
|
252
277
|
readonly REQUIRE_RETRY: "require_retry";
|
|
253
278
|
};
|
|
254
279
|
export type SubscriptionDetailsDtoRenewStatusReasonEnum = typeof SubscriptionDetailsDtoRenewStatusReasonEnum[keyof typeof SubscriptionDetailsDtoRenewStatusReasonEnum];
|
|
280
|
+
/**
|
|
281
|
+
* @export
|
|
282
|
+
*/
|
|
283
|
+
export declare const SubscriptionDetailsDtoRentIndexationStatusEnum: {
|
|
284
|
+
readonly ELIGIBLE: "eligible";
|
|
285
|
+
readonly NOT_ELIGIBLE: "not_eligible";
|
|
286
|
+
readonly INDEXED: "indexed";
|
|
287
|
+
readonly FAILED: "failed";
|
|
288
|
+
readonly PENDING_DATA: "pending_data";
|
|
289
|
+
};
|
|
290
|
+
export type SubscriptionDetailsDtoRentIndexationStatusEnum = typeof SubscriptionDetailsDtoRentIndexationStatusEnum[keyof typeof SubscriptionDetailsDtoRentIndexationStatusEnum];
|
|
291
|
+
/**
|
|
292
|
+
* @export
|
|
293
|
+
*/
|
|
294
|
+
export declare const SubscriptionDetailsDtoRentIndexationSkipReasonEnum: {
|
|
295
|
+
readonly NOT_RENT: "not_rent";
|
|
296
|
+
readonly CONTRACT_TOO_OLD: "contract_too_old";
|
|
297
|
+
readonly NOT_ACTIVE: "not_active";
|
|
298
|
+
readonly SCHEDULED_CANCELLATION: "scheduled_cancellation";
|
|
299
|
+
readonly INSUFFICIENT_TENURE: "insufficient_tenure";
|
|
300
|
+
readonly ALREADY_INDEXED: "already_indexed";
|
|
301
|
+
readonly MISSING_COUNTRY: "missing_country";
|
|
302
|
+
readonly UNMAPPED_COUNTRY: "unmapped_country";
|
|
303
|
+
readonly MISSING_IMF_DATA: "missing_imf_data";
|
|
304
|
+
readonly OUTSIDE_INDEXATION_WINDOW: "outside_indexation_window";
|
|
305
|
+
readonly ADVANCE_ALREADY_NOTIFIED: "advance_already_notified";
|
|
306
|
+
};
|
|
307
|
+
export type SubscriptionDetailsDtoRentIndexationSkipReasonEnum = typeof SubscriptionDetailsDtoRentIndexationSkipReasonEnum[keyof typeof SubscriptionDetailsDtoRentIndexationSkipReasonEnum];
|
|
255
308
|
/**
|
|
256
309
|
* Check if a given object implements the SubscriptionDetailsDto interface.
|
|
257
310
|
*/
|
|
@@ -13,12 +13,13 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.SubscriptionDetailsDtoRenewStatusReasonEnum = exports.SubscriptionDetailsDtoRenewStatusEnum = exports.SubscriptionDetailsDtoTypeEnum = exports.SubscriptionDetailsDtoStatusEnum = void 0;
|
|
16
|
+
exports.SubscriptionDetailsDtoRentIndexationSkipReasonEnum = exports.SubscriptionDetailsDtoRentIndexationStatusEnum = exports.SubscriptionDetailsDtoRenewStatusReasonEnum = exports.SubscriptionDetailsDtoRenewStatusEnum = exports.SubscriptionDetailsDtoTypeEnum = exports.SubscriptionDetailsDtoStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfSubscriptionDetailsDto = instanceOfSubscriptionDetailsDto;
|
|
18
18
|
exports.SubscriptionDetailsDtoFromJSON = SubscriptionDetailsDtoFromJSON;
|
|
19
19
|
exports.SubscriptionDetailsDtoFromJSONTyped = SubscriptionDetailsDtoFromJSONTyped;
|
|
20
20
|
exports.SubscriptionDetailsDtoToJSON = SubscriptionDetailsDtoToJSON;
|
|
21
21
|
exports.SubscriptionDetailsDtoToJSONTyped = SubscriptionDetailsDtoToJSONTyped;
|
|
22
|
+
var RentIndexationDto_1 = require("./RentIndexationDto");
|
|
22
23
|
var InvoiceItemDto_1 = require("./InvoiceItemDto");
|
|
23
24
|
var SubscriptionDetailsDomainDto_1 = require("./SubscriptionDetailsDomainDto");
|
|
24
25
|
var MoneyDto_1 = require("./MoneyDto");
|
|
@@ -59,6 +60,32 @@ exports.SubscriptionDetailsDtoRenewStatusReasonEnum = {
|
|
|
59
60
|
IMPOSSIBLE_TO_PAY: 'impossible_to_pay',
|
|
60
61
|
REQUIRE_RETRY: 'require_retry'
|
|
61
62
|
};
|
|
63
|
+
/**
|
|
64
|
+
* @export
|
|
65
|
+
*/
|
|
66
|
+
exports.SubscriptionDetailsDtoRentIndexationStatusEnum = {
|
|
67
|
+
ELIGIBLE: 'eligible',
|
|
68
|
+
NOT_ELIGIBLE: 'not_eligible',
|
|
69
|
+
INDEXED: 'indexed',
|
|
70
|
+
FAILED: 'failed',
|
|
71
|
+
PENDING_DATA: 'pending_data'
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
exports.SubscriptionDetailsDtoRentIndexationSkipReasonEnum = {
|
|
77
|
+
NOT_RENT: 'not_rent',
|
|
78
|
+
CONTRACT_TOO_OLD: 'contract_too_old',
|
|
79
|
+
NOT_ACTIVE: 'not_active',
|
|
80
|
+
SCHEDULED_CANCELLATION: 'scheduled_cancellation',
|
|
81
|
+
INSUFFICIENT_TENURE: 'insufficient_tenure',
|
|
82
|
+
ALREADY_INDEXED: 'already_indexed',
|
|
83
|
+
MISSING_COUNTRY: 'missing_country',
|
|
84
|
+
UNMAPPED_COUNTRY: 'unmapped_country',
|
|
85
|
+
MISSING_IMF_DATA: 'missing_imf_data',
|
|
86
|
+
OUTSIDE_INDEXATION_WINDOW: 'outside_indexation_window',
|
|
87
|
+
ADVANCE_ALREADY_NOTIFIED: 'advance_already_notified'
|
|
88
|
+
};
|
|
62
89
|
/**
|
|
63
90
|
* Check if a given object implements the SubscriptionDetailsDto interface.
|
|
64
91
|
*/
|
|
@@ -127,6 +154,14 @@ function instanceOfSubscriptionDetailsDto(value) {
|
|
|
127
154
|
return false;
|
|
128
155
|
if (!('scheduledCancellationReason' in value) || value['scheduledCancellationReason'] === undefined)
|
|
129
156
|
return false;
|
|
157
|
+
if (!('lastRentIndexation' in value) || value['lastRentIndexation'] === undefined)
|
|
158
|
+
return false;
|
|
159
|
+
if (!('nextEligibleRentIndexationDate' in value) || value['nextEligibleRentIndexationDate'] === undefined)
|
|
160
|
+
return false;
|
|
161
|
+
if (!('rentIndexationStatus' in value) || value['rentIndexationStatus'] === undefined)
|
|
162
|
+
return false;
|
|
163
|
+
if (!('rentIndexationSkipReason' in value) || value['rentIndexationSkipReason'] === undefined)
|
|
164
|
+
return false;
|
|
130
165
|
return true;
|
|
131
166
|
}
|
|
132
167
|
function SubscriptionDetailsDtoFromJSON(json) {
|
|
@@ -169,6 +204,10 @@ function SubscriptionDetailsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
169
204
|
'renewStatusReason': json['renewStatusReason'],
|
|
170
205
|
'scheduledCancellationAt': (json['scheduledCancellationAt'] == null ? null : new Date(json['scheduledCancellationAt'])),
|
|
171
206
|
'scheduledCancellationReason': json['scheduledCancellationReason'],
|
|
207
|
+
'lastRentIndexation': (0, RentIndexationDto_1.RentIndexationDtoFromJSON)(json['lastRentIndexation']),
|
|
208
|
+
'nextEligibleRentIndexationDate': (json['nextEligibleRentIndexationDate'] == null ? null : new Date(json['nextEligibleRentIndexationDate'])),
|
|
209
|
+
'rentIndexationStatus': json['rentIndexationStatus'],
|
|
210
|
+
'rentIndexationSkipReason': json['rentIndexationSkipReason'],
|
|
172
211
|
};
|
|
173
212
|
}
|
|
174
213
|
function SubscriptionDetailsDtoToJSON(json) {
|
|
@@ -212,5 +251,9 @@ function SubscriptionDetailsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
212
251
|
'renewStatusReason': value['renewStatusReason'],
|
|
213
252
|
'scheduledCancellationAt': (value['scheduledCancellationAt'] == null ? null : value['scheduledCancellationAt'].toISOString()),
|
|
214
253
|
'scheduledCancellationReason': value['scheduledCancellationReason'],
|
|
254
|
+
'lastRentIndexation': (0, RentIndexationDto_1.RentIndexationDtoToJSON)(value['lastRentIndexation']),
|
|
255
|
+
'nextEligibleRentIndexationDate': (value['nextEligibleRentIndexationDate'] == null ? null : value['nextEligibleRentIndexationDate'].toISOString()),
|
|
256
|
+
'rentIndexationStatus': value['rentIndexationStatus'],
|
|
257
|
+
'rentIndexationSkipReason': value['rentIndexationSkipReason'],
|
|
215
258
|
};
|
|
216
259
|
}
|
|
@@ -110,6 +110,8 @@ export declare const UserNotificationDtoTypeEnum: {
|
|
|
110
110
|
readonly SELLER_RENT_SUBSCRIPTION_CANCELLED: "seller_rent_subscription_cancelled";
|
|
111
111
|
readonly LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: "lease_to_own_subscription_has_been_activated_for_first_time";
|
|
112
112
|
readonly RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: "rent_subscription_has_been_activated_for_first_time";
|
|
113
|
+
readonly RENT_SUBSCRIPTION_RENT_INDEXATION_ADVANCE_NOTICE: "rent_subscription_rent_indexation_advance_notice";
|
|
114
|
+
readonly RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: "rent_subscription_rent_indexation_applied";
|
|
113
115
|
readonly PASSWORD_RESET: "password_reset";
|
|
114
116
|
readonly USER_EMAIL_CHANGED: "user_email_changed";
|
|
115
117
|
readonly BUYER_INVOICE: "buyer_invoice";
|
|
@@ -71,6 +71,8 @@ exports.UserNotificationDtoTypeEnum = {
|
|
|
71
71
|
SELLER_RENT_SUBSCRIPTION_CANCELLED: 'seller_rent_subscription_cancelled',
|
|
72
72
|
LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'lease_to_own_subscription_has_been_activated_for_first_time',
|
|
73
73
|
RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'rent_subscription_has_been_activated_for_first_time',
|
|
74
|
+
RENT_SUBSCRIPTION_RENT_INDEXATION_ADVANCE_NOTICE: 'rent_subscription_rent_indexation_advance_notice',
|
|
75
|
+
RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: 'rent_subscription_rent_indexation_applied',
|
|
74
76
|
PASSWORD_RESET: 'password_reset',
|
|
75
77
|
USER_EMAIL_CHANGED: 'user_email_changed',
|
|
76
78
|
BUYER_INVOICE: 'buyer_invoice',
|
|
@@ -103,6 +103,8 @@ export declare const UserNotificationListItemDtoTypeEnum: {
|
|
|
103
103
|
readonly SELLER_RENT_SUBSCRIPTION_CANCELLED: "seller_rent_subscription_cancelled";
|
|
104
104
|
readonly LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: "lease_to_own_subscription_has_been_activated_for_first_time";
|
|
105
105
|
readonly RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: "rent_subscription_has_been_activated_for_first_time";
|
|
106
|
+
readonly RENT_SUBSCRIPTION_RENT_INDEXATION_ADVANCE_NOTICE: "rent_subscription_rent_indexation_advance_notice";
|
|
107
|
+
readonly RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: "rent_subscription_rent_indexation_applied";
|
|
106
108
|
readonly PASSWORD_RESET: "password_reset";
|
|
107
109
|
readonly USER_EMAIL_CHANGED: "user_email_changed";
|
|
108
110
|
readonly BUYER_INVOICE: "buyer_invoice";
|
|
@@ -70,6 +70,8 @@ exports.UserNotificationListItemDtoTypeEnum = {
|
|
|
70
70
|
SELLER_RENT_SUBSCRIPTION_CANCELLED: 'seller_rent_subscription_cancelled',
|
|
71
71
|
LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'lease_to_own_subscription_has_been_activated_for_first_time',
|
|
72
72
|
RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'rent_subscription_has_been_activated_for_first_time',
|
|
73
|
+
RENT_SUBSCRIPTION_RENT_INDEXATION_ADVANCE_NOTICE: 'rent_subscription_rent_indexation_advance_notice',
|
|
74
|
+
RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: 'rent_subscription_rent_indexation_applied',
|
|
73
75
|
PASSWORD_RESET: 'password_reset',
|
|
74
76
|
USER_EMAIL_CHANGED: 'user_email_changed',
|
|
75
77
|
BUYER_INVOICE: 'buyer_invoice',
|
package/dist/models/index.d.ts
CHANGED
|
@@ -227,6 +227,7 @@ export * from './GetBuyerLeads200Response';
|
|
|
227
227
|
export * from './GetBuyerSubscriptions200Response';
|
|
228
228
|
export * from './GetBuyerTransfers200Response';
|
|
229
229
|
export * from './GetInvoices200Response';
|
|
230
|
+
export * from './GetMarketingSales200Response';
|
|
230
231
|
export * from './GetSellerChallengesListDto';
|
|
231
232
|
export * from './GetSellerChallengesListDtoChallengesInner';
|
|
232
233
|
export * from './HistoricalMetrics';
|
|
@@ -298,6 +299,8 @@ export * from './MajesticMetrics';
|
|
|
298
299
|
export * from './MajesticTopicTrustFlow';
|
|
299
300
|
export * from './ManualLeadBuyerDto';
|
|
300
301
|
export * from './ManualLeadLeaseToOwnDto';
|
|
302
|
+
export * from './MarketingOrderListItemDto';
|
|
303
|
+
export * from './MarketingSalesFiltersDto';
|
|
301
304
|
export * from './MoneyDecimalDto';
|
|
302
305
|
export * from './MoneyDto';
|
|
303
306
|
export * from './MoneyInput';
|
|
@@ -352,6 +355,7 @@ export * from './RentConfigurationDto';
|
|
|
352
355
|
export * from './RentConfigurationInput';
|
|
353
356
|
export * from './RentConfigurationPresetsDto';
|
|
354
357
|
export * from './RentDto';
|
|
358
|
+
export * from './RentIndexationDto';
|
|
355
359
|
export * from './RequestAccessTokenInput';
|
|
356
360
|
export * from './RequestEmailOtpInput';
|
|
357
361
|
export * from './RequestUserEmailChangeOtpInput';
|
package/dist/models/index.js
CHANGED
|
@@ -245,6 +245,7 @@ __exportStar(require("./GetBuyerLeads200Response"), exports);
|
|
|
245
245
|
__exportStar(require("./GetBuyerSubscriptions200Response"), exports);
|
|
246
246
|
__exportStar(require("./GetBuyerTransfers200Response"), exports);
|
|
247
247
|
__exportStar(require("./GetInvoices200Response"), exports);
|
|
248
|
+
__exportStar(require("./GetMarketingSales200Response"), exports);
|
|
248
249
|
__exportStar(require("./GetSellerChallengesListDto"), exports);
|
|
249
250
|
__exportStar(require("./GetSellerChallengesListDtoChallengesInner"), exports);
|
|
250
251
|
__exportStar(require("./HistoricalMetrics"), exports);
|
|
@@ -316,6 +317,8 @@ __exportStar(require("./MajesticMetrics"), exports);
|
|
|
316
317
|
__exportStar(require("./MajesticTopicTrustFlow"), exports);
|
|
317
318
|
__exportStar(require("./ManualLeadBuyerDto"), exports);
|
|
318
319
|
__exportStar(require("./ManualLeadLeaseToOwnDto"), exports);
|
|
320
|
+
__exportStar(require("./MarketingOrderListItemDto"), exports);
|
|
321
|
+
__exportStar(require("./MarketingSalesFiltersDto"), exports);
|
|
319
322
|
__exportStar(require("./MoneyDecimalDto"), exports);
|
|
320
323
|
__exportStar(require("./MoneyDto"), exports);
|
|
321
324
|
__exportStar(require("./MoneyInput"), exports);
|
|
@@ -370,6 +373,7 @@ __exportStar(require("./RentConfigurationDto"), exports);
|
|
|
370
373
|
__exportStar(require("./RentConfigurationInput"), exports);
|
|
371
374
|
__exportStar(require("./RentConfigurationPresetsDto"), exports);
|
|
372
375
|
__exportStar(require("./RentDto"), exports);
|
|
376
|
+
__exportStar(require("./RentIndexationDto"), exports);
|
|
373
377
|
__exportStar(require("./RequestAccessTokenInput"), exports);
|
|
374
378
|
__exportStar(require("./RequestEmailOtpInput"), exports);
|
|
375
379
|
__exportStar(require("./RequestUserEmailChangeOtpInput"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,127 @@
|
|
|
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
|
+
GetMarketingSales200Response,
|
|
19
|
+
MarketingSalesFiltersDto,
|
|
20
|
+
ValidationException,
|
|
21
|
+
} from '../models/index';
|
|
22
|
+
import {
|
|
23
|
+
GetMarketingSales200ResponseFromJSON,
|
|
24
|
+
GetMarketingSales200ResponseToJSON,
|
|
25
|
+
MarketingSalesFiltersDtoFromJSON,
|
|
26
|
+
MarketingSalesFiltersDtoToJSON,
|
|
27
|
+
ValidationExceptionFromJSON,
|
|
28
|
+
ValidationExceptionToJSON,
|
|
29
|
+
} from '../models/index';
|
|
30
|
+
|
|
31
|
+
export interface MarketingApiGetMarketingSalesRequest {
|
|
32
|
+
filter?: object;
|
|
33
|
+
page?: number;
|
|
34
|
+
limit?: number;
|
|
35
|
+
sortBy?: Array<string>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
export class MarketingApi extends runtime.BaseAPI {
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
async getMarketingSalesRaw(requestParameters: MarketingApiGetMarketingSalesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetMarketingSales200Response>> {
|
|
47
|
+
const queryParameters: any = {};
|
|
48
|
+
|
|
49
|
+
if (requestParameters['filter'] != null) {
|
|
50
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
if (requestParameters['page'] != null) {
|
|
54
|
+
queryParameters['page'] = requestParameters['page'];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (requestParameters['limit'] != null) {
|
|
58
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (requestParameters['sortBy'] != null) {
|
|
62
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
66
|
+
|
|
67
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
68
|
+
const token = this.configuration.accessToken;
|
|
69
|
+
const tokenString = await token("bearer", []);
|
|
70
|
+
|
|
71
|
+
if (tokenString) {
|
|
72
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
const response = await this.request({
|
|
76
|
+
path: `/marketing/sales`,
|
|
77
|
+
method: 'GET',
|
|
78
|
+
headers: headerParameters,
|
|
79
|
+
query: queryParameters,
|
|
80
|
+
}, initOverrides);
|
|
81
|
+
|
|
82
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetMarketingSales200ResponseFromJSON(jsonValue));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
*/
|
|
88
|
+
async getMarketingSales(requestParameters: MarketingApiGetMarketingSalesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetMarketingSales200Response> {
|
|
89
|
+
const response = await this.getMarketingSalesRaw(requestParameters, initOverrides);
|
|
90
|
+
return await response.value();
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
*/
|
|
96
|
+
async getMarketingSalesFiltersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MarketingSalesFiltersDto>> {
|
|
97
|
+
const queryParameters: any = {};
|
|
98
|
+
|
|
99
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
100
|
+
|
|
101
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
102
|
+
const token = this.configuration.accessToken;
|
|
103
|
+
const tokenString = await token("bearer", []);
|
|
104
|
+
|
|
105
|
+
if (tokenString) {
|
|
106
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
const response = await this.request({
|
|
110
|
+
path: `/marketing/sales/filters`,
|
|
111
|
+
method: 'GET',
|
|
112
|
+
headers: headerParameters,
|
|
113
|
+
query: queryParameters,
|
|
114
|
+
}, initOverrides);
|
|
115
|
+
|
|
116
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MarketingSalesFiltersDtoFromJSON(jsonValue));
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
*/
|
|
122
|
+
async getMarketingSalesFilters(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MarketingSalesFiltersDto> {
|
|
123
|
+
const response = await this.getMarketingSalesFiltersRaw(initOverrides);
|
|
124
|
+
return await response.value();
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from './InvoicesApi';
|
|
|
18
18
|
export * from './LeadsApi';
|
|
19
19
|
export * from './LeadsPublicApi';
|
|
20
20
|
export * from './MandrillPublicApi';
|
|
21
|
+
export * from './MarketingApi';
|
|
21
22
|
export * from './MolliePublicApi';
|
|
22
23
|
export * from './NickyPublicApi';
|
|
23
24
|
export * from './NotificationsApi';
|
|
@@ -123,6 +123,8 @@ export const BuyerNotificationDtoTypeEnum = {
|
|
|
123
123
|
SELLER_RENT_SUBSCRIPTION_CANCELLED: 'seller_rent_subscription_cancelled',
|
|
124
124
|
LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'lease_to_own_subscription_has_been_activated_for_first_time',
|
|
125
125
|
RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'rent_subscription_has_been_activated_for_first_time',
|
|
126
|
+
RENT_SUBSCRIPTION_RENT_INDEXATION_ADVANCE_NOTICE: 'rent_subscription_rent_indexation_advance_notice',
|
|
127
|
+
RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: 'rent_subscription_rent_indexation_applied',
|
|
126
128
|
PASSWORD_RESET: 'password_reset',
|
|
127
129
|
USER_EMAIL_CHANGED: 'user_email_changed',
|
|
128
130
|
BUYER_INVOICE: 'buyer_invoice',
|
|
@@ -109,6 +109,8 @@ export const BuyerNotificationListItemDtoTypeEnum = {
|
|
|
109
109
|
SELLER_RENT_SUBSCRIPTION_CANCELLED: 'seller_rent_subscription_cancelled',
|
|
110
110
|
LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'lease_to_own_subscription_has_been_activated_for_first_time',
|
|
111
111
|
RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'rent_subscription_has_been_activated_for_first_time',
|
|
112
|
+
RENT_SUBSCRIPTION_RENT_INDEXATION_ADVANCE_NOTICE: 'rent_subscription_rent_indexation_advance_notice',
|
|
113
|
+
RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: 'rent_subscription_rent_indexation_applied',
|
|
112
114
|
PASSWORD_RESET: 'password_reset',
|
|
113
115
|
USER_EMAIL_CHANGED: 'user_email_changed',
|
|
114
116
|
BUYER_INVOICE: 'buyer_invoice',
|