@embedworkflow/sdk 1.1.0 → 1.2.0
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/.github/workflows/push-tag.yaml +34 -0
- package/.openapi-generator/FILES +87 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +2 -2
- package/api/accounts-api.ts +540 -0
- package/api/action-types-api.ts +697 -0
- package/api/actions-api.ts +786 -0
- package/api/app-connections-api.ts +556 -0
- package/api/available-apps-api.ts +239 -0
- package/api/data-fields-api.ts +404 -0
- package/api/events-api.ts +172 -0
- package/api/executions-api.ts +361 -0
- package/api/installed-apps-api.ts +410 -0
- package/api/payments-api.ts +172 -0
- package/api/triggers-api.ts +437 -0
- package/api/users-api.ts +531 -0
- package/api/workflows-api.ts +1302 -0
- package/api.ts +30 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +110 -0
- package/dist/api/accounts-api.d.ts +124 -3
- package/dist/api/accounts-api.js +182 -1
- package/dist/api/action-types-api.d.ts +16 -11
- package/dist/api/action-types-api.js +14 -7
- package/dist/api/actions-api.d.ts +6 -6
- package/dist/api/app-connections-api.d.ts +5 -5
- package/dist/api/available-apps-api.d.ts +2 -2
- package/dist/api/data-fields-api.d.ts +46 -2
- package/dist/api/data-fields-api.js +68 -0
- package/dist/api/events-api.d.ts +1 -1
- package/dist/api/executions-api.d.ts +3 -3
- package/dist/api/installed-apps-api.d.ts +4 -4
- package/dist/api/payments-api.d.ts +1 -1
- package/dist/api/triggers-api.d.ts +14 -14
- package/dist/api/triggers-api.js +12 -12
- package/dist/api/users-api.d.ts +14 -9
- package/dist/api/users-api.js +14 -7
- package/dist/api/workflows-api.d.ts +96 -15
- package/dist/api/workflows-api.js +125 -8
- package/dist/common.d.ts +1 -1
- package/dist/esm/api/accounts-api.d.ts +124 -3
- package/dist/esm/api/accounts-api.js +181 -0
- package/dist/esm/api/action-types-api.d.ts +16 -11
- package/dist/esm/api/action-types-api.js +14 -7
- package/dist/esm/api/actions-api.d.ts +6 -6
- package/dist/esm/api/app-connections-api.d.ts +5 -5
- package/dist/esm/api/available-apps-api.d.ts +2 -2
- package/dist/esm/api/data-fields-api.d.ts +46 -2
- package/dist/esm/api/data-fields-api.js +69 -1
- package/dist/esm/api/events-api.d.ts +1 -1
- package/dist/esm/api/executions-api.d.ts +3 -3
- package/dist/esm/api/installed-apps-api.d.ts +4 -4
- package/dist/esm/api/payments-api.d.ts +1 -1
- package/dist/esm/api/triggers-api.d.ts +14 -14
- package/dist/esm/api/triggers-api.js +12 -12
- package/dist/esm/api/users-api.d.ts +14 -9
- package/dist/esm/api/users-api.js +14 -7
- package/dist/esm/api/workflows-api.d.ts +96 -15
- package/dist/esm/api/workflows-api.js +124 -7
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/models/catch-hook-request.d.ts +25 -0
- package/dist/esm/models/create-action-type-request-form-draft-inner.d.ts +6 -0
- package/dist/esm/models/create-action-type-request.d.ts +12 -0
- package/dist/esm/models/create-workflow201-response.d.ts +58 -11
- package/dist/esm/models/create-workflow201-response.js +4 -0
- package/dist/esm/models/evaluate-expression-request.d.ts +32 -0
- package/dist/esm/models/evaluate-expression200-response.d.ts +24 -0
- package/dist/esm/models/export-configuration200-response-configuration.d.ts +16 -0
- package/dist/esm/models/export-configuration200-response.d.ts +25 -0
- package/dist/esm/models/index.d.ts +9 -0
- package/dist/esm/models/index.js +9 -0
- package/dist/esm/models/list-action-types200-response-collection-inner.d.ts +58 -0
- package/dist/esm/models/list-action-types200-response-collection-inner.js +9 -0
- package/dist/esm/models/list-data-fields200-response-collection-inner.d.ts +18 -0
- package/dist/esm/models/list-triggers200-response-collection-inner.d.ts +18 -0
- package/dist/esm/models/list-users200-response-collection-inner.d.ts +6 -6
- package/dist/esm/models/list-workflows200-response-collection-inner.d.ts +29 -5
- package/dist/esm/models/retrieve-account-usage200-response.d.ts +60 -0
- package/dist/esm/models/retrieve-account-usage200-response.js +14 -0
- package/dist/esm/models/retrieve-account200-response.d.ts +19 -1
- package/dist/esm/models/{api-v1-action-types-post-request-icon-draft.d.ts → update-account-request-action-type-categories-inner-icon.d.ts} +10 -10
- package/dist/esm/models/update-account-request-action-type-categories-inner-icon.js +14 -0
- package/dist/esm/models/update-account-request-action-type-categories-inner.d.ts +43 -0
- package/dist/esm/models/update-account-request-action-type-categories-inner.js +14 -0
- package/dist/esm/models/update-account-request.d.ts +13 -0
- package/dist/esm/models/update-action-type-request.d.ts +12 -0
- package/dist/esm/models/update-trigger-request.d.ts +30 -0
- package/dist/esm/models/update-trigger-request.js +14 -0
- package/dist/esm/models/update-workflow-request.d.ts +7 -1
- package/dist/esm/models/upsert-user-request.d.ts +6 -0
- package/dist/models/catch-hook-request.d.ts +25 -0
- package/dist/models/create-action-type-request-form-draft-inner.d.ts +6 -0
- package/dist/models/create-action-type-request.d.ts +12 -0
- package/dist/models/create-workflow201-response.d.ts +58 -11
- package/dist/models/create-workflow201-response.js +5 -1
- package/dist/models/evaluate-expression-request.d.ts +32 -0
- package/dist/models/evaluate-expression200-response.d.ts +24 -0
- package/dist/models/export-configuration200-response-configuration.d.ts +16 -0
- package/dist/models/export-configuration200-response.d.ts +25 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/dist/models/list-action-types200-response-collection-inner.d.ts +58 -0
- package/dist/models/list-action-types200-response-collection-inner.js +10 -1
- package/dist/models/list-data-fields200-response-collection-inner.d.ts +18 -0
- package/dist/models/list-triggers200-response-collection-inner.d.ts +18 -0
- package/dist/models/list-users200-response-collection-inner.d.ts +6 -6
- package/dist/models/list-workflows200-response-collection-inner.d.ts +29 -5
- package/dist/models/retrieve-account-usage200-response.d.ts +60 -0
- package/dist/models/retrieve-account-usage200-response.js +15 -0
- package/dist/models/retrieve-account200-response.d.ts +19 -1
- package/dist/{esm/models/retrieve-action-type404-response.d.ts → models/update-account-request-action-type-categories-inner-icon.d.ts} +12 -12
- package/dist/models/update-account-request-action-type-categories-inner-icon.js +15 -0
- package/dist/models/update-account-request-action-type-categories-inner.d.ts +43 -0
- package/dist/models/update-account-request-action-type-categories-inner.js +15 -0
- package/dist/models/update-account-request.d.ts +13 -0
- package/dist/models/update-action-type-request.d.ts +12 -0
- package/dist/models/update-trigger-request.d.ts +30 -0
- package/dist/models/update-trigger-request.js +15 -0
- package/dist/models/update-workflow-request.d.ts +7 -1
- package/dist/models/upsert-user-request.d.ts +6 -0
- package/git_push.sh +57 -0
- package/index.ts +111 -0
- package/models/catch-hook-request.ts +32 -0
- package/models/create-action-type-request-form-draft-inner.ts +88 -0
- package/{dist/models/api-v1-action-types-post-request-icon-draft.d.ts → models/create-action-type-request-icon-draft.ts} +12 -6
- package/{dist/models/api-v1-action-types-post-request.d.ts → models/create-action-type-request.ts} +49 -25
- package/{dist/models/retrieve-action-type404-response.d.ts → models/create-action-type422-response.ts} +13 -7
- package/{dist/esm/models/api-v1-app-connections-post-request.d.ts → models/create-app-connection-request.ts} +14 -8
- package/models/create-user-token-request.ts +38 -0
- package/models/create-user-token200-response.ts +30 -0
- package/models/create-workflow-request-template-draft-nodes-inner.ts +138 -0
- package/models/create-workflow-request-template-draft.ts +39 -0
- package/models/create-workflow-request.ts +75 -0
- package/{dist/esm/models/retrieve-workflow200-response.d.ts → models/create-workflow201-response.ts} +111 -60
- package/models/delete-action-type200-response.ts +30 -0
- package/{dist/esm/models/api-v1-action-types-post-request-form-draft-inner.js → models/delete-workflow200-response-one-of.ts} +18 -13
- package/models/delete-workflow200-response-one-of1.ts +30 -0
- package/models/delete-workflow200-response.ts +30 -0
- package/models/discard-workflow-draft-request.ts +36 -0
- package/models/evaluate-expression-request.ts +36 -0
- package/models/evaluate-expression200-response.ts +30 -0
- package/models/execute-workflow-request.ts +50 -0
- package/models/execute-workflow201-response.ts +126 -0
- package/models/export-configuration200-response-configuration.ts +23 -0
- package/models/export-configuration200-response.ts +33 -0
- package/models/import-configuration-request-schema.ts +24 -0
- package/models/import-configuration-request.ts +50 -0
- package/models/import-configuration201-response.ts +60 -0
- package/models/index.ts +70 -0
- package/models/install-app-request.ts +36 -0
- package/{dist/models/retrieve-installed-app200-response.d.ts → models/install-app201-response.ts} +28 -24
- package/models/list-action-types200-response-collection-inner.ts +325 -0
- package/models/list-action-types200-response-meta.ts +42 -0
- package/models/list-action-types200-response.ts +42 -0
- package/models/list-actions200-response-collection-inner.ts +150 -0
- package/models/list-actions200-response.ts +42 -0
- package/models/list-app-connections200-response-collection-inner.ts +72 -0
- package/models/list-app-connections200-response.ts +42 -0
- package/models/list-available-apps200-response-collection-inner.ts +72 -0
- package/models/list-available-apps200-response.ts +42 -0
- package/{dist/esm/models/clone-workflow201-response.js → models/list-data-fields-type-parameter.ts} +11 -5
- package/models/list-data-fields200-response-collection-inner.ts +108 -0
- package/models/list-data-fields200-response.ts +42 -0
- package/models/list-events200-response-collection-inner.ts +84 -0
- package/models/list-events200-response.ts +42 -0
- package/{dist/esm/models/retrieve-installed-app200-response.d.ts → models/list-installed-apps200-response-collection-inner.ts} +26 -28
- package/models/list-installed-apps200-response.ts +42 -0
- package/models/list-triggers200-response-collection-inner.ts +126 -0
- package/models/list-triggers200-response.ts +42 -0
- package/models/list-users200-response-collection-inner.ts +90 -0
- package/models/list-users200-response.ts +42 -0
- package/models/list-workflow-executions200-response.ts +42 -0
- package/models/list-workflow-versions200-response-collection-inner.ts +66 -0
- package/models/list-workflow-versions200-response.ts +42 -0
- package/{dist/models/retrieve-workflow200-response.d.ts → models/list-workflows200-response-collection-inner.ts} +76 -79
- package/models/list-workflows200-response.ts +42 -0
- package/models/publish-workflow-request.ts +30 -0
- package/models/retrieve-account-usage200-response.ts +66 -0
- package/models/retrieve-account200-response.ts +114 -0
- package/models/retrieve-available-app200-response.ts +78 -0
- package/models/retrieve-execution200-response.ts +138 -0
- package/models/retry-action-request.ts +38 -0
- package/models/stop-executions-request.ts +38 -0
- package/models/trigger-workflow-request.ts +54 -0
- package/models/update-account-request-action-type-categories-inner-icon.ts +42 -0
- package/models/update-account-request-action-type-categories-inner.ts +51 -0
- package/models/update-account-request-user-data-schema-inner.ts +54 -0
- package/models/update-account-request.ts +96 -0
- package/models/update-action-type-request.ts +48 -0
- package/models/update-installed-app-request.ts +30 -0
- package/models/update-trigger-request.ts +36 -0
- package/models/update-workflow-request.ts +93 -0
- package/models/upsert-user-request.ts +54 -0
- package/package.json +4 -6
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
- package/dist/esm/models/api-v1-action-types-post-request-form-draft-inner.d.ts +0 -75
- package/dist/esm/models/api-v1-action-types-post-request.d.ts +0 -105
- package/dist/esm/models/clone-workflow201-response.d.ts +0 -183
- package/dist/esm/models/retrieve-workflow200-response.js +0 -17
- package/dist/models/api-v1-action-types-post-request-form-draft-inner.d.ts +0 -75
- package/dist/models/api-v1-action-types-post-request-form-draft-inner.js +0 -28
- package/dist/models/api-v1-app-connections-post-request.d.ts +0 -42
- package/dist/models/clone-workflow201-response.d.ts +0 -183
- package/dist/models/clone-workflow201-response.js +0 -20
- package/dist/models/retrieve-workflow200-response.js +0 -20
- /package/dist/esm/models/{api-v1-action-types-post-request-icon-draft.js → catch-hook-request.js} +0 -0
- /package/dist/esm/models/{api-v1-action-types-post-request.js → evaluate-expression-request.js} +0 -0
- /package/dist/esm/models/{api-v1-app-connections-post-request.js → evaluate-expression200-response.js} +0 -0
- /package/dist/esm/models/{retrieve-action-type404-response.js → export-configuration200-response-configuration.js} +0 -0
- /package/dist/esm/models/{retrieve-installed-app200-response.js → export-configuration200-response.js} +0 -0
- /package/dist/models/{api-v1-action-types-post-request-icon-draft.js → catch-hook-request.js} +0 -0
- /package/dist/models/{api-v1-action-types-post-request.js → evaluate-expression-request.js} +0 -0
- /package/dist/models/{api-v1-app-connections-post-request.js → evaluate-expression200-response.js} +0 -0
- /package/dist/models/{retrieve-action-type404-response.js → export-configuration200-response-configuration.js} +0 -0
- /package/dist/models/{retrieve-installed-app200-response.js → export-configuration200-response.js} +0 -0
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* API V1
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import { CreateActionType422Response } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import { InstallApp201Response } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import { InstallAppRequest } from '../models';
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import { ListInstalledApps200Response } from '../models';
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import { UpdateInstalledAppRequest } from '../models';
|
|
34
|
+
/**
|
|
35
|
+
* InstalledAppsApi - axios parameter creator
|
|
36
|
+
* @export
|
|
37
|
+
*/
|
|
38
|
+
export const InstalledAppsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
39
|
+
return {
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @summary Install app
|
|
43
|
+
* @param {InstallAppRequest} [installAppRequest]
|
|
44
|
+
* @param {*} [options] Override http request option.
|
|
45
|
+
* @throws {RequiredError}
|
|
46
|
+
*/
|
|
47
|
+
installApp: async (installAppRequest?: InstallAppRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
48
|
+
const localVarPath = `/api/v1/installed_apps`;
|
|
49
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
51
|
+
let baseOptions;
|
|
52
|
+
if (configuration) {
|
|
53
|
+
baseOptions = configuration.baseOptions;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
57
|
+
const localVarHeaderParameter = {} as any;
|
|
58
|
+
const localVarQueryParameter = {} as any;
|
|
59
|
+
|
|
60
|
+
// authentication bearer required
|
|
61
|
+
// http bearer authentication required
|
|
62
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
67
|
+
|
|
68
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
69
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
70
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
71
|
+
localVarRequestOptions.data = serializeDataIfNeeded(installAppRequest, localVarRequestOptions, configuration)
|
|
72
|
+
|
|
73
|
+
return {
|
|
74
|
+
url: toPathString(localVarUrlObj),
|
|
75
|
+
options: localVarRequestOptions,
|
|
76
|
+
};
|
|
77
|
+
},
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @summary List installed apps
|
|
81
|
+
* @param {*} [options] Override http request option.
|
|
82
|
+
* @throws {RequiredError}
|
|
83
|
+
*/
|
|
84
|
+
listInstalledApps: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
85
|
+
const localVarPath = `/api/v1/installed_apps`;
|
|
86
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
87
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
88
|
+
let baseOptions;
|
|
89
|
+
if (configuration) {
|
|
90
|
+
baseOptions = configuration.baseOptions;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
94
|
+
const localVarHeaderParameter = {} as any;
|
|
95
|
+
const localVarQueryParameter = {} as any;
|
|
96
|
+
|
|
97
|
+
// authentication bearer required
|
|
98
|
+
// http bearer authentication required
|
|
99
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
104
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
105
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
106
|
+
|
|
107
|
+
return {
|
|
108
|
+
url: toPathString(localVarUrlObj),
|
|
109
|
+
options: localVarRequestOptions,
|
|
110
|
+
};
|
|
111
|
+
},
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @summary Retrieve installed app
|
|
115
|
+
* @param {string} appIdentifier App indentifier
|
|
116
|
+
* @param {*} [options] Override http request option.
|
|
117
|
+
* @throws {RequiredError}
|
|
118
|
+
*/
|
|
119
|
+
retrieveInstalledApp: async (appIdentifier: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
120
|
+
// verify required parameter 'appIdentifier' is not null or undefined
|
|
121
|
+
assertParamExists('retrieveInstalledApp', 'appIdentifier', appIdentifier)
|
|
122
|
+
const localVarPath = `/api/v1/installed_apps/{app_identifier}`
|
|
123
|
+
.replace(`{${"app_identifier"}}`, encodeURIComponent(String(appIdentifier)));
|
|
124
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
125
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
126
|
+
let baseOptions;
|
|
127
|
+
if (configuration) {
|
|
128
|
+
baseOptions = configuration.baseOptions;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
132
|
+
const localVarHeaderParameter = {} as any;
|
|
133
|
+
const localVarQueryParameter = {} as any;
|
|
134
|
+
|
|
135
|
+
// authentication bearer required
|
|
136
|
+
// http bearer authentication required
|
|
137
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
142
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
143
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
144
|
+
|
|
145
|
+
return {
|
|
146
|
+
url: toPathString(localVarUrlObj),
|
|
147
|
+
options: localVarRequestOptions,
|
|
148
|
+
};
|
|
149
|
+
},
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @summary Update installed app
|
|
153
|
+
* @param {string} appIdentifier App indentifier
|
|
154
|
+
* @param {UpdateInstalledAppRequest} [updateInstalledAppRequest]
|
|
155
|
+
* @param {*} [options] Override http request option.
|
|
156
|
+
* @throws {RequiredError}
|
|
157
|
+
*/
|
|
158
|
+
updateInstalledApp: async (appIdentifier: string, updateInstalledAppRequest?: UpdateInstalledAppRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
159
|
+
// verify required parameter 'appIdentifier' is not null or undefined
|
|
160
|
+
assertParamExists('updateInstalledApp', 'appIdentifier', appIdentifier)
|
|
161
|
+
const localVarPath = `/api/v1/installed_apps/{app_identifier}`
|
|
162
|
+
.replace(`{${"app_identifier"}}`, encodeURIComponent(String(appIdentifier)));
|
|
163
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
164
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
165
|
+
let baseOptions;
|
|
166
|
+
if (configuration) {
|
|
167
|
+
baseOptions = configuration.baseOptions;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
171
|
+
const localVarHeaderParameter = {} as any;
|
|
172
|
+
const localVarQueryParameter = {} as any;
|
|
173
|
+
|
|
174
|
+
// authentication bearer required
|
|
175
|
+
// http bearer authentication required
|
|
176
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
181
|
+
|
|
182
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
183
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
184
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
185
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateInstalledAppRequest, localVarRequestOptions, configuration)
|
|
186
|
+
|
|
187
|
+
return {
|
|
188
|
+
url: toPathString(localVarUrlObj),
|
|
189
|
+
options: localVarRequestOptions,
|
|
190
|
+
};
|
|
191
|
+
},
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* InstalledAppsApi - functional programming interface
|
|
197
|
+
* @export
|
|
198
|
+
*/
|
|
199
|
+
export const InstalledAppsApiFp = function(configuration?: Configuration) {
|
|
200
|
+
const localVarAxiosParamCreator = InstalledAppsApiAxiosParamCreator(configuration)
|
|
201
|
+
return {
|
|
202
|
+
/**
|
|
203
|
+
*
|
|
204
|
+
* @summary Install app
|
|
205
|
+
* @param {InstallAppRequest} [installAppRequest]
|
|
206
|
+
* @param {*} [options] Override http request option.
|
|
207
|
+
* @throws {RequiredError}
|
|
208
|
+
*/
|
|
209
|
+
async installApp(installAppRequest?: InstallAppRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InstallApp201Response>> {
|
|
210
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.installApp(installAppRequest, options);
|
|
211
|
+
const index = configuration?.serverIndex ?? 0;
|
|
212
|
+
const operationBasePath = operationServerMap['InstalledAppsApi.installApp']?.[index]?.url;
|
|
213
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
214
|
+
},
|
|
215
|
+
/**
|
|
216
|
+
*
|
|
217
|
+
* @summary List installed apps
|
|
218
|
+
* @param {*} [options] Override http request option.
|
|
219
|
+
* @throws {RequiredError}
|
|
220
|
+
*/
|
|
221
|
+
async listInstalledApps(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInstalledApps200Response>> {
|
|
222
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listInstalledApps(options);
|
|
223
|
+
const index = configuration?.serverIndex ?? 0;
|
|
224
|
+
const operationBasePath = operationServerMap['InstalledAppsApi.listInstalledApps']?.[index]?.url;
|
|
225
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
226
|
+
},
|
|
227
|
+
/**
|
|
228
|
+
*
|
|
229
|
+
* @summary Retrieve installed app
|
|
230
|
+
* @param {string} appIdentifier App indentifier
|
|
231
|
+
* @param {*} [options] Override http request option.
|
|
232
|
+
* @throws {RequiredError}
|
|
233
|
+
*/
|
|
234
|
+
async retrieveInstalledApp(appIdentifier: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InstallApp201Response>> {
|
|
235
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveInstalledApp(appIdentifier, options);
|
|
236
|
+
const index = configuration?.serverIndex ?? 0;
|
|
237
|
+
const operationBasePath = operationServerMap['InstalledAppsApi.retrieveInstalledApp']?.[index]?.url;
|
|
238
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
239
|
+
},
|
|
240
|
+
/**
|
|
241
|
+
*
|
|
242
|
+
* @summary Update installed app
|
|
243
|
+
* @param {string} appIdentifier App indentifier
|
|
244
|
+
* @param {UpdateInstalledAppRequest} [updateInstalledAppRequest]
|
|
245
|
+
* @param {*} [options] Override http request option.
|
|
246
|
+
* @throws {RequiredError}
|
|
247
|
+
*/
|
|
248
|
+
async updateInstalledApp(appIdentifier: string, updateInstalledAppRequest?: UpdateInstalledAppRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InstallApp201Response>> {
|
|
249
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateInstalledApp(appIdentifier, updateInstalledAppRequest, options);
|
|
250
|
+
const index = configuration?.serverIndex ?? 0;
|
|
251
|
+
const operationBasePath = operationServerMap['InstalledAppsApi.updateInstalledApp']?.[index]?.url;
|
|
252
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
253
|
+
},
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* InstalledAppsApi - factory interface
|
|
259
|
+
* @export
|
|
260
|
+
*/
|
|
261
|
+
export const InstalledAppsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
262
|
+
const localVarFp = InstalledAppsApiFp(configuration)
|
|
263
|
+
return {
|
|
264
|
+
/**
|
|
265
|
+
*
|
|
266
|
+
* @summary Install app
|
|
267
|
+
* @param {InstallAppRequest} [installAppRequest]
|
|
268
|
+
* @param {*} [options] Override http request option.
|
|
269
|
+
* @throws {RequiredError}
|
|
270
|
+
*/
|
|
271
|
+
installApp(installAppRequest?: InstallAppRequest, options?: any): AxiosPromise<InstallApp201Response> {
|
|
272
|
+
return localVarFp.installApp(installAppRequest, options).then((request) => request(axios, basePath));
|
|
273
|
+
},
|
|
274
|
+
/**
|
|
275
|
+
*
|
|
276
|
+
* @summary List installed apps
|
|
277
|
+
* @param {*} [options] Override http request option.
|
|
278
|
+
* @throws {RequiredError}
|
|
279
|
+
*/
|
|
280
|
+
listInstalledApps(options?: any): AxiosPromise<ListInstalledApps200Response> {
|
|
281
|
+
return localVarFp.listInstalledApps(options).then((request) => request(axios, basePath));
|
|
282
|
+
},
|
|
283
|
+
/**
|
|
284
|
+
*
|
|
285
|
+
* @summary Retrieve installed app
|
|
286
|
+
* @param {string} appIdentifier App indentifier
|
|
287
|
+
* @param {*} [options] Override http request option.
|
|
288
|
+
* @throws {RequiredError}
|
|
289
|
+
*/
|
|
290
|
+
retrieveInstalledApp(appIdentifier: string, options?: any): AxiosPromise<InstallApp201Response> {
|
|
291
|
+
return localVarFp.retrieveInstalledApp(appIdentifier, options).then((request) => request(axios, basePath));
|
|
292
|
+
},
|
|
293
|
+
/**
|
|
294
|
+
*
|
|
295
|
+
* @summary Update installed app
|
|
296
|
+
* @param {string} appIdentifier App indentifier
|
|
297
|
+
* @param {UpdateInstalledAppRequest} [updateInstalledAppRequest]
|
|
298
|
+
* @param {*} [options] Override http request option.
|
|
299
|
+
* @throws {RequiredError}
|
|
300
|
+
*/
|
|
301
|
+
updateInstalledApp(appIdentifier: string, updateInstalledAppRequest?: UpdateInstalledAppRequest, options?: any): AxiosPromise<InstallApp201Response> {
|
|
302
|
+
return localVarFp.updateInstalledApp(appIdentifier, updateInstalledAppRequest, options).then((request) => request(axios, basePath));
|
|
303
|
+
},
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* InstalledAppsApi - interface
|
|
309
|
+
* @export
|
|
310
|
+
* @interface InstalledAppsApi
|
|
311
|
+
*/
|
|
312
|
+
export interface InstalledAppsApiInterface {
|
|
313
|
+
/**
|
|
314
|
+
*
|
|
315
|
+
* @summary Install app
|
|
316
|
+
* @param {InstallAppRequest} [installAppRequest]
|
|
317
|
+
* @param {*} [options] Override http request option.
|
|
318
|
+
* @throws {RequiredError}
|
|
319
|
+
* @memberof InstalledAppsApiInterface
|
|
320
|
+
*/
|
|
321
|
+
installApp(installAppRequest?: InstallAppRequest, options?: RawAxiosRequestConfig): AxiosPromise<InstallApp201Response>;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
*
|
|
325
|
+
* @summary List installed apps
|
|
326
|
+
* @param {*} [options] Override http request option.
|
|
327
|
+
* @throws {RequiredError}
|
|
328
|
+
* @memberof InstalledAppsApiInterface
|
|
329
|
+
*/
|
|
330
|
+
listInstalledApps(options?: RawAxiosRequestConfig): AxiosPromise<ListInstalledApps200Response>;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
*
|
|
334
|
+
* @summary Retrieve installed app
|
|
335
|
+
* @param {string} appIdentifier App indentifier
|
|
336
|
+
* @param {*} [options] Override http request option.
|
|
337
|
+
* @throws {RequiredError}
|
|
338
|
+
* @memberof InstalledAppsApiInterface
|
|
339
|
+
*/
|
|
340
|
+
retrieveInstalledApp(appIdentifier: string, options?: RawAxiosRequestConfig): AxiosPromise<InstallApp201Response>;
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
*
|
|
344
|
+
* @summary Update installed app
|
|
345
|
+
* @param {string} appIdentifier App indentifier
|
|
346
|
+
* @param {UpdateInstalledAppRequest} [updateInstalledAppRequest]
|
|
347
|
+
* @param {*} [options] Override http request option.
|
|
348
|
+
* @throws {RequiredError}
|
|
349
|
+
* @memberof InstalledAppsApiInterface
|
|
350
|
+
*/
|
|
351
|
+
updateInstalledApp(appIdentifier: string, updateInstalledAppRequest?: UpdateInstalledAppRequest, options?: RawAxiosRequestConfig): AxiosPromise<InstallApp201Response>;
|
|
352
|
+
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* InstalledAppsApi - object-oriented interface
|
|
357
|
+
* @export
|
|
358
|
+
* @class InstalledAppsApi
|
|
359
|
+
* @extends {BaseAPI}
|
|
360
|
+
*/
|
|
361
|
+
export class InstalledAppsApi extends BaseAPI implements InstalledAppsApiInterface {
|
|
362
|
+
/**
|
|
363
|
+
*
|
|
364
|
+
* @summary Install app
|
|
365
|
+
* @param {InstallAppRequest} [installAppRequest]
|
|
366
|
+
* @param {*} [options] Override http request option.
|
|
367
|
+
* @throws {RequiredError}
|
|
368
|
+
* @memberof InstalledAppsApi
|
|
369
|
+
*/
|
|
370
|
+
public installApp(installAppRequest?: InstallAppRequest, options?: RawAxiosRequestConfig) {
|
|
371
|
+
return InstalledAppsApiFp(this.configuration).installApp(installAppRequest, options).then((request) => request(this.axios, this.basePath));
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
*
|
|
376
|
+
* @summary List installed apps
|
|
377
|
+
* @param {*} [options] Override http request option.
|
|
378
|
+
* @throws {RequiredError}
|
|
379
|
+
* @memberof InstalledAppsApi
|
|
380
|
+
*/
|
|
381
|
+
public listInstalledApps(options?: RawAxiosRequestConfig) {
|
|
382
|
+
return InstalledAppsApiFp(this.configuration).listInstalledApps(options).then((request) => request(this.axios, this.basePath));
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
*
|
|
387
|
+
* @summary Retrieve installed app
|
|
388
|
+
* @param {string} appIdentifier App indentifier
|
|
389
|
+
* @param {*} [options] Override http request option.
|
|
390
|
+
* @throws {RequiredError}
|
|
391
|
+
* @memberof InstalledAppsApi
|
|
392
|
+
*/
|
|
393
|
+
public retrieveInstalledApp(appIdentifier: string, options?: RawAxiosRequestConfig) {
|
|
394
|
+
return InstalledAppsApiFp(this.configuration).retrieveInstalledApp(appIdentifier, options).then((request) => request(this.axios, this.basePath));
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
*
|
|
399
|
+
* @summary Update installed app
|
|
400
|
+
* @param {string} appIdentifier App indentifier
|
|
401
|
+
* @param {UpdateInstalledAppRequest} [updateInstalledAppRequest]
|
|
402
|
+
* @param {*} [options] Override http request option.
|
|
403
|
+
* @throws {RequiredError}
|
|
404
|
+
* @memberof InstalledAppsApi
|
|
405
|
+
*/
|
|
406
|
+
public updateInstalledApp(appIdentifier: string, updateInstalledAppRequest?: UpdateInstalledAppRequest, options?: RawAxiosRequestConfig) {
|
|
407
|
+
return InstalledAppsApiFp(this.configuration).updateInstalledApp(appIdentifier, updateInstalledAppRequest, options).then((request) => request(this.axios, this.basePath));
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* API V1
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import { ListEvents200Response } from '../models';
|
|
26
|
+
/**
|
|
27
|
+
* PaymentsApi - axios parameter creator
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
export const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
31
|
+
return {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary List payments
|
|
35
|
+
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
36
|
+
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
37
|
+
* @param {number} [limit] Number of items to return (max 100)
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
listPayments: async (startingAfter?: string, endingBefore?: string, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42
|
+
const localVarPath = `/api/v1/payments`;
|
|
43
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
44
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
45
|
+
let baseOptions;
|
|
46
|
+
if (configuration) {
|
|
47
|
+
baseOptions = configuration.baseOptions;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
51
|
+
const localVarHeaderParameter = {} as any;
|
|
52
|
+
const localVarQueryParameter = {} as any;
|
|
53
|
+
|
|
54
|
+
// authentication bearer required
|
|
55
|
+
// http bearer authentication required
|
|
56
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
57
|
+
|
|
58
|
+
if (startingAfter !== undefined) {
|
|
59
|
+
localVarQueryParameter['starting_after'] = startingAfter;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
if (endingBefore !== undefined) {
|
|
63
|
+
localVarQueryParameter['ending_before'] = endingBefore;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if (limit !== undefined) {
|
|
67
|
+
localVarQueryParameter['limit'] = limit;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
73
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
74
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
75
|
+
|
|
76
|
+
return {
|
|
77
|
+
url: toPathString(localVarUrlObj),
|
|
78
|
+
options: localVarRequestOptions,
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* PaymentsApi - functional programming interface
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
89
|
+
const localVarAxiosParamCreator = PaymentsApiAxiosParamCreator(configuration)
|
|
90
|
+
return {
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @summary List payments
|
|
94
|
+
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
95
|
+
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
96
|
+
* @param {number} [limit] Number of items to return (max 100)
|
|
97
|
+
* @param {*} [options] Override http request option.
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
*/
|
|
100
|
+
async listPayments(startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListEvents200Response>> {
|
|
101
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPayments(startingAfter, endingBefore, limit, options);
|
|
102
|
+
const index = configuration?.serverIndex ?? 0;
|
|
103
|
+
const operationBasePath = operationServerMap['PaymentsApi.listPayments']?.[index]?.url;
|
|
104
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
105
|
+
},
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* PaymentsApi - factory interface
|
|
111
|
+
* @export
|
|
112
|
+
*/
|
|
113
|
+
export const PaymentsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
114
|
+
const localVarFp = PaymentsApiFp(configuration)
|
|
115
|
+
return {
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @summary List payments
|
|
119
|
+
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
120
|
+
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
121
|
+
* @param {number} [limit] Number of items to return (max 100)
|
|
122
|
+
* @param {*} [options] Override http request option.
|
|
123
|
+
* @throws {RequiredError}
|
|
124
|
+
*/
|
|
125
|
+
listPayments(startingAfter?: string, endingBefore?: string, limit?: number, options?: any): AxiosPromise<ListEvents200Response> {
|
|
126
|
+
return localVarFp.listPayments(startingAfter, endingBefore, limit, options).then((request) => request(axios, basePath));
|
|
127
|
+
},
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* PaymentsApi - interface
|
|
133
|
+
* @export
|
|
134
|
+
* @interface PaymentsApi
|
|
135
|
+
*/
|
|
136
|
+
export interface PaymentsApiInterface {
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @summary List payments
|
|
140
|
+
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
141
|
+
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
142
|
+
* @param {number} [limit] Number of items to return (max 100)
|
|
143
|
+
* @param {*} [options] Override http request option.
|
|
144
|
+
* @throws {RequiredError}
|
|
145
|
+
* @memberof PaymentsApiInterface
|
|
146
|
+
*/
|
|
147
|
+
listPayments(startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ListEvents200Response>;
|
|
148
|
+
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* PaymentsApi - object-oriented interface
|
|
153
|
+
* @export
|
|
154
|
+
* @class PaymentsApi
|
|
155
|
+
* @extends {BaseAPI}
|
|
156
|
+
*/
|
|
157
|
+
export class PaymentsApi extends BaseAPI implements PaymentsApiInterface {
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @summary List payments
|
|
161
|
+
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
162
|
+
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
163
|
+
* @param {number} [limit] Number of items to return (max 100)
|
|
164
|
+
* @param {*} [options] Override http request option.
|
|
165
|
+
* @throws {RequiredError}
|
|
166
|
+
* @memberof PaymentsApi
|
|
167
|
+
*/
|
|
168
|
+
public listPayments(startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig) {
|
|
169
|
+
return PaymentsApiFp(this.configuration).listPayments(startingAfter, endingBefore, limit, options).then((request) => request(this.axios, this.basePath));
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|