@wix/auto_sdk_data_collections 1.0.31 → 1.0.33

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.
package/build/cjs/meta.js CHANGED
@@ -20,6 +20,25 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // meta.ts
21
21
  var meta_exports = {};
22
22
  __export(meta_exports, {
23
+ AccessLevelOriginal: () => AccessLevel,
24
+ CollectionOperationOriginal: () => CollectionOperation,
25
+ CollectionTypeOriginal: () => CollectionType,
26
+ DataOperationOriginal: () => DataOperation,
27
+ DirectionOriginal: () => Direction,
28
+ FieldPluginTypeOriginal: () => FieldPluginType,
29
+ FormatOriginal: () => Format,
30
+ IndexSourceOriginal: () => IndexSource,
31
+ IndexStatusOriginal: () => IndexStatus,
32
+ OrderOriginal: () => Order,
33
+ PagingModeOriginal: () => PagingMode,
34
+ PluginTypeOriginal: () => PluginType,
35
+ QueryOperatorOriginal: () => QueryOperator,
36
+ RoleOriginal: () => Role,
37
+ SegmentOriginal: () => Segment,
38
+ SortOrderOriginal: () => SortOrder,
39
+ StatusOriginal: () => Status,
40
+ TypeOriginal: () => Type,
41
+ WebhookIdentityTypeOriginal: () => WebhookIdentityType,
23
42
  createDataCollection: () => createDataCollection2,
24
43
  createDataCollectionField: () => createDataCollectionField2,
25
44
  deleteDataCollection: () => deleteDataCollection2,
@@ -356,6 +375,14 @@ function resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl
356
375
  {
357
376
  srcPath: "/data/v2/bulk/items",
358
377
  destPath: "/v2/bulk/items"
378
+ },
379
+ {
380
+ srcPath: "/data/v2/indexes",
381
+ destPath: "/v2/indexes"
382
+ },
383
+ {
384
+ srcPath: "/data/v1/external-database-connections",
385
+ destPath: "/v1/external-database-connections"
359
386
  }
360
387
  ],
361
388
  "www.wixgateway.com": [
@@ -405,6 +432,9 @@ function createDataCollection(payload) {
405
432
  method: "POST",
406
433
  methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.CreateDataCollection",
407
434
  packageName: PACKAGE_NAME,
435
+ migrationOptions: {
436
+ optInTransformResponse: true
437
+ },
408
438
  url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
409
439
  { protoPath: "/v2/collections", data: serializedData, host }
410
440
  ),
@@ -437,6 +467,9 @@ function getDataCollection(payload) {
437
467
  method: "GET",
438
468
  methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.GetDataCollection",
439
469
  packageName: PACKAGE_NAME,
470
+ migrationOptions: {
471
+ optInTransformResponse: true
472
+ },
440
473
  url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
441
474
  { protoPath: "/v2/collections/{dataCollectionId}", data: payload, host }
442
475
  ),
@@ -473,6 +506,9 @@ function listDataCollections(payload) {
473
506
  method: "GET",
474
507
  methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.ListDataCollections",
475
508
  packageName: PACKAGE_NAME,
509
+ migrationOptions: {
510
+ optInTransformResponse: true
511
+ },
476
512
  url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
477
513
  { protoPath: "/v2/collections", data: payload, host }
478
514
  ),
@@ -521,6 +557,9 @@ function updateDataCollection(payload) {
521
557
  method: "PUT",
522
558
  methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdateDataCollection",
523
559
  packageName: PACKAGE_NAME,
560
+ migrationOptions: {
561
+ optInTransformResponse: true
562
+ },
524
563
  url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
525
564
  { protoPath: "/v2/collections", data: serializedData, host }
526
565
  ),
@@ -553,6 +592,9 @@ function deleteDataCollection(payload) {
553
592
  method: "DELETE",
554
593
  methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDataCollection",
555
594
  packageName: PACKAGE_NAME,
595
+ migrationOptions: {
596
+ optInTransformResponse: true
597
+ },
556
598
  url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
557
599
  { protoPath: "/v2/collections/{dataCollectionId}", data: payload, host }
558
600
  ),
@@ -569,6 +611,9 @@ function restoreDataCollection(payload) {
569
611
  method: "POST",
570
612
  methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.RestoreDataCollection",
571
613
  packageName: PACKAGE_NAME,
614
+ migrationOptions: {
615
+ optInTransformResponse: true
616
+ },
572
617
  url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
573
618
  {
574
619
  protoPath: "/v2/collections/restore/{dataCollectionId}",
@@ -614,6 +659,9 @@ function createDataCollectionField(payload) {
614
659
  method: "POST",
615
660
  methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.CreateDataCollectionField",
616
661
  packageName: PACKAGE_NAME,
662
+ migrationOptions: {
663
+ optInTransformResponse: true
664
+ },
617
665
  url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
618
666
  {
619
667
  protoPath: "/v2/collections/create-field",
@@ -659,6 +707,9 @@ function updateDataCollectionField(payload) {
659
707
  method: "POST",
660
708
  methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdateDataCollectionField",
661
709
  packageName: PACKAGE_NAME,
710
+ migrationOptions: {
711
+ optInTransformResponse: true
712
+ },
662
713
  url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
663
714
  {
664
715
  protoPath: "/v2/collections/update-field",
@@ -695,6 +746,9 @@ function deleteDataCollectionField(payload) {
695
746
  method: "POST",
696
747
  methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDataCollectionField",
697
748
  packageName: PACKAGE_NAME,
749
+ migrationOptions: {
750
+ optInTransformResponse: true
751
+ },
698
752
  url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
699
753
  { protoPath: "/v2/collections/delete-field", data: payload, host }
700
754
  ),
@@ -721,6 +775,192 @@ function deleteDataCollectionField(payload) {
721
775
  return __deleteDataCollectionField;
722
776
  }
723
777
 
778
+ // src/data-v2-data-collection-collections.types.ts
779
+ var CollectionType = /* @__PURE__ */ ((CollectionType2) => {
780
+ CollectionType2["NATIVE"] = "NATIVE";
781
+ CollectionType2["WIX_APP"] = "WIX_APP";
782
+ CollectionType2["BLOCKS_APP"] = "BLOCKS_APP";
783
+ CollectionType2["EXTERNAL"] = "EXTERNAL";
784
+ return CollectionType2;
785
+ })(CollectionType || {});
786
+ var Direction = /* @__PURE__ */ ((Direction2) => {
787
+ Direction2["ASC"] = "ASC";
788
+ Direction2["DESC"] = "DESC";
789
+ return Direction2;
790
+ })(Direction || {});
791
+ var DataOperation = /* @__PURE__ */ ((DataOperation2) => {
792
+ DataOperation2["AGGREGATE"] = "AGGREGATE";
793
+ DataOperation2["BULK_INSERT"] = "BULK_INSERT";
794
+ DataOperation2["BULK_REMOVE"] = "BULK_REMOVE";
795
+ DataOperation2["BULK_SAVE"] = "BULK_SAVE";
796
+ DataOperation2["BULK_UPDATE"] = "BULK_UPDATE";
797
+ DataOperation2["COUNT"] = "COUNT";
798
+ DataOperation2["DISTINCT"] = "DISTINCT";
799
+ DataOperation2["FIND"] = "FIND";
800
+ DataOperation2["GET"] = "GET";
801
+ DataOperation2["INSERT"] = "INSERT";
802
+ DataOperation2["INSERT_REFERENCE"] = "INSERT_REFERENCE";
803
+ DataOperation2["IS_REFERENCED"] = "IS_REFERENCED";
804
+ DataOperation2["QUERY_REFERENCED"] = "QUERY_REFERENCED";
805
+ DataOperation2["REMOVE"] = "REMOVE";
806
+ DataOperation2["REMOVE_REFERENCE"] = "REMOVE_REFERENCE";
807
+ DataOperation2["REPLACE_REFERENCES"] = "REPLACE_REFERENCES";
808
+ DataOperation2["SAVE"] = "SAVE";
809
+ DataOperation2["TRUNCATE"] = "TRUNCATE";
810
+ DataOperation2["UPDATE"] = "UPDATE";
811
+ DataOperation2["PATCH"] = "PATCH";
812
+ DataOperation2["BULK_PATCH"] = "BULK_PATCH";
813
+ return DataOperation2;
814
+ })(DataOperation || {});
815
+ var CollectionOperation = /* @__PURE__ */ ((CollectionOperation2) => {
816
+ CollectionOperation2["UPDATE"] = "UPDATE";
817
+ CollectionOperation2["REMOVE"] = "REMOVE";
818
+ return CollectionOperation2;
819
+ })(CollectionOperation || {});
820
+ var Type = /* @__PURE__ */ ((Type2) => {
821
+ Type2["UNKNOWN_FIELD_TYPE"] = "UNKNOWN_FIELD_TYPE";
822
+ Type2["TEXT"] = "TEXT";
823
+ Type2["NUMBER"] = "NUMBER";
824
+ Type2["DATE"] = "DATE";
825
+ Type2["DATETIME"] = "DATETIME";
826
+ Type2["IMAGE"] = "IMAGE";
827
+ Type2["BOOLEAN"] = "BOOLEAN";
828
+ Type2["DOCUMENT"] = "DOCUMENT";
829
+ Type2["URL"] = "URL";
830
+ Type2["RICH_TEXT"] = "RICH_TEXT";
831
+ Type2["VIDEO"] = "VIDEO";
832
+ Type2["ANY"] = "ANY";
833
+ Type2["ARRAY_STRING"] = "ARRAY_STRING";
834
+ Type2["ARRAY_DOCUMENT"] = "ARRAY_DOCUMENT";
835
+ Type2["AUDIO"] = "AUDIO";
836
+ Type2["TIME"] = "TIME";
837
+ Type2["LANGUAGE"] = "LANGUAGE";
838
+ Type2["RICH_CONTENT"] = "RICH_CONTENT";
839
+ Type2["MEDIA_GALLERY"] = "MEDIA_GALLERY";
840
+ Type2["ADDRESS"] = "ADDRESS";
841
+ Type2["PAGE_LINK"] = "PAGE_LINK";
842
+ Type2["REFERENCE"] = "REFERENCE";
843
+ Type2["MULTI_REFERENCE"] = "MULTI_REFERENCE";
844
+ Type2["OBJECT"] = "OBJECT";
845
+ Type2["ARRAY"] = "ARRAY";
846
+ Type2["LEGACY_TIME"] = "LEGACY_TIME";
847
+ Type2["LEGACY_BOOK"] = "LEGACY_BOOK";
848
+ Type2["LEGACY_EXTERNAL_URL"] = "LEGACY_EXTERNAL_URL";
849
+ Type2["LEGACY_BROKEN_REFERENCE"] = "LEGACY_BROKEN_REFERENCE";
850
+ Type2["LEGACY_IMAGE"] = "LEGACY_IMAGE";
851
+ Type2["LEGACY_COLOR"] = "LEGACY_COLOR";
852
+ Type2["LEGACY_EXTERNAL_VIDEO"] = "LEGACY_EXTERNAL_VIDEO";
853
+ return Type2;
854
+ })(Type || {});
855
+ var QueryOperator = /* @__PURE__ */ ((QueryOperator2) => {
856
+ QueryOperator2["EQ"] = "EQ";
857
+ QueryOperator2["LT"] = "LT";
858
+ QueryOperator2["GT"] = "GT";
859
+ QueryOperator2["NE"] = "NE";
860
+ QueryOperator2["LTE"] = "LTE";
861
+ QueryOperator2["GTE"] = "GTE";
862
+ QueryOperator2["STARTS_WITH"] = "STARTS_WITH";
863
+ QueryOperator2["ENDS_WITH"] = "ENDS_WITH";
864
+ QueryOperator2["CONTAINS"] = "CONTAINS";
865
+ QueryOperator2["HAS_SOME"] = "HAS_SOME";
866
+ QueryOperator2["HAS_ALL"] = "HAS_ALL";
867
+ QueryOperator2["EXISTS"] = "EXISTS";
868
+ QueryOperator2["URLIZED"] = "URLIZED";
869
+ return QueryOperator2;
870
+ })(QueryOperator || {});
871
+ var FieldPluginType = /* @__PURE__ */ ((FieldPluginType2) => {
872
+ FieldPluginType2["UNKNOWN"] = "UNKNOWN";
873
+ FieldPluginType2["CMS"] = "CMS";
874
+ return FieldPluginType2;
875
+ })(FieldPluginType || {});
876
+ var Role = /* @__PURE__ */ ((Role2) => {
877
+ Role2["UNKNOWN_ROLE"] = "UNKNOWN_ROLE";
878
+ Role2["ADMIN"] = "ADMIN";
879
+ Role2["SITE_MEMBER_AUTHOR"] = "SITE_MEMBER_AUTHOR";
880
+ Role2["SITE_MEMBER"] = "SITE_MEMBER";
881
+ Role2["ANYONE"] = "ANYONE";
882
+ return Role2;
883
+ })(Role || {});
884
+ var Status = /* @__PURE__ */ ((Status2) => {
885
+ Status2["UNKNOWN_PUBLISH_PLUGIN_STATUS"] = "UNKNOWN_PUBLISH_PLUGIN_STATUS";
886
+ Status2["PUBLISHED"] = "PUBLISHED";
887
+ Status2["DRAFT"] = "DRAFT";
888
+ return Status2;
889
+ })(Status || {});
890
+ var Format = /* @__PURE__ */ ((Format2) => {
891
+ Format2["UNKNOWN_URLIZED_PLUGIN_FORMAT"] = "UNKNOWN_URLIZED_PLUGIN_FORMAT";
892
+ Format2["ORIGINAL"] = "ORIGINAL";
893
+ Format2["PLAIN"] = "PLAIN";
894
+ return Format2;
895
+ })(Format || {});
896
+ var PluginType = /* @__PURE__ */ ((PluginType2) => {
897
+ PluginType2["UNKNOWN_PLUGIN_TYPE"] = "UNKNOWN_PLUGIN_TYPE";
898
+ PluginType2["PUBLISH"] = "PUBLISH";
899
+ PluginType2["SINGLE_ITEM"] = "SINGLE_ITEM";
900
+ PluginType2["URLIZED"] = "URLIZED";
901
+ PluginType2["GRIDAPPLESS"] = "GRIDAPPLESS";
902
+ PluginType2["MULTILINGUAL"] = "MULTILINGUAL";
903
+ PluginType2["SHARED"] = "SHARED";
904
+ PluginType2["EDITABLE_PAGE_LINK"] = "EDITABLE_PAGE_LINK";
905
+ PluginType2["CMS"] = "CMS";
906
+ return PluginType2;
907
+ })(PluginType || {});
908
+ var PagingMode = /* @__PURE__ */ ((PagingMode2) => {
909
+ PagingMode2["OFFSET"] = "OFFSET";
910
+ PagingMode2["CURSOR"] = "CURSOR";
911
+ return PagingMode2;
912
+ })(PagingMode || {});
913
+ var AccessLevel = /* @__PURE__ */ ((AccessLevel2) => {
914
+ AccessLevel2["UNDEFINED"] = "UNDEFINED";
915
+ AccessLevel2["ANYONE"] = "ANYONE";
916
+ AccessLevel2["SITE_MEMBER"] = "SITE_MEMBER";
917
+ AccessLevel2["SITE_MEMBER_AUTHOR"] = "SITE_MEMBER_AUTHOR";
918
+ AccessLevel2["CMS_EDITOR"] = "CMS_EDITOR";
919
+ AccessLevel2["PRIVILEGED"] = "PRIVILEGED";
920
+ return AccessLevel2;
921
+ })(AccessLevel || {});
922
+ var Segment = /* @__PURE__ */ ((Segment2) => {
923
+ Segment2["UNKNOWN_SEGMENT"] = "UNKNOWN_SEGMENT";
924
+ Segment2["PUBLIC"] = "PUBLIC";
925
+ Segment2["DEV"] = "DEV";
926
+ return Segment2;
927
+ })(Segment || {});
928
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
929
+ SortOrder2["ASC"] = "ASC";
930
+ SortOrder2["DESC"] = "DESC";
931
+ return SortOrder2;
932
+ })(SortOrder || {});
933
+ var Order = /* @__PURE__ */ ((Order2) => {
934
+ Order2["ASC"] = "ASC";
935
+ Order2["DESC"] = "DESC";
936
+ return Order2;
937
+ })(Order || {});
938
+ var IndexStatus = /* @__PURE__ */ ((IndexStatus2) => {
939
+ IndexStatus2["UNKNOWN"] = "UNKNOWN";
940
+ IndexStatus2["BUILDING"] = "BUILDING";
941
+ IndexStatus2["ACTIVE"] = "ACTIVE";
942
+ IndexStatus2["DROPPING"] = "DROPPING";
943
+ IndexStatus2["DROPPED"] = "DROPPED";
944
+ IndexStatus2["FAILED"] = "FAILED";
945
+ IndexStatus2["INVALID"] = "INVALID";
946
+ return IndexStatus2;
947
+ })(IndexStatus || {});
948
+ var IndexSource = /* @__PURE__ */ ((IndexSource2) => {
949
+ IndexSource2["UNKNOWN_INDEX_SOURCE"] = "UNKNOWN_INDEX_SOURCE";
950
+ IndexSource2["SYSTEM"] = "SYSTEM";
951
+ IndexSource2["USER"] = "USER";
952
+ IndexSource2["AUTO"] = "AUTO";
953
+ return IndexSource2;
954
+ })(IndexSource || {});
955
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
956
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
957
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
958
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
959
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
960
+ WebhookIdentityType2["APP"] = "APP";
961
+ return WebhookIdentityType2;
962
+ })(WebhookIdentityType || {});
963
+
724
964
  // src/data-v2-data-collection-collections.meta.ts
725
965
  function createDataCollection2() {
726
966
  const payload = {};
@@ -886,6 +1126,25 @@ function deleteDataCollectionField2() {
886
1126
  }
887
1127
  // Annotate the CommonJS export names for ESM import in node:
888
1128
  0 && (module.exports = {
1129
+ AccessLevelOriginal,
1130
+ CollectionOperationOriginal,
1131
+ CollectionTypeOriginal,
1132
+ DataOperationOriginal,
1133
+ DirectionOriginal,
1134
+ FieldPluginTypeOriginal,
1135
+ FormatOriginal,
1136
+ IndexSourceOriginal,
1137
+ IndexStatusOriginal,
1138
+ OrderOriginal,
1139
+ PagingModeOriginal,
1140
+ PluginTypeOriginal,
1141
+ QueryOperatorOriginal,
1142
+ RoleOriginal,
1143
+ SegmentOriginal,
1144
+ SortOrderOriginal,
1145
+ StatusOriginal,
1146
+ TypeOriginal,
1147
+ WebhookIdentityTypeOriginal,
889
1148
  createDataCollection,
890
1149
  createDataCollectionField,
891
1150
  deleteDataCollection,