@wix/auto_sdk_bookings_resources 1.0.20 → 1.0.22
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-resources-v2-resource-resources.universal.d.ts → bookings-resources-v2-resource-resources.universal-BvcAlBYB.d.mts} +328 -409
- package/build/{cjs/src/bookings-resources-v2-resource-resources.universal.d.ts → bookings-resources-v2-resource-resources.universal-BvcAlBYB.d.ts} +328 -409
- package/build/index.d.mts +168 -0
- package/build/index.d.ts +168 -0
- package/build/index.js +883 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +837 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/{es/src/bookings-resources-v2-resource-resources.universal.d.ts → bookings-resources-v2-resource-resources.universal-BvcAlBYB.d.mts} +328 -409
- package/build/{es/src/bookings-resources-v2-resource-resources.universal.d.ts → internal/bookings-resources-v2-resource-resources.universal-BvcAlBYB.d.ts} +328 -409
- package/build/internal/index.d.mts +168 -0
- package/build/internal/index.d.ts +168 -0
- package/build/internal/index.js +883 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +837 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/{es/src/bookings-resources-v2-resource-resources.types.d.ts → internal/meta.d.mts} +145 -347
- package/build/internal/{cjs/src/bookings-resources-v2-resource-resources.types.d.ts → meta.d.ts} +145 -347
- package/build/internal/meta.js +559 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +524 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/{cjs/src/bookings-resources-v2-resource-resources.types.d.ts → meta.d.mts} +145 -347
- package/build/{internal/es/src/bookings-resources-v2-resource-resources.types.d.ts → meta.d.ts} +145 -347
- package/build/meta.js +559 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +524 -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 -27
- 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-resources-v2-resource-resources.context.d.ts +0 -29
- package/build/cjs/src/bookings-resources-v2-resource-resources.context.js +0 -43
- package/build/cjs/src/bookings-resources-v2-resource-resources.context.js.map +0 -1
- package/build/cjs/src/bookings-resources-v2-resource-resources.http.d.ts +0 -96
- package/build/cjs/src/bookings-resources-v2-resource-resources.http.js +0 -446
- package/build/cjs/src/bookings-resources-v2-resource-resources.http.js.map +0 -1
- package/build/cjs/src/bookings-resources-v2-resource-resources.meta.d.ts +0 -27
- package/build/cjs/src/bookings-resources-v2-resource-resources.meta.js +0 -199
- package/build/cjs/src/bookings-resources-v2-resource-resources.meta.js.map +0 -1
- package/build/cjs/src/bookings-resources-v2-resource-resources.public.d.ts +0 -143
- package/build/cjs/src/bookings-resources-v2-resource-resources.public.js +0 -106
- package/build/cjs/src/bookings-resources-v2-resource-resources.public.js.map +0 -1
- package/build/cjs/src/bookings-resources-v2-resource-resources.types.js +0 -104
- package/build/cjs/src/bookings-resources-v2-resource-resources.types.js.map +0 -1
- package/build/cjs/src/bookings-resources-v2-resource-resources.universal.js +0 -589
- package/build/cjs/src/bookings-resources-v2-resource-resources.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 -27
- 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/src/bookings-resources-v2-resource-resources.context.d.ts +0 -29
- package/build/es/src/bookings-resources-v2-resource-resources.context.js +0 -29
- package/build/es/src/bookings-resources-v2-resource-resources.context.js.map +0 -1
- package/build/es/src/bookings-resources-v2-resource-resources.http.d.ts +0 -96
- package/build/es/src/bookings-resources-v2-resource-resources.http.js +0 -434
- package/build/es/src/bookings-resources-v2-resource-resources.http.js.map +0 -1
- package/build/es/src/bookings-resources-v2-resource-resources.meta.d.ts +0 -27
- package/build/es/src/bookings-resources-v2-resource-resources.meta.js +0 -164
- package/build/es/src/bookings-resources-v2-resource-resources.meta.js.map +0 -1
- package/build/es/src/bookings-resources-v2-resource-resources.public.d.ts +0 -143
- package/build/es/src/bookings-resources-v2-resource-resources.public.js +0 -83
- package/build/es/src/bookings-resources-v2-resource-resources.public.js.map +0 -1
- package/build/es/src/bookings-resources-v2-resource-resources.types.js +0 -101
- package/build/es/src/bookings-resources-v2-resource-resources.types.js.map +0 -1
- package/build/es/src/bookings-resources-v2-resource-resources.universal.js +0 -554
- package/build/es/src/bookings-resources-v2-resource-resources.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 -27
- 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-resources-v2-resource-resources.context.d.ts +0 -29
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.context.js +0 -43
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.context.js.map +0 -1
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.http.d.ts +0 -96
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.http.js +0 -446
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.http.js.map +0 -1
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.meta.d.ts +0 -27
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.meta.js +0 -199
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.meta.js.map +0 -1
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.public.d.ts +0 -143
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.public.js +0 -106
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.public.js.map +0 -1
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.types.js +0 -104
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.types.js.map +0 -1
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.universal.js +0 -589
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.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 -27
- 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-resources-v2-resource-resources.context.d.ts +0 -29
- package/build/internal/es/src/bookings-resources-v2-resource-resources.context.js +0 -29
- package/build/internal/es/src/bookings-resources-v2-resource-resources.context.js.map +0 -1
- package/build/internal/es/src/bookings-resources-v2-resource-resources.http.d.ts +0 -96
- package/build/internal/es/src/bookings-resources-v2-resource-resources.http.js +0 -434
- package/build/internal/es/src/bookings-resources-v2-resource-resources.http.js.map +0 -1
- package/build/internal/es/src/bookings-resources-v2-resource-resources.meta.d.ts +0 -27
- package/build/internal/es/src/bookings-resources-v2-resource-resources.meta.js +0 -164
- package/build/internal/es/src/bookings-resources-v2-resource-resources.meta.js.map +0 -1
- package/build/internal/es/src/bookings-resources-v2-resource-resources.public.d.ts +0 -143
- package/build/internal/es/src/bookings-resources-v2-resource-resources.public.js +0 -83
- package/build/internal/es/src/bookings-resources-v2-resource-resources.public.js.map +0 -1
- package/build/internal/es/src/bookings-resources-v2-resource-resources.types.js +0 -101
- package/build/internal/es/src/bookings-resources-v2-resource-resources.types.js.map +0 -1
- package/build/internal/es/src/bookings-resources-v2-resource-resources.universal.js +0 -554
- package/build/internal/es/src/bookings-resources-v2-resource-resources.universal.js.map +0 -1
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import * as ambassadorWixBookingsResourcesV2Resource from './bookings-resources-v2-resource-resources.http.js';
|
|
2
|
-
export function createResource() {
|
|
3
|
-
const payload = {};
|
|
4
|
-
const getRequestOptions = ambassadorWixBookingsResourcesV2Resource.createResource(payload);
|
|
5
|
-
const getUrl = (context) => {
|
|
6
|
-
const { url } = getRequestOptions(context);
|
|
7
|
-
return url;
|
|
8
|
-
};
|
|
9
|
-
return {
|
|
10
|
-
getUrl,
|
|
11
|
-
httpMethod: 'POST',
|
|
12
|
-
path: '/v2/resources',
|
|
13
|
-
pathParams: {},
|
|
14
|
-
__requestType: null,
|
|
15
|
-
__originalRequestType: null,
|
|
16
|
-
__responseType: null,
|
|
17
|
-
__originalResponseType: null,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export function bulkCreateResources() {
|
|
21
|
-
const payload = {};
|
|
22
|
-
const getRequestOptions = ambassadorWixBookingsResourcesV2Resource.bulkCreateResources(payload);
|
|
23
|
-
const getUrl = (context) => {
|
|
24
|
-
const { url } = getRequestOptions(context);
|
|
25
|
-
return url;
|
|
26
|
-
};
|
|
27
|
-
return {
|
|
28
|
-
getUrl,
|
|
29
|
-
httpMethod: 'POST',
|
|
30
|
-
path: '/v2/bulk/resources/create',
|
|
31
|
-
pathParams: {},
|
|
32
|
-
__requestType: null,
|
|
33
|
-
__originalRequestType: null,
|
|
34
|
-
__responseType: null,
|
|
35
|
-
__originalResponseType: null,
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
export function getResource() {
|
|
39
|
-
const payload = { resourceId: ':resourceId' };
|
|
40
|
-
const getRequestOptions = ambassadorWixBookingsResourcesV2Resource.getResource(payload);
|
|
41
|
-
const getUrl = (context) => {
|
|
42
|
-
const { url } = getRequestOptions(context);
|
|
43
|
-
return url;
|
|
44
|
-
};
|
|
45
|
-
return {
|
|
46
|
-
getUrl,
|
|
47
|
-
httpMethod: 'GET',
|
|
48
|
-
path: '/v2/resources/{resourceId}',
|
|
49
|
-
pathParams: { resourceId: 'resourceId' },
|
|
50
|
-
__requestType: null,
|
|
51
|
-
__originalRequestType: null,
|
|
52
|
-
__responseType: null,
|
|
53
|
-
__originalResponseType: null,
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
export function updateResource() {
|
|
57
|
-
const payload = { resource: { id: ':resourceId' } };
|
|
58
|
-
const getRequestOptions = ambassadorWixBookingsResourcesV2Resource.updateResource(payload);
|
|
59
|
-
const getUrl = (context) => {
|
|
60
|
-
const { url } = getRequestOptions(context);
|
|
61
|
-
return url;
|
|
62
|
-
};
|
|
63
|
-
return {
|
|
64
|
-
getUrl,
|
|
65
|
-
httpMethod: 'PATCH',
|
|
66
|
-
path: '/v2/resources/{resource.id}',
|
|
67
|
-
pathParams: { resourceId: 'resourceId' },
|
|
68
|
-
__requestType: null,
|
|
69
|
-
__originalRequestType: null,
|
|
70
|
-
__responseType: null,
|
|
71
|
-
__originalResponseType: null,
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
export function deleteResource() {
|
|
75
|
-
const payload = { resourceId: ':resourceId' };
|
|
76
|
-
const getRequestOptions = ambassadorWixBookingsResourcesV2Resource.deleteResource(payload);
|
|
77
|
-
const getUrl = (context) => {
|
|
78
|
-
const { url } = getRequestOptions(context);
|
|
79
|
-
return url;
|
|
80
|
-
};
|
|
81
|
-
return {
|
|
82
|
-
getUrl,
|
|
83
|
-
httpMethod: 'DELETE',
|
|
84
|
-
path: '/v2/resources/{resourceId}',
|
|
85
|
-
pathParams: { resourceId: 'resourceId' },
|
|
86
|
-
__requestType: null,
|
|
87
|
-
__originalRequestType: null,
|
|
88
|
-
__responseType: null,
|
|
89
|
-
__originalResponseType: null,
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
export function bulkDeleteResources() {
|
|
93
|
-
const payload = {};
|
|
94
|
-
const getRequestOptions = ambassadorWixBookingsResourcesV2Resource.bulkDeleteResources(payload);
|
|
95
|
-
const getUrl = (context) => {
|
|
96
|
-
const { url } = getRequestOptions(context);
|
|
97
|
-
return url;
|
|
98
|
-
};
|
|
99
|
-
return {
|
|
100
|
-
getUrl,
|
|
101
|
-
httpMethod: 'POST',
|
|
102
|
-
path: '/v2/bulk/resources/delete',
|
|
103
|
-
pathParams: {},
|
|
104
|
-
__requestType: null,
|
|
105
|
-
__originalRequestType: null,
|
|
106
|
-
__responseType: null,
|
|
107
|
-
__originalResponseType: null,
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
export function searchResources() {
|
|
111
|
-
const payload = {};
|
|
112
|
-
const getRequestOptions = ambassadorWixBookingsResourcesV2Resource.searchResources(payload);
|
|
113
|
-
const getUrl = (context) => {
|
|
114
|
-
const { url } = getRequestOptions(context);
|
|
115
|
-
return url;
|
|
116
|
-
};
|
|
117
|
-
return {
|
|
118
|
-
getUrl,
|
|
119
|
-
httpMethod: 'POST',
|
|
120
|
-
path: '/v2/resources/search',
|
|
121
|
-
pathParams: {},
|
|
122
|
-
__requestType: null,
|
|
123
|
-
__originalRequestType: null,
|
|
124
|
-
__responseType: null,
|
|
125
|
-
__originalResponseType: null,
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
export function queryResources() {
|
|
129
|
-
const payload = {};
|
|
130
|
-
const getRequestOptions = ambassadorWixBookingsResourcesV2Resource.queryResources(payload);
|
|
131
|
-
const getUrl = (context) => {
|
|
132
|
-
const { url } = getRequestOptions(context);
|
|
133
|
-
return url;
|
|
134
|
-
};
|
|
135
|
-
return {
|
|
136
|
-
getUrl,
|
|
137
|
-
httpMethod: 'POST',
|
|
138
|
-
path: '/v2/resources/query',
|
|
139
|
-
pathParams: {},
|
|
140
|
-
__requestType: null,
|
|
141
|
-
__originalRequestType: null,
|
|
142
|
-
__responseType: null,
|
|
143
|
-
__originalResponseType: null,
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
export function countResources() {
|
|
147
|
-
const payload = {};
|
|
148
|
-
const getRequestOptions = ambassadorWixBookingsResourcesV2Resource.countResources(payload);
|
|
149
|
-
const getUrl = (context) => {
|
|
150
|
-
const { url } = getRequestOptions(context);
|
|
151
|
-
return url;
|
|
152
|
-
};
|
|
153
|
-
return {
|
|
154
|
-
getUrl,
|
|
155
|
-
httpMethod: 'POST',
|
|
156
|
-
path: '/v2/resources/count',
|
|
157
|
-
pathParams: {},
|
|
158
|
-
__requestType: null,
|
|
159
|
-
__originalRequestType: null,
|
|
160
|
-
__responseType: null,
|
|
161
|
-
__originalResponseType: null,
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
//# sourceMappingURL=bookings-resources-v2-resource-resources.meta.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-resources-v2-resource-resources.meta.js","sourceRoot":"","sources":["../../../../src/bookings-resources-v2-resource-resources.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,wCAAwC,MAAM,oDAAoD,CAAC;AAsB/G,MAAM,UAAU,cAAc;IAQ5B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,wCAAwC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAEnE,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,eAAe;QACrB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;A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W;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,cAAc;IAQ5B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,wCAAwC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAEnE,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,qBAAqB;QAC3B,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC"}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { EventDefinition, HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { BulkCreateResourcesOptions, BulkCreateResourcesResponse, BulkDeleteResourcesResponse, CountResourcesOptions, CountResourcesResponse, Resource, ResourceCreatedEnvelope, ResourceDeletedEnvelope, ResourceUpdatedEnvelope, ResourcesQueryBuilder, SearchResourcesOptions, SearchResourcesResponse, UpdateResource } from './bookings-resources-v2-resource-resources.universal.js';
|
|
3
|
-
export declare const __metadata: {
|
|
4
|
-
PACKAGE_NAME: string;
|
|
5
|
-
};
|
|
6
|
-
export declare function createResource(httpClient: HttpClient): CreateResourceSignature;
|
|
7
|
-
interface CreateResourceSignature {
|
|
8
|
-
/**
|
|
9
|
-
* Creates a new resource.
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* ## Connected schedules
|
|
13
|
-
*
|
|
14
|
-
* A new event *schedule*
|
|
15
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/wix-bookings-integration) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/wix-bookings-integration))
|
|
16
|
-
* is automatically created for the resource.
|
|
17
|
-
*
|
|
18
|
-
* ## Locations
|
|
19
|
-
*
|
|
20
|
-
* If you don't specify `locationOptions`, Wix Bookings automatically sets
|
|
21
|
-
* `locationOptions.availableInAllLocations` to `true`.
|
|
22
|
-
*
|
|
23
|
-
* If you specify 1 business location ID in `locationOptions.specificLocationOptions.businessLocations`,
|
|
24
|
-
* you must specify `locationOptions.specificLocationOptions.availableInBusinessLocations`
|
|
25
|
-
* as `true`. Currently, you can specify only a single business location.
|
|
26
|
-
* @param - Resource to create.
|
|
27
|
-
* @returns Created resource.
|
|
28
|
-
*/
|
|
29
|
-
(resource: Resource): Promise<Resource>;
|
|
30
|
-
}
|
|
31
|
-
export declare function bulkCreateResources(httpClient: HttpClient): BulkCreateResourcesSignature;
|
|
32
|
-
interface BulkCreateResourcesSignature {
|
|
33
|
-
/**
|
|
34
|
-
* Creates up to 50 resources.
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* Refer to *Create Resource*
|
|
38
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/create-resource) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/create-resource))
|
|
39
|
-
* for more details.
|
|
40
|
-
* @param - Resources to create.
|
|
41
|
-
*/
|
|
42
|
-
(resources: Resource[], options?: BulkCreateResourcesOptions | undefined): Promise<BulkCreateResourcesResponse>;
|
|
43
|
-
}
|
|
44
|
-
export declare function getResource(httpClient: HttpClient): GetResourceSignature;
|
|
45
|
-
interface GetResourceSignature {
|
|
46
|
-
/**
|
|
47
|
-
* Retrieves a resource.
|
|
48
|
-
* @param - ID of the resource to retrieve.
|
|
49
|
-
* @returns Retrieved resource.
|
|
50
|
-
*/
|
|
51
|
-
(resourceId: string): Promise<Resource>;
|
|
52
|
-
}
|
|
53
|
-
export declare function updateResource(httpClient: HttpClient): UpdateResourceSignature;
|
|
54
|
-
interface UpdateResourceSignature {
|
|
55
|
-
/**
|
|
56
|
-
* Updates a resource.
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* Each time the resource is updated, `revision` increments by 1. You must include the current revision of the resource when updating it.
|
|
60
|
-
* This ensures you're working with the latest service information and prevents unintended overwrites.
|
|
61
|
-
* @param - Resource ID.
|
|
62
|
-
* @returns Updated resource.
|
|
63
|
-
*/
|
|
64
|
-
(_id: string, resource: UpdateResource): Promise<Resource>;
|
|
65
|
-
}
|
|
66
|
-
export declare function deleteResource(httpClient: HttpClient): DeleteResourceSignature;
|
|
67
|
-
interface DeleteResourceSignature {
|
|
68
|
-
/**
|
|
69
|
-
* Deletes a resource.
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* Deleting a resource cancels its event schedule and all its working hour
|
|
73
|
-
* schedules that aren't shared with another resource. Learn more about
|
|
74
|
-
* _how Bookings uses the Calendar APIs_
|
|
75
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/wix-bookings-integration) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/wix-bookings-integration)).
|
|
76
|
-
* @param - ID of the resource to delete.
|
|
77
|
-
*/
|
|
78
|
-
(resourceId: string): Promise<void>;
|
|
79
|
-
}
|
|
80
|
-
export declare function bulkDeleteResources(httpClient: HttpClient): BulkDeleteResourcesSignature;
|
|
81
|
-
interface BulkDeleteResourcesSignature {
|
|
82
|
-
/**
|
|
83
|
-
* Deletes multiple resources.
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
* Refer to *Delete Resource*
|
|
87
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/delete-resource) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/delete-resource))
|
|
88
|
-
* for more details.
|
|
89
|
-
* @param - IDs of the resources to delete.
|
|
90
|
-
*/
|
|
91
|
-
(ids: string[]): Promise<BulkDeleteResourcesResponse>;
|
|
92
|
-
}
|
|
93
|
-
export declare function searchResources(httpClient: HttpClient): SearchResourcesSignature;
|
|
94
|
-
interface SearchResourcesSignature {
|
|
95
|
-
/**
|
|
96
|
-
* Retrieves a list of resources matching the provided search criteria.
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
* Refer to the *supported filters article*
|
|
100
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting))
|
|
101
|
-
* for a complete list of supported filters and sorting options.
|
|
102
|
-
*/
|
|
103
|
-
(options?: SearchResourcesOptions | undefined): Promise<SearchResourcesResponse>;
|
|
104
|
-
}
|
|
105
|
-
export declare function queryResources(httpClient: HttpClient): QueryResourcesSignature;
|
|
106
|
-
interface QueryResourcesSignature {
|
|
107
|
-
/**
|
|
108
|
-
* Creates a query to retrieve a list of resources.
|
|
109
|
-
*
|
|
110
|
-
* The `queryResources()` function builds a query to retrieve a list of resources and returns a `ResourcesQueryBuilder` object.
|
|
111
|
-
*
|
|
112
|
-
* The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/resources-query-builder/find) function.
|
|
113
|
-
*
|
|
114
|
-
* You can refine the query by chaining `ResourcesQueryBuilder` functions onto the query. `ResourcesQueryBuilder` functions enable you to sort, filter, and control the results that `queryResources()` returns.
|
|
115
|
-
*
|
|
116
|
-
* `queryResources()` runs with the following `ResourcesQueryBuilder` default that you can override:
|
|
117
|
-
*
|
|
118
|
-
* + `limit` is `50`.
|
|
119
|
-
* + Sorted by `id` in ascending order.
|
|
120
|
-
*
|
|
121
|
-
* The functions that are chained to `queryResources()` are applied in the order they are called. For example, if you apply `ascending("typeId")` and then `ascending("name")`, the results are sorted first by the `"typeId"`, and then, if there are multiple results with the same `"typeId"`, the items are sorted by `"name"`.
|
|
122
|
-
*
|
|
123
|
-
* The following `ResourcesQueryBuilder` functions are supported for the `queryResources()` function. For a full description of the resource object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/resources-query-result/items) property in `ResourcesQueryResult`.
|
|
124
|
-
*/
|
|
125
|
-
(): ResourcesQueryBuilder;
|
|
126
|
-
}
|
|
127
|
-
export declare function countResources(httpClient: HttpClient): CountResourcesSignature;
|
|
128
|
-
interface CountResourcesSignature {
|
|
129
|
-
/**
|
|
130
|
-
* Counts resources according to given criteria.
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
* Refer to the *supported filters article*
|
|
134
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting))
|
|
135
|
-
* for a complete list of supported filters and sorting options.
|
|
136
|
-
* @param - Filter to base the count on. See *the supported filters article* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting)) for a complete list of filtering options.
|
|
137
|
-
*/
|
|
138
|
-
(options?: CountResourcesOptions | undefined): Promise<CountResourcesResponse>;
|
|
139
|
-
}
|
|
140
|
-
export declare const onResourceCreated: EventDefinition<ResourceCreatedEnvelope, "wix.bookings.resources.v2.resource_created">;
|
|
141
|
-
export declare const onResourceDeleted: EventDefinition<ResourceDeletedEnvelope, "wix.bookings.resources.v2.resource_deleted">;
|
|
142
|
-
export declare const onResourceUpdated: EventDefinition<ResourceUpdatedEnvelope, "wix.bookings.resources.v2.resource_updated">;
|
|
143
|
-
export { ActionEvent, Aggregation, AggregationData, AggregationKindOneOf, AggregationResults, AggregationResultsResultOneOf, AggregationResultsScalarResult, AggregationType, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCreateResourcesOptions, BulkCreateResourcesRequest, BulkCreateResourcesResponse, BulkDeleteResourcesRequest, BulkDeleteResourcesResponse, BulkResourceResult, BusinessLocation, CountResourcesOptions, CountResourcesRequest, CountResourcesResponse, CreateResourceRequest, CreateResourceResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, CursorSearch, CursorSearchPagingMethodOneOf, Cursors, DateHistogramAggregation, DateHistogramResult, DateHistogramResults, DeleteResourceRequest, DeleteResourceResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, EventsSchedule, ExtendedFields, FixResourceSchedulesRequest, FixResourceSchedulesResponse, GetDeletedResourceRequest, GetDeletedResourceResponse, GetResourceRequest, GetResourceResponse, GroupByAggregation, GroupByAggregationKindOneOf, GroupByValueResults, IdentificationData, IdentificationDataIdOneOf, IncludeMissingValuesOptions, Interval, ItemMetadata, ListDeletedResourcesRequest, ListDeletedResourcesResponse, LocationOptions, ManagementType, MessageEnvelope, MissingValues, Mode, NestedAggregation, NestedAggregationItem, NestedAggregationItemKindOneOf, NestedAggregationResults, NestedAggregationResultsResultOneOf, NestedAggregationType, NestedResultValue, NestedResultValueResultOneOf, NestedResults, NestedValueAggregationResult, QueryResourcesRequest, QueryResourcesResponse, RangeAggregation, RangeAggregationResult, RangeBucket, RangeResult, RangeResults, ReindexTenantRequest, ReindexTenantResponse, RemoveResourceFromTrashBinRequest, RemoveResourceFromTrashBinResponse, Resource, ResourceCompositionDetailsOneOf, ResourceCreatedEnvelope, ResourceDeletedEnvelope, ResourceUpdatedEnvelope, ResourcesQueryBuilder, ResourcesQueryResult, RestoreInfo, RestoreResourceFromTrashBinRequest, RestoreResourceFromTrashBinResponse, Results, ScalarAggregation, ScalarResult, ScalarType, Schedule, SearchDetails, SearchResourcesOptions, SearchResourcesRequest, SearchResourcesResponse, SingleResource, SortDirection, SortOrder, SortType, Sorting, SpecificLocation, UpdateResource, UpdateResourceRequest, UpdateResourceResponse, V2WorkingHoursSchedules, ValueAggregation, ValueAggregationOptionsOneOf, ValueAggregationResult, ValueResult, ValueResults, WebhookIdentityType, WorkingHoursSchedule, WorkingHoursSchedules, } from './bookings-resources-v2-resource-resources.universal.js';
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';
|
|
2
|
-
import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
|
|
3
|
-
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
|
|
4
|
-
import { EventDefinition } from '@wix/sdk-types';
|
|
5
|
-
import { bulkCreateResources as universalBulkCreateResources, bulkDeleteResources as universalBulkDeleteResources, countResources as universalCountResources, createResource as universalCreateResource, deleteResource as universalDeleteResource, getResource as universalGetResource, queryResources as universalQueryResources, searchResources as universalSearchResources, updateResource as universalUpdateResource, } from './bookings-resources-v2-resource-resources.universal.js';
|
|
6
|
-
export const __metadata = { PACKAGE_NAME: '@wix/bookings' };
|
|
7
|
-
export function createResource(httpClient) {
|
|
8
|
-
return (resource) => universalCreateResource(resource,
|
|
9
|
-
// @ts-ignore
|
|
10
|
-
{ httpClient });
|
|
11
|
-
}
|
|
12
|
-
export function bulkCreateResources(httpClient) {
|
|
13
|
-
return (resources, options) => universalBulkCreateResources(resources, options,
|
|
14
|
-
// @ts-ignore
|
|
15
|
-
{ httpClient });
|
|
16
|
-
}
|
|
17
|
-
export function getResource(httpClient) {
|
|
18
|
-
return (resourceId) => universalGetResource(resourceId,
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
{ httpClient });
|
|
21
|
-
}
|
|
22
|
-
export function updateResource(httpClient) {
|
|
23
|
-
return (_id, resource) => universalUpdateResource(_id, resource,
|
|
24
|
-
// @ts-ignore
|
|
25
|
-
{ httpClient });
|
|
26
|
-
}
|
|
27
|
-
export function deleteResource(httpClient) {
|
|
28
|
-
return (resourceId) => universalDeleteResource(resourceId,
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
{ httpClient });
|
|
31
|
-
}
|
|
32
|
-
export function bulkDeleteResources(httpClient) {
|
|
33
|
-
return (ids) => universalBulkDeleteResources(ids,
|
|
34
|
-
// @ts-ignore
|
|
35
|
-
{ httpClient });
|
|
36
|
-
}
|
|
37
|
-
export function searchResources(httpClient) {
|
|
38
|
-
return (options) => universalSearchResources(options,
|
|
39
|
-
// @ts-ignore
|
|
40
|
-
{ httpClient });
|
|
41
|
-
}
|
|
42
|
-
export function queryResources(httpClient) {
|
|
43
|
-
return () => universalQueryResources(
|
|
44
|
-
// @ts-ignore
|
|
45
|
-
{ httpClient });
|
|
46
|
-
}
|
|
47
|
-
export function countResources(httpClient) {
|
|
48
|
-
return (options) => universalCountResources(options,
|
|
49
|
-
// @ts-ignore
|
|
50
|
-
{ httpClient });
|
|
51
|
-
}
|
|
52
|
-
export const onResourceCreated = EventDefinition('wix.bookings.resources.v2.resource_created', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
|
|
53
|
-
{
|
|
54
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
55
|
-
paths: [
|
|
56
|
-
{ path: 'entity.createdDate' },
|
|
57
|
-
{ path: 'entity.updatedDate' },
|
|
58
|
-
{ path: 'metadata.eventTime' },
|
|
59
|
-
],
|
|
60
|
-
},
|
|
61
|
-
])))();
|
|
62
|
-
export const onResourceDeleted = EventDefinition('wix.bookings.resources.v2.resource_deleted', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
|
|
63
|
-
{
|
|
64
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
65
|
-
paths: [
|
|
66
|
-
{ path: 'undefined.createdDate' },
|
|
67
|
-
{ path: 'undefined.updatedDate' },
|
|
68
|
-
{ path: 'metadata.eventTime' },
|
|
69
|
-
],
|
|
70
|
-
},
|
|
71
|
-
])))();
|
|
72
|
-
export const onResourceUpdated = EventDefinition('wix.bookings.resources.v2.resource_updated', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
|
|
73
|
-
{
|
|
74
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
75
|
-
paths: [
|
|
76
|
-
{ path: 'entity.createdDate' },
|
|
77
|
-
{ path: 'entity.updatedDate' },
|
|
78
|
-
{ path: 'metadata.eventTime' },
|
|
79
|
-
],
|
|
80
|
-
},
|
|
81
|
-
])))();
|
|
82
|
-
export { AggregationType, Interval, ManagementType, MissingValues, Mode, NestedAggregationType, ScalarType, SortDirection, SortOrder, SortType, WebhookIdentityType, } from './bookings-resources-v2-resource-resources.universal.js';
|
|
83
|
-
//# sourceMappingURL=bookings-resources-v2-resource-resources.public.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-resources-v2-resource-resources.public.js","sourceRoot":"","sources":["../../../../src/bookings-resources-v2-resource-resources.public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,eAAe,EAAgC,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EAcL,mBAAmB,IAAI,4BAA4B,EACnD,mBAAmB,IAAI,4BAA4B,EACnD,cAAc,IAAI,uBAAuB,EACzC,cAAc,IAAI,uBAAuB,EACzC,cAAc,IAAI,uBAAuB,EACzC,WAAW,IAAI,oBAAoB,EACnC,cAAc,IAAI,uBAAuB,EACzC,eAAe,IAAI,wBAAwB,EAC3C,cAAc,IAAI,uBAAuB,GAC1C,MAAM,yDAAyD,CAAC;AAEjE,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,MAAM,UAAU,cAAc,CAC5B,UAAsB;IAEtB,OAAO,CAAC,QAA4C,EAAE,EAAE,CACtD,uBAAuB,CACrB,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AA2BD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BAAqB,EA6BrB,UAAU,EAOV,aAAa,EACb,SAAS,EACT,QAAQ,EAYR,mBAAmB,GAGpB,MAAM,yDAAyD,CAAC"}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
export var ManagementType;
|
|
2
|
-
(function (ManagementType) {
|
|
3
|
-
/** The resource is managed by a Wix user. */
|
|
4
|
-
ManagementType["WIX_USER"] = "WIX_USER";
|
|
5
|
-
})(ManagementType || (ManagementType = {}));
|
|
6
|
-
export var SortOrder;
|
|
7
|
-
(function (SortOrder) {
|
|
8
|
-
SortOrder["ASC"] = "ASC";
|
|
9
|
-
SortOrder["DESC"] = "DESC";
|
|
10
|
-
})(SortOrder || (SortOrder = {}));
|
|
11
|
-
export var SortType;
|
|
12
|
-
(function (SortType) {
|
|
13
|
-
/** Should sort by number of matches */
|
|
14
|
-
SortType["COUNT"] = "COUNT";
|
|
15
|
-
/** Should sort by value of the field alphabetically */
|
|
16
|
-
SortType["VALUE"] = "VALUE";
|
|
17
|
-
})(SortType || (SortType = {}));
|
|
18
|
-
export var SortDirection;
|
|
19
|
-
(function (SortDirection) {
|
|
20
|
-
/** Should sort in descending order */
|
|
21
|
-
SortDirection["DESC"] = "DESC";
|
|
22
|
-
/** Should sort in ascending order */
|
|
23
|
-
SortDirection["ASC"] = "ASC";
|
|
24
|
-
})(SortDirection || (SortDirection = {}));
|
|
25
|
-
export var MissingValues;
|
|
26
|
-
(function (MissingValues) {
|
|
27
|
-
/** Should missing values be excluded from the aggregation results */
|
|
28
|
-
MissingValues["EXCLUDE"] = "EXCLUDE";
|
|
29
|
-
/** Should missing values be included in the aggregation results */
|
|
30
|
-
MissingValues["INCLUDE"] = "INCLUDE";
|
|
31
|
-
})(MissingValues || (MissingValues = {}));
|
|
32
|
-
export var ScalarType;
|
|
33
|
-
(function (ScalarType) {
|
|
34
|
-
ScalarType["UNKNOWN_SCALAR_TYPE"] = "UNKNOWN_SCALAR_TYPE";
|
|
35
|
-
/** Count of distinct values */
|
|
36
|
-
ScalarType["COUNT_DISTINCT"] = "COUNT_DISTINCT";
|
|
37
|
-
/** Minimum value */
|
|
38
|
-
ScalarType["MIN"] = "MIN";
|
|
39
|
-
/** Maximum value */
|
|
40
|
-
ScalarType["MAX"] = "MAX";
|
|
41
|
-
})(ScalarType || (ScalarType = {}));
|
|
42
|
-
export var NestedAggregationType;
|
|
43
|
-
(function (NestedAggregationType) {
|
|
44
|
-
NestedAggregationType["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
|
|
45
|
-
/** An aggregation where result buckets are dynamically built - one per unique value */
|
|
46
|
-
NestedAggregationType["VALUE"] = "VALUE";
|
|
47
|
-
/** An aggregation, where user can define set of ranges - each representing a bucket */
|
|
48
|
-
NestedAggregationType["RANGE"] = "RANGE";
|
|
49
|
-
/** A single-value metric aggregation - e.g. min, max, sum, avg */
|
|
50
|
-
NestedAggregationType["SCALAR"] = "SCALAR";
|
|
51
|
-
/** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
|
|
52
|
-
NestedAggregationType["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
|
|
53
|
-
})(NestedAggregationType || (NestedAggregationType = {}));
|
|
54
|
-
export var Interval;
|
|
55
|
-
(function (Interval) {
|
|
56
|
-
Interval["UNKNOWN_INTERVAL"] = "UNKNOWN_INTERVAL";
|
|
57
|
-
/** Yearly interval */
|
|
58
|
-
Interval["YEAR"] = "YEAR";
|
|
59
|
-
/** Monthly interval */
|
|
60
|
-
Interval["MONTH"] = "MONTH";
|
|
61
|
-
/** Weekly interval */
|
|
62
|
-
Interval["WEEK"] = "WEEK";
|
|
63
|
-
/** Daily interval */
|
|
64
|
-
Interval["DAY"] = "DAY";
|
|
65
|
-
/** Hourly interval */
|
|
66
|
-
Interval["HOUR"] = "HOUR";
|
|
67
|
-
/** Minute interval */
|
|
68
|
-
Interval["MINUTE"] = "MINUTE";
|
|
69
|
-
/** Second interval */
|
|
70
|
-
Interval["SECOND"] = "SECOND";
|
|
71
|
-
})(Interval || (Interval = {}));
|
|
72
|
-
export var AggregationType;
|
|
73
|
-
(function (AggregationType) {
|
|
74
|
-
AggregationType["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
|
|
75
|
-
/** An aggregation where result buckets are dynamically built - one per unique value */
|
|
76
|
-
AggregationType["VALUE"] = "VALUE";
|
|
77
|
-
/** An aggregation, where user can define set of ranges - each representing a bucket */
|
|
78
|
-
AggregationType["RANGE"] = "RANGE";
|
|
79
|
-
/** A single-value metric aggregation - e.g. min, max, sum, avg */
|
|
80
|
-
AggregationType["SCALAR"] = "SCALAR";
|
|
81
|
-
/** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
|
|
82
|
-
AggregationType["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
|
|
83
|
-
/** Multi-level aggregation, where each next aggregation is nested within previous one */
|
|
84
|
-
AggregationType["NESTED"] = "NESTED";
|
|
85
|
-
})(AggregationType || (AggregationType = {}));
|
|
86
|
-
export var Mode;
|
|
87
|
-
(function (Mode) {
|
|
88
|
-
/** Any of the search terms must be present */
|
|
89
|
-
Mode["OR"] = "OR";
|
|
90
|
-
/** All search terms must be present */
|
|
91
|
-
Mode["AND"] = "AND";
|
|
92
|
-
})(Mode || (Mode = {}));
|
|
93
|
-
export var WebhookIdentityType;
|
|
94
|
-
(function (WebhookIdentityType) {
|
|
95
|
-
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
96
|
-
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
97
|
-
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
98
|
-
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
99
|
-
WebhookIdentityType["APP"] = "APP";
|
|
100
|
-
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
101
|
-
//# sourceMappingURL=bookings-resources-v2-resource-resources.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-resources-v2-resource-resources.types.js","sourceRoot":"","sources":["../../../../src/bookings-resources-v2-resource-resources.types.ts"],"names":[],"mappings":"AA0MA,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,6CAA6C;IAC7C,uCAAqB,CAAA;AACvB,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB;AAmSD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAuDD,MAAM,CAAN,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,uCAAuC;IACvC,2BAAe,CAAA;IACf,uDAAuD;IACvD,2BAAe,CAAA;AACjB,CAAC,EALW,QAAQ,KAAR,QAAQ,QAKnB;AAED,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,sCAAsC;IACtC,8BAAa,CAAA;IACb,qCAAqC;IACrC,4BAAW,CAAA;AACb,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB;AAED,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,qEAAqE;IACrE,oCAAmB,CAAA;IACnB,mEAAmE;IACnE,oCAAmB,CAAA;AACrB,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB;AAUD,MAAM,CAAN,IAAY,UAQX;AARD,WAAY,UAAU;IACpB,yDAA2C,CAAA;IAC3C,+BAA+B;IAC/B,+CAAiC,CAAA;IACjC,oBAAoB;IACpB,yBAAW,CAAA;IACX,oBAAoB;IACpB,yBAAW,CAAA;AACb,CAAC,EARW,UAAU,KAAV,UAAU,QAQrB;AAqBD,MAAM,CAAN,IAAY,qBAUX;AAVD,WAAY,qBAAqB;IAC/B,8EAAqD,CAAA;IACrD,uFAAuF;IACvF,wCAAe,CAAA;IACf,uFAAuF;IACvF,wCAAe,CAAA;IACf,kEAAkE;IAClE,0CAAiB,CAAA;IAC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