@wix/auto_sdk_restaurants_recipients 1.0.0

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.
Files changed (39) hide show
  1. package/build/cjs/index.d.ts +103 -0
  2. package/build/cjs/index.js +672 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +827 -0
  5. package/build/cjs/index.typings.js +545 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +357 -0
  8. package/build/cjs/meta.js +436 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/es/index.d.mts +103 -0
  11. package/build/es/index.mjs +636 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/es/index.typings.d.mts +827 -0
  14. package/build/es/index.typings.mjs +512 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/es/meta.d.mts +357 -0
  17. package/build/es/meta.mjs +403 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/es/package.json +3 -0
  20. package/build/internal/cjs/index.d.ts +103 -0
  21. package/build/internal/cjs/index.js +672 -0
  22. package/build/internal/cjs/index.js.map +1 -0
  23. package/build/internal/cjs/index.typings.d.ts +827 -0
  24. package/build/internal/cjs/index.typings.js +545 -0
  25. package/build/internal/cjs/index.typings.js.map +1 -0
  26. package/build/internal/cjs/meta.d.ts +357 -0
  27. package/build/internal/cjs/meta.js +436 -0
  28. package/build/internal/cjs/meta.js.map +1 -0
  29. package/build/internal/es/index.d.mts +103 -0
  30. package/build/internal/es/index.mjs +636 -0
  31. package/build/internal/es/index.mjs.map +1 -0
  32. package/build/internal/es/index.typings.d.mts +827 -0
  33. package/build/internal/es/index.typings.mjs +512 -0
  34. package/build/internal/es/index.typings.mjs.map +1 -0
  35. package/build/internal/es/meta.d.mts +357 -0
  36. package/build/internal/es/meta.mjs +403 -0
  37. package/build/internal/es/meta.mjs.map +1 -0
  38. package/meta/package.json +3 -0
  39. package/package.json +54 -0
@@ -0,0 +1,103 @@
1
+ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { Recipient, UpdateRecipient, RecipientsQueryBuilder, BulkUpdateRecipientTagsOptions, BulkUpdateRecipientTagsResponse, BulkUpdateRecipientTagsApplicationErrors, BulkUpdateRecipientTagsByFilterOptions, BulkUpdateRecipientTagsByFilterResponse, BulkUpdateRecipientTagsByFilterApplicationErrors, RecipientCreatedEnvelope, RecipientDeletedEnvelope, RecipientUpdatedEnvelope } from './index.typings.js';
3
+ export { ActionEvent, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkUpdateRecipientTagsByFilterRequest, BulkUpdateRecipientTagsRequest, BulkUpdateRecipientTagsResult, Channel, ChannelWithLiterals, CreateRecipientRequest, CreateRecipientResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteRecipientRequest, DeleteRecipientResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetRecipientRequest, GetRecipientResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MessageEnvelope, QueryRecipientsRequest, QueryRecipientsResponse, RecipientsQueryResult, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, TagList, Tags, UpdateRecipientRequest, UpdateRecipientResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
4
+
5
+ declare function createRecipient$1(httpClient: HttpClient): CreateRecipientSignature;
6
+ interface CreateRecipientSignature {
7
+ /**
8
+ * Creates a recipient.
9
+ * @param - Recipient to create.
10
+ * @returns Created recipient.
11
+ */
12
+ (recipient: NonNullablePaths<Recipient, `channels`, 2>): Promise<NonNullablePaths<Recipient, `phone` | `businessLocationIds` | `channels` | `tags.privateTags.tagIds`, 4>>;
13
+ }
14
+ declare function getRecipient$1(httpClient: HttpClient): GetRecipientSignature;
15
+ interface GetRecipientSignature {
16
+ /**
17
+ * Retrieves a recipient by ID.
18
+ * @param - ID of the recipient to retrieve.
19
+ * @returns Retrieved recipient.
20
+ */
21
+ (recipientId: string): Promise<NonNullablePaths<Recipient, `phone` | `businessLocationIds` | `channels` | `tags.privateTags.tagIds`, 4>>;
22
+ }
23
+ declare function updateRecipient$1(httpClient: HttpClient): UpdateRecipientSignature;
24
+ interface UpdateRecipientSignature {
25
+ /**
26
+ * Updates a recipient's information.
27
+ *
28
+ * Each time the recipient is updated, `revision` increments by 1.
29
+ * The current `revision` must be passed when updating the recipient.
30
+ * This ensures you're working with the latest recipient and prevents unintended overwrites.
31
+ * @param - Recipient ID.
32
+ * @returns Updated recipient.
33
+ */
34
+ (_id: string, recipient: NonNullablePaths<UpdateRecipient, `revision`, 2>): Promise<NonNullablePaths<Recipient, `phone` | `businessLocationIds` | `channels` | `tags.privateTags.tagIds`, 4>>;
35
+ }
36
+ declare function deleteRecipient$1(httpClient: HttpClient): DeleteRecipientSignature;
37
+ interface DeleteRecipientSignature {
38
+ /**
39
+ * Deletes a recipient.
40
+ * @param - ID of the recipient to delete.
41
+ */
42
+ (recipientId: string): Promise<void>;
43
+ }
44
+ declare function queryRecipients$1(httpClient: HttpClient): QueryRecipientsSignature;
45
+ interface QueryRecipientsSignature {
46
+ /**
47
+ * Retrieves a list of recipients with optional filtering, sorting, and paging.
48
+ *
49
+ * Up to 100 recipients can be returned per request.
50
+ *
51
+ * 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.
52
+ * To learn how to query notification recipients, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
53
+ *
54
+ * Supported properties for filtering and sorting:
55
+ * `id`, `createdDate`, `updatedDate`, `channels`
56
+ */
57
+ (): RecipientsQueryBuilder;
58
+ }
59
+ declare function bulkUpdateRecipientTags$1(httpClient: HttpClient): BulkUpdateRecipientTagsSignature;
60
+ interface BulkUpdateRecipientTagsSignature {
61
+ /**
62
+ * Updates tags on multiple recipients by recipient IDs.
63
+ *
64
+ * This is a synchronous operation that updates up to 100 recipients at once.
65
+ * If a tag appears in both assign and unassign lists, it will be assigned.
66
+ * @param - IDs of recipients to update tags for.
67
+ */
68
+ (recipientIds: string[], options?: BulkUpdateRecipientTagsOptions): Promise<NonNullablePaths<BulkUpdateRecipientTagsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6> & {
69
+ __applicationErrorsType?: BulkUpdateRecipientTagsApplicationErrors;
70
+ }>;
71
+ }
72
+ declare function bulkUpdateRecipientTagsByFilter$1(httpClient: HttpClient): BulkUpdateRecipientTagsByFilterSignature;
73
+ interface BulkUpdateRecipientTagsByFilterSignature {
74
+ /**
75
+ * Updates tags on multiple recipients using filter criteria.
76
+ *
77
+ * This is an asynchronous operation that returns a job ID for tracking progress.
78
+ * An empty filter will update all recipients. If a tag appears in both assign and unassign lists, it will be assigned.
79
+ * @param - Filter.
80
+ */
81
+ (filter: Record<string, any>, options?: BulkUpdateRecipientTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateRecipientTagsByFilterResponse, `jobId`, 2> & {
82
+ __applicationErrorsType?: BulkUpdateRecipientTagsByFilterApplicationErrors;
83
+ }>;
84
+ }
85
+ declare const onRecipientCreated$1: EventDefinition<RecipientCreatedEnvelope, "wix.restaurants.recipient.v1.recipient_created">;
86
+ declare const onRecipientDeleted$1: EventDefinition<RecipientDeletedEnvelope, "wix.restaurants.recipient.v1.recipient_deleted">;
87
+ declare const onRecipientUpdated$1: EventDefinition<RecipientUpdatedEnvelope, "wix.restaurants.recipient.v1.recipient_updated">;
88
+
89
+ declare const createRecipient: MaybeContext<BuildRESTFunction<typeof createRecipient$1> & typeof createRecipient$1>;
90
+ declare const getRecipient: MaybeContext<BuildRESTFunction<typeof getRecipient$1> & typeof getRecipient$1>;
91
+ declare const updateRecipient: MaybeContext<BuildRESTFunction<typeof updateRecipient$1> & typeof updateRecipient$1>;
92
+ declare const deleteRecipient: MaybeContext<BuildRESTFunction<typeof deleteRecipient$1> & typeof deleteRecipient$1>;
93
+ declare const queryRecipients: MaybeContext<BuildRESTFunction<typeof queryRecipients$1> & typeof queryRecipients$1>;
94
+ declare const bulkUpdateRecipientTags: MaybeContext<BuildRESTFunction<typeof bulkUpdateRecipientTags$1> & typeof bulkUpdateRecipientTags$1>;
95
+ declare const bulkUpdateRecipientTagsByFilter: MaybeContext<BuildRESTFunction<typeof bulkUpdateRecipientTagsByFilter$1> & typeof bulkUpdateRecipientTagsByFilter$1>;
96
+ /** */
97
+ declare const onRecipientCreated: BuildEventDefinition<typeof onRecipientCreated$1> & typeof onRecipientCreated$1;
98
+ /** */
99
+ declare const onRecipientDeleted: BuildEventDefinition<typeof onRecipientDeleted$1> & typeof onRecipientDeleted$1;
100
+ /** */
101
+ declare const onRecipientUpdated: BuildEventDefinition<typeof onRecipientUpdated$1> & typeof onRecipientUpdated$1;
102
+
103
+ export { BulkUpdateRecipientTagsApplicationErrors, BulkUpdateRecipientTagsByFilterApplicationErrors, BulkUpdateRecipientTagsByFilterOptions, BulkUpdateRecipientTagsByFilterResponse, BulkUpdateRecipientTagsOptions, BulkUpdateRecipientTagsResponse, Recipient, RecipientCreatedEnvelope, RecipientDeletedEnvelope, RecipientUpdatedEnvelope, RecipientsQueryBuilder, UpdateRecipient, bulkUpdateRecipientTags, bulkUpdateRecipientTagsByFilter, createRecipient, deleteRecipient, getRecipient, onRecipientCreated, onRecipientDeleted, onRecipientUpdated, queryRecipients, updateRecipient };