@wix/auto_sdk_restaurants_recipients 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/meta.d.ts +149 -1
- package/build/cjs/meta.js +27 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/meta.d.mts +149 -1
- package/build/es/meta.mjs +24 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/meta.d.ts +149 -1
- package/build/internal/cjs/meta.js +27 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/meta.d.mts +149 -1
- package/build/internal/es/meta.mjs +24 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/meta.d.ts
CHANGED
|
@@ -325,6 +325,154 @@ interface BulkUpdateRecipientTagsByFilterResponse {
|
|
|
325
325
|
*/
|
|
326
326
|
jobId?: string;
|
|
327
327
|
}
|
|
328
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
329
|
+
createdEvent?: EntityCreatedEvent;
|
|
330
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
331
|
+
deletedEvent?: EntityDeletedEvent;
|
|
332
|
+
actionEvent?: ActionEvent;
|
|
333
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
334
|
+
id?: string;
|
|
335
|
+
/**
|
|
336
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
337
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
338
|
+
*/
|
|
339
|
+
entityFqdn?: string;
|
|
340
|
+
/**
|
|
341
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
342
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
343
|
+
*/
|
|
344
|
+
slug?: string;
|
|
345
|
+
/** ID of the entity associated with the event. */
|
|
346
|
+
entityId?: string;
|
|
347
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
348
|
+
eventTime?: Date | null;
|
|
349
|
+
/**
|
|
350
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
351
|
+
* (for example, GDPR).
|
|
352
|
+
*/
|
|
353
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
354
|
+
/** If present, indicates the action that triggered the event. */
|
|
355
|
+
originatedFrom?: string | null;
|
|
356
|
+
/**
|
|
357
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
358
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
359
|
+
*/
|
|
360
|
+
entityEventSequence?: string | null;
|
|
361
|
+
}
|
|
362
|
+
/** @oneof */
|
|
363
|
+
interface DomainEventBodyOneOf {
|
|
364
|
+
createdEvent?: EntityCreatedEvent;
|
|
365
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
366
|
+
deletedEvent?: EntityDeletedEvent;
|
|
367
|
+
actionEvent?: ActionEvent;
|
|
368
|
+
}
|
|
369
|
+
interface EntityCreatedEvent {
|
|
370
|
+
entityAsJson?: string;
|
|
371
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
372
|
+
restoreInfo?: RestoreInfo;
|
|
373
|
+
}
|
|
374
|
+
interface RestoreInfo {
|
|
375
|
+
deletedDate?: Date | null;
|
|
376
|
+
}
|
|
377
|
+
interface EntityUpdatedEvent {
|
|
378
|
+
/**
|
|
379
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
380
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
381
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
382
|
+
*/
|
|
383
|
+
currentEntityAsJson?: string;
|
|
384
|
+
}
|
|
385
|
+
interface EntityDeletedEvent {
|
|
386
|
+
/** Entity that was deleted. */
|
|
387
|
+
deletedEntityAsJson?: string | null;
|
|
388
|
+
}
|
|
389
|
+
interface ActionEvent {
|
|
390
|
+
bodyAsJson?: string;
|
|
391
|
+
}
|
|
392
|
+
interface MessageEnvelope {
|
|
393
|
+
/**
|
|
394
|
+
* App instance ID.
|
|
395
|
+
* @format GUID
|
|
396
|
+
*/
|
|
397
|
+
instanceId?: string | null;
|
|
398
|
+
/**
|
|
399
|
+
* Event type.
|
|
400
|
+
* @maxLength 150
|
|
401
|
+
*/
|
|
402
|
+
eventType?: string;
|
|
403
|
+
/** The identification type and identity data. */
|
|
404
|
+
identity?: IdentificationData;
|
|
405
|
+
/** Stringify payload. */
|
|
406
|
+
data?: string;
|
|
407
|
+
}
|
|
408
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
409
|
+
/**
|
|
410
|
+
* ID of a site visitor that has not logged in to the site.
|
|
411
|
+
* @format GUID
|
|
412
|
+
*/
|
|
413
|
+
anonymousVisitorId?: string;
|
|
414
|
+
/**
|
|
415
|
+
* ID of a site visitor that has logged in to the site.
|
|
416
|
+
* @format GUID
|
|
417
|
+
*/
|
|
418
|
+
memberId?: string;
|
|
419
|
+
/**
|
|
420
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
421
|
+
* @format GUID
|
|
422
|
+
*/
|
|
423
|
+
wixUserId?: string;
|
|
424
|
+
/**
|
|
425
|
+
* ID of an app.
|
|
426
|
+
* @format GUID
|
|
427
|
+
*/
|
|
428
|
+
appId?: string;
|
|
429
|
+
/** @readonly */
|
|
430
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
431
|
+
}
|
|
432
|
+
/** @oneof */
|
|
433
|
+
interface IdentificationDataIdOneOf {
|
|
434
|
+
/**
|
|
435
|
+
* ID of a site visitor that has not logged in to the site.
|
|
436
|
+
* @format GUID
|
|
437
|
+
*/
|
|
438
|
+
anonymousVisitorId?: string;
|
|
439
|
+
/**
|
|
440
|
+
* ID of a site visitor that has logged in to the site.
|
|
441
|
+
* @format GUID
|
|
442
|
+
*/
|
|
443
|
+
memberId?: string;
|
|
444
|
+
/**
|
|
445
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
446
|
+
* @format GUID
|
|
447
|
+
*/
|
|
448
|
+
wixUserId?: string;
|
|
449
|
+
/**
|
|
450
|
+
* ID of an app.
|
|
451
|
+
* @format GUID
|
|
452
|
+
*/
|
|
453
|
+
appId?: string;
|
|
454
|
+
}
|
|
455
|
+
declare enum WebhookIdentityType {
|
|
456
|
+
UNKNOWN = "UNKNOWN",
|
|
457
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
458
|
+
MEMBER = "MEMBER",
|
|
459
|
+
WIX_USER = "WIX_USER",
|
|
460
|
+
APP = "APP"
|
|
461
|
+
}
|
|
462
|
+
/** @enumType */
|
|
463
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
464
|
+
/** @docsIgnore */
|
|
465
|
+
type BulkUpdateRecipientTagsApplicationErrors = {
|
|
466
|
+
code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
|
|
467
|
+
description?: string;
|
|
468
|
+
data?: Record<string, any>;
|
|
469
|
+
};
|
|
470
|
+
/** @docsIgnore */
|
|
471
|
+
type BulkUpdateRecipientTagsByFilterApplicationErrors = {
|
|
472
|
+
code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
|
|
473
|
+
description?: string;
|
|
474
|
+
data?: Record<string, any>;
|
|
475
|
+
};
|
|
328
476
|
|
|
329
477
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
330
478
|
getUrl: (context: any) => string;
|
|
@@ -350,4 +498,4 @@ declare function queryRecipients(): __PublicMethodMetaInfo<'GET', {}, QueryRecip
|
|
|
350
498
|
declare function bulkUpdateRecipientTags(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateRecipientTagsRequest$1, BulkUpdateRecipientTagsRequest, BulkUpdateRecipientTagsResponse$1, BulkUpdateRecipientTagsResponse>;
|
|
351
499
|
declare function bulkUpdateRecipientTagsByFilter(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateRecipientTagsByFilterRequest$1, BulkUpdateRecipientTagsByFilterRequest, BulkUpdateRecipientTagsByFilterResponse$1, BulkUpdateRecipientTagsByFilterResponse>;
|
|
352
500
|
|
|
353
|
-
export { type __PublicMethodMetaInfo, bulkUpdateRecipientTags, bulkUpdateRecipientTagsByFilter, createRecipient, deleteRecipient, getRecipient, queryRecipients, updateRecipient };
|
|
501
|
+
export { type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkUpdateRecipientTagsApplicationErrors as BulkUpdateRecipientTagsApplicationErrorsOriginal, type BulkUpdateRecipientTagsByFilterApplicationErrors as BulkUpdateRecipientTagsByFilterApplicationErrorsOriginal, type BulkUpdateRecipientTagsByFilterRequest as BulkUpdateRecipientTagsByFilterRequestOriginal, type BulkUpdateRecipientTagsByFilterResponse as BulkUpdateRecipientTagsByFilterResponseOriginal, type BulkUpdateRecipientTagsRequest as BulkUpdateRecipientTagsRequestOriginal, type BulkUpdateRecipientTagsResponse as BulkUpdateRecipientTagsResponseOriginal, type BulkUpdateRecipientTagsResult as BulkUpdateRecipientTagsResultOriginal, Channel as ChannelOriginal, type ChannelWithLiterals as ChannelWithLiteralsOriginal, type CreateRecipientRequest as CreateRecipientRequestOriginal, type CreateRecipientResponse as CreateRecipientResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DeleteRecipientRequest as DeleteRecipientRequestOriginal, type DeleteRecipientResponse as DeleteRecipientResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type GetRecipientRequest as GetRecipientRequestOriginal, type GetRecipientResponse as GetRecipientResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ItemMetadata as ItemMetadataOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type QueryRecipientsRequest as QueryRecipientsRequestOriginal, type QueryRecipientsResponse as QueryRecipientsResponseOriginal, type Recipient as RecipientOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type TagList as TagListOriginal, type Tags as TagsOriginal, type UpdateRecipientRequest as UpdateRecipientRequestOriginal, type UpdateRecipientResponse as UpdateRecipientResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkUpdateRecipientTags, bulkUpdateRecipientTagsByFilter, createRecipient, deleteRecipient, getRecipient, queryRecipients, updateRecipient };
|
package/build/cjs/meta.js
CHANGED
|
@@ -20,6 +20,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// meta.ts
|
|
21
21
|
var meta_exports = {};
|
|
22
22
|
__export(meta_exports, {
|
|
23
|
+
ChannelOriginal: () => Channel,
|
|
24
|
+
SortOrderOriginal: () => SortOrder,
|
|
25
|
+
WebhookIdentityTypeOriginal: () => WebhookIdentityType,
|
|
23
26
|
bulkUpdateRecipientTags: () => bulkUpdateRecipientTags2,
|
|
24
27
|
bulkUpdateRecipientTagsByFilter: () => bulkUpdateRecipientTagsByFilter2,
|
|
25
28
|
createRecipient: () => createRecipient2,
|
|
@@ -292,6 +295,27 @@ function bulkUpdateRecipientTagsByFilter(payload) {
|
|
|
292
295
|
return __bulkUpdateRecipientTagsByFilter;
|
|
293
296
|
}
|
|
294
297
|
|
|
298
|
+
// src/restaurants-recipient-v1-recipient-recipients.types.ts
|
|
299
|
+
var Channel = /* @__PURE__ */ ((Channel2) => {
|
|
300
|
+
Channel2["UNKNOWN_CHANNEL"] = "UNKNOWN_CHANNEL";
|
|
301
|
+
Channel2["SMS"] = "SMS";
|
|
302
|
+
Channel2["PHONE"] = "PHONE";
|
|
303
|
+
return Channel2;
|
|
304
|
+
})(Channel || {});
|
|
305
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
306
|
+
SortOrder2["ASC"] = "ASC";
|
|
307
|
+
SortOrder2["DESC"] = "DESC";
|
|
308
|
+
return SortOrder2;
|
|
309
|
+
})(SortOrder || {});
|
|
310
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
311
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
312
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
313
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
314
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
315
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
316
|
+
return WebhookIdentityType2;
|
|
317
|
+
})(WebhookIdentityType || {});
|
|
318
|
+
|
|
295
319
|
// src/restaurants-recipient-v1-recipient-recipients.meta.ts
|
|
296
320
|
function createRecipient2() {
|
|
297
321
|
const payload = {};
|
|
@@ -425,6 +449,9 @@ function bulkUpdateRecipientTagsByFilter2() {
|
|
|
425
449
|
}
|
|
426
450
|
// Annotate the CommonJS export names for ESM import in node:
|
|
427
451
|
0 && (module.exports = {
|
|
452
|
+
ChannelOriginal,
|
|
453
|
+
SortOrderOriginal,
|
|
454
|
+
WebhookIdentityTypeOriginal,
|
|
428
455
|
bulkUpdateRecipientTags,
|
|
429
456
|
bulkUpdateRecipientTagsByFilter,
|
|
430
457
|
createRecipient,
|
package/build/cjs/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../meta.ts","../../src/restaurants-recipient-v1-recipient-recipients.http.ts","../../src/restaurants-recipient-v1-recipient-recipients.meta.ts"],"sourcesContent":["export * from './src/restaurants-recipient-v1-recipient-recipients.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixRestaurantsRecipientV1NotificationRecipientsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/rest-notification-recipients',\n destPath: '',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/rest-notification-recipients',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/rest-notification-recipients/v1',\n destPath: '/v1',\n },\n {\n srcPath: '/restaurants/recipient/v1/recipients',\n destPath: '/v1/recipients',\n },\n ],\n _: [\n {\n srcPath: '/_api/rest-notification-recipients',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/rest-notification-recipients',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_restaurants_recipients';\n\n/** Creates a recipient. */\nexport function createRecipient(payload: object): RequestOptionsFactory<any> {\n function __createRecipient({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'recipient.createdDate' },\n { path: 'recipient.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.restaurants.recipient.v1.recipient',\n method: 'POST' as any,\n methodFqn:\n 'wix.restaurants.recipient.v1.NotificationRecipientsService.CreateRecipient',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsRecipientV1NotificationRecipientsServiceUrl({\n protoPath: '/v1/recipients',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'recipient.createdDate' },\n { path: 'recipient.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createRecipient;\n}\n\n/** Retrieves a recipient by ID. */\nexport function getRecipient(payload: object): RequestOptionsFactory<any> {\n function __getRecipient({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.recipient.v1.recipient',\n method: 'GET' as any,\n methodFqn:\n 'wix.restaurants.recipient.v1.NotificationRecipientsService.GetRecipient',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsRecipientV1NotificationRecipientsServiceUrl({\n protoPath: '/v1/recipients/{recipientId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'recipient.createdDate' },\n { path: 'recipient.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getRecipient;\n}\n\n/**\n * Updates a recipient's information.\n *\n * Each time the recipient is updated, `revision` increments by 1.\n * The current `revision` must be passed when updating the recipient.\n * This ensures you're working with the latest recipient and prevents unintended overwrites.\n */\nexport function updateRecipient(payload: object): RequestOptionsFactory<any> {\n function __updateRecipient({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'recipient.createdDate' },\n { path: 'recipient.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.restaurants.recipient.v1.recipient',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.restaurants.recipient.v1.NotificationRecipientsService.UpdateRecipient',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsRecipientV1NotificationRecipientsServiceUrl({\n protoPath: '/v1/recipients/{recipient.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'recipient.createdDate' },\n { path: 'recipient.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateRecipient;\n}\n\n/** Deletes a recipient. */\nexport function deleteRecipient(payload: object): RequestOptionsFactory<any> {\n function __deleteRecipient({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.recipient.v1.recipient',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.restaurants.recipient.v1.NotificationRecipientsService.DeleteRecipient',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsRecipientV1NotificationRecipientsServiceUrl({\n protoPath: '/v1/recipients/{recipientId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteRecipient;\n}\n\n/**\n * Retrieves a list of recipients with optional filtering, sorting, and paging.\n *\n * Up to 100 recipients can be returned per request.\n *\n * For a detailed list of supported operations, see the [Supported Filters and Sorting](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/wix-restaurants-new/online-orders/notification-recipients/supported-filters-and-sorting) article.\n * To learn how to query notification recipients, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).\n *\n * Supported properties for filtering and sorting:\n * `id`, `createdDate`, `updatedDate`, `channels`\n */\nexport function queryRecipients(payload: object): RequestOptionsFactory<any> {\n function __queryRecipients({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.recipient.v1.recipient',\n method: 'GET' as any,\n methodFqn:\n 'wix.restaurants.recipient.v1.NotificationRecipientsService.QueryRecipients',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsRecipientV1NotificationRecipientsServiceUrl({\n protoPath: '/v1/recipients/query',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'recipients.createdDate' },\n { path: 'recipients.updatedDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixRestaurantsRecipientV1NotificationRecipientsServiceUrl(\n { protoPath: '/v1/recipients/query', data: payload, host }\n ),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryRecipients;\n}\n\n/**\n * Updates tags on multiple recipients by recipient IDs.\n *\n * This is a synchronous operation that updates up to 100 recipients at once.\n * If a tag appears in both assign and unassign lists, it will be assigned.\n */\nexport function bulkUpdateRecipientTags(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateRecipientTags({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.recipient.v1.recipient',\n method: 'POST' as any,\n methodFqn:\n 'wix.restaurants.recipient.v1.NotificationRecipientsService.BulkUpdateRecipientTags',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsRecipientV1NotificationRecipientsServiceUrl({\n protoPath: '/v1/bulk/recipients/update-tags',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateRecipientTags;\n}\n\n/**\n * Updates tags on multiple recipients using filter criteria.\n *\n * This is an asynchronous operation that returns a job ID for tracking progress.\n * An empty filter will update all recipients. If a tag appears in both assign and unassign lists, it will be assigned.\n */\nexport function bulkUpdateRecipientTagsByFilter(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateRecipientTagsByFilter({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.recipient.v1.recipient',\n method: 'POST' as any,\n methodFqn:\n 'wix.restaurants.recipient.v1.NotificationRecipientsService.BulkUpdateRecipientTagsByFilter',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsRecipientV1NotificationRecipientsServiceUrl({\n protoPath: '/v1/bulk/recipients/update-tags-by-filter',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateRecipientTagsByFilter;\n}\n","import * as ambassadorWixRestaurantsRecipientV1Recipient from './restaurants-recipient-v1-recipient-recipients.http.js';\nimport * as ambassadorWixRestaurantsRecipientV1RecipientTypes from './restaurants-recipient-v1-recipient-recipients.types.js';\nimport * as ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes from './restaurants-recipient-v1-recipient-recipients.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createRecipient(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.CreateRecipientRequest,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.CreateRecipientRequest,\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.CreateRecipientResponse,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.CreateRecipientResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixRestaurantsRecipientV1Recipient.createRecipient(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/recipients',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getRecipient(): __PublicMethodMetaInfo<\n 'GET',\n { recipientId: string },\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.GetRecipientRequest,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.GetRecipientRequest,\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.GetRecipientResponse,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.GetRecipientResponse\n> {\n const payload = { recipientId: ':recipientId' } as any;\n\n const getRequestOptions =\n ambassadorWixRestaurantsRecipientV1Recipient.getRecipient(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/recipients/{recipientId}',\n pathParams: { recipientId: 'recipientId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateRecipient(): __PublicMethodMetaInfo<\n 'PATCH',\n { recipientId: string },\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.UpdateRecipientRequest,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.UpdateRecipientRequest,\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.UpdateRecipientResponse,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.UpdateRecipientResponse\n> {\n const payload = { recipient: { id: ':recipientId' } } as any;\n\n const getRequestOptions =\n ambassadorWixRestaurantsRecipientV1Recipient.updateRecipient(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/recipients/{recipient.id}',\n pathParams: { recipientId: 'recipientId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteRecipient(): __PublicMethodMetaInfo<\n 'DELETE',\n { recipientId: string },\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.DeleteRecipientRequest,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.DeleteRecipientRequest,\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.DeleteRecipientResponse,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.DeleteRecipientResponse\n> {\n const payload = { recipientId: ':recipientId' } as any;\n\n const getRequestOptions =\n ambassadorWixRestaurantsRecipientV1Recipient.deleteRecipient(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/recipients/{recipientId}',\n pathParams: { recipientId: 'recipientId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryRecipients(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.QueryRecipientsRequest,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.QueryRecipientsRequest,\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.QueryRecipientsResponse,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.QueryRecipientsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixRestaurantsRecipientV1Recipient.queryRecipients(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/recipients/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUpdateRecipientTags(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.BulkUpdateRecipientTagsRequest,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.BulkUpdateRecipientTagsRequest,\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.BulkUpdateRecipientTagsResponse,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.BulkUpdateRecipientTagsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixRestaurantsRecipientV1Recipient.bulkUpdateRecipientTags(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/recipients/update-tags',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUpdateRecipientTagsByFilter(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.BulkUpdateRecipientTagsByFilterRequest,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.BulkUpdateRecipientTagsByFilterRequest,\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.BulkUpdateRecipientTagsByFilterResponse,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.BulkUpdateRecipientTagsByFilterResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixRestaurantsRecipientV1Recipient.bulkUpdateRecipientTagsByFilter(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/recipients/update-tags-by-filter',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,iCAAAA;AAAA,EAAA,uCAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,uBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,iEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,gBAAgB,SAA6C;AAC3E,WAAS,kBAAkB,EAAE,KAAK,GAAQ;AACxC,UAAM,qBAAiB,uCAAe,SAAS;AAAA,MAC7C;AAAA,QACE,aAAa;AAAA,QACb,OAAO;AAAA,UACL,EAAE,MAAM,wBAAwB;AAAA,UAChC,EAAE,MAAM,wBAAwB;AAAA,QAClC;AAAA,MACF;AA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,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["bulkUpdateRecipientTags","bulkUpdateRecipientTagsByFilter","createRecipient","deleteRecipient","getRecipient","queryRecipients","updateRecipient","import_timestamp","import_rest_modules","payload","createRecipient","getRecipient","updateRecipient","deleteRecipient","queryRecipients","bulkUpdateRecipientTags","bulkUpdateRecipientTagsByFilter"]}
|
|
1
|
+
{"version":3,"sources":["../../meta.ts","../../src/restaurants-recipient-v1-recipient-recipients.http.ts","../../src/restaurants-recipient-v1-recipient-recipients.types.ts","../../src/restaurants-recipient-v1-recipient-recipients.meta.ts"],"sourcesContent":["export * from './src/restaurants-recipient-v1-recipient-recipients.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixRestaurantsRecipientV1NotificationRecipientsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/rest-notification-recipients',\n destPath: '',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/rest-notification-recipients',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/rest-notification-recipients/v1',\n destPath: '/v1',\n },\n {\n srcPath: '/restaurants/recipient/v1/recipients',\n destPath: '/v1/recipients',\n },\n ],\n _: [\n {\n srcPath: '/_api/rest-notification-recipients',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/rest-notification-recipients',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_restaurants_recipients';\n\n/** Creates a recipient. */\nexport function createRecipient(payload: object): RequestOptionsFactory<any> {\n function __createRecipient({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'recipient.createdDate' },\n { path: 'recipient.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.restaurants.recipient.v1.recipient',\n method: 'POST' as any,\n methodFqn:\n 'wix.restaurants.recipient.v1.NotificationRecipientsService.CreateRecipient',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsRecipientV1NotificationRecipientsServiceUrl({\n protoPath: '/v1/recipients',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'recipient.createdDate' },\n { path: 'recipient.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createRecipient;\n}\n\n/** Retrieves a recipient by ID. */\nexport function getRecipient(payload: object): RequestOptionsFactory<any> {\n function __getRecipient({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.recipient.v1.recipient',\n method: 'GET' as any,\n methodFqn:\n 'wix.restaurants.recipient.v1.NotificationRecipientsService.GetRecipient',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsRecipientV1NotificationRecipientsServiceUrl({\n protoPath: '/v1/recipients/{recipientId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'recipient.createdDate' },\n { path: 'recipient.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getRecipient;\n}\n\n/**\n * Updates a recipient's information.\n *\n * Each time the recipient is updated, `revision` increments by 1.\n * The current `revision` must be passed when updating the recipient.\n * This ensures you're working with the latest recipient and prevents unintended overwrites.\n */\nexport function updateRecipient(payload: object): RequestOptionsFactory<any> {\n function __updateRecipient({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'recipient.createdDate' },\n { path: 'recipient.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.restaurants.recipient.v1.recipient',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.restaurants.recipient.v1.NotificationRecipientsService.UpdateRecipient',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsRecipientV1NotificationRecipientsServiceUrl({\n protoPath: '/v1/recipients/{recipient.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'recipient.createdDate' },\n { path: 'recipient.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateRecipient;\n}\n\n/** Deletes a recipient. */\nexport function deleteRecipient(payload: object): RequestOptionsFactory<any> {\n function __deleteRecipient({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.recipient.v1.recipient',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.restaurants.recipient.v1.NotificationRecipientsService.DeleteRecipient',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsRecipientV1NotificationRecipientsServiceUrl({\n protoPath: '/v1/recipients/{recipientId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteRecipient;\n}\n\n/**\n * Retrieves a list of recipients with optional filtering, sorting, and paging.\n *\n * Up to 100 recipients can be returned per request.\n *\n * For a detailed list of supported operations, see the [Supported Filters and Sorting](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/wix-restaurants-new/online-orders/notification-recipients/supported-filters-and-sorting) article.\n * To learn how to query notification recipients, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).\n *\n * Supported properties for filtering and sorting:\n * `id`, `createdDate`, `updatedDate`, `channels`\n */\nexport function queryRecipients(payload: object): RequestOptionsFactory<any> {\n function __queryRecipients({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.recipient.v1.recipient',\n method: 'GET' as any,\n methodFqn:\n 'wix.restaurants.recipient.v1.NotificationRecipientsService.QueryRecipients',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsRecipientV1NotificationRecipientsServiceUrl({\n protoPath: '/v1/recipients/query',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'recipients.createdDate' },\n { path: 'recipients.updatedDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixRestaurantsRecipientV1NotificationRecipientsServiceUrl(\n { protoPath: '/v1/recipients/query', data: payload, host }\n ),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryRecipients;\n}\n\n/**\n * Updates tags on multiple recipients by recipient IDs.\n *\n * This is a synchronous operation that updates up to 100 recipients at once.\n * If a tag appears in both assign and unassign lists, it will be assigned.\n */\nexport function bulkUpdateRecipientTags(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateRecipientTags({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.recipient.v1.recipient',\n method: 'POST' as any,\n methodFqn:\n 'wix.restaurants.recipient.v1.NotificationRecipientsService.BulkUpdateRecipientTags',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsRecipientV1NotificationRecipientsServiceUrl({\n protoPath: '/v1/bulk/recipients/update-tags',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateRecipientTags;\n}\n\n/**\n * Updates tags on multiple recipients using filter criteria.\n *\n * This is an asynchronous operation that returns a job ID for tracking progress.\n * An empty filter will update all recipients. If a tag appears in both assign and unassign lists, it will be assigned.\n */\nexport function bulkUpdateRecipientTagsByFilter(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateRecipientTagsByFilter({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.recipient.v1.recipient',\n method: 'POST' as any,\n methodFqn:\n 'wix.restaurants.recipient.v1.NotificationRecipientsService.BulkUpdateRecipientTagsByFilter',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsRecipientV1NotificationRecipientsServiceUrl({\n protoPath: '/v1/bulk/recipients/update-tags-by-filter',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateRecipientTagsByFilter;\n}\n","export interface Recipient {\n /**\n * Recipient ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Revision number, which increments by 1 each time the Recipient is updated.\n * To prevent conflicting changes,\n * the current revision must be passed when updating the Recipient.\n *\n * Ignored when creating a Recipient.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the Recipient was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the Recipient was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * Recipient's phone number for receiving notifications.\n * @format PHONE\n */\n phone?: string;\n /**\n * IDs of the business locations this recipient should receive order creation notifications for.\n *\n * If this list is empty the recipient receives notifications for orders created at all locations.\n * @maxSize 100\n * @format GUID\n */\n businessLocationIds?: string[];\n /**\n * Communication channels for sending notifications to the recipient.\n *\n * At least 1 channel is required. Recipients can receive notifications\n * through multiple channels simultaneously.\n * @minSize 1\n * @maxSize 2\n */\n channels?: ChannelWithLiterals[];\n /**\n * Additional information about the recipient.\n *\n * Use this field to store notes about the recipient's role, availability,\n * or other relevant details for notification management.\n * @maxLength 500\n */\n note?: string | null;\n /** Additional custom fields for the recipient. */\n extendedFields?: ExtendedFields;\n /**\n * Tags for categorizing and organizing recipients.\n *\n * Use tags to group recipients by role (manager, kitchen staff), shift (morning, evening), or other criteria for targeted notifications.\n */\n tags?: Tags;\n}\n\nexport enum Channel {\n UNKNOWN_CHANNEL = 'UNKNOWN_CHANNEL',\n /** Send notifications via SMS text messages. */\n SMS = 'SMS',\n /** Send notifications via phone calls. */\n PHONE = 'PHONE',\n}\n\n/** @enumType */\nexport type ChannelWithLiterals = Channel | 'UNKNOWN_CHANNEL' | 'SMS' | 'PHONE';\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\n/**\n * Common object for tags.\n * Should be use as in this example:\n * message Foo {\n * option (.wix.api.decomposite_of) = \"wix.commons.v2.tags.Foo\";\n * string id = 1;\n * ...\n * Tags tags = 5\n * }\n *\n * example of taggable entity\n * {\n * id: \"123\"\n * tags: {\n * public_tags: {\n * tag_ids:[\"11\",\"22\"]\n * },\n * private_tags: {\n * tag_ids: [\"33\", \"44\"]\n * }\n * }\n * }\n */\nexport interface Tags {\n /** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */\n privateTags?: TagList;\n /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */\n publicTags?: TagList;\n}\n\nexport interface TagList {\n /**\n * List of tag IDs.\n * @maxSize 100\n * @maxLength 5\n */\n tagIds?: string[];\n}\n\nexport interface CreateRecipientRequest {\n /** Recipient to create. */\n recipient: Recipient;\n}\n\nexport interface CreateRecipientResponse {\n /** Created recipient. */\n recipient?: Recipient;\n}\n\nexport interface GetRecipientRequest {\n /**\n * ID of the recipient to retrieve.\n * @format GUID\n */\n recipientId: string;\n}\n\nexport interface GetRecipientResponse {\n /** Retrieved recipient. */\n recipient?: Recipient;\n}\n\nexport interface UpdateRecipientRequest {\n /** Recipient to update. May be partial. */\n recipient: Recipient;\n}\n\nexport interface UpdateRecipientResponse {\n /** Updated recipient. */\n recipient?: Recipient;\n}\n\nexport interface DeleteRecipientRequest {\n /**\n * ID of the recipient to delete.\n * @format GUID\n */\n recipientId: string;\n}\n\nexport interface DeleteRecipientResponse {}\n\nexport interface QueryRecipientsRequest {\n /** WQL expression. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryRecipientsResponse {\n /** Retrieved recipients. */\n recipients?: Recipient[];\n /** Paging metadata for the query results. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface BulkUpdateRecipientTagsRequest {\n /**\n * IDs of recipients to update tags for.\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n recipientIds: string[];\n /** List of Tags to assign. */\n assignTags?: Tags;\n /** List of Tags to unassign. */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateRecipientTagsResponse {\n /**\n * Results of the bulk update operation.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateRecipientTagsResult[];\n /** Metadata regarding the bulk update operation. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface ItemMetadata {\n /**\n * Item ID. Provided only whenever possible. For example, `itemId` can't be provided when item creation has failed.\n * @format GUID\n */\n id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action for this item was successful. When `false`, the `error` field is returned. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkUpdateRecipientTagsResult {\n /** Metadata regarding the specific single update operation. */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface BulkUpdateRecipientTagsByFilterRequest {\n /** Filter. */\n filter: Record<string, any> | null;\n /** List of Tags to assign. */\n assignTags?: Tags;\n /** List of Tags to unassign. */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateRecipientTagsByFilterResponse {\n /**\n * Job ID.\n * @format GUID\n */\n jobId?: string;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n/** @docsIgnore */\nexport type BulkUpdateRecipientTagsApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type BulkUpdateRecipientTagsByFilterApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n","import * as ambassadorWixRestaurantsRecipientV1Recipient from './restaurants-recipient-v1-recipient-recipients.http.js';\nimport * as ambassadorWixRestaurantsRecipientV1RecipientTypes from './restaurants-recipient-v1-recipient-recipients.types.js';\nimport * as ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes from './restaurants-recipient-v1-recipient-recipients.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createRecipient(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.CreateRecipientRequest,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.CreateRecipientRequest,\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.CreateRecipientResponse,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.CreateRecipientResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixRestaurantsRecipientV1Recipient.createRecipient(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/recipients',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getRecipient(): __PublicMethodMetaInfo<\n 'GET',\n { recipientId: string },\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.GetRecipientRequest,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.GetRecipientRequest,\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.GetRecipientResponse,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.GetRecipientResponse\n> {\n const payload = { recipientId: ':recipientId' } as any;\n\n const getRequestOptions =\n ambassadorWixRestaurantsRecipientV1Recipient.getRecipient(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/recipients/{recipientId}',\n pathParams: { recipientId: 'recipientId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateRecipient(): __PublicMethodMetaInfo<\n 'PATCH',\n { recipientId: string },\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.UpdateRecipientRequest,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.UpdateRecipientRequest,\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.UpdateRecipientResponse,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.UpdateRecipientResponse\n> {\n const payload = { recipient: { id: ':recipientId' } } as any;\n\n const getRequestOptions =\n ambassadorWixRestaurantsRecipientV1Recipient.updateRecipient(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/recipients/{recipient.id}',\n pathParams: { recipientId: 'recipientId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteRecipient(): __PublicMethodMetaInfo<\n 'DELETE',\n { recipientId: string },\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.DeleteRecipientRequest,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.DeleteRecipientRequest,\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.DeleteRecipientResponse,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.DeleteRecipientResponse\n> {\n const payload = { recipientId: ':recipientId' } as any;\n\n const getRequestOptions =\n ambassadorWixRestaurantsRecipientV1Recipient.deleteRecipient(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/recipients/{recipientId}',\n pathParams: { recipientId: 'recipientId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryRecipients(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.QueryRecipientsRequest,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.QueryRecipientsRequest,\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.QueryRecipientsResponse,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.QueryRecipientsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixRestaurantsRecipientV1Recipient.queryRecipients(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/recipients/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUpdateRecipientTags(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.BulkUpdateRecipientTagsRequest,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.BulkUpdateRecipientTagsRequest,\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.BulkUpdateRecipientTagsResponse,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.BulkUpdateRecipientTagsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixRestaurantsRecipientV1Recipient.bulkUpdateRecipientTags(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/recipients/update-tags',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUpdateRecipientTagsByFilter(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.BulkUpdateRecipientTagsByFilterRequest,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.BulkUpdateRecipientTagsByFilterRequest,\n ambassadorWixRestaurantsRecipientV1RecipientUniversalTypes.BulkUpdateRecipientTagsByFilterResponse,\n ambassadorWixRestaurantsRecipientV1RecipientTypes.BulkUpdateRecipientTagsByFilterResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixRestaurantsRecipientV1Recipient.bulkUpdateRecipientTagsByFilter(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/recipients/update-tags-by-filter',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n Recipient as RecipientOriginal,\n Channel as ChannelOriginal,\n ChannelWithLiterals as ChannelWithLiteralsOriginal,\n ExtendedFields as ExtendedFieldsOriginal,\n Tags as TagsOriginal,\n TagList as TagListOriginal,\n CreateRecipientRequest as CreateRecipientRequestOriginal,\n CreateRecipientResponse as CreateRecipientResponseOriginal,\n GetRecipientRequest as GetRecipientRequestOriginal,\n GetRecipientResponse as GetRecipientResponseOriginal,\n UpdateRecipientRequest as UpdateRecipientRequestOriginal,\n UpdateRecipientResponse as UpdateRecipientResponseOriginal,\n DeleteRecipientRequest as DeleteRecipientRequestOriginal,\n DeleteRecipientResponse as DeleteRecipientResponseOriginal,\n QueryRecipientsRequest as QueryRecipientsRequestOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryRecipientsResponse as QueryRecipientsResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n BulkUpdateRecipientTagsRequest as BulkUpdateRecipientTagsRequestOriginal,\n BulkUpdateRecipientTagsResponse as BulkUpdateRecipientTagsResponseOriginal,\n ItemMetadata as ItemMetadataOriginal,\n ApplicationError as ApplicationErrorOriginal,\n BulkUpdateRecipientTagsResult as BulkUpdateRecipientTagsResultOriginal,\n BulkActionMetadata as BulkActionMetadataOriginal,\n BulkUpdateRecipientTagsByFilterRequest as BulkUpdateRecipientTagsByFilterRequestOriginal,\n BulkUpdateRecipientTagsByFilterResponse as BulkUpdateRecipientTagsByFilterResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n BulkUpdateRecipientTagsApplicationErrors as BulkUpdateRecipientTagsApplicationErrorsOriginal,\n BulkUpdateRecipientTagsByFilterApplicationErrors as BulkUpdateRecipientTagsByFilterApplicationErrorsOriginal,\n} from './restaurants-recipient-v1-recipient-recipients.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iCAAAA;AAAA,EAAA,uCAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,uBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,iEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;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IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,mBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACyC,gBAAgB,OAAO;AAEtE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,2BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACyC;AAAA,IAC3C;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,mCAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACyC;AAAA,IAC3C;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["bulkUpdateRecipientTags","bulkUpdateRecipientTagsByFilter","createRecipient","deleteRecipient","getRecipient","queryRecipients","updateRecipient","import_timestamp","import_rest_modules","payload","Channel","SortOrder","WebhookIdentityType","createRecipient","getRecipient","updateRecipient","deleteRecipient","queryRecipients","bulkUpdateRecipientTags","bulkUpdateRecipientTagsByFilter"]}
|
package/build/es/meta.d.mts
CHANGED
|
@@ -325,6 +325,154 @@ interface BulkUpdateRecipientTagsByFilterResponse {
|
|
|
325
325
|
*/
|
|
326
326
|
jobId?: string;
|
|
327
327
|
}
|
|
328
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
329
|
+
createdEvent?: EntityCreatedEvent;
|
|
330
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
331
|
+
deletedEvent?: EntityDeletedEvent;
|
|
332
|
+
actionEvent?: ActionEvent;
|
|
333
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
334
|
+
id?: string;
|
|
335
|
+
/**
|
|
336
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
337
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
338
|
+
*/
|
|
339
|
+
entityFqdn?: string;
|
|
340
|
+
/**
|
|
341
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
342
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
343
|
+
*/
|
|
344
|
+
slug?: string;
|
|
345
|
+
/** ID of the entity associated with the event. */
|
|
346
|
+
entityId?: string;
|
|
347
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
348
|
+
eventTime?: Date | null;
|
|
349
|
+
/**
|
|
350
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
351
|
+
* (for example, GDPR).
|
|
352
|
+
*/
|
|
353
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
354
|
+
/** If present, indicates the action that triggered the event. */
|
|
355
|
+
originatedFrom?: string | null;
|
|
356
|
+
/**
|
|
357
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
358
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
359
|
+
*/
|
|
360
|
+
entityEventSequence?: string | null;
|
|
361
|
+
}
|
|
362
|
+
/** @oneof */
|
|
363
|
+
interface DomainEventBodyOneOf {
|
|
364
|
+
createdEvent?: EntityCreatedEvent;
|
|
365
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
366
|
+
deletedEvent?: EntityDeletedEvent;
|
|
367
|
+
actionEvent?: ActionEvent;
|
|
368
|
+
}
|
|
369
|
+
interface EntityCreatedEvent {
|
|
370
|
+
entityAsJson?: string;
|
|
371
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
372
|
+
restoreInfo?: RestoreInfo;
|
|
373
|
+
}
|
|
374
|
+
interface RestoreInfo {
|
|
375
|
+
deletedDate?: Date | null;
|
|
376
|
+
}
|
|
377
|
+
interface EntityUpdatedEvent {
|
|
378
|
+
/**
|
|
379
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
380
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
381
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
382
|
+
*/
|
|
383
|
+
currentEntityAsJson?: string;
|
|
384
|
+
}
|
|
385
|
+
interface EntityDeletedEvent {
|
|
386
|
+
/** Entity that was deleted. */
|
|
387
|
+
deletedEntityAsJson?: string | null;
|
|
388
|
+
}
|
|
389
|
+
interface ActionEvent {
|
|
390
|
+
bodyAsJson?: string;
|
|
391
|
+
}
|
|
392
|
+
interface MessageEnvelope {
|
|
393
|
+
/**
|
|
394
|
+
* App instance ID.
|
|
395
|
+
* @format GUID
|
|
396
|
+
*/
|
|
397
|
+
instanceId?: string | null;
|
|
398
|
+
/**
|
|
399
|
+
* Event type.
|
|
400
|
+
* @maxLength 150
|
|
401
|
+
*/
|
|
402
|
+
eventType?: string;
|
|
403
|
+
/** The identification type and identity data. */
|
|
404
|
+
identity?: IdentificationData;
|
|
405
|
+
/** Stringify payload. */
|
|
406
|
+
data?: string;
|
|
407
|
+
}
|
|
408
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
409
|
+
/**
|
|
410
|
+
* ID of a site visitor that has not logged in to the site.
|
|
411
|
+
* @format GUID
|
|
412
|
+
*/
|
|
413
|
+
anonymousVisitorId?: string;
|
|
414
|
+
/**
|
|
415
|
+
* ID of a site visitor that has logged in to the site.
|
|
416
|
+
* @format GUID
|
|
417
|
+
*/
|
|
418
|
+
memberId?: string;
|
|
419
|
+
/**
|
|
420
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
421
|
+
* @format GUID
|
|
422
|
+
*/
|
|
423
|
+
wixUserId?: string;
|
|
424
|
+
/**
|
|
425
|
+
* ID of an app.
|
|
426
|
+
* @format GUID
|
|
427
|
+
*/
|
|
428
|
+
appId?: string;
|
|
429
|
+
/** @readonly */
|
|
430
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
431
|
+
}
|
|
432
|
+
/** @oneof */
|
|
433
|
+
interface IdentificationDataIdOneOf {
|
|
434
|
+
/**
|
|
435
|
+
* ID of a site visitor that has not logged in to the site.
|
|
436
|
+
* @format GUID
|
|
437
|
+
*/
|
|
438
|
+
anonymousVisitorId?: string;
|
|
439
|
+
/**
|
|
440
|
+
* ID of a site visitor that has logged in to the site.
|
|
441
|
+
* @format GUID
|
|
442
|
+
*/
|
|
443
|
+
memberId?: string;
|
|
444
|
+
/**
|
|
445
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
446
|
+
* @format GUID
|
|
447
|
+
*/
|
|
448
|
+
wixUserId?: string;
|
|
449
|
+
/**
|
|
450
|
+
* ID of an app.
|
|
451
|
+
* @format GUID
|
|
452
|
+
*/
|
|
453
|
+
appId?: string;
|
|
454
|
+
}
|
|
455
|
+
declare enum WebhookIdentityType {
|
|
456
|
+
UNKNOWN = "UNKNOWN",
|
|
457
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
458
|
+
MEMBER = "MEMBER",
|
|
459
|
+
WIX_USER = "WIX_USER",
|
|
460
|
+
APP = "APP"
|
|
461
|
+
}
|
|
462
|
+
/** @enumType */
|
|
463
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
464
|
+
/** @docsIgnore */
|
|
465
|
+
type BulkUpdateRecipientTagsApplicationErrors = {
|
|
466
|
+
code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
|
|
467
|
+
description?: string;
|
|
468
|
+
data?: Record<string, any>;
|
|
469
|
+
};
|
|
470
|
+
/** @docsIgnore */
|
|
471
|
+
type BulkUpdateRecipientTagsByFilterApplicationErrors = {
|
|
472
|
+
code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
|
|
473
|
+
description?: string;
|
|
474
|
+
data?: Record<string, any>;
|
|
475
|
+
};
|
|
328
476
|
|
|
329
477
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
330
478
|
getUrl: (context: any) => string;
|
|
@@ -350,4 +498,4 @@ declare function queryRecipients(): __PublicMethodMetaInfo<'GET', {}, QueryRecip
|
|
|
350
498
|
declare function bulkUpdateRecipientTags(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateRecipientTagsRequest$1, BulkUpdateRecipientTagsRequest, BulkUpdateRecipientTagsResponse$1, BulkUpdateRecipientTagsResponse>;
|
|
351
499
|
declare function bulkUpdateRecipientTagsByFilter(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateRecipientTagsByFilterRequest$1, BulkUpdateRecipientTagsByFilterRequest, BulkUpdateRecipientTagsByFilterResponse$1, BulkUpdateRecipientTagsByFilterResponse>;
|
|
352
500
|
|
|
353
|
-
export { type __PublicMethodMetaInfo, bulkUpdateRecipientTags, bulkUpdateRecipientTagsByFilter, createRecipient, deleteRecipient, getRecipient, queryRecipients, updateRecipient };
|
|
501
|
+
export { type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkUpdateRecipientTagsApplicationErrors as BulkUpdateRecipientTagsApplicationErrorsOriginal, type BulkUpdateRecipientTagsByFilterApplicationErrors as BulkUpdateRecipientTagsByFilterApplicationErrorsOriginal, type BulkUpdateRecipientTagsByFilterRequest as BulkUpdateRecipientTagsByFilterRequestOriginal, type BulkUpdateRecipientTagsByFilterResponse as BulkUpdateRecipientTagsByFilterResponseOriginal, type BulkUpdateRecipientTagsRequest as BulkUpdateRecipientTagsRequestOriginal, type BulkUpdateRecipientTagsResponse as BulkUpdateRecipientTagsResponseOriginal, type BulkUpdateRecipientTagsResult as BulkUpdateRecipientTagsResultOriginal, Channel as ChannelOriginal, type ChannelWithLiterals as ChannelWithLiteralsOriginal, type CreateRecipientRequest as CreateRecipientRequestOriginal, type CreateRecipientResponse as CreateRecipientResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DeleteRecipientRequest as DeleteRecipientRequestOriginal, type DeleteRecipientResponse as DeleteRecipientResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type GetRecipientRequest as GetRecipientRequestOriginal, type GetRecipientResponse as GetRecipientResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ItemMetadata as ItemMetadataOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type QueryRecipientsRequest as QueryRecipientsRequestOriginal, type QueryRecipientsResponse as QueryRecipientsResponseOriginal, type Recipient as RecipientOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type TagList as TagListOriginal, type Tags as TagsOriginal, type UpdateRecipientRequest as UpdateRecipientRequestOriginal, type UpdateRecipientResponse as UpdateRecipientResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkUpdateRecipientTags, bulkUpdateRecipientTagsByFilter, createRecipient, deleteRecipient, getRecipient, queryRecipients, updateRecipient };
|
package/build/es/meta.mjs
CHANGED
|
@@ -260,6 +260,27 @@ function bulkUpdateRecipientTagsByFilter(payload) {
|
|
|
260
260
|
return __bulkUpdateRecipientTagsByFilter;
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
+
// src/restaurants-recipient-v1-recipient-recipients.types.ts
|
|
264
|
+
var Channel = /* @__PURE__ */ ((Channel2) => {
|
|
265
|
+
Channel2["UNKNOWN_CHANNEL"] = "UNKNOWN_CHANNEL";
|
|
266
|
+
Channel2["SMS"] = "SMS";
|
|
267
|
+
Channel2["PHONE"] = "PHONE";
|
|
268
|
+
return Channel2;
|
|
269
|
+
})(Channel || {});
|
|
270
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
271
|
+
SortOrder2["ASC"] = "ASC";
|
|
272
|
+
SortOrder2["DESC"] = "DESC";
|
|
273
|
+
return SortOrder2;
|
|
274
|
+
})(SortOrder || {});
|
|
275
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
276
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
277
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
278
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
279
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
280
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
281
|
+
return WebhookIdentityType2;
|
|
282
|
+
})(WebhookIdentityType || {});
|
|
283
|
+
|
|
263
284
|
// src/restaurants-recipient-v1-recipient-recipients.meta.ts
|
|
264
285
|
function createRecipient2() {
|
|
265
286
|
const payload = {};
|
|
@@ -392,6 +413,9 @@ function bulkUpdateRecipientTagsByFilter2() {
|
|
|
392
413
|
};
|
|
393
414
|
}
|
|
394
415
|
export {
|
|
416
|
+
Channel as ChannelOriginal,
|
|
417
|
+
SortOrder as SortOrderOriginal,
|
|
418
|
+
WebhookIdentityType as WebhookIdentityTypeOriginal,
|
|
395
419
|
bulkUpdateRecipientTags2 as bulkUpdateRecipientTags,
|
|
396
420
|
bulkUpdateRecipientTagsByFilter2 as bulkUpdateRecipientTagsByFilter,
|
|
397
421
|
createRecipient2 as createRecipient,
|