@emilgroup/webhook-sdk-node 1.0.1-beta.12 → 1.0.1-beta.13
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/README.md +2 -2
- package/api/trigger-inbound-webhooks-api.ts +15 -28
- package/api/webhook-requests-api.ts +12 -12
- package/dist/api/trigger-inbound-webhooks-api.d.ts +8 -17
- package/dist/api/trigger-inbound-webhooks-api.js +13 -19
- package/dist/api/webhook-requests-api.d.ts +12 -12
- package/dist/api/webhook-requests-api.js +9 -9
- package/dist/models/webhook-request-class.d.ts +6 -0
- package/models/webhook-request-class.ts +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/webhook-sdk-node@1.0.1-beta.
|
|
20
|
+
npm install @emilgroup/webhook-sdk-node@1.0.1-beta.13 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/webhook-sdk-node@1.0.1-beta.
|
|
24
|
+
yarn add @emilgroup/webhook-sdk-node@1.0.1-beta.13
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import ``.
|
|
@@ -35,20 +35,16 @@ export const TriggerInboundWebhooksApiAxiosParamCreator = function (configuratio
|
|
|
35
35
|
/**
|
|
36
36
|
* Receives and processes incoming webhook requests from external systems **Required Permissions** \"webhook-management.webhooks.run\"
|
|
37
37
|
* @summary Execute incoming webhook
|
|
38
|
-
* @param {string}
|
|
39
|
-
* @param {string} slugAndCode The webhook slug and code combined with a hyphen (e.g., claim.deleted-iwh_eN2uxBbOz)
|
|
38
|
+
* @param {string} code The webhook code (e.g., iwh_3g_5yaneKw)
|
|
40
39
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
41
40
|
* @param {*} [options] Override http request option.
|
|
42
41
|
* @throws {RequiredError}
|
|
43
42
|
*/
|
|
44
|
-
triggerIncomingWebhook: async (
|
|
45
|
-
// verify required parameter '
|
|
46
|
-
assertParamExists('triggerIncomingWebhook', '
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
const localVarPath = `/webhookservice/v1/in/{tenantSlug}/{slugAndCode}`
|
|
50
|
-
.replace(`{${"tenantSlug"}}`, encodeURIComponent(String(tenantSlug)))
|
|
51
|
-
.replace(`{${"slugAndCode"}}`, encodeURIComponent(String(slugAndCode)));
|
|
43
|
+
triggerIncomingWebhook: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44
|
+
// verify required parameter 'code' is not null or undefined
|
|
45
|
+
assertParamExists('triggerIncomingWebhook', 'code', code)
|
|
46
|
+
const localVarPath = `/webhookservice/v1/in/{code}`
|
|
47
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
52
48
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
53
49
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
54
50
|
let baseOptions;
|
|
@@ -94,14 +90,13 @@ export const TriggerInboundWebhooksApiFp = function(configuration?: Configuratio
|
|
|
94
90
|
/**
|
|
95
91
|
* Receives and processes incoming webhook requests from external systems **Required Permissions** \"webhook-management.webhooks.run\"
|
|
96
92
|
* @summary Execute incoming webhook
|
|
97
|
-
* @param {string}
|
|
98
|
-
* @param {string} slugAndCode The webhook slug and code combined with a hyphen (e.g., claim.deleted-iwh_eN2uxBbOz)
|
|
93
|
+
* @param {string} code The webhook code (e.g., iwh_3g_5yaneKw)
|
|
99
94
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
100
95
|
* @param {*} [options] Override http request option.
|
|
101
96
|
* @throws {RequiredError}
|
|
102
97
|
*/
|
|
103
|
-
async triggerIncomingWebhook(
|
|
104
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.triggerIncomingWebhook(
|
|
98
|
+
async triggerIncomingWebhook(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TriggerInboundWebhookResponseClass>> {
|
|
99
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.triggerIncomingWebhook(code, authorization, options);
|
|
105
100
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
106
101
|
},
|
|
107
102
|
}
|
|
@@ -117,14 +112,13 @@ export const TriggerInboundWebhooksApiFactory = function (configuration?: Config
|
|
|
117
112
|
/**
|
|
118
113
|
* Receives and processes incoming webhook requests from external systems **Required Permissions** \"webhook-management.webhooks.run\"
|
|
119
114
|
* @summary Execute incoming webhook
|
|
120
|
-
* @param {string}
|
|
121
|
-
* @param {string} slugAndCode The webhook slug and code combined with a hyphen (e.g., claim.deleted-iwh_eN2uxBbOz)
|
|
115
|
+
* @param {string} code The webhook code (e.g., iwh_3g_5yaneKw)
|
|
122
116
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
123
117
|
* @param {*} [options] Override http request option.
|
|
124
118
|
* @throws {RequiredError}
|
|
125
119
|
*/
|
|
126
|
-
triggerIncomingWebhook(
|
|
127
|
-
return localVarFp.triggerIncomingWebhook(
|
|
120
|
+
triggerIncomingWebhook(code: string, authorization?: string, options?: any): AxiosPromise<TriggerInboundWebhookResponseClass> {
|
|
121
|
+
return localVarFp.triggerIncomingWebhook(code, authorization, options).then((request) => request(axios, basePath));
|
|
128
122
|
},
|
|
129
123
|
};
|
|
130
124
|
};
|
|
@@ -136,18 +130,11 @@ export const TriggerInboundWebhooksApiFactory = function (configuration?: Config
|
|
|
136
130
|
*/
|
|
137
131
|
export interface TriggerInboundWebhooksApiTriggerIncomingWebhookRequest {
|
|
138
132
|
/**
|
|
139
|
-
*
|
|
133
|
+
* The webhook code (e.g., iwh_3g_5yaneKw)
|
|
140
134
|
* @type {string}
|
|
141
135
|
* @memberof TriggerInboundWebhooksApiTriggerIncomingWebhook
|
|
142
136
|
*/
|
|
143
|
-
readonly
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* The webhook slug and code combined with a hyphen (e.g., claim.deleted-iwh_eN2uxBbOz)
|
|
147
|
-
* @type {string}
|
|
148
|
-
* @memberof TriggerInboundWebhooksApiTriggerIncomingWebhook
|
|
149
|
-
*/
|
|
150
|
-
readonly slugAndCode: string
|
|
137
|
+
readonly code: string
|
|
151
138
|
|
|
152
139
|
/**
|
|
153
140
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -173,6 +160,6 @@ export class TriggerInboundWebhooksApi extends BaseAPI {
|
|
|
173
160
|
* @memberof TriggerInboundWebhooksApi
|
|
174
161
|
*/
|
|
175
162
|
public triggerIncomingWebhook(requestParameters: TriggerInboundWebhooksApiTriggerIncomingWebhookRequest, options?: AxiosRequestConfig) {
|
|
176
|
-
return TriggerInboundWebhooksApiFp(this.configuration).triggerIncomingWebhook(requestParameters.
|
|
163
|
+
return TriggerInboundWebhooksApiFp(this.configuration).triggerIncomingWebhook(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
177
164
|
}
|
|
178
165
|
}
|
|
@@ -38,11 +38,11 @@ export const WebhookRequestsApiAxiosParamCreator = function (configuration?: Con
|
|
|
38
38
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
39
39
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
40
40
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
41
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
41
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
42
42
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
43
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, inboundWebhookCode, requestMethod, status, createdAt, updatedAt, processedAt</i>
|
|
43
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, inboundWebhookCode, requestMethod, status, workflowInstanceCode, createdAt, updatedAt, processedAt</i>
|
|
44
44
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
45
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
45
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
46
46
|
* @param {*} [options] Override http request option.
|
|
47
47
|
* @throws {RequiredError}
|
|
48
48
|
*/
|
|
@@ -124,11 +124,11 @@ export const WebhookRequestsApiFp = function(configuration?: Configuration) {
|
|
|
124
124
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
125
125
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
126
126
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
127
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
127
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
128
128
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
129
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, inboundWebhookCode, requestMethod, status, createdAt, updatedAt, processedAt</i>
|
|
129
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, inboundWebhookCode, requestMethod, status, workflowInstanceCode, createdAt, updatedAt, processedAt</i>
|
|
130
130
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
131
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
131
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
132
132
|
* @param {*} [options] Override http request option.
|
|
133
133
|
* @throws {RequiredError}
|
|
134
134
|
*/
|
|
@@ -152,11 +152,11 @@ export const WebhookRequestsApiFactory = function (configuration?: Configuration
|
|
|
152
152
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
153
153
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
154
154
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
155
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
155
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
156
156
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
157
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, inboundWebhookCode, requestMethod, status, createdAt, updatedAt, processedAt</i>
|
|
157
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, inboundWebhookCode, requestMethod, status, workflowInstanceCode, createdAt, updatedAt, processedAt</i>
|
|
158
158
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
159
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
159
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
160
160
|
* @param {*} [options] Override http request option.
|
|
161
161
|
* @throws {RequiredError}
|
|
162
162
|
*/
|
|
@@ -194,7 +194,7 @@ export interface WebhookRequestsApiListWebhookRequestsRequest {
|
|
|
194
194
|
readonly pageToken?: string
|
|
195
195
|
|
|
196
196
|
/**
|
|
197
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
197
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
198
198
|
* @type {string}
|
|
199
199
|
* @memberof WebhookRequestsApiListWebhookRequests
|
|
200
200
|
*/
|
|
@@ -208,7 +208,7 @@ export interface WebhookRequestsApiListWebhookRequestsRequest {
|
|
|
208
208
|
readonly search?: string
|
|
209
209
|
|
|
210
210
|
/**
|
|
211
|
-
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, inboundWebhookCode, requestMethod, status, createdAt, updatedAt, processedAt</i>
|
|
211
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, inboundWebhookCode, requestMethod, status, workflowInstanceCode, createdAt, updatedAt, processedAt</i>
|
|
212
212
|
* @type {string}
|
|
213
213
|
* @memberof WebhookRequestsApiListWebhookRequests
|
|
214
214
|
*/
|
|
@@ -222,7 +222,7 @@ export interface WebhookRequestsApiListWebhookRequestsRequest {
|
|
|
222
222
|
readonly expand?: string
|
|
223
223
|
|
|
224
224
|
/**
|
|
225
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
225
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
226
226
|
* @type {string}
|
|
227
227
|
* @memberof WebhookRequestsApiListWebhookRequests
|
|
228
228
|
*/
|
|
@@ -21,13 +21,12 @@ export declare const TriggerInboundWebhooksApiAxiosParamCreator: (configuration?
|
|
|
21
21
|
/**
|
|
22
22
|
* Receives and processes incoming webhook requests from external systems **Required Permissions** \"webhook-management.webhooks.run\"
|
|
23
23
|
* @summary Execute incoming webhook
|
|
24
|
-
* @param {string}
|
|
25
|
-
* @param {string} slugAndCode The webhook slug and code combined with a hyphen (e.g., claim.deleted-iwh_eN2uxBbOz)
|
|
24
|
+
* @param {string} code The webhook code (e.g., iwh_3g_5yaneKw)
|
|
26
25
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
27
26
|
* @param {*} [options] Override http request option.
|
|
28
27
|
* @throws {RequiredError}
|
|
29
28
|
*/
|
|
30
|
-
triggerIncomingWebhook: (
|
|
29
|
+
triggerIncomingWebhook: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
30
|
};
|
|
32
31
|
/**
|
|
33
32
|
* TriggerInboundWebhooksApi - functional programming interface
|
|
@@ -37,13 +36,12 @@ export declare const TriggerInboundWebhooksApiFp: (configuration?: Configuration
|
|
|
37
36
|
/**
|
|
38
37
|
* Receives and processes incoming webhook requests from external systems **Required Permissions** \"webhook-management.webhooks.run\"
|
|
39
38
|
* @summary Execute incoming webhook
|
|
40
|
-
* @param {string}
|
|
41
|
-
* @param {string} slugAndCode The webhook slug and code combined with a hyphen (e.g., claim.deleted-iwh_eN2uxBbOz)
|
|
39
|
+
* @param {string} code The webhook code (e.g., iwh_3g_5yaneKw)
|
|
42
40
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
43
41
|
* @param {*} [options] Override http request option.
|
|
44
42
|
* @throws {RequiredError}
|
|
45
43
|
*/
|
|
46
|
-
triggerIncomingWebhook(
|
|
44
|
+
triggerIncomingWebhook(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TriggerInboundWebhookResponseClass>>;
|
|
47
45
|
};
|
|
48
46
|
/**
|
|
49
47
|
* TriggerInboundWebhooksApi - factory interface
|
|
@@ -53,13 +51,12 @@ export declare const TriggerInboundWebhooksApiFactory: (configuration?: Configur
|
|
|
53
51
|
/**
|
|
54
52
|
* Receives and processes incoming webhook requests from external systems **Required Permissions** \"webhook-management.webhooks.run\"
|
|
55
53
|
* @summary Execute incoming webhook
|
|
56
|
-
* @param {string}
|
|
57
|
-
* @param {string} slugAndCode The webhook slug and code combined with a hyphen (e.g., claim.deleted-iwh_eN2uxBbOz)
|
|
54
|
+
* @param {string} code The webhook code (e.g., iwh_3g_5yaneKw)
|
|
58
55
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
59
56
|
* @param {*} [options] Override http request option.
|
|
60
57
|
* @throws {RequiredError}
|
|
61
58
|
*/
|
|
62
|
-
triggerIncomingWebhook(
|
|
59
|
+
triggerIncomingWebhook(code: string, authorization?: string, options?: any): AxiosPromise<TriggerInboundWebhookResponseClass>;
|
|
63
60
|
};
|
|
64
61
|
/**
|
|
65
62
|
* Request parameters for triggerIncomingWebhook operation in TriggerInboundWebhooksApi.
|
|
@@ -68,17 +65,11 @@ export declare const TriggerInboundWebhooksApiFactory: (configuration?: Configur
|
|
|
68
65
|
*/
|
|
69
66
|
export interface TriggerInboundWebhooksApiTriggerIncomingWebhookRequest {
|
|
70
67
|
/**
|
|
71
|
-
*
|
|
68
|
+
* The webhook code (e.g., iwh_3g_5yaneKw)
|
|
72
69
|
* @type {string}
|
|
73
70
|
* @memberof TriggerInboundWebhooksApiTriggerIncomingWebhook
|
|
74
71
|
*/
|
|
75
|
-
readonly
|
|
76
|
-
/**
|
|
77
|
-
* The webhook slug and code combined with a hyphen (e.g., claim.deleted-iwh_eN2uxBbOz)
|
|
78
|
-
* @type {string}
|
|
79
|
-
* @memberof TriggerInboundWebhooksApiTriggerIncomingWebhook
|
|
80
|
-
*/
|
|
81
|
-
readonly slugAndCode: string;
|
|
72
|
+
readonly code: string;
|
|
82
73
|
/**
|
|
83
74
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
84
75
|
* @type {string}
|
|
@@ -99,26 +99,22 @@ var TriggerInboundWebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
99
99
|
/**
|
|
100
100
|
* Receives and processes incoming webhook requests from external systems **Required Permissions** \"webhook-management.webhooks.run\"
|
|
101
101
|
* @summary Execute incoming webhook
|
|
102
|
-
* @param {string}
|
|
103
|
-
* @param {string} slugAndCode The webhook slug and code combined with a hyphen (e.g., claim.deleted-iwh_eN2uxBbOz)
|
|
102
|
+
* @param {string} code The webhook code (e.g., iwh_3g_5yaneKw)
|
|
104
103
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
105
104
|
* @param {*} [options] Override http request option.
|
|
106
105
|
* @throws {RequiredError}
|
|
107
106
|
*/
|
|
108
|
-
triggerIncomingWebhook: function (
|
|
107
|
+
triggerIncomingWebhook: function (code, authorization, options) {
|
|
109
108
|
if (options === void 0) { options = {}; }
|
|
110
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
111
110
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
112
111
|
return __generator(this, function (_a) {
|
|
113
112
|
switch (_a.label) {
|
|
114
113
|
case 0:
|
|
115
|
-
// verify required parameter '
|
|
116
|
-
(0, common_1.assertParamExists)('triggerIncomingWebhook', '
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
localVarPath = "/webhookservice/v1/in/{tenantSlug}/{slugAndCode}"
|
|
120
|
-
.replace("{".concat("tenantSlug", "}"), encodeURIComponent(String(tenantSlug)))
|
|
121
|
-
.replace("{".concat("slugAndCode", "}"), encodeURIComponent(String(slugAndCode)));
|
|
114
|
+
// verify required parameter 'code' is not null or undefined
|
|
115
|
+
(0, common_1.assertParamExists)('triggerIncomingWebhook', 'code', code);
|
|
116
|
+
localVarPath = "/webhookservice/v1/in/{code}"
|
|
117
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
122
118
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
123
119
|
if (configuration) {
|
|
124
120
|
baseOptions = configuration.baseOptions;
|
|
@@ -161,18 +157,17 @@ var TriggerInboundWebhooksApiFp = function (configuration) {
|
|
|
161
157
|
/**
|
|
162
158
|
* Receives and processes incoming webhook requests from external systems **Required Permissions** \"webhook-management.webhooks.run\"
|
|
163
159
|
* @summary Execute incoming webhook
|
|
164
|
-
* @param {string}
|
|
165
|
-
* @param {string} slugAndCode The webhook slug and code combined with a hyphen (e.g., claim.deleted-iwh_eN2uxBbOz)
|
|
160
|
+
* @param {string} code The webhook code (e.g., iwh_3g_5yaneKw)
|
|
166
161
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
167
162
|
* @param {*} [options] Override http request option.
|
|
168
163
|
* @throws {RequiredError}
|
|
169
164
|
*/
|
|
170
|
-
triggerIncomingWebhook: function (
|
|
165
|
+
triggerIncomingWebhook: function (code, authorization, options) {
|
|
171
166
|
return __awaiter(this, void 0, void 0, function () {
|
|
172
167
|
var localVarAxiosArgs;
|
|
173
168
|
return __generator(this, function (_a) {
|
|
174
169
|
switch (_a.label) {
|
|
175
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.triggerIncomingWebhook(
|
|
170
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.triggerIncomingWebhook(code, authorization, options)];
|
|
176
171
|
case 1:
|
|
177
172
|
localVarAxiosArgs = _a.sent();
|
|
178
173
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -193,14 +188,13 @@ var TriggerInboundWebhooksApiFactory = function (configuration, basePath, axios)
|
|
|
193
188
|
/**
|
|
194
189
|
* Receives and processes incoming webhook requests from external systems **Required Permissions** \"webhook-management.webhooks.run\"
|
|
195
190
|
* @summary Execute incoming webhook
|
|
196
|
-
* @param {string}
|
|
197
|
-
* @param {string} slugAndCode The webhook slug and code combined with a hyphen (e.g., claim.deleted-iwh_eN2uxBbOz)
|
|
191
|
+
* @param {string} code The webhook code (e.g., iwh_3g_5yaneKw)
|
|
198
192
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
199
193
|
* @param {*} [options] Override http request option.
|
|
200
194
|
* @throws {RequiredError}
|
|
201
195
|
*/
|
|
202
|
-
triggerIncomingWebhook: function (
|
|
203
|
-
return localVarFp.triggerIncomingWebhook(
|
|
196
|
+
triggerIncomingWebhook: function (code, authorization, options) {
|
|
197
|
+
return localVarFp.triggerIncomingWebhook(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
204
198
|
},
|
|
205
199
|
};
|
|
206
200
|
};
|
|
@@ -226,7 +220,7 @@ var TriggerInboundWebhooksApi = /** @class */ (function (_super) {
|
|
|
226
220
|
*/
|
|
227
221
|
TriggerInboundWebhooksApi.prototype.triggerIncomingWebhook = function (requestParameters, options) {
|
|
228
222
|
var _this = this;
|
|
229
|
-
return (0, exports.TriggerInboundWebhooksApiFp)(this.configuration).triggerIncomingWebhook(requestParameters.
|
|
223
|
+
return (0, exports.TriggerInboundWebhooksApiFp)(this.configuration).triggerIncomingWebhook(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
230
224
|
};
|
|
231
225
|
return TriggerInboundWebhooksApi;
|
|
232
226
|
}(base_1.BaseAPI));
|
|
@@ -24,11 +24,11 @@ export declare const WebhookRequestsApiAxiosParamCreator: (configuration?: Confi
|
|
|
24
24
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
25
25
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
26
26
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
27
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
27
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
28
28
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
29
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, inboundWebhookCode, requestMethod, status, createdAt, updatedAt, processedAt</i>
|
|
29
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, inboundWebhookCode, requestMethod, status, workflowInstanceCode, createdAt, updatedAt, processedAt</i>
|
|
30
30
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
31
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
31
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
32
32
|
* @param {*} [options] Override http request option.
|
|
33
33
|
* @throws {RequiredError}
|
|
34
34
|
*/
|
|
@@ -45,11 +45,11 @@ export declare const WebhookRequestsApiFp: (configuration?: Configuration) => {
|
|
|
45
45
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
46
46
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
47
47
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
48
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
48
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
49
49
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
50
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, inboundWebhookCode, requestMethod, status, createdAt, updatedAt, processedAt</i>
|
|
50
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, inboundWebhookCode, requestMethod, status, workflowInstanceCode, createdAt, updatedAt, processedAt</i>
|
|
51
51
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
52
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
52
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
53
53
|
* @param {*} [options] Override http request option.
|
|
54
54
|
* @throws {RequiredError}
|
|
55
55
|
*/
|
|
@@ -66,11 +66,11 @@ export declare const WebhookRequestsApiFactory: (configuration?: Configuration,
|
|
|
66
66
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
67
67
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
68
68
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
69
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
69
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
70
70
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
71
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, inboundWebhookCode, requestMethod, status, createdAt, updatedAt, processedAt</i>
|
|
71
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, inboundWebhookCode, requestMethod, status, workflowInstanceCode, createdAt, updatedAt, processedAt</i>
|
|
72
72
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
73
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
73
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
74
74
|
* @param {*} [options] Override http request option.
|
|
75
75
|
* @throws {RequiredError}
|
|
76
76
|
*/
|
|
@@ -101,7 +101,7 @@ export interface WebhookRequestsApiListWebhookRequestsRequest {
|
|
|
101
101
|
*/
|
|
102
102
|
readonly pageToken?: string;
|
|
103
103
|
/**
|
|
104
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
104
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
105
105
|
* @type {string}
|
|
106
106
|
* @memberof WebhookRequestsApiListWebhookRequests
|
|
107
107
|
*/
|
|
@@ -113,7 +113,7 @@ export interface WebhookRequestsApiListWebhookRequestsRequest {
|
|
|
113
113
|
*/
|
|
114
114
|
readonly search?: string;
|
|
115
115
|
/**
|
|
116
|
-
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, inboundWebhookCode, requestMethod, status, createdAt, updatedAt, processedAt</i>
|
|
116
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, inboundWebhookCode, requestMethod, status, workflowInstanceCode, createdAt, updatedAt, processedAt</i>
|
|
117
117
|
* @type {string}
|
|
118
118
|
* @memberof WebhookRequestsApiListWebhookRequests
|
|
119
119
|
*/
|
|
@@ -125,7 +125,7 @@ export interface WebhookRequestsApiListWebhookRequestsRequest {
|
|
|
125
125
|
*/
|
|
126
126
|
readonly expand?: string;
|
|
127
127
|
/**
|
|
128
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
128
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
129
129
|
* @type {string}
|
|
130
130
|
* @memberof WebhookRequestsApiListWebhookRequests
|
|
131
131
|
*/
|
|
@@ -102,11 +102,11 @@ var WebhookRequestsApiAxiosParamCreator = function (configuration) {
|
|
|
102
102
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
103
103
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
104
104
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
105
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
105
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
106
106
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
107
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, inboundWebhookCode, requestMethod, status, createdAt, updatedAt, processedAt</i>
|
|
107
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, inboundWebhookCode, requestMethod, status, workflowInstanceCode, createdAt, updatedAt, processedAt</i>
|
|
108
108
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
109
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
109
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
110
110
|
* @param {*} [options] Override http request option.
|
|
111
111
|
* @throws {RequiredError}
|
|
112
112
|
*/
|
|
@@ -184,11 +184,11 @@ var WebhookRequestsApiFp = function (configuration) {
|
|
|
184
184
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
185
185
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
186
186
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
187
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
187
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
188
188
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
189
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, inboundWebhookCode, requestMethod, status, createdAt, updatedAt, processedAt</i>
|
|
189
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, inboundWebhookCode, requestMethod, status, workflowInstanceCode, createdAt, updatedAt, processedAt</i>
|
|
190
190
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
191
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
191
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
192
192
|
* @param {*} [options] Override http request option.
|
|
193
193
|
* @throws {RequiredError}
|
|
194
194
|
*/
|
|
@@ -221,11 +221,11 @@ var WebhookRequestsApiFactory = function (configuration, basePath, axios) {
|
|
|
221
221
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
222
222
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
223
223
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
224
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
224
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
225
225
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
226
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, inboundWebhookCode, requestMethod, status, createdAt, updatedAt, processedAt</i>
|
|
226
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, inboundWebhookCode, requestMethod, status, workflowInstanceCode, createdAt, updatedAt, processedAt</i>
|
|
227
227
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
228
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
228
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, inboundWebhookId, inboundWebhookCode, requestMethod, status, externalRef, workflowInstanceCode, contentType, createdAt, updatedAt, processedAt, createdBy, updatedBy</i>
|
|
229
229
|
* @param {*} [options] Override http request option.
|
|
230
230
|
* @throws {RequiredError}
|
|
231
231
|
*/
|
|
@@ -105,6 +105,12 @@ export interface WebhookRequestClass {
|
|
|
105
105
|
* @memberof WebhookRequestClass
|
|
106
106
|
*/
|
|
107
107
|
'errorMessage'?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Code of the workflow instance created when the webhook triggered a workflow
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof WebhookRequestClass
|
|
112
|
+
*/
|
|
113
|
+
'workflowInstanceCode'?: string;
|
|
108
114
|
/**
|
|
109
115
|
* Time at which the object was created.
|
|
110
116
|
* @type {string}
|
|
@@ -110,6 +110,12 @@ export interface WebhookRequestClass {
|
|
|
110
110
|
* @memberof WebhookRequestClass
|
|
111
111
|
*/
|
|
112
112
|
'errorMessage'?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Code of the workflow instance created when the webhook triggered a workflow
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof WebhookRequestClass
|
|
117
|
+
*/
|
|
118
|
+
'workflowInstanceCode'?: string;
|
|
113
119
|
/**
|
|
114
120
|
* Time at which the object was created.
|
|
115
121
|
* @type {string}
|