@randock/nameshift-api-client 0.0.319 → 0.0.321
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 +2 -0
- package/README.md +3 -3
- package/dist/apis/UsersApi.d.ts +20 -1
- package/dist/apis/UsersApi.js +103 -0
- package/dist/models/UpdateUserNotificationSettingsInput.d.ts +76 -0
- package/dist/models/UpdateUserNotificationSettingsInput.js +69 -0
- package/dist/models/UserNotificationDto.d.ts +25 -15
- package/dist/models/UserNotificationDto.js +25 -15
- package/dist/models/UserNotificationListItemDto.d.ts +25 -15
- package/dist/models/UserNotificationListItemDto.js +25 -15
- package/dist/models/UserNotificationSettingsDto.d.ts +76 -0
- package/dist/models/UserNotificationSettingsDto.js +83 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/UsersApi.ts +87 -0
- package/src/models/UpdateUserNotificationSettingsInput.ts +124 -0
- package/src/models/UserNotificationDto.ts +25 -15
- package/src/models/UserNotificationListItemDto.ts +25 -15
- package/src/models/UserNotificationSettingsDto.ts +131 -0
- package/src/models/index.ts +2 -0
|
@@ -0,0 +1,76 @@
|
|
|
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 UserNotificationSettingsDto
|
|
16
|
+
*/
|
|
17
|
+
export interface UserNotificationSettingsDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof UserNotificationSettingsDto
|
|
22
|
+
*/
|
|
23
|
+
domainSold: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof UserNotificationSettingsDto
|
|
28
|
+
*/
|
|
29
|
+
domainTransferCompleted: boolean;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof UserNotificationSettingsDto
|
|
34
|
+
*/
|
|
35
|
+
leadClosed: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof UserNotificationSettingsDto
|
|
40
|
+
*/
|
|
41
|
+
invoices: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof UserNotificationSettingsDto
|
|
46
|
+
*/
|
|
47
|
+
payouts: boolean;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof UserNotificationSettingsDto
|
|
52
|
+
*/
|
|
53
|
+
leadMessagesFrequencyInMinutes: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof UserNotificationSettingsDto
|
|
58
|
+
*/
|
|
59
|
+
tasksFrequency: UserNotificationSettingsDtoTasksFrequencyEnum;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const UserNotificationSettingsDtoTasksFrequencyEnum: {
|
|
65
|
+
readonly DAILY: "daily";
|
|
66
|
+
readonly TASK_SCHEDULE: "task_schedule";
|
|
67
|
+
};
|
|
68
|
+
export type UserNotificationSettingsDtoTasksFrequencyEnum = typeof UserNotificationSettingsDtoTasksFrequencyEnum[keyof typeof UserNotificationSettingsDtoTasksFrequencyEnum];
|
|
69
|
+
/**
|
|
70
|
+
* Check if a given object implements the UserNotificationSettingsDto interface.
|
|
71
|
+
*/
|
|
72
|
+
export declare function instanceOfUserNotificationSettingsDto(value: object): value is UserNotificationSettingsDto;
|
|
73
|
+
export declare function UserNotificationSettingsDtoFromJSON(json: any): UserNotificationSettingsDto;
|
|
74
|
+
export declare function UserNotificationSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserNotificationSettingsDto;
|
|
75
|
+
export declare function UserNotificationSettingsDtoToJSON(json: any): UserNotificationSettingsDto;
|
|
76
|
+
export declare function UserNotificationSettingsDtoToJSONTyped(value?: UserNotificationSettingsDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,83 @@
|
|
|
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.UserNotificationSettingsDtoTasksFrequencyEnum = void 0;
|
|
17
|
+
exports.instanceOfUserNotificationSettingsDto = instanceOfUserNotificationSettingsDto;
|
|
18
|
+
exports.UserNotificationSettingsDtoFromJSON = UserNotificationSettingsDtoFromJSON;
|
|
19
|
+
exports.UserNotificationSettingsDtoFromJSONTyped = UserNotificationSettingsDtoFromJSONTyped;
|
|
20
|
+
exports.UserNotificationSettingsDtoToJSON = UserNotificationSettingsDtoToJSON;
|
|
21
|
+
exports.UserNotificationSettingsDtoToJSONTyped = UserNotificationSettingsDtoToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.UserNotificationSettingsDtoTasksFrequencyEnum = {
|
|
26
|
+
DAILY: 'daily',
|
|
27
|
+
TASK_SCHEDULE: 'task_schedule'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the UserNotificationSettingsDto interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfUserNotificationSettingsDto(value) {
|
|
33
|
+
if (!('domainSold' in value) || value['domainSold'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('domainTransferCompleted' in value) || value['domainTransferCompleted'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('leadClosed' in value) || value['leadClosed'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('invoices' in value) || value['invoices'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('payouts' in value) || value['payouts'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('leadMessagesFrequencyInMinutes' in value) || value['leadMessagesFrequencyInMinutes'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('tasksFrequency' in value) || value['tasksFrequency'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
function UserNotificationSettingsDtoFromJSON(json) {
|
|
50
|
+
return UserNotificationSettingsDtoFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function UserNotificationSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'domainSold': json['domainSold'],
|
|
58
|
+
'domainTransferCompleted': json['domainTransferCompleted'],
|
|
59
|
+
'leadClosed': json['leadClosed'],
|
|
60
|
+
'invoices': json['invoices'],
|
|
61
|
+
'payouts': json['payouts'],
|
|
62
|
+
'leadMessagesFrequencyInMinutes': json['leadMessagesFrequencyInMinutes'],
|
|
63
|
+
'tasksFrequency': json['tasksFrequency'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function UserNotificationSettingsDtoToJSON(json) {
|
|
67
|
+
return UserNotificationSettingsDtoToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
function UserNotificationSettingsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
70
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'domainSold': value['domainSold'],
|
|
76
|
+
'domainTransferCompleted': value['domainTransferCompleted'],
|
|
77
|
+
'leadClosed': value['leadClosed'],
|
|
78
|
+
'invoices': value['invoices'],
|
|
79
|
+
'payouts': value['payouts'],
|
|
80
|
+
'leadMessagesFrequencyInMinutes': value['leadMessagesFrequencyInMinutes'],
|
|
81
|
+
'tasksFrequency': value['tasksFrequency'],
|
|
82
|
+
};
|
|
83
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -281,10 +281,12 @@ export * from './UpdateLeadInput';
|
|
|
281
281
|
export * from './UpdateOrderInput';
|
|
282
282
|
export * from './UpdateSubscriptionBillingPeriodicityInput';
|
|
283
283
|
export * from './UpdateSubscriptionInput';
|
|
284
|
+
export * from './UpdateUserNotificationSettingsInput';
|
|
284
285
|
export * from './UsBankAccountDetails';
|
|
285
286
|
export * from './UserNotificationAttachmentDto';
|
|
286
287
|
export * from './UserNotificationDto';
|
|
287
288
|
export * from './UserNotificationListItemDto';
|
|
289
|
+
export * from './UserNotificationSettingsDto';
|
|
288
290
|
export * from './UserPasswordResetDto';
|
|
289
291
|
export * from './ValidateTaxNumberDto';
|
|
290
292
|
export * from './ValidateTaxNumberInput';
|
package/dist/models/index.js
CHANGED
|
@@ -299,10 +299,12 @@ __exportStar(require("./UpdateLeadInput"), exports);
|
|
|
299
299
|
__exportStar(require("./UpdateOrderInput"), exports);
|
|
300
300
|
__exportStar(require("./UpdateSubscriptionBillingPeriodicityInput"), exports);
|
|
301
301
|
__exportStar(require("./UpdateSubscriptionInput"), exports);
|
|
302
|
+
__exportStar(require("./UpdateUserNotificationSettingsInput"), exports);
|
|
302
303
|
__exportStar(require("./UsBankAccountDetails"), exports);
|
|
303
304
|
__exportStar(require("./UserNotificationAttachmentDto"), exports);
|
|
304
305
|
__exportStar(require("./UserNotificationDto"), exports);
|
|
305
306
|
__exportStar(require("./UserNotificationListItemDto"), exports);
|
|
307
|
+
__exportStar(require("./UserNotificationSettingsDto"), exports);
|
|
306
308
|
__exportStar(require("./UserPasswordResetDto"), exports);
|
|
307
309
|
__exportStar(require("./ValidateTaxNumberDto"), exports);
|
|
308
310
|
__exportStar(require("./ValidateTaxNumberInput"), exports);
|
package/package.json
CHANGED
package/src/apis/UsersApi.ts
CHANGED
|
@@ -17,6 +17,8 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
StoreUserLocaleInput,
|
|
19
19
|
ThrottlerException,
|
|
20
|
+
UpdateUserNotificationSettingsInput,
|
|
21
|
+
UserNotificationSettingsDto,
|
|
20
22
|
ValidationException,
|
|
21
23
|
} from '../models/index';
|
|
22
24
|
import {
|
|
@@ -24,6 +26,10 @@ import {
|
|
|
24
26
|
StoreUserLocaleInputToJSON,
|
|
25
27
|
ThrottlerExceptionFromJSON,
|
|
26
28
|
ThrottlerExceptionToJSON,
|
|
29
|
+
UpdateUserNotificationSettingsInputFromJSON,
|
|
30
|
+
UpdateUserNotificationSettingsInputToJSON,
|
|
31
|
+
UserNotificationSettingsDtoFromJSON,
|
|
32
|
+
UserNotificationSettingsDtoToJSON,
|
|
27
33
|
ValidationExceptionFromJSON,
|
|
28
34
|
ValidationExceptionToJSON,
|
|
29
35
|
} from '../models/index';
|
|
@@ -32,11 +38,49 @@ export interface UsersApiSetLocaleRequest {
|
|
|
32
38
|
storeUserLocaleInput: StoreUserLocaleInput;
|
|
33
39
|
}
|
|
34
40
|
|
|
41
|
+
export interface UsersApiUpdateUserNotificationSettingsRequest {
|
|
42
|
+
updateUserNotificationSettingsInput: UpdateUserNotificationSettingsInput;
|
|
43
|
+
}
|
|
44
|
+
|
|
35
45
|
/**
|
|
36
46
|
*
|
|
37
47
|
*/
|
|
38
48
|
export class UsersApi extends runtime.BaseAPI {
|
|
39
49
|
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
async getUserNotificationSettingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserNotificationSettingsDto>> {
|
|
54
|
+
const queryParameters: any = {};
|
|
55
|
+
|
|
56
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
57
|
+
|
|
58
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
59
|
+
const token = this.configuration.accessToken;
|
|
60
|
+
const tokenString = await token("bearer", []);
|
|
61
|
+
|
|
62
|
+
if (tokenString) {
|
|
63
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
const response = await this.request({
|
|
67
|
+
path: `/private/users/notification-settings`,
|
|
68
|
+
method: 'GET',
|
|
69
|
+
headers: headerParameters,
|
|
70
|
+
query: queryParameters,
|
|
71
|
+
}, initOverrides);
|
|
72
|
+
|
|
73
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserNotificationSettingsDtoFromJSON(jsonValue));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
*/
|
|
79
|
+
async getUserNotificationSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserNotificationSettingsDto> {
|
|
80
|
+
const response = await this.getUserNotificationSettingsRaw(initOverrides);
|
|
81
|
+
return await response.value();
|
|
82
|
+
}
|
|
83
|
+
|
|
40
84
|
/**
|
|
41
85
|
*
|
|
42
86
|
*/
|
|
@@ -80,4 +124,47 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
80
124
|
await this.setLocaleRaw(requestParameters, initOverrides);
|
|
81
125
|
}
|
|
82
126
|
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
*/
|
|
130
|
+
async updateUserNotificationSettingsRaw(requestParameters: UsersApiUpdateUserNotificationSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
131
|
+
if (requestParameters['updateUserNotificationSettingsInput'] == null) {
|
|
132
|
+
throw new runtime.RequiredError(
|
|
133
|
+
'updateUserNotificationSettingsInput',
|
|
134
|
+
'Required parameter "updateUserNotificationSettingsInput" was null or undefined when calling updateUserNotificationSettings().'
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
const queryParameters: any = {};
|
|
139
|
+
|
|
140
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
141
|
+
|
|
142
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
143
|
+
|
|
144
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
145
|
+
const token = this.configuration.accessToken;
|
|
146
|
+
const tokenString = await token("bearer", []);
|
|
147
|
+
|
|
148
|
+
if (tokenString) {
|
|
149
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
const response = await this.request({
|
|
153
|
+
path: `/private/users/notification-settings`,
|
|
154
|
+
method: 'PATCH',
|
|
155
|
+
headers: headerParameters,
|
|
156
|
+
query: queryParameters,
|
|
157
|
+
body: UpdateUserNotificationSettingsInputToJSON(requestParameters['updateUserNotificationSettingsInput']),
|
|
158
|
+
}, initOverrides);
|
|
159
|
+
|
|
160
|
+
return new runtime.VoidApiResponse(response);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
*/
|
|
166
|
+
async updateUserNotificationSettings(requestParameters: UsersApiUpdateUserNotificationSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
167
|
+
await this.updateUserNotificationSettingsRaw(requestParameters, initOverrides);
|
|
168
|
+
}
|
|
169
|
+
|
|
83
170
|
}
|
|
@@ -0,0 +1,124 @@
|
|
|
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 { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UpdateUserNotificationSettingsInput
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateUserNotificationSettingsInput {
|
|
22
|
+
/**
|
|
23
|
+
* Enable notifications for domain sold events
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof UpdateUserNotificationSettingsInput
|
|
26
|
+
*/
|
|
27
|
+
domainSold?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Enable notifications for domain transfer completed events
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof UpdateUserNotificationSettingsInput
|
|
32
|
+
*/
|
|
33
|
+
domainTransferCompleted?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Enable notifications for lead closed events
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof UpdateUserNotificationSettingsInput
|
|
38
|
+
*/
|
|
39
|
+
leadClosed?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Enable notifications for invoice events
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof UpdateUserNotificationSettingsInput
|
|
44
|
+
*/
|
|
45
|
+
invoices?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Enable notifications for payout events
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof UpdateUserNotificationSettingsInput
|
|
50
|
+
*/
|
|
51
|
+
payouts?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Frequency in minutes for lead message notifications
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof UpdateUserNotificationSettingsInput
|
|
56
|
+
*/
|
|
57
|
+
leadMessagesFrequencyInMinutes?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Frequency for task reminder notifications
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof UpdateUserNotificationSettingsInput
|
|
62
|
+
*/
|
|
63
|
+
tasksFrequency?: UpdateUserNotificationSettingsInputTasksFrequencyEnum;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export const UpdateUserNotificationSettingsInputTasksFrequencyEnum = {
|
|
71
|
+
DAILY: 'daily',
|
|
72
|
+
TASK_SCHEDULE: 'task_schedule'
|
|
73
|
+
} as const;
|
|
74
|
+
export type UpdateUserNotificationSettingsInputTasksFrequencyEnum = typeof UpdateUserNotificationSettingsInputTasksFrequencyEnum[keyof typeof UpdateUserNotificationSettingsInputTasksFrequencyEnum];
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the UpdateUserNotificationSettingsInput interface.
|
|
79
|
+
*/
|
|
80
|
+
export function instanceOfUpdateUserNotificationSettingsInput(value: object): value is UpdateUserNotificationSettingsInput {
|
|
81
|
+
return true;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function UpdateUserNotificationSettingsInputFromJSON(json: any): UpdateUserNotificationSettingsInput {
|
|
85
|
+
return UpdateUserNotificationSettingsInputFromJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function UpdateUserNotificationSettingsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateUserNotificationSettingsInput {
|
|
89
|
+
if (json == null) {
|
|
90
|
+
return json;
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'domainSold': json['domainSold'] == null ? undefined : json['domainSold'],
|
|
95
|
+
'domainTransferCompleted': json['domainTransferCompleted'] == null ? undefined : json['domainTransferCompleted'],
|
|
96
|
+
'leadClosed': json['leadClosed'] == null ? undefined : json['leadClosed'],
|
|
97
|
+
'invoices': json['invoices'] == null ? undefined : json['invoices'],
|
|
98
|
+
'payouts': json['payouts'] == null ? undefined : json['payouts'],
|
|
99
|
+
'leadMessagesFrequencyInMinutes': json['leadMessagesFrequencyInMinutes'] == null ? undefined : json['leadMessagesFrequencyInMinutes'],
|
|
100
|
+
'tasksFrequency': json['tasksFrequency'] == null ? undefined : json['tasksFrequency'],
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function UpdateUserNotificationSettingsInputToJSON(json: any): UpdateUserNotificationSettingsInput {
|
|
105
|
+
return UpdateUserNotificationSettingsInputToJSONTyped(json, false);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function UpdateUserNotificationSettingsInputToJSONTyped(value?: UpdateUserNotificationSettingsInput | null, ignoreDiscriminator: boolean = false): any {
|
|
109
|
+
if (value == null) {
|
|
110
|
+
return value;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return {
|
|
114
|
+
|
|
115
|
+
'domainSold': value['domainSold'],
|
|
116
|
+
'domainTransferCompleted': value['domainTransferCompleted'],
|
|
117
|
+
'leadClosed': value['leadClosed'],
|
|
118
|
+
'invoices': value['invoices'],
|
|
119
|
+
'payouts': value['payouts'],
|
|
120
|
+
'leadMessagesFrequencyInMinutes': value['leadMessagesFrequencyInMinutes'],
|
|
121
|
+
'tasksFrequency': value['tasksFrequency'],
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
@@ -81,35 +81,27 @@ export const UserNotificationDtoTypeEnum = {
|
|
|
81
81
|
ACCOUNT_ONBOARDING_FINISHED: 'account_onboarding_finished',
|
|
82
82
|
ACCOUNT_ONBOARDING_REJECTED: 'account_onboarding_rejected',
|
|
83
83
|
BUYER_ACCESS_TOKEN: 'buyer_access_token',
|
|
84
|
-
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
|
85
|
-
DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
|
|
86
|
-
DOMAIN_SOLD_SELLER_NOTIFICATION: 'domain_sold_seller_notification',
|
|
87
|
-
DOMAIN_SOLD_BY_LEASE_TO_OWN_SELLER_NOTIFICATION: 'domain_sold_by_lease_to_own_seller_notification',
|
|
88
|
-
DOMAIN_SOLD_BY_RENT_SELLER_NOTIFICATION: 'domain_sold_by_rent_seller_notification',
|
|
89
|
-
DOMAIN_TRANSFER_VALIDATION_AUTO_CONFIRMED_EMAIL: 'domain_transfer_validation_auto_confirmed_email',
|
|
90
|
-
DOMAIN_TRANSFER_VALIDATION_REQUIRED_BY_BUYER_EMAIL: 'domain_transfer_validation_required_by_buyer_email',
|
|
91
|
-
DOMAIN_TRANSFER_COMPLETED_FOR_SELLER: 'domain_transfer.completed_for_seller',
|
|
92
84
|
DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER: 'domain_transfer.request_auth_code_to_seller',
|
|
85
|
+
DOMAIN_TRANSFER_VALIDATION_REQUIRED_BY_BUYER_EMAIL: 'domain_transfer_validation_required_by_buyer_email',
|
|
86
|
+
DOMAIN_TRANSFER_VALIDATION_AUTO_CONFIRMED_EMAIL: 'domain_transfer_validation_auto_confirmed_email',
|
|
93
87
|
DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER_REMINDER: 'domain_transfer.request_auth_code_to_seller.reminder',
|
|
94
88
|
DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER_AUTH_CODE_INVALID: 'domain_transfer.request_auth_code_to_seller_auth_code_invalid',
|
|
95
89
|
DOMAIN_TRANSFER_DOMAIN_TRANSFER_REQUIRES_UNLOCK_DOMAIN: 'domain_transfer.domain_transfer_requires_unlock_domain',
|
|
96
90
|
DOMAIN_TRANSFER_NOTIFY_BUYER_TO_INITIALIZE_TRANSFER: 'domain_transfer.notify_buyer_to_initialize_transfer',
|
|
97
91
|
DOMAIN_TRANSFER_NOTIFY_SELLER_TO_INITIALIZE_TRANSFER: 'domain_transfer.notify_seller_to_initialize_transfer',
|
|
98
|
-
DOMAIN_TRANSFER_RECREATE_DOMAIN_IN_SELLER_ACCOUNT_ERROR: 'domain_transfer.recreate_domain_in_seller_account_error',
|
|
99
92
|
DOMAIN_TRANSFER_SEND_IPS_TAG_INSTRUCTIONS_TO_SELLER: 'domain_transfer.send_ips_tag_instructions_to_seller',
|
|
100
93
|
DOMAIN_TRANSFER_SEND_IPS_TAG_INSTRUCTIONS_TO_SELLER_REMINDER: 'domain_transfer.send_ips_tag_instructions_to_seller_reminder',
|
|
101
94
|
DOMAIN_TRANSFER_SEND_IPS_TAG_INSTRUCTIONS_TO_BUYER: 'domain_transfer.send_ips_tag_instructions_to_buyer',
|
|
95
|
+
DOMAIN_TRANSFER_RECREATE_DOMAIN_IN_SELLER_ACCOUNT_ERROR: 'domain_transfer.recreate_domain_in_seller_account_error',
|
|
102
96
|
DOMAIN_TRANSFER_SEND_IPS_TAG_INSTRUCTIONS_TO_START_TRANSFER_TO_SELLER: 'domain_transfer.send_ips_tag_instructions_to_start_transfer_to_seller',
|
|
103
97
|
DOMAIN_TRANSFER_RENT_SUBSCRIPTION_SEND_OWNED_DOMAIN_AUTH_CODE_TO_SELLER: 'domain_transfer.rent_subscription_send_owned_domain_auth_code_to_seller',
|
|
104
98
|
DOMAIN_TRANSFER_LEASE_TO_OWN_SUBSCRIPTION_SEND_OWNED_DOMAIN_AUTH_CODE_TO_SELLER: 'domain_transfer.lease_to_own_subscription_send_owned_domain_auth_code_to_seller',
|
|
99
|
+
DOMAIN_TRANSFER_SEND_AUTH_CODE_TO_BUYER: 'domain_transfer.send_auth_code_to_buyer',
|
|
100
|
+
DOMAIN_TRANSFER_SEND_AUTH_CODE_TO_BUYER_WITH_HOLDERCHANGE_SE_NU_FILE: 'domain_transfer.send_auth_code_to_buyer_with_holderchange_se_nu_file',
|
|
105
101
|
REQUEST_IPS_TAG_TO_BUYER_IPS_TAG_INVALID: 'request_ips_tag_to_buyer_ips_tag_invalid',
|
|
106
102
|
REQUEST_IPS_TAG_TO_SELLER_IPS_TAG_INVALID: 'request_ips_tag_to_seller_ips_tag_invalid',
|
|
107
|
-
LEAD_CLOSED_SELLER: 'lead.closed.seller',
|
|
108
|
-
LEAD_CLOSED_BUYER: 'lead.closed.buyer',
|
|
109
|
-
ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
|
|
110
103
|
EXPORT_COMPLETED: 'export_completed',
|
|
111
104
|
DOMAIN_IMPORT_FINISHED: 'domain_import_finished',
|
|
112
|
-
SELLER_PAYOUT_WAS_PAID: 'seller_payout_was_paid',
|
|
113
105
|
DOMAIN_OFFER_VERIFIED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_verified_buyer_access_link_email',
|
|
114
106
|
DOMAIN_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: 'domain_offer_accepted_continue_order_email',
|
|
115
107
|
DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL: 'domain_offer_accepted_continue_lease_to_own_email',
|
|
@@ -127,13 +119,31 @@ export const UserNotificationDtoTypeEnum = {
|
|
|
127
119
|
RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'rent_subscription_has_been_activated_for_first_time',
|
|
128
120
|
PASSWORD_RESET: 'password_reset',
|
|
129
121
|
BUYER_INVOICE: 'buyer_invoice',
|
|
130
|
-
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
131
122
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
123
|
+
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
124
|
+
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
|
125
|
+
ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
|
|
126
|
+
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
|
127
|
+
DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
|
|
128
|
+
LEAD_CLOSED_BUYER: 'lead.closed.buyer',
|
|
129
|
+
DOMAIN_SOLD_SELLER_NOTIFICATION: 'domain_sold_seller_notification',
|
|
130
|
+
DOMAIN_SOLD_BY_LEASE_TO_OWN_SELLER_NOTIFICATION: 'domain_sold_by_lease_to_own_seller_notification',
|
|
131
|
+
DOMAIN_SOLD_BY_RENT_SELLER_NOTIFICATION: 'domain_sold_by_rent_seller_notification',
|
|
132
|
+
DOMAIN_TRANSFER_COMPLETED_FOR_SELLER: 'domain_transfer.completed_for_seller',
|
|
133
|
+
LEAD_CLOSED_SELLER: 'lead.closed.seller',
|
|
134
|
+
SELLER_PAYOUT_WAS_PAID: 'seller_payout_was_paid',
|
|
132
135
|
SELLER_INVOICE: 'seller_invoice',
|
|
133
136
|
SELLER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'seller_lease_to_own_installment_invoice',
|
|
134
137
|
SELLER_RENT_INSTALLMENT_INVOICE: 'seller_rent_installment_invoice',
|
|
135
138
|
AFFILIATE_COMMISSIONS_INVOICE: 'affiliate_commissions_invoice',
|
|
136
|
-
|
|
139
|
+
LEAD_MESSAGE_OFFER: 'lead_message.offer',
|
|
140
|
+
LEAD_MESSAGE_OFFER_ACCEPTED: 'lead_message.offer_accepted',
|
|
141
|
+
LEAD_MESSAGE_OFFER_WITHDRAWN: 'lead_message.offer_withdrawn',
|
|
142
|
+
LEAD_MESSAGE_OFFER_REJECTED: 'lead_message.offer_rejected',
|
|
143
|
+
LEAD_MESSAGE_MESSAGE: 'lead_message.message',
|
|
144
|
+
TASKS_REMINDER_LEAD: 'tasks.reminder.lead',
|
|
145
|
+
TASKS_REMINDER_DOMAIN_TRANSFER: 'tasks.reminder.domain_transfer',
|
|
146
|
+
TASKS_REMINDER_ORDER: 'tasks.reminder.order'
|
|
137
147
|
} as const;
|
|
138
148
|
export type UserNotificationDtoTypeEnum = typeof UserNotificationDtoTypeEnum[keyof typeof UserNotificationDtoTypeEnum];
|
|
139
149
|
|
|
@@ -67,35 +67,27 @@ export const UserNotificationListItemDtoTypeEnum = {
|
|
|
67
67
|
ACCOUNT_ONBOARDING_FINISHED: 'account_onboarding_finished',
|
|
68
68
|
ACCOUNT_ONBOARDING_REJECTED: 'account_onboarding_rejected',
|
|
69
69
|
BUYER_ACCESS_TOKEN: 'buyer_access_token',
|
|
70
|
-
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
|
71
|
-
DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
|
|
72
|
-
DOMAIN_SOLD_SELLER_NOTIFICATION: 'domain_sold_seller_notification',
|
|
73
|
-
DOMAIN_SOLD_BY_LEASE_TO_OWN_SELLER_NOTIFICATION: 'domain_sold_by_lease_to_own_seller_notification',
|
|
74
|
-
DOMAIN_SOLD_BY_RENT_SELLER_NOTIFICATION: 'domain_sold_by_rent_seller_notification',
|
|
75
|
-
DOMAIN_TRANSFER_VALIDATION_AUTO_CONFIRMED_EMAIL: 'domain_transfer_validation_auto_confirmed_email',
|
|
76
|
-
DOMAIN_TRANSFER_VALIDATION_REQUIRED_BY_BUYER_EMAIL: 'domain_transfer_validation_required_by_buyer_email',
|
|
77
|
-
DOMAIN_TRANSFER_COMPLETED_FOR_SELLER: 'domain_transfer.completed_for_seller',
|
|
78
70
|
DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER: 'domain_transfer.request_auth_code_to_seller',
|
|
71
|
+
DOMAIN_TRANSFER_VALIDATION_REQUIRED_BY_BUYER_EMAIL: 'domain_transfer_validation_required_by_buyer_email',
|
|
72
|
+
DOMAIN_TRANSFER_VALIDATION_AUTO_CONFIRMED_EMAIL: 'domain_transfer_validation_auto_confirmed_email',
|
|
79
73
|
DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER_REMINDER: 'domain_transfer.request_auth_code_to_seller.reminder',
|
|
80
74
|
DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER_AUTH_CODE_INVALID: 'domain_transfer.request_auth_code_to_seller_auth_code_invalid',
|
|
81
75
|
DOMAIN_TRANSFER_DOMAIN_TRANSFER_REQUIRES_UNLOCK_DOMAIN: 'domain_transfer.domain_transfer_requires_unlock_domain',
|
|
82
76
|
DOMAIN_TRANSFER_NOTIFY_BUYER_TO_INITIALIZE_TRANSFER: 'domain_transfer.notify_buyer_to_initialize_transfer',
|
|
83
77
|
DOMAIN_TRANSFER_NOTIFY_SELLER_TO_INITIALIZE_TRANSFER: 'domain_transfer.notify_seller_to_initialize_transfer',
|
|
84
|
-
DOMAIN_TRANSFER_RECREATE_DOMAIN_IN_SELLER_ACCOUNT_ERROR: 'domain_transfer.recreate_domain_in_seller_account_error',
|
|
85
78
|
DOMAIN_TRANSFER_SEND_IPS_TAG_INSTRUCTIONS_TO_SELLER: 'domain_transfer.send_ips_tag_instructions_to_seller',
|
|
86
79
|
DOMAIN_TRANSFER_SEND_IPS_TAG_INSTRUCTIONS_TO_SELLER_REMINDER: 'domain_transfer.send_ips_tag_instructions_to_seller_reminder',
|
|
87
80
|
DOMAIN_TRANSFER_SEND_IPS_TAG_INSTRUCTIONS_TO_BUYER: 'domain_transfer.send_ips_tag_instructions_to_buyer',
|
|
81
|
+
DOMAIN_TRANSFER_RECREATE_DOMAIN_IN_SELLER_ACCOUNT_ERROR: 'domain_transfer.recreate_domain_in_seller_account_error',
|
|
88
82
|
DOMAIN_TRANSFER_SEND_IPS_TAG_INSTRUCTIONS_TO_START_TRANSFER_TO_SELLER: 'domain_transfer.send_ips_tag_instructions_to_start_transfer_to_seller',
|
|
89
83
|
DOMAIN_TRANSFER_RENT_SUBSCRIPTION_SEND_OWNED_DOMAIN_AUTH_CODE_TO_SELLER: 'domain_transfer.rent_subscription_send_owned_domain_auth_code_to_seller',
|
|
90
84
|
DOMAIN_TRANSFER_LEASE_TO_OWN_SUBSCRIPTION_SEND_OWNED_DOMAIN_AUTH_CODE_TO_SELLER: 'domain_transfer.lease_to_own_subscription_send_owned_domain_auth_code_to_seller',
|
|
85
|
+
DOMAIN_TRANSFER_SEND_AUTH_CODE_TO_BUYER: 'domain_transfer.send_auth_code_to_buyer',
|
|
86
|
+
DOMAIN_TRANSFER_SEND_AUTH_CODE_TO_BUYER_WITH_HOLDERCHANGE_SE_NU_FILE: 'domain_transfer.send_auth_code_to_buyer_with_holderchange_se_nu_file',
|
|
91
87
|
REQUEST_IPS_TAG_TO_BUYER_IPS_TAG_INVALID: 'request_ips_tag_to_buyer_ips_tag_invalid',
|
|
92
88
|
REQUEST_IPS_TAG_TO_SELLER_IPS_TAG_INVALID: 'request_ips_tag_to_seller_ips_tag_invalid',
|
|
93
|
-
LEAD_CLOSED_SELLER: 'lead.closed.seller',
|
|
94
|
-
LEAD_CLOSED_BUYER: 'lead.closed.buyer',
|
|
95
|
-
ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
|
|
96
89
|
EXPORT_COMPLETED: 'export_completed',
|
|
97
90
|
DOMAIN_IMPORT_FINISHED: 'domain_import_finished',
|
|
98
|
-
SELLER_PAYOUT_WAS_PAID: 'seller_payout_was_paid',
|
|
99
91
|
DOMAIN_OFFER_VERIFIED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_verified_buyer_access_link_email',
|
|
100
92
|
DOMAIN_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: 'domain_offer_accepted_continue_order_email',
|
|
101
93
|
DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL: 'domain_offer_accepted_continue_lease_to_own_email',
|
|
@@ -113,13 +105,31 @@ export const UserNotificationListItemDtoTypeEnum = {
|
|
|
113
105
|
RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'rent_subscription_has_been_activated_for_first_time',
|
|
114
106
|
PASSWORD_RESET: 'password_reset',
|
|
115
107
|
BUYER_INVOICE: 'buyer_invoice',
|
|
116
|
-
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
117
108
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
109
|
+
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
110
|
+
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
|
111
|
+
ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
|
|
112
|
+
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
|
113
|
+
DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
|
|
114
|
+
LEAD_CLOSED_BUYER: 'lead.closed.buyer',
|
|
115
|
+
DOMAIN_SOLD_SELLER_NOTIFICATION: 'domain_sold_seller_notification',
|
|
116
|
+
DOMAIN_SOLD_BY_LEASE_TO_OWN_SELLER_NOTIFICATION: 'domain_sold_by_lease_to_own_seller_notification',
|
|
117
|
+
DOMAIN_SOLD_BY_RENT_SELLER_NOTIFICATION: 'domain_sold_by_rent_seller_notification',
|
|
118
|
+
DOMAIN_TRANSFER_COMPLETED_FOR_SELLER: 'domain_transfer.completed_for_seller',
|
|
119
|
+
LEAD_CLOSED_SELLER: 'lead.closed.seller',
|
|
120
|
+
SELLER_PAYOUT_WAS_PAID: 'seller_payout_was_paid',
|
|
118
121
|
SELLER_INVOICE: 'seller_invoice',
|
|
119
122
|
SELLER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'seller_lease_to_own_installment_invoice',
|
|
120
123
|
SELLER_RENT_INSTALLMENT_INVOICE: 'seller_rent_installment_invoice',
|
|
121
124
|
AFFILIATE_COMMISSIONS_INVOICE: 'affiliate_commissions_invoice',
|
|
122
|
-
|
|
125
|
+
LEAD_MESSAGE_OFFER: 'lead_message.offer',
|
|
126
|
+
LEAD_MESSAGE_OFFER_ACCEPTED: 'lead_message.offer_accepted',
|
|
127
|
+
LEAD_MESSAGE_OFFER_WITHDRAWN: 'lead_message.offer_withdrawn',
|
|
128
|
+
LEAD_MESSAGE_OFFER_REJECTED: 'lead_message.offer_rejected',
|
|
129
|
+
LEAD_MESSAGE_MESSAGE: 'lead_message.message',
|
|
130
|
+
TASKS_REMINDER_LEAD: 'tasks.reminder.lead',
|
|
131
|
+
TASKS_REMINDER_DOMAIN_TRANSFER: 'tasks.reminder.domain_transfer',
|
|
132
|
+
TASKS_REMINDER_ORDER: 'tasks.reminder.order'
|
|
123
133
|
} as const;
|
|
124
134
|
export type UserNotificationListItemDtoTypeEnum = typeof UserNotificationListItemDtoTypeEnum[keyof typeof UserNotificationListItemDtoTypeEnum];
|
|
125
135
|
|