@emilgroup/webhook-sdk-node 1.0.1-beta.1
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/.openapi-generator/FILES +21 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +84 -0
- package/api/health-api.ts +128 -0
- package/api/inbound-webhooks-api.ts +272 -0
- package/api.ts +33 -0
- package/base.ts +327 -0
- package/common.ts +199 -0
- package/configuration.ts +118 -0
- package/dist/api/health-api.d.ts +70 -0
- package/dist/api/health-api.js +204 -0
- package/dist/api/inbound-webhooks-api.d.ts +153 -0
- package/dist/api/inbound-webhooks-api.js +320 -0
- package/dist/api.d.ts +13 -0
- package/dist/api.js +31 -0
- package/dist/base.d.ts +88 -0
- package/dist/base.js +434 -0
- package/dist/common.d.ts +92 -0
- package/dist/common.js +277 -0
- package/dist/configuration.d.ts +96 -0
- package/dist/configuration.js +52 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +36 -0
- package/dist/models/create-inbound-webhook-request-dto.d.ts +66 -0
- package/dist/models/create-inbound-webhook-request-dto.js +21 -0
- package/dist/models/create-inbound-webhook-response-class.d.ts +25 -0
- package/dist/models/create-inbound-webhook-response-class.js +15 -0
- package/dist/models/get-inbound-webhook-response-class.d.ts +25 -0
- package/dist/models/get-inbound-webhook-response-class.js +15 -0
- package/dist/models/inbound-webhook-class.d.ts +102 -0
- package/dist/models/inbound-webhook-class.js +21 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +22 -0
- package/dist/models/inline-response200.d.ts +54 -0
- package/dist/models/inline-response200.js +15 -0
- package/dist/models/inline-response503.d.ts +54 -0
- package/dist/models/inline-response503.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/create-inbound-webhook-request-dto.ts +75 -0
- package/models/create-inbound-webhook-response-class.ts +31 -0
- package/models/get-inbound-webhook-response-class.ts +31 -0
- package/models/inbound-webhook-class.ts +111 -0
- package/models/index.ts +6 -0
- package/models/inline-response200.ts +48 -0
- package/models/inline-response503.ts +48 -0
- package/package.json +29 -0
- package/tsconfig.json +23 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL Webhookservice
|
|
3
|
+
* The EMIL Webhookservice API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
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 InboundWebhookClass
|
|
16
|
+
*/
|
|
17
|
+
export interface InboundWebhookClass {
|
|
18
|
+
/**
|
|
19
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof InboundWebhookClass
|
|
22
|
+
*/
|
|
23
|
+
'id': number;
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier code for the inbound webhook
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof InboundWebhookClass
|
|
28
|
+
*/
|
|
29
|
+
'code': string;
|
|
30
|
+
/**
|
|
31
|
+
* The name of the inbound webhook
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof InboundWebhookClass
|
|
34
|
+
*/
|
|
35
|
+
'name': string;
|
|
36
|
+
/**
|
|
37
|
+
* The full URL of the webhook endpoint
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof InboundWebhookClass
|
|
40
|
+
*/
|
|
41
|
+
'url'?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The slug for the webhook URL
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof InboundWebhookClass
|
|
46
|
+
*/
|
|
47
|
+
'slug': string;
|
|
48
|
+
/**
|
|
49
|
+
* The code of the signing secret used to verify webhook requests
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof InboundWebhookClass
|
|
52
|
+
*/
|
|
53
|
+
'signingSecretCode': string;
|
|
54
|
+
/**
|
|
55
|
+
* Whether the webhook is enabled
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof InboundWebhookClass
|
|
58
|
+
*/
|
|
59
|
+
'isEnabled': boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Path to extract external reference from request
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof InboundWebhookClass
|
|
64
|
+
*/
|
|
65
|
+
'externalRefPath'?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Location of the external reference (Header, Body, or Query)
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof InboundWebhookClass
|
|
70
|
+
*/
|
|
71
|
+
'externalRefLocation'?: InboundWebhookClassExternalRefLocationEnum;
|
|
72
|
+
/**
|
|
73
|
+
* Time at which the object was created.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof InboundWebhookClass
|
|
76
|
+
*/
|
|
77
|
+
'createdAt': string;
|
|
78
|
+
/**
|
|
79
|
+
* Time at which the object was updated.
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof InboundWebhookClass
|
|
82
|
+
*/
|
|
83
|
+
'updatedAt': string;
|
|
84
|
+
/**
|
|
85
|
+
* Identifier of the user who created the record.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof InboundWebhookClass
|
|
88
|
+
*/
|
|
89
|
+
'createdBy': string;
|
|
90
|
+
/**
|
|
91
|
+
* Identifier of the user who last updated the record.
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof InboundWebhookClass
|
|
94
|
+
*/
|
|
95
|
+
'updatedBy': string;
|
|
96
|
+
}
|
|
97
|
+
export declare const InboundWebhookClassExternalRefLocationEnum: {
|
|
98
|
+
readonly Header: "Header";
|
|
99
|
+
readonly Body: "Body";
|
|
100
|
+
readonly Query: "Query";
|
|
101
|
+
};
|
|
102
|
+
export type InboundWebhookClassExternalRefLocationEnum = typeof InboundWebhookClassExternalRefLocationEnum[keyof typeof InboundWebhookClassExternalRefLocationEnum];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL Webhookservice
|
|
6
|
+
* The EMIL Webhookservice API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
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.InboundWebhookClassExternalRefLocationEnum = void 0;
|
|
17
|
+
exports.InboundWebhookClassExternalRefLocationEnum = {
|
|
18
|
+
Header: 'Header',
|
|
19
|
+
Body: 'Body',
|
|
20
|
+
Query: 'Query'
|
|
21
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './create-inbound-webhook-request-dto';
|
|
2
|
+
export * from './create-inbound-webhook-response-class';
|
|
3
|
+
export * from './get-inbound-webhook-response-class';
|
|
4
|
+
export * from './inbound-webhook-class';
|
|
5
|
+
export * from './inline-response200';
|
|
6
|
+
export * from './inline-response503';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./create-inbound-webhook-request-dto"), exports);
|
|
18
|
+
__exportStar(require("./create-inbound-webhook-response-class"), exports);
|
|
19
|
+
__exportStar(require("./get-inbound-webhook-response-class"), exports);
|
|
20
|
+
__exportStar(require("./inbound-webhook-class"), exports);
|
|
21
|
+
__exportStar(require("./inline-response200"), exports);
|
|
22
|
+
__exportStar(require("./inline-response503"), exports);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL Webhookservice
|
|
3
|
+
* The EMIL Webhookservice API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
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 InlineResponse200
|
|
16
|
+
*/
|
|
17
|
+
export interface InlineResponse200 {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InlineResponse200
|
|
22
|
+
*/
|
|
23
|
+
'status'?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
27
|
+
* @memberof InlineResponse200
|
|
28
|
+
*/
|
|
29
|
+
'info'?: {
|
|
30
|
+
[key: string]: {
|
|
31
|
+
[key: string]: object;
|
|
32
|
+
};
|
|
33
|
+
} | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
37
|
+
* @memberof InlineResponse200
|
|
38
|
+
*/
|
|
39
|
+
'error'?: {
|
|
40
|
+
[key: string]: {
|
|
41
|
+
[key: string]: object;
|
|
42
|
+
};
|
|
43
|
+
} | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
47
|
+
* @memberof InlineResponse200
|
|
48
|
+
*/
|
|
49
|
+
'details'?: {
|
|
50
|
+
[key: string]: {
|
|
51
|
+
[key: string]: object;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL Webhookservice
|
|
6
|
+
* The EMIL Webhookservice API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
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 });
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL Webhookservice
|
|
3
|
+
* The EMIL Webhookservice API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
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 InlineResponse503
|
|
16
|
+
*/
|
|
17
|
+
export interface InlineResponse503 {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InlineResponse503
|
|
22
|
+
*/
|
|
23
|
+
'status'?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
27
|
+
* @memberof InlineResponse503
|
|
28
|
+
*/
|
|
29
|
+
'info'?: {
|
|
30
|
+
[key: string]: {
|
|
31
|
+
[key: string]: object;
|
|
32
|
+
};
|
|
33
|
+
} | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
37
|
+
* @memberof InlineResponse503
|
|
38
|
+
*/
|
|
39
|
+
'error'?: {
|
|
40
|
+
[key: string]: {
|
|
41
|
+
[key: string]: object;
|
|
42
|
+
};
|
|
43
|
+
} | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
47
|
+
* @memberof InlineResponse503
|
|
48
|
+
*/
|
|
49
|
+
'details'?: {
|
|
50
|
+
[key: string]: {
|
|
51
|
+
[key: string]: object;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL Webhookservice
|
|
6
|
+
* The EMIL Webhookservice API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
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 });
|
package/git_push.sh
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
3
|
+
#
|
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
|
5
|
+
|
|
6
|
+
git_user_id=$1
|
|
7
|
+
git_repo_id=$2
|
|
8
|
+
release_note=$3
|
|
9
|
+
git_host=$4
|
|
10
|
+
|
|
11
|
+
if [ "$git_host" = "" ]; then
|
|
12
|
+
git_host="github.com"
|
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
|
17
|
+
git_user_id="Emil"
|
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
|
22
|
+
git_repo_id="webhook-sdk-node"
|
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
if [ "$release_note" = "" ]; then
|
|
27
|
+
release_note="Minor update"
|
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
# Initialize the local directory as a Git repository
|
|
32
|
+
git init
|
|
33
|
+
|
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
|
35
|
+
git add .
|
|
36
|
+
|
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
38
|
+
git commit -m "$release_note"
|
|
39
|
+
|
|
40
|
+
# Sets the new remote
|
|
41
|
+
git_remote=$(git remote)
|
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
43
|
+
|
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
47
|
+
else
|
|
48
|
+
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
git pull origin master
|
|
54
|
+
|
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|
package/index.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL Webhookservice
|
|
5
|
+
* The EMIL Webhookservice API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
export { Environment, BaseAPI } from "./base";
|
|
17
|
+
export * from "./api";
|
|
18
|
+
export * from "./configuration";
|
|
19
|
+
export * from "./models";
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL Webhookservice
|
|
5
|
+
* The EMIL Webhookservice API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface CreateInboundWebhookRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateInboundWebhookRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* The name of the inbound webhook
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CreateInboundWebhookRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'name': string;
|
|
29
|
+
/**
|
|
30
|
+
* The slug for the webhook URL. Used to construct the webhook endpoint.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CreateInboundWebhookRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'slug': string;
|
|
35
|
+
/**
|
|
36
|
+
* The code of the signing secret used to verify webhook requests
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CreateInboundWebhookRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'signingSecretCode': string;
|
|
41
|
+
/**
|
|
42
|
+
* The workflow code to trigger when the webhook is called
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CreateInboundWebhookRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'workflowCode': string;
|
|
47
|
+
/**
|
|
48
|
+
* Whether the webhook is enabled (default: true)
|
|
49
|
+
* @type {boolean}
|
|
50
|
+
* @memberof CreateInboundWebhookRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'isEnabled'?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Path to extract external reference from request (e.g., X-Correlation-Id, X-Request-Id, X-Claim-Id or $payload.claim.id)
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof CreateInboundWebhookRequestDto
|
|
57
|
+
*/
|
|
58
|
+
'externalRefPath'?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Location of the external reference (Header, Body, or Query)
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof CreateInboundWebhookRequestDto
|
|
63
|
+
*/
|
|
64
|
+
'externalRefLocation'?: CreateInboundWebhookRequestDtoExternalRefLocationEnum;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export const CreateInboundWebhookRequestDtoExternalRefLocationEnum = {
|
|
68
|
+
Header: 'Header',
|
|
69
|
+
Body: 'Body',
|
|
70
|
+
Query: 'Query'
|
|
71
|
+
} as const;
|
|
72
|
+
|
|
73
|
+
export type CreateInboundWebhookRequestDtoExternalRefLocationEnum = typeof CreateInboundWebhookRequestDtoExternalRefLocationEnum[keyof typeof CreateInboundWebhookRequestDtoExternalRefLocationEnum];
|
|
74
|
+
|
|
75
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL Webhookservice
|
|
5
|
+
* The EMIL Webhookservice API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { InboundWebhookClass } from './inbound-webhook-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CreateInboundWebhookResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface CreateInboundWebhookResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The inboundWebhook response.
|
|
26
|
+
* @type {InboundWebhookClass}
|
|
27
|
+
* @memberof CreateInboundWebhookResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'inboundWebhook': InboundWebhookClass;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL Webhookservice
|
|
5
|
+
* The EMIL Webhookservice API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { InboundWebhookClass } from './inbound-webhook-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface GetInboundWebhookResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface GetInboundWebhookResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The inboundWebhook response.
|
|
26
|
+
* @type {InboundWebhookClass}
|
|
27
|
+
* @memberof GetInboundWebhookResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'inboundWebhook': InboundWebhookClass;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL Webhookservice
|
|
5
|
+
* The EMIL Webhookservice API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface InboundWebhookClass
|
|
21
|
+
*/
|
|
22
|
+
export interface InboundWebhookClass {
|
|
23
|
+
/**
|
|
24
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof InboundWebhookClass
|
|
27
|
+
*/
|
|
28
|
+
'id': number;
|
|
29
|
+
/**
|
|
30
|
+
* Unique identifier code for the inbound webhook
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof InboundWebhookClass
|
|
33
|
+
*/
|
|
34
|
+
'code': string;
|
|
35
|
+
/**
|
|
36
|
+
* The name of the inbound webhook
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof InboundWebhookClass
|
|
39
|
+
*/
|
|
40
|
+
'name': string;
|
|
41
|
+
/**
|
|
42
|
+
* The full URL of the webhook endpoint
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof InboundWebhookClass
|
|
45
|
+
*/
|
|
46
|
+
'url'?: string;
|
|
47
|
+
/**
|
|
48
|
+
* The slug for the webhook URL
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof InboundWebhookClass
|
|
51
|
+
*/
|
|
52
|
+
'slug': string;
|
|
53
|
+
/**
|
|
54
|
+
* The code of the signing secret used to verify webhook requests
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof InboundWebhookClass
|
|
57
|
+
*/
|
|
58
|
+
'signingSecretCode': string;
|
|
59
|
+
/**
|
|
60
|
+
* Whether the webhook is enabled
|
|
61
|
+
* @type {boolean}
|
|
62
|
+
* @memberof InboundWebhookClass
|
|
63
|
+
*/
|
|
64
|
+
'isEnabled': boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Path to extract external reference from request
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof InboundWebhookClass
|
|
69
|
+
*/
|
|
70
|
+
'externalRefPath'?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Location of the external reference (Header, Body, or Query)
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof InboundWebhookClass
|
|
75
|
+
*/
|
|
76
|
+
'externalRefLocation'?: InboundWebhookClassExternalRefLocationEnum;
|
|
77
|
+
/**
|
|
78
|
+
* Time at which the object was created.
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof InboundWebhookClass
|
|
81
|
+
*/
|
|
82
|
+
'createdAt': string;
|
|
83
|
+
/**
|
|
84
|
+
* Time at which the object was updated.
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof InboundWebhookClass
|
|
87
|
+
*/
|
|
88
|
+
'updatedAt': string;
|
|
89
|
+
/**
|
|
90
|
+
* Identifier of the user who created the record.
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof InboundWebhookClass
|
|
93
|
+
*/
|
|
94
|
+
'createdBy': string;
|
|
95
|
+
/**
|
|
96
|
+
* Identifier of the user who last updated the record.
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof InboundWebhookClass
|
|
99
|
+
*/
|
|
100
|
+
'updatedBy': string;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export const InboundWebhookClassExternalRefLocationEnum = {
|
|
104
|
+
Header: 'Header',
|
|
105
|
+
Body: 'Body',
|
|
106
|
+
Query: 'Query'
|
|
107
|
+
} as const;
|
|
108
|
+
|
|
109
|
+
export type InboundWebhookClassExternalRefLocationEnum = typeof InboundWebhookClassExternalRefLocationEnum[keyof typeof InboundWebhookClassExternalRefLocationEnum];
|
|
110
|
+
|
|
111
|
+
|
package/models/index.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './create-inbound-webhook-request-dto';
|
|
2
|
+
export * from './create-inbound-webhook-response-class';
|
|
3
|
+
export * from './get-inbound-webhook-response-class';
|
|
4
|
+
export * from './inbound-webhook-class';
|
|
5
|
+
export * from './inline-response200';
|
|
6
|
+
export * from './inline-response503';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL Webhookservice
|
|
5
|
+
* The EMIL Webhookservice API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface InlineResponse200
|
|
21
|
+
*/
|
|
22
|
+
export interface InlineResponse200 {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof InlineResponse200
|
|
27
|
+
*/
|
|
28
|
+
'status'?: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
32
|
+
* @memberof InlineResponse200
|
|
33
|
+
*/
|
|
34
|
+
'info'?: { [key: string]: { [key: string]: object; }; } | null;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
38
|
+
* @memberof InlineResponse200
|
|
39
|
+
*/
|
|
40
|
+
'error'?: { [key: string]: { [key: string]: object; }; } | null;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
44
|
+
* @memberof InlineResponse200
|
|
45
|
+
*/
|
|
46
|
+
'details'?: { [key: string]: { [key: string]: object; }; };
|
|
47
|
+
}
|
|
48
|
+
|