@kommerz/ts-client 1.196.0 → 1.197.1
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/dist/apis/AppointmentPortalApi.d.ts +20 -8
- package/dist/apis/AppointmentPortalApi.js +14 -8
- package/dist/apis/AppointmentsApi.d.ts +41 -2
- package/dist/apis/AppointmentsApi.js +127 -0
- package/dist/apis/CustomersApi.d.ts +0 -4
- package/dist/apis/CustomersApi.js +0 -3
- package/dist/apis/MapsApi.d.ts +43 -0
- package/dist/apis/MapsApi.js +127 -0
- package/dist/apis/ServiceDeskMessagesApi.d.ts +77 -0
- package/dist/apis/ServiceDeskMessagesApi.js +260 -0
- package/dist/apis/ServiceDeskPortalApi.d.ts +41 -0
- package/dist/apis/ServiceDeskPortalApi.js +145 -0
- package/dist/apis/TenantPortalUploadsApi.d.ts +166 -0
- package/dist/apis/TenantPortalUploadsApi.js +418 -0
- package/dist/apis/UsersMeAddressesApi.d.ts +123 -0
- package/dist/apis/UsersMeAddressesApi.js +389 -0
- package/dist/apis/UsersMeApi.d.ts +6 -6
- package/dist/apis/UsersMeApi.js +6 -6
- package/dist/apis/UsersMeBookmarksApi.d.ts +99 -0
- package/dist/apis/UsersMeBookmarksApi.js +324 -0
- package/dist/apis/index.d.ts +5 -1
- package/dist/apis/index.js +5 -1
- package/dist/models/AccountCalendarEntryDto.d.ts +2 -2
- package/dist/models/AddressDto.d.ts +4 -0
- package/dist/models/AddressDto.js +2 -0
- package/dist/models/AppointmentBlockerDto.d.ts +8 -0
- package/dist/models/AppointmentBlockerDto.js +4 -0
- package/dist/models/AppointmentBookingConfigDto.d.ts +33 -0
- package/dist/models/AppointmentBookingConfigDto.js +21 -0
- package/dist/models/AppointmentDto.d.ts +22 -1
- package/dist/models/AppointmentDto.js +10 -0
- package/dist/models/AppointmentEmailTemplatesDto.d.ts +4 -0
- package/dist/models/AppointmentEmailTemplatesDto.js +2 -0
- package/dist/models/AppointmentProductDto.d.ts +9 -1
- package/dist/models/AppointmentProductDto.js +4 -0
- package/dist/models/AppointmentSlotDistance.d.ts +2 -2
- package/dist/models/AppointmentSlotDistance.js +2 -2
- package/dist/models/AppointmentSlotDto.d.ts +6 -2
- package/dist/models/AppointmentSlotDto.js +4 -0
- package/dist/models/AppointmentSubmissionDto.d.ts +13 -0
- package/dist/models/AppointmentSubmissionDto.js +7 -0
- package/dist/models/AttendedCalendarEntryDto.d.ts +10 -2
- package/dist/models/AttendedCalendarEntryDto.js +4 -0
- package/dist/models/BookmarkDto.d.ts +50 -0
- package/dist/models/BookmarkDto.js +60 -0
- package/dist/models/ContactAddressDto.d.ts +38 -0
- package/dist/models/ContactAddressDto.js +53 -0
- package/dist/models/DavAddressBookDto.d.ts +29 -0
- package/dist/models/DavAddressBookDto.js +50 -0
- package/dist/models/DavCalendarDto.d.ts +1 -1
- package/dist/models/DavResourceDto.d.ts +45 -0
- package/dist/models/DavResourceDto.js +64 -0
- package/dist/models/DavResourceWriteDto.d.ts +29 -0
- package/dist/models/DavResourceWriteDto.js +50 -0
- package/dist/models/EntityType.d.ts +4 -0
- package/dist/models/EntityType.js +4 -0
- package/dist/models/FormsPortalFileUploadDto.d.ts +37 -0
- package/dist/models/FormsPortalFileUploadDto.js +54 -0
- package/dist/models/FormsPortalSpecDto.d.ts +5 -0
- package/dist/models/FormsPortalSpecDto.js +5 -0
- package/dist/models/FormsPortalSubmitDto.d.ts +4 -0
- package/dist/models/FormsPortalSubmitDto.js +2 -0
- package/dist/models/GeoLocationDto.d.ts +42 -0
- package/dist/models/GeoLocationDto.js +55 -0
- package/dist/models/GetAllServiceDeskMessages200Response.d.ts +42 -0
- package/dist/models/GetAllServiceDeskMessages200Response.js +59 -0
- package/dist/models/GetMyAddresses200Response.d.ts +42 -0
- package/dist/models/GetMyAddresses200Response.js +59 -0
- package/dist/models/GetMyBookmarks200Response.d.ts +42 -0
- package/dist/models/GetMyBookmarks200Response.js +59 -0
- package/dist/models/KanbanBoardDto.d.ts +12 -0
- package/dist/models/KanbanBoardDto.js +6 -0
- package/dist/models/LocationGeocodeQueryDto.d.ts +29 -0
- package/dist/models/LocationGeocodeQueryDto.js +50 -0
- package/dist/models/MessageDto.d.ts +7 -3
- package/dist/models/MessageDto.js +5 -2
- package/dist/models/Permissions.d.ts +3 -0
- package/dist/models/Permissions.js +3 -0
- package/dist/models/PublicTenantPageDto.d.ts +4 -0
- package/dist/models/PublicTenantPageDto.js +4 -0
- package/dist/models/RoutePlanningAppointmentResultDto.d.ts +47 -0
- package/dist/models/RoutePlanningAppointmentResultDto.js +62 -0
- package/dist/models/RoutePlanningOutcome.d.ts +35 -0
- package/dist/models/RoutePlanningOutcome.js +61 -0
- package/dist/models/RoutePlanningResultDto.d.ts +38 -0
- package/dist/models/RoutePlanningResultDto.js +57 -0
- package/dist/models/RoutingConfigDto.d.ts +74 -10
- package/dist/models/RoutingConfigDto.js +45 -9
- package/dist/models/TenantConfigurationDto.d.ts +4 -0
- package/dist/models/TenantConfigurationDto.js +2 -0
- package/dist/models/UiConfigurationDto.d.ts +9 -0
- package/dist/models/UiConfigurationDto.js +5 -0
- package/dist/models/UiModuleCategory.d.ts +29 -0
- package/dist/models/UiModuleCategory.js +55 -0
- package/dist/models/UserAddressDto.d.ts +50 -0
- package/dist/models/UserAddressDto.js +62 -0
- package/dist/models/UserDto.d.ts +5 -1
- package/dist/models/UserDto.js +1 -0
- package/dist/models/index.d.ts +16 -2
- package/dist/models/index.js +16 -2
- package/package.json +1 -1
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kommerz API Specification
|
|
3
|
+
* API specification for Kommerz Services. - /ui/ for services consumed by the frontend - /intern/ for internal administration endpoints - /extern/ for services consumed by external services - /stats/ for monitoring endpoints - /actuator/ for health endpoints (e.g. /actuator/health ) All endpoints are postfixed with a version number.
|
|
4
|
+
*
|
|
5
|
+
* Contact: info@kommerz.app
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
8
|
+
* https://openapi-generator.tech
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*/
|
|
11
|
+
import * as runtime from '../runtime';
|
|
12
|
+
import { type GetMyAddresses200Response } from '../models/GetMyAddresses200Response';
|
|
13
|
+
import { type KommerzPageable } from '../models/KommerzPageable';
|
|
14
|
+
import { type UserAddressDto } from '../models/UserAddressDto';
|
|
15
|
+
export interface CreateMyAddressRequest {
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
userAddressDto: Omit<UserAddressDto, 'id'>;
|
|
20
|
+
}
|
|
21
|
+
export interface DeleteMyAddressRequest {
|
|
22
|
+
/**
|
|
23
|
+
* id of entity
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
}
|
|
27
|
+
export interface GetMyAddressRequest {
|
|
28
|
+
/**
|
|
29
|
+
* id of entity
|
|
30
|
+
*/
|
|
31
|
+
id: string;
|
|
32
|
+
}
|
|
33
|
+
export interface GetMyAddressesRequest {
|
|
34
|
+
/**
|
|
35
|
+
* Pageable query parameters
|
|
36
|
+
*/
|
|
37
|
+
pageable: KommerzPageable;
|
|
38
|
+
/**
|
|
39
|
+
* Filter query parameters. Operators: sim, nsim, eq, neq, leq, less, geq, gtr). Values have to be url-encoded.
|
|
40
|
+
*/
|
|
41
|
+
filter?: Array<string>;
|
|
42
|
+
}
|
|
43
|
+
export interface UpdateMyAddressRequest {
|
|
44
|
+
/**
|
|
45
|
+
* id of entity
|
|
46
|
+
*/
|
|
47
|
+
id: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
userAddressDto: Omit<UserAddressDto, 'id'>;
|
|
52
|
+
/**
|
|
53
|
+
* whether to force update the entity
|
|
54
|
+
*/
|
|
55
|
+
force?: boolean;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
export declare class UsersMeAddressesApi extends runtime.BaseAPI {
|
|
61
|
+
/**
|
|
62
|
+
* Creates request options for createMyAddress without sending the request
|
|
63
|
+
*/
|
|
64
|
+
createMyAddressRequestOpts(requestParameters: CreateMyAddressRequest): Promise<runtime.RequestOpts>;
|
|
65
|
+
/**
|
|
66
|
+
* store an address for the logged-in user
|
|
67
|
+
*/
|
|
68
|
+
createMyAddressRaw(requestParameters: CreateMyAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserAddressDto>>;
|
|
69
|
+
/**
|
|
70
|
+
* store an address for the logged-in user
|
|
71
|
+
*/
|
|
72
|
+
createMyAddress(requestParameters: CreateMyAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserAddressDto>;
|
|
73
|
+
/**
|
|
74
|
+
* Creates request options for deleteMyAddress without sending the request
|
|
75
|
+
*/
|
|
76
|
+
deleteMyAddressRequestOpts(requestParameters: DeleteMyAddressRequest): Promise<runtime.RequestOpts>;
|
|
77
|
+
/**
|
|
78
|
+
* delete an address of the logged-in user
|
|
79
|
+
*/
|
|
80
|
+
deleteMyAddressRaw(requestParameters: DeleteMyAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
81
|
+
/**
|
|
82
|
+
* delete an address of the logged-in user
|
|
83
|
+
*/
|
|
84
|
+
deleteMyAddress(requestParameters: DeleteMyAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
85
|
+
/**
|
|
86
|
+
* Creates request options for getMyAddress without sending the request
|
|
87
|
+
*/
|
|
88
|
+
getMyAddressRequestOpts(requestParameters: GetMyAddressRequest): Promise<runtime.RequestOpts>;
|
|
89
|
+
/**
|
|
90
|
+
* read one address of the logged-in user
|
|
91
|
+
*/
|
|
92
|
+
getMyAddressRaw(requestParameters: GetMyAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserAddressDto>>;
|
|
93
|
+
/**
|
|
94
|
+
* read one address of the logged-in user
|
|
95
|
+
*/
|
|
96
|
+
getMyAddress(requestParameters: GetMyAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserAddressDto>;
|
|
97
|
+
/**
|
|
98
|
+
* Creates request options for getMyAddresses without sending the request
|
|
99
|
+
*/
|
|
100
|
+
getMyAddressesRequestOpts(requestParameters: GetMyAddressesRequest): Promise<runtime.RequestOpts>;
|
|
101
|
+
/**
|
|
102
|
+
* Filterable and sortable fields: label, email, phoneNumber, creationTime. Sorted by label unless a sort is given.
|
|
103
|
+
* list the addresses of the logged-in user
|
|
104
|
+
*/
|
|
105
|
+
getMyAddressesRaw(requestParameters: GetMyAddressesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetMyAddresses200Response>>;
|
|
106
|
+
/**
|
|
107
|
+
* Filterable and sortable fields: label, email, phoneNumber, creationTime. Sorted by label unless a sort is given.
|
|
108
|
+
* list the addresses of the logged-in user
|
|
109
|
+
*/
|
|
110
|
+
getMyAddresses(requestParameters: GetMyAddressesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetMyAddresses200Response>;
|
|
111
|
+
/**
|
|
112
|
+
* Creates request options for updateMyAddress without sending the request
|
|
113
|
+
*/
|
|
114
|
+
updateMyAddressRequestOpts(requestParameters: UpdateMyAddressRequest): Promise<runtime.RequestOpts>;
|
|
115
|
+
/**
|
|
116
|
+
* update an address of the logged-in user
|
|
117
|
+
*/
|
|
118
|
+
updateMyAddressRaw(requestParameters: UpdateMyAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserAddressDto>>;
|
|
119
|
+
/**
|
|
120
|
+
* update an address of the logged-in user
|
|
121
|
+
*/
|
|
122
|
+
updateMyAddress(requestParameters: UpdateMyAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserAddressDto>;
|
|
123
|
+
}
|
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Kommerz API Specification
|
|
6
|
+
* API specification for Kommerz Services. - /ui/ for services consumed by the frontend - /intern/ for internal administration endpoints - /extern/ for services consumed by external services - /stats/ for monitoring endpoints - /actuator/ for health endpoints (e.g. /actuator/health ) All endpoints are postfixed with a version number.
|
|
7
|
+
*
|
|
8
|
+
* Contact: info@kommerz.app
|
|
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
|
+
var __extends = (this && this.__extends) || (function () {
|
|
15
|
+
var extendStatics = function (d, b) {
|
|
16
|
+
extendStatics = Object.setPrototypeOf ||
|
|
17
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
18
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
19
|
+
return extendStatics(d, b);
|
|
20
|
+
};
|
|
21
|
+
return function (d, b) {
|
|
22
|
+
if (typeof b !== "function" && b !== null)
|
|
23
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
24
|
+
extendStatics(d, b);
|
|
25
|
+
function __() { this.constructor = d; }
|
|
26
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27
|
+
};
|
|
28
|
+
})();
|
|
29
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
30
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
31
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
32
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
33
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
34
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
35
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
39
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
40
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
41
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
42
|
+
function step(op) {
|
|
43
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
44
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
45
|
+
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;
|
|
46
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
47
|
+
switch (op[0]) {
|
|
48
|
+
case 0: case 1: t = op; break;
|
|
49
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
50
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
51
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
52
|
+
default:
|
|
53
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
54
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
55
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
56
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
57
|
+
if (t[2]) _.ops.pop();
|
|
58
|
+
_.trys.pop(); continue;
|
|
59
|
+
}
|
|
60
|
+
op = body.call(thisArg, _);
|
|
61
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
62
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66
|
+
exports.UsersMeAddressesApi = void 0;
|
|
67
|
+
var runtime = require("../runtime");
|
|
68
|
+
var GetMyAddresses200Response_1 = require("../models/GetMyAddresses200Response");
|
|
69
|
+
var UserAddressDto_1 = require("../models/UserAddressDto");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var UsersMeAddressesApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(UsersMeAddressesApi, _super);
|
|
75
|
+
function UsersMeAddressesApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Creates request options for createMyAddress without sending the request
|
|
80
|
+
*/
|
|
81
|
+
UsersMeAddressesApi.prototype.createMyAddressRequestOpts = function (requestParameters) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, urlPath;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
if (requestParameters['userAddressDto'] == null) {
|
|
86
|
+
throw new runtime.RequiredError('userAddressDto', 'Required parameter "userAddressDto" was null or undefined when calling createMyAddress().');
|
|
87
|
+
}
|
|
88
|
+
queryParameters = {};
|
|
89
|
+
headerParameters = {};
|
|
90
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
91
|
+
urlPath = "/ui/users/v1/me/addresses";
|
|
92
|
+
return [2 /*return*/, {
|
|
93
|
+
path: urlPath,
|
|
94
|
+
method: 'POST',
|
|
95
|
+
headers: headerParameters,
|
|
96
|
+
query: queryParameters,
|
|
97
|
+
body: (0, UserAddressDto_1.UserAddressDtoToJSON)(requestParameters['userAddressDto']),
|
|
98
|
+
}];
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* store an address for the logged-in user
|
|
104
|
+
*/
|
|
105
|
+
UsersMeAddressesApi.prototype.createMyAddressRaw = function (requestParameters, initOverrides) {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
107
|
+
var requestOptions, response;
|
|
108
|
+
return __generator(this, function (_a) {
|
|
109
|
+
switch (_a.label) {
|
|
110
|
+
case 0: return [4 /*yield*/, this.createMyAddressRequestOpts(requestParameters)];
|
|
111
|
+
case 1:
|
|
112
|
+
requestOptions = _a.sent();
|
|
113
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
114
|
+
case 2:
|
|
115
|
+
response = _a.sent();
|
|
116
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UserAddressDto_1.UserAddressDtoFromJSON)(jsonValue); })];
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* store an address for the logged-in user
|
|
123
|
+
*/
|
|
124
|
+
UsersMeAddressesApi.prototype.createMyAddress = function (requestParameters, initOverrides) {
|
|
125
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
126
|
+
var response;
|
|
127
|
+
return __generator(this, function (_a) {
|
|
128
|
+
switch (_a.label) {
|
|
129
|
+
case 0: return [4 /*yield*/, this.createMyAddressRaw(requestParameters, initOverrides)];
|
|
130
|
+
case 1:
|
|
131
|
+
response = _a.sent();
|
|
132
|
+
return [4 /*yield*/, response.value()];
|
|
133
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* Creates request options for deleteMyAddress without sending the request
|
|
140
|
+
*/
|
|
141
|
+
UsersMeAddressesApi.prototype.deleteMyAddressRequestOpts = function (requestParameters) {
|
|
142
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
143
|
+
var queryParameters, headerParameters, urlPath;
|
|
144
|
+
return __generator(this, function (_a) {
|
|
145
|
+
if (requestParameters['id'] == null) {
|
|
146
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteMyAddress().');
|
|
147
|
+
}
|
|
148
|
+
queryParameters = {};
|
|
149
|
+
headerParameters = {};
|
|
150
|
+
urlPath = "/ui/users/v1/me/addresses/{id}";
|
|
151
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
152
|
+
return [2 /*return*/, {
|
|
153
|
+
path: urlPath,
|
|
154
|
+
method: 'DELETE',
|
|
155
|
+
headers: headerParameters,
|
|
156
|
+
query: queryParameters,
|
|
157
|
+
}];
|
|
158
|
+
});
|
|
159
|
+
});
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* delete an address of the logged-in user
|
|
163
|
+
*/
|
|
164
|
+
UsersMeAddressesApi.prototype.deleteMyAddressRaw = function (requestParameters, initOverrides) {
|
|
165
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
166
|
+
var requestOptions, response;
|
|
167
|
+
return __generator(this, function (_a) {
|
|
168
|
+
switch (_a.label) {
|
|
169
|
+
case 0: return [4 /*yield*/, this.deleteMyAddressRequestOpts(requestParameters)];
|
|
170
|
+
case 1:
|
|
171
|
+
requestOptions = _a.sent();
|
|
172
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
173
|
+
case 2:
|
|
174
|
+
response = _a.sent();
|
|
175
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
});
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* delete an address of the logged-in user
|
|
182
|
+
*/
|
|
183
|
+
UsersMeAddressesApi.prototype.deleteMyAddress = function (requestParameters, initOverrides) {
|
|
184
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
185
|
+
return __generator(this, function (_a) {
|
|
186
|
+
switch (_a.label) {
|
|
187
|
+
case 0: return [4 /*yield*/, this.deleteMyAddressRaw(requestParameters, initOverrides)];
|
|
188
|
+
case 1:
|
|
189
|
+
_a.sent();
|
|
190
|
+
return [2 /*return*/];
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
});
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
* Creates request options for getMyAddress without sending the request
|
|
197
|
+
*/
|
|
198
|
+
UsersMeAddressesApi.prototype.getMyAddressRequestOpts = function (requestParameters) {
|
|
199
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
200
|
+
var queryParameters, headerParameters, urlPath;
|
|
201
|
+
return __generator(this, function (_a) {
|
|
202
|
+
if (requestParameters['id'] == null) {
|
|
203
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getMyAddress().');
|
|
204
|
+
}
|
|
205
|
+
queryParameters = {};
|
|
206
|
+
headerParameters = {};
|
|
207
|
+
urlPath = "/ui/users/v1/me/addresses/{id}";
|
|
208
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
209
|
+
return [2 /*return*/, {
|
|
210
|
+
path: urlPath,
|
|
211
|
+
method: 'GET',
|
|
212
|
+
headers: headerParameters,
|
|
213
|
+
query: queryParameters,
|
|
214
|
+
}];
|
|
215
|
+
});
|
|
216
|
+
});
|
|
217
|
+
};
|
|
218
|
+
/**
|
|
219
|
+
* read one address of the logged-in user
|
|
220
|
+
*/
|
|
221
|
+
UsersMeAddressesApi.prototype.getMyAddressRaw = function (requestParameters, initOverrides) {
|
|
222
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
223
|
+
var requestOptions, response;
|
|
224
|
+
return __generator(this, function (_a) {
|
|
225
|
+
switch (_a.label) {
|
|
226
|
+
case 0: return [4 /*yield*/, this.getMyAddressRequestOpts(requestParameters)];
|
|
227
|
+
case 1:
|
|
228
|
+
requestOptions = _a.sent();
|
|
229
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
230
|
+
case 2:
|
|
231
|
+
response = _a.sent();
|
|
232
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UserAddressDto_1.UserAddressDtoFromJSON)(jsonValue); })];
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
};
|
|
237
|
+
/**
|
|
238
|
+
* read one address of the logged-in user
|
|
239
|
+
*/
|
|
240
|
+
UsersMeAddressesApi.prototype.getMyAddress = function (requestParameters, initOverrides) {
|
|
241
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
242
|
+
var response;
|
|
243
|
+
return __generator(this, function (_a) {
|
|
244
|
+
switch (_a.label) {
|
|
245
|
+
case 0: return [4 /*yield*/, this.getMyAddressRaw(requestParameters, initOverrides)];
|
|
246
|
+
case 1:
|
|
247
|
+
response = _a.sent();
|
|
248
|
+
return [4 /*yield*/, response.value()];
|
|
249
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
});
|
|
253
|
+
};
|
|
254
|
+
/**
|
|
255
|
+
* Creates request options for getMyAddresses without sending the request
|
|
256
|
+
*/
|
|
257
|
+
UsersMeAddressesApi.prototype.getMyAddressesRequestOpts = function (requestParameters) {
|
|
258
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
259
|
+
var queryParameters, headerParameters, urlPath;
|
|
260
|
+
return __generator(this, function (_a) {
|
|
261
|
+
if (requestParameters['pageable'] == null) {
|
|
262
|
+
throw new runtime.RequiredError('pageable', 'Required parameter "pageable" was null or undefined when calling getMyAddresses().');
|
|
263
|
+
}
|
|
264
|
+
queryParameters = {};
|
|
265
|
+
if (requestParameters['pageable'] != null) {
|
|
266
|
+
queryParameters['pageable'] = requestParameters['pageable'];
|
|
267
|
+
}
|
|
268
|
+
if (requestParameters['filter'] != null) {
|
|
269
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
270
|
+
}
|
|
271
|
+
headerParameters = {};
|
|
272
|
+
urlPath = "/ui/users/v1/me/addresses";
|
|
273
|
+
return [2 /*return*/, {
|
|
274
|
+
path: urlPath,
|
|
275
|
+
method: 'GET',
|
|
276
|
+
headers: headerParameters,
|
|
277
|
+
query: queryParameters,
|
|
278
|
+
}];
|
|
279
|
+
});
|
|
280
|
+
});
|
|
281
|
+
};
|
|
282
|
+
/**
|
|
283
|
+
* Filterable and sortable fields: label, email, phoneNumber, creationTime. Sorted by label unless a sort is given.
|
|
284
|
+
* list the addresses of the logged-in user
|
|
285
|
+
*/
|
|
286
|
+
UsersMeAddressesApi.prototype.getMyAddressesRaw = function (requestParameters, initOverrides) {
|
|
287
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
288
|
+
var requestOptions, response;
|
|
289
|
+
return __generator(this, function (_a) {
|
|
290
|
+
switch (_a.label) {
|
|
291
|
+
case 0: return [4 /*yield*/, this.getMyAddressesRequestOpts(requestParameters)];
|
|
292
|
+
case 1:
|
|
293
|
+
requestOptions = _a.sent();
|
|
294
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
295
|
+
case 2:
|
|
296
|
+
response = _a.sent();
|
|
297
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, GetMyAddresses200Response_1.GetMyAddresses200ResponseFromJSON)(jsonValue); })];
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
});
|
|
301
|
+
};
|
|
302
|
+
/**
|
|
303
|
+
* Filterable and sortable fields: label, email, phoneNumber, creationTime. Sorted by label unless a sort is given.
|
|
304
|
+
* list the addresses of the logged-in user
|
|
305
|
+
*/
|
|
306
|
+
UsersMeAddressesApi.prototype.getMyAddresses = function (requestParameters, initOverrides) {
|
|
307
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
308
|
+
var response;
|
|
309
|
+
return __generator(this, function (_a) {
|
|
310
|
+
switch (_a.label) {
|
|
311
|
+
case 0: return [4 /*yield*/, this.getMyAddressesRaw(requestParameters, initOverrides)];
|
|
312
|
+
case 1:
|
|
313
|
+
response = _a.sent();
|
|
314
|
+
return [4 /*yield*/, response.value()];
|
|
315
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
});
|
|
319
|
+
};
|
|
320
|
+
/**
|
|
321
|
+
* Creates request options for updateMyAddress without sending the request
|
|
322
|
+
*/
|
|
323
|
+
UsersMeAddressesApi.prototype.updateMyAddressRequestOpts = function (requestParameters) {
|
|
324
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
325
|
+
var queryParameters, headerParameters, urlPath;
|
|
326
|
+
return __generator(this, function (_a) {
|
|
327
|
+
if (requestParameters['id'] == null) {
|
|
328
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateMyAddress().');
|
|
329
|
+
}
|
|
330
|
+
if (requestParameters['userAddressDto'] == null) {
|
|
331
|
+
throw new runtime.RequiredError('userAddressDto', 'Required parameter "userAddressDto" was null or undefined when calling updateMyAddress().');
|
|
332
|
+
}
|
|
333
|
+
queryParameters = {};
|
|
334
|
+
if (requestParameters['force'] != null) {
|
|
335
|
+
queryParameters['force'] = requestParameters['force'];
|
|
336
|
+
}
|
|
337
|
+
headerParameters = {};
|
|
338
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
339
|
+
urlPath = "/ui/users/v1/me/addresses/{id}";
|
|
340
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
341
|
+
return [2 /*return*/, {
|
|
342
|
+
path: urlPath,
|
|
343
|
+
method: 'PUT',
|
|
344
|
+
headers: headerParameters,
|
|
345
|
+
query: queryParameters,
|
|
346
|
+
body: (0, UserAddressDto_1.UserAddressDtoToJSON)(requestParameters['userAddressDto']),
|
|
347
|
+
}];
|
|
348
|
+
});
|
|
349
|
+
});
|
|
350
|
+
};
|
|
351
|
+
/**
|
|
352
|
+
* update an address of the logged-in user
|
|
353
|
+
*/
|
|
354
|
+
UsersMeAddressesApi.prototype.updateMyAddressRaw = function (requestParameters, initOverrides) {
|
|
355
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
356
|
+
var requestOptions, response;
|
|
357
|
+
return __generator(this, function (_a) {
|
|
358
|
+
switch (_a.label) {
|
|
359
|
+
case 0: return [4 /*yield*/, this.updateMyAddressRequestOpts(requestParameters)];
|
|
360
|
+
case 1:
|
|
361
|
+
requestOptions = _a.sent();
|
|
362
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
363
|
+
case 2:
|
|
364
|
+
response = _a.sent();
|
|
365
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UserAddressDto_1.UserAddressDtoFromJSON)(jsonValue); })];
|
|
366
|
+
}
|
|
367
|
+
});
|
|
368
|
+
});
|
|
369
|
+
};
|
|
370
|
+
/**
|
|
371
|
+
* update an address of the logged-in user
|
|
372
|
+
*/
|
|
373
|
+
UsersMeAddressesApi.prototype.updateMyAddress = function (requestParameters, initOverrides) {
|
|
374
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
375
|
+
var response;
|
|
376
|
+
return __generator(this, function (_a) {
|
|
377
|
+
switch (_a.label) {
|
|
378
|
+
case 0: return [4 /*yield*/, this.updateMyAddressRaw(requestParameters, initOverrides)];
|
|
379
|
+
case 1:
|
|
380
|
+
response = _a.sent();
|
|
381
|
+
return [4 /*yield*/, response.value()];
|
|
382
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
383
|
+
}
|
|
384
|
+
});
|
|
385
|
+
});
|
|
386
|
+
};
|
|
387
|
+
return UsersMeAddressesApi;
|
|
388
|
+
}(runtime.BaseAPI));
|
|
389
|
+
exports.UsersMeAddressesApi = UsersMeAddressesApi;
|
|
@@ -71,13 +71,13 @@ export declare class UsersMeApi extends runtime.BaseAPI {
|
|
|
71
71
|
*/
|
|
72
72
|
downloadMyCalendarEntryIcalRequestOpts(requestParameters: DownloadMyCalendarEntryIcalRequest): Promise<runtime.RequestOpts>;
|
|
73
73
|
/**
|
|
74
|
-
* A repeating entry is returned as series, including its repeat rule.
|
|
75
|
-
* download a calendar entry the logged-in user attends as iCalendar file
|
|
74
|
+
* A repeating entry is returned as series, including its repeat rule. An attendee receives an invitation (PUBLISH for a type without answers), an owner who is no attendee the published entry.
|
|
75
|
+
* download a calendar entry the logged-in user owns or attends as iCalendar file
|
|
76
76
|
*/
|
|
77
77
|
downloadMyCalendarEntryIcalRaw(requestParameters: DownloadMyCalendarEntryIcalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<runtime.HttpFile>>;
|
|
78
78
|
/**
|
|
79
|
-
* A repeating entry is returned as series, including its repeat rule.
|
|
80
|
-
* download a calendar entry the logged-in user attends as iCalendar file
|
|
79
|
+
* A repeating entry is returned as series, including its repeat rule. An attendee receives an invitation (PUBLISH for a type without answers), an owner who is no attendee the published entry.
|
|
80
|
+
* download a calendar entry the logged-in user owns or attends as iCalendar file
|
|
81
81
|
*/
|
|
82
82
|
downloadMyCalendarEntryIcal(requestParameters: DownloadMyCalendarEntryIcalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.HttpFile>;
|
|
83
83
|
/**
|
|
@@ -124,12 +124,12 @@ export declare class UsersMeApi extends runtime.BaseAPI {
|
|
|
124
124
|
getMyCalendarEntriesRequestOpts(requestParameters: GetMyCalendarEntriesRequest): Promise<runtime.RequestOpts>;
|
|
125
125
|
/**
|
|
126
126
|
* Every repeating entry is expanded into its occurrences, which are sorted by their start. Filterable fields: summary, location, type.name.
|
|
127
|
-
* list the calendar entries the logged-in user attends at any tenant overlapping a period
|
|
127
|
+
* list the calendar entries the logged-in user owns or attends at any tenant overlapping a period
|
|
128
128
|
*/
|
|
129
129
|
getMyCalendarEntriesRaw(requestParameters: GetMyCalendarEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AccountCalendarEntryDto>>>;
|
|
130
130
|
/**
|
|
131
131
|
* Every repeating entry is expanded into its occurrences, which are sorted by their start. Filterable fields: summary, location, type.name.
|
|
132
|
-
* list the calendar entries the logged-in user attends at any tenant overlapping a period
|
|
132
|
+
* list the calendar entries the logged-in user owns or attends at any tenant overlapping a period
|
|
133
133
|
*/
|
|
134
134
|
getMyCalendarEntries(requestParameters: GetMyCalendarEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountCalendarEntryDto>>;
|
|
135
135
|
/**
|
package/dist/apis/UsersMeApi.js
CHANGED
|
@@ -154,8 +154,8 @@ var UsersMeApi = /** @class */ (function (_super) {
|
|
|
154
154
|
});
|
|
155
155
|
};
|
|
156
156
|
/**
|
|
157
|
-
* A repeating entry is returned as series, including its repeat rule.
|
|
158
|
-
* download a calendar entry the logged-in user attends as iCalendar file
|
|
157
|
+
* A repeating entry is returned as series, including its repeat rule. An attendee receives an invitation (PUBLISH for a type without answers), an owner who is no attendee the published entry.
|
|
158
|
+
* download a calendar entry the logged-in user owns or attends as iCalendar file
|
|
159
159
|
*/
|
|
160
160
|
UsersMeApi.prototype.downloadMyCalendarEntryIcalRaw = function (requestParameters, initOverrides) {
|
|
161
161
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -174,8 +174,8 @@ var UsersMeApi = /** @class */ (function (_super) {
|
|
|
174
174
|
});
|
|
175
175
|
};
|
|
176
176
|
/**
|
|
177
|
-
* A repeating entry is returned as series, including its repeat rule.
|
|
178
|
-
* download a calendar entry the logged-in user attends as iCalendar file
|
|
177
|
+
* A repeating entry is returned as series, including its repeat rule. An attendee receives an invitation (PUBLISH for a type without answers), an owner who is no attendee the published entry.
|
|
178
|
+
* download a calendar entry the logged-in user owns or attends as iCalendar file
|
|
179
179
|
*/
|
|
180
180
|
UsersMeApi.prototype.downloadMyCalendarEntryIcal = function (requestParameters, initOverrides) {
|
|
181
181
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -403,7 +403,7 @@ var UsersMeApi = /** @class */ (function (_super) {
|
|
|
403
403
|
};
|
|
404
404
|
/**
|
|
405
405
|
* Every repeating entry is expanded into its occurrences, which are sorted by their start. Filterable fields: summary, location, type.name.
|
|
406
|
-
* list the calendar entries the logged-in user attends at any tenant overlapping a period
|
|
406
|
+
* list the calendar entries the logged-in user owns or attends at any tenant overlapping a period
|
|
407
407
|
*/
|
|
408
408
|
UsersMeApi.prototype.getMyCalendarEntriesRaw = function (requestParameters, initOverrides) {
|
|
409
409
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -423,7 +423,7 @@ var UsersMeApi = /** @class */ (function (_super) {
|
|
|
423
423
|
};
|
|
424
424
|
/**
|
|
425
425
|
* Every repeating entry is expanded into its occurrences, which are sorted by their start. Filterable fields: summary, location, type.name.
|
|
426
|
-
* list the calendar entries the logged-in user attends at any tenant overlapping a period
|
|
426
|
+
* list the calendar entries the logged-in user owns or attends at any tenant overlapping a period
|
|
427
427
|
*/
|
|
428
428
|
UsersMeApi.prototype.getMyCalendarEntries = function (requestParameters, initOverrides) {
|
|
429
429
|
return __awaiter(this, void 0, void 0, function () {
|