@wix/members 1.0.106 → 1.0.107
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/context.js +1 -0
- package/build/cjs/context.js.map +1 -0
- package/build/cjs/index.js +1 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/meta.js +1 -0
- package/build/cjs/meta.js.map +1 -0
- package/package.json +11 -11
- package/type-bundles/context.bundle.d.ts +556 -429
- package/type-bundles/index.bundle.d.ts +556 -429
|
@@ -1,39 +1,127 @@
|
|
|
1
|
-
type
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
type HostModule<T, H extends Host> = {
|
|
2
|
+
__type: 'host';
|
|
3
|
+
create(host: H): T;
|
|
4
|
+
};
|
|
5
|
+
type HostModuleAPI<T extends HostModule<any, any>> = T extends HostModule<infer U, any> ? U : never;
|
|
6
|
+
type Host<Environment = unknown> = {
|
|
7
|
+
channel: {
|
|
8
|
+
observeState(callback: (props: unknown, environment: Environment) => unknown): {
|
|
9
|
+
disconnect: () => void;
|
|
10
|
+
} | Promise<{
|
|
11
|
+
disconnect: () => void;
|
|
12
|
+
}>;
|
|
13
|
+
};
|
|
14
|
+
environment?: Environment;
|
|
15
|
+
/**
|
|
16
|
+
* Optional bast url to use for API requests, for example `www.wixapis.com`
|
|
17
|
+
*/
|
|
18
|
+
apiBaseUrl?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Possible data to be provided by every host, for cross cutting concerns
|
|
21
|
+
* like internationalization, billing, etc.
|
|
22
|
+
*/
|
|
23
|
+
essentials?: {
|
|
24
|
+
/**
|
|
25
|
+
* The language of the currently viewed session
|
|
26
|
+
*/
|
|
27
|
+
language?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The locale of the currently viewed session
|
|
30
|
+
*/
|
|
31
|
+
locale?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Any headers that should be passed through to the API requests
|
|
34
|
+
*/
|
|
35
|
+
passThroughHeaders?: Record<string, string>;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
40
|
+
interface HttpClient {
|
|
41
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
4
42
|
fetchWithAuth: typeof fetch;
|
|
5
43
|
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
44
|
+
getActiveToken?: () => string | undefined;
|
|
6
45
|
}
|
|
7
|
-
type RequestOptionsFactory
|
|
8
|
-
type HttpResponse
|
|
46
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
47
|
+
type HttpResponse<T = any> = {
|
|
9
48
|
data: T;
|
|
10
49
|
status: number;
|
|
11
50
|
statusText: string;
|
|
12
51
|
headers: any;
|
|
13
52
|
request?: any;
|
|
14
53
|
};
|
|
15
|
-
type RequestOptions
|
|
54
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
16
55
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
17
56
|
url: string;
|
|
18
57
|
data?: Data;
|
|
19
58
|
params?: URLSearchParams;
|
|
20
|
-
} & APIMetadata
|
|
21
|
-
type APIMetadata
|
|
59
|
+
} & APIMetadata;
|
|
60
|
+
type APIMetadata = {
|
|
22
61
|
methodFqn?: string;
|
|
23
62
|
entityFqdn?: string;
|
|
24
63
|
packageName?: string;
|
|
25
64
|
};
|
|
26
|
-
type BuildRESTFunction
|
|
27
|
-
type EventDefinition$
|
|
65
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
66
|
+
type EventDefinition$2<Payload = unknown, Type extends string = string> = {
|
|
28
67
|
__type: 'event-definition';
|
|
29
68
|
type: Type;
|
|
30
69
|
isDomainEvent?: boolean;
|
|
31
70
|
transformations?: (envelope: unknown) => Payload;
|
|
32
71
|
__payload: Payload;
|
|
33
72
|
};
|
|
34
|
-
declare function EventDefinition$
|
|
35
|
-
type EventHandler$
|
|
36
|
-
type BuildEventDefinition$
|
|
73
|
+
declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
|
|
74
|
+
type EventHandler$2<T extends EventDefinition$2> = (payload: T['__payload']) => void | Promise<void>;
|
|
75
|
+
type BuildEventDefinition$2<T extends EventDefinition$2<any, string>> = (handler: EventHandler$2<T>) => void;
|
|
76
|
+
|
|
77
|
+
type ServicePluginMethodInput = {
|
|
78
|
+
request: any;
|
|
79
|
+
metadata: any;
|
|
80
|
+
};
|
|
81
|
+
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
82
|
+
type ServicePluginMethodMetadata = {
|
|
83
|
+
name: string;
|
|
84
|
+
primaryHttpMappingPath: string;
|
|
85
|
+
transformations: {
|
|
86
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
87
|
+
toREST: (...args: unknown[]) => unknown;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
91
|
+
__type: 'service-plugin-definition';
|
|
92
|
+
componentType: string;
|
|
93
|
+
methods: ServicePluginMethodMetadata[];
|
|
94
|
+
__contract: Contract;
|
|
95
|
+
};
|
|
96
|
+
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
97
|
+
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
98
|
+
declare const SERVICE_PLUGIN_ERROR_TYPE = "wix_spi_error";
|
|
99
|
+
|
|
100
|
+
type RequestContext = {
|
|
101
|
+
isSSR: boolean;
|
|
102
|
+
host: string;
|
|
103
|
+
protocol?: string;
|
|
104
|
+
};
|
|
105
|
+
type ResponseTransformer = (data: any, headers?: any) => any;
|
|
106
|
+
/**
|
|
107
|
+
* Ambassador request options types are copied mostly from AxiosRequestConfig.
|
|
108
|
+
* They are copied and not imported to reduce the amount of dependencies (to reduce install time).
|
|
109
|
+
* https://github.com/axios/axios/blob/3f53eb6960f05a1f88409c4b731a40de595cb825/index.d.ts#L307-L315
|
|
110
|
+
*/
|
|
111
|
+
type Method = 'get' | 'GET' | 'delete' | 'DELETE' | 'head' | 'HEAD' | 'options' | 'OPTIONS' | 'post' | 'POST' | 'put' | 'PUT' | 'patch' | 'PATCH' | 'purge' | 'PURGE' | 'link' | 'LINK' | 'unlink' | 'UNLINK';
|
|
112
|
+
type AmbassadorRequestOptions<T = any> = {
|
|
113
|
+
_?: T;
|
|
114
|
+
url?: string;
|
|
115
|
+
method?: Method;
|
|
116
|
+
params?: any;
|
|
117
|
+
data?: any;
|
|
118
|
+
transformResponse?: ResponseTransformer | ResponseTransformer[];
|
|
119
|
+
};
|
|
120
|
+
type AmbassadorFactory<Request, Response> = (payload: Request) => ((context: RequestContext) => AmbassadorRequestOptions<Response>) & {
|
|
121
|
+
__isAmbassador: boolean;
|
|
122
|
+
};
|
|
123
|
+
type AmbassadorFunctionDescriptor<Request = any, Response = any> = AmbassadorFactory<Request, Response>;
|
|
124
|
+
type BuildAmbassadorFunction<T extends AmbassadorFunctionDescriptor> = T extends AmbassadorFunctionDescriptor<infer Request, infer Response> ? (req: Request) => Promise<Response> : never;
|
|
37
125
|
|
|
38
126
|
declare global {
|
|
39
127
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -42,6 +130,284 @@ declare global {
|
|
|
42
130
|
}
|
|
43
131
|
}
|
|
44
132
|
|
|
133
|
+
declare const emptyObjectSymbol: unique symbol;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
Represents a strictly empty plain object, the `{}` value.
|
|
137
|
+
|
|
138
|
+
When you annotate something as the type `{}`, it can be anything except `null` and `undefined`. This means that you cannot use `{}` to represent an empty plain object ([read more](https://stackoverflow.com/questions/47339869/typescript-empty-object-and-any-difference/52193484#52193484)).
|
|
139
|
+
|
|
140
|
+
@example
|
|
141
|
+
```
|
|
142
|
+
import type {EmptyObject} from 'type-fest';
|
|
143
|
+
|
|
144
|
+
// The following illustrates the problem with `{}`.
|
|
145
|
+
const foo1: {} = {}; // Pass
|
|
146
|
+
const foo2: {} = []; // Pass
|
|
147
|
+
const foo3: {} = 42; // Pass
|
|
148
|
+
const foo4: {} = {a: 1}; // Pass
|
|
149
|
+
|
|
150
|
+
// With `EmptyObject` only the first case is valid.
|
|
151
|
+
const bar1: EmptyObject = {}; // Pass
|
|
152
|
+
const bar2: EmptyObject = 42; // Fail
|
|
153
|
+
const bar3: EmptyObject = []; // Fail
|
|
154
|
+
const bar4: EmptyObject = {a: 1}; // Fail
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
Unfortunately, `Record<string, never>`, `Record<keyof any, never>` and `Record<never, never>` do not work. See {@link https://github.com/sindresorhus/type-fest/issues/395 #395}.
|
|
158
|
+
|
|
159
|
+
@category Object
|
|
160
|
+
*/
|
|
161
|
+
type EmptyObject = {[emptyObjectSymbol]?: never};
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
Returns a boolean for whether the two given types are equal.
|
|
165
|
+
|
|
166
|
+
@link https://github.com/microsoft/TypeScript/issues/27024#issuecomment-421529650
|
|
167
|
+
@link https://stackoverflow.com/questions/68961864/how-does-the-equals-work-in-typescript/68963796#68963796
|
|
168
|
+
|
|
169
|
+
Use-cases:
|
|
170
|
+
- If you want to make a conditional branch based on the result of a comparison of two types.
|
|
171
|
+
|
|
172
|
+
@example
|
|
173
|
+
```
|
|
174
|
+
import type {IsEqual} from 'type-fest';
|
|
175
|
+
|
|
176
|
+
// This type returns a boolean for whether the given array includes the given item.
|
|
177
|
+
// `IsEqual` is used to compare the given array at position 0 and the given item and then return true if they are equal.
|
|
178
|
+
type Includes<Value extends readonly any[], Item> =
|
|
179
|
+
Value extends readonly [Value[0], ...infer rest]
|
|
180
|
+
? IsEqual<Value[0], Item> extends true
|
|
181
|
+
? true
|
|
182
|
+
: Includes<rest, Item>
|
|
183
|
+
: false;
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
@category Type Guard
|
|
187
|
+
@category Utilities
|
|
188
|
+
*/
|
|
189
|
+
type IsEqual<A, B> =
|
|
190
|
+
(<G>() => G extends A ? 1 : 2) extends
|
|
191
|
+
(<G>() => G extends B ? 1 : 2)
|
|
192
|
+
? true
|
|
193
|
+
: false;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
Filter out keys from an object.
|
|
197
|
+
|
|
198
|
+
Returns `never` if `Exclude` is strictly equal to `Key`.
|
|
199
|
+
Returns `never` if `Key` extends `Exclude`.
|
|
200
|
+
Returns `Key` otherwise.
|
|
201
|
+
|
|
202
|
+
@example
|
|
203
|
+
```
|
|
204
|
+
type Filtered = Filter<'foo', 'foo'>;
|
|
205
|
+
//=> never
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
@example
|
|
209
|
+
```
|
|
210
|
+
type Filtered = Filter<'bar', string>;
|
|
211
|
+
//=> never
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
@example
|
|
215
|
+
```
|
|
216
|
+
type Filtered = Filter<'bar', 'foo'>;
|
|
217
|
+
//=> 'bar'
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
@see {Except}
|
|
221
|
+
*/
|
|
222
|
+
type Filter<KeyType, ExcludeType> = IsEqual<KeyType, ExcludeType> extends true ? never : (KeyType extends ExcludeType ? never : KeyType);
|
|
223
|
+
|
|
224
|
+
type ExceptOptions = {
|
|
225
|
+
/**
|
|
226
|
+
Disallow assigning non-specified properties.
|
|
227
|
+
|
|
228
|
+
Note that any omitted properties in the resulting type will be present in autocomplete as `undefined`.
|
|
229
|
+
|
|
230
|
+
@default false
|
|
231
|
+
*/
|
|
232
|
+
requireExactProps?: boolean;
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
Create a type from an object type without certain keys.
|
|
237
|
+
|
|
238
|
+
We recommend setting the `requireExactProps` option to `true`.
|
|
239
|
+
|
|
240
|
+
This type is a stricter version of [`Omit`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-5.html#the-omit-helper-type). The `Omit` type does not restrict the omitted keys to be keys present on the given type, while `Except` does. The benefits of a stricter type are avoiding typos and allowing the compiler to pick up on rename refactors automatically.
|
|
241
|
+
|
|
242
|
+
This type was proposed to the TypeScript team, which declined it, saying they prefer that libraries implement stricter versions of the built-in types ([microsoft/TypeScript#30825](https://github.com/microsoft/TypeScript/issues/30825#issuecomment-523668235)).
|
|
243
|
+
|
|
244
|
+
@example
|
|
245
|
+
```
|
|
246
|
+
import type {Except} from 'type-fest';
|
|
247
|
+
|
|
248
|
+
type Foo = {
|
|
249
|
+
a: number;
|
|
250
|
+
b: string;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
type FooWithoutA = Except<Foo, 'a'>;
|
|
254
|
+
//=> {b: string}
|
|
255
|
+
|
|
256
|
+
const fooWithoutA: FooWithoutA = {a: 1, b: '2'};
|
|
257
|
+
//=> errors: 'a' does not exist in type '{ b: string; }'
|
|
258
|
+
|
|
259
|
+
type FooWithoutB = Except<Foo, 'b', {requireExactProps: true}>;
|
|
260
|
+
//=> {a: number} & Partial<Record<"b", never>>
|
|
261
|
+
|
|
262
|
+
const fooWithoutB: FooWithoutB = {a: 1, b: '2'};
|
|
263
|
+
//=> errors at 'b': Type 'string' is not assignable to type 'undefined'.
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
@category Object
|
|
267
|
+
*/
|
|
268
|
+
type Except<ObjectType, KeysType extends keyof ObjectType, Options extends ExceptOptions = {requireExactProps: false}> = {
|
|
269
|
+
[KeyType in keyof ObjectType as Filter<KeyType, KeysType>]: ObjectType[KeyType];
|
|
270
|
+
} & (Options['requireExactProps'] extends true
|
|
271
|
+
? Partial<Record<KeysType, never>>
|
|
272
|
+
: {});
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
Extract the keys from a type where the value type of the key extends the given `Condition`.
|
|
276
|
+
|
|
277
|
+
Internally this is used for the `ConditionalPick` and `ConditionalExcept` types.
|
|
278
|
+
|
|
279
|
+
@example
|
|
280
|
+
```
|
|
281
|
+
import type {ConditionalKeys} from 'type-fest';
|
|
282
|
+
|
|
283
|
+
interface Example {
|
|
284
|
+
a: string;
|
|
285
|
+
b: string | number;
|
|
286
|
+
c?: string;
|
|
287
|
+
d: {};
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
type StringKeysOnly = ConditionalKeys<Example, string>;
|
|
291
|
+
//=> 'a'
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
To support partial types, make sure your `Condition` is a union of undefined (for example, `string | undefined`) as demonstrated below.
|
|
295
|
+
|
|
296
|
+
@example
|
|
297
|
+
```
|
|
298
|
+
import type {ConditionalKeys} from 'type-fest';
|
|
299
|
+
|
|
300
|
+
type StringKeysAndUndefined = ConditionalKeys<Example, string | undefined>;
|
|
301
|
+
//=> 'a' | 'c'
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
@category Object
|
|
305
|
+
*/
|
|
306
|
+
type ConditionalKeys<Base, Condition> = NonNullable<
|
|
307
|
+
// Wrap in `NonNullable` to strip away the `undefined` type from the produced union.
|
|
308
|
+
{
|
|
309
|
+
// Map through all the keys of the given base type.
|
|
310
|
+
[Key in keyof Base]:
|
|
311
|
+
// Pick only keys with types extending the given `Condition` type.
|
|
312
|
+
Base[Key] extends Condition
|
|
313
|
+
// Retain this key since the condition passes.
|
|
314
|
+
? Key
|
|
315
|
+
// Discard this key since the condition fails.
|
|
316
|
+
: never;
|
|
317
|
+
|
|
318
|
+
// Convert the produced object into a union type of the keys which passed the conditional test.
|
|
319
|
+
}[keyof Base]
|
|
320
|
+
>;
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
Exclude keys from a shape that matches the given `Condition`.
|
|
324
|
+
|
|
325
|
+
This is useful when you want to create a new type with a specific set of keys from a shape. For example, you might want to exclude all the primitive properties from a class and form a new shape containing everything but the primitive properties.
|
|
326
|
+
|
|
327
|
+
@example
|
|
328
|
+
```
|
|
329
|
+
import type {Primitive, ConditionalExcept} from 'type-fest';
|
|
330
|
+
|
|
331
|
+
class Awesome {
|
|
332
|
+
name: string;
|
|
333
|
+
successes: number;
|
|
334
|
+
failures: bigint;
|
|
335
|
+
|
|
336
|
+
run() {}
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
type ExceptPrimitivesFromAwesome = ConditionalExcept<Awesome, Primitive>;
|
|
340
|
+
//=> {run: () => void}
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
@example
|
|
344
|
+
```
|
|
345
|
+
import type {ConditionalExcept} from 'type-fest';
|
|
346
|
+
|
|
347
|
+
interface Example {
|
|
348
|
+
a: string;
|
|
349
|
+
b: string | number;
|
|
350
|
+
c: () => void;
|
|
351
|
+
d: {};
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
type NonStringKeysOnly = ConditionalExcept<Example, string>;
|
|
355
|
+
//=> {b: string | number; c: () => void; d: {}}
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
@category Object
|
|
359
|
+
*/
|
|
360
|
+
type ConditionalExcept<Base, Condition> = Except<
|
|
361
|
+
Base,
|
|
362
|
+
ConditionalKeys<Base, Condition>
|
|
363
|
+
>;
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Descriptors are objects that describe the API of a module, and the module
|
|
367
|
+
* can either be a REST module or a host module.
|
|
368
|
+
* This type is recursive, so it can describe nested modules.
|
|
369
|
+
*/
|
|
370
|
+
type Descriptors = RESTFunctionDescriptor | AmbassadorFunctionDescriptor | HostModule<any, any> | EventDefinition$2<any> | ServicePluginDefinition<any> | {
|
|
371
|
+
[key: string]: Descriptors | PublicMetadata | any;
|
|
372
|
+
};
|
|
373
|
+
/**
|
|
374
|
+
* This type takes in a descriptors object of a certain Host (including an `unknown` host)
|
|
375
|
+
* and returns an object with the same structure, but with all descriptors replaced with their API.
|
|
376
|
+
* Any non-descriptor properties are removed from the returned object, including descriptors that
|
|
377
|
+
* do not match the given host (as they will not work with the given host).
|
|
378
|
+
*/
|
|
379
|
+
type BuildDescriptors<T extends Descriptors, H extends Host<any> | undefined, Depth extends number = 5> = {
|
|
380
|
+
done: T;
|
|
381
|
+
recurse: T extends {
|
|
382
|
+
__type: typeof SERVICE_PLUGIN_ERROR_TYPE;
|
|
383
|
+
} ? never : T extends AmbassadorFunctionDescriptor ? BuildAmbassadorFunction<T> : T extends RESTFunctionDescriptor ? BuildRESTFunction<T> : T extends EventDefinition$2<any> ? BuildEventDefinition$2<T> : T extends ServicePluginDefinition<any> ? BuildServicePluginDefinition<T> : T extends HostModule<any, any> ? HostModuleAPI<T> : ConditionalExcept<{
|
|
384
|
+
[Key in keyof T]: T[Key] extends Descriptors ? BuildDescriptors<T[Key], H, [
|
|
385
|
+
-1,
|
|
386
|
+
0,
|
|
387
|
+
1,
|
|
388
|
+
2,
|
|
389
|
+
3,
|
|
390
|
+
4,
|
|
391
|
+
5
|
|
392
|
+
][Depth]> : never;
|
|
393
|
+
}, EmptyObject>;
|
|
394
|
+
}[Depth extends -1 ? 'done' : 'recurse'];
|
|
395
|
+
type PublicMetadata = {
|
|
396
|
+
PACKAGE_NAME?: string;
|
|
397
|
+
};
|
|
398
|
+
|
|
399
|
+
declare global {
|
|
400
|
+
interface ContextualClient {
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* A type used to create concerete types from SDK descriptors in
|
|
405
|
+
* case a contextual client is available.
|
|
406
|
+
*/
|
|
407
|
+
type MaybeContext<T extends Descriptors> = globalThis.ContextualClient extends {
|
|
408
|
+
host: Host;
|
|
409
|
+
} ? BuildDescriptors<T, globalThis.ContextualClient['host']> : T;
|
|
410
|
+
|
|
45
411
|
interface Badge {
|
|
46
412
|
/**
|
|
47
413
|
* Badge ID.
|
|
@@ -602,7 +968,7 @@ interface ListMembersByBadgeOptions {
|
|
|
602
968
|
paging?: Paging$4;
|
|
603
969
|
}
|
|
604
970
|
|
|
605
|
-
declare function createBadge$1(httpClient: HttpClient
|
|
971
|
+
declare function createBadge$1(httpClient: HttpClient): CreateBadgeSignature;
|
|
606
972
|
interface CreateBadgeSignature {
|
|
607
973
|
/**
|
|
608
974
|
* Creates a badge.
|
|
@@ -618,7 +984,7 @@ interface CreateBadgeSignature {
|
|
|
618
984
|
*/
|
|
619
985
|
(badge: Badge): Promise<Badge & BadgeNonNullableFields>;
|
|
620
986
|
}
|
|
621
|
-
declare function updateBadge$1(httpClient: HttpClient
|
|
987
|
+
declare function updateBadge$1(httpClient: HttpClient): UpdateBadgeSignature;
|
|
622
988
|
interface UpdateBadgeSignature {
|
|
623
989
|
/**
|
|
624
990
|
* Updates a badge.
|
|
@@ -635,7 +1001,7 @@ interface UpdateBadgeSignature {
|
|
|
635
1001
|
*/
|
|
636
1002
|
(_id: string, badge: UpdateBadge): Promise<Badge & BadgeNonNullableFields>;
|
|
637
1003
|
}
|
|
638
|
-
declare function listBadges$1(httpClient: HttpClient
|
|
1004
|
+
declare function listBadges$1(httpClient: HttpClient): ListBadgesSignature;
|
|
639
1005
|
interface ListBadgesSignature {
|
|
640
1006
|
/**
|
|
641
1007
|
* Lists the badges.
|
|
@@ -647,7 +1013,7 @@ interface ListBadgesSignature {
|
|
|
647
1013
|
*/
|
|
648
1014
|
(options?: ListBadgesOptions | undefined): Promise<ListBadgesResponse & ListBadgesResponseNonNullableFields>;
|
|
649
1015
|
}
|
|
650
|
-
declare function getBadge$1(httpClient: HttpClient
|
|
1016
|
+
declare function getBadge$1(httpClient: HttpClient): GetBadgeSignature;
|
|
651
1017
|
interface GetBadgeSignature {
|
|
652
1018
|
/**
|
|
653
1019
|
* Retrieves information about a badge.
|
|
@@ -663,7 +1029,7 @@ interface GetBadgeSignature {
|
|
|
663
1029
|
*/
|
|
664
1030
|
(_id: string): Promise<Badge & BadgeNonNullableFields>;
|
|
665
1031
|
}
|
|
666
|
-
declare function deleteBadge$1(httpClient: HttpClient
|
|
1032
|
+
declare function deleteBadge$1(httpClient: HttpClient): DeleteBadgeSignature;
|
|
667
1033
|
interface DeleteBadgeSignature {
|
|
668
1034
|
/**
|
|
669
1035
|
* Deletes a badge.
|
|
@@ -676,7 +1042,7 @@ interface DeleteBadgeSignature {
|
|
|
676
1042
|
*/
|
|
677
1043
|
(_id: string): Promise<void>;
|
|
678
1044
|
}
|
|
679
|
-
declare function assignBadge$1(httpClient: HttpClient
|
|
1045
|
+
declare function assignBadge$1(httpClient: HttpClient): AssignBadgeSignature;
|
|
680
1046
|
interface AssignBadgeSignature {
|
|
681
1047
|
/**
|
|
682
1048
|
* Assigns a badge to site members.
|
|
@@ -690,7 +1056,7 @@ interface AssignBadgeSignature {
|
|
|
690
1056
|
*/
|
|
691
1057
|
(_id: string, memberIds: string[]): Promise<AssignBadgeResponse & AssignBadgeResponseNonNullableFields>;
|
|
692
1058
|
}
|
|
693
|
-
declare function unassignBadge$1(httpClient: HttpClient
|
|
1059
|
+
declare function unassignBadge$1(httpClient: HttpClient): UnassignBadgeSignature;
|
|
694
1060
|
interface UnassignBadgeSignature {
|
|
695
1061
|
/**
|
|
696
1062
|
* Removes site members from an assigned badge.
|
|
@@ -704,7 +1070,7 @@ interface UnassignBadgeSignature {
|
|
|
704
1070
|
*/
|
|
705
1071
|
(_id: string, memberIds: string[]): Promise<void>;
|
|
706
1072
|
}
|
|
707
|
-
declare function listMembersByBadge$1(httpClient: HttpClient
|
|
1073
|
+
declare function listMembersByBadge$1(httpClient: HttpClient): ListMembersByBadgeSignature;
|
|
708
1074
|
interface ListMembersByBadgeSignature {
|
|
709
1075
|
/**
|
|
710
1076
|
* Lists the IDs of all members assigned to a badge.
|
|
@@ -721,7 +1087,7 @@ interface ListMembersByBadgeSignature {
|
|
|
721
1087
|
*/
|
|
722
1088
|
(_id: string, options?: ListMembersByBadgeOptions | undefined): Promise<ListMembersResponse$2 & ListMembersResponseNonNullableFields$1>;
|
|
723
1089
|
}
|
|
724
|
-
declare function listBadgesPerMember$1(httpClient: HttpClient
|
|
1090
|
+
declare function listBadgesPerMember$1(httpClient: HttpClient): ListBadgesPerMemberSignature;
|
|
725
1091
|
interface ListBadgesPerMemberSignature {
|
|
726
1092
|
/**
|
|
727
1093
|
* Lists the badges assigned to each of the specified site members.
|
|
@@ -734,7 +1100,7 @@ interface ListBadgesPerMemberSignature {
|
|
|
734
1100
|
*/
|
|
735
1101
|
(memberIds: string[]): Promise<ListMembersBadgeIdsResponse & ListMembersBadgeIdsResponseNonNullableFields>;
|
|
736
1102
|
}
|
|
737
|
-
declare function getMemberCountsPerBadge$1(httpClient: HttpClient
|
|
1103
|
+
declare function getMemberCountsPerBadge$1(httpClient: HttpClient): GetMemberCountsPerBadgeSignature;
|
|
738
1104
|
interface GetMemberCountsPerBadgeSignature {
|
|
739
1105
|
/**
|
|
740
1106
|
* Retrieves member count per badge.
|
|
@@ -746,7 +1112,7 @@ interface GetMemberCountsPerBadgeSignature {
|
|
|
746
1112
|
*/
|
|
747
1113
|
(): Promise<GetMemberCountsPerBadgeResponse & GetMemberCountsPerBadgeResponseNonNullableFields>;
|
|
748
1114
|
}
|
|
749
|
-
declare function updateBadgesDisplayOrder$1(httpClient: HttpClient
|
|
1115
|
+
declare function updateBadgesDisplayOrder$1(httpClient: HttpClient): UpdateBadgesDisplayOrderSignature;
|
|
750
1116
|
interface UpdateBadgesDisplayOrderSignature {
|
|
751
1117
|
/**
|
|
752
1118
|
* Updates badges' display order.
|
|
@@ -759,25 +1125,43 @@ interface UpdateBadgesDisplayOrderSignature {
|
|
|
759
1125
|
*/
|
|
760
1126
|
(badgeIds: string[]): Promise<UpdateBadgesDisplayOrderResponse & UpdateBadgesDisplayOrderResponseNonNullableFields>;
|
|
761
1127
|
}
|
|
762
|
-
declare const onBadgeCreated$1: EventDefinition$
|
|
763
|
-
declare const onBadgeUpdated$1: EventDefinition$
|
|
764
|
-
declare const onBadgeDeleted$1: EventDefinition$
|
|
765
|
-
declare const onBadgeAssigned$1: EventDefinition$
|
|
766
|
-
declare const onBadgeUnassigned$1: EventDefinition$
|
|
1128
|
+
declare const onBadgeCreated$1: EventDefinition$2<BadgeCreatedEnvelope, "wix.badges.v3.badge_created">;
|
|
1129
|
+
declare const onBadgeUpdated$1: EventDefinition$2<BadgeUpdatedEnvelope, "wix.badges.v3.badge_updated">;
|
|
1130
|
+
declare const onBadgeDeleted$1: EventDefinition$2<BadgeDeletedEnvelope, "wix.badges.v3.badge_deleted">;
|
|
1131
|
+
declare const onBadgeAssigned$1: EventDefinition$2<BadgeAssignedEnvelope, "wix.badges.v3.badge_badge_assigned">;
|
|
1132
|
+
declare const onBadgeUnassigned$1: EventDefinition$2<BadgeUnassignedEnvelope, "wix.badges.v3.badge_badge_unassigned">;
|
|
1133
|
+
|
|
1134
|
+
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
1135
|
+
__type: 'event-definition';
|
|
1136
|
+
type: Type;
|
|
1137
|
+
isDomainEvent?: boolean;
|
|
1138
|
+
transformations?: (envelope: unknown) => Payload;
|
|
1139
|
+
__payload: Payload;
|
|
1140
|
+
};
|
|
1141
|
+
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
1142
|
+
type EventHandler$1<T extends EventDefinition$1> = (payload: T['__payload']) => void | Promise<void>;
|
|
1143
|
+
type BuildEventDefinition$1<T extends EventDefinition$1<any, string>> = (handler: EventHandler$1<T>) => void;
|
|
1144
|
+
|
|
1145
|
+
declare global {
|
|
1146
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1147
|
+
interface SymbolConstructor {
|
|
1148
|
+
readonly observable: symbol;
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
767
1151
|
|
|
768
1152
|
declare function createEventModule$1<T extends EventDefinition$1<any, string>>(eventDefinition: T): BuildEventDefinition$1<T> & T;
|
|
769
1153
|
|
|
770
|
-
declare const createBadge: BuildRESTFunction
|
|
771
|
-
declare const updateBadge: BuildRESTFunction
|
|
772
|
-
declare const listBadges: BuildRESTFunction
|
|
773
|
-
declare const getBadge: BuildRESTFunction
|
|
774
|
-
declare const deleteBadge: BuildRESTFunction
|
|
775
|
-
declare const assignBadge: BuildRESTFunction
|
|
776
|
-
declare const unassignBadge: BuildRESTFunction
|
|
777
|
-
declare const listMembersByBadge: BuildRESTFunction
|
|
778
|
-
declare const listBadgesPerMember: BuildRESTFunction
|
|
779
|
-
declare const getMemberCountsPerBadge: BuildRESTFunction
|
|
780
|
-
declare const updateBadgesDisplayOrder: BuildRESTFunction
|
|
1154
|
+
declare const createBadge: MaybeContext<BuildRESTFunction<typeof createBadge$1> & typeof createBadge$1>;
|
|
1155
|
+
declare const updateBadge: MaybeContext<BuildRESTFunction<typeof updateBadge$1> & typeof updateBadge$1>;
|
|
1156
|
+
declare const listBadges: MaybeContext<BuildRESTFunction<typeof listBadges$1> & typeof listBadges$1>;
|
|
1157
|
+
declare const getBadge: MaybeContext<BuildRESTFunction<typeof getBadge$1> & typeof getBadge$1>;
|
|
1158
|
+
declare const deleteBadge: MaybeContext<BuildRESTFunction<typeof deleteBadge$1> & typeof deleteBadge$1>;
|
|
1159
|
+
declare const assignBadge: MaybeContext<BuildRESTFunction<typeof assignBadge$1> & typeof assignBadge$1>;
|
|
1160
|
+
declare const unassignBadge: MaybeContext<BuildRESTFunction<typeof unassignBadge$1> & typeof unassignBadge$1>;
|
|
1161
|
+
declare const listMembersByBadge: MaybeContext<BuildRESTFunction<typeof listMembersByBadge$1> & typeof listMembersByBadge$1>;
|
|
1162
|
+
declare const listBadgesPerMember: MaybeContext<BuildRESTFunction<typeof listBadgesPerMember$1> & typeof listBadgesPerMember$1>;
|
|
1163
|
+
declare const getMemberCountsPerBadge: MaybeContext<BuildRESTFunction<typeof getMemberCountsPerBadge$1> & typeof getMemberCountsPerBadge$1>;
|
|
1164
|
+
declare const updateBadgesDisplayOrder: MaybeContext<BuildRESTFunction<typeof updateBadgesDisplayOrder$1> & typeof updateBadgesDisplayOrder$1>;
|
|
781
1165
|
|
|
782
1166
|
type _publicOnBadgeCreatedType = typeof onBadgeCreated$1;
|
|
783
1167
|
/**
|
|
@@ -884,40 +1268,6 @@ declare namespace context$8 {
|
|
|
884
1268
|
export { type ActionEvent$4 as ActionEvent, type context$8_AssignBadgeRequest as AssignBadgeRequest, type context$8_AssignBadgeResponse as AssignBadgeResponse, type context$8_AssignBadgeResponseNonNullableFields as AssignBadgeResponseNonNullableFields, type context$8_AssignBadgesRequest as AssignBadgesRequest, type context$8_AssignBadgesResponse as AssignBadgesResponse, type context$8_Badge as Badge, type context$8_BadgeAssigned as BadgeAssigned, type context$8_BadgeAssignedEnvelope as BadgeAssignedEnvelope, type context$8_BadgeCreatedEnvelope as BadgeCreatedEnvelope, type context$8_BadgeDeletedEnvelope as BadgeDeletedEnvelope, type context$8_BadgeMemberCount as BadgeMemberCount, type context$8_BadgeNonNullableFields as BadgeNonNullableFields, type context$8_BadgeUnassigned as BadgeUnassigned, type context$8_BadgeUnassignedEnvelope as BadgeUnassignedEnvelope, type context$8_BadgeUpdatedEnvelope as BadgeUpdatedEnvelope, type BaseEventMetadata$1 as BaseEventMetadata, type context$8_CountBadgesRequest as CountBadgesRequest, type context$8_CountBadgesResponse as CountBadgesResponse, type context$8_CreateBadgeRequest as CreateBadgeRequest, type context$8_CreateBadgeResponse as CreateBadgeResponse, type context$8_CreateBadgeResponseNonNullableFields as CreateBadgeResponseNonNullableFields, type CursorPaging$3 as CursorPaging, type CursorPagingMetadata$2 as CursorPagingMetadata, type Cursors$3 as Cursors, type context$8_DeleteBadgeRequest as DeleteBadgeRequest, type context$8_DeleteBadgeResponse as DeleteBadgeResponse, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type context$8_GetBadgeRequest as GetBadgeRequest, type context$8_GetBadgeResponse as GetBadgeResponse, type context$8_GetBadgeResponseNonNullableFields as GetBadgeResponseNonNullableFields, type context$8_GetMemberCountsPerBadgeRequest as GetMemberCountsPerBadgeRequest, type context$8_GetMemberCountsPerBadgeResponse as GetMemberCountsPerBadgeResponse, type context$8_GetMemberCountsPerBadgeResponseNonNullableFields as GetMemberCountsPerBadgeResponseNonNullableFields, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type context$8_ListBadgesOptions as ListBadgesOptions, type context$8_ListBadgesRequest as ListBadgesRequest, type context$8_ListBadgesResponse as ListBadgesResponse, type context$8_ListBadgesResponseNonNullableFields as ListBadgesResponseNonNullableFields, type context$8_ListMembersBadgeIdsRequest as ListMembersBadgeIdsRequest, type context$8_ListMembersBadgeIdsResponse as ListMembersBadgeIdsResponse, type context$8_ListMembersBadgeIdsResponseNonNullableFields as ListMembersBadgeIdsResponseNonNullableFields, type context$8_ListMembersByBadgeOptions as ListMembersByBadgeOptions, type ListMembersRequest$2 as ListMembersRequest, type ListMembersResponse$2 as ListMembersResponse, type ListMembersResponseNonNullableFields$1 as ListMembersResponseNonNullableFields, type context$8_ListMembersWithBadgesRequest as ListMembersWithBadgesRequest, type context$8_ListMembersWithBadgesResponse as ListMembersWithBadgesResponse, type context$8_MemberBadgeIds as MemberBadgeIds, type MessageEnvelope$3 as MessageEnvelope, type Paging$4 as Paging, type PagingMetadata$3 as PagingMetadata, type context$8_QueryBadgesRequest as QueryBadgesRequest, type context$8_QueryBadgesResponse as QueryBadgesResponse, type RestoreInfo$3 as RestoreInfo, SortOrder$3 as SortOrder, type Sorting$4 as Sorting, type context$8_UnassignBadgeRequest as UnassignBadgeRequest, type context$8_UnassignBadgeResponse as UnassignBadgeResponse, type context$8_UpdateBadge as UpdateBadge, type context$8_UpdateBadgeRequest as UpdateBadgeRequest, type context$8_UpdateBadgeResponse as UpdateBadgeResponse, type context$8_UpdateBadgeResponseNonNullableFields as UpdateBadgeResponseNonNullableFields, type context$8_UpdateBadgesDisplayOrderRequest as UpdateBadgesDisplayOrderRequest, type context$8_UpdateBadgesDisplayOrderResponse as UpdateBadgesDisplayOrderResponse, type context$8_UpdateBadgesDisplayOrderResponseNonNullableFields as UpdateBadgesDisplayOrderResponseNonNullableFields, WebhookIdentityType$3 as WebhookIdentityType, type context$8__publicOnBadgeAssignedType as _publicOnBadgeAssignedType, type context$8__publicOnBadgeCreatedType as _publicOnBadgeCreatedType, type context$8__publicOnBadgeDeletedType as _publicOnBadgeDeletedType, type context$8__publicOnBadgeUnassignedType as _publicOnBadgeUnassignedType, type context$8__publicOnBadgeUpdatedType as _publicOnBadgeUpdatedType, context$8_assignBadge as assignBadge, context$8_createBadge as createBadge, context$8_deleteBadge as deleteBadge, context$8_getBadge as getBadge, context$8_getMemberCountsPerBadge as getMemberCountsPerBadge, context$8_listBadges as listBadges, context$8_listBadgesPerMember as listBadgesPerMember, context$8_listMembersByBadge as listMembersByBadge, context$8_onBadgeAssigned as onBadgeAssigned, context$8_onBadgeCreated as onBadgeCreated, context$8_onBadgeDeleted as onBadgeDeleted, context$8_onBadgeUnassigned as onBadgeUnassigned, context$8_onBadgeUpdated as onBadgeUpdated, onBadgeAssigned$1 as publicOnBadgeAssigned, onBadgeCreated$1 as publicOnBadgeCreated, onBadgeDeleted$1 as publicOnBadgeDeleted, onBadgeUnassigned$1 as publicOnBadgeUnassigned, onBadgeUpdated$1 as publicOnBadgeUpdated, context$8_unassignBadge as unassignBadge, context$8_updateBadge as updateBadge, context$8_updateBadgesDisplayOrder as updateBadgesDisplayOrder };
|
|
885
1269
|
}
|
|
886
1270
|
|
|
887
|
-
type RESTFunctionDescriptor$7<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$7) => T;
|
|
888
|
-
interface HttpClient$7 {
|
|
889
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$7<TResponse, TData>): Promise<HttpResponse$7<TResponse>>;
|
|
890
|
-
fetchWithAuth: typeof fetch;
|
|
891
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
892
|
-
}
|
|
893
|
-
type RequestOptionsFactory$7<TResponse = any, TData = any> = (context: any) => RequestOptions$7<TResponse, TData>;
|
|
894
|
-
type HttpResponse$7<T = any> = {
|
|
895
|
-
data: T;
|
|
896
|
-
status: number;
|
|
897
|
-
statusText: string;
|
|
898
|
-
headers: any;
|
|
899
|
-
request?: any;
|
|
900
|
-
};
|
|
901
|
-
type RequestOptions$7<_TResponse = any, Data = any> = {
|
|
902
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
903
|
-
url: string;
|
|
904
|
-
data?: Data;
|
|
905
|
-
params?: URLSearchParams;
|
|
906
|
-
} & APIMetadata$7;
|
|
907
|
-
type APIMetadata$7 = {
|
|
908
|
-
methodFqn?: string;
|
|
909
|
-
entityFqdn?: string;
|
|
910
|
-
packageName?: string;
|
|
911
|
-
};
|
|
912
|
-
type BuildRESTFunction$7<T extends RESTFunctionDescriptor$7> = T extends RESTFunctionDescriptor$7<infer U> ? U : never;
|
|
913
|
-
|
|
914
|
-
declare global {
|
|
915
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
916
|
-
interface SymbolConstructor {
|
|
917
|
-
readonly observable: symbol;
|
|
918
|
-
}
|
|
919
|
-
}
|
|
920
|
-
|
|
921
1271
|
interface Member$1 {
|
|
922
1272
|
/**
|
|
923
1273
|
* Member ID.
|
|
@@ -1685,7 +2035,7 @@ interface BlockOptions extends BlockMemberRequestMemberIdentifierOneOf {
|
|
|
1685
2035
|
source?: Source;
|
|
1686
2036
|
}
|
|
1687
2037
|
|
|
1688
|
-
declare function register$1(httpClient: HttpClient
|
|
2038
|
+
declare function register$1(httpClient: HttpClient): RegisterSignature;
|
|
1689
2039
|
interface RegisterSignature {
|
|
1690
2040
|
/**
|
|
1691
2041
|
* Registers a new site member.
|
|
@@ -1701,7 +2051,7 @@ interface RegisterSignature {
|
|
|
1701
2051
|
*/
|
|
1702
2052
|
(email: string, password: string, options?: RegisterOptions | undefined): Promise<RegisterResponse & RegisterResponseNonNullableFields>;
|
|
1703
2053
|
}
|
|
1704
|
-
declare function login$1(httpClient: HttpClient
|
|
2054
|
+
declare function login$1(httpClient: HttpClient): LoginSignature;
|
|
1705
2055
|
interface LoginSignature {
|
|
1706
2056
|
/**
|
|
1707
2057
|
* Logs in a registered member with an email and password.
|
|
@@ -1716,7 +2066,7 @@ interface LoginSignature {
|
|
|
1716
2066
|
*/
|
|
1717
2067
|
(email: string, password: string, options?: LoginOptions | undefined): Promise<LoginResponse & LoginResponseNonNullableFields>;
|
|
1718
2068
|
}
|
|
1719
|
-
declare function sendSetPasswordEmail$1(httpClient: HttpClient
|
|
2069
|
+
declare function sendSetPasswordEmail$1(httpClient: HttpClient): SendSetPasswordEmailSignature;
|
|
1720
2070
|
interface SendSetPasswordEmailSignature {
|
|
1721
2071
|
/**
|
|
1722
2072
|
* Sends a site member an email with a link to set their password.
|
|
@@ -1729,7 +2079,7 @@ interface SendSetPasswordEmailSignature {
|
|
|
1729
2079
|
*/
|
|
1730
2080
|
(email: string, options?: SendSetPasswordEmailOptions | undefined): Promise<SendSetPasswordEmailResponse & SendSetPasswordEmailResponseNonNullableFields>;
|
|
1731
2081
|
}
|
|
1732
|
-
declare function changeLoginEmail$1(httpClient: HttpClient
|
|
2082
|
+
declare function changeLoginEmail$1(httpClient: HttpClient): ChangeLoginEmailSignature;
|
|
1733
2083
|
interface ChangeLoginEmailSignature {
|
|
1734
2084
|
/**
|
|
1735
2085
|
* Changes a member's login email address.
|
|
@@ -1745,7 +2095,7 @@ interface ChangeLoginEmailSignature {
|
|
|
1745
2095
|
*/
|
|
1746
2096
|
(_id: string, newEmail: string, options?: ChangeLoginEmailOptions | undefined): Promise<ChangeLoginEmailResponse & ChangeLoginEmailResponseNonNullableFields>;
|
|
1747
2097
|
}
|
|
1748
|
-
declare function approve$1(httpClient: HttpClient
|
|
2098
|
+
declare function approve$1(httpClient: HttpClient): ApproveSignature;
|
|
1749
2099
|
interface ApproveSignature {
|
|
1750
2100
|
/**
|
|
1751
2101
|
* Approves a pending member using an ID, email address or approval token.
|
|
@@ -1763,7 +2113,7 @@ interface ApproveSignature {
|
|
|
1763
2113
|
*/
|
|
1764
2114
|
(options?: ApproveOptions | undefined): Promise<ApproveMemberResponse$1>;
|
|
1765
2115
|
}
|
|
1766
|
-
declare function block$1(httpClient: HttpClient
|
|
2116
|
+
declare function block$1(httpClient: HttpClient): BlockSignature;
|
|
1767
2117
|
interface BlockSignature {
|
|
1768
2118
|
/**
|
|
1769
2119
|
* Blocks a member from logging in to the site using an ID or email address.
|
|
@@ -1774,12 +2124,12 @@ interface BlockSignature {
|
|
|
1774
2124
|
(options?: BlockOptions | undefined): Promise<void>;
|
|
1775
2125
|
}
|
|
1776
2126
|
|
|
1777
|
-
declare const register: BuildRESTFunction
|
|
1778
|
-
declare const login: BuildRESTFunction
|
|
1779
|
-
declare const sendSetPasswordEmail: BuildRESTFunction
|
|
1780
|
-
declare const changeLoginEmail: BuildRESTFunction
|
|
1781
|
-
declare const approve: BuildRESTFunction
|
|
1782
|
-
declare const block: BuildRESTFunction
|
|
2127
|
+
declare const register: MaybeContext<BuildRESTFunction<typeof register$1> & typeof register$1>;
|
|
2128
|
+
declare const login: MaybeContext<BuildRESTFunction<typeof login$1> & typeof login$1>;
|
|
2129
|
+
declare const sendSetPasswordEmail: MaybeContext<BuildRESTFunction<typeof sendSetPasswordEmail$1> & typeof sendSetPasswordEmail$1>;
|
|
2130
|
+
declare const changeLoginEmail: MaybeContext<BuildRESTFunction<typeof changeLoginEmail$1> & typeof changeLoginEmail$1>;
|
|
2131
|
+
declare const approve: MaybeContext<BuildRESTFunction<typeof approve$1> & typeof approve$1>;
|
|
2132
|
+
declare const block: MaybeContext<BuildRESTFunction<typeof block$1> & typeof block$1>;
|
|
1783
2133
|
|
|
1784
2134
|
type context$7_AppleLogin = AppleLogin;
|
|
1785
2135
|
type context$7_ApproveMemberRequestMemberIdentifierOneOf = ApproveMemberRequestMemberIdentifierOneOf;
|
|
@@ -1855,40 +2205,6 @@ declare namespace context$7 {
|
|
|
1855
2205
|
export { type Address$1 as Address, type context$7_AppleLogin as AppleLogin, type ApproveMemberRequest$1 as ApproveMemberRequest, type context$7_ApproveMemberRequestMemberIdentifierOneOf as ApproveMemberRequestMemberIdentifierOneOf, type ApproveMemberResponse$1 as ApproveMemberResponse, type context$7_ApproveOptions as ApproveOptions, type context$7_BatchGetMembersRequest as BatchGetMembersRequest, type context$7_BatchGetMembersResponse as BatchGetMembersResponse, type BlockMemberRequest$2 as BlockMemberRequest, type context$7_BlockMemberRequestMemberIdentifierOneOf as BlockMemberRequestMemberIdentifierOneOf, type BlockMemberResponse$2 as BlockMemberResponse, type context$7_BlockOptions as BlockOptions, type context$7_ChangeLoginEmailOptions as ChangeLoginEmailOptions, type context$7_ChangeLoginEmailRequest as ChangeLoginEmailRequest, type context$7_ChangeLoginEmailResponse as ChangeLoginEmailResponse, type context$7_ChangeLoginEmailResponseNonNullableFields as ChangeLoginEmailResponseNonNullableFields, type CustomField$2 as CustomField, type context$7_CustomFieldValueOneOf as CustomFieldValueOneOf, type DeleteMemberRequest$1 as DeleteMemberRequest, type DeleteMemberResponse$1 as DeleteMemberResponse, type context$7_DialogData as DialogData, type context$7_EmailVerification as EmailVerification, type context$7_EmailVerificationFailed as EmailVerificationFailed, type context$7_EmailVerificationRequired as EmailVerificationRequired, type context$7_FacebookLogin as FacebookLogin, type context$7_FilterBy as FilterBy, type context$7_GetAuthorizedPagesRequest as GetAuthorizedPagesRequest, type context$7_GetAuthorizedPagesResponse as GetAuthorizedPagesResponse, type context$7_GetCurrentMemberRequest as GetCurrentMemberRequest, type GetMemberRequest$1 as GetMemberRequest, type GetMemberResponse$1 as GetMemberResponse, type context$7_GetMemberRoleRequest as GetMemberRoleRequest, type context$7_GetMemberRoleResponse as GetMemberRoleResponse, type context$7_GetMemberRolesRequest as GetMemberRolesRequest, type context$7_GetMemberRolesResponse as GetMemberRolesResponse, type context$7_GetResetPasswordLinkRequest as GetResetPasswordLinkRequest, type context$7_GetResetPasswordLinkResponse as GetResetPasswordLinkResponse, type context$7_GetUserMembershipsRequest as GetUserMembershipsRequest, type context$7_GetUserMembershipsResponse as GetUserMembershipsResponse, type context$7_GoogleLogin as GoogleLogin, type context$7_Group as Group, type ListMembersRequest$1 as ListMembersRequest, type ListMembersResponse$1 as ListMembersResponse, type context$7_LoginOptions as LoginOptions, type context$7_LoginRequest as LoginRequest, type context$7_LoginResponse as LoginResponse, type context$7_LoginResponseNonNullableFields as LoginResponseNonNullableFields, type context$7_MakeMemberOfflineRequest as MakeMemberOfflineRequest, type context$7_MakeMemberOfflineResponse as MakeMemberOfflineResponse, type Member$1 as Member, type context$7_MemberContactInfo as MemberContactInfo, type MemberRole$1 as MemberRole, type context$7_PaginationResponse as PaginationResponse, type Paging$3 as Paging, type QueryMembersRequest$1 as QueryMembersRequest, type QueryMembersResponse$1 as QueryMembersResponse, type context$7_RegisterOptions as RegisterOptions, type context$7_RegisterRequest as RegisterRequest, type context$7_RegisterResponse as RegisterResponse, type context$7_RegisterResponseNonNullableFields as RegisterResponseNonNullableFields, type context$7_ResetPasswordRequest as ResetPasswordRequest, type context$7_ResetPasswordResponse as ResetPasswordResponse, Role$1 as Role, type context$7_SearchBy as SearchBy, type context$7_SearchRequest as SearchRequest, type context$7_SearchResponse as SearchResponse, type context$7_SendSetPasswordEmailOptions as SendSetPasswordEmailOptions, type context$7_SendSetPasswordEmailRequest as SendSetPasswordEmailRequest, type context$7_SendSetPasswordEmailResponse as SendSetPasswordEmailResponse, type context$7_SendSetPasswordEmailResponseNonNullableFields as SendSetPasswordEmailResponseNonNullableFields, type context$7_Session as Session, context$7_SiteMemberPrivacyStatus as SiteMemberPrivacyStatus, context$7_SiteMemberStatus as SiteMemberStatus, type context$7_SocialLoginRequest as SocialLoginRequest, type context$7_SocialLoginRequestLoginOneOf as SocialLoginRequestLoginOneOf, Sorting$3 as Sorting, context$7_Source as Source, type UpdateMemberRequest$1 as UpdateMemberRequest, type UpdateMemberResponse$1 as UpdateMemberResponse, type context$7_UserMembership as UserMembership, context$7_VerificationFailureReason as VerificationFailureReason, context$7_approve as approve, context$7_block as block, context$7_changeLoginEmail as changeLoginEmail, context$7_login as login, context$7_register as register, context$7_sendSetPasswordEmail as sendSetPasswordEmail };
|
|
1856
2206
|
}
|
|
1857
2207
|
|
|
1858
|
-
type RESTFunctionDescriptor$6<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$6) => T;
|
|
1859
|
-
interface HttpClient$6 {
|
|
1860
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$6<TResponse, TData>): Promise<HttpResponse$6<TResponse>>;
|
|
1861
|
-
fetchWithAuth: typeof fetch;
|
|
1862
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
1863
|
-
}
|
|
1864
|
-
type RequestOptionsFactory$6<TResponse = any, TData = any> = (context: any) => RequestOptions$6<TResponse, TData>;
|
|
1865
|
-
type HttpResponse$6<T = any> = {
|
|
1866
|
-
data: T;
|
|
1867
|
-
status: number;
|
|
1868
|
-
statusText: string;
|
|
1869
|
-
headers: any;
|
|
1870
|
-
request?: any;
|
|
1871
|
-
};
|
|
1872
|
-
type RequestOptions$6<_TResponse = any, Data = any> = {
|
|
1873
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1874
|
-
url: string;
|
|
1875
|
-
data?: Data;
|
|
1876
|
-
params?: URLSearchParams;
|
|
1877
|
-
} & APIMetadata$6;
|
|
1878
|
-
type APIMetadata$6 = {
|
|
1879
|
-
methodFqn?: string;
|
|
1880
|
-
entityFqdn?: string;
|
|
1881
|
-
packageName?: string;
|
|
1882
|
-
};
|
|
1883
|
-
type BuildRESTFunction$6<T extends RESTFunctionDescriptor$6> = T extends RESTFunctionDescriptor$6<infer U> ? U : never;
|
|
1884
|
-
|
|
1885
|
-
declare global {
|
|
1886
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1887
|
-
interface SymbolConstructor {
|
|
1888
|
-
readonly observable: symbol;
|
|
1889
|
-
}
|
|
1890
|
-
}
|
|
1891
|
-
|
|
1892
2208
|
interface UserMember {
|
|
1893
2209
|
/**
|
|
1894
2210
|
* Profile id.
|
|
@@ -2170,7 +2486,10 @@ interface MetaSiteSpecialEvent$3 extends MetaSiteSpecialEventPayloadOneOf$3 {
|
|
|
2170
2486
|
version?: string;
|
|
2171
2487
|
/** A timestamp of the event. */
|
|
2172
2488
|
timestamp?: string;
|
|
2173
|
-
/**
|
|
2489
|
+
/**
|
|
2490
|
+
* TODO(meta-site): Change validation once validations are disabled for consumers
|
|
2491
|
+
* More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659
|
|
2492
|
+
*/
|
|
2174
2493
|
assets?: Asset$3[];
|
|
2175
2494
|
}
|
|
2176
2495
|
/** @oneof */
|
|
@@ -2486,7 +2805,7 @@ interface UserMembersQueryBuilder {
|
|
|
2486
2805
|
find: () => Promise<UserMembersQueryResult>;
|
|
2487
2806
|
}
|
|
2488
2807
|
|
|
2489
|
-
declare function queryUserMembers$1(httpClient: HttpClient
|
|
2808
|
+
declare function queryUserMembers$1(httpClient: HttpClient): QueryUserMembersSignature;
|
|
2490
2809
|
interface QueryUserMembersSignature {
|
|
2491
2810
|
/**
|
|
2492
2811
|
* Retrieves a list of user members, based on provided filters, sorting and paging.
|
|
@@ -2494,7 +2813,7 @@ interface QueryUserMembersSignature {
|
|
|
2494
2813
|
(): UserMembersQueryBuilder;
|
|
2495
2814
|
}
|
|
2496
2815
|
|
|
2497
|
-
declare const queryUserMembers: BuildRESTFunction
|
|
2816
|
+
declare const queryUserMembers: MaybeContext<BuildRESTFunction<typeof queryUserMembers$1> & typeof queryUserMembers$1>;
|
|
2498
2817
|
|
|
2499
2818
|
type context$6_CursorQuery = CursorQuery;
|
|
2500
2819
|
type context$6_CursorQueryPagingMethodOneOf = CursorQueryPagingMethodOneOf;
|
|
@@ -2509,40 +2828,6 @@ declare namespace context$6 {
|
|
|
2509
2828
|
export { type ActionEvent$3 as ActionEvent, ActivityStatusStatus$1 as ActivityStatusStatus, type Asset$3 as Asset, type CursorPaging$2 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type context$6_CursorQuery as CursorQuery, type context$6_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type Cursors$2 as Cursors, type DeleteContext$3 as DeleteContext, DeleteStatus$3 as DeleteStatus, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type Empty$5 as Empty, type EntityCreatedEvent$3 as EntityCreatedEvent, type EntityDeletedEvent$3 as EntityDeletedEvent, type EntityUpdatedEvent$3 as EntityUpdatedEvent, type Image$1 as Image, type MetaSiteSpecialEvent$3 as MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf$3 as MetaSiteSpecialEventPayloadOneOf, Namespace$3 as Namespace, type NamespaceChanged$3 as NamespaceChanged, PrivacyStatusStatus$1 as PrivacyStatusStatus, type context$6_QueryUserMembersRequest as QueryUserMembersRequest, type context$6_QueryUserMembersResponse as QueryUserMembersResponse, type context$6_QueryUserMembersResponseNonNullableFields as QueryUserMembersResponseNonNullableFields, type RestoreInfo$2 as RestoreInfo, type ServiceProvisioned$3 as ServiceProvisioned, type ServiceRemoved$3 as ServiceRemoved, type SiteCreated$3 as SiteCreated, SiteCreatedContext$3 as SiteCreatedContext, type SiteDeleted$3 as SiteDeleted, type SiteHardDeleted$3 as SiteHardDeleted, type SiteMarkedAsTemplate$3 as SiteMarkedAsTemplate, type SiteMarkedAsWixSite$3 as SiteMarkedAsWixSite, type SitePublished$3 as SitePublished, type SiteRenamed$3 as SiteRenamed, type SiteTransferred$3 as SiteTransferred, type SiteUndeleted$3 as SiteUndeleted, type SiteUnpublished$3 as SiteUnpublished, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, State$3 as State, Status$1 as Status, type StudioAssigned$3 as StudioAssigned, type StudioUnassigned$3 as StudioUnassigned, type context$6_UserMember as UserMember, type context$6_UserMembersQueryBuilder as UserMembersQueryBuilder, type context$6_UserMembersQueryResult as UserMembersQueryResult, context$6_queryUserMembers as queryUserMembers };
|
|
2510
2829
|
}
|
|
2511
2830
|
|
|
2512
|
-
type RESTFunctionDescriptor$5<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$5) => T;
|
|
2513
|
-
interface HttpClient$5 {
|
|
2514
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$5<TResponse, TData>): Promise<HttpResponse$5<TResponse>>;
|
|
2515
|
-
fetchWithAuth: typeof fetch;
|
|
2516
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
2517
|
-
}
|
|
2518
|
-
type RequestOptionsFactory$5<TResponse = any, TData = any> = (context: any) => RequestOptions$5<TResponse, TData>;
|
|
2519
|
-
type HttpResponse$5<T = any> = {
|
|
2520
|
-
data: T;
|
|
2521
|
-
status: number;
|
|
2522
|
-
statusText: string;
|
|
2523
|
-
headers: any;
|
|
2524
|
-
request?: any;
|
|
2525
|
-
};
|
|
2526
|
-
type RequestOptions$5<_TResponse = any, Data = any> = {
|
|
2527
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2528
|
-
url: string;
|
|
2529
|
-
data?: Data;
|
|
2530
|
-
params?: URLSearchParams;
|
|
2531
|
-
} & APIMetadata$5;
|
|
2532
|
-
type APIMetadata$5 = {
|
|
2533
|
-
methodFqn?: string;
|
|
2534
|
-
entityFqdn?: string;
|
|
2535
|
-
packageName?: string;
|
|
2536
|
-
};
|
|
2537
|
-
type BuildRESTFunction$5<T extends RESTFunctionDescriptor$5> = T extends RESTFunctionDescriptor$5<infer U> ? U : never;
|
|
2538
|
-
|
|
2539
|
-
declare global {
|
|
2540
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2541
|
-
interface SymbolConstructor {
|
|
2542
|
-
readonly observable: symbol;
|
|
2543
|
-
}
|
|
2544
|
-
}
|
|
2545
|
-
|
|
2546
2831
|
/** Custom field */
|
|
2547
2832
|
interface CustomField$1 {
|
|
2548
2833
|
/**
|
|
@@ -3202,7 +3487,7 @@ interface UpdateCustomFieldsOrderOptions {
|
|
|
3202
3487
|
section?: Section;
|
|
3203
3488
|
}
|
|
3204
3489
|
|
|
3205
|
-
declare function createCustomField$1(httpClient: HttpClient
|
|
3490
|
+
declare function createCustomField$1(httpClient: HttpClient): CreateCustomFieldSignature;
|
|
3206
3491
|
interface CreateCustomFieldSignature {
|
|
3207
3492
|
/**
|
|
3208
3493
|
* Creates a custom field.
|
|
@@ -3211,7 +3496,7 @@ interface CreateCustomFieldSignature {
|
|
|
3211
3496
|
*/
|
|
3212
3497
|
(field: CustomField$1): Promise<CustomField$1 & CustomFieldNonNullableFields>;
|
|
3213
3498
|
}
|
|
3214
|
-
declare function getCustomField$1(httpClient: HttpClient
|
|
3499
|
+
declare function getCustomField$1(httpClient: HttpClient): GetCustomFieldSignature;
|
|
3215
3500
|
interface GetCustomFieldSignature {
|
|
3216
3501
|
/**
|
|
3217
3502
|
* Retrieves a custom field by id.
|
|
@@ -3219,7 +3504,7 @@ interface GetCustomFieldSignature {
|
|
|
3219
3504
|
*/
|
|
3220
3505
|
(_id: string | null): Promise<GetCustomFieldResponse & GetCustomFieldResponseNonNullableFields>;
|
|
3221
3506
|
}
|
|
3222
|
-
declare function listCustomFields$1(httpClient: HttpClient
|
|
3507
|
+
declare function listCustomFields$1(httpClient: HttpClient): ListCustomFieldsSignature;
|
|
3223
3508
|
interface ListCustomFieldsSignature {
|
|
3224
3509
|
/**
|
|
3225
3510
|
* Returns ordered custom fields, given the provided paging.
|
|
@@ -3234,7 +3519,7 @@ interface ListCustomFieldsSignature {
|
|
|
3234
3519
|
*/
|
|
3235
3520
|
(options?: ListCustomFieldsOptions | undefined): Promise<ListCustomFieldsResponse & ListCustomFieldsResponseNonNullableFields>;
|
|
3236
3521
|
}
|
|
3237
|
-
declare function updateCustomField$1(httpClient: HttpClient
|
|
3522
|
+
declare function updateCustomField$1(httpClient: HttpClient): UpdateCustomFieldSignature;
|
|
3238
3523
|
interface UpdateCustomFieldSignature {
|
|
3239
3524
|
/**
|
|
3240
3525
|
* Updates a custom field.
|
|
@@ -3247,7 +3532,7 @@ interface UpdateCustomFieldSignature {
|
|
|
3247
3532
|
*/
|
|
3248
3533
|
(_id: string | null, field: UpdateCustomField): Promise<CustomField$1 & CustomFieldNonNullableFields>;
|
|
3249
3534
|
}
|
|
3250
|
-
declare function deleteCustomField$1(httpClient: HttpClient
|
|
3535
|
+
declare function deleteCustomField$1(httpClient: HttpClient): DeleteCustomFieldSignature;
|
|
3251
3536
|
interface DeleteCustomFieldSignature {
|
|
3252
3537
|
/**
|
|
3253
3538
|
* Deletes a custom field.
|
|
@@ -3258,7 +3543,7 @@ interface DeleteCustomFieldSignature {
|
|
|
3258
3543
|
*/
|
|
3259
3544
|
(_id: string | null, revision: string | null): Promise<void>;
|
|
3260
3545
|
}
|
|
3261
|
-
declare function hideCustomField$1(httpClient: HttpClient
|
|
3546
|
+
declare function hideCustomField$1(httpClient: HttpClient): HideCustomFieldSignature;
|
|
3262
3547
|
interface HideCustomFieldSignature {
|
|
3263
3548
|
/**
|
|
3264
3549
|
* Hides a custom field.
|
|
@@ -3271,7 +3556,7 @@ interface HideCustomFieldSignature {
|
|
|
3271
3556
|
*/
|
|
3272
3557
|
(_id: string | null, revision: string | null): Promise<void>;
|
|
3273
3558
|
}
|
|
3274
|
-
declare function updateCustomFieldsOrder$1(httpClient: HttpClient
|
|
3559
|
+
declare function updateCustomFieldsOrder$1(httpClient: HttpClient): UpdateCustomFieldsOrderSignature;
|
|
3275
3560
|
interface UpdateCustomFieldsOrderSignature {
|
|
3276
3561
|
/**
|
|
3277
3562
|
* Updates custom fields order within a section.
|
|
@@ -3280,13 +3565,13 @@ interface UpdateCustomFieldsOrderSignature {
|
|
|
3280
3565
|
(fieldIds: string[], options?: UpdateCustomFieldsOrderOptions | undefined): Promise<UpdateCustomFieldsOrderResponse & UpdateCustomFieldsOrderResponseNonNullableFields>;
|
|
3281
3566
|
}
|
|
3282
3567
|
|
|
3283
|
-
declare const createCustomField: BuildRESTFunction
|
|
3284
|
-
declare const getCustomField: BuildRESTFunction
|
|
3285
|
-
declare const listCustomFields: BuildRESTFunction
|
|
3286
|
-
declare const updateCustomField: BuildRESTFunction
|
|
3287
|
-
declare const deleteCustomField: BuildRESTFunction
|
|
3288
|
-
declare const hideCustomField: BuildRESTFunction
|
|
3289
|
-
declare const updateCustomFieldsOrder: BuildRESTFunction
|
|
3568
|
+
declare const createCustomField: MaybeContext<BuildRESTFunction<typeof createCustomField$1> & typeof createCustomField$1>;
|
|
3569
|
+
declare const getCustomField: MaybeContext<BuildRESTFunction<typeof getCustomField$1> & typeof getCustomField$1>;
|
|
3570
|
+
declare const listCustomFields: MaybeContext<BuildRESTFunction<typeof listCustomFields$1> & typeof listCustomFields$1>;
|
|
3571
|
+
declare const updateCustomField: MaybeContext<BuildRESTFunction<typeof updateCustomField$1> & typeof updateCustomField$1>;
|
|
3572
|
+
declare const deleteCustomField: MaybeContext<BuildRESTFunction<typeof deleteCustomField$1> & typeof deleteCustomField$1>;
|
|
3573
|
+
declare const hideCustomField: MaybeContext<BuildRESTFunction<typeof hideCustomField$1> & typeof hideCustomField$1>;
|
|
3574
|
+
declare const updateCustomFieldsOrder: MaybeContext<BuildRESTFunction<typeof updateCustomFieldsOrder$1> & typeof updateCustomFieldsOrder$1>;
|
|
3290
3575
|
|
|
3291
3576
|
type context$5_AppliesTo = AppliesTo;
|
|
3292
3577
|
declare const context$5_AppliesTo: typeof AppliesTo;
|
|
@@ -3331,40 +3616,6 @@ declare namespace context$5 {
|
|
|
3331
3616
|
export { type ActionEvent$2 as ActionEvent, context$5_AppliesTo as AppliesTo, type Asset$2 as Asset, type context$5_CreateCustomFieldRequest as CreateCustomFieldRequest, type context$5_CreateCustomFieldResponse as CreateCustomFieldResponse, type context$5_CreateCustomFieldResponseNonNullableFields as CreateCustomFieldResponseNonNullableFields, type CustomField$1 as CustomField, type context$5_CustomFieldNonNullableFields as CustomFieldNonNullableFields, type context$5_DefaultPrivacyChanged as DefaultPrivacyChanged, type DeleteContext$2 as DeleteContext, type context$5_DeleteCustomFieldRequest as DeleteCustomFieldRequest, type context$5_DeleteCustomFieldResponse as DeleteCustomFieldResponse, DeleteStatus$2 as DeleteStatus, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type Empty$4 as Empty, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type context$5_GetCustomFieldRequest as GetCustomFieldRequest, type context$5_GetCustomFieldResponse as GetCustomFieldResponse, type context$5_GetCustomFieldResponseNonNullableFields as GetCustomFieldResponseNonNullableFields, type context$5_HideCustomFieldRequest as HideCustomFieldRequest, type context$5_HideCustomFieldResponse as HideCustomFieldResponse, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type context$5_IncorrectFieldTypeData as IncorrectFieldTypeData, type context$5_IncorrectPrivacyData as IncorrectPrivacyData, type context$5_InvalidSocialTypeData as InvalidSocialTypeData, type context$5_ListCustomFieldsOptions as ListCustomFieldsOptions, type context$5_ListCustomFieldsRequest as ListCustomFieldsRequest, type context$5_ListCustomFieldsResponse as ListCustomFieldsResponse, type context$5_ListCustomFieldsResponseNonNullableFields as ListCustomFieldsResponseNonNullableFields, type MessageEnvelope$2 as MessageEnvelope, type MetaSiteSpecialEvent$2 as MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf$2 as MetaSiteSpecialEventPayloadOneOf, Namespace$2 as Namespace, type NamespaceChanged$2 as NamespaceChanged, Origin$1 as Origin, type Paging$2 as Paging, type PagingMetadata$2 as PagingMetadata, Privacy$1 as Privacy, type context$5_ReservedFieldNameNonEditable as ReservedFieldNameNonEditable, type RestoreInfo$1 as RestoreInfo, context$5_Section as Section, type ServiceProvisioned$2 as ServiceProvisioned, type ServiceRemoved$2 as ServiceRemoved, type SiteCreated$2 as SiteCreated, SiteCreatedContext$2 as SiteCreatedContext, type SiteDeleted$2 as SiteDeleted, type SiteHardDeleted$2 as SiteHardDeleted, type SiteMarkedAsTemplate$2 as SiteMarkedAsTemplate, type SiteMarkedAsWixSite$2 as SiteMarkedAsWixSite, type SitePublished$2 as SitePublished, type SiteRenamed$2 as SiteRenamed, type SiteTransferred$2 as SiteTransferred, type SiteUndeleted$2 as SiteUndeleted, type SiteUnpublished$2 as SiteUnpublished, SocialTypeType$1 as SocialTypeType, State$2 as State, type StudioAssigned$2 as StudioAssigned, type StudioUnassigned$2 as StudioUnassigned, Type$1 as Type, type context$5_UpdateCustomField as UpdateCustomField, type context$5_UpdateCustomFieldRequest as UpdateCustomFieldRequest, type context$5_UpdateCustomFieldResponse as UpdateCustomFieldResponse, type context$5_UpdateCustomFieldResponseNonNullableFields as UpdateCustomFieldResponseNonNullableFields, type context$5_UpdateCustomFieldsOrderOptions as UpdateCustomFieldsOrderOptions, type context$5_UpdateCustomFieldsOrderRequest as UpdateCustomFieldsOrderRequest, type context$5_UpdateCustomFieldsOrderResponse as UpdateCustomFieldsOrderResponse, type context$5_UpdateCustomFieldsOrderResponseNonNullableFields as UpdateCustomFieldsOrderResponseNonNullableFields, WebhookIdentityType$2 as WebhookIdentityType, context$5_createCustomField as createCustomField, context$5_deleteCustomField as deleteCustomField, context$5_getCustomField as getCustomField, context$5_hideCustomField as hideCustomField, context$5_listCustomFields as listCustomFields, context$5_updateCustomField as updateCustomField, context$5_updateCustomFieldsOrder as updateCustomFieldsOrder };
|
|
3332
3617
|
}
|
|
3333
3618
|
|
|
3334
|
-
type RESTFunctionDescriptor$4<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$4) => T;
|
|
3335
|
-
interface HttpClient$4 {
|
|
3336
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$4<TResponse, TData>): Promise<HttpResponse$4<TResponse>>;
|
|
3337
|
-
fetchWithAuth: typeof fetch;
|
|
3338
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
3339
|
-
}
|
|
3340
|
-
type RequestOptionsFactory$4<TResponse = any, TData = any> = (context: any) => RequestOptions$4<TResponse, TData>;
|
|
3341
|
-
type HttpResponse$4<T = any> = {
|
|
3342
|
-
data: T;
|
|
3343
|
-
status: number;
|
|
3344
|
-
statusText: string;
|
|
3345
|
-
headers: any;
|
|
3346
|
-
request?: any;
|
|
3347
|
-
};
|
|
3348
|
-
type RequestOptions$4<_TResponse = any, Data = any> = {
|
|
3349
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
3350
|
-
url: string;
|
|
3351
|
-
data?: Data;
|
|
3352
|
-
params?: URLSearchParams;
|
|
3353
|
-
} & APIMetadata$4;
|
|
3354
|
-
type APIMetadata$4 = {
|
|
3355
|
-
methodFqn?: string;
|
|
3356
|
-
entityFqdn?: string;
|
|
3357
|
-
packageName?: string;
|
|
3358
|
-
};
|
|
3359
|
-
type BuildRESTFunction$4<T extends RESTFunctionDescriptor$4> = T extends RESTFunctionDescriptor$4<infer U> ? U : never;
|
|
3360
|
-
|
|
3361
|
-
declare global {
|
|
3362
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3363
|
-
interface SymbolConstructor {
|
|
3364
|
-
readonly observable: symbol;
|
|
3365
|
-
}
|
|
3366
|
-
}
|
|
3367
|
-
|
|
3368
3619
|
interface CustomFieldSuggestion {
|
|
3369
3620
|
/** Human-readable name shown in the business manager and live site. */
|
|
3370
3621
|
name?: string | null;
|
|
@@ -3486,14 +3737,14 @@ interface QueryCustomFieldSuggestionsOptions {
|
|
|
3486
3737
|
query?: Query$2;
|
|
3487
3738
|
}
|
|
3488
3739
|
|
|
3489
|
-
declare function listCustomFieldSuggestions$1(httpClient: HttpClient
|
|
3740
|
+
declare function listCustomFieldSuggestions$1(httpClient: HttpClient): ListCustomFieldSuggestionsSignature;
|
|
3490
3741
|
interface ListCustomFieldSuggestionsSignature {
|
|
3491
3742
|
/**
|
|
3492
3743
|
* Returns suggestions of custom fields to add.
|
|
3493
3744
|
*/
|
|
3494
3745
|
(options?: ListCustomFieldSuggestionsOptions | undefined): Promise<ListCustomFieldSuggestionsResponse & ListCustomFieldSuggestionsResponseNonNullableFields>;
|
|
3495
3746
|
}
|
|
3496
|
-
declare function queryCustomFieldSuggestions$1(httpClient: HttpClient
|
|
3747
|
+
declare function queryCustomFieldSuggestions$1(httpClient: HttpClient): QueryCustomFieldSuggestionsSignature;
|
|
3497
3748
|
interface QueryCustomFieldSuggestionsSignature {
|
|
3498
3749
|
/**
|
|
3499
3750
|
* Returns suggestions of custom fields to add by specified type.
|
|
@@ -3501,8 +3752,8 @@ interface QueryCustomFieldSuggestionsSignature {
|
|
|
3501
3752
|
(options?: QueryCustomFieldSuggestionsOptions | undefined): Promise<QueryCustomFieldSuggestionsResponse & QueryCustomFieldSuggestionsResponseNonNullableFields>;
|
|
3502
3753
|
}
|
|
3503
3754
|
|
|
3504
|
-
declare const listCustomFieldSuggestions: BuildRESTFunction
|
|
3505
|
-
declare const queryCustomFieldSuggestions: BuildRESTFunction
|
|
3755
|
+
declare const listCustomFieldSuggestions: MaybeContext<BuildRESTFunction<typeof listCustomFieldSuggestions$1> & typeof listCustomFieldSuggestions$1>;
|
|
3756
|
+
declare const queryCustomFieldSuggestions: MaybeContext<BuildRESTFunction<typeof queryCustomFieldSuggestions$1> & typeof queryCustomFieldSuggestions$1>;
|
|
3506
3757
|
|
|
3507
3758
|
type context$4_CustomFieldSuggestion = CustomFieldSuggestion;
|
|
3508
3759
|
type context$4_ListCustomFieldSuggestionsOptions = ListCustomFieldSuggestionsOptions;
|
|
@@ -3527,50 +3778,6 @@ declare namespace context$4 {
|
|
|
3527
3778
|
export { type context$4_CustomFieldSuggestion as CustomFieldSuggestion, type context$4_ListCustomFieldSuggestionsOptions as ListCustomFieldSuggestionsOptions, type context$4_ListCustomFieldSuggestionsRequest as ListCustomFieldSuggestionsRequest, type context$4_ListCustomFieldSuggestionsResponse as ListCustomFieldSuggestionsResponse, type context$4_ListCustomFieldSuggestionsResponseNonNullableFields as ListCustomFieldSuggestionsResponseNonNullableFields, context$4_Origin as Origin, type Paging$1 as Paging, type PagingMetadata$1 as PagingMetadata, context$4_Privacy as Privacy, type Query$2 as Query, type context$4_QueryCustomFieldSuggestionsOptions as QueryCustomFieldSuggestionsOptions, type context$4_QueryCustomFieldSuggestionsRequest as QueryCustomFieldSuggestionsRequest, type context$4_QueryCustomFieldSuggestionsResponse as QueryCustomFieldSuggestionsResponse, type context$4_QueryCustomFieldSuggestionsResponseNonNullableFields as QueryCustomFieldSuggestionsResponseNonNullableFields, context$4_SocialTypeType as SocialTypeType, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, context$4_Type as Type, context$4_listCustomFieldSuggestions as listCustomFieldSuggestions, context$4_queryCustomFieldSuggestions as queryCustomFieldSuggestions };
|
|
3528
3779
|
}
|
|
3529
3780
|
|
|
3530
|
-
type RESTFunctionDescriptor$3<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$3) => T;
|
|
3531
|
-
interface HttpClient$3 {
|
|
3532
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
|
|
3533
|
-
fetchWithAuth: typeof fetch;
|
|
3534
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
3535
|
-
}
|
|
3536
|
-
type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
|
|
3537
|
-
type HttpResponse$3<T = any> = {
|
|
3538
|
-
data: T;
|
|
3539
|
-
status: number;
|
|
3540
|
-
statusText: string;
|
|
3541
|
-
headers: any;
|
|
3542
|
-
request?: any;
|
|
3543
|
-
};
|
|
3544
|
-
type RequestOptions$3<_TResponse = any, Data = any> = {
|
|
3545
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
3546
|
-
url: string;
|
|
3547
|
-
data?: Data;
|
|
3548
|
-
params?: URLSearchParams;
|
|
3549
|
-
} & APIMetadata$3;
|
|
3550
|
-
type APIMetadata$3 = {
|
|
3551
|
-
methodFqn?: string;
|
|
3552
|
-
entityFqdn?: string;
|
|
3553
|
-
packageName?: string;
|
|
3554
|
-
};
|
|
3555
|
-
type BuildRESTFunction$3<T extends RESTFunctionDescriptor$3> = T extends RESTFunctionDescriptor$3<infer U> ? U : never;
|
|
3556
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
3557
|
-
__type: 'event-definition';
|
|
3558
|
-
type: Type;
|
|
3559
|
-
isDomainEvent?: boolean;
|
|
3560
|
-
transformations?: (envelope: unknown) => Payload;
|
|
3561
|
-
__payload: Payload;
|
|
3562
|
-
};
|
|
3563
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
3564
|
-
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
3565
|
-
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
3566
|
-
|
|
3567
|
-
declare global {
|
|
3568
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3569
|
-
interface SymbolConstructor {
|
|
3570
|
-
readonly observable: symbol;
|
|
3571
|
-
}
|
|
3572
|
-
}
|
|
3573
|
-
|
|
3574
3781
|
interface Member {
|
|
3575
3782
|
/**
|
|
3576
3783
|
* Member ID.
|
|
@@ -3828,6 +4035,7 @@ interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
|
3828
4035
|
reason?: string | null;
|
|
3829
4036
|
/** Is local DS */
|
|
3830
4037
|
localDc?: boolean;
|
|
4038
|
+
hardPurge?: boolean;
|
|
3831
4039
|
}
|
|
3832
4040
|
/** @oneof */
|
|
3833
4041
|
interface InvalidateCacheGetByOneOf {
|
|
@@ -4399,7 +4607,10 @@ interface MetaSiteSpecialEvent$1 extends MetaSiteSpecialEventPayloadOneOf$1 {
|
|
|
4399
4607
|
version?: string;
|
|
4400
4608
|
/** A timestamp of the event. */
|
|
4401
4609
|
timestamp?: string;
|
|
4402
|
-
/**
|
|
4610
|
+
/**
|
|
4611
|
+
* TODO(meta-site): Change validation once validations are disabled for consumers
|
|
4612
|
+
* More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659
|
|
4613
|
+
*/
|
|
4403
4614
|
assets?: Asset$1[];
|
|
4404
4615
|
}
|
|
4405
4616
|
/** @oneof */
|
|
@@ -5057,7 +5268,7 @@ interface UpdateMember {
|
|
|
5057
5268
|
lastLoginDate?: Date;
|
|
5058
5269
|
}
|
|
5059
5270
|
|
|
5060
|
-
declare function updateCurrentMemberSlug$1(httpClient: HttpClient
|
|
5271
|
+
declare function updateCurrentMemberSlug$1(httpClient: HttpClient): UpdateCurrentMemberSlugSignature;
|
|
5061
5272
|
interface UpdateCurrentMemberSlugSignature {
|
|
5062
5273
|
/**
|
|
5063
5274
|
* Updates the currently logged in member's slug.
|
|
@@ -5071,7 +5282,7 @@ interface UpdateCurrentMemberSlugSignature {
|
|
|
5071
5282
|
*/
|
|
5072
5283
|
(slug: string): Promise<UpdateMySlugResponse & UpdateMySlugResponseNonNullableFields>;
|
|
5073
5284
|
}
|
|
5074
|
-
declare function updateMemberSlug$1(httpClient: HttpClient
|
|
5285
|
+
declare function updateMemberSlug$1(httpClient: HttpClient): UpdateMemberSlugSignature;
|
|
5075
5286
|
interface UpdateMemberSlugSignature {
|
|
5076
5287
|
/**
|
|
5077
5288
|
* Change member slug.
|
|
@@ -5080,7 +5291,7 @@ interface UpdateMemberSlugSignature {
|
|
|
5080
5291
|
*/
|
|
5081
5292
|
(_id: string, slug: string): Promise<UpdateMemberSlugResponse & UpdateMemberSlugResponseNonNullableFields>;
|
|
5082
5293
|
}
|
|
5083
|
-
declare function joinCommunity$1(httpClient: HttpClient
|
|
5294
|
+
declare function joinCommunity$1(httpClient: HttpClient): JoinCommunitySignature;
|
|
5084
5295
|
interface JoinCommunitySignature {
|
|
5085
5296
|
/**
|
|
5086
5297
|
* Joins the currently logged-in member to the site community and sets their profile to public.
|
|
@@ -5097,7 +5308,7 @@ interface JoinCommunitySignature {
|
|
|
5097
5308
|
*/
|
|
5098
5309
|
(): Promise<JoinCommunityResponse & JoinCommunityResponseNonNullableFields>;
|
|
5099
5310
|
}
|
|
5100
|
-
declare function leaveCommunity$1(httpClient: HttpClient
|
|
5311
|
+
declare function leaveCommunity$1(httpClient: HttpClient): LeaveCommunitySignature;
|
|
5101
5312
|
interface LeaveCommunitySignature {
|
|
5102
5313
|
/**
|
|
5103
5314
|
* Removes the currently logged-in member from the site community and sets their profile to private.
|
|
@@ -5117,7 +5328,7 @@ interface LeaveCommunitySignature {
|
|
|
5117
5328
|
*/
|
|
5118
5329
|
(): Promise<LeaveCommunityResponse & LeaveCommunityResponseNonNullableFields>;
|
|
5119
5330
|
}
|
|
5120
|
-
declare function getCurrentMember$1(httpClient: HttpClient
|
|
5331
|
+
declare function getCurrentMember$1(httpClient: HttpClient): GetCurrentMemberSignature;
|
|
5121
5332
|
interface GetCurrentMemberSignature {
|
|
5122
5333
|
/**
|
|
5123
5334
|
* Retrieves the currently logged-in member.
|
|
@@ -5125,7 +5336,7 @@ interface GetCurrentMemberSignature {
|
|
|
5125
5336
|
*/
|
|
5126
5337
|
(options?: GetCurrentMemberOptions | undefined): Promise<GetMyMemberResponse & GetMyMemberResponseNonNullableFields>;
|
|
5127
5338
|
}
|
|
5128
|
-
declare function getMember$1(httpClient: HttpClient
|
|
5339
|
+
declare function getMember$1(httpClient: HttpClient): GetMemberSignature;
|
|
5129
5340
|
interface GetMemberSignature {
|
|
5130
5341
|
/**
|
|
5131
5342
|
* Retrieves a member by ID.
|
|
@@ -5138,7 +5349,7 @@ interface GetMemberSignature {
|
|
|
5138
5349
|
*/
|
|
5139
5350
|
(_id: string, options?: GetMemberOptions | undefined): Promise<Member & MemberNonNullableFields>;
|
|
5140
5351
|
}
|
|
5141
|
-
declare function listMembers$1(httpClient: HttpClient
|
|
5352
|
+
declare function listMembers$1(httpClient: HttpClient): ListMembersSignature;
|
|
5142
5353
|
interface ListMembersSignature {
|
|
5143
5354
|
/**
|
|
5144
5355
|
* Lists site members, given the provided paging and fieldsets.
|
|
@@ -5149,7 +5360,7 @@ interface ListMembersSignature {
|
|
|
5149
5360
|
*/
|
|
5150
5361
|
(options?: ListMembersOptions | undefined): Promise<ListMembersResponse & ListMembersResponseNonNullableFields>;
|
|
5151
5362
|
}
|
|
5152
|
-
declare function queryMembers$1(httpClient: HttpClient
|
|
5363
|
+
declare function queryMembers$1(httpClient: HttpClient): QueryMembersSignature;
|
|
5153
5364
|
interface QueryMembersSignature {
|
|
5154
5365
|
/**
|
|
5155
5366
|
* Retrieves a list of up to 100 members, given the provided filters, fieldsets, sorting and paging, and returns a `MembersQueryBuilder` object.
|
|
@@ -5174,7 +5385,7 @@ interface QueryMembersSignature {
|
|
|
5174
5385
|
*/
|
|
5175
5386
|
(options?: QueryMembersOptions | undefined): MembersQueryBuilder;
|
|
5176
5387
|
}
|
|
5177
|
-
declare function muteMember$1(httpClient: HttpClient
|
|
5388
|
+
declare function muteMember$1(httpClient: HttpClient): MuteMemberSignature;
|
|
5178
5389
|
interface MuteMemberSignature {
|
|
5179
5390
|
/**
|
|
5180
5391
|
* Restricts member's social participation in the community.
|
|
@@ -5190,7 +5401,7 @@ interface MuteMemberSignature {
|
|
|
5190
5401
|
*/
|
|
5191
5402
|
(_id: string): Promise<MuteMemberResponse & MuteMemberResponseNonNullableFields>;
|
|
5192
5403
|
}
|
|
5193
|
-
declare function unmuteMember$1(httpClient: HttpClient
|
|
5404
|
+
declare function unmuteMember$1(httpClient: HttpClient): UnmuteMemberSignature;
|
|
5194
5405
|
interface UnmuteMemberSignature {
|
|
5195
5406
|
/**
|
|
5196
5407
|
* Lifts restrictions of member's social participation in the community
|
|
@@ -5206,14 +5417,14 @@ interface UnmuteMemberSignature {
|
|
|
5206
5417
|
*/
|
|
5207
5418
|
(_id: string): Promise<UnmuteMemberResponse & UnmuteMemberResponseNonNullableFields>;
|
|
5208
5419
|
}
|
|
5209
|
-
declare function approveMember$1(httpClient: HttpClient
|
|
5420
|
+
declare function approveMember$1(httpClient: HttpClient): ApproveMemberSignature;
|
|
5210
5421
|
interface ApproveMemberSignature {
|
|
5211
5422
|
/**
|
|
5212
5423
|
* Approves a pending member, giving them access to members-only pages on the site.
|
|
5213
5424
|
*/
|
|
5214
5425
|
(_id: string): Promise<ApproveMemberResponse & ApproveMemberResponseNonNullableFields>;
|
|
5215
5426
|
}
|
|
5216
|
-
declare function blockMember$3(httpClient: HttpClient
|
|
5427
|
+
declare function blockMember$3(httpClient: HttpClient): BlockMemberSignature$1;
|
|
5217
5428
|
interface BlockMemberSignature$1 {
|
|
5218
5429
|
/**
|
|
5219
5430
|
* Blocks member.
|
|
@@ -5224,7 +5435,7 @@ interface BlockMemberSignature$1 {
|
|
|
5224
5435
|
*/
|
|
5225
5436
|
(_id: string): Promise<BlockMemberResponse$1 & BlockMemberResponseNonNullableFields>;
|
|
5226
5437
|
}
|
|
5227
|
-
declare function disconnectMember$1(httpClient: HttpClient
|
|
5438
|
+
declare function disconnectMember$1(httpClient: HttpClient): DisconnectMemberSignature;
|
|
5228
5439
|
interface DisconnectMemberSignature {
|
|
5229
5440
|
/**
|
|
5230
5441
|
* Disconnects member.
|
|
@@ -5235,7 +5446,7 @@ interface DisconnectMemberSignature {
|
|
|
5235
5446
|
*/
|
|
5236
5447
|
(_id: string): Promise<DisconnectMemberResponse & DisconnectMemberResponseNonNullableFields>;
|
|
5237
5448
|
}
|
|
5238
|
-
declare function deleteMember$1(httpClient: HttpClient
|
|
5449
|
+
declare function deleteMember$1(httpClient: HttpClient): DeleteMemberSignature;
|
|
5239
5450
|
interface DeleteMemberSignature {
|
|
5240
5451
|
/**
|
|
5241
5452
|
* Deletes a member.
|
|
@@ -5247,12 +5458,12 @@ interface DeleteMemberSignature {
|
|
|
5247
5458
|
*/
|
|
5248
5459
|
(_id: string): Promise<void>;
|
|
5249
5460
|
}
|
|
5250
|
-
declare function deleteMyMember$1(httpClient: HttpClient
|
|
5461
|
+
declare function deleteMyMember$1(httpClient: HttpClient): DeleteMyMemberSignature;
|
|
5251
5462
|
interface DeleteMyMemberSignature {
|
|
5252
5463
|
/** */
|
|
5253
5464
|
(options?: DeleteMyMemberOptions | undefined): Promise<void>;
|
|
5254
5465
|
}
|
|
5255
|
-
declare function bulkDeleteMembers$1(httpClient: HttpClient
|
|
5466
|
+
declare function bulkDeleteMembers$1(httpClient: HttpClient): BulkDeleteMembersSignature;
|
|
5256
5467
|
interface BulkDeleteMembersSignature {
|
|
5257
5468
|
/**
|
|
5258
5469
|
* Deletes multiple members which satisfy the provided filter.
|
|
@@ -5260,7 +5471,7 @@ interface BulkDeleteMembersSignature {
|
|
|
5260
5471
|
*/
|
|
5261
5472
|
(memberIds: string[]): Promise<BulkDeleteMembersResponse & BulkDeleteMembersResponseNonNullableFields>;
|
|
5262
5473
|
}
|
|
5263
|
-
declare function bulkDeleteMembersByFilter$1(httpClient: HttpClient
|
|
5474
|
+
declare function bulkDeleteMembersByFilter$1(httpClient: HttpClient): BulkDeleteMembersByFilterSignature;
|
|
5264
5475
|
interface BulkDeleteMembersByFilterSignature {
|
|
5265
5476
|
/**
|
|
5266
5477
|
* Deletes multiple members which satisfy the provided filter.
|
|
@@ -5268,7 +5479,7 @@ interface BulkDeleteMembersByFilterSignature {
|
|
|
5268
5479
|
*/
|
|
5269
5480
|
(filter: any, options?: BulkDeleteMembersByFilterOptions | undefined): Promise<BulkDeleteMembersByFilterResponse & BulkDeleteMembersByFilterResponseNonNullableFields>;
|
|
5270
5481
|
}
|
|
5271
|
-
declare function bulkApproveMembers$1(httpClient: HttpClient
|
|
5482
|
+
declare function bulkApproveMembers$1(httpClient: HttpClient): BulkApproveMembersSignature;
|
|
5272
5483
|
interface BulkApproveMembersSignature {
|
|
5273
5484
|
/**
|
|
5274
5485
|
* Approves multiple members which satisfy the provided filter.
|
|
@@ -5276,7 +5487,7 @@ interface BulkApproveMembersSignature {
|
|
|
5276
5487
|
*/
|
|
5277
5488
|
(filter: any): Promise<BulkApproveMembersResponse & BulkApproveMembersResponseNonNullableFields>;
|
|
5278
5489
|
}
|
|
5279
|
-
declare function bulkBlockMembers$1(httpClient: HttpClient
|
|
5490
|
+
declare function bulkBlockMembers$1(httpClient: HttpClient): BulkBlockMembersSignature;
|
|
5280
5491
|
interface BulkBlockMembersSignature {
|
|
5281
5492
|
/**
|
|
5282
5493
|
* Blocks multiple members which satisfy the provided filter.
|
|
@@ -5286,7 +5497,7 @@ interface BulkBlockMembersSignature {
|
|
|
5286
5497
|
*/
|
|
5287
5498
|
(filter: any): Promise<BulkBlockMembersResponse & BulkBlockMembersResponseNonNullableFields>;
|
|
5288
5499
|
}
|
|
5289
|
-
declare function createMember$1(httpClient: HttpClient
|
|
5500
|
+
declare function createMember$1(httpClient: HttpClient): CreateMemberSignature;
|
|
5290
5501
|
interface CreateMemberSignature {
|
|
5291
5502
|
/**
|
|
5292
5503
|
* Creates a site member.
|
|
@@ -5300,7 +5511,7 @@ interface CreateMemberSignature {
|
|
|
5300
5511
|
*/
|
|
5301
5512
|
(options?: CreateMemberOptions | undefined): Promise<Member & MemberNonNullableFields>;
|
|
5302
5513
|
}
|
|
5303
|
-
declare function updateMember$1(httpClient: HttpClient
|
|
5514
|
+
declare function updateMember$1(httpClient: HttpClient): UpdateMemberSignature;
|
|
5304
5515
|
interface UpdateMemberSignature {
|
|
5305
5516
|
/**
|
|
5306
5517
|
* Updates a member's properties.
|
|
@@ -5323,7 +5534,7 @@ interface UpdateMemberSignature {
|
|
|
5323
5534
|
*/
|
|
5324
5535
|
(_id: string | null, member: UpdateMember): Promise<Member & MemberNonNullableFields>;
|
|
5325
5536
|
}
|
|
5326
|
-
declare function deleteMemberPhones$1(httpClient: HttpClient
|
|
5537
|
+
declare function deleteMemberPhones$1(httpClient: HttpClient): DeleteMemberPhonesSignature;
|
|
5327
5538
|
interface DeleteMemberPhonesSignature {
|
|
5328
5539
|
/**
|
|
5329
5540
|
* Clears a member's phone numbers.
|
|
@@ -5337,7 +5548,7 @@ interface DeleteMemberPhonesSignature {
|
|
|
5337
5548
|
*/
|
|
5338
5549
|
(_id: string): Promise<DeleteMemberPhonesResponse & DeleteMemberPhonesResponseNonNullableFields>;
|
|
5339
5550
|
}
|
|
5340
|
-
declare function deleteMemberEmails$1(httpClient: HttpClient
|
|
5551
|
+
declare function deleteMemberEmails$1(httpClient: HttpClient): DeleteMemberEmailsSignature;
|
|
5341
5552
|
interface DeleteMemberEmailsSignature {
|
|
5342
5553
|
/**
|
|
5343
5554
|
* Clears a member's email addresses.
|
|
@@ -5354,7 +5565,7 @@ interface DeleteMemberEmailsSignature {
|
|
|
5354
5565
|
*/
|
|
5355
5566
|
(_id: string): Promise<DeleteMemberEmailsResponse & DeleteMemberEmailsResponseNonNullableFields>;
|
|
5356
5567
|
}
|
|
5357
|
-
declare function deleteMemberAddresses$1(httpClient: HttpClient
|
|
5568
|
+
declare function deleteMemberAddresses$1(httpClient: HttpClient): DeleteMemberAddressesSignature;
|
|
5358
5569
|
interface DeleteMemberAddressesSignature {
|
|
5359
5570
|
/**
|
|
5360
5571
|
* Deletes a member's street addresses.
|
|
@@ -5368,36 +5579,54 @@ interface DeleteMemberAddressesSignature {
|
|
|
5368
5579
|
*/
|
|
5369
5580
|
(_id: string): Promise<DeleteMemberAddressesResponse & DeleteMemberAddressesResponseNonNullableFields>;
|
|
5370
5581
|
}
|
|
5371
|
-
declare const onMemberUpdated$1: EventDefinition<MemberUpdatedEnvelope, "wix.members.v1.member_updated">;
|
|
5372
|
-
declare const onMemberDeleted$1: EventDefinition<MemberDeletedEnvelope, "wix.members.v1.member_deleted">;
|
|
5373
|
-
declare const onMemberCreated$1: EventDefinition<MemberCreatedEnvelope, "wix.members.v1.member_created">;
|
|
5582
|
+
declare const onMemberUpdated$1: EventDefinition$2<MemberUpdatedEnvelope, "wix.members.v1.member_updated">;
|
|
5583
|
+
declare const onMemberDeleted$1: EventDefinition$2<MemberDeletedEnvelope, "wix.members.v1.member_deleted">;
|
|
5584
|
+
declare const onMemberCreated$1: EventDefinition$2<MemberCreatedEnvelope, "wix.members.v1.member_created">;
|
|
5585
|
+
|
|
5586
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
5587
|
+
__type: 'event-definition';
|
|
5588
|
+
type: Type;
|
|
5589
|
+
isDomainEvent?: boolean;
|
|
5590
|
+
transformations?: (envelope: unknown) => Payload;
|
|
5591
|
+
__payload: Payload;
|
|
5592
|
+
};
|
|
5593
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
5594
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
5595
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
5596
|
+
|
|
5597
|
+
declare global {
|
|
5598
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
5599
|
+
interface SymbolConstructor {
|
|
5600
|
+
readonly observable: symbol;
|
|
5601
|
+
}
|
|
5602
|
+
}
|
|
5374
5603
|
|
|
5375
5604
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
5376
5605
|
|
|
5377
|
-
declare const updateCurrentMemberSlug: BuildRESTFunction
|
|
5378
|
-
declare const updateMemberSlug: BuildRESTFunction
|
|
5379
|
-
declare const joinCommunity: BuildRESTFunction
|
|
5380
|
-
declare const leaveCommunity: BuildRESTFunction
|
|
5381
|
-
declare const getCurrentMember: BuildRESTFunction
|
|
5382
|
-
declare const getMember: BuildRESTFunction
|
|
5383
|
-
declare const listMembers: BuildRESTFunction
|
|
5384
|
-
declare const queryMembers: BuildRESTFunction
|
|
5385
|
-
declare const muteMember: BuildRESTFunction
|
|
5386
|
-
declare const unmuteMember: BuildRESTFunction
|
|
5387
|
-
declare const approveMember: BuildRESTFunction
|
|
5388
|
-
declare const blockMember$2: BuildRESTFunction
|
|
5389
|
-
declare const disconnectMember: BuildRESTFunction
|
|
5390
|
-
declare const deleteMember: BuildRESTFunction
|
|
5391
|
-
declare const deleteMyMember: BuildRESTFunction
|
|
5392
|
-
declare const bulkDeleteMembers: BuildRESTFunction
|
|
5393
|
-
declare const bulkDeleteMembersByFilter: BuildRESTFunction
|
|
5394
|
-
declare const bulkApproveMembers: BuildRESTFunction
|
|
5395
|
-
declare const bulkBlockMembers: BuildRESTFunction
|
|
5396
|
-
declare const createMember: BuildRESTFunction
|
|
5397
|
-
declare const updateMember: BuildRESTFunction
|
|
5398
|
-
declare const deleteMemberPhones: BuildRESTFunction
|
|
5399
|
-
declare const deleteMemberEmails: BuildRESTFunction
|
|
5400
|
-
declare const deleteMemberAddresses: BuildRESTFunction
|
|
5606
|
+
declare const updateCurrentMemberSlug: MaybeContext<BuildRESTFunction<typeof updateCurrentMemberSlug$1> & typeof updateCurrentMemberSlug$1>;
|
|
5607
|
+
declare const updateMemberSlug: MaybeContext<BuildRESTFunction<typeof updateMemberSlug$1> & typeof updateMemberSlug$1>;
|
|
5608
|
+
declare const joinCommunity: MaybeContext<BuildRESTFunction<typeof joinCommunity$1> & typeof joinCommunity$1>;
|
|
5609
|
+
declare const leaveCommunity: MaybeContext<BuildRESTFunction<typeof leaveCommunity$1> & typeof leaveCommunity$1>;
|
|
5610
|
+
declare const getCurrentMember: MaybeContext<BuildRESTFunction<typeof getCurrentMember$1> & typeof getCurrentMember$1>;
|
|
5611
|
+
declare const getMember: MaybeContext<BuildRESTFunction<typeof getMember$1> & typeof getMember$1>;
|
|
5612
|
+
declare const listMembers: MaybeContext<BuildRESTFunction<typeof listMembers$1> & typeof listMembers$1>;
|
|
5613
|
+
declare const queryMembers: MaybeContext<BuildRESTFunction<typeof queryMembers$1> & typeof queryMembers$1>;
|
|
5614
|
+
declare const muteMember: MaybeContext<BuildRESTFunction<typeof muteMember$1> & typeof muteMember$1>;
|
|
5615
|
+
declare const unmuteMember: MaybeContext<BuildRESTFunction<typeof unmuteMember$1> & typeof unmuteMember$1>;
|
|
5616
|
+
declare const approveMember: MaybeContext<BuildRESTFunction<typeof approveMember$1> & typeof approveMember$1>;
|
|
5617
|
+
declare const blockMember$2: MaybeContext<BuildRESTFunction<typeof blockMember$3> & typeof blockMember$3>;
|
|
5618
|
+
declare const disconnectMember: MaybeContext<BuildRESTFunction<typeof disconnectMember$1> & typeof disconnectMember$1>;
|
|
5619
|
+
declare const deleteMember: MaybeContext<BuildRESTFunction<typeof deleteMember$1> & typeof deleteMember$1>;
|
|
5620
|
+
declare const deleteMyMember: MaybeContext<BuildRESTFunction<typeof deleteMyMember$1> & typeof deleteMyMember$1>;
|
|
5621
|
+
declare const bulkDeleteMembers: MaybeContext<BuildRESTFunction<typeof bulkDeleteMembers$1> & typeof bulkDeleteMembers$1>;
|
|
5622
|
+
declare const bulkDeleteMembersByFilter: MaybeContext<BuildRESTFunction<typeof bulkDeleteMembersByFilter$1> & typeof bulkDeleteMembersByFilter$1>;
|
|
5623
|
+
declare const bulkApproveMembers: MaybeContext<BuildRESTFunction<typeof bulkApproveMembers$1> & typeof bulkApproveMembers$1>;
|
|
5624
|
+
declare const bulkBlockMembers: MaybeContext<BuildRESTFunction<typeof bulkBlockMembers$1> & typeof bulkBlockMembers$1>;
|
|
5625
|
+
declare const createMember: MaybeContext<BuildRESTFunction<typeof createMember$1> & typeof createMember$1>;
|
|
5626
|
+
declare const updateMember: MaybeContext<BuildRESTFunction<typeof updateMember$1> & typeof updateMember$1>;
|
|
5627
|
+
declare const deleteMemberPhones: MaybeContext<BuildRESTFunction<typeof deleteMemberPhones$1> & typeof deleteMemberPhones$1>;
|
|
5628
|
+
declare const deleteMemberEmails: MaybeContext<BuildRESTFunction<typeof deleteMemberEmails$1> & typeof deleteMemberEmails$1>;
|
|
5629
|
+
declare const deleteMemberAddresses: MaybeContext<BuildRESTFunction<typeof deleteMemberAddresses$1> & typeof deleteMemberAddresses$1>;
|
|
5401
5630
|
|
|
5402
5631
|
type _publicOnMemberUpdatedType = typeof onMemberUpdated$1;
|
|
5403
5632
|
/** */
|
|
@@ -5586,40 +5815,6 @@ declare namespace context$3 {
|
|
|
5586
5815
|
export { type ActionEvent$1 as ActionEvent, type context$3_ActiveSubscriptionMemberBlockForbiddenPayload as ActiveSubscriptionMemberBlockForbiddenPayload, context$3_ActivityStatusStatus as ActivityStatusStatus, type context$3_Address as Address, type context$3_AddressStreetOneOf as AddressStreetOneOf, type context$3_App as App, type context$3_ApplicationError as ApplicationError, type context$3_ApproveMemberRequest as ApproveMemberRequest, type context$3_ApproveMemberResponse as ApproveMemberResponse, type context$3_ApproveMemberResponseNonNullableFields as ApproveMemberResponseNonNullableFields, type Asset$1 as Asset, type context$3_BaseEventMetadata as BaseEventMetadata, type BlockMemberRequest$1 as BlockMemberRequest, type BlockMemberResponse$1 as BlockMemberResponse, type context$3_BlockMemberResponseNonNullableFields as BlockMemberResponseNonNullableFields, type context$3_BulkActionMetadata as BulkActionMetadata, type context$3_BulkApproveMembersRequest as BulkApproveMembersRequest, type context$3_BulkApproveMembersResponse as BulkApproveMembersResponse, type context$3_BulkApproveMembersResponseNonNullableFields as BulkApproveMembersResponseNonNullableFields, type context$3_BulkBlockMembersRequest as BulkBlockMembersRequest, type context$3_BulkBlockMembersResponse as BulkBlockMembersResponse, type context$3_BulkBlockMembersResponseNonNullableFields as BulkBlockMembersResponseNonNullableFields, type context$3_BulkDeleteMembersByFilterOptions as BulkDeleteMembersByFilterOptions, type context$3_BulkDeleteMembersByFilterRequest as BulkDeleteMembersByFilterRequest, type context$3_BulkDeleteMembersByFilterResponse as BulkDeleteMembersByFilterResponse, type context$3_BulkDeleteMembersByFilterResponseNonNullableFields as BulkDeleteMembersByFilterResponseNonNullableFields, type context$3_BulkDeleteMembersRequest as BulkDeleteMembersRequest, type context$3_BulkDeleteMembersResponse as BulkDeleteMembersResponse, type context$3_BulkDeleteMembersResponseNonNullableFields as BulkDeleteMembersResponseNonNullableFields, type context$3_BulkMemberResult as BulkMemberResult, type context$3_Contact as Contact, type context$3_ContentDeletionRequested as ContentDeletionRequested, type context$3_ContentReassignmentRequested as ContentReassignmentRequested, type context$3_CreateMemberOptions as CreateMemberOptions, type context$3_CreateMemberRequest as CreateMemberRequest, type context$3_CreateMemberResponse as CreateMemberResponse, type context$3_CreateMemberResponseNonNullableFields as CreateMemberResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type context$3_CursorPagingMetadata as CursorPagingMetadata, type Cursors$1 as Cursors, type context$3_CustomField as CustomField, type DeleteContext$1 as DeleteContext, type context$3_DeleteMemberAddressesRequest as DeleteMemberAddressesRequest, type context$3_DeleteMemberAddressesResponse as DeleteMemberAddressesResponse, type context$3_DeleteMemberAddressesResponseNonNullableFields as DeleteMemberAddressesResponseNonNullableFields, type context$3_DeleteMemberEmailsRequest as DeleteMemberEmailsRequest, type context$3_DeleteMemberEmailsResponse as DeleteMemberEmailsResponse, type context$3_DeleteMemberEmailsResponseNonNullableFields as DeleteMemberEmailsResponseNonNullableFields, type context$3_DeleteMemberPhonesRequest as DeleteMemberPhonesRequest, type context$3_DeleteMemberPhonesResponse as DeleteMemberPhonesResponse, type context$3_DeleteMemberPhonesResponseNonNullableFields as DeleteMemberPhonesResponseNonNullableFields, type context$3_DeleteMemberRequest as DeleteMemberRequest, type context$3_DeleteMemberResponse as DeleteMemberResponse, type context$3_DeleteMyMemberOptions as DeleteMyMemberOptions, type context$3_DeleteMyMemberRequest as DeleteMyMemberRequest, type context$3_DeleteMyMemberResponse as DeleteMyMemberResponse, DeleteStatus$1 as DeleteStatus, type context$3_DisconnectMemberRequest as DisconnectMemberRequest, type context$3_DisconnectMemberResponse as DisconnectMemberResponse, type context$3_DisconnectMemberResponseNonNullableFields as DisconnectMemberResponseNonNullableFields, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type Empty$3 as Empty, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type context$3_EventMetadata as EventMetadata, type context$3_ExtendedFields as ExtendedFields, type context$3_File as File, type context$3_GetCurrentMemberOptions as GetCurrentMemberOptions, type context$3_GetMemberOptions as GetMemberOptions, type context$3_GetMemberRequest as GetMemberRequest, type context$3_GetMemberResponse as GetMemberResponse, type context$3_GetMemberResponseNonNullableFields as GetMemberResponseNonNullableFields, type context$3_GetMyMemberRequest as GetMyMemberRequest, type context$3_GetMyMemberResponse as GetMyMemberResponse, type context$3_GetMyMemberResponseNonNullableFields as GetMyMemberResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type context$3_Image as Image, type context$3_InvalidateCache as InvalidateCache, type context$3_InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOf, type context$3_ItemMetadata as ItemMetadata, type context$3_JoinCommunityRequest as JoinCommunityRequest, type context$3_JoinCommunityResponse as JoinCommunityResponse, type context$3_JoinCommunityResponseNonNullableFields as JoinCommunityResponseNonNullableFields, type context$3_LeaveCommunityRequest as LeaveCommunityRequest, type context$3_LeaveCommunityResponse as LeaveCommunityResponse, type context$3_LeaveCommunityResponseNonNullableFields as LeaveCommunityResponseNonNullableFields, type context$3_ListMembersOptions as ListMembersOptions, type context$3_ListMembersRequest as ListMembersRequest, type context$3_ListMembersResponse as ListMembersResponse, type context$3_ListMembersResponseNonNullableFields as ListMembersResponseNonNullableFields, type context$3_Member as Member, type context$3_MemberApproved as MemberApproved, type context$3_MemberBlocked as MemberBlocked, type context$3_MemberCreatedEnvelope as MemberCreatedEnvelope, type context$3_MemberDeletedEnvelope as MemberDeletedEnvelope, type context$3_MemberIdChanged as MemberIdChanged, type context$3_MemberJoinedCommunity as MemberJoinedCommunity, type context$3_MemberLeftCommunity as MemberLeftCommunity, type context$3_MemberMuted as MemberMuted, type context$3_MemberNonNullableFields as MemberNonNullableFields, type context$3_MemberOwnershipTransferred as MemberOwnershipTransferred, type context$3_MemberSelfBlockForbiddenPayload as MemberSelfBlockForbiddenPayload, type context$3_MemberToMemberBlockedPayload as MemberToMemberBlockedPayload, type context$3_MemberUnmuted as MemberUnmuted, type context$3_MemberUpdatedEnvelope as MemberUpdatedEnvelope, type context$3_MembersQueryBuilder as MembersQueryBuilder, type context$3_MembersQueryResult as MembersQueryResult, type MessageEnvelope$1 as MessageEnvelope, type MetaSiteSpecialEvent$1 as MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf$1 as MetaSiteSpecialEventPayloadOneOf, type context$3_MuteMemberRequest as MuteMemberRequest, type context$3_MuteMemberResponse as MuteMemberResponse, type context$3_MuteMemberResponseNonNullableFields as MuteMemberResponseNonNullableFields, Namespace$1 as Namespace, type NamespaceChanged$1 as NamespaceChanged, type context$3_OwnerMemberBlockForbiddenPayload as OwnerMemberBlockForbiddenPayload, type context$3_Page as Page, type context$3_Paging as Paging, type context$3_PagingMetadata as PagingMetadata, context$3_PrivacyStatusStatus as PrivacyStatusStatus, type context$3_Profile as Profile, type Query$1 as Query, type context$3_QueryMembersOptions as QueryMembersOptions, type context$3_QueryMembersRequest as QueryMembersRequest, type context$3_QueryMembersResponse as QueryMembersResponse, type context$3_QueryMembersResponseNonNullableFields as QueryMembersResponseNonNullableFields, type context$3_RestoreInfo as RestoreInfo, type context$3_Search as Search, type ServiceProvisioned$1 as ServiceProvisioned, type ServiceRemoved$1 as ServiceRemoved, context$3_Set as Set, type SiteCreated$1 as SiteCreated, SiteCreatedContext$1 as SiteCreatedContext, type SiteDeleted$1 as SiteDeleted, type SiteHardDeleted$1 as SiteHardDeleted, type SiteMarkedAsTemplate$1 as SiteMarkedAsTemplate, type SiteMarkedAsWixSite$1 as SiteMarkedAsWixSite, type SitePublished$1 as SitePublished, type SiteRenamed$1 as SiteRenamed, type SiteTransferred$1 as SiteTransferred, type SiteUndeleted$1 as SiteUndeleted, type SiteUnpublished$1 as SiteUnpublished, type context$3_SlugAlreadyExistsPayload as SlugAlreadyExistsPayload, context$3_SortOrder as SortOrder, type context$3_Sorting as Sorting, State$1 as State, context$3_Status as Status, type context$3_StreetAddress as StreetAddress, type StudioAssigned$1 as StudioAssigned, type StudioUnassigned$1 as StudioUnassigned, type context$3_URI as URI, type context$3_UnmuteMemberRequest as UnmuteMemberRequest, type context$3_UnmuteMemberResponse as UnmuteMemberResponse, type context$3_UnmuteMemberResponseNonNullableFields as UnmuteMemberResponseNonNullableFields, type context$3_UpdateMember as UpdateMember, type context$3_UpdateMemberRequest as UpdateMemberRequest, type context$3_UpdateMemberResponse as UpdateMemberResponse, type context$3_UpdateMemberResponseNonNullableFields as UpdateMemberResponseNonNullableFields, type context$3_UpdateMemberSlugRequest as UpdateMemberSlugRequest, type context$3_UpdateMemberSlugResponse as UpdateMemberSlugResponse, type context$3_UpdateMemberSlugResponseNonNullableFields as UpdateMemberSlugResponseNonNullableFields, type context$3_UpdateMySlugRequest as UpdateMySlugRequest, type context$3_UpdateMySlugResponse as UpdateMySlugResponse, type context$3_UpdateMySlugResponseNonNullableFields as UpdateMySlugResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, type context$3__publicOnMemberCreatedType as _publicOnMemberCreatedType, type context$3__publicOnMemberDeletedType as _publicOnMemberDeletedType, type context$3__publicOnMemberUpdatedType as _publicOnMemberUpdatedType, context$3_approveMember as approveMember, blockMember$2 as blockMember, context$3_bulkApproveMembers as bulkApproveMembers, context$3_bulkBlockMembers as bulkBlockMembers, context$3_bulkDeleteMembers as bulkDeleteMembers, context$3_bulkDeleteMembersByFilter as bulkDeleteMembersByFilter, context$3_createMember as createMember, context$3_deleteMember as deleteMember, context$3_deleteMemberAddresses as deleteMemberAddresses, context$3_deleteMemberEmails as deleteMemberEmails, context$3_deleteMemberPhones as deleteMemberPhones, context$3_deleteMyMember as deleteMyMember, context$3_disconnectMember as disconnectMember, context$3_getCurrentMember as getCurrentMember, context$3_getMember as getMember, context$3_joinCommunity as joinCommunity, context$3_leaveCommunity as leaveCommunity, context$3_listMembers as listMembers, context$3_muteMember as muteMember, context$3_onMemberCreated as onMemberCreated, context$3_onMemberDeleted as onMemberDeleted, context$3_onMemberUpdated as onMemberUpdated, onMemberCreated$1 as publicOnMemberCreated, onMemberDeleted$1 as publicOnMemberDeleted, onMemberUpdated$1 as publicOnMemberUpdated, context$3_queryMembers as queryMembers, context$3_unmuteMember as unmuteMember, context$3_updateCurrentMemberSlug as updateCurrentMemberSlug, context$3_updateMember as updateMember, context$3_updateMemberSlug as updateMemberSlug };
|
|
5587
5816
|
}
|
|
5588
5817
|
|
|
5589
|
-
type RESTFunctionDescriptor$2<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$2) => T;
|
|
5590
|
-
interface HttpClient$2 {
|
|
5591
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
5592
|
-
fetchWithAuth: typeof fetch;
|
|
5593
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
5594
|
-
}
|
|
5595
|
-
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
5596
|
-
type HttpResponse$2<T = any> = {
|
|
5597
|
-
data: T;
|
|
5598
|
-
status: number;
|
|
5599
|
-
statusText: string;
|
|
5600
|
-
headers: any;
|
|
5601
|
-
request?: any;
|
|
5602
|
-
};
|
|
5603
|
-
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
5604
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
5605
|
-
url: string;
|
|
5606
|
-
data?: Data;
|
|
5607
|
-
params?: URLSearchParams;
|
|
5608
|
-
} & APIMetadata$2;
|
|
5609
|
-
type APIMetadata$2 = {
|
|
5610
|
-
methodFqn?: string;
|
|
5611
|
-
entityFqdn?: string;
|
|
5612
|
-
packageName?: string;
|
|
5613
|
-
};
|
|
5614
|
-
type BuildRESTFunction$2<T extends RESTFunctionDescriptor$2> = T extends RESTFunctionDescriptor$2<infer U> ? U : never;
|
|
5615
|
-
|
|
5616
|
-
declare global {
|
|
5617
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
5618
|
-
interface SymbolConstructor {
|
|
5619
|
-
readonly observable: symbol;
|
|
5620
|
-
}
|
|
5621
|
-
}
|
|
5622
|
-
|
|
5623
5818
|
interface MemberRoleDefinition {
|
|
5624
5819
|
/** @readonly */
|
|
5625
5820
|
_id?: string;
|
|
@@ -5976,37 +6171,37 @@ interface UpdateMemberRoleDefinitionOptions {
|
|
|
5976
6171
|
revision: string | null;
|
|
5977
6172
|
}
|
|
5978
6173
|
|
|
5979
|
-
declare function createMemberRoleDefinition$1(httpClient: HttpClient
|
|
6174
|
+
declare function createMemberRoleDefinition$1(httpClient: HttpClient): CreateMemberRoleDefinitionSignature;
|
|
5980
6175
|
interface CreateMemberRoleDefinitionSignature {
|
|
5981
6176
|
/** */
|
|
5982
6177
|
(roleKey: string, options?: CreateMemberRoleDefinitionOptions | undefined): Promise<CreateMemberRoleDefinitionResponse & CreateMemberRoleDefinitionResponseNonNullableFields>;
|
|
5983
6178
|
}
|
|
5984
|
-
declare function listMemberRoleDefinitions$1(httpClient: HttpClient
|
|
6179
|
+
declare function listMemberRoleDefinitions$1(httpClient: HttpClient): ListMemberRoleDefinitionsSignature;
|
|
5985
6180
|
interface ListMemberRoleDefinitionsSignature {
|
|
5986
6181
|
/** */
|
|
5987
6182
|
(): Promise<ListMemberRoleDefinitionsResponse & ListMemberRoleDefinitionsResponseNonNullableFields>;
|
|
5988
6183
|
}
|
|
5989
|
-
declare function getMemberRoleDefinition$1(httpClient: HttpClient
|
|
6184
|
+
declare function getMemberRoleDefinition$1(httpClient: HttpClient): GetMemberRoleDefinitionSignature;
|
|
5990
6185
|
interface GetMemberRoleDefinitionSignature {
|
|
5991
6186
|
/** */
|
|
5992
6187
|
(roleKey: string): Promise<GetMemberRoleDefinitionResponse & GetMemberRoleDefinitionResponseNonNullableFields>;
|
|
5993
6188
|
}
|
|
5994
|
-
declare function updateMemberRoleDefinition$1(httpClient: HttpClient
|
|
6189
|
+
declare function updateMemberRoleDefinition$1(httpClient: HttpClient): UpdateMemberRoleDefinitionSignature;
|
|
5995
6190
|
interface UpdateMemberRoleDefinitionSignature {
|
|
5996
6191
|
/** */
|
|
5997
6192
|
(key: string, options?: UpdateMemberRoleDefinitionOptions | undefined): Promise<UpdateMemberRoleDefinitionResponse & UpdateMemberRoleDefinitionResponseNonNullableFields>;
|
|
5998
6193
|
}
|
|
5999
|
-
declare function deleteMemberRoleDefinition$1(httpClient: HttpClient
|
|
6194
|
+
declare function deleteMemberRoleDefinition$1(httpClient: HttpClient): DeleteMemberRoleDefinitionSignature;
|
|
6000
6195
|
interface DeleteMemberRoleDefinitionSignature {
|
|
6001
6196
|
/** */
|
|
6002
6197
|
(roleKey: string): Promise<void>;
|
|
6003
6198
|
}
|
|
6004
6199
|
|
|
6005
|
-
declare const createMemberRoleDefinition: BuildRESTFunction
|
|
6006
|
-
declare const listMemberRoleDefinitions: BuildRESTFunction
|
|
6007
|
-
declare const getMemberRoleDefinition: BuildRESTFunction
|
|
6008
|
-
declare const updateMemberRoleDefinition: BuildRESTFunction
|
|
6009
|
-
declare const deleteMemberRoleDefinition: BuildRESTFunction
|
|
6200
|
+
declare const createMemberRoleDefinition: MaybeContext<BuildRESTFunction<typeof createMemberRoleDefinition$1> & typeof createMemberRoleDefinition$1>;
|
|
6201
|
+
declare const listMemberRoleDefinitions: MaybeContext<BuildRESTFunction<typeof listMemberRoleDefinitions$1> & typeof listMemberRoleDefinitions$1>;
|
|
6202
|
+
declare const getMemberRoleDefinition: MaybeContext<BuildRESTFunction<typeof getMemberRoleDefinition$1> & typeof getMemberRoleDefinition$1>;
|
|
6203
|
+
declare const updateMemberRoleDefinition: MaybeContext<BuildRESTFunction<typeof updateMemberRoleDefinition$1> & typeof updateMemberRoleDefinition$1>;
|
|
6204
|
+
declare const deleteMemberRoleDefinition: MaybeContext<BuildRESTFunction<typeof deleteMemberRoleDefinition$1> & typeof deleteMemberRoleDefinition$1>;
|
|
6010
6205
|
|
|
6011
6206
|
type context$2_Asset = Asset;
|
|
6012
6207
|
type context$2_CreateMemberRoleDefinitionOptions = CreateMemberRoleDefinitionOptions;
|
|
@@ -6063,40 +6258,6 @@ declare namespace context$2 {
|
|
|
6063
6258
|
export { type context$2_Asset as Asset, type context$2_CreateMemberRoleDefinitionOptions as CreateMemberRoleDefinitionOptions, type context$2_CreateMemberRoleDefinitionRequest as CreateMemberRoleDefinitionRequest, type context$2_CreateMemberRoleDefinitionResponse as CreateMemberRoleDefinitionResponse, type context$2_CreateMemberRoleDefinitionResponseNonNullableFields as CreateMemberRoleDefinitionResponseNonNullableFields, type context$2_DeleteContext as DeleteContext, type context$2_DeleteMemberRoleDefinitionRequest as DeleteMemberRoleDefinitionRequest, type context$2_DeleteMemberRoleDefinitionResponse as DeleteMemberRoleDefinitionResponse, context$2_DeleteStatus as DeleteStatus, type Empty$2 as Empty, type context$2_GetMemberRoleDefinitionRequest as GetMemberRoleDefinitionRequest, type context$2_GetMemberRoleDefinitionResponse as GetMemberRoleDefinitionResponse, type context$2_GetMemberRoleDefinitionResponseNonNullableFields as GetMemberRoleDefinitionResponseNonNullableFields, type context$2_ListMemberRoleDefinitionsRequest as ListMemberRoleDefinitionsRequest, type context$2_ListMemberRoleDefinitionsResponse as ListMemberRoleDefinitionsResponse, type context$2_ListMemberRoleDefinitionsResponseNonNullableFields as ListMemberRoleDefinitionsResponseNonNullableFields, type context$2_MemberRoleDefinition as MemberRoleDefinition, type context$2_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type context$2_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, context$2_Namespace as Namespace, type context$2_NamespaceChanged as NamespaceChanged, type context$2_ServiceProvisioned as ServiceProvisioned, type context$2_ServiceRemoved as ServiceRemoved, type context$2_SiteCreated as SiteCreated, context$2_SiteCreatedContext as SiteCreatedContext, type context$2_SiteDeleted as SiteDeleted, type context$2_SiteHardDeleted as SiteHardDeleted, type context$2_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type context$2_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type context$2_SitePublished as SitePublished, type context$2_SiteRenamed as SiteRenamed, type context$2_SiteTransferred as SiteTransferred, type context$2_SiteUndeleted as SiteUndeleted, type context$2_SiteUnpublished as SiteUnpublished, context$2_State as State, type context$2_StudioAssigned as StudioAssigned, type context$2_StudioUnassigned as StudioUnassigned, type context$2_SyncMetaSiteRolesRequest as SyncMetaSiteRolesRequest, type context$2_SyncMetaSiteRolesResponse as SyncMetaSiteRolesResponse, type context$2_UpdateMemberRoleDefinitionOptions as UpdateMemberRoleDefinitionOptions, type context$2_UpdateMemberRoleDefinitionRequest as UpdateMemberRoleDefinitionRequest, type context$2_UpdateMemberRoleDefinitionResponse as UpdateMemberRoleDefinitionResponse, type context$2_UpdateMemberRoleDefinitionResponseNonNullableFields as UpdateMemberRoleDefinitionResponseNonNullableFields, context$2_createMemberRoleDefinition as createMemberRoleDefinition, context$2_deleteMemberRoleDefinition as deleteMemberRoleDefinition, context$2_getMemberRoleDefinition as getMemberRoleDefinition, context$2_listMemberRoleDefinitions as listMemberRoleDefinitions, context$2_updateMemberRoleDefinition as updateMemberRoleDefinition };
|
|
6064
6259
|
}
|
|
6065
6260
|
|
|
6066
|
-
type RESTFunctionDescriptor$1<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$1) => T;
|
|
6067
|
-
interface HttpClient$1 {
|
|
6068
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
6069
|
-
fetchWithAuth: typeof fetch;
|
|
6070
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
6071
|
-
}
|
|
6072
|
-
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
6073
|
-
type HttpResponse$1<T = any> = {
|
|
6074
|
-
data: T;
|
|
6075
|
-
status: number;
|
|
6076
|
-
statusText: string;
|
|
6077
|
-
headers: any;
|
|
6078
|
-
request?: any;
|
|
6079
|
-
};
|
|
6080
|
-
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
6081
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
6082
|
-
url: string;
|
|
6083
|
-
data?: Data;
|
|
6084
|
-
params?: URLSearchParams;
|
|
6085
|
-
} & APIMetadata$1;
|
|
6086
|
-
type APIMetadata$1 = {
|
|
6087
|
-
methodFqn?: string;
|
|
6088
|
-
entityFqdn?: string;
|
|
6089
|
-
packageName?: string;
|
|
6090
|
-
};
|
|
6091
|
-
type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
|
|
6092
|
-
|
|
6093
|
-
declare global {
|
|
6094
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
6095
|
-
interface SymbolConstructor {
|
|
6096
|
-
readonly observable: symbol;
|
|
6097
|
-
}
|
|
6098
|
-
}
|
|
6099
|
-
|
|
6100
6261
|
/** Member-to-member block. */
|
|
6101
6262
|
interface MemberToMemberBlock {
|
|
6102
6263
|
/** ID of the member that is the creator of this block. */
|
|
@@ -6341,7 +6502,7 @@ interface ListMemberBlocksOptions {
|
|
|
6341
6502
|
cursorPaging?: CursorPaging;
|
|
6342
6503
|
}
|
|
6343
6504
|
|
|
6344
|
-
declare function blockMember$1(httpClient: HttpClient
|
|
6505
|
+
declare function blockMember$1(httpClient: HttpClient): BlockMemberSignature;
|
|
6345
6506
|
interface BlockMemberSignature {
|
|
6346
6507
|
/**
|
|
6347
6508
|
* Blocks the specified member from the current member.
|
|
@@ -6349,7 +6510,7 @@ interface BlockMemberSignature {
|
|
|
6349
6510
|
*/
|
|
6350
6511
|
(memberId: string): Promise<void>;
|
|
6351
6512
|
}
|
|
6352
|
-
declare function unblockMember$1(httpClient: HttpClient
|
|
6513
|
+
declare function unblockMember$1(httpClient: HttpClient): UnblockMemberSignature;
|
|
6353
6514
|
interface UnblockMemberSignature {
|
|
6354
6515
|
/**
|
|
6355
6516
|
* Unblocks the specified member from the current member.
|
|
@@ -6357,14 +6518,14 @@ interface UnblockMemberSignature {
|
|
|
6357
6518
|
*/
|
|
6358
6519
|
(memberId: string): Promise<void>;
|
|
6359
6520
|
}
|
|
6360
|
-
declare function listCurrentMemberBlocking$1(httpClient: HttpClient
|
|
6521
|
+
declare function listCurrentMemberBlocking$1(httpClient: HttpClient): ListCurrentMemberBlockingSignature;
|
|
6361
6522
|
interface ListCurrentMemberBlockingSignature {
|
|
6362
6523
|
/**
|
|
6363
6524
|
* Returns information about members blocked by the current member.
|
|
6364
6525
|
*/
|
|
6365
6526
|
(options?: ListCurrentMemberBlockingOptions | undefined): Promise<ListCurrentMemberBlockingResponse & ListCurrentMemberBlockingResponseNonNullableFields>;
|
|
6366
6527
|
}
|
|
6367
|
-
declare function listMemberBlocks$1(httpClient: HttpClient
|
|
6528
|
+
declare function listMemberBlocks$1(httpClient: HttpClient): ListMemberBlocksSignature;
|
|
6368
6529
|
interface ListMemberBlocksSignature {
|
|
6369
6530
|
/**
|
|
6370
6531
|
* Returns IDs of members that are blocking or blocked by the member whose ID was provided.
|
|
@@ -6373,10 +6534,10 @@ interface ListMemberBlocksSignature {
|
|
|
6373
6534
|
(memberId: string, options?: ListMemberBlocksOptions | undefined): Promise<ListMemberBlocksResponse & ListMemberBlocksResponseNonNullableFields>;
|
|
6374
6535
|
}
|
|
6375
6536
|
|
|
6376
|
-
declare const blockMember: BuildRESTFunction
|
|
6377
|
-
declare const unblockMember: BuildRESTFunction
|
|
6378
|
-
declare const listCurrentMemberBlocking: BuildRESTFunction
|
|
6379
|
-
declare const listMemberBlocks: BuildRESTFunction
|
|
6537
|
+
declare const blockMember: MaybeContext<BuildRESTFunction<typeof blockMember$1> & typeof blockMember$1>;
|
|
6538
|
+
declare const unblockMember: MaybeContext<BuildRESTFunction<typeof unblockMember$1> & typeof unblockMember$1>;
|
|
6539
|
+
declare const listCurrentMemberBlocking: MaybeContext<BuildRESTFunction<typeof listCurrentMemberBlocking$1> & typeof listCurrentMemberBlocking$1>;
|
|
6540
|
+
declare const listMemberBlocks: MaybeContext<BuildRESTFunction<typeof listMemberBlocks$1> & typeof listMemberBlocks$1>;
|
|
6380
6541
|
|
|
6381
6542
|
type context$1_ActionEvent = ActionEvent;
|
|
6382
6543
|
type context$1_AdminBlockingForbiddenError = AdminBlockingForbiddenError;
|
|
@@ -6424,40 +6585,6 @@ declare namespace context$1 {
|
|
|
6424
6585
|
export { type context$1_ActionEvent as ActionEvent, type context$1_AdminBlockingForbiddenError as AdminBlockingForbiddenError, context$1_BlockDirection as BlockDirection, type context$1_BlockDoesNotExistError as BlockDoesNotExistError, type context$1_BlockMemberRequest as BlockMemberRequest, type context$1_BlockMemberResponse as BlockMemberResponse, type context$1_CursorPaging as CursorPaging, type context$1_Cursors as Cursors, type context$1_DomainEvent as DomainEvent, type context$1_DomainEventBodyOneOf as DomainEventBodyOneOf, type Empty$1 as Empty, type context$1_EntityCreatedEvent as EntityCreatedEvent, type context$1_EntityDeletedEvent as EntityDeletedEvent, type context$1_EntityUpdatedEvent as EntityUpdatedEvent, type context$1_IdentificationData as IdentificationData, type context$1_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context$1_ListCurrentMemberBlockingOptions as ListCurrentMemberBlockingOptions, type context$1_ListCurrentMemberBlockingRequest as ListCurrentMemberBlockingRequest, type context$1_ListCurrentMemberBlockingResponse as ListCurrentMemberBlockingResponse, type context$1_ListCurrentMemberBlockingResponseNonNullableFields as ListCurrentMemberBlockingResponseNonNullableFields, type context$1_ListMemberBlocksOptions as ListMemberBlocksOptions, type context$1_ListMemberBlocksRequest as ListMemberBlocksRequest, type context$1_ListMemberBlocksResponse as ListMemberBlocksResponse, type context$1_ListMemberBlocksResponseNonNullableFields as ListMemberBlocksResponseNonNullableFields, type context$1_MemberAlreadyBlockedError as MemberAlreadyBlockedError, type context$1_MemberBlock as MemberBlock, type context$1_MemberBlockedByMember as MemberBlockedByMember, type context$1_MemberToMemberBlock as MemberToMemberBlock, type context$1_MemberUnblockedByMember as MemberUnblockedByMember, type context$1_MessageEnvelope as MessageEnvelope, type context$1_PagingMetadataV2 as PagingMetadataV2, type context$1_SelfBlockingForbiddenError as SelfBlockingForbiddenError, type context$1_SelfUnblockingForbiddenError as SelfUnblockingForbiddenError, type context$1_UnblockMemberRequest as UnblockMemberRequest, type context$1_UnblockMemberResponse as UnblockMemberResponse, type context$1_UndeleteInfo as UndeleteInfo, context$1_WebhookIdentityType as WebhookIdentityType, context$1_blockMember as blockMember, context$1_listCurrentMemberBlocking as listCurrentMemberBlocking, context$1_listMemberBlocks as listMemberBlocks, context$1_unblockMember as unblockMember };
|
|
6425
6586
|
}
|
|
6426
6587
|
|
|
6427
|
-
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
6428
|
-
interface HttpClient {
|
|
6429
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
6430
|
-
fetchWithAuth: typeof fetch;
|
|
6431
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
6432
|
-
}
|
|
6433
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
6434
|
-
type HttpResponse<T = any> = {
|
|
6435
|
-
data: T;
|
|
6436
|
-
status: number;
|
|
6437
|
-
statusText: string;
|
|
6438
|
-
headers: any;
|
|
6439
|
-
request?: any;
|
|
6440
|
-
};
|
|
6441
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
6442
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
6443
|
-
url: string;
|
|
6444
|
-
data?: Data;
|
|
6445
|
-
params?: URLSearchParams;
|
|
6446
|
-
} & APIMetadata;
|
|
6447
|
-
type APIMetadata = {
|
|
6448
|
-
methodFqn?: string;
|
|
6449
|
-
entityFqdn?: string;
|
|
6450
|
-
packageName?: string;
|
|
6451
|
-
};
|
|
6452
|
-
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
6453
|
-
|
|
6454
|
-
declare global {
|
|
6455
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
6456
|
-
interface SymbolConstructor {
|
|
6457
|
-
readonly observable: symbol;
|
|
6458
|
-
}
|
|
6459
|
-
}
|
|
6460
|
-
|
|
6461
6588
|
interface Role {
|
|
6462
6589
|
roleKey?: string;
|
|
6463
6590
|
title?: string;
|
|
@@ -6554,10 +6681,10 @@ interface QueryRolesSignature {
|
|
|
6554
6681
|
(options?: QueryRolesOptions | undefined): Promise<QueryRolesResponse>;
|
|
6555
6682
|
}
|
|
6556
6683
|
|
|
6557
|
-
declare const assignRole: BuildRESTFunction<typeof assignRole$1> & typeof assignRole$1
|
|
6558
|
-
declare const unassignRole: BuildRESTFunction<typeof unassignRole$1> & typeof unassignRole$1
|
|
6559
|
-
declare const getRoles: BuildRESTFunction<typeof getRoles$1> & typeof getRoles$1
|
|
6560
|
-
declare const queryRoles: BuildRESTFunction<typeof queryRoles$1> & typeof queryRoles$1
|
|
6684
|
+
declare const assignRole: MaybeContext<BuildRESTFunction<typeof assignRole$1> & typeof assignRole$1>;
|
|
6685
|
+
declare const unassignRole: MaybeContext<BuildRESTFunction<typeof unassignRole$1> & typeof unassignRole$1>;
|
|
6686
|
+
declare const getRoles: MaybeContext<BuildRESTFunction<typeof getRoles$1> & typeof getRoles$1>;
|
|
6687
|
+
declare const queryRoles: MaybeContext<BuildRESTFunction<typeof queryRoles$1> & typeof queryRoles$1>;
|
|
6561
6688
|
|
|
6562
6689
|
type context_AssignRoleRequest = AssignRoleRequest;
|
|
6563
6690
|
type context_AssignRoleResponse = AssignRoleResponse;
|