@wix/bookings 1.0.205 → 1.0.207
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/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +2 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +2 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/src/bookings-services-v2-service.types.d.ts +3 -3
- package/build/cjs/src/bookings-services-v2-service.universal.d.ts +3 -3
- package/build/cjs/src/bookings-v1-category.http.d.ts +15 -0
- package/build/cjs/src/bookings-v1-category.http.js +249 -0
- package/build/cjs/src/bookings-v1-category.http.js.map +1 -0
- package/build/cjs/src/bookings-v1-category.public.d.ts +11 -0
- package/build/cjs/src/bookings-v1-category.public.js +33 -0
- package/build/cjs/src/bookings-v1-category.public.js.map +1 -0
- package/build/cjs/src/bookings-v1-category.types.d.ts +92 -0
- package/build/cjs/src/bookings-v1-category.types.js +17 -0
- package/build/cjs/src/bookings-v1-category.types.js.map +1 -0
- package/build/cjs/src/bookings-v1-category.universal.d.ts +179 -0
- package/build/cjs/src/bookings-v1-category.universal.js +295 -0
- package/build/cjs/src/bookings-v1-category.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +1 -0
- package/build/es/index.js.map +1 -1
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +1 -0
- package/build/es/index.typings.js.map +1 -1
- package/build/es/src/bookings-services-v2-service.types.d.ts +3 -3
- package/build/es/src/bookings-services-v2-service.universal.d.ts +3 -3
- package/build/es/src/bookings-v1-category.http.d.ts +15 -0
- package/build/es/src/bookings-v1-category.http.js +242 -0
- package/build/es/src/bookings-v1-category.http.js.map +1 -0
- package/build/es/src/bookings-v1-category.public.d.ts +11 -0
- package/build/es/src/bookings-v1-category.public.js +24 -0
- package/build/es/src/bookings-v1-category.public.js.map +1 -0
- package/build/es/src/bookings-v1-category.types.d.ts +92 -0
- package/build/es/src/bookings-v1-category.types.js +14 -0
- package/build/es/src/bookings-v1-category.types.js.map +1 -0
- package/build/es/src/bookings-v1-category.universal.d.ts +179 -0
- package/build/es/src/bookings-v1-category.universal.js +269 -0
- package/build/es/src/bookings-v1-category.universal.js.map +1 -0
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * as resources from './src/bookings-catalog-v1-resource.public';
|
|
|
7
7
|
export * as serviceOptionsAndVariants from './src/bookings-catalog-v1-service-options-and-variants.public';
|
|
8
8
|
export * as extendedBookings from './src/bookings-reader-v2-extended-booking.public';
|
|
9
9
|
export * as services from './src/bookings-services-v2-service.public';
|
|
10
|
+
export * as categories from './src/bookings-v1-category.public';
|
|
10
11
|
export * as attendance from './src/bookings-v2-attendance.public';
|
|
11
12
|
export * as bookings from './src/bookings-v2-booking.public';
|
|
12
13
|
export * as pricing from './src/bookings-v2-price-info.public';
|
package/build/cjs/index.js
CHANGED
|
@@ -19,7 +19,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.pricing = exports.bookings = exports.attendance = exports.services = exports.extendedBookings = exports.serviceOptionsAndVariants = exports.resources = exports.sessionsView = exports.externalCalendars = exports.sessions = exports.availabilityCalendar = exports.sessionsFeed = void 0;
|
|
22
|
+
exports.pricing = exports.bookings = exports.attendance = exports.categories = exports.services = exports.extendedBookings = exports.serviceOptionsAndVariants = exports.resources = exports.sessionsView = exports.externalCalendars = exports.sessions = exports.availabilityCalendar = exports.sessionsFeed = void 0;
|
|
23
23
|
exports.sessionsFeed = __importStar(require("./src/bookings-calendar-v2-session-feed-event.public"));
|
|
24
24
|
exports.availabilityCalendar = __importStar(require("./src/bookings-availability-v1-slot-availability.public"));
|
|
25
25
|
exports.sessions = __importStar(require("./src/bookings-calendar-v1-session.public"));
|
|
@@ -29,6 +29,7 @@ exports.resources = __importStar(require("./src/bookings-catalog-v1-resource.pub
|
|
|
29
29
|
exports.serviceOptionsAndVariants = __importStar(require("./src/bookings-catalog-v1-service-options-and-variants.public"));
|
|
30
30
|
exports.extendedBookings = __importStar(require("./src/bookings-reader-v2-extended-booking.public"));
|
|
31
31
|
exports.services = __importStar(require("./src/bookings-services-v2-service.public"));
|
|
32
|
+
exports.categories = __importStar(require("./src/bookings-v1-category.public"));
|
|
32
33
|
exports.attendance = __importStar(require("./src/bookings-v2-attendance.public"));
|
|
33
34
|
exports.bookings = __importStar(require("./src/bookings-v2-booking.public"));
|
|
34
35
|
exports.pricing = __importStar(require("./src/bookings-v2-price-info.public"));
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,qGAAqF;AACrF,gHAAgG;AAChG,sFAAsE;AACtE,yGAAyF;AACzF,+FAA+E;AAC/E,uFAAuE;AACvE,2HAA2G;AAC3G,qGAAqF;AACrF,sFAAsE;AACtE,kFAAkE;AAClE,6EAA6D;AAC7D,+EAA+D"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,qGAAqF;AACrF,gHAAgG;AAChG,sFAAsE;AACtE,yGAAyF;AACzF,+FAA+E;AAC/E,uFAAuE;AACvE,2HAA2G;AAC3G,qGAAqF;AACrF,sFAAsE;AACtE,gFAAgE;AAChE,kFAAkE;AAClE,6EAA6D;AAC7D,+EAA+D"}
|
|
@@ -6,6 +6,7 @@ export * as resources from './src/bookings-catalog-v1-resource.universal';
|
|
|
6
6
|
export * as serviceOptionsAndVariants from './src/bookings-catalog-v1-service-options-and-variants.universal';
|
|
7
7
|
export * as extendedBookings from './src/bookings-reader-v2-extended-booking.universal';
|
|
8
8
|
export * as services from './src/bookings-services-v2-service.universal';
|
|
9
|
+
export * as categories from './src/bookings-v1-category.universal';
|
|
9
10
|
export * as attendance from './src/bookings-v2-attendance.universal';
|
|
10
11
|
export * as bookings from './src/bookings-v2-booking.universal';
|
|
11
12
|
export * as pricing from './src/bookings-v2-price-info.universal';
|
|
@@ -19,7 +19,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.pricing = exports.bookings = exports.attendance = exports.services = exports.extendedBookings = exports.serviceOptionsAndVariants = exports.resources = exports.sessionsView = exports.externalCalendars = exports.sessions = exports.availabilityCalendar = void 0;
|
|
22
|
+
exports.pricing = exports.bookings = exports.attendance = exports.categories = exports.services = exports.extendedBookings = exports.serviceOptionsAndVariants = exports.resources = exports.sessionsView = exports.externalCalendars = exports.sessions = exports.availabilityCalendar = void 0;
|
|
23
23
|
exports.availabilityCalendar = __importStar(require("./src/bookings-availability-v1-slot-availability.universal"));
|
|
24
24
|
exports.sessions = __importStar(require("./src/bookings-calendar-v1-session.universal"));
|
|
25
25
|
exports.externalCalendars = __importStar(require("./src/bookings-calendar-v2-external-calendar.universal"));
|
|
@@ -28,6 +28,7 @@ exports.resources = __importStar(require("./src/bookings-catalog-v1-resource.uni
|
|
|
28
28
|
exports.serviceOptionsAndVariants = __importStar(require("./src/bookings-catalog-v1-service-options-and-variants.universal"));
|
|
29
29
|
exports.extendedBookings = __importStar(require("./src/bookings-reader-v2-extended-booking.universal"));
|
|
30
30
|
exports.services = __importStar(require("./src/bookings-services-v2-service.universal"));
|
|
31
|
+
exports.categories = __importStar(require("./src/bookings-v1-category.universal"));
|
|
31
32
|
exports.attendance = __importStar(require("./src/bookings-v2-attendance.universal"));
|
|
32
33
|
exports.bookings = __importStar(require("./src/bookings-v2-booking.universal"));
|
|
33
34
|
exports.pricing = __importStar(require("./src/bookings-v2-price-info.universal"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,mHAAmG;AACnG,yFAAyE;AACzE,4GAA4F;AAC5F,kGAAkF;AAClF,0FAA0E;AAC1E,8HAA8G;AAC9G,wGAAwF;AACxF,yFAAyE;AACzE,qFAAqE;AACrE,gFAAgE;AAChE,kFAAkE"}
|
|
1
|
+
{"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,mHAAmG;AACnG,yFAAyE;AACzE,4GAA4F;AAC5F,kGAAkF;AAClF,0FAA0E;AAC1E,8HAA8G;AAC9G,wGAAwF;AACxF,yFAAyE;AACzE,mFAAmE;AACnE,qFAAqE;AACrE,gFAAgE;AAChE,kFAAkE"}
|
|
@@ -2427,15 +2427,15 @@ export interface SetServiceLocationsRequest {
|
|
|
2427
2427
|
serviceId?: string;
|
|
2428
2428
|
/** The locations you specify replace the existing service locations. */
|
|
2429
2429
|
locations?: Location[];
|
|
2430
|
-
/** The action to perform on sessions currently set to a removed location. */
|
|
2430
|
+
/** The action to perform on sessions currently set to a removed location. For example, move existing sessions to a new specified location. */
|
|
2431
2431
|
removedLocationSessionsAction?: RemovedLocationSessionsAction;
|
|
2432
|
-
/** Whether to notify participants about the change, and an optional custom message. */
|
|
2432
|
+
/** Whether to notify participants about the change of location, and an optional custom message. */
|
|
2433
2433
|
participantNotification?: ParticipantNotification;
|
|
2434
2434
|
}
|
|
2435
2435
|
export interface RemovedLocationSessionsAction extends RemovedLocationSessionsActionActionOptionsOneOf {
|
|
2436
2436
|
/** Options related to the action, such as a new location to move existing sessions to. */
|
|
2437
2437
|
moveToLocationOptions?: MoveToNewLocationsOptions;
|
|
2438
|
-
/** The action to perform on sessions currently set to a removed location. */
|
|
2438
|
+
/** The action to perform on sessions currently set to a removed location. For example, move existing sessions to a new specified location. */
|
|
2439
2439
|
action?: Action;
|
|
2440
2440
|
}
|
|
2441
2441
|
/** @oneof */
|
|
@@ -2384,15 +2384,15 @@ export interface SetServiceLocationsRequest {
|
|
|
2384
2384
|
serviceId?: string;
|
|
2385
2385
|
/** The locations you specify replace the existing service locations. */
|
|
2386
2386
|
locations?: Location[];
|
|
2387
|
-
/** The action to perform on sessions currently set to a removed location. */
|
|
2387
|
+
/** The action to perform on sessions currently set to a removed location. For example, move existing sessions to a new specified location. */
|
|
2388
2388
|
removedLocationSessionsAction?: RemovedLocationSessionsAction;
|
|
2389
|
-
/** Whether to notify participants about the change, and an optional custom message. */
|
|
2389
|
+
/** Whether to notify participants about the change of location, and an optional custom message. */
|
|
2390
2390
|
participantNotification?: ParticipantNotification;
|
|
2391
2391
|
}
|
|
2392
2392
|
export interface RemovedLocationSessionsAction extends RemovedLocationSessionsActionActionOptionsOneOf {
|
|
2393
2393
|
/** Options related to the action, such as a new location to move existing sessions to. */
|
|
2394
2394
|
moveToLocationOptions?: MoveToNewLocationsOptions;
|
|
2395
|
-
/** The action to perform on sessions currently set to a removed location. */
|
|
2395
|
+
/** The action to perform on sessions currently set to a removed location. For example, move existing sessions to a new specified location. */
|
|
2396
2396
|
action?: Action;
|
|
2397
2397
|
}
|
|
2398
2398
|
/** @oneof */
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
+
import { CreateCategoryRequest, CreateCategoryResponse, DeleteCategoryRequest, DeleteCategoryResponse, ListCategoryRequest, ListCategoryResponse, UpdateCategoryRequest, UpdateCategoryResponse } from './bookings-v1-category.types';
|
|
3
|
+
/**
|
|
4
|
+
* Lists all categories.
|
|
5
|
+
*
|
|
6
|
+
* > **Permissions**
|
|
7
|
+
* > This endpoint requires the Read Bookings - Public Data or the Read Bookings - Including Participants permissions scope
|
|
8
|
+
*/
|
|
9
|
+
export declare function list(payload: ListCategoryRequest): RequestOptionsFactory<ListCategoryResponse>;
|
|
10
|
+
/** Creates a new category. */
|
|
11
|
+
export declare function create(payload: CreateCategoryRequest): RequestOptionsFactory<CreateCategoryResponse>;
|
|
12
|
+
/** Updates an existing category. */
|
|
13
|
+
export declare function update(payload: UpdateCategoryRequest): RequestOptionsFactory<UpdateCategoryResponse>;
|
|
14
|
+
/** Deletes a category. */
|
|
15
|
+
export declare function _delete(payload: DeleteCategoryRequest): RequestOptionsFactory<DeleteCategoryResponse>;
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._delete = exports.update = exports.create = exports.list = void 0;
|
|
4
|
+
const metro_runtime_1 = require("@wix/metro-runtime");
|
|
5
|
+
const ambassador_1 = require("@wix/metro-runtime/ambassador");
|
|
6
|
+
const metro_runtime_2 = require("@wix/metro-runtime");
|
|
7
|
+
const _createCategoryRequest = {};
|
|
8
|
+
const _createCategoryResponse = {};
|
|
9
|
+
const _deleteCategoryRequest = {};
|
|
10
|
+
const _deleteCategoryResponse = {};
|
|
11
|
+
const _listCategoryRequest = {};
|
|
12
|
+
const _listCategoryResponse = {};
|
|
13
|
+
const _updateCategoryRequest = {};
|
|
14
|
+
const _updateCategoryResponse = {};
|
|
15
|
+
function resolveComWixpressBookingsServicesApiV1CategoriesServiceUrl(opts) {
|
|
16
|
+
const domainToMappings = {
|
|
17
|
+
'bookings._base_domain_': [
|
|
18
|
+
{
|
|
19
|
+
srcPath: '/_api/services-server',
|
|
20
|
+
destPath: '',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
srcPath: '/internal/services-server',
|
|
24
|
+
destPath: '/internal',
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
_api_base_domain_: [
|
|
28
|
+
{
|
|
29
|
+
srcPath: '/services-server',
|
|
30
|
+
destPath: '',
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
'api._api_base_domain_': [
|
|
34
|
+
{
|
|
35
|
+
srcPath: '/services-server',
|
|
36
|
+
destPath: '',
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
'www._base_domain_': [
|
|
40
|
+
{
|
|
41
|
+
srcPath: '/_api/services-server',
|
|
42
|
+
destPath: '',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
srcPath: '/_api/bookings/v1/categories',
|
|
46
|
+
destPath: '/v1/categories',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
srcPath: '/_api/bookings/v1/services',
|
|
50
|
+
destPath: '/v1/services',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
srcPath: '/_api/bookings/v1/forms',
|
|
54
|
+
destPath: '/v1/forms',
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
'www.wixapis.com': [
|
|
58
|
+
{
|
|
59
|
+
srcPath: '/bookings/v1/categories',
|
|
60
|
+
destPath: '/v1/categories',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
srcPath: '/bookings/v1/forms',
|
|
64
|
+
destPath: '/v1/forms',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
srcPath: '/bookings/v1/services',
|
|
68
|
+
destPath: '/v1/services',
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
'manage._base_domain_': [
|
|
72
|
+
{
|
|
73
|
+
srcPath: '/_api/services-server',
|
|
74
|
+
destPath: '',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
srcPath: '/_api/bookings/v1/categories',
|
|
78
|
+
destPath: '/v1/categories',
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
srcPath: '/_api/bookings/v1/services',
|
|
82
|
+
destPath: '/v1/services',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
srcPath: '/_api/bookings/v1/forms',
|
|
86
|
+
destPath: '/v1/forms',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
srcPath: '/_api/bookings/v1/services/batch',
|
|
90
|
+
destPath: '/v1/services/batch',
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
srcPath: '/_api/bookings/v1/batch/categories',
|
|
94
|
+
destPath: '/v1/batch/categories',
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
'editor._base_domain_': [
|
|
98
|
+
{
|
|
99
|
+
srcPath: '/_api/bookings/v1/services',
|
|
100
|
+
destPath: '/v1/services',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
srcPath: '/_api/bookings/v1/categories',
|
|
104
|
+
destPath: '/v1/categories',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
srcPath: '/internal/services-server',
|
|
108
|
+
destPath: '/internal',
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
'blocks._base_domain_': [
|
|
112
|
+
{
|
|
113
|
+
srcPath: '/_api/bookings/v1/services',
|
|
114
|
+
destPath: '/v1/services',
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
srcPath: '/_api/bookings/v1/categories',
|
|
118
|
+
destPath: '/v1/categories',
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
srcPath: '/internal/services-server',
|
|
122
|
+
destPath: '/internal',
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
'create.editorx': [
|
|
126
|
+
{
|
|
127
|
+
srcPath: '/_api/bookings/v1/services',
|
|
128
|
+
destPath: '/v1/services',
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
srcPath: '/_api/bookings/v1/categories',
|
|
132
|
+
destPath: '/v1/categories',
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
srcPath: '/internal/services-server',
|
|
136
|
+
destPath: '/internal',
|
|
137
|
+
},
|
|
138
|
+
],
|
|
139
|
+
'*.dev.wix-code.com': [
|
|
140
|
+
{
|
|
141
|
+
srcPath: '/_api/services-server',
|
|
142
|
+
destPath: '',
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
};
|
|
146
|
+
return (0, metro_runtime_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Lists all categories.
|
|
150
|
+
*
|
|
151
|
+
* > **Permissions**
|
|
152
|
+
* > This endpoint requires the Read Bookings - Public Data or the Read Bookings - Including Participants permissions scope
|
|
153
|
+
*/
|
|
154
|
+
function list(payload) {
|
|
155
|
+
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_listCategoryRequest, {});
|
|
156
|
+
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_listCategoryResponse, {});
|
|
157
|
+
function __list({ host }) {
|
|
158
|
+
const serializedData = toReq(payload);
|
|
159
|
+
const metadata = {
|
|
160
|
+
entityFqdn: 'wix.bookings.v1.category',
|
|
161
|
+
method: 'GET',
|
|
162
|
+
methodFqn: 'com.wixpress.bookings.services.api.v1.CategoriesService.List',
|
|
163
|
+
url: resolveComWixpressBookingsServicesApiV1CategoriesServiceUrl({
|
|
164
|
+
protoPath: '/v1/categories',
|
|
165
|
+
data: serializedData,
|
|
166
|
+
host,
|
|
167
|
+
}),
|
|
168
|
+
params: (0, metro_runtime_1.toURLSearchParams)(serializedData),
|
|
169
|
+
transformResponse: fromRes,
|
|
170
|
+
};
|
|
171
|
+
return metadata;
|
|
172
|
+
}
|
|
173
|
+
__list.fromReq = fromReq;
|
|
174
|
+
return __list;
|
|
175
|
+
}
|
|
176
|
+
exports.list = list;
|
|
177
|
+
/** Creates a new category. */
|
|
178
|
+
function create(payload) {
|
|
179
|
+
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_createCategoryRequest, {});
|
|
180
|
+
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_createCategoryResponse, {});
|
|
181
|
+
function __create({ host }) {
|
|
182
|
+
const serializedData = toReq(payload);
|
|
183
|
+
const metadata = {
|
|
184
|
+
entityFqdn: 'wix.bookings.v1.category',
|
|
185
|
+
method: 'POST',
|
|
186
|
+
methodFqn: 'com.wixpress.bookings.services.api.v1.CategoriesService.Create',
|
|
187
|
+
url: resolveComWixpressBookingsServicesApiV1CategoriesServiceUrl({
|
|
188
|
+
protoPath: '/v1/categories',
|
|
189
|
+
data: serializedData,
|
|
190
|
+
host,
|
|
191
|
+
}),
|
|
192
|
+
data: serializedData,
|
|
193
|
+
transformResponse: fromRes,
|
|
194
|
+
};
|
|
195
|
+
return metadata;
|
|
196
|
+
}
|
|
197
|
+
__create.fromReq = fromReq;
|
|
198
|
+
return __create;
|
|
199
|
+
}
|
|
200
|
+
exports.create = create;
|
|
201
|
+
/** Updates an existing category. */
|
|
202
|
+
function update(payload) {
|
|
203
|
+
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_updateCategoryRequest, {});
|
|
204
|
+
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_updateCategoryResponse, {});
|
|
205
|
+
function __update({ host }) {
|
|
206
|
+
const serializedData = toReq(payload);
|
|
207
|
+
const metadata = {
|
|
208
|
+
entityFqdn: 'wix.bookings.v1.category',
|
|
209
|
+
method: 'PUT',
|
|
210
|
+
methodFqn: 'com.wixpress.bookings.services.api.v1.CategoriesService.Update',
|
|
211
|
+
url: resolveComWixpressBookingsServicesApiV1CategoriesServiceUrl({
|
|
212
|
+
protoPath: '/v1/categories/{category.id}',
|
|
213
|
+
data: serializedData,
|
|
214
|
+
host,
|
|
215
|
+
}),
|
|
216
|
+
data: serializedData,
|
|
217
|
+
transformResponse: fromRes,
|
|
218
|
+
};
|
|
219
|
+
return metadata;
|
|
220
|
+
}
|
|
221
|
+
__update.fromReq = fromReq;
|
|
222
|
+
return __update;
|
|
223
|
+
}
|
|
224
|
+
exports.update = update;
|
|
225
|
+
/** Deletes a category. */
|
|
226
|
+
function _delete(payload) {
|
|
227
|
+
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_deleteCategoryRequest, {});
|
|
228
|
+
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_deleteCategoryResponse, {});
|
|
229
|
+
function ___delete({ host }) {
|
|
230
|
+
const serializedData = toReq(payload);
|
|
231
|
+
const metadata = {
|
|
232
|
+
entityFqdn: 'wix.bookings.v1.category',
|
|
233
|
+
method: 'DELETE',
|
|
234
|
+
methodFqn: 'com.wixpress.bookings.services.api.v1.CategoriesService._delete',
|
|
235
|
+
url: resolveComWixpressBookingsServicesApiV1CategoriesServiceUrl({
|
|
236
|
+
protoPath: '/v1/categories/{id}',
|
|
237
|
+
data: serializedData,
|
|
238
|
+
host,
|
|
239
|
+
}),
|
|
240
|
+
params: (0, metro_runtime_1.toURLSearchParams)(serializedData),
|
|
241
|
+
transformResponse: fromRes,
|
|
242
|
+
};
|
|
243
|
+
return metadata;
|
|
244
|
+
}
|
|
245
|
+
___delete.fromReq = fromReq;
|
|
246
|
+
return ___delete;
|
|
247
|
+
}
|
|
248
|
+
exports._delete = _delete;
|
|
249
|
+
//# sourceMappingURL=bookings-v1-category.http.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookings-v1-category.http.js","sourceRoot":"","sources":["../../../src/bookings-v1-category.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,8DAA2D;AAC3D,sDAAgD;AAchD,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAClC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AACnC,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAClC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AACnC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAChC,MAAM,qBAAqB,GAAG,EAAE,CAAC;AACjC,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAClC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAEnC,SAAS,2DAA2D,CAClE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,wBAAwB,EAAE;YACxB;gBACE,OAAO,EAAE,uBAAuB;gBAChC,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,2B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EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,MAAM,EAAE,IAAA,iCAAiB,EAAC,cAAc,CAAC;YACzC,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,SAAS,CAAC,OAAO,GAAG,OAAO,CAAC;IAE5B,OAAO,SAAS,CAAC;AACnB,CAAC;AA/BD,0BA+BC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { Category, UpdateCategory, DeleteOptions, ListOptions } from './bookings-v1-category.universal';
|
|
3
|
+
export declare const __metadata: {
|
|
4
|
+
PACKAGE_NAME: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function list(httpClient: HttpClient): (options?: ListOptions | undefined) => Promise<import("./bookings-v1-category.universal").ListCategoryResponse>;
|
|
7
|
+
export declare function create(httpClient: HttpClient): (category: Category) => Promise<import("./bookings-v1-category.universal").CreateCategoryResponse>;
|
|
8
|
+
export declare function update(httpClient: HttpClient): (_id: string | null, category: UpdateCategory) => Promise<import("./bookings-v1-category.universal").UpdateCategoryResponse>;
|
|
9
|
+
export declare function _delete(httpClient: HttpClient): (_id: string | null, options?: DeleteOptions | undefined) => Promise<import("./bookings-v1-category.universal").DeleteCategoryResponse>;
|
|
10
|
+
export { Status, Event } from './bookings-v1-category.universal';
|
|
11
|
+
export { Category, ListCategoryRequest, ListCategoryResponse, CategoryNotification, CreateCategoryRequest, CreateCategoryResponse, BatchCreateCategoryRequest, BatchCreateCategoryResponse, UpdateCategoryRequest, UpdateCategoryResponse, DeleteCategoryRequest, DeleteCategoryResponse, BatchDeleteCategoryRequest, BatchDeleteCategoryResponse, BatchUpdateCategoryRequest, BatchUpdateCategoryResponse, ListOptions, UpdateCategory, DeleteOptions, } from './bookings-v1-category.universal';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Event = exports.Status = exports._delete = exports.update = exports.create = exports.list = exports.__metadata = void 0;
|
|
4
|
+
const bookings_v1_category_universal_1 = require("./bookings-v1-category.universal");
|
|
5
|
+
exports.__metadata = { PACKAGE_NAME: '@wix/bookings' };
|
|
6
|
+
function list(httpClient) {
|
|
7
|
+
return (options) => (0, bookings_v1_category_universal_1.list)(options,
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
{ httpClient });
|
|
10
|
+
}
|
|
11
|
+
exports.list = list;
|
|
12
|
+
function create(httpClient) {
|
|
13
|
+
return (category) => (0, bookings_v1_category_universal_1.create)(category,
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
{ httpClient });
|
|
16
|
+
}
|
|
17
|
+
exports.create = create;
|
|
18
|
+
function update(httpClient) {
|
|
19
|
+
return (_id, category) => (0, bookings_v1_category_universal_1.update)(_id, category,
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
{ httpClient });
|
|
22
|
+
}
|
|
23
|
+
exports.update = update;
|
|
24
|
+
function _delete(httpClient) {
|
|
25
|
+
return (_id, options) => (0, bookings_v1_category_universal_1._delete)(_id, options,
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
{ httpClient });
|
|
28
|
+
}
|
|
29
|
+
exports._delete = _delete;
|
|
30
|
+
var bookings_v1_category_universal_2 = require("./bookings-v1-category.universal");
|
|
31
|
+
Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return bookings_v1_category_universal_2.Status; } });
|
|
32
|
+
Object.defineProperty(exports, "Event", { enumerable: true, get: function () { return bookings_v1_category_universal_2.Event; } });
|
|
33
|
+
//# sourceMappingURL=bookings-v1-category.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookings-v1-category.public.js","sourceRoot":"","sources":["../../../src/bookings-v1-category.public.ts"],"names":[],"mappings":";;;AACA,qFAS0C;AAE7B,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,SAAgB,IAAI,CAAC,UAAsB;IACzC,OAAO,CAAC,OAAqB,EAAE,EAAE,CAC/B,IAAA,qCAAa,EACX,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,oBAOC;AAED,SAAgB,MAAM,CAAC,UAAsB;IAC3C,OAAO,CAAC,QAAkB,EAAE,EAAE,CAC5B,IAAA,uCAAe,EACb,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,wBAOC;AAED,SAAgB,MAAM,CAAC,UAAsB;IAC3C,OAAO,CAAC,GAAkB,EAAE,QAAwB,EAAE,EAAE,CACtD,IAAA,uCAAe,EACb,GAAG,EACH,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,wBAQC;AAED,SAAgB,OAAO,CAAC,UAAsB;IAC5C,OAAO,CAAC,GAAkB,EAAE,OAAuB,EAAE,EAAE,CACrD,IAAA,wCAAgB,EACd,GAAG,EACH,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,0BAQC;AAED,mFAAiE;AAAxD,wHAAA,MAAM,OAAA;AAAE,uHAAA,KAAK,OAAA"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/** Categories are used to group multiple services together. A service must be associated with a category in order to be exposed in the Wix Bookings UI. */
|
|
2
|
+
export interface Category {
|
|
3
|
+
/**
|
|
4
|
+
* Category ID. Read-only.
|
|
5
|
+
* @readonly
|
|
6
|
+
*/
|
|
7
|
+
id?: string | null;
|
|
8
|
+
/** Category name. */
|
|
9
|
+
name?: string | null;
|
|
10
|
+
/** Custom properties that can be associated with the category. */
|
|
11
|
+
customProperties?: Record<string, string>;
|
|
12
|
+
/**
|
|
13
|
+
* Category status Read-only.
|
|
14
|
+
* @readonly
|
|
15
|
+
*/
|
|
16
|
+
status?: Status;
|
|
17
|
+
/** Sorting order of the category for Wix Bookings UI. */
|
|
18
|
+
sortOrder?: number | null;
|
|
19
|
+
}
|
|
20
|
+
export declare enum Status {
|
|
21
|
+
/** Default status. */
|
|
22
|
+
CREATED = "CREATED",
|
|
23
|
+
/** Category is deleted. */
|
|
24
|
+
DELETED = "DELETED"
|
|
25
|
+
}
|
|
26
|
+
export interface ListCategoryRequest {
|
|
27
|
+
/** Category IDs. */
|
|
28
|
+
categoryIds?: string[];
|
|
29
|
+
/** Whether deleted categories are included. Default is false. */
|
|
30
|
+
includeDeleted?: boolean | null;
|
|
31
|
+
}
|
|
32
|
+
export interface ListCategoryResponse {
|
|
33
|
+
/** Category information. */
|
|
34
|
+
categories?: Category[];
|
|
35
|
+
}
|
|
36
|
+
/** An event sent every time a category entity is changed. */
|
|
37
|
+
export interface CategoryNotification {
|
|
38
|
+
category?: Category;
|
|
39
|
+
event?: Event;
|
|
40
|
+
}
|
|
41
|
+
export declare enum Event {
|
|
42
|
+
Updated = "Updated",
|
|
43
|
+
Deleted = "Deleted",
|
|
44
|
+
Created = "Created"
|
|
45
|
+
}
|
|
46
|
+
export interface CreateCategoryRequest {
|
|
47
|
+
/** Category information. */
|
|
48
|
+
category: Category;
|
|
49
|
+
}
|
|
50
|
+
export interface CreateCategoryResponse {
|
|
51
|
+
/** Category information. */
|
|
52
|
+
category?: Category;
|
|
53
|
+
}
|
|
54
|
+
export interface BatchCreateCategoryRequest {
|
|
55
|
+
/** Category information. */
|
|
56
|
+
categories?: Category[];
|
|
57
|
+
}
|
|
58
|
+
export interface BatchCreateCategoryResponse {
|
|
59
|
+
/** Category information. */
|
|
60
|
+
categories?: Category[];
|
|
61
|
+
}
|
|
62
|
+
export interface UpdateCategoryRequest {
|
|
63
|
+
category: Category;
|
|
64
|
+
}
|
|
65
|
+
export interface UpdateCategoryResponse {
|
|
66
|
+
/** The updated category. */
|
|
67
|
+
category?: Category;
|
|
68
|
+
}
|
|
69
|
+
export interface DeleteCategoryRequest {
|
|
70
|
+
/** Category ID. */
|
|
71
|
+
id: string | null;
|
|
72
|
+
/** Cascade delete all the services in this category. Defaults to false (when false, the services will still exist but will not be accessible in the Wix Business Manager). */
|
|
73
|
+
deleteServices?: boolean | null;
|
|
74
|
+
}
|
|
75
|
+
export interface DeleteCategoryResponse {
|
|
76
|
+
/** Deleted Category ID. */
|
|
77
|
+
id?: string | null;
|
|
78
|
+
}
|
|
79
|
+
export interface BatchDeleteCategoryRequest {
|
|
80
|
+
/** Category ID. */
|
|
81
|
+
ids?: string[] | null;
|
|
82
|
+
}
|
|
83
|
+
export interface BatchDeleteCategoryResponse {
|
|
84
|
+
}
|
|
85
|
+
export interface BatchUpdateCategoryRequest {
|
|
86
|
+
/** List of categories to be updated. */
|
|
87
|
+
categories?: Category[];
|
|
88
|
+
/** Field mask of fields to update. */
|
|
89
|
+
fieldMask?: string[];
|
|
90
|
+
}
|
|
91
|
+
export interface BatchUpdateCategoryResponse {
|
|
92
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Event = exports.Status = void 0;
|
|
4
|
+
var Status;
|
|
5
|
+
(function (Status) {
|
|
6
|
+
/** Default status. */
|
|
7
|
+
Status["CREATED"] = "CREATED";
|
|
8
|
+
/** Category is deleted. */
|
|
9
|
+
Status["DELETED"] = "DELETED";
|
|
10
|
+
})(Status = exports.Status || (exports.Status = {}));
|
|
11
|
+
var Event;
|
|
12
|
+
(function (Event) {
|
|
13
|
+
Event["Updated"] = "Updated";
|
|
14
|
+
Event["Deleted"] = "Deleted";
|
|
15
|
+
Event["Created"] = "Created";
|
|
16
|
+
})(Event = exports.Event || (exports.Event = {}));
|
|
17
|
+
//# sourceMappingURL=bookings-v1-category.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookings-v1-category.types.js","sourceRoot":"","sources":["../../../src/bookings-v1-category.types.ts"],"names":[],"mappings":";;;AAoBA,IAAY,MAKX;AALD,WAAY,MAAM;IAChB,sBAAsB;IACtB,6BAAmB,CAAA;IACnB,2BAA2B;IAC3B,6BAAmB,CAAA;AACrB,CAAC,EALW,MAAM,GAAN,cAAM,KAAN,cAAM,QAKjB;AAoBD,IAAY,KAIX;AAJD,WAAY,KAAK;IACf,4BAAmB,CAAA;IACnB,4BAAmB,CAAA;IACnB,4BAAmB,CAAA;AACrB,CAAC,EAJW,KAAK,GAAL,aAAK,KAAL,aAAK,QAIhB"}
|