@randock/nameshift-api-client 0.0.534 → 0.0.536

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 (81) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AccountsPublicApi.d.ts +0 -1
  4. package/dist/apis/AccountsPublicApi.js +0 -3
  5. package/dist/apis/WebhooksApi.d.ts +186 -0
  6. package/dist/apis/WebhooksApi.js +797 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/CreateWebhookEndpointInput.d.ts +69 -0
  10. package/dist/models/CreateWebhookEndpointInput.js +66 -0
  11. package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
  12. package/dist/models/FeatureFlagListItemDto.js +2 -1
  13. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  14. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  15. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  16. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  17. package/dist/models/UpdateWebhookEndpointInput.d.ts +69 -0
  18. package/dist/models/UpdateWebhookEndpointInput.js +62 -0
  19. package/dist/models/WebhookAttemptTrigger.d.ts +25 -0
  20. package/dist/models/WebhookAttemptTrigger.js +51 -0
  21. package/dist/models/WebhookDeliveriesSummaryDto.d.ts +62 -0
  22. package/dist/models/WebhookDeliveriesSummaryDto.js +71 -0
  23. package/dist/models/WebhookDeliveryAttemptDto.d.ts +75 -0
  24. package/dist/models/WebhookDeliveryAttemptDto.js +80 -0
  25. package/dist/models/WebhookDeliveryDto.d.ts +100 -0
  26. package/dist/models/WebhookDeliveryDto.js +97 -0
  27. package/dist/models/WebhookDeliveryStatus.d.ts +28 -0
  28. package/dist/models/WebhookDeliveryStatus.js +54 -0
  29. package/dist/models/WebhookEndpointDto.d.ts +111 -0
  30. package/dist/models/WebhookEndpointDto.js +104 -0
  31. package/dist/models/WebhookEndpointHeaderDto.d.ts +38 -0
  32. package/dist/models/WebhookEndpointHeaderDto.js +55 -0
  33. package/dist/models/WebhookEndpointHeaderInput.d.ts +38 -0
  34. package/dist/models/WebhookEndpointHeaderInput.js +55 -0
  35. package/dist/models/WebhookEndpointHeadersDto.d.ts +33 -0
  36. package/dist/models/WebhookEndpointHeadersDto.js +52 -0
  37. package/dist/models/WebhookEndpointSecretDto.d.ts +32 -0
  38. package/dist/models/WebhookEndpointSecretDto.js +51 -0
  39. package/dist/models/WebhookEndpointStatus.d.ts +26 -0
  40. package/dist/models/WebhookEndpointStatus.js +52 -0
  41. package/dist/models/WebhookEventTypeDto.d.ts +52 -0
  42. package/dist/models/WebhookEventTypeDto.js +63 -0
  43. package/dist/models/WebhookMessageDetailDto.d.ts +79 -0
  44. package/dist/models/WebhookMessageDetailDto.js +82 -0
  45. package/dist/models/WebhookMessageDto.d.ts +64 -0
  46. package/dist/models/WebhookMessageDto.js +73 -0
  47. package/dist/models/WebhookMessagePageDto.d.ts +40 -0
  48. package/dist/models/WebhookMessagePageDto.js +57 -0
  49. package/dist/models/WebhookMessagePageMetaDto.d.ts +50 -0
  50. package/dist/models/WebhookMessagePageMetaDto.js +63 -0
  51. package/dist/models/WebhookMessageStatus.d.ts +27 -0
  52. package/dist/models/WebhookMessageStatus.js +53 -0
  53. package/dist/models/index.d.ts +19 -0
  54. package/dist/models/index.js +19 -0
  55. package/package.json +1 -1
  56. package/src/apis/AccountsPublicApi.ts +0 -5
  57. package/src/apis/WebhooksApi.ts +671 -0
  58. package/src/apis/index.ts +1 -0
  59. package/src/models/CreateWebhookEndpointInput.ts +123 -0
  60. package/src/models/FeatureFlagListItemDto.ts +2 -1
  61. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  62. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  63. package/src/models/UpdateWebhookEndpointInput.ts +121 -0
  64. package/src/models/WebhookAttemptTrigger.ts +53 -0
  65. package/src/models/WebhookDeliveriesSummaryDto.ts +111 -0
  66. package/src/models/WebhookDeliveryAttemptDto.ts +139 -0
  67. package/src/models/WebhookDeliveryDto.ts +182 -0
  68. package/src/models/WebhookDeliveryStatus.ts +56 -0
  69. package/src/models/WebhookEndpointDto.ts +193 -0
  70. package/src/models/WebhookEndpointHeaderDto.ts +75 -0
  71. package/src/models/WebhookEndpointHeaderInput.ts +75 -0
  72. package/src/models/WebhookEndpointHeadersDto.ts +74 -0
  73. package/src/models/WebhookEndpointSecretDto.ts +66 -0
  74. package/src/models/WebhookEndpointStatus.ts +54 -0
  75. package/src/models/WebhookEventTypeDto.ts +93 -0
  76. package/src/models/WebhookMessageDetailDto.ts +153 -0
  77. package/src/models/WebhookMessageDto.ts +128 -0
  78. package/src/models/WebhookMessagePageDto.ts +90 -0
  79. package/src/models/WebhookMessagePageMetaDto.ts +93 -0
  80. package/src/models/WebhookMessageStatus.ts +55 -0
  81. package/src/models/index.ts +19 -0
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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.instanceOfWebhookDeliveryAttemptDto = instanceOfWebhookDeliveryAttemptDto;
17
+ exports.WebhookDeliveryAttemptDtoFromJSON = WebhookDeliveryAttemptDtoFromJSON;
18
+ exports.WebhookDeliveryAttemptDtoFromJSONTyped = WebhookDeliveryAttemptDtoFromJSONTyped;
19
+ exports.WebhookDeliveryAttemptDtoToJSON = WebhookDeliveryAttemptDtoToJSON;
20
+ exports.WebhookDeliveryAttemptDtoToJSONTyped = WebhookDeliveryAttemptDtoToJSONTyped;
21
+ var WebhookAttemptTrigger_1 = require("./WebhookAttemptTrigger");
22
+ /**
23
+ * Check if a given object implements the WebhookDeliveryAttemptDto interface.
24
+ */
25
+ function instanceOfWebhookDeliveryAttemptDto(value) {
26
+ if (!('number' in value) || value['number'] === undefined)
27
+ return false;
28
+ if (!('trigger' in value) || value['trigger'] === undefined)
29
+ return false;
30
+ if (!('startedAt' in value) || value['startedAt'] === undefined)
31
+ return false;
32
+ if (!('durationMs' in value) || value['durationMs'] === undefined)
33
+ return false;
34
+ if (!('requestUrl' in value) || value['requestUrl'] === undefined)
35
+ return false;
36
+ if (!('statusCode' in value) || value['statusCode'] === undefined)
37
+ return false;
38
+ if (!('responseBody' in value) || value['responseBody'] === undefined)
39
+ return false;
40
+ if (!('error' in value) || value['error'] === undefined)
41
+ return false;
42
+ return true;
43
+ }
44
+ function WebhookDeliveryAttemptDtoFromJSON(json) {
45
+ return WebhookDeliveryAttemptDtoFromJSONTyped(json, false);
46
+ }
47
+ function WebhookDeliveryAttemptDtoFromJSONTyped(json, ignoreDiscriminator) {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+ 'number': json['number'],
53
+ 'trigger': (0, WebhookAttemptTrigger_1.WebhookAttemptTriggerFromJSON)(json['trigger']),
54
+ 'startedAt': (new Date(json['startedAt'])),
55
+ 'durationMs': json['durationMs'],
56
+ 'requestUrl': json['requestUrl'],
57
+ 'statusCode': json['statusCode'],
58
+ 'responseBody': json['responseBody'],
59
+ 'error': json['error'],
60
+ };
61
+ }
62
+ function WebhookDeliveryAttemptDtoToJSON(json) {
63
+ return WebhookDeliveryAttemptDtoToJSONTyped(json, false);
64
+ }
65
+ function WebhookDeliveryAttemptDtoToJSONTyped(value, ignoreDiscriminator) {
66
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+ return {
71
+ 'number': value['number'],
72
+ 'trigger': (0, WebhookAttemptTrigger_1.WebhookAttemptTriggerToJSON)(value['trigger']),
73
+ 'startedAt': ((value['startedAt']).toISOString()),
74
+ 'durationMs': value['durationMs'],
75
+ 'requestUrl': value['requestUrl'],
76
+ 'statusCode': value['statusCode'],
77
+ 'responseBody': value['responseBody'],
78
+ 'error': value['error'],
79
+ };
80
+ }
@@ -0,0 +1,100 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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 { WebhookDeliveryStatus } from './WebhookDeliveryStatus';
13
+ import type { WebhookDeliveryAttemptDto } from './WebhookDeliveryAttemptDto';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface WebhookDeliveryDto
18
+ */
19
+ export interface WebhookDeliveryDto {
20
+ /**
21
+ * Delivery identifier.
22
+ * @type {string}
23
+ * @memberof WebhookDeliveryDto
24
+ */
25
+ id: string;
26
+ /**
27
+ * Endpoint the event is sent to.
28
+ * @type {string}
29
+ * @memberof WebhookDeliveryDto
30
+ */
31
+ endpointId: string;
32
+ /**
33
+ * URL of the endpoint.
34
+ * @type {string}
35
+ * @memberof WebhookDeliveryDto
36
+ */
37
+ endpointUrl: string;
38
+ /**
39
+ * Where the delivery is.
40
+ * @type {WebhookDeliveryStatus}
41
+ * @memberof WebhookDeliveryDto
42
+ */
43
+ status: WebhookDeliveryStatus;
44
+ /**
45
+ * Attempts made so far.
46
+ * @type {number}
47
+ * @memberof WebhookDeliveryDto
48
+ */
49
+ attemptsCount: number;
50
+ /**
51
+ * Attempts made at most before giving up.
52
+ * @type {number}
53
+ * @memberof WebhookDeliveryDto
54
+ */
55
+ maxAttempts: number;
56
+ /**
57
+ * When the next attempt is due, while it is retrying.
58
+ * @type {Date}
59
+ * @memberof WebhookDeliveryDto
60
+ */
61
+ nextAttemptAt: Date | null;
62
+ /**
63
+ * HTTP status of the last attempt.
64
+ * @type {number}
65
+ * @memberof WebhookDeliveryDto
66
+ */
67
+ lastStatusCode: number | null;
68
+ /**
69
+ * Why the last attempt failed.
70
+ * @type {string}
71
+ * @memberof WebhookDeliveryDto
72
+ */
73
+ lastError: string | null;
74
+ /**
75
+ * When the endpoint accepted the event.
76
+ * @type {Date}
77
+ * @memberof WebhookDeliveryDto
78
+ */
79
+ deliveredAt: Date | null;
80
+ /**
81
+ * When the delivery was created.
82
+ * @type {Date}
83
+ * @memberof WebhookDeliveryDto
84
+ */
85
+ createdAt: Date;
86
+ /**
87
+ * Its attempts, the first one first.
88
+ * @type {Array<WebhookDeliveryAttemptDto>}
89
+ * @memberof WebhookDeliveryDto
90
+ */
91
+ attempts: Array<WebhookDeliveryAttemptDto>;
92
+ }
93
+ /**
94
+ * Check if a given object implements the WebhookDeliveryDto interface.
95
+ */
96
+ export declare function instanceOfWebhookDeliveryDto(value: object): value is WebhookDeliveryDto;
97
+ export declare function WebhookDeliveryDtoFromJSON(json: any): WebhookDeliveryDto;
98
+ export declare function WebhookDeliveryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookDeliveryDto;
99
+ export declare function WebhookDeliveryDtoToJSON(json: any): WebhookDeliveryDto;
100
+ export declare function WebhookDeliveryDtoToJSONTyped(value?: WebhookDeliveryDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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.instanceOfWebhookDeliveryDto = instanceOfWebhookDeliveryDto;
17
+ exports.WebhookDeliveryDtoFromJSON = WebhookDeliveryDtoFromJSON;
18
+ exports.WebhookDeliveryDtoFromJSONTyped = WebhookDeliveryDtoFromJSONTyped;
19
+ exports.WebhookDeliveryDtoToJSON = WebhookDeliveryDtoToJSON;
20
+ exports.WebhookDeliveryDtoToJSONTyped = WebhookDeliveryDtoToJSONTyped;
21
+ var WebhookDeliveryStatus_1 = require("./WebhookDeliveryStatus");
22
+ var WebhookDeliveryAttemptDto_1 = require("./WebhookDeliveryAttemptDto");
23
+ /**
24
+ * Check if a given object implements the WebhookDeliveryDto interface.
25
+ */
26
+ function instanceOfWebhookDeliveryDto(value) {
27
+ if (!('id' in value) || value['id'] === undefined)
28
+ return false;
29
+ if (!('endpointId' in value) || value['endpointId'] === undefined)
30
+ return false;
31
+ if (!('endpointUrl' in value) || value['endpointUrl'] === undefined)
32
+ return false;
33
+ if (!('status' in value) || value['status'] === undefined)
34
+ return false;
35
+ if (!('attemptsCount' in value) || value['attemptsCount'] === undefined)
36
+ return false;
37
+ if (!('maxAttempts' in value) || value['maxAttempts'] === undefined)
38
+ return false;
39
+ if (!('nextAttemptAt' in value) || value['nextAttemptAt'] === undefined)
40
+ return false;
41
+ if (!('lastStatusCode' in value) || value['lastStatusCode'] === undefined)
42
+ return false;
43
+ if (!('lastError' in value) || value['lastError'] === undefined)
44
+ return false;
45
+ if (!('deliveredAt' in value) || value['deliveredAt'] === undefined)
46
+ return false;
47
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
48
+ return false;
49
+ if (!('attempts' in value) || value['attempts'] === undefined)
50
+ return false;
51
+ return true;
52
+ }
53
+ function WebhookDeliveryDtoFromJSON(json) {
54
+ return WebhookDeliveryDtoFromJSONTyped(json, false);
55
+ }
56
+ function WebhookDeliveryDtoFromJSONTyped(json, ignoreDiscriminator) {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+ 'id': json['id'],
62
+ 'endpointId': json['endpointId'],
63
+ 'endpointUrl': json['endpointUrl'],
64
+ 'status': (0, WebhookDeliveryStatus_1.WebhookDeliveryStatusFromJSON)(json['status']),
65
+ 'attemptsCount': json['attemptsCount'],
66
+ 'maxAttempts': json['maxAttempts'],
67
+ 'nextAttemptAt': (json['nextAttemptAt'] == null ? null : new Date(json['nextAttemptAt'])),
68
+ 'lastStatusCode': json['lastStatusCode'],
69
+ 'lastError': json['lastError'],
70
+ 'deliveredAt': (json['deliveredAt'] == null ? null : new Date(json['deliveredAt'])),
71
+ 'createdAt': (new Date(json['createdAt'])),
72
+ 'attempts': (json['attempts'].map(WebhookDeliveryAttemptDto_1.WebhookDeliveryAttemptDtoFromJSON)),
73
+ };
74
+ }
75
+ function WebhookDeliveryDtoToJSON(json) {
76
+ return WebhookDeliveryDtoToJSONTyped(json, false);
77
+ }
78
+ function WebhookDeliveryDtoToJSONTyped(value, ignoreDiscriminator) {
79
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+ return {
84
+ 'id': value['id'],
85
+ 'endpointId': value['endpointId'],
86
+ 'endpointUrl': value['endpointUrl'],
87
+ 'status': (0, WebhookDeliveryStatus_1.WebhookDeliveryStatusToJSON)(value['status']),
88
+ 'attemptsCount': value['attemptsCount'],
89
+ 'maxAttempts': value['maxAttempts'],
90
+ 'nextAttemptAt': (value['nextAttemptAt'] == null ? null : value['nextAttemptAt'].toISOString()),
91
+ 'lastStatusCode': value['lastStatusCode'],
92
+ 'lastError': value['lastError'],
93
+ 'deliveredAt': (value['deliveredAt'] == null ? null : value['deliveredAt'].toISOString()),
94
+ 'createdAt': ((value['createdAt']).toISOString()),
95
+ 'attempts': (value['attempts'].map(WebhookDeliveryAttemptDto_1.WebhookDeliveryAttemptDtoToJSON)),
96
+ };
97
+ }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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
+ */
16
+ export declare const WebhookDeliveryStatus: {
17
+ readonly PENDING: "pending";
18
+ readonly IN_PROGRESS: "in_progress";
19
+ readonly RETRYING: "retrying";
20
+ readonly SUCCEEDED: "succeeded";
21
+ readonly FAILED: "failed";
22
+ };
23
+ export type WebhookDeliveryStatus = typeof WebhookDeliveryStatus[keyof typeof WebhookDeliveryStatus];
24
+ export declare function instanceOfWebhookDeliveryStatus(value: any): boolean;
25
+ export declare function WebhookDeliveryStatusFromJSON(json: any): WebhookDeliveryStatus;
26
+ export declare function WebhookDeliveryStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookDeliveryStatus;
27
+ export declare function WebhookDeliveryStatusToJSON(value?: WebhookDeliveryStatus | null): any;
28
+ export declare function WebhookDeliveryStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): WebhookDeliveryStatus;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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.WebhookDeliveryStatus = void 0;
17
+ exports.instanceOfWebhookDeliveryStatus = instanceOfWebhookDeliveryStatus;
18
+ exports.WebhookDeliveryStatusFromJSON = WebhookDeliveryStatusFromJSON;
19
+ exports.WebhookDeliveryStatusFromJSONTyped = WebhookDeliveryStatusFromJSONTyped;
20
+ exports.WebhookDeliveryStatusToJSON = WebhookDeliveryStatusToJSON;
21
+ exports.WebhookDeliveryStatusToJSONTyped = WebhookDeliveryStatusToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.WebhookDeliveryStatus = {
27
+ PENDING: 'pending',
28
+ IN_PROGRESS: 'in_progress',
29
+ RETRYING: 'retrying',
30
+ SUCCEEDED: 'succeeded',
31
+ FAILED: 'failed'
32
+ };
33
+ function instanceOfWebhookDeliveryStatus(value) {
34
+ for (var key in exports.WebhookDeliveryStatus) {
35
+ if (Object.prototype.hasOwnProperty.call(exports.WebhookDeliveryStatus, key)) {
36
+ if (exports.WebhookDeliveryStatus[key] === value) {
37
+ return true;
38
+ }
39
+ }
40
+ }
41
+ return false;
42
+ }
43
+ function WebhookDeliveryStatusFromJSON(json) {
44
+ return WebhookDeliveryStatusFromJSONTyped(json, false);
45
+ }
46
+ function WebhookDeliveryStatusFromJSONTyped(json, ignoreDiscriminator) {
47
+ return json;
48
+ }
49
+ function WebhookDeliveryStatusToJSON(value) {
50
+ return value;
51
+ }
52
+ function WebhookDeliveryStatusToJSONTyped(value, ignoreDiscriminator) {
53
+ return value;
54
+ }
@@ -0,0 +1,111 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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 { WebhookEndpointStatus } from './WebhookEndpointStatus';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface WebhookEndpointDto
17
+ */
18
+ export interface WebhookEndpointDto {
19
+ /**
20
+ * Endpoint identifier.
21
+ * @type {string}
22
+ * @memberof WebhookEndpointDto
23
+ */
24
+ id: string;
25
+ /**
26
+ * URL the events are sent to with a POST request.
27
+ * @type {string}
28
+ * @memberof WebhookEndpointDto
29
+ */
30
+ url: string;
31
+ /**
32
+ * Free text describing the endpoint.
33
+ * @type {string}
34
+ * @memberof WebhookEndpointDto
35
+ */
36
+ description: string;
37
+ /**
38
+ * Event types the endpoint receives.
39
+ * @type {Array<string>}
40
+ * @memberof WebhookEndpointDto
41
+ */
42
+ eventTypes: Array<string>;
43
+ /**
44
+ * Names of the custom headers sent with each event. Their values are read on their own.
45
+ * @type {Array<string>}
46
+ * @memberof WebhookEndpointDto
47
+ */
48
+ headerNames: Array<string>;
49
+ /**
50
+ * Whether events are sent to the endpoint.
51
+ * @type {boolean}
52
+ * @memberof WebhookEndpointDto
53
+ */
54
+ enabled: boolean;
55
+ /**
56
+ * How long each delivery waits for the answer, in milliseconds.
57
+ * @type {number}
58
+ * @memberof WebhookEndpointDto
59
+ */
60
+ timeoutMs: number;
61
+ /**
62
+ * How many times an event is tried before giving up.
63
+ * @type {number}
64
+ * @memberof WebhookEndpointDto
65
+ */
66
+ maxAttempts: number;
67
+ /**
68
+ * Active, failing (its recent deliveries fail) or disabled (by the seller, or after failing for days).
69
+ * @type {WebhookEndpointStatus}
70
+ * @memberof WebhookEndpointDto
71
+ */
72
+ status: WebhookEndpointStatus;
73
+ /**
74
+ * Why the endpoint is disabled: "manual", "failing", or empty while it is enabled.
75
+ * @type {string}
76
+ * @memberof WebhookEndpointDto
77
+ */
78
+ disabledReason: string;
79
+ /**
80
+ * When an event was last delivered to the endpoint.
81
+ * @type {Date}
82
+ * @memberof WebhookEndpointDto
83
+ */
84
+ lastSuccessAt: Date | null;
85
+ /**
86
+ * Since when its deliveries have been failing.
87
+ * @type {Date}
88
+ * @memberof WebhookEndpointDto
89
+ */
90
+ failingSince: Date | null;
91
+ /**
92
+ * When the endpoint was created.
93
+ * @type {Date}
94
+ * @memberof WebhookEndpointDto
95
+ */
96
+ createdAt: Date;
97
+ /**
98
+ * When the endpoint was last changed.
99
+ * @type {Date}
100
+ * @memberof WebhookEndpointDto
101
+ */
102
+ updatedAt: Date;
103
+ }
104
+ /**
105
+ * Check if a given object implements the WebhookEndpointDto interface.
106
+ */
107
+ export declare function instanceOfWebhookEndpointDto(value: object): value is WebhookEndpointDto;
108
+ export declare function WebhookEndpointDtoFromJSON(json: any): WebhookEndpointDto;
109
+ export declare function WebhookEndpointDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookEndpointDto;
110
+ export declare function WebhookEndpointDtoToJSON(json: any): WebhookEndpointDto;
111
+ export declare function WebhookEndpointDtoToJSONTyped(value?: WebhookEndpointDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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.instanceOfWebhookEndpointDto = instanceOfWebhookEndpointDto;
17
+ exports.WebhookEndpointDtoFromJSON = WebhookEndpointDtoFromJSON;
18
+ exports.WebhookEndpointDtoFromJSONTyped = WebhookEndpointDtoFromJSONTyped;
19
+ exports.WebhookEndpointDtoToJSON = WebhookEndpointDtoToJSON;
20
+ exports.WebhookEndpointDtoToJSONTyped = WebhookEndpointDtoToJSONTyped;
21
+ var WebhookEndpointStatus_1 = require("./WebhookEndpointStatus");
22
+ /**
23
+ * Check if a given object implements the WebhookEndpointDto interface.
24
+ */
25
+ function instanceOfWebhookEndpointDto(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('url' in value) || value['url'] === undefined)
29
+ return false;
30
+ if (!('description' in value) || value['description'] === undefined)
31
+ return false;
32
+ if (!('eventTypes' in value) || value['eventTypes'] === undefined)
33
+ return false;
34
+ if (!('headerNames' in value) || value['headerNames'] === undefined)
35
+ return false;
36
+ if (!('enabled' in value) || value['enabled'] === undefined)
37
+ return false;
38
+ if (!('timeoutMs' in value) || value['timeoutMs'] === undefined)
39
+ return false;
40
+ if (!('maxAttempts' in value) || value['maxAttempts'] === undefined)
41
+ return false;
42
+ if (!('status' in value) || value['status'] === undefined)
43
+ return false;
44
+ if (!('disabledReason' in value) || value['disabledReason'] === undefined)
45
+ return false;
46
+ if (!('lastSuccessAt' in value) || value['lastSuccessAt'] === undefined)
47
+ return false;
48
+ if (!('failingSince' in value) || value['failingSince'] === undefined)
49
+ return false;
50
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
51
+ return false;
52
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
53
+ return false;
54
+ return true;
55
+ }
56
+ function WebhookEndpointDtoFromJSON(json) {
57
+ return WebhookEndpointDtoFromJSONTyped(json, false);
58
+ }
59
+ function WebhookEndpointDtoFromJSONTyped(json, ignoreDiscriminator) {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+ 'id': json['id'],
65
+ 'url': json['url'],
66
+ 'description': json['description'],
67
+ 'eventTypes': json['eventTypes'],
68
+ 'headerNames': json['headerNames'],
69
+ 'enabled': json['enabled'],
70
+ 'timeoutMs': json['timeoutMs'],
71
+ 'maxAttempts': json['maxAttempts'],
72
+ 'status': (0, WebhookEndpointStatus_1.WebhookEndpointStatusFromJSON)(json['status']),
73
+ 'disabledReason': json['disabledReason'],
74
+ 'lastSuccessAt': (json['lastSuccessAt'] == null ? null : new Date(json['lastSuccessAt'])),
75
+ 'failingSince': (json['failingSince'] == null ? null : new Date(json['failingSince'])),
76
+ 'createdAt': (new Date(json['createdAt'])),
77
+ 'updatedAt': (new Date(json['updatedAt'])),
78
+ };
79
+ }
80
+ function WebhookEndpointDtoToJSON(json) {
81
+ return WebhookEndpointDtoToJSONTyped(json, false);
82
+ }
83
+ function WebhookEndpointDtoToJSONTyped(value, ignoreDiscriminator) {
84
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
85
+ if (value == null) {
86
+ return value;
87
+ }
88
+ return {
89
+ 'id': value['id'],
90
+ 'url': value['url'],
91
+ 'description': value['description'],
92
+ 'eventTypes': value['eventTypes'],
93
+ 'headerNames': value['headerNames'],
94
+ 'enabled': value['enabled'],
95
+ 'timeoutMs': value['timeoutMs'],
96
+ 'maxAttempts': value['maxAttempts'],
97
+ 'status': (0, WebhookEndpointStatus_1.WebhookEndpointStatusToJSON)(value['status']),
98
+ 'disabledReason': value['disabledReason'],
99
+ 'lastSuccessAt': (value['lastSuccessAt'] == null ? null : value['lastSuccessAt'].toISOString()),
100
+ 'failingSince': (value['failingSince'] == null ? null : value['failingSince'].toISOString()),
101
+ 'createdAt': ((value['createdAt']).toISOString()),
102
+ 'updatedAt': ((value['updatedAt']).toISOString()),
103
+ };
104
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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 WebhookEndpointHeaderDto
16
+ */
17
+ export interface WebhookEndpointHeaderDto {
18
+ /**
19
+ * Name of the header.
20
+ * @type {string}
21
+ * @memberof WebhookEndpointHeaderDto
22
+ */
23
+ name: string;
24
+ /**
25
+ * Value of the header, as it is sent.
26
+ * @type {string}
27
+ * @memberof WebhookEndpointHeaderDto
28
+ */
29
+ value: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the WebhookEndpointHeaderDto interface.
33
+ */
34
+ export declare function instanceOfWebhookEndpointHeaderDto(value: object): value is WebhookEndpointHeaderDto;
35
+ export declare function WebhookEndpointHeaderDtoFromJSON(json: any): WebhookEndpointHeaderDto;
36
+ export declare function WebhookEndpointHeaderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookEndpointHeaderDto;
37
+ export declare function WebhookEndpointHeaderDtoToJSON(json: any): WebhookEndpointHeaderDto;
38
+ export declare function WebhookEndpointHeaderDtoToJSONTyped(value?: WebhookEndpointHeaderDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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.instanceOfWebhookEndpointHeaderDto = instanceOfWebhookEndpointHeaderDto;
17
+ exports.WebhookEndpointHeaderDtoFromJSON = WebhookEndpointHeaderDtoFromJSON;
18
+ exports.WebhookEndpointHeaderDtoFromJSONTyped = WebhookEndpointHeaderDtoFromJSONTyped;
19
+ exports.WebhookEndpointHeaderDtoToJSON = WebhookEndpointHeaderDtoToJSON;
20
+ exports.WebhookEndpointHeaderDtoToJSONTyped = WebhookEndpointHeaderDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the WebhookEndpointHeaderDto interface.
23
+ */
24
+ function instanceOfWebhookEndpointHeaderDto(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ if (!('value' in value) || value['value'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function WebhookEndpointHeaderDtoFromJSON(json) {
32
+ return WebhookEndpointHeaderDtoFromJSONTyped(json, false);
33
+ }
34
+ function WebhookEndpointHeaderDtoFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'name': json['name'],
40
+ 'value': json['value'],
41
+ };
42
+ }
43
+ function WebhookEndpointHeaderDtoToJSON(json) {
44
+ return WebhookEndpointHeaderDtoToJSONTyped(json, false);
45
+ }
46
+ function WebhookEndpointHeaderDtoToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'name': value['name'],
53
+ 'value': value['value'],
54
+ };
55
+ }