@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,403 @@
1
+ // src/restaurants-recipient-v1-recipient-recipients.http.ts
2
+ import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
3
+ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
4
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
5
+ import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
6
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
7
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
8
+ function resolveWixRestaurantsRecipientV1NotificationRecipientsServiceUrl(opts) {
9
+ const domainToMappings = {
10
+ "manage._base_domain_": [
11
+ {
12
+ srcPath: "/_api/rest-notification-recipients",
13
+ destPath: ""
14
+ }
15
+ ],
16
+ "dev._base_domain_": [
17
+ {
18
+ srcPath: "/_api/rest-notification-recipients",
19
+ destPath: ""
20
+ }
21
+ ],
22
+ "www.wixapis.com": [
23
+ {
24
+ srcPath: "/rest-notification-recipients/v1",
25
+ destPath: "/v1"
26
+ },
27
+ {
28
+ srcPath: "/restaurants/recipient/v1/recipients",
29
+ destPath: "/v1/recipients"
30
+ }
31
+ ],
32
+ _: [
33
+ {
34
+ srcPath: "/_api/rest-notification-recipients",
35
+ destPath: ""
36
+ }
37
+ ],
38
+ "*.dev.wix-code.com": [
39
+ {
40
+ srcPath: "/_api/rest-notification-recipients",
41
+ destPath: ""
42
+ }
43
+ ]
44
+ };
45
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
46
+ }
47
+ var PACKAGE_NAME = "@wix/auto_sdk_restaurants_recipients";
48
+ function createRecipient(payload) {
49
+ function __createRecipient({ host }) {
50
+ const serializedData = transformPaths(payload, [
51
+ {
52
+ transformFn: transformSDKTimestampToRESTTimestamp,
53
+ paths: [
54
+ { path: "recipient.createdDate" },
55
+ { path: "recipient.updatedDate" }
56
+ ]
57
+ }
58
+ ]);
59
+ const metadata = {
60
+ entityFqdn: "wix.restaurants.recipient.v1.recipient",
61
+ method: "POST",
62
+ methodFqn: "wix.restaurants.recipient.v1.NotificationRecipientsService.CreateRecipient",
63
+ packageName: PACKAGE_NAME,
64
+ migrationOptions: {
65
+ optInTransformResponse: true
66
+ },
67
+ url: resolveWixRestaurantsRecipientV1NotificationRecipientsServiceUrl({
68
+ protoPath: "/v1/recipients",
69
+ data: serializedData,
70
+ host
71
+ }),
72
+ data: serializedData,
73
+ transformResponse: (payload2) => transformPaths(payload2, [
74
+ {
75
+ transformFn: transformRESTTimestampToSDKTimestamp,
76
+ paths: [
77
+ { path: "recipient.createdDate" },
78
+ { path: "recipient.updatedDate" }
79
+ ]
80
+ }
81
+ ])
82
+ };
83
+ return metadata;
84
+ }
85
+ return __createRecipient;
86
+ }
87
+ function getRecipient(payload) {
88
+ function __getRecipient({ host }) {
89
+ const metadata = {
90
+ entityFqdn: "wix.restaurants.recipient.v1.recipient",
91
+ method: "GET",
92
+ methodFqn: "wix.restaurants.recipient.v1.NotificationRecipientsService.GetRecipient",
93
+ packageName: PACKAGE_NAME,
94
+ migrationOptions: {
95
+ optInTransformResponse: true
96
+ },
97
+ url: resolveWixRestaurantsRecipientV1NotificationRecipientsServiceUrl({
98
+ protoPath: "/v1/recipients/{recipientId}",
99
+ data: payload,
100
+ host
101
+ }),
102
+ params: toURLSearchParams(payload),
103
+ transformResponse: (payload2) => transformPaths(payload2, [
104
+ {
105
+ transformFn: transformRESTTimestampToSDKTimestamp,
106
+ paths: [
107
+ { path: "recipient.createdDate" },
108
+ { path: "recipient.updatedDate" }
109
+ ]
110
+ }
111
+ ])
112
+ };
113
+ return metadata;
114
+ }
115
+ return __getRecipient;
116
+ }
117
+ function updateRecipient(payload) {
118
+ function __updateRecipient({ host }) {
119
+ const serializedData = transformPaths(payload, [
120
+ {
121
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
122
+ paths: [{ path: "fieldMask" }]
123
+ },
124
+ {
125
+ transformFn: transformSDKTimestampToRESTTimestamp,
126
+ paths: [
127
+ { path: "recipient.createdDate" },
128
+ { path: "recipient.updatedDate" }
129
+ ]
130
+ }
131
+ ]);
132
+ const metadata = {
133
+ entityFqdn: "wix.restaurants.recipient.v1.recipient",
134
+ method: "PATCH",
135
+ methodFqn: "wix.restaurants.recipient.v1.NotificationRecipientsService.UpdateRecipient",
136
+ packageName: PACKAGE_NAME,
137
+ migrationOptions: {
138
+ optInTransformResponse: true
139
+ },
140
+ url: resolveWixRestaurantsRecipientV1NotificationRecipientsServiceUrl({
141
+ protoPath: "/v1/recipients/{recipient.id}",
142
+ data: serializedData,
143
+ host
144
+ }),
145
+ data: serializedData,
146
+ transformResponse: (payload2) => transformPaths(payload2, [
147
+ {
148
+ transformFn: transformRESTTimestampToSDKTimestamp,
149
+ paths: [
150
+ { path: "recipient.createdDate" },
151
+ { path: "recipient.updatedDate" }
152
+ ]
153
+ }
154
+ ])
155
+ };
156
+ return metadata;
157
+ }
158
+ return __updateRecipient;
159
+ }
160
+ function deleteRecipient(payload) {
161
+ function __deleteRecipient({ host }) {
162
+ const metadata = {
163
+ entityFqdn: "wix.restaurants.recipient.v1.recipient",
164
+ method: "DELETE",
165
+ methodFqn: "wix.restaurants.recipient.v1.NotificationRecipientsService.DeleteRecipient",
166
+ packageName: PACKAGE_NAME,
167
+ migrationOptions: {
168
+ optInTransformResponse: true
169
+ },
170
+ url: resolveWixRestaurantsRecipientV1NotificationRecipientsServiceUrl({
171
+ protoPath: "/v1/recipients/{recipientId}",
172
+ data: payload,
173
+ host
174
+ }),
175
+ params: toURLSearchParams(payload)
176
+ };
177
+ return metadata;
178
+ }
179
+ return __deleteRecipient;
180
+ }
181
+ function queryRecipients(payload) {
182
+ function __queryRecipients({ host }) {
183
+ const metadata = {
184
+ entityFqdn: "wix.restaurants.recipient.v1.recipient",
185
+ method: "GET",
186
+ methodFqn: "wix.restaurants.recipient.v1.NotificationRecipientsService.QueryRecipients",
187
+ packageName: PACKAGE_NAME,
188
+ migrationOptions: {
189
+ optInTransformResponse: true
190
+ },
191
+ url: resolveWixRestaurantsRecipientV1NotificationRecipientsServiceUrl({
192
+ protoPath: "/v1/recipients/query",
193
+ data: payload,
194
+ host
195
+ }),
196
+ params: toURLSearchParams(payload, true),
197
+ transformResponse: (payload2) => transformPaths(payload2, [
198
+ {
199
+ transformFn: transformRESTTimestampToSDKTimestamp,
200
+ paths: [
201
+ { path: "recipients.createdDate" },
202
+ { path: "recipients.updatedDate" }
203
+ ]
204
+ }
205
+ ]),
206
+ fallback: [
207
+ {
208
+ method: "POST",
209
+ url: resolveWixRestaurantsRecipientV1NotificationRecipientsServiceUrl(
210
+ { protoPath: "/v1/recipients/query", data: payload, host }
211
+ ),
212
+ data: payload
213
+ }
214
+ ]
215
+ };
216
+ return metadata;
217
+ }
218
+ return __queryRecipients;
219
+ }
220
+ function bulkUpdateRecipientTags(payload) {
221
+ function __bulkUpdateRecipientTags({ host }) {
222
+ const metadata = {
223
+ entityFqdn: "wix.restaurants.recipient.v1.recipient",
224
+ method: "POST",
225
+ methodFqn: "wix.restaurants.recipient.v1.NotificationRecipientsService.BulkUpdateRecipientTags",
226
+ packageName: PACKAGE_NAME,
227
+ migrationOptions: {
228
+ optInTransformResponse: true
229
+ },
230
+ url: resolveWixRestaurantsRecipientV1NotificationRecipientsServiceUrl({
231
+ protoPath: "/v1/bulk/recipients/update-tags",
232
+ data: payload,
233
+ host
234
+ }),
235
+ data: payload
236
+ };
237
+ return metadata;
238
+ }
239
+ return __bulkUpdateRecipientTags;
240
+ }
241
+ function bulkUpdateRecipientTagsByFilter(payload) {
242
+ function __bulkUpdateRecipientTagsByFilter({ host }) {
243
+ const metadata = {
244
+ entityFqdn: "wix.restaurants.recipient.v1.recipient",
245
+ method: "POST",
246
+ methodFqn: "wix.restaurants.recipient.v1.NotificationRecipientsService.BulkUpdateRecipientTagsByFilter",
247
+ packageName: PACKAGE_NAME,
248
+ migrationOptions: {
249
+ optInTransformResponse: true
250
+ },
251
+ url: resolveWixRestaurantsRecipientV1NotificationRecipientsServiceUrl({
252
+ protoPath: "/v1/bulk/recipients/update-tags-by-filter",
253
+ data: payload,
254
+ host
255
+ }),
256
+ data: payload
257
+ };
258
+ return metadata;
259
+ }
260
+ return __bulkUpdateRecipientTagsByFilter;
261
+ }
262
+
263
+ // src/restaurants-recipient-v1-recipient-recipients.meta.ts
264
+ function createRecipient2() {
265
+ const payload = {};
266
+ const getRequestOptions = createRecipient(payload);
267
+ const getUrl = (context) => {
268
+ const { url } = getRequestOptions(context);
269
+ return url;
270
+ };
271
+ return {
272
+ getUrl,
273
+ httpMethod: "POST",
274
+ path: "/v1/recipients",
275
+ pathParams: {},
276
+ __requestType: null,
277
+ __originalRequestType: null,
278
+ __responseType: null,
279
+ __originalResponseType: null
280
+ };
281
+ }
282
+ function getRecipient2() {
283
+ const payload = { recipientId: ":recipientId" };
284
+ const getRequestOptions = getRecipient(payload);
285
+ const getUrl = (context) => {
286
+ const { url } = getRequestOptions(context);
287
+ return url;
288
+ };
289
+ return {
290
+ getUrl,
291
+ httpMethod: "GET",
292
+ path: "/v1/recipients/{recipientId}",
293
+ pathParams: { recipientId: "recipientId" },
294
+ __requestType: null,
295
+ __originalRequestType: null,
296
+ __responseType: null,
297
+ __originalResponseType: null
298
+ };
299
+ }
300
+ function updateRecipient2() {
301
+ const payload = { recipient: { id: ":recipientId" } };
302
+ const getRequestOptions = updateRecipient(payload);
303
+ const getUrl = (context) => {
304
+ const { url } = getRequestOptions(context);
305
+ return url;
306
+ };
307
+ return {
308
+ getUrl,
309
+ httpMethod: "PATCH",
310
+ path: "/v1/recipients/{recipient.id}",
311
+ pathParams: { recipientId: "recipientId" },
312
+ __requestType: null,
313
+ __originalRequestType: null,
314
+ __responseType: null,
315
+ __originalResponseType: null
316
+ };
317
+ }
318
+ function deleteRecipient2() {
319
+ const payload = { recipientId: ":recipientId" };
320
+ const getRequestOptions = deleteRecipient(payload);
321
+ const getUrl = (context) => {
322
+ const { url } = getRequestOptions(context);
323
+ return url;
324
+ };
325
+ return {
326
+ getUrl,
327
+ httpMethod: "DELETE",
328
+ path: "/v1/recipients/{recipientId}",
329
+ pathParams: { recipientId: "recipientId" },
330
+ __requestType: null,
331
+ __originalRequestType: null,
332
+ __responseType: null,
333
+ __originalResponseType: null
334
+ };
335
+ }
336
+ function queryRecipients2() {
337
+ const payload = {};
338
+ const getRequestOptions = queryRecipients(payload);
339
+ const getUrl = (context) => {
340
+ const { url } = getRequestOptions(context);
341
+ return url;
342
+ };
343
+ return {
344
+ getUrl,
345
+ httpMethod: "GET",
346
+ path: "/v1/recipients/query",
347
+ pathParams: {},
348
+ __requestType: null,
349
+ __originalRequestType: null,
350
+ __responseType: null,
351
+ __originalResponseType: null
352
+ };
353
+ }
354
+ function bulkUpdateRecipientTags2() {
355
+ const payload = {};
356
+ const getRequestOptions = bulkUpdateRecipientTags(
357
+ payload
358
+ );
359
+ const getUrl = (context) => {
360
+ const { url } = getRequestOptions(context);
361
+ return url;
362
+ };
363
+ return {
364
+ getUrl,
365
+ httpMethod: "POST",
366
+ path: "/v1/bulk/recipients/update-tags",
367
+ pathParams: {},
368
+ __requestType: null,
369
+ __originalRequestType: null,
370
+ __responseType: null,
371
+ __originalResponseType: null
372
+ };
373
+ }
374
+ function bulkUpdateRecipientTagsByFilter2() {
375
+ const payload = {};
376
+ const getRequestOptions = bulkUpdateRecipientTagsByFilter(
377
+ payload
378
+ );
379
+ const getUrl = (context) => {
380
+ const { url } = getRequestOptions(context);
381
+ return url;
382
+ };
383
+ return {
384
+ getUrl,
385
+ httpMethod: "POST",
386
+ path: "/v1/bulk/recipients/update-tags-by-filter",
387
+ pathParams: {},
388
+ __requestType: null,
389
+ __originalRequestType: null,
390
+ __responseType: null,
391
+ __originalResponseType: null
392
+ };
393
+ }
394
+ export {
395
+ bulkUpdateRecipientTags2 as bulkUpdateRecipientTags,
396
+ bulkUpdateRecipientTagsByFilter2 as bulkUpdateRecipientTagsByFilter,
397
+ createRecipient2 as createRecipient,
398
+ deleteRecipient2 as deleteRecipient,
399
+ getRecipient2 as getRecipient,
400
+ queryRecipients2 as queryRecipients,
401
+ updateRecipient2 as updateRecipient
402
+ };
403
+ //# sourceMappingURL=meta.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/restaurants-recipient-v1-recipient-recipients.http.ts","../../src/restaurants-recipient-v1-recipient-recipients.meta.ts"],"sourcesContent":["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,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,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B,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":["payload","createRecipient","getRecipient","updateRecipient","deleteRecipient","queryRecipients","bulkUpdateRecipientTags","bulkUpdateRecipientTagsByFilter"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -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 };