@dynamic-labs/sdk-api 0.0.308 → 0.0.310
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/package.json +1 -1
- package/src/apis/WalletsApi.cjs +42 -0
- package/src/apis/WalletsApi.d.ts +13 -1
- package/src/apis/WalletsApi.js +42 -0
- package/src/apis/WebhooksApi.cjs +281 -0
- package/src/apis/WebhooksApi.d.ts +105 -0
- package/src/apis/WebhooksApi.js +277 -0
- package/src/apis/index.d.ts +1 -0
- package/src/index.cjs +34 -0
- package/src/index.js +9 -0
- package/src/models/CreateUserEmbeddedWalletsRequest.cjs +35 -0
- package/src/models/CreateUserEmbeddedWalletsRequest.d.ts +34 -0
- package/src/models/CreateUserEmbeddedWalletsRequest.js +29 -0
- package/src/models/Webhook.cjs +49 -0
- package/src/models/Webhook.d.ts +75 -0
- package/src/models/Webhook.js +43 -0
- package/src/models/WebhookCreateRequest.cjs +47 -0
- package/src/models/WebhookCreateRequest.d.ts +39 -0
- package/src/models/WebhookCreateRequest.js +41 -0
- package/src/models/WebhookMessage.cjs +57 -0
- package/src/models/WebhookMessage.d.ts +99 -0
- package/src/models/WebhookMessage.js +51 -0
- package/src/models/WebhookMessageRedeliveryResponse.cjs +33 -0
- package/src/models/WebhookMessageRedeliveryResponse.d.ts +27 -0
- package/src/models/WebhookMessageRedeliveryResponse.js +27 -0
- package/src/models/WebhookMessagesResponse.cjs +36 -0
- package/src/models/WebhookMessagesResponse.d.ts +34 -0
- package/src/models/WebhookMessagesResponse.js +30 -0
- package/src/models/WebhookUpdateRequest.cjs +47 -0
- package/src/models/WebhookUpdateRequest.d.ts +39 -0
- package/src/models/WebhookUpdateRequest.js +41 -0
- package/src/models/WebhooksResponse.cjs +36 -0
- package/src/models/WebhooksResponse.d.ts +34 -0
- package/src/models/WebhooksResponse.js +30 -0
- package/src/models/index.d.ts +8 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Dashboard API
|
|
9
|
+
* Dashboard API documentation
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
function WebhookCreateRequestFromJSON(json) {
|
|
19
|
+
return WebhookCreateRequestFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function WebhookCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'url': json['url'],
|
|
27
|
+
'isEnabled': json['isEnabled'],
|
|
28
|
+
'events': json['events'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function WebhookCreateRequestToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'url': value.url,
|
|
40
|
+
'isEnabled': value.isEnabled,
|
|
41
|
+
'events': value.events,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
exports.WebhookCreateRequestFromJSON = WebhookCreateRequestFromJSON;
|
|
46
|
+
exports.WebhookCreateRequestFromJSONTyped = WebhookCreateRequestFromJSONTyped;
|
|
47
|
+
exports.WebhookCreateRequestToJSON = WebhookCreateRequestToJSON;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.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 WebhookCreateRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface WebhookCreateRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WebhookCreateRequest
|
|
22
|
+
*/
|
|
23
|
+
url: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof WebhookCreateRequest
|
|
28
|
+
*/
|
|
29
|
+
isEnabled: boolean;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof WebhookCreateRequest
|
|
34
|
+
*/
|
|
35
|
+
events: Array<string>;
|
|
36
|
+
}
|
|
37
|
+
export declare function WebhookCreateRequestFromJSON(json: any): WebhookCreateRequest;
|
|
38
|
+
export declare function WebhookCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookCreateRequest;
|
|
39
|
+
export declare function WebhookCreateRequestToJSON(value?: WebhookCreateRequest | null): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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
|
+
function WebhookCreateRequestFromJSON(json) {
|
|
15
|
+
return WebhookCreateRequestFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function WebhookCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'url': json['url'],
|
|
23
|
+
'isEnabled': json['isEnabled'],
|
|
24
|
+
'events': json['events'],
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function WebhookCreateRequestToJSON(value) {
|
|
28
|
+
if (value === undefined) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
if (value === null) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'url': value.url,
|
|
36
|
+
'isEnabled': value.isEnabled,
|
|
37
|
+
'events': value.events,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { WebhookCreateRequestFromJSON, WebhookCreateRequestFromJSONTyped, WebhookCreateRequestToJSON };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function WebhookMessageFromJSON(json) {
|
|
9
|
+
return WebhookMessageFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function WebhookMessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'eventId': json['eventId'],
|
|
17
|
+
'environmentId': json['environmentId'],
|
|
18
|
+
'webhookId': json['webhookId'],
|
|
19
|
+
'deliveryId': !runtime.exists(json, 'deliveryId') ? undefined : json['deliveryId'],
|
|
20
|
+
'url': json['url'],
|
|
21
|
+
'status': json['status'],
|
|
22
|
+
'payloadUrl': !runtime.exists(json, 'payloadUrl') ? undefined : json['payloadUrl'],
|
|
23
|
+
'timestamp': (new Date(json['timestamp'])),
|
|
24
|
+
'deliveredAt': !runtime.exists(json, 'deliveredAt') ? undefined : (new Date(json['deliveredAt'])),
|
|
25
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
26
|
+
'deliveryAttempts': !runtime.exists(json, 'deliveryAttempts') ? undefined : json['deliveryAttempts'],
|
|
27
|
+
'request': json['request'],
|
|
28
|
+
'response': json['response'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function WebhookMessageToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'eventId': value.eventId,
|
|
40
|
+
'environmentId': value.environmentId,
|
|
41
|
+
'webhookId': value.webhookId,
|
|
42
|
+
'deliveryId': value.deliveryId,
|
|
43
|
+
'url': value.url,
|
|
44
|
+
'status': value.status,
|
|
45
|
+
'payloadUrl': value.payloadUrl,
|
|
46
|
+
'timestamp': (value.timestamp.toISOString()),
|
|
47
|
+
'deliveredAt': value.deliveredAt === undefined ? undefined : (value.deliveredAt.toISOString()),
|
|
48
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
49
|
+
'deliveryAttempts': value.deliveryAttempts,
|
|
50
|
+
'request': value.request,
|
|
51
|
+
'response': value.response,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
exports.WebhookMessageFromJSON = WebhookMessageFromJSON;
|
|
56
|
+
exports.WebhookMessageFromJSONTyped = WebhookMessageFromJSONTyped;
|
|
57
|
+
exports.WebhookMessageToJSON = WebhookMessageToJSON;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.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 WebhookMessage
|
|
16
|
+
*/
|
|
17
|
+
export interface WebhookMessage {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WebhookMessage
|
|
22
|
+
*/
|
|
23
|
+
eventId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WebhookMessage
|
|
28
|
+
*/
|
|
29
|
+
environmentId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof WebhookMessage
|
|
34
|
+
*/
|
|
35
|
+
webhookId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof WebhookMessage
|
|
40
|
+
*/
|
|
41
|
+
deliveryId?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof WebhookMessage
|
|
46
|
+
*/
|
|
47
|
+
url: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof WebhookMessage
|
|
52
|
+
*/
|
|
53
|
+
status: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof WebhookMessage
|
|
58
|
+
*/
|
|
59
|
+
payloadUrl?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof WebhookMessage
|
|
64
|
+
*/
|
|
65
|
+
timestamp: Date;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Date}
|
|
69
|
+
* @memberof WebhookMessage
|
|
70
|
+
*/
|
|
71
|
+
deliveredAt?: Date;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof WebhookMessage
|
|
76
|
+
*/
|
|
77
|
+
updatedAt: Date;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof WebhookMessage
|
|
82
|
+
*/
|
|
83
|
+
deliveryAttempts?: number;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {object}
|
|
87
|
+
* @memberof WebhookMessage
|
|
88
|
+
*/
|
|
89
|
+
request: object;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {object}
|
|
93
|
+
* @memberof WebhookMessage
|
|
94
|
+
*/
|
|
95
|
+
response: object;
|
|
96
|
+
}
|
|
97
|
+
export declare function WebhookMessageFromJSON(json: any): WebhookMessage;
|
|
98
|
+
export declare function WebhookMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookMessage;
|
|
99
|
+
export declare function WebhookMessageToJSON(value?: WebhookMessage | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function WebhookMessageFromJSON(json) {
|
|
5
|
+
return WebhookMessageFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function WebhookMessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'eventId': json['eventId'],
|
|
13
|
+
'environmentId': json['environmentId'],
|
|
14
|
+
'webhookId': json['webhookId'],
|
|
15
|
+
'deliveryId': !exists(json, 'deliveryId') ? undefined : json['deliveryId'],
|
|
16
|
+
'url': json['url'],
|
|
17
|
+
'status': json['status'],
|
|
18
|
+
'payloadUrl': !exists(json, 'payloadUrl') ? undefined : json['payloadUrl'],
|
|
19
|
+
'timestamp': (new Date(json['timestamp'])),
|
|
20
|
+
'deliveredAt': !exists(json, 'deliveredAt') ? undefined : (new Date(json['deliveredAt'])),
|
|
21
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
22
|
+
'deliveryAttempts': !exists(json, 'deliveryAttempts') ? undefined : json['deliveryAttempts'],
|
|
23
|
+
'request': json['request'],
|
|
24
|
+
'response': json['response'],
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function WebhookMessageToJSON(value) {
|
|
28
|
+
if (value === undefined) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
if (value === null) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'eventId': value.eventId,
|
|
36
|
+
'environmentId': value.environmentId,
|
|
37
|
+
'webhookId': value.webhookId,
|
|
38
|
+
'deliveryId': value.deliveryId,
|
|
39
|
+
'url': value.url,
|
|
40
|
+
'status': value.status,
|
|
41
|
+
'payloadUrl': value.payloadUrl,
|
|
42
|
+
'timestamp': (value.timestamp.toISOString()),
|
|
43
|
+
'deliveredAt': value.deliveredAt === undefined ? undefined : (value.deliveredAt.toISOString()),
|
|
44
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
45
|
+
'deliveryAttempts': value.deliveryAttempts,
|
|
46
|
+
'request': value.request,
|
|
47
|
+
'response': value.response,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export { WebhookMessageFromJSON, WebhookMessageFromJSONTyped, WebhookMessageToJSON };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function WebhookMessageRedeliveryResponseFromJSON(json) {
|
|
9
|
+
return WebhookMessageRedeliveryResponseFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function WebhookMessageRedeliveryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'message': !runtime.exists(json, 'message') ? undefined : json['message'],
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function WebhookMessageRedeliveryResponseToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'message': value.message,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.WebhookMessageRedeliveryResponseFromJSON = WebhookMessageRedeliveryResponseFromJSON;
|
|
32
|
+
exports.WebhookMessageRedeliveryResponseFromJSONTyped = WebhookMessageRedeliveryResponseFromJSONTyped;
|
|
33
|
+
exports.WebhookMessageRedeliveryResponseToJSON = WebhookMessageRedeliveryResponseToJSON;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.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 WebhookMessageRedeliveryResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface WebhookMessageRedeliveryResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WebhookMessageRedeliveryResponse
|
|
22
|
+
*/
|
|
23
|
+
message?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function WebhookMessageRedeliveryResponseFromJSON(json: any): WebhookMessageRedeliveryResponse;
|
|
26
|
+
export declare function WebhookMessageRedeliveryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookMessageRedeliveryResponse;
|
|
27
|
+
export declare function WebhookMessageRedeliveryResponseToJSON(value?: WebhookMessageRedeliveryResponse | null): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function WebhookMessageRedeliveryResponseFromJSON(json) {
|
|
5
|
+
return WebhookMessageRedeliveryResponseFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function WebhookMessageRedeliveryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'message': !exists(json, 'message') ? undefined : json['message'],
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function WebhookMessageRedeliveryResponseToJSON(value) {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
if (value === null) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'message': value.message,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { WebhookMessageRedeliveryResponseFromJSON, WebhookMessageRedeliveryResponseFromJSONTyped, WebhookMessageRedeliveryResponseToJSON };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var WebhookMessage = require('./WebhookMessage.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function WebhookMessagesResponseFromJSON(json) {
|
|
10
|
+
return WebhookMessagesResponseFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function WebhookMessagesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'cursor': !runtime.exists(json, 'cursor') ? undefined : json['cursor'],
|
|
18
|
+
'data': !runtime.exists(json, 'data') ? undefined : (json['data'].map(WebhookMessage.WebhookMessageFromJSON)),
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function WebhookMessagesResponseToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'cursor': value.cursor,
|
|
30
|
+
'data': value.data === undefined ? undefined : (value.data.map(WebhookMessage.WebhookMessageToJSON)),
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
exports.WebhookMessagesResponseFromJSON = WebhookMessagesResponseFromJSON;
|
|
35
|
+
exports.WebhookMessagesResponseFromJSONTyped = WebhookMessagesResponseFromJSONTyped;
|
|
36
|
+
exports.WebhookMessagesResponseToJSON = WebhookMessagesResponseToJSON;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.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 { WebhookMessage } from './WebhookMessage';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WebhookMessagesResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface WebhookMessagesResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof WebhookMessagesResponse
|
|
23
|
+
*/
|
|
24
|
+
cursor?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<WebhookMessage>}
|
|
28
|
+
* @memberof WebhookMessagesResponse
|
|
29
|
+
*/
|
|
30
|
+
data?: Array<WebhookMessage>;
|
|
31
|
+
}
|
|
32
|
+
export declare function WebhookMessagesResponseFromJSON(json: any): WebhookMessagesResponse;
|
|
33
|
+
export declare function WebhookMessagesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookMessagesResponse;
|
|
34
|
+
export declare function WebhookMessagesResponseToJSON(value?: WebhookMessagesResponse | null): any;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { WebhookMessageFromJSON, WebhookMessageToJSON } from './WebhookMessage.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function WebhookMessagesResponseFromJSON(json) {
|
|
6
|
+
return WebhookMessagesResponseFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function WebhookMessagesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'cursor': !exists(json, 'cursor') ? undefined : json['cursor'],
|
|
14
|
+
'data': !exists(json, 'data') ? undefined : (json['data'].map(WebhookMessageFromJSON)),
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function WebhookMessagesResponseToJSON(value) {
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (value === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'cursor': value.cursor,
|
|
26
|
+
'data': value.data === undefined ? undefined : (value.data.map(WebhookMessageToJSON)),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { WebhookMessagesResponseFromJSON, WebhookMessagesResponseFromJSONTyped, WebhookMessagesResponseToJSON };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Dashboard API
|
|
9
|
+
* Dashboard API documentation
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
function WebhookUpdateRequestFromJSON(json) {
|
|
19
|
+
return WebhookUpdateRequestFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function WebhookUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'url': json['url'],
|
|
27
|
+
'isEnabled': json['isEnabled'],
|
|
28
|
+
'events': json['events'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function WebhookUpdateRequestToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'url': value.url,
|
|
40
|
+
'isEnabled': value.isEnabled,
|
|
41
|
+
'events': value.events,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
exports.WebhookUpdateRequestFromJSON = WebhookUpdateRequestFromJSON;
|
|
46
|
+
exports.WebhookUpdateRequestFromJSONTyped = WebhookUpdateRequestFromJSONTyped;
|
|
47
|
+
exports.WebhookUpdateRequestToJSON = WebhookUpdateRequestToJSON;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.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 WebhookUpdateRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface WebhookUpdateRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WebhookUpdateRequest
|
|
22
|
+
*/
|
|
23
|
+
url: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof WebhookUpdateRequest
|
|
28
|
+
*/
|
|
29
|
+
isEnabled: boolean;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof WebhookUpdateRequest
|
|
34
|
+
*/
|
|
35
|
+
events: Array<string>;
|
|
36
|
+
}
|
|
37
|
+
export declare function WebhookUpdateRequestFromJSON(json: any): WebhookUpdateRequest;
|
|
38
|
+
export declare function WebhookUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookUpdateRequest;
|
|
39
|
+
export declare function WebhookUpdateRequestToJSON(value?: WebhookUpdateRequest | null): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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
|
+
function WebhookUpdateRequestFromJSON(json) {
|
|
15
|
+
return WebhookUpdateRequestFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function WebhookUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'url': json['url'],
|
|
23
|
+
'isEnabled': json['isEnabled'],
|
|
24
|
+
'events': json['events'],
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function WebhookUpdateRequestToJSON(value) {
|
|
28
|
+
if (value === undefined) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
if (value === null) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'url': value.url,
|
|
36
|
+
'isEnabled': value.isEnabled,
|
|
37
|
+
'events': value.events,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { WebhookUpdateRequestFromJSON, WebhookUpdateRequestFromJSONTyped, WebhookUpdateRequestToJSON };
|