@emilgroup/accounting-sdk-node 1.1.0 → 1.3.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/.openapi-generator/FILES +52 -15
- package/README.md +2 -2
- package/api/health-api.ts +7 -7
- package/api/mailbox-api.ts +255 -0
- package/api/messages-api.ts +1100 -0
- package/api/users-api.ts +496 -0
- package/api/vbas-api.ts +592 -0
- package/api/vbus-api.ts +701 -0
- package/api/zip-codes-api.ts +443 -0
- package/api.ts +14 -6
- package/base.ts +2 -2
- package/common.ts +4 -4
- package/configuration.ts +2 -2
- package/dist/api/health-api.d.ts +6 -6
- package/dist/api/health-api.js +7 -7
- package/dist/api/mailbox-api.d.ts +142 -0
- package/dist/api/mailbox-api.js +315 -0
- package/dist/api/messages-api.d.ts +632 -0
- package/dist/api/messages-api.js +916 -0
- package/dist/api/users-api.d.ts +275 -0
- package/dist/api/users-api.js +512 -0
- package/dist/api/vbas-api.d.ts +337 -0
- package/dist/api/{financial-accounts-api.js → vbas-api.js} +161 -156
- package/dist/api/vbus-api.d.ts +395 -0
- package/dist/api/vbus-api.js +647 -0
- package/dist/api/zip-codes-api.d.ts +253 -0
- package/dist/api/{booking-processes-api.js → zip-codes-api.js} +166 -80
- package/dist/api.d.ts +8 -4
- package/dist/api.js +8 -4
- package/dist/base.d.ts +2 -2
- package/dist/base.js +2 -2
- package/dist/common.d.ts +4 -4
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/models/address-class.d.ts +48 -0
- package/dist/models/{get-financial-account-response-class.js → address-class.js} +2 -2
- package/dist/models/create-mailbox-request-dto.d.ts +36 -0
- package/dist/models/{create-booking-process-response-class.js → create-mailbox-request-dto.js} +2 -2
- package/dist/models/create-user-request-dto.d.ts +76 -0
- package/dist/models/{financial-account-class.js → create-user-request-dto.js} +10 -9
- package/dist/models/create-user-response-class.d.ts +25 -0
- package/dist/models/{financial-transaction-class.js → create-user-response-class.js} +2 -2
- package/dist/models/create-vba-request-dto.d.ts +41 -0
- package/dist/models/create-vba-request-dto.js +20 -0
- package/dist/models/create-vba-response-class.d.ts +24 -0
- package/dist/models/{create-financial-account-response-class.js → create-vba-response-class.js} +2 -2
- package/dist/models/create-vbu-request-dto.d.ts +41 -0
- package/dist/models/create-vbu-request-dto.js +20 -0
- package/dist/models/create-vbu-response-class.d.ts +24 -0
- package/dist/models/create-vbu-response-class.js +15 -0
- package/dist/models/create-vbuv-request-dto.d.ts +41 -0
- package/dist/models/create-vbuv-request-dto.js +20 -0
- package/dist/models/create-vbuv-response-class.d.ts +24 -0
- package/dist/models/create-vbuv-response-class.js +15 -0
- package/dist/models/get-request-message-response-class.d.ts +25 -0
- package/dist/models/get-request-message-response-class.js +15 -0
- package/dist/models/get-response-message-response-class.d.ts +25 -0
- package/dist/models/get-response-message-response-class.js +15 -0
- package/dist/models/get-user-response-class.d.ts +25 -0
- package/dist/models/get-user-response-class.js +15 -0
- package/dist/models/get-vba-response-class.d.ts +25 -0
- package/dist/models/get-vba-response-class.js +15 -0
- package/dist/models/get-vbu-response-class.d.ts +25 -0
- package/dist/models/get-vbu-response-class.js +15 -0
- package/dist/models/get-zip-code-response-class.d.ts +25 -0
- package/dist/models/get-zip-code-response-class.js +15 -0
- package/dist/models/index.d.ts +46 -13
- package/dist/models/index.js +46 -13
- package/dist/models/inline-response200.d.ts +2 -2
- package/dist/models/inline-response200.js +2 -2
- package/dist/models/inline-response503.d.ts +2 -2
- package/dist/models/inline-response503.js +2 -2
- package/dist/models/list-all-messages-response-class.d.ts +31 -0
- package/dist/models/list-all-messages-response-class.js +15 -0
- package/dist/models/list-requests-messages-response-class.d.ts +31 -0
- package/dist/models/list-requests-messages-response-class.js +15 -0
- package/dist/models/list-responses-messages-response-class.d.ts +31 -0
- package/dist/models/list-responses-messages-response-class.js +15 -0
- package/dist/models/list-users-response-class.d.ts +31 -0
- package/dist/models/list-users-response-class.js +15 -0
- package/dist/models/list-vbas-response-class.d.ts +31 -0
- package/dist/models/list-vbas-response-class.js +15 -0
- package/dist/models/list-vbus-response-class.d.ts +31 -0
- package/dist/models/list-vbus-response-class.js +15 -0
- package/dist/models/list-zip-codes-response-class.d.ts +31 -0
- package/dist/models/list-zip-codes-response-class.js +15 -0
- package/dist/models/message-class.d.ts +84 -0
- package/dist/models/message-class.js +15 -0
- package/dist/models/request-details-class.d.ts +48 -0
- package/dist/models/request-details-class.js +15 -0
- package/dist/models/request-message-class.d.ts +121 -0
- package/dist/models/request-message-class.js +15 -0
- package/dist/models/response-details-class.d.ts +42 -0
- package/dist/models/response-details-class.js +15 -0
- package/dist/models/response-message-class.d.ts +133 -0
- package/dist/models/response-message-class.js +15 -0
- package/dist/models/store-zip-codes-request-dto.d.ts +25 -0
- package/dist/models/store-zip-codes-request-dto.js +15 -0
- package/dist/models/store-zip-codes-response-class.d.ts +25 -0
- package/dist/models/store-zip-codes-response-class.js +15 -0
- package/dist/models/update-request-message-request-dto.d.ts +36 -0
- package/dist/models/update-request-message-request-dto.js +15 -0
- package/dist/models/update-request-message-response-class.d.ts +25 -0
- package/dist/models/update-request-message-response-class.js +15 -0
- package/dist/models/update-response-message-request-dto.d.ts +36 -0
- package/dist/models/update-response-message-request-dto.js +15 -0
- package/dist/models/update-response-message-response-class.d.ts +25 -0
- package/dist/models/update-response-message-response-class.js +15 -0
- package/dist/models/update-user-request-dto.d.ts +82 -0
- package/dist/models/{financial-transaction-data-dto.js → update-user-request-dto.js} +10 -6
- package/dist/models/update-user-response-class.d.ts +25 -0
- package/dist/models/update-user-response-class.js +15 -0
- package/dist/models/update-vba-request-dto.d.ts +30 -0
- package/dist/models/update-vba-request-dto.js +15 -0
- package/dist/models/update-vbu-request-dto.d.ts +30 -0
- package/dist/models/update-vbu-request-dto.js +15 -0
- package/dist/models/update-vbu-response-class.d.ts +25 -0
- package/dist/models/update-vbu-response-class.js +15 -0
- package/dist/models/user-class.d.ts +107 -0
- package/dist/models/user-class.js +20 -0
- package/dist/models/vba-class.d.ts +116 -0
- package/dist/models/vba-class.js +15 -0
- package/dist/models/vba-response-class.d.ts +48 -0
- package/dist/models/vba-response-class.js +15 -0
- package/dist/models/vbu-class.d.ts +115 -0
- package/dist/models/vbu-class.js +15 -0
- package/dist/models/vbu-response-class.d.ts +48 -0
- package/dist/models/vbu-response-class.js +15 -0
- package/dist/models/xlsx-zip-code-dto.d.ts +30 -0
- package/dist/models/xlsx-zip-code-dto.js +15 -0
- package/dist/models/zip-code-class.d.ts +60 -0
- package/dist/models/zip-code-class.js +15 -0
- package/index.ts +2 -2
- package/models/address-class.ts +54 -0
- package/models/create-mailbox-request-dto.ts +42 -0
- package/models/create-user-request-dto.ts +86 -0
- package/models/create-user-response-class.ts +31 -0
- package/models/create-vba-request-dto.ts +50 -0
- package/models/create-vba-response-class.ts +30 -0
- package/models/create-vbu-request-dto.ts +50 -0
- package/models/create-vbu-response-class.ts +30 -0
- package/models/create-vbuv-request-dto.ts +50 -0
- package/models/create-vbuv-response-class.ts +30 -0
- package/models/get-request-message-response-class.ts +31 -0
- package/models/get-response-message-response-class.ts +31 -0
- package/models/get-user-response-class.ts +31 -0
- package/models/get-vba-response-class.ts +31 -0
- package/models/get-vbu-response-class.ts +31 -0
- package/models/get-zip-code-response-class.ts +31 -0
- package/models/index.ts +46 -13
- package/models/inline-response200.ts +2 -2
- package/models/inline-response503.ts +2 -2
- package/models/list-all-messages-response-class.ts +37 -0
- package/models/list-requests-messages-response-class.ts +37 -0
- package/models/list-responses-messages-response-class.ts +37 -0
- package/models/list-users-response-class.ts +37 -0
- package/models/list-vbas-response-class.ts +37 -0
- package/models/list-vbus-response-class.ts +37 -0
- package/models/list-zip-codes-response-class.ts +37 -0
- package/models/message-class.ts +90 -0
- package/models/request-details-class.ts +54 -0
- package/models/request-message-class.ts +127 -0
- package/models/response-details-class.ts +48 -0
- package/models/response-message-class.ts +139 -0
- package/models/store-zip-codes-request-dto.ts +31 -0
- package/models/store-zip-codes-response-class.ts +31 -0
- package/models/update-request-message-request-dto.ts +42 -0
- package/models/update-request-message-response-class.ts +31 -0
- package/models/update-response-message-request-dto.ts +42 -0
- package/models/update-response-message-response-class.ts +31 -0
- package/models/update-user-request-dto.ts +92 -0
- package/models/update-user-response-class.ts +31 -0
- package/models/update-vba-request-dto.ts +36 -0
- package/models/update-vbu-request-dto.ts +36 -0
- package/models/update-vbu-response-class.ts +31 -0
- package/models/user-class.ts +116 -0
- package/models/vba-class.ts +122 -0
- package/models/vba-response-class.ts +54 -0
- package/models/vbu-class.ts +121 -0
- package/models/vbu-response-class.ts +54 -0
- package/models/xlsx-zip-code-dto.ts +36 -0
- package/models/zip-code-class.ts +66 -0
- package/package.json +1 -1
- package/api/booking-processes-api.ts +0 -357
- package/api/financial-accounts-api.ts +0 -577
- package/dist/api/booking-processes-api.d.ts +0 -207
- package/dist/api/financial-accounts-api.d.ts +0 -327
- package/dist/models/booking-entry-class.d.ts +0 -123
- package/dist/models/booking-entry-class.js +0 -34
- package/dist/models/booking-process-class.d.ts +0 -94
- package/dist/models/booking-process-class.js +0 -29
- package/dist/models/create-booking-entry-request-dto.d.ts +0 -99
- package/dist/models/create-booking-entry-request-dto.js +0 -34
- package/dist/models/create-booking-process-request-dto.d.ts +0 -64
- package/dist/models/create-booking-process-request-dto.js +0 -29
- package/dist/models/create-booking-process-response-class.d.ts +0 -25
- package/dist/models/create-financial-account-request-dto.d.ts +0 -62
- package/dist/models/create-financial-account-request-dto.js +0 -23
- package/dist/models/create-financial-account-response-class.d.ts +0 -25
- package/dist/models/financial-account-class.d.ts +0 -98
- package/dist/models/financial-transaction-class.d.ts +0 -108
- package/dist/models/financial-transaction-data-dto.d.ts +0 -71
- package/dist/models/get-financial-account-response-class.d.ts +0 -25
- package/dist/models/list-booking-process-response-class.d.ts +0 -31
- package/dist/models/list-booking-process-response-class.js +0 -15
- package/dist/models/list-financial-accounts-response-class.d.ts +0 -31
- package/dist/models/list-financial-accounts-response-class.js +0 -15
- package/models/booking-entry-class.ts +0 -133
- package/models/booking-process-class.ts +0 -104
- package/models/create-booking-entry-request-dto.ts +0 -109
- package/models/create-booking-process-request-dto.ts +0 -74
- package/models/create-booking-process-response-class.ts +0 -31
- package/models/create-financial-account-request-dto.ts +0 -71
- package/models/create-financial-account-response-class.ts +0 -31
- package/models/financial-account-class.ts +0 -107
- package/models/financial-transaction-class.ts +0 -114
- package/models/financial-transaction-data-dto.ts +0 -80
- package/models/get-financial-account-response-class.ts +0 -31
- package/models/list-booking-process-response-class.ts +0 -37
- package/models/list-financial-accounts-response-class.ts +0 -37
|
@@ -0,0 +1,1100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL GdvService
|
|
5
|
+
* The EMIL GdvService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { GetRequestMessageResponseClass } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { GetResponseMessageResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { ListAllMessagesResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { ListRequestsMessagesResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { ListResponsesMessagesResponseClass } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { UpdateRequestMessageRequestDto } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { UpdateRequestMessageResponseClass } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
import { UpdateResponseMessageRequestDto } from '../models';
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
import { UpdateResponseMessageResponseClass } from '../models';
|
|
41
|
+
// URLSearchParams not necessarily used
|
|
42
|
+
// @ts-ignore
|
|
43
|
+
import { URL, URLSearchParams } from 'url';
|
|
44
|
+
const FormData = require('form-data');
|
|
45
|
+
/**
|
|
46
|
+
* MessagesApi - axios parameter creator
|
|
47
|
+
* @export
|
|
48
|
+
*/
|
|
49
|
+
export const MessagesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
50
|
+
return {
|
|
51
|
+
/**
|
|
52
|
+
* Retrieves the details of the request message that was previously created. Supply the unique request message code that was returned when you created it and Emil Api will return the corresponding request message information.
|
|
53
|
+
* @summary Retrieve the request message
|
|
54
|
+
* @param {string} code Unique identifier for the object.
|
|
55
|
+
* @param {string} [authorization] Bearer Token
|
|
56
|
+
* @param {string} [expand]
|
|
57
|
+
* @param {*} [options] Override http request option.
|
|
58
|
+
* @throws {RequiredError}
|
|
59
|
+
*/
|
|
60
|
+
getRequestMessage: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
61
|
+
// verify required parameter 'code' is not null or undefined
|
|
62
|
+
assertParamExists('getRequestMessage', 'code', code)
|
|
63
|
+
const localVarPath = `/gdvservice/v1/messages/requests/{code}`
|
|
64
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
65
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
66
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
67
|
+
let baseOptions;
|
|
68
|
+
let baseAccessToken;
|
|
69
|
+
if (configuration) {
|
|
70
|
+
baseOptions = configuration.baseOptions;
|
|
71
|
+
baseAccessToken = configuration.accessToken;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
75
|
+
const localVarHeaderParameter = {} as any;
|
|
76
|
+
const localVarQueryParameter = {} as any;
|
|
77
|
+
|
|
78
|
+
// authentication bearer required
|
|
79
|
+
// http bearer authentication required
|
|
80
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
81
|
+
|
|
82
|
+
if (expand !== undefined) {
|
|
83
|
+
localVarQueryParameter['expand'] = expand;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
87
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
93
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
94
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
95
|
+
|
|
96
|
+
return {
|
|
97
|
+
url: toPathString(localVarUrlObj),
|
|
98
|
+
options: localVarRequestOptions,
|
|
99
|
+
};
|
|
100
|
+
},
|
|
101
|
+
/**
|
|
102
|
+
* Retrieves the details of the response message that was previously created. Supply the unique response message code that was returned when you created it and Emil Api will return the corresponding response message information.
|
|
103
|
+
* @summary Retrieve the response message
|
|
104
|
+
* @param {string} code Unique identifier for the object.
|
|
105
|
+
* @param {string} [authorization] Bearer Token
|
|
106
|
+
* @param {string} [expand]
|
|
107
|
+
* @param {*} [options] Override http request option.
|
|
108
|
+
* @throws {RequiredError}
|
|
109
|
+
*/
|
|
110
|
+
getResponseMessage: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
111
|
+
// verify required parameter 'code' is not null or undefined
|
|
112
|
+
assertParamExists('getResponseMessage', 'code', code)
|
|
113
|
+
const localVarPath = `/gdvservice/v1/messages/responses/{code}`
|
|
114
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
115
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
116
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
117
|
+
let baseOptions;
|
|
118
|
+
let baseAccessToken;
|
|
119
|
+
if (configuration) {
|
|
120
|
+
baseOptions = configuration.baseOptions;
|
|
121
|
+
baseAccessToken = configuration.accessToken;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
125
|
+
const localVarHeaderParameter = {} as any;
|
|
126
|
+
const localVarQueryParameter = {} as any;
|
|
127
|
+
|
|
128
|
+
// authentication bearer required
|
|
129
|
+
// http bearer authentication required
|
|
130
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
131
|
+
|
|
132
|
+
if (expand !== undefined) {
|
|
133
|
+
localVarQueryParameter['expand'] = expand;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
137
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
143
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
144
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
145
|
+
|
|
146
|
+
return {
|
|
147
|
+
url: toPathString(localVarUrlObj),
|
|
148
|
+
options: localVarRequestOptions,
|
|
149
|
+
};
|
|
150
|
+
},
|
|
151
|
+
/**
|
|
152
|
+
* Returns a list of messages you have previously created. The messages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
153
|
+
* @summary List messages
|
|
154
|
+
* @param {string} [authorization] Bearer Token
|
|
155
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
156
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
157
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
158
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
159
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
160
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
161
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
162
|
+
* @param {*} [options] Override http request option.
|
|
163
|
+
* @throws {RequiredError}
|
|
164
|
+
*/
|
|
165
|
+
listAllMessages: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
166
|
+
const localVarPath = `/gdvservice/v1/messages`;
|
|
167
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
168
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
169
|
+
let baseOptions;
|
|
170
|
+
let baseAccessToken;
|
|
171
|
+
if (configuration) {
|
|
172
|
+
baseOptions = configuration.baseOptions;
|
|
173
|
+
baseAccessToken = configuration.accessToken;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
177
|
+
const localVarHeaderParameter = {} as any;
|
|
178
|
+
const localVarQueryParameter = {} as any;
|
|
179
|
+
|
|
180
|
+
// authentication bearer required
|
|
181
|
+
// http bearer authentication required
|
|
182
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
183
|
+
|
|
184
|
+
if (pageSize !== undefined) {
|
|
185
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
if (pageToken !== undefined) {
|
|
189
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
if (filter !== undefined) {
|
|
193
|
+
localVarQueryParameter['filter'] = filter;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
if (search !== undefined) {
|
|
197
|
+
localVarQueryParameter['search'] = search;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
if (order !== undefined) {
|
|
201
|
+
localVarQueryParameter['order'] = order;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
if (expand !== undefined) {
|
|
205
|
+
localVarQueryParameter['expand'] = expand;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
if (filters !== undefined) {
|
|
209
|
+
localVarQueryParameter['filters'] = filters;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
213
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
219
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
220
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
221
|
+
|
|
222
|
+
return {
|
|
223
|
+
url: toPathString(localVarUrlObj),
|
|
224
|
+
options: localVarRequestOptions,
|
|
225
|
+
};
|
|
226
|
+
},
|
|
227
|
+
/**
|
|
228
|
+
* Returns a list of requests messages you have previously created. The requests messages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
229
|
+
* @summary List requests messages
|
|
230
|
+
* @param {string} [authorization] Bearer Token
|
|
231
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
232
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
233
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
234
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
235
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
236
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
237
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
238
|
+
* @param {*} [options] Override http request option.
|
|
239
|
+
* @throws {RequiredError}
|
|
240
|
+
*/
|
|
241
|
+
listRequestsMessages: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
242
|
+
const localVarPath = `/gdvservice/v1/messages/requests`;
|
|
243
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
244
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
245
|
+
let baseOptions;
|
|
246
|
+
let baseAccessToken;
|
|
247
|
+
if (configuration) {
|
|
248
|
+
baseOptions = configuration.baseOptions;
|
|
249
|
+
baseAccessToken = configuration.accessToken;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
253
|
+
const localVarHeaderParameter = {} as any;
|
|
254
|
+
const localVarQueryParameter = {} as any;
|
|
255
|
+
|
|
256
|
+
// authentication bearer required
|
|
257
|
+
// http bearer authentication required
|
|
258
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
259
|
+
|
|
260
|
+
if (pageSize !== undefined) {
|
|
261
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
if (pageToken !== undefined) {
|
|
265
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
if (filter !== undefined) {
|
|
269
|
+
localVarQueryParameter['filter'] = filter;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
if (search !== undefined) {
|
|
273
|
+
localVarQueryParameter['search'] = search;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
if (order !== undefined) {
|
|
277
|
+
localVarQueryParameter['order'] = order;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
if (expand !== undefined) {
|
|
281
|
+
localVarQueryParameter['expand'] = expand;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
if (filters !== undefined) {
|
|
285
|
+
localVarQueryParameter['filters'] = filters;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
289
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
295
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
296
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
297
|
+
|
|
298
|
+
return {
|
|
299
|
+
url: toPathString(localVarUrlObj),
|
|
300
|
+
options: localVarRequestOptions,
|
|
301
|
+
};
|
|
302
|
+
},
|
|
303
|
+
/**
|
|
304
|
+
* Returns a list of responses messages you have previously created. The responses messages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
305
|
+
* @summary List responses messages
|
|
306
|
+
* @param {string} [authorization] Bearer Token
|
|
307
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
308
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
309
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
310
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
311
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
312
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
313
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
314
|
+
* @param {*} [options] Override http request option.
|
|
315
|
+
* @throws {RequiredError}
|
|
316
|
+
*/
|
|
317
|
+
listResponsesMessages: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
318
|
+
const localVarPath = `/gdvservice/v1/messages/responses`;
|
|
319
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
320
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
321
|
+
let baseOptions;
|
|
322
|
+
let baseAccessToken;
|
|
323
|
+
if (configuration) {
|
|
324
|
+
baseOptions = configuration.baseOptions;
|
|
325
|
+
baseAccessToken = configuration.accessToken;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
329
|
+
const localVarHeaderParameter = {} as any;
|
|
330
|
+
const localVarQueryParameter = {} as any;
|
|
331
|
+
|
|
332
|
+
// authentication bearer required
|
|
333
|
+
// http bearer authentication required
|
|
334
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
335
|
+
|
|
336
|
+
if (pageSize !== undefined) {
|
|
337
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
if (pageToken !== undefined) {
|
|
341
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
if (filter !== undefined) {
|
|
345
|
+
localVarQueryParameter['filter'] = filter;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
if (search !== undefined) {
|
|
349
|
+
localVarQueryParameter['search'] = search;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
if (order !== undefined) {
|
|
353
|
+
localVarQueryParameter['order'] = order;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
if (expand !== undefined) {
|
|
357
|
+
localVarQueryParameter['expand'] = expand;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
if (filters !== undefined) {
|
|
361
|
+
localVarQueryParameter['filters'] = filters;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
365
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
371
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
372
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
373
|
+
|
|
374
|
+
return {
|
|
375
|
+
url: toPathString(localVarUrlObj),
|
|
376
|
+
options: localVarRequestOptions,
|
|
377
|
+
};
|
|
378
|
+
},
|
|
379
|
+
/**
|
|
380
|
+
* Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
381
|
+
* @summary Update the request message
|
|
382
|
+
* @param {string} code Unique identifier for the object.
|
|
383
|
+
* @param {UpdateRequestMessageRequestDto} updateRequestMessageRequestDto
|
|
384
|
+
* @param {string} [authorization] Bearer Token
|
|
385
|
+
* @param {*} [options] Override http request option.
|
|
386
|
+
* @throws {RequiredError}
|
|
387
|
+
*/
|
|
388
|
+
updateRequestMessage: async (code: string, updateRequestMessageRequestDto: UpdateRequestMessageRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
389
|
+
// verify required parameter 'code' is not null or undefined
|
|
390
|
+
assertParamExists('updateRequestMessage', 'code', code)
|
|
391
|
+
// verify required parameter 'updateRequestMessageRequestDto' is not null or undefined
|
|
392
|
+
assertParamExists('updateRequestMessage', 'updateRequestMessageRequestDto', updateRequestMessageRequestDto)
|
|
393
|
+
const localVarPath = `/gdvservice/v1/messages/requests/{code}`
|
|
394
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
395
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
396
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
397
|
+
let baseOptions;
|
|
398
|
+
let baseAccessToken;
|
|
399
|
+
if (configuration) {
|
|
400
|
+
baseOptions = configuration.baseOptions;
|
|
401
|
+
baseAccessToken = configuration.accessToken;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
405
|
+
const localVarHeaderParameter = {} as any;
|
|
406
|
+
const localVarQueryParameter = {} as any;
|
|
407
|
+
|
|
408
|
+
// authentication bearer required
|
|
409
|
+
// http bearer authentication required
|
|
410
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
411
|
+
|
|
412
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
413
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
419
|
+
|
|
420
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
421
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
422
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
423
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateRequestMessageRequestDto, localVarRequestOptions, configuration)
|
|
424
|
+
|
|
425
|
+
return {
|
|
426
|
+
url: toPathString(localVarUrlObj),
|
|
427
|
+
options: localVarRequestOptions,
|
|
428
|
+
};
|
|
429
|
+
},
|
|
430
|
+
/**
|
|
431
|
+
* Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
432
|
+
* @summary Update the request message
|
|
433
|
+
* @param {string} code Unique identifier for the object.
|
|
434
|
+
* @param {UpdateResponseMessageRequestDto} updateResponseMessageRequestDto
|
|
435
|
+
* @param {string} [authorization] Bearer Token
|
|
436
|
+
* @param {*} [options] Override http request option.
|
|
437
|
+
* @throws {RequiredError}
|
|
438
|
+
*/
|
|
439
|
+
updateResponseMessage: async (code: string, updateResponseMessageRequestDto: UpdateResponseMessageRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
440
|
+
// verify required parameter 'code' is not null or undefined
|
|
441
|
+
assertParamExists('updateResponseMessage', 'code', code)
|
|
442
|
+
// verify required parameter 'updateResponseMessageRequestDto' is not null or undefined
|
|
443
|
+
assertParamExists('updateResponseMessage', 'updateResponseMessageRequestDto', updateResponseMessageRequestDto)
|
|
444
|
+
const localVarPath = `/gdvservice/v1/messages/responses/{code}`
|
|
445
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
446
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
447
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
448
|
+
let baseOptions;
|
|
449
|
+
let baseAccessToken;
|
|
450
|
+
if (configuration) {
|
|
451
|
+
baseOptions = configuration.baseOptions;
|
|
452
|
+
baseAccessToken = configuration.accessToken;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
456
|
+
const localVarHeaderParameter = {} as any;
|
|
457
|
+
const localVarQueryParameter = {} as any;
|
|
458
|
+
|
|
459
|
+
// authentication bearer required
|
|
460
|
+
// http bearer authentication required
|
|
461
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
462
|
+
|
|
463
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
464
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
470
|
+
|
|
471
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
472
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
473
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
474
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateResponseMessageRequestDto, localVarRequestOptions, configuration)
|
|
475
|
+
|
|
476
|
+
return {
|
|
477
|
+
url: toPathString(localVarUrlObj),
|
|
478
|
+
options: localVarRequestOptions,
|
|
479
|
+
};
|
|
480
|
+
},
|
|
481
|
+
}
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* MessagesApi - functional programming interface
|
|
486
|
+
* @export
|
|
487
|
+
*/
|
|
488
|
+
export const MessagesApiFp = function(configuration?: Configuration) {
|
|
489
|
+
const localVarAxiosParamCreator = MessagesApiAxiosParamCreator(configuration)
|
|
490
|
+
return {
|
|
491
|
+
/**
|
|
492
|
+
* Retrieves the details of the request message that was previously created. Supply the unique request message code that was returned when you created it and Emil Api will return the corresponding request message information.
|
|
493
|
+
* @summary Retrieve the request message
|
|
494
|
+
* @param {string} code Unique identifier for the object.
|
|
495
|
+
* @param {string} [authorization] Bearer Token
|
|
496
|
+
* @param {string} [expand]
|
|
497
|
+
* @param {*} [options] Override http request option.
|
|
498
|
+
* @throws {RequiredError}
|
|
499
|
+
*/
|
|
500
|
+
async getRequestMessage(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRequestMessageResponseClass>> {
|
|
501
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRequestMessage(code, authorization, expand, options);
|
|
502
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
503
|
+
},
|
|
504
|
+
/**
|
|
505
|
+
* Retrieves the details of the response message that was previously created. Supply the unique response message code that was returned when you created it and Emil Api will return the corresponding response message information.
|
|
506
|
+
* @summary Retrieve the response message
|
|
507
|
+
* @param {string} code Unique identifier for the object.
|
|
508
|
+
* @param {string} [authorization] Bearer Token
|
|
509
|
+
* @param {string} [expand]
|
|
510
|
+
* @param {*} [options] Override http request option.
|
|
511
|
+
* @throws {RequiredError}
|
|
512
|
+
*/
|
|
513
|
+
async getResponseMessage(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetResponseMessageResponseClass>> {
|
|
514
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getResponseMessage(code, authorization, expand, options);
|
|
515
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
516
|
+
},
|
|
517
|
+
/**
|
|
518
|
+
* Returns a list of messages you have previously created. The messages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
519
|
+
* @summary List messages
|
|
520
|
+
* @param {string} [authorization] Bearer Token
|
|
521
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
522
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
523
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
524
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
525
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
526
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
527
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
528
|
+
* @param {*} [options] Override http request option.
|
|
529
|
+
* @throws {RequiredError}
|
|
530
|
+
*/
|
|
531
|
+
async listAllMessages(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAllMessagesResponseClass>> {
|
|
532
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listAllMessages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
533
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
534
|
+
},
|
|
535
|
+
/**
|
|
536
|
+
* Returns a list of requests messages you have previously created. The requests messages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
537
|
+
* @summary List requests messages
|
|
538
|
+
* @param {string} [authorization] Bearer Token
|
|
539
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
540
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
541
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
542
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
543
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
544
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
545
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
546
|
+
* @param {*} [options] Override http request option.
|
|
547
|
+
* @throws {RequiredError}
|
|
548
|
+
*/
|
|
549
|
+
async listRequestsMessages(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRequestsMessagesResponseClass>> {
|
|
550
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listRequestsMessages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
551
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
552
|
+
},
|
|
553
|
+
/**
|
|
554
|
+
* Returns a list of responses messages you have previously created. The responses messages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
555
|
+
* @summary List responses messages
|
|
556
|
+
* @param {string} [authorization] Bearer Token
|
|
557
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
558
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
559
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
560
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
561
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
562
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
563
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
564
|
+
* @param {*} [options] Override http request option.
|
|
565
|
+
* @throws {RequiredError}
|
|
566
|
+
*/
|
|
567
|
+
async listResponsesMessages(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListResponsesMessagesResponseClass>> {
|
|
568
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listResponsesMessages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
569
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
570
|
+
},
|
|
571
|
+
/**
|
|
572
|
+
* Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
573
|
+
* @summary Update the request message
|
|
574
|
+
* @param {string} code Unique identifier for the object.
|
|
575
|
+
* @param {UpdateRequestMessageRequestDto} updateRequestMessageRequestDto
|
|
576
|
+
* @param {string} [authorization] Bearer Token
|
|
577
|
+
* @param {*} [options] Override http request option.
|
|
578
|
+
* @throws {RequiredError}
|
|
579
|
+
*/
|
|
580
|
+
async updateRequestMessage(code: string, updateRequestMessageRequestDto: UpdateRequestMessageRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateRequestMessageResponseClass>> {
|
|
581
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateRequestMessage(code, updateRequestMessageRequestDto, authorization, options);
|
|
582
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
583
|
+
},
|
|
584
|
+
/**
|
|
585
|
+
* Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
586
|
+
* @summary Update the request message
|
|
587
|
+
* @param {string} code Unique identifier for the object.
|
|
588
|
+
* @param {UpdateResponseMessageRequestDto} updateResponseMessageRequestDto
|
|
589
|
+
* @param {string} [authorization] Bearer Token
|
|
590
|
+
* @param {*} [options] Override http request option.
|
|
591
|
+
* @throws {RequiredError}
|
|
592
|
+
*/
|
|
593
|
+
async updateResponseMessage(code: string, updateResponseMessageRequestDto: UpdateResponseMessageRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateResponseMessageResponseClass>> {
|
|
594
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateResponseMessage(code, updateResponseMessageRequestDto, authorization, options);
|
|
595
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
596
|
+
},
|
|
597
|
+
}
|
|
598
|
+
};
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* MessagesApi - factory interface
|
|
602
|
+
* @export
|
|
603
|
+
*/
|
|
604
|
+
export const MessagesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
605
|
+
const localVarFp = MessagesApiFp(configuration)
|
|
606
|
+
return {
|
|
607
|
+
/**
|
|
608
|
+
* Retrieves the details of the request message that was previously created. Supply the unique request message code that was returned when you created it and Emil Api will return the corresponding request message information.
|
|
609
|
+
* @summary Retrieve the request message
|
|
610
|
+
* @param {string} code Unique identifier for the object.
|
|
611
|
+
* @param {string} [authorization] Bearer Token
|
|
612
|
+
* @param {string} [expand]
|
|
613
|
+
* @param {*} [options] Override http request option.
|
|
614
|
+
* @throws {RequiredError}
|
|
615
|
+
*/
|
|
616
|
+
getRequestMessage(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetRequestMessageResponseClass> {
|
|
617
|
+
return localVarFp.getRequestMessage(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
618
|
+
},
|
|
619
|
+
/**
|
|
620
|
+
* Retrieves the details of the response message that was previously created. Supply the unique response message code that was returned when you created it and Emil Api will return the corresponding response message information.
|
|
621
|
+
* @summary Retrieve the response message
|
|
622
|
+
* @param {string} code Unique identifier for the object.
|
|
623
|
+
* @param {string} [authorization] Bearer Token
|
|
624
|
+
* @param {string} [expand]
|
|
625
|
+
* @param {*} [options] Override http request option.
|
|
626
|
+
* @throws {RequiredError}
|
|
627
|
+
*/
|
|
628
|
+
getResponseMessage(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetResponseMessageResponseClass> {
|
|
629
|
+
return localVarFp.getResponseMessage(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
630
|
+
},
|
|
631
|
+
/**
|
|
632
|
+
* Returns a list of messages you have previously created. The messages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
633
|
+
* @summary List messages
|
|
634
|
+
* @param {string} [authorization] Bearer Token
|
|
635
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
636
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
637
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
638
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
639
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
640
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
641
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
642
|
+
* @param {*} [options] Override http request option.
|
|
643
|
+
* @throws {RequiredError}
|
|
644
|
+
*/
|
|
645
|
+
listAllMessages(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListAllMessagesResponseClass> {
|
|
646
|
+
return localVarFp.listAllMessages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
647
|
+
},
|
|
648
|
+
/**
|
|
649
|
+
* Returns a list of requests messages you have previously created. The requests messages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
650
|
+
* @summary List requests messages
|
|
651
|
+
* @param {string} [authorization] Bearer Token
|
|
652
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
653
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
654
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
655
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
656
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
657
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
658
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
659
|
+
* @param {*} [options] Override http request option.
|
|
660
|
+
* @throws {RequiredError}
|
|
661
|
+
*/
|
|
662
|
+
listRequestsMessages(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListRequestsMessagesResponseClass> {
|
|
663
|
+
return localVarFp.listRequestsMessages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
664
|
+
},
|
|
665
|
+
/**
|
|
666
|
+
* Returns a list of responses messages you have previously created. The responses messages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
667
|
+
* @summary List responses messages
|
|
668
|
+
* @param {string} [authorization] Bearer Token
|
|
669
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
670
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
671
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
672
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
673
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
674
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
675
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
676
|
+
* @param {*} [options] Override http request option.
|
|
677
|
+
* @throws {RequiredError}
|
|
678
|
+
*/
|
|
679
|
+
listResponsesMessages(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListResponsesMessagesResponseClass> {
|
|
680
|
+
return localVarFp.listResponsesMessages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
681
|
+
},
|
|
682
|
+
/**
|
|
683
|
+
* Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
684
|
+
* @summary Update the request message
|
|
685
|
+
* @param {string} code Unique identifier for the object.
|
|
686
|
+
* @param {UpdateRequestMessageRequestDto} updateRequestMessageRequestDto
|
|
687
|
+
* @param {string} [authorization] Bearer Token
|
|
688
|
+
* @param {*} [options] Override http request option.
|
|
689
|
+
* @throws {RequiredError}
|
|
690
|
+
*/
|
|
691
|
+
updateRequestMessage(code: string, updateRequestMessageRequestDto: UpdateRequestMessageRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateRequestMessageResponseClass> {
|
|
692
|
+
return localVarFp.updateRequestMessage(code, updateRequestMessageRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
693
|
+
},
|
|
694
|
+
/**
|
|
695
|
+
* Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
696
|
+
* @summary Update the request message
|
|
697
|
+
* @param {string} code Unique identifier for the object.
|
|
698
|
+
* @param {UpdateResponseMessageRequestDto} updateResponseMessageRequestDto
|
|
699
|
+
* @param {string} [authorization] Bearer Token
|
|
700
|
+
* @param {*} [options] Override http request option.
|
|
701
|
+
* @throws {RequiredError}
|
|
702
|
+
*/
|
|
703
|
+
updateResponseMessage(code: string, updateResponseMessageRequestDto: UpdateResponseMessageRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateResponseMessageResponseClass> {
|
|
704
|
+
return localVarFp.updateResponseMessage(code, updateResponseMessageRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
705
|
+
},
|
|
706
|
+
};
|
|
707
|
+
};
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* Request parameters for getRequestMessage operation in MessagesApi.
|
|
711
|
+
* @export
|
|
712
|
+
* @interface MessagesApiGetRequestMessageRequest
|
|
713
|
+
*/
|
|
714
|
+
export interface MessagesApiGetRequestMessageRequest {
|
|
715
|
+
/**
|
|
716
|
+
* Unique identifier for the object.
|
|
717
|
+
* @type {string}
|
|
718
|
+
* @memberof MessagesApiGetRequestMessage
|
|
719
|
+
*/
|
|
720
|
+
readonly code: string
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* Bearer Token
|
|
724
|
+
* @type {string}
|
|
725
|
+
* @memberof MessagesApiGetRequestMessage
|
|
726
|
+
*/
|
|
727
|
+
readonly authorization?: string
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
*
|
|
731
|
+
* @type {string}
|
|
732
|
+
* @memberof MessagesApiGetRequestMessage
|
|
733
|
+
*/
|
|
734
|
+
readonly expand?: string
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* Request parameters for getResponseMessage operation in MessagesApi.
|
|
739
|
+
* @export
|
|
740
|
+
* @interface MessagesApiGetResponseMessageRequest
|
|
741
|
+
*/
|
|
742
|
+
export interface MessagesApiGetResponseMessageRequest {
|
|
743
|
+
/**
|
|
744
|
+
* Unique identifier for the object.
|
|
745
|
+
* @type {string}
|
|
746
|
+
* @memberof MessagesApiGetResponseMessage
|
|
747
|
+
*/
|
|
748
|
+
readonly code: string
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* Bearer Token
|
|
752
|
+
* @type {string}
|
|
753
|
+
* @memberof MessagesApiGetResponseMessage
|
|
754
|
+
*/
|
|
755
|
+
readonly authorization?: string
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
*
|
|
759
|
+
* @type {string}
|
|
760
|
+
* @memberof MessagesApiGetResponseMessage
|
|
761
|
+
*/
|
|
762
|
+
readonly expand?: string
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* Request parameters for listAllMessages operation in MessagesApi.
|
|
767
|
+
* @export
|
|
768
|
+
* @interface MessagesApiListAllMessagesRequest
|
|
769
|
+
*/
|
|
770
|
+
export interface MessagesApiListAllMessagesRequest {
|
|
771
|
+
/**
|
|
772
|
+
* Bearer Token
|
|
773
|
+
* @type {string}
|
|
774
|
+
* @memberof MessagesApiListAllMessages
|
|
775
|
+
*/
|
|
776
|
+
readonly authorization?: string
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
780
|
+
* @type {any}
|
|
781
|
+
* @memberof MessagesApiListAllMessages
|
|
782
|
+
*/
|
|
783
|
+
readonly pageSize?: any
|
|
784
|
+
|
|
785
|
+
/**
|
|
786
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
787
|
+
* @type {any}
|
|
788
|
+
* @memberof MessagesApiListAllMessages
|
|
789
|
+
*/
|
|
790
|
+
readonly pageToken?: any
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
794
|
+
* @type {any}
|
|
795
|
+
* @memberof MessagesApiListAllMessages
|
|
796
|
+
*/
|
|
797
|
+
readonly filter?: any
|
|
798
|
+
|
|
799
|
+
/**
|
|
800
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
801
|
+
* @type {any}
|
|
802
|
+
* @memberof MessagesApiListAllMessages
|
|
803
|
+
*/
|
|
804
|
+
readonly search?: any
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
808
|
+
* @type {any}
|
|
809
|
+
* @memberof MessagesApiListAllMessages
|
|
810
|
+
*/
|
|
811
|
+
readonly order?: any
|
|
812
|
+
|
|
813
|
+
/**
|
|
814
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
815
|
+
* @type {any}
|
|
816
|
+
* @memberof MessagesApiListAllMessages
|
|
817
|
+
*/
|
|
818
|
+
readonly expand?: any
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
822
|
+
* @type {any}
|
|
823
|
+
* @memberof MessagesApiListAllMessages
|
|
824
|
+
*/
|
|
825
|
+
readonly filters?: any
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
* Request parameters for listRequestsMessages operation in MessagesApi.
|
|
830
|
+
* @export
|
|
831
|
+
* @interface MessagesApiListRequestsMessagesRequest
|
|
832
|
+
*/
|
|
833
|
+
export interface MessagesApiListRequestsMessagesRequest {
|
|
834
|
+
/**
|
|
835
|
+
* Bearer Token
|
|
836
|
+
* @type {string}
|
|
837
|
+
* @memberof MessagesApiListRequestsMessages
|
|
838
|
+
*/
|
|
839
|
+
readonly authorization?: string
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
843
|
+
* @type {any}
|
|
844
|
+
* @memberof MessagesApiListRequestsMessages
|
|
845
|
+
*/
|
|
846
|
+
readonly pageSize?: any
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
850
|
+
* @type {any}
|
|
851
|
+
* @memberof MessagesApiListRequestsMessages
|
|
852
|
+
*/
|
|
853
|
+
readonly pageToken?: any
|
|
854
|
+
|
|
855
|
+
/**
|
|
856
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
857
|
+
* @type {any}
|
|
858
|
+
* @memberof MessagesApiListRequestsMessages
|
|
859
|
+
*/
|
|
860
|
+
readonly filter?: any
|
|
861
|
+
|
|
862
|
+
/**
|
|
863
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
864
|
+
* @type {any}
|
|
865
|
+
* @memberof MessagesApiListRequestsMessages
|
|
866
|
+
*/
|
|
867
|
+
readonly search?: any
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
871
|
+
* @type {any}
|
|
872
|
+
* @memberof MessagesApiListRequestsMessages
|
|
873
|
+
*/
|
|
874
|
+
readonly order?: any
|
|
875
|
+
|
|
876
|
+
/**
|
|
877
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
878
|
+
* @type {any}
|
|
879
|
+
* @memberof MessagesApiListRequestsMessages
|
|
880
|
+
*/
|
|
881
|
+
readonly expand?: any
|
|
882
|
+
|
|
883
|
+
/**
|
|
884
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
885
|
+
* @type {any}
|
|
886
|
+
* @memberof MessagesApiListRequestsMessages
|
|
887
|
+
*/
|
|
888
|
+
readonly filters?: any
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* Request parameters for listResponsesMessages operation in MessagesApi.
|
|
893
|
+
* @export
|
|
894
|
+
* @interface MessagesApiListResponsesMessagesRequest
|
|
895
|
+
*/
|
|
896
|
+
export interface MessagesApiListResponsesMessagesRequest {
|
|
897
|
+
/**
|
|
898
|
+
* Bearer Token
|
|
899
|
+
* @type {string}
|
|
900
|
+
* @memberof MessagesApiListResponsesMessages
|
|
901
|
+
*/
|
|
902
|
+
readonly authorization?: string
|
|
903
|
+
|
|
904
|
+
/**
|
|
905
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
906
|
+
* @type {any}
|
|
907
|
+
* @memberof MessagesApiListResponsesMessages
|
|
908
|
+
*/
|
|
909
|
+
readonly pageSize?: any
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
913
|
+
* @type {any}
|
|
914
|
+
* @memberof MessagesApiListResponsesMessages
|
|
915
|
+
*/
|
|
916
|
+
readonly pageToken?: any
|
|
917
|
+
|
|
918
|
+
/**
|
|
919
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
920
|
+
* @type {any}
|
|
921
|
+
* @memberof MessagesApiListResponsesMessages
|
|
922
|
+
*/
|
|
923
|
+
readonly filter?: any
|
|
924
|
+
|
|
925
|
+
/**
|
|
926
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
927
|
+
* @type {any}
|
|
928
|
+
* @memberof MessagesApiListResponsesMessages
|
|
929
|
+
*/
|
|
930
|
+
readonly search?: any
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
934
|
+
* @type {any}
|
|
935
|
+
* @memberof MessagesApiListResponsesMessages
|
|
936
|
+
*/
|
|
937
|
+
readonly order?: any
|
|
938
|
+
|
|
939
|
+
/**
|
|
940
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
941
|
+
* @type {any}
|
|
942
|
+
* @memberof MessagesApiListResponsesMessages
|
|
943
|
+
*/
|
|
944
|
+
readonly expand?: any
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
948
|
+
* @type {any}
|
|
949
|
+
* @memberof MessagesApiListResponsesMessages
|
|
950
|
+
*/
|
|
951
|
+
readonly filters?: any
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
/**
|
|
955
|
+
* Request parameters for updateRequestMessage operation in MessagesApi.
|
|
956
|
+
* @export
|
|
957
|
+
* @interface MessagesApiUpdateRequestMessageRequest
|
|
958
|
+
*/
|
|
959
|
+
export interface MessagesApiUpdateRequestMessageRequest {
|
|
960
|
+
/**
|
|
961
|
+
* Unique identifier for the object.
|
|
962
|
+
* @type {string}
|
|
963
|
+
* @memberof MessagesApiUpdateRequestMessage
|
|
964
|
+
*/
|
|
965
|
+
readonly code: string
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
*
|
|
969
|
+
* @type {UpdateRequestMessageRequestDto}
|
|
970
|
+
* @memberof MessagesApiUpdateRequestMessage
|
|
971
|
+
*/
|
|
972
|
+
readonly updateRequestMessageRequestDto: UpdateRequestMessageRequestDto
|
|
973
|
+
|
|
974
|
+
/**
|
|
975
|
+
* Bearer Token
|
|
976
|
+
* @type {string}
|
|
977
|
+
* @memberof MessagesApiUpdateRequestMessage
|
|
978
|
+
*/
|
|
979
|
+
readonly authorization?: string
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
/**
|
|
983
|
+
* Request parameters for updateResponseMessage operation in MessagesApi.
|
|
984
|
+
* @export
|
|
985
|
+
* @interface MessagesApiUpdateResponseMessageRequest
|
|
986
|
+
*/
|
|
987
|
+
export interface MessagesApiUpdateResponseMessageRequest {
|
|
988
|
+
/**
|
|
989
|
+
* Unique identifier for the object.
|
|
990
|
+
* @type {string}
|
|
991
|
+
* @memberof MessagesApiUpdateResponseMessage
|
|
992
|
+
*/
|
|
993
|
+
readonly code: string
|
|
994
|
+
|
|
995
|
+
/**
|
|
996
|
+
*
|
|
997
|
+
* @type {UpdateResponseMessageRequestDto}
|
|
998
|
+
* @memberof MessagesApiUpdateResponseMessage
|
|
999
|
+
*/
|
|
1000
|
+
readonly updateResponseMessageRequestDto: UpdateResponseMessageRequestDto
|
|
1001
|
+
|
|
1002
|
+
/**
|
|
1003
|
+
* Bearer Token
|
|
1004
|
+
* @type {string}
|
|
1005
|
+
* @memberof MessagesApiUpdateResponseMessage
|
|
1006
|
+
*/
|
|
1007
|
+
readonly authorization?: string
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* MessagesApi - object-oriented interface
|
|
1012
|
+
* @export
|
|
1013
|
+
* @class MessagesApi
|
|
1014
|
+
* @extends {BaseAPI}
|
|
1015
|
+
*/
|
|
1016
|
+
export class MessagesApi extends BaseAPI {
|
|
1017
|
+
/**
|
|
1018
|
+
* Retrieves the details of the request message that was previously created. Supply the unique request message code that was returned when you created it and Emil Api will return the corresponding request message information.
|
|
1019
|
+
* @summary Retrieve the request message
|
|
1020
|
+
* @param {MessagesApiGetRequestMessageRequest} requestParameters Request parameters.
|
|
1021
|
+
* @param {*} [options] Override http request option.
|
|
1022
|
+
* @throws {RequiredError}
|
|
1023
|
+
* @memberof MessagesApi
|
|
1024
|
+
*/
|
|
1025
|
+
public getRequestMessage(requestParameters: MessagesApiGetRequestMessageRequest, options?: AxiosRequestConfig) {
|
|
1026
|
+
return MessagesApiFp(this.configuration).getRequestMessage(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
* Retrieves the details of the response message that was previously created. Supply the unique response message code that was returned when you created it and Emil Api will return the corresponding response message information.
|
|
1031
|
+
* @summary Retrieve the response message
|
|
1032
|
+
* @param {MessagesApiGetResponseMessageRequest} requestParameters Request parameters.
|
|
1033
|
+
* @param {*} [options] Override http request option.
|
|
1034
|
+
* @throws {RequiredError}
|
|
1035
|
+
* @memberof MessagesApi
|
|
1036
|
+
*/
|
|
1037
|
+
public getResponseMessage(requestParameters: MessagesApiGetResponseMessageRequest, options?: AxiosRequestConfig) {
|
|
1038
|
+
return MessagesApiFp(this.configuration).getResponseMessage(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
/**
|
|
1042
|
+
* Returns a list of messages you have previously created. The messages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
1043
|
+
* @summary List messages
|
|
1044
|
+
* @param {MessagesApiListAllMessagesRequest} requestParameters Request parameters.
|
|
1045
|
+
* @param {*} [options] Override http request option.
|
|
1046
|
+
* @throws {RequiredError}
|
|
1047
|
+
* @memberof MessagesApi
|
|
1048
|
+
*/
|
|
1049
|
+
public listAllMessages(requestParameters: MessagesApiListAllMessagesRequest = {}, options?: AxiosRequestConfig) {
|
|
1050
|
+
return MessagesApiFp(this.configuration).listAllMessages(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
/**
|
|
1054
|
+
* Returns a list of requests messages you have previously created. The requests messages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
1055
|
+
* @summary List requests messages
|
|
1056
|
+
* @param {MessagesApiListRequestsMessagesRequest} requestParameters Request parameters.
|
|
1057
|
+
* @param {*} [options] Override http request option.
|
|
1058
|
+
* @throws {RequiredError}
|
|
1059
|
+
* @memberof MessagesApi
|
|
1060
|
+
*/
|
|
1061
|
+
public listRequestsMessages(requestParameters: MessagesApiListRequestsMessagesRequest = {}, options?: AxiosRequestConfig) {
|
|
1062
|
+
return MessagesApiFp(this.configuration).listRequestsMessages(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
/**
|
|
1066
|
+
* Returns a list of responses messages you have previously created. The responses messages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
1067
|
+
* @summary List responses messages
|
|
1068
|
+
* @param {MessagesApiListResponsesMessagesRequest} requestParameters Request parameters.
|
|
1069
|
+
* @param {*} [options] Override http request option.
|
|
1070
|
+
* @throws {RequiredError}
|
|
1071
|
+
* @memberof MessagesApi
|
|
1072
|
+
*/
|
|
1073
|
+
public listResponsesMessages(requestParameters: MessagesApiListResponsesMessagesRequest = {}, options?: AxiosRequestConfig) {
|
|
1074
|
+
return MessagesApiFp(this.configuration).listResponsesMessages(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1079
|
+
* @summary Update the request message
|
|
1080
|
+
* @param {MessagesApiUpdateRequestMessageRequest} requestParameters Request parameters.
|
|
1081
|
+
* @param {*} [options] Override http request option.
|
|
1082
|
+
* @throws {RequiredError}
|
|
1083
|
+
* @memberof MessagesApi
|
|
1084
|
+
*/
|
|
1085
|
+
public updateRequestMessage(requestParameters: MessagesApiUpdateRequestMessageRequest, options?: AxiosRequestConfig) {
|
|
1086
|
+
return MessagesApiFp(this.configuration).updateRequestMessage(requestParameters.code, requestParameters.updateRequestMessageRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
/**
|
|
1090
|
+
* Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1091
|
+
* @summary Update the request message
|
|
1092
|
+
* @param {MessagesApiUpdateResponseMessageRequest} requestParameters Request parameters.
|
|
1093
|
+
* @param {*} [options] Override http request option.
|
|
1094
|
+
* @throws {RequiredError}
|
|
1095
|
+
* @memberof MessagesApi
|
|
1096
|
+
*/
|
|
1097
|
+
public updateResponseMessage(requestParameters: MessagesApiUpdateResponseMessageRequest, options?: AxiosRequestConfig) {
|
|
1098
|
+
return MessagesApiFp(this.configuration).updateResponseMessage(requestParameters.code, requestParameters.updateResponseMessageRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1099
|
+
}
|
|
1100
|
+
}
|