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