@wix/auto_sdk_property_property 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 +11 -0
  2. package/build/cjs/index.js +982 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1216 -0
  5. package/build/cjs/index.typings.js +876 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +877 -0
  8. package/build/cjs/meta.js +734 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/es/index.d.mts +11 -0
  11. package/build/es/index.mjs +939 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/es/index.typings.d.mts +1216 -0
  14. package/build/es/index.typings.mjs +832 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/es/meta.d.mts +877 -0
  17. package/build/es/meta.mjs +691 -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 +123 -0
  21. package/build/internal/cjs/index.js +982 -0
  22. package/build/internal/cjs/index.js.map +1 -0
  23. package/build/internal/cjs/index.typings.d.ts +1338 -0
  24. package/build/internal/cjs/index.typings.js +876 -0
  25. package/build/internal/cjs/index.typings.js.map +1 -0
  26. package/build/internal/cjs/meta.d.ts +877 -0
  27. package/build/internal/cjs/meta.js +734 -0
  28. package/build/internal/cjs/meta.js.map +1 -0
  29. package/build/internal/es/index.d.mts +123 -0
  30. package/build/internal/es/index.mjs +939 -0
  31. package/build/internal/es/index.mjs.map +1 -0
  32. package/build/internal/es/index.typings.d.mts +1338 -0
  33. package/build/internal/es/index.typings.mjs +832 -0
  34. package/build/internal/es/index.typings.mjs.map +1 -0
  35. package/build/internal/es/meta.d.mts +877 -0
  36. package/build/internal/es/meta.mjs +691 -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,877 @@
1
+ import { CreatePropertyRequest as CreatePropertyRequest$1, CreatePropertyResponse as CreatePropertyResponse$1, GetPropertyRequest as GetPropertyRequest$1, GetPropertyResponse as GetPropertyResponse$1, UpdatePropertyRequest as UpdatePropertyRequest$1, UpdatePropertyResponse as UpdatePropertyResponse$1, DeletePropertyRequest as DeletePropertyRequest$1, DeletePropertyResponse as DeletePropertyResponse$1, QueryPropertiesRequest as QueryPropertiesRequest$1, QueryPropertiesResponse as QueryPropertiesResponse$1, BulkCreatePropertiesRequest as BulkCreatePropertiesRequest$1, BulkCreatePropertiesResponse as BulkCreatePropertiesResponse$1, BulkUpdatePropertiesRequest as BulkUpdatePropertiesRequest$1, BulkUpdatePropertiesResponse as BulkUpdatePropertiesResponse$1, BulkDeletePropertiesRequest as BulkDeletePropertiesRequest$1, BulkDeletePropertiesResponse as BulkDeletePropertiesResponse$1, BulkUpdatePropertyTagsRequest as BulkUpdatePropertyTagsRequest$1, BulkUpdatePropertyTagsResponse as BulkUpdatePropertyTagsResponse$1, BulkUpdatePropertyTagsByFilterRequest as BulkUpdatePropertyTagsByFilterRequest$1, BulkUpdatePropertyTagsByFilterResponse as BulkUpdatePropertyTagsByFilterResponse$1 } from './index.typings.js';
2
+ import '@wix/sdk-types';
3
+
4
+ /** Represents a real estate property listing. */
5
+ interface Property {
6
+ /**
7
+ * Property ID.
8
+ * @format GUID
9
+ * @readonly
10
+ */
11
+ id?: string | null;
12
+ /**
13
+ * Revision number, which increments by 1 each time the Property is updated.
14
+ * To prevent conflicting changes, the current revision must be passed when updating the Property.
15
+ * @readonly
16
+ */
17
+ revision?: string | null;
18
+ /**
19
+ * Date and time the Property was created.
20
+ * @readonly
21
+ */
22
+ createdDate?: Date | null;
23
+ /**
24
+ * Date and time the Property was last updated.
25
+ * @readonly
26
+ */
27
+ updatedDate?: Date | null;
28
+ /**
29
+ * Full street address of the property (not personal address).
30
+ * @maxLength 200
31
+ */
32
+ address?: string;
33
+ /**
34
+ * City.
35
+ * @maxLength 100
36
+ */
37
+ city?: string;
38
+ /**
39
+ * State or province.
40
+ * @maxLength 100
41
+ */
42
+ state?: string;
43
+ /**
44
+ * ZIP or postal code of the property (not personal address).
45
+ * @maxLength 20
46
+ */
47
+ zip?: string;
48
+ /** Listing price. */
49
+ price?: Money;
50
+ /** Property status. */
51
+ status?: PropertyStatusWithLiterals;
52
+ /** Property type. */
53
+ propertyType?: PropertyTypeWithLiterals;
54
+ /**
55
+ * Number of bedrooms.
56
+ * @max 100
57
+ */
58
+ beds?: number | null;
59
+ /**
60
+ * Number of bathrooms.
61
+ * @max 100
62
+ */
63
+ baths?: number | null;
64
+ /**
65
+ * Living area in square feet.
66
+ * @max 1000000
67
+ */
68
+ sqft?: number | null;
69
+ /**
70
+ * Lot size in square feet.
71
+ * @max 100000000
72
+ */
73
+ lotSize?: number | null;
74
+ /**
75
+ * Year the property was built.
76
+ * @min 1600
77
+ * @max 2200
78
+ */
79
+ yearBuilt?: number | null;
80
+ /**
81
+ * Public description.
82
+ * @maxLength 10000
83
+ */
84
+ description?: string;
85
+ /**
86
+ * Property features (e.g., Pool, Waterfront, Garage, AC).
87
+ * @maxSize 100
88
+ * @maxLength 100
89
+ */
90
+ features?: string[];
91
+ /**
92
+ * Property photos.
93
+ * @maxSize 100
94
+ */
95
+ photos?: PropertyPhoto[];
96
+ /**
97
+ * 360-degree virtual tour URL.
98
+ * @format WEB_URL
99
+ */
100
+ virtualTourUrl?: string | null;
101
+ /**
102
+ * Property documents (floor plans, disclosures, brochures).
103
+ * @maxSize 50
104
+ */
105
+ documents?: PropertyDocument[];
106
+ /**
107
+ * Custom fields for additional property information.
108
+ * @maxSize 100
109
+ */
110
+ customFields?: CustomField[];
111
+ /**
112
+ * Latitude coordinate.
113
+ * @min -90
114
+ * @max 90
115
+ */
116
+ lat?: number | null;
117
+ /**
118
+ * Longitude coordinate.
119
+ * @min -180
120
+ * @max 180
121
+ */
122
+ lng?: number | null;
123
+ /**
124
+ * Date when property was listed (status changed to Active).
125
+ * @readonly
126
+ */
127
+ listingDate?: Date | null;
128
+ /**
129
+ * Date when property was sold (status changed to Sold).
130
+ * @readonly
131
+ */
132
+ saleDate?: Date | null;
133
+ /**
134
+ * Number of days the property has been on the market.
135
+ * @readonly
136
+ */
137
+ daysOnMarket?: number | null;
138
+ /**
139
+ * Source of the property listing.
140
+ * @readonly
141
+ */
142
+ source?: PropertySourceWithLiterals;
143
+ /**
144
+ * MLS identifier (Phase 2).
145
+ * @readonly
146
+ * @maxLength 100
147
+ */
148
+ mlsId?: string | null;
149
+ /**
150
+ * MLS listing number (Phase 2).
151
+ * @readonly
152
+ * @maxLength 100
153
+ */
154
+ listingId?: string | null;
155
+ /**
156
+ * MLS listing agent ID (Phase 2).
157
+ * @readonly
158
+ * @maxLength 100
159
+ */
160
+ listingAgentId?: string | null;
161
+ /**
162
+ * MLS listing office ID (Phase 2).
163
+ * @readonly
164
+ * @maxLength 100
165
+ */
166
+ listingOfficeId?: string | null;
167
+ /**
168
+ * Whether the property is editable by the agent.
169
+ * @readonly
170
+ */
171
+ editable?: boolean;
172
+ /**
173
+ * Wix Bookings Service ID for scheduling property viewings.
174
+ * Populated asynchronously after property creation.
175
+ * @format GUID
176
+ * @readonly
177
+ */
178
+ serviceId?: string | null;
179
+ /** Data Extensions. */
180
+ extendedFields?: ExtendedFields;
181
+ /** Tags for classification. */
182
+ tags?: Tags;
183
+ }
184
+ /**
185
+ * Money.
186
+ * Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.
187
+ */
188
+ interface Money {
189
+ /**
190
+ * Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative.
191
+ * @format DECIMAL_VALUE
192
+ * @decimalValue options { maxScale:2 }
193
+ */
194
+ value?: string;
195
+ /**
196
+ * Currency code. Must be valid ISO 4217 currency code (e.g., USD).
197
+ * @format CURRENCY
198
+ */
199
+ currency?: string;
200
+ /**
201
+ * Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative.
202
+ * @maxLength 50
203
+ */
204
+ formattedValue?: string | null;
205
+ }
206
+ /** Property status. */
207
+ declare enum PropertyStatus {
208
+ /** Unknown status. */
209
+ PROPERTY_STATUS_UNKNOWN = "PROPERTY_STATUS_UNKNOWN",
210
+ /** Property is currently for sale or rent. */
211
+ ACTIVE = "ACTIVE",
212
+ /** Property is under contract. */
213
+ PENDING = "PENDING",
214
+ /** Property transaction is closed. */
215
+ SOLD = "SOLD",
216
+ /** Property is not publicly listed. */
217
+ OFF_MARKET = "OFF_MARKET",
218
+ /** Property is incomplete and not published. */
219
+ DRAFT = "DRAFT"
220
+ }
221
+ /** @enumType */
222
+ type PropertyStatusWithLiterals = PropertyStatus | 'PROPERTY_STATUS_UNKNOWN' | 'ACTIVE' | 'PENDING' | 'SOLD' | 'OFF_MARKET' | 'DRAFT';
223
+ /** Property type. */
224
+ declare enum PropertyType {
225
+ /** Unknown property type. */
226
+ PROPERTY_TYPE_UNKNOWN = "PROPERTY_TYPE_UNKNOWN",
227
+ /** Single-family home. */
228
+ SINGLE_FAMILY = "SINGLE_FAMILY",
229
+ /** Condominium. */
230
+ CONDO = "CONDO",
231
+ /** Townhouse. */
232
+ TOWNHOUSE = "TOWNHOUSE",
233
+ /** Multi-family home. */
234
+ MULTI_FAMILY = "MULTI_FAMILY",
235
+ /** Land. */
236
+ LAND = "LAND",
237
+ /** Commercial property. */
238
+ COMMERCIAL = "COMMERCIAL"
239
+ }
240
+ /** @enumType */
241
+ type PropertyTypeWithLiterals = PropertyType | 'PROPERTY_TYPE_UNKNOWN' | 'SINGLE_FAMILY' | 'CONDO' | 'TOWNHOUSE' | 'MULTI_FAMILY' | 'LAND' | 'COMMERCIAL';
242
+ /** Property photo. */
243
+ interface PropertyPhoto {
244
+ /**
245
+ * Photo URL.
246
+ * @format WEB_URL
247
+ */
248
+ url?: string;
249
+ /**
250
+ * Alt text for accessibility.
251
+ * @maxLength 200
252
+ */
253
+ altText?: string;
254
+ /** Display order. */
255
+ order?: number;
256
+ }
257
+ /** Property document. */
258
+ interface PropertyDocument {
259
+ /**
260
+ * Document URL.
261
+ * @format WEB_URL
262
+ */
263
+ url?: string;
264
+ /**
265
+ * Document title.
266
+ * @maxLength 200
267
+ */
268
+ title?: string;
269
+ /** Document type. */
270
+ type?: DocumentTypeWithLiterals;
271
+ }
272
+ /** Document type. */
273
+ declare enum DocumentType {
274
+ /** Unknown document type. */
275
+ DOCUMENT_TYPE_UNKNOWN = "DOCUMENT_TYPE_UNKNOWN",
276
+ /** Floor plan. */
277
+ FLOOR_PLAN = "FLOOR_PLAN",
278
+ /** Disclosure document. */
279
+ DISCLOSURE = "DISCLOSURE",
280
+ /** Brochure. */
281
+ BROCHURE = "BROCHURE",
282
+ /** Other document. */
283
+ OTHER = "OTHER"
284
+ }
285
+ /** @enumType */
286
+ type DocumentTypeWithLiterals = DocumentType | 'DOCUMENT_TYPE_UNKNOWN' | 'FLOOR_PLAN' | 'DISCLOSURE' | 'BROCHURE' | 'OTHER';
287
+ /** Custom field for additional property information. */
288
+ interface CustomField {
289
+ /**
290
+ * Field key.
291
+ * @maxLength 100
292
+ */
293
+ key?: string;
294
+ /**
295
+ * Field value.
296
+ * @maxLength 1000
297
+ */
298
+ value?: string;
299
+ /** Field type. */
300
+ type?: CustomFieldTypeWithLiterals;
301
+ }
302
+ /** Custom field type. */
303
+ declare enum CustomFieldType {
304
+ /** Unknown field type. */
305
+ CUSTOM_FIELD_TYPE_UNKNOWN = "CUSTOM_FIELD_TYPE_UNKNOWN",
306
+ /** String value. */
307
+ STRING = "STRING",
308
+ /** Number value. */
309
+ NUMBER = "NUMBER",
310
+ /** Boolean value. */
311
+ BOOLEAN = "BOOLEAN",
312
+ /** Date value. */
313
+ DATE = "DATE"
314
+ }
315
+ /** @enumType */
316
+ type CustomFieldTypeWithLiterals = CustomFieldType | 'CUSTOM_FIELD_TYPE_UNKNOWN' | 'STRING' | 'NUMBER' | 'BOOLEAN' | 'DATE';
317
+ /** Property source. */
318
+ declare enum PropertySource {
319
+ /** Unknown source. */
320
+ PROPERTY_SOURCE_UNKNOWN = "PROPERTY_SOURCE_UNKNOWN",
321
+ /** Manually created by agent. */
322
+ MANUAL = "MANUAL",
323
+ /** Synced from MLS (Phase 2). */
324
+ MLS = "MLS"
325
+ }
326
+ /** @enumType */
327
+ type PropertySourceWithLiterals = PropertySource | 'PROPERTY_SOURCE_UNKNOWN' | 'MANUAL' | 'MLS';
328
+ interface ExtendedFields {
329
+ /**
330
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
331
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
332
+ *
333
+ * You can only access fields for which you have the appropriate permissions.
334
+ *
335
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
336
+ */
337
+ namespaces?: Record<string, Record<string, any>>;
338
+ }
339
+ /**
340
+ * Common object for tags.
341
+ * Should be use as in this example:
342
+ * message Foo {
343
+ * option (.wix.api.decomposite_of) = "wix.commons.v2.tags.Foo";
344
+ * string id = 1;
345
+ * ...
346
+ * Tags tags = 5
347
+ * }
348
+ *
349
+ * example of taggable entity
350
+ * {
351
+ * id: "123"
352
+ * tags: {
353
+ * public_tags: {
354
+ * tag_ids:["11","22"]
355
+ * },
356
+ * private_tags: {
357
+ * tag_ids: ["33", "44"]
358
+ * }
359
+ * }
360
+ * }
361
+ */
362
+ interface Tags {
363
+ /** Tags that require an additional permission in order to access them, typically restricted from site members and visitors. */
364
+ privateTags?: TagList;
365
+ /** Tags that are exposed to anyone with access to the entity, including site members and visitors. */
366
+ publicTags?: TagList;
367
+ }
368
+ interface TagList {
369
+ /**
370
+ * List of tag IDs.
371
+ * @maxSize 100
372
+ * @maxLength 5
373
+ */
374
+ tagIds?: string[];
375
+ }
376
+ /** PropertyStatusChanged action event payload. */
377
+ interface PropertyStatusChanged {
378
+ /**
379
+ * Property ID.
380
+ * @format GUID
381
+ */
382
+ propertyId?: string;
383
+ /** Previous status. */
384
+ oldStatus?: PropertyStatusWithLiterals;
385
+ /** New status. */
386
+ newStatus?: PropertyStatusWithLiterals;
387
+ /** Timestamp of the status change. */
388
+ timestamp?: Date | null;
389
+ }
390
+ /** TagsModified action event payload. */
391
+ interface TagsModified {
392
+ /** Updated Property. */
393
+ property?: Property;
394
+ /** Tags that were assigned to the Property. */
395
+ assignedTags?: Tags;
396
+ /** Tags that were unassigned from the Property. */
397
+ unassignedTags?: Tags;
398
+ }
399
+ interface CreatePropertyRequest {
400
+ /** Property to be created. */
401
+ property: Property;
402
+ }
403
+ interface CreatePropertyResponse {
404
+ /** The created Property. */
405
+ property?: Property;
406
+ }
407
+ interface GetPropertyRequest {
408
+ /**
409
+ * ID of the Property to retrieve.
410
+ * @format GUID
411
+ */
412
+ propertyId: string;
413
+ }
414
+ interface GetPropertyResponse {
415
+ /** The requested Property. */
416
+ property?: Property;
417
+ }
418
+ interface UpdatePropertyRequest {
419
+ /** Property to be updated, may be partial. */
420
+ property: Property;
421
+ }
422
+ interface UpdatePropertyResponse {
423
+ /** Updated Property. */
424
+ property?: Property;
425
+ }
426
+ interface DeletePropertyRequest {
427
+ /**
428
+ * ID of the Property to delete.
429
+ * @format GUID
430
+ */
431
+ propertyId: string;
432
+ }
433
+ interface DeletePropertyResponse {
434
+ }
435
+ interface QueryPropertiesRequest {
436
+ /** WQL expression. */
437
+ query?: CursorQuery;
438
+ }
439
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
440
+ /**
441
+ * Cursor paging options.
442
+ *
443
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
444
+ */
445
+ cursorPaging?: CursorPaging;
446
+ /**
447
+ * Filter object.
448
+ *
449
+ * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
450
+ */
451
+ filter?: Record<string, any> | null;
452
+ /**
453
+ * Sort object.
454
+ *
455
+ * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
456
+ * @maxSize 5
457
+ */
458
+ sort?: Sorting[];
459
+ }
460
+ /** @oneof */
461
+ interface CursorQueryPagingMethodOneOf {
462
+ /**
463
+ * Cursor paging options.
464
+ *
465
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
466
+ */
467
+ cursorPaging?: CursorPaging;
468
+ }
469
+ interface Sorting {
470
+ /**
471
+ * Name of the field to sort by.
472
+ * @maxLength 512
473
+ */
474
+ fieldName?: string;
475
+ /** Sort order. */
476
+ order?: SortOrderWithLiterals;
477
+ }
478
+ declare enum SortOrder {
479
+ ASC = "ASC",
480
+ DESC = "DESC"
481
+ }
482
+ /** @enumType */
483
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
484
+ interface CursorPaging {
485
+ /**
486
+ * Maximum number of items to return in the results.
487
+ * @max 100
488
+ */
489
+ limit?: number | null;
490
+ /**
491
+ * Pointer to the next or previous page in the list of results.
492
+ *
493
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
494
+ * Not relevant for the first request.
495
+ * @maxLength 16000
496
+ */
497
+ cursor?: string | null;
498
+ }
499
+ interface QueryPropertiesResponse {
500
+ /** List of Properties. */
501
+ properties?: Property[];
502
+ /** Paging metadata. */
503
+ pagingMetadata?: CursorPagingMetadata;
504
+ }
505
+ interface CursorPagingMetadata {
506
+ /** Number of items returned in current page. */
507
+ count?: number | null;
508
+ /** Cursor strings that point to the next page, previous page, or both. */
509
+ cursors?: Cursors;
510
+ /**
511
+ * Whether there are more pages to retrieve following the current page.
512
+ *
513
+ * + `true`: Another page of results can be retrieved.
514
+ * + `false`: This is the last page.
515
+ */
516
+ hasNext?: boolean | null;
517
+ }
518
+ interface Cursors {
519
+ /**
520
+ * Cursor string pointing to the next page in the list of results.
521
+ * @maxLength 16000
522
+ */
523
+ next?: string | null;
524
+ /**
525
+ * Cursor pointing to the previous page in the list of results.
526
+ * @maxLength 16000
527
+ */
528
+ prev?: string | null;
529
+ }
530
+ interface BulkCreatePropertiesRequest {
531
+ /**
532
+ * List of Properties to be created.
533
+ * @minSize 1
534
+ * @maxSize 100
535
+ */
536
+ properties: Property[];
537
+ /** Set to `true` to receive back the created Properties in the response. */
538
+ returnEntity?: boolean;
539
+ }
540
+ interface BulkCreatePropertiesResponse {
541
+ /**
542
+ * List of the bulk create operation results including the Properties and metadata.
543
+ * @minSize 1
544
+ * @maxSize 100
545
+ */
546
+ results?: BulkPropertyResult[];
547
+ /** Metadata regarding the bulk create operation. */
548
+ bulkActionMetadata?: BulkActionMetadata;
549
+ }
550
+ interface ItemMetadata {
551
+ /**
552
+ * Item ID. Provided only whenever possible. For example, `itemId` can't be provided when item creation has failed.
553
+ * @format GUID
554
+ */
555
+ id?: string | null;
556
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
557
+ originalIndex?: number;
558
+ /** Whether the requested action for this item was successful. When `false`, the `error` field is returned. */
559
+ success?: boolean;
560
+ /** Details about the error in case of failure. */
561
+ error?: ApplicationError;
562
+ }
563
+ interface ApplicationError {
564
+ /** Error code. */
565
+ code?: string;
566
+ /** Description of the error. */
567
+ description?: string;
568
+ /** Data related to the error. */
569
+ data?: Record<string, any> | null;
570
+ }
571
+ interface BulkPropertyResult {
572
+ /** Metadata regarding the specific single create operation. */
573
+ itemMetadata?: ItemMetadata;
574
+ /** Only exists if `returnEntity` was set to true in the request. */
575
+ item?: Property;
576
+ }
577
+ interface BulkActionMetadata {
578
+ /** Number of items that were successfully processed. */
579
+ totalSuccesses?: number;
580
+ /** Number of items that couldn't be processed. */
581
+ totalFailures?: number;
582
+ /** Number of failures without details because detailed failure threshold was exceeded. */
583
+ undetailedFailures?: number;
584
+ }
585
+ interface BulkUpdatePropertiesRequest {
586
+ /**
587
+ * List of Properties to be updated.
588
+ * @minSize 1
589
+ * @maxSize 100
590
+ */
591
+ properties: MaskedProperty[];
592
+ /** Set to `true` to receive back the updated Properties in the response. */
593
+ returnEntity?: boolean;
594
+ }
595
+ interface MaskedProperty {
596
+ /** Property to be updated, may be partial. */
597
+ property?: Property;
598
+ }
599
+ interface BulkUpdatePropertiesResponse {
600
+ /**
601
+ * Results.
602
+ * @minSize 1
603
+ * @maxSize 100
604
+ */
605
+ results?: BulkUpdatePropertiesResponseBulkPropertyResult[];
606
+ /** Metadata regarding the bulk update operation. */
607
+ bulkActionMetadata?: BulkActionMetadata;
608
+ }
609
+ interface BulkUpdatePropertiesResponseBulkPropertyResult {
610
+ /** Metadata regarding the specific single update operation. */
611
+ itemMetadata?: ItemMetadata;
612
+ /** Only exists if `returnEntity` was set to true in the request. */
613
+ item?: Property;
614
+ }
615
+ interface BulkDeletePropertiesRequest {
616
+ /**
617
+ * Property IDs to be deleted.
618
+ * @minSize 1
619
+ * @maxSize 100
620
+ * @format GUID
621
+ */
622
+ propertyIds: string[];
623
+ }
624
+ interface BulkDeletePropertiesResponse {
625
+ /**
626
+ * Results.
627
+ * @minSize 1
628
+ * @maxSize 100
629
+ */
630
+ results?: BulkDeletePropertiesResponseBulkPropertyResult[];
631
+ /** Metadata regarding the bulk delete operation. */
632
+ bulkActionMetadata?: BulkActionMetadata;
633
+ }
634
+ interface BulkDeletePropertiesResponseBulkPropertyResult {
635
+ /** Metadata regarding the specific single delete operation. */
636
+ itemMetadata?: ItemMetadata;
637
+ }
638
+ interface BulkUpdatePropertyTagsRequest {
639
+ /**
640
+ * List of Property IDs whose tags will be updated.
641
+ * @minSize 1
642
+ * @maxSize 100
643
+ * @format GUID
644
+ */
645
+ propertyIds: string[];
646
+ /** List of tags to assign. */
647
+ assignTags?: Tags;
648
+ /** List of tags to unassign. */
649
+ unassignTags?: Tags;
650
+ }
651
+ interface BulkUpdatePropertyTagsResponse {
652
+ /**
653
+ * Results.
654
+ * @minSize 1
655
+ * @maxSize 100
656
+ */
657
+ results?: BulkUpdatePropertyTagsResult[];
658
+ /** Metadata regarding the bulk update operation. */
659
+ bulkActionMetadata?: BulkActionMetadata;
660
+ }
661
+ interface BulkUpdatePropertyTagsResult {
662
+ /** Metadata regarding the specific single update operation. */
663
+ itemMetadata?: ItemMetadata;
664
+ }
665
+ interface DomainEvent extends DomainEventBodyOneOf {
666
+ createdEvent?: EntityCreatedEvent;
667
+ updatedEvent?: EntityUpdatedEvent;
668
+ deletedEvent?: EntityDeletedEvent;
669
+ actionEvent?: ActionEvent;
670
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
671
+ id?: string;
672
+ /**
673
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
674
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
675
+ */
676
+ entityFqdn?: string;
677
+ /**
678
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
679
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
680
+ */
681
+ slug?: string;
682
+ /** ID of the entity associated with the event. */
683
+ entityId?: string;
684
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
685
+ eventTime?: Date | null;
686
+ /**
687
+ * Whether the event was triggered as a result of a privacy regulation application
688
+ * (for example, GDPR).
689
+ */
690
+ triggeredByAnonymizeRequest?: boolean | null;
691
+ /** If present, indicates the action that triggered the event. */
692
+ originatedFrom?: string | null;
693
+ /**
694
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
695
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
696
+ */
697
+ entityEventSequence?: string | null;
698
+ }
699
+ /** @oneof */
700
+ interface DomainEventBodyOneOf {
701
+ createdEvent?: EntityCreatedEvent;
702
+ updatedEvent?: EntityUpdatedEvent;
703
+ deletedEvent?: EntityDeletedEvent;
704
+ actionEvent?: ActionEvent;
705
+ }
706
+ interface EntityCreatedEvent {
707
+ entityAsJson?: string;
708
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
709
+ restoreInfo?: RestoreInfo;
710
+ }
711
+ interface RestoreInfo {
712
+ deletedDate?: Date | null;
713
+ }
714
+ interface EntityUpdatedEvent {
715
+ /**
716
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
717
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
718
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
719
+ */
720
+ currentEntityAsJson?: string;
721
+ }
722
+ interface EntityDeletedEvent {
723
+ /** Entity that was deleted. */
724
+ deletedEntityAsJson?: string | null;
725
+ }
726
+ interface ActionEvent {
727
+ bodyAsJson?: string;
728
+ }
729
+ interface Empty {
730
+ }
731
+ interface BulkUpdatePropertyTagsByFilterRequest {
732
+ /** Filter. */
733
+ filter: Record<string, any> | null;
734
+ /** List of tags to assign. */
735
+ assignTags?: Tags;
736
+ /** List of tags to unassign. */
737
+ unassignTags?: Tags;
738
+ }
739
+ interface BulkUpdatePropertyTagsByFilterResponse {
740
+ /**
741
+ * Job ID for tracking the async operation.
742
+ * @format GUID
743
+ */
744
+ jobId?: string;
745
+ }
746
+ interface MessageEnvelope {
747
+ /**
748
+ * App instance ID.
749
+ * @format GUID
750
+ */
751
+ instanceId?: string | null;
752
+ /**
753
+ * Event type.
754
+ * @maxLength 150
755
+ */
756
+ eventType?: string;
757
+ /** The identification type and identity data. */
758
+ identity?: IdentificationData;
759
+ /** Stringify payload. */
760
+ data?: string;
761
+ /** Details related to the account */
762
+ accountInfo?: AccountInfo;
763
+ }
764
+ interface IdentificationData extends IdentificationDataIdOneOf {
765
+ /**
766
+ * ID of a site visitor that has not logged in to the site.
767
+ * @format GUID
768
+ */
769
+ anonymousVisitorId?: string;
770
+ /**
771
+ * ID of a site visitor that has logged in to the site.
772
+ * @format GUID
773
+ */
774
+ memberId?: string;
775
+ /**
776
+ * ID of a Wix user (site owner, contributor, etc.).
777
+ * @format GUID
778
+ */
779
+ wixUserId?: string;
780
+ /**
781
+ * ID of an app.
782
+ * @format GUID
783
+ */
784
+ appId?: string;
785
+ /** @readonly */
786
+ identityType?: WebhookIdentityTypeWithLiterals;
787
+ }
788
+ /** @oneof */
789
+ interface IdentificationDataIdOneOf {
790
+ /**
791
+ * ID of a site visitor that has not logged in to the site.
792
+ * @format GUID
793
+ */
794
+ anonymousVisitorId?: string;
795
+ /**
796
+ * ID of a site visitor that has logged in to the site.
797
+ * @format GUID
798
+ */
799
+ memberId?: string;
800
+ /**
801
+ * ID of a Wix user (site owner, contributor, etc.).
802
+ * @format GUID
803
+ */
804
+ wixUserId?: string;
805
+ /**
806
+ * ID of an app.
807
+ * @format GUID
808
+ */
809
+ appId?: string;
810
+ }
811
+ declare enum WebhookIdentityType {
812
+ UNKNOWN = "UNKNOWN",
813
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
814
+ MEMBER = "MEMBER",
815
+ WIX_USER = "WIX_USER",
816
+ APP = "APP"
817
+ }
818
+ /** @enumType */
819
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
820
+ interface AccountInfo {
821
+ /**
822
+ * ID of the Wix account associated with the event.
823
+ * @format GUID
824
+ */
825
+ accountId?: string | null;
826
+ /**
827
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
828
+ * @format GUID
829
+ */
830
+ parentAccountId?: string | null;
831
+ /**
832
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
833
+ * @format GUID
834
+ */
835
+ siteId?: string | null;
836
+ }
837
+ /** @docsIgnore */
838
+ type BulkUpdatePropertyTagsApplicationErrors = {
839
+ code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
840
+ description?: string;
841
+ data?: Record<string, any>;
842
+ };
843
+ /** @docsIgnore */
844
+ type BulkUpdatePropertyTagsByFilterApplicationErrors = {
845
+ code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
846
+ description?: string;
847
+ data?: Record<string, any>;
848
+ };
849
+
850
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
851
+ getUrl: (context: any) => string;
852
+ httpMethod: K;
853
+ path: string;
854
+ pathParams: M;
855
+ __requestType: T;
856
+ __originalRequestType: S;
857
+ __responseType: Q;
858
+ __originalResponseType: R;
859
+ };
860
+ declare function createProperty(): __PublicMethodMetaInfo<'POST', {}, CreatePropertyRequest$1, CreatePropertyRequest, CreatePropertyResponse$1, CreatePropertyResponse>;
861
+ declare function getProperty(): __PublicMethodMetaInfo<'GET', {
862
+ propertyId: string;
863
+ }, GetPropertyRequest$1, GetPropertyRequest, GetPropertyResponse$1, GetPropertyResponse>;
864
+ declare function updateProperty(): __PublicMethodMetaInfo<'PATCH', {
865
+ propertyId: string;
866
+ }, UpdatePropertyRequest$1, UpdatePropertyRequest, UpdatePropertyResponse$1, UpdatePropertyResponse>;
867
+ declare function deleteProperty(): __PublicMethodMetaInfo<'DELETE', {
868
+ propertyId: string;
869
+ }, DeletePropertyRequest$1, DeletePropertyRequest, DeletePropertyResponse$1, DeletePropertyResponse>;
870
+ declare function queryProperties(): __PublicMethodMetaInfo<'GET', {}, QueryPropertiesRequest$1, QueryPropertiesRequest, QueryPropertiesResponse$1, QueryPropertiesResponse>;
871
+ declare function bulkCreateProperties(): __PublicMethodMetaInfo<'POST', {}, BulkCreatePropertiesRequest$1, BulkCreatePropertiesRequest, BulkCreatePropertiesResponse$1, BulkCreatePropertiesResponse>;
872
+ declare function bulkUpdateProperties(): __PublicMethodMetaInfo<'POST', {}, BulkUpdatePropertiesRequest$1, BulkUpdatePropertiesRequest, BulkUpdatePropertiesResponse$1, BulkUpdatePropertiesResponse>;
873
+ declare function bulkDeleteProperties(): __PublicMethodMetaInfo<'POST', {}, BulkDeletePropertiesRequest$1, BulkDeletePropertiesRequest, BulkDeletePropertiesResponse$1, BulkDeletePropertiesResponse>;
874
+ declare function bulkUpdatePropertyTags(): __PublicMethodMetaInfo<'POST', {}, BulkUpdatePropertyTagsRequest$1, BulkUpdatePropertyTagsRequest, BulkUpdatePropertyTagsResponse$1, BulkUpdatePropertyTagsResponse>;
875
+ declare function bulkUpdatePropertyTagsByFilter(): __PublicMethodMetaInfo<'POST', {}, BulkUpdatePropertyTagsByFilterRequest$1, BulkUpdatePropertyTagsByFilterRequest, BulkUpdatePropertyTagsByFilterResponse$1, BulkUpdatePropertyTagsByFilterResponse>;
876
+
877
+ export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCreatePropertiesRequest as BulkCreatePropertiesRequestOriginal, type BulkCreatePropertiesResponse as BulkCreatePropertiesResponseOriginal, type BulkDeletePropertiesRequest as BulkDeletePropertiesRequestOriginal, type BulkDeletePropertiesResponseBulkPropertyResult as BulkDeletePropertiesResponseBulkPropertyResultOriginal, type BulkDeletePropertiesResponse as BulkDeletePropertiesResponseOriginal, type BulkPropertyResult as BulkPropertyResultOriginal, type BulkUpdatePropertiesRequest as BulkUpdatePropertiesRequestOriginal, type BulkUpdatePropertiesResponseBulkPropertyResult as BulkUpdatePropertiesResponseBulkPropertyResultOriginal, type BulkUpdatePropertiesResponse as BulkUpdatePropertiesResponseOriginal, type BulkUpdatePropertyTagsApplicationErrors as BulkUpdatePropertyTagsApplicationErrorsOriginal, type BulkUpdatePropertyTagsByFilterApplicationErrors as BulkUpdatePropertyTagsByFilterApplicationErrorsOriginal, type BulkUpdatePropertyTagsByFilterRequest as BulkUpdatePropertyTagsByFilterRequestOriginal, type BulkUpdatePropertyTagsByFilterResponse as BulkUpdatePropertyTagsByFilterResponseOriginal, type BulkUpdatePropertyTagsRequest as BulkUpdatePropertyTagsRequestOriginal, type BulkUpdatePropertyTagsResponse as BulkUpdatePropertyTagsResponseOriginal, type BulkUpdatePropertyTagsResult as BulkUpdatePropertyTagsResultOriginal, type CreatePropertyRequest as CreatePropertyRequestOriginal, type CreatePropertyResponse as CreatePropertyResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type CustomField as CustomFieldOriginal, CustomFieldType as CustomFieldTypeOriginal, type CustomFieldTypeWithLiterals as CustomFieldTypeWithLiteralsOriginal, type DeletePropertyRequest as DeletePropertyRequestOriginal, type DeletePropertyResponse as DeletePropertyResponseOriginal, DocumentType as DocumentTypeOriginal, type DocumentTypeWithLiterals as DocumentTypeWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type GetPropertyRequest as GetPropertyRequestOriginal, type GetPropertyResponse as GetPropertyResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ItemMetadata as ItemMetadataOriginal, type MaskedProperty as MaskedPropertyOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type Money as MoneyOriginal, type PropertyDocument as PropertyDocumentOriginal, type Property as PropertyOriginal, type PropertyPhoto as PropertyPhotoOriginal, PropertySource as PropertySourceOriginal, type PropertySourceWithLiterals as PropertySourceWithLiteralsOriginal, type PropertyStatusChanged as PropertyStatusChangedOriginal, PropertyStatus as PropertyStatusOriginal, type PropertyStatusWithLiterals as PropertyStatusWithLiteralsOriginal, PropertyType as PropertyTypeOriginal, type PropertyTypeWithLiterals as PropertyTypeWithLiteralsOriginal, type QueryPropertiesRequest as QueryPropertiesRequestOriginal, type QueryPropertiesResponse as QueryPropertiesResponseOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type TagList as TagListOriginal, type TagsModified as TagsModifiedOriginal, type Tags as TagsOriginal, type UpdatePropertyRequest as UpdatePropertyRequestOriginal, type UpdatePropertyResponse as UpdatePropertyResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCreateProperties, bulkDeleteProperties, bulkUpdateProperties, bulkUpdatePropertyTags, bulkUpdatePropertyTagsByFilter, createProperty, deleteProperty, getProperty, queryProperties, updateProperty };