@dynamic-labs/sdk-api 0.0.307 → 0.0.309

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 (38) hide show
  1. package/package.json +1 -1
  2. package/src/apis/EventsApi.cjs +107 -0
  3. package/src/apis/EventsApi.d.ts +39 -0
  4. package/src/apis/EventsApi.js +103 -0
  5. package/src/apis/WebhooksApi.cjs +281 -0
  6. package/src/apis/WebhooksApi.d.ts +105 -0
  7. package/src/apis/WebhooksApi.js +277 -0
  8. package/src/apis/index.d.ts +2 -0
  9. package/src/index.cjs +40 -0
  10. package/src/index.js +11 -0
  11. package/src/models/Event.cjs +47 -0
  12. package/src/models/Event.d.ts +69 -0
  13. package/src/models/Event.js +41 -0
  14. package/src/models/EventType.cjs +45 -0
  15. package/src/models/EventType.d.ts +33 -0
  16. package/src/models/EventType.js +39 -0
  17. package/src/models/Webhook.cjs +49 -0
  18. package/src/models/Webhook.d.ts +75 -0
  19. package/src/models/Webhook.js +43 -0
  20. package/src/models/WebhookCreateRequest.cjs +47 -0
  21. package/src/models/WebhookCreateRequest.d.ts +39 -0
  22. package/src/models/WebhookCreateRequest.js +41 -0
  23. package/src/models/WebhookMessage.cjs +57 -0
  24. package/src/models/WebhookMessage.d.ts +99 -0
  25. package/src/models/WebhookMessage.js +51 -0
  26. package/src/models/WebhookMessageRedeliveryResponse.cjs +33 -0
  27. package/src/models/WebhookMessageRedeliveryResponse.d.ts +27 -0
  28. package/src/models/WebhookMessageRedeliveryResponse.js +27 -0
  29. package/src/models/WebhookMessagesResponse.cjs +36 -0
  30. package/src/models/WebhookMessagesResponse.d.ts +34 -0
  31. package/src/models/WebhookMessagesResponse.js +30 -0
  32. package/src/models/WebhookUpdateRequest.cjs +47 -0
  33. package/src/models/WebhookUpdateRequest.d.ts +39 -0
  34. package/src/models/WebhookUpdateRequest.js +41 -0
  35. package/src/models/WebhooksResponse.cjs +36 -0
  36. package/src/models/WebhooksResponse.d.ts +34 -0
  37. package/src/models/WebhooksResponse.js +30 -0
  38. package/src/models/index.d.ts +9 -0
@@ -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 };
@@ -0,0 +1,36 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var Webhook = require('./Webhook.cjs');
7
+
8
+ /* tslint:disable */
9
+ function WebhooksResponseFromJSON(json) {
10
+ return WebhooksResponseFromJSONTyped(json);
11
+ }
12
+ function WebhooksResponseFromJSONTyped(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(Webhook.WebhookFromJSON)),
19
+ };
20
+ }
21
+ function WebhooksResponseToJSON(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(Webhook.WebhookToJSON)),
31
+ };
32
+ }
33
+
34
+ exports.WebhooksResponseFromJSON = WebhooksResponseFromJSON;
35
+ exports.WebhooksResponseFromJSONTyped = WebhooksResponseFromJSONTyped;
36
+ exports.WebhooksResponseToJSON = WebhooksResponseToJSON;
@@ -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 { Webhook } from './Webhook';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface WebhooksResponse
17
+ */
18
+ export interface WebhooksResponse {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof WebhooksResponse
23
+ */
24
+ cursor?: string;
25
+ /**
26
+ *
27
+ * @type {Array<Webhook>}
28
+ * @memberof WebhooksResponse
29
+ */
30
+ data?: Array<Webhook>;
31
+ }
32
+ export declare function WebhooksResponseFromJSON(json: any): WebhooksResponse;
33
+ export declare function WebhooksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhooksResponse;
34
+ export declare function WebhooksResponseToJSON(value?: WebhooksResponse | null): any;
@@ -0,0 +1,30 @@
1
+ import { exists } from '../runtime.js';
2
+ import { WebhookFromJSON, WebhookToJSON } from './Webhook.js';
3
+
4
+ /* tslint:disable */
5
+ function WebhooksResponseFromJSON(json) {
6
+ return WebhooksResponseFromJSONTyped(json);
7
+ }
8
+ function WebhooksResponseFromJSONTyped(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(WebhookFromJSON)),
15
+ };
16
+ }
17
+ function WebhooksResponseToJSON(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(WebhookToJSON)),
27
+ };
28
+ }
29
+
30
+ export { WebhooksResponseFromJSON, WebhooksResponseFromJSONTyped, WebhooksResponseToJSON };
@@ -40,6 +40,8 @@ export * from './EnvironmentVisitorsResponseUsers';
40
40
  export * from './EnvironmentsResponse';
41
41
  export * from './EnvironmentsResponseEnvironments';
42
42
  export * from './ErrorMessageWithCode';
43
+ export * from './Event';
44
+ export * from './EventType';
43
45
  export * from './Export';
44
46
  export * from './ExportCreateRequest';
45
47
  export * from './ExportCreateRequestFilter';
@@ -191,4 +193,11 @@ export * from './VisitorsResponse';
191
193
  export * from './Wallet';
192
194
  export * from './WalletProperties';
193
195
  export * from './WalletProviderEnum';
196
+ export * from './Webhook';
197
+ export * from './WebhookCreateRequest';
198
+ export * from './WebhookMessage';
199
+ export * from './WebhookMessageRedeliveryResponse';
200
+ export * from './WebhookMessagesResponse';
201
+ export * from './WebhookUpdateRequest';
202
+ export * from './WebhooksResponse';
194
203
  export * from './WhenToImplementEnum';