@randock/nameshift-api-client 0.0.327 → 0.0.329

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/.openapi-generator/FILES +9 -0
  2. package/README.md +3 -3
  3. package/dist/apis/BuyersApi.d.ts +72 -1
  4. package/dist/apis/BuyersApi.js +332 -0
  5. package/dist/models/AccountCommissionByDateRangeDto.d.ts +44 -0
  6. package/dist/models/AccountCommissionByDateRangeDto.js +59 -0
  7. package/dist/models/AdminAccountCommissionByDateRangeInput.d.ts +44 -0
  8. package/dist/models/AdminAccountCommissionByDateRangeInput.js +57 -0
  9. package/dist/models/AdminAccountSettingsInput.d.ts +13 -0
  10. package/dist/models/AdminAccountSettingsInput.js +5 -0
  11. package/dist/models/BulkMarkBuyerNotificationsAsReadInputDto.d.ts +38 -0
  12. package/dist/models/BulkMarkBuyerNotificationsAsReadInputDto.js +55 -0
  13. package/dist/models/BuyerNotificationAttachmentDto.d.ts +44 -0
  14. package/dist/models/BuyerNotificationAttachmentDto.js +59 -0
  15. package/dist/models/BuyerNotificationDto.d.ts +145 -0
  16. package/dist/models/BuyerNotificationDto.js +152 -0
  17. package/dist/models/BuyerNotificationListItemDto.d.ts +138 -0
  18. package/dist/models/BuyerNotificationListItemDto.js +147 -0
  19. package/dist/models/BuyerNotificationSettingsDto.d.ts +32 -0
  20. package/dist/models/BuyerNotificationSettingsDto.js +51 -0
  21. package/dist/models/BuyerSessionDto.d.ts +6 -0
  22. package/dist/models/BuyerSessionDto.js +4 -0
  23. package/dist/models/IntersectionListAccountDtoWithAccountCommissionDto.d.ts +6 -0
  24. package/dist/models/IntersectionListAccountDtoWithAccountCommissionDto.js +4 -0
  25. package/dist/models/ListBuyerNotifications200Response.d.ts +47 -0
  26. package/dist/models/ListBuyerNotifications200Response.js +62 -0
  27. package/dist/models/UpdateBuyerNotificationSettingsInput.d.ts +32 -0
  28. package/dist/models/UpdateBuyerNotificationSettingsInput.js +49 -0
  29. package/dist/models/WithSettingsInner.d.ts +13 -0
  30. package/dist/models/WithSettingsInner.js +9 -0
  31. package/dist/models/index.d.ts +9 -0
  32. package/dist/models/index.js +9 -0
  33. package/package.json +1 -1
  34. package/src/apis/BuyersApi.ts +302 -0
  35. package/src/models/AccountCommissionByDateRangeDto.ts +84 -0
  36. package/src/models/AdminAccountCommissionByDateRangeInput.ts +83 -0
  37. package/src/models/AdminAccountSettingsInput.ts +23 -0
  38. package/src/models/BulkMarkBuyerNotificationsAsReadInputDto.ts +75 -0
  39. package/src/models/BuyerNotificationAttachmentDto.ts +84 -0
  40. package/src/models/BuyerNotificationDto.ts +207 -0
  41. package/src/models/BuyerNotificationListItemDto.ts +190 -0
  42. package/src/models/BuyerNotificationSettingsDto.ts +66 -0
  43. package/src/models/BuyerSessionDto.ts +9 -0
  44. package/src/models/IntersectionListAccountDtoWithAccountCommissionDto.ts +9 -0
  45. package/src/models/ListBuyerNotifications200Response.ts +106 -0
  46. package/src/models/UpdateBuyerNotificationSettingsInput.ts +65 -0
  47. package/src/models/WithSettingsInner.ts +25 -0
  48. package/src/models/index.ts +9 -0
@@ -0,0 +1,59 @@
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.instanceOfAccountCommissionByDateRangeDto = instanceOfAccountCommissionByDateRangeDto;
17
+ exports.AccountCommissionByDateRangeDtoFromJSON = AccountCommissionByDateRangeDtoFromJSON;
18
+ exports.AccountCommissionByDateRangeDtoFromJSONTyped = AccountCommissionByDateRangeDtoFromJSONTyped;
19
+ exports.AccountCommissionByDateRangeDtoToJSON = AccountCommissionByDateRangeDtoToJSON;
20
+ exports.AccountCommissionByDateRangeDtoToJSONTyped = AccountCommissionByDateRangeDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AccountCommissionByDateRangeDto interface.
23
+ */
24
+ function instanceOfAccountCommissionByDateRangeDto(value) {
25
+ if (!('start' in value) || value['start'] === undefined)
26
+ return false;
27
+ if (!('end' in value) || value['end'] === undefined)
28
+ return false;
29
+ if (!('commissionPercentage' in value) || value['commissionPercentage'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function AccountCommissionByDateRangeDtoFromJSON(json) {
34
+ return AccountCommissionByDateRangeDtoFromJSONTyped(json, false);
35
+ }
36
+ function AccountCommissionByDateRangeDtoFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'start': (new Date(json['start'])),
42
+ 'end': (json['end'] == null ? null : new Date(json['end'])),
43
+ 'commissionPercentage': json['commissionPercentage'],
44
+ };
45
+ }
46
+ function AccountCommissionByDateRangeDtoToJSON(json) {
47
+ return AccountCommissionByDateRangeDtoToJSONTyped(json, false);
48
+ }
49
+ function AccountCommissionByDateRangeDtoToJSONTyped(value, ignoreDiscriminator) {
50
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'start': ((value['start']).toISOString()),
56
+ 'end': (value['end'] == null ? null : value['end'].toISOString()),
57
+ 'commissionPercentage': value['commissionPercentage'],
58
+ };
59
+ }
@@ -0,0 +1,44 @@
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 AdminAccountCommissionByDateRangeInput
16
+ */
17
+ export interface AdminAccountCommissionByDateRangeInput {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AdminAccountCommissionByDateRangeInput
22
+ */
23
+ startDate: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AdminAccountCommissionByDateRangeInput
28
+ */
29
+ endDate?: string | null;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof AdminAccountCommissionByDateRangeInput
34
+ */
35
+ commissionPercentage: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the AdminAccountCommissionByDateRangeInput interface.
39
+ */
40
+ export declare function instanceOfAdminAccountCommissionByDateRangeInput(value: object): value is AdminAccountCommissionByDateRangeInput;
41
+ export declare function AdminAccountCommissionByDateRangeInputFromJSON(json: any): AdminAccountCommissionByDateRangeInput;
42
+ export declare function AdminAccountCommissionByDateRangeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminAccountCommissionByDateRangeInput;
43
+ export declare function AdminAccountCommissionByDateRangeInputToJSON(json: any): AdminAccountCommissionByDateRangeInput;
44
+ export declare function AdminAccountCommissionByDateRangeInputToJSONTyped(value?: AdminAccountCommissionByDateRangeInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
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.instanceOfAdminAccountCommissionByDateRangeInput = instanceOfAdminAccountCommissionByDateRangeInput;
17
+ exports.AdminAccountCommissionByDateRangeInputFromJSON = AdminAccountCommissionByDateRangeInputFromJSON;
18
+ exports.AdminAccountCommissionByDateRangeInputFromJSONTyped = AdminAccountCommissionByDateRangeInputFromJSONTyped;
19
+ exports.AdminAccountCommissionByDateRangeInputToJSON = AdminAccountCommissionByDateRangeInputToJSON;
20
+ exports.AdminAccountCommissionByDateRangeInputToJSONTyped = AdminAccountCommissionByDateRangeInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AdminAccountCommissionByDateRangeInput interface.
23
+ */
24
+ function instanceOfAdminAccountCommissionByDateRangeInput(value) {
25
+ if (!('startDate' in value) || value['startDate'] === undefined)
26
+ return false;
27
+ if (!('commissionPercentage' in value) || value['commissionPercentage'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function AdminAccountCommissionByDateRangeInputFromJSON(json) {
32
+ return AdminAccountCommissionByDateRangeInputFromJSONTyped(json, false);
33
+ }
34
+ function AdminAccountCommissionByDateRangeInputFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'startDate': json['startDate'],
40
+ 'endDate': json['endDate'] == null ? undefined : json['endDate'],
41
+ 'commissionPercentage': json['commissionPercentage'],
42
+ };
43
+ }
44
+ function AdminAccountCommissionByDateRangeInputToJSON(json) {
45
+ return AdminAccountCommissionByDateRangeInputToJSONTyped(json, false);
46
+ }
47
+ function AdminAccountCommissionByDateRangeInputToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'startDate': value['startDate'],
54
+ 'endDate': value['endDate'],
55
+ 'commissionPercentage': value['commissionPercentage'],
56
+ };
57
+ }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { AdminAccountSettingsAffiliateInput } from './AdminAccountSettingsAffiliateInput';
13
+ import type { AdminAccountCommissionByDateRangeInput } from './AdminAccountCommissionByDateRangeInput';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -28,6 +29,18 @@ export interface AdminAccountSettingsInput {
28
29
  * @memberof AdminAccountSettingsInput
29
30
  */
30
31
  leaseToOwnKickBackPercentage?: number;
32
+ /**
33
+ *
34
+ * @type {number}
35
+ * @memberof AdminAccountSettingsInput
36
+ */
37
+ commissionPercentage?: number;
38
+ /**
39
+ *
40
+ * @type {Array<AdminAccountCommissionByDateRangeInput>}
41
+ * @memberof AdminAccountSettingsInput
42
+ */
43
+ commissionsByDateRange?: Array<AdminAccountCommissionByDateRangeInput>;
31
44
  /**
32
45
  *
33
46
  * @type {AdminAccountSettingsAffiliateInput}
@@ -19,6 +19,7 @@ exports.AdminAccountSettingsInputFromJSONTyped = AdminAccountSettingsInputFromJS
19
19
  exports.AdminAccountSettingsInputToJSON = AdminAccountSettingsInputToJSON;
20
20
  exports.AdminAccountSettingsInputToJSONTyped = AdminAccountSettingsInputToJSONTyped;
21
21
  var AdminAccountSettingsAffiliateInput_1 = require("./AdminAccountSettingsAffiliateInput");
22
+ var AdminAccountCommissionByDateRangeInput_1 = require("./AdminAccountCommissionByDateRangeInput");
22
23
  /**
23
24
  * Check if a given object implements the AdminAccountSettingsInput interface.
24
25
  */
@@ -35,6 +36,8 @@ function AdminAccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
35
36
  return {
36
37
  'automaticPayouts': json['automaticPayouts'] == null ? undefined : json['automaticPayouts'],
37
38
  'leaseToOwnKickBackPercentage': json['leaseToOwnKickBackPercentage'] == null ? undefined : json['leaseToOwnKickBackPercentage'],
39
+ 'commissionPercentage': json['commissionPercentage'] == null ? undefined : json['commissionPercentage'],
40
+ 'commissionsByDateRange': json['commissionsByDateRange'] == null ? undefined : (json['commissionsByDateRange'].map(AdminAccountCommissionByDateRangeInput_1.AdminAccountCommissionByDateRangeInputFromJSON)),
38
41
  'affiliate': json['affiliate'] == null ? undefined : (0, AdminAccountSettingsAffiliateInput_1.AdminAccountSettingsAffiliateInputFromJSON)(json['affiliate']),
39
42
  'domainAffiliate': json['domainAffiliate'] == null ? undefined : (0, AdminAccountSettingsAffiliateInput_1.AdminAccountSettingsAffiliateInputFromJSON)(json['domainAffiliate']),
40
43
  };
@@ -50,6 +53,8 @@ function AdminAccountSettingsInputToJSONTyped(value, ignoreDiscriminator) {
50
53
  return {
51
54
  'automaticPayouts': value['automaticPayouts'],
52
55
  'leaseToOwnKickBackPercentage': value['leaseToOwnKickBackPercentage'],
56
+ 'commissionPercentage': value['commissionPercentage'],
57
+ 'commissionsByDateRange': value['commissionsByDateRange'] == null ? undefined : (value['commissionsByDateRange'].map(AdminAccountCommissionByDateRangeInput_1.AdminAccountCommissionByDateRangeInputToJSON)),
53
58
  'affiliate': (0, AdminAccountSettingsAffiliateInput_1.AdminAccountSettingsAffiliateInputToJSON)(value['affiliate']),
54
59
  'domainAffiliate': (0, AdminAccountSettingsAffiliateInput_1.AdminAccountSettingsAffiliateInputToJSON)(value['domainAffiliate']),
55
60
  };
@@ -0,0 +1,38 @@
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 BulkMarkBuyerNotificationsAsReadInputDto
16
+ */
17
+ export interface BulkMarkBuyerNotificationsAsReadInputDto {
18
+ /**
19
+ * Array of notification IDs to mark as read/unread
20
+ * @type {Array<string>}
21
+ * @memberof BulkMarkBuyerNotificationsAsReadInputDto
22
+ */
23
+ notificationIds: Array<string>;
24
+ /**
25
+ * Whether to mark notifications as read (true) or unread (false)
26
+ * @type {boolean}
27
+ * @memberof BulkMarkBuyerNotificationsAsReadInputDto
28
+ */
29
+ readStatus: boolean;
30
+ }
31
+ /**
32
+ * Check if a given object implements the BulkMarkBuyerNotificationsAsReadInputDto interface.
33
+ */
34
+ export declare function instanceOfBulkMarkBuyerNotificationsAsReadInputDto(value: object): value is BulkMarkBuyerNotificationsAsReadInputDto;
35
+ export declare function BulkMarkBuyerNotificationsAsReadInputDtoFromJSON(json: any): BulkMarkBuyerNotificationsAsReadInputDto;
36
+ export declare function BulkMarkBuyerNotificationsAsReadInputDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkMarkBuyerNotificationsAsReadInputDto;
37
+ export declare function BulkMarkBuyerNotificationsAsReadInputDtoToJSON(json: any): BulkMarkBuyerNotificationsAsReadInputDto;
38
+ export declare function BulkMarkBuyerNotificationsAsReadInputDtoToJSONTyped(value?: BulkMarkBuyerNotificationsAsReadInputDto | null, ignoreDiscriminator?: boolean): any;
@@ -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.instanceOfBulkMarkBuyerNotificationsAsReadInputDto = instanceOfBulkMarkBuyerNotificationsAsReadInputDto;
17
+ exports.BulkMarkBuyerNotificationsAsReadInputDtoFromJSON = BulkMarkBuyerNotificationsAsReadInputDtoFromJSON;
18
+ exports.BulkMarkBuyerNotificationsAsReadInputDtoFromJSONTyped = BulkMarkBuyerNotificationsAsReadInputDtoFromJSONTyped;
19
+ exports.BulkMarkBuyerNotificationsAsReadInputDtoToJSON = BulkMarkBuyerNotificationsAsReadInputDtoToJSON;
20
+ exports.BulkMarkBuyerNotificationsAsReadInputDtoToJSONTyped = BulkMarkBuyerNotificationsAsReadInputDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the BulkMarkBuyerNotificationsAsReadInputDto interface.
23
+ */
24
+ function instanceOfBulkMarkBuyerNotificationsAsReadInputDto(value) {
25
+ if (!('notificationIds' in value) || value['notificationIds'] === undefined)
26
+ return false;
27
+ if (!('readStatus' in value) || value['readStatus'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function BulkMarkBuyerNotificationsAsReadInputDtoFromJSON(json) {
32
+ return BulkMarkBuyerNotificationsAsReadInputDtoFromJSONTyped(json, false);
33
+ }
34
+ function BulkMarkBuyerNotificationsAsReadInputDtoFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'notificationIds': json['notificationIds'],
40
+ 'readStatus': json['readStatus'],
41
+ };
42
+ }
43
+ function BulkMarkBuyerNotificationsAsReadInputDtoToJSON(json) {
44
+ return BulkMarkBuyerNotificationsAsReadInputDtoToJSONTyped(json, false);
45
+ }
46
+ function BulkMarkBuyerNotificationsAsReadInputDtoToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'notificationIds': value['notificationIds'],
53
+ 'readStatus': value['readStatus'],
54
+ };
55
+ }
@@ -0,0 +1,44 @@
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 BuyerNotificationAttachmentDto
16
+ */
17
+ export interface BuyerNotificationAttachmentDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof BuyerNotificationAttachmentDto
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof BuyerNotificationAttachmentDto
28
+ */
29
+ filename: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof BuyerNotificationAttachmentDto
34
+ */
35
+ mimeType: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the BuyerNotificationAttachmentDto interface.
39
+ */
40
+ export declare function instanceOfBuyerNotificationAttachmentDto(value: object): value is BuyerNotificationAttachmentDto;
41
+ export declare function BuyerNotificationAttachmentDtoFromJSON(json: any): BuyerNotificationAttachmentDto;
42
+ export declare function BuyerNotificationAttachmentDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerNotificationAttachmentDto;
43
+ export declare function BuyerNotificationAttachmentDtoToJSON(json: any): BuyerNotificationAttachmentDto;
44
+ export declare function BuyerNotificationAttachmentDtoToJSONTyped(value?: BuyerNotificationAttachmentDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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.instanceOfBuyerNotificationAttachmentDto = instanceOfBuyerNotificationAttachmentDto;
17
+ exports.BuyerNotificationAttachmentDtoFromJSON = BuyerNotificationAttachmentDtoFromJSON;
18
+ exports.BuyerNotificationAttachmentDtoFromJSONTyped = BuyerNotificationAttachmentDtoFromJSONTyped;
19
+ exports.BuyerNotificationAttachmentDtoToJSON = BuyerNotificationAttachmentDtoToJSON;
20
+ exports.BuyerNotificationAttachmentDtoToJSONTyped = BuyerNotificationAttachmentDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the BuyerNotificationAttachmentDto interface.
23
+ */
24
+ function instanceOfBuyerNotificationAttachmentDto(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('filename' in value) || value['filename'] === undefined)
28
+ return false;
29
+ if (!('mimeType' in value) || value['mimeType'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function BuyerNotificationAttachmentDtoFromJSON(json) {
34
+ return BuyerNotificationAttachmentDtoFromJSONTyped(json, false);
35
+ }
36
+ function BuyerNotificationAttachmentDtoFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'id': json['id'],
42
+ 'filename': json['filename'],
43
+ 'mimeType': json['mimeType'],
44
+ };
45
+ }
46
+ function BuyerNotificationAttachmentDtoToJSON(json) {
47
+ return BuyerNotificationAttachmentDtoToJSONTyped(json, false);
48
+ }
49
+ function BuyerNotificationAttachmentDtoToJSONTyped(value, ignoreDiscriminator) {
50
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'id': value['id'],
56
+ 'filename': value['filename'],
57
+ 'mimeType': value['mimeType'],
58
+ };
59
+ }
@@ -0,0 +1,145 @@
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
+ import type { BuyerNotificationAttachmentDto } from './BuyerNotificationAttachmentDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface BuyerNotificationDto
17
+ */
18
+ export interface BuyerNotificationDto {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof BuyerNotificationDto
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof BuyerNotificationDto
29
+ */
30
+ type: BuyerNotificationDtoTypeEnum;
31
+ /**
32
+ *
33
+ * @type {boolean}
34
+ * @memberof BuyerNotificationDto
35
+ */
36
+ isRead: boolean;
37
+ /**
38
+ *
39
+ * @type {Date}
40
+ * @memberof BuyerNotificationDto
41
+ */
42
+ sentAt: Date;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof BuyerNotificationDto
47
+ */
48
+ subject: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof BuyerNotificationDto
53
+ */
54
+ body: string;
55
+ /**
56
+ *
57
+ * @type {Array<BuyerNotificationAttachmentDto>}
58
+ * @memberof BuyerNotificationDto
59
+ */
60
+ attachments: Array<BuyerNotificationAttachmentDto>;
61
+ }
62
+ /**
63
+ * @export
64
+ */
65
+ export declare const BuyerNotificationDtoTypeEnum: {
66
+ readonly DOMAIN_OFFER_EMAIL_VERIFICATION: "domain_offer_email_verification";
67
+ readonly ACCOUNT_REGISTERED: "account_registered";
68
+ readonly ACCOUNT_ONBOARDING_FINISHED: "account_onboarding_finished";
69
+ readonly ACCOUNT_ONBOARDING_REJECTED: "account_onboarding_rejected";
70
+ readonly BUYER_ACCESS_TOKEN: "buyer_access_token";
71
+ readonly DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER: "domain_transfer.request_auth_code_to_seller";
72
+ readonly DOMAIN_TRANSFER_VALIDATION_REQUIRED_BY_BUYER_EMAIL: "domain_transfer_validation_required_by_buyer_email";
73
+ readonly DOMAIN_TRANSFER_VALIDATION_AUTO_CONFIRMED_EMAIL: "domain_transfer_validation_auto_confirmed_email";
74
+ readonly DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER_REMINDER: "domain_transfer.request_auth_code_to_seller.reminder";
75
+ readonly DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER_AUTH_CODE_INVALID: "domain_transfer.request_auth_code_to_seller_auth_code_invalid";
76
+ readonly DOMAIN_TRANSFER_DOMAIN_TRANSFER_REQUIRES_UNLOCK_DOMAIN: "domain_transfer.domain_transfer_requires_unlock_domain";
77
+ readonly DOMAIN_TRANSFER_NOTIFY_BUYER_TO_INITIALIZE_TRANSFER: "domain_transfer.notify_buyer_to_initialize_transfer";
78
+ readonly DOMAIN_TRANSFER_NOTIFY_SELLER_TO_INITIALIZE_TRANSFER: "domain_transfer.notify_seller_to_initialize_transfer";
79
+ readonly DOMAIN_TRANSFER_SEND_IPS_TAG_INSTRUCTIONS_TO_SELLER: "domain_transfer.send_ips_tag_instructions_to_seller";
80
+ readonly DOMAIN_TRANSFER_SEND_IPS_TAG_INSTRUCTIONS_TO_SELLER_REMINDER: "domain_transfer.send_ips_tag_instructions_to_seller_reminder";
81
+ readonly DOMAIN_TRANSFER_SEND_IPS_TAG_INSTRUCTIONS_TO_BUYER: "domain_transfer.send_ips_tag_instructions_to_buyer";
82
+ readonly DOMAIN_TRANSFER_RECREATE_DOMAIN_IN_SELLER_ACCOUNT_ERROR: "domain_transfer.recreate_domain_in_seller_account_error";
83
+ readonly DOMAIN_TRANSFER_SEND_IPS_TAG_INSTRUCTIONS_TO_START_TRANSFER_TO_SELLER: "domain_transfer.send_ips_tag_instructions_to_start_transfer_to_seller";
84
+ readonly DOMAIN_TRANSFER_RENT_SUBSCRIPTION_SEND_OWNED_DOMAIN_AUTH_CODE_TO_SELLER: "domain_transfer.rent_subscription_send_owned_domain_auth_code_to_seller";
85
+ readonly 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";
86
+ readonly DOMAIN_TRANSFER_SEND_AUTH_CODE_TO_BUYER: "domain_transfer.send_auth_code_to_buyer";
87
+ readonly DOMAIN_TRANSFER_SEND_AUTH_CODE_TO_BUYER_WITH_HOLDERCHANGE_SE_NU_FILE: "domain_transfer.send_auth_code_to_buyer_with_holderchange_se_nu_file";
88
+ readonly REQUEST_IPS_TAG_TO_BUYER_IPS_TAG_INVALID: "request_ips_tag_to_buyer_ips_tag_invalid";
89
+ readonly REQUEST_IPS_TAG_TO_SELLER_IPS_TAG_INVALID: "request_ips_tag_to_seller_ips_tag_invalid";
90
+ readonly EXPORT_COMPLETED: "export_completed";
91
+ readonly DOMAIN_IMPORT_FINISHED: "domain_import_finished";
92
+ readonly DOMAIN_OFFER_VERIFIED_BUYER_ACCESS_LINK_EMAIL: "domain_offer_verified_buyer_access_link_email";
93
+ readonly DOMAIN_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: "domain_offer_accepted_continue_order_email";
94
+ readonly DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL: "domain_offer_accepted_continue_lease_to_own_email";
95
+ readonly DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL_INSTALLMENTS_RANGE: "domain_offer_accepted_continue_lease_to_own_email_installments_range";
96
+ readonly DOMAIN_OFFER_ACCEPTED_CONTINUE_RENT_EMAIL: "domain_offer_accepted_continue_rent_email";
97
+ readonly LEASE_TO_OWN_SUBSCRIPTION_RENEW_FAILED: "lease_to_own_subscription_renew_failed";
98
+ readonly LEASE_TO_OWN_SUBSCRIPTION_RENEW_FAILED_REQUIRE_CUSTOMER_ACTION: "lease_to_own_subscription_renew_failed_require_customer_action";
99
+ readonly RENT_SUBSCRIPTION_RENEW_FAILED: "rent_subscription_renew_failed";
100
+ readonly RENT_SUBSCRIPTION_RENEW_FAILED_REQUIRE_CUSTOMER_ACTION: "rent_subscription_renew_failed_require_customer_action";
101
+ readonly LEASE_TO_OWN_SUBSCRIPTION_CANCELLED: "lease_to_own_subscription_cancelled";
102
+ readonly RENT_SUBSCRIPTION_CANCELLED: "rent_subscription_cancelled";
103
+ readonly SELLER_LEASE_TO_OWN_SUBSCRIPTION_CANCELLED: "seller_lease_to_own_subscription_cancelled";
104
+ readonly SELLER_RENT_SUBSCRIPTION_CANCELLED: "seller_rent_subscription_cancelled";
105
+ readonly LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: "lease_to_own_subscription_has_been_activated_for_first_time";
106
+ readonly RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: "rent_subscription_has_been_activated_for_first_time";
107
+ readonly PASSWORD_RESET: "password_reset";
108
+ readonly BUYER_INVOICE: "buyer_invoice";
109
+ readonly BUYER_RENT_INSTALLMENT_INVOICE: "buyer_rent_installment_invoice";
110
+ readonly BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: "buyer_lease_to_own_installment_invoice";
111
+ readonly EPP_BATCH_UPDATE_DOMAINS_RESULTS: "epp.batch.update.domains.results";
112
+ readonly ORDER_HAS_BEEN_PAID: "order_has_been_paid";
113
+ readonly PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: "purchases_are_closed_due_domains_is_sold_or_deleted";
114
+ readonly DOMAIN_OWNER_CHANGED: "domain_owner_changed";
115
+ readonly LEAD_CLOSED_BUYER: "lead.closed.buyer";
116
+ readonly DOMAIN_SOLD_SELLER_NOTIFICATION: "domain_sold_seller_notification";
117
+ readonly DOMAIN_SOLD_BY_LEASE_TO_OWN_SELLER_NOTIFICATION: "domain_sold_by_lease_to_own_seller_notification";
118
+ readonly DOMAIN_SOLD_BY_RENT_SELLER_NOTIFICATION: "domain_sold_by_rent_seller_notification";
119
+ readonly DOMAIN_TRANSFER_COMPLETED_FOR_SELLER: "domain_transfer.completed_for_seller";
120
+ readonly LEAD_CLOSED_SELLER: "lead.closed.seller";
121
+ readonly SELLER_PAYOUT_WAS_PAID: "seller_payout_was_paid";
122
+ readonly SELLER_INVOICE: "seller_invoice";
123
+ readonly SELLER_LEASE_TO_OWN_INSTALLMENT_INVOICE: "seller_lease_to_own_installment_invoice";
124
+ readonly SELLER_RENT_INSTALLMENT_INVOICE: "seller_rent_installment_invoice";
125
+ readonly AFFILIATE_COMMISSIONS_INVOICE: "affiliate_commissions_invoice";
126
+ readonly LEAD_MESSAGE_BATCH: "lead_message.batch";
127
+ readonly TASKS_REMINDER_BATCH: "tasks.reminder.batch";
128
+ readonly LEAD_MESSAGE_OFFER: "lead_message.offer";
129
+ readonly LEAD_MESSAGE_OFFER_ACCEPTED: "lead_message.offer_accepted";
130
+ readonly LEAD_MESSAGE_OFFER_WITHDRAWN: "lead_message.offer_withdrawn";
131
+ readonly LEAD_MESSAGE_OFFER_REJECTED: "lead_message.offer_rejected";
132
+ readonly LEAD_MESSAGE_MESSAGE: "lead_message.message";
133
+ readonly TASKS_REMINDER_LEAD: "tasks.reminder.lead";
134
+ readonly TASKS_REMINDER_DOMAIN_TRANSFER: "tasks.reminder.domain_transfer";
135
+ readonly TASKS_REMINDER_ORDER: "tasks.reminder.order";
136
+ };
137
+ export type BuyerNotificationDtoTypeEnum = typeof BuyerNotificationDtoTypeEnum[keyof typeof BuyerNotificationDtoTypeEnum];
138
+ /**
139
+ * Check if a given object implements the BuyerNotificationDto interface.
140
+ */
141
+ export declare function instanceOfBuyerNotificationDto(value: object): value is BuyerNotificationDto;
142
+ export declare function BuyerNotificationDtoFromJSON(json: any): BuyerNotificationDto;
143
+ export declare function BuyerNotificationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerNotificationDto;
144
+ export declare function BuyerNotificationDtoToJSON(json: any): BuyerNotificationDto;
145
+ export declare function BuyerNotificationDtoToJSONTyped(value?: BuyerNotificationDto | null, ignoreDiscriminator?: boolean): any;