@nestbox-ai/doc-processing-api 1.0.61 → 1.0.62
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 +5 -0
- package/README.md +11 -2
- package/api.ts +431 -0
- package/dist/api.d.ts +228 -0
- package/dist/api.js +379 -1
- package/dist/esm/api.d.ts +228 -0
- package/dist/esm/api.js +375 -1
- package/docs/CreateWebhookInputDto.md +20 -0
- package/docs/PaginatedWebhooksDto.md +22 -0
- package/docs/UpdateWebhookBodyInputDto.md +20 -0
- package/docs/WebhookDto.md +26 -0
- package/docs/WebhooksApi.md +280 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -8,6 +8,7 @@ common.ts
|
|
|
8
8
|
configuration.ts
|
|
9
9
|
docs/ArtifactsApi.md
|
|
10
10
|
docs/BatchQueryDto.md
|
|
11
|
+
docs/CreateWebhookInputDto.md
|
|
11
12
|
docs/DocumentCreateResponseDto.md
|
|
12
13
|
docs/DocumentDto.md
|
|
13
14
|
docs/DocumentSourcesResponseDto.md
|
|
@@ -31,6 +32,7 @@ docs/PaginatedEvalsDto.md
|
|
|
31
32
|
docs/PaginatedJobsDto.md
|
|
32
33
|
docs/PaginatedProfilesDto.md
|
|
33
34
|
docs/PaginatedQueriesDto.md
|
|
35
|
+
docs/PaginatedWebhooksDto.md
|
|
34
36
|
docs/PaginationDto.md
|
|
35
37
|
docs/ProfileDto.md
|
|
36
38
|
docs/ProfilesApi.md
|
|
@@ -38,9 +40,12 @@ docs/QueriesApi.md
|
|
|
38
40
|
docs/QueryCreateResponseDto.md
|
|
39
41
|
docs/SourceItemDto.md
|
|
40
42
|
docs/SourcesApi.md
|
|
43
|
+
docs/UpdateWebhookBodyInputDto.md
|
|
41
44
|
docs/ValidationErrorDto.md
|
|
42
45
|
docs/ValidationIssueDto.md
|
|
43
46
|
docs/ValidationResultDto.md
|
|
47
|
+
docs/WebhookDto.md
|
|
48
|
+
docs/WebhooksApi.md
|
|
44
49
|
git_push.sh
|
|
45
50
|
index.ts
|
|
46
51
|
package.json
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @nestbox-ai/doc-processing-api@1.0.
|
|
1
|
+
## @nestbox-ai/doc-processing-api@1.0.62
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @nestbox-ai/doc-processing-api@1.0.
|
|
39
|
+
npm install @nestbox-ai/doc-processing-api@1.0.62 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -72,11 +72,17 @@ Class | Method | HTTP request | Description
|
|
|
72
72
|
*QueriesApi* | [**queriesControllerListQueries**](docs/QueriesApi.md#queriescontrollerlistqueries) | **GET** /query | List batch queries
|
|
73
73
|
*QueriesApi* | [**queriesControllerValidateQueryYaml**](docs/QueriesApi.md#queriescontrollervalidatequeryyaml) | **POST** /query/validate | Validate batch query YAML
|
|
74
74
|
*SourcesApi* | [**sourcesControllerGetDocumentSources**](docs/SourcesApi.md#sourcescontrollergetdocumentsources) | **GET** /documents/{documentId}/sources | Read document sources
|
|
75
|
+
*WebhooksApi* | [**webhooksControllerCreateWebhook**](docs/WebhooksApi.md#webhookscontrollercreatewebhook) | **POST** /webhooks | Create webhook
|
|
76
|
+
*WebhooksApi* | [**webhooksControllerDeleteWebhook**](docs/WebhooksApi.md#webhookscontrollerdeletewebhook) | **DELETE** /webhooks/{webhookId} | Delete webhook
|
|
77
|
+
*WebhooksApi* | [**webhooksControllerGetWebhook**](docs/WebhooksApi.md#webhookscontrollergetwebhook) | **GET** /webhooks/{webhookId} | Read webhook
|
|
78
|
+
*WebhooksApi* | [**webhooksControllerListWebhooks**](docs/WebhooksApi.md#webhookscontrollerlistwebhooks) | **GET** /webhooks | List webhooks
|
|
79
|
+
*WebhooksApi* | [**webhooksControllerUpdateWebhook**](docs/WebhooksApi.md#webhookscontrollerupdatewebhook) | **PATCH** /webhooks/{webhookId} | Update webhook
|
|
75
80
|
|
|
76
81
|
|
|
77
82
|
### Documentation For Models
|
|
78
83
|
|
|
79
84
|
- [BatchQueryDto](docs/BatchQueryDto.md)
|
|
85
|
+
- [CreateWebhookInputDto](docs/CreateWebhookInputDto.md)
|
|
80
86
|
- [DocumentCreateResponseDto](docs/DocumentCreateResponseDto.md)
|
|
81
87
|
- [DocumentDto](docs/DocumentDto.md)
|
|
82
88
|
- [DocumentSourcesResponseDto](docs/DocumentSourcesResponseDto.md)
|
|
@@ -96,13 +102,16 @@ Class | Method | HTTP request | Description
|
|
|
96
102
|
- [PaginatedJobsDto](docs/PaginatedJobsDto.md)
|
|
97
103
|
- [PaginatedProfilesDto](docs/PaginatedProfilesDto.md)
|
|
98
104
|
- [PaginatedQueriesDto](docs/PaginatedQueriesDto.md)
|
|
105
|
+
- [PaginatedWebhooksDto](docs/PaginatedWebhooksDto.md)
|
|
99
106
|
- [PaginationDto](docs/PaginationDto.md)
|
|
100
107
|
- [ProfileDto](docs/ProfileDto.md)
|
|
101
108
|
- [QueryCreateResponseDto](docs/QueryCreateResponseDto.md)
|
|
102
109
|
- [SourceItemDto](docs/SourceItemDto.md)
|
|
110
|
+
- [UpdateWebhookBodyInputDto](docs/UpdateWebhookBodyInputDto.md)
|
|
103
111
|
- [ValidationErrorDto](docs/ValidationErrorDto.md)
|
|
104
112
|
- [ValidationIssueDto](docs/ValidationIssueDto.md)
|
|
105
113
|
- [ValidationResultDto](docs/ValidationResultDto.md)
|
|
114
|
+
- [WebhookDto](docs/WebhookDto.md)
|
|
106
115
|
|
|
107
116
|
|
|
108
117
|
<a id="documentation-for-authorization"></a>
|
package/api.ts
CHANGED
|
@@ -67,6 +67,12 @@ export const BatchQueryDtoStatusEnum = {
|
|
|
67
67
|
|
|
68
68
|
export type BatchQueryDtoStatusEnum = typeof BatchQueryDtoStatusEnum[keyof typeof BatchQueryDtoStatusEnum];
|
|
69
69
|
|
|
70
|
+
export interface CreateWebhookInputDto {
|
|
71
|
+
/**
|
|
72
|
+
* Webhook target URL
|
|
73
|
+
*/
|
|
74
|
+
'url': string;
|
|
75
|
+
}
|
|
70
76
|
export interface DocumentCreateResponseDto {
|
|
71
77
|
/**
|
|
72
78
|
* Created document
|
|
@@ -507,6 +513,16 @@ export interface PaginatedQueriesDto {
|
|
|
507
513
|
*/
|
|
508
514
|
'pagination': PaginationDto;
|
|
509
515
|
}
|
|
516
|
+
export interface PaginatedWebhooksDto {
|
|
517
|
+
/**
|
|
518
|
+
* Webhook data
|
|
519
|
+
*/
|
|
520
|
+
'data': Array<WebhookDto>;
|
|
521
|
+
/**
|
|
522
|
+
* Pagination information
|
|
523
|
+
*/
|
|
524
|
+
'pagination': PaginationDto;
|
|
525
|
+
}
|
|
510
526
|
export interface PaginationDto {
|
|
511
527
|
/**
|
|
512
528
|
* Current page number
|
|
@@ -591,6 +607,12 @@ export interface SourceItemDto {
|
|
|
591
607
|
*/
|
|
592
608
|
'metadata'?: { [key: string]: any; };
|
|
593
609
|
}
|
|
610
|
+
export interface UpdateWebhookBodyInputDto {
|
|
611
|
+
/**
|
|
612
|
+
* Updated webhook target URL
|
|
613
|
+
*/
|
|
614
|
+
'url': string;
|
|
615
|
+
}
|
|
594
616
|
export interface ValidationErrorDto {
|
|
595
617
|
/**
|
|
596
618
|
* Error type
|
|
@@ -645,6 +667,24 @@ export interface ValidationResultDto {
|
|
|
645
667
|
*/
|
|
646
668
|
'normalized'?: { [key: string]: any; };
|
|
647
669
|
}
|
|
670
|
+
export interface WebhookDto {
|
|
671
|
+
/**
|
|
672
|
+
* Webhook ID
|
|
673
|
+
*/
|
|
674
|
+
'id': string;
|
|
675
|
+
/**
|
|
676
|
+
* Webhook target URL
|
|
677
|
+
*/
|
|
678
|
+
'url': string;
|
|
679
|
+
/**
|
|
680
|
+
* Webhook creation timestamp
|
|
681
|
+
*/
|
|
682
|
+
'createdAt': string;
|
|
683
|
+
/**
|
|
684
|
+
* Webhook last update timestamp
|
|
685
|
+
*/
|
|
686
|
+
'updatedAt': string;
|
|
687
|
+
}
|
|
648
688
|
|
|
649
689
|
/**
|
|
650
690
|
* ArtifactsApi - axios parameter creator
|
|
@@ -2537,3 +2577,394 @@ export class SourcesApi extends BaseAPI {
|
|
|
2537
2577
|
|
|
2538
2578
|
|
|
2539
2579
|
|
|
2580
|
+
/**
|
|
2581
|
+
* WebhooksApi - axios parameter creator
|
|
2582
|
+
*/
|
|
2583
|
+
export const WebhooksApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2584
|
+
return {
|
|
2585
|
+
/**
|
|
2586
|
+
*
|
|
2587
|
+
* @summary Create webhook
|
|
2588
|
+
* @param {CreateWebhookInputDto} createWebhookInputDto
|
|
2589
|
+
* @param {*} [options] Override http request option.
|
|
2590
|
+
* @throws {RequiredError}
|
|
2591
|
+
*/
|
|
2592
|
+
webhooksControllerCreateWebhook: async (createWebhookInputDto: CreateWebhookInputDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2593
|
+
// verify required parameter 'createWebhookInputDto' is not null or undefined
|
|
2594
|
+
assertParamExists('webhooksControllerCreateWebhook', 'createWebhookInputDto', createWebhookInputDto)
|
|
2595
|
+
const localVarPath = `/webhooks`;
|
|
2596
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2597
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2598
|
+
let baseOptions;
|
|
2599
|
+
if (configuration) {
|
|
2600
|
+
baseOptions = configuration.baseOptions;
|
|
2601
|
+
}
|
|
2602
|
+
|
|
2603
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2604
|
+
const localVarHeaderParameter = {} as any;
|
|
2605
|
+
const localVarQueryParameter = {} as any;
|
|
2606
|
+
|
|
2607
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2608
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2609
|
+
|
|
2610
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2611
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2612
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2613
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createWebhookInputDto, localVarRequestOptions, configuration)
|
|
2614
|
+
|
|
2615
|
+
return {
|
|
2616
|
+
url: toPathString(localVarUrlObj),
|
|
2617
|
+
options: localVarRequestOptions,
|
|
2618
|
+
};
|
|
2619
|
+
},
|
|
2620
|
+
/**
|
|
2621
|
+
*
|
|
2622
|
+
* @summary Delete webhook
|
|
2623
|
+
* @param {string} webhookId Webhook ID.
|
|
2624
|
+
* @param {*} [options] Override http request option.
|
|
2625
|
+
* @throws {RequiredError}
|
|
2626
|
+
*/
|
|
2627
|
+
webhooksControllerDeleteWebhook: async (webhookId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2628
|
+
// verify required parameter 'webhookId' is not null or undefined
|
|
2629
|
+
assertParamExists('webhooksControllerDeleteWebhook', 'webhookId', webhookId)
|
|
2630
|
+
const localVarPath = `/webhooks/{webhookId}`
|
|
2631
|
+
.replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId)));
|
|
2632
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2633
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2634
|
+
let baseOptions;
|
|
2635
|
+
if (configuration) {
|
|
2636
|
+
baseOptions = configuration.baseOptions;
|
|
2637
|
+
}
|
|
2638
|
+
|
|
2639
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
2640
|
+
const localVarHeaderParameter = {} as any;
|
|
2641
|
+
const localVarQueryParameter = {} as any;
|
|
2642
|
+
|
|
2643
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2644
|
+
|
|
2645
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2646
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2647
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2648
|
+
|
|
2649
|
+
return {
|
|
2650
|
+
url: toPathString(localVarUrlObj),
|
|
2651
|
+
options: localVarRequestOptions,
|
|
2652
|
+
};
|
|
2653
|
+
},
|
|
2654
|
+
/**
|
|
2655
|
+
*
|
|
2656
|
+
* @summary Read webhook
|
|
2657
|
+
* @param {string} webhookId Webhook ID.
|
|
2658
|
+
* @param {*} [options] Override http request option.
|
|
2659
|
+
* @throws {RequiredError}
|
|
2660
|
+
*/
|
|
2661
|
+
webhooksControllerGetWebhook: async (webhookId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2662
|
+
// verify required parameter 'webhookId' is not null or undefined
|
|
2663
|
+
assertParamExists('webhooksControllerGetWebhook', 'webhookId', webhookId)
|
|
2664
|
+
const localVarPath = `/webhooks/{webhookId}`
|
|
2665
|
+
.replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId)));
|
|
2666
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2667
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2668
|
+
let baseOptions;
|
|
2669
|
+
if (configuration) {
|
|
2670
|
+
baseOptions = configuration.baseOptions;
|
|
2671
|
+
}
|
|
2672
|
+
|
|
2673
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2674
|
+
const localVarHeaderParameter = {} as any;
|
|
2675
|
+
const localVarQueryParameter = {} as any;
|
|
2676
|
+
|
|
2677
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2678
|
+
|
|
2679
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2680
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2681
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2682
|
+
|
|
2683
|
+
return {
|
|
2684
|
+
url: toPathString(localVarUrlObj),
|
|
2685
|
+
options: localVarRequestOptions,
|
|
2686
|
+
};
|
|
2687
|
+
},
|
|
2688
|
+
/**
|
|
2689
|
+
*
|
|
2690
|
+
* @summary List webhooks
|
|
2691
|
+
* @param {number} [page] 1-based page number.
|
|
2692
|
+
* @param {number} [limit] Page size.
|
|
2693
|
+
* @param {*} [options] Override http request option.
|
|
2694
|
+
* @throws {RequiredError}
|
|
2695
|
+
*/
|
|
2696
|
+
webhooksControllerListWebhooks: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2697
|
+
const localVarPath = `/webhooks`;
|
|
2698
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2699
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2700
|
+
let baseOptions;
|
|
2701
|
+
if (configuration) {
|
|
2702
|
+
baseOptions = configuration.baseOptions;
|
|
2703
|
+
}
|
|
2704
|
+
|
|
2705
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2706
|
+
const localVarHeaderParameter = {} as any;
|
|
2707
|
+
const localVarQueryParameter = {} as any;
|
|
2708
|
+
|
|
2709
|
+
if (page !== undefined) {
|
|
2710
|
+
localVarQueryParameter['page'] = page;
|
|
2711
|
+
}
|
|
2712
|
+
|
|
2713
|
+
if (limit !== undefined) {
|
|
2714
|
+
localVarQueryParameter['limit'] = limit;
|
|
2715
|
+
}
|
|
2716
|
+
|
|
2717
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2718
|
+
|
|
2719
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2720
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2721
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2722
|
+
|
|
2723
|
+
return {
|
|
2724
|
+
url: toPathString(localVarUrlObj),
|
|
2725
|
+
options: localVarRequestOptions,
|
|
2726
|
+
};
|
|
2727
|
+
},
|
|
2728
|
+
/**
|
|
2729
|
+
*
|
|
2730
|
+
* @summary Update webhook
|
|
2731
|
+
* @param {string} webhookId Webhook ID.
|
|
2732
|
+
* @param {UpdateWebhookBodyInputDto} updateWebhookBodyInputDto
|
|
2733
|
+
* @param {*} [options] Override http request option.
|
|
2734
|
+
* @throws {RequiredError}
|
|
2735
|
+
*/
|
|
2736
|
+
webhooksControllerUpdateWebhook: async (webhookId: string, updateWebhookBodyInputDto: UpdateWebhookBodyInputDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2737
|
+
// verify required parameter 'webhookId' is not null or undefined
|
|
2738
|
+
assertParamExists('webhooksControllerUpdateWebhook', 'webhookId', webhookId)
|
|
2739
|
+
// verify required parameter 'updateWebhookBodyInputDto' is not null or undefined
|
|
2740
|
+
assertParamExists('webhooksControllerUpdateWebhook', 'updateWebhookBodyInputDto', updateWebhookBodyInputDto)
|
|
2741
|
+
const localVarPath = `/webhooks/{webhookId}`
|
|
2742
|
+
.replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId)));
|
|
2743
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2744
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2745
|
+
let baseOptions;
|
|
2746
|
+
if (configuration) {
|
|
2747
|
+
baseOptions = configuration.baseOptions;
|
|
2748
|
+
}
|
|
2749
|
+
|
|
2750
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
2751
|
+
const localVarHeaderParameter = {} as any;
|
|
2752
|
+
const localVarQueryParameter = {} as any;
|
|
2753
|
+
|
|
2754
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2755
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2756
|
+
|
|
2757
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2758
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2759
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2760
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateWebhookBodyInputDto, localVarRequestOptions, configuration)
|
|
2761
|
+
|
|
2762
|
+
return {
|
|
2763
|
+
url: toPathString(localVarUrlObj),
|
|
2764
|
+
options: localVarRequestOptions,
|
|
2765
|
+
};
|
|
2766
|
+
},
|
|
2767
|
+
}
|
|
2768
|
+
};
|
|
2769
|
+
|
|
2770
|
+
/**
|
|
2771
|
+
* WebhooksApi - functional programming interface
|
|
2772
|
+
*/
|
|
2773
|
+
export const WebhooksApiFp = function(configuration?: Configuration) {
|
|
2774
|
+
const localVarAxiosParamCreator = WebhooksApiAxiosParamCreator(configuration)
|
|
2775
|
+
return {
|
|
2776
|
+
/**
|
|
2777
|
+
*
|
|
2778
|
+
* @summary Create webhook
|
|
2779
|
+
* @param {CreateWebhookInputDto} createWebhookInputDto
|
|
2780
|
+
* @param {*} [options] Override http request option.
|
|
2781
|
+
* @throws {RequiredError}
|
|
2782
|
+
*/
|
|
2783
|
+
async webhooksControllerCreateWebhook(createWebhookInputDto: CreateWebhookInputDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WebhookDto>> {
|
|
2784
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.webhooksControllerCreateWebhook(createWebhookInputDto, options);
|
|
2785
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2786
|
+
const localVarOperationServerBasePath = operationServerMap['WebhooksApi.webhooksControllerCreateWebhook']?.[localVarOperationServerIndex]?.url;
|
|
2787
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2788
|
+
},
|
|
2789
|
+
/**
|
|
2790
|
+
*
|
|
2791
|
+
* @summary Delete webhook
|
|
2792
|
+
* @param {string} webhookId Webhook ID.
|
|
2793
|
+
* @param {*} [options] Override http request option.
|
|
2794
|
+
* @throws {RequiredError}
|
|
2795
|
+
*/
|
|
2796
|
+
async webhooksControllerDeleteWebhook(webhookId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WebhookDto>> {
|
|
2797
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.webhooksControllerDeleteWebhook(webhookId, options);
|
|
2798
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2799
|
+
const localVarOperationServerBasePath = operationServerMap['WebhooksApi.webhooksControllerDeleteWebhook']?.[localVarOperationServerIndex]?.url;
|
|
2800
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2801
|
+
},
|
|
2802
|
+
/**
|
|
2803
|
+
*
|
|
2804
|
+
* @summary Read webhook
|
|
2805
|
+
* @param {string} webhookId Webhook ID.
|
|
2806
|
+
* @param {*} [options] Override http request option.
|
|
2807
|
+
* @throws {RequiredError}
|
|
2808
|
+
*/
|
|
2809
|
+
async webhooksControllerGetWebhook(webhookId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WebhookDto>> {
|
|
2810
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.webhooksControllerGetWebhook(webhookId, options);
|
|
2811
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2812
|
+
const localVarOperationServerBasePath = operationServerMap['WebhooksApi.webhooksControllerGetWebhook']?.[localVarOperationServerIndex]?.url;
|
|
2813
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2814
|
+
},
|
|
2815
|
+
/**
|
|
2816
|
+
*
|
|
2817
|
+
* @summary List webhooks
|
|
2818
|
+
* @param {number} [page] 1-based page number.
|
|
2819
|
+
* @param {number} [limit] Page size.
|
|
2820
|
+
* @param {*} [options] Override http request option.
|
|
2821
|
+
* @throws {RequiredError}
|
|
2822
|
+
*/
|
|
2823
|
+
async webhooksControllerListWebhooks(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedWebhooksDto>> {
|
|
2824
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.webhooksControllerListWebhooks(page, limit, options);
|
|
2825
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2826
|
+
const localVarOperationServerBasePath = operationServerMap['WebhooksApi.webhooksControllerListWebhooks']?.[localVarOperationServerIndex]?.url;
|
|
2827
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2828
|
+
},
|
|
2829
|
+
/**
|
|
2830
|
+
*
|
|
2831
|
+
* @summary Update webhook
|
|
2832
|
+
* @param {string} webhookId Webhook ID.
|
|
2833
|
+
* @param {UpdateWebhookBodyInputDto} updateWebhookBodyInputDto
|
|
2834
|
+
* @param {*} [options] Override http request option.
|
|
2835
|
+
* @throws {RequiredError}
|
|
2836
|
+
*/
|
|
2837
|
+
async webhooksControllerUpdateWebhook(webhookId: string, updateWebhookBodyInputDto: UpdateWebhookBodyInputDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WebhookDto>> {
|
|
2838
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.webhooksControllerUpdateWebhook(webhookId, updateWebhookBodyInputDto, options);
|
|
2839
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2840
|
+
const localVarOperationServerBasePath = operationServerMap['WebhooksApi.webhooksControllerUpdateWebhook']?.[localVarOperationServerIndex]?.url;
|
|
2841
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2842
|
+
},
|
|
2843
|
+
}
|
|
2844
|
+
};
|
|
2845
|
+
|
|
2846
|
+
/**
|
|
2847
|
+
* WebhooksApi - factory interface
|
|
2848
|
+
*/
|
|
2849
|
+
export const WebhooksApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2850
|
+
const localVarFp = WebhooksApiFp(configuration)
|
|
2851
|
+
return {
|
|
2852
|
+
/**
|
|
2853
|
+
*
|
|
2854
|
+
* @summary Create webhook
|
|
2855
|
+
* @param {CreateWebhookInputDto} createWebhookInputDto
|
|
2856
|
+
* @param {*} [options] Override http request option.
|
|
2857
|
+
* @throws {RequiredError}
|
|
2858
|
+
*/
|
|
2859
|
+
webhooksControllerCreateWebhook(createWebhookInputDto: CreateWebhookInputDto, options?: RawAxiosRequestConfig): AxiosPromise<WebhookDto> {
|
|
2860
|
+
return localVarFp.webhooksControllerCreateWebhook(createWebhookInputDto, options).then((request) => request(axios, basePath));
|
|
2861
|
+
},
|
|
2862
|
+
/**
|
|
2863
|
+
*
|
|
2864
|
+
* @summary Delete webhook
|
|
2865
|
+
* @param {string} webhookId Webhook ID.
|
|
2866
|
+
* @param {*} [options] Override http request option.
|
|
2867
|
+
* @throws {RequiredError}
|
|
2868
|
+
*/
|
|
2869
|
+
webhooksControllerDeleteWebhook(webhookId: string, options?: RawAxiosRequestConfig): AxiosPromise<WebhookDto> {
|
|
2870
|
+
return localVarFp.webhooksControllerDeleteWebhook(webhookId, options).then((request) => request(axios, basePath));
|
|
2871
|
+
},
|
|
2872
|
+
/**
|
|
2873
|
+
*
|
|
2874
|
+
* @summary Read webhook
|
|
2875
|
+
* @param {string} webhookId Webhook ID.
|
|
2876
|
+
* @param {*} [options] Override http request option.
|
|
2877
|
+
* @throws {RequiredError}
|
|
2878
|
+
*/
|
|
2879
|
+
webhooksControllerGetWebhook(webhookId: string, options?: RawAxiosRequestConfig): AxiosPromise<WebhookDto> {
|
|
2880
|
+
return localVarFp.webhooksControllerGetWebhook(webhookId, options).then((request) => request(axios, basePath));
|
|
2881
|
+
},
|
|
2882
|
+
/**
|
|
2883
|
+
*
|
|
2884
|
+
* @summary List webhooks
|
|
2885
|
+
* @param {number} [page] 1-based page number.
|
|
2886
|
+
* @param {number} [limit] Page size.
|
|
2887
|
+
* @param {*} [options] Override http request option.
|
|
2888
|
+
* @throws {RequiredError}
|
|
2889
|
+
*/
|
|
2890
|
+
webhooksControllerListWebhooks(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<PaginatedWebhooksDto> {
|
|
2891
|
+
return localVarFp.webhooksControllerListWebhooks(page, limit, options).then((request) => request(axios, basePath));
|
|
2892
|
+
},
|
|
2893
|
+
/**
|
|
2894
|
+
*
|
|
2895
|
+
* @summary Update webhook
|
|
2896
|
+
* @param {string} webhookId Webhook ID.
|
|
2897
|
+
* @param {UpdateWebhookBodyInputDto} updateWebhookBodyInputDto
|
|
2898
|
+
* @param {*} [options] Override http request option.
|
|
2899
|
+
* @throws {RequiredError}
|
|
2900
|
+
*/
|
|
2901
|
+
webhooksControllerUpdateWebhook(webhookId: string, updateWebhookBodyInputDto: UpdateWebhookBodyInputDto, options?: RawAxiosRequestConfig): AxiosPromise<WebhookDto> {
|
|
2902
|
+
return localVarFp.webhooksControllerUpdateWebhook(webhookId, updateWebhookBodyInputDto, options).then((request) => request(axios, basePath));
|
|
2903
|
+
},
|
|
2904
|
+
};
|
|
2905
|
+
};
|
|
2906
|
+
|
|
2907
|
+
/**
|
|
2908
|
+
* WebhooksApi - object-oriented interface
|
|
2909
|
+
*/
|
|
2910
|
+
export class WebhooksApi extends BaseAPI {
|
|
2911
|
+
/**
|
|
2912
|
+
*
|
|
2913
|
+
* @summary Create webhook
|
|
2914
|
+
* @param {CreateWebhookInputDto} createWebhookInputDto
|
|
2915
|
+
* @param {*} [options] Override http request option.
|
|
2916
|
+
* @throws {RequiredError}
|
|
2917
|
+
*/
|
|
2918
|
+
public webhooksControllerCreateWebhook(createWebhookInputDto: CreateWebhookInputDto, options?: RawAxiosRequestConfig) {
|
|
2919
|
+
return WebhooksApiFp(this.configuration).webhooksControllerCreateWebhook(createWebhookInputDto, options).then((request) => request(this.axios, this.basePath));
|
|
2920
|
+
}
|
|
2921
|
+
|
|
2922
|
+
/**
|
|
2923
|
+
*
|
|
2924
|
+
* @summary Delete webhook
|
|
2925
|
+
* @param {string} webhookId Webhook ID.
|
|
2926
|
+
* @param {*} [options] Override http request option.
|
|
2927
|
+
* @throws {RequiredError}
|
|
2928
|
+
*/
|
|
2929
|
+
public webhooksControllerDeleteWebhook(webhookId: string, options?: RawAxiosRequestConfig) {
|
|
2930
|
+
return WebhooksApiFp(this.configuration).webhooksControllerDeleteWebhook(webhookId, options).then((request) => request(this.axios, this.basePath));
|
|
2931
|
+
}
|
|
2932
|
+
|
|
2933
|
+
/**
|
|
2934
|
+
*
|
|
2935
|
+
* @summary Read webhook
|
|
2936
|
+
* @param {string} webhookId Webhook ID.
|
|
2937
|
+
* @param {*} [options] Override http request option.
|
|
2938
|
+
* @throws {RequiredError}
|
|
2939
|
+
*/
|
|
2940
|
+
public webhooksControllerGetWebhook(webhookId: string, options?: RawAxiosRequestConfig) {
|
|
2941
|
+
return WebhooksApiFp(this.configuration).webhooksControllerGetWebhook(webhookId, options).then((request) => request(this.axios, this.basePath));
|
|
2942
|
+
}
|
|
2943
|
+
|
|
2944
|
+
/**
|
|
2945
|
+
*
|
|
2946
|
+
* @summary List webhooks
|
|
2947
|
+
* @param {number} [page] 1-based page number.
|
|
2948
|
+
* @param {number} [limit] Page size.
|
|
2949
|
+
* @param {*} [options] Override http request option.
|
|
2950
|
+
* @throws {RequiredError}
|
|
2951
|
+
*/
|
|
2952
|
+
public webhooksControllerListWebhooks(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
2953
|
+
return WebhooksApiFp(this.configuration).webhooksControllerListWebhooks(page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
2954
|
+
}
|
|
2955
|
+
|
|
2956
|
+
/**
|
|
2957
|
+
*
|
|
2958
|
+
* @summary Update webhook
|
|
2959
|
+
* @param {string} webhookId Webhook ID.
|
|
2960
|
+
* @param {UpdateWebhookBodyInputDto} updateWebhookBodyInputDto
|
|
2961
|
+
* @param {*} [options] Override http request option.
|
|
2962
|
+
* @throws {RequiredError}
|
|
2963
|
+
*/
|
|
2964
|
+
public webhooksControllerUpdateWebhook(webhookId: string, updateWebhookBodyInputDto: UpdateWebhookBodyInputDto, options?: RawAxiosRequestConfig) {
|
|
2965
|
+
return WebhooksApiFp(this.configuration).webhooksControllerUpdateWebhook(webhookId, updateWebhookBodyInputDto, options).then((request) => request(this.axios, this.basePath));
|
|
2966
|
+
}
|
|
2967
|
+
}
|
|
2968
|
+
|
|
2969
|
+
|
|
2970
|
+
|