@wix/members 1.0.111 → 1.0.113
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/package.json +11 -11
- package/type-bundles/context.bundle.d.ts +128 -96
- package/type-bundles/index.bundle.d.ts +128 -96
- package/type-bundles/meta.bundle.d.ts +28 -28
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/members",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.113",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
"type-bundles"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@wix/members_authentication": "1.0.
|
|
22
|
-
"@wix/members_authorization": "1.0.
|
|
23
|
-
"@wix/members_badges": "1.0.
|
|
24
|
-
"@wix/members_custom-field": "1.0.
|
|
25
|
-
"@wix/members_custom-field-suggestion": "1.0.
|
|
26
|
-
"@wix/members_member-role-definition": "1.0.
|
|
27
|
-
"@wix/members_member-to-member-block": "1.0.
|
|
28
|
-
"@wix/members_members": "1.0.
|
|
29
|
-
"@wix/members_user-member": "1.0.
|
|
21
|
+
"@wix/members_authentication": "1.0.30",
|
|
22
|
+
"@wix/members_authorization": "1.0.7",
|
|
23
|
+
"@wix/members_badges": "1.0.35",
|
|
24
|
+
"@wix/members_custom-field": "1.0.8",
|
|
25
|
+
"@wix/members_custom-field-suggestion": "1.0.7",
|
|
26
|
+
"@wix/members_member-role-definition": "1.0.10",
|
|
27
|
+
"@wix/members_member-to-member-block": "1.0.7",
|
|
28
|
+
"@wix/members_members": "1.0.46",
|
|
29
|
+
"@wix/members_user-member": "1.0.14"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"glob": "^10.4.1",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"fqdn": ""
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
|
-
"falconPackageHash": "
|
|
54
|
+
"falconPackageHash": "7c8a5c970f0299ce4d0b46926f8fb4ee2418bd4b786070944c008922"
|
|
55
55
|
}
|
|
@@ -12,6 +12,10 @@ type Host<Environment = unknown> = {
|
|
|
12
12
|
}>;
|
|
13
13
|
};
|
|
14
14
|
environment?: Environment;
|
|
15
|
+
/**
|
|
16
|
+
* Optional name of the environment, use for logging
|
|
17
|
+
*/
|
|
18
|
+
name?: string;
|
|
15
19
|
/**
|
|
16
20
|
* Optional bast url to use for API requests, for example `www.wixapis.com`
|
|
17
21
|
*/
|
|
@@ -63,16 +67,16 @@ type APIMetadata = {
|
|
|
63
67
|
packageName?: string;
|
|
64
68
|
};
|
|
65
69
|
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
66
|
-
type EventDefinition
|
|
70
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
67
71
|
__type: 'event-definition';
|
|
68
72
|
type: Type;
|
|
69
73
|
isDomainEvent?: boolean;
|
|
70
74
|
transformations?: (envelope: unknown) => Payload;
|
|
71
75
|
__payload: Payload;
|
|
72
76
|
};
|
|
73
|
-
declare function EventDefinition
|
|
74
|
-
type EventHandler
|
|
75
|
-
type BuildEventDefinition
|
|
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;
|
|
76
80
|
|
|
77
81
|
type ServicePluginMethodInput = {
|
|
78
82
|
request: any;
|
|
@@ -271,6 +275,72 @@ type Except<ObjectType, KeysType extends keyof ObjectType, Options extends Excep
|
|
|
271
275
|
? Partial<Record<KeysType, never>>
|
|
272
276
|
: {});
|
|
273
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
|
+
|
|
274
344
|
/**
|
|
275
345
|
Extract the keys from a type where the value type of the key extends the given `Condition`.
|
|
276
346
|
|
|
@@ -303,21 +373,19 @@ type StringKeysAndUndefined = ConditionalKeys<Example, string | undefined>;
|
|
|
303
373
|
|
|
304
374
|
@category Object
|
|
305
375
|
*/
|
|
306
|
-
type ConditionalKeys<Base, Condition> =
|
|
307
|
-
// Wrap in `NonNullable` to strip away the `undefined` type from the produced union.
|
|
376
|
+
type ConditionalKeys<Base, Condition> =
|
|
308
377
|
{
|
|
309
378
|
// Map through all the keys of the given base type.
|
|
310
|
-
[Key in keyof Base]
|
|
379
|
+
[Key in keyof Base]-?:
|
|
311
380
|
// Pick only keys with types extending the given `Condition` type.
|
|
312
381
|
Base[Key] extends Condition
|
|
313
|
-
// Retain this key
|
|
314
|
-
|
|
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>
|
|
315
385
|
// Discard this key since the condition fails.
|
|
316
386
|
: never;
|
|
317
|
-
|
|
318
387
|
// Convert the produced object into a union type of the keys which passed the conditional test.
|
|
319
|
-
}[keyof Base]
|
|
320
|
-
>;
|
|
388
|
+
}[keyof Base];
|
|
321
389
|
|
|
322
390
|
/**
|
|
323
391
|
Exclude keys from a shape that matches the given `Condition`.
|
|
@@ -367,7 +435,7 @@ ConditionalKeys<Base, Condition>
|
|
|
367
435
|
* can either be a REST module or a host module.
|
|
368
436
|
* This type is recursive, so it can describe nested modules.
|
|
369
437
|
*/
|
|
370
|
-
type Descriptors = RESTFunctionDescriptor | AmbassadorFunctionDescriptor | HostModule<any, any> | EventDefinition
|
|
438
|
+
type Descriptors = RESTFunctionDescriptor | AmbassadorFunctionDescriptor | HostModule<any, any> | EventDefinition<any> | ServicePluginDefinition<any> | {
|
|
371
439
|
[key: string]: Descriptors | PublicMetadata | any;
|
|
372
440
|
};
|
|
373
441
|
/**
|
|
@@ -380,7 +448,7 @@ type BuildDescriptors<T extends Descriptors, H extends Host<any> | undefined, De
|
|
|
380
448
|
done: T;
|
|
381
449
|
recurse: T extends {
|
|
382
450
|
__type: typeof SERVICE_PLUGIN_ERROR_TYPE;
|
|
383
|
-
} ? never : T extends AmbassadorFunctionDescriptor ? BuildAmbassadorFunction<T> : T extends RESTFunctionDescriptor ? BuildRESTFunction<T> : T extends EventDefinition
|
|
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<{
|
|
384
452
|
[Key in keyof T]: T[Key] extends Descriptors ? BuildDescriptors<T[Key], H, [
|
|
385
453
|
-1,
|
|
386
454
|
0,
|
|
@@ -456,12 +524,12 @@ interface Badge {
|
|
|
456
524
|
* Date the badge was created.
|
|
457
525
|
* @readonly
|
|
458
526
|
*/
|
|
459
|
-
_createdDate?: Date;
|
|
527
|
+
_createdDate?: Date | null;
|
|
460
528
|
/**
|
|
461
529
|
* Date the badge was updated.
|
|
462
530
|
* @readonly
|
|
463
531
|
*/
|
|
464
|
-
_updatedDate?: Date;
|
|
532
|
+
_updatedDate?: Date | null;
|
|
465
533
|
}
|
|
466
534
|
interface CreateBadgeRequest {
|
|
467
535
|
/** Badge to create. */
|
|
@@ -715,7 +783,7 @@ interface DomainEvent$4 extends DomainEventBodyOneOf$4 {
|
|
|
715
783
|
/** ID of the entity associated with the event. */
|
|
716
784
|
entityId?: string;
|
|
717
785
|
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
718
|
-
eventTime?: Date;
|
|
786
|
+
eventTime?: Date | null;
|
|
719
787
|
/**
|
|
720
788
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
721
789
|
* (for example, GDPR).
|
|
@@ -744,7 +812,7 @@ interface EntityCreatedEvent$4 {
|
|
|
744
812
|
entity?: string;
|
|
745
813
|
}
|
|
746
814
|
interface RestoreInfo$3 {
|
|
747
|
-
deletedDate?: Date;
|
|
815
|
+
deletedDate?: Date | null;
|
|
748
816
|
}
|
|
749
817
|
interface EntityUpdatedEvent$4 {
|
|
750
818
|
/**
|
|
@@ -867,7 +935,7 @@ interface EventMetadata$1 extends BaseEventMetadata$1 {
|
|
|
867
935
|
/** ID of the entity associated with the event. */
|
|
868
936
|
entityId?: string;
|
|
869
937
|
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
870
|
-
eventTime?: Date;
|
|
938
|
+
eventTime?: Date | null;
|
|
871
939
|
/**
|
|
872
940
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
873
941
|
* (for example, GDPR).
|
|
@@ -952,12 +1020,12 @@ interface UpdateBadge {
|
|
|
952
1020
|
* Date the badge was created.
|
|
953
1021
|
* @readonly
|
|
954
1022
|
*/
|
|
955
|
-
_createdDate?: Date;
|
|
1023
|
+
_createdDate?: Date | null;
|
|
956
1024
|
/**
|
|
957
1025
|
* Date the badge was updated.
|
|
958
1026
|
* @readonly
|
|
959
1027
|
*/
|
|
960
|
-
_updatedDate?: Date;
|
|
1028
|
+
_updatedDate?: Date | null;
|
|
961
1029
|
}
|
|
962
1030
|
interface ListBadgesOptions {
|
|
963
1031
|
/** Pagination options. */
|
|
@@ -1125,31 +1193,13 @@ interface UpdateBadgesDisplayOrderSignature {
|
|
|
1125
1193
|
*/
|
|
1126
1194
|
(badgeIds: string[]): Promise<UpdateBadgesDisplayOrderResponse & UpdateBadgesDisplayOrderResponseNonNullableFields>;
|
|
1127
1195
|
}
|
|
1128
|
-
declare const onBadgeCreated$1: EventDefinition
|
|
1129
|
-
declare const onBadgeUpdated$1: EventDefinition
|
|
1130
|
-
declare const onBadgeDeleted$1: EventDefinition
|
|
1131
|
-
declare const onBadgeAssigned$1: EventDefinition
|
|
1132
|
-
declare const onBadgeUnassigned$1: EventDefinition
|
|
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
|
-
}
|
|
1196
|
+
declare const onBadgeCreated$1: EventDefinition<BadgeCreatedEnvelope, "wix.badges.v3.badge_created">;
|
|
1197
|
+
declare const onBadgeUpdated$1: EventDefinition<BadgeUpdatedEnvelope, "wix.badges.v3.badge_updated">;
|
|
1198
|
+
declare const onBadgeDeleted$1: EventDefinition<BadgeDeletedEnvelope, "wix.badges.v3.badge_deleted">;
|
|
1199
|
+
declare const onBadgeAssigned$1: EventDefinition<BadgeAssignedEnvelope, "wix.badges.v3.badge_badge_assigned">;
|
|
1200
|
+
declare const onBadgeUnassigned$1: EventDefinition<BadgeUnassignedEnvelope, "wix.badges.v3.badge_badge_unassigned">;
|
|
1151
1201
|
|
|
1152
|
-
declare function createEventModule$1<T extends EventDefinition
|
|
1202
|
+
declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
1153
1203
|
|
|
1154
1204
|
declare const createBadge: MaybeContext<BuildRESTFunction<typeof createBadge$1> & typeof createBadge$1>;
|
|
1155
1205
|
declare const updateBadge: MaybeContext<BuildRESTFunction<typeof updateBadge$1> & typeof updateBadge$1>;
|
|
@@ -1336,20 +1386,20 @@ interface Member$1 {
|
|
|
1336
1386
|
* Date and time when the member was created.
|
|
1337
1387
|
* @readonly
|
|
1338
1388
|
*/
|
|
1339
|
-
creationDate?: Date;
|
|
1389
|
+
creationDate?: Date | null;
|
|
1340
1390
|
/**
|
|
1341
1391
|
* Date and time when the member was last updated.
|
|
1342
1392
|
*
|
|
1343
1393
|
*
|
|
1344
1394
|
* @readonly
|
|
1345
1395
|
*/
|
|
1346
|
-
lastUpdateDate?: Date;
|
|
1396
|
+
lastUpdateDate?: Date | null;
|
|
1347
1397
|
/**
|
|
1348
1398
|
* Date and time when the member last logged in to the site.
|
|
1349
1399
|
*
|
|
1350
1400
|
* @readonly
|
|
1351
1401
|
*/
|
|
1352
|
-
lastLoginDate?: Date;
|
|
1402
|
+
lastLoginDate?: Date | null;
|
|
1353
1403
|
/**
|
|
1354
1404
|
* List of email addresses.
|
|
1355
1405
|
*
|
|
@@ -1426,7 +1476,7 @@ interface CustomField$2 extends CustomFieldValueOneOf {
|
|
|
1426
1476
|
/** Number value. */
|
|
1427
1477
|
numValue?: number;
|
|
1428
1478
|
/** Date value. */
|
|
1429
|
-
dateValue?: Date;
|
|
1479
|
+
dateValue?: Date | null;
|
|
1430
1480
|
/** Display name. */
|
|
1431
1481
|
name?: string;
|
|
1432
1482
|
}
|
|
@@ -1434,7 +1484,7 @@ interface CustomField$2 extends CustomFieldValueOneOf {
|
|
|
1434
1484
|
interface CustomFieldValueOneOf {
|
|
1435
1485
|
strValue?: string | null;
|
|
1436
1486
|
numValue?: number;
|
|
1437
|
-
dateValue?: Date;
|
|
1487
|
+
dateValue?: Date | null;
|
|
1438
1488
|
}
|
|
1439
1489
|
interface Group {
|
|
1440
1490
|
_id?: string;
|
|
@@ -2247,12 +2297,12 @@ interface UserMember {
|
|
|
2247
2297
|
* Member created timestamp.
|
|
2248
2298
|
* @readonly
|
|
2249
2299
|
*/
|
|
2250
|
-
_createdDate?: Date;
|
|
2300
|
+
_createdDate?: Date | null;
|
|
2251
2301
|
/**
|
|
2252
2302
|
* Last member updated timestamp.
|
|
2253
2303
|
* @readonly
|
|
2254
2304
|
*/
|
|
2255
|
-
_updatedDate?: Date;
|
|
2305
|
+
_updatedDate?: Date | null;
|
|
2256
2306
|
/**
|
|
2257
2307
|
* Status, e.g. approved/blocked/...
|
|
2258
2308
|
* @readonly
|
|
@@ -2401,7 +2451,7 @@ interface DomainEvent$3 extends DomainEventBodyOneOf$3 {
|
|
|
2401
2451
|
/** ID of the entity associated with the event. */
|
|
2402
2452
|
entityId?: string;
|
|
2403
2453
|
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
2404
|
-
eventTime?: Date;
|
|
2454
|
+
eventTime?: Date | null;
|
|
2405
2455
|
/**
|
|
2406
2456
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
2407
2457
|
* (for example, GDPR).
|
|
@@ -2430,7 +2480,7 @@ interface EntityCreatedEvent$3 {
|
|
|
2430
2480
|
entity?: string;
|
|
2431
2481
|
}
|
|
2432
2482
|
interface RestoreInfo$2 {
|
|
2433
|
-
deletedDate?: Date;
|
|
2483
|
+
deletedDate?: Date | null;
|
|
2434
2484
|
}
|
|
2435
2485
|
interface EntityUpdatedEvent$3 {
|
|
2436
2486
|
/**
|
|
@@ -2656,7 +2706,7 @@ interface SiteDeleted$3 {
|
|
|
2656
2706
|
}
|
|
2657
2707
|
interface DeleteContext$3 {
|
|
2658
2708
|
/** When the meta site was deleted. */
|
|
2659
|
-
dateDeleted?: Date;
|
|
2709
|
+
dateDeleted?: Date | null;
|
|
2660
2710
|
/** A status. */
|
|
2661
2711
|
deleteStatus?: DeleteStatus$3;
|
|
2662
2712
|
/** A reason (flow). */
|
|
@@ -2867,12 +2917,12 @@ interface CustomField$1 {
|
|
|
2867
2917
|
* Date and time when the field was created.
|
|
2868
2918
|
* @readonly
|
|
2869
2919
|
*/
|
|
2870
|
-
_createdDate?: Date;
|
|
2920
|
+
_createdDate?: Date | null;
|
|
2871
2921
|
/**
|
|
2872
2922
|
* Date and time when the field was updated.
|
|
2873
2923
|
* @readonly
|
|
2874
2924
|
*/
|
|
2875
|
-
_updatedDate?: Date;
|
|
2925
|
+
_updatedDate?: Date | null;
|
|
2876
2926
|
/** Revision number, used for checking the optimistic lock condition. */
|
|
2877
2927
|
revision?: string | null;
|
|
2878
2928
|
}
|
|
@@ -3220,7 +3270,7 @@ interface SiteDeleted$2 {
|
|
|
3220
3270
|
}
|
|
3221
3271
|
interface DeleteContext$2 {
|
|
3222
3272
|
/** When the meta site was deleted. */
|
|
3223
|
-
dateDeleted?: Date;
|
|
3273
|
+
dateDeleted?: Date | null;
|
|
3224
3274
|
/** A status. */
|
|
3225
3275
|
deleteStatus?: DeleteStatus$2;
|
|
3226
3276
|
/** A reason (flow). */
|
|
@@ -3322,7 +3372,7 @@ interface DomainEvent$2 extends DomainEventBodyOneOf$2 {
|
|
|
3322
3372
|
/** ID of the entity associated with the event. */
|
|
3323
3373
|
entityId?: string;
|
|
3324
3374
|
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
3325
|
-
eventTime?: Date;
|
|
3375
|
+
eventTime?: Date | null;
|
|
3326
3376
|
/**
|
|
3327
3377
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
3328
3378
|
* (for example, GDPR).
|
|
@@ -3351,7 +3401,7 @@ interface EntityCreatedEvent$2 {
|
|
|
3351
3401
|
entity?: string;
|
|
3352
3402
|
}
|
|
3353
3403
|
interface RestoreInfo$1 {
|
|
3354
|
-
deletedDate?: Date;
|
|
3404
|
+
deletedDate?: Date | null;
|
|
3355
3405
|
}
|
|
3356
3406
|
interface EntityUpdatedEvent$2 {
|
|
3357
3407
|
/**
|
|
@@ -3473,12 +3523,12 @@ interface UpdateCustomField {
|
|
|
3473
3523
|
* Date and time when the field was created.
|
|
3474
3524
|
* @readonly
|
|
3475
3525
|
*/
|
|
3476
|
-
_createdDate?: Date;
|
|
3526
|
+
_createdDate?: Date | null;
|
|
3477
3527
|
/**
|
|
3478
3528
|
* Date and time when the field was updated.
|
|
3479
3529
|
* @readonly
|
|
3480
3530
|
*/
|
|
3481
|
-
_updatedDate?: Date;
|
|
3531
|
+
_updatedDate?: Date | null;
|
|
3482
3532
|
/** Revision number, used for checking the optimistic lock condition. */
|
|
3483
3533
|
revision?: string | null;
|
|
3484
3534
|
}
|
|
@@ -3835,17 +3885,17 @@ interface Member {
|
|
|
3835
3885
|
* Date and time when the member was created.
|
|
3836
3886
|
* @readonly
|
|
3837
3887
|
*/
|
|
3838
|
-
_createdDate?: Date;
|
|
3888
|
+
_createdDate?: Date | null;
|
|
3839
3889
|
/**
|
|
3840
3890
|
* Date and time when the member was updated.
|
|
3841
3891
|
* @readonly
|
|
3842
3892
|
*/
|
|
3843
|
-
_updatedDate?: Date;
|
|
3893
|
+
_updatedDate?: Date | null;
|
|
3844
3894
|
/**
|
|
3845
3895
|
* Date and time when the member last logged in to the site.
|
|
3846
3896
|
* @readonly
|
|
3847
3897
|
*/
|
|
3848
|
-
lastLoginDate?: Date;
|
|
3898
|
+
lastLoginDate?: Date | null;
|
|
3849
3899
|
}
|
|
3850
3900
|
declare enum Status {
|
|
3851
3901
|
UNKNOWN = "UNKNOWN",
|
|
@@ -4536,7 +4586,7 @@ interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
|
|
|
4536
4586
|
/** ID of the entity associated with the event. */
|
|
4537
4587
|
entityId?: string;
|
|
4538
4588
|
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
4539
|
-
eventTime?: Date;
|
|
4589
|
+
eventTime?: Date | null;
|
|
4540
4590
|
/**
|
|
4541
4591
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
4542
4592
|
* (for example, GDPR).
|
|
@@ -4565,7 +4615,7 @@ interface EntityCreatedEvent$1 {
|
|
|
4565
4615
|
entity?: string;
|
|
4566
4616
|
}
|
|
4567
4617
|
interface RestoreInfo {
|
|
4568
|
-
deletedDate?: Date;
|
|
4618
|
+
deletedDate?: Date | null;
|
|
4569
4619
|
}
|
|
4570
4620
|
interface EntityUpdatedEvent$1 {
|
|
4571
4621
|
/**
|
|
@@ -4789,7 +4839,7 @@ interface SiteDeleted$1 {
|
|
|
4789
4839
|
}
|
|
4790
4840
|
interface DeleteContext$1 {
|
|
4791
4841
|
/** When the meta site was deleted. */
|
|
4792
|
-
dateDeleted?: Date;
|
|
4842
|
+
dateDeleted?: Date | null;
|
|
4793
4843
|
/** A status. */
|
|
4794
4844
|
deleteStatus?: DeleteStatus$1;
|
|
4795
4845
|
/** A reason (flow). */
|
|
@@ -5052,7 +5102,7 @@ interface EventMetadata extends BaseEventMetadata {
|
|
|
5052
5102
|
/** ID of the entity associated with the event. */
|
|
5053
5103
|
entityId?: string;
|
|
5054
5104
|
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
5055
|
-
eventTime?: Date;
|
|
5105
|
+
eventTime?: Date | null;
|
|
5056
5106
|
/**
|
|
5057
5107
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
5058
5108
|
* (for example, GDPR).
|
|
@@ -5267,17 +5317,17 @@ interface UpdateMember {
|
|
|
5267
5317
|
* Date and time when the member was created.
|
|
5268
5318
|
* @readonly
|
|
5269
5319
|
*/
|
|
5270
|
-
_createdDate?: Date;
|
|
5320
|
+
_createdDate?: Date | null;
|
|
5271
5321
|
/**
|
|
5272
5322
|
* Date and time when the member was updated.
|
|
5273
5323
|
* @readonly
|
|
5274
5324
|
*/
|
|
5275
|
-
_updatedDate?: Date;
|
|
5325
|
+
_updatedDate?: Date | null;
|
|
5276
5326
|
/**
|
|
5277
5327
|
* Date and time when the member last logged in to the site.
|
|
5278
5328
|
* @readonly
|
|
5279
5329
|
*/
|
|
5280
|
-
lastLoginDate?: Date;
|
|
5330
|
+
lastLoginDate?: Date | null;
|
|
5281
5331
|
}
|
|
5282
5332
|
|
|
5283
5333
|
declare function updateCurrentMemberSlug$1(httpClient: HttpClient): UpdateCurrentMemberSlugSignature;
|
|
@@ -5591,27 +5641,9 @@ interface DeleteMemberAddressesSignature {
|
|
|
5591
5641
|
*/
|
|
5592
5642
|
(_id: string): Promise<DeleteMemberAddressesResponse & DeleteMemberAddressesResponseNonNullableFields>;
|
|
5593
5643
|
}
|
|
5594
|
-
declare const onMemberUpdated$1: EventDefinition
|
|
5595
|
-
declare const onMemberDeleted$1: EventDefinition
|
|
5596
|
-
declare const onMemberCreated$1: EventDefinition
|
|
5597
|
-
|
|
5598
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
5599
|
-
__type: 'event-definition';
|
|
5600
|
-
type: Type;
|
|
5601
|
-
isDomainEvent?: boolean;
|
|
5602
|
-
transformations?: (envelope: unknown) => Payload;
|
|
5603
|
-
__payload: Payload;
|
|
5604
|
-
};
|
|
5605
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
5606
|
-
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
5607
|
-
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
5608
|
-
|
|
5609
|
-
declare global {
|
|
5610
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
5611
|
-
interface SymbolConstructor {
|
|
5612
|
-
readonly observable: symbol;
|
|
5613
|
-
}
|
|
5614
|
-
}
|
|
5644
|
+
declare const onMemberUpdated$1: EventDefinition<MemberUpdatedEnvelope, "wix.members.v1.member_updated">;
|
|
5645
|
+
declare const onMemberDeleted$1: EventDefinition<MemberDeletedEnvelope, "wix.members.v1.member_deleted">;
|
|
5646
|
+
declare const onMemberCreated$1: EventDefinition<MemberCreatedEnvelope, "wix.members.v1.member_created">;
|
|
5615
5647
|
|
|
5616
5648
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
5617
5649
|
|
|
@@ -6081,7 +6113,7 @@ interface SiteDeleted {
|
|
|
6081
6113
|
}
|
|
6082
6114
|
interface DeleteContext {
|
|
6083
6115
|
/** When the meta site was deleted. */
|
|
6084
|
-
dateDeleted?: Date;
|
|
6116
|
+
dateDeleted?: Date | null;
|
|
6085
6117
|
/** A status. */
|
|
6086
6118
|
deleteStatus?: DeleteStatus;
|
|
6087
6119
|
/** A reason (flow). */
|
|
@@ -6410,7 +6442,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
6410
6442
|
/** ID of the entity associated with the event. */
|
|
6411
6443
|
entityId?: string;
|
|
6412
6444
|
/** Event timestamp. */
|
|
6413
|
-
eventTime?: Date;
|
|
6445
|
+
eventTime?: Date | null;
|
|
6414
6446
|
/**
|
|
6415
6447
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
6416
6448
|
* (for example, GDPR).
|
|
@@ -6439,7 +6471,7 @@ interface EntityCreatedEvent {
|
|
|
6439
6471
|
entity?: string;
|
|
6440
6472
|
}
|
|
6441
6473
|
interface UndeleteInfo {
|
|
6442
|
-
deletedDate?: Date;
|
|
6474
|
+
deletedDate?: Date | null;
|
|
6443
6475
|
}
|
|
6444
6476
|
interface EntityUpdatedEvent {
|
|
6445
6477
|
/**
|
|
@@ -12,6 +12,10 @@ type Host<Environment = unknown> = {
|
|
|
12
12
|
}>;
|
|
13
13
|
};
|
|
14
14
|
environment?: Environment;
|
|
15
|
+
/**
|
|
16
|
+
* Optional name of the environment, use for logging
|
|
17
|
+
*/
|
|
18
|
+
name?: string;
|
|
15
19
|
/**
|
|
16
20
|
* Optional bast url to use for API requests, for example `www.wixapis.com`
|
|
17
21
|
*/
|
|
@@ -63,16 +67,16 @@ type APIMetadata = {
|
|
|
63
67
|
packageName?: string;
|
|
64
68
|
};
|
|
65
69
|
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
66
|
-
type EventDefinition
|
|
70
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
67
71
|
__type: 'event-definition';
|
|
68
72
|
type: Type;
|
|
69
73
|
isDomainEvent?: boolean;
|
|
70
74
|
transformations?: (envelope: unknown) => Payload;
|
|
71
75
|
__payload: Payload;
|
|
72
76
|
};
|
|
73
|
-
declare function EventDefinition
|
|
74
|
-
type EventHandler
|
|
75
|
-
type BuildEventDefinition
|
|
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;
|
|
76
80
|
|
|
77
81
|
type ServicePluginMethodInput = {
|
|
78
82
|
request: any;
|
|
@@ -271,6 +275,72 @@ type Except<ObjectType, KeysType extends keyof ObjectType, Options extends Excep
|
|
|
271
275
|
? Partial<Record<KeysType, never>>
|
|
272
276
|
: {});
|
|
273
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
|
+
|
|
274
344
|
/**
|
|
275
345
|
Extract the keys from a type where the value type of the key extends the given `Condition`.
|
|
276
346
|
|
|
@@ -303,21 +373,19 @@ type StringKeysAndUndefined = ConditionalKeys<Example, string | undefined>;
|
|
|
303
373
|
|
|
304
374
|
@category Object
|
|
305
375
|
*/
|
|
306
|
-
type ConditionalKeys<Base, Condition> =
|
|
307
|
-
// Wrap in `NonNullable` to strip away the `undefined` type from the produced union.
|
|
376
|
+
type ConditionalKeys<Base, Condition> =
|
|
308
377
|
{
|
|
309
378
|
// Map through all the keys of the given base type.
|
|
310
|
-
[Key in keyof Base]
|
|
379
|
+
[Key in keyof Base]-?:
|
|
311
380
|
// Pick only keys with types extending the given `Condition` type.
|
|
312
381
|
Base[Key] extends Condition
|
|
313
|
-
// Retain this key
|
|
314
|
-
|
|
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>
|
|
315
385
|
// Discard this key since the condition fails.
|
|
316
386
|
: never;
|
|
317
|
-
|
|
318
387
|
// Convert the produced object into a union type of the keys which passed the conditional test.
|
|
319
|
-
}[keyof Base]
|
|
320
|
-
>;
|
|
388
|
+
}[keyof Base];
|
|
321
389
|
|
|
322
390
|
/**
|
|
323
391
|
Exclude keys from a shape that matches the given `Condition`.
|
|
@@ -367,7 +435,7 @@ ConditionalKeys<Base, Condition>
|
|
|
367
435
|
* can either be a REST module or a host module.
|
|
368
436
|
* This type is recursive, so it can describe nested modules.
|
|
369
437
|
*/
|
|
370
|
-
type Descriptors = RESTFunctionDescriptor | AmbassadorFunctionDescriptor | HostModule<any, any> | EventDefinition
|
|
438
|
+
type Descriptors = RESTFunctionDescriptor | AmbassadorFunctionDescriptor | HostModule<any, any> | EventDefinition<any> | ServicePluginDefinition<any> | {
|
|
371
439
|
[key: string]: Descriptors | PublicMetadata | any;
|
|
372
440
|
};
|
|
373
441
|
/**
|
|
@@ -380,7 +448,7 @@ type BuildDescriptors<T extends Descriptors, H extends Host<any> | undefined, De
|
|
|
380
448
|
done: T;
|
|
381
449
|
recurse: T extends {
|
|
382
450
|
__type: typeof SERVICE_PLUGIN_ERROR_TYPE;
|
|
383
|
-
} ? never : T extends AmbassadorFunctionDescriptor ? BuildAmbassadorFunction<T> : T extends RESTFunctionDescriptor ? BuildRESTFunction<T> : T extends EventDefinition
|
|
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<{
|
|
384
452
|
[Key in keyof T]: T[Key] extends Descriptors ? BuildDescriptors<T[Key], H, [
|
|
385
453
|
-1,
|
|
386
454
|
0,
|
|
@@ -456,12 +524,12 @@ interface Badge {
|
|
|
456
524
|
* Date the badge was created.
|
|
457
525
|
* @readonly
|
|
458
526
|
*/
|
|
459
|
-
_createdDate?: Date;
|
|
527
|
+
_createdDate?: Date | null;
|
|
460
528
|
/**
|
|
461
529
|
* Date the badge was updated.
|
|
462
530
|
* @readonly
|
|
463
531
|
*/
|
|
464
|
-
_updatedDate?: Date;
|
|
532
|
+
_updatedDate?: Date | null;
|
|
465
533
|
}
|
|
466
534
|
interface CreateBadgeRequest {
|
|
467
535
|
/** Badge to create. */
|
|
@@ -715,7 +783,7 @@ interface DomainEvent$4 extends DomainEventBodyOneOf$4 {
|
|
|
715
783
|
/** ID of the entity associated with the event. */
|
|
716
784
|
entityId?: string;
|
|
717
785
|
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
718
|
-
eventTime?: Date;
|
|
786
|
+
eventTime?: Date | null;
|
|
719
787
|
/**
|
|
720
788
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
721
789
|
* (for example, GDPR).
|
|
@@ -744,7 +812,7 @@ interface EntityCreatedEvent$4 {
|
|
|
744
812
|
entity?: string;
|
|
745
813
|
}
|
|
746
814
|
interface RestoreInfo$3 {
|
|
747
|
-
deletedDate?: Date;
|
|
815
|
+
deletedDate?: Date | null;
|
|
748
816
|
}
|
|
749
817
|
interface EntityUpdatedEvent$4 {
|
|
750
818
|
/**
|
|
@@ -867,7 +935,7 @@ interface EventMetadata$1 extends BaseEventMetadata$1 {
|
|
|
867
935
|
/** ID of the entity associated with the event. */
|
|
868
936
|
entityId?: string;
|
|
869
937
|
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
870
|
-
eventTime?: Date;
|
|
938
|
+
eventTime?: Date | null;
|
|
871
939
|
/**
|
|
872
940
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
873
941
|
* (for example, GDPR).
|
|
@@ -952,12 +1020,12 @@ interface UpdateBadge {
|
|
|
952
1020
|
* Date the badge was created.
|
|
953
1021
|
* @readonly
|
|
954
1022
|
*/
|
|
955
|
-
_createdDate?: Date;
|
|
1023
|
+
_createdDate?: Date | null;
|
|
956
1024
|
/**
|
|
957
1025
|
* Date the badge was updated.
|
|
958
1026
|
* @readonly
|
|
959
1027
|
*/
|
|
960
|
-
_updatedDate?: Date;
|
|
1028
|
+
_updatedDate?: Date | null;
|
|
961
1029
|
}
|
|
962
1030
|
interface ListBadgesOptions {
|
|
963
1031
|
/** Pagination options. */
|
|
@@ -1125,31 +1193,13 @@ interface UpdateBadgesDisplayOrderSignature {
|
|
|
1125
1193
|
*/
|
|
1126
1194
|
(badgeIds: string[]): Promise<UpdateBadgesDisplayOrderResponse & UpdateBadgesDisplayOrderResponseNonNullableFields>;
|
|
1127
1195
|
}
|
|
1128
|
-
declare const onBadgeCreated$1: EventDefinition
|
|
1129
|
-
declare const onBadgeUpdated$1: EventDefinition
|
|
1130
|
-
declare const onBadgeDeleted$1: EventDefinition
|
|
1131
|
-
declare const onBadgeAssigned$1: EventDefinition
|
|
1132
|
-
declare const onBadgeUnassigned$1: EventDefinition
|
|
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
|
-
}
|
|
1196
|
+
declare const onBadgeCreated$1: EventDefinition<BadgeCreatedEnvelope, "wix.badges.v3.badge_created">;
|
|
1197
|
+
declare const onBadgeUpdated$1: EventDefinition<BadgeUpdatedEnvelope, "wix.badges.v3.badge_updated">;
|
|
1198
|
+
declare const onBadgeDeleted$1: EventDefinition<BadgeDeletedEnvelope, "wix.badges.v3.badge_deleted">;
|
|
1199
|
+
declare const onBadgeAssigned$1: EventDefinition<BadgeAssignedEnvelope, "wix.badges.v3.badge_badge_assigned">;
|
|
1200
|
+
declare const onBadgeUnassigned$1: EventDefinition<BadgeUnassignedEnvelope, "wix.badges.v3.badge_badge_unassigned">;
|
|
1151
1201
|
|
|
1152
|
-
declare function createEventModule$1<T extends EventDefinition
|
|
1202
|
+
declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
1153
1203
|
|
|
1154
1204
|
declare const createBadge: MaybeContext<BuildRESTFunction<typeof createBadge$1> & typeof createBadge$1>;
|
|
1155
1205
|
declare const updateBadge: MaybeContext<BuildRESTFunction<typeof updateBadge$1> & typeof updateBadge$1>;
|
|
@@ -1336,20 +1386,20 @@ interface Member$1 {
|
|
|
1336
1386
|
* Date and time when the member was created.
|
|
1337
1387
|
* @readonly
|
|
1338
1388
|
*/
|
|
1339
|
-
creationDate?: Date;
|
|
1389
|
+
creationDate?: Date | null;
|
|
1340
1390
|
/**
|
|
1341
1391
|
* Date and time when the member was last updated.
|
|
1342
1392
|
*
|
|
1343
1393
|
*
|
|
1344
1394
|
* @readonly
|
|
1345
1395
|
*/
|
|
1346
|
-
lastUpdateDate?: Date;
|
|
1396
|
+
lastUpdateDate?: Date | null;
|
|
1347
1397
|
/**
|
|
1348
1398
|
* Date and time when the member last logged in to the site.
|
|
1349
1399
|
*
|
|
1350
1400
|
* @readonly
|
|
1351
1401
|
*/
|
|
1352
|
-
lastLoginDate?: Date;
|
|
1402
|
+
lastLoginDate?: Date | null;
|
|
1353
1403
|
/**
|
|
1354
1404
|
* List of email addresses.
|
|
1355
1405
|
*
|
|
@@ -1426,7 +1476,7 @@ interface CustomField$2 extends CustomFieldValueOneOf {
|
|
|
1426
1476
|
/** Number value. */
|
|
1427
1477
|
numValue?: number;
|
|
1428
1478
|
/** Date value. */
|
|
1429
|
-
dateValue?: Date;
|
|
1479
|
+
dateValue?: Date | null;
|
|
1430
1480
|
/** Display name. */
|
|
1431
1481
|
name?: string;
|
|
1432
1482
|
}
|
|
@@ -1434,7 +1484,7 @@ interface CustomField$2 extends CustomFieldValueOneOf {
|
|
|
1434
1484
|
interface CustomFieldValueOneOf {
|
|
1435
1485
|
strValue?: string | null;
|
|
1436
1486
|
numValue?: number;
|
|
1437
|
-
dateValue?: Date;
|
|
1487
|
+
dateValue?: Date | null;
|
|
1438
1488
|
}
|
|
1439
1489
|
interface Group {
|
|
1440
1490
|
_id?: string;
|
|
@@ -2247,12 +2297,12 @@ interface UserMember {
|
|
|
2247
2297
|
* Member created timestamp.
|
|
2248
2298
|
* @readonly
|
|
2249
2299
|
*/
|
|
2250
|
-
_createdDate?: Date;
|
|
2300
|
+
_createdDate?: Date | null;
|
|
2251
2301
|
/**
|
|
2252
2302
|
* Last member updated timestamp.
|
|
2253
2303
|
* @readonly
|
|
2254
2304
|
*/
|
|
2255
|
-
_updatedDate?: Date;
|
|
2305
|
+
_updatedDate?: Date | null;
|
|
2256
2306
|
/**
|
|
2257
2307
|
* Status, e.g. approved/blocked/...
|
|
2258
2308
|
* @readonly
|
|
@@ -2401,7 +2451,7 @@ interface DomainEvent$3 extends DomainEventBodyOneOf$3 {
|
|
|
2401
2451
|
/** ID of the entity associated with the event. */
|
|
2402
2452
|
entityId?: string;
|
|
2403
2453
|
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
2404
|
-
eventTime?: Date;
|
|
2454
|
+
eventTime?: Date | null;
|
|
2405
2455
|
/**
|
|
2406
2456
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
2407
2457
|
* (for example, GDPR).
|
|
@@ -2430,7 +2480,7 @@ interface EntityCreatedEvent$3 {
|
|
|
2430
2480
|
entity?: string;
|
|
2431
2481
|
}
|
|
2432
2482
|
interface RestoreInfo$2 {
|
|
2433
|
-
deletedDate?: Date;
|
|
2483
|
+
deletedDate?: Date | null;
|
|
2434
2484
|
}
|
|
2435
2485
|
interface EntityUpdatedEvent$3 {
|
|
2436
2486
|
/**
|
|
@@ -2656,7 +2706,7 @@ interface SiteDeleted$3 {
|
|
|
2656
2706
|
}
|
|
2657
2707
|
interface DeleteContext$3 {
|
|
2658
2708
|
/** When the meta site was deleted. */
|
|
2659
|
-
dateDeleted?: Date;
|
|
2709
|
+
dateDeleted?: Date | null;
|
|
2660
2710
|
/** A status. */
|
|
2661
2711
|
deleteStatus?: DeleteStatus$3;
|
|
2662
2712
|
/** A reason (flow). */
|
|
@@ -2867,12 +2917,12 @@ interface CustomField$1 {
|
|
|
2867
2917
|
* Date and time when the field was created.
|
|
2868
2918
|
* @readonly
|
|
2869
2919
|
*/
|
|
2870
|
-
_createdDate?: Date;
|
|
2920
|
+
_createdDate?: Date | null;
|
|
2871
2921
|
/**
|
|
2872
2922
|
* Date and time when the field was updated.
|
|
2873
2923
|
* @readonly
|
|
2874
2924
|
*/
|
|
2875
|
-
_updatedDate?: Date;
|
|
2925
|
+
_updatedDate?: Date | null;
|
|
2876
2926
|
/** Revision number, used for checking the optimistic lock condition. */
|
|
2877
2927
|
revision?: string | null;
|
|
2878
2928
|
}
|
|
@@ -3220,7 +3270,7 @@ interface SiteDeleted$2 {
|
|
|
3220
3270
|
}
|
|
3221
3271
|
interface DeleteContext$2 {
|
|
3222
3272
|
/** When the meta site was deleted. */
|
|
3223
|
-
dateDeleted?: Date;
|
|
3273
|
+
dateDeleted?: Date | null;
|
|
3224
3274
|
/** A status. */
|
|
3225
3275
|
deleteStatus?: DeleteStatus$2;
|
|
3226
3276
|
/** A reason (flow). */
|
|
@@ -3322,7 +3372,7 @@ interface DomainEvent$2 extends DomainEventBodyOneOf$2 {
|
|
|
3322
3372
|
/** ID of the entity associated with the event. */
|
|
3323
3373
|
entityId?: string;
|
|
3324
3374
|
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
3325
|
-
eventTime?: Date;
|
|
3375
|
+
eventTime?: Date | null;
|
|
3326
3376
|
/**
|
|
3327
3377
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
3328
3378
|
* (for example, GDPR).
|
|
@@ -3351,7 +3401,7 @@ interface EntityCreatedEvent$2 {
|
|
|
3351
3401
|
entity?: string;
|
|
3352
3402
|
}
|
|
3353
3403
|
interface RestoreInfo$1 {
|
|
3354
|
-
deletedDate?: Date;
|
|
3404
|
+
deletedDate?: Date | null;
|
|
3355
3405
|
}
|
|
3356
3406
|
interface EntityUpdatedEvent$2 {
|
|
3357
3407
|
/**
|
|
@@ -3473,12 +3523,12 @@ interface UpdateCustomField {
|
|
|
3473
3523
|
* Date and time when the field was created.
|
|
3474
3524
|
* @readonly
|
|
3475
3525
|
*/
|
|
3476
|
-
_createdDate?: Date;
|
|
3526
|
+
_createdDate?: Date | null;
|
|
3477
3527
|
/**
|
|
3478
3528
|
* Date and time when the field was updated.
|
|
3479
3529
|
* @readonly
|
|
3480
3530
|
*/
|
|
3481
|
-
_updatedDate?: Date;
|
|
3531
|
+
_updatedDate?: Date | null;
|
|
3482
3532
|
/** Revision number, used for checking the optimistic lock condition. */
|
|
3483
3533
|
revision?: string | null;
|
|
3484
3534
|
}
|
|
@@ -3835,17 +3885,17 @@ interface Member {
|
|
|
3835
3885
|
* Date and time when the member was created.
|
|
3836
3886
|
* @readonly
|
|
3837
3887
|
*/
|
|
3838
|
-
_createdDate?: Date;
|
|
3888
|
+
_createdDate?: Date | null;
|
|
3839
3889
|
/**
|
|
3840
3890
|
* Date and time when the member was updated.
|
|
3841
3891
|
* @readonly
|
|
3842
3892
|
*/
|
|
3843
|
-
_updatedDate?: Date;
|
|
3893
|
+
_updatedDate?: Date | null;
|
|
3844
3894
|
/**
|
|
3845
3895
|
* Date and time when the member last logged in to the site.
|
|
3846
3896
|
* @readonly
|
|
3847
3897
|
*/
|
|
3848
|
-
lastLoginDate?: Date;
|
|
3898
|
+
lastLoginDate?: Date | null;
|
|
3849
3899
|
}
|
|
3850
3900
|
declare enum Status {
|
|
3851
3901
|
UNKNOWN = "UNKNOWN",
|
|
@@ -4536,7 +4586,7 @@ interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
|
|
|
4536
4586
|
/** ID of the entity associated with the event. */
|
|
4537
4587
|
entityId?: string;
|
|
4538
4588
|
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
4539
|
-
eventTime?: Date;
|
|
4589
|
+
eventTime?: Date | null;
|
|
4540
4590
|
/**
|
|
4541
4591
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
4542
4592
|
* (for example, GDPR).
|
|
@@ -4565,7 +4615,7 @@ interface EntityCreatedEvent$1 {
|
|
|
4565
4615
|
entity?: string;
|
|
4566
4616
|
}
|
|
4567
4617
|
interface RestoreInfo {
|
|
4568
|
-
deletedDate?: Date;
|
|
4618
|
+
deletedDate?: Date | null;
|
|
4569
4619
|
}
|
|
4570
4620
|
interface EntityUpdatedEvent$1 {
|
|
4571
4621
|
/**
|
|
@@ -4789,7 +4839,7 @@ interface SiteDeleted$1 {
|
|
|
4789
4839
|
}
|
|
4790
4840
|
interface DeleteContext$1 {
|
|
4791
4841
|
/** When the meta site was deleted. */
|
|
4792
|
-
dateDeleted?: Date;
|
|
4842
|
+
dateDeleted?: Date | null;
|
|
4793
4843
|
/** A status. */
|
|
4794
4844
|
deleteStatus?: DeleteStatus$1;
|
|
4795
4845
|
/** A reason (flow). */
|
|
@@ -5052,7 +5102,7 @@ interface EventMetadata extends BaseEventMetadata {
|
|
|
5052
5102
|
/** ID of the entity associated with the event. */
|
|
5053
5103
|
entityId?: string;
|
|
5054
5104
|
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
5055
|
-
eventTime?: Date;
|
|
5105
|
+
eventTime?: Date | null;
|
|
5056
5106
|
/**
|
|
5057
5107
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
5058
5108
|
* (for example, GDPR).
|
|
@@ -5267,17 +5317,17 @@ interface UpdateMember {
|
|
|
5267
5317
|
* Date and time when the member was created.
|
|
5268
5318
|
* @readonly
|
|
5269
5319
|
*/
|
|
5270
|
-
_createdDate?: Date;
|
|
5320
|
+
_createdDate?: Date | null;
|
|
5271
5321
|
/**
|
|
5272
5322
|
* Date and time when the member was updated.
|
|
5273
5323
|
* @readonly
|
|
5274
5324
|
*/
|
|
5275
|
-
_updatedDate?: Date;
|
|
5325
|
+
_updatedDate?: Date | null;
|
|
5276
5326
|
/**
|
|
5277
5327
|
* Date and time when the member last logged in to the site.
|
|
5278
5328
|
* @readonly
|
|
5279
5329
|
*/
|
|
5280
|
-
lastLoginDate?: Date;
|
|
5330
|
+
lastLoginDate?: Date | null;
|
|
5281
5331
|
}
|
|
5282
5332
|
|
|
5283
5333
|
declare function updateCurrentMemberSlug$1(httpClient: HttpClient): UpdateCurrentMemberSlugSignature;
|
|
@@ -5591,27 +5641,9 @@ interface DeleteMemberAddressesSignature {
|
|
|
5591
5641
|
*/
|
|
5592
5642
|
(_id: string): Promise<DeleteMemberAddressesResponse & DeleteMemberAddressesResponseNonNullableFields>;
|
|
5593
5643
|
}
|
|
5594
|
-
declare const onMemberUpdated$1: EventDefinition
|
|
5595
|
-
declare const onMemberDeleted$1: EventDefinition
|
|
5596
|
-
declare const onMemberCreated$1: EventDefinition
|
|
5597
|
-
|
|
5598
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
5599
|
-
__type: 'event-definition';
|
|
5600
|
-
type: Type;
|
|
5601
|
-
isDomainEvent?: boolean;
|
|
5602
|
-
transformations?: (envelope: unknown) => Payload;
|
|
5603
|
-
__payload: Payload;
|
|
5604
|
-
};
|
|
5605
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
5606
|
-
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
5607
|
-
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
5608
|
-
|
|
5609
|
-
declare global {
|
|
5610
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
5611
|
-
interface SymbolConstructor {
|
|
5612
|
-
readonly observable: symbol;
|
|
5613
|
-
}
|
|
5614
|
-
}
|
|
5644
|
+
declare const onMemberUpdated$1: EventDefinition<MemberUpdatedEnvelope, "wix.members.v1.member_updated">;
|
|
5645
|
+
declare const onMemberDeleted$1: EventDefinition<MemberDeletedEnvelope, "wix.members.v1.member_deleted">;
|
|
5646
|
+
declare const onMemberCreated$1: EventDefinition<MemberCreatedEnvelope, "wix.members.v1.member_created">;
|
|
5615
5647
|
|
|
5616
5648
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
5617
5649
|
|
|
@@ -6081,7 +6113,7 @@ interface SiteDeleted {
|
|
|
6081
6113
|
}
|
|
6082
6114
|
interface DeleteContext {
|
|
6083
6115
|
/** When the meta site was deleted. */
|
|
6084
|
-
dateDeleted?: Date;
|
|
6116
|
+
dateDeleted?: Date | null;
|
|
6085
6117
|
/** A status. */
|
|
6086
6118
|
deleteStatus?: DeleteStatus;
|
|
6087
6119
|
/** A reason (flow). */
|
|
@@ -6410,7 +6442,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
6410
6442
|
/** ID of the entity associated with the event. */
|
|
6411
6443
|
entityId?: string;
|
|
6412
6444
|
/** Event timestamp. */
|
|
6413
|
-
eventTime?: Date;
|
|
6445
|
+
eventTime?: Date | null;
|
|
6414
6446
|
/**
|
|
6415
6447
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
6416
6448
|
* (for example, GDPR).
|
|
@@ -6439,7 +6471,7 @@ interface EntityCreatedEvent {
|
|
|
6439
6471
|
entity?: string;
|
|
6440
6472
|
}
|
|
6441
6473
|
interface UndeleteInfo {
|
|
6442
|
-
deletedDate?: Date;
|
|
6474
|
+
deletedDate?: Date | null;
|
|
6443
6475
|
}
|
|
6444
6476
|
interface EntityUpdatedEvent {
|
|
6445
6477
|
/**
|
|
@@ -44,12 +44,12 @@ interface Badge$1 {
|
|
|
44
44
|
* Date the badge was created.
|
|
45
45
|
* @readonly
|
|
46
46
|
*/
|
|
47
|
-
createdDate?: Date;
|
|
47
|
+
createdDate?: Date | null;
|
|
48
48
|
/**
|
|
49
49
|
* Date the badge was updated.
|
|
50
50
|
* @readonly
|
|
51
51
|
*/
|
|
52
|
-
updatedDate?: Date;
|
|
52
|
+
updatedDate?: Date | null;
|
|
53
53
|
}
|
|
54
54
|
interface CreateBadgeRequest$1 {
|
|
55
55
|
/** Badge to create. */
|
|
@@ -264,12 +264,12 @@ interface Badge {
|
|
|
264
264
|
* Date the badge was created.
|
|
265
265
|
* @readonly
|
|
266
266
|
*/
|
|
267
|
-
_createdDate?: Date;
|
|
267
|
+
_createdDate?: Date | null;
|
|
268
268
|
/**
|
|
269
269
|
* Date the badge was updated.
|
|
270
270
|
* @readonly
|
|
271
271
|
*/
|
|
272
|
-
_updatedDate?: Date;
|
|
272
|
+
_updatedDate?: Date | null;
|
|
273
273
|
}
|
|
274
274
|
interface CreateBadgeRequest {
|
|
275
275
|
/** Badge to create. */
|
|
@@ -533,17 +533,17 @@ interface Member$3 {
|
|
|
533
533
|
* date the member was created
|
|
534
534
|
* @readonly
|
|
535
535
|
*/
|
|
536
|
-
creationDate?: Date;
|
|
536
|
+
creationDate?: Date | null;
|
|
537
537
|
/**
|
|
538
538
|
* date the member was last updated
|
|
539
539
|
* @readonly
|
|
540
540
|
*/
|
|
541
|
-
lastUpdateDate?: Date;
|
|
541
|
+
lastUpdateDate?: Date | null;
|
|
542
542
|
/**
|
|
543
543
|
* date of last login
|
|
544
544
|
* @readonly
|
|
545
545
|
*/
|
|
546
|
-
lastLoginDate?: Date;
|
|
546
|
+
lastLoginDate?: Date | null;
|
|
547
547
|
/**
|
|
548
548
|
* member's email addresses
|
|
549
549
|
* (returned when `include_contact_details` is set to `true`)
|
|
@@ -619,14 +619,14 @@ interface Address$3 {
|
|
|
619
619
|
interface CustomField$5 extends CustomFieldValueOneOf$1 {
|
|
620
620
|
strValue?: string | null;
|
|
621
621
|
numValue?: number;
|
|
622
|
-
dateValue?: Date;
|
|
622
|
+
dateValue?: Date | null;
|
|
623
623
|
name?: string;
|
|
624
624
|
}
|
|
625
625
|
/** @oneof */
|
|
626
626
|
interface CustomFieldValueOneOf$1 {
|
|
627
627
|
strValue?: string | null;
|
|
628
628
|
numValue?: number;
|
|
629
|
-
dateValue?: Date;
|
|
629
|
+
dateValue?: Date | null;
|
|
630
630
|
}
|
|
631
631
|
interface Image$4 {
|
|
632
632
|
/** WixMedia image ID. */
|
|
@@ -979,20 +979,20 @@ interface Member$2 {
|
|
|
979
979
|
* Date and time when the member was created.
|
|
980
980
|
* @readonly
|
|
981
981
|
*/
|
|
982
|
-
creationDate?: Date;
|
|
982
|
+
creationDate?: Date | null;
|
|
983
983
|
/**
|
|
984
984
|
* Date and time when the member was last updated.
|
|
985
985
|
*
|
|
986
986
|
*
|
|
987
987
|
* @readonly
|
|
988
988
|
*/
|
|
989
|
-
lastUpdateDate?: Date;
|
|
989
|
+
lastUpdateDate?: Date | null;
|
|
990
990
|
/**
|
|
991
991
|
* Date and time when the member last logged in to the site.
|
|
992
992
|
*
|
|
993
993
|
* @readonly
|
|
994
994
|
*/
|
|
995
|
-
lastLoginDate?: Date;
|
|
995
|
+
lastLoginDate?: Date | null;
|
|
996
996
|
/**
|
|
997
997
|
* List of email addresses.
|
|
998
998
|
*
|
|
@@ -1069,7 +1069,7 @@ interface CustomField$4 extends CustomFieldValueOneOf {
|
|
|
1069
1069
|
/** Number value. */
|
|
1070
1070
|
numValue?: number;
|
|
1071
1071
|
/** Date value. */
|
|
1072
|
-
dateValue?: Date;
|
|
1072
|
+
dateValue?: Date | null;
|
|
1073
1073
|
/** Display name. */
|
|
1074
1074
|
name?: string;
|
|
1075
1075
|
}
|
|
@@ -1077,7 +1077,7 @@ interface CustomField$4 extends CustomFieldValueOneOf {
|
|
|
1077
1077
|
interface CustomFieldValueOneOf {
|
|
1078
1078
|
strValue?: string | null;
|
|
1079
1079
|
numValue?: number;
|
|
1080
|
-
dateValue?: Date;
|
|
1080
|
+
dateValue?: Date | null;
|
|
1081
1081
|
}
|
|
1082
1082
|
interface Group {
|
|
1083
1083
|
_id?: string;
|
|
@@ -1410,12 +1410,12 @@ interface UserMember$1 {
|
|
|
1410
1410
|
* Member created timestamp.
|
|
1411
1411
|
* @readonly
|
|
1412
1412
|
*/
|
|
1413
|
-
createdDate?: Date;
|
|
1413
|
+
createdDate?: Date | null;
|
|
1414
1414
|
/**
|
|
1415
1415
|
* Last member updated timestamp.
|
|
1416
1416
|
* @readonly
|
|
1417
1417
|
*/
|
|
1418
|
-
updatedDate?: Date;
|
|
1418
|
+
updatedDate?: Date | null;
|
|
1419
1419
|
/**
|
|
1420
1420
|
* Status, e.g. approved/blocked/...
|
|
1421
1421
|
* @readonly
|
|
@@ -1598,12 +1598,12 @@ interface UserMember {
|
|
|
1598
1598
|
* Member created timestamp.
|
|
1599
1599
|
* @readonly
|
|
1600
1600
|
*/
|
|
1601
|
-
_createdDate?: Date;
|
|
1601
|
+
_createdDate?: Date | null;
|
|
1602
1602
|
/**
|
|
1603
1603
|
* Last member updated timestamp.
|
|
1604
1604
|
* @readonly
|
|
1605
1605
|
*/
|
|
1606
|
-
_updatedDate?: Date;
|
|
1606
|
+
_updatedDate?: Date | null;
|
|
1607
1607
|
/**
|
|
1608
1608
|
* Status, e.g. approved/blocked/...
|
|
1609
1609
|
* @readonly
|
|
@@ -1800,12 +1800,12 @@ interface CustomField$3 {
|
|
|
1800
1800
|
* Date and time when the field was created.
|
|
1801
1801
|
* @readonly
|
|
1802
1802
|
*/
|
|
1803
|
-
createdDate?: Date;
|
|
1803
|
+
createdDate?: Date | null;
|
|
1804
1804
|
/**
|
|
1805
1805
|
* Date and time when the field was updated.
|
|
1806
1806
|
* @readonly
|
|
1807
1807
|
*/
|
|
1808
|
-
updatedDate?: Date;
|
|
1808
|
+
updatedDate?: Date | null;
|
|
1809
1809
|
/** Revision number, used for checking the optimistic lock condition. */
|
|
1810
1810
|
revision?: string | null;
|
|
1811
1811
|
}
|
|
@@ -1994,12 +1994,12 @@ interface CustomField$2 {
|
|
|
1994
1994
|
* Date and time when the field was created.
|
|
1995
1995
|
* @readonly
|
|
1996
1996
|
*/
|
|
1997
|
-
_createdDate?: Date;
|
|
1997
|
+
_createdDate?: Date | null;
|
|
1998
1998
|
/**
|
|
1999
1999
|
* Date and time when the field was updated.
|
|
2000
2000
|
* @readonly
|
|
2001
2001
|
*/
|
|
2002
|
-
_updatedDate?: Date;
|
|
2002
|
+
_updatedDate?: Date | null;
|
|
2003
2003
|
/** Revision number, used for checking the optimistic lock condition. */
|
|
2004
2004
|
revision?: string | null;
|
|
2005
2005
|
}
|
|
@@ -2493,17 +2493,17 @@ interface Member$1 {
|
|
|
2493
2493
|
* Date and time when the member was created.
|
|
2494
2494
|
* @readonly
|
|
2495
2495
|
*/
|
|
2496
|
-
createdDate?: Date;
|
|
2496
|
+
createdDate?: Date | null;
|
|
2497
2497
|
/**
|
|
2498
2498
|
* Date and time when the member was updated.
|
|
2499
2499
|
* @readonly
|
|
2500
2500
|
*/
|
|
2501
|
-
updatedDate?: Date;
|
|
2501
|
+
updatedDate?: Date | null;
|
|
2502
2502
|
/**
|
|
2503
2503
|
* Date and time when the member last logged in to the site.
|
|
2504
2504
|
* @readonly
|
|
2505
2505
|
*/
|
|
2506
|
-
lastLoginDate?: Date;
|
|
2506
|
+
lastLoginDate?: Date | null;
|
|
2507
2507
|
}
|
|
2508
2508
|
declare enum Status$1 {
|
|
2509
2509
|
UNKNOWN = "UNKNOWN",
|
|
@@ -3153,17 +3153,17 @@ interface Member {
|
|
|
3153
3153
|
* Date and time when the member was created.
|
|
3154
3154
|
* @readonly
|
|
3155
3155
|
*/
|
|
3156
|
-
_createdDate?: Date;
|
|
3156
|
+
_createdDate?: Date | null;
|
|
3157
3157
|
/**
|
|
3158
3158
|
* Date and time when the member was updated.
|
|
3159
3159
|
* @readonly
|
|
3160
3160
|
*/
|
|
3161
|
-
_updatedDate?: Date;
|
|
3161
|
+
_updatedDate?: Date | null;
|
|
3162
3162
|
/**
|
|
3163
3163
|
* Date and time when the member last logged in to the site.
|
|
3164
3164
|
* @readonly
|
|
3165
3165
|
*/
|
|
3166
|
-
lastLoginDate?: Date;
|
|
3166
|
+
lastLoginDate?: Date | null;
|
|
3167
3167
|
}
|
|
3168
3168
|
declare enum Status {
|
|
3169
3169
|
UNKNOWN = "UNKNOWN",
|