@randock/nameshift-api-client 0.0.320 → 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.
@@ -0,0 +1,131 @@
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 UserNotificationSettingsDto
20
+ */
21
+ export interface UserNotificationSettingsDto {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof UserNotificationSettingsDto
26
+ */
27
+ domainSold: boolean;
28
+ /**
29
+ *
30
+ * @type {boolean}
31
+ * @memberof UserNotificationSettingsDto
32
+ */
33
+ domainTransferCompleted: boolean;
34
+ /**
35
+ *
36
+ * @type {boolean}
37
+ * @memberof UserNotificationSettingsDto
38
+ */
39
+ leadClosed: boolean;
40
+ /**
41
+ *
42
+ * @type {boolean}
43
+ * @memberof UserNotificationSettingsDto
44
+ */
45
+ invoices: boolean;
46
+ /**
47
+ *
48
+ * @type {boolean}
49
+ * @memberof UserNotificationSettingsDto
50
+ */
51
+ payouts: boolean;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof UserNotificationSettingsDto
56
+ */
57
+ leadMessagesFrequencyInMinutes: number;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof UserNotificationSettingsDto
62
+ */
63
+ tasksFrequency: UserNotificationSettingsDtoTasksFrequencyEnum;
64
+ }
65
+
66
+
67
+ /**
68
+ * @export
69
+ */
70
+ export const UserNotificationSettingsDtoTasksFrequencyEnum = {
71
+ DAILY: 'daily',
72
+ TASK_SCHEDULE: 'task_schedule'
73
+ } as const;
74
+ export type UserNotificationSettingsDtoTasksFrequencyEnum = typeof UserNotificationSettingsDtoTasksFrequencyEnum[keyof typeof UserNotificationSettingsDtoTasksFrequencyEnum];
75
+
76
+
77
+ /**
78
+ * Check if a given object implements the UserNotificationSettingsDto interface.
79
+ */
80
+ export function instanceOfUserNotificationSettingsDto(value: object): value is UserNotificationSettingsDto {
81
+ if (!('domainSold' in value) || value['domainSold'] === undefined) return false;
82
+ if (!('domainTransferCompleted' in value) || value['domainTransferCompleted'] === undefined) return false;
83
+ if (!('leadClosed' in value) || value['leadClosed'] === undefined) return false;
84
+ if (!('invoices' in value) || value['invoices'] === undefined) return false;
85
+ if (!('payouts' in value) || value['payouts'] === undefined) return false;
86
+ if (!('leadMessagesFrequencyInMinutes' in value) || value['leadMessagesFrequencyInMinutes'] === undefined) return false;
87
+ if (!('tasksFrequency' in value) || value['tasksFrequency'] === undefined) return false;
88
+ return true;
89
+ }
90
+
91
+ export function UserNotificationSettingsDtoFromJSON(json: any): UserNotificationSettingsDto {
92
+ return UserNotificationSettingsDtoFromJSONTyped(json, false);
93
+ }
94
+
95
+ export function UserNotificationSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserNotificationSettingsDto {
96
+ if (json == null) {
97
+ return json;
98
+ }
99
+ return {
100
+
101
+ 'domainSold': json['domainSold'],
102
+ 'domainTransferCompleted': json['domainTransferCompleted'],
103
+ 'leadClosed': json['leadClosed'],
104
+ 'invoices': json['invoices'],
105
+ 'payouts': json['payouts'],
106
+ 'leadMessagesFrequencyInMinutes': json['leadMessagesFrequencyInMinutes'],
107
+ 'tasksFrequency': json['tasksFrequency'],
108
+ };
109
+ }
110
+
111
+ export function UserNotificationSettingsDtoToJSON(json: any): UserNotificationSettingsDto {
112
+ return UserNotificationSettingsDtoToJSONTyped(json, false);
113
+ }
114
+
115
+ export function UserNotificationSettingsDtoToJSONTyped(value?: UserNotificationSettingsDto | null, ignoreDiscriminator: boolean = false): any {
116
+ if (value == null) {
117
+ return value;
118
+ }
119
+
120
+ return {
121
+
122
+ 'domainSold': value['domainSold'],
123
+ 'domainTransferCompleted': value['domainTransferCompleted'],
124
+ 'leadClosed': value['leadClosed'],
125
+ 'invoices': value['invoices'],
126
+ 'payouts': value['payouts'],
127
+ 'leadMessagesFrequencyInMinutes': value['leadMessagesFrequencyInMinutes'],
128
+ 'tasksFrequency': value['tasksFrequency'],
129
+ };
130
+ }
131
+
@@ -283,10 +283,12 @@ export * from './UpdateLeadInput';
283
283
  export * from './UpdateOrderInput';
284
284
  export * from './UpdateSubscriptionBillingPeriodicityInput';
285
285
  export * from './UpdateSubscriptionInput';
286
+ export * from './UpdateUserNotificationSettingsInput';
286
287
  export * from './UsBankAccountDetails';
287
288
  export * from './UserNotificationAttachmentDto';
288
289
  export * from './UserNotificationDto';
289
290
  export * from './UserNotificationListItemDto';
291
+ export * from './UserNotificationSettingsDto';
290
292
  export * from './UserPasswordResetDto';
291
293
  export * from './ValidateTaxNumberDto';
292
294
  export * from './ValidateTaxNumberInput';