@wix/bex-utils 2.36.0 → 2.39.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 (106) hide show
  1. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/builders.impl.d.ts +2 -1
  2. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/builders.impl.js +27 -1
  3. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/builders.impl.js.map +1 -1
  4. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/http.impl.js +6 -0
  5. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/http.impl.js.map +1 -1
  6. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/proto/client/proto-generated.d.ts +2047 -6692
  7. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/proto/proto-generated.d.ts +543 -2894
  8. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/proto/proto-generated.js +111646 -145254
  9. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/proto/server/proto-generated.d.ts +2169 -6764
  10. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/types.impl.d.ts +55 -13
  11. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/types.impl.js +16 -1
  12. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/types.impl.js.map +1 -1
  13. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/builders.impl.d.ts +2 -1
  14. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/builders.impl.js +25 -0
  15. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/builders.impl.js.map +1 -1
  16. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/http.impl.js +6 -0
  17. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/http.impl.js.map +1 -1
  18. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/types.impl.d.ts +55 -13
  19. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/types.impl.js +16 -1
  20. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/types.impl.js.map +1 -1
  21. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/package.json +2 -2
  22. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/advanced-seo-api.proto +3 -3
  23. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/additional_fee.proto +47 -0
  24. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/catalog_reference.proto +1 -1
  25. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/description_line.proto +4 -1
  26. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/item_data.proto +10 -2
  27. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/payment_option.proto +3 -3
  28. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/platform_catalog_spi.proto +12 -0
  29. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/policy.proto +14 -0
  30. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/subscription_option_info.proto +25 -6
  31. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/commons/api/platform_search.proto +2 -2
  32. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/platform_common/api/location.proto +16 -0
  33. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/platform_common/api/pickup_address.proto +2 -0
  34. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/platform_common/api/price.proto +0 -1
  35. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/metasite/event/api/dto.proto +6 -4
  36. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/metasite/event/api/events.proto +15 -0
  37. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/annotations.proto +2 -0
  38. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/callback.proto +7 -0
  39. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/errors.proto +2 -0
  40. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/validations.proto +5 -0
  41. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/catalog.proto +1 -0
  42. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/media.proto +6 -1
  43. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/price.proto +3 -1
  44. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/product.proto +3 -1
  45. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/productOption.proto +6 -3
  46. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/domainevents/domainevents.proto +1 -1
  47. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/media.proto +17 -0
  48. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/wixlink.proto +2 -0
  49. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v1/cart.proto +4 -0
  50. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v1/coupon.proto +3 -0
  51. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v1/coupons.proto +8 -0
  52. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v1/response-status.proto +1 -0
  53. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v1/specification.proto +4 -0
  54. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/cart.proto +3 -0
  55. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/coupon.proto +2 -0
  56. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/couponAppliedEvent.proto +1 -0
  57. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/coupons-manager-ui.proto +5 -0
  58. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/coupons.proto +12 -0
  59. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/internal-coupons.proto +2 -0
  60. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/response-status.proto +1 -0
  61. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/scope.proto +1 -0
  62. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/specification.proto +1 -0
  63. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/infra/asyncjobs/v1/AsyncJob.proto +132 -132
  64. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/infra/asyncjobs/v1/AsyncJobItem.proto +14 -14
  65. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/infra/asyncjobs/v1/AsyncJobService.proto +13 -13
  66. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/infra/asyncjobs/v1/upstream/wix/common/paging.proto +17 -17
  67. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/inventory/api/v1/inventory.proto +1 -1
  68. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/inventory/api/v1/inventoryItem.proto +5 -6
  69. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/inventory/api/v1/locationInventoryItem.proto +1 -1
  70. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/inventory/api/v1/locationInventoryMessages.proto +1 -1
  71. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/paypal-payment-method.proto +3 -0
  72. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/payment.proto +3 -0
  73. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/spi/definitions.proto +2 -1
  74. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/stores/catalog/provision/v1/provision.proto +9 -1
  75. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/stores/catalog/provision/v1/provision_action_events.proto +15 -0
  76. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/stores/catalog/provision/v1/stores_provision_service.proto +11 -26
  77. package/@wix/bex-bundled-mini-essentials/CHANGELOG.md +12 -0
  78. package/@wix/bex-bundled-mini-essentials/dist/tsconfig.tsbuildinfo +1 -1
  79. package/@wix/bex-bundled-mini-essentials/package.json +1 -1
  80. package/package.json +3 -3
  81. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/site/properties/upstream/wix/common/address.proto +0 -38
  82. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/html/cache/invalidate/InvalidateCache.proto +0 -46
  83. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/html/cache/invalidate/InvalidateCacheInternal.proto +0 -25
  84. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/html/cache/invalidate/InvalidateCacheService.proto +0 -80
  85. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/html/cache/invalidate/v2/invalidate_cache.proto +0 -27
  86. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/immigrator/tasks/api/generic/bulk_migration_service.proto +0 -34
  87. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/immigrator/tasks/api/generic/single_migration_service.proto +0 -25
  88. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/locations/backoffice-service.proto +0 -40
  89. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/locations/location.proto +0 -155
  90. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/locations/locations-service.proto +0 -484
  91. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/locations/messaging-service.proto +0 -32
  92. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/locations/pagination.proto +0 -22
  93. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/siteproperties/api/v4/notifications.proto +0 -89
  94. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/siteproperties/api/v4/properties-sections.proto +0 -23
  95. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/siteproperties/api/v4/properties.proto +0 -213
  96. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wixpress/siteproperties/api/v4/service.proto +0 -268
  97. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/identification2.proto +0 -165
  98. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/identity2.proto +0 -173
  99. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/identity_refresh.proto +0 -42
  100. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/site/properties/v5/properties.proto +0 -155
  101. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/site/properties/v5/site_properties_service.proto +0 -324
  102. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/stores/catalog/location/v3/stores_location.proto +0 -90
  103. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/stores/catalog/location/v3/stores_location_service.proto +0 -284
  104. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/stores/catalog/location/v3/upstream/wix/common/paging.proto +0 -121
  105. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/stores/catalog/location/v3/upstream/wix/common/sorting.proto +0 -26
  106. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/stores/catalog/location/v3/upstream/wix/query/query.proto +0 -436
@@ -4,9 +4,9 @@ export interface ExportAsyncJob {
4
4
  data?: ExportAsyncJobData;
5
5
  status?: Status;
6
6
  /** @readonly */
7
- createDate?: Date;
7
+ createDate?: Date | null;
8
8
  /** @readonly */
9
- updateDate?: Date;
9
+ updateDate?: Date | null;
10
10
  }
11
11
  export interface ExportAsyncJobData {
12
12
  /** original request data for the export */
@@ -235,7 +235,9 @@ export declare enum RuleType {
235
235
  INVALID_ENUM_VALUE = "INVALID_ENUM_VALUE",
236
236
  REQUIRED_FIELD = "REQUIRED_FIELD",
237
237
  FIELD_NOT_ALLOWED = "FIELD_NOT_ALLOWED",
238
- ONE_OF_ALIGNMENT = "ONE_OF_ALIGNMENT"
238
+ ONE_OF_ALIGNMENT = "ONE_OF_ALIGNMENT",
239
+ EXACT_LENGTH = "EXACT_LENGTH",
240
+ EXACT_SIZE = "EXACT_SIZE"
239
241
  }
240
242
  export interface FieldViolation {
241
243
  field?: string;
@@ -251,7 +253,7 @@ export interface SystemError {
251
253
  }
252
254
  export declare enum Status {
253
255
  UNKNOWN = "UNKNOWN",
254
- /** Job was created, but not started yet. */
256
+ /** Job is created, but hasn't started yet. */
255
257
  INITIALIZED = "INITIALIZED",
256
258
  /** Job has started and is in progress. */
257
259
  PROCESSING = "PROCESSING",
@@ -433,12 +435,12 @@ export interface Product {
433
435
  * Date and time the product was last updated.
434
436
  * @readonly
435
437
  */
436
- lastUpdated?: Date;
438
+ lastUpdated?: Date | null;
437
439
  /**
438
440
  * Date and time the product was created.
439
441
  * @readonly
440
442
  */
441
- createdDate?: Date;
443
+ createdDate?: Date | null;
442
444
  /** Custom SEO data for the product. */
443
445
  seoData?: SeoSchema;
444
446
  /** Product ribbon. Used to highlight relevant information about a product. For example, "Sale", "New Arrival", "Sold Out". */
@@ -494,8 +496,11 @@ export interface Stock {
494
496
  inventoryStatus?: InventoryStatus;
495
497
  }
496
498
  export declare enum InventoryStatus {
499
+ /** In stock */
497
500
  IN_STOCK = "IN_STOCK",
501
+ /** Not in stock */
498
502
  OUT_OF_STOCK = "OUT_OF_STOCK",
503
+ /** Some of the variants are not in stock */
499
504
  PARTIALLY_OUT_OF_STOCK = "PARTIALLY_OUT_OF_STOCK"
500
505
  }
501
506
  export interface PriceData {
@@ -643,10 +648,15 @@ export interface MediaItemUrlAndSize {
643
648
  }
644
649
  export declare enum MediaItemType {
645
650
  unspecified_media_item_type = "unspecified_media_item_type",
651
+ /** Image media type. */
646
652
  image = "image",
653
+ /** Video media type. */
647
654
  video = "video",
655
+ /** Audio media type. */
648
656
  audio = "audio",
657
+ /** Document media type. */
649
658
  document = "document",
659
+ /** Zip media type. */
650
660
  zip = "zip"
651
661
  }
652
662
  export interface MediaItemVideo {
@@ -665,7 +675,7 @@ export interface CustomTextField {
665
675
  }
666
676
  export interface ProductOption {
667
677
  /**
668
- * Option type - color or other(drop down)
678
+ * Option type.
669
679
  * @readonly
670
680
  */
671
681
  optionType?: OptionType;
@@ -675,8 +685,11 @@ export interface ProductOption {
675
685
  choices?: Choice[];
676
686
  }
677
687
  export declare enum OptionType {
688
+ /** Unspecified option type. */
678
689
  unspecified_option_type = "unspecified_option_type",
690
+ /** Drop down. */
679
691
  drop_down = "drop_down",
692
+ /** Color. */
680
693
  color = "color"
681
694
  }
682
695
  export interface Choice {
@@ -720,7 +733,9 @@ export declare enum DiscountType {
720
733
  UNDEFINED = "UNDEFINED",
721
734
  /** No discount */
722
735
  NONE = "NONE",
736
+ /** Discount by a fixed amount */
723
737
  AMOUNT = "AMOUNT",
738
+ /** Discount by a percentage */
724
739
  PERCENT = "PERCENT"
725
740
  }
726
741
  export interface Variant {
@@ -793,11 +808,11 @@ export interface Tag {
793
808
  */
794
809
  type?: string;
795
810
  /**
796
- * A `{'key':'value'}` pair object where each SEO tag property (`'name'`, `'content'`, `'rel'`, `'href'`) contains a value.
797
- * For example: `{'name': 'description', 'content': 'the description itself'}`.
811
+ * A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.
812
+ * For example: `{"name": "description", "content": "the description itself"}`.
798
813
  */
799
814
  props?: Record<string, any> | null;
800
- /** SEO tag meta data. For example, `{height: 300, width: 240}`. */
815
+ /** SEO tag meta data. For example, `{"height": 300, "width": 240}`. */
801
816
  meta?: Record<string, any> | null;
802
817
  /** SEO tag inner content. For example, `<title> inner content </title>`. */
803
818
  children?: string;
@@ -895,7 +910,7 @@ export interface Image {
895
910
  * @internal
896
911
  * @readonly
897
912
  */
898
- urlExpirationDate?: Date;
913
+ urlExpirationDate?: Date | null;
899
914
  /**
900
915
  * Image filename.
901
916
  * @readonly
@@ -907,6 +922,21 @@ export interface Image {
907
922
  * @readonly
908
923
  */
909
924
  sizeInBytes?: string | null;
925
+ /**
926
+ * Focal point of the image.
927
+ * @internal
928
+ */
929
+ focalPoint?: FocalPoint;
930
+ }
931
+ export interface FocalPoint {
932
+ /** X-coordinate of the focal point. */
933
+ x?: number;
934
+ /** Y-coordinate of the focal point. */
935
+ y?: number;
936
+ /** crop by height */
937
+ height?: number | null;
938
+ /** crop by width */
939
+ width?: number | null;
910
940
  }
911
941
  export interface VideoV2 {
912
942
  /** WixMedia ID. */
@@ -943,7 +973,7 @@ export interface VideoV2 {
943
973
  * @internal
944
974
  * @readonly
945
975
  */
946
- urlExpirationDate?: Date;
976
+ urlExpirationDate?: Date | null;
947
977
  /**
948
978
  * Original video duration in milliseconds.
949
979
  * @internal
@@ -960,6 +990,18 @@ export interface VideoV2 {
960
990
  * @internal
961
991
  */
962
992
  description?: string | null;
993
+ /**
994
+ * Original video height.
995
+ * @internal
996
+ * @readonly
997
+ */
998
+ height?: number | null;
999
+ /**
1000
+ * Original video width.
1001
+ * @internal
1002
+ * @readonly
1003
+ */
1004
+ width?: number | null;
963
1005
  }
964
1006
  export interface VideoResolution {
965
1007
  /** Video URL. */
@@ -981,7 +1023,7 @@ export interface VideoResolution {
981
1023
  * @internal
982
1024
  * @deprecated
983
1025
  */
984
- urlExpirationDate?: Date;
1026
+ urlExpirationDate?: Date | null;
985
1027
  /**
986
1028
  * Deprecated. Use the `sizeInBytes` property in the parent entity instead. Size cannot be provided per resolution.
987
1029
  * @internal
@@ -42,11 +42,13 @@ export var RuleType;
42
42
  RuleType["REQUIRED_FIELD"] = "REQUIRED_FIELD";
43
43
  RuleType["FIELD_NOT_ALLOWED"] = "FIELD_NOT_ALLOWED";
44
44
  RuleType["ONE_OF_ALIGNMENT"] = "ONE_OF_ALIGNMENT";
45
+ RuleType["EXACT_LENGTH"] = "EXACT_LENGTH";
46
+ RuleType["EXACT_SIZE"] = "EXACT_SIZE";
45
47
  })(RuleType || (RuleType = {}));
46
48
  export var Status;
47
49
  (function (Status) {
48
50
  Status["UNKNOWN"] = "UNKNOWN";
49
- /** Job was created, but not started yet. */
51
+ /** Job is created, but hasn't started yet. */
50
52
  Status["INITIALIZED"] = "INITIALIZED";
51
53
  /** Job has started and is in progress. */
52
54
  Status["PROCESSING"] = "PROCESSING";
@@ -63,8 +65,11 @@ export var ProductType;
63
65
  })(ProductType || (ProductType = {}));
64
66
  export var InventoryStatus;
65
67
  (function (InventoryStatus) {
68
+ /** In stock */
66
69
  InventoryStatus["IN_STOCK"] = "IN_STOCK";
70
+ /** Not in stock */
67
71
  InventoryStatus["OUT_OF_STOCK"] = "OUT_OF_STOCK";
72
+ /** Some of the variants are not in stock */
68
73
  InventoryStatus["PARTIALLY_OUT_OF_STOCK"] = "PARTIALLY_OUT_OF_STOCK";
69
74
  })(InventoryStatus || (InventoryStatus = {}));
70
75
  export var MeasurementUnit;
@@ -95,16 +100,24 @@ export var MeasurementUnit;
95
100
  export var MediaItemType;
96
101
  (function (MediaItemType) {
97
102
  MediaItemType["unspecified_media_item_type"] = "unspecified_media_item_type";
103
+ /** Image media type. */
98
104
  MediaItemType["image"] = "image";
105
+ /** Video media type. */
99
106
  MediaItemType["video"] = "video";
107
+ /** Audio media type. */
100
108
  MediaItemType["audio"] = "audio";
109
+ /** Document media type. */
101
110
  MediaItemType["document"] = "document";
111
+ /** Zip media type. */
102
112
  MediaItemType["zip"] = "zip";
103
113
  })(MediaItemType || (MediaItemType = {}));
104
114
  export var OptionType;
105
115
  (function (OptionType) {
116
+ /** Unspecified option type. */
106
117
  OptionType["unspecified_option_type"] = "unspecified_option_type";
118
+ /** Drop down. */
107
119
  OptionType["drop_down"] = "drop_down";
120
+ /** Color. */
108
121
  OptionType["color"] = "color";
109
122
  })(OptionType || (OptionType = {}));
110
123
  export var DiscountType;
@@ -112,7 +125,9 @@ export var DiscountType;
112
125
  DiscountType["UNDEFINED"] = "UNDEFINED";
113
126
  /** No discount */
114
127
  DiscountType["NONE"] = "NONE";
128
+ /** Discount by a fixed amount */
115
129
  DiscountType["AMOUNT"] = "AMOUNT";
130
+ /** Discount by a percentage */
116
131
  DiscountType["PERCENT"] = "PERCENT";
117
132
  })(DiscountType || (DiscountType = {}));
118
133
  export var FileType;
@@ -1 +1 @@
1
- {"version":3,"file":"types.impl.js","sourceRoot":"","sources":["../../types.impl.ts"],"names":[],"mappings":"AA6FA,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAqBD,MAAM,CAAN,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,8CAAuB,CAAA;IACvB,kEAA2C,CAAA;AAC7C,CAAC,EAHW,mBAAmB,KAAnB,mBAAmB,QAG9B;AAcD,MAAM,CAAN,IAAY,gBAYX;AAZD,WAAY,gBAAgB;IAC1B,uEAAuE;IACvE,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,uEAAuE;IACvE,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;AACrB,CAAC,EAZW,gBAAgB,KAAhB,gBAAgB,QAY3B;AA4FD,MAAM,CAAN,IAAY,QAmBX;AAnBD,WAAY,QAAQ;IAClB,qCAAyB,CAAA;IACzB,2BAAe,CAAA;IACf,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,qCAAyB,CAAA;IACzB,qCAAyB,CAAA;IACzB,iCAAqB,CAAA;IACrB,iCAAqB,CAAA;IACrB,6BAAiB,CAAA;IACjB,uCAA2B,CAAA;IAC3B,uCAA2B,CAAA;IAC3B,qCAAyB,CAAA;IACzB,qCAAyB,CAAA;IACzB,mDAAuC,CAAA;IACvC,qDAAyC,CAAA;IACzC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AAY,QAAQ;IAClB,uCAA2B,CAAA;IAC3B,6CAAiC,CAAA;IACjC,yCAA6B,CAAA;IAC7B,+CAAmC,CAAA;IACnC,yCAA6B,CAAA;IAC7B,6CAAiC,CAAA;AACnC,CAAC,EAPW,QAAQ,KAAR,QAAQ,QAOnB"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ambassador-fedinfra-exportservice-v1-export-async-job",
3
- "version": "1.0.187",
3
+ "version": "1.0.194",
4
4
  "publishConfig": {
5
5
  "registry": "https://npm-cache.dev.wixpress.com/",
6
6
  "access": "restricted"
@@ -44,7 +44,7 @@
44
44
  "protoArtifactId": "com.wixpress.fedinfra.exportservice:export-service"
45
45
  }
46
46
  },
47
- "falconPackageHash": "5a83a989ea254fe9f91989f64a90cb6128a2c45562ea882fa950f5cf",
47
+ "falconPackageHash": "763d4c56684a41d5884aaf49a21d6d45f63c48c63b51c281cc9a129e",
48
48
  "repository": {
49
49
  "type": "git",
50
50
  "url": "https://github.com/wix-private/metro-packages.git",
@@ -29,11 +29,11 @@ message SeoSchema {
29
29
  // Supported values: `title`, `meta`, `script`, `link`.
30
30
  string type = 1;
31
31
 
32
- // A `{'key':'value'}` pair object where each SEO tag property (`'name'`, `'content'`, `'rel'`, `'href'`) contains a value.
33
- // For example: `{'name': 'description', 'content': 'the description itself'}`.
32
+ // A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.
33
+ // For example: `{"name": "description", "content": "the description itself"}`.
34
34
  google.protobuf.Struct props = 2;
35
35
 
36
- // SEO tag meta data. For example, `{height: 300, width: 240}`.
36
+ // SEO tag meta data. For example, `{"height": 300, "width": 240}`.
37
37
  google.protobuf.Struct meta = 3;
38
38
 
39
39
  // SEO tag inner content. For example, `<title> inner content </title>`.
@@ -0,0 +1,47 @@
1
+ syntax = "proto3";
2
+
3
+ package com.wix.ecommerce.catalog_spi.api.v1;
4
+
5
+ option java_multiple_files = true;
6
+ option java_package = "com.wix.ecommerce.catalog_spi.api.v1";
7
+
8
+ import "wix/api/annotations.proto";
9
+ import "google/protobuf/wrappers.proto";
10
+ import "wix/api/validations.proto";
11
+
12
+ message AdditionalFee {
13
+
14
+ // Additional fee's unique code or ID.
15
+ google.protobuf.StringValue code = 1 [(.wix.api.minLength) = 1, (.wix.api.maxLength) = 100];
16
+
17
+ /*
18
+ Additional fee's name.
19
+
20
+ Max: 50 characters
21
+ */
22
+ string name = 2 [(.wix.api.minLength) = 1, (.wix.api.maxLength) = 50];
23
+
24
+ /*
25
+ Total additional fees. This `price` does not include any taxes that may apply to these additional fees.
26
+ */
27
+ string price = 3 [(.wix.api.decimalValue) = { gte: "0", lte: "1000000000000000", maxScale: 2}];
28
+
29
+ /*
30
+ Tax details.
31
+
32
+ > **Note:** Tax is not calculated in the returned `price` even when `taxDetails.taxable` is `true`.
33
+ */
34
+ TaxDetails tax_details = 4;
35
+
36
+ // Number of subscription cycle this fee applies to
37
+ // default None - all billing cycle
38
+ google.protobuf.Int32Value subscription_cycles = 5 [(.wix.api.field_maturity) = ALPHA, (.wix.api.min) = 1, (.wix.api.max) = 999];
39
+
40
+ }
41
+ // Tax details.
42
+ message TaxDetails {
43
+ // Whether additional fee is taxable.
44
+ bool taxable = 1;
45
+ // Reserved for internal use.
46
+ google.protobuf.StringValue tax_group_id = 4 [(.wix.api.format) = GUID];
47
+ }
@@ -14,7 +14,7 @@ message CatalogReference {
14
14
  /*
15
15
  ID of the app providing the catalog.
16
16
 
17
- You can get your app's ID from its page in the [Wix Dev Center](https://dev.wix.com/apps).
17
+ You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).
18
18
 
19
19
  For items from Wix catalogs, the following values always apply:
20
20
  + Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`
@@ -9,8 +9,11 @@ import "google/protobuf/wrappers.proto";
9
9
 
10
10
  message DescriptionLine {
11
11
  enum DescriptionLineType {
12
+ // Unrecognized type.
12
13
  UNRECOGNISED = 0;
14
+ // Plain text type.
13
15
  PLAIN_TEXT = 1;
16
+ // Color type.
14
17
  COLOR = 2;
15
18
  }
16
19
 
@@ -74,4 +77,4 @@ message Color {
74
77
 
75
78
  // HEX or RGB color code for display.
76
79
  google.protobuf.StringValue code = 3;
77
- }
80
+ }
@@ -10,6 +10,7 @@ import "com/wix/ecommerce/platform_common/api/taxable_address.proto";
10
10
  import "com/wix/ecommerce/catalog_spi/api/v1/description_line.proto";
11
11
  import "com/wix/ecommerce/catalog_spi/api/v1/subscription_option_info.proto";
12
12
  import "com/wix/ecommerce/catalog_spi/api/v1/item_type.proto";
13
+ import "com/wix/ecommerce/catalog_spi/api/v1/policy.proto";
13
14
  import "com/wix/ecommerce/catalog_spi/api/v1/item_media.proto";
14
15
  import "com/wix/ecommerce/catalog_spi/api/v1/physical_properties.proto";
15
16
  import "com/wix/ecommerce/catalog_spi/api/v1/product_name.proto";
@@ -17,6 +18,7 @@ import "com/wix/ecommerce/catalog_spi/api/v1/secured_media.proto";
17
18
  import "com/wix/ecommerce/catalog_spi/api/v1/payment_option.proto";
18
19
  import "com/wix/ecommerce/catalog_spi/api/v1/service_properties.proto";
19
20
  import "com/wix/ecommerce/catalog_spi/api/v1/price_description.proto";
21
+ import "com/wix/ecommerce/catalog_spi/api/v1/additional_fee.proto";
20
22
  import "wix/coupons/api/v2/scope.proto";
21
23
 
22
24
  message ItemData {
@@ -68,7 +70,7 @@ message ItemData {
68
70
  repeated .wix.coupons.api.v2.Scope coupon_scopes = 10 [(.wix.api.field_exposure) = INTERNAL];
69
71
 
70
72
  // Subscription option info.
71
- SubscriptionOptionInfo subscription_option_info = 12 [(.wix.api.field_maturity) = ALPHA];
73
+ SubscriptionOptionInfo subscription_option_info = 12 [(.wix.api.field_maturity) = BETA];
72
74
 
73
75
  // ID of the fulfiller for this item. This field is internal and only used by Stores.
74
76
  google.protobuf.StringValue fulfiller_id = 13 [(.wix.api.referenced_entity) = "wix.ecom.v1.fulfiller", (.wix.api.field_exposure) = INTERNAL, (.wix.api.format) = GUID];
@@ -137,4 +139,10 @@ message ItemData {
137
139
 
138
140
  // ID of the app managing the inventory.
139
141
  google.protobuf.StringValue inventory_app_id = 28 [(.wix.api.format) = GUID, (.wix.api.field_maturity) = ALPHA];
140
- }
142
+
143
+ // Policies to be displayed to the customer on the checkout page.
144
+ repeated Policy policies = 29 [(.wix.api.field_maturity) = ALPHA, (.wix.api.maxSize) = 5];
145
+
146
+ // Additional Fees to be added to this item calculation.
147
+ repeated AdditionalFee additional_fees = 30 [(.wix.api.field_maturity) = ALPHA, (.wix.api.maxSize) = 5];
148
+ };
@@ -8,15 +8,15 @@ enum PaymentOptionType {
8
8
  // The entire payment for this item happens as part of the checkout.
9
9
  FULL_PAYMENT_ONLINE = 0;
10
10
 
11
- // The entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods.
11
+ // The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods.
12
12
  FULL_PAYMENT_OFFLINE = 1;
13
13
 
14
14
  // Payment for this item is done by charging a membership. When selected, `price` is `0`.
15
15
  MEMBERSHIP = 2;
16
16
 
17
- // Partial payment to be paid upfront during the checkout. Initial amount to be paid for each line item is specified in `depositAmount`.
17
+ // Partial payment to be paid upfront during checkout. The initial amount to be paid for each line item is specified in `depositAmount`.
18
18
  DEPOSIT_ONLINE = 3;
19
19
 
20
20
  // Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`.
21
21
  MEMBERSHIP_OFFLINE = 4;
22
- }
22
+ }
@@ -22,6 +22,14 @@ service PlatformCatalogSPI {
22
22
  config_message: "com.wix.ecommerce.catalog_spi.api.v1.CatalogSPIConfig"
23
23
  host_service: "com.wix.ecom.catalog_spi_host.CatalogSpiHostService"
24
24
  app_id: "1380b703-ce81-ff05-f115-39571d94dfcd" // SPI Host's App Id
25
+ appendix_files: {
26
+ type: DOCS_CONF
27
+ path: "appendices/docs"
28
+ };
29
+ appendix_files: {
30
+ type: AUTO_SDK
31
+ path: "appendices/sdk"
32
+ };
25
33
  };
26
34
  option (.wix.api.service_exposure) = PUBLIC;
27
35
  option (.wix.api.service_maturity) = BETA;
@@ -143,6 +151,10 @@ message GetCatalogItemsRequest {
143
151
  string currency = 3 [(.wix.api.format) = CURRENCY];
144
152
 
145
153
  reserved 4;
154
+
155
+ // The business location ID associated with the requested items.
156
+ // Learn more about the [Locations API](https://dev.wix.com/docs/rest/business-management/locations/introduction).
157
+ google.protobuf.StringValue business_location_id = 5 [(.wix.api.format) = GUID, (.wix.api.referenced_entity) = "wix.locations.v1.location", (.wix.api.field_maturity) = ALPHA];
146
158
  }
147
159
 
148
160
  message GetCatalogItemsResponse {
@@ -0,0 +1,14 @@
1
+ syntax = "proto3";
2
+
3
+ package com.wix.ecommerce.catalog_spi.api.v1;
4
+ import "wix/api/validations.proto";
5
+ import "google/protobuf/wrappers.proto";
6
+
7
+ message Policy {
8
+ // Policy title - should be translated
9
+ // flynt-disable field-type-breaking-change
10
+ google.protobuf.StringValue title = 1 [(.wix.api.minLength) = 1, (.wix.api.maxLength) = 29];
11
+
12
+ // Policy content - should be translated
13
+ string content = 2 [(.wix.api.minLength) = 1, (.wix.api.maxLength) = 3000];
14
+ };
@@ -2,11 +2,11 @@ syntax = "proto3";
2
2
 
3
3
  package com.wix.ecommerce.catalog_spi.api.v1;
4
4
 
5
-
6
5
  import "wix/api/annotations.proto";
7
6
  import "wix/api/validations.proto";
8
7
  import "google/protobuf/wrappers.proto";
9
8
  import "wix/payment/api/pay/v2/resources/subscription.proto";
9
+ import "google/protobuf/timestamp.proto";
10
10
 
11
11
  message SubscriptionOptionInfo {
12
12
 
@@ -28,34 +28,53 @@ message SubscriptionSettings {
28
28
  // Interval of recurring payment.
29
29
  //
30
30
  // Default: `1`.
31
+ // If SubscriptionFrequency is Day the minimum interval is 7
31
32
  google.protobuf.Int32Value interval = 2 [(.wix.api.min) = 1, (.wix.api.max) = 50];
32
33
 
33
34
  // Whether subscription is renewed automatically at the end of each period.
34
35
  bool auto_renewal = 3;
35
36
 
36
37
  // Number of billing cycles before subscription ends. Ignored if `autoRenewal` is `true`.
37
- google.protobuf.Int32Value billing_cycles = 4 [(.wix.api.min) = 2];
38
+ google.protobuf.Int32Value billing_cycles = 4 [(.wix.api.min) = 1];
38
39
 
39
40
  // Whether to allow the customer to cancel the subscription..
40
41
  bool enable_customer_cancellation = 5 [(.wix.api.field_maturity) = ALPHA];
42
+
43
+ //Period until first cycle starts. If applied payNow will be 0
44
+ // If None => no free trial
45
+ FreeTrialPeriod free_trial_period = 6 [(.wix.api.field_maturity) = ALPHA];
46
+
47
+ //The date the subscription will start. The subscription will be charged either now or according to freeTrialDays.
48
+ google.protobuf.Timestamp start_date = 7 [(.wix.api.field_maturity) = ALPHA];
49
+
50
+ //Whether to generate an order each billing cycle. An order will always be generated for the first billing cycle.
51
+ // Default None => will behave like true
52
+ google.protobuf.BoolValue generate_order_each_billing_cycle = 8 [(.wix.api.field_maturity) = ALPHA];
53
+ }
54
+
55
+ message FreeTrialPeriod {
56
+ // Frequency of priod. Values: DAY, WEEK, MONTH, YEAR
57
+ .wix.payment.api.pay.v2.SubscriptionFrequency frequency = 1;
58
+ // interval of period
59
+ int32 interval = 2 [(.wix.api.min) = 1, (.wix.api.max) = 50];
41
60
  }
42
61
 
43
62
  message Title {
44
63
 
45
64
  // Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
46
- string original = 1 [(.wix.api.minLength) = 1, (.wix.api.maxLength) = 20];
65
+ string original = 1 [(.wix.api.minLength) = 1, (.wix.api.maxLength) = 150];
47
66
 
48
67
  // Subscription option name translated into the buyer's language.
49
68
  //
50
69
  // Default: Same as `original`.
51
- google.protobuf.StringValue translated = 2 [(.wix.api.minLength) = 1, (.wix.api.maxLength) = 20];
70
+ google.protobuf.StringValue translated = 2 [(.wix.api.minLength) = 1, (.wix.api.maxLength) = 150];
52
71
  }
53
72
 
54
73
  message Description {
55
74
 
56
75
  // Subscription option description.
57
- string original = 1 [(.wix.api.maxLength) = 60];
76
+ string original = 1 [(.wix.api.maxLength) = 500];
58
77
 
59
78
  // Translated subscription option description.
60
- google.protobuf.StringValue translated = 2 [(.wix.api.maxLength) = 60];
79
+ google.protobuf.StringValue translated = 2 [(.wix.api.maxLength) = 500];
61
80
  }
@@ -24,7 +24,7 @@ message PlatformSearch {
24
24
  field: "sort"
25
25
  field: "cursorPaging"
26
26
  };
27
- //A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf)
27
+ // A filter object. Learn more about [API query language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language).
28
28
  google.protobuf.Struct filter = 1;
29
29
  //Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]
30
30
  repeated .wix.common.Sorting sort = 2;
@@ -47,7 +47,7 @@ message PlatformOffsetSearch {
47
47
  field: "sort"
48
48
  field: "paging"
49
49
  };
50
- //A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf)
50
+ // A filter object. Learn more about [API query language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language).
51
51
  google.protobuf.Struct filter = 1;
52
52
  //Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]
53
53
  repeated .wix.common.Sorting sort = 2;
@@ -0,0 +1,16 @@
1
+ syntax = "proto3";
2
+
3
+ package com.wix.ecommerce.platform_common.api;
4
+
5
+ import "google/protobuf/wrappers.proto";
6
+ import "wix/api/validations.proto";
7
+ import "com/wix/ecommerce/platform_common/api/address.proto";
8
+ import "wix/api/annotations.proto";
9
+
10
+ message Location {
11
+ // Location ID.
12
+ // Learn more about the [Wix Locations API](https://dev.wix.com/docs/rest/business-management/locations/introduction).
13
+ string id = 1 [(.wix.api.format) = GUID, (.wix.api.referenced_entity) = "wix.locations.v1.location"];
14
+ // Location name.
15
+ string name = 2 [(.wix.api.minLength) = 1, (.wix.api.maxLength) = 500, (.wix.api.readOnly) = true];
16
+ }
@@ -49,4 +49,6 @@ message PickupAddress {
49
49
  // Subdivision full-name.
50
50
  //flynt-disable unannotated-pii-fields
51
51
  google.protobuf.StringValue subdivision_fullname = 13 [(.wix.api.readOnly) = true, (.wix.api.pii) = true];
52
+
53
+ .wix.common.AddressLocation geocode = 14 [(.wix.api.field_exposure) = PRIVATE];
52
54
  }
@@ -23,4 +23,3 @@ message Price {
23
23
  // Amount formatted with currency symbol.
24
24
  string formatted_amount = 2 [(.wix.api.readOnly) = true];
25
25
  }
26
-
@@ -159,8 +159,8 @@ message EmbeddedService {
159
159
  google.protobuf.StringValue vendor_product_id = 5 [(wix.api.maxLength) = 255]; // If set -- indicates that it's premium.
160
160
  google.protobuf.BoolValue editor_dismissed = 6; // TBD.
161
161
  google.protobuf.BoolValue revoked = 7; // If true - uninstalled.
162
- google.protobuf.StringValue version = 8 [(wix.api.maxLength) = 50]; // A version.
163
- google.protobuf.StringValue published_version = 9 [(wix.api.maxLength) = 50]; // A version for rendering.
162
+ google.protobuf.StringValue version = 8 [(wix.api.maxLength) = 500]; // A version.
163
+ google.protobuf.StringValue published_version = 9 [(wix.api.maxLength) = 500]; // A version for rendering.
164
164
  }
165
165
 
166
166
  message WixCodeAttributes {
@@ -350,7 +350,6 @@ message MetaSite {
350
350
  HAS_DOMAIN = 4;
351
351
  ALWAYS_SHOW_FOOTER = 5;
352
352
  NO_ADS_IN_SOCIAL_SITES = 6;
353
-
354
353
  }
355
354
 
356
355
  enum Namespace {
@@ -420,11 +419,14 @@ message MetaSite {
420
419
  The Partners company owns this namespace.
421
420
  */
422
421
  UGC_TEMPLATE = 23;
423
-
424
422
  /*
425
423
  Codux Headless Sites
426
424
  */
427
425
  CODUX = 24;
426
+ /*
427
+ Bobb - AI Design Creator.
428
+ */
429
+ MEDIA_DESIGN_CREATOR = 25;
428
430
  }
429
431
 
430
432
  enum Flag {
@@ -59,6 +59,21 @@ message SiteMarkedAsTemplate {
59
59
  message SiteMarkedAsWixSite {
60
60
  }
61
61
 
62
+ /*
63
+ Represents a service provisioned a site.
64
+
65
+ Note on `origin_instance_id`:
66
+ There is no guarantee that you will be able to find a meta site using `origin_instance_id`.
67
+ This is because of the following scenario:
68
+
69
+ Imagine you have a template where a third-party application (TPA) includes some stub data,
70
+ such as a product catalog. When you create a site from this template, you inherit this
71
+ default product catalog. However, if the template's product catalog is modified,
72
+ your site will retain the catalog as it was at the time of site creation. This ensures that
73
+ your site remains consistent with what you initially received and does not include any
74
+ changes made to the original template afterward.
75
+ To ensure this, the TPA on the template gets a new instance_id.
76
+ */
62
77
  message ServiceProvisioned {
63
78
  string app_def_id = 1 [(wix.api.maxLength) = 36]; // Either UUID or EmbeddedServiceType.
64
79
  string instance_id = 2 [(wix.api.maxLength) = 36]; // Not only UUID. Something here could be something weird.