@wix/auto_sdk_property_property 1.0.0 → 1.0.1

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.
@@ -1,6 +1,6 @@
1
1
  import { MaybeContext, BuildRESTFunction, HttpClient } from '@wix/sdk-types';
2
2
  import { PropertiesQueryBuilder, PropertyQuery, typedQueryProperties } from './index.typings.js';
3
- export { AccountInfo, ActionEvent, ApplicationError, BulkActionMetadata, BulkCreatePropertiesOptions, BulkCreatePropertiesRequest, BulkCreatePropertiesResponse, BulkDeletePropertiesRequest, BulkDeletePropertiesResponse, BulkDeletePropertiesResponseBulkPropertyResult, BulkPropertyResult, BulkUpdatePropertiesOptions, BulkUpdatePropertiesRequest, BulkUpdatePropertiesResponse, BulkUpdatePropertiesResponseBulkPropertyResult, BulkUpdatePropertyTagsApplicationErrors, BulkUpdatePropertyTagsByFilterApplicationErrors, BulkUpdatePropertyTagsByFilterOptions, BulkUpdatePropertyTagsByFilterRequest, BulkUpdatePropertyTagsByFilterResponse, BulkUpdatePropertyTagsOptions, BulkUpdatePropertyTagsRequest, BulkUpdatePropertyTagsResponse, BulkUpdatePropertyTagsResult, CommonQueryWithEntityContext, CreatePropertyRequest, CreatePropertyResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomField, CustomFieldType, CustomFieldTypeWithLiterals, DeletePropertyRequest, DeletePropertyResponse, DocumentType, DocumentTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, Filter, GetPropertyRequest, GetPropertyResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MaskedProperty, MessageEnvelope, Money, PropertiesQueryResult, Property, PropertyDocument, PropertyPhoto, PropertyQuerySpec, PropertySource, PropertySourceWithLiterals, PropertyStatus, PropertyStatusChanged, PropertyStatusWithLiterals, PropertyType, PropertyTypeWithLiterals, QueryBuilder, QueryPropertiesRequest, QueryPropertiesResponse, RestoreInfo, Sort, SortOrder, SortOrderWithLiterals, Sorting, TagList, Tags, TagsModified, UpdateProperty, UpdatePropertyRequest, UpdatePropertyResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
3
+ export { AccountInfo, ActionEvent, ApplicationError, BulkActionMetadata, BulkCreatePropertiesOptions, BulkCreatePropertiesRequest, BulkCreatePropertiesResponse, BulkDeletePropertiesRequest, BulkDeletePropertiesResponse, BulkDeletePropertiesResponseBulkPropertyResult, BulkPropertyResult, BulkUpdatePropertiesOptions, BulkUpdatePropertiesRequest, BulkUpdatePropertiesResponse, BulkUpdatePropertiesResponseBulkPropertyResult, BulkUpdatePropertyTagsApplicationErrors, BulkUpdatePropertyTagsByFilterApplicationErrors, BulkUpdatePropertyTagsByFilterOptions, BulkUpdatePropertyTagsByFilterRequest, BulkUpdatePropertyTagsByFilterResponse, BulkUpdatePropertyTagsOptions, BulkUpdatePropertyTagsRequest, BulkUpdatePropertyTagsResponse, BulkUpdatePropertyTagsResult, CommonQueryWithEntityContext, CreatePropertyRequest, CreatePropertyResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomField, CustomFieldType, CustomFieldTypeWithLiterals, DeletePropertyRequest, DeletePropertyResponse, DocumentType, DocumentTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, GetPropertyRequest, GetPropertyResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MaskedProperty, MessageEnvelope, Money, PropertiesQueryResult, Property, PropertyDocument, PropertyPhoto, PropertyQuerySpec, PropertySource, PropertySourceWithLiterals, PropertyStatus, PropertyStatusChanged, PropertyStatusWithLiterals, PropertyType, PropertyTypeWithLiterals, QueryPropertiesRequest, QueryPropertiesResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, TagList, Tags, TagsModified, UpdateProperty, UpdatePropertyRequest, UpdatePropertyResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js';
4
4
 
5
5
  declare function customQueryProperties(httpClient: HttpClient): {
6
6
  (): PropertiesQueryBuilder;
@@ -22,12 +22,9 @@ var index_exports = {};
22
22
  __export(index_exports, {
23
23
  CustomFieldType: () => CustomFieldType,
24
24
  DocumentType: () => DocumentType,
25
- Filter: () => Filter,
26
25
  PropertySource: () => PropertySource,
27
26
  PropertyStatus: () => PropertyStatus,
28
27
  PropertyType: () => PropertyType,
29
- QueryBuilder: () => QueryBuilder,
30
- Sort: () => Sort,
31
28
  SortOrder: () => SortOrder,
32
29
  WebhookIdentityType: () => WebhookIdentityType,
33
30
  bulkCreateProperties: () => bulkCreateProperties4,
@@ -39,7 +36,8 @@ __export(index_exports, {
39
36
  deleteProperty: () => deleteProperty4,
40
37
  getProperty: () => getProperty4,
41
38
  queryProperties: () => queryProperties4,
42
- updateProperty: () => updateProperty4
39
+ updateProperty: () => updateProperty4,
40
+ utils: () => utils
43
41
  });
44
42
  module.exports = __toCommonJS(index_exports);
45
43
 
@@ -58,7 +56,26 @@ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
58
56
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
59
57
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
60
58
  function resolveWixRealEstateV1PropertyServiceUrl(opts) {
61
- const domainToMappings = {};
59
+ const domainToMappings = {
60
+ "manage._base_domain_": [
61
+ {
62
+ srcPath: "/_api/property-service",
63
+ destPath: ""
64
+ }
65
+ ],
66
+ _: [
67
+ {
68
+ srcPath: "/_api/property-service",
69
+ destPath: ""
70
+ }
71
+ ],
72
+ "www.wixapis.com": [
73
+ {
74
+ srcPath: "/real-estate/property-service",
75
+ destPath: ""
76
+ }
77
+ ]
78
+ };
62
79
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
63
80
  }
64
81
  var PACKAGE_NAME = "@wix/auto_sdk_property_property";
@@ -702,7 +719,9 @@ async function typedQueryProperties(query) {
702
719
  throw transformedError;
703
720
  }
704
721
  }
705
- var { QueryBuilder, Filter, Sort } = (0, import_query_builder_utils.createQueryUtils)();
722
+ var utils = {
723
+ ...(0, import_query_builder_utils.createQueryUtils)()
724
+ };
706
725
  async function bulkCreateProperties2(properties, options) {
707
726
  const { httpClient, sideEffects } = arguments[2];
708
727
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -960,12 +979,9 @@ var queryProperties4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule
960
979
  0 && (module.exports = {
961
980
  CustomFieldType,
962
981
  DocumentType,
963
- Filter,
964
982
  PropertySource,
965
983
  PropertyStatus,
966
984
  PropertyType,
967
- QueryBuilder,
968
- Sort,
969
985
  SortOrder,
970
986
  WebhookIdentityType,
971
987
  bulkCreateProperties,
@@ -977,6 +993,7 @@ var queryProperties4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule
977
993
  deleteProperty,
978
994
  getProperty,
979
995
  queryProperties,
980
- updateProperty
996
+ updateProperty,
997
+ utils
981
998
  });
982
999
  //# sourceMappingURL=index.js.map