@wix/data 1.0.161 → 1.0.163
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/data",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.163",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"service-plugins"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@wix/data_collections": "1.0.
|
|
23
|
-
"@wix/data_external-database": "1.0.
|
|
24
|
-
"@wix/data_external-database-connections": "1.0.
|
|
25
|
-
"@wix/data_indexes": "1.0.
|
|
26
|
-
"@wix/data_items": "1.0.
|
|
22
|
+
"@wix/data_collections": "1.0.53",
|
|
23
|
+
"@wix/data_external-database": "1.0.24",
|
|
24
|
+
"@wix/data_external-database-connections": "1.0.44",
|
|
25
|
+
"@wix/data_indexes": "1.0.37",
|
|
26
|
+
"@wix/data_items": "1.0.54"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"glob": "^10.4.1",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"fqdn": ""
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "de6e0a77b2a61b98441901ecdfa7fd9ffd7cc315f331eb8f1aebd8ca"
|
|
52
52
|
}
|
|
@@ -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,
|
|
@@ -739,7 +807,7 @@ interface CreateExternalDatabaseConnectionResponseNonNullableFields {
|
|
|
739
807
|
interface UpdateExternalDatabaseConnectionResponseNonNullableFields {
|
|
740
808
|
externalDatabaseConnection?: ExternalDatabaseConnectionNonNullableFields;
|
|
741
809
|
}
|
|
742
|
-
interface BaseEventMetadata$
|
|
810
|
+
interface BaseEventMetadata$1 {
|
|
743
811
|
/** App instance ID. */
|
|
744
812
|
instanceId?: string | null;
|
|
745
813
|
/** Event type. */
|
|
@@ -747,7 +815,7 @@ interface BaseEventMetadata$2 {
|
|
|
747
815
|
/** The identification type and identity data. */
|
|
748
816
|
identity?: IdentificationData$2;
|
|
749
817
|
}
|
|
750
|
-
interface EventMetadata$
|
|
818
|
+
interface EventMetadata$1 extends BaseEventMetadata$1 {
|
|
751
819
|
/**
|
|
752
820
|
* Unique event ID.
|
|
753
821
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -787,14 +855,14 @@ interface EventMetadata$2 extends BaseEventMetadata$2 {
|
|
|
787
855
|
}
|
|
788
856
|
interface ExternalDatabaseConnectionCreatedEnvelope {
|
|
789
857
|
entity: ExternalDatabaseConnection;
|
|
790
|
-
metadata: EventMetadata$
|
|
858
|
+
metadata: EventMetadata$1;
|
|
791
859
|
}
|
|
792
860
|
interface ExternalDatabaseConnectionUpdatedEnvelope {
|
|
793
861
|
entity: ExternalDatabaseConnection;
|
|
794
|
-
metadata: EventMetadata$
|
|
862
|
+
metadata: EventMetadata$1;
|
|
795
863
|
}
|
|
796
864
|
interface ExternalDatabaseConnectionDeletedEnvelope {
|
|
797
|
-
metadata: EventMetadata$
|
|
865
|
+
metadata: EventMetadata$1;
|
|
798
866
|
}
|
|
799
867
|
interface ListExternalDatabaseConnectionsOptions {
|
|
800
868
|
/** Paging */
|
|
@@ -883,29 +951,11 @@ interface DeleteExternalDatabaseConnectionSignature {
|
|
|
883
951
|
*/
|
|
884
952
|
(name: string): Promise<void>;
|
|
885
953
|
}
|
|
886
|
-
declare const onExternalDatabaseConnectionCreated$1: EventDefinition
|
|
887
|
-
declare const onExternalDatabaseConnectionUpdated$1: EventDefinition
|
|
888
|
-
declare const onExternalDatabaseConnectionDeleted$1: EventDefinition
|
|
954
|
+
declare const onExternalDatabaseConnectionCreated$1: EventDefinition<ExternalDatabaseConnectionCreatedEnvelope, "wix.data.v1.external_database_connection_created">;
|
|
955
|
+
declare const onExternalDatabaseConnectionUpdated$1: EventDefinition<ExternalDatabaseConnectionUpdatedEnvelope, "wix.data.v1.external_database_connection_updated">;
|
|
956
|
+
declare const onExternalDatabaseConnectionDeleted$1: EventDefinition<ExternalDatabaseConnectionDeletedEnvelope, "wix.data.v1.external_database_connection_deleted">;
|
|
889
957
|
|
|
890
|
-
|
|
891
|
-
__type: 'event-definition';
|
|
892
|
-
type: Type;
|
|
893
|
-
isDomainEvent?: boolean;
|
|
894
|
-
transformations?: (envelope: unknown) => Payload;
|
|
895
|
-
__payload: Payload;
|
|
896
|
-
};
|
|
897
|
-
declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
|
|
898
|
-
type EventHandler$2<T extends EventDefinition$2> = (payload: T['__payload']) => void | Promise<void>;
|
|
899
|
-
type BuildEventDefinition$2<T extends EventDefinition$2<any, string>> = (handler: EventHandler$2<T>) => void;
|
|
900
|
-
|
|
901
|
-
declare global {
|
|
902
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
903
|
-
interface SymbolConstructor {
|
|
904
|
-
readonly observable: symbol;
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
|
-
|
|
908
|
-
declare function createEventModule$2<T extends EventDefinition$2<any, string>>(eventDefinition: T): BuildEventDefinition$2<T> & T;
|
|
958
|
+
declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
909
959
|
|
|
910
960
|
declare const getExternalDatabaseConnection: MaybeContext<BuildRESTFunction<typeof getExternalDatabaseConnection$1> & typeof getExternalDatabaseConnection$1>;
|
|
911
961
|
declare const listExternalDatabaseConnections: MaybeContext<BuildRESTFunction<typeof listExternalDatabaseConnections$1> & typeof listExternalDatabaseConnections$1>;
|
|
@@ -917,19 +967,19 @@ type _publicOnExternalDatabaseConnectionCreatedType = typeof onExternalDatabaseC
|
|
|
917
967
|
/**
|
|
918
968
|
* Triggered when an external database connection is created.
|
|
919
969
|
*/
|
|
920
|
-
declare const onExternalDatabaseConnectionCreated: ReturnType<typeof createEventModule$
|
|
970
|
+
declare const onExternalDatabaseConnectionCreated: ReturnType<typeof createEventModule$1<_publicOnExternalDatabaseConnectionCreatedType>>;
|
|
921
971
|
|
|
922
972
|
type _publicOnExternalDatabaseConnectionUpdatedType = typeof onExternalDatabaseConnectionUpdated$1;
|
|
923
973
|
/**
|
|
924
974
|
* Triggered when an external database connection is updated.
|
|
925
975
|
*/
|
|
926
|
-
declare const onExternalDatabaseConnectionUpdated: ReturnType<typeof createEventModule$
|
|
976
|
+
declare const onExternalDatabaseConnectionUpdated: ReturnType<typeof createEventModule$1<_publicOnExternalDatabaseConnectionUpdatedType>>;
|
|
927
977
|
|
|
928
978
|
type _publicOnExternalDatabaseConnectionDeletedType = typeof onExternalDatabaseConnectionDeleted$1;
|
|
929
979
|
/**
|
|
930
980
|
* Triggered when an external database connection is deleted.
|
|
931
981
|
*/
|
|
932
|
-
declare const onExternalDatabaseConnectionDeleted: ReturnType<typeof createEventModule$
|
|
982
|
+
declare const onExternalDatabaseConnectionDeleted: ReturnType<typeof createEventModule$1<_publicOnExternalDatabaseConnectionDeletedType>>;
|
|
933
983
|
|
|
934
984
|
type context$3_Capabilities = Capabilities;
|
|
935
985
|
type context$3_CauseOfFailure = CauseOfFailure;
|
|
@@ -977,7 +1027,7 @@ declare const context$3_onExternalDatabaseConnectionDeleted: typeof onExternalDa
|
|
|
977
1027
|
declare const context$3_onExternalDatabaseConnectionUpdated: typeof onExternalDatabaseConnectionUpdated;
|
|
978
1028
|
declare const context$3_updateExternalDatabaseConnection: typeof updateExternalDatabaseConnection;
|
|
979
1029
|
declare namespace context$3 {
|
|
980
|
-
export { type ActionEvent$2 as ActionEvent, type BaseEventMetadata$
|
|
1030
|
+
export { type ActionEvent$2 as ActionEvent, type BaseEventMetadata$1 as BaseEventMetadata, type context$3_Capabilities as Capabilities, context$3_CauseOfFailure as CauseOfFailure, context$3_CollectionsFound as CollectionsFound, type context$3_ConnectionStatus as ConnectionStatus, context$3_ConnectionType as ConnectionType, type context$3_CreateExternalDatabaseConnectionOptions as CreateExternalDatabaseConnectionOptions, type context$3_CreateExternalDatabaseConnectionRequest as CreateExternalDatabaseConnectionRequest, type context$3_CreateExternalDatabaseConnectionResponse as CreateExternalDatabaseConnectionResponse, type context$3_CreateExternalDatabaseConnectionResponseNonNullableFields as CreateExternalDatabaseConnectionResponseNonNullableFields, type context$3_DeleteExternalDatabaseConnectionRequest as DeleteExternalDatabaseConnectionRequest, type context$3_DeleteExternalDatabaseConnectionResponse as DeleteExternalDatabaseConnectionResponse, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type context$3_ExternalDatabaseConnection as ExternalDatabaseConnection, type context$3_ExternalDatabaseConnectionCreatedEnvelope as ExternalDatabaseConnectionCreatedEnvelope, type context$3_ExternalDatabaseConnectionDeletedEnvelope as ExternalDatabaseConnectionDeletedEnvelope, type context$3_ExternalDatabaseConnectionNonNullableFields as ExternalDatabaseConnectionNonNullableFields, type context$3_ExternalDatabaseConnectionUpdatedEnvelope as ExternalDatabaseConnectionUpdatedEnvelope, context$3_FieldType as FieldType, type context$3_GetExternalDatabaseConnectionRequest as GetExternalDatabaseConnectionRequest, type context$3_GetExternalDatabaseConnectionResponse as GetExternalDatabaseConnectionResponse, type context$3_GetExternalDatabaseConnectionResponseNonNullableFields as GetExternalDatabaseConnectionResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type context$3_ListExternalDatabaseConnectionsOptions as ListExternalDatabaseConnectionsOptions, type context$3_ListExternalDatabaseConnectionsRequest as ListExternalDatabaseConnectionsRequest, type context$3_ListExternalDatabaseConnectionsResponse as ListExternalDatabaseConnectionsResponse, type context$3_ListExternalDatabaseConnectionsResponseNonNullableFields as ListExternalDatabaseConnectionsResponseNonNullableFields, type MessageEnvelope$2 as MessageEnvelope, type Paging$3 as Paging, type PagingMetadata$1 as PagingMetadata, context$3_ProtocolVersion as ProtocolVersion, type RestoreInfo$2 as RestoreInfo, type context$3_UpdateExternalDatabaseConnection as UpdateExternalDatabaseConnection, type context$3_UpdateExternalDatabaseConnectionRequest as UpdateExternalDatabaseConnectionRequest, type context$3_UpdateExternalDatabaseConnectionResponse as UpdateExternalDatabaseConnectionResponse, type context$3_UpdateExternalDatabaseConnectionResponseNonNullableFields as UpdateExternalDatabaseConnectionResponseNonNullableFields, WebhookIdentityType$2 as WebhookIdentityType, type context$3__publicOnExternalDatabaseConnectionCreatedType as _publicOnExternalDatabaseConnectionCreatedType, type context$3__publicOnExternalDatabaseConnectionDeletedType as _publicOnExternalDatabaseConnectionDeletedType, type context$3__publicOnExternalDatabaseConnectionUpdatedType as _publicOnExternalDatabaseConnectionUpdatedType, context$3_createExternalDatabaseConnection as createExternalDatabaseConnection, context$3_deleteExternalDatabaseConnection as deleteExternalDatabaseConnection, context$3_getExternalDatabaseConnection as getExternalDatabaseConnection, context$3_listExternalDatabaseConnections as listExternalDatabaseConnections, context$3_onExternalDatabaseConnectionCreated as onExternalDatabaseConnectionCreated, context$3_onExternalDatabaseConnectionDeleted as onExternalDatabaseConnectionDeleted, context$3_onExternalDatabaseConnectionUpdated as onExternalDatabaseConnectionUpdated, onExternalDatabaseConnectionCreated$1 as publicOnExternalDatabaseConnectionCreated, onExternalDatabaseConnectionDeleted$1 as publicOnExternalDatabaseConnectionDeleted, onExternalDatabaseConnectionUpdated$1 as publicOnExternalDatabaseConnectionUpdated, context$3_updateExternalDatabaseConnection as updateExternalDatabaseConnection };
|
|
981
1031
|
}
|
|
982
1032
|
|
|
983
1033
|
/** A data collection determines the structure of data to be stored in a database. */
|
|
@@ -2194,71 +2244,6 @@ interface ListDataCollectionsResponseNonNullableFields {
|
|
|
2194
2244
|
interface UpdateDataCollectionResponseNonNullableFields {
|
|
2195
2245
|
collection?: DataCollectionNonNullableFields;
|
|
2196
2246
|
}
|
|
2197
|
-
interface BaseEventMetadata$1 {
|
|
2198
|
-
/** App instance ID. */
|
|
2199
|
-
instanceId?: string | null;
|
|
2200
|
-
/** Event type. */
|
|
2201
|
-
eventType?: string;
|
|
2202
|
-
/** The identification type and identity data. */
|
|
2203
|
-
identity?: IdentificationData$1;
|
|
2204
|
-
}
|
|
2205
|
-
interface EventMetadata$1 extends BaseEventMetadata$1 {
|
|
2206
|
-
/**
|
|
2207
|
-
* Unique event ID.
|
|
2208
|
-
* Allows clients to ignore duplicate webhooks.
|
|
2209
|
-
*/
|
|
2210
|
-
_id?: string;
|
|
2211
|
-
/**
|
|
2212
|
-
* Assumes actions are also always typed to an entity_type
|
|
2213
|
-
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
2214
|
-
*/
|
|
2215
|
-
entityFqdn?: string;
|
|
2216
|
-
/**
|
|
2217
|
-
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
2218
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
2219
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
2220
|
-
*/
|
|
2221
|
-
slug?: string;
|
|
2222
|
-
/** ID of the entity associated with the event. */
|
|
2223
|
-
entityId?: string;
|
|
2224
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
2225
|
-
eventTime?: Date;
|
|
2226
|
-
/**
|
|
2227
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
2228
|
-
* (for example, GDPR).
|
|
2229
|
-
*/
|
|
2230
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
2231
|
-
/** If present, indicates the action that triggered the event. */
|
|
2232
|
-
originatedFrom?: string | null;
|
|
2233
|
-
/**
|
|
2234
|
-
* A sequence number defining the order of updates to the underlying entity.
|
|
2235
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
2236
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
2237
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
2238
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
2239
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
2240
|
-
*/
|
|
2241
|
-
entityEventSequence?: string | null;
|
|
2242
|
-
}
|
|
2243
|
-
interface DataCollectionClonedEnvelope {
|
|
2244
|
-
data: DataCollectionClonedEvent;
|
|
2245
|
-
metadata: EventMetadata$1;
|
|
2246
|
-
}
|
|
2247
|
-
interface DataCollectionChangedEnvelope {
|
|
2248
|
-
data: DataCollectionChangedEvent;
|
|
2249
|
-
metadata: EventMetadata$1;
|
|
2250
|
-
}
|
|
2251
|
-
interface DataCollectionCreatedEnvelope {
|
|
2252
|
-
entity: DataCollection;
|
|
2253
|
-
metadata: EventMetadata$1;
|
|
2254
|
-
}
|
|
2255
|
-
interface DataCollectionUpdatedEnvelope {
|
|
2256
|
-
entity: DataCollection;
|
|
2257
|
-
metadata: EventMetadata$1;
|
|
2258
|
-
}
|
|
2259
|
-
interface DataCollectionDeletedEnvelope {
|
|
2260
|
-
metadata: EventMetadata$1;
|
|
2261
|
-
}
|
|
2262
2247
|
interface GetDataCollectionOptions {
|
|
2263
2248
|
/**
|
|
2264
2249
|
* Whether to retrieve data from the primary database instance.
|
|
@@ -2351,31 +2336,6 @@ interface DeleteDataCollectionSignature {
|
|
|
2351
2336
|
*/
|
|
2352
2337
|
(dataCollectionId: string): Promise<void>;
|
|
2353
2338
|
}
|
|
2354
|
-
declare const onDataCollectionClonedEvent$1: EventDefinition$3<DataCollectionClonedEnvelope, "wix.data.v2.data_collection_data_collection_cloned_event">;
|
|
2355
|
-
declare const onDataCollectionChangedEvent$1: EventDefinition$3<DataCollectionChangedEnvelope, "wix.data.v2.data_collection_data_collection_changed_event">;
|
|
2356
|
-
declare const onDataCollectionCreated$1: EventDefinition$3<DataCollectionCreatedEnvelope, "wix.data.v2.data_collection_created">;
|
|
2357
|
-
declare const onDataCollectionUpdated$1: EventDefinition$3<DataCollectionUpdatedEnvelope, "wix.data.v2.data_collection_updated">;
|
|
2358
|
-
declare const onDataCollectionDeleted$1: EventDefinition$3<DataCollectionDeletedEnvelope, "wix.data.v2.data_collection_deleted">;
|
|
2359
|
-
|
|
2360
|
-
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
2361
|
-
__type: 'event-definition';
|
|
2362
|
-
type: Type;
|
|
2363
|
-
isDomainEvent?: boolean;
|
|
2364
|
-
transformations?: (envelope: unknown) => Payload;
|
|
2365
|
-
__payload: Payload;
|
|
2366
|
-
};
|
|
2367
|
-
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
2368
|
-
type EventHandler$1<T extends EventDefinition$1> = (payload: T['__payload']) => void | Promise<void>;
|
|
2369
|
-
type BuildEventDefinition$1<T extends EventDefinition$1<any, string>> = (handler: EventHandler$1<T>) => void;
|
|
2370
|
-
|
|
2371
|
-
declare global {
|
|
2372
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2373
|
-
interface SymbolConstructor {
|
|
2374
|
-
readonly observable: symbol;
|
|
2375
|
-
}
|
|
2376
|
-
}
|
|
2377
|
-
|
|
2378
|
-
declare function createEventModule$1<T extends EventDefinition$1<any, string>>(eventDefinition: T): BuildEventDefinition$1<T> & T;
|
|
2379
2339
|
|
|
2380
2340
|
declare const createDataCollection: MaybeContext<BuildRESTFunction<typeof createDataCollection$1> & typeof createDataCollection$1>;
|
|
2381
2341
|
declare const getDataCollection: MaybeContext<BuildRESTFunction<typeof getDataCollection$1> & typeof getDataCollection$1>;
|
|
@@ -2383,32 +2343,6 @@ declare const listDataCollections: MaybeContext<BuildRESTFunction<typeof listDat
|
|
|
2383
2343
|
declare const updateDataCollection: MaybeContext<BuildRESTFunction<typeof updateDataCollection$1> & typeof updateDataCollection$1>;
|
|
2384
2344
|
declare const deleteDataCollection: MaybeContext<BuildRESTFunction<typeof deleteDataCollection$1> & typeof deleteDataCollection$1>;
|
|
2385
2345
|
|
|
2386
|
-
type _publicOnDataCollectionClonedEventType = typeof onDataCollectionClonedEvent$1;
|
|
2387
|
-
/**
|
|
2388
|
-
* Event triggered when collection is cloned from other instance
|
|
2389
|
-
* CREATED event will be also triggered along with this action
|
|
2390
|
-
*/
|
|
2391
|
-
declare const onDataCollectionClonedEvent: ReturnType<typeof createEventModule$1<_publicOnDataCollectionClonedEventType>>;
|
|
2392
|
-
|
|
2393
|
-
type _publicOnDataCollectionChangedEventType = typeof onDataCollectionChangedEvent$1;
|
|
2394
|
-
/**
|
|
2395
|
-
* Event triggered when collection is changed, describing some of changes
|
|
2396
|
-
* UPDATED event will be also triggered along with this action
|
|
2397
|
-
*/
|
|
2398
|
-
declare const onDataCollectionChangedEvent: ReturnType<typeof createEventModule$1<_publicOnDataCollectionChangedEventType>>;
|
|
2399
|
-
|
|
2400
|
-
type _publicOnDataCollectionCreatedType = typeof onDataCollectionCreated$1;
|
|
2401
|
-
/** */
|
|
2402
|
-
declare const onDataCollectionCreated: ReturnType<typeof createEventModule$1<_publicOnDataCollectionCreatedType>>;
|
|
2403
|
-
|
|
2404
|
-
type _publicOnDataCollectionUpdatedType = typeof onDataCollectionUpdated$1;
|
|
2405
|
-
/** */
|
|
2406
|
-
declare const onDataCollectionUpdated: ReturnType<typeof createEventModule$1<_publicOnDataCollectionUpdatedType>>;
|
|
2407
|
-
|
|
2408
|
-
type _publicOnDataCollectionDeletedType = typeof onDataCollectionDeleted$1;
|
|
2409
|
-
/** */
|
|
2410
|
-
declare const onDataCollectionDeleted: ReturnType<typeof createEventModule$1<_publicOnDataCollectionDeletedType>>;
|
|
2411
|
-
|
|
2412
2346
|
type context$2_AccessLevel = AccessLevel;
|
|
2413
2347
|
declare const context$2_AccessLevel: typeof AccessLevel;
|
|
2414
2348
|
type context$2_AllowedDataPermissions = AllowedDataPermissions;
|
|
@@ -2435,14 +2369,9 @@ type context$2_CreateDataCollectionsSnapshotResponse = CreateDataCollectionsSnap
|
|
|
2435
2369
|
type context$2_CreateMigratedCollectionsSnapshotRequest = CreateMigratedCollectionsSnapshotRequest;
|
|
2436
2370
|
type context$2_CreateMigratedCollectionsSnapshotResponse = CreateMigratedCollectionsSnapshotResponse;
|
|
2437
2371
|
type context$2_DataCollection = DataCollection;
|
|
2438
|
-
type context$2_DataCollectionChangedEnvelope = DataCollectionChangedEnvelope;
|
|
2439
2372
|
type context$2_DataCollectionChangedEvent = DataCollectionChangedEvent;
|
|
2440
|
-
type context$2_DataCollectionClonedEnvelope = DataCollectionClonedEnvelope;
|
|
2441
2373
|
type context$2_DataCollectionClonedEvent = DataCollectionClonedEvent;
|
|
2442
|
-
type context$2_DataCollectionCreatedEnvelope = DataCollectionCreatedEnvelope;
|
|
2443
|
-
type context$2_DataCollectionDeletedEnvelope = DataCollectionDeletedEnvelope;
|
|
2444
2374
|
type context$2_DataCollectionNonNullableFields = DataCollectionNonNullableFields;
|
|
2445
|
-
type context$2_DataCollectionUpdatedEnvelope = DataCollectionUpdatedEnvelope;
|
|
2446
2375
|
type context$2_DataOperation = DataOperation;
|
|
2447
2376
|
declare const context$2_DataOperation: typeof DataOperation;
|
|
2448
2377
|
type context$2_DataPermissions = DataPermissions;
|
|
@@ -2519,23 +2448,13 @@ type context$2_UrlizedOnlyPattern = UrlizedOnlyPattern;
|
|
|
2519
2448
|
type context$2_UrlizedPluginOptions = UrlizedPluginOptions;
|
|
2520
2449
|
type context$2__Array = _Array;
|
|
2521
2450
|
type context$2__Object = _Object;
|
|
2522
|
-
type context$2__publicOnDataCollectionChangedEventType = _publicOnDataCollectionChangedEventType;
|
|
2523
|
-
type context$2__publicOnDataCollectionClonedEventType = _publicOnDataCollectionClonedEventType;
|
|
2524
|
-
type context$2__publicOnDataCollectionCreatedType = _publicOnDataCollectionCreatedType;
|
|
2525
|
-
type context$2__publicOnDataCollectionDeletedType = _publicOnDataCollectionDeletedType;
|
|
2526
|
-
type context$2__publicOnDataCollectionUpdatedType = _publicOnDataCollectionUpdatedType;
|
|
2527
2451
|
declare const context$2_createDataCollection: typeof createDataCollection;
|
|
2528
2452
|
declare const context$2_deleteDataCollection: typeof deleteDataCollection;
|
|
2529
2453
|
declare const context$2_getDataCollection: typeof getDataCollection;
|
|
2530
2454
|
declare const context$2_listDataCollections: typeof listDataCollections;
|
|
2531
|
-
declare const context$2_onDataCollectionChangedEvent: typeof onDataCollectionChangedEvent;
|
|
2532
|
-
declare const context$2_onDataCollectionClonedEvent: typeof onDataCollectionClonedEvent;
|
|
2533
|
-
declare const context$2_onDataCollectionCreated: typeof onDataCollectionCreated;
|
|
2534
|
-
declare const context$2_onDataCollectionDeleted: typeof onDataCollectionDeleted;
|
|
2535
|
-
declare const context$2_onDataCollectionUpdated: typeof onDataCollectionUpdated;
|
|
2536
2455
|
declare const context$2_updateDataCollection: typeof updateDataCollection;
|
|
2537
2456
|
declare namespace context$2 {
|
|
2538
|
-
export { context$2_AccessLevel as AccessLevel, type ActionEvent$1 as ActionEvent, type context$2_AllowedDataPermissions as AllowedDataPermissions, type context$2_ArraySizeRange as ArraySizeRange, type
|
|
2457
|
+
export { context$2_AccessLevel as AccessLevel, type ActionEvent$1 as ActionEvent, type context$2_AllowedDataPermissions as AllowedDataPermissions, type context$2_ArraySizeRange as ArraySizeRange, type context$2_BulkGetDataCollectionsPageBySnapshotsRequest as BulkGetDataCollectionsPageBySnapshotsRequest, type context$2_BulkGetDataCollectionsPageBySnapshotsResponse as BulkGetDataCollectionsPageBySnapshotsResponse, type context$2_BulkGetDataCollectionsRequest as BulkGetDataCollectionsRequest, type context$2_BulkGetDataCollectionsResponse as BulkGetDataCollectionsResponse, type context$2_Calculator as Calculator, type context$2_CalculatorPatternOneOf as CalculatorPatternOneOf, type context$2_CmsOptions as CmsOptions, type context$2_CollectionCapabilities as CollectionCapabilities, context$2_CollectionOperation as CollectionOperation, context$2_CollectionType as CollectionType, type context$2_CreateDataCollectionFieldRequest as CreateDataCollectionFieldRequest, type context$2_CreateDataCollectionFieldResponse as CreateDataCollectionFieldResponse, type context$2_CreateDataCollectionRequest as CreateDataCollectionRequest, type context$2_CreateDataCollectionResponse as CreateDataCollectionResponse, type context$2_CreateDataCollectionResponseNonNullableFields as CreateDataCollectionResponseNonNullableFields, type context$2_CreateDataCollectionsSnapshotRequest as CreateDataCollectionsSnapshotRequest, type context$2_CreateDataCollectionsSnapshotResponse as CreateDataCollectionsSnapshotResponse, type context$2_CreateMigratedCollectionsSnapshotRequest as CreateMigratedCollectionsSnapshotRequest, type context$2_CreateMigratedCollectionsSnapshotResponse as CreateMigratedCollectionsSnapshotResponse, type context$2_DataCollection as DataCollection, type context$2_DataCollectionChangedEvent as DataCollectionChangedEvent, type context$2_DataCollectionClonedEvent as DataCollectionClonedEvent, type context$2_DataCollectionNonNullableFields as DataCollectionNonNullableFields, context$2_DataOperation as DataOperation, type context$2_DataPermissions as DataPermissions, type context$2_DeleteDataCollectionFieldRequest as DeleteDataCollectionFieldRequest, type context$2_DeleteDataCollectionFieldResponse as DeleteDataCollectionFieldResponse, type context$2_DeleteDataCollectionRequest as DeleteDataCollectionRequest, type context$2_DeleteDataCollectionResponse as DeleteDataCollectionResponse, type context$2_DeleteDataCollectionsSnapshotRequest as DeleteDataCollectionsSnapshotRequest, type context$2_DeleteDataCollectionsSnapshotResponse as DeleteDataCollectionsSnapshotResponse, context$2_Direction as Direction, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type Failure$1 as Failure, type Field$1 as Field, type context$2_FieldCapabilities as FieldCapabilities, type context$2_FieldPlugin as FieldPlugin, type context$2_FieldPluginOptionsOneOf as FieldPluginOptionsOneOf, context$2_FieldPluginType as FieldPluginType, type context$2_FieldRangeValidationsOneOf as FieldRangeValidationsOneOf, type FieldUpdate$1 as FieldUpdate, type context$2_FieldsPattern as FieldsPattern, context$2_Format as Format, type context$2_GetDataCollectionOptions as GetDataCollectionOptions, type context$2_GetDataCollectionRequest as GetDataCollectionRequest, type context$2_GetDataCollectionResponse as GetDataCollectionResponse, type context$2_GetDataCollectionResponseNonNullableFields as GetDataCollectionResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type Index$1 as Index, type context$2_IndexField as IndexField, type context$2_IndexLimits as IndexLimits, context$2_IndexStatus as IndexStatus, type context$2_ListDataCollectionsOptions as ListDataCollectionsOptions, type context$2_ListDataCollectionsRequest as ListDataCollectionsRequest, type context$2_ListDataCollectionsResponse as ListDataCollectionsResponse, type context$2_ListDataCollectionsResponseNonNullableFields as ListDataCollectionsResponseNonNullableFields, type MessageEnvelope$1 as MessageEnvelope, type context$2_MultiReference as MultiReference, type context$2_MultilingualOptions as MultilingualOptions, type context$2_NumberRange as NumberRange, type context$2_ObjectField as ObjectField, Order$1 as Order, type context$2_PageLink as PageLink, type context$2_PageLinkPluginOptions as PageLinkPluginOptions, type Paging$2 as Paging, type PagingMetadataV2$1 as PagingMetadataV2, context$2_PagingMode as PagingMode, type context$2_Permissions as Permissions, type context$2_Plugin as Plugin, type context$2_PluginCmsOptions as PluginCmsOptions, type context$2_PluginOptionsOneOf as PluginOptionsOneOf, context$2_PluginType as PluginType, type context$2_PluginUpdate as PluginUpdate, type PublishPluginOptions$1 as PublishPluginOptions, context$2_QueryOperator as QueryOperator, type context$2_Reference as Reference, type context$2_RestoreDataCollectionsFromSnapshotRequest as RestoreDataCollectionsFromSnapshotRequest, type context$2_RestoreDataCollectionsFromSnapshotResponse as RestoreDataCollectionsFromSnapshotResponse, type RestoreInfo$1 as RestoreInfo, context$2_Role as Role, context$2_Segment as Segment, type context$2_SingleItemPluginOptions as SingleItemPluginOptions, type context$2_SiteSort as SiteSort, type context$2_SnapshotCollection as SnapshotCollection, type context$2_Sort as Sort, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, Status$1 as Status, type context$2_StringLengthRange as StringLengthRange, context$2_Type as Type, type context$2_TypeMetadata as TypeMetadata, type context$2_TypeMetadataMetadataOneOf as TypeMetadataMetadataOneOf, type context$2_UpdateDataCollectionFieldRequest as UpdateDataCollectionFieldRequest, type context$2_UpdateDataCollectionFieldResponse as UpdateDataCollectionFieldResponse, type context$2_UpdateDataCollectionRequest as UpdateDataCollectionRequest, type context$2_UpdateDataCollectionResponse as UpdateDataCollectionResponse, type context$2_UpdateDataCollectionResponseNonNullableFields as UpdateDataCollectionResponseNonNullableFields, type context$2_UpdateDataPermissionsRequest as UpdateDataPermissionsRequest, type context$2_UpdateDataPermissionsResponse as UpdateDataPermissionsResponse, type context$2_UrlizedOnlyPattern as UrlizedOnlyPattern, type context$2_UrlizedPluginOptions as UrlizedPluginOptions, WebhookIdentityType$1 as WebhookIdentityType, type context$2__Array as _Array, type context$2__Object as _Object, context$2_createDataCollection as createDataCollection, context$2_deleteDataCollection as deleteDataCollection, context$2_getDataCollection as getDataCollection, context$2_listDataCollections as listDataCollections, context$2_updateDataCollection as updateDataCollection };
|
|
2539
2458
|
}
|
|
2540
2459
|
|
|
2541
2460
|
interface DataItem {
|
|
@@ -4791,27 +4710,9 @@ interface ReplaceDataItemReferencesSignature {
|
|
|
4791
4710
|
*/
|
|
4792
4711
|
(options?: ReplaceDataItemReferencesOptions | undefined): Promise<ReplaceDataItemReferencesResponse & ReplaceDataItemReferencesResponseNonNullableFields>;
|
|
4793
4712
|
}
|
|
4794
|
-
declare const onDataItemCreated$1: EventDefinition
|
|
4795
|
-
declare const onDataItemUpdated$1: EventDefinition
|
|
4796
|
-
declare const onDataItemDeleted$1: EventDefinition
|
|
4797
|
-
|
|
4798
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
4799
|
-
__type: 'event-definition';
|
|
4800
|
-
type: Type;
|
|
4801
|
-
isDomainEvent?: boolean;
|
|
4802
|
-
transformations?: (envelope: unknown) => Payload;
|
|
4803
|
-
__payload: Payload;
|
|
4804
|
-
};
|
|
4805
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
4806
|
-
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
4807
|
-
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
4808
|
-
|
|
4809
|
-
declare global {
|
|
4810
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
4811
|
-
interface SymbolConstructor {
|
|
4812
|
-
readonly observable: symbol;
|
|
4813
|
-
}
|
|
4814
|
-
}
|
|
4713
|
+
declare const onDataItemCreated$1: EventDefinition<DataItemCreatedEnvelope, "wix.data.v2.data_item_created">;
|
|
4714
|
+
declare const onDataItemUpdated$1: EventDefinition<DataItemUpdatedEnvelope, "wix.data.v2.data_item_updated">;
|
|
4715
|
+
declare const onDataItemDeleted$1: EventDefinition<DataItemDeletedEnvelope, "wix.data.v2.data_item_deleted">;
|
|
4815
4716
|
|
|
4816
4717
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
4817
4718
|
|
|
@@ -5184,6 +5085,23 @@ interface PagingMetadata {
|
|
|
5184
5085
|
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
5185
5086
|
tooManyToCount?: boolean | null;
|
|
5186
5087
|
}
|
|
5088
|
+
interface ListAvailableIndexesRequest {
|
|
5089
|
+
/** Data collection to show available indexes for */
|
|
5090
|
+
dataCollectionId?: string;
|
|
5091
|
+
}
|
|
5092
|
+
interface ListAvailableIndexesResponse {
|
|
5093
|
+
/**
|
|
5094
|
+
* limit of regular single-field indexes, even if 0 1-field indices may be created using
|
|
5095
|
+
* 3-field quota (if available)
|
|
5096
|
+
*/
|
|
5097
|
+
regular1Field?: number;
|
|
5098
|
+
/** limit of regular indexes up to 3-fields (in addition to 1-field indexes quota) */
|
|
5099
|
+
regular3Field?: number;
|
|
5100
|
+
/** limit of unique indexes */
|
|
5101
|
+
unique1Field?: number;
|
|
5102
|
+
/** Overall index limit, missing value means there's no overall limit */
|
|
5103
|
+
total?: number | null;
|
|
5104
|
+
}
|
|
5187
5105
|
interface FieldNonNullableFields {
|
|
5188
5106
|
path: string;
|
|
5189
5107
|
order: Order;
|
|
@@ -5273,6 +5191,8 @@ type context_Failure = Failure;
|
|
|
5273
5191
|
type context_Field = Field;
|
|
5274
5192
|
type context_Index = Index;
|
|
5275
5193
|
type context_IndexNonNullableFields = IndexNonNullableFields;
|
|
5194
|
+
type context_ListAvailableIndexesRequest = ListAvailableIndexesRequest;
|
|
5195
|
+
type context_ListAvailableIndexesResponse = ListAvailableIndexesResponse;
|
|
5276
5196
|
type context_ListIndexesOptions = ListIndexesOptions;
|
|
5277
5197
|
type context_ListIndexesRequest = ListIndexesRequest;
|
|
5278
5198
|
type context_ListIndexesResponse = ListIndexesResponse;
|
|
@@ -5287,7 +5207,7 @@ declare const context_createIndex: typeof createIndex;
|
|
|
5287
5207
|
declare const context_dropIndex: typeof dropIndex;
|
|
5288
5208
|
declare const context_listIndexes: typeof listIndexes;
|
|
5289
5209
|
declare namespace context {
|
|
5290
|
-
export { type context_CreateIndexRequest as CreateIndexRequest, type context_CreateIndexResponse as CreateIndexResponse, type context_CreateIndexResponseNonNullableFields as CreateIndexResponseNonNullableFields, type context_DropIndexRequest as DropIndexRequest, type context_DropIndexResponse as DropIndexResponse, context_Environment as Environment, type context_Failure as Failure, type context_Field as Field, type context_Index as Index, type context_IndexNonNullableFields as IndexNonNullableFields, type context_ListIndexesOptions as ListIndexesOptions, type context_ListIndexesRequest as ListIndexesRequest, type context_ListIndexesResponse as ListIndexesResponse, type context_ListIndexesResponseNonNullableFields as ListIndexesResponseNonNullableFields, context_Order as Order, type context_Paging as Paging, type context_PagingMetadata as PagingMetadata, context_Status as Status, context_createIndex as createIndex, context_dropIndex as dropIndex, context_listIndexes as listIndexes };
|
|
5210
|
+
export { type context_CreateIndexRequest as CreateIndexRequest, type context_CreateIndexResponse as CreateIndexResponse, type context_CreateIndexResponseNonNullableFields as CreateIndexResponseNonNullableFields, type context_DropIndexRequest as DropIndexRequest, type context_DropIndexResponse as DropIndexResponse, context_Environment as Environment, type context_Failure as Failure, type context_Field as Field, type context_Index as Index, type context_IndexNonNullableFields as IndexNonNullableFields, type context_ListAvailableIndexesRequest as ListAvailableIndexesRequest, type context_ListAvailableIndexesResponse as ListAvailableIndexesResponse, type context_ListIndexesOptions as ListIndexesOptions, type context_ListIndexesRequest as ListIndexesRequest, type context_ListIndexesResponse as ListIndexesResponse, type context_ListIndexesResponseNonNullableFields as ListIndexesResponseNonNullableFields, context_Order as Order, type context_Paging as Paging, type context_PagingMetadata as PagingMetadata, context_Status as Status, context_createIndex as createIndex, context_dropIndex as dropIndex, context_listIndexes as listIndexes };
|
|
5291
5211
|
}
|
|
5292
5212
|
|
|
5293
5213
|
export { context$2 as collections, context$3 as externalDatabaseConnections, context as indexes, context$1 as items };
|