@wix/auto_sdk_bookings_categories 1.0.7 → 1.0.9
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/{internal/cjs/src/bookings-v1-category-categories.types.d.ts → bookings-v1-category-categories.universal-D73Eabxz.d.mts} +75 -40
- package/build/{internal/es/src/bookings-v1-category-categories.types.d.ts → bookings-v1-category-categories.universal-D73Eabxz.d.ts} +75 -40
- package/build/index.d.mts +58 -0
- package/build/index.d.ts +58 -0
- package/build/index.js +389 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +358 -0
- package/build/index.mjs.map +1 -0
- package/build/{es/src/bookings-v1-category-categories.types.d.ts → internal/bookings-v1-category-categories.universal-NT1IIPyD.d.mts} +91 -33
- package/build/{cjs/src/bookings-v1-category-categories.types.d.ts → internal/bookings-v1-category-categories.universal-NT1IIPyD.d.ts} +91 -33
- package/build/internal/index.d.mts +58 -0
- package/build/internal/index.d.ts +58 -0
- package/build/internal/index.js +389 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +358 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +107 -0
- package/build/internal/meta.d.ts +107 -0
- package/build/internal/meta.js +274 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +244 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +107 -0
- package/build/meta.d.ts +107 -0
- package/build/meta.js +274 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +244 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/bookings-v1-category-categories.context.d.ts +0 -12
- package/build/cjs/src/bookings-v1-category-categories.context.js +0 -18
- package/build/cjs/src/bookings-v1-category-categories.context.js.map +0 -1
- package/build/cjs/src/bookings-v1-category-categories.http.d.ts +0 -24
- package/build/cjs/src/bookings-v1-category-categories.http.js +0 -189
- package/build/cjs/src/bookings-v1-category-categories.http.js.map +0 -1
- package/build/cjs/src/bookings-v1-category-categories.meta.d.ts +0 -20
- package/build/cjs/src/bookings-v1-category-categories.meta.js +0 -104
- package/build/cjs/src/bookings-v1-category-categories.meta.js.map +0 -1
- package/build/cjs/src/bookings-v1-category-categories.public.d.ts +0 -51
- package/build/cjs/src/bookings-v1-category-categories.public.js +0 -37
- package/build/cjs/src/bookings-v1-category-categories.public.js.map +0 -1
- package/build/cjs/src/bookings-v1-category-categories.types.js +0 -28
- package/build/cjs/src/bookings-v1-category-categories.types.js.map +0 -1
- package/build/cjs/src/bookings-v1-category-categories.universal.d.ts +0 -345
- package/build/cjs/src/bookings-v1-category-categories.universal.js +0 -243
- package/build/cjs/src/bookings-v1-category-categories.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/bookings-v1-category-categories.context.d.ts +0 -12
- package/build/es/src/bookings-v1-category-categories.context.js +0 -12
- package/build/es/src/bookings-v1-category-categories.context.js.map +0 -1
- package/build/es/src/bookings-v1-category-categories.http.d.ts +0 -24
- package/build/es/src/bookings-v1-category-categories.http.js +0 -182
- package/build/es/src/bookings-v1-category-categories.http.js.map +0 -1
- package/build/es/src/bookings-v1-category-categories.meta.d.ts +0 -20
- package/build/es/src/bookings-v1-category-categories.meta.js +0 -74
- package/build/es/src/bookings-v1-category-categories.meta.js.map +0 -1
- package/build/es/src/bookings-v1-category-categories.public.d.ts +0 -51
- package/build/es/src/bookings-v1-category-categories.public.js +0 -27
- package/build/es/src/bookings-v1-category-categories.public.js.map +0 -1
- package/build/es/src/bookings-v1-category-categories.types.js +0 -25
- package/build/es/src/bookings-v1-category-categories.types.js.map +0 -1
- package/build/es/src/bookings-v1-category-categories.universal.d.ts +0 -345
- package/build/es/src/bookings-v1-category-categories.universal.js +0 -213
- package/build/es/src/bookings-v1-category-categories.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/bookings-v1-category-categories.context.d.ts +0 -12
- package/build/internal/cjs/src/bookings-v1-category-categories.context.js +0 -18
- package/build/internal/cjs/src/bookings-v1-category-categories.context.js.map +0 -1
- package/build/internal/cjs/src/bookings-v1-category-categories.http.d.ts +0 -24
- package/build/internal/cjs/src/bookings-v1-category-categories.http.js +0 -189
- package/build/internal/cjs/src/bookings-v1-category-categories.http.js.map +0 -1
- package/build/internal/cjs/src/bookings-v1-category-categories.meta.d.ts +0 -20
- package/build/internal/cjs/src/bookings-v1-category-categories.meta.js +0 -104
- package/build/internal/cjs/src/bookings-v1-category-categories.meta.js.map +0 -1
- package/build/internal/cjs/src/bookings-v1-category-categories.public.d.ts +0 -51
- package/build/internal/cjs/src/bookings-v1-category-categories.public.js +0 -37
- package/build/internal/cjs/src/bookings-v1-category-categories.public.js.map +0 -1
- package/build/internal/cjs/src/bookings-v1-category-categories.types.js +0 -28
- package/build/internal/cjs/src/bookings-v1-category-categories.types.js.map +0 -1
- package/build/internal/cjs/src/bookings-v1-category-categories.universal.d.ts +0 -368
- package/build/internal/cjs/src/bookings-v1-category-categories.universal.js +0 -243
- package/build/internal/cjs/src/bookings-v1-category-categories.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/bookings-v1-category-categories.context.d.ts +0 -12
- package/build/internal/es/src/bookings-v1-category-categories.context.js +0 -12
- package/build/internal/es/src/bookings-v1-category-categories.context.js.map +0 -1
- package/build/internal/es/src/bookings-v1-category-categories.http.d.ts +0 -24
- package/build/internal/es/src/bookings-v1-category-categories.http.js +0 -182
- package/build/internal/es/src/bookings-v1-category-categories.http.js.map +0 -1
- package/build/internal/es/src/bookings-v1-category-categories.meta.d.ts +0 -20
- package/build/internal/es/src/bookings-v1-category-categories.meta.js +0 -74
- package/build/internal/es/src/bookings-v1-category-categories.meta.js.map +0 -1
- package/build/internal/es/src/bookings-v1-category-categories.public.d.ts +0 -51
- package/build/internal/es/src/bookings-v1-category-categories.public.js +0 -27
- package/build/internal/es/src/bookings-v1-category-categories.public.js.map +0 -1
- package/build/internal/es/src/bookings-v1-category-categories.types.js +0 -25
- package/build/internal/es/src/bookings-v1-category-categories.types.js.map +0 -1
- package/build/internal/es/src/bookings-v1-category-categories.universal.d.ts +0 -368
- package/build/internal/es/src/bookings-v1-category-categories.universal.js +0 -213
- package/build/internal/es/src/bookings-v1-category-categories.universal.js.map +0 -1
|
@@ -1,33 +1,24 @@
|
|
|
1
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
|
-
|
|
2
|
+
interface Category {
|
|
3
3
|
/**
|
|
4
4
|
* Category ID.
|
|
5
5
|
* @format GUID
|
|
6
6
|
* @readonly
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
_id?: string | null;
|
|
9
9
|
/**
|
|
10
10
|
* Category name.
|
|
11
11
|
* @maxLength 500
|
|
12
12
|
*/
|
|
13
13
|
name?: string | null;
|
|
14
|
-
/**
|
|
15
|
-
* Category status.
|
|
16
|
-
*
|
|
17
|
-
* Default: `CREATED`
|
|
18
|
-
* @readonly
|
|
19
|
-
*/
|
|
20
|
-
status?: Status;
|
|
21
|
-
/** Sort order of the category in the live site and dashboard. */
|
|
22
|
-
sortOrder?: number | null;
|
|
23
14
|
}
|
|
24
|
-
|
|
15
|
+
declare enum Status {
|
|
25
16
|
/** The category was created. */
|
|
26
17
|
CREATED = "CREATED",
|
|
27
18
|
/** The category was deleted. */
|
|
28
19
|
DELETED = "DELETED"
|
|
29
20
|
}
|
|
30
|
-
|
|
21
|
+
interface ListCategoryRequest {
|
|
31
22
|
/**
|
|
32
23
|
* IDs of the categories to retrieve.
|
|
33
24
|
*
|
|
@@ -35,23 +26,17 @@ export interface ListCategoryRequest {
|
|
|
35
26
|
* @format GUID
|
|
36
27
|
*/
|
|
37
28
|
categoryIds?: string[];
|
|
38
|
-
/**
|
|
39
|
-
* Whether to include deleted categories in the response.
|
|
40
|
-
*
|
|
41
|
-
* Default: `false`
|
|
42
|
-
*/
|
|
43
|
-
includeDeleted?: boolean | null;
|
|
44
29
|
}
|
|
45
|
-
|
|
30
|
+
interface ListCategoryResponse {
|
|
46
31
|
/** Retrieved categories. */
|
|
47
32
|
categories?: Category[];
|
|
48
33
|
}
|
|
49
34
|
/** An event sent every time a category entity is changed. */
|
|
50
|
-
|
|
35
|
+
interface CategoryNotification {
|
|
51
36
|
category?: Category;
|
|
52
37
|
event?: Event;
|
|
53
38
|
}
|
|
54
|
-
|
|
39
|
+
declare enum Event {
|
|
55
40
|
/** Category was updated. */
|
|
56
41
|
Updated = "Updated",
|
|
57
42
|
/** Category was deleted. */
|
|
@@ -59,36 +44,36 @@ export declare enum Event {
|
|
|
59
44
|
/** Category was created. */
|
|
60
45
|
Created = "Created"
|
|
61
46
|
}
|
|
62
|
-
|
|
47
|
+
interface CreateCategoryRequest {
|
|
63
48
|
/** Category to create. */
|
|
64
49
|
category: Category;
|
|
65
50
|
}
|
|
66
|
-
|
|
51
|
+
interface CreateCategoryResponse {
|
|
67
52
|
/** Created category. */
|
|
68
53
|
category?: Category;
|
|
69
54
|
}
|
|
70
|
-
|
|
55
|
+
interface BatchCreateCategoryRequest {
|
|
71
56
|
/** Categories to create. */
|
|
72
57
|
categories?: Category[];
|
|
73
58
|
}
|
|
74
|
-
|
|
59
|
+
interface BatchCreateCategoryResponse {
|
|
75
60
|
/** Created categories. */
|
|
76
61
|
categories?: Category[];
|
|
77
62
|
}
|
|
78
|
-
|
|
63
|
+
interface UpdateCategoryRequest {
|
|
79
64
|
/** Category to update. */
|
|
80
65
|
category: Category;
|
|
81
66
|
}
|
|
82
|
-
|
|
67
|
+
interface UpdateCategoryResponse {
|
|
83
68
|
/** Updated category. */
|
|
84
69
|
category?: Category;
|
|
85
70
|
}
|
|
86
|
-
|
|
71
|
+
interface DeleteCategoryRequest {
|
|
87
72
|
/**
|
|
88
73
|
* ID of the category to delete.
|
|
89
74
|
* @format GUID
|
|
90
75
|
*/
|
|
91
|
-
|
|
76
|
+
_id: string | null;
|
|
92
77
|
/**
|
|
93
78
|
* Whether to delete all the services associated with the category.
|
|
94
79
|
*
|
|
@@ -96,31 +81,31 @@ export interface DeleteCategoryRequest {
|
|
|
96
81
|
*/
|
|
97
82
|
deleteServices?: boolean | null;
|
|
98
83
|
}
|
|
99
|
-
|
|
84
|
+
interface DeleteCategoryResponse {
|
|
100
85
|
/**
|
|
101
86
|
* ID of the deleted category.
|
|
102
87
|
* @format GUID
|
|
103
88
|
*/
|
|
104
|
-
|
|
89
|
+
_id?: string | null;
|
|
105
90
|
}
|
|
106
|
-
|
|
91
|
+
interface BatchDeleteCategoryRequest {
|
|
107
92
|
/**
|
|
108
93
|
* IDs of the categories to delete.
|
|
109
94
|
* @format GUID
|
|
110
95
|
*/
|
|
111
96
|
ids?: string[] | null;
|
|
112
97
|
}
|
|
113
|
-
|
|
98
|
+
interface BatchDeleteCategoryResponse {
|
|
114
99
|
}
|
|
115
|
-
|
|
100
|
+
interface BatchUpdateCategoryRequest {
|
|
116
101
|
/** List of categories to be updated. */
|
|
117
102
|
categories?: Category[];
|
|
118
103
|
/** Field mask of fields to update. */
|
|
119
104
|
fieldMask?: string[];
|
|
120
105
|
}
|
|
121
|
-
|
|
106
|
+
interface BatchUpdateCategoryResponse {
|
|
122
107
|
}
|
|
123
|
-
|
|
108
|
+
interface MessageEnvelope {
|
|
124
109
|
/**
|
|
125
110
|
* App instance ID.
|
|
126
111
|
* @format GUID
|
|
@@ -136,7 +121,7 @@ export interface MessageEnvelope {
|
|
|
136
121
|
/** Stringify payload. */
|
|
137
122
|
data?: string;
|
|
138
123
|
}
|
|
139
|
-
|
|
124
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
140
125
|
/**
|
|
141
126
|
* ID of a site visitor that has not logged in to the site.
|
|
142
127
|
* @format GUID
|
|
@@ -161,7 +146,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
161
146
|
identityType?: WebhookIdentityType;
|
|
162
147
|
}
|
|
163
148
|
/** @oneof */
|
|
164
|
-
|
|
149
|
+
interface IdentificationDataIdOneOf {
|
|
165
150
|
/**
|
|
166
151
|
* ID of a site visitor that has not logged in to the site.
|
|
167
152
|
* @format GUID
|
|
@@ -183,10 +168,60 @@ export interface IdentificationDataIdOneOf {
|
|
|
183
168
|
*/
|
|
184
169
|
appId?: string;
|
|
185
170
|
}
|
|
186
|
-
|
|
171
|
+
declare enum WebhookIdentityType {
|
|
187
172
|
UNKNOWN = "UNKNOWN",
|
|
188
173
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
189
174
|
MEMBER = "MEMBER",
|
|
190
175
|
WIX_USER = "WIX_USER",
|
|
191
176
|
APP = "APP"
|
|
192
177
|
}
|
|
178
|
+
interface BaseEventMetadata {
|
|
179
|
+
/**
|
|
180
|
+
* App instance ID.
|
|
181
|
+
* @format GUID
|
|
182
|
+
*/
|
|
183
|
+
instanceId?: string | null;
|
|
184
|
+
/**
|
|
185
|
+
* Event type.
|
|
186
|
+
* @maxLength 150
|
|
187
|
+
*/
|
|
188
|
+
eventType?: string;
|
|
189
|
+
/** The identification type and identity data. */
|
|
190
|
+
identity?: IdentificationData;
|
|
191
|
+
}
|
|
192
|
+
interface CategoryNotificationEnvelope {
|
|
193
|
+
data: CategoryNotification;
|
|
194
|
+
metadata: BaseEventMetadata;
|
|
195
|
+
}
|
|
196
|
+
interface ListCategoriesOptions {
|
|
197
|
+
/**
|
|
198
|
+
* IDs of the categories to retrieve.
|
|
199
|
+
*
|
|
200
|
+
* Default: All categories are retrieved.
|
|
201
|
+
* @format GUID
|
|
202
|
+
*/
|
|
203
|
+
categoryIds?: string[];
|
|
204
|
+
}
|
|
205
|
+
interface UpdateCategory {
|
|
206
|
+
/**
|
|
207
|
+
* Category ID.
|
|
208
|
+
* @format GUID
|
|
209
|
+
* @readonly
|
|
210
|
+
*/
|
|
211
|
+
_id?: string | null;
|
|
212
|
+
/**
|
|
213
|
+
* Category name.
|
|
214
|
+
* @maxLength 500
|
|
215
|
+
*/
|
|
216
|
+
name?: string | null;
|
|
217
|
+
}
|
|
218
|
+
interface DeleteCategoryOptions {
|
|
219
|
+
/**
|
|
220
|
+
* Whether to delete all the services associated with the category.
|
|
221
|
+
*
|
|
222
|
+
* Default: `false`
|
|
223
|
+
*/
|
|
224
|
+
deleteServices?: boolean | null;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export { type BatchCreateCategoryRequest as B, type Category as C, type DeleteCategoryOptions as D, Event as E, type IdentificationData as I, type ListCategoriesOptions as L, type MessageEnvelope as M, Status as S, type UpdateCategory as U, WebhookIdentityType as W, type ListCategoryResponse as a, type UpdateCategoryResponse as b, type DeleteCategoryResponse as c, type ListCategoryRequest as d, type CategoryNotification as e, type CreateCategoryRequest as f, type CreateCategoryResponse as g, type BatchCreateCategoryResponse as h, type UpdateCategoryRequest as i, type DeleteCategoryRequest as j, type BatchDeleteCategoryRequest as k, type BatchDeleteCategoryResponse as l, type BatchUpdateCategoryRequest as m, type BatchUpdateCategoryResponse as n, type IdentificationDataIdOneOf as o, type BaseEventMetadata as p, type CategoryNotificationEnvelope as q };
|
|
@@ -1,33 +1,24 @@
|
|
|
1
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
|
-
|
|
2
|
+
interface Category {
|
|
3
3
|
/**
|
|
4
4
|
* Category ID.
|
|
5
5
|
* @format GUID
|
|
6
6
|
* @readonly
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
_id?: string | null;
|
|
9
9
|
/**
|
|
10
10
|
* Category name.
|
|
11
11
|
* @maxLength 500
|
|
12
12
|
*/
|
|
13
13
|
name?: string | null;
|
|
14
|
-
/**
|
|
15
|
-
* Category status.
|
|
16
|
-
*
|
|
17
|
-
* Default: `CREATED`
|
|
18
|
-
* @readonly
|
|
19
|
-
*/
|
|
20
|
-
status?: Status;
|
|
21
|
-
/** Sort order of the category in the live site and dashboard. */
|
|
22
|
-
sortOrder?: number | null;
|
|
23
14
|
}
|
|
24
|
-
|
|
15
|
+
declare enum Status {
|
|
25
16
|
/** The category was created. */
|
|
26
17
|
CREATED = "CREATED",
|
|
27
18
|
/** The category was deleted. */
|
|
28
19
|
DELETED = "DELETED"
|
|
29
20
|
}
|
|
30
|
-
|
|
21
|
+
interface ListCategoryRequest {
|
|
31
22
|
/**
|
|
32
23
|
* IDs of the categories to retrieve.
|
|
33
24
|
*
|
|
@@ -35,23 +26,17 @@ export interface ListCategoryRequest {
|
|
|
35
26
|
* @format GUID
|
|
36
27
|
*/
|
|
37
28
|
categoryIds?: string[];
|
|
38
|
-
/**
|
|
39
|
-
* Whether to include deleted categories in the response.
|
|
40
|
-
*
|
|
41
|
-
* Default: `false`
|
|
42
|
-
*/
|
|
43
|
-
includeDeleted?: boolean | null;
|
|
44
29
|
}
|
|
45
|
-
|
|
30
|
+
interface ListCategoryResponse {
|
|
46
31
|
/** Retrieved categories. */
|
|
47
32
|
categories?: Category[];
|
|
48
33
|
}
|
|
49
34
|
/** An event sent every time a category entity is changed. */
|
|
50
|
-
|
|
35
|
+
interface CategoryNotification {
|
|
51
36
|
category?: Category;
|
|
52
37
|
event?: Event;
|
|
53
38
|
}
|
|
54
|
-
|
|
39
|
+
declare enum Event {
|
|
55
40
|
/** Category was updated. */
|
|
56
41
|
Updated = "Updated",
|
|
57
42
|
/** Category was deleted. */
|
|
@@ -59,36 +44,36 @@ export declare enum Event {
|
|
|
59
44
|
/** Category was created. */
|
|
60
45
|
Created = "Created"
|
|
61
46
|
}
|
|
62
|
-
|
|
47
|
+
interface CreateCategoryRequest {
|
|
63
48
|
/** Category to create. */
|
|
64
49
|
category: Category;
|
|
65
50
|
}
|
|
66
|
-
|
|
51
|
+
interface CreateCategoryResponse {
|
|
67
52
|
/** Created category. */
|
|
68
53
|
category?: Category;
|
|
69
54
|
}
|
|
70
|
-
|
|
55
|
+
interface BatchCreateCategoryRequest {
|
|
71
56
|
/** Categories to create. */
|
|
72
57
|
categories?: Category[];
|
|
73
58
|
}
|
|
74
|
-
|
|
59
|
+
interface BatchCreateCategoryResponse {
|
|
75
60
|
/** Created categories. */
|
|
76
61
|
categories?: Category[];
|
|
77
62
|
}
|
|
78
|
-
|
|
63
|
+
interface UpdateCategoryRequest {
|
|
79
64
|
/** Category to update. */
|
|
80
65
|
category: Category;
|
|
81
66
|
}
|
|
82
|
-
|
|
67
|
+
interface UpdateCategoryResponse {
|
|
83
68
|
/** Updated category. */
|
|
84
69
|
category?: Category;
|
|
85
70
|
}
|
|
86
|
-
|
|
71
|
+
interface DeleteCategoryRequest {
|
|
87
72
|
/**
|
|
88
73
|
* ID of the category to delete.
|
|
89
74
|
* @format GUID
|
|
90
75
|
*/
|
|
91
|
-
|
|
76
|
+
_id: string | null;
|
|
92
77
|
/**
|
|
93
78
|
* Whether to delete all the services associated with the category.
|
|
94
79
|
*
|
|
@@ -96,31 +81,31 @@ export interface DeleteCategoryRequest {
|
|
|
96
81
|
*/
|
|
97
82
|
deleteServices?: boolean | null;
|
|
98
83
|
}
|
|
99
|
-
|
|
84
|
+
interface DeleteCategoryResponse {
|
|
100
85
|
/**
|
|
101
86
|
* ID of the deleted category.
|
|
102
87
|
* @format GUID
|
|
103
88
|
*/
|
|
104
|
-
|
|
89
|
+
_id?: string | null;
|
|
105
90
|
}
|
|
106
|
-
|
|
91
|
+
interface BatchDeleteCategoryRequest {
|
|
107
92
|
/**
|
|
108
93
|
* IDs of the categories to delete.
|
|
109
94
|
* @format GUID
|
|
110
95
|
*/
|
|
111
96
|
ids?: string[] | null;
|
|
112
97
|
}
|
|
113
|
-
|
|
98
|
+
interface BatchDeleteCategoryResponse {
|
|
114
99
|
}
|
|
115
|
-
|
|
100
|
+
interface BatchUpdateCategoryRequest {
|
|
116
101
|
/** List of categories to be updated. */
|
|
117
102
|
categories?: Category[];
|
|
118
103
|
/** Field mask of fields to update. */
|
|
119
104
|
fieldMask?: string[];
|
|
120
105
|
}
|
|
121
|
-
|
|
106
|
+
interface BatchUpdateCategoryResponse {
|
|
122
107
|
}
|
|
123
|
-
|
|
108
|
+
interface MessageEnvelope {
|
|
124
109
|
/**
|
|
125
110
|
* App instance ID.
|
|
126
111
|
* @format GUID
|
|
@@ -136,7 +121,7 @@ export interface MessageEnvelope {
|
|
|
136
121
|
/** Stringify payload. */
|
|
137
122
|
data?: string;
|
|
138
123
|
}
|
|
139
|
-
|
|
124
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
140
125
|
/**
|
|
141
126
|
* ID of a site visitor that has not logged in to the site.
|
|
142
127
|
* @format GUID
|
|
@@ -161,7 +146,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
161
146
|
identityType?: WebhookIdentityType;
|
|
162
147
|
}
|
|
163
148
|
/** @oneof */
|
|
164
|
-
|
|
149
|
+
interface IdentificationDataIdOneOf {
|
|
165
150
|
/**
|
|
166
151
|
* ID of a site visitor that has not logged in to the site.
|
|
167
152
|
* @format GUID
|
|
@@ -183,10 +168,60 @@ export interface IdentificationDataIdOneOf {
|
|
|
183
168
|
*/
|
|
184
169
|
appId?: string;
|
|
185
170
|
}
|
|
186
|
-
|
|
171
|
+
declare enum WebhookIdentityType {
|
|
187
172
|
UNKNOWN = "UNKNOWN",
|
|
188
173
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
189
174
|
MEMBER = "MEMBER",
|
|
190
175
|
WIX_USER = "WIX_USER",
|
|
191
176
|
APP = "APP"
|
|
192
177
|
}
|
|
178
|
+
interface BaseEventMetadata {
|
|
179
|
+
/**
|
|
180
|
+
* App instance ID.
|
|
181
|
+
* @format GUID
|
|
182
|
+
*/
|
|
183
|
+
instanceId?: string | null;
|
|
184
|
+
/**
|
|
185
|
+
* Event type.
|
|
186
|
+
* @maxLength 150
|
|
187
|
+
*/
|
|
188
|
+
eventType?: string;
|
|
189
|
+
/** The identification type and identity data. */
|
|
190
|
+
identity?: IdentificationData;
|
|
191
|
+
}
|
|
192
|
+
interface CategoryNotificationEnvelope {
|
|
193
|
+
data: CategoryNotification;
|
|
194
|
+
metadata: BaseEventMetadata;
|
|
195
|
+
}
|
|
196
|
+
interface ListCategoriesOptions {
|
|
197
|
+
/**
|
|
198
|
+
* IDs of the categories to retrieve.
|
|
199
|
+
*
|
|
200
|
+
* Default: All categories are retrieved.
|
|
201
|
+
* @format GUID
|
|
202
|
+
*/
|
|
203
|
+
categoryIds?: string[];
|
|
204
|
+
}
|
|
205
|
+
interface UpdateCategory {
|
|
206
|
+
/**
|
|
207
|
+
* Category ID.
|
|
208
|
+
* @format GUID
|
|
209
|
+
* @readonly
|
|
210
|
+
*/
|
|
211
|
+
_id?: string | null;
|
|
212
|
+
/**
|
|
213
|
+
* Category name.
|
|
214
|
+
* @maxLength 500
|
|
215
|
+
*/
|
|
216
|
+
name?: string | null;
|
|
217
|
+
}
|
|
218
|
+
interface DeleteCategoryOptions {
|
|
219
|
+
/**
|
|
220
|
+
* Whether to delete all the services associated with the category.
|
|
221
|
+
*
|
|
222
|
+
* Default: `false`
|
|
223
|
+
*/
|
|
224
|
+
deleteServices?: boolean | null;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export { type BatchCreateCategoryRequest as B, type Category as C, type DeleteCategoryOptions as D, Event as E, type IdentificationData as I, type ListCategoriesOptions as L, type MessageEnvelope as M, Status as S, type UpdateCategory as U, WebhookIdentityType as W, type ListCategoryResponse as a, type UpdateCategoryResponse as b, type DeleteCategoryResponse as c, type ListCategoryRequest as d, type CategoryNotification as e, type CreateCategoryRequest as f, type CreateCategoryResponse as g, type BatchCreateCategoryResponse as h, type UpdateCategoryRequest as i, type DeleteCategoryRequest as j, type BatchDeleteCategoryRequest as k, type BatchDeleteCategoryResponse as l, type BatchUpdateCategoryRequest as m, type BatchUpdateCategoryResponse as n, type IdentificationDataIdOneOf as o, type BaseEventMetadata as p, type CategoryNotificationEnvelope as q };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { L as ListCategoriesOptions, a as ListCategoryResponse, C as Category, U as UpdateCategory, b as UpdateCategoryResponse, D as DeleteCategoryOptions, c as DeleteCategoryResponse } from './bookings-v1-category-categories.universal-D73Eabxz.mjs';
|
|
3
|
+
export { p as BaseEventMetadata, B as BatchCreateCategoryRequest, h as BatchCreateCategoryResponse, k as BatchDeleteCategoryRequest, l as BatchDeleteCategoryResponse, m as BatchUpdateCategoryRequest, n as BatchUpdateCategoryResponse, e as CategoryNotification, q as CategoryNotificationEnvelope, f as CreateCategoryRequest, g as CreateCategoryResponse, j as DeleteCategoryRequest, E as Event, I as IdentificationData, o as IdentificationDataIdOneOf, d as ListCategoryRequest, M as MessageEnvelope, S as Status, i as UpdateCategoryRequest, W as WebhookIdentityType } from './bookings-v1-category-categories.universal-D73Eabxz.mjs';
|
|
4
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
5
|
+
|
|
6
|
+
declare function listCategories$1(httpClient: HttpClient): ListCategoriesSignature;
|
|
7
|
+
interface ListCategoriesSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves all categories.
|
|
10
|
+
* @param - Options to use when listing categories.
|
|
11
|
+
*/
|
|
12
|
+
(options?: ListCategoriesOptions | undefined): Promise<ListCategoryResponse>;
|
|
13
|
+
}
|
|
14
|
+
declare function createCategory$1(httpClient: HttpClient): CreateCategorySignature;
|
|
15
|
+
interface CreateCategorySignature {
|
|
16
|
+
/**
|
|
17
|
+
* Creates a category.
|
|
18
|
+
* @param - Category to create.
|
|
19
|
+
* @returns Created category.
|
|
20
|
+
*/
|
|
21
|
+
(category: Category): Promise<Category>;
|
|
22
|
+
}
|
|
23
|
+
declare function updateCategory$1(httpClient: HttpClient): UpdateCategorySignature;
|
|
24
|
+
interface UpdateCategorySignature {
|
|
25
|
+
/**
|
|
26
|
+
* Updates a category.
|
|
27
|
+
*
|
|
28
|
+
*
|
|
29
|
+
* Each time the category is updated, revision increments by 1. You must include
|
|
30
|
+
* the number of the existing revision when updating the category. This ensures
|
|
31
|
+
* you're working with the latest service information and prevents unintended
|
|
32
|
+
* overwrites.
|
|
33
|
+
* @param - Category ID.
|
|
34
|
+
*/
|
|
35
|
+
(_id: string, category: UpdateCategory): Promise<UpdateCategoryResponse>;
|
|
36
|
+
}
|
|
37
|
+
declare function deleteCategory$1(httpClient: HttpClient): DeleteCategorySignature;
|
|
38
|
+
interface DeleteCategorySignature {
|
|
39
|
+
/**
|
|
40
|
+
* Deletes a category.
|
|
41
|
+
*
|
|
42
|
+
*
|
|
43
|
+
* You can specify `{"deleteServices": true}` to also delete all associated
|
|
44
|
+
* services. Learn more about *deleting a service*
|
|
45
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/delete-service) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/delete-service)).
|
|
46
|
+
* @param - ID of the category to delete.
|
|
47
|
+
*/
|
|
48
|
+
(_id: string, options?: DeleteCategoryOptions | undefined): Promise<DeleteCategoryResponse>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
declare const listCategories: MaybeContext<BuildRESTFunction<typeof listCategories$1> & typeof listCategories$1>;
|
|
52
|
+
declare const createCategory: MaybeContext<BuildRESTFunction<typeof createCategory$1> & typeof createCategory$1>;
|
|
53
|
+
declare const updateCategory: MaybeContext<BuildRESTFunction<typeof updateCategory$1> & typeof updateCategory$1>;
|
|
54
|
+
declare const deleteCategory: MaybeContext<BuildRESTFunction<typeof deleteCategory$1> & typeof deleteCategory$1>;
|
|
55
|
+
/** */
|
|
56
|
+
declare const onCategoryNotification: ReturnType<typeof createEventModule<typeof publicOnCategoryNotification>>;
|
|
57
|
+
|
|
58
|
+
export { Category, DeleteCategoryOptions, DeleteCategoryResponse, ListCategoriesOptions, ListCategoryResponse, UpdateCategory, UpdateCategoryResponse, createCategory, deleteCategory, listCategories, onCategoryNotification, updateCategory };
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { L as ListCategoriesOptions, a as ListCategoryResponse, C as Category, U as UpdateCategory, b as UpdateCategoryResponse, D as DeleteCategoryOptions, c as DeleteCategoryResponse } from './bookings-v1-category-categories.universal-D73Eabxz.js';
|
|
3
|
+
export { p as BaseEventMetadata, B as BatchCreateCategoryRequest, h as BatchCreateCategoryResponse, k as BatchDeleteCategoryRequest, l as BatchDeleteCategoryResponse, m as BatchUpdateCategoryRequest, n as BatchUpdateCategoryResponse, e as CategoryNotification, q as CategoryNotificationEnvelope, f as CreateCategoryRequest, g as CreateCategoryResponse, j as DeleteCategoryRequest, E as Event, I as IdentificationData, o as IdentificationDataIdOneOf, d as ListCategoryRequest, M as MessageEnvelope, S as Status, i as UpdateCategoryRequest, W as WebhookIdentityType } from './bookings-v1-category-categories.universal-D73Eabxz.js';
|
|
4
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
5
|
+
|
|
6
|
+
declare function listCategories$1(httpClient: HttpClient): ListCategoriesSignature;
|
|
7
|
+
interface ListCategoriesSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves all categories.
|
|
10
|
+
* @param - Options to use when listing categories.
|
|
11
|
+
*/
|
|
12
|
+
(options?: ListCategoriesOptions | undefined): Promise<ListCategoryResponse>;
|
|
13
|
+
}
|
|
14
|
+
declare function createCategory$1(httpClient: HttpClient): CreateCategorySignature;
|
|
15
|
+
interface CreateCategorySignature {
|
|
16
|
+
/**
|
|
17
|
+
* Creates a category.
|
|
18
|
+
* @param - Category to create.
|
|
19
|
+
* @returns Created category.
|
|
20
|
+
*/
|
|
21
|
+
(category: Category): Promise<Category>;
|
|
22
|
+
}
|
|
23
|
+
declare function updateCategory$1(httpClient: HttpClient): UpdateCategorySignature;
|
|
24
|
+
interface UpdateCategorySignature {
|
|
25
|
+
/**
|
|
26
|
+
* Updates a category.
|
|
27
|
+
*
|
|
28
|
+
*
|
|
29
|
+
* Each time the category is updated, revision increments by 1. You must include
|
|
30
|
+
* the number of the existing revision when updating the category. This ensures
|
|
31
|
+
* you're working with the latest service information and prevents unintended
|
|
32
|
+
* overwrites.
|
|
33
|
+
* @param - Category ID.
|
|
34
|
+
*/
|
|
35
|
+
(_id: string, category: UpdateCategory): Promise<UpdateCategoryResponse>;
|
|
36
|
+
}
|
|
37
|
+
declare function deleteCategory$1(httpClient: HttpClient): DeleteCategorySignature;
|
|
38
|
+
interface DeleteCategorySignature {
|
|
39
|
+
/**
|
|
40
|
+
* Deletes a category.
|
|
41
|
+
*
|
|
42
|
+
*
|
|
43
|
+
* You can specify `{"deleteServices": true}` to also delete all associated
|
|
44
|
+
* services. Learn more about *deleting a service*
|
|
45
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/delete-service) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/delete-service)).
|
|
46
|
+
* @param - ID of the category to delete.
|
|
47
|
+
*/
|
|
48
|
+
(_id: string, options?: DeleteCategoryOptions | undefined): Promise<DeleteCategoryResponse>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
declare const listCategories: MaybeContext<BuildRESTFunction<typeof listCategories$1> & typeof listCategories$1>;
|
|
52
|
+
declare const createCategory: MaybeContext<BuildRESTFunction<typeof createCategory$1> & typeof createCategory$1>;
|
|
53
|
+
declare const updateCategory: MaybeContext<BuildRESTFunction<typeof updateCategory$1> & typeof updateCategory$1>;
|
|
54
|
+
declare const deleteCategory: MaybeContext<BuildRESTFunction<typeof deleteCategory$1> & typeof deleteCategory$1>;
|
|
55
|
+
/** */
|
|
56
|
+
declare const onCategoryNotification: ReturnType<typeof createEventModule<typeof publicOnCategoryNotification>>;
|
|
57
|
+
|
|
58
|
+
export { Category, DeleteCategoryOptions, DeleteCategoryResponse, ListCategoriesOptions, ListCategoryResponse, UpdateCategory, UpdateCategoryResponse, createCategory, deleteCategory, listCategories, onCategoryNotification, updateCategory };
|