@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,647 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL GdvService
|
|
6
|
+
* The EMIL GdvService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __assign = (this && this.__assign) || function () {
|
|
31
|
+
__assign = Object.assign || function(t) {
|
|
32
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
+
s = arguments[i];
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
return __assign.apply(this, arguments);
|
|
40
|
+
};
|
|
41
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
+
function step(op) {
|
|
55
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
+
switch (op[0]) {
|
|
60
|
+
case 0: case 1: t = op; break;
|
|
61
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
+
default:
|
|
65
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
+
if (t[2]) _.ops.pop();
|
|
70
|
+
_.trys.pop(); continue;
|
|
71
|
+
}
|
|
72
|
+
op = body.call(thisArg, _);
|
|
73
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
+
};
|
|
80
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
+
exports.VbusApi = exports.VbusApiFactory = exports.VbusApiFp = exports.VbusApiAxiosParamCreator = void 0;
|
|
82
|
+
var axios_1 = __importDefault(require("axios"));
|
|
83
|
+
// Some imports not used depending on template conditions
|
|
84
|
+
// @ts-ignore
|
|
85
|
+
var common_1 = require("../common");
|
|
86
|
+
// @ts-ignore
|
|
87
|
+
var base_1 = require("../base");
|
|
88
|
+
// URLSearchParams not necessarily used
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
var url_1 = require("url");
|
|
91
|
+
var FormData = require('form-data');
|
|
92
|
+
/**
|
|
93
|
+
* VbusApi - axios parameter creator
|
|
94
|
+
* @export
|
|
95
|
+
*/
|
|
96
|
+
var VbusApiAxiosParamCreator = function (configuration) {
|
|
97
|
+
var _this = this;
|
|
98
|
+
return {
|
|
99
|
+
/**
|
|
100
|
+
* This endpoint will create a vbu message. The call is asynchronous and will return a code to retrieve the vbu when it is ready.
|
|
101
|
+
* @summary Create the vbu
|
|
102
|
+
* @param {CreateVbuRequestDto} createVbuRequestDto
|
|
103
|
+
* @param {string} [authorization] Bearer Token
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
*/
|
|
107
|
+
createVbu: function (createVbuRequestDto, authorization, options) {
|
|
108
|
+
if (options === void 0) { options = {}; }
|
|
109
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
|
+
return __generator(this, function (_a) {
|
|
112
|
+
switch (_a.label) {
|
|
113
|
+
case 0:
|
|
114
|
+
// verify required parameter 'createVbuRequestDto' is not null or undefined
|
|
115
|
+
(0, common_1.assertParamExists)('createVbu', 'createVbuRequestDto', createVbuRequestDto);
|
|
116
|
+
localVarPath = "/gdvservice/v1/vbus/create-vbu";
|
|
117
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
118
|
+
if (configuration) {
|
|
119
|
+
baseOptions = configuration.baseOptions;
|
|
120
|
+
baseAccessToken = configuration.accessToken;
|
|
121
|
+
}
|
|
122
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
123
|
+
localVarHeaderParameter = {};
|
|
124
|
+
localVarQueryParameter = {};
|
|
125
|
+
// authentication bearer required
|
|
126
|
+
// http bearer authentication required
|
|
127
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
128
|
+
case 1:
|
|
129
|
+
// authentication bearer required
|
|
130
|
+
// http bearer authentication required
|
|
131
|
+
_a.sent();
|
|
132
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
133
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
134
|
+
}
|
|
135
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
136
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
137
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
138
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
139
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createVbuRequestDto, localVarRequestOptions, configuration);
|
|
140
|
+
return [2 /*return*/, {
|
|
141
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
142
|
+
options: localVarRequestOptions,
|
|
143
|
+
}];
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
},
|
|
148
|
+
/**
|
|
149
|
+
* This endpoint will create a vbuv message. The call is asynchronous and will return a code to retrieve the vbu when it is ready.
|
|
150
|
+
* @summary Create the vbu
|
|
151
|
+
* @param {CreateVbuvRequestDto} createVbuvRequestDto
|
|
152
|
+
* @param {string} [authorization] Bearer Token
|
|
153
|
+
* @param {*} [options] Override http request option.
|
|
154
|
+
* @throws {RequiredError}
|
|
155
|
+
*/
|
|
156
|
+
createVbuv: function (createVbuvRequestDto, authorization, options) {
|
|
157
|
+
if (options === void 0) { options = {}; }
|
|
158
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
160
|
+
return __generator(this, function (_a) {
|
|
161
|
+
switch (_a.label) {
|
|
162
|
+
case 0:
|
|
163
|
+
// verify required parameter 'createVbuvRequestDto' is not null or undefined
|
|
164
|
+
(0, common_1.assertParamExists)('createVbuv', 'createVbuvRequestDto', createVbuvRequestDto);
|
|
165
|
+
localVarPath = "/gdvservice/v1/vbus/create-vbuv";
|
|
166
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
167
|
+
if (configuration) {
|
|
168
|
+
baseOptions = configuration.baseOptions;
|
|
169
|
+
baseAccessToken = configuration.accessToken;
|
|
170
|
+
}
|
|
171
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
172
|
+
localVarHeaderParameter = {};
|
|
173
|
+
localVarQueryParameter = {};
|
|
174
|
+
// authentication bearer required
|
|
175
|
+
// http bearer authentication required
|
|
176
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
177
|
+
case 1:
|
|
178
|
+
// authentication bearer required
|
|
179
|
+
// http bearer authentication required
|
|
180
|
+
_a.sent();
|
|
181
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
182
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
183
|
+
}
|
|
184
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
185
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
187
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
188
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createVbuvRequestDto, localVarRequestOptions, configuration);
|
|
189
|
+
return [2 /*return*/, {
|
|
190
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
191
|
+
options: localVarRequestOptions,
|
|
192
|
+
}];
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
},
|
|
197
|
+
/**
|
|
198
|
+
* Retrieves the details of the vbu that was previously created. Supply the unique vbu code that was returned when you created it and Emil Api will return the corresponding vbu information.
|
|
199
|
+
* @summary Retrieve the vbu
|
|
200
|
+
* @param {string} code Unique identifier for the object.
|
|
201
|
+
* @param {string} [authorization] Bearer Token
|
|
202
|
+
* @param {'responses'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
|
|
203
|
+
* @param {*} [options] Override http request option.
|
|
204
|
+
* @throws {RequiredError}
|
|
205
|
+
*/
|
|
206
|
+
getVbu: function (code, authorization, expand, options) {
|
|
207
|
+
if (options === void 0) { options = {}; }
|
|
208
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
209
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
210
|
+
return __generator(this, function (_a) {
|
|
211
|
+
switch (_a.label) {
|
|
212
|
+
case 0:
|
|
213
|
+
// verify required parameter 'code' is not null or undefined
|
|
214
|
+
(0, common_1.assertParamExists)('getVbu', 'code', code);
|
|
215
|
+
localVarPath = "/gdvservice/v1/vbus/{code}"
|
|
216
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
217
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
218
|
+
if (configuration) {
|
|
219
|
+
baseOptions = configuration.baseOptions;
|
|
220
|
+
baseAccessToken = configuration.accessToken;
|
|
221
|
+
}
|
|
222
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
223
|
+
localVarHeaderParameter = {};
|
|
224
|
+
localVarQueryParameter = {};
|
|
225
|
+
// authentication bearer required
|
|
226
|
+
// http bearer authentication required
|
|
227
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
228
|
+
case 1:
|
|
229
|
+
// authentication bearer required
|
|
230
|
+
// http bearer authentication required
|
|
231
|
+
_a.sent();
|
|
232
|
+
if (expand !== undefined) {
|
|
233
|
+
localVarQueryParameter['expand'] = expand;
|
|
234
|
+
}
|
|
235
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
236
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
237
|
+
}
|
|
238
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
239
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
240
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
241
|
+
return [2 /*return*/, {
|
|
242
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
243
|
+
options: localVarRequestOptions,
|
|
244
|
+
}];
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
});
|
|
248
|
+
},
|
|
249
|
+
/**
|
|
250
|
+
* Returns a list of vbus you have previously created. The vbus are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
251
|
+
* @summary List vbus
|
|
252
|
+
* @param {string} [authorization] Bearer Token
|
|
253
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
254
|
+
* @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.
|
|
255
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, leadNumber, policyNumber, leadCode, policyCode, customerName</i> <br/> <i>policyCode</i> is required, other filters are optional.
|
|
256
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
257
|
+
* @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: id, code, transmissionStart, createdAt, updatedAt</i>
|
|
258
|
+
* @param {any} [expand] No expanding supported
|
|
259
|
+
* @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.
|
|
260
|
+
* @param {*} [options] Override http request option.
|
|
261
|
+
* @throws {RequiredError}
|
|
262
|
+
*/
|
|
263
|
+
listVbus: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
264
|
+
if (options === void 0) { options = {}; }
|
|
265
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
266
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
267
|
+
return __generator(this, function (_a) {
|
|
268
|
+
switch (_a.label) {
|
|
269
|
+
case 0:
|
|
270
|
+
localVarPath = "/gdvservice/v1/vbus";
|
|
271
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
272
|
+
if (configuration) {
|
|
273
|
+
baseOptions = configuration.baseOptions;
|
|
274
|
+
baseAccessToken = configuration.accessToken;
|
|
275
|
+
}
|
|
276
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
277
|
+
localVarHeaderParameter = {};
|
|
278
|
+
localVarQueryParameter = {};
|
|
279
|
+
// authentication bearer required
|
|
280
|
+
// http bearer authentication required
|
|
281
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
282
|
+
case 1:
|
|
283
|
+
// authentication bearer required
|
|
284
|
+
// http bearer authentication required
|
|
285
|
+
_a.sent();
|
|
286
|
+
if (pageSize !== undefined) {
|
|
287
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
288
|
+
}
|
|
289
|
+
if (pageToken !== undefined) {
|
|
290
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
291
|
+
}
|
|
292
|
+
if (filter !== undefined) {
|
|
293
|
+
localVarQueryParameter['filter'] = filter;
|
|
294
|
+
}
|
|
295
|
+
if (search !== undefined) {
|
|
296
|
+
localVarQueryParameter['search'] = search;
|
|
297
|
+
}
|
|
298
|
+
if (order !== undefined) {
|
|
299
|
+
localVarQueryParameter['order'] = order;
|
|
300
|
+
}
|
|
301
|
+
if (expand !== undefined) {
|
|
302
|
+
localVarQueryParameter['expand'] = expand;
|
|
303
|
+
}
|
|
304
|
+
if (filters !== undefined) {
|
|
305
|
+
localVarQueryParameter['filters'] = filters;
|
|
306
|
+
}
|
|
307
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
308
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
309
|
+
}
|
|
310
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
311
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
312
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
313
|
+
return [2 /*return*/, {
|
|
314
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
315
|
+
options: localVarRequestOptions,
|
|
316
|
+
}];
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
});
|
|
320
|
+
},
|
|
321
|
+
/**
|
|
322
|
+
* Updates the specified vbu by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
323
|
+
* @summary Update the vbu
|
|
324
|
+
* @param {string} code Unique identifier for the object.
|
|
325
|
+
* @param {UpdateVbuRequestDto} updateVbuRequestDto
|
|
326
|
+
* @param {string} [authorization] Bearer Token
|
|
327
|
+
* @param {*} [options] Override http request option.
|
|
328
|
+
* @throws {RequiredError}
|
|
329
|
+
*/
|
|
330
|
+
updateVbu: function (code, updateVbuRequestDto, authorization, options) {
|
|
331
|
+
if (options === void 0) { options = {}; }
|
|
332
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
333
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
334
|
+
return __generator(this, function (_a) {
|
|
335
|
+
switch (_a.label) {
|
|
336
|
+
case 0:
|
|
337
|
+
// verify required parameter 'code' is not null or undefined
|
|
338
|
+
(0, common_1.assertParamExists)('updateVbu', 'code', code);
|
|
339
|
+
// verify required parameter 'updateVbuRequestDto' is not null or undefined
|
|
340
|
+
(0, common_1.assertParamExists)('updateVbu', 'updateVbuRequestDto', updateVbuRequestDto);
|
|
341
|
+
localVarPath = "/gdvservice/v1/vbus/{code}"
|
|
342
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
343
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
344
|
+
if (configuration) {
|
|
345
|
+
baseOptions = configuration.baseOptions;
|
|
346
|
+
baseAccessToken = configuration.accessToken;
|
|
347
|
+
}
|
|
348
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
349
|
+
localVarHeaderParameter = {};
|
|
350
|
+
localVarQueryParameter = {};
|
|
351
|
+
// authentication bearer required
|
|
352
|
+
// http bearer authentication required
|
|
353
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
354
|
+
case 1:
|
|
355
|
+
// authentication bearer required
|
|
356
|
+
// http bearer authentication required
|
|
357
|
+
_a.sent();
|
|
358
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
359
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
360
|
+
}
|
|
361
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
362
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
363
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
364
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
365
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateVbuRequestDto, localVarRequestOptions, configuration);
|
|
366
|
+
return [2 /*return*/, {
|
|
367
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
368
|
+
options: localVarRequestOptions,
|
|
369
|
+
}];
|
|
370
|
+
}
|
|
371
|
+
});
|
|
372
|
+
});
|
|
373
|
+
},
|
|
374
|
+
};
|
|
375
|
+
};
|
|
376
|
+
exports.VbusApiAxiosParamCreator = VbusApiAxiosParamCreator;
|
|
377
|
+
/**
|
|
378
|
+
* VbusApi - functional programming interface
|
|
379
|
+
* @export
|
|
380
|
+
*/
|
|
381
|
+
var VbusApiFp = function (configuration) {
|
|
382
|
+
var localVarAxiosParamCreator = (0, exports.VbusApiAxiosParamCreator)(configuration);
|
|
383
|
+
return {
|
|
384
|
+
/**
|
|
385
|
+
* This endpoint will create a vbu message. The call is asynchronous and will return a code to retrieve the vbu when it is ready.
|
|
386
|
+
* @summary Create the vbu
|
|
387
|
+
* @param {CreateVbuRequestDto} createVbuRequestDto
|
|
388
|
+
* @param {string} [authorization] Bearer Token
|
|
389
|
+
* @param {*} [options] Override http request option.
|
|
390
|
+
* @throws {RequiredError}
|
|
391
|
+
*/
|
|
392
|
+
createVbu: function (createVbuRequestDto, authorization, options) {
|
|
393
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
394
|
+
var localVarAxiosArgs;
|
|
395
|
+
return __generator(this, function (_a) {
|
|
396
|
+
switch (_a.label) {
|
|
397
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createVbu(createVbuRequestDto, authorization, options)];
|
|
398
|
+
case 1:
|
|
399
|
+
localVarAxiosArgs = _a.sent();
|
|
400
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
401
|
+
}
|
|
402
|
+
});
|
|
403
|
+
});
|
|
404
|
+
},
|
|
405
|
+
/**
|
|
406
|
+
* This endpoint will create a vbuv message. The call is asynchronous and will return a code to retrieve the vbu when it is ready.
|
|
407
|
+
* @summary Create the vbu
|
|
408
|
+
* @param {CreateVbuvRequestDto} createVbuvRequestDto
|
|
409
|
+
* @param {string} [authorization] Bearer Token
|
|
410
|
+
* @param {*} [options] Override http request option.
|
|
411
|
+
* @throws {RequiredError}
|
|
412
|
+
*/
|
|
413
|
+
createVbuv: function (createVbuvRequestDto, authorization, options) {
|
|
414
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
415
|
+
var localVarAxiosArgs;
|
|
416
|
+
return __generator(this, function (_a) {
|
|
417
|
+
switch (_a.label) {
|
|
418
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createVbuv(createVbuvRequestDto, authorization, options)];
|
|
419
|
+
case 1:
|
|
420
|
+
localVarAxiosArgs = _a.sent();
|
|
421
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
422
|
+
}
|
|
423
|
+
});
|
|
424
|
+
});
|
|
425
|
+
},
|
|
426
|
+
/**
|
|
427
|
+
* Retrieves the details of the vbu that was previously created. Supply the unique vbu code that was returned when you created it and Emil Api will return the corresponding vbu information.
|
|
428
|
+
* @summary Retrieve the vbu
|
|
429
|
+
* @param {string} code Unique identifier for the object.
|
|
430
|
+
* @param {string} [authorization] Bearer Token
|
|
431
|
+
* @param {'responses'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
|
|
432
|
+
* @param {*} [options] Override http request option.
|
|
433
|
+
* @throws {RequiredError}
|
|
434
|
+
*/
|
|
435
|
+
getVbu: function (code, authorization, expand, options) {
|
|
436
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
437
|
+
var localVarAxiosArgs;
|
|
438
|
+
return __generator(this, function (_a) {
|
|
439
|
+
switch (_a.label) {
|
|
440
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getVbu(code, authorization, expand, options)];
|
|
441
|
+
case 1:
|
|
442
|
+
localVarAxiosArgs = _a.sent();
|
|
443
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
444
|
+
}
|
|
445
|
+
});
|
|
446
|
+
});
|
|
447
|
+
},
|
|
448
|
+
/**
|
|
449
|
+
* Returns a list of vbus you have previously created. The vbus are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
450
|
+
* @summary List vbus
|
|
451
|
+
* @param {string} [authorization] Bearer Token
|
|
452
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
453
|
+
* @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.
|
|
454
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, leadNumber, policyNumber, leadCode, policyCode, customerName</i> <br/> <i>policyCode</i> is required, other filters are optional.
|
|
455
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
456
|
+
* @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: id, code, transmissionStart, createdAt, updatedAt</i>
|
|
457
|
+
* @param {any} [expand] No expanding supported
|
|
458
|
+
* @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.
|
|
459
|
+
* @param {*} [options] Override http request option.
|
|
460
|
+
* @throws {RequiredError}
|
|
461
|
+
*/
|
|
462
|
+
listVbus: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
463
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
464
|
+
var localVarAxiosArgs;
|
|
465
|
+
return __generator(this, function (_a) {
|
|
466
|
+
switch (_a.label) {
|
|
467
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listVbus(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
468
|
+
case 1:
|
|
469
|
+
localVarAxiosArgs = _a.sent();
|
|
470
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
471
|
+
}
|
|
472
|
+
});
|
|
473
|
+
});
|
|
474
|
+
},
|
|
475
|
+
/**
|
|
476
|
+
* Updates the specified vbu by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
477
|
+
* @summary Update the vbu
|
|
478
|
+
* @param {string} code Unique identifier for the object.
|
|
479
|
+
* @param {UpdateVbuRequestDto} updateVbuRequestDto
|
|
480
|
+
* @param {string} [authorization] Bearer Token
|
|
481
|
+
* @param {*} [options] Override http request option.
|
|
482
|
+
* @throws {RequiredError}
|
|
483
|
+
*/
|
|
484
|
+
updateVbu: function (code, updateVbuRequestDto, authorization, options) {
|
|
485
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
486
|
+
var localVarAxiosArgs;
|
|
487
|
+
return __generator(this, function (_a) {
|
|
488
|
+
switch (_a.label) {
|
|
489
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateVbu(code, updateVbuRequestDto, authorization, options)];
|
|
490
|
+
case 1:
|
|
491
|
+
localVarAxiosArgs = _a.sent();
|
|
492
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
493
|
+
}
|
|
494
|
+
});
|
|
495
|
+
});
|
|
496
|
+
},
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
exports.VbusApiFp = VbusApiFp;
|
|
500
|
+
/**
|
|
501
|
+
* VbusApi - factory interface
|
|
502
|
+
* @export
|
|
503
|
+
*/
|
|
504
|
+
var VbusApiFactory = function (configuration, basePath, axios) {
|
|
505
|
+
var localVarFp = (0, exports.VbusApiFp)(configuration);
|
|
506
|
+
return {
|
|
507
|
+
/**
|
|
508
|
+
* This endpoint will create a vbu message. The call is asynchronous and will return a code to retrieve the vbu when it is ready.
|
|
509
|
+
* @summary Create the vbu
|
|
510
|
+
* @param {CreateVbuRequestDto} createVbuRequestDto
|
|
511
|
+
* @param {string} [authorization] Bearer Token
|
|
512
|
+
* @param {*} [options] Override http request option.
|
|
513
|
+
* @throws {RequiredError}
|
|
514
|
+
*/
|
|
515
|
+
createVbu: function (createVbuRequestDto, authorization, options) {
|
|
516
|
+
return localVarFp.createVbu(createVbuRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
517
|
+
},
|
|
518
|
+
/**
|
|
519
|
+
* This endpoint will create a vbuv message. The call is asynchronous and will return a code to retrieve the vbu when it is ready.
|
|
520
|
+
* @summary Create the vbu
|
|
521
|
+
* @param {CreateVbuvRequestDto} createVbuvRequestDto
|
|
522
|
+
* @param {string} [authorization] Bearer Token
|
|
523
|
+
* @param {*} [options] Override http request option.
|
|
524
|
+
* @throws {RequiredError}
|
|
525
|
+
*/
|
|
526
|
+
createVbuv: function (createVbuvRequestDto, authorization, options) {
|
|
527
|
+
return localVarFp.createVbuv(createVbuvRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
528
|
+
},
|
|
529
|
+
/**
|
|
530
|
+
* Retrieves the details of the vbu that was previously created. Supply the unique vbu code that was returned when you created it and Emil Api will return the corresponding vbu information.
|
|
531
|
+
* @summary Retrieve the vbu
|
|
532
|
+
* @param {string} code Unique identifier for the object.
|
|
533
|
+
* @param {string} [authorization] Bearer Token
|
|
534
|
+
* @param {'responses'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
|
|
535
|
+
* @param {*} [options] Override http request option.
|
|
536
|
+
* @throws {RequiredError}
|
|
537
|
+
*/
|
|
538
|
+
getVbu: function (code, authorization, expand, options) {
|
|
539
|
+
return localVarFp.getVbu(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
540
|
+
},
|
|
541
|
+
/**
|
|
542
|
+
* Returns a list of vbus you have previously created. The vbus are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
543
|
+
* @summary List vbus
|
|
544
|
+
* @param {string} [authorization] Bearer Token
|
|
545
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
546
|
+
* @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.
|
|
547
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, leadNumber, policyNumber, leadCode, policyCode, customerName</i> <br/> <i>policyCode</i> is required, other filters are optional.
|
|
548
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
549
|
+
* @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: id, code, transmissionStart, createdAt, updatedAt</i>
|
|
550
|
+
* @param {any} [expand] No expanding supported
|
|
551
|
+
* @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.
|
|
552
|
+
* @param {*} [options] Override http request option.
|
|
553
|
+
* @throws {RequiredError}
|
|
554
|
+
*/
|
|
555
|
+
listVbus: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
556
|
+
return localVarFp.listVbus(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
557
|
+
},
|
|
558
|
+
/**
|
|
559
|
+
* Updates the specified vbu by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
560
|
+
* @summary Update the vbu
|
|
561
|
+
* @param {string} code Unique identifier for the object.
|
|
562
|
+
* @param {UpdateVbuRequestDto} updateVbuRequestDto
|
|
563
|
+
* @param {string} [authorization] Bearer Token
|
|
564
|
+
* @param {*} [options] Override http request option.
|
|
565
|
+
* @throws {RequiredError}
|
|
566
|
+
*/
|
|
567
|
+
updateVbu: function (code, updateVbuRequestDto, authorization, options) {
|
|
568
|
+
return localVarFp.updateVbu(code, updateVbuRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
569
|
+
},
|
|
570
|
+
};
|
|
571
|
+
};
|
|
572
|
+
exports.VbusApiFactory = VbusApiFactory;
|
|
573
|
+
/**
|
|
574
|
+
* VbusApi - object-oriented interface
|
|
575
|
+
* @export
|
|
576
|
+
* @class VbusApi
|
|
577
|
+
* @extends {BaseAPI}
|
|
578
|
+
*/
|
|
579
|
+
var VbusApi = /** @class */ (function (_super) {
|
|
580
|
+
__extends(VbusApi, _super);
|
|
581
|
+
function VbusApi() {
|
|
582
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* This endpoint will create a vbu message. The call is asynchronous and will return a code to retrieve the vbu when it is ready.
|
|
586
|
+
* @summary Create the vbu
|
|
587
|
+
* @param {VbusApiCreateVbuRequest} requestParameters Request parameters.
|
|
588
|
+
* @param {*} [options] Override http request option.
|
|
589
|
+
* @throws {RequiredError}
|
|
590
|
+
* @memberof VbusApi
|
|
591
|
+
*/
|
|
592
|
+
VbusApi.prototype.createVbu = function (requestParameters, options) {
|
|
593
|
+
var _this = this;
|
|
594
|
+
return (0, exports.VbusApiFp)(this.configuration).createVbu(requestParameters.createVbuRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
595
|
+
};
|
|
596
|
+
/**
|
|
597
|
+
* This endpoint will create a vbuv message. The call is asynchronous and will return a code to retrieve the vbu when it is ready.
|
|
598
|
+
* @summary Create the vbu
|
|
599
|
+
* @param {VbusApiCreateVbuvRequest} requestParameters Request parameters.
|
|
600
|
+
* @param {*} [options] Override http request option.
|
|
601
|
+
* @throws {RequiredError}
|
|
602
|
+
* @memberof VbusApi
|
|
603
|
+
*/
|
|
604
|
+
VbusApi.prototype.createVbuv = function (requestParameters, options) {
|
|
605
|
+
var _this = this;
|
|
606
|
+
return (0, exports.VbusApiFp)(this.configuration).createVbuv(requestParameters.createVbuvRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
607
|
+
};
|
|
608
|
+
/**
|
|
609
|
+
* Retrieves the details of the vbu that was previously created. Supply the unique vbu code that was returned when you created it and Emil Api will return the corresponding vbu information.
|
|
610
|
+
* @summary Retrieve the vbu
|
|
611
|
+
* @param {VbusApiGetVbuRequest} requestParameters Request parameters.
|
|
612
|
+
* @param {*} [options] Override http request option.
|
|
613
|
+
* @throws {RequiredError}
|
|
614
|
+
* @memberof VbusApi
|
|
615
|
+
*/
|
|
616
|
+
VbusApi.prototype.getVbu = function (requestParameters, options) {
|
|
617
|
+
var _this = this;
|
|
618
|
+
return (0, exports.VbusApiFp)(this.configuration).getVbu(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
619
|
+
};
|
|
620
|
+
/**
|
|
621
|
+
* Returns a list of vbus you have previously created. The vbus are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
622
|
+
* @summary List vbus
|
|
623
|
+
* @param {VbusApiListVbusRequest} requestParameters Request parameters.
|
|
624
|
+
* @param {*} [options] Override http request option.
|
|
625
|
+
* @throws {RequiredError}
|
|
626
|
+
* @memberof VbusApi
|
|
627
|
+
*/
|
|
628
|
+
VbusApi.prototype.listVbus = function (requestParameters, options) {
|
|
629
|
+
var _this = this;
|
|
630
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
631
|
+
return (0, exports.VbusApiFp)(this.configuration).listVbus(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
632
|
+
};
|
|
633
|
+
/**
|
|
634
|
+
* Updates the specified vbu by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
635
|
+
* @summary Update the vbu
|
|
636
|
+
* @param {VbusApiUpdateVbuRequest} requestParameters Request parameters.
|
|
637
|
+
* @param {*} [options] Override http request option.
|
|
638
|
+
* @throws {RequiredError}
|
|
639
|
+
* @memberof VbusApi
|
|
640
|
+
*/
|
|
641
|
+
VbusApi.prototype.updateVbu = function (requestParameters, options) {
|
|
642
|
+
var _this = this;
|
|
643
|
+
return (0, exports.VbusApiFp)(this.configuration).updateVbu(requestParameters.code, requestParameters.updateVbuRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
644
|
+
};
|
|
645
|
+
return VbusApi;
|
|
646
|
+
}(base_1.BaseAPI));
|
|
647
|
+
exports.VbusApi = VbusApi;
|