@wix/crm 1.0.119 → 1.0.121

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.
@@ -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,6 +376,7 @@ interface GetAttachmentIdentifiers {
381
376
  attachmentId: string;
382
377
  }
383
378
 
379
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
384
380
  interface HttpClient {
385
381
  request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
386
382
  fetchWithAuth: typeof fetch;
@@ -405,6 +401,7 @@ type APIMetadata = {
405
401
  entityFqdn?: string;
406
402
  packageName?: string;
407
403
  };
404
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
408
405
  type EventDefinition<Payload = unknown, Type extends string = string> = {
409
406
  __type: 'event-definition';
410
407
  type: Type;
@@ -413,6 +410,8 @@ type EventDefinition<Payload = unknown, Type extends string = string> = {
413
410
  __payload: Payload;
414
411
  };
415
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 const __metadata$5: {
425
- PACKAGE_NAME: string;
426
- };
427
- declare function generateAttachmentUploadUrl(httpClient: HttpClient): (contactId: string, fileName: string, options: GenerateAttachmentUploadUrlOptions) => Promise<GenerateAttachmentUploadUrlResponse & GenerateAttachmentUploadUrlResponseNonNullableFields>;
428
- declare function listAttachments(httpClient: HttpClient): (contactId: string, options?: ListAttachmentsOptions) => Promise<ListAttachmentsResponse & ListAttachmentsResponseNonNullableFields>;
429
- declare function deleteAttachment(httpClient: HttpClient): (identifiers: DeleteAttachmentIdentifiers) => Promise<void>;
430
- declare function getAttachment(httpClient: HttpClient): (identifiers: GetAttachmentIdentifiers) => Promise<ContactAttachment & {
431
- image: string;
432
- document: string;
433
- _id: string;
434
- previewImage: string;
435
- fileName: string;
436
- mimeType: string;
437
- attachmentType: AttachmentType;
438
- }>;
439
- declare const onAttachmentCreated: EventDefinition<AttachmentCreatedEnvelope, "wix.contacts.v4.attachment_created">;
440
- declare const onAttachmentDeleted: EventDefinition<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, __metadata$5 as __metadata, 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 };
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
- pagingMetadata?: PagingMetadataV2$1;
1862
+ cursorPagingMetadata?: CursorPagingMetadata$1;
1870
1863
  }
1871
- interface PagingMetadataV2$1 {
1872
- /** The number of items returned in this response */
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
- /** The offset which was requested. Returned if offset paging was used */
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,55 +2391,22 @@ interface GetContactOptions {
2547
2391
  fieldsets?: ContactFieldSet[];
2548
2392
  }
2549
2393
 
2550
- declare const __metadata$4: {
2551
- PACKAGE_NAME: string;
2552
- };
2553
- declare function createContact(httpClient: HttpClient): (info: ContactInfo$2, options?: CreateContactOptions) => Promise<CreateContactResponse & CreateContactResponseNonNullableFields>;
2554
- declare function updateContact(httpClient: HttpClient): (contactId: string, info: ContactInfo$2, revision: number | null, options?: UpdateContactOptions) => Promise<UpdateContactResponse & UpdateContactResponseNonNullableFields>;
2555
- declare function mergeContacts(httpClient: HttpClient): (targetContactId: string, targetContactRevision: number | null, options?: MergeContactsOptions) => Promise<MergeContactsResponse & MergeContactsResponseNonNullableFields>;
2556
- declare function deleteContact(httpClient: HttpClient): (contactId: string) => Promise<void>;
2557
- declare function labelContact(httpClient: HttpClient): (contactId: string, labelKeys: string[]) => Promise<LabelContactResponse & LabelContactResponseNonNullableFields>;
2558
- declare function unlabelContact(httpClient: HttpClient): (contactId: string, labelKeys: string[]) => Promise<UnlabelContactResponse & UnlabelContactResponseNonNullableFields>;
2559
- declare function queryContacts(httpClient: HttpClient): (options?: QueryContactsOptions) => ContactsQueryBuilder;
2560
- declare function getContact(httpClient: HttpClient): (_id: string, options?: GetContactOptions) => Promise<Contact & {
2561
- _id: string;
2562
- revision: number;
2563
- source?: {
2564
- sourceType: ContactSourceType$1;
2565
- } | undefined;
2566
- lastActivity?: {
2567
- activityType: ContactActivityType$1;
2568
- } | undefined;
2569
- info?: {
2570
- emails?: {
2571
- items: {
2572
- tag: EmailTag$1;
2573
- email: string;
2574
- }[];
2575
- } | undefined;
2576
- phones?: {
2577
- items: {
2578
- tag: PhoneTag$1;
2579
- phone: string;
2580
- }[];
2581
- } | undefined;
2582
- addresses?: {
2583
- items: {
2584
- tag: AddressTag$1;
2585
- }[];
2586
- } | undefined;
2587
- labelKeys?: {
2588
- items: string[];
2589
- } | undefined;
2590
- picture?: {
2591
- image: string;
2592
- } | undefined;
2593
- } | undefined;
2594
- }>;
2595
- declare const onContactCreated: EventDefinition<ContactCreatedEnvelope, "wix.contacts.v4.contact_created">;
2596
- declare const onContactUpdated: EventDefinition<ContactUpdatedEnvelope, "wix.contacts.v4.contact_updated">;
2597
- declare const onContactMerged: EventDefinition<ContactMergedEnvelope, "wix.contacts.v4.contact_merged">;
2598
- declare const onContactDeleted: EventDefinition<ContactDeletedEnvelope, "wix.contacts.v4.contact_deleted">;
2394
+ declare function createRESTModule$4<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
2395
+
2396
+ declare function createEventModule$3<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
2397
+
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>>;
2599
2410
 
2600
2411
  type index_d$4_Action = Action;
2601
2412
  declare const index_d$4_Action: typeof Action;
@@ -2624,6 +2435,7 @@ type index_d$4_ContactFieldSet = ContactFieldSet;
2624
2435
  declare const index_d$4_ContactFieldSet: typeof ContactFieldSet;
2625
2436
  type index_d$4_ContactMerged = ContactMerged;
2626
2437
  type index_d$4_ContactMergedEnvelope = ContactMergedEnvelope;
2438
+ type index_d$4_ContactNonNullableFields = ContactNonNullableFields;
2627
2439
  type index_d$4_ContactPhoneSubscriptionUpdated = ContactPhoneSubscriptionUpdated;
2628
2440
  type index_d$4_ContactPrimaryInfoUpdated = ContactPrimaryInfoUpdated;
2629
2441
  type index_d$4_ContactRemovedFromSegment = ContactRemovedFromSegment;
@@ -2735,7 +2547,7 @@ declare const index_d$4_queryContacts: typeof queryContacts;
2735
2547
  declare const index_d$4_unlabelContact: typeof unlabelContact;
2736
2548
  declare const index_d$4_updateContact: typeof updateContact;
2737
2549
  declare namespace index_d$4 {
2738
- 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, type PagingMetadataV2$1 as PagingMetadataV2, 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, __metadata$4 as __metadata, 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 };
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 };
2739
2551
  }
2740
2552
 
2741
2553
  /** Extended field that was found or created. */
@@ -3113,38 +2925,24 @@ declare enum WebhookIdentityType$3 {
3113
2925
  WIX_USER = "WIX_USER",
3114
2926
  APP = "APP"
3115
2927
  }
2928
+ interface ExtendedFieldNonNullableFields {
2929
+ key: string;
2930
+ displayName: string;
2931
+ dataType: FieldDataType;
2932
+ fieldType: FieldType;
2933
+ }
3116
2934
  interface FindOrCreateExtendedFieldResponseNonNullableFields {
3117
- field?: {
3118
- key: string;
3119
- displayName: string;
3120
- dataType: FieldDataType;
3121
- fieldType: FieldType;
3122
- };
2935
+ field?: ExtendedFieldNonNullableFields;
3123
2936
  newField: boolean;
3124
2937
  }
3125
2938
  interface GetExtendedFieldResponseNonNullableFields {
3126
- field?: {
3127
- key: string;
3128
- displayName: string;
3129
- dataType: FieldDataType;
3130
- fieldType: FieldType;
3131
- };
2939
+ field?: ExtendedFieldNonNullableFields;
3132
2940
  }
3133
2941
  interface UpdateExtendedFieldResponseNonNullableFields {
3134
- field?: {
3135
- key: string;
3136
- displayName: string;
3137
- dataType: FieldDataType;
3138
- fieldType: FieldType;
3139
- };
2942
+ field?: ExtendedFieldNonNullableFields;
3140
2943
  }
3141
2944
  interface QueryExtendedFieldsResponseNonNullableFields {
3142
- fields: {
3143
- key: string;
3144
- displayName: string;
3145
- dataType: FieldDataType;
3146
- fieldType: FieldType;
3147
- }[];
2945
+ fields: ExtendedFieldNonNullableFields[];
3148
2946
  }
3149
2947
  interface BaseEventMetadata$2 {
3150
2948
  /** App instance ID. */
@@ -3323,33 +3121,25 @@ interface FieldsQueryBuilder {
3323
3121
  find: () => Promise<FieldsQueryResult>;
3324
3122
  }
3325
3123
 
3326
- declare const __metadata$3: {
3327
- PACKAGE_NAME: string;
3328
- };
3329
- declare function findOrCreateExtendedField(httpClient: HttpClient): (displayName: string, dataType: FieldDataType) => Promise<FindOrCreateExtendedFieldResponse & FindOrCreateExtendedFieldResponseNonNullableFields>;
3330
- declare function getExtendedField(httpClient: HttpClient): (key: string) => Promise<ExtendedField & {
3331
- key: string;
3332
- displayName: string;
3333
- dataType: FieldDataType;
3334
- fieldType: FieldType;
3335
- }>;
3336
- declare function renameExtendedField(httpClient: HttpClient): (key: string, field: RenameExtendedField) => Promise<ExtendedField & {
3337
- key: string;
3338
- displayName: string;
3339
- dataType: FieldDataType;
3340
- fieldType: FieldType;
3341
- }>;
3342
- declare function deleteExtendedField(httpClient: HttpClient): (key: string) => Promise<void>;
3343
- declare function queryExtendedFields(httpClient: HttpClient): () => FieldsQueryBuilder;
3344
- declare const onExtendedFieldCreated: EventDefinition<ExtendedFieldCreatedEnvelope, "wix.contacts.v4.extended-field_created">;
3345
- declare const onExtendedFieldUpdated: EventDefinition<ExtendedFieldUpdatedEnvelope, "wix.contacts.v4.extended-field_updated">;
3346
- declare const onExtendedFieldDeleted: EventDefinition<ExtendedFieldDeletedEnvelope, "wix.contacts.v4.extended-field_deleted">;
3124
+ declare function createRESTModule$3<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
3125
+
3126
+ declare function createEventModule$2<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
3127
+
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>>;
3347
3136
 
3348
3137
  type index_d$3_DeleteExtendedFieldRequest = DeleteExtendedFieldRequest;
3349
3138
  type index_d$3_DeleteExtendedFieldResponse = DeleteExtendedFieldResponse;
3350
3139
  type index_d$3_ExtendedField = ExtendedField;
3351
3140
  type index_d$3_ExtendedFieldCreatedEnvelope = ExtendedFieldCreatedEnvelope;
3352
3141
  type index_d$3_ExtendedFieldDeletedEnvelope = ExtendedFieldDeletedEnvelope;
3142
+ type index_d$3_ExtendedFieldNonNullableFields = ExtendedFieldNonNullableFields;
3353
3143
  type index_d$3_ExtendedFieldUpdatedEnvelope = ExtendedFieldUpdatedEnvelope;
3354
3144
  type index_d$3_FieldDataType = FieldDataType;
3355
3145
  declare const index_d$3_FieldDataType: typeof FieldDataType;
@@ -3384,7 +3174,7 @@ declare const index_d$3_onExtendedFieldUpdated: typeof onExtendedFieldUpdated;
3384
3174
  declare const index_d$3_queryExtendedFields: typeof queryExtendedFields;
3385
3175
  declare const index_d$3_renameExtendedField: typeof renameExtendedField;
3386
3176
  declare namespace index_d$3 {
3387
- 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, __metadata$3 as __metadata, 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 };
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 };
3388
3178
  }
3389
3179
 
3390
3180
  /** Label that was found or created. */
@@ -3760,34 +3550,23 @@ declare enum WebhookIdentityType$2 {
3760
3550
  WIX_USER = "WIX_USER",
3761
3551
  APP = "APP"
3762
3552
  }
3553
+ interface ContactLabelNonNullableFields {
3554
+ key: string;
3555
+ displayName: string;
3556
+ labelType: LabelType;
3557
+ }
3763
3558
  interface FindOrCreateLabelResponseNonNullableFields {
3764
- label?: {
3765
- key: string;
3766
- displayName: string;
3767
- labelType: LabelType;
3768
- };
3559
+ label?: ContactLabelNonNullableFields;
3769
3560
  newLabel: boolean;
3770
3561
  }
3771
3562
  interface GetLabelResponseNonNullableFields {
3772
- label?: {
3773
- key: string;
3774
- displayName: string;
3775
- labelType: LabelType;
3776
- };
3563
+ label?: ContactLabelNonNullableFields;
3777
3564
  }
3778
3565
  interface UpdateLabelResponseNonNullableFields {
3779
- label?: {
3780
- key: string;
3781
- displayName: string;
3782
- labelType: LabelType;
3783
- };
3566
+ label?: ContactLabelNonNullableFields;
3784
3567
  }
3785
3568
  interface QueryLabelsResponseNonNullableFields {
3786
- labels: {
3787
- key: string;
3788
- displayName: string;
3789
- labelType: LabelType;
3790
- }[];
3569
+ labels: ContactLabelNonNullableFields[];
3791
3570
  }
3792
3571
  interface BaseEventMetadata$1 {
3793
3572
  /** App instance ID. */
@@ -3992,28 +3771,22 @@ interface LabelsQueryBuilder {
3992
3771
  find: () => Promise<LabelsQueryResult>;
3993
3772
  }
3994
3773
 
3995
- declare const __metadata$2: {
3996
- PACKAGE_NAME: string;
3997
- };
3998
- declare function findOrCreateLabel(httpClient: HttpClient): (displayName: string, options?: FindOrCreateLabelOptions) => Promise<FindOrCreateLabelResponse & FindOrCreateLabelResponseNonNullableFields>;
3999
- declare function getLabel(httpClient: HttpClient): (key: string, options?: GetLabelOptions) => Promise<ContactLabel & {
4000
- key: string;
4001
- displayName: string;
4002
- labelType: LabelType;
4003
- }>;
4004
- declare function renameLabel(httpClient: HttpClient): (key: string, label: RenameLabel, options?: RenameLabelOptions) => Promise<ContactLabel & {
4005
- key: string;
4006
- displayName: string;
4007
- labelType: LabelType;
4008
- }>;
4009
- declare function deleteLabel(httpClient: HttpClient): (key: string) => Promise<void>;
4010
- declare function queryLabels(httpClient: HttpClient): (options?: QueryLabelsOptions) => LabelsQueryBuilder;
4011
- declare const onLabelCreated: EventDefinition<LabelCreatedEnvelope, "wix.contacts.v4.label_created">;
4012
- declare const onLabelUpdated: EventDefinition<LabelUpdatedEnvelope, "wix.contacts.v4.label_updated">;
4013
- declare const onLabelDeleted: EventDefinition<LabelDeletedEnvelope, "wix.contacts.v4.label_deleted">;
3774
+ declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
3775
+
3776
+ declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
3777
+
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>>;
4014
3786
 
4015
3787
  type index_d$2_ContactLabel = ContactLabel;
4016
3788
  type index_d$2_ContactLabelNamespace = ContactLabelNamespace;
3789
+ type index_d$2_ContactLabelNonNullableFields = ContactLabelNonNullableFields;
4017
3790
  type index_d$2_DeleteLabelRequest = DeleteLabelRequest;
4018
3791
  type index_d$2_DeleteLabelResponse = DeleteLabelResponse;
4019
3792
  type index_d$2_FindOrCreateLabelOptions = FindOrCreateLabelOptions;
@@ -4063,7 +3836,7 @@ declare const index_d$2_onLabelUpdated: typeof onLabelUpdated;
4063
3836
  declare const index_d$2_queryLabels: typeof queryLabels;
4064
3837
  declare const index_d$2_renameLabel: typeof renameLabel;
4065
3838
  declare namespace index_d$2 {
4066
- 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, __metadata$2 as __metadata, 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 };
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 };
4067
3840
  }
4068
3841
 
4069
3842
  /** Dummy message for fqdn validation */
@@ -4654,10 +4427,9 @@ interface AppendOrCreateContactOptions {
4654
4427
  contactId?: string | null;
4655
4428
  }
4656
4429
 
4657
- declare const __metadata$1: {
4658
- PACKAGE_NAME: string;
4659
- };
4660
- declare function appendOrCreateContact(httpClient: HttpClient): (options?: AppendOrCreateContactOptions) => Promise<SubmitContactResponse & SubmitContactResponseNonNullableFields>;
4430
+ declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
4431
+
4432
+ declare const appendOrCreateContact: ReturnType<typeof createRESTModule$1<typeof publicAppendOrCreateContact>>;
4661
4433
 
4662
4434
  type index_d$1_ActivityIcon = ActivityIcon;
4663
4435
  type index_d$1_Address = Address;
@@ -4707,7 +4479,7 @@ type index_d$1_SubmitVisitorIdRequest = SubmitVisitorIdRequest;
4707
4479
  type index_d$1_SubmitVisitorIdResponse = SubmitVisitorIdResponse;
4708
4480
  declare const index_d$1_appendOrCreateContact: typeof appendOrCreateContact;
4709
4481
  declare namespace index_d$1 {
4710
- 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, __metadata$1 as __metadata, index_d$1_appendOrCreateContact as appendOrCreateContact };
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 };
4711
4483
  }
4712
4484
 
4713
4485
  interface Task {
@@ -5150,37 +4922,24 @@ declare enum WebhookIdentityType {
5150
4922
  WIX_USER = "WIX_USER",
5151
4923
  APP = "APP"
5152
4924
  }
4925
+ interface TaskSourceNonNullableFields {
4926
+ sourceType: SourceType;
4927
+ }
4928
+ interface TaskNonNullableFields {
4929
+ status: TaskStatus;
4930
+ source?: TaskSourceNonNullableFields;
4931
+ }
5153
4932
  interface CreateTaskResponseNonNullableFields {
5154
- task?: {
5155
- status: TaskStatus;
5156
- source?: {
5157
- sourceType: SourceType;
5158
- };
5159
- };
4933
+ task?: TaskNonNullableFields;
5160
4934
  }
5161
4935
  interface GetTaskResponseNonNullableFields {
5162
- task?: {
5163
- status: TaskStatus;
5164
- source?: {
5165
- sourceType: SourceType;
5166
- };
5167
- };
4936
+ task?: TaskNonNullableFields;
5168
4937
  }
5169
4938
  interface UpdateTaskResponseNonNullableFields {
5170
- task?: {
5171
- status: TaskStatus;
5172
- source?: {
5173
- sourceType: SourceType;
5174
- };
5175
- };
4939
+ task?: TaskNonNullableFields;
5176
4940
  }
5177
4941
  interface QueryTasksResponseNonNullableFields {
5178
- tasks: {
5179
- status: TaskStatus;
5180
- source?: {
5181
- sourceType: SourceType;
5182
- };
5183
- }[];
4942
+ tasks: TaskNonNullableFields[];
5184
4943
  }
5185
4944
  interface CountTasksResponseNonNullableFields {
5186
4945
  count: number;
@@ -5356,35 +5115,21 @@ interface MoveTaskAfterOptions {
5356
5115
  beforeTaskId?: string | null;
5357
5116
  }
5358
5117
 
5359
- declare const __metadata: {
5360
- PACKAGE_NAME: string;
5361
- };
5362
- declare function createTask(httpClient: HttpClient): (task: Task) => Promise<Task & {
5363
- status: TaskStatus;
5364
- source?: {
5365
- sourceType: SourceType;
5366
- } | undefined;
5367
- }>;
5368
- declare function getTask(httpClient: HttpClient): (taskId: string) => Promise<Task & {
5369
- status: TaskStatus;
5370
- source?: {
5371
- sourceType: SourceType;
5372
- } | undefined;
5373
- }>;
5374
- declare function updateTask(httpClient: HttpClient): (_id: string | null, task: UpdateTask) => Promise<Task & {
5375
- status: TaskStatus;
5376
- source?: {
5377
- sourceType: SourceType;
5378
- } | undefined;
5379
- }>;
5380
- declare function deleteTask(httpClient: HttpClient): (taskId: string) => Promise<void>;
5381
- declare function queryTasks(httpClient: HttpClient): () => TasksQueryBuilder;
5382
- declare function countTasks(httpClient: HttpClient): (options?: CountTasksOptions) => Promise<CountTasksResponse & CountTasksResponseNonNullableFields>;
5383
- declare function moveTaskAfter(httpClient: HttpClient): (taskId: string, options?: MoveTaskAfterOptions) => Promise<void>;
5384
- declare const onTaskOverdue: EventDefinition<TaskOverdueEnvelope, "wix.crm.tasks.v2.task_task_overdue">;
5385
- declare const onTaskCreated: EventDefinition<TaskCreatedEnvelope, "wix.crm.tasks.v2.task_created">;
5386
- declare const onTaskUpdated: EventDefinition<TaskUpdatedEnvelope, "wix.crm.tasks.v2.task_updated">;
5387
- declare const onTaskDeleted: EventDefinition<TaskDeletedEnvelope, "wix.crm.tasks.v2.task_deleted">;
5118
+ declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
5119
+
5120
+ declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
5121
+
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>>;
5388
5133
 
5389
5134
  type index_d_ActionEvent = ActionEvent;
5390
5135
  type index_d_BaseEventMetadata = BaseEventMetadata;
@@ -5445,6 +5190,7 @@ type index_d_Task = Task;
5445
5190
  type index_d_TaskAssigned = TaskAssigned;
5446
5191
  type index_d_TaskCreatedEnvelope = TaskCreatedEnvelope;
5447
5192
  type index_d_TaskDeletedEnvelope = TaskDeletedEnvelope;
5193
+ type index_d_TaskNonNullableFields = TaskNonNullableFields;
5448
5194
  type index_d_TaskNotFoundError = TaskNotFoundError;
5449
5195
  type index_d_TaskOverdue = TaskOverdue;
5450
5196
  type index_d_TaskOverdueEnvelope = TaskOverdueEnvelope;
@@ -5460,7 +5206,6 @@ type index_d_UpdateTaskResponse = UpdateTaskResponse;
5460
5206
  type index_d_UpdateTaskResponseNonNullableFields = UpdateTaskResponseNonNullableFields;
5461
5207
  type index_d_WebhookIdentityType = WebhookIdentityType;
5462
5208
  declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
5463
- declare const index_d___metadata: typeof __metadata;
5464
5209
  declare const index_d_countTasks: typeof countTasks;
5465
5210
  declare const index_d_createTask: typeof createTask;
5466
5211
  declare const index_d_deleteTask: typeof deleteTask;
@@ -5473,7 +5218,7 @@ declare const index_d_onTaskUpdated: typeof onTaskUpdated;
5473
5218
  declare const index_d_queryTasks: typeof queryTasks;
5474
5219
  declare const index_d_updateTask: typeof updateTask;
5475
5220
  declare namespace index_d {
5476
- 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, index_d___metadata as __metadata, 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 };
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 };
5477
5222
  }
5478
5223
 
5479
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 };