@wix/email-subscriptions 1.0.23 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +1 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/cjs/meta.js +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.ts +1 -1
- package/build/es/index.js +1 -1
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +1 -1
- package/build/es/meta.js +1 -1
- package/build/es/meta.js.map +1 -1
- package/build/es/package.json +3 -0
- package/build/internal/cjs/index.d.ts +2 -0
- package/build/internal/cjs/index.js +29 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/{cjs/context.js → internal/cjs/meta.js} +2 -2
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/es/index.d.ts +2 -0
- package/build/internal/es/index.js +3 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/meta/package.json +1 -5
- package/package.json +23 -17
- package/build/cjs/context.d.ts +0 -1
- package/build/cjs/context.js.map +0 -1
- package/build/es/context.d.ts +0 -1
- package/build/es/context.js +0 -2
- package/build/es/context.js.map +0 -1
- package/context/package.json +0 -7
- package/type-bundles/context.bundle.d.ts +0 -975
- package/type-bundles/index.bundle.d.ts +0 -975
- package/type-bundles/meta.bundle.d.ts +0 -377
@@ -1,975 +0,0 @@
|
|
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 name of the environment, use for logging
|
17
|
-
*/
|
18
|
-
name?: string;
|
19
|
-
/**
|
20
|
-
* Optional bast url to use for API requests, for example `www.wixapis.com`
|
21
|
-
*/
|
22
|
-
apiBaseUrl?: string;
|
23
|
-
/**
|
24
|
-
* Possible data to be provided by every host, for cross cutting concerns
|
25
|
-
* like internationalization, billing, etc.
|
26
|
-
*/
|
27
|
-
essentials?: {
|
28
|
-
/**
|
29
|
-
* The language of the currently viewed session
|
30
|
-
*/
|
31
|
-
language?: string;
|
32
|
-
/**
|
33
|
-
* The locale of the currently viewed session
|
34
|
-
*/
|
35
|
-
locale?: string;
|
36
|
-
/**
|
37
|
-
* Any headers that should be passed through to the API requests
|
38
|
-
*/
|
39
|
-
passThroughHeaders?: Record<string, string>;
|
40
|
-
};
|
41
|
-
};
|
42
|
-
|
43
|
-
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
44
|
-
interface HttpClient {
|
45
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
46
|
-
fetchWithAuth: typeof fetch;
|
47
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
48
|
-
getActiveToken?: () => string | undefined;
|
49
|
-
}
|
50
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
51
|
-
type HttpResponse<T = any> = {
|
52
|
-
data: T;
|
53
|
-
status: number;
|
54
|
-
statusText: string;
|
55
|
-
headers: any;
|
56
|
-
request?: any;
|
57
|
-
};
|
58
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
59
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
60
|
-
url: string;
|
61
|
-
data?: Data;
|
62
|
-
params?: URLSearchParams;
|
63
|
-
} & APIMetadata;
|
64
|
-
type APIMetadata = {
|
65
|
-
methodFqn?: string;
|
66
|
-
entityFqdn?: string;
|
67
|
-
packageName?: string;
|
68
|
-
};
|
69
|
-
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
70
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
71
|
-
__type: 'event-definition';
|
72
|
-
type: Type;
|
73
|
-
isDomainEvent?: boolean;
|
74
|
-
transformations?: (envelope: unknown) => Payload;
|
75
|
-
__payload: Payload;
|
76
|
-
};
|
77
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
78
|
-
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
79
|
-
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
80
|
-
|
81
|
-
type ServicePluginMethodInput = {
|
82
|
-
request: any;
|
83
|
-
metadata: any;
|
84
|
-
};
|
85
|
-
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
86
|
-
type ServicePluginMethodMetadata = {
|
87
|
-
name: string;
|
88
|
-
primaryHttpMappingPath: string;
|
89
|
-
transformations: {
|
90
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
91
|
-
toREST: (...args: unknown[]) => unknown;
|
92
|
-
};
|
93
|
-
};
|
94
|
-
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
95
|
-
__type: 'service-plugin-definition';
|
96
|
-
componentType: string;
|
97
|
-
methods: ServicePluginMethodMetadata[];
|
98
|
-
__contract: Contract;
|
99
|
-
};
|
100
|
-
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
101
|
-
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
102
|
-
declare const SERVICE_PLUGIN_ERROR_TYPE = "wix_spi_error";
|
103
|
-
|
104
|
-
type RequestContext = {
|
105
|
-
isSSR: boolean;
|
106
|
-
host: string;
|
107
|
-
protocol?: string;
|
108
|
-
};
|
109
|
-
type ResponseTransformer = (data: any, headers?: any) => any;
|
110
|
-
/**
|
111
|
-
* Ambassador request options types are copied mostly from AxiosRequestConfig.
|
112
|
-
* They are copied and not imported to reduce the amount of dependencies (to reduce install time).
|
113
|
-
* https://github.com/axios/axios/blob/3f53eb6960f05a1f88409c4b731a40de595cb825/index.d.ts#L307-L315
|
114
|
-
*/
|
115
|
-
type Method = 'get' | 'GET' | 'delete' | 'DELETE' | 'head' | 'HEAD' | 'options' | 'OPTIONS' | 'post' | 'POST' | 'put' | 'PUT' | 'patch' | 'PATCH' | 'purge' | 'PURGE' | 'link' | 'LINK' | 'unlink' | 'UNLINK';
|
116
|
-
type AmbassadorRequestOptions<T = any> = {
|
117
|
-
_?: T;
|
118
|
-
url?: string;
|
119
|
-
method?: Method;
|
120
|
-
params?: any;
|
121
|
-
data?: any;
|
122
|
-
transformResponse?: ResponseTransformer | ResponseTransformer[];
|
123
|
-
};
|
124
|
-
type AmbassadorFactory<Request, Response> = (payload: Request) => ((context: RequestContext) => AmbassadorRequestOptions<Response>) & {
|
125
|
-
__isAmbassador: boolean;
|
126
|
-
};
|
127
|
-
type AmbassadorFunctionDescriptor<Request = any, Response = any> = AmbassadorFactory<Request, Response>;
|
128
|
-
type BuildAmbassadorFunction<T extends AmbassadorFunctionDescriptor> = T extends AmbassadorFunctionDescriptor<infer Request, infer Response> ? (req: Request) => Promise<Response> : never;
|
129
|
-
|
130
|
-
declare global {
|
131
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
132
|
-
interface SymbolConstructor {
|
133
|
-
readonly observable: symbol;
|
134
|
-
}
|
135
|
-
}
|
136
|
-
|
137
|
-
declare const emptyObjectSymbol: unique symbol;
|
138
|
-
|
139
|
-
/**
|
140
|
-
Represents a strictly empty plain object, the `{}` value.
|
141
|
-
|
142
|
-
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)).
|
143
|
-
|
144
|
-
@example
|
145
|
-
```
|
146
|
-
import type {EmptyObject} from 'type-fest';
|
147
|
-
|
148
|
-
// The following illustrates the problem with `{}`.
|
149
|
-
const foo1: {} = {}; // Pass
|
150
|
-
const foo2: {} = []; // Pass
|
151
|
-
const foo3: {} = 42; // Pass
|
152
|
-
const foo4: {} = {a: 1}; // Pass
|
153
|
-
|
154
|
-
// With `EmptyObject` only the first case is valid.
|
155
|
-
const bar1: EmptyObject = {}; // Pass
|
156
|
-
const bar2: EmptyObject = 42; // Fail
|
157
|
-
const bar3: EmptyObject = []; // Fail
|
158
|
-
const bar4: EmptyObject = {a: 1}; // Fail
|
159
|
-
```
|
160
|
-
|
161
|
-
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}.
|
162
|
-
|
163
|
-
@category Object
|
164
|
-
*/
|
165
|
-
type EmptyObject = {[emptyObjectSymbol]?: never};
|
166
|
-
|
167
|
-
/**
|
168
|
-
Returns a boolean for whether the two given types are equal.
|
169
|
-
|
170
|
-
@link https://github.com/microsoft/TypeScript/issues/27024#issuecomment-421529650
|
171
|
-
@link https://stackoverflow.com/questions/68961864/how-does-the-equals-work-in-typescript/68963796#68963796
|
172
|
-
|
173
|
-
Use-cases:
|
174
|
-
- If you want to make a conditional branch based on the result of a comparison of two types.
|
175
|
-
|
176
|
-
@example
|
177
|
-
```
|
178
|
-
import type {IsEqual} from 'type-fest';
|
179
|
-
|
180
|
-
// This type returns a boolean for whether the given array includes the given item.
|
181
|
-
// `IsEqual` is used to compare the given array at position 0 and the given item and then return true if they are equal.
|
182
|
-
type Includes<Value extends readonly any[], Item> =
|
183
|
-
Value extends readonly [Value[0], ...infer rest]
|
184
|
-
? IsEqual<Value[0], Item> extends true
|
185
|
-
? true
|
186
|
-
: Includes<rest, Item>
|
187
|
-
: false;
|
188
|
-
```
|
189
|
-
|
190
|
-
@category Type Guard
|
191
|
-
@category Utilities
|
192
|
-
*/
|
193
|
-
type IsEqual<A, B> =
|
194
|
-
(<G>() => G extends A ? 1 : 2) extends
|
195
|
-
(<G>() => G extends B ? 1 : 2)
|
196
|
-
? true
|
197
|
-
: false;
|
198
|
-
|
199
|
-
/**
|
200
|
-
Filter out keys from an object.
|
201
|
-
|
202
|
-
Returns `never` if `Exclude` is strictly equal to `Key`.
|
203
|
-
Returns `never` if `Key` extends `Exclude`.
|
204
|
-
Returns `Key` otherwise.
|
205
|
-
|
206
|
-
@example
|
207
|
-
```
|
208
|
-
type Filtered = Filter<'foo', 'foo'>;
|
209
|
-
//=> never
|
210
|
-
```
|
211
|
-
|
212
|
-
@example
|
213
|
-
```
|
214
|
-
type Filtered = Filter<'bar', string>;
|
215
|
-
//=> never
|
216
|
-
```
|
217
|
-
|
218
|
-
@example
|
219
|
-
```
|
220
|
-
type Filtered = Filter<'bar', 'foo'>;
|
221
|
-
//=> 'bar'
|
222
|
-
```
|
223
|
-
|
224
|
-
@see {Except}
|
225
|
-
*/
|
226
|
-
type Filter<KeyType, ExcludeType> = IsEqual<KeyType, ExcludeType> extends true ? never : (KeyType extends ExcludeType ? never : KeyType);
|
227
|
-
|
228
|
-
type ExceptOptions = {
|
229
|
-
/**
|
230
|
-
Disallow assigning non-specified properties.
|
231
|
-
|
232
|
-
Note that any omitted properties in the resulting type will be present in autocomplete as `undefined`.
|
233
|
-
|
234
|
-
@default false
|
235
|
-
*/
|
236
|
-
requireExactProps?: boolean;
|
237
|
-
};
|
238
|
-
|
239
|
-
/**
|
240
|
-
Create a type from an object type without certain keys.
|
241
|
-
|
242
|
-
We recommend setting the `requireExactProps` option to `true`.
|
243
|
-
|
244
|
-
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.
|
245
|
-
|
246
|
-
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)).
|
247
|
-
|
248
|
-
@example
|
249
|
-
```
|
250
|
-
import type {Except} from 'type-fest';
|
251
|
-
|
252
|
-
type Foo = {
|
253
|
-
a: number;
|
254
|
-
b: string;
|
255
|
-
};
|
256
|
-
|
257
|
-
type FooWithoutA = Except<Foo, 'a'>;
|
258
|
-
//=> {b: string}
|
259
|
-
|
260
|
-
const fooWithoutA: FooWithoutA = {a: 1, b: '2'};
|
261
|
-
//=> errors: 'a' does not exist in type '{ b: string; }'
|
262
|
-
|
263
|
-
type FooWithoutB = Except<Foo, 'b', {requireExactProps: true}>;
|
264
|
-
//=> {a: number} & Partial<Record<"b", never>>
|
265
|
-
|
266
|
-
const fooWithoutB: FooWithoutB = {a: 1, b: '2'};
|
267
|
-
//=> errors at 'b': Type 'string' is not assignable to type 'undefined'.
|
268
|
-
```
|
269
|
-
|
270
|
-
@category Object
|
271
|
-
*/
|
272
|
-
type Except<ObjectType, KeysType extends keyof ObjectType, Options extends ExceptOptions = {requireExactProps: false}> = {
|
273
|
-
[KeyType in keyof ObjectType as Filter<KeyType, KeysType>]: ObjectType[KeyType];
|
274
|
-
} & (Options['requireExactProps'] extends true
|
275
|
-
? Partial<Record<KeysType, never>>
|
276
|
-
: {});
|
277
|
-
|
278
|
-
/**
|
279
|
-
Returns a boolean for whether the given type is `never`.
|
280
|
-
|
281
|
-
@link https://github.com/microsoft/TypeScript/issues/31751#issuecomment-498526919
|
282
|
-
@link https://stackoverflow.com/a/53984913/10292952
|
283
|
-
@link https://www.zhenghao.io/posts/ts-never
|
284
|
-
|
285
|
-
Useful in type utilities, such as checking if something does not occur.
|
286
|
-
|
287
|
-
@example
|
288
|
-
```
|
289
|
-
import type {IsNever, And} from 'type-fest';
|
290
|
-
|
291
|
-
// https://github.com/andnp/SimplyTyped/blob/master/src/types/strings.ts
|
292
|
-
type AreStringsEqual<A extends string, B extends string> =
|
293
|
-
And<
|
294
|
-
IsNever<Exclude<A, B>> extends true ? true : false,
|
295
|
-
IsNever<Exclude<B, A>> extends true ? true : false
|
296
|
-
>;
|
297
|
-
|
298
|
-
type EndIfEqual<I extends string, O extends string> =
|
299
|
-
AreStringsEqual<I, O> extends true
|
300
|
-
? never
|
301
|
-
: void;
|
302
|
-
|
303
|
-
function endIfEqual<I extends string, O extends string>(input: I, output: O): EndIfEqual<I, O> {
|
304
|
-
if (input === output) {
|
305
|
-
process.exit(0);
|
306
|
-
}
|
307
|
-
}
|
308
|
-
|
309
|
-
endIfEqual('abc', 'abc');
|
310
|
-
//=> never
|
311
|
-
|
312
|
-
endIfEqual('abc', '123');
|
313
|
-
//=> void
|
314
|
-
```
|
315
|
-
|
316
|
-
@category Type Guard
|
317
|
-
@category Utilities
|
318
|
-
*/
|
319
|
-
type IsNever<T> = [T] extends [never] ? true : false;
|
320
|
-
|
321
|
-
/**
|
322
|
-
An if-else-like type that resolves depending on whether the given type is `never`.
|
323
|
-
|
324
|
-
@see {@link IsNever}
|
325
|
-
|
326
|
-
@example
|
327
|
-
```
|
328
|
-
import type {IfNever} from 'type-fest';
|
329
|
-
|
330
|
-
type ShouldBeTrue = IfNever<never>;
|
331
|
-
//=> true
|
332
|
-
|
333
|
-
type ShouldBeBar = IfNever<'not never', 'foo', 'bar'>;
|
334
|
-
//=> 'bar'
|
335
|
-
```
|
336
|
-
|
337
|
-
@category Type Guard
|
338
|
-
@category Utilities
|
339
|
-
*/
|
340
|
-
type IfNever<T, TypeIfNever = true, TypeIfNotNever = false> = (
|
341
|
-
IsNever<T> extends true ? TypeIfNever : TypeIfNotNever
|
342
|
-
);
|
343
|
-
|
344
|
-
/**
|
345
|
-
Extract the keys from a type where the value type of the key extends the given `Condition`.
|
346
|
-
|
347
|
-
Internally this is used for the `ConditionalPick` and `ConditionalExcept` types.
|
348
|
-
|
349
|
-
@example
|
350
|
-
```
|
351
|
-
import type {ConditionalKeys} from 'type-fest';
|
352
|
-
|
353
|
-
interface Example {
|
354
|
-
a: string;
|
355
|
-
b: string | number;
|
356
|
-
c?: string;
|
357
|
-
d: {};
|
358
|
-
}
|
359
|
-
|
360
|
-
type StringKeysOnly = ConditionalKeys<Example, string>;
|
361
|
-
//=> 'a'
|
362
|
-
```
|
363
|
-
|
364
|
-
To support partial types, make sure your `Condition` is a union of undefined (for example, `string | undefined`) as demonstrated below.
|
365
|
-
|
366
|
-
@example
|
367
|
-
```
|
368
|
-
import type {ConditionalKeys} from 'type-fest';
|
369
|
-
|
370
|
-
type StringKeysAndUndefined = ConditionalKeys<Example, string | undefined>;
|
371
|
-
//=> 'a' | 'c'
|
372
|
-
```
|
373
|
-
|
374
|
-
@category Object
|
375
|
-
*/
|
376
|
-
type ConditionalKeys<Base, Condition> =
|
377
|
-
{
|
378
|
-
// Map through all the keys of the given base type.
|
379
|
-
[Key in keyof Base]-?:
|
380
|
-
// Pick only keys with types extending the given `Condition` type.
|
381
|
-
Base[Key] extends Condition
|
382
|
-
// Retain this key
|
383
|
-
// If the value for the key extends never, only include it if `Condition` also extends never
|
384
|
-
? IfNever<Base[Key], IfNever<Condition, Key, never>, Key>
|
385
|
-
// Discard this key since the condition fails.
|
386
|
-
: never;
|
387
|
-
// Convert the produced object into a union type of the keys which passed the conditional test.
|
388
|
-
}[keyof Base];
|
389
|
-
|
390
|
-
/**
|
391
|
-
Exclude keys from a shape that matches the given `Condition`.
|
392
|
-
|
393
|
-
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.
|
394
|
-
|
395
|
-
@example
|
396
|
-
```
|
397
|
-
import type {Primitive, ConditionalExcept} from 'type-fest';
|
398
|
-
|
399
|
-
class Awesome {
|
400
|
-
name: string;
|
401
|
-
successes: number;
|
402
|
-
failures: bigint;
|
403
|
-
|
404
|
-
run() {}
|
405
|
-
}
|
406
|
-
|
407
|
-
type ExceptPrimitivesFromAwesome = ConditionalExcept<Awesome, Primitive>;
|
408
|
-
//=> {run: () => void}
|
409
|
-
```
|
410
|
-
|
411
|
-
@example
|
412
|
-
```
|
413
|
-
import type {ConditionalExcept} from 'type-fest';
|
414
|
-
|
415
|
-
interface Example {
|
416
|
-
a: string;
|
417
|
-
b: string | number;
|
418
|
-
c: () => void;
|
419
|
-
d: {};
|
420
|
-
}
|
421
|
-
|
422
|
-
type NonStringKeysOnly = ConditionalExcept<Example, string>;
|
423
|
-
//=> {b: string | number; c: () => void; d: {}}
|
424
|
-
```
|
425
|
-
|
426
|
-
@category Object
|
427
|
-
*/
|
428
|
-
type ConditionalExcept<Base, Condition> = Except<
|
429
|
-
Base,
|
430
|
-
ConditionalKeys<Base, Condition>
|
431
|
-
>;
|
432
|
-
|
433
|
-
/**
|
434
|
-
* Descriptors are objects that describe the API of a module, and the module
|
435
|
-
* can either be a REST module or a host module.
|
436
|
-
* This type is recursive, so it can describe nested modules.
|
437
|
-
*/
|
438
|
-
type Descriptors = RESTFunctionDescriptor | AmbassadorFunctionDescriptor | HostModule<any, any> | EventDefinition<any> | ServicePluginDefinition<any> | {
|
439
|
-
[key: string]: Descriptors | PublicMetadata | any;
|
440
|
-
};
|
441
|
-
/**
|
442
|
-
* This type takes in a descriptors object of a certain Host (including an `unknown` host)
|
443
|
-
* and returns an object with the same structure, but with all descriptors replaced with their API.
|
444
|
-
* Any non-descriptor properties are removed from the returned object, including descriptors that
|
445
|
-
* do not match the given host (as they will not work with the given host).
|
446
|
-
*/
|
447
|
-
type BuildDescriptors<T extends Descriptors, H extends Host<any> | undefined, Depth extends number = 5> = {
|
448
|
-
done: T;
|
449
|
-
recurse: T extends {
|
450
|
-
__type: typeof SERVICE_PLUGIN_ERROR_TYPE;
|
451
|
-
} ? never : T extends AmbassadorFunctionDescriptor ? BuildAmbassadorFunction<T> : T extends RESTFunctionDescriptor ? BuildRESTFunction<T> : T extends EventDefinition<any> ? BuildEventDefinition<T> : T extends ServicePluginDefinition<any> ? BuildServicePluginDefinition<T> : T extends HostModule<any, any> ? HostModuleAPI<T> : ConditionalExcept<{
|
452
|
-
[Key in keyof T]: T[Key] extends Descriptors ? BuildDescriptors<T[Key], H, [
|
453
|
-
-1,
|
454
|
-
0,
|
455
|
-
1,
|
456
|
-
2,
|
457
|
-
3,
|
458
|
-
4,
|
459
|
-
5
|
460
|
-
][Depth]> : never;
|
461
|
-
}, EmptyObject>;
|
462
|
-
}[Depth extends -1 ? 'done' : 'recurse'];
|
463
|
-
type PublicMetadata = {
|
464
|
-
PACKAGE_NAME?: string;
|
465
|
-
};
|
466
|
-
|
467
|
-
declare global {
|
468
|
-
interface ContextualClient {
|
469
|
-
}
|
470
|
-
}
|
471
|
-
/**
|
472
|
-
* A type used to create concerete types from SDK descriptors in
|
473
|
-
* case a contextual client is available.
|
474
|
-
*/
|
475
|
-
type MaybeContext<T extends Descriptors> = globalThis.ContextualClient extends {
|
476
|
-
host: Host;
|
477
|
-
} ? BuildDescriptors<T, globalThis.ContextualClient['host']> : T;
|
478
|
-
|
479
|
-
interface EmailSubscription {
|
480
|
-
/**
|
481
|
-
* Email subscription ID.
|
482
|
-
* @readonly
|
483
|
-
*/
|
484
|
-
_id?: string | null;
|
485
|
-
/** Email address. */
|
486
|
-
email?: string;
|
487
|
-
/**
|
488
|
-
* Indicates the recipient's opt-in or opt-out status
|
489
|
-
* for marketing emails.
|
490
|
-
*
|
491
|
-
* Default: `NOT_SET`.
|
492
|
-
*/
|
493
|
-
subscriptionStatus?: SubscriptionEnumStatus;
|
494
|
-
/**
|
495
|
-
* Indicates last reported status of sent emails.
|
496
|
-
*
|
497
|
-
* Default: `NOT_SET`.
|
498
|
-
*/
|
499
|
-
deliverabilityStatus?: Status;
|
500
|
-
/**
|
501
|
-
* Date and time the email subscription was created.
|
502
|
-
* @readonly
|
503
|
-
*/
|
504
|
-
_createdDate?: Date | null;
|
505
|
-
/**
|
506
|
-
* Date and time the email subscription was last updated.
|
507
|
-
* @readonly
|
508
|
-
*/
|
509
|
-
_updatedDate?: Date | null;
|
510
|
-
}
|
511
|
-
declare enum SubscriptionEnumStatus {
|
512
|
-
/** Undefined status. */
|
513
|
-
UNKNOWN = "UNKNOWN",
|
514
|
-
/** No status specified. This is the default, initial value before any info about the email address is known. */
|
515
|
-
NOT_SET = "NOT_SET",
|
516
|
-
/** Subscription confirmation was requested, but recipient hasn't confirmed yet. */
|
517
|
-
PENDING = "PENDING",
|
518
|
-
/** Recipient has opted in to marketing emails. */
|
519
|
-
SUBSCRIBED = "SUBSCRIBED",
|
520
|
-
/** Recipient has opted out of marketing emails. */
|
521
|
-
UNSUBSCRIBED = "UNSUBSCRIBED"
|
522
|
-
}
|
523
|
-
declare enum Status {
|
524
|
-
/** No status specified. This is the initial default value before any info about the email address is known. */
|
525
|
-
NOT_SET = "NOT_SET",
|
526
|
-
/** Emails to this email address are being delivered successfully. */
|
527
|
-
VALID = "VALID",
|
528
|
-
/** The last email to the recipient bounced or was rejected. */
|
529
|
-
BOUNCED = "BOUNCED",
|
530
|
-
/** The recipient registered a spam complaint with their email provider. */
|
531
|
-
SPAM_COMPLAINT = "SPAM_COMPLAINT",
|
532
|
-
/** Multiple campaigns have been delivered to this address without any engagement from the recipient. (No emails were opened and no content was clicked.) This status might impact subsequent emails sent to this address. */
|
533
|
-
INACTIVE = "INACTIVE"
|
534
|
-
}
|
535
|
-
interface V1RenderUnsubscribePageRequest {
|
536
|
-
/** Payload */
|
537
|
-
payload?: string;
|
538
|
-
/** Language */
|
539
|
-
language?: string | null;
|
540
|
-
}
|
541
|
-
interface RawHttpResponse {
|
542
|
-
body?: Uint8Array;
|
543
|
-
statusCode?: number | null;
|
544
|
-
headers?: HeadersEntry[];
|
545
|
-
}
|
546
|
-
interface HeadersEntry {
|
547
|
-
key?: string;
|
548
|
-
value?: string;
|
549
|
-
}
|
550
|
-
interface V1ConfirmUnsubscribeActionRequest {
|
551
|
-
/** Payload */
|
552
|
-
payload?: string;
|
553
|
-
}
|
554
|
-
interface Empty {
|
555
|
-
}
|
556
|
-
interface EmailSubscriptionChanged {
|
557
|
-
/** subscription */
|
558
|
-
subscription?: EmailSubscription;
|
559
|
-
}
|
560
|
-
interface GetEmailSubscriptionRequest {
|
561
|
-
_id?: string;
|
562
|
-
}
|
563
|
-
interface GetEmailSubscriptionResponse {
|
564
|
-
/** Returned email subscription */
|
565
|
-
emailSubscription?: EmailSubscription;
|
566
|
-
}
|
567
|
-
interface UpdateEmailSubscriptionRequest {
|
568
|
-
/** Email subscription to update */
|
569
|
-
subscription?: EmailSubscription;
|
570
|
-
}
|
571
|
-
interface UpdateEmailSubscriptionResponse {
|
572
|
-
/** Updated email subscription */
|
573
|
-
subscription?: EmailSubscription;
|
574
|
-
}
|
575
|
-
interface QueryEmailSubscriptionsRequest {
|
576
|
-
/**
|
577
|
-
* Filter options.
|
578
|
-
* Currently, querying is supported on the `email` field
|
579
|
-
* with the `$in` array filter.
|
580
|
-
*/
|
581
|
-
filter: Record<string, any> | null;
|
582
|
-
/**
|
583
|
-
* Pagination options. For more information, see
|
584
|
-
* [Pagination](https://dev.wix.com/api/rest/getting-started/pagination).
|
585
|
-
*/
|
586
|
-
paging?: Paging;
|
587
|
-
}
|
588
|
-
interface Paging {
|
589
|
-
/** Number of items to load. */
|
590
|
-
limit?: number | null;
|
591
|
-
/** Number of items to skip in the current sort order. */
|
592
|
-
offset?: number | null;
|
593
|
-
}
|
594
|
-
interface QueryEmailSubscriptionsResponse {
|
595
|
-
/** List of subscribed emails that matched the query options. */
|
596
|
-
subscriptions?: EmailSubscription[];
|
597
|
-
/** Metadata for the paginated results. */
|
598
|
-
metadata?: PagingMetadata;
|
599
|
-
}
|
600
|
-
interface PagingMetadata {
|
601
|
-
/** Number of items returned in the response. */
|
602
|
-
count?: number | null;
|
603
|
-
/** Offset that was requested. */
|
604
|
-
offset?: number | null;
|
605
|
-
/** Total number of items that match the query. */
|
606
|
-
total?: number | null;
|
607
|
-
/** Flag that indicates the server failed to calculate the `total` field. */
|
608
|
-
tooManyToCount?: boolean | null;
|
609
|
-
}
|
610
|
-
interface UpsertEmailSubscriptionRequest {
|
611
|
-
/** Email subscription to update or create. */
|
612
|
-
subscription?: EmailSubscription;
|
613
|
-
}
|
614
|
-
interface UpsertEmailSubscriptionResponse {
|
615
|
-
/** Updated or created email subscription. */
|
616
|
-
subscription?: EmailSubscription;
|
617
|
-
}
|
618
|
-
interface BulkUpsertEmailSubscriptionRequest {
|
619
|
-
/** List of email subscriptions to update or create. */
|
620
|
-
subscriptions: EmailSubscription[];
|
621
|
-
}
|
622
|
-
interface BulkUpsertEmailSubscriptionResponse {
|
623
|
-
/** List of updated or created email subscriptions. */
|
624
|
-
results?: BulkUpsertEmailSubscriptionResult[];
|
625
|
-
/** Numbers of successful and failed actions. */
|
626
|
-
metadata?: Metadata;
|
627
|
-
}
|
628
|
-
interface BulkUpsertEmailSubscriptionResult {
|
629
|
-
/** Position of the requested email subscription in the bulk array. */
|
630
|
-
originalIndex?: number;
|
631
|
-
/** New or updated email subscription. */
|
632
|
-
emailSubscription?: EmailSubscription;
|
633
|
-
/**
|
634
|
-
* Error information if the action failed.
|
635
|
-
* Omitted from successful actions.
|
636
|
-
*/
|
637
|
-
error?: Error;
|
638
|
-
}
|
639
|
-
interface Error {
|
640
|
-
/** Error code. */
|
641
|
-
errorCode?: string;
|
642
|
-
/** Message that contains details about the error. */
|
643
|
-
message?: string;
|
644
|
-
}
|
645
|
-
interface Metadata {
|
646
|
-
/** Number of successful actions. */
|
647
|
-
totalSuccess?: number;
|
648
|
-
/** Number of failed actions. */
|
649
|
-
totalFailure?: number;
|
650
|
-
}
|
651
|
-
interface GenerateUnsubscribeLinkRequest {
|
652
|
-
/** Email address the unsubscribe link is for. */
|
653
|
-
emailAddress: string;
|
654
|
-
/** Arbitrary parameters for closing-the-loop. */
|
655
|
-
metadata?: Record<string, string>;
|
656
|
-
/** Language for displaying unsubscribe confirmation page (optional - default EN). */
|
657
|
-
language?: string | null;
|
658
|
-
}
|
659
|
-
interface GenerateUnsubscribeLinkResponse {
|
660
|
-
/** The unsubscribe link. */
|
661
|
-
link?: string;
|
662
|
-
}
|
663
|
-
interface RenderUnsubscribePageRequest {
|
664
|
-
/** Payload */
|
665
|
-
payload?: string;
|
666
|
-
/** Language */
|
667
|
-
language?: string | null;
|
668
|
-
}
|
669
|
-
interface ConfirmUnsubscribeActionRequest {
|
670
|
-
/** Payload */
|
671
|
-
payload?: string;
|
672
|
-
}
|
673
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
674
|
-
createdEvent?: EntityCreatedEvent;
|
675
|
-
updatedEvent?: EntityUpdatedEvent;
|
676
|
-
deletedEvent?: EntityDeletedEvent;
|
677
|
-
actionEvent?: ActionEvent;
|
678
|
-
/**
|
679
|
-
* Unique event ID.
|
680
|
-
* Allows clients to ignore duplicate webhooks.
|
681
|
-
*/
|
682
|
-
_id?: string;
|
683
|
-
/**
|
684
|
-
* Assumes actions are also always typed to an entity_type
|
685
|
-
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
686
|
-
*/
|
687
|
-
entityFqdn?: string;
|
688
|
-
/**
|
689
|
-
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
690
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
691
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
692
|
-
*/
|
693
|
-
slug?: string;
|
694
|
-
/** ID of the entity associated with the event. */
|
695
|
-
entityId?: string;
|
696
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
697
|
-
eventTime?: Date | null;
|
698
|
-
/**
|
699
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
700
|
-
* (for example, GDPR).
|
701
|
-
*/
|
702
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
703
|
-
/** If present, indicates the action that triggered the event. */
|
704
|
-
originatedFrom?: string | null;
|
705
|
-
/**
|
706
|
-
* A sequence number defining the order of updates to the underlying entity.
|
707
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
708
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
709
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
710
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
711
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
712
|
-
*/
|
713
|
-
entityEventSequence?: string | null;
|
714
|
-
}
|
715
|
-
/** @oneof */
|
716
|
-
interface DomainEventBodyOneOf {
|
717
|
-
createdEvent?: EntityCreatedEvent;
|
718
|
-
updatedEvent?: EntityUpdatedEvent;
|
719
|
-
deletedEvent?: EntityDeletedEvent;
|
720
|
-
actionEvent?: ActionEvent;
|
721
|
-
}
|
722
|
-
interface EntityCreatedEvent {
|
723
|
-
entity?: string;
|
724
|
-
}
|
725
|
-
interface RestoreInfo {
|
726
|
-
deletedDate?: Date | null;
|
727
|
-
}
|
728
|
-
interface EntityUpdatedEvent {
|
729
|
-
/**
|
730
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
731
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
732
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
733
|
-
*/
|
734
|
-
currentEntity?: string;
|
735
|
-
}
|
736
|
-
interface EntityDeletedEvent {
|
737
|
-
/** Entity that was deleted */
|
738
|
-
deletedEntity?: string | null;
|
739
|
-
}
|
740
|
-
interface ActionEvent {
|
741
|
-
body?: string;
|
742
|
-
}
|
743
|
-
interface MessageEnvelope {
|
744
|
-
/** App instance ID. */
|
745
|
-
instanceId?: string | null;
|
746
|
-
/** Event type. */
|
747
|
-
eventType?: string;
|
748
|
-
/** The identification type and identity data. */
|
749
|
-
identity?: IdentificationData;
|
750
|
-
/** Stringify payload. */
|
751
|
-
data?: string;
|
752
|
-
}
|
753
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
754
|
-
/** ID of a site visitor that has not logged in to the site. */
|
755
|
-
anonymousVisitorId?: string;
|
756
|
-
/** ID of a site visitor that has logged in to the site. */
|
757
|
-
memberId?: string;
|
758
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
759
|
-
wixUserId?: string;
|
760
|
-
/** ID of an app. */
|
761
|
-
appId?: string;
|
762
|
-
/** @readonly */
|
763
|
-
identityType?: WebhookIdentityType;
|
764
|
-
}
|
765
|
-
/** @oneof */
|
766
|
-
interface IdentificationDataIdOneOf {
|
767
|
-
/** ID of a site visitor that has not logged in to the site. */
|
768
|
-
anonymousVisitorId?: string;
|
769
|
-
/** ID of a site visitor that has logged in to the site. */
|
770
|
-
memberId?: string;
|
771
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
772
|
-
wixUserId?: string;
|
773
|
-
/** ID of an app. */
|
774
|
-
appId?: string;
|
775
|
-
}
|
776
|
-
declare enum WebhookIdentityType {
|
777
|
-
UNKNOWN = "UNKNOWN",
|
778
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
779
|
-
MEMBER = "MEMBER",
|
780
|
-
WIX_USER = "WIX_USER",
|
781
|
-
APP = "APP"
|
782
|
-
}
|
783
|
-
interface EmailSubscriptionNonNullableFields {
|
784
|
-
email: string;
|
785
|
-
subscriptionStatus: SubscriptionEnumStatus;
|
786
|
-
deliverabilityStatus: Status;
|
787
|
-
}
|
788
|
-
interface QueryEmailSubscriptionsResponseNonNullableFields {
|
789
|
-
subscriptions: EmailSubscriptionNonNullableFields[];
|
790
|
-
}
|
791
|
-
interface UpsertEmailSubscriptionResponseNonNullableFields {
|
792
|
-
subscription?: EmailSubscriptionNonNullableFields;
|
793
|
-
}
|
794
|
-
interface ErrorNonNullableFields {
|
795
|
-
errorCode: string;
|
796
|
-
message: string;
|
797
|
-
}
|
798
|
-
interface BulkUpsertEmailSubscriptionResultNonNullableFields {
|
799
|
-
originalIndex: number;
|
800
|
-
emailSubscription?: EmailSubscriptionNonNullableFields;
|
801
|
-
error?: ErrorNonNullableFields;
|
802
|
-
}
|
803
|
-
interface MetadataNonNullableFields {
|
804
|
-
totalSuccess: number;
|
805
|
-
totalFailure: number;
|
806
|
-
}
|
807
|
-
interface BulkUpsertEmailSubscriptionResponseNonNullableFields {
|
808
|
-
results: BulkUpsertEmailSubscriptionResultNonNullableFields[];
|
809
|
-
metadata?: MetadataNonNullableFields;
|
810
|
-
}
|
811
|
-
interface GenerateUnsubscribeLinkResponseNonNullableFields {
|
812
|
-
link: string;
|
813
|
-
}
|
814
|
-
interface BaseEventMetadata {
|
815
|
-
/** App instance ID. */
|
816
|
-
instanceId?: string | null;
|
817
|
-
/** Event type. */
|
818
|
-
eventType?: string;
|
819
|
-
/** The identification type and identity data. */
|
820
|
-
identity?: IdentificationData;
|
821
|
-
}
|
822
|
-
interface EmailsubscriptionEmailSubscriptionChangedEnvelope {
|
823
|
-
data: EmailSubscriptionChanged;
|
824
|
-
metadata: BaseEventMetadata;
|
825
|
-
}
|
826
|
-
interface QueryEmailSubscriptionsOptions {
|
827
|
-
/**
|
828
|
-
* Pagination options. For more information, see
|
829
|
-
* [Pagination](https://dev.wix.com/api/rest/getting-started/pagination).
|
830
|
-
*/
|
831
|
-
paging?: Paging;
|
832
|
-
}
|
833
|
-
interface UpsertEmailSubscriptionOptions {
|
834
|
-
/** Email subscription to update or create. */
|
835
|
-
subscription?: EmailSubscription;
|
836
|
-
}
|
837
|
-
interface GenerateUnsubscribeLinkOptions {
|
838
|
-
/** Arbitrary parameters for closing-the-loop. */
|
839
|
-
metadata?: Record<string, string>;
|
840
|
-
/** Language for displaying unsubscribe confirmation page (optional - default EN). */
|
841
|
-
language?: string | null;
|
842
|
-
}
|
843
|
-
|
844
|
-
declare function queryEmailSubscriptions$1(httpClient: HttpClient): QueryEmailSubscriptionsSignature;
|
845
|
-
interface QueryEmailSubscriptionsSignature {
|
846
|
-
/**
|
847
|
-
* Retrieves email subscriptions,
|
848
|
-
* given the provided paging, filtering, and sorting.
|
849
|
-
*
|
850
|
-
* Currently, querying is supported on the `email` field
|
851
|
-
* with the `$in` array filter.
|
852
|
-
* For example, to query for emails "me@my.com" and "you@your.org",
|
853
|
-
* the filter should be formed like this:
|
854
|
-
*
|
855
|
-
* ```json
|
856
|
-
* { "filter": {
|
857
|
-
* "email": {
|
858
|
-
* "$in": ["me@my.com", "you@your.org"]
|
859
|
-
* }
|
860
|
-
* }
|
861
|
-
* }
|
862
|
-
* ```
|
863
|
-
*
|
864
|
-
* To learn how to query email subscriptions, see
|
865
|
-
* [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
|
866
|
-
* @param - Filter options.
|
867
|
-
* Currently, querying is supported on the `email` field
|
868
|
-
* with the `$in` array filter.
|
869
|
-
*/
|
870
|
-
(filter: Record<string, any> | null, options?: QueryEmailSubscriptionsOptions | undefined): Promise<QueryEmailSubscriptionsResponse & QueryEmailSubscriptionsResponseNonNullableFields>;
|
871
|
-
}
|
872
|
-
declare function upsertEmailSubscription$1(httpClient: HttpClient): UpsertEmailSubscriptionSignature;
|
873
|
-
interface UpsertEmailSubscriptionSignature {
|
874
|
-
/**
|
875
|
-
* Updates or creates an email subscription for the requested email.
|
876
|
-
*
|
877
|
-
* An email subscription is always returned in the response,
|
878
|
-
* regardless of whether it was updated or created.
|
879
|
-
*/
|
880
|
-
(options?: UpsertEmailSubscriptionOptions | undefined): Promise<UpsertEmailSubscriptionResponse & UpsertEmailSubscriptionResponseNonNullableFields>;
|
881
|
-
}
|
882
|
-
declare function bulkUpsertEmailSubscription$1(httpClient: HttpClient): BulkUpsertEmailSubscriptionSignature;
|
883
|
-
interface BulkUpsertEmailSubscriptionSignature {
|
884
|
-
/**
|
885
|
-
* Updates or creates multiple email subscriptions.
|
886
|
-
* @param - List of email subscriptions to update or create.
|
887
|
-
*/
|
888
|
-
(subscriptions: EmailSubscription[]): Promise<BulkUpsertEmailSubscriptionResponse & BulkUpsertEmailSubscriptionResponseNonNullableFields>;
|
889
|
-
}
|
890
|
-
declare function generateUnsubscribeLink$1(httpClient: HttpClient): GenerateUnsubscribeLinkSignature;
|
891
|
-
interface GenerateUnsubscribeLinkSignature {
|
892
|
-
/**
|
893
|
-
* Creates an unsubscribe link to be shared with the relevant recipient.
|
894
|
-
*
|
895
|
-
* If someone clicks the **Unsubscribe** button on the confirmation page,
|
896
|
-
* the recipient's `subscriptionStatus` is changed to `UNSUBSCRIBED`.
|
897
|
-
* @param - Email address the unsubscribe link is for.
|
898
|
-
*/
|
899
|
-
(emailAddress: string, options?: GenerateUnsubscribeLinkOptions | undefined): Promise<GenerateUnsubscribeLinkResponse & GenerateUnsubscribeLinkResponseNonNullableFields>;
|
900
|
-
}
|
901
|
-
declare const onEmailsubscriptionEmailSubscriptionChanged$1: EventDefinition<EmailsubscriptionEmailSubscriptionChangedEnvelope, "com.wixpress.emailsubscriptions.v1.EmailSubscriptionChanged">;
|
902
|
-
|
903
|
-
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
904
|
-
|
905
|
-
declare const queryEmailSubscriptions: MaybeContext<BuildRESTFunction<typeof queryEmailSubscriptions$1> & typeof queryEmailSubscriptions$1>;
|
906
|
-
declare const upsertEmailSubscription: MaybeContext<BuildRESTFunction<typeof upsertEmailSubscription$1> & typeof upsertEmailSubscription$1>;
|
907
|
-
declare const bulkUpsertEmailSubscription: MaybeContext<BuildRESTFunction<typeof bulkUpsertEmailSubscription$1> & typeof bulkUpsertEmailSubscription$1>;
|
908
|
-
declare const generateUnsubscribeLink: MaybeContext<BuildRESTFunction<typeof generateUnsubscribeLink$1> & typeof generateUnsubscribeLink$1>;
|
909
|
-
|
910
|
-
type _publicOnEmailsubscriptionEmailSubscriptionChangedType = typeof onEmailsubscriptionEmailSubscriptionChanged$1;
|
911
|
-
/** */
|
912
|
-
declare const onEmailsubscriptionEmailSubscriptionChanged: ReturnType<typeof createEventModule<_publicOnEmailsubscriptionEmailSubscriptionChangedType>>;
|
913
|
-
|
914
|
-
type index_d_ActionEvent = ActionEvent;
|
915
|
-
type index_d_BaseEventMetadata = BaseEventMetadata;
|
916
|
-
type index_d_BulkUpsertEmailSubscriptionRequest = BulkUpsertEmailSubscriptionRequest;
|
917
|
-
type index_d_BulkUpsertEmailSubscriptionResponse = BulkUpsertEmailSubscriptionResponse;
|
918
|
-
type index_d_BulkUpsertEmailSubscriptionResponseNonNullableFields = BulkUpsertEmailSubscriptionResponseNonNullableFields;
|
919
|
-
type index_d_BulkUpsertEmailSubscriptionResult = BulkUpsertEmailSubscriptionResult;
|
920
|
-
type index_d_ConfirmUnsubscribeActionRequest = ConfirmUnsubscribeActionRequest;
|
921
|
-
type index_d_DomainEvent = DomainEvent;
|
922
|
-
type index_d_DomainEventBodyOneOf = DomainEventBodyOneOf;
|
923
|
-
type index_d_EmailSubscription = EmailSubscription;
|
924
|
-
type index_d_EmailSubscriptionChanged = EmailSubscriptionChanged;
|
925
|
-
type index_d_EmailsubscriptionEmailSubscriptionChangedEnvelope = EmailsubscriptionEmailSubscriptionChangedEnvelope;
|
926
|
-
type index_d_Empty = Empty;
|
927
|
-
type index_d_EntityCreatedEvent = EntityCreatedEvent;
|
928
|
-
type index_d_EntityDeletedEvent = EntityDeletedEvent;
|
929
|
-
type index_d_EntityUpdatedEvent = EntityUpdatedEvent;
|
930
|
-
type index_d_Error = Error;
|
931
|
-
type index_d_GenerateUnsubscribeLinkOptions = GenerateUnsubscribeLinkOptions;
|
932
|
-
type index_d_GenerateUnsubscribeLinkRequest = GenerateUnsubscribeLinkRequest;
|
933
|
-
type index_d_GenerateUnsubscribeLinkResponse = GenerateUnsubscribeLinkResponse;
|
934
|
-
type index_d_GenerateUnsubscribeLinkResponseNonNullableFields = GenerateUnsubscribeLinkResponseNonNullableFields;
|
935
|
-
type index_d_GetEmailSubscriptionRequest = GetEmailSubscriptionRequest;
|
936
|
-
type index_d_GetEmailSubscriptionResponse = GetEmailSubscriptionResponse;
|
937
|
-
type index_d_HeadersEntry = HeadersEntry;
|
938
|
-
type index_d_IdentificationData = IdentificationData;
|
939
|
-
type index_d_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
|
940
|
-
type index_d_MessageEnvelope = MessageEnvelope;
|
941
|
-
type index_d_Metadata = Metadata;
|
942
|
-
type index_d_Paging = Paging;
|
943
|
-
type index_d_PagingMetadata = PagingMetadata;
|
944
|
-
type index_d_QueryEmailSubscriptionsOptions = QueryEmailSubscriptionsOptions;
|
945
|
-
type index_d_QueryEmailSubscriptionsRequest = QueryEmailSubscriptionsRequest;
|
946
|
-
type index_d_QueryEmailSubscriptionsResponse = QueryEmailSubscriptionsResponse;
|
947
|
-
type index_d_QueryEmailSubscriptionsResponseNonNullableFields = QueryEmailSubscriptionsResponseNonNullableFields;
|
948
|
-
type index_d_RawHttpResponse = RawHttpResponse;
|
949
|
-
type index_d_RenderUnsubscribePageRequest = RenderUnsubscribePageRequest;
|
950
|
-
type index_d_RestoreInfo = RestoreInfo;
|
951
|
-
type index_d_Status = Status;
|
952
|
-
declare const index_d_Status: typeof Status;
|
953
|
-
type index_d_SubscriptionEnumStatus = SubscriptionEnumStatus;
|
954
|
-
declare const index_d_SubscriptionEnumStatus: typeof SubscriptionEnumStatus;
|
955
|
-
type index_d_UpdateEmailSubscriptionRequest = UpdateEmailSubscriptionRequest;
|
956
|
-
type index_d_UpdateEmailSubscriptionResponse = UpdateEmailSubscriptionResponse;
|
957
|
-
type index_d_UpsertEmailSubscriptionOptions = UpsertEmailSubscriptionOptions;
|
958
|
-
type index_d_UpsertEmailSubscriptionRequest = UpsertEmailSubscriptionRequest;
|
959
|
-
type index_d_UpsertEmailSubscriptionResponse = UpsertEmailSubscriptionResponse;
|
960
|
-
type index_d_UpsertEmailSubscriptionResponseNonNullableFields = UpsertEmailSubscriptionResponseNonNullableFields;
|
961
|
-
type index_d_V1ConfirmUnsubscribeActionRequest = V1ConfirmUnsubscribeActionRequest;
|
962
|
-
type index_d_V1RenderUnsubscribePageRequest = V1RenderUnsubscribePageRequest;
|
963
|
-
type index_d_WebhookIdentityType = WebhookIdentityType;
|
964
|
-
declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
|
965
|
-
type index_d__publicOnEmailsubscriptionEmailSubscriptionChangedType = _publicOnEmailsubscriptionEmailSubscriptionChangedType;
|
966
|
-
declare const index_d_bulkUpsertEmailSubscription: typeof bulkUpsertEmailSubscription;
|
967
|
-
declare const index_d_generateUnsubscribeLink: typeof generateUnsubscribeLink;
|
968
|
-
declare const index_d_onEmailsubscriptionEmailSubscriptionChanged: typeof onEmailsubscriptionEmailSubscriptionChanged;
|
969
|
-
declare const index_d_queryEmailSubscriptions: typeof queryEmailSubscriptions;
|
970
|
-
declare const index_d_upsertEmailSubscription: typeof upsertEmailSubscription;
|
971
|
-
declare namespace index_d {
|
972
|
-
export { type index_d_ActionEvent as ActionEvent, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_BulkUpsertEmailSubscriptionRequest as BulkUpsertEmailSubscriptionRequest, type index_d_BulkUpsertEmailSubscriptionResponse as BulkUpsertEmailSubscriptionResponse, type index_d_BulkUpsertEmailSubscriptionResponseNonNullableFields as BulkUpsertEmailSubscriptionResponseNonNullableFields, type index_d_BulkUpsertEmailSubscriptionResult as BulkUpsertEmailSubscriptionResult, type index_d_ConfirmUnsubscribeActionRequest as ConfirmUnsubscribeActionRequest, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EmailSubscription as EmailSubscription, type index_d_EmailSubscriptionChanged as EmailSubscriptionChanged, type index_d_EmailsubscriptionEmailSubscriptionChangedEnvelope as EmailsubscriptionEmailSubscriptionChangedEnvelope, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_Error as Error, type index_d_GenerateUnsubscribeLinkOptions as GenerateUnsubscribeLinkOptions, type index_d_GenerateUnsubscribeLinkRequest as GenerateUnsubscribeLinkRequest, type index_d_GenerateUnsubscribeLinkResponse as GenerateUnsubscribeLinkResponse, type index_d_GenerateUnsubscribeLinkResponseNonNullableFields as GenerateUnsubscribeLinkResponseNonNullableFields, type index_d_GetEmailSubscriptionRequest as GetEmailSubscriptionRequest, type index_d_GetEmailSubscriptionResponse as GetEmailSubscriptionResponse, type index_d_HeadersEntry as HeadersEntry, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_MessageEnvelope as MessageEnvelope, type index_d_Metadata as Metadata, type index_d_Paging as Paging, type index_d_PagingMetadata as PagingMetadata, type index_d_QueryEmailSubscriptionsOptions as QueryEmailSubscriptionsOptions, type index_d_QueryEmailSubscriptionsRequest as QueryEmailSubscriptionsRequest, type index_d_QueryEmailSubscriptionsResponse as QueryEmailSubscriptionsResponse, type index_d_QueryEmailSubscriptionsResponseNonNullableFields as QueryEmailSubscriptionsResponseNonNullableFields, type index_d_RawHttpResponse as RawHttpResponse, type index_d_RenderUnsubscribePageRequest as RenderUnsubscribePageRequest, type index_d_RestoreInfo as RestoreInfo, index_d_Status as Status, index_d_SubscriptionEnumStatus as SubscriptionEnumStatus, type index_d_UpdateEmailSubscriptionRequest as UpdateEmailSubscriptionRequest, type index_d_UpdateEmailSubscriptionResponse as UpdateEmailSubscriptionResponse, type index_d_UpsertEmailSubscriptionOptions as UpsertEmailSubscriptionOptions, type index_d_UpsertEmailSubscriptionRequest as UpsertEmailSubscriptionRequest, type index_d_UpsertEmailSubscriptionResponse as UpsertEmailSubscriptionResponse, type index_d_UpsertEmailSubscriptionResponseNonNullableFields as UpsertEmailSubscriptionResponseNonNullableFields, type index_d_V1ConfirmUnsubscribeActionRequest as V1ConfirmUnsubscribeActionRequest, type index_d_V1RenderUnsubscribePageRequest as V1RenderUnsubscribePageRequest, index_d_WebhookIdentityType as WebhookIdentityType, type index_d__publicOnEmailsubscriptionEmailSubscriptionChangedType as _publicOnEmailsubscriptionEmailSubscriptionChangedType, index_d_bulkUpsertEmailSubscription as bulkUpsertEmailSubscription, index_d_generateUnsubscribeLink as generateUnsubscribeLink, index_d_onEmailsubscriptionEmailSubscriptionChanged as onEmailsubscriptionEmailSubscriptionChanged, onEmailsubscriptionEmailSubscriptionChanged$1 as publicOnEmailsubscriptionEmailSubscriptionChanged, index_d_queryEmailSubscriptions as queryEmailSubscriptions, index_d_upsertEmailSubscription as upsertEmailSubscription };
|
973
|
-
}
|
974
|
-
|
975
|
-
export { index_d as emailSubscriptions };
|