@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,357 @@
1
+ import { CreateRecipientRequest as CreateRecipientRequest$1, CreateRecipientResponse as CreateRecipientResponse$1, GetRecipientRequest as GetRecipientRequest$1, GetRecipientResponse as GetRecipientResponse$1, UpdateRecipientRequest as UpdateRecipientRequest$1, UpdateRecipientResponse as UpdateRecipientResponse$1, DeleteRecipientRequest as DeleteRecipientRequest$1, DeleteRecipientResponse as DeleteRecipientResponse$1, QueryRecipientsRequest as QueryRecipientsRequest$1, QueryRecipientsResponse as QueryRecipientsResponse$1, BulkUpdateRecipientTagsRequest as BulkUpdateRecipientTagsRequest$1, BulkUpdateRecipientTagsResponse as BulkUpdateRecipientTagsResponse$1, BulkUpdateRecipientTagsByFilterRequest as BulkUpdateRecipientTagsByFilterRequest$1, BulkUpdateRecipientTagsByFilterResponse as BulkUpdateRecipientTagsByFilterResponse$1 } from './index.typings.mjs';
2
+ import '@wix/sdk-types';
3
+
4
+ interface Recipient {
5
+ /**
6
+ * Recipient ID.
7
+ * @format GUID
8
+ * @readonly
9
+ */
10
+ id?: string | null;
11
+ /**
12
+ * Revision number, which increments by 1 each time the Recipient is updated.
13
+ * To prevent conflicting changes,
14
+ * the current revision must be passed when updating the Recipient.
15
+ *
16
+ * Ignored when creating a Recipient.
17
+ * @readonly
18
+ */
19
+ revision?: string | null;
20
+ /**
21
+ * Date and time the Recipient was created.
22
+ * @readonly
23
+ */
24
+ createdDate?: Date | null;
25
+ /**
26
+ * Date and time the Recipient was last updated.
27
+ * @readonly
28
+ */
29
+ updatedDate?: Date | null;
30
+ /**
31
+ * Recipient's phone number for receiving notifications.
32
+ * @format PHONE
33
+ */
34
+ phone?: string;
35
+ /**
36
+ * IDs of the business locations this recipient should receive order creation notifications for.
37
+ *
38
+ * If this list is empty the recipient receives notifications for orders created at all locations.
39
+ * @maxSize 100
40
+ * @format GUID
41
+ */
42
+ businessLocationIds?: string[];
43
+ /**
44
+ * Communication channels for sending notifications to the recipient.
45
+ *
46
+ * At least 1 channel is required. Recipients can receive notifications
47
+ * through multiple channels simultaneously.
48
+ * @minSize 1
49
+ * @maxSize 2
50
+ */
51
+ channels?: ChannelWithLiterals[];
52
+ /**
53
+ * Additional information about the recipient.
54
+ *
55
+ * Use this field to store notes about the recipient's role, availability,
56
+ * or other relevant details for notification management.
57
+ * @maxLength 500
58
+ */
59
+ note?: string | null;
60
+ /**
61
+ * Additional custom fields for the recipient.
62
+ *
63
+ * Learn more about [extended fields](https://dev.wix.com/docs/api-reference/business-solutions/wix-api/extended-fields).
64
+ */
65
+ extendedFields?: ExtendedFields;
66
+ /**
67
+ * Tags for categorizing and organizing recipients.
68
+ *
69
+ * Use tags to group recipients by role (manager, kitchen staff), shift (morning, evening), or other criteria for targeted notifications.
70
+ */
71
+ tags?: Tags;
72
+ }
73
+ declare enum Channel {
74
+ UNKNOWN_CHANNEL = "UNKNOWN_CHANNEL",
75
+ /** Send notifications via SMS text messages. */
76
+ SMS = "SMS",
77
+ /** Send notifications via phone calls. */
78
+ PHONE = "PHONE"
79
+ }
80
+ /** @enumType */
81
+ type ChannelWithLiterals = Channel | 'UNKNOWN_CHANNEL' | 'SMS' | 'PHONE';
82
+ interface ExtendedFields {
83
+ /**
84
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
85
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
86
+ *
87
+ * You can only access fields for which you have the appropriate permissions.
88
+ *
89
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
90
+ */
91
+ namespaces?: Record<string, Record<string, any>>;
92
+ }
93
+ /**
94
+ * Common object for tags.
95
+ * Should be use as in this example:
96
+ * message Foo {
97
+ * option (.wix.api.decomposite_of) = "wix.commons.v2.tags.Foo";
98
+ * string id = 1;
99
+ * ...
100
+ * Tags tags = 5
101
+ * }
102
+ *
103
+ * example of taggable entity
104
+ * {
105
+ * id: "123"
106
+ * tags: {
107
+ * public_tags: {
108
+ * tag_ids:["11","22"]
109
+ * },
110
+ * private_tags: {
111
+ * tag_ids: ["33", "44"]
112
+ * }
113
+ * }
114
+ * }
115
+ */
116
+ interface Tags {
117
+ /** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */
118
+ privateTags?: TagList;
119
+ /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
120
+ publicTags?: TagList;
121
+ }
122
+ interface TagList {
123
+ /**
124
+ * List of tag IDs.
125
+ * @maxSize 100
126
+ * @maxLength 5
127
+ */
128
+ tagIds?: string[];
129
+ }
130
+ interface CreateRecipientRequest {
131
+ /** Recipient to create. */
132
+ recipient: Recipient;
133
+ }
134
+ interface CreateRecipientResponse {
135
+ /** Created recipient. */
136
+ recipient?: Recipient;
137
+ }
138
+ interface GetRecipientRequest {
139
+ /**
140
+ * ID of the recipient to retrieve.
141
+ * @format GUID
142
+ */
143
+ recipientId: string;
144
+ }
145
+ interface GetRecipientResponse {
146
+ /** Retrieved recipient. */
147
+ recipient?: Recipient;
148
+ }
149
+ interface UpdateRecipientRequest {
150
+ /** Recipient to update. May be partial. */
151
+ recipient: Recipient;
152
+ }
153
+ interface UpdateRecipientResponse {
154
+ /** Updated recipient. */
155
+ recipient?: Recipient;
156
+ }
157
+ interface DeleteRecipientRequest {
158
+ /**
159
+ * ID of the recipient to delete.
160
+ * @format GUID
161
+ */
162
+ recipientId: string;
163
+ }
164
+ interface DeleteRecipientResponse {
165
+ }
166
+ interface QueryRecipientsRequest {
167
+ /** WQL expression. */
168
+ query?: CursorQuery;
169
+ }
170
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
171
+ /**
172
+ * Cursor paging options.
173
+ *
174
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
175
+ */
176
+ cursorPaging?: CursorPaging;
177
+ /**
178
+ * Filter object.
179
+ *
180
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
181
+ */
182
+ filter?: Record<string, any> | null;
183
+ /**
184
+ * Sort object.
185
+ *
186
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
187
+ * @maxSize 5
188
+ */
189
+ sort?: Sorting[];
190
+ }
191
+ /** @oneof */
192
+ interface CursorQueryPagingMethodOneOf {
193
+ /**
194
+ * Cursor paging options.
195
+ *
196
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
197
+ */
198
+ cursorPaging?: CursorPaging;
199
+ }
200
+ interface Sorting {
201
+ /**
202
+ * Name of the field to sort by.
203
+ * @maxLength 512
204
+ */
205
+ fieldName?: string;
206
+ /** Sort order. */
207
+ order?: SortOrderWithLiterals;
208
+ }
209
+ declare enum SortOrder {
210
+ ASC = "ASC",
211
+ DESC = "DESC"
212
+ }
213
+ /** @enumType */
214
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
215
+ interface CursorPaging {
216
+ /**
217
+ * Maximum number of items to return in the results.
218
+ * @max 100
219
+ */
220
+ limit?: number | null;
221
+ /**
222
+ * Pointer to the next or previous page in the list of results.
223
+ *
224
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
225
+ * Not relevant for the first request.
226
+ * @maxLength 16000
227
+ */
228
+ cursor?: string | null;
229
+ }
230
+ interface QueryRecipientsResponse {
231
+ /** Retrieved recipients. */
232
+ recipients?: Recipient[];
233
+ /** Paging metadata for the query results. */
234
+ pagingMetadata?: CursorPagingMetadata;
235
+ }
236
+ interface CursorPagingMetadata {
237
+ /** Number of items returned in current page. */
238
+ count?: number | null;
239
+ /** Cursor strings that point to the next page, previous page, or both. */
240
+ cursors?: Cursors;
241
+ /**
242
+ * Whether there are more pages to retrieve following the current page.
243
+ *
244
+ * + `true`: Another page of results can be retrieved.
245
+ * + `false`: This is the last page.
246
+ */
247
+ hasNext?: boolean | null;
248
+ }
249
+ interface Cursors {
250
+ /**
251
+ * Cursor string pointing to the next page in the list of results.
252
+ * @maxLength 16000
253
+ */
254
+ next?: string | null;
255
+ /**
256
+ * Cursor pointing to the previous page in the list of results.
257
+ * @maxLength 16000
258
+ */
259
+ prev?: string | null;
260
+ }
261
+ interface BulkUpdateRecipientTagsRequest {
262
+ /**
263
+ * IDs of recipients to update tags for.
264
+ * @minSize 1
265
+ * @maxSize 100
266
+ * @format GUID
267
+ */
268
+ recipientIds: string[];
269
+ /** List of Tags to assign. */
270
+ assignTags?: Tags;
271
+ /** List of Tags to unassign. */
272
+ unassignTags?: Tags;
273
+ }
274
+ interface BulkUpdateRecipientTagsResponse {
275
+ /**
276
+ * Results of the bulk update operation.
277
+ * @minSize 1
278
+ * @maxSize 100
279
+ */
280
+ results?: BulkUpdateRecipientTagsResult[];
281
+ /** Metadata regarding the bulk update operation. */
282
+ bulkActionMetadata?: BulkActionMetadata;
283
+ }
284
+ interface ItemMetadata {
285
+ /**
286
+ * Item ID. Provided only whenever possible. For example, `itemId` can't be provided when item creation has failed.
287
+ * @format GUID
288
+ */
289
+ id?: string | null;
290
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
291
+ originalIndex?: number;
292
+ /** Whether the requested action for this item was successful. When `false`, the `error` field is returned. */
293
+ success?: boolean;
294
+ /** Details about the error in case of failure. */
295
+ error?: ApplicationError;
296
+ }
297
+ interface ApplicationError {
298
+ /** Error code. */
299
+ code?: string;
300
+ /** Description of the error. */
301
+ description?: string;
302
+ /** Data related to the error. */
303
+ data?: Record<string, any> | null;
304
+ }
305
+ interface BulkUpdateRecipientTagsResult {
306
+ /** Metadata regarding the specific single update operation. */
307
+ itemMetadata?: ItemMetadata;
308
+ }
309
+ interface BulkActionMetadata {
310
+ /** Number of items that were successfully processed. */
311
+ totalSuccesses?: number;
312
+ /** Number of items that couldn't be processed. */
313
+ totalFailures?: number;
314
+ /** Number of failures without details because detailed failure threshold was exceeded. */
315
+ undetailedFailures?: number;
316
+ }
317
+ interface BulkUpdateRecipientTagsByFilterRequest {
318
+ /** Filter. */
319
+ filter: Record<string, any> | null;
320
+ /** List of Tags to assign. */
321
+ assignTags?: Tags;
322
+ /** List of Tags to unassign. */
323
+ unassignTags?: Tags;
324
+ }
325
+ interface BulkUpdateRecipientTagsByFilterResponse {
326
+ /**
327
+ * Job ID.
328
+ * @format GUID
329
+ */
330
+ jobId?: string;
331
+ }
332
+
333
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
334
+ getUrl: (context: any) => string;
335
+ httpMethod: K;
336
+ path: string;
337
+ pathParams: M;
338
+ __requestType: T;
339
+ __originalRequestType: S;
340
+ __responseType: Q;
341
+ __originalResponseType: R;
342
+ };
343
+ declare function createRecipient(): __PublicMethodMetaInfo<'POST', {}, CreateRecipientRequest$1, CreateRecipientRequest, CreateRecipientResponse$1, CreateRecipientResponse>;
344
+ declare function getRecipient(): __PublicMethodMetaInfo<'GET', {
345
+ recipientId: string;
346
+ }, GetRecipientRequest$1, GetRecipientRequest, GetRecipientResponse$1, GetRecipientResponse>;
347
+ declare function updateRecipient(): __PublicMethodMetaInfo<'PATCH', {
348
+ recipientId: string;
349
+ }, UpdateRecipientRequest$1, UpdateRecipientRequest, UpdateRecipientResponse$1, UpdateRecipientResponse>;
350
+ declare function deleteRecipient(): __PublicMethodMetaInfo<'DELETE', {
351
+ recipientId: string;
352
+ }, DeleteRecipientRequest$1, DeleteRecipientRequest, DeleteRecipientResponse$1, DeleteRecipientResponse>;
353
+ declare function queryRecipients(): __PublicMethodMetaInfo<'GET', {}, QueryRecipientsRequest$1, QueryRecipientsRequest, QueryRecipientsResponse$1, QueryRecipientsResponse>;
354
+ declare function bulkUpdateRecipientTags(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateRecipientTagsRequest$1, BulkUpdateRecipientTagsRequest, BulkUpdateRecipientTagsResponse$1, BulkUpdateRecipientTagsResponse>;
355
+ declare function bulkUpdateRecipientTagsByFilter(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateRecipientTagsByFilterRequest$1, BulkUpdateRecipientTagsByFilterRequest, BulkUpdateRecipientTagsByFilterResponse$1, BulkUpdateRecipientTagsByFilterResponse>;
356
+
357
+ export { type __PublicMethodMetaInfo, bulkUpdateRecipientTags, bulkUpdateRecipientTagsByFilter, createRecipient, deleteRecipient, getRecipient, queryRecipients, updateRecipient };