@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
|
@@ -35,6 +35,37 @@ const base_1 = require("../base");
|
|
|
35
35
|
*/
|
|
36
36
|
const DataFieldsApiAxiosParamCreator = function (configuration) {
|
|
37
37
|
return {
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @summary Evaluate expression
|
|
41
|
+
* @param {EvaluateExpressionRequest} [evaluateExpressionRequest]
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
evaluateExpression: (evaluateExpressionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
const localVarPath = `/api/v1/data_fields/evaluate`;
|
|
47
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
48
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
49
|
+
let baseOptions;
|
|
50
|
+
if (configuration) {
|
|
51
|
+
baseOptions = configuration.baseOptions;
|
|
52
|
+
}
|
|
53
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
54
|
+
const localVarHeaderParameter = {};
|
|
55
|
+
const localVarQueryParameter = {};
|
|
56
|
+
// authentication bearer required
|
|
57
|
+
// http bearer authentication required
|
|
58
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
59
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
60
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
61
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
62
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
63
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(evaluateExpressionRequest, localVarRequestOptions, configuration);
|
|
64
|
+
return {
|
|
65
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
66
|
+
options: localVarRequestOptions,
|
|
67
|
+
};
|
|
68
|
+
}),
|
|
38
69
|
/**
|
|
39
70
|
*
|
|
40
71
|
* @summary List data fields
|
|
@@ -145,6 +176,22 @@ exports.DataFieldsApiAxiosParamCreator = DataFieldsApiAxiosParamCreator;
|
|
|
145
176
|
const DataFieldsApiFp = function (configuration) {
|
|
146
177
|
const localVarAxiosParamCreator = (0, exports.DataFieldsApiAxiosParamCreator)(configuration);
|
|
147
178
|
return {
|
|
179
|
+
/**
|
|
180
|
+
*
|
|
181
|
+
* @summary Evaluate expression
|
|
182
|
+
* @param {EvaluateExpressionRequest} [evaluateExpressionRequest]
|
|
183
|
+
* @param {*} [options] Override http request option.
|
|
184
|
+
* @throws {RequiredError}
|
|
185
|
+
*/
|
|
186
|
+
evaluateExpression(evaluateExpressionRequest, options) {
|
|
187
|
+
var _a, _b, _c;
|
|
188
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
189
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.evaluateExpression(evaluateExpressionRequest, options);
|
|
190
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
191
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['DataFieldsApi.evaluateExpression']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
192
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
193
|
+
});
|
|
194
|
+
},
|
|
148
195
|
/**
|
|
149
196
|
*
|
|
150
197
|
* @summary List data fields
|
|
@@ -195,6 +242,16 @@ exports.DataFieldsApiFp = DataFieldsApiFp;
|
|
|
195
242
|
const DataFieldsApiFactory = function (configuration, basePath, axios) {
|
|
196
243
|
const localVarFp = (0, exports.DataFieldsApiFp)(configuration);
|
|
197
244
|
return {
|
|
245
|
+
/**
|
|
246
|
+
*
|
|
247
|
+
* @summary Evaluate expression
|
|
248
|
+
* @param {EvaluateExpressionRequest} [evaluateExpressionRequest]
|
|
249
|
+
* @param {*} [options] Override http request option.
|
|
250
|
+
* @throws {RequiredError}
|
|
251
|
+
*/
|
|
252
|
+
evaluateExpression(evaluateExpressionRequest, options) {
|
|
253
|
+
return localVarFp.evaluateExpression(evaluateExpressionRequest, options).then((request) => request(axios, basePath));
|
|
254
|
+
},
|
|
198
255
|
/**
|
|
199
256
|
*
|
|
200
257
|
* @summary List data fields
|
|
@@ -233,6 +290,17 @@ exports.DataFieldsApiFactory = DataFieldsApiFactory;
|
|
|
233
290
|
* @extends {BaseAPI}
|
|
234
291
|
*/
|
|
235
292
|
class DataFieldsApi extends base_1.BaseAPI {
|
|
293
|
+
/**
|
|
294
|
+
*
|
|
295
|
+
* @summary Evaluate expression
|
|
296
|
+
* @param {EvaluateExpressionRequest} [evaluateExpressionRequest]
|
|
297
|
+
* @param {*} [options] Override http request option.
|
|
298
|
+
* @throws {RequiredError}
|
|
299
|
+
* @memberof DataFieldsApi
|
|
300
|
+
*/
|
|
301
|
+
evaluateExpression(evaluateExpressionRequest, options) {
|
|
302
|
+
return (0, exports.DataFieldsApiFp)(this.configuration).evaluateExpression(evaluateExpressionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
303
|
+
}
|
|
236
304
|
/**
|
|
237
305
|
*
|
|
238
306
|
* @summary List data fields
|
package/dist/api/events-api.d.ts
CHANGED
|
@@ -96,5 +96,5 @@ export declare class EventsApi extends BaseAPI implements EventsApiInterface {
|
|
|
96
96
|
* @throws {RequiredError}
|
|
97
97
|
* @memberof EventsApi
|
|
98
98
|
*/
|
|
99
|
-
listEvents(startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEvents200Response, any>>;
|
|
99
|
+
listEvents(startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEvents200Response, any, {}>>;
|
|
100
100
|
}
|
|
@@ -173,7 +173,7 @@ export declare class ExecutionsApi extends BaseAPI implements ExecutionsApiInter
|
|
|
173
173
|
* @throws {RequiredError}
|
|
174
174
|
* @memberof ExecutionsApi
|
|
175
175
|
*/
|
|
176
|
-
listWorkflowExecutions(workflowId: string, startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListWorkflowExecutions200Response, any>>;
|
|
176
|
+
listWorkflowExecutions(workflowId: string, startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListWorkflowExecutions200Response, any, {}>>;
|
|
177
177
|
/**
|
|
178
178
|
*
|
|
179
179
|
* @summary Retrieve execution
|
|
@@ -183,7 +183,7 @@ export declare class ExecutionsApi extends BaseAPI implements ExecutionsApiInter
|
|
|
183
183
|
* @throws {RequiredError}
|
|
184
184
|
* @memberof ExecutionsApi
|
|
185
185
|
*/
|
|
186
|
-
retrieveExecution(id: string, idType?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RetrieveExecution200Response, any>>;
|
|
186
|
+
retrieveExecution(id: string, idType?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RetrieveExecution200Response, any, {}>>;
|
|
187
187
|
/**
|
|
188
188
|
*
|
|
189
189
|
* @summary Stop executions
|
|
@@ -192,5 +192,5 @@ export declare class ExecutionsApi extends BaseAPI implements ExecutionsApiInter
|
|
|
192
192
|
* @throws {RequiredError}
|
|
193
193
|
* @memberof ExecutionsApi
|
|
194
194
|
*/
|
|
195
|
-
stopExecutions(stopExecutionsRequest?: StopExecutionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
195
|
+
stopExecutions(stopExecutionsRequest?: StopExecutionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
|
|
196
196
|
}
|
|
@@ -188,7 +188,7 @@ export declare class InstalledAppsApi extends BaseAPI implements InstalledAppsAp
|
|
|
188
188
|
* @throws {RequiredError}
|
|
189
189
|
* @memberof InstalledAppsApi
|
|
190
190
|
*/
|
|
191
|
-
installApp(installAppRequest?: InstallAppRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InstallApp201Response, any>>;
|
|
191
|
+
installApp(installAppRequest?: InstallAppRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InstallApp201Response, any, {}>>;
|
|
192
192
|
/**
|
|
193
193
|
*
|
|
194
194
|
* @summary List installed apps
|
|
@@ -196,7 +196,7 @@ export declare class InstalledAppsApi extends BaseAPI implements InstalledAppsAp
|
|
|
196
196
|
* @throws {RequiredError}
|
|
197
197
|
* @memberof InstalledAppsApi
|
|
198
198
|
*/
|
|
199
|
-
listInstalledApps(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListInstalledApps200Response, any>>;
|
|
199
|
+
listInstalledApps(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListInstalledApps200Response, any, {}>>;
|
|
200
200
|
/**
|
|
201
201
|
*
|
|
202
202
|
* @summary Retrieve installed app
|
|
@@ -205,7 +205,7 @@ export declare class InstalledAppsApi extends BaseAPI implements InstalledAppsAp
|
|
|
205
205
|
* @throws {RequiredError}
|
|
206
206
|
* @memberof InstalledAppsApi
|
|
207
207
|
*/
|
|
208
|
-
retrieveInstalledApp(appIdentifier: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InstallApp201Response, any>>;
|
|
208
|
+
retrieveInstalledApp(appIdentifier: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InstallApp201Response, any, {}>>;
|
|
209
209
|
/**
|
|
210
210
|
*
|
|
211
211
|
* @summary Update installed app
|
|
@@ -215,5 +215,5 @@ export declare class InstalledAppsApi extends BaseAPI implements InstalledAppsAp
|
|
|
215
215
|
* @throws {RequiredError}
|
|
216
216
|
* @memberof InstalledAppsApi
|
|
217
217
|
*/
|
|
218
|
-
updateInstalledApp(appIdentifier: string, updateInstalledAppRequest?: UpdateInstalledAppRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InstallApp201Response, any>>;
|
|
218
|
+
updateInstalledApp(appIdentifier: string, updateInstalledAppRequest?: UpdateInstalledAppRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InstallApp201Response, any, {}>>;
|
|
219
219
|
}
|
|
@@ -96,5 +96,5 @@ export declare class PaymentsApi extends BaseAPI implements PaymentsApiInterface
|
|
|
96
96
|
* @throws {RequiredError}
|
|
97
97
|
* @memberof PaymentsApi
|
|
98
98
|
*/
|
|
99
|
-
listPayments(startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEvents200Response, any>>;
|
|
99
|
+
listPayments(startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEvents200Response, any, {}>>;
|
|
100
100
|
}
|
|
@@ -15,7 +15,7 @@ import { RequestArgs, BaseAPI } from '../base';
|
|
|
15
15
|
import { DeleteActionType200Response } from '../models';
|
|
16
16
|
import { ListTriggers200Response } from '../models';
|
|
17
17
|
import { ListTriggers200ResponseCollectionInner } from '../models';
|
|
18
|
-
import {
|
|
18
|
+
import { UpdateTriggerRequest } from '../models';
|
|
19
19
|
/**
|
|
20
20
|
* TriggersApi - axios parameter creator
|
|
21
21
|
* @export
|
|
@@ -51,11 +51,11 @@ export declare const TriggersApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
51
51
|
*
|
|
52
52
|
* @summary Update trigger
|
|
53
53
|
* @param {string} id System-generated unique identifier
|
|
54
|
-
* @param {
|
|
54
|
+
* @param {UpdateTriggerRequest} [updateTriggerRequest]
|
|
55
55
|
* @param {*} [options] Override http request option.
|
|
56
56
|
* @throws {RequiredError}
|
|
57
57
|
*/
|
|
58
|
-
updateTrigger: (id: string,
|
|
58
|
+
updateTrigger: (id: string, updateTriggerRequest?: UpdateTriggerRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
59
59
|
};
|
|
60
60
|
/**
|
|
61
61
|
* TriggersApi - functional programming interface
|
|
@@ -92,11 +92,11 @@ export declare const TriggersApiFp: (configuration?: Configuration) => {
|
|
|
92
92
|
*
|
|
93
93
|
* @summary Update trigger
|
|
94
94
|
* @param {string} id System-generated unique identifier
|
|
95
|
-
* @param {
|
|
95
|
+
* @param {UpdateTriggerRequest} [updateTriggerRequest]
|
|
96
96
|
* @param {*} [options] Override http request option.
|
|
97
97
|
* @throws {RequiredError}
|
|
98
98
|
*/
|
|
99
|
-
updateTrigger(id: string,
|
|
99
|
+
updateTrigger(id: string, updateTriggerRequest?: UpdateTriggerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTriggers200ResponseCollectionInner>>;
|
|
100
100
|
};
|
|
101
101
|
/**
|
|
102
102
|
* TriggersApi - factory interface
|
|
@@ -133,11 +133,11 @@ export declare const TriggersApiFactory: (configuration?: Configuration, basePat
|
|
|
133
133
|
*
|
|
134
134
|
* @summary Update trigger
|
|
135
135
|
* @param {string} id System-generated unique identifier
|
|
136
|
-
* @param {
|
|
136
|
+
* @param {UpdateTriggerRequest} [updateTriggerRequest]
|
|
137
137
|
* @param {*} [options] Override http request option.
|
|
138
138
|
* @throws {RequiredError}
|
|
139
139
|
*/
|
|
140
|
-
updateTrigger(id: string,
|
|
140
|
+
updateTrigger(id: string, updateTriggerRequest?: UpdateTriggerRequest, options?: any): AxiosPromise<ListTriggers200ResponseCollectionInner>;
|
|
141
141
|
};
|
|
142
142
|
/**
|
|
143
143
|
* TriggersApi - interface
|
|
@@ -178,12 +178,12 @@ export interface TriggersApiInterface {
|
|
|
178
178
|
*
|
|
179
179
|
* @summary Update trigger
|
|
180
180
|
* @param {string} id System-generated unique identifier
|
|
181
|
-
* @param {
|
|
181
|
+
* @param {UpdateTriggerRequest} [updateTriggerRequest]
|
|
182
182
|
* @param {*} [options] Override http request option.
|
|
183
183
|
* @throws {RequiredError}
|
|
184
184
|
* @memberof TriggersApiInterface
|
|
185
185
|
*/
|
|
186
|
-
updateTrigger(id: string,
|
|
186
|
+
updateTrigger(id: string, updateTriggerRequest?: UpdateTriggerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListTriggers200ResponseCollectionInner>;
|
|
187
187
|
}
|
|
188
188
|
/**
|
|
189
189
|
* TriggersApi - object-oriented interface
|
|
@@ -200,7 +200,7 @@ export declare class TriggersApi extends BaseAPI implements TriggersApiInterface
|
|
|
200
200
|
* @throws {RequiredError}
|
|
201
201
|
* @memberof TriggersApi
|
|
202
202
|
*/
|
|
203
|
-
deleteTrigger(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteActionType200Response, any>>;
|
|
203
|
+
deleteTrigger(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteActionType200Response, any, {}>>;
|
|
204
204
|
/**
|
|
205
205
|
*
|
|
206
206
|
* @summary List triggers
|
|
@@ -211,7 +211,7 @@ export declare class TriggersApi extends BaseAPI implements TriggersApiInterface
|
|
|
211
211
|
* @throws {RequiredError}
|
|
212
212
|
* @memberof TriggersApi
|
|
213
213
|
*/
|
|
214
|
-
listTriggers(startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTriggers200Response, any>>;
|
|
214
|
+
listTriggers(startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTriggers200Response, any, {}>>;
|
|
215
215
|
/**
|
|
216
216
|
*
|
|
217
217
|
* @summary Retrieve trigger
|
|
@@ -220,15 +220,15 @@ export declare class TriggersApi extends BaseAPI implements TriggersApiInterface
|
|
|
220
220
|
* @throws {RequiredError}
|
|
221
221
|
* @memberof TriggersApi
|
|
222
222
|
*/
|
|
223
|
-
retrieveTrigger(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTriggers200ResponseCollectionInner, any>>;
|
|
223
|
+
retrieveTrigger(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTriggers200ResponseCollectionInner, any, {}>>;
|
|
224
224
|
/**
|
|
225
225
|
*
|
|
226
226
|
* @summary Update trigger
|
|
227
227
|
* @param {string} id System-generated unique identifier
|
|
228
|
-
* @param {
|
|
228
|
+
* @param {UpdateTriggerRequest} [updateTriggerRequest]
|
|
229
229
|
* @param {*} [options] Override http request option.
|
|
230
230
|
* @throws {RequiredError}
|
|
231
231
|
* @memberof TriggersApi
|
|
232
232
|
*/
|
|
233
|
-
updateTrigger(id: string,
|
|
233
|
+
updateTrigger(id: string, updateTriggerRequest?: UpdateTriggerRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTriggers200ResponseCollectionInner, any, {}>>;
|
|
234
234
|
}
|
package/dist/api/triggers-api.js
CHANGED
|
@@ -143,11 +143,11 @@ const TriggersApiAxiosParamCreator = function (configuration) {
|
|
|
143
143
|
*
|
|
144
144
|
* @summary Update trigger
|
|
145
145
|
* @param {string} id System-generated unique identifier
|
|
146
|
-
* @param {
|
|
146
|
+
* @param {UpdateTriggerRequest} [updateTriggerRequest]
|
|
147
147
|
* @param {*} [options] Override http request option.
|
|
148
148
|
* @throws {RequiredError}
|
|
149
149
|
*/
|
|
150
|
-
updateTrigger: (id,
|
|
150
|
+
updateTrigger: (id, updateTriggerRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
151
151
|
// verify required parameter 'id' is not null or undefined
|
|
152
152
|
(0, common_1.assertParamExists)('updateTrigger', 'id', id);
|
|
153
153
|
const localVarPath = `/api/v1/triggers/{id}`
|
|
@@ -168,7 +168,7 @@ const TriggersApiAxiosParamCreator = function (configuration) {
|
|
|
168
168
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
169
169
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
170
170
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
171
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
171
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateTriggerRequest, localVarRequestOptions, configuration);
|
|
172
172
|
return {
|
|
173
173
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
174
174
|
options: localVarRequestOptions,
|
|
@@ -238,14 +238,14 @@ const TriggersApiFp = function (configuration) {
|
|
|
238
238
|
*
|
|
239
239
|
* @summary Update trigger
|
|
240
240
|
* @param {string} id System-generated unique identifier
|
|
241
|
-
* @param {
|
|
241
|
+
* @param {UpdateTriggerRequest} [updateTriggerRequest]
|
|
242
242
|
* @param {*} [options] Override http request option.
|
|
243
243
|
* @throws {RequiredError}
|
|
244
244
|
*/
|
|
245
|
-
updateTrigger(id,
|
|
245
|
+
updateTrigger(id, updateTriggerRequest, options) {
|
|
246
246
|
var _a, _b, _c;
|
|
247
247
|
return __awaiter(this, void 0, void 0, function* () {
|
|
248
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateTrigger(id,
|
|
248
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateTrigger(id, updateTriggerRequest, options);
|
|
249
249
|
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
250
250
|
const operationBasePath = (_c = (_b = base_1.operationServerMap['TriggersApi.updateTrigger']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
251
251
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -297,12 +297,12 @@ const TriggersApiFactory = function (configuration, basePath, axios) {
|
|
|
297
297
|
*
|
|
298
298
|
* @summary Update trigger
|
|
299
299
|
* @param {string} id System-generated unique identifier
|
|
300
|
-
* @param {
|
|
300
|
+
* @param {UpdateTriggerRequest} [updateTriggerRequest]
|
|
301
301
|
* @param {*} [options] Override http request option.
|
|
302
302
|
* @throws {RequiredError}
|
|
303
303
|
*/
|
|
304
|
-
updateTrigger(id,
|
|
305
|
-
return localVarFp.updateTrigger(id,
|
|
304
|
+
updateTrigger(id, updateTriggerRequest, options) {
|
|
305
|
+
return localVarFp.updateTrigger(id, updateTriggerRequest, options).then((request) => request(axios, basePath));
|
|
306
306
|
},
|
|
307
307
|
};
|
|
308
308
|
};
|
|
@@ -353,13 +353,13 @@ class TriggersApi extends base_1.BaseAPI {
|
|
|
353
353
|
*
|
|
354
354
|
* @summary Update trigger
|
|
355
355
|
* @param {string} id System-generated unique identifier
|
|
356
|
-
* @param {
|
|
356
|
+
* @param {UpdateTriggerRequest} [updateTriggerRequest]
|
|
357
357
|
* @param {*} [options] Override http request option.
|
|
358
358
|
* @throws {RequiredError}
|
|
359
359
|
* @memberof TriggersApi
|
|
360
360
|
*/
|
|
361
|
-
updateTrigger(id,
|
|
362
|
-
return (0, exports.TriggersApiFp)(this.configuration).updateTrigger(id,
|
|
361
|
+
updateTrigger(id, updateTriggerRequest, options) {
|
|
362
|
+
return (0, exports.TriggersApiFp)(this.configuration).updateTrigger(id, updateTriggerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
exports.TriggersApi = TriggersApi;
|
package/dist/api/users-api.d.ts
CHANGED
|
@@ -44,10 +44,11 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
44
44
|
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
45
45
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
46
46
|
* @param {number} [limit] Number of items to return (max 100)
|
|
47
|
+
* @param {string} [search] Search users by key
|
|
47
48
|
* @param {*} [options] Override http request option.
|
|
48
49
|
* @throws {RequiredError}
|
|
49
50
|
*/
|
|
50
|
-
listUsers: (startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
51
|
+
listUsers: (startingAfter?: string, endingBefore?: string, limit?: number, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
51
52
|
/**
|
|
52
53
|
*
|
|
53
54
|
* @summary Retrieve user
|
|
@@ -93,10 +94,11 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
93
94
|
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
94
95
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
95
96
|
* @param {number} [limit] Number of items to return (max 100)
|
|
97
|
+
* @param {string} [search] Search users by key
|
|
96
98
|
* @param {*} [options] Override http request option.
|
|
97
99
|
* @throws {RequiredError}
|
|
98
100
|
*/
|
|
99
|
-
listUsers(startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListUsers200Response>>;
|
|
101
|
+
listUsers(startingAfter?: string, endingBefore?: string, limit?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListUsers200Response>>;
|
|
100
102
|
/**
|
|
101
103
|
*
|
|
102
104
|
* @summary Retrieve user
|
|
@@ -142,10 +144,11 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
|
|
|
142
144
|
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
143
145
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
144
146
|
* @param {number} [limit] Number of items to return (max 100)
|
|
147
|
+
* @param {string} [search] Search users by key
|
|
145
148
|
* @param {*} [options] Override http request option.
|
|
146
149
|
* @throws {RequiredError}
|
|
147
150
|
*/
|
|
148
|
-
listUsers(startingAfter?: string, endingBefore?: string, limit?: number, options?: any): AxiosPromise<ListUsers200Response>;
|
|
151
|
+
listUsers(startingAfter?: string, endingBefore?: string, limit?: number, search?: string, options?: any): AxiosPromise<ListUsers200Response>;
|
|
149
152
|
/**
|
|
150
153
|
*
|
|
151
154
|
* @summary Retrieve user
|
|
@@ -194,11 +197,12 @@ export interface UsersApiInterface {
|
|
|
194
197
|
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
195
198
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
196
199
|
* @param {number} [limit] Number of items to return (max 100)
|
|
200
|
+
* @param {string} [search] Search users by key
|
|
197
201
|
* @param {*} [options] Override http request option.
|
|
198
202
|
* @throws {RequiredError}
|
|
199
203
|
* @memberof UsersApiInterface
|
|
200
204
|
*/
|
|
201
|
-
listUsers(startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ListUsers200Response>;
|
|
205
|
+
listUsers(startingAfter?: string, endingBefore?: string, limit?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<ListUsers200Response>;
|
|
202
206
|
/**
|
|
203
207
|
*
|
|
204
208
|
* @summary Retrieve user
|
|
@@ -234,7 +238,7 @@ export declare class UsersApi extends BaseAPI implements UsersApiInterface {
|
|
|
234
238
|
* @throws {RequiredError}
|
|
235
239
|
* @memberof UsersApi
|
|
236
240
|
*/
|
|
237
|
-
createUserToken(createUserTokenRequest?: CreateUserTokenRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateUserToken200Response, any>>;
|
|
241
|
+
createUserToken(createUserTokenRequest?: CreateUserTokenRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateUserToken200Response, any, {}>>;
|
|
238
242
|
/**
|
|
239
243
|
*
|
|
240
244
|
* @summary Delete user
|
|
@@ -243,18 +247,19 @@ export declare class UsersApi extends BaseAPI implements UsersApiInterface {
|
|
|
243
247
|
* @throws {RequiredError}
|
|
244
248
|
* @memberof UsersApi
|
|
245
249
|
*/
|
|
246
|
-
deleteUser(key: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListUsers200ResponseCollectionInner, any>>;
|
|
250
|
+
deleteUser(key: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListUsers200ResponseCollectionInner, any, {}>>;
|
|
247
251
|
/**
|
|
248
252
|
*
|
|
249
253
|
* @summary List users
|
|
250
254
|
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
251
255
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
252
256
|
* @param {number} [limit] Number of items to return (max 100)
|
|
257
|
+
* @param {string} [search] Search users by key
|
|
253
258
|
* @param {*} [options] Override http request option.
|
|
254
259
|
* @throws {RequiredError}
|
|
255
260
|
* @memberof UsersApi
|
|
256
261
|
*/
|
|
257
|
-
listUsers(startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListUsers200Response, any>>;
|
|
262
|
+
listUsers(startingAfter?: string, endingBefore?: string, limit?: number, search?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListUsers200Response, any, {}>>;
|
|
258
263
|
/**
|
|
259
264
|
*
|
|
260
265
|
* @summary Retrieve user
|
|
@@ -263,7 +268,7 @@ export declare class UsersApi extends BaseAPI implements UsersApiInterface {
|
|
|
263
268
|
* @throws {RequiredError}
|
|
264
269
|
* @memberof UsersApi
|
|
265
270
|
*/
|
|
266
|
-
retrieveUser(key: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListUsers200ResponseCollectionInner, any>>;
|
|
271
|
+
retrieveUser(key: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListUsers200ResponseCollectionInner, any, {}>>;
|
|
267
272
|
/**
|
|
268
273
|
*
|
|
269
274
|
* @summary Upsert user
|
|
@@ -273,5 +278,5 @@ export declare class UsersApi extends BaseAPI implements UsersApiInterface {
|
|
|
273
278
|
* @throws {RequiredError}
|
|
274
279
|
* @memberof UsersApi
|
|
275
280
|
*/
|
|
276
|
-
upsertUser(key: string, upsertUserRequest?: UpsertUserRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListUsers200ResponseCollectionInner, any>>;
|
|
281
|
+
upsertUser(key: string, upsertUserRequest?: UpsertUserRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListUsers200ResponseCollectionInner, any, {}>>;
|
|
277
282
|
}
|
package/dist/api/users-api.js
CHANGED
|
@@ -104,10 +104,11 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
104
104
|
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
105
105
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
106
106
|
* @param {number} [limit] Number of items to return (max 100)
|
|
107
|
+
* @param {string} [search] Search users by key
|
|
107
108
|
* @param {*} [options] Override http request option.
|
|
108
109
|
* @throws {RequiredError}
|
|
109
110
|
*/
|
|
110
|
-
listUsers: (startingAfter, endingBefore, limit, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
111
|
+
listUsers: (startingAfter, endingBefore, limit, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
111
112
|
const localVarPath = `/api/v1/users`;
|
|
112
113
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
113
114
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -130,6 +131,9 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
130
131
|
if (limit !== undefined) {
|
|
131
132
|
localVarQueryParameter['limit'] = limit;
|
|
132
133
|
}
|
|
134
|
+
if (search !== undefined) {
|
|
135
|
+
localVarQueryParameter['search'] = search;
|
|
136
|
+
}
|
|
133
137
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
134
138
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
135
139
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -253,13 +257,14 @@ const UsersApiFp = function (configuration) {
|
|
|
253
257
|
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
254
258
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
255
259
|
* @param {number} [limit] Number of items to return (max 100)
|
|
260
|
+
* @param {string} [search] Search users by key
|
|
256
261
|
* @param {*} [options] Override http request option.
|
|
257
262
|
* @throws {RequiredError}
|
|
258
263
|
*/
|
|
259
|
-
listUsers(startingAfter, endingBefore, limit, options) {
|
|
264
|
+
listUsers(startingAfter, endingBefore, limit, search, options) {
|
|
260
265
|
var _a, _b, _c;
|
|
261
266
|
return __awaiter(this, void 0, void 0, function* () {
|
|
262
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUsers(startingAfter, endingBefore, limit, options);
|
|
267
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUsers(startingAfter, endingBefore, limit, search, options);
|
|
263
268
|
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
264
269
|
const operationBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.listUsers']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
265
270
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -334,11 +339,12 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
334
339
|
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
335
340
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
336
341
|
* @param {number} [limit] Number of items to return (max 100)
|
|
342
|
+
* @param {string} [search] Search users by key
|
|
337
343
|
* @param {*} [options] Override http request option.
|
|
338
344
|
* @throws {RequiredError}
|
|
339
345
|
*/
|
|
340
|
-
listUsers(startingAfter, endingBefore, limit, options) {
|
|
341
|
-
return localVarFp.listUsers(startingAfter, endingBefore, limit, options).then((request) => request(axios, basePath));
|
|
346
|
+
listUsers(startingAfter, endingBefore, limit, search, options) {
|
|
347
|
+
return localVarFp.listUsers(startingAfter, endingBefore, limit, search, options).then((request) => request(axios, basePath));
|
|
342
348
|
},
|
|
343
349
|
/**
|
|
344
350
|
*
|
|
@@ -399,12 +405,13 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
399
405
|
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
400
406
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
401
407
|
* @param {number} [limit] Number of items to return (max 100)
|
|
408
|
+
* @param {string} [search] Search users by key
|
|
402
409
|
* @param {*} [options] Override http request option.
|
|
403
410
|
* @throws {RequiredError}
|
|
404
411
|
* @memberof UsersApi
|
|
405
412
|
*/
|
|
406
|
-
listUsers(startingAfter, endingBefore, limit, options) {
|
|
407
|
-
return (0, exports.UsersApiFp)(this.configuration).listUsers(startingAfter, endingBefore, limit, options).then((request) => request(this.axios, this.basePath));
|
|
413
|
+
listUsers(startingAfter, endingBefore, limit, search, options) {
|
|
414
|
+
return (0, exports.UsersApiFp)(this.configuration).listUsers(startingAfter, endingBefore, limit, search, options).then((request) => request(this.axios, this.basePath));
|
|
408
415
|
}
|
|
409
416
|
/**
|
|
410
417
|
*
|