@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/es/meta.mjs CHANGED
@@ -322,6 +322,14 @@ function resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl
322
322
  {
323
323
  srcPath: "/data/v2/bulk/items",
324
324
  destPath: "/v2/bulk/items"
325
+ },
326
+ {
327
+ srcPath: "/data/v2/indexes",
328
+ destPath: "/v2/indexes"
329
+ },
330
+ {
331
+ srcPath: "/data/v1/external-database-connections",
332
+ destPath: "/v1/external-database-connections"
325
333
  }
326
334
  ],
327
335
  "www.wixgateway.com": [
@@ -371,6 +379,9 @@ function createDataCollection(payload) {
371
379
  method: "POST",
372
380
  methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.CreateDataCollection",
373
381
  packageName: PACKAGE_NAME,
382
+ migrationOptions: {
383
+ optInTransformResponse: true
384
+ },
374
385
  url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
375
386
  { protoPath: "/v2/collections", data: serializedData, host }
376
387
  ),
@@ -403,6 +414,9 @@ function getDataCollection(payload) {
403
414
  method: "GET",
404
415
  methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.GetDataCollection",
405
416
  packageName: PACKAGE_NAME,
417
+ migrationOptions: {
418
+ optInTransformResponse: true
419
+ },
406
420
  url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
407
421
  { protoPath: "/v2/collections/{dataCollectionId}", data: payload, host }
408
422
  ),
@@ -439,6 +453,9 @@ function listDataCollections(payload) {
439
453
  method: "GET",
440
454
  methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.ListDataCollections",
441
455
  packageName: PACKAGE_NAME,
456
+ migrationOptions: {
457
+ optInTransformResponse: true
458
+ },
442
459
  url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
443
460
  { protoPath: "/v2/collections", data: payload, host }
444
461
  ),
@@ -487,6 +504,9 @@ function updateDataCollection(payload) {
487
504
  method: "PUT",
488
505
  methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdateDataCollection",
489
506
  packageName: PACKAGE_NAME,
507
+ migrationOptions: {
508
+ optInTransformResponse: true
509
+ },
490
510
  url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
491
511
  { protoPath: "/v2/collections", data: serializedData, host }
492
512
  ),
@@ -519,6 +539,9 @@ function deleteDataCollection(payload) {
519
539
  method: "DELETE",
520
540
  methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDataCollection",
521
541
  packageName: PACKAGE_NAME,
542
+ migrationOptions: {
543
+ optInTransformResponse: true
544
+ },
522
545
  url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
523
546
  { protoPath: "/v2/collections/{dataCollectionId}", data: payload, host }
524
547
  ),
@@ -535,6 +558,9 @@ function restoreDataCollection(payload) {
535
558
  method: "POST",
536
559
  methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.RestoreDataCollection",
537
560
  packageName: PACKAGE_NAME,
561
+ migrationOptions: {
562
+ optInTransformResponse: true
563
+ },
538
564
  url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
539
565
  {
540
566
  protoPath: "/v2/collections/restore/{dataCollectionId}",
@@ -580,6 +606,9 @@ function createDataCollectionField(payload) {
580
606
  method: "POST",
581
607
  methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.CreateDataCollectionField",
582
608
  packageName: PACKAGE_NAME,
609
+ migrationOptions: {
610
+ optInTransformResponse: true
611
+ },
583
612
  url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
584
613
  {
585
614
  protoPath: "/v2/collections/create-field",
@@ -625,6 +654,9 @@ function updateDataCollectionField(payload) {
625
654
  method: "POST",
626
655
  methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdateDataCollectionField",
627
656
  packageName: PACKAGE_NAME,
657
+ migrationOptions: {
658
+ optInTransformResponse: true
659
+ },
628
660
  url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
629
661
  {
630
662
  protoPath: "/v2/collections/update-field",
@@ -661,6 +693,9 @@ function deleteDataCollectionField(payload) {
661
693
  method: "POST",
662
694
  methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDataCollectionField",
663
695
  packageName: PACKAGE_NAME,
696
+ migrationOptions: {
697
+ optInTransformResponse: true
698
+ },
664
699
  url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
665
700
  { protoPath: "/v2/collections/delete-field", data: payload, host }
666
701
  ),
@@ -687,6 +722,192 @@ function deleteDataCollectionField(payload) {
687
722
  return __deleteDataCollectionField;
688
723
  }
689
724
 
725
+ // src/data-v2-data-collection-collections.types.ts
726
+ var CollectionType = /* @__PURE__ */ ((CollectionType2) => {
727
+ CollectionType2["NATIVE"] = "NATIVE";
728
+ CollectionType2["WIX_APP"] = "WIX_APP";
729
+ CollectionType2["BLOCKS_APP"] = "BLOCKS_APP";
730
+ CollectionType2["EXTERNAL"] = "EXTERNAL";
731
+ return CollectionType2;
732
+ })(CollectionType || {});
733
+ var Direction = /* @__PURE__ */ ((Direction2) => {
734
+ Direction2["ASC"] = "ASC";
735
+ Direction2["DESC"] = "DESC";
736
+ return Direction2;
737
+ })(Direction || {});
738
+ var DataOperation = /* @__PURE__ */ ((DataOperation2) => {
739
+ DataOperation2["AGGREGATE"] = "AGGREGATE";
740
+ DataOperation2["BULK_INSERT"] = "BULK_INSERT";
741
+ DataOperation2["BULK_REMOVE"] = "BULK_REMOVE";
742
+ DataOperation2["BULK_SAVE"] = "BULK_SAVE";
743
+ DataOperation2["BULK_UPDATE"] = "BULK_UPDATE";
744
+ DataOperation2["COUNT"] = "COUNT";
745
+ DataOperation2["DISTINCT"] = "DISTINCT";
746
+ DataOperation2["FIND"] = "FIND";
747
+ DataOperation2["GET"] = "GET";
748
+ DataOperation2["INSERT"] = "INSERT";
749
+ DataOperation2["INSERT_REFERENCE"] = "INSERT_REFERENCE";
750
+ DataOperation2["IS_REFERENCED"] = "IS_REFERENCED";
751
+ DataOperation2["QUERY_REFERENCED"] = "QUERY_REFERENCED";
752
+ DataOperation2["REMOVE"] = "REMOVE";
753
+ DataOperation2["REMOVE_REFERENCE"] = "REMOVE_REFERENCE";
754
+ DataOperation2["REPLACE_REFERENCES"] = "REPLACE_REFERENCES";
755
+ DataOperation2["SAVE"] = "SAVE";
756
+ DataOperation2["TRUNCATE"] = "TRUNCATE";
757
+ DataOperation2["UPDATE"] = "UPDATE";
758
+ DataOperation2["PATCH"] = "PATCH";
759
+ DataOperation2["BULK_PATCH"] = "BULK_PATCH";
760
+ return DataOperation2;
761
+ })(DataOperation || {});
762
+ var CollectionOperation = /* @__PURE__ */ ((CollectionOperation2) => {
763
+ CollectionOperation2["UPDATE"] = "UPDATE";
764
+ CollectionOperation2["REMOVE"] = "REMOVE";
765
+ return CollectionOperation2;
766
+ })(CollectionOperation || {});
767
+ var Type = /* @__PURE__ */ ((Type2) => {
768
+ Type2["UNKNOWN_FIELD_TYPE"] = "UNKNOWN_FIELD_TYPE";
769
+ Type2["TEXT"] = "TEXT";
770
+ Type2["NUMBER"] = "NUMBER";
771
+ Type2["DATE"] = "DATE";
772
+ Type2["DATETIME"] = "DATETIME";
773
+ Type2["IMAGE"] = "IMAGE";
774
+ Type2["BOOLEAN"] = "BOOLEAN";
775
+ Type2["DOCUMENT"] = "DOCUMENT";
776
+ Type2["URL"] = "URL";
777
+ Type2["RICH_TEXT"] = "RICH_TEXT";
778
+ Type2["VIDEO"] = "VIDEO";
779
+ Type2["ANY"] = "ANY";
780
+ Type2["ARRAY_STRING"] = "ARRAY_STRING";
781
+ Type2["ARRAY_DOCUMENT"] = "ARRAY_DOCUMENT";
782
+ Type2["AUDIO"] = "AUDIO";
783
+ Type2["TIME"] = "TIME";
784
+ Type2["LANGUAGE"] = "LANGUAGE";
785
+ Type2["RICH_CONTENT"] = "RICH_CONTENT";
786
+ Type2["MEDIA_GALLERY"] = "MEDIA_GALLERY";
787
+ Type2["ADDRESS"] = "ADDRESS";
788
+ Type2["PAGE_LINK"] = "PAGE_LINK";
789
+ Type2["REFERENCE"] = "REFERENCE";
790
+ Type2["MULTI_REFERENCE"] = "MULTI_REFERENCE";
791
+ Type2["OBJECT"] = "OBJECT";
792
+ Type2["ARRAY"] = "ARRAY";
793
+ Type2["LEGACY_TIME"] = "LEGACY_TIME";
794
+ Type2["LEGACY_BOOK"] = "LEGACY_BOOK";
795
+ Type2["LEGACY_EXTERNAL_URL"] = "LEGACY_EXTERNAL_URL";
796
+ Type2["LEGACY_BROKEN_REFERENCE"] = "LEGACY_BROKEN_REFERENCE";
797
+ Type2["LEGACY_IMAGE"] = "LEGACY_IMAGE";
798
+ Type2["LEGACY_COLOR"] = "LEGACY_COLOR";
799
+ Type2["LEGACY_EXTERNAL_VIDEO"] = "LEGACY_EXTERNAL_VIDEO";
800
+ return Type2;
801
+ })(Type || {});
802
+ var QueryOperator = /* @__PURE__ */ ((QueryOperator2) => {
803
+ QueryOperator2["EQ"] = "EQ";
804
+ QueryOperator2["LT"] = "LT";
805
+ QueryOperator2["GT"] = "GT";
806
+ QueryOperator2["NE"] = "NE";
807
+ QueryOperator2["LTE"] = "LTE";
808
+ QueryOperator2["GTE"] = "GTE";
809
+ QueryOperator2["STARTS_WITH"] = "STARTS_WITH";
810
+ QueryOperator2["ENDS_WITH"] = "ENDS_WITH";
811
+ QueryOperator2["CONTAINS"] = "CONTAINS";
812
+ QueryOperator2["HAS_SOME"] = "HAS_SOME";
813
+ QueryOperator2["HAS_ALL"] = "HAS_ALL";
814
+ QueryOperator2["EXISTS"] = "EXISTS";
815
+ QueryOperator2["URLIZED"] = "URLIZED";
816
+ return QueryOperator2;
817
+ })(QueryOperator || {});
818
+ var FieldPluginType = /* @__PURE__ */ ((FieldPluginType2) => {
819
+ FieldPluginType2["UNKNOWN"] = "UNKNOWN";
820
+ FieldPluginType2["CMS"] = "CMS";
821
+ return FieldPluginType2;
822
+ })(FieldPluginType || {});
823
+ var Role = /* @__PURE__ */ ((Role2) => {
824
+ Role2["UNKNOWN_ROLE"] = "UNKNOWN_ROLE";
825
+ Role2["ADMIN"] = "ADMIN";
826
+ Role2["SITE_MEMBER_AUTHOR"] = "SITE_MEMBER_AUTHOR";
827
+ Role2["SITE_MEMBER"] = "SITE_MEMBER";
828
+ Role2["ANYONE"] = "ANYONE";
829
+ return Role2;
830
+ })(Role || {});
831
+ var Status = /* @__PURE__ */ ((Status2) => {
832
+ Status2["UNKNOWN_PUBLISH_PLUGIN_STATUS"] = "UNKNOWN_PUBLISH_PLUGIN_STATUS";
833
+ Status2["PUBLISHED"] = "PUBLISHED";
834
+ Status2["DRAFT"] = "DRAFT";
835
+ return Status2;
836
+ })(Status || {});
837
+ var Format = /* @__PURE__ */ ((Format2) => {
838
+ Format2["UNKNOWN_URLIZED_PLUGIN_FORMAT"] = "UNKNOWN_URLIZED_PLUGIN_FORMAT";
839
+ Format2["ORIGINAL"] = "ORIGINAL";
840
+ Format2["PLAIN"] = "PLAIN";
841
+ return Format2;
842
+ })(Format || {});
843
+ var PluginType = /* @__PURE__ */ ((PluginType2) => {
844
+ PluginType2["UNKNOWN_PLUGIN_TYPE"] = "UNKNOWN_PLUGIN_TYPE";
845
+ PluginType2["PUBLISH"] = "PUBLISH";
846
+ PluginType2["SINGLE_ITEM"] = "SINGLE_ITEM";
847
+ PluginType2["URLIZED"] = "URLIZED";
848
+ PluginType2["GRIDAPPLESS"] = "GRIDAPPLESS";
849
+ PluginType2["MULTILINGUAL"] = "MULTILINGUAL";
850
+ PluginType2["SHARED"] = "SHARED";
851
+ PluginType2["EDITABLE_PAGE_LINK"] = "EDITABLE_PAGE_LINK";
852
+ PluginType2["CMS"] = "CMS";
853
+ return PluginType2;
854
+ })(PluginType || {});
855
+ var PagingMode = /* @__PURE__ */ ((PagingMode2) => {
856
+ PagingMode2["OFFSET"] = "OFFSET";
857
+ PagingMode2["CURSOR"] = "CURSOR";
858
+ return PagingMode2;
859
+ })(PagingMode || {});
860
+ var AccessLevel = /* @__PURE__ */ ((AccessLevel2) => {
861
+ AccessLevel2["UNDEFINED"] = "UNDEFINED";
862
+ AccessLevel2["ANYONE"] = "ANYONE";
863
+ AccessLevel2["SITE_MEMBER"] = "SITE_MEMBER";
864
+ AccessLevel2["SITE_MEMBER_AUTHOR"] = "SITE_MEMBER_AUTHOR";
865
+ AccessLevel2["CMS_EDITOR"] = "CMS_EDITOR";
866
+ AccessLevel2["PRIVILEGED"] = "PRIVILEGED";
867
+ return AccessLevel2;
868
+ })(AccessLevel || {});
869
+ var Segment = /* @__PURE__ */ ((Segment2) => {
870
+ Segment2["UNKNOWN_SEGMENT"] = "UNKNOWN_SEGMENT";
871
+ Segment2["PUBLIC"] = "PUBLIC";
872
+ Segment2["DEV"] = "DEV";
873
+ return Segment2;
874
+ })(Segment || {});
875
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
876
+ SortOrder2["ASC"] = "ASC";
877
+ SortOrder2["DESC"] = "DESC";
878
+ return SortOrder2;
879
+ })(SortOrder || {});
880
+ var Order = /* @__PURE__ */ ((Order2) => {
881
+ Order2["ASC"] = "ASC";
882
+ Order2["DESC"] = "DESC";
883
+ return Order2;
884
+ })(Order || {});
885
+ var IndexStatus = /* @__PURE__ */ ((IndexStatus2) => {
886
+ IndexStatus2["UNKNOWN"] = "UNKNOWN";
887
+ IndexStatus2["BUILDING"] = "BUILDING";
888
+ IndexStatus2["ACTIVE"] = "ACTIVE";
889
+ IndexStatus2["DROPPING"] = "DROPPING";
890
+ IndexStatus2["DROPPED"] = "DROPPED";
891
+ IndexStatus2["FAILED"] = "FAILED";
892
+ IndexStatus2["INVALID"] = "INVALID";
893
+ return IndexStatus2;
894
+ })(IndexStatus || {});
895
+ var IndexSource = /* @__PURE__ */ ((IndexSource2) => {
896
+ IndexSource2["UNKNOWN_INDEX_SOURCE"] = "UNKNOWN_INDEX_SOURCE";
897
+ IndexSource2["SYSTEM"] = "SYSTEM";
898
+ IndexSource2["USER"] = "USER";
899
+ IndexSource2["AUTO"] = "AUTO";
900
+ return IndexSource2;
901
+ })(IndexSource || {});
902
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
903
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
904
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
905
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
906
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
907
+ WebhookIdentityType2["APP"] = "APP";
908
+ return WebhookIdentityType2;
909
+ })(WebhookIdentityType || {});
910
+
690
911
  // src/data-v2-data-collection-collections.meta.ts
691
912
  function createDataCollection2() {
692
913
  const payload = {};
@@ -851,6 +1072,25 @@ function deleteDataCollectionField2() {
851
1072
  };
852
1073
  }
853
1074
  export {
1075
+ AccessLevel as AccessLevelOriginal,
1076
+ CollectionOperation as CollectionOperationOriginal,
1077
+ CollectionType as CollectionTypeOriginal,
1078
+ DataOperation as DataOperationOriginal,
1079
+ Direction as DirectionOriginal,
1080
+ FieldPluginType as FieldPluginTypeOriginal,
1081
+ Format as FormatOriginal,
1082
+ IndexSource as IndexSourceOriginal,
1083
+ IndexStatus as IndexStatusOriginal,
1084
+ Order as OrderOriginal,
1085
+ PagingMode as PagingModeOriginal,
1086
+ PluginType as PluginTypeOriginal,
1087
+ QueryOperator as QueryOperatorOriginal,
1088
+ Role as RoleOriginal,
1089
+ Segment as SegmentOriginal,
1090
+ SortOrder as SortOrderOriginal,
1091
+ Status as StatusOriginal,
1092
+ Type as TypeOriginal,
1093
+ WebhookIdentityType as WebhookIdentityTypeOriginal,
854
1094
  createDataCollection2 as createDataCollection,
855
1095
  createDataCollectionField2 as createDataCollectionField,
856
1096
  deleteDataCollection2 as deleteDataCollection,