@wix/auto_sdk_bookings_categories 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/bookings-v1-category-categories.context.d.ts +12 -0
- package/build/cjs/src/bookings-v1-category-categories.context.js +18 -0
- package/build/cjs/src/bookings-v1-category-categories.context.js.map +1 -0
- package/build/cjs/src/bookings-v1-category-categories.http.d.ts +12 -0
- package/build/cjs/src/bookings-v1-category-categories.http.js +177 -0
- package/build/cjs/src/bookings-v1-category-categories.http.js.map +1 -0
- package/build/cjs/src/bookings-v1-category-categories.meta.d.ts +20 -0
- package/build/cjs/src/bookings-v1-category-categories.meta.js +104 -0
- package/build/cjs/src/bookings-v1-category-categories.meta.js.map +1 -0
- package/build/cjs/src/bookings-v1-category-categories.public.d.ts +40 -0
- package/build/cjs/src/bookings-v1-category-categories.public.js +37 -0
- package/build/cjs/src/bookings-v1-category-categories.public.js.map +1 -0
- package/build/cjs/src/bookings-v1-category-categories.types.d.ts +149 -0
- package/build/cjs/src/bookings-v1-category-categories.types.js +25 -0
- package/build/cjs/src/bookings-v1-category-categories.types.js.map +1 -0
- package/build/cjs/src/bookings-v1-category-categories.universal.d.ts +252 -0
- package/build/cjs/src/bookings-v1-category-categories.universal.js +221 -0
- package/build/cjs/src/bookings-v1-category-categories.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/bookings-v1-category-categories.context.d.ts +12 -0
- package/build/es/src/bookings-v1-category-categories.context.js +12 -0
- package/build/es/src/bookings-v1-category-categories.context.js.map +1 -0
- package/build/es/src/bookings-v1-category-categories.http.d.ts +12 -0
- package/build/es/src/bookings-v1-category-categories.http.js +170 -0
- package/build/es/src/bookings-v1-category-categories.http.js.map +1 -0
- package/build/es/src/bookings-v1-category-categories.meta.d.ts +20 -0
- package/build/es/src/bookings-v1-category-categories.meta.js +74 -0
- package/build/es/src/bookings-v1-category-categories.meta.js.map +1 -0
- package/build/es/src/bookings-v1-category-categories.public.d.ts +40 -0
- package/build/es/src/bookings-v1-category-categories.public.js +27 -0
- package/build/es/src/bookings-v1-category-categories.public.js.map +1 -0
- package/build/es/src/bookings-v1-category-categories.types.d.ts +149 -0
- package/build/es/src/bookings-v1-category-categories.types.js +22 -0
- package/build/es/src/bookings-v1-category-categories.types.js.map +1 -0
- package/build/es/src/bookings-v1-category-categories.universal.d.ts +252 -0
- package/build/es/src/bookings-v1-category-categories.universal.js +191 -0
- package/build/es/src/bookings-v1-category-categories.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/bookings-v1-category-categories.context.d.ts +12 -0
- package/build/internal/cjs/src/bookings-v1-category-categories.context.js +18 -0
- package/build/internal/cjs/src/bookings-v1-category-categories.context.js.map +1 -0
- package/build/internal/cjs/src/bookings-v1-category-categories.http.d.ts +12 -0
- package/build/internal/cjs/src/bookings-v1-category-categories.http.js +177 -0
- package/build/internal/cjs/src/bookings-v1-category-categories.http.js.map +1 -0
- package/build/internal/cjs/src/bookings-v1-category-categories.meta.d.ts +20 -0
- package/build/internal/cjs/src/bookings-v1-category-categories.meta.js +104 -0
- package/build/internal/cjs/src/bookings-v1-category-categories.meta.js.map +1 -0
- package/build/internal/cjs/src/bookings-v1-category-categories.public.d.ts +40 -0
- package/build/internal/cjs/src/bookings-v1-category-categories.public.js +37 -0
- package/build/internal/cjs/src/bookings-v1-category-categories.public.js.map +1 -0
- package/build/internal/cjs/src/bookings-v1-category-categories.types.d.ts +149 -0
- package/build/internal/cjs/src/bookings-v1-category-categories.types.js +25 -0
- package/build/internal/cjs/src/bookings-v1-category-categories.types.js.map +1 -0
- package/build/internal/cjs/src/bookings-v1-category-categories.universal.d.ts +275 -0
- package/build/internal/cjs/src/bookings-v1-category-categories.universal.js +221 -0
- package/build/internal/cjs/src/bookings-v1-category-categories.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/bookings-v1-category-categories.context.d.ts +12 -0
- package/build/internal/es/src/bookings-v1-category-categories.context.js +12 -0
- package/build/internal/es/src/bookings-v1-category-categories.context.js.map +1 -0
- package/build/internal/es/src/bookings-v1-category-categories.http.d.ts +12 -0
- package/build/internal/es/src/bookings-v1-category-categories.http.js +170 -0
- package/build/internal/es/src/bookings-v1-category-categories.http.js.map +1 -0
- package/build/internal/es/src/bookings-v1-category-categories.meta.d.ts +20 -0
- package/build/internal/es/src/bookings-v1-category-categories.meta.js +74 -0
- package/build/internal/es/src/bookings-v1-category-categories.meta.js.map +1 -0
- package/build/internal/es/src/bookings-v1-category-categories.public.d.ts +40 -0
- package/build/internal/es/src/bookings-v1-category-categories.public.js +27 -0
- package/build/internal/es/src/bookings-v1-category-categories.public.js.map +1 -0
- package/build/internal/es/src/bookings-v1-category-categories.types.d.ts +149 -0
- package/build/internal/es/src/bookings-v1-category-categories.types.js +22 -0
- package/build/internal/es/src/bookings-v1-category-categories.types.js.map +1 -0
- package/build/internal/es/src/bookings-v1-category-categories.universal.d.ts +275 -0
- package/build/internal/es/src/bookings-v1-category-categories.universal.js +191 -0
- package/build/internal/es/src/bookings-v1-category-categories.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
package/build/es/meta.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,cAAc,+CAA+C,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { listCategories as publicListCategories, createCategory as publicCreateCategory, updateCategory as publicUpdateCategory, deleteCategory as publicDeleteCategory } from './bookings-v1-category-categories.public.js';
|
|
2
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
3
|
+
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
4
|
+
import { onCategoryNotification as publicOnCategoryNotification } from './bookings-v1-category-categories.public.js';
|
|
5
|
+
export declare const listCategories: MaybeContext<BuildRESTFunction<typeof publicListCategories> & typeof publicListCategories>;
|
|
6
|
+
export declare const createCategory: MaybeContext<BuildRESTFunction<typeof publicCreateCategory> & typeof publicCreateCategory>;
|
|
7
|
+
export declare const updateCategory: MaybeContext<BuildRESTFunction<typeof publicUpdateCategory> & typeof publicUpdateCategory>;
|
|
8
|
+
export declare const deleteCategory: MaybeContext<BuildRESTFunction<typeof publicDeleteCategory> & typeof publicDeleteCategory>;
|
|
9
|
+
/** */
|
|
10
|
+
export declare const onCategoryNotification: ReturnType<typeof createEventModule<typeof publicOnCategoryNotification>>;
|
|
11
|
+
export { Status, Event, WebhookIdentityType, } from './bookings-v1-category-categories.universal.js';
|
|
12
|
+
export { Category, ListCategoryRequest, ListCategoryResponse, CategoryNotification, CreateCategoryRequest, CreateCategoryResponse, BatchCreateCategoryRequest, BatchCreateCategoryResponse, UpdateCategoryRequest, UpdateCategoryResponse, DeleteCategoryRequest, DeleteCategoryResponse, BatchDeleteCategoryRequest, BatchDeleteCategoryResponse, BatchUpdateCategoryRequest, BatchUpdateCategoryResponse, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, CategoryNonNullableFields, ListCategoryResponseNonNullableFields, CreateCategoryResponseNonNullableFields, UpdateCategoryResponseNonNullableFields, BaseEventMetadata, CategoryNotificationEnvelope, ListCategoriesOptions, UpdateCategory, DeleteCategoryOptions, } from './bookings-v1-category-categories.universal.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { listCategories as publicListCategories, createCategory as publicCreateCategory, updateCategory as publicUpdateCategory, deleteCategory as publicDeleteCategory, } from './bookings-v1-category-categories.public.js';
|
|
2
|
+
import { createRESTModule } from '@wix/sdk-runtime/rest-modules';
|
|
3
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
4
|
+
import { onCategoryNotification as publicOnCategoryNotification } from './bookings-v1-category-categories.public.js';
|
|
5
|
+
export const listCategories = /*#__PURE__*/ createRESTModule(publicListCategories);
|
|
6
|
+
export const createCategory = /*#__PURE__*/ createRESTModule(publicCreateCategory);
|
|
7
|
+
export const updateCategory = /*#__PURE__*/ createRESTModule(publicUpdateCategory);
|
|
8
|
+
export const deleteCategory = /*#__PURE__*/ createRESTModule(publicDeleteCategory);
|
|
9
|
+
/** */
|
|
10
|
+
export const onCategoryNotification = createEventModule(publicOnCategoryNotification);
|
|
11
|
+
export { Status, Event, WebhookIdentityType, } from './bookings-v1-category-categories.universal.js';
|
|
12
|
+
//# sourceMappingURL=bookings-v1-category-categories.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookings-v1-category-categories.context.js","sourceRoot":"","sources":["../../../src/bookings-v1-category-categories.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,cAAc,IAAI,oBAAoB,EACtC,cAAc,IAAI,oBAAoB,EACtC,cAAc,IAAI,oBAAoB,GACvC,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAE9E,OAAO,EAAE,sBAAsB,IAAI,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAErH,MAAM,CAAC,MAAM,cAAc,GAEvB,aAAa,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;AACzD,MAAM,CAAC,MAAM,cAAc,GAEvB,aAAa,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;AACzD,MAAM,CAAC,MAAM,cAAc,GAEvB,aAAa,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;AACzD,MAAM,CAAC,MAAM,cAAc,GAEvB,aAAa,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;AACzD,MAAM;AACN,MAAM,CAAC,MAAM,sBAAsB,GAE/B,iBAAiB,CAAC,4BAA4B,CAAC,CAAC;AAEpD,OAAO,EACL,MAAM,EACN,KAAK,EACL,mBAAmB,GACpB,MAAM,gDAAgD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
+
/** Lists all categories. */
|
|
3
|
+
export declare function list(payload: object): RequestOptionsFactory<any>;
|
|
4
|
+
/** Creates a new category. */
|
|
5
|
+
export declare function create(payload: object): RequestOptionsFactory<any>;
|
|
6
|
+
/** Updates an existing category. */
|
|
7
|
+
export declare function update(payload: object): RequestOptionsFactory<any>;
|
|
8
|
+
/**
|
|
9
|
+
* Deletes a category.
|
|
10
|
+
* When deleting a category, you have the option to delete all the associated services within this category using the `deleteServices` field in the request.
|
|
11
|
+
*/
|
|
12
|
+
export declare function _delete(payload: object): RequestOptionsFactory<any>;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';
|
|
2
|
+
import { resolveUrl } from '@wix/sdk-runtime/rest-modules';
|
|
3
|
+
function resolveComWixpressBookingsServicesApiV1CategoriesServiceUrl(opts) {
|
|
4
|
+
const domainToMappings = {
|
|
5
|
+
'www.wixapis.com': [
|
|
6
|
+
{
|
|
7
|
+
srcPath: '/bookings/v1/categories',
|
|
8
|
+
destPath: '/v1/categories',
|
|
9
|
+
},
|
|
10
|
+
],
|
|
11
|
+
'www._base_domain_': [
|
|
12
|
+
{
|
|
13
|
+
srcPath: '/_api/bookings/v1/categories',
|
|
14
|
+
destPath: '/v1/categories',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
srcPath: '/_api/services-server/v1/categories',
|
|
18
|
+
destPath: '/v1/categories',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
srcPath: '/_api/services-server/v1/batch/categories',
|
|
22
|
+
destPath: '/v1/batch/categories',
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
'manage._base_domain_': [
|
|
26
|
+
{
|
|
27
|
+
srcPath: '/_api/bookings/v1/categories',
|
|
28
|
+
destPath: '/v1/categories',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
srcPath: '/_api/bookings/v1/batch/categories',
|
|
32
|
+
destPath: '/v1/batch/categories',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
srcPath: '/_api/services-server/v1/categories',
|
|
36
|
+
destPath: '/v1/categories',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
srcPath: '/_api/services-server/v1/batch/categories',
|
|
40
|
+
destPath: '/v1/batch/categories',
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
'editor._base_domain_': [
|
|
44
|
+
{
|
|
45
|
+
srcPath: '/_api/bookings/v1/categories',
|
|
46
|
+
destPath: '/v1/categories',
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
'blocks._base_domain_': [
|
|
50
|
+
{
|
|
51
|
+
srcPath: '/_api/bookings/v1/categories',
|
|
52
|
+
destPath: '/v1/categories',
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
'create.editorx': [
|
|
56
|
+
{
|
|
57
|
+
srcPath: '/_api/bookings/v1/categories',
|
|
58
|
+
destPath: '/v1/categories',
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
'api._api_base_domain_': [
|
|
62
|
+
{
|
|
63
|
+
srcPath: '/categories-proxy',
|
|
64
|
+
destPath: '',
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
'*.dev.wix-code.com': [
|
|
68
|
+
{
|
|
69
|
+
srcPath: '/_api/services-server/v1/categories',
|
|
70
|
+
destPath: '/v1/categories',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
srcPath: '/_api/services-server/v1/batch/categories',
|
|
74
|
+
destPath: '/v1/batch/categories',
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
'bookings._base_domain_': [
|
|
78
|
+
{
|
|
79
|
+
srcPath: '/_api/services-server/v1/categories',
|
|
80
|
+
destPath: '/v1/categories',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
srcPath: '/_api/services-server/v1/batch/categories',
|
|
84
|
+
destPath: '/v1/batch/categories',
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
};
|
|
88
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
89
|
+
}
|
|
90
|
+
const PACKAGE_NAME = '@wix/auto_sdk_bookings_categories';
|
|
91
|
+
/** Lists all categories. */
|
|
92
|
+
export function list(payload) {
|
|
93
|
+
function __list({ host }) {
|
|
94
|
+
const metadata = {
|
|
95
|
+
entityFqdn: 'wix.bookings.v1.category',
|
|
96
|
+
method: 'GET',
|
|
97
|
+
methodFqn: 'com.wixpress.bookings.services.api.v1.CategoriesService.List',
|
|
98
|
+
packageName: PACKAGE_NAME,
|
|
99
|
+
url: resolveComWixpressBookingsServicesApiV1CategoriesServiceUrl({
|
|
100
|
+
protoPath: '/v1/categories',
|
|
101
|
+
data: payload,
|
|
102
|
+
host,
|
|
103
|
+
}),
|
|
104
|
+
params: toURLSearchParams(payload),
|
|
105
|
+
};
|
|
106
|
+
return metadata;
|
|
107
|
+
}
|
|
108
|
+
return __list;
|
|
109
|
+
}
|
|
110
|
+
/** Creates a new category. */
|
|
111
|
+
export function create(payload) {
|
|
112
|
+
function __create({ host }) {
|
|
113
|
+
const metadata = {
|
|
114
|
+
entityFqdn: 'wix.bookings.v1.category',
|
|
115
|
+
method: 'POST',
|
|
116
|
+
methodFqn: 'com.wixpress.bookings.services.api.v1.CategoriesService.Create',
|
|
117
|
+
packageName: PACKAGE_NAME,
|
|
118
|
+
url: resolveComWixpressBookingsServicesApiV1CategoriesServiceUrl({
|
|
119
|
+
protoPath: '/v1/categories',
|
|
120
|
+
data: payload,
|
|
121
|
+
host,
|
|
122
|
+
}),
|
|
123
|
+
data: payload,
|
|
124
|
+
};
|
|
125
|
+
return metadata;
|
|
126
|
+
}
|
|
127
|
+
return __create;
|
|
128
|
+
}
|
|
129
|
+
/** Updates an existing category. */
|
|
130
|
+
export function update(payload) {
|
|
131
|
+
function __update({ host }) {
|
|
132
|
+
const metadata = {
|
|
133
|
+
entityFqdn: 'wix.bookings.v1.category',
|
|
134
|
+
method: 'PUT',
|
|
135
|
+
methodFqn: 'com.wixpress.bookings.services.api.v1.CategoriesService.Update',
|
|
136
|
+
packageName: PACKAGE_NAME,
|
|
137
|
+
url: resolveComWixpressBookingsServicesApiV1CategoriesServiceUrl({
|
|
138
|
+
protoPath: '/v1/categories/{category.id}',
|
|
139
|
+
data: payload,
|
|
140
|
+
host,
|
|
141
|
+
}),
|
|
142
|
+
data: payload,
|
|
143
|
+
};
|
|
144
|
+
return metadata;
|
|
145
|
+
}
|
|
146
|
+
return __update;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Deletes a category.
|
|
150
|
+
* When deleting a category, you have the option to delete all the associated services within this category using the `deleteServices` field in the request.
|
|
151
|
+
*/
|
|
152
|
+
export function _delete(payload) {
|
|
153
|
+
function ___delete({ host }) {
|
|
154
|
+
const metadata = {
|
|
155
|
+
entityFqdn: 'wix.bookings.v1.category',
|
|
156
|
+
method: 'DELETE',
|
|
157
|
+
methodFqn: 'com.wixpress.bookings.services.api.v1.CategoriesService._delete',
|
|
158
|
+
packageName: PACKAGE_NAME,
|
|
159
|
+
url: resolveComWixpressBookingsServicesApiV1CategoriesServiceUrl({
|
|
160
|
+
protoPath: '/v1/categories/{id}',
|
|
161
|
+
data: payload,
|
|
162
|
+
host,
|
|
163
|
+
}),
|
|
164
|
+
params: toURLSearchParams(payload),
|
|
165
|
+
};
|
|
166
|
+
return metadata;
|
|
167
|
+
}
|
|
168
|
+
return ___delete;
|
|
169
|
+
}
|
|
170
|
+
//# sourceMappingURL=bookings-v1-category-categories.http.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookings-v1-category-categories.http.js","sourceRoot":"","sources":["../../../src/bookings-v1-category-categories.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D,SAAS,2DAA2D,CAClE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,yBAAyB;gBAClC,QAAQ,EAAE,gBAAgB;aAC3B;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,8BAA8B;gBACvC,QAAQ,EAAE,gBAAgB;aAC3B;YACD;gBACE,OAAO,EAAE,qCAAqC;gBAC9C,QAAQ,EAAE,gBAAgB;aAC3B;YACD;gBACE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F,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,OAAO,CAAC,OAAe;IACrC,SAAS,SAAS,CAAC,EAAE,IAAI,EAAO;QAC9B,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,0BAA0B;YACtC,MAAM,EAAE,QAAe;YACvB,SAAS,EACP,iEAAiE;YACnE,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,2DAA2D,CAAC;gBAC/D,SAAS,EAAE,qBAAqB;gBAChC,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,MAAM,EAAE,iBAAiB,CAAC,OAAO,CAAC;SACnC,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as ambassadorWixBookingsV1CategoryTypes from './bookings-v1-category-categories.types.js';
|
|
2
|
+
import * as ambassadorWixBookingsV1CategoryUniversalTypes from './bookings-v1-category-categories.universal.js';
|
|
3
|
+
export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4
|
+
getUrl: (context: any) => string;
|
|
5
|
+
httpMethod: K;
|
|
6
|
+
path: string;
|
|
7
|
+
pathParams: M;
|
|
8
|
+
__requestType: T;
|
|
9
|
+
__originalRequestType: S;
|
|
10
|
+
__responseType: Q;
|
|
11
|
+
__originalResponseType: R;
|
|
12
|
+
};
|
|
13
|
+
export declare function listCategories(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixBookingsV1CategoryUniversalTypes.ListCategoryRequest, ambassadorWixBookingsV1CategoryTypes.ListCategoryRequest, ambassadorWixBookingsV1CategoryUniversalTypes.ListCategoryResponse & ambassadorWixBookingsV1CategoryUniversalTypes.ListCategoryResponseNonNullableFields, ambassadorWixBookingsV1CategoryTypes.ListCategoryResponse & ambassadorWixBookingsV1CategoryTypes.ListCategoryResponseNonNullableFields>;
|
|
14
|
+
export declare function createCategory(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixBookingsV1CategoryUniversalTypes.CreateCategoryRequest, ambassadorWixBookingsV1CategoryTypes.CreateCategoryRequest, ambassadorWixBookingsV1CategoryUniversalTypes.CreateCategoryResponse & ambassadorWixBookingsV1CategoryUniversalTypes.CreateCategoryResponseNonNullableFields, ambassadorWixBookingsV1CategoryTypes.CreateCategoryResponse & ambassadorWixBookingsV1CategoryTypes.CreateCategoryResponseNonNullableFields>;
|
|
15
|
+
export declare function updateCategory(): __PublicMethodMetaInfo<'PUT', {
|
|
16
|
+
categoryId: string;
|
|
17
|
+
}, ambassadorWixBookingsV1CategoryUniversalTypes.UpdateCategoryRequest, ambassadorWixBookingsV1CategoryTypes.UpdateCategoryRequest, ambassadorWixBookingsV1CategoryUniversalTypes.UpdateCategoryResponse & ambassadorWixBookingsV1CategoryUniversalTypes.UpdateCategoryResponseNonNullableFields, ambassadorWixBookingsV1CategoryTypes.UpdateCategoryResponse & ambassadorWixBookingsV1CategoryTypes.UpdateCategoryResponseNonNullableFields>;
|
|
18
|
+
export declare function deleteCategory(): __PublicMethodMetaInfo<'DELETE', {
|
|
19
|
+
id: string;
|
|
20
|
+
}, ambassadorWixBookingsV1CategoryUniversalTypes.DeleteCategoryRequest, ambassadorWixBookingsV1CategoryTypes.DeleteCategoryRequest, ambassadorWixBookingsV1CategoryUniversalTypes.DeleteCategoryResponse, ambassadorWixBookingsV1CategoryTypes.DeleteCategoryResponse>;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as ambassadorWixBookingsV1Category from './bookings-v1-category-categories.http.js';
|
|
2
|
+
export function listCategories() {
|
|
3
|
+
const payload = {};
|
|
4
|
+
const getRequestOptions = ambassadorWixBookingsV1Category.list(payload);
|
|
5
|
+
const getUrl = (context) => {
|
|
6
|
+
const { url } = getRequestOptions(context);
|
|
7
|
+
return url;
|
|
8
|
+
};
|
|
9
|
+
return {
|
|
10
|
+
getUrl,
|
|
11
|
+
httpMethod: 'GET',
|
|
12
|
+
path: '/v1/categories',
|
|
13
|
+
pathParams: {},
|
|
14
|
+
__requestType: null,
|
|
15
|
+
__originalRequestType: null,
|
|
16
|
+
__responseType: null,
|
|
17
|
+
__originalResponseType: null,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export function createCategory() {
|
|
21
|
+
const payload = {};
|
|
22
|
+
const getRequestOptions = ambassadorWixBookingsV1Category.create(payload);
|
|
23
|
+
const getUrl = (context) => {
|
|
24
|
+
const { url } = getRequestOptions(context);
|
|
25
|
+
return url;
|
|
26
|
+
};
|
|
27
|
+
return {
|
|
28
|
+
getUrl,
|
|
29
|
+
httpMethod: 'POST',
|
|
30
|
+
path: '/v1/categories',
|
|
31
|
+
pathParams: {},
|
|
32
|
+
__requestType: null,
|
|
33
|
+
__originalRequestType: null,
|
|
34
|
+
__responseType: null,
|
|
35
|
+
__originalResponseType: null,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function updateCategory() {
|
|
39
|
+
const payload = { category: { id: ':categoryId' } };
|
|
40
|
+
const getRequestOptions = ambassadorWixBookingsV1Category.update(payload);
|
|
41
|
+
const getUrl = (context) => {
|
|
42
|
+
const { url } = getRequestOptions(context);
|
|
43
|
+
return url;
|
|
44
|
+
};
|
|
45
|
+
return {
|
|
46
|
+
getUrl,
|
|
47
|
+
httpMethod: 'PUT',
|
|
48
|
+
path: '/v1/categories/{category.id}',
|
|
49
|
+
pathParams: { categoryId: 'categoryId' },
|
|
50
|
+
__requestType: null,
|
|
51
|
+
__originalRequestType: null,
|
|
52
|
+
__responseType: null,
|
|
53
|
+
__originalResponseType: null,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export function deleteCategory() {
|
|
57
|
+
const payload = { id: ':id' };
|
|
58
|
+
const getRequestOptions = ambassadorWixBookingsV1Category._delete(payload);
|
|
59
|
+
const getUrl = (context) => {
|
|
60
|
+
const { url } = getRequestOptions(context);
|
|
61
|
+
return url;
|
|
62
|
+
};
|
|
63
|
+
return {
|
|
64
|
+
getUrl,
|
|
65
|
+
httpMethod: 'DELETE',
|
|
66
|
+
path: '/v1/categories/{id}',
|
|
67
|
+
pathParams: { id: 'id' },
|
|
68
|
+
__requestType: null,
|
|
69
|
+
__originalRequestType: null,
|
|
70
|
+
__responseType: null,
|
|
71
|
+
__originalResponseType: null,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=bookings-v1-category-categories.meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookings-v1-category-categories.meta.js","sourceRoot":"","sources":["../../../src/bookings-v1-category-categories.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,+BAA+B,MAAM,2CAA2C,CAAC;AAsB7F,MAAM,UAAU,cAAc;IAU5B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GAAG,+BAA+B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAExE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE,gBAAgB;QACtB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,cAAc;IAU5B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GAAG,+BAA+B,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAE1E,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,E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OAAO;QACL,MAAM;QACN,UAAU,EAAE,QAAQ;QACpB,IAAI,EAAE,qBAAqB;QAC3B,UAAU,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE;QACxB,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { EventDefinition, HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { Category, CategoryNonNullableFields, CategoryNotificationEnvelope, DeleteCategoryOptions, DeleteCategoryResponse, ListCategoriesOptions, ListCategoryResponse, ListCategoryResponseNonNullableFields, UpdateCategory, UpdateCategoryResponse, UpdateCategoryResponseNonNullableFields } from './bookings-v1-category-categories.universal.js';
|
|
3
|
+
export declare const __metadata: {
|
|
4
|
+
PACKAGE_NAME: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function listCategories(httpClient: HttpClient): ListCategoriesSignature;
|
|
7
|
+
interface ListCategoriesSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Lists all categories.
|
|
10
|
+
*/
|
|
11
|
+
(options?: ListCategoriesOptions | undefined): Promise<ListCategoryResponse & ListCategoryResponseNonNullableFields>;
|
|
12
|
+
}
|
|
13
|
+
export declare function createCategory(httpClient: HttpClient): CreateCategorySignature;
|
|
14
|
+
interface CreateCategorySignature {
|
|
15
|
+
/**
|
|
16
|
+
* Creates a new category.
|
|
17
|
+
* @param - Category information.
|
|
18
|
+
* @returns Category information.
|
|
19
|
+
*/
|
|
20
|
+
(category: Category): Promise<Category & CategoryNonNullableFields>;
|
|
21
|
+
}
|
|
22
|
+
export declare function updateCategory(httpClient: HttpClient): UpdateCategorySignature;
|
|
23
|
+
interface UpdateCategorySignature {
|
|
24
|
+
/**
|
|
25
|
+
* Updates an existing category.
|
|
26
|
+
* @param - Category ID.
|
|
27
|
+
*/
|
|
28
|
+
(_id: string | null, category: UpdateCategory): Promise<UpdateCategoryResponse & UpdateCategoryResponseNonNullableFields>;
|
|
29
|
+
}
|
|
30
|
+
export declare function deleteCategory(httpClient: HttpClient): DeleteCategorySignature;
|
|
31
|
+
interface DeleteCategorySignature {
|
|
32
|
+
/**
|
|
33
|
+
* Deletes a category.
|
|
34
|
+
* When deleting a category, you have the option to delete all the associated services within this category using the `deleteServices` field in the request.
|
|
35
|
+
* @param - Category ID.
|
|
36
|
+
*/
|
|
37
|
+
(_id: string | null, options?: DeleteCategoryOptions | undefined): Promise<DeleteCategoryResponse>;
|
|
38
|
+
}
|
|
39
|
+
export declare const onCategoryNotification: EventDefinition<CategoryNotificationEnvelope, "com.wixpress.bookings.services.api.v1.CategoryNotification">;
|
|
40
|
+
export { BaseEventMetadata, BatchCreateCategoryRequest, BatchCreateCategoryResponse, BatchDeleteCategoryRequest, BatchDeleteCategoryResponse, BatchUpdateCategoryRequest, BatchUpdateCategoryResponse, Category, CategoryNonNullableFields, CategoryNotification, CategoryNotificationEnvelope, CreateCategoryRequest, CreateCategoryResponse, CreateCategoryResponseNonNullableFields, DeleteCategoryOptions, DeleteCategoryRequest, DeleteCategoryResponse, Event, IdentificationData, IdentificationDataIdOneOf, ListCategoriesOptions, ListCategoryRequest, ListCategoryResponse, ListCategoryResponseNonNullableFields, MessageEnvelope, Status, UpdateCategory, UpdateCategoryRequest, UpdateCategoryResponse, UpdateCategoryResponseNonNullableFields, WebhookIdentityType, } from './bookings-v1-category-categories.universal.js';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';
|
|
2
|
+
import { EventDefinition } from '@wix/sdk-types';
|
|
3
|
+
import { createCategory as universalCreateCategory, deleteCategory as universalDeleteCategory, listCategories as universalListCategories, updateCategory as universalUpdateCategory, } from './bookings-v1-category-categories.universal.js';
|
|
4
|
+
export const __metadata = { PACKAGE_NAME: '@wix/bookings' };
|
|
5
|
+
export function listCategories(httpClient) {
|
|
6
|
+
return (options) => universalListCategories(options,
|
|
7
|
+
// @ts-ignore
|
|
8
|
+
{ httpClient });
|
|
9
|
+
}
|
|
10
|
+
export function createCategory(httpClient) {
|
|
11
|
+
return (category) => universalCreateCategory(category,
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
{ httpClient });
|
|
14
|
+
}
|
|
15
|
+
export function updateCategory(httpClient) {
|
|
16
|
+
return (_id, category) => universalUpdateCategory(_id, category,
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
{ httpClient });
|
|
19
|
+
}
|
|
20
|
+
export function deleteCategory(httpClient) {
|
|
21
|
+
return (_id, options) => universalDeleteCategory(_id, options,
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
{ httpClient });
|
|
24
|
+
}
|
|
25
|
+
export const onCategoryNotification = EventDefinition('com.wixpress.bookings.services.api.v1.CategoryNotification', false, (event) => renameKeysFromRESTResponseToSDKResponse(event))();
|
|
26
|
+
export { Event, Status, WebhookIdentityType, } from './bookings-v1-category-categories.universal.js';
|
|
27
|
+
//# sourceMappingURL=bookings-v1-category-categories.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookings-v1-category-categories.public.js","sourceRoot":"","sources":["../../../src/bookings-v1-category-categories.public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EAAE,eAAe,EAAc,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAYL,cAAc,IAAI,uBAAuB,EACzC,cAAc,IAAI,uBAAuB,EACzC,cAAc,IAAI,uBAAuB,EACzC,cAAc,IAAI,uBAAuB,GAC1C,MAAM,gDAAgD,CAAC;AAExD,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,MAAM,UAAU,cAAc,CAC5B,UAAsB;IAEtB,OAAO,CAAC,OAA+B,EAAE,EAAE,CACzC,uBAAuB,CACrB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAWD,MAAM,UAAU,cAAc,CAC5B,UAAsB;IAEtB,OAAO,CAAC,QAAkB,EAAE,EAAE,CAC5B,uBAAuB,CACrB,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAWD,MAAM,UAAU,cAAc,CAC5B,UAAsB;IAEtB,OAAO,CAAC,GAAkB,EAAE,QAAwB,EAAE,EAAE,CACtD,uBAAuB,CACrB,GAAG,EACH,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAYD,MAAM,UAAU,cAAc,CAC5B,UAAsB;IAEtB,OAAO,CAAC,GAAkB,EAAE,OAA+B,EAAE,EAAE,CAC7D,uBAAuB,CACrB,GAAG,EACH,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAcD,MAAM,CAAC,MAAM,sBAAsB,GAAG,eAAe,CACnD,4DAA4D,EAC5D,KAAK,EACL,CAAC,KAAmC,EAAE,EAAE,CACtC,uCAAuC,CAAC,KAAK,CAAC,CACjD,EAAgC,CAAC;AAElC,OAAO,EAkBL,KAAK,EAQL,MAAM,EAKN,mBAAmB,GACpB,MAAM,gDAAgD,CAAC"}
|
|
@@ -0,0 +1,149 @@
|
|
|
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.
|
|
5
|
+
* @readonly
|
|
6
|
+
*/
|
|
7
|
+
id?: string | null;
|
|
8
|
+
/** Category name. */
|
|
9
|
+
name?: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* Category status.
|
|
12
|
+
*
|
|
13
|
+
* Default: `"CREATED"`
|
|
14
|
+
* @readonly
|
|
15
|
+
*/
|
|
16
|
+
status?: Status;
|
|
17
|
+
/** Sort order of the category in the Dashboard. */
|
|
18
|
+
sortOrder?: number | null;
|
|
19
|
+
}
|
|
20
|
+
export declare enum Status {
|
|
21
|
+
/** The category was created. */
|
|
22
|
+
CREATED = "CREATED",
|
|
23
|
+
/** The category was deleted. */
|
|
24
|
+
DELETED = "DELETED"
|
|
25
|
+
}
|
|
26
|
+
export interface ListCategoryRequest {
|
|
27
|
+
/** Category IDs. */
|
|
28
|
+
categoryIds?: string[];
|
|
29
|
+
/**
|
|
30
|
+
* Whether to include deleted categories in the list.
|
|
31
|
+
*
|
|
32
|
+
* Default: `false`
|
|
33
|
+
*/
|
|
34
|
+
includeDeleted?: boolean | null;
|
|
35
|
+
}
|
|
36
|
+
export interface ListCategoryResponse {
|
|
37
|
+
/** Category information. */
|
|
38
|
+
categories?: Category[];
|
|
39
|
+
}
|
|
40
|
+
/** An event sent every time a category entity is changed. */
|
|
41
|
+
export interface CategoryNotification {
|
|
42
|
+
category?: Category;
|
|
43
|
+
event?: Event;
|
|
44
|
+
}
|
|
45
|
+
export declare enum Event {
|
|
46
|
+
Updated = "Updated",
|
|
47
|
+
Deleted = "Deleted",
|
|
48
|
+
Created = "Created"
|
|
49
|
+
}
|
|
50
|
+
export interface CreateCategoryRequest {
|
|
51
|
+
/** Category information. */
|
|
52
|
+
category: Category;
|
|
53
|
+
}
|
|
54
|
+
export interface CreateCategoryResponse {
|
|
55
|
+
/** Category information. */
|
|
56
|
+
category?: Category;
|
|
57
|
+
}
|
|
58
|
+
export interface BatchCreateCategoryRequest {
|
|
59
|
+
/** Category information. */
|
|
60
|
+
categories?: Category[];
|
|
61
|
+
}
|
|
62
|
+
export interface BatchCreateCategoryResponse {
|
|
63
|
+
/** Category information. */
|
|
64
|
+
categories?: Category[];
|
|
65
|
+
}
|
|
66
|
+
export interface UpdateCategoryRequest {
|
|
67
|
+
category: Category;
|
|
68
|
+
}
|
|
69
|
+
export interface UpdateCategoryResponse {
|
|
70
|
+
/** The updated category. */
|
|
71
|
+
category?: Category;
|
|
72
|
+
}
|
|
73
|
+
export interface DeleteCategoryRequest {
|
|
74
|
+
/** Category ID. */
|
|
75
|
+
id: string | null;
|
|
76
|
+
/** 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 dashboard). */
|
|
77
|
+
deleteServices?: boolean | null;
|
|
78
|
+
}
|
|
79
|
+
export interface DeleteCategoryResponse {
|
|
80
|
+
/** Deleted Category ID. */
|
|
81
|
+
id?: string | null;
|
|
82
|
+
}
|
|
83
|
+
export interface BatchDeleteCategoryRequest {
|
|
84
|
+
/** Category ID. */
|
|
85
|
+
ids?: string[] | null;
|
|
86
|
+
}
|
|
87
|
+
export interface BatchDeleteCategoryResponse {
|
|
88
|
+
}
|
|
89
|
+
export interface BatchUpdateCategoryRequest {
|
|
90
|
+
/** List of categories to be updated. */
|
|
91
|
+
categories?: Category[];
|
|
92
|
+
/** Field mask of fields to update. */
|
|
93
|
+
fieldMask?: string[];
|
|
94
|
+
}
|
|
95
|
+
export interface BatchUpdateCategoryResponse {
|
|
96
|
+
}
|
|
97
|
+
export interface MessageEnvelope {
|
|
98
|
+
/** App instance ID. */
|
|
99
|
+
instanceId?: string | null;
|
|
100
|
+
/** Event type. */
|
|
101
|
+
eventType?: string;
|
|
102
|
+
/** The identification type and identity data. */
|
|
103
|
+
identity?: IdentificationData;
|
|
104
|
+
/** Stringify payload. */
|
|
105
|
+
data?: string;
|
|
106
|
+
}
|
|
107
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
108
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
109
|
+
anonymousVisitorId?: string;
|
|
110
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
111
|
+
memberId?: string;
|
|
112
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
113
|
+
wixUserId?: string;
|
|
114
|
+
/** ID of an app. */
|
|
115
|
+
appId?: string;
|
|
116
|
+
/** @readonly */
|
|
117
|
+
identityType?: WebhookIdentityType;
|
|
118
|
+
}
|
|
119
|
+
/** @oneof */
|
|
120
|
+
export interface IdentificationDataIdOneOf {
|
|
121
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
122
|
+
anonymousVisitorId?: string;
|
|
123
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
124
|
+
memberId?: string;
|
|
125
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
126
|
+
wixUserId?: string;
|
|
127
|
+
/** ID of an app. */
|
|
128
|
+
appId?: string;
|
|
129
|
+
}
|
|
130
|
+
export declare enum WebhookIdentityType {
|
|
131
|
+
UNKNOWN = "UNKNOWN",
|
|
132
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
133
|
+
MEMBER = "MEMBER",
|
|
134
|
+
WIX_USER = "WIX_USER",
|
|
135
|
+
APP = "APP"
|
|
136
|
+
}
|
|
137
|
+
interface CategoryNonNullableFields {
|
|
138
|
+
status: Status;
|
|
139
|
+
}
|
|
140
|
+
export interface ListCategoryResponseNonNullableFields {
|
|
141
|
+
categories: CategoryNonNullableFields[];
|
|
142
|
+
}
|
|
143
|
+
export interface CreateCategoryResponseNonNullableFields {
|
|
144
|
+
category?: CategoryNonNullableFields;
|
|
145
|
+
}
|
|
146
|
+
export interface UpdateCategoryResponseNonNullableFields {
|
|
147
|
+
category?: CategoryNonNullableFields;
|
|
148
|
+
}
|
|
149
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export var Status;
|
|
2
|
+
(function (Status) {
|
|
3
|
+
/** The category was created. */
|
|
4
|
+
Status["CREATED"] = "CREATED";
|
|
5
|
+
/** The category was deleted. */
|
|
6
|
+
Status["DELETED"] = "DELETED";
|
|
7
|
+
})(Status || (Status = {}));
|
|
8
|
+
export var Event;
|
|
9
|
+
(function (Event) {
|
|
10
|
+
Event["Updated"] = "Updated";
|
|
11
|
+
Event["Deleted"] = "Deleted";
|
|
12
|
+
Event["Created"] = "Created";
|
|
13
|
+
})(Event || (Event = {}));
|
|
14
|
+
export var WebhookIdentityType;
|
|
15
|
+
(function (WebhookIdentityType) {
|
|
16
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
17
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
18
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
19
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
20
|
+
WebhookIdentityType["APP"] = "APP";
|
|
21
|
+
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
22
|
+
//# sourceMappingURL=bookings-v1-category-categories.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookings-v1-category-categories.types.js","sourceRoot":"","sources":["../../../src/bookings-v1-category-categories.types.ts"],"names":[],"mappings":"AAoBA,MAAM,CAAN,IAAY,MAKX;AALD,WAAY,MAAM;IAChB,gCAAgC;IAChC,6BAAmB,CAAA;IACnB,gCAAgC;IAChC,6BAAmB,CAAA;AACrB,CAAC,EALW,MAAM,KAAN,MAAM,QAKjB;AAwBD,MAAM,CAAN,IAAY,KAIX;AAJD,WAAY,KAAK;IACf,4BAAmB,CAAA;IACnB,4BAAmB,CAAA;IACnB,4BAAmB,CAAA;AACrB,CAAC,EAJW,KAAK,KAAL,KAAK,QAIhB;AA+FD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|