@wix/auto_sdk_bookings_categories-v-2 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-categories-v2-category-categories-v-2.context.d.ts +27 -0
- package/build/cjs/src/bookings-categories-v2-category-categories-v-2.context.js +33 -0
- package/build/cjs/src/bookings-categories-v2-category-categories-v-2.context.js.map +1 -0
- package/build/cjs/src/bookings-categories-v2-category-categories-v-2.http.d.ts +65 -0
- package/build/cjs/src/bookings-categories-v2-category-categories-v-2.http.js +332 -0
- package/build/cjs/src/bookings-categories-v2-category-categories-v-2.http.js.map +1 -0
- package/build/cjs/src/bookings-categories-v2-category-categories-v-2.meta.d.ts +27 -0
- package/build/cjs/src/bookings-categories-v2-category-categories-v-2.meta.js +161 -0
- package/build/cjs/src/bookings-categories-v2-category-categories-v-2.meta.js.map +1 -0
- package/build/cjs/src/bookings-categories-v2-category-categories-v-2.public.d.ts +106 -0
- package/build/cjs/src/bookings-categories-v2-category-categories-v-2.public.js +86 -0
- package/build/cjs/src/bookings-categories-v2-category-categories-v-2.public.js.map +1 -0
- package/build/cjs/src/bookings-categories-v2-category-categories-v-2.types.d.ts +372 -0
- package/build/cjs/src/bookings-categories-v2-category-categories-v-2.types.js +27 -0
- package/build/cjs/src/bookings-categories-v2-category-categories-v-2.types.js.map +1 -0
- package/build/cjs/src/bookings-categories-v2-category-categories-v-2.universal.d.ts +780 -0
- package/build/cjs/src/bookings-categories-v2-category-categories-v-2.universal.js +405 -0
- package/build/cjs/src/bookings-categories-v2-category-categories-v-2.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-categories-v2-category-categories-v-2.context.d.ts +27 -0
- package/build/es/src/bookings-categories-v2-category-categories-v-2.context.js +27 -0
- package/build/es/src/bookings-categories-v2-category-categories-v-2.context.js.map +1 -0
- package/build/es/src/bookings-categories-v2-category-categories-v-2.http.d.ts +65 -0
- package/build/es/src/bookings-categories-v2-category-categories-v-2.http.js +322 -0
- package/build/es/src/bookings-categories-v2-category-categories-v-2.http.js.map +1 -0
- package/build/es/src/bookings-categories-v2-category-categories-v-2.meta.d.ts +27 -0
- package/build/es/src/bookings-categories-v2-category-categories-v-2.meta.js +128 -0
- package/build/es/src/bookings-categories-v2-category-categories-v-2.meta.js.map +1 -0
- package/build/es/src/bookings-categories-v2-category-categories-v-2.public.d.ts +106 -0
- package/build/es/src/bookings-categories-v2-category-categories-v-2.public.js +73 -0
- package/build/es/src/bookings-categories-v2-category-categories-v-2.public.js.map +1 -0
- package/build/es/src/bookings-categories-v2-category-categories-v-2.types.d.ts +372 -0
- package/build/es/src/bookings-categories-v2-category-categories-v-2.types.js +24 -0
- package/build/es/src/bookings-categories-v2-category-categories-v-2.types.js.map +1 -0
- package/build/es/src/bookings-categories-v2-category-categories-v-2.universal.d.ts +780 -0
- package/build/es/src/bookings-categories-v2-category-categories-v-2.universal.js +372 -0
- package/build/es/src/bookings-categories-v2-category-categories-v-2.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-categories-v2-category-categories-v-2.context.d.ts +27 -0
- package/build/internal/cjs/src/bookings-categories-v2-category-categories-v-2.context.js +33 -0
- package/build/internal/cjs/src/bookings-categories-v2-category-categories-v-2.context.js.map +1 -0
- package/build/internal/cjs/src/bookings-categories-v2-category-categories-v-2.http.d.ts +65 -0
- package/build/internal/cjs/src/bookings-categories-v2-category-categories-v-2.http.js +332 -0
- package/build/internal/cjs/src/bookings-categories-v2-category-categories-v-2.http.js.map +1 -0
- package/build/internal/cjs/src/bookings-categories-v2-category-categories-v-2.meta.d.ts +27 -0
- package/build/internal/cjs/src/bookings-categories-v2-category-categories-v-2.meta.js +161 -0
- package/build/internal/cjs/src/bookings-categories-v2-category-categories-v-2.meta.js.map +1 -0
- package/build/internal/cjs/src/bookings-categories-v2-category-categories-v-2.public.d.ts +106 -0
- package/build/internal/cjs/src/bookings-categories-v2-category-categories-v-2.public.js +86 -0
- package/build/internal/cjs/src/bookings-categories-v2-category-categories-v-2.public.js.map +1 -0
- package/build/internal/cjs/src/bookings-categories-v2-category-categories-v-2.types.d.ts +372 -0
- package/build/internal/cjs/src/bookings-categories-v2-category-categories-v-2.types.js +27 -0
- package/build/internal/cjs/src/bookings-categories-v2-category-categories-v-2.types.js.map +1 -0
- package/build/internal/cjs/src/bookings-categories-v2-category-categories-v-2.universal.d.ts +780 -0
- package/build/internal/cjs/src/bookings-categories-v2-category-categories-v-2.universal.js +405 -0
- package/build/internal/cjs/src/bookings-categories-v2-category-categories-v-2.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-categories-v2-category-categories-v-2.context.d.ts +27 -0
- package/build/internal/es/src/bookings-categories-v2-category-categories-v-2.context.js +27 -0
- package/build/internal/es/src/bookings-categories-v2-category-categories-v-2.context.js.map +1 -0
- package/build/internal/es/src/bookings-categories-v2-category-categories-v-2.http.d.ts +65 -0
- package/build/internal/es/src/bookings-categories-v2-category-categories-v-2.http.js +322 -0
- package/build/internal/es/src/bookings-categories-v2-category-categories-v-2.http.js.map +1 -0
- package/build/internal/es/src/bookings-categories-v2-category-categories-v-2.meta.d.ts +27 -0
- package/build/internal/es/src/bookings-categories-v2-category-categories-v-2.meta.js +128 -0
- package/build/internal/es/src/bookings-categories-v2-category-categories-v-2.meta.js.map +1 -0
- package/build/internal/es/src/bookings-categories-v2-category-categories-v-2.public.d.ts +106 -0
- package/build/internal/es/src/bookings-categories-v2-category-categories-v-2.public.js +73 -0
- package/build/internal/es/src/bookings-categories-v2-category-categories-v-2.public.js.map +1 -0
- package/build/internal/es/src/bookings-categories-v2-category-categories-v-2.types.d.ts +372 -0
- package/build/internal/es/src/bookings-categories-v2-category-categories-v-2.types.js +24 -0
- package/build/internal/es/src/bookings-categories-v2-category-categories-v-2.types.js.map +1 -0
- package/build/internal/es/src/bookings-categories-v2-category-categories-v-2.universal.d.ts +780 -0
- package/build/internal/es/src/bookings-categories-v2-category-categories-v-2.universal.js +372 -0
- package/build/internal/es/src/bookings-categories-v2-category-categories-v-2.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.moveCategory = exports.countCategories = exports.queryCategories = exports.deleteCategory = exports.updateCategory = exports.getCategory = exports.createCategory = void 0;
|
|
27
|
+
const ambassadorWixBookingsCategoriesV2Category = __importStar(require("./bookings-categories-v2-category-categories-v-2.http.js"));
|
|
28
|
+
function createCategory() {
|
|
29
|
+
const payload = {};
|
|
30
|
+
const getRequestOptions = ambassadorWixBookingsCategoriesV2Category.createCategory(payload);
|
|
31
|
+
const getUrl = (context) => {
|
|
32
|
+
const { url } = getRequestOptions(context);
|
|
33
|
+
return url;
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
getUrl,
|
|
37
|
+
httpMethod: 'POST',
|
|
38
|
+
path: '/v2/categories',
|
|
39
|
+
pathParams: {},
|
|
40
|
+
__requestType: null,
|
|
41
|
+
__originalRequestType: null,
|
|
42
|
+
__responseType: null,
|
|
43
|
+
__originalResponseType: null,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.createCategory = createCategory;
|
|
47
|
+
function getCategory() {
|
|
48
|
+
const payload = { categoryId: ':categoryId' };
|
|
49
|
+
const getRequestOptions = ambassadorWixBookingsCategoriesV2Category.getCategory(payload);
|
|
50
|
+
const getUrl = (context) => {
|
|
51
|
+
const { url } = getRequestOptions(context);
|
|
52
|
+
return url;
|
|
53
|
+
};
|
|
54
|
+
return {
|
|
55
|
+
getUrl,
|
|
56
|
+
httpMethod: 'GET',
|
|
57
|
+
path: '/v2/categories/{categoryId}',
|
|
58
|
+
pathParams: { categoryId: 'categoryId' },
|
|
59
|
+
__requestType: null,
|
|
60
|
+
__originalRequestType: null,
|
|
61
|
+
__responseType: null,
|
|
62
|
+
__originalResponseType: null,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.getCategory = getCategory;
|
|
66
|
+
function updateCategory() {
|
|
67
|
+
const payload = { category: { id: ':categoryId' } };
|
|
68
|
+
const getRequestOptions = ambassadorWixBookingsCategoriesV2Category.updateCategory(payload);
|
|
69
|
+
const getUrl = (context) => {
|
|
70
|
+
const { url } = getRequestOptions(context);
|
|
71
|
+
return url;
|
|
72
|
+
};
|
|
73
|
+
return {
|
|
74
|
+
getUrl,
|
|
75
|
+
httpMethod: 'PATCH',
|
|
76
|
+
path: '/v2/categories/{category.id}',
|
|
77
|
+
pathParams: { categoryId: 'categoryId' },
|
|
78
|
+
__requestType: null,
|
|
79
|
+
__originalRequestType: null,
|
|
80
|
+
__responseType: null,
|
|
81
|
+
__originalResponseType: null,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
exports.updateCategory = updateCategory;
|
|
85
|
+
function deleteCategory() {
|
|
86
|
+
const payload = { categoryId: ':categoryId' };
|
|
87
|
+
const getRequestOptions = ambassadorWixBookingsCategoriesV2Category.deleteCategory(payload);
|
|
88
|
+
const getUrl = (context) => {
|
|
89
|
+
const { url } = getRequestOptions(context);
|
|
90
|
+
return url;
|
|
91
|
+
};
|
|
92
|
+
return {
|
|
93
|
+
getUrl,
|
|
94
|
+
httpMethod: 'DELETE',
|
|
95
|
+
path: '/v2/categories/{categoryId}',
|
|
96
|
+
pathParams: { categoryId: 'categoryId' },
|
|
97
|
+
__requestType: null,
|
|
98
|
+
__originalRequestType: null,
|
|
99
|
+
__responseType: null,
|
|
100
|
+
__originalResponseType: null,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
exports.deleteCategory = deleteCategory;
|
|
104
|
+
function queryCategories() {
|
|
105
|
+
const payload = {};
|
|
106
|
+
const getRequestOptions = ambassadorWixBookingsCategoriesV2Category.queryCategories(payload);
|
|
107
|
+
const getUrl = (context) => {
|
|
108
|
+
const { url } = getRequestOptions(context);
|
|
109
|
+
return url;
|
|
110
|
+
};
|
|
111
|
+
return {
|
|
112
|
+
getUrl,
|
|
113
|
+
httpMethod: 'GET',
|
|
114
|
+
path: '/v2/categories/query',
|
|
115
|
+
pathParams: {},
|
|
116
|
+
__requestType: null,
|
|
117
|
+
__originalRequestType: null,
|
|
118
|
+
__responseType: null,
|
|
119
|
+
__originalResponseType: null,
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
exports.queryCategories = queryCategories;
|
|
123
|
+
function countCategories() {
|
|
124
|
+
const payload = {};
|
|
125
|
+
const getRequestOptions = ambassadorWixBookingsCategoriesV2Category.countCategories(payload);
|
|
126
|
+
const getUrl = (context) => {
|
|
127
|
+
const { url } = getRequestOptions(context);
|
|
128
|
+
return url;
|
|
129
|
+
};
|
|
130
|
+
return {
|
|
131
|
+
getUrl,
|
|
132
|
+
httpMethod: 'POST',
|
|
133
|
+
path: '/v2/categories/count',
|
|
134
|
+
pathParams: {},
|
|
135
|
+
__requestType: null,
|
|
136
|
+
__originalRequestType: null,
|
|
137
|
+
__responseType: null,
|
|
138
|
+
__originalResponseType: null,
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
exports.countCategories = countCategories;
|
|
142
|
+
function moveCategory() {
|
|
143
|
+
const payload = { categoryId: ':categoryId' };
|
|
144
|
+
const getRequestOptions = ambassadorWixBookingsCategoriesV2Category.moveCategory(payload);
|
|
145
|
+
const getUrl = (context) => {
|
|
146
|
+
const { url } = getRequestOptions(context);
|
|
147
|
+
return url;
|
|
148
|
+
};
|
|
149
|
+
return {
|
|
150
|
+
getUrl,
|
|
151
|
+
httpMethod: 'POST',
|
|
152
|
+
path: '/v2/categories/set-position/{categoryId}',
|
|
153
|
+
pathParams: { categoryId: 'categoryId' },
|
|
154
|
+
__requestType: null,
|
|
155
|
+
__originalRequestType: null,
|
|
156
|
+
__responseType: null,
|
|
157
|
+
__originalResponseType: null,
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
exports.moveCategory = moveCategory;
|
|
161
|
+
//# sourceMappingURL=bookings-categories-v2-category-categories-v-2.meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookings-categories-v2-category-categories-v-2.meta.js","sourceRoot":"","sources":["../../../src/bookings-categories-v2-category-categories-v-2.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oIAAsH;AAsBtH,SAAgB,cAAc;IAQ5B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,yCAAyC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAEpE,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,MAAM;QAClB,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;AA5BD,wC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tC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,sBAAsB;QAC5B,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA5BD,0CA4BC;AAED,SAAgB,YAAY;IAQ1B,MAAM,OAAO,GAAG,EAAE,UAAU,EAAE,aAAa,EAAS,CAAC;IAErD,MAAM,iBAAiB,GACrB,yCAAyC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IAElE,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,MAAM;QAClB,IAAI,EAAE,0CAA0C;QAChD,UAAU,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE;QACxC,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA5BD,oCA4BC"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { EventDefinition, HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { CategoriesQueryBuilder, Category, CategoryCreatedEnvelope, CategoryDeletedEnvelope, CategoryUpdatedEnvelope, CountCategoriesOptions, CountCategoriesResponse, MoveCategoryOptions, MoveCategoryResponse, UpdateCategory } from './bookings-categories-v2-category-categories-v-2.universal.js';
|
|
3
|
+
export declare const __metadata: {
|
|
4
|
+
PACKAGE_NAME: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function createCategory(httpClient: HttpClient): CreateCategorySignature;
|
|
7
|
+
interface CreateCategorySignature {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a category.
|
|
10
|
+
* @param - Category to create.
|
|
11
|
+
* @returns Created category.
|
|
12
|
+
*/
|
|
13
|
+
(category: Category): Promise<Category>;
|
|
14
|
+
}
|
|
15
|
+
export declare function getCategory(httpClient: HttpClient): GetCategorySignature;
|
|
16
|
+
interface GetCategorySignature {
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves a category.
|
|
19
|
+
* @param - ID of the category to retrieve.
|
|
20
|
+
* @returns Retrieved category.
|
|
21
|
+
*/
|
|
22
|
+
(categoryId: string): Promise<Category>;
|
|
23
|
+
}
|
|
24
|
+
export declare function updateCategory(httpClient: HttpClient): UpdateCategorySignature;
|
|
25
|
+
interface UpdateCategorySignature {
|
|
26
|
+
/**
|
|
27
|
+
* Updates a category.
|
|
28
|
+
*
|
|
29
|
+
*
|
|
30
|
+
* Each time the category is updated, `revision` increments by 1.
|
|
31
|
+
* You must specify the current `revision` to prevent unintended overwrites.
|
|
32
|
+
*
|
|
33
|
+
* You can't adjust a categories `sortOrder` with this method, call Move Category ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-categories/move-category) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/categories-v2/move-category)) instead.
|
|
34
|
+
* @param - Category ID.
|
|
35
|
+
* @returns Updated category.
|
|
36
|
+
*/
|
|
37
|
+
(_id: string, category: UpdateCategory): Promise<Category>;
|
|
38
|
+
}
|
|
39
|
+
export declare function deleteCategory(httpClient: HttpClient): DeleteCategorySignature;
|
|
40
|
+
interface DeleteCategorySignature {
|
|
41
|
+
/**
|
|
42
|
+
* Deletes a category.
|
|
43
|
+
*
|
|
44
|
+
*
|
|
45
|
+
* ## Impact on connected services
|
|
46
|
+
*
|
|
47
|
+
* When you delete a category, any services linked to it remain associated with the now-deleted category. Wix Bookings still displays these services to business owners in the dashboard, but they aren't visible to customers on the live site.
|
|
48
|
+
* Attempting to call Update Service ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/update-service) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/update-service)) for a service that's linked to a deleted category fails, unless you specify a different, existing category ID in `service.category.id`.
|
|
49
|
+
* @param - ID of the category to delete.
|
|
50
|
+
*/
|
|
51
|
+
(categoryId: string): Promise<void>;
|
|
52
|
+
}
|
|
53
|
+
export declare function queryCategories(httpClient: HttpClient): QueryCategoriesSignature;
|
|
54
|
+
interface QueryCategoriesSignature {
|
|
55
|
+
/**
|
|
56
|
+
* Retrieves up to 1000 categories, given the specified paging, filtering, and sorting.
|
|
57
|
+
*
|
|
58
|
+
*
|
|
59
|
+
* ## Defaults
|
|
60
|
+
*
|
|
61
|
+
* Query Categories has the following default settings, which you can override:
|
|
62
|
+
*
|
|
63
|
+
* - Most responses are sorted by `id` in ascending order.
|
|
64
|
+
* *Tip**: Always specify a sort order to ensure consistent results.
|
|
65
|
+
* - `cursorPaging.limit` set to `50`.
|
|
66
|
+
*
|
|
67
|
+
* ## Filters
|
|
68
|
+
*
|
|
69
|
+
* Refer to the Supported Filters article ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/categories-v2/filtering-and-sorting)) for a complete list of supported filters and sorting options.
|
|
70
|
+
*
|
|
71
|
+
* ## See also
|
|
72
|
+
*
|
|
73
|
+
* To learn about working with Query methods in general, see:
|
|
74
|
+
*
|
|
75
|
+
* - API Query Language ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)).
|
|
76
|
+
* - Sorting ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language#the-sort-array) | [REST](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging#sort-query-endpoints)).
|
|
77
|
+
* - Paging ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language#the-paging-object) | [REST](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging#paging)).
|
|
78
|
+
*/
|
|
79
|
+
(): CategoriesQueryBuilder;
|
|
80
|
+
}
|
|
81
|
+
export declare function countCategories(httpClient: HttpClient): CountCategoriesSignature;
|
|
82
|
+
interface CountCategoriesSignature {
|
|
83
|
+
/**
|
|
84
|
+
* Counts categories, given the specified filtering.
|
|
85
|
+
*
|
|
86
|
+
*
|
|
87
|
+
* Refer to the Supported Filters article ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/categories-v2/filtering-and-sorting)) for a complete list of supported filters.
|
|
88
|
+
*/
|
|
89
|
+
(options?: CountCategoriesOptions | undefined): Promise<CountCategoriesResponse>;
|
|
90
|
+
}
|
|
91
|
+
export declare function moveCategory(httpClient: HttpClient): MoveCategorySignature;
|
|
92
|
+
interface MoveCategorySignature {
|
|
93
|
+
/**
|
|
94
|
+
* Moves a category to the start, the end, or immediately after a specified category in the list.
|
|
95
|
+
*
|
|
96
|
+
*
|
|
97
|
+
* Large initial gaps between `sortOrder` values let Wix Bookings efficiently reorder categories without updating the entire list.
|
|
98
|
+
* If gaps become too small, Wix Bookings automatically restores larger gaps.
|
|
99
|
+
* @param - ID of the category to move.
|
|
100
|
+
*/
|
|
101
|
+
(categoryId: string, options?: MoveCategoryOptions | undefined): Promise<MoveCategoryResponse>;
|
|
102
|
+
}
|
|
103
|
+
export declare const onCategoryCreated: EventDefinition<CategoryCreatedEnvelope, "wix.bookings.categories.v2.category_created">;
|
|
104
|
+
export declare const onCategoryDeleted: EventDefinition<CategoryDeletedEnvelope, "wix.bookings.categories.v2.category_deleted">;
|
|
105
|
+
export declare const onCategoryUpdated: EventDefinition<CategoryUpdatedEnvelope, "wix.bookings.categories.v2.category_updated">;
|
|
106
|
+
export { ActionEvent, BaseEventMetadata, CategoriesQueryBuilder, CategoriesQueryResult, Category, CategoryCreatedEnvelope, CategoryDeletedEnvelope, CategoryUpdatedEnvelope, CountCategoriesOptions, CountCategoriesRequest, CountCategoriesResponse, CreateCategoryRequest, CreateCategoryResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteCategoryRequest, DeleteCategoryResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetCategoryRequest, GetCategoryResponse, IdentificationData, IdentificationDataIdOneOf, ImportCategoriesRequest, ImportCategoriesResponse, MessageEnvelope, MoveCategoryOptions, MoveCategoryRequest, MoveCategoryResponse, Position, PublishCategoriesUpdatedRequest, PublishCategoriesUpdatedResponse, QueryCategoriesRequest, QueryCategoriesResponse, RestoreInfo, SortOrder, Sorting, UpdateCategory, UpdateCategoryRequest, UpdateCategoryResponse, WebhookIdentityType, } from './bookings-categories-v2-category-categories-v-2.universal.js';
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookIdentityType = exports.SortOrder = exports.Position = exports.onCategoryUpdated = exports.onCategoryDeleted = exports.onCategoryCreated = exports.moveCategory = exports.countCategories = exports.queryCategories = exports.deleteCategory = exports.updateCategory = exports.getCategory = exports.createCategory = exports.__metadata = void 0;
|
|
4
|
+
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
5
|
+
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
6
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
7
|
+
const sdk_types_1 = require("@wix/sdk-types");
|
|
8
|
+
const bookings_categories_v2_category_categories_v_2_universal_js_1 = require("./bookings-categories-v2-category-categories-v-2.universal.js");
|
|
9
|
+
exports.__metadata = { PACKAGE_NAME: '@wix/bookings' };
|
|
10
|
+
function createCategory(httpClient) {
|
|
11
|
+
return (category) => (0, bookings_categories_v2_category_categories_v_2_universal_js_1.createCategory)(category,
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
{ httpClient });
|
|
14
|
+
}
|
|
15
|
+
exports.createCategory = createCategory;
|
|
16
|
+
function getCategory(httpClient) {
|
|
17
|
+
return (categoryId) => (0, bookings_categories_v2_category_categories_v_2_universal_js_1.getCategory)(categoryId,
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
{ httpClient });
|
|
20
|
+
}
|
|
21
|
+
exports.getCategory = getCategory;
|
|
22
|
+
function updateCategory(httpClient) {
|
|
23
|
+
return (_id, category) => (0, bookings_categories_v2_category_categories_v_2_universal_js_1.updateCategory)(_id, category,
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
{ httpClient });
|
|
26
|
+
}
|
|
27
|
+
exports.updateCategory = updateCategory;
|
|
28
|
+
function deleteCategory(httpClient) {
|
|
29
|
+
return (categoryId) => (0, bookings_categories_v2_category_categories_v_2_universal_js_1.deleteCategory)(categoryId,
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
{ httpClient });
|
|
32
|
+
}
|
|
33
|
+
exports.deleteCategory = deleteCategory;
|
|
34
|
+
function queryCategories(httpClient) {
|
|
35
|
+
return () => (0, bookings_categories_v2_category_categories_v_2_universal_js_1.queryCategories)(
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
{ httpClient });
|
|
38
|
+
}
|
|
39
|
+
exports.queryCategories = queryCategories;
|
|
40
|
+
function countCategories(httpClient) {
|
|
41
|
+
return (options) => (0, bookings_categories_v2_category_categories_v_2_universal_js_1.countCategories)(options,
|
|
42
|
+
// @ts-ignore
|
|
43
|
+
{ httpClient });
|
|
44
|
+
}
|
|
45
|
+
exports.countCategories = countCategories;
|
|
46
|
+
function moveCategory(httpClient) {
|
|
47
|
+
return (categoryId, options) => (0, bookings_categories_v2_category_categories_v_2_universal_js_1.moveCategory)(categoryId, options,
|
|
48
|
+
// @ts-ignore
|
|
49
|
+
{ httpClient });
|
|
50
|
+
}
|
|
51
|
+
exports.moveCategory = moveCategory;
|
|
52
|
+
exports.onCategoryCreated = (0, sdk_types_1.EventDefinition)('wix.bookings.categories.v2.category_created', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
53
|
+
{
|
|
54
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
55
|
+
paths: [
|
|
56
|
+
{ path: 'entity.createdDate' },
|
|
57
|
+
{ path: 'entity.updatedDate' },
|
|
58
|
+
{ path: 'metadata.eventTime' },
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
])))();
|
|
62
|
+
exports.onCategoryDeleted = (0, sdk_types_1.EventDefinition)('wix.bookings.categories.v2.category_deleted', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
63
|
+
{
|
|
64
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
65
|
+
paths: [
|
|
66
|
+
{ path: 'entity.createdDate' },
|
|
67
|
+
{ path: 'entity.updatedDate' },
|
|
68
|
+
{ path: 'metadata.eventTime' },
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
])))();
|
|
72
|
+
exports.onCategoryUpdated = (0, sdk_types_1.EventDefinition)('wix.bookings.categories.v2.category_updated', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
73
|
+
{
|
|
74
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
75
|
+
paths: [
|
|
76
|
+
{ path: 'entity.createdDate' },
|
|
77
|
+
{ path: 'entity.updatedDate' },
|
|
78
|
+
{ path: 'metadata.eventTime' },
|
|
79
|
+
],
|
|
80
|
+
},
|
|
81
|
+
])))();
|
|
82
|
+
var bookings_categories_v2_category_categories_v_2_universal_js_2 = require("./bookings-categories-v2-category-categories-v-2.universal.js");
|
|
83
|
+
Object.defineProperty(exports, "Position", { enumerable: true, get: function () { return bookings_categories_v2_category_categories_v_2_universal_js_2.Position; } });
|
|
84
|
+
Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return bookings_categories_v2_category_categories_v_2_universal_js_2.SortOrder; } });
|
|
85
|
+
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return bookings_categories_v2_category_categories_v_2_universal_js_2.WebhookIdentityType; } });
|
|
86
|
+
//# sourceMappingURL=bookings-categories-v2-category-categories-v-2.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookings-categories-v2-category-categories-v-2.public.js","sourceRoot":"","sources":["../../../src/bookings-categories-v2-category-categories-v-2.public.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,8CAA+E;AAC/E,+IAkBuE;AAE1D,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,SAAgB,cAAc,CAC5B,UAAsB;IAEtB,OAAO,CAAC,QAA4C,EAAE,EAAE,CACtD,IAAA,4EAAuB,EACrB,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,wCASC;AAWD,SAAgB,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,UAAkB,EAAE,EAAE,CAC5B,IAAA,yEAAoB,EAClB,UAAU;IACV,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,kCAOC;AAWD,SAAgB,cAAc,CAC5B,UAAsB;IAEtB,OAAO,CACL,GAAW,EACX,QAAsD,EACtD,EAAE,CACF,IAAA,4EAAuB,EACrB,GAAG,EACH,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAbD,wCAaC;AAiBD,SAAgB,cAAc,CAC5B,UAAsB;IAEtB,OAAO,CAAC,UAAkB,EAAE,EAAE,CAC5B,IAAA,4EAAuB,EACrB,UAAU;IACV,aA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