@connectedxm/admin-sdk 7.2.1 → 7.2.3
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 +1 -1
- package/README.md +4 -1
- package/api.ts +354 -15
- package/dist/api.d.ts +189 -15
- package/dist/api.js +256 -6
- package/dist/esm/api.d.ts +189 -15
- package/dist/esm/api.js +254 -4
- package/docs/AccountsApi.md +64 -0
- package/docs/BaseBooking.md +2 -0
- package/docs/Booking.md +4 -0
- package/docs/BookingsApi.md +120 -4
- package/docs/{GetBookingPlaceBookings200Response.md → GetAccountBookings200Response.md} +3 -3
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -688,6 +688,10 @@ export var GetAccountAddresses200ResponseStatusEnum;
|
|
|
688
688
|
(function (GetAccountAddresses200ResponseStatusEnum) {
|
|
689
689
|
GetAccountAddresses200ResponseStatusEnum["Ok"] = "ok";
|
|
690
690
|
})(GetAccountAddresses200ResponseStatusEnum || (GetAccountAddresses200ResponseStatusEnum = {}));
|
|
691
|
+
export var GetAccountBookings200ResponseStatusEnum;
|
|
692
|
+
(function (GetAccountBookings200ResponseStatusEnum) {
|
|
693
|
+
GetAccountBookings200ResponseStatusEnum["Ok"] = "ok";
|
|
694
|
+
})(GetAccountBookings200ResponseStatusEnum || (GetAccountBookings200ResponseStatusEnum = {}));
|
|
691
695
|
export var GetAccountEvents200ResponseStatusEnum;
|
|
692
696
|
(function (GetAccountEvents200ResponseStatusEnum) {
|
|
693
697
|
GetAccountEvents200ResponseStatusEnum["Ok"] = "ok";
|
|
@@ -796,10 +800,6 @@ export var GetBenefits200ResponseStatusEnum;
|
|
|
796
800
|
(function (GetBenefits200ResponseStatusEnum) {
|
|
797
801
|
GetBenefits200ResponseStatusEnum["Ok"] = "ok";
|
|
798
802
|
})(GetBenefits200ResponseStatusEnum || (GetBenefits200ResponseStatusEnum = {}));
|
|
799
|
-
export var GetBookingPlaceBookings200ResponseStatusEnum;
|
|
800
|
-
(function (GetBookingPlaceBookings200ResponseStatusEnum) {
|
|
801
|
-
GetBookingPlaceBookings200ResponseStatusEnum["Ok"] = "ok";
|
|
802
|
-
})(GetBookingPlaceBookings200ResponseStatusEnum || (GetBookingPlaceBookings200ResponseStatusEnum = {}));
|
|
803
803
|
export var GetBookingPlaceTranslation200ResponseStatusEnum;
|
|
804
804
|
(function (GetBookingPlaceTranslation200ResponseStatusEnum) {
|
|
805
805
|
GetBookingPlaceTranslation200ResponseStatusEnum["Ok"] = "ok";
|
|
@@ -2937,6 +2937,56 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
2937
2937
|
options: localVarRequestOptions,
|
|
2938
2938
|
};
|
|
2939
2939
|
}),
|
|
2940
|
+
/**
|
|
2941
|
+
* Get Account Bookings endpoint
|
|
2942
|
+
* @summary Get Account Bookings
|
|
2943
|
+
* @param {string} accountId The account identifier
|
|
2944
|
+
* @param {number} [page] Page number
|
|
2945
|
+
* @param {number} [pageSize] Number of items per page
|
|
2946
|
+
* @param {string} [orderBy] Field to order by
|
|
2947
|
+
* @param {string} [search] Search query
|
|
2948
|
+
* @param {*} [options] Override http request option.
|
|
2949
|
+
* @throws {RequiredError}
|
|
2950
|
+
*/
|
|
2951
|
+
getAccountBookings: (accountId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1) => __awaiter(this, [accountId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1], void 0, function* (accountId, page, pageSize, orderBy, search, options = {}) {
|
|
2952
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
2953
|
+
assertParamExists('getAccountBookings', 'accountId', accountId);
|
|
2954
|
+
const localVarPath = `/accounts/{accountId}/bookings`
|
|
2955
|
+
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
|
|
2956
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2957
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2958
|
+
let baseOptions;
|
|
2959
|
+
if (configuration) {
|
|
2960
|
+
baseOptions = configuration.baseOptions;
|
|
2961
|
+
}
|
|
2962
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2963
|
+
const localVarHeaderParameter = {};
|
|
2964
|
+
const localVarQueryParameter = {};
|
|
2965
|
+
// authentication ApiKeyAuth required
|
|
2966
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
2967
|
+
// authentication OrganizationId required
|
|
2968
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
2969
|
+
if (page !== undefined) {
|
|
2970
|
+
localVarQueryParameter['page'] = page;
|
|
2971
|
+
}
|
|
2972
|
+
if (pageSize !== undefined) {
|
|
2973
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
2974
|
+
}
|
|
2975
|
+
if (orderBy !== undefined) {
|
|
2976
|
+
localVarQueryParameter['orderBy'] = orderBy;
|
|
2977
|
+
}
|
|
2978
|
+
if (search !== undefined) {
|
|
2979
|
+
localVarQueryParameter['search'] = search;
|
|
2980
|
+
}
|
|
2981
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2982
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2983
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2984
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2985
|
+
return {
|
|
2986
|
+
url: toPathString(localVarUrlObj),
|
|
2987
|
+
options: localVarRequestOptions,
|
|
2988
|
+
};
|
|
2989
|
+
}),
|
|
2940
2990
|
/**
|
|
2941
2991
|
* Get Account Comments endpoint
|
|
2942
2992
|
* @summary Get Account Comments
|
|
@@ -3618,6 +3668,26 @@ export const AccountsApiFp = function (configuration) {
|
|
|
3618
3668
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3619
3669
|
});
|
|
3620
3670
|
},
|
|
3671
|
+
/**
|
|
3672
|
+
* Get Account Bookings endpoint
|
|
3673
|
+
* @summary Get Account Bookings
|
|
3674
|
+
* @param {string} accountId The account identifier
|
|
3675
|
+
* @param {number} [page] Page number
|
|
3676
|
+
* @param {number} [pageSize] Number of items per page
|
|
3677
|
+
* @param {string} [orderBy] Field to order by
|
|
3678
|
+
* @param {string} [search] Search query
|
|
3679
|
+
* @param {*} [options] Override http request option.
|
|
3680
|
+
* @throws {RequiredError}
|
|
3681
|
+
*/
|
|
3682
|
+
getAccountBookings(accountId, page, pageSize, orderBy, search, options) {
|
|
3683
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3684
|
+
var _a, _b, _c;
|
|
3685
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAccountBookings(accountId, page, pageSize, orderBy, search, options);
|
|
3686
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3687
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AccountsApi.getAccountBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3688
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3689
|
+
});
|
|
3690
|
+
},
|
|
3621
3691
|
/**
|
|
3622
3692
|
* Get Account Comments endpoint
|
|
3623
3693
|
* @summary Get Account Comments
|
|
@@ -3925,6 +3995,16 @@ export const AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
3925
3995
|
getAccountActivities(requestParameters, options) {
|
|
3926
3996
|
return localVarFp.getAccountActivities(requestParameters.accountId, requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
3927
3997
|
},
|
|
3998
|
+
/**
|
|
3999
|
+
* Get Account Bookings endpoint
|
|
4000
|
+
* @summary Get Account Bookings
|
|
4001
|
+
* @param {AccountsApiGetAccountBookingsRequest} requestParameters Request parameters.
|
|
4002
|
+
* @param {*} [options] Override http request option.
|
|
4003
|
+
* @throws {RequiredError}
|
|
4004
|
+
*/
|
|
4005
|
+
getAccountBookings(requestParameters, options) {
|
|
4006
|
+
return localVarFp.getAccountBookings(requestParameters.accountId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
4007
|
+
},
|
|
3928
4008
|
/**
|
|
3929
4009
|
* Get Account Comments endpoint
|
|
3930
4010
|
* @summary Get Account Comments
|
|
@@ -4120,6 +4200,16 @@ export class AccountsApi extends BaseAPI {
|
|
|
4120
4200
|
getAccountActivities(requestParameters, options) {
|
|
4121
4201
|
return AccountsApiFp(this.configuration).getAccountActivities(requestParameters.accountId, requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
4122
4202
|
}
|
|
4203
|
+
/**
|
|
4204
|
+
* Get Account Bookings endpoint
|
|
4205
|
+
* @summary Get Account Bookings
|
|
4206
|
+
* @param {AccountsApiGetAccountBookingsRequest} requestParameters Request parameters.
|
|
4207
|
+
* @param {*} [options] Override http request option.
|
|
4208
|
+
* @throws {RequiredError}
|
|
4209
|
+
*/
|
|
4210
|
+
getAccountBookings(requestParameters, options) {
|
|
4211
|
+
return AccountsApiFp(this.configuration).getAccountBookings(requestParameters.accountId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
4212
|
+
}
|
|
4123
4213
|
/**
|
|
4124
4214
|
* Get Account Comments endpoint
|
|
4125
4215
|
* @summary Get Account Comments
|
|
@@ -10770,6 +10860,48 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
10770
10860
|
options: localVarRequestOptions,
|
|
10771
10861
|
};
|
|
10772
10862
|
}),
|
|
10863
|
+
/**
|
|
10864
|
+
* Check In Booking endpoint
|
|
10865
|
+
* @summary Check In Booking
|
|
10866
|
+
* @param {string} placeId The place identifier
|
|
10867
|
+
* @param {string} spaceId The space identifier
|
|
10868
|
+
* @param {string} bookingId The booking identifier
|
|
10869
|
+
* @param {*} [options] Override http request option.
|
|
10870
|
+
* @throws {RequiredError}
|
|
10871
|
+
*/
|
|
10872
|
+
checkInBooking: (placeId_1, spaceId_1, bookingId_1, ...args_1) => __awaiter(this, [placeId_1, spaceId_1, bookingId_1, ...args_1], void 0, function* (placeId, spaceId, bookingId, options = {}) {
|
|
10873
|
+
// verify required parameter 'placeId' is not null or undefined
|
|
10874
|
+
assertParamExists('checkInBooking', 'placeId', placeId);
|
|
10875
|
+
// verify required parameter 'spaceId' is not null or undefined
|
|
10876
|
+
assertParamExists('checkInBooking', 'spaceId', spaceId);
|
|
10877
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
10878
|
+
assertParamExists('checkInBooking', 'bookingId', bookingId);
|
|
10879
|
+
const localVarPath = `/bookings/places/{placeId}/spaces/{spaceId}/bookings/{bookingId}/checkin`
|
|
10880
|
+
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
10881
|
+
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
10882
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
10883
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10884
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10885
|
+
let baseOptions;
|
|
10886
|
+
if (configuration) {
|
|
10887
|
+
baseOptions = configuration.baseOptions;
|
|
10888
|
+
}
|
|
10889
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
10890
|
+
const localVarHeaderParameter = {};
|
|
10891
|
+
const localVarQueryParameter = {};
|
|
10892
|
+
// authentication ApiKeyAuth required
|
|
10893
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
10894
|
+
// authentication OrganizationId required
|
|
10895
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
10896
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
10897
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10898
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10899
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10900
|
+
return {
|
|
10901
|
+
url: toPathString(localVarUrlObj),
|
|
10902
|
+
options: localVarRequestOptions,
|
|
10903
|
+
};
|
|
10904
|
+
}),
|
|
10773
10905
|
/**
|
|
10774
10906
|
* Create Booking endpoint
|
|
10775
10907
|
* @summary Create Booking
|
|
@@ -11827,6 +11959,48 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11827
11959
|
options: localVarRequestOptions,
|
|
11828
11960
|
};
|
|
11829
11961
|
}),
|
|
11962
|
+
/**
|
|
11963
|
+
* Undo Check In Booking endpoint
|
|
11964
|
+
* @summary Undo Check In Booking
|
|
11965
|
+
* @param {string} placeId The place identifier
|
|
11966
|
+
* @param {string} spaceId The space identifier
|
|
11967
|
+
* @param {string} bookingId The booking identifier
|
|
11968
|
+
* @param {*} [options] Override http request option.
|
|
11969
|
+
* @throws {RequiredError}
|
|
11970
|
+
*/
|
|
11971
|
+
undoCheckInBooking: (placeId_1, spaceId_1, bookingId_1, ...args_1) => __awaiter(this, [placeId_1, spaceId_1, bookingId_1, ...args_1], void 0, function* (placeId, spaceId, bookingId, options = {}) {
|
|
11972
|
+
// verify required parameter 'placeId' is not null or undefined
|
|
11973
|
+
assertParamExists('undoCheckInBooking', 'placeId', placeId);
|
|
11974
|
+
// verify required parameter 'spaceId' is not null or undefined
|
|
11975
|
+
assertParamExists('undoCheckInBooking', 'spaceId', spaceId);
|
|
11976
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
11977
|
+
assertParamExists('undoCheckInBooking', 'bookingId', bookingId);
|
|
11978
|
+
const localVarPath = `/bookings/places/{placeId}/spaces/{spaceId}/bookings/{bookingId}/checkin/undo`
|
|
11979
|
+
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11980
|
+
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
11981
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
11982
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11983
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11984
|
+
let baseOptions;
|
|
11985
|
+
if (configuration) {
|
|
11986
|
+
baseOptions = configuration.baseOptions;
|
|
11987
|
+
}
|
|
11988
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11989
|
+
const localVarHeaderParameter = {};
|
|
11990
|
+
const localVarQueryParameter = {};
|
|
11991
|
+
// authentication ApiKeyAuth required
|
|
11992
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
11993
|
+
// authentication OrganizationId required
|
|
11994
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
11995
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
11996
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11997
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11998
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11999
|
+
return {
|
|
12000
|
+
url: toPathString(localVarUrlObj),
|
|
12001
|
+
options: localVarRequestOptions,
|
|
12002
|
+
};
|
|
12003
|
+
}),
|
|
11830
12004
|
/**
|
|
11831
12005
|
* Update Booking endpoint
|
|
11832
12006
|
* @summary Update Booking
|
|
@@ -11918,6 +12092,24 @@ export const BookingsApiFp = function (configuration) {
|
|
|
11918
12092
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11919
12093
|
});
|
|
11920
12094
|
},
|
|
12095
|
+
/**
|
|
12096
|
+
* Check In Booking endpoint
|
|
12097
|
+
* @summary Check In Booking
|
|
12098
|
+
* @param {string} placeId The place identifier
|
|
12099
|
+
* @param {string} spaceId The space identifier
|
|
12100
|
+
* @param {string} bookingId The booking identifier
|
|
12101
|
+
* @param {*} [options] Override http request option.
|
|
12102
|
+
* @throws {RequiredError}
|
|
12103
|
+
*/
|
|
12104
|
+
checkInBooking(placeId, spaceId, bookingId, options) {
|
|
12105
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12106
|
+
var _a, _b, _c;
|
|
12107
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInBooking(placeId, spaceId, bookingId, options);
|
|
12108
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12109
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.checkInBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12110
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12111
|
+
});
|
|
12112
|
+
},
|
|
11921
12113
|
/**
|
|
11922
12114
|
* Create Booking endpoint
|
|
11923
12115
|
* @summary Create Booking
|
|
@@ -12354,6 +12546,24 @@ export const BookingsApiFp = function (configuration) {
|
|
|
12354
12546
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12355
12547
|
});
|
|
12356
12548
|
},
|
|
12549
|
+
/**
|
|
12550
|
+
* Undo Check In Booking endpoint
|
|
12551
|
+
* @summary Undo Check In Booking
|
|
12552
|
+
* @param {string} placeId The place identifier
|
|
12553
|
+
* @param {string} spaceId The space identifier
|
|
12554
|
+
* @param {string} bookingId The booking identifier
|
|
12555
|
+
* @param {*} [options] Override http request option.
|
|
12556
|
+
* @throws {RequiredError}
|
|
12557
|
+
*/
|
|
12558
|
+
undoCheckInBooking(placeId, spaceId, bookingId, options) {
|
|
12559
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12560
|
+
var _a, _b, _c;
|
|
12561
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.undoCheckInBooking(placeId, spaceId, bookingId, options);
|
|
12562
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12563
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.undoCheckInBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12564
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12565
|
+
});
|
|
12566
|
+
},
|
|
12357
12567
|
/**
|
|
12358
12568
|
* Update Booking endpoint
|
|
12359
12569
|
* @summary Update Booking
|
|
@@ -12401,6 +12611,16 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12401
12611
|
cancelBooking(requestParameters, options) {
|
|
12402
12612
|
return localVarFp.cancelBooking(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
12403
12613
|
},
|
|
12614
|
+
/**
|
|
12615
|
+
* Check In Booking endpoint
|
|
12616
|
+
* @summary Check In Booking
|
|
12617
|
+
* @param {BookingsApiCheckInBookingRequest} requestParameters Request parameters.
|
|
12618
|
+
* @param {*} [options] Override http request option.
|
|
12619
|
+
* @throws {RequiredError}
|
|
12620
|
+
*/
|
|
12621
|
+
checkInBooking(requestParameters, options) {
|
|
12622
|
+
return localVarFp.checkInBooking(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
12623
|
+
},
|
|
12404
12624
|
/**
|
|
12405
12625
|
* Create Booking endpoint
|
|
12406
12626
|
* @summary Create Booking
|
|
@@ -12631,6 +12851,16 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12631
12851
|
removeBookingSpaceTier(requestParameters, options) {
|
|
12632
12852
|
return localVarFp.removeBookingSpaceTier(requestParameters.placeId, requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(axios, basePath));
|
|
12633
12853
|
},
|
|
12854
|
+
/**
|
|
12855
|
+
* Undo Check In Booking endpoint
|
|
12856
|
+
* @summary Undo Check In Booking
|
|
12857
|
+
* @param {BookingsApiUndoCheckInBookingRequest} requestParameters Request parameters.
|
|
12858
|
+
* @param {*} [options] Override http request option.
|
|
12859
|
+
* @throws {RequiredError}
|
|
12860
|
+
*/
|
|
12861
|
+
undoCheckInBooking(requestParameters, options) {
|
|
12862
|
+
return localVarFp.undoCheckInBooking(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
12863
|
+
},
|
|
12634
12864
|
/**
|
|
12635
12865
|
* Update Booking endpoint
|
|
12636
12866
|
* @summary Update Booking
|
|
@@ -12667,6 +12897,16 @@ export class BookingsApi extends BaseAPI {
|
|
|
12667
12897
|
cancelBooking(requestParameters, options) {
|
|
12668
12898
|
return BookingsApiFp(this.configuration).cancelBooking(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
12669
12899
|
}
|
|
12900
|
+
/**
|
|
12901
|
+
* Check In Booking endpoint
|
|
12902
|
+
* @summary Check In Booking
|
|
12903
|
+
* @param {BookingsApiCheckInBookingRequest} requestParameters Request parameters.
|
|
12904
|
+
* @param {*} [options] Override http request option.
|
|
12905
|
+
* @throws {RequiredError}
|
|
12906
|
+
*/
|
|
12907
|
+
checkInBooking(requestParameters, options) {
|
|
12908
|
+
return BookingsApiFp(this.configuration).checkInBooking(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
12909
|
+
}
|
|
12670
12910
|
/**
|
|
12671
12911
|
* Create Booking endpoint
|
|
12672
12912
|
* @summary Create Booking
|
|
@@ -12897,6 +13137,16 @@ export class BookingsApi extends BaseAPI {
|
|
|
12897
13137
|
removeBookingSpaceTier(requestParameters, options) {
|
|
12898
13138
|
return BookingsApiFp(this.configuration).removeBookingSpaceTier(requestParameters.placeId, requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(this.axios, this.basePath));
|
|
12899
13139
|
}
|
|
13140
|
+
/**
|
|
13141
|
+
* Undo Check In Booking endpoint
|
|
13142
|
+
* @summary Undo Check In Booking
|
|
13143
|
+
* @param {BookingsApiUndoCheckInBookingRequest} requestParameters Request parameters.
|
|
13144
|
+
* @param {*} [options] Override http request option.
|
|
13145
|
+
* @throws {RequiredError}
|
|
13146
|
+
*/
|
|
13147
|
+
undoCheckInBooking(requestParameters, options) {
|
|
13148
|
+
return BookingsApiFp(this.configuration).undoCheckInBooking(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
13149
|
+
}
|
|
12900
13150
|
/**
|
|
12901
13151
|
* Update Booking endpoint
|
|
12902
13152
|
* @summary Update Booking
|
package/docs/AccountsApi.md
CHANGED
|
@@ -10,6 +10,7 @@ All URIs are relative to *https://admin-api.connected.dev*
|
|
|
10
10
|
|[**getAcccountEmailReceipts**](#getacccountemailreceipts) | **GET** /accounts/{accountId}/email-receipts | Get Acccount Email Receipts|
|
|
11
11
|
|[**getAccount**](#getaccount) | **GET** /accounts/{accountId} | Get Account|
|
|
12
12
|
|[**getAccountActivities**](#getaccountactivities) | **GET** /accounts/{accountId}/activities | Get Account Activities|
|
|
13
|
+
|[**getAccountBookings**](#getaccountbookings) | **GET** /accounts/{accountId}/bookings | Get Account Bookings|
|
|
13
14
|
|[**getAccountComments**](#getaccountcomments) | **GET** /accounts/{accountId}/comments | Get Account Comments|
|
|
14
15
|
|[**getAccountEvents**](#getaccountevents) | **GET** /accounts/{accountId}/events | Get Account Events|
|
|
15
16
|
|[**getAccountLikes**](#getaccountlikes) | **GET** /accounts/{accountId}/likes | Get Account Likes|
|
|
@@ -354,6 +355,69 @@ const { status, data } = await apiInstance.getAccountActivities(
|
|
|
354
355
|
- **Accept**: application/json
|
|
355
356
|
|
|
356
357
|
|
|
358
|
+
### HTTP response details
|
|
359
|
+
| Status code | Description | Response headers |
|
|
360
|
+
|-------------|-------------|------------------|
|
|
361
|
+
|**200** | Successful response | - |
|
|
362
|
+
|
|
363
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
364
|
+
|
|
365
|
+
# **getAccountBookings**
|
|
366
|
+
> GetAccountBookings200Response getAccountBookings()
|
|
367
|
+
|
|
368
|
+
Get Account Bookings endpoint
|
|
369
|
+
|
|
370
|
+
### Example
|
|
371
|
+
|
|
372
|
+
```typescript
|
|
373
|
+
import {
|
|
374
|
+
AccountsApi,
|
|
375
|
+
Configuration
|
|
376
|
+
} from '@connectedxm/admin-sdk';
|
|
377
|
+
|
|
378
|
+
const configuration = new Configuration();
|
|
379
|
+
const apiInstance = new AccountsApi(configuration);
|
|
380
|
+
|
|
381
|
+
let accountId: string; //The account identifier (default to undefined)
|
|
382
|
+
let page: number; //Page number (optional) (default to 1)
|
|
383
|
+
let pageSize: number; //Number of items per page (optional) (default to 25)
|
|
384
|
+
let orderBy: string; //Field to order by (optional) (default to undefined)
|
|
385
|
+
let search: string; //Search query (optional) (default to undefined)
|
|
386
|
+
|
|
387
|
+
const { status, data } = await apiInstance.getAccountBookings(
|
|
388
|
+
accountId,
|
|
389
|
+
page,
|
|
390
|
+
pageSize,
|
|
391
|
+
orderBy,
|
|
392
|
+
search
|
|
393
|
+
);
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
### Parameters
|
|
397
|
+
|
|
398
|
+
|Name | Type | Description | Notes|
|
|
399
|
+
|------------- | ------------- | ------------- | -------------|
|
|
400
|
+
| **accountId** | [**string**] | The account identifier | defaults to undefined|
|
|
401
|
+
| **page** | [**number**] | Page number | (optional) defaults to 1|
|
|
402
|
+
| **pageSize** | [**number**] | Number of items per page | (optional) defaults to 25|
|
|
403
|
+
| **orderBy** | [**string**] | Field to order by | (optional) defaults to undefined|
|
|
404
|
+
| **search** | [**string**] | Search query | (optional) defaults to undefined|
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
### Return type
|
|
408
|
+
|
|
409
|
+
**GetAccountBookings200Response**
|
|
410
|
+
|
|
411
|
+
### Authorization
|
|
412
|
+
|
|
413
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
|
|
414
|
+
|
|
415
|
+
### HTTP request headers
|
|
416
|
+
|
|
417
|
+
- **Content-Type**: Not defined
|
|
418
|
+
- **Accept**: application/json
|
|
419
|
+
|
|
420
|
+
|
|
357
421
|
### HTTP response details
|
|
358
422
|
| Status code | Description | Response headers |
|
|
359
423
|
|-------------|-------------|------------------|
|
package/docs/BaseBooking.md
CHANGED
|
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**day** | **string** | | [default to undefined]
|
|
12
12
|
**time** | **string** | | [default to undefined]
|
|
13
13
|
**duration** | **number** | | [default to undefined]
|
|
14
|
+
**checkedIn** | **string** | | [default to undefined]
|
|
14
15
|
**status** | [**PurchaseStatus**](PurchaseStatus.md) | | [default to undefined]
|
|
15
16
|
**account** | [**BaseAccount**](BaseAccount.md) | | [default to undefined]
|
|
16
17
|
**space** | [**BaseBookingSpace**](BaseBookingSpace.md) | | [default to undefined]
|
|
@@ -27,6 +28,7 @@ const instance: BaseBooking = {
|
|
|
27
28
|
day,
|
|
28
29
|
time,
|
|
29
30
|
duration,
|
|
31
|
+
checkedIn,
|
|
30
32
|
status,
|
|
31
33
|
account,
|
|
32
34
|
space,
|
package/docs/Booking.md
CHANGED
|
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**day** | **string** | | [default to undefined]
|
|
12
12
|
**time** | **string** | | [default to undefined]
|
|
13
13
|
**duration** | **number** | | [default to undefined]
|
|
14
|
+
**checkedIn** | **string** | | [default to undefined]
|
|
14
15
|
**status** | [**PurchaseStatus**](PurchaseStatus.md) | | [default to undefined]
|
|
15
16
|
**account** | [**BaseAccount**](BaseAccount.md) | | [default to undefined]
|
|
16
17
|
**space** | [**BaseBookingSpace**](BaseBookingSpace.md) | | [default to undefined]
|
|
@@ -18,6 +19,7 @@ Name | Type | Description | Notes
|
|
|
18
19
|
**createdAt** | **string** | | [default to undefined]
|
|
19
20
|
**updatedAt** | **string** | | [default to undefined]
|
|
20
21
|
**responses** | [**Array<BaseBookingQuestionResponse>**](BaseBookingQuestionResponse.md) | | [optional] [default to undefined]
|
|
22
|
+
**place** | [**BaseBookingPlace**](BaseBookingPlace.md) | | [optional] [default to undefined]
|
|
21
23
|
|
|
22
24
|
## Example
|
|
23
25
|
|
|
@@ -31,6 +33,7 @@ const instance: Booking = {
|
|
|
31
33
|
day,
|
|
32
34
|
time,
|
|
33
35
|
duration,
|
|
36
|
+
checkedIn,
|
|
34
37
|
status,
|
|
35
38
|
account,
|
|
36
39
|
space,
|
|
@@ -38,6 +41,7 @@ const instance: Booking = {
|
|
|
38
41
|
createdAt,
|
|
39
42
|
updatedAt,
|
|
40
43
|
responses,
|
|
44
|
+
place,
|
|
41
45
|
};
|
|
42
46
|
```
|
|
43
47
|
|
package/docs/BookingsApi.md
CHANGED
|
@@ -6,6 +6,7 @@ All URIs are relative to *https://admin-api.connected.dev*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**addBookingSpaceTier**](#addbookingspacetier) | **POST** /bookings/places/{placeId}/spaces/{spaceId}/tiers/{tierId} | Add Booking Space Tier|
|
|
8
8
|
|[**cancelBooking**](#cancelbooking) | **PUT** /bookings/places/{placeId}/spaces/{spaceId}/bookings/{bookingId}/cancel | Cancel Booking|
|
|
9
|
+
|[**checkInBooking**](#checkinbooking) | **POST** /bookings/places/{placeId}/spaces/{spaceId}/bookings/{bookingId}/checkin | Check In Booking|
|
|
9
10
|
|[**createBooking**](#createbooking) | **POST** /bookings/places/{placeId}/spaces/{spaceId}/bookings | Create Booking|
|
|
10
11
|
|[**deleteBooking**](#deletebooking) | **DELETE** /bookings/places/{placeId}/spaces/{spaceId}/bookings/{bookingId} | Delete Booking|
|
|
11
12
|
|[**getBooking**](#getbooking) | **GET** /bookings/{bookingId} | Get Booking|
|
|
@@ -29,6 +30,7 @@ All URIs are relative to *https://admin-api.connected.dev*
|
|
|
29
30
|
|[**getBookingSpaceTranslations**](#getbookingspacetranslations) | **GET** /bookings/places/{placeId}/spaces/{spaceId}/translations | Get Booking Space Translations|
|
|
30
31
|
|[**getBookingSpaces**](#getbookingspaces) | **GET** /bookings/places/{placeId}/spaces | Get Booking Spaces|
|
|
31
32
|
|[**removeBookingSpaceTier**](#removebookingspacetier) | **DELETE** /bookings/places/{placeId}/spaces/{spaceId}/tiers/{tierId} | Remove Booking Space Tier|
|
|
33
|
+
|[**undoCheckInBooking**](#undocheckinbooking) | **POST** /bookings/places/{placeId}/spaces/{spaceId}/bookings/{bookingId}/checkin/undo | Undo Check In Booking|
|
|
32
34
|
|[**updateBooking**](#updatebooking) | **PUT** /bookings/places/{placeId}/spaces/{spaceId}/bookings/{bookingId} | Update Booking|
|
|
33
35
|
|
|
34
36
|
# **addBookingSpaceTier**
|
|
@@ -124,6 +126,63 @@ const { status, data } = await apiInstance.cancelBooking(
|
|
|
124
126
|
| **bookingId** | [**string**] | The booking identifier | defaults to undefined|
|
|
125
127
|
|
|
126
128
|
|
|
129
|
+
### Return type
|
|
130
|
+
|
|
131
|
+
**CreateBooking200Response**
|
|
132
|
+
|
|
133
|
+
### Authorization
|
|
134
|
+
|
|
135
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
|
|
136
|
+
|
|
137
|
+
### HTTP request headers
|
|
138
|
+
|
|
139
|
+
- **Content-Type**: Not defined
|
|
140
|
+
- **Accept**: application/json
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
### HTTP response details
|
|
144
|
+
| Status code | Description | Response headers |
|
|
145
|
+
|-------------|-------------|------------------|
|
|
146
|
+
|**200** | Successful response | - |
|
|
147
|
+
|
|
148
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
149
|
+
|
|
150
|
+
# **checkInBooking**
|
|
151
|
+
> CreateBooking200Response checkInBooking()
|
|
152
|
+
|
|
153
|
+
Check In Booking endpoint
|
|
154
|
+
|
|
155
|
+
### Example
|
|
156
|
+
|
|
157
|
+
```typescript
|
|
158
|
+
import {
|
|
159
|
+
BookingsApi,
|
|
160
|
+
Configuration
|
|
161
|
+
} from '@connectedxm/admin-sdk';
|
|
162
|
+
|
|
163
|
+
const configuration = new Configuration();
|
|
164
|
+
const apiInstance = new BookingsApi(configuration);
|
|
165
|
+
|
|
166
|
+
let placeId: string; //The place identifier (default to undefined)
|
|
167
|
+
let spaceId: string; //The space identifier (default to undefined)
|
|
168
|
+
let bookingId: string; //The booking identifier (default to undefined)
|
|
169
|
+
|
|
170
|
+
const { status, data } = await apiInstance.checkInBooking(
|
|
171
|
+
placeId,
|
|
172
|
+
spaceId,
|
|
173
|
+
bookingId
|
|
174
|
+
);
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### Parameters
|
|
178
|
+
|
|
179
|
+
|Name | Type | Description | Notes|
|
|
180
|
+
|------------- | ------------- | ------------- | -------------|
|
|
181
|
+
| **placeId** | [**string**] | The place identifier | defaults to undefined|
|
|
182
|
+
| **spaceId** | [**string**] | The space identifier | defaults to undefined|
|
|
183
|
+
| **bookingId** | [**string**] | The booking identifier | defaults to undefined|
|
|
184
|
+
|
|
185
|
+
|
|
127
186
|
### Return type
|
|
128
187
|
|
|
129
188
|
**CreateBooking200Response**
|
|
@@ -363,7 +422,7 @@ const { status, data } = await apiInstance.getBookingPlace(
|
|
|
363
422
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
364
423
|
|
|
365
424
|
# **getBookingPlaceBookings**
|
|
366
|
-
>
|
|
425
|
+
> GetAccountBookings200Response getBookingPlaceBookings()
|
|
367
426
|
|
|
368
427
|
Get Booking Place Bookings endpoint
|
|
369
428
|
|
|
@@ -412,7 +471,7 @@ const { status, data } = await apiInstance.getBookingPlaceBookings(
|
|
|
412
471
|
|
|
413
472
|
### Return type
|
|
414
473
|
|
|
415
|
-
**
|
|
474
|
+
**GetAccountBookings200Response**
|
|
416
475
|
|
|
417
476
|
### Authorization
|
|
418
477
|
|
|
@@ -1014,7 +1073,7 @@ const { status, data } = await apiInstance.getBookingSpaceBlackouts(
|
|
|
1014
1073
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1015
1074
|
|
|
1016
1075
|
# **getBookingSpaceBookings**
|
|
1017
|
-
>
|
|
1076
|
+
> GetAccountBookings200Response getBookingSpaceBookings()
|
|
1018
1077
|
|
|
1019
1078
|
Get Booking Space Bookings endpoint
|
|
1020
1079
|
|
|
@@ -1066,7 +1125,7 @@ const { status, data } = await apiInstance.getBookingSpaceBookings(
|
|
|
1066
1125
|
|
|
1067
1126
|
### Return type
|
|
1068
1127
|
|
|
1069
|
-
**
|
|
1128
|
+
**GetAccountBookings200Response**
|
|
1070
1129
|
|
|
1071
1130
|
### Authorization
|
|
1072
1131
|
|
|
@@ -1516,6 +1575,63 @@ const { status, data } = await apiInstance.removeBookingSpaceTier(
|
|
|
1516
1575
|
- **Accept**: application/json
|
|
1517
1576
|
|
|
1518
1577
|
|
|
1578
|
+
### HTTP response details
|
|
1579
|
+
| Status code | Description | Response headers |
|
|
1580
|
+
|-------------|-------------|------------------|
|
|
1581
|
+
|**200** | Successful response | - |
|
|
1582
|
+
|
|
1583
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1584
|
+
|
|
1585
|
+
# **undoCheckInBooking**
|
|
1586
|
+
> CreateBooking200Response undoCheckInBooking()
|
|
1587
|
+
|
|
1588
|
+
Undo Check In Booking endpoint
|
|
1589
|
+
|
|
1590
|
+
### Example
|
|
1591
|
+
|
|
1592
|
+
```typescript
|
|
1593
|
+
import {
|
|
1594
|
+
BookingsApi,
|
|
1595
|
+
Configuration
|
|
1596
|
+
} from '@connectedxm/admin-sdk';
|
|
1597
|
+
|
|
1598
|
+
const configuration = new Configuration();
|
|
1599
|
+
const apiInstance = new BookingsApi(configuration);
|
|
1600
|
+
|
|
1601
|
+
let placeId: string; //The place identifier (default to undefined)
|
|
1602
|
+
let spaceId: string; //The space identifier (default to undefined)
|
|
1603
|
+
let bookingId: string; //The booking identifier (default to undefined)
|
|
1604
|
+
|
|
1605
|
+
const { status, data } = await apiInstance.undoCheckInBooking(
|
|
1606
|
+
placeId,
|
|
1607
|
+
spaceId,
|
|
1608
|
+
bookingId
|
|
1609
|
+
);
|
|
1610
|
+
```
|
|
1611
|
+
|
|
1612
|
+
### Parameters
|
|
1613
|
+
|
|
1614
|
+
|Name | Type | Description | Notes|
|
|
1615
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1616
|
+
| **placeId** | [**string**] | The place identifier | defaults to undefined|
|
|
1617
|
+
| **spaceId** | [**string**] | The space identifier | defaults to undefined|
|
|
1618
|
+
| **bookingId** | [**string**] | The booking identifier | defaults to undefined|
|
|
1619
|
+
|
|
1620
|
+
|
|
1621
|
+
### Return type
|
|
1622
|
+
|
|
1623
|
+
**CreateBooking200Response**
|
|
1624
|
+
|
|
1625
|
+
### Authorization
|
|
1626
|
+
|
|
1627
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
|
|
1628
|
+
|
|
1629
|
+
### HTTP request headers
|
|
1630
|
+
|
|
1631
|
+
- **Content-Type**: Not defined
|
|
1632
|
+
- **Accept**: application/json
|
|
1633
|
+
|
|
1634
|
+
|
|
1519
1635
|
### HTTP response details
|
|
1520
1636
|
| Status code | Description | Response headers |
|
|
1521
1637
|
|-------------|-------------|------------------|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# GetAccountBookings200Response
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -13,9 +13,9 @@ Name | Type | Description | Notes
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import {
|
|
16
|
+
import { GetAccountBookings200Response } from '@connectedxm/admin-sdk';
|
|
17
17
|
|
|
18
|
-
const instance:
|
|
18
|
+
const instance: GetAccountBookings200Response = {
|
|
19
19
|
status,
|
|
20
20
|
message,
|
|
21
21
|
data,
|