@wix/crm 1.0.118 → 1.0.120
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 +8 -8
- package/type-bundles/context.bundle.d.ts +5127 -302
- package/type-bundles/index.bundle.d.ts +248 -695
- package/type-bundles/meta.bundle.d.ts +374 -1138
|
@@ -284,28 +284,23 @@ declare enum WebhookIdentityType$5 {
|
|
|
284
284
|
}
|
|
285
285
|
interface GenerateAttachmentUploadUrlResponseNonNullableFields {
|
|
286
286
|
uploadUrl: string;
|
|
287
|
+
uploadId: string;
|
|
288
|
+
}
|
|
289
|
+
interface ContactAttachmentNonNullableFields {
|
|
290
|
+
image: string;
|
|
291
|
+
document: string;
|
|
292
|
+
_id: string;
|
|
293
|
+
previewImage: string;
|
|
294
|
+
fileName: string;
|
|
295
|
+
mimeType: string;
|
|
296
|
+
attachmentType: AttachmentType;
|
|
297
|
+
mediaPath: string;
|
|
287
298
|
}
|
|
288
299
|
interface ListAttachmentsResponseNonNullableFields {
|
|
289
|
-
attachments:
|
|
290
|
-
image: string;
|
|
291
|
-
document: string;
|
|
292
|
-
_id: string;
|
|
293
|
-
previewImage: string;
|
|
294
|
-
fileName: string;
|
|
295
|
-
mimeType: string;
|
|
296
|
-
attachmentType: AttachmentType;
|
|
297
|
-
}[];
|
|
300
|
+
attachments: ContactAttachmentNonNullableFields[];
|
|
298
301
|
}
|
|
299
302
|
interface GetAttachmentResponseNonNullableFields {
|
|
300
|
-
attachment?:
|
|
301
|
-
image: string;
|
|
302
|
-
document: string;
|
|
303
|
-
_id: string;
|
|
304
|
-
previewImage: string;
|
|
305
|
-
fileName: string;
|
|
306
|
-
mimeType: string;
|
|
307
|
-
attachmentType: AttachmentType;
|
|
308
|
-
};
|
|
303
|
+
attachment?: ContactAttachmentNonNullableFields;
|
|
309
304
|
}
|
|
310
305
|
interface BaseEventMetadata$4 {
|
|
311
306
|
/** App instance ID. */
|
|
@@ -381,38 +376,42 @@ interface GetAttachmentIdentifiers {
|
|
|
381
376
|
attachmentId: string;
|
|
382
377
|
}
|
|
383
378
|
|
|
384
|
-
|
|
385
|
-
|
|
379
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
380
|
+
interface HttpClient {
|
|
381
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
386
382
|
fetchWithAuth: typeof fetch;
|
|
387
383
|
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
388
384
|
}
|
|
389
|
-
type RequestOptionsFactory
|
|
390
|
-
type HttpResponse
|
|
385
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
386
|
+
type HttpResponse<T = any> = {
|
|
391
387
|
data: T;
|
|
392
388
|
status: number;
|
|
393
389
|
statusText: string;
|
|
394
390
|
headers: any;
|
|
395
391
|
request?: any;
|
|
396
392
|
};
|
|
397
|
-
type RequestOptions
|
|
393
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
398
394
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
399
395
|
url: string;
|
|
400
396
|
data?: Data;
|
|
401
397
|
params?: URLSearchParams;
|
|
402
|
-
} & APIMetadata
|
|
403
|
-
type APIMetadata
|
|
398
|
+
} & APIMetadata;
|
|
399
|
+
type APIMetadata = {
|
|
404
400
|
methodFqn?: string;
|
|
405
401
|
entityFqdn?: string;
|
|
406
402
|
packageName?: string;
|
|
407
403
|
};
|
|
408
|
-
type
|
|
404
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
405
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
409
406
|
__type: 'event-definition';
|
|
410
407
|
type: Type;
|
|
411
408
|
isDomainEvent?: boolean;
|
|
412
409
|
transformations?: (envelope: unknown) => Payload;
|
|
413
410
|
__payload: Payload;
|
|
414
411
|
};
|
|
415
|
-
declare function EventDefinition
|
|
412
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
413
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
414
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
416
415
|
|
|
417
416
|
declare global {
|
|
418
417
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -421,23 +420,16 @@ declare global {
|
|
|
421
420
|
}
|
|
422
421
|
}
|
|
423
422
|
|
|
424
|
-
declare
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
declare
|
|
429
|
-
declare
|
|
430
|
-
declare
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
previewImage: string;
|
|
435
|
-
fileName: string;
|
|
436
|
-
mimeType: string;
|
|
437
|
-
attachmentType: AttachmentType;
|
|
438
|
-
}>;
|
|
439
|
-
declare const onAttachmentCreated: EventDefinition$4<AttachmentCreatedEnvelope, "wix.contacts.v4.attachment_created">;
|
|
440
|
-
declare const onAttachmentDeleted: EventDefinition$4<AttachmentDeletedEnvelope, "wix.contacts.v4.attachment_deleted">;
|
|
423
|
+
declare function createRESTModule$5<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
424
|
+
|
|
425
|
+
declare function createEventModule$4<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
426
|
+
|
|
427
|
+
declare const generateAttachmentUploadUrl: ReturnType<typeof createRESTModule$5<typeof publicGenerateAttachmentUploadUrl>>;
|
|
428
|
+
declare const listAttachments: ReturnType<typeof createRESTModule$5<typeof publicListAttachments>>;
|
|
429
|
+
declare const deleteAttachment: ReturnType<typeof createRESTModule$5<typeof publicDeleteAttachment>>;
|
|
430
|
+
declare const getAttachment: ReturnType<typeof createRESTModule$5<typeof publicGetAttachment>>;
|
|
431
|
+
declare const onAttachmentCreated: ReturnType<typeof createEventModule$4<typeof publicOnAttachmentCreated>>;
|
|
432
|
+
declare const onAttachmentDeleted: ReturnType<typeof createEventModule$4<typeof publicOnAttachmentDeleted>>;
|
|
441
433
|
|
|
442
434
|
type index_d$5_AttachmentCreatedEnvelope = AttachmentCreatedEnvelope;
|
|
443
435
|
type index_d$5_AttachmentDeletedEnvelope = AttachmentDeletedEnvelope;
|
|
@@ -449,6 +441,7 @@ type index_d$5_AttachmentType = AttachmentType;
|
|
|
449
441
|
declare const index_d$5_AttachmentType: typeof AttachmentType;
|
|
450
442
|
type index_d$5_ContactAttachment = ContactAttachment;
|
|
451
443
|
type index_d$5_ContactAttachmentMediaOneOf = ContactAttachmentMediaOneOf;
|
|
444
|
+
type index_d$5_ContactAttachmentNonNullableFields = ContactAttachmentNonNullableFields;
|
|
452
445
|
type index_d$5_CreateDemoAttachmentRequest = CreateDemoAttachmentRequest;
|
|
453
446
|
type index_d$5_CreateDemoAttachmentResponse = CreateDemoAttachmentResponse;
|
|
454
447
|
type index_d$5_CrmAttachment = CrmAttachment;
|
|
@@ -480,7 +473,7 @@ declare const index_d$5_listAttachments: typeof listAttachments;
|
|
|
480
473
|
declare const index_d$5_onAttachmentCreated: typeof onAttachmentCreated;
|
|
481
474
|
declare const index_d$5_onAttachmentDeleted: typeof onAttachmentDeleted;
|
|
482
475
|
declare namespace index_d$5 {
|
|
483
|
-
export { type ActionEvent$4 as ActionEvent, type index_d$5_AttachmentCreatedEnvelope as AttachmentCreatedEnvelope, type index_d$5_AttachmentDeletedEnvelope as AttachmentDeletedEnvelope, type index_d$5_AttachmentMedia as AttachmentMedia, type index_d$5_AttachmentMediaMediaOneOf as AttachmentMediaMediaOneOf, type index_d$5_AttachmentMetadata as AttachmentMetadata, type index_d$5_AttachmentSource as AttachmentSource, index_d$5_AttachmentType as AttachmentType, type BaseEventMetadata$4 as BaseEventMetadata, type index_d$5_ContactAttachment as ContactAttachment, type index_d$5_ContactAttachmentMediaOneOf as ContactAttachmentMediaOneOf, type index_d$5_CreateDemoAttachmentRequest as CreateDemoAttachmentRequest, type index_d$5_CreateDemoAttachmentResponse as CreateDemoAttachmentResponse, type index_d$5_CrmAttachment as CrmAttachment, index_d$5_CrmAttachmentAttachmentType as CrmAttachmentAttachmentType, type index_d$5_CrmAttachmentUploadedEvent as CrmAttachmentUploadedEvent, type index_d$5_DeleteAttachmentIdentifiers as DeleteAttachmentIdentifiers, type index_d$5_DeleteAttachmentRequest as DeleteAttachmentRequest, type index_d$5_DeleteAttachmentResponse as DeleteAttachmentResponse, index_d$5_DemoContactType as DemoContactType, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type EventMetadata$4 as EventMetadata, type index_d$5_GenerateAttachmentUploadUrlOptions as GenerateAttachmentUploadUrlOptions, type index_d$5_GenerateAttachmentUploadUrlRequest as GenerateAttachmentUploadUrlRequest, type index_d$5_GenerateAttachmentUploadUrlResponse as GenerateAttachmentUploadUrlResponse, type index_d$5_GenerateAttachmentUploadUrlResponseNonNullableFields as GenerateAttachmentUploadUrlResponseNonNullableFields, type index_d$5_GetAttachmentIdentifiers as GetAttachmentIdentifiers, type index_d$5_GetAttachmentRequest as GetAttachmentRequest, type index_d$5_GetAttachmentResponse as GetAttachmentResponse, type index_d$5_GetAttachmentResponseNonNullableFields as GetAttachmentResponseNonNullableFields, type IdentificationData$5 as IdentificationData, type IdentificationDataIdOneOf$5 as IdentificationDataIdOneOf, type index_d$5_ListAttachmentsOptions as ListAttachmentsOptions, type index_d$5_ListAttachmentsRequest as ListAttachmentsRequest, type index_d$5_ListAttachmentsResponse as ListAttachmentsResponse, type index_d$5_ListAttachmentsResponseNonNullableFields as ListAttachmentsResponseNonNullableFields, type index_d$5_MediaFileUploadedEvent as MediaFileUploadedEvent, type MessageEnvelope$5 as MessageEnvelope, type Paging$4 as Paging, type PagingMetadata$3 as PagingMetadata, WebhookIdentityType$5 as WebhookIdentityType,
|
|
476
|
+
export { type ActionEvent$4 as ActionEvent, type index_d$5_AttachmentCreatedEnvelope as AttachmentCreatedEnvelope, type index_d$5_AttachmentDeletedEnvelope as AttachmentDeletedEnvelope, type index_d$5_AttachmentMedia as AttachmentMedia, type index_d$5_AttachmentMediaMediaOneOf as AttachmentMediaMediaOneOf, type index_d$5_AttachmentMetadata as AttachmentMetadata, type index_d$5_AttachmentSource as AttachmentSource, index_d$5_AttachmentType as AttachmentType, type BaseEventMetadata$4 as BaseEventMetadata, type index_d$5_ContactAttachment as ContactAttachment, type index_d$5_ContactAttachmentMediaOneOf as ContactAttachmentMediaOneOf, type index_d$5_ContactAttachmentNonNullableFields as ContactAttachmentNonNullableFields, type index_d$5_CreateDemoAttachmentRequest as CreateDemoAttachmentRequest, type index_d$5_CreateDemoAttachmentResponse as CreateDemoAttachmentResponse, type index_d$5_CrmAttachment as CrmAttachment, index_d$5_CrmAttachmentAttachmentType as CrmAttachmentAttachmentType, type index_d$5_CrmAttachmentUploadedEvent as CrmAttachmentUploadedEvent, type index_d$5_DeleteAttachmentIdentifiers as DeleteAttachmentIdentifiers, type index_d$5_DeleteAttachmentRequest as DeleteAttachmentRequest, type index_d$5_DeleteAttachmentResponse as DeleteAttachmentResponse, index_d$5_DemoContactType as DemoContactType, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type EventMetadata$4 as EventMetadata, type index_d$5_GenerateAttachmentUploadUrlOptions as GenerateAttachmentUploadUrlOptions, type index_d$5_GenerateAttachmentUploadUrlRequest as GenerateAttachmentUploadUrlRequest, type index_d$5_GenerateAttachmentUploadUrlResponse as GenerateAttachmentUploadUrlResponse, type index_d$5_GenerateAttachmentUploadUrlResponseNonNullableFields as GenerateAttachmentUploadUrlResponseNonNullableFields, type index_d$5_GetAttachmentIdentifiers as GetAttachmentIdentifiers, type index_d$5_GetAttachmentRequest as GetAttachmentRequest, type index_d$5_GetAttachmentResponse as GetAttachmentResponse, type index_d$5_GetAttachmentResponseNonNullableFields as GetAttachmentResponseNonNullableFields, type IdentificationData$5 as IdentificationData, type IdentificationDataIdOneOf$5 as IdentificationDataIdOneOf, type index_d$5_ListAttachmentsOptions as ListAttachmentsOptions, type index_d$5_ListAttachmentsRequest as ListAttachmentsRequest, type index_d$5_ListAttachmentsResponse as ListAttachmentsResponse, type index_d$5_ListAttachmentsResponseNonNullableFields as ListAttachmentsResponseNonNullableFields, type index_d$5_MediaFileUploadedEvent as MediaFileUploadedEvent, type MessageEnvelope$5 as MessageEnvelope, type Paging$4 as Paging, type PagingMetadata$3 as PagingMetadata, WebhookIdentityType$5 as WebhookIdentityType, index_d$5_deleteAttachment as deleteAttachment, index_d$5_generateAttachmentUploadUrl as generateAttachmentUploadUrl, index_d$5_getAttachment as getAttachment, index_d$5_listAttachments as listAttachments, index_d$5_onAttachmentCreated as onAttachmentCreated, index_d$5_onAttachmentDeleted as onAttachmentDeleted };
|
|
484
477
|
}
|
|
485
478
|
|
|
486
479
|
interface Contact {
|
|
@@ -1866,19 +1859,21 @@ interface SearchContactsResponse {
|
|
|
1866
1859
|
/** List of contacts. */
|
|
1867
1860
|
contacts?: Contact[];
|
|
1868
1861
|
/** Details on the paged set of results returned. */
|
|
1869
|
-
|
|
1862
|
+
cursorPagingMetadata?: CursorPagingMetadata$1;
|
|
1870
1863
|
}
|
|
1871
|
-
|
|
1872
|
-
|
|
1864
|
+
/** This is the preferred message for cursor-paging enabled services */
|
|
1865
|
+
interface CursorPagingMetadata$1 {
|
|
1866
|
+
/** Number of items returned in the response. */
|
|
1873
1867
|
count?: number | null;
|
|
1874
|
-
/**
|
|
1875
|
-
offset?: number | null;
|
|
1876
|
-
/** The total number of items that match the query. Returned if offset paging was used and 'too_many_to_count' flag is not set */
|
|
1877
|
-
total?: number | null;
|
|
1878
|
-
/** A flag that indicates the server failed to calculate 'total' field */
|
|
1879
|
-
tooManyToCount?: boolean | null;
|
|
1880
|
-
/** Cursors to navigate through result pages. Returned if cursor paging was used */
|
|
1868
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
1881
1869
|
cursors?: Cursors$1;
|
|
1870
|
+
/**
|
|
1871
|
+
* Whether there are more pages to retrieve following the current page.
|
|
1872
|
+
*
|
|
1873
|
+
* + `true`: Another page of results can be retrieved.
|
|
1874
|
+
* + `false`: This is the last page.
|
|
1875
|
+
*/
|
|
1876
|
+
hasNext?: boolean | null;
|
|
1882
1877
|
}
|
|
1883
1878
|
interface Cursors$1 {
|
|
1884
1879
|
/** Cursor pointing to next result page */
|
|
@@ -1962,20 +1957,6 @@ interface ListContactIdsBySegmentResponse {
|
|
|
1962
1957
|
/** Paging metadata */
|
|
1963
1958
|
cursorPagingMetadata?: CursorPagingMetadata$1;
|
|
1964
1959
|
}
|
|
1965
|
-
/** This is the preferred message for cursor-paging enabled services */
|
|
1966
|
-
interface CursorPagingMetadata$1 {
|
|
1967
|
-
/** Number of items returned in the response. */
|
|
1968
|
-
count?: number | null;
|
|
1969
|
-
/** Cursor strings that point to the next page, previous page, or both. */
|
|
1970
|
-
cursors?: Cursors$1;
|
|
1971
|
-
/**
|
|
1972
|
-
* Whether there are more pages to retrieve following the current page.
|
|
1973
|
-
*
|
|
1974
|
-
* + `true`: Another page of results can be retrieved.
|
|
1975
|
-
* + `false`: This is the last page.
|
|
1976
|
-
*/
|
|
1977
|
-
hasNext?: boolean | null;
|
|
1978
|
-
}
|
|
1979
1960
|
interface DomainEvent$3 extends DomainEventBodyOneOf$3 {
|
|
1980
1961
|
createdEvent?: EntityCreatedEvent$3;
|
|
1981
1962
|
updatedEvent?: EntityUpdatedEvent$3;
|
|
@@ -1999,7 +1980,7 @@ interface DomainEvent$3 extends DomainEventBodyOneOf$3 {
|
|
|
1999
1980
|
slug?: string;
|
|
2000
1981
|
/** ID of the entity associated with the event. */
|
|
2001
1982
|
entityId?: string;
|
|
2002
|
-
/** Event timestamp. */
|
|
1983
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
2003
1984
|
eventTime?: Date;
|
|
2004
1985
|
/**
|
|
2005
1986
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -2086,264 +2067,127 @@ declare enum WebhookIdentityType$4 {
|
|
|
2086
2067
|
WIX_USER = "WIX_USER",
|
|
2087
2068
|
APP = "APP"
|
|
2088
2069
|
}
|
|
2070
|
+
interface ContactSourceNonNullableFields {
|
|
2071
|
+
sourceType: ContactSourceType$1;
|
|
2072
|
+
}
|
|
2073
|
+
interface ContactActivityNonNullableFields {
|
|
2074
|
+
activityType: ContactActivityType$1;
|
|
2075
|
+
}
|
|
2076
|
+
interface ContactEmailNonNullableFields {
|
|
2077
|
+
tag: EmailTag$1;
|
|
2078
|
+
email: string;
|
|
2079
|
+
}
|
|
2080
|
+
interface ContactEmailsWrapperNonNullableFields {
|
|
2081
|
+
items: ContactEmailNonNullableFields[];
|
|
2082
|
+
}
|
|
2083
|
+
interface ContactPhoneNonNullableFields {
|
|
2084
|
+
tag: PhoneTag$1;
|
|
2085
|
+
phone: string;
|
|
2086
|
+
}
|
|
2087
|
+
interface ContactPhonesWrapperNonNullableFields {
|
|
2088
|
+
items: ContactPhoneNonNullableFields[];
|
|
2089
|
+
}
|
|
2090
|
+
interface StreetAddressNonNullableFields {
|
|
2091
|
+
number: string;
|
|
2092
|
+
name: string;
|
|
2093
|
+
apt: string;
|
|
2094
|
+
}
|
|
2095
|
+
interface AddressNonNullableFields {
|
|
2096
|
+
streetAddress?: StreetAddressNonNullableFields;
|
|
2097
|
+
}
|
|
2098
|
+
interface ContactAddressNonNullableFields {
|
|
2099
|
+
tag: AddressTag$1;
|
|
2100
|
+
address?: AddressNonNullableFields;
|
|
2101
|
+
}
|
|
2102
|
+
interface ContactAddressesWrapperNonNullableFields {
|
|
2103
|
+
items: ContactAddressNonNullableFields[];
|
|
2104
|
+
}
|
|
2105
|
+
interface AssigneesWrapperNonNullableFields {
|
|
2106
|
+
items: string[];
|
|
2107
|
+
}
|
|
2108
|
+
interface LabelsWrapperNonNullableFields {
|
|
2109
|
+
items: string[];
|
|
2110
|
+
}
|
|
2111
|
+
interface LocationsWrapperNonNullableFields {
|
|
2112
|
+
items: string[];
|
|
2113
|
+
}
|
|
2114
|
+
interface ContactPictureNonNullableFields {
|
|
2115
|
+
image: string;
|
|
2116
|
+
imageProvider: ImageProvider$1;
|
|
2117
|
+
}
|
|
2118
|
+
interface ContactInfoNonNullableFields {
|
|
2119
|
+
emails?: ContactEmailsWrapperNonNullableFields;
|
|
2120
|
+
phones?: ContactPhonesWrapperNonNullableFields;
|
|
2121
|
+
addresses?: ContactAddressesWrapperNonNullableFields;
|
|
2122
|
+
assignedUserIds?: AssigneesWrapperNonNullableFields;
|
|
2123
|
+
labelKeys?: LabelsWrapperNonNullableFields;
|
|
2124
|
+
locations?: LocationsWrapperNonNullableFields;
|
|
2125
|
+
picture?: ContactPictureNonNullableFields;
|
|
2126
|
+
}
|
|
2127
|
+
interface SegmentsWrapperNonNullableFields {
|
|
2128
|
+
items: string[];
|
|
2129
|
+
}
|
|
2130
|
+
interface PrimaryEmailNonNullableFields {
|
|
2131
|
+
subscriptionStatus: SubscriptionStatus;
|
|
2132
|
+
deliverabilityStatus: EmailDeliverabilityStatus;
|
|
2133
|
+
}
|
|
2134
|
+
interface PrimaryPhoneNonNullableFields {
|
|
2135
|
+
subscriptionStatus: SubscriptionStatus;
|
|
2136
|
+
deliverabilityStatus: PhoneDeliverabilityStatus;
|
|
2137
|
+
}
|
|
2138
|
+
interface ProfileInfoNonNullableFields {
|
|
2139
|
+
privacyStatus: PrivacyStatus;
|
|
2140
|
+
photo: string;
|
|
2141
|
+
}
|
|
2142
|
+
interface UserInfoNonNullableFields {
|
|
2143
|
+
userId: string;
|
|
2144
|
+
role: Role;
|
|
2145
|
+
}
|
|
2146
|
+
interface SessionInfoNonNullableFields {
|
|
2147
|
+
mobileAppNames: string[];
|
|
2148
|
+
}
|
|
2149
|
+
interface GroupInfoNonNullableFields {
|
|
2150
|
+
groupIds: string[];
|
|
2151
|
+
}
|
|
2152
|
+
interface MemberInfoNonNullableFields {
|
|
2153
|
+
status: MemberStatus;
|
|
2154
|
+
profileInfo?: ProfileInfoNonNullableFields;
|
|
2155
|
+
userInfo?: UserInfoNonNullableFields;
|
|
2156
|
+
sessionInfo?: SessionInfoNonNullableFields;
|
|
2157
|
+
groupInfo?: GroupInfoNonNullableFields;
|
|
2158
|
+
}
|
|
2159
|
+
interface ContactNonNullableFields {
|
|
2160
|
+
_id: string;
|
|
2161
|
+
revision: number;
|
|
2162
|
+
source?: ContactSourceNonNullableFields;
|
|
2163
|
+
lastActivity?: ContactActivityNonNullableFields;
|
|
2164
|
+
picture: string;
|
|
2165
|
+
info?: ContactInfoNonNullableFields;
|
|
2166
|
+
segments?: SegmentsWrapperNonNullableFields;
|
|
2167
|
+
primaryEmail?: PrimaryEmailNonNullableFields;
|
|
2168
|
+
primaryPhone?: PrimaryPhoneNonNullableFields;
|
|
2169
|
+
memberInfo?: MemberInfoNonNullableFields;
|
|
2170
|
+
}
|
|
2089
2171
|
interface CreateContactResponseNonNullableFields {
|
|
2090
|
-
contact?:
|
|
2091
|
-
_id: string;
|
|
2092
|
-
revision: number;
|
|
2093
|
-
source?: {
|
|
2094
|
-
sourceType: ContactSourceType$1;
|
|
2095
|
-
};
|
|
2096
|
-
lastActivity?: {
|
|
2097
|
-
activityType: ContactActivityType$1;
|
|
2098
|
-
};
|
|
2099
|
-
info?: {
|
|
2100
|
-
emails?: {
|
|
2101
|
-
items: {
|
|
2102
|
-
tag: EmailTag$1;
|
|
2103
|
-
email: string;
|
|
2104
|
-
}[];
|
|
2105
|
-
};
|
|
2106
|
-
phones?: {
|
|
2107
|
-
items: {
|
|
2108
|
-
tag: PhoneTag$1;
|
|
2109
|
-
phone: string;
|
|
2110
|
-
}[];
|
|
2111
|
-
};
|
|
2112
|
-
addresses?: {
|
|
2113
|
-
items: {
|
|
2114
|
-
tag: AddressTag$1;
|
|
2115
|
-
}[];
|
|
2116
|
-
};
|
|
2117
|
-
labelKeys?: {
|
|
2118
|
-
items: string[];
|
|
2119
|
-
};
|
|
2120
|
-
picture?: {
|
|
2121
|
-
image: string;
|
|
2122
|
-
};
|
|
2123
|
-
};
|
|
2124
|
-
};
|
|
2172
|
+
contact?: ContactNonNullableFields;
|
|
2125
2173
|
}
|
|
2126
2174
|
interface UpdateContactResponseNonNullableFields {
|
|
2127
|
-
contact?:
|
|
2128
|
-
_id: string;
|
|
2129
|
-
revision: number;
|
|
2130
|
-
source?: {
|
|
2131
|
-
sourceType: ContactSourceType$1;
|
|
2132
|
-
};
|
|
2133
|
-
lastActivity?: {
|
|
2134
|
-
activityType: ContactActivityType$1;
|
|
2135
|
-
};
|
|
2136
|
-
info?: {
|
|
2137
|
-
emails?: {
|
|
2138
|
-
items: {
|
|
2139
|
-
tag: EmailTag$1;
|
|
2140
|
-
email: string;
|
|
2141
|
-
}[];
|
|
2142
|
-
};
|
|
2143
|
-
phones?: {
|
|
2144
|
-
items: {
|
|
2145
|
-
tag: PhoneTag$1;
|
|
2146
|
-
phone: string;
|
|
2147
|
-
}[];
|
|
2148
|
-
};
|
|
2149
|
-
addresses?: {
|
|
2150
|
-
items: {
|
|
2151
|
-
tag: AddressTag$1;
|
|
2152
|
-
}[];
|
|
2153
|
-
};
|
|
2154
|
-
labelKeys?: {
|
|
2155
|
-
items: string[];
|
|
2156
|
-
};
|
|
2157
|
-
picture?: {
|
|
2158
|
-
image: string;
|
|
2159
|
-
};
|
|
2160
|
-
};
|
|
2161
|
-
};
|
|
2175
|
+
contact?: ContactNonNullableFields;
|
|
2162
2176
|
}
|
|
2163
2177
|
interface MergeContactsResponseNonNullableFields {
|
|
2164
|
-
contact?:
|
|
2165
|
-
_id: string;
|
|
2166
|
-
revision: number;
|
|
2167
|
-
source?: {
|
|
2168
|
-
sourceType: ContactSourceType$1;
|
|
2169
|
-
};
|
|
2170
|
-
lastActivity?: {
|
|
2171
|
-
activityType: ContactActivityType$1;
|
|
2172
|
-
};
|
|
2173
|
-
info?: {
|
|
2174
|
-
emails?: {
|
|
2175
|
-
items: {
|
|
2176
|
-
tag: EmailTag$1;
|
|
2177
|
-
email: string;
|
|
2178
|
-
}[];
|
|
2179
|
-
};
|
|
2180
|
-
phones?: {
|
|
2181
|
-
items: {
|
|
2182
|
-
tag: PhoneTag$1;
|
|
2183
|
-
phone: string;
|
|
2184
|
-
}[];
|
|
2185
|
-
};
|
|
2186
|
-
addresses?: {
|
|
2187
|
-
items: {
|
|
2188
|
-
tag: AddressTag$1;
|
|
2189
|
-
}[];
|
|
2190
|
-
};
|
|
2191
|
-
labelKeys?: {
|
|
2192
|
-
items: string[];
|
|
2193
|
-
};
|
|
2194
|
-
picture?: {
|
|
2195
|
-
image: string;
|
|
2196
|
-
};
|
|
2197
|
-
};
|
|
2198
|
-
};
|
|
2178
|
+
contact?: ContactNonNullableFields;
|
|
2199
2179
|
}
|
|
2200
2180
|
interface LabelContactResponseNonNullableFields {
|
|
2201
|
-
contact?:
|
|
2202
|
-
_id: string;
|
|
2203
|
-
revision: number;
|
|
2204
|
-
source?: {
|
|
2205
|
-
sourceType: ContactSourceType$1;
|
|
2206
|
-
};
|
|
2207
|
-
lastActivity?: {
|
|
2208
|
-
activityType: ContactActivityType$1;
|
|
2209
|
-
};
|
|
2210
|
-
info?: {
|
|
2211
|
-
emails?: {
|
|
2212
|
-
items: {
|
|
2213
|
-
tag: EmailTag$1;
|
|
2214
|
-
email: string;
|
|
2215
|
-
}[];
|
|
2216
|
-
};
|
|
2217
|
-
phones?: {
|
|
2218
|
-
items: {
|
|
2219
|
-
tag: PhoneTag$1;
|
|
2220
|
-
phone: string;
|
|
2221
|
-
}[];
|
|
2222
|
-
};
|
|
2223
|
-
addresses?: {
|
|
2224
|
-
items: {
|
|
2225
|
-
tag: AddressTag$1;
|
|
2226
|
-
}[];
|
|
2227
|
-
};
|
|
2228
|
-
labelKeys?: {
|
|
2229
|
-
items: string[];
|
|
2230
|
-
};
|
|
2231
|
-
picture?: {
|
|
2232
|
-
image: string;
|
|
2233
|
-
};
|
|
2234
|
-
};
|
|
2235
|
-
};
|
|
2181
|
+
contact?: ContactNonNullableFields;
|
|
2236
2182
|
}
|
|
2237
2183
|
interface UnlabelContactResponseNonNullableFields {
|
|
2238
|
-
contact?:
|
|
2239
|
-
_id: string;
|
|
2240
|
-
revision: number;
|
|
2241
|
-
source?: {
|
|
2242
|
-
sourceType: ContactSourceType$1;
|
|
2243
|
-
};
|
|
2244
|
-
lastActivity?: {
|
|
2245
|
-
activityType: ContactActivityType$1;
|
|
2246
|
-
};
|
|
2247
|
-
info?: {
|
|
2248
|
-
emails?: {
|
|
2249
|
-
items: {
|
|
2250
|
-
tag: EmailTag$1;
|
|
2251
|
-
email: string;
|
|
2252
|
-
}[];
|
|
2253
|
-
};
|
|
2254
|
-
phones?: {
|
|
2255
|
-
items: {
|
|
2256
|
-
tag: PhoneTag$1;
|
|
2257
|
-
phone: string;
|
|
2258
|
-
}[];
|
|
2259
|
-
};
|
|
2260
|
-
addresses?: {
|
|
2261
|
-
items: {
|
|
2262
|
-
tag: AddressTag$1;
|
|
2263
|
-
}[];
|
|
2264
|
-
};
|
|
2265
|
-
labelKeys?: {
|
|
2266
|
-
items: string[];
|
|
2267
|
-
};
|
|
2268
|
-
picture?: {
|
|
2269
|
-
image: string;
|
|
2270
|
-
};
|
|
2271
|
-
};
|
|
2272
|
-
};
|
|
2184
|
+
contact?: ContactNonNullableFields;
|
|
2273
2185
|
}
|
|
2274
2186
|
interface QueryContactsResponseNonNullableFields {
|
|
2275
|
-
contacts:
|
|
2276
|
-
_id: string;
|
|
2277
|
-
revision: number;
|
|
2278
|
-
source?: {
|
|
2279
|
-
sourceType: ContactSourceType$1;
|
|
2280
|
-
};
|
|
2281
|
-
lastActivity?: {
|
|
2282
|
-
activityType: ContactActivityType$1;
|
|
2283
|
-
};
|
|
2284
|
-
info?: {
|
|
2285
|
-
emails?: {
|
|
2286
|
-
items: {
|
|
2287
|
-
tag: EmailTag$1;
|
|
2288
|
-
email: string;
|
|
2289
|
-
}[];
|
|
2290
|
-
};
|
|
2291
|
-
phones?: {
|
|
2292
|
-
items: {
|
|
2293
|
-
tag: PhoneTag$1;
|
|
2294
|
-
phone: string;
|
|
2295
|
-
}[];
|
|
2296
|
-
};
|
|
2297
|
-
addresses?: {
|
|
2298
|
-
items: {
|
|
2299
|
-
tag: AddressTag$1;
|
|
2300
|
-
}[];
|
|
2301
|
-
};
|
|
2302
|
-
labelKeys?: {
|
|
2303
|
-
items: string[];
|
|
2304
|
-
};
|
|
2305
|
-
picture?: {
|
|
2306
|
-
image: string;
|
|
2307
|
-
};
|
|
2308
|
-
};
|
|
2309
|
-
}[];
|
|
2187
|
+
contacts: ContactNonNullableFields[];
|
|
2310
2188
|
}
|
|
2311
2189
|
interface GetContactResponseNonNullableFields {
|
|
2312
|
-
contact?:
|
|
2313
|
-
_id: string;
|
|
2314
|
-
revision: number;
|
|
2315
|
-
source?: {
|
|
2316
|
-
sourceType: ContactSourceType$1;
|
|
2317
|
-
};
|
|
2318
|
-
lastActivity?: {
|
|
2319
|
-
activityType: ContactActivityType$1;
|
|
2320
|
-
};
|
|
2321
|
-
info?: {
|
|
2322
|
-
emails?: {
|
|
2323
|
-
items: {
|
|
2324
|
-
tag: EmailTag$1;
|
|
2325
|
-
email: string;
|
|
2326
|
-
}[];
|
|
2327
|
-
};
|
|
2328
|
-
phones?: {
|
|
2329
|
-
items: {
|
|
2330
|
-
tag: PhoneTag$1;
|
|
2331
|
-
phone: string;
|
|
2332
|
-
}[];
|
|
2333
|
-
};
|
|
2334
|
-
addresses?: {
|
|
2335
|
-
items: {
|
|
2336
|
-
tag: AddressTag$1;
|
|
2337
|
-
}[];
|
|
2338
|
-
};
|
|
2339
|
-
labelKeys?: {
|
|
2340
|
-
items: string[];
|
|
2341
|
-
};
|
|
2342
|
-
picture?: {
|
|
2343
|
-
image: string;
|
|
2344
|
-
};
|
|
2345
|
-
};
|
|
2346
|
-
};
|
|
2190
|
+
contact?: ContactNonNullableFields;
|
|
2347
2191
|
responseType: GetContactResponseType;
|
|
2348
2192
|
}
|
|
2349
2193
|
interface BaseEventMetadata$3 {
|
|
@@ -2373,7 +2217,7 @@ interface EventMetadata$3 extends BaseEventMetadata$3 {
|
|
|
2373
2217
|
slug?: string;
|
|
2374
2218
|
/** ID of the entity associated with the event. */
|
|
2375
2219
|
entityId?: string;
|
|
2376
|
-
/** Event timestamp. */
|
|
2220
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
2377
2221
|
eventTime?: Date;
|
|
2378
2222
|
/**
|
|
2379
2223
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -2547,95 +2391,22 @@ interface GetContactOptions {
|
|
|
2547
2391
|
fieldsets?: ContactFieldSet[];
|
|
2548
2392
|
}
|
|
2549
2393
|
|
|
2550
|
-
|
|
2551
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$4<TResponse, TData>): Promise<HttpResponse$4<TResponse>>;
|
|
2552
|
-
fetchWithAuth: typeof fetch;
|
|
2553
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
2554
|
-
}
|
|
2555
|
-
type RequestOptionsFactory$4<TResponse = any, TData = any> = (context: any) => RequestOptions$4<TResponse, TData>;
|
|
2556
|
-
type HttpResponse$4<T = any> = {
|
|
2557
|
-
data: T;
|
|
2558
|
-
status: number;
|
|
2559
|
-
statusText: string;
|
|
2560
|
-
headers: any;
|
|
2561
|
-
request?: any;
|
|
2562
|
-
};
|
|
2563
|
-
type RequestOptions$4<_TResponse = any, Data = any> = {
|
|
2564
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2565
|
-
url: string;
|
|
2566
|
-
data?: Data;
|
|
2567
|
-
params?: URLSearchParams;
|
|
2568
|
-
} & APIMetadata$4;
|
|
2569
|
-
type APIMetadata$4 = {
|
|
2570
|
-
methodFqn?: string;
|
|
2571
|
-
entityFqdn?: string;
|
|
2572
|
-
packageName?: string;
|
|
2573
|
-
};
|
|
2574
|
-
type EventDefinition$3<Payload = unknown, Type extends string = string> = {
|
|
2575
|
-
__type: 'event-definition';
|
|
2576
|
-
type: Type;
|
|
2577
|
-
isDomainEvent?: boolean;
|
|
2578
|
-
transformations?: (envelope: unknown) => Payload;
|
|
2579
|
-
__payload: Payload;
|
|
2580
|
-
};
|
|
2581
|
-
declare function EventDefinition$3<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$3<Payload, Type>;
|
|
2394
|
+
declare function createRESTModule$4<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
2582
2395
|
|
|
2583
|
-
declare
|
|
2584
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2585
|
-
interface SymbolConstructor {
|
|
2586
|
-
readonly observable: symbol;
|
|
2587
|
-
}
|
|
2588
|
-
}
|
|
2396
|
+
declare function createEventModule$3<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
2589
2397
|
|
|
2590
|
-
declare const
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
declare
|
|
2594
|
-
declare
|
|
2595
|
-
declare
|
|
2596
|
-
declare
|
|
2597
|
-
declare
|
|
2598
|
-
declare
|
|
2599
|
-
declare
|
|
2600
|
-
declare
|
|
2601
|
-
|
|
2602
|
-
revision: number;
|
|
2603
|
-
source?: {
|
|
2604
|
-
sourceType: ContactSourceType$1;
|
|
2605
|
-
} | undefined;
|
|
2606
|
-
lastActivity?: {
|
|
2607
|
-
activityType: ContactActivityType$1;
|
|
2608
|
-
} | undefined;
|
|
2609
|
-
info?: {
|
|
2610
|
-
emails?: {
|
|
2611
|
-
items: {
|
|
2612
|
-
tag: EmailTag$1;
|
|
2613
|
-
email: string;
|
|
2614
|
-
}[];
|
|
2615
|
-
} | undefined;
|
|
2616
|
-
phones?: {
|
|
2617
|
-
items: {
|
|
2618
|
-
tag: PhoneTag$1;
|
|
2619
|
-
phone: string;
|
|
2620
|
-
}[];
|
|
2621
|
-
} | undefined;
|
|
2622
|
-
addresses?: {
|
|
2623
|
-
items: {
|
|
2624
|
-
tag: AddressTag$1;
|
|
2625
|
-
}[];
|
|
2626
|
-
} | undefined;
|
|
2627
|
-
labelKeys?: {
|
|
2628
|
-
items: string[];
|
|
2629
|
-
} | undefined;
|
|
2630
|
-
picture?: {
|
|
2631
|
-
image: string;
|
|
2632
|
-
} | undefined;
|
|
2633
|
-
} | undefined;
|
|
2634
|
-
}>;
|
|
2635
|
-
declare const onContactCreated: EventDefinition$3<ContactCreatedEnvelope, "wix.contacts.v4.contact_created">;
|
|
2636
|
-
declare const onContactUpdated: EventDefinition$3<ContactUpdatedEnvelope, "wix.contacts.v4.contact_updated">;
|
|
2637
|
-
declare const onContactMerged: EventDefinition$3<ContactMergedEnvelope, "wix.contacts.v4.contact_merged">;
|
|
2638
|
-
declare const onContactDeleted: EventDefinition$3<ContactDeletedEnvelope, "wix.contacts.v4.contact_deleted">;
|
|
2398
|
+
declare const createContact: ReturnType<typeof createRESTModule$4<typeof publicCreateContact>>;
|
|
2399
|
+
declare const updateContact: ReturnType<typeof createRESTModule$4<typeof publicUpdateContact>>;
|
|
2400
|
+
declare const mergeContacts: ReturnType<typeof createRESTModule$4<typeof publicMergeContacts>>;
|
|
2401
|
+
declare const deleteContact: ReturnType<typeof createRESTModule$4<typeof publicDeleteContact>>;
|
|
2402
|
+
declare const labelContact: ReturnType<typeof createRESTModule$4<typeof publicLabelContact>>;
|
|
2403
|
+
declare const unlabelContact: ReturnType<typeof createRESTModule$4<typeof publicUnlabelContact>>;
|
|
2404
|
+
declare const queryContacts: ReturnType<typeof createRESTModule$4<typeof publicQueryContacts>>;
|
|
2405
|
+
declare const getContact: ReturnType<typeof createRESTModule$4<typeof publicGetContact>>;
|
|
2406
|
+
declare const onContactCreated: ReturnType<typeof createEventModule$3<typeof publicOnContactCreated>>;
|
|
2407
|
+
declare const onContactUpdated: ReturnType<typeof createEventModule$3<typeof publicOnContactUpdated>>;
|
|
2408
|
+
declare const onContactMerged: ReturnType<typeof createEventModule$3<typeof publicOnContactMerged>>;
|
|
2409
|
+
declare const onContactDeleted: ReturnType<typeof createEventModule$3<typeof publicOnContactDeleted>>;
|
|
2639
2410
|
|
|
2640
2411
|
type index_d$4_Action = Action;
|
|
2641
2412
|
declare const index_d$4_Action: typeof Action;
|
|
@@ -2664,6 +2435,7 @@ type index_d$4_ContactFieldSet = ContactFieldSet;
|
|
|
2664
2435
|
declare const index_d$4_ContactFieldSet: typeof ContactFieldSet;
|
|
2665
2436
|
type index_d$4_ContactMerged = ContactMerged;
|
|
2666
2437
|
type index_d$4_ContactMergedEnvelope = ContactMergedEnvelope;
|
|
2438
|
+
type index_d$4_ContactNonNullableFields = ContactNonNullableFields;
|
|
2667
2439
|
type index_d$4_ContactPhoneSubscriptionUpdated = ContactPhoneSubscriptionUpdated;
|
|
2668
2440
|
type index_d$4_ContactPrimaryInfoUpdated = ContactPrimaryInfoUpdated;
|
|
2669
2441
|
type index_d$4_ContactRemovedFromSegment = ContactRemovedFromSegment;
|
|
@@ -2775,7 +2547,7 @@ declare const index_d$4_queryContacts: typeof queryContacts;
|
|
|
2775
2547
|
declare const index_d$4_unlabelContact: typeof unlabelContact;
|
|
2776
2548
|
declare const index_d$4_updateContact: typeof updateContact;
|
|
2777
2549
|
declare namespace index_d$4 {
|
|
2778
|
-
export { index_d$4_Action as Action, type ActionEvent$3 as ActionEvent, type ActivityIcon$1 as ActivityIcon, type Address$1 as Address, type AddressLocation$1 as AddressLocation, type AddressStreetOneOf$1 as AddressStreetOneOf, AddressTag$1 as AddressTag, type index_d$4_ApplicationError as ApplicationError, type AssigneesWrapper$1 as AssigneesWrapper, type BaseEventMetadata$3 as BaseEventMetadata, type index_d$4_BulkActionMetadata as BulkActionMetadata, type index_d$4_BulkAddSegmentToContactsRequest as BulkAddSegmentToContactsRequest, type index_d$4_BulkAddSegmentToContactsResponse as BulkAddSegmentToContactsResponse, type index_d$4_BulkDeleteContactsRequest as BulkDeleteContactsRequest, type index_d$4_BulkDeleteContactsResponse as BulkDeleteContactsResponse, type index_d$4_BulkLabelAndUnlabelContactsRequest as BulkLabelAndUnlabelContactsRequest, type index_d$4_BulkLabelAndUnlabelContactsResponse as BulkLabelAndUnlabelContactsResponse, type index_d$4_BulkRemoveSegmentFromContactsRequest as BulkRemoveSegmentFromContactsRequest, type index_d$4_BulkRemoveSegmentFromContactsResponse as BulkRemoveSegmentFromContactsResponse, type index_d$4_BulkUpdateContactsRequest as BulkUpdateContactsRequest, type index_d$4_BulkUpdateContactsResponse as BulkUpdateContactsResponse, type index_d$4_BulkUpsertContactsRequest as BulkUpsertContactsRequest, type index_d$4_BulkUpsertContactsResponse as BulkUpsertContactsResponse, type index_d$4_BulkUpsertContactsResponseMetadata as BulkUpsertContactsResponseMetadata, type index_d$4_Contact as Contact, type ContactActivity$1 as ContactActivity, ContactActivityType$1 as ContactActivityType, type index_d$4_ContactAddedToSegment as ContactAddedToSegment, type ContactAddress$1 as ContactAddress, type ContactAddressesWrapper$1 as ContactAddressesWrapper, type index_d$4_ContactChanged as ContactChanged, type index_d$4_ContactCreatedEnvelope as ContactCreatedEnvelope, type index_d$4_ContactDeletedEnvelope as ContactDeletedEnvelope, type ContactEmail$1 as ContactEmail, type index_d$4_ContactEmailSubscriptionUpdated as ContactEmailSubscriptionUpdated, type ContactEmailsWrapper$1 as ContactEmailsWrapper, index_d$4_ContactFieldSet as ContactFieldSet, type ContactInfo$2 as ContactInfo, type index_d$4_ContactMerged as ContactMerged, type index_d$4_ContactMergedEnvelope as ContactMergedEnvelope, type ContactName$1 as ContactName, type ContactPhone$1 as ContactPhone, type index_d$4_ContactPhoneSubscriptionUpdated as ContactPhoneSubscriptionUpdated, type ContactPhonesWrapper$1 as ContactPhonesWrapper, type ContactPicture$1 as ContactPicture, type index_d$4_ContactPrimaryInfoUpdated as ContactPrimaryInfoUpdated, type index_d$4_ContactRemovedFromSegment as ContactRemovedFromSegment, type index_d$4_ContactSource as ContactSource, ContactSourceType$1 as ContactSourceType, type index_d$4_ContactSubmitted as ContactSubmitted, type index_d$4_ContactUpdatedEnvelope as ContactUpdatedEnvelope, type index_d$4_ContactsFacet as ContactsFacet, index_d$4_ContactsFacetType as ContactsFacetType, type index_d$4_ContactsQueryBuilder as ContactsQueryBuilder, type index_d$4_ContactsQueryResult as ContactsQueryResult, type index_d$4_CountContactsRequest as CountContactsRequest, type index_d$4_CountContactsResponse as CountContactsResponse, type index_d$4_CreateContactOptions as CreateContactOptions, type index_d$4_CreateContactRequest as CreateContactRequest, type index_d$4_CreateContactResponse as CreateContactResponse, type index_d$4_CreateContactResponseNonNullableFields as CreateContactResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type Cursors$1 as Cursors, type index_d$4_DeleteContactRequest as DeleteContactRequest, type index_d$4_DeleteContactResponse as DeleteContactResponse, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type index_d$4_DuplicateContactExists as DuplicateContactExists, index_d$4_EmailDeliverabilityStatus as EmailDeliverabilityStatus, EmailTag$1 as EmailTag, type EntityCreatedEvent$3 as EntityCreatedEvent, type EntityDeletedEvent$3 as EntityDeletedEvent, type EntityUpdatedEvent$3 as EntityUpdatedEvent, type index_d$4_Error as Error, type EventMetadata$3 as EventMetadata, type ExtendedFieldsWrapper$1 as ExtendedFieldsWrapper, type index_d$4_GeneratePictureUploadUrlRequest as GeneratePictureUploadUrlRequest, type index_d$4_GeneratePictureUploadUrlResponse as GeneratePictureUploadUrlResponse, type index_d$4_GetContactOptions as GetContactOptions, type index_d$4_GetContactRequest as GetContactRequest, type index_d$4_GetContactResponse as GetContactResponse, type index_d$4_GetContactResponseNonNullableFields as GetContactResponseNonNullableFields, index_d$4_GetContactResponseType as GetContactResponseType, type index_d$4_GroupInfo as GroupInfo, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, ImageProvider$1 as ImageProvider, type index_d$4_Item as Item, type index_d$4_ItemMetadata as ItemMetadata, type index_d$4_LabelAndUnlabelContactRequest as LabelAndUnlabelContactRequest, type index_d$4_LabelAndUnlabelContactResponse as LabelAndUnlabelContactResponse, type index_d$4_LabelContactRequest as LabelContactRequest, type index_d$4_LabelContactResponse as LabelContactResponse, type index_d$4_LabelContactResponseNonNullableFields as LabelContactResponseNonNullableFields, type LabelsWrapper$1 as LabelsWrapper, type index_d$4_LastActivityUpdate as LastActivityUpdate, type index_d$4_ListContactIdsBySegmentRequest as ListContactIdsBySegmentRequest, type index_d$4_ListContactIdsBySegmentResponse as ListContactIdsBySegmentResponse, type index_d$4_ListContactsRequest as ListContactsRequest, type index_d$4_ListContactsResponse as ListContactsResponse, type index_d$4_ListFacetsRequest as ListFacetsRequest, type index_d$4_ListFacetsResponse as ListFacetsResponse, type LocationsWrapper$1 as LocationsWrapper, type index_d$4_MemberInfo as MemberInfo, index_d$4_MemberStatus as MemberStatus, type index_d$4_MergeContactsOptions as MergeContactsOptions, type index_d$4_MergeContactsRequest as MergeContactsRequest, type index_d$4_MergeContactsResponse as MergeContactsResponse, type index_d$4_MergeContactsResponseNonNullableFields as MergeContactsResponseNonNullableFields, type MessageEnvelope$4 as MessageEnvelope, type index_d$4_Metadata as Metadata, index_d$4_Mode as Mode, type Paging$3 as Paging, type PagingMetadata$2 as PagingMetadata,
|
|
2550
|
+
export { index_d$4_Action as Action, type ActionEvent$3 as ActionEvent, type ActivityIcon$1 as ActivityIcon, type Address$1 as Address, type AddressLocation$1 as AddressLocation, type AddressStreetOneOf$1 as AddressStreetOneOf, AddressTag$1 as AddressTag, type index_d$4_ApplicationError as ApplicationError, type AssigneesWrapper$1 as AssigneesWrapper, type BaseEventMetadata$3 as BaseEventMetadata, type index_d$4_BulkActionMetadata as BulkActionMetadata, type index_d$4_BulkAddSegmentToContactsRequest as BulkAddSegmentToContactsRequest, type index_d$4_BulkAddSegmentToContactsResponse as BulkAddSegmentToContactsResponse, type index_d$4_BulkDeleteContactsRequest as BulkDeleteContactsRequest, type index_d$4_BulkDeleteContactsResponse as BulkDeleteContactsResponse, type index_d$4_BulkLabelAndUnlabelContactsRequest as BulkLabelAndUnlabelContactsRequest, type index_d$4_BulkLabelAndUnlabelContactsResponse as BulkLabelAndUnlabelContactsResponse, type index_d$4_BulkRemoveSegmentFromContactsRequest as BulkRemoveSegmentFromContactsRequest, type index_d$4_BulkRemoveSegmentFromContactsResponse as BulkRemoveSegmentFromContactsResponse, type index_d$4_BulkUpdateContactsRequest as BulkUpdateContactsRequest, type index_d$4_BulkUpdateContactsResponse as BulkUpdateContactsResponse, type index_d$4_BulkUpsertContactsRequest as BulkUpsertContactsRequest, type index_d$4_BulkUpsertContactsResponse as BulkUpsertContactsResponse, type index_d$4_BulkUpsertContactsResponseMetadata as BulkUpsertContactsResponseMetadata, type index_d$4_Contact as Contact, type ContactActivity$1 as ContactActivity, ContactActivityType$1 as ContactActivityType, type index_d$4_ContactAddedToSegment as ContactAddedToSegment, type ContactAddress$1 as ContactAddress, type ContactAddressesWrapper$1 as ContactAddressesWrapper, type index_d$4_ContactChanged as ContactChanged, type index_d$4_ContactCreatedEnvelope as ContactCreatedEnvelope, type index_d$4_ContactDeletedEnvelope as ContactDeletedEnvelope, type ContactEmail$1 as ContactEmail, type index_d$4_ContactEmailSubscriptionUpdated as ContactEmailSubscriptionUpdated, type ContactEmailsWrapper$1 as ContactEmailsWrapper, index_d$4_ContactFieldSet as ContactFieldSet, type ContactInfo$2 as ContactInfo, type index_d$4_ContactMerged as ContactMerged, type index_d$4_ContactMergedEnvelope as ContactMergedEnvelope, type ContactName$1 as ContactName, type index_d$4_ContactNonNullableFields as ContactNonNullableFields, type ContactPhone$1 as ContactPhone, type index_d$4_ContactPhoneSubscriptionUpdated as ContactPhoneSubscriptionUpdated, type ContactPhonesWrapper$1 as ContactPhonesWrapper, type ContactPicture$1 as ContactPicture, type index_d$4_ContactPrimaryInfoUpdated as ContactPrimaryInfoUpdated, type index_d$4_ContactRemovedFromSegment as ContactRemovedFromSegment, type index_d$4_ContactSource as ContactSource, ContactSourceType$1 as ContactSourceType, type index_d$4_ContactSubmitted as ContactSubmitted, type index_d$4_ContactUpdatedEnvelope as ContactUpdatedEnvelope, type index_d$4_ContactsFacet as ContactsFacet, index_d$4_ContactsFacetType as ContactsFacetType, type index_d$4_ContactsQueryBuilder as ContactsQueryBuilder, type index_d$4_ContactsQueryResult as ContactsQueryResult, type index_d$4_CountContactsRequest as CountContactsRequest, type index_d$4_CountContactsResponse as CountContactsResponse, type index_d$4_CreateContactOptions as CreateContactOptions, type index_d$4_CreateContactRequest as CreateContactRequest, type index_d$4_CreateContactResponse as CreateContactResponse, type index_d$4_CreateContactResponseNonNullableFields as CreateContactResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type Cursors$1 as Cursors, type index_d$4_DeleteContactRequest as DeleteContactRequest, type index_d$4_DeleteContactResponse as DeleteContactResponse, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type index_d$4_DuplicateContactExists as DuplicateContactExists, index_d$4_EmailDeliverabilityStatus as EmailDeliverabilityStatus, EmailTag$1 as EmailTag, type EntityCreatedEvent$3 as EntityCreatedEvent, type EntityDeletedEvent$3 as EntityDeletedEvent, type EntityUpdatedEvent$3 as EntityUpdatedEvent, type index_d$4_Error as Error, type EventMetadata$3 as EventMetadata, type ExtendedFieldsWrapper$1 as ExtendedFieldsWrapper, type index_d$4_GeneratePictureUploadUrlRequest as GeneratePictureUploadUrlRequest, type index_d$4_GeneratePictureUploadUrlResponse as GeneratePictureUploadUrlResponse, type index_d$4_GetContactOptions as GetContactOptions, type index_d$4_GetContactRequest as GetContactRequest, type index_d$4_GetContactResponse as GetContactResponse, type index_d$4_GetContactResponseNonNullableFields as GetContactResponseNonNullableFields, index_d$4_GetContactResponseType as GetContactResponseType, type index_d$4_GroupInfo as GroupInfo, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, ImageProvider$1 as ImageProvider, type index_d$4_Item as Item, type index_d$4_ItemMetadata as ItemMetadata, type index_d$4_LabelAndUnlabelContactRequest as LabelAndUnlabelContactRequest, type index_d$4_LabelAndUnlabelContactResponse as LabelAndUnlabelContactResponse, type index_d$4_LabelContactRequest as LabelContactRequest, type index_d$4_LabelContactResponse as LabelContactResponse, type index_d$4_LabelContactResponseNonNullableFields as LabelContactResponseNonNullableFields, type LabelsWrapper$1 as LabelsWrapper, type index_d$4_LastActivityUpdate as LastActivityUpdate, type index_d$4_ListContactIdsBySegmentRequest as ListContactIdsBySegmentRequest, type index_d$4_ListContactIdsBySegmentResponse as ListContactIdsBySegmentResponse, type index_d$4_ListContactsRequest as ListContactsRequest, type index_d$4_ListContactsResponse as ListContactsResponse, type index_d$4_ListFacetsRequest as ListFacetsRequest, type index_d$4_ListFacetsResponse as ListFacetsResponse, type LocationsWrapper$1 as LocationsWrapper, type index_d$4_MemberInfo as MemberInfo, index_d$4_MemberStatus as MemberStatus, type index_d$4_MergeContactsOptions as MergeContactsOptions, type index_d$4_MergeContactsRequest as MergeContactsRequest, type index_d$4_MergeContactsResponse as MergeContactsResponse, type index_d$4_MergeContactsResponseNonNullableFields as MergeContactsResponseNonNullableFields, type MessageEnvelope$4 as MessageEnvelope, type index_d$4_Metadata as Metadata, index_d$4_Mode as Mode, type Paging$3 as Paging, type PagingMetadata$2 as PagingMetadata, index_d$4_PhoneDeliverabilityStatus as PhoneDeliverabilityStatus, PhoneTag$1 as PhoneTag, type index_d$4_PreviewMergeContactsRequest as PreviewMergeContactsRequest, type index_d$4_PreviewMergeContactsResponse as PreviewMergeContactsResponse, type index_d$4_PrimaryContactInfo as PrimaryContactInfo, type index_d$4_PrimaryEmail as PrimaryEmail, type index_d$4_PrimaryPhone as PrimaryPhone, type index_d$4_PrimarySubscriptionStatus as PrimarySubscriptionStatus, index_d$4_PrivacyStatus as PrivacyStatus, type index_d$4_ProfileInfo as ProfileInfo, type Query$2 as Query, type index_d$4_QueryContactsOptions as QueryContactsOptions, type index_d$4_QueryContactsRequest as QueryContactsRequest, type index_d$4_QueryContactsResponse as QueryContactsResponse, type index_d$4_QueryContactsResponseNonNullableFields as QueryContactsResponseNonNullableFields, type index_d$4_QueryFacetsRequest as QueryFacetsRequest, type index_d$4_QueryFacetsResponse as QueryFacetsResponse, type RestoreInfo$1 as RestoreInfo, index_d$4_Role as Role, type index_d$4_Search as Search, type index_d$4_SearchContactsRequest as SearchContactsRequest, type index_d$4_SearchContactsResponse as SearchContactsResponse, type index_d$4_SearchDetails as SearchDetails, type index_d$4_SearchPagingMethodOneOf as SearchPagingMethodOneOf, type index_d$4_SegmentsWrapper as SegmentsWrapper, type index_d$4_SessionInfo as SessionInfo, SortOrder$3 as SortOrder, type Sorting$3 as Sorting, type StreetAddress$1 as StreetAddress, type Subdivision$1 as Subdivision, SubdivisionType$1 as SubdivisionType, SubmitOperation$1 as SubmitOperation, index_d$4_SubscriptionStatus as SubscriptionStatus, type index_d$4_SyncSubmitContactRequest as SyncSubmitContactRequest, type index_d$4_SyncSubmitContactResponse as SyncSubmitContactResponse, type index_d$4_UnlabelContactRequest as UnlabelContactRequest, type index_d$4_UnlabelContactResponse as UnlabelContactResponse, type index_d$4_UnlabelContactResponseNonNullableFields as UnlabelContactResponseNonNullableFields, type index_d$4_UpdateContactOptions as UpdateContactOptions, type index_d$4_UpdateContactRequest as UpdateContactRequest, type index_d$4_UpdateContactResponse as UpdateContactResponse, type index_d$4_UpdateContactResponseNonNullableFields as UpdateContactResponseNonNullableFields, type index_d$4_UpsertContactRequest as UpsertContactRequest, type index_d$4_UpsertContactResponse as UpsertContactResponse, index_d$4_UpsertContactResponseAction as UpsertContactResponseAction, type index_d$4_UserInfo as UserInfo, WebhookIdentityType$4 as WebhookIdentityType, index_d$4_createContact as createContact, index_d$4_deleteContact as deleteContact, index_d$4_getContact as getContact, index_d$4_labelContact as labelContact, index_d$4_mergeContacts as mergeContacts, index_d$4_onContactCreated as onContactCreated, index_d$4_onContactDeleted as onContactDeleted, index_d$4_onContactMerged as onContactMerged, index_d$4_onContactUpdated as onContactUpdated, index_d$4_queryContacts as queryContacts, index_d$4_unlabelContact as unlabelContact, index_d$4_updateContact as updateContact };
|
|
2779
2551
|
}
|
|
2780
2552
|
|
|
2781
2553
|
/** Extended field that was found or created. */
|
|
@@ -3153,38 +2925,24 @@ declare enum WebhookIdentityType$3 {
|
|
|
3153
2925
|
WIX_USER = "WIX_USER",
|
|
3154
2926
|
APP = "APP"
|
|
3155
2927
|
}
|
|
2928
|
+
interface ExtendedFieldNonNullableFields {
|
|
2929
|
+
key: string;
|
|
2930
|
+
displayName: string;
|
|
2931
|
+
dataType: FieldDataType;
|
|
2932
|
+
fieldType: FieldType;
|
|
2933
|
+
}
|
|
3156
2934
|
interface FindOrCreateExtendedFieldResponseNonNullableFields {
|
|
3157
|
-
field?:
|
|
3158
|
-
key: string;
|
|
3159
|
-
displayName: string;
|
|
3160
|
-
dataType: FieldDataType;
|
|
3161
|
-
fieldType: FieldType;
|
|
3162
|
-
};
|
|
2935
|
+
field?: ExtendedFieldNonNullableFields;
|
|
3163
2936
|
newField: boolean;
|
|
3164
2937
|
}
|
|
3165
2938
|
interface GetExtendedFieldResponseNonNullableFields {
|
|
3166
|
-
field?:
|
|
3167
|
-
key: string;
|
|
3168
|
-
displayName: string;
|
|
3169
|
-
dataType: FieldDataType;
|
|
3170
|
-
fieldType: FieldType;
|
|
3171
|
-
};
|
|
2939
|
+
field?: ExtendedFieldNonNullableFields;
|
|
3172
2940
|
}
|
|
3173
2941
|
interface UpdateExtendedFieldResponseNonNullableFields {
|
|
3174
|
-
field?:
|
|
3175
|
-
key: string;
|
|
3176
|
-
displayName: string;
|
|
3177
|
-
dataType: FieldDataType;
|
|
3178
|
-
fieldType: FieldType;
|
|
3179
|
-
};
|
|
2942
|
+
field?: ExtendedFieldNonNullableFields;
|
|
3180
2943
|
}
|
|
3181
2944
|
interface QueryExtendedFieldsResponseNonNullableFields {
|
|
3182
|
-
fields:
|
|
3183
|
-
key: string;
|
|
3184
|
-
displayName: string;
|
|
3185
|
-
dataType: FieldDataType;
|
|
3186
|
-
fieldType: FieldType;
|
|
3187
|
-
}[];
|
|
2945
|
+
fields: ExtendedFieldNonNullableFields[];
|
|
3188
2946
|
}
|
|
3189
2947
|
interface BaseEventMetadata$2 {
|
|
3190
2948
|
/** App instance ID. */
|
|
@@ -3363,73 +3121,25 @@ interface FieldsQueryBuilder {
|
|
|
3363
3121
|
find: () => Promise<FieldsQueryResult>;
|
|
3364
3122
|
}
|
|
3365
3123
|
|
|
3366
|
-
|
|
3367
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
|
|
3368
|
-
fetchWithAuth: typeof fetch;
|
|
3369
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
3370
|
-
}
|
|
3371
|
-
type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
|
|
3372
|
-
type HttpResponse$3<T = any> = {
|
|
3373
|
-
data: T;
|
|
3374
|
-
status: number;
|
|
3375
|
-
statusText: string;
|
|
3376
|
-
headers: any;
|
|
3377
|
-
request?: any;
|
|
3378
|
-
};
|
|
3379
|
-
type RequestOptions$3<_TResponse = any, Data = any> = {
|
|
3380
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
3381
|
-
url: string;
|
|
3382
|
-
data?: Data;
|
|
3383
|
-
params?: URLSearchParams;
|
|
3384
|
-
} & APIMetadata$3;
|
|
3385
|
-
type APIMetadata$3 = {
|
|
3386
|
-
methodFqn?: string;
|
|
3387
|
-
entityFqdn?: string;
|
|
3388
|
-
packageName?: string;
|
|
3389
|
-
};
|
|
3390
|
-
type EventDefinition$2<Payload = unknown, Type extends string = string> = {
|
|
3391
|
-
__type: 'event-definition';
|
|
3392
|
-
type: Type;
|
|
3393
|
-
isDomainEvent?: boolean;
|
|
3394
|
-
transformations?: (envelope: unknown) => Payload;
|
|
3395
|
-
__payload: Payload;
|
|
3396
|
-
};
|
|
3397
|
-
declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
|
|
3124
|
+
declare function createRESTModule$3<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
3398
3125
|
|
|
3399
|
-
declare
|
|
3400
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3401
|
-
interface SymbolConstructor {
|
|
3402
|
-
readonly observable: symbol;
|
|
3403
|
-
}
|
|
3404
|
-
}
|
|
3126
|
+
declare function createEventModule$2<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
3405
3127
|
|
|
3406
|
-
declare const
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
declare
|
|
3410
|
-
declare
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
fieldType: FieldType;
|
|
3415
|
-
}>;
|
|
3416
|
-
declare function renameExtendedField(httpClient: HttpClient$3): (key: string, field: RenameExtendedField) => Promise<ExtendedField & {
|
|
3417
|
-
key: string;
|
|
3418
|
-
displayName: string;
|
|
3419
|
-
dataType: FieldDataType;
|
|
3420
|
-
fieldType: FieldType;
|
|
3421
|
-
}>;
|
|
3422
|
-
declare function deleteExtendedField(httpClient: HttpClient$3): (key: string) => Promise<void>;
|
|
3423
|
-
declare function queryExtendedFields(httpClient: HttpClient$3): () => FieldsQueryBuilder;
|
|
3424
|
-
declare const onExtendedFieldCreated: EventDefinition$2<ExtendedFieldCreatedEnvelope, "wix.contacts.v4.extended-field_created">;
|
|
3425
|
-
declare const onExtendedFieldUpdated: EventDefinition$2<ExtendedFieldUpdatedEnvelope, "wix.contacts.v4.extended-field_updated">;
|
|
3426
|
-
declare const onExtendedFieldDeleted: EventDefinition$2<ExtendedFieldDeletedEnvelope, "wix.contacts.v4.extended-field_deleted">;
|
|
3128
|
+
declare const findOrCreateExtendedField: ReturnType<typeof createRESTModule$3<typeof publicFindOrCreateExtendedField>>;
|
|
3129
|
+
declare const getExtendedField: ReturnType<typeof createRESTModule$3<typeof publicGetExtendedField>>;
|
|
3130
|
+
declare const renameExtendedField: ReturnType<typeof createRESTModule$3<typeof publicRenameExtendedField>>;
|
|
3131
|
+
declare const deleteExtendedField: ReturnType<typeof createRESTModule$3<typeof publicDeleteExtendedField>>;
|
|
3132
|
+
declare const queryExtendedFields: ReturnType<typeof createRESTModule$3<typeof publicQueryExtendedFields>>;
|
|
3133
|
+
declare const onExtendedFieldCreated: ReturnType<typeof createEventModule$2<typeof publicOnExtendedFieldCreated>>;
|
|
3134
|
+
declare const onExtendedFieldUpdated: ReturnType<typeof createEventModule$2<typeof publicOnExtendedFieldUpdated>>;
|
|
3135
|
+
declare const onExtendedFieldDeleted: ReturnType<typeof createEventModule$2<typeof publicOnExtendedFieldDeleted>>;
|
|
3427
3136
|
|
|
3428
3137
|
type index_d$3_DeleteExtendedFieldRequest = DeleteExtendedFieldRequest;
|
|
3429
3138
|
type index_d$3_DeleteExtendedFieldResponse = DeleteExtendedFieldResponse;
|
|
3430
3139
|
type index_d$3_ExtendedField = ExtendedField;
|
|
3431
3140
|
type index_d$3_ExtendedFieldCreatedEnvelope = ExtendedFieldCreatedEnvelope;
|
|
3432
3141
|
type index_d$3_ExtendedFieldDeletedEnvelope = ExtendedFieldDeletedEnvelope;
|
|
3142
|
+
type index_d$3_ExtendedFieldNonNullableFields = ExtendedFieldNonNullableFields;
|
|
3433
3143
|
type index_d$3_ExtendedFieldUpdatedEnvelope = ExtendedFieldUpdatedEnvelope;
|
|
3434
3144
|
type index_d$3_FieldDataType = FieldDataType;
|
|
3435
3145
|
declare const index_d$3_FieldDataType: typeof FieldDataType;
|
|
@@ -3464,7 +3174,7 @@ declare const index_d$3_onExtendedFieldUpdated: typeof onExtendedFieldUpdated;
|
|
|
3464
3174
|
declare const index_d$3_queryExtendedFields: typeof queryExtendedFields;
|
|
3465
3175
|
declare const index_d$3_renameExtendedField: typeof renameExtendedField;
|
|
3466
3176
|
declare namespace index_d$3 {
|
|
3467
|
-
export { type ActionEvent$2 as ActionEvent, type BaseEventMetadata$2 as BaseEventMetadata, type index_d$3_DeleteExtendedFieldRequest as DeleteExtendedFieldRequest, type index_d$3_DeleteExtendedFieldResponse as DeleteExtendedFieldResponse, 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$2 as EventMetadata, type index_d$3_ExtendedField as ExtendedField, type index_d$3_ExtendedFieldCreatedEnvelope as ExtendedFieldCreatedEnvelope, type index_d$3_ExtendedFieldDeletedEnvelope as ExtendedFieldDeletedEnvelope, type index_d$3_ExtendedFieldUpdatedEnvelope as ExtendedFieldUpdatedEnvelope, index_d$3_FieldDataType as FieldDataType, index_d$3_FieldType as FieldType, type index_d$3_FieldsQueryBuilder as FieldsQueryBuilder, type index_d$3_FieldsQueryResult as FieldsQueryResult, type index_d$3_FindOrCreateExtendedFieldRequest as FindOrCreateExtendedFieldRequest, type index_d$3_FindOrCreateExtendedFieldResponse as FindOrCreateExtendedFieldResponse, type index_d$3_FindOrCreateExtendedFieldResponseNonNullableFields as FindOrCreateExtendedFieldResponseNonNullableFields, type GdprListRequest$1 as GdprListRequest, type GdprListResponse$1 as GdprListResponse, type index_d$3_GetExtendedFieldByLegacyIdRequest as GetExtendedFieldByLegacyIdRequest, type index_d$3_GetExtendedFieldByLegacyIdResponse as GetExtendedFieldByLegacyIdResponse, type index_d$3_GetExtendedFieldRequest as GetExtendedFieldRequest, type index_d$3_GetExtendedFieldResponse as GetExtendedFieldResponse, type index_d$3_GetExtendedFieldResponseNonNullableFields as GetExtendedFieldResponseNonNullableFields, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type index_d$3_ListExtendedFieldsRequest as ListExtendedFieldsRequest, type index_d$3_ListExtendedFieldsResponse as ListExtendedFieldsResponse, type MessageEnvelope$3 as MessageEnvelope, type Paging$2 as Paging, type PagingMetadata$1 as PagingMetadata, type PurgeRequest$1 as PurgeRequest, type PurgeResponse$1 as PurgeResponse, type Query$1 as Query, type index_d$3_QueryExtendedFieldsRequest as QueryExtendedFieldsRequest, type index_d$3_QueryExtendedFieldsResponse as QueryExtendedFieldsResponse, type index_d$3_QueryExtendedFieldsResponseNonNullableFields as QueryExtendedFieldsResponseNonNullableFields, type index_d$3_RenameExtendedField as RenameExtendedField, type index_d$3_RestoreInfo as RestoreInfo, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, type index_d$3_UpdateExtendedFieldRequest as UpdateExtendedFieldRequest, type index_d$3_UpdateExtendedFieldResponse as UpdateExtendedFieldResponse, type index_d$3_UpdateExtendedFieldResponseNonNullableFields as UpdateExtendedFieldResponseNonNullableFields, WebhookIdentityType$3 as WebhookIdentityType,
|
|
3177
|
+
export { type ActionEvent$2 as ActionEvent, type BaseEventMetadata$2 as BaseEventMetadata, type index_d$3_DeleteExtendedFieldRequest as DeleteExtendedFieldRequest, type index_d$3_DeleteExtendedFieldResponse as DeleteExtendedFieldResponse, 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$2 as EventMetadata, type index_d$3_ExtendedField as ExtendedField, type index_d$3_ExtendedFieldCreatedEnvelope as ExtendedFieldCreatedEnvelope, type index_d$3_ExtendedFieldDeletedEnvelope as ExtendedFieldDeletedEnvelope, type index_d$3_ExtendedFieldNonNullableFields as ExtendedFieldNonNullableFields, type index_d$3_ExtendedFieldUpdatedEnvelope as ExtendedFieldUpdatedEnvelope, index_d$3_FieldDataType as FieldDataType, index_d$3_FieldType as FieldType, type index_d$3_FieldsQueryBuilder as FieldsQueryBuilder, type index_d$3_FieldsQueryResult as FieldsQueryResult, type index_d$3_FindOrCreateExtendedFieldRequest as FindOrCreateExtendedFieldRequest, type index_d$3_FindOrCreateExtendedFieldResponse as FindOrCreateExtendedFieldResponse, type index_d$3_FindOrCreateExtendedFieldResponseNonNullableFields as FindOrCreateExtendedFieldResponseNonNullableFields, type GdprListRequest$1 as GdprListRequest, type GdprListResponse$1 as GdprListResponse, type index_d$3_GetExtendedFieldByLegacyIdRequest as GetExtendedFieldByLegacyIdRequest, type index_d$3_GetExtendedFieldByLegacyIdResponse as GetExtendedFieldByLegacyIdResponse, type index_d$3_GetExtendedFieldRequest as GetExtendedFieldRequest, type index_d$3_GetExtendedFieldResponse as GetExtendedFieldResponse, type index_d$3_GetExtendedFieldResponseNonNullableFields as GetExtendedFieldResponseNonNullableFields, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type index_d$3_ListExtendedFieldsRequest as ListExtendedFieldsRequest, type index_d$3_ListExtendedFieldsResponse as ListExtendedFieldsResponse, type MessageEnvelope$3 as MessageEnvelope, type Paging$2 as Paging, type PagingMetadata$1 as PagingMetadata, type PurgeRequest$1 as PurgeRequest, type PurgeResponse$1 as PurgeResponse, type Query$1 as Query, type index_d$3_QueryExtendedFieldsRequest as QueryExtendedFieldsRequest, type index_d$3_QueryExtendedFieldsResponse as QueryExtendedFieldsResponse, type index_d$3_QueryExtendedFieldsResponseNonNullableFields as QueryExtendedFieldsResponseNonNullableFields, type index_d$3_RenameExtendedField as RenameExtendedField, type index_d$3_RestoreInfo as RestoreInfo, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, type index_d$3_UpdateExtendedFieldRequest as UpdateExtendedFieldRequest, type index_d$3_UpdateExtendedFieldResponse as UpdateExtendedFieldResponse, type index_d$3_UpdateExtendedFieldResponseNonNullableFields as UpdateExtendedFieldResponseNonNullableFields, WebhookIdentityType$3 as WebhookIdentityType, index_d$3_deleteExtendedField as deleteExtendedField, index_d$3_findOrCreateExtendedField as findOrCreateExtendedField, index_d$3_getExtendedField as getExtendedField, index_d$3_onExtendedFieldCreated as onExtendedFieldCreated, index_d$3_onExtendedFieldDeleted as onExtendedFieldDeleted, index_d$3_onExtendedFieldUpdated as onExtendedFieldUpdated, index_d$3_queryExtendedFields as queryExtendedFields, index_d$3_renameExtendedField as renameExtendedField };
|
|
3468
3178
|
}
|
|
3469
3179
|
|
|
3470
3180
|
/** Label that was found or created. */
|
|
@@ -3840,34 +3550,23 @@ declare enum WebhookIdentityType$2 {
|
|
|
3840
3550
|
WIX_USER = "WIX_USER",
|
|
3841
3551
|
APP = "APP"
|
|
3842
3552
|
}
|
|
3553
|
+
interface ContactLabelNonNullableFields {
|
|
3554
|
+
key: string;
|
|
3555
|
+
displayName: string;
|
|
3556
|
+
labelType: LabelType;
|
|
3557
|
+
}
|
|
3843
3558
|
interface FindOrCreateLabelResponseNonNullableFields {
|
|
3844
|
-
label?:
|
|
3845
|
-
key: string;
|
|
3846
|
-
displayName: string;
|
|
3847
|
-
labelType: LabelType;
|
|
3848
|
-
};
|
|
3559
|
+
label?: ContactLabelNonNullableFields;
|
|
3849
3560
|
newLabel: boolean;
|
|
3850
3561
|
}
|
|
3851
3562
|
interface GetLabelResponseNonNullableFields {
|
|
3852
|
-
label?:
|
|
3853
|
-
key: string;
|
|
3854
|
-
displayName: string;
|
|
3855
|
-
labelType: LabelType;
|
|
3856
|
-
};
|
|
3563
|
+
label?: ContactLabelNonNullableFields;
|
|
3857
3564
|
}
|
|
3858
3565
|
interface UpdateLabelResponseNonNullableFields {
|
|
3859
|
-
label?:
|
|
3860
|
-
key: string;
|
|
3861
|
-
displayName: string;
|
|
3862
|
-
labelType: LabelType;
|
|
3863
|
-
};
|
|
3566
|
+
label?: ContactLabelNonNullableFields;
|
|
3864
3567
|
}
|
|
3865
3568
|
interface QueryLabelsResponseNonNullableFields {
|
|
3866
|
-
labels:
|
|
3867
|
-
key: string;
|
|
3868
|
-
displayName: string;
|
|
3869
|
-
labelType: LabelType;
|
|
3870
|
-
}[];
|
|
3569
|
+
labels: ContactLabelNonNullableFields[];
|
|
3871
3570
|
}
|
|
3872
3571
|
interface BaseEventMetadata$1 {
|
|
3873
3572
|
/** App instance ID. */
|
|
@@ -4072,68 +3771,22 @@ interface LabelsQueryBuilder {
|
|
|
4072
3771
|
find: () => Promise<LabelsQueryResult>;
|
|
4073
3772
|
}
|
|
4074
3773
|
|
|
4075
|
-
|
|
4076
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
4077
|
-
fetchWithAuth: typeof fetch;
|
|
4078
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
4079
|
-
}
|
|
4080
|
-
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
4081
|
-
type HttpResponse$2<T = any> = {
|
|
4082
|
-
data: T;
|
|
4083
|
-
status: number;
|
|
4084
|
-
statusText: string;
|
|
4085
|
-
headers: any;
|
|
4086
|
-
request?: any;
|
|
4087
|
-
};
|
|
4088
|
-
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
4089
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
4090
|
-
url: string;
|
|
4091
|
-
data?: Data;
|
|
4092
|
-
params?: URLSearchParams;
|
|
4093
|
-
} & APIMetadata$2;
|
|
4094
|
-
type APIMetadata$2 = {
|
|
4095
|
-
methodFqn?: string;
|
|
4096
|
-
entityFqdn?: string;
|
|
4097
|
-
packageName?: string;
|
|
4098
|
-
};
|
|
4099
|
-
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
4100
|
-
__type: 'event-definition';
|
|
4101
|
-
type: Type;
|
|
4102
|
-
isDomainEvent?: boolean;
|
|
4103
|
-
transformations?: (envelope: unknown) => Payload;
|
|
4104
|
-
__payload: Payload;
|
|
4105
|
-
};
|
|
4106
|
-
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
3774
|
+
declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
4107
3775
|
|
|
4108
|
-
declare
|
|
4109
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
4110
|
-
interface SymbolConstructor {
|
|
4111
|
-
readonly observable: symbol;
|
|
4112
|
-
}
|
|
4113
|
-
}
|
|
3776
|
+
declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
4114
3777
|
|
|
4115
|
-
declare const
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
declare
|
|
4119
|
-
declare
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
}>;
|
|
4124
|
-
declare function renameLabel(httpClient: HttpClient$2): (key: string, label: RenameLabel, options?: RenameLabelOptions) => Promise<ContactLabel & {
|
|
4125
|
-
key: string;
|
|
4126
|
-
displayName: string;
|
|
4127
|
-
labelType: LabelType;
|
|
4128
|
-
}>;
|
|
4129
|
-
declare function deleteLabel(httpClient: HttpClient$2): (key: string) => Promise<void>;
|
|
4130
|
-
declare function queryLabels(httpClient: HttpClient$2): (options?: QueryLabelsOptions) => LabelsQueryBuilder;
|
|
4131
|
-
declare const onLabelCreated: EventDefinition$1<LabelCreatedEnvelope, "wix.contacts.v4.label_created">;
|
|
4132
|
-
declare const onLabelUpdated: EventDefinition$1<LabelUpdatedEnvelope, "wix.contacts.v4.label_updated">;
|
|
4133
|
-
declare const onLabelDeleted: EventDefinition$1<LabelDeletedEnvelope, "wix.contacts.v4.label_deleted">;
|
|
3778
|
+
declare const findOrCreateLabel: ReturnType<typeof createRESTModule$2<typeof publicFindOrCreateLabel>>;
|
|
3779
|
+
declare const getLabel: ReturnType<typeof createRESTModule$2<typeof publicGetLabel>>;
|
|
3780
|
+
declare const renameLabel: ReturnType<typeof createRESTModule$2<typeof publicRenameLabel>>;
|
|
3781
|
+
declare const deleteLabel: ReturnType<typeof createRESTModule$2<typeof publicDeleteLabel>>;
|
|
3782
|
+
declare const queryLabels: ReturnType<typeof createRESTModule$2<typeof publicQueryLabels>>;
|
|
3783
|
+
declare const onLabelCreated: ReturnType<typeof createEventModule$1<typeof publicOnLabelCreated>>;
|
|
3784
|
+
declare const onLabelUpdated: ReturnType<typeof createEventModule$1<typeof publicOnLabelUpdated>>;
|
|
3785
|
+
declare const onLabelDeleted: ReturnType<typeof createEventModule$1<typeof publicOnLabelDeleted>>;
|
|
4134
3786
|
|
|
4135
3787
|
type index_d$2_ContactLabel = ContactLabel;
|
|
4136
3788
|
type index_d$2_ContactLabelNamespace = ContactLabelNamespace;
|
|
3789
|
+
type index_d$2_ContactLabelNonNullableFields = ContactLabelNonNullableFields;
|
|
4137
3790
|
type index_d$2_DeleteLabelRequest = DeleteLabelRequest;
|
|
4138
3791
|
type index_d$2_DeleteLabelResponse = DeleteLabelResponse;
|
|
4139
3792
|
type index_d$2_FindOrCreateLabelOptions = FindOrCreateLabelOptions;
|
|
@@ -4183,7 +3836,7 @@ declare const index_d$2_onLabelUpdated: typeof onLabelUpdated;
|
|
|
4183
3836
|
declare const index_d$2_queryLabels: typeof queryLabels;
|
|
4184
3837
|
declare const index_d$2_renameLabel: typeof renameLabel;
|
|
4185
3838
|
declare namespace index_d$2 {
|
|
4186
|
-
export { type ActionEvent$1 as ActionEvent, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$2_ContactLabel as ContactLabel, type index_d$2_ContactLabelNamespace as ContactLabelNamespace, type index_d$2_DeleteLabelRequest as DeleteLabelRequest, type index_d$2_DeleteLabelResponse as DeleteLabelResponse, 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 EventMetadata$1 as EventMetadata, type index_d$2_FindOrCreateLabelOptions as FindOrCreateLabelOptions, type index_d$2_FindOrCreateLabelRequest as FindOrCreateLabelRequest, type index_d$2_FindOrCreateLabelResponse as FindOrCreateLabelResponse, type index_d$2_FindOrCreateLabelResponseNonNullableFields as FindOrCreateLabelResponseNonNullableFields, type index_d$2_GdprListRequest as GdprListRequest, type index_d$2_GdprListResponse as GdprListResponse, type index_d$2_GetLabelByLegacyIdRequest as GetLabelByLegacyIdRequest, type index_d$2_GetLabelByLegacyIdResponse as GetLabelByLegacyIdResponse, type index_d$2_GetLabelOptions as GetLabelOptions, type index_d$2_GetLabelRequest as GetLabelRequest, type index_d$2_GetLabelResponse as GetLabelResponse, type index_d$2_GetLabelResponseNonNullableFields as GetLabelResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type index_d$2_LabelCreatedEnvelope as LabelCreatedEnvelope, type index_d$2_LabelDeletedEnvelope as LabelDeletedEnvelope, index_d$2_LabelType as LabelType, type index_d$2_LabelUpdatedEnvelope as LabelUpdatedEnvelope, type index_d$2_LabelsQueryBuilder as LabelsQueryBuilder, type index_d$2_LabelsQueryResult as LabelsQueryResult, type index_d$2_LabelsQuotaReached as LabelsQuotaReached, type index_d$2_ListLabelNamespacesRequest as ListLabelNamespacesRequest, type index_d$2_ListLabelNamespacesResponse as ListLabelNamespacesResponse, type index_d$2_ListLabelsRequest as ListLabelsRequest, type index_d$2_ListLabelsResponse as ListLabelsResponse, type MessageEnvelope$2 as MessageEnvelope, type Paging$1 as Paging, type index_d$2_PagingMetadata as PagingMetadata, type index_d$2_PurgeRequest as PurgeRequest, type index_d$2_PurgeResponse as PurgeResponse, type index_d$2_Query as Query, type index_d$2_QueryLabelsOptions as QueryLabelsOptions, type index_d$2_QueryLabelsRequest as QueryLabelsRequest, type index_d$2_QueryLabelsResponse as QueryLabelsResponse, type index_d$2_QueryLabelsResponseNonNullableFields as QueryLabelsResponseNonNullableFields, type index_d$2_RenameLabel as RenameLabel, type index_d$2_RenameLabelOptions as RenameLabelOptions, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, type index_d$2_UndeleteInfo as UndeleteInfo, type index_d$2_UpdateLabelRequest as UpdateLabelRequest, type index_d$2_UpdateLabelResponse as UpdateLabelResponse, type index_d$2_UpdateLabelResponseNonNullableFields as UpdateLabelResponseNonNullableFields, WebhookIdentityType$2 as WebhookIdentityType,
|
|
3839
|
+
export { type ActionEvent$1 as ActionEvent, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$2_ContactLabel as ContactLabel, type index_d$2_ContactLabelNamespace as ContactLabelNamespace, type index_d$2_ContactLabelNonNullableFields as ContactLabelNonNullableFields, type index_d$2_DeleteLabelRequest as DeleteLabelRequest, type index_d$2_DeleteLabelResponse as DeleteLabelResponse, 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 EventMetadata$1 as EventMetadata, type index_d$2_FindOrCreateLabelOptions as FindOrCreateLabelOptions, type index_d$2_FindOrCreateLabelRequest as FindOrCreateLabelRequest, type index_d$2_FindOrCreateLabelResponse as FindOrCreateLabelResponse, type index_d$2_FindOrCreateLabelResponseNonNullableFields as FindOrCreateLabelResponseNonNullableFields, type index_d$2_GdprListRequest as GdprListRequest, type index_d$2_GdprListResponse as GdprListResponse, type index_d$2_GetLabelByLegacyIdRequest as GetLabelByLegacyIdRequest, type index_d$2_GetLabelByLegacyIdResponse as GetLabelByLegacyIdResponse, type index_d$2_GetLabelOptions as GetLabelOptions, type index_d$2_GetLabelRequest as GetLabelRequest, type index_d$2_GetLabelResponse as GetLabelResponse, type index_d$2_GetLabelResponseNonNullableFields as GetLabelResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type index_d$2_LabelCreatedEnvelope as LabelCreatedEnvelope, type index_d$2_LabelDeletedEnvelope as LabelDeletedEnvelope, index_d$2_LabelType as LabelType, type index_d$2_LabelUpdatedEnvelope as LabelUpdatedEnvelope, type index_d$2_LabelsQueryBuilder as LabelsQueryBuilder, type index_d$2_LabelsQueryResult as LabelsQueryResult, type index_d$2_LabelsQuotaReached as LabelsQuotaReached, type index_d$2_ListLabelNamespacesRequest as ListLabelNamespacesRequest, type index_d$2_ListLabelNamespacesResponse as ListLabelNamespacesResponse, type index_d$2_ListLabelsRequest as ListLabelsRequest, type index_d$2_ListLabelsResponse as ListLabelsResponse, type MessageEnvelope$2 as MessageEnvelope, type Paging$1 as Paging, type index_d$2_PagingMetadata as PagingMetadata, type index_d$2_PurgeRequest as PurgeRequest, type index_d$2_PurgeResponse as PurgeResponse, type index_d$2_Query as Query, type index_d$2_QueryLabelsOptions as QueryLabelsOptions, type index_d$2_QueryLabelsRequest as QueryLabelsRequest, type index_d$2_QueryLabelsResponse as QueryLabelsResponse, type index_d$2_QueryLabelsResponseNonNullableFields as QueryLabelsResponseNonNullableFields, type index_d$2_RenameLabel as RenameLabel, type index_d$2_RenameLabelOptions as RenameLabelOptions, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, type index_d$2_UndeleteInfo as UndeleteInfo, type index_d$2_UpdateLabelRequest as UpdateLabelRequest, type index_d$2_UpdateLabelResponse as UpdateLabelResponse, type index_d$2_UpdateLabelResponseNonNullableFields as UpdateLabelResponseNonNullableFields, WebhookIdentityType$2 as WebhookIdentityType, index_d$2_deleteLabel as deleteLabel, index_d$2_findOrCreateLabel as findOrCreateLabel, index_d$2_getLabel as getLabel, index_d$2_onLabelCreated as onLabelCreated, index_d$2_onLabelDeleted as onLabelDeleted, index_d$2_onLabelUpdated as onLabelUpdated, index_d$2_queryLabels as queryLabels, index_d$2_renameLabel as renameLabel };
|
|
4187
3840
|
}
|
|
4188
3841
|
|
|
4189
3842
|
/** Dummy message for fqdn validation */
|
|
@@ -4774,42 +4427,9 @@ interface AppendOrCreateContactOptions {
|
|
|
4774
4427
|
contactId?: string | null;
|
|
4775
4428
|
}
|
|
4776
4429
|
|
|
4777
|
-
|
|
4778
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
4779
|
-
fetchWithAuth: typeof fetch;
|
|
4780
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
4781
|
-
}
|
|
4782
|
-
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
4783
|
-
type HttpResponse$1<T = any> = {
|
|
4784
|
-
data: T;
|
|
4785
|
-
status: number;
|
|
4786
|
-
statusText: string;
|
|
4787
|
-
headers: any;
|
|
4788
|
-
request?: any;
|
|
4789
|
-
};
|
|
4790
|
-
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
4791
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
4792
|
-
url: string;
|
|
4793
|
-
data?: Data;
|
|
4794
|
-
params?: URLSearchParams;
|
|
4795
|
-
} & APIMetadata$1;
|
|
4796
|
-
type APIMetadata$1 = {
|
|
4797
|
-
methodFqn?: string;
|
|
4798
|
-
entityFqdn?: string;
|
|
4799
|
-
packageName?: string;
|
|
4800
|
-
};
|
|
4430
|
+
declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
4801
4431
|
|
|
4802
|
-
declare
|
|
4803
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
4804
|
-
interface SymbolConstructor {
|
|
4805
|
-
readonly observable: symbol;
|
|
4806
|
-
}
|
|
4807
|
-
}
|
|
4808
|
-
|
|
4809
|
-
declare const __metadata$1: {
|
|
4810
|
-
PACKAGE_NAME: string;
|
|
4811
|
-
};
|
|
4812
|
-
declare function appendOrCreateContact(httpClient: HttpClient$1): (options?: AppendOrCreateContactOptions) => Promise<SubmitContactResponse & SubmitContactResponseNonNullableFields>;
|
|
4432
|
+
declare const appendOrCreateContact: ReturnType<typeof createRESTModule$1<typeof publicAppendOrCreateContact>>;
|
|
4813
4433
|
|
|
4814
4434
|
type index_d$1_ActivityIcon = ActivityIcon;
|
|
4815
4435
|
type index_d$1_Address = Address;
|
|
@@ -4859,7 +4479,7 @@ type index_d$1_SubmitVisitorIdRequest = SubmitVisitorIdRequest;
|
|
|
4859
4479
|
type index_d$1_SubmitVisitorIdResponse = SubmitVisitorIdResponse;
|
|
4860
4480
|
declare const index_d$1_appendOrCreateContact: typeof appendOrCreateContact;
|
|
4861
4481
|
declare namespace index_d$1 {
|
|
4862
|
-
export { type index_d$1_ActivityIcon as ActivityIcon, type index_d$1_Address as Address, type index_d$1_AddressLocation as AddressLocation, type index_d$1_AddressStreetOneOf as AddressStreetOneOf, index_d$1_AddressTag as AddressTag, type index_d$1_AppendOrCreateContactOptions as AppendOrCreateContactOptions, type index_d$1_AssigneesWrapper as AssigneesWrapper, type index_d$1_ContactActivity as ContactActivity, index_d$1_ContactActivityType as ContactActivityType, type index_d$1_ContactAddress as ContactAddress, type index_d$1_ContactAddressesWrapper as ContactAddressesWrapper, type index_d$1_ContactEmail as ContactEmail, type index_d$1_ContactEmailsWrapper as ContactEmailsWrapper, type ContactInfo$1 as ContactInfo, type index_d$1_ContactName as ContactName, type index_d$1_ContactPhone as ContactPhone, type index_d$1_ContactPhonesWrapper as ContactPhonesWrapper, type index_d$1_ContactPicture as ContactPicture, index_d$1_ContactSourceType as ContactSourceType, type index_d$1_ContactToSubmit as ContactToSubmit, index_d$1_EmailTag as EmailTag, type index_d$1_ExtendedFieldsWrapper as ExtendedFieldsWrapper, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, index_d$1_IdentityType as IdentityType, index_d$1_ImageProvider as ImageProvider, type index_d$1_LabelsWrapper as LabelsWrapper, type index_d$1_LocationsWrapper as LocationsWrapper, type MessageEnvelope$1 as MessageEnvelope, index_d$1_PhoneTag as PhoneTag, type index_d$1_StreetAddress as StreetAddress, type index_d$1_Subdivision as Subdivision, index_d$1_SubdivisionType as SubdivisionType, type index_d$1_SubmitContact as SubmitContact, type index_d$1_SubmitContactOptions as SubmitContactOptions, type index_d$1_SubmitContactRequest as SubmitContactRequest, type index_d$1_SubmitContactResponse as SubmitContactResponse, type index_d$1_SubmitContactResponseNonNullableFields as SubmitContactResponseNonNullableFields, index_d$1_SubmitOperation as SubmitOperation, type index_d$1_SubmitVisitorIdRequest as SubmitVisitorIdRequest, type index_d$1_SubmitVisitorIdResponse as SubmitVisitorIdResponse, WebhookIdentityType$1 as WebhookIdentityType,
|
|
4482
|
+
export { type index_d$1_ActivityIcon as ActivityIcon, type index_d$1_Address as Address, type index_d$1_AddressLocation as AddressLocation, type index_d$1_AddressStreetOneOf as AddressStreetOneOf, index_d$1_AddressTag as AddressTag, type index_d$1_AppendOrCreateContactOptions as AppendOrCreateContactOptions, type index_d$1_AssigneesWrapper as AssigneesWrapper, type index_d$1_ContactActivity as ContactActivity, index_d$1_ContactActivityType as ContactActivityType, type index_d$1_ContactAddress as ContactAddress, type index_d$1_ContactAddressesWrapper as ContactAddressesWrapper, type index_d$1_ContactEmail as ContactEmail, type index_d$1_ContactEmailsWrapper as ContactEmailsWrapper, type ContactInfo$1 as ContactInfo, type index_d$1_ContactName as ContactName, type index_d$1_ContactPhone as ContactPhone, type index_d$1_ContactPhonesWrapper as ContactPhonesWrapper, type index_d$1_ContactPicture as ContactPicture, index_d$1_ContactSourceType as ContactSourceType, type index_d$1_ContactToSubmit as ContactToSubmit, index_d$1_EmailTag as EmailTag, type index_d$1_ExtendedFieldsWrapper as ExtendedFieldsWrapper, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, index_d$1_IdentityType as IdentityType, index_d$1_ImageProvider as ImageProvider, type index_d$1_LabelsWrapper as LabelsWrapper, type index_d$1_LocationsWrapper as LocationsWrapper, type MessageEnvelope$1 as MessageEnvelope, index_d$1_PhoneTag as PhoneTag, type index_d$1_StreetAddress as StreetAddress, type index_d$1_Subdivision as Subdivision, index_d$1_SubdivisionType as SubdivisionType, type index_d$1_SubmitContact as SubmitContact, type index_d$1_SubmitContactOptions as SubmitContactOptions, type index_d$1_SubmitContactRequest as SubmitContactRequest, type index_d$1_SubmitContactResponse as SubmitContactResponse, type index_d$1_SubmitContactResponseNonNullableFields as SubmitContactResponseNonNullableFields, index_d$1_SubmitOperation as SubmitOperation, type index_d$1_SubmitVisitorIdRequest as SubmitVisitorIdRequest, type index_d$1_SubmitVisitorIdResponse as SubmitVisitorIdResponse, WebhookIdentityType$1 as WebhookIdentityType, index_d$1_appendOrCreateContact as appendOrCreateContact };
|
|
4863
4483
|
}
|
|
4864
4484
|
|
|
4865
4485
|
interface Task {
|
|
@@ -5302,37 +4922,24 @@ declare enum WebhookIdentityType {
|
|
|
5302
4922
|
WIX_USER = "WIX_USER",
|
|
5303
4923
|
APP = "APP"
|
|
5304
4924
|
}
|
|
4925
|
+
interface TaskSourceNonNullableFields {
|
|
4926
|
+
sourceType: SourceType;
|
|
4927
|
+
}
|
|
4928
|
+
interface TaskNonNullableFields {
|
|
4929
|
+
status: TaskStatus;
|
|
4930
|
+
source?: TaskSourceNonNullableFields;
|
|
4931
|
+
}
|
|
5305
4932
|
interface CreateTaskResponseNonNullableFields {
|
|
5306
|
-
task?:
|
|
5307
|
-
status: TaskStatus;
|
|
5308
|
-
source?: {
|
|
5309
|
-
sourceType: SourceType;
|
|
5310
|
-
};
|
|
5311
|
-
};
|
|
4933
|
+
task?: TaskNonNullableFields;
|
|
5312
4934
|
}
|
|
5313
4935
|
interface GetTaskResponseNonNullableFields {
|
|
5314
|
-
task?:
|
|
5315
|
-
status: TaskStatus;
|
|
5316
|
-
source?: {
|
|
5317
|
-
sourceType: SourceType;
|
|
5318
|
-
};
|
|
5319
|
-
};
|
|
4936
|
+
task?: TaskNonNullableFields;
|
|
5320
4937
|
}
|
|
5321
4938
|
interface UpdateTaskResponseNonNullableFields {
|
|
5322
|
-
task?:
|
|
5323
|
-
status: TaskStatus;
|
|
5324
|
-
source?: {
|
|
5325
|
-
sourceType: SourceType;
|
|
5326
|
-
};
|
|
5327
|
-
};
|
|
4939
|
+
task?: TaskNonNullableFields;
|
|
5328
4940
|
}
|
|
5329
4941
|
interface QueryTasksResponseNonNullableFields {
|
|
5330
|
-
tasks:
|
|
5331
|
-
status: TaskStatus;
|
|
5332
|
-
source?: {
|
|
5333
|
-
sourceType: SourceType;
|
|
5334
|
-
};
|
|
5335
|
-
}[];
|
|
4942
|
+
tasks: TaskNonNullableFields[];
|
|
5336
4943
|
}
|
|
5337
4944
|
interface CountTasksResponseNonNullableFields {
|
|
5338
4945
|
count: number;
|
|
@@ -5508,75 +5115,21 @@ interface MoveTaskAfterOptions {
|
|
|
5508
5115
|
beforeTaskId?: string | null;
|
|
5509
5116
|
}
|
|
5510
5117
|
|
|
5511
|
-
|
|
5512
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
5513
|
-
fetchWithAuth: typeof fetch;
|
|
5514
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
5515
|
-
}
|
|
5516
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
5517
|
-
type HttpResponse<T = any> = {
|
|
5518
|
-
data: T;
|
|
5519
|
-
status: number;
|
|
5520
|
-
statusText: string;
|
|
5521
|
-
headers: any;
|
|
5522
|
-
request?: any;
|
|
5523
|
-
};
|
|
5524
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
5525
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
5526
|
-
url: string;
|
|
5527
|
-
data?: Data;
|
|
5528
|
-
params?: URLSearchParams;
|
|
5529
|
-
} & APIMetadata;
|
|
5530
|
-
type APIMetadata = {
|
|
5531
|
-
methodFqn?: string;
|
|
5532
|
-
entityFqdn?: string;
|
|
5533
|
-
packageName?: string;
|
|
5534
|
-
};
|
|
5535
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
5536
|
-
__type: 'event-definition';
|
|
5537
|
-
type: Type;
|
|
5538
|
-
isDomainEvent?: boolean;
|
|
5539
|
-
transformations?: (envelope: unknown) => Payload;
|
|
5540
|
-
__payload: Payload;
|
|
5541
|
-
};
|
|
5542
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
5118
|
+
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
5543
5119
|
|
|
5544
|
-
declare
|
|
5545
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
5546
|
-
interface SymbolConstructor {
|
|
5547
|
-
readonly observable: symbol;
|
|
5548
|
-
}
|
|
5549
|
-
}
|
|
5120
|
+
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
5550
5121
|
|
|
5551
|
-
declare const
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
declare
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
declare
|
|
5561
|
-
|
|
5562
|
-
source?: {
|
|
5563
|
-
sourceType: SourceType;
|
|
5564
|
-
} | undefined;
|
|
5565
|
-
}>;
|
|
5566
|
-
declare function updateTask(httpClient: HttpClient): (_id: string | null, task: UpdateTask) => Promise<Task & {
|
|
5567
|
-
status: TaskStatus;
|
|
5568
|
-
source?: {
|
|
5569
|
-
sourceType: SourceType;
|
|
5570
|
-
} | undefined;
|
|
5571
|
-
}>;
|
|
5572
|
-
declare function deleteTask(httpClient: HttpClient): (taskId: string) => Promise<void>;
|
|
5573
|
-
declare function queryTasks(httpClient: HttpClient): () => TasksQueryBuilder;
|
|
5574
|
-
declare function countTasks(httpClient: HttpClient): (options?: CountTasksOptions) => Promise<CountTasksResponse & CountTasksResponseNonNullableFields>;
|
|
5575
|
-
declare function moveTaskAfter(httpClient: HttpClient): (taskId: string, options?: MoveTaskAfterOptions) => Promise<void>;
|
|
5576
|
-
declare const onTaskOverdue: EventDefinition<TaskOverdueEnvelope, "wix.crm.tasks.v2.task_task_overdue">;
|
|
5577
|
-
declare const onTaskCreated: EventDefinition<TaskCreatedEnvelope, "wix.crm.tasks.v2.task_created">;
|
|
5578
|
-
declare const onTaskUpdated: EventDefinition<TaskUpdatedEnvelope, "wix.crm.tasks.v2.task_updated">;
|
|
5579
|
-
declare const onTaskDeleted: EventDefinition<TaskDeletedEnvelope, "wix.crm.tasks.v2.task_deleted">;
|
|
5122
|
+
declare const createTask: ReturnType<typeof createRESTModule<typeof publicCreateTask>>;
|
|
5123
|
+
declare const getTask: ReturnType<typeof createRESTModule<typeof publicGetTask>>;
|
|
5124
|
+
declare const updateTask: ReturnType<typeof createRESTModule<typeof publicUpdateTask>>;
|
|
5125
|
+
declare const deleteTask: ReturnType<typeof createRESTModule<typeof publicDeleteTask>>;
|
|
5126
|
+
declare const queryTasks: ReturnType<typeof createRESTModule<typeof publicQueryTasks>>;
|
|
5127
|
+
declare const countTasks: ReturnType<typeof createRESTModule<typeof publicCountTasks>>;
|
|
5128
|
+
declare const moveTaskAfter: ReturnType<typeof createRESTModule<typeof publicMoveTaskAfter>>;
|
|
5129
|
+
declare const onTaskOverdue: ReturnType<typeof createEventModule<typeof publicOnTaskOverdue>>;
|
|
5130
|
+
declare const onTaskCreated: ReturnType<typeof createEventModule<typeof publicOnTaskCreated>>;
|
|
5131
|
+
declare const onTaskUpdated: ReturnType<typeof createEventModule<typeof publicOnTaskUpdated>>;
|
|
5132
|
+
declare const onTaskDeleted: ReturnType<typeof createEventModule<typeof publicOnTaskDeleted>>;
|
|
5580
5133
|
|
|
5581
5134
|
type index_d_ActionEvent = ActionEvent;
|
|
5582
5135
|
type index_d_BaseEventMetadata = BaseEventMetadata;
|
|
@@ -5637,6 +5190,7 @@ type index_d_Task = Task;
|
|
|
5637
5190
|
type index_d_TaskAssigned = TaskAssigned;
|
|
5638
5191
|
type index_d_TaskCreatedEnvelope = TaskCreatedEnvelope;
|
|
5639
5192
|
type index_d_TaskDeletedEnvelope = TaskDeletedEnvelope;
|
|
5193
|
+
type index_d_TaskNonNullableFields = TaskNonNullableFields;
|
|
5640
5194
|
type index_d_TaskNotFoundError = TaskNotFoundError;
|
|
5641
5195
|
type index_d_TaskOverdue = TaskOverdue;
|
|
5642
5196
|
type index_d_TaskOverdueEnvelope = TaskOverdueEnvelope;
|
|
@@ -5652,7 +5206,6 @@ type index_d_UpdateTaskResponse = UpdateTaskResponse;
|
|
|
5652
5206
|
type index_d_UpdateTaskResponseNonNullableFields = UpdateTaskResponseNonNullableFields;
|
|
5653
5207
|
type index_d_WebhookIdentityType = WebhookIdentityType;
|
|
5654
5208
|
declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
|
|
5655
|
-
declare const index_d___metadata: typeof __metadata;
|
|
5656
5209
|
declare const index_d_countTasks: typeof countTasks;
|
|
5657
5210
|
declare const index_d_createTask: typeof createTask;
|
|
5658
5211
|
declare const index_d_deleteTask: typeof deleteTask;
|
|
@@ -5665,7 +5218,7 @@ declare const index_d_onTaskUpdated: typeof onTaskUpdated;
|
|
|
5665
5218
|
declare const index_d_queryTasks: typeof queryTasks;
|
|
5666
5219
|
declare const index_d_updateTask: typeof updateTask;
|
|
5667
5220
|
declare namespace index_d {
|
|
5668
|
-
export { type index_d_ActionEvent as ActionEvent, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_ContactInfo as ContactInfo, type index_d_ContactNotFoundError as ContactNotFoundError, type index_d_CountTasksOptions as CountTasksOptions, type index_d_CountTasksRequest as CountTasksRequest, type index_d_CountTasksResponse as CountTasksResponse, type index_d_CountTasksResponseNonNullableFields as CountTasksResponseNonNullableFields, type index_d_CreateTaskRequest as CreateTaskRequest, type index_d_CreateTaskResponse as CreateTaskResponse, type index_d_CreateTaskResponseNonNullableFields as CreateTaskResponseNonNullableFields, type index_d_CursorPaging as CursorPaging, type index_d_CursorPagingMetadata as CursorPagingMetadata, type index_d_CursorQuery as CursorQuery, type index_d_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type index_d_Cursors as Cursors, type index_d_DeleteCompletedTasksRequest as DeleteCompletedTasksRequest, type index_d_DeleteCompletedTasksResponse as DeleteCompletedTasksResponse, type index_d_DeleteTaskRequest as DeleteTaskRequest, type index_d_DeleteTaskResponse as DeleteTaskResponse, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_GetTaskRequest as GetTaskRequest, type index_d_GetTaskResponse as GetTaskResponse, type index_d_GetTaskResponseNonNullableFields as GetTaskResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MoveTaskAfterOptions as MoveTaskAfterOptions, type index_d_MoveTaskAfterRequest as MoveTaskAfterRequest, type index_d_MoveTaskAfterResponse as MoveTaskAfterResponse, type index_d_Paging as Paging, type index_d_PagingMetadataV2 as PagingMetadataV2, type index_d_QueryTasksInternalRequest as QueryTasksInternalRequest, type index_d_QueryTasksInternalResponse as QueryTasksInternalResponse, type index_d_QueryTasksRequest as QueryTasksRequest, type index_d_QueryTasksResponse as QueryTasksResponse, type index_d_QueryTasksResponseNonNullableFields as QueryTasksResponseNonNullableFields, type index_d_QueryV2 as QueryV2, type index_d_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, index_d_ReminderType as ReminderType, type index_d_RepositionTask as RepositionTask, type index_d_SendTasksReminderRequest as SendTasksReminderRequest, type index_d_SendTasksReminderResponse as SendTasksReminderResponse, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, index_d_SourceType as SourceType, type index_d_Task as Task, type index_d_TaskAssigned as TaskAssigned, type index_d_TaskCreatedEnvelope as TaskCreatedEnvelope, type index_d_TaskDeletedEnvelope as TaskDeletedEnvelope, type index_d_TaskNotFoundError as TaskNotFoundError, type index_d_TaskOverdue as TaskOverdue, type index_d_TaskOverdueEnvelope as TaskOverdueEnvelope, type index_d_TaskSource as TaskSource, index_d_TaskStatus as TaskStatus, type index_d_TaskUpdatedEnvelope as TaskUpdatedEnvelope, type index_d_TasksQueryBuilder as TasksQueryBuilder, type index_d_TasksQueryResult as TasksQueryResult, type index_d_UpdateTask as UpdateTask, type index_d_UpdateTaskRequest as UpdateTaskRequest, type index_d_UpdateTaskResponse as UpdateTaskResponse, type index_d_UpdateTaskResponseNonNullableFields as UpdateTaskResponseNonNullableFields, index_d_WebhookIdentityType as WebhookIdentityType,
|
|
5221
|
+
export { type index_d_ActionEvent as ActionEvent, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_ContactInfo as ContactInfo, type index_d_ContactNotFoundError as ContactNotFoundError, type index_d_CountTasksOptions as CountTasksOptions, type index_d_CountTasksRequest as CountTasksRequest, type index_d_CountTasksResponse as CountTasksResponse, type index_d_CountTasksResponseNonNullableFields as CountTasksResponseNonNullableFields, type index_d_CreateTaskRequest as CreateTaskRequest, type index_d_CreateTaskResponse as CreateTaskResponse, type index_d_CreateTaskResponseNonNullableFields as CreateTaskResponseNonNullableFields, type index_d_CursorPaging as CursorPaging, type index_d_CursorPagingMetadata as CursorPagingMetadata, type index_d_CursorQuery as CursorQuery, type index_d_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type index_d_Cursors as Cursors, type index_d_DeleteCompletedTasksRequest as DeleteCompletedTasksRequest, type index_d_DeleteCompletedTasksResponse as DeleteCompletedTasksResponse, type index_d_DeleteTaskRequest as DeleteTaskRequest, type index_d_DeleteTaskResponse as DeleteTaskResponse, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_GetTaskRequest as GetTaskRequest, type index_d_GetTaskResponse as GetTaskResponse, type index_d_GetTaskResponseNonNullableFields as GetTaskResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MoveTaskAfterOptions as MoveTaskAfterOptions, type index_d_MoveTaskAfterRequest as MoveTaskAfterRequest, type index_d_MoveTaskAfterResponse as MoveTaskAfterResponse, type index_d_Paging as Paging, type index_d_PagingMetadataV2 as PagingMetadataV2, type index_d_QueryTasksInternalRequest as QueryTasksInternalRequest, type index_d_QueryTasksInternalResponse as QueryTasksInternalResponse, type index_d_QueryTasksRequest as QueryTasksRequest, type index_d_QueryTasksResponse as QueryTasksResponse, type index_d_QueryTasksResponseNonNullableFields as QueryTasksResponseNonNullableFields, type index_d_QueryV2 as QueryV2, type index_d_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, index_d_ReminderType as ReminderType, type index_d_RepositionTask as RepositionTask, type index_d_SendTasksReminderRequest as SendTasksReminderRequest, type index_d_SendTasksReminderResponse as SendTasksReminderResponse, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, index_d_SourceType as SourceType, type index_d_Task as Task, type index_d_TaskAssigned as TaskAssigned, type index_d_TaskCreatedEnvelope as TaskCreatedEnvelope, type index_d_TaskDeletedEnvelope as TaskDeletedEnvelope, type index_d_TaskNonNullableFields as TaskNonNullableFields, type index_d_TaskNotFoundError as TaskNotFoundError, type index_d_TaskOverdue as TaskOverdue, type index_d_TaskOverdueEnvelope as TaskOverdueEnvelope, type index_d_TaskSource as TaskSource, index_d_TaskStatus as TaskStatus, type index_d_TaskUpdatedEnvelope as TaskUpdatedEnvelope, type index_d_TasksQueryBuilder as TasksQueryBuilder, type index_d_TasksQueryResult as TasksQueryResult, type index_d_UpdateTask as UpdateTask, type index_d_UpdateTaskRequest as UpdateTaskRequest, type index_d_UpdateTaskResponse as UpdateTaskResponse, type index_d_UpdateTaskResponseNonNullableFields as UpdateTaskResponseNonNullableFields, index_d_WebhookIdentityType as WebhookIdentityType, index_d_countTasks as countTasks, index_d_createTask as createTask, index_d_deleteTask as deleteTask, index_d_getTask as getTask, index_d_moveTaskAfter as moveTaskAfter, index_d_onTaskCreated as onTaskCreated, index_d_onTaskDeleted as onTaskDeleted, index_d_onTaskOverdue as onTaskOverdue, index_d_onTaskUpdated as onTaskUpdated, index_d_queryTasks as queryTasks, index_d_updateTask as updateTask };
|
|
5669
5222
|
}
|
|
5670
5223
|
|
|
5671
5224
|
export { index_d$5 as attachments, index_d$4 as contacts, index_d$3 as extendedFields, index_d$2 as labels, index_d$1 as submittedContact, index_d as tasks };
|