@wix/auto_sdk_stores_read-only-variants-v-3 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 (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.context.d.ts +2 -0
  11. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.context.js +76 -0
  12. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.context.js.map +1 -0
  13. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.http.d.ts +9 -0
  14. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.http.js +59 -0
  15. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.http.js.map +1 -0
  16. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.meta.d.ts +13 -0
  17. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.meta.js +47 -0
  18. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.meta.js.map +1 -0
  19. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.public.d.ts +4 -0
  20. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.public.js +81 -0
  21. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.public.js.map +1 -0
  22. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.types.d.ts +4554 -0
  23. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.types.js +682 -0
  24. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.types.js.map +1 -0
  25. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal.d.ts +4507 -0
  26. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal.js +810 -0
  27. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.context.d.ts +2 -0
  39. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.context.js +6 -0
  40. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.context.js.map +1 -0
  41. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.http.d.ts +9 -0
  42. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.http.js +55 -0
  43. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.http.js.map +1 -0
  44. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.meta.d.ts +13 -0
  45. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.meta.js +20 -0
  46. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.meta.js.map +1 -0
  47. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.public.d.ts +4 -0
  48. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.public.js +10 -0
  49. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.public.js.map +1 -0
  50. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.types.d.ts +4554 -0
  51. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.types.js +678 -0
  52. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.types.js.map +1 -0
  53. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal.d.ts +4507 -0
  54. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal.js +782 -0
  55. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.context.d.ts +6 -0
  66. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.context.js +76 -0
  67. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.context.js.map +1 -0
  68. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.http.d.ts +9 -0
  69. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.http.js +59 -0
  70. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.http.js.map +1 -0
  71. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.meta.d.ts +13 -0
  72. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.meta.js +47 -0
  73. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.meta.js.map +1 -0
  74. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.public.d.ts +18 -0
  75. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.public.js +81 -0
  76. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.public.js.map +1 -0
  77. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.types.d.ts +4554 -0
  78. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.types.js +682 -0
  79. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.types.js.map +1 -0
  80. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal.d.ts +4558 -0
  81. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal.js +810 -0
  82. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.context.d.ts +6 -0
  93. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.context.js +6 -0
  94. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.context.js.map +1 -0
  95. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.http.d.ts +9 -0
  96. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.http.js +55 -0
  97. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.http.js.map +1 -0
  98. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.meta.d.ts +13 -0
  99. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.meta.js +20 -0
  100. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.meta.js.map +1 -0
  101. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.public.d.ts +18 -0
  102. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.public.js +10 -0
  103. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.public.js.map +1 -0
  104. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.types.d.ts +4554 -0
  105. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.types.js +678 -0
  106. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.types.js.map +1 -0
  107. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal.d.ts +4558 -0
  108. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal.js +782 -0
  109. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,782 @@
1
+ import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
2
+ import { queryBuilder } from '@wix/sdk-runtime/query-builder';
3
+ import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
4
+ import * as ambassadorWixStoresCatalogV3ReadOnlyVariant from './stores-catalog-v3-read-only-variant-read-only-variants-v-3.http.js';
5
+ // @ts-ignore
6
+ import { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';
7
+ import { transformRESTVideoV2ToSDKVideoV2 } from '@wix/sdk-runtime/transformations/video-v2';
8
+ import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
9
+ export var ProductMediaMediaType;
10
+ (function (ProductMediaMediaType) {
11
+ ProductMediaMediaType["UNKNOWN_MEDIA_TYPE"] = "UNKNOWN_MEDIA_TYPE";
12
+ /** Image media type. */
13
+ ProductMediaMediaType["IMAGE"] = "IMAGE";
14
+ /** Video media type. */
15
+ ProductMediaMediaType["VIDEO"] = "VIDEO";
16
+ })(ProductMediaMediaType || (ProductMediaMediaType = {}));
17
+ export var MeasurementUnit;
18
+ (function (MeasurementUnit) {
19
+ MeasurementUnit["UNSPECIFIED"] = "UNSPECIFIED";
20
+ MeasurementUnit["ML"] = "ML";
21
+ MeasurementUnit["CL"] = "CL";
22
+ MeasurementUnit["L"] = "L";
23
+ MeasurementUnit["CBM"] = "CBM";
24
+ MeasurementUnit["MG"] = "MG";
25
+ MeasurementUnit["G"] = "G";
26
+ MeasurementUnit["KG"] = "KG";
27
+ MeasurementUnit["MM"] = "MM";
28
+ MeasurementUnit["CM"] = "CM";
29
+ MeasurementUnit["M"] = "M";
30
+ MeasurementUnit["SQM"] = "SQM";
31
+ MeasurementUnit["OZ"] = "OZ";
32
+ MeasurementUnit["LB"] = "LB";
33
+ MeasurementUnit["FLOZ"] = "FLOZ";
34
+ MeasurementUnit["PT"] = "PT";
35
+ MeasurementUnit["QT"] = "QT";
36
+ MeasurementUnit["GAL"] = "GAL";
37
+ MeasurementUnit["IN"] = "IN";
38
+ MeasurementUnit["FT"] = "FT";
39
+ MeasurementUnit["YD"] = "YD";
40
+ MeasurementUnit["SQFT"] = "SQFT";
41
+ })(MeasurementUnit || (MeasurementUnit = {}));
42
+ export var SecuredMediaFileType;
43
+ (function (SecuredMediaFileType) {
44
+ /** Unspecified file type. */
45
+ SecuredMediaFileType["UNSPECIFIED"] = "UNSPECIFIED";
46
+ /** Secure picture file. */
47
+ SecuredMediaFileType["SECURE_PICTURE"] = "SECURE_PICTURE";
48
+ /** Secure video file. */
49
+ SecuredMediaFileType["SECURE_VIDEO"] = "SECURE_VIDEO";
50
+ /** Secure document file. */
51
+ SecuredMediaFileType["SECURE_DOCUMENT"] = "SECURE_DOCUMENT";
52
+ /** Secure music file. */
53
+ SecuredMediaFileType["SECURE_MUSIC"] = "SECURE_MUSIC";
54
+ /** Secure archive file. */
55
+ SecuredMediaFileType["SECURE_ARCHIVE"] = "SECURE_ARCHIVE";
56
+ })(SecuredMediaFileType || (SecuredMediaFileType = {}));
57
+ export var V3ProductType;
58
+ (function (V3ProductType) {
59
+ /** Not implemented. */
60
+ V3ProductType["UNKNOWN_PRODUCT_TYPE"] = "UNKNOWN_PRODUCT_TYPE";
61
+ /** Physical product. */
62
+ V3ProductType["PHYSICAL"] = "PHYSICAL";
63
+ /** Digital product. */
64
+ V3ProductType["DIGITAL"] = "DIGITAL";
65
+ })(V3ProductType || (V3ProductType = {}));
66
+ export var WeightUnit;
67
+ (function (WeightUnit) {
68
+ /** Weight unit can't be classified due to an error. */
69
+ WeightUnit["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
70
+ /** Kilograms. */
71
+ WeightUnit["KG"] = "KG";
72
+ /** Pounds. */
73
+ WeightUnit["LB"] = "LB";
74
+ })(WeightUnit || (WeightUnit = {}));
75
+ export var SortOrder;
76
+ (function (SortOrder) {
77
+ SortOrder["ASC"] = "ASC";
78
+ SortOrder["DESC"] = "DESC";
79
+ })(SortOrder || (SortOrder = {}));
80
+ export var RequestedFields;
81
+ (function (RequestedFields) {
82
+ /** Not implemented. */
83
+ RequestedFields["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
84
+ RequestedFields["CURRENCY"] = "CURRENCY";
85
+ /** You can request merchant data only if you have the `SCOPE.STORES.PRODUCT_READ_ADMIN` permission scope. */
86
+ RequestedFields["MERCHANT_DATA"] = "MERCHANT_DATA";
87
+ RequestedFields["SUBSCRIPTION_PRICES_INFO"] = "SUBSCRIPTION_PRICES_INFO";
88
+ RequestedFields["WEIGHT_MEASUREMENT_UNIT_INFO"] = "WEIGHT_MEASUREMENT_UNIT_INFO";
89
+ })(RequestedFields || (RequestedFields = {}));
90
+ export var SortType;
91
+ (function (SortType) {
92
+ /** Should sort by number of matches */
93
+ SortType["COUNT"] = "COUNT";
94
+ /** Should sort by value of the field alphabetically */
95
+ SortType["VALUE"] = "VALUE";
96
+ })(SortType || (SortType = {}));
97
+ export var SortDirection;
98
+ (function (SortDirection) {
99
+ /** Should sort in descending order */
100
+ SortDirection["DESC"] = "DESC";
101
+ /** Should sort in ascending order */
102
+ SortDirection["ASC"] = "ASC";
103
+ })(SortDirection || (SortDirection = {}));
104
+ export var MissingValues;
105
+ (function (MissingValues) {
106
+ /** Should missing values be excluded from the aggregation results */
107
+ MissingValues["EXCLUDE"] = "EXCLUDE";
108
+ /** Should missing values be included in the aggregation results */
109
+ MissingValues["INCLUDE"] = "INCLUDE";
110
+ })(MissingValues || (MissingValues = {}));
111
+ export var ScalarType;
112
+ (function (ScalarType) {
113
+ ScalarType["UNKNOWN_SCALAR_TYPE"] = "UNKNOWN_SCALAR_TYPE";
114
+ /** Count of distinct values */
115
+ ScalarType["COUNT_DISTINCT"] = "COUNT_DISTINCT";
116
+ /** Minimum value */
117
+ ScalarType["MIN"] = "MIN";
118
+ /** Maximum value */
119
+ ScalarType["MAX"] = "MAX";
120
+ })(ScalarType || (ScalarType = {}));
121
+ export var NestedAggregationType;
122
+ (function (NestedAggregationType) {
123
+ NestedAggregationType["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
124
+ /** An aggregation where result buckets are dynamically built - one per unique value */
125
+ NestedAggregationType["VALUE"] = "VALUE";
126
+ /** An aggregation, where user can define set of ranges - each representing a bucket */
127
+ NestedAggregationType["RANGE"] = "RANGE";
128
+ /** A single-value metric aggregation - e.g. min, max, sum, avg */
129
+ NestedAggregationType["SCALAR"] = "SCALAR";
130
+ /** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
131
+ NestedAggregationType["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
132
+ })(NestedAggregationType || (NestedAggregationType = {}));
133
+ export var Interval;
134
+ (function (Interval) {
135
+ Interval["UNKNOWN_INTERVAL"] = "UNKNOWN_INTERVAL";
136
+ /** Yearly interval */
137
+ Interval["YEAR"] = "YEAR";
138
+ /** Monthly interval */
139
+ Interval["MONTH"] = "MONTH";
140
+ /** Weekly interval */
141
+ Interval["WEEK"] = "WEEK";
142
+ /** Daily interval */
143
+ Interval["DAY"] = "DAY";
144
+ /** Hourly interval */
145
+ Interval["HOUR"] = "HOUR";
146
+ /** Minute interval */
147
+ Interval["MINUTE"] = "MINUTE";
148
+ /** Second interval */
149
+ Interval["SECOND"] = "SECOND";
150
+ })(Interval || (Interval = {}));
151
+ export var AggregationType;
152
+ (function (AggregationType) {
153
+ AggregationType["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
154
+ /** An aggregation where result buckets are dynamically built - one per unique value */
155
+ AggregationType["VALUE"] = "VALUE";
156
+ /** An aggregation, where user can define set of ranges - each representing a bucket */
157
+ AggregationType["RANGE"] = "RANGE";
158
+ /** A single-value metric aggregation - e.g. min, max, sum, avg */
159
+ AggregationType["SCALAR"] = "SCALAR";
160
+ /** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
161
+ AggregationType["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
162
+ /** Multi-level aggregation, where each next aggregation is nested within previous one */
163
+ AggregationType["NESTED"] = "NESTED";
164
+ })(AggregationType || (AggregationType = {}));
165
+ export var Mode;
166
+ (function (Mode) {
167
+ /** Any of the search terms must be present */
168
+ Mode["OR"] = "OR";
169
+ /** All search terms must be present */
170
+ Mode["AND"] = "AND";
171
+ })(Mode || (Mode = {}));
172
+ export var CommonSortOrder;
173
+ (function (CommonSortOrder) {
174
+ CommonSortOrder["ASC"] = "ASC";
175
+ CommonSortOrder["DESC"] = "DESC";
176
+ })(CommonSortOrder || (CommonSortOrder = {}));
177
+ export var ValueAggregationSortType;
178
+ (function (ValueAggregationSortType) {
179
+ /** Sort by number of matches. */
180
+ ValueAggregationSortType["COUNT"] = "COUNT";
181
+ /** Sort by value of the field alphabetically. */
182
+ ValueAggregationSortType["VALUE"] = "VALUE";
183
+ })(ValueAggregationSortType || (ValueAggregationSortType = {}));
184
+ export var ValueAggregationSortDirection;
185
+ (function (ValueAggregationSortDirection) {
186
+ /** Sort in descending order. */
187
+ ValueAggregationSortDirection["DESC"] = "DESC";
188
+ /** Sort in ascending order. */
189
+ ValueAggregationSortDirection["ASC"] = "ASC";
190
+ })(ValueAggregationSortDirection || (ValueAggregationSortDirection = {}));
191
+ export var ValueAggregationMissingValues;
192
+ (function (ValueAggregationMissingValues) {
193
+ /** Exclude missing values from the aggregation results. */
194
+ ValueAggregationMissingValues["EXCLUDE"] = "EXCLUDE";
195
+ /** Include missing values in the aggregation results. */
196
+ ValueAggregationMissingValues["INCLUDE"] = "INCLUDE";
197
+ })(ValueAggregationMissingValues || (ValueAggregationMissingValues = {}));
198
+ export var CommonScalarType;
199
+ (function (CommonScalarType) {
200
+ CommonScalarType["UNKNOWN_SCALAR_TYPE"] = "UNKNOWN_SCALAR_TYPE";
201
+ /** Count of distinct values. */
202
+ CommonScalarType["COUNT_DISTINCT"] = "COUNT_DISTINCT";
203
+ /** Minimum value. */
204
+ CommonScalarType["MIN"] = "MIN";
205
+ /** Maximum value. */
206
+ CommonScalarType["MAX"] = "MAX";
207
+ })(CommonScalarType || (CommonScalarType = {}));
208
+ export var NestedAggregationNestedAggregationType;
209
+ (function (NestedAggregationNestedAggregationType) {
210
+ NestedAggregationNestedAggregationType["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
211
+ /** An aggregation where result buckets are dynamically built - one per unique value. */
212
+ NestedAggregationNestedAggregationType["VALUE"] = "VALUE";
213
+ /** An aggregation, where user can define set of ranges - each representing a bucket. */
214
+ NestedAggregationNestedAggregationType["RANGE"] = "RANGE";
215
+ /** A single-value metric aggregation. For example, min, max, sum, avg. */
216
+ NestedAggregationNestedAggregationType["SCALAR"] = "SCALAR";
217
+ /** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.). */
218
+ NestedAggregationNestedAggregationType["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
219
+ })(NestedAggregationNestedAggregationType || (NestedAggregationNestedAggregationType = {}));
220
+ export var DateHistogramAggregationInterval;
221
+ (function (DateHistogramAggregationInterval) {
222
+ DateHistogramAggregationInterval["UNKNOWN_INTERVAL"] = "UNKNOWN_INTERVAL";
223
+ /** Yearly interval */
224
+ DateHistogramAggregationInterval["YEAR"] = "YEAR";
225
+ /** Monthly interval */
226
+ DateHistogramAggregationInterval["MONTH"] = "MONTH";
227
+ /** Weekly interval */
228
+ DateHistogramAggregationInterval["WEEK"] = "WEEK";
229
+ /** Daily interval */
230
+ DateHistogramAggregationInterval["DAY"] = "DAY";
231
+ /** Hourly interval */
232
+ DateHistogramAggregationInterval["HOUR"] = "HOUR";
233
+ /** Minute interval */
234
+ DateHistogramAggregationInterval["MINUTE"] = "MINUTE";
235
+ /** Second interval */
236
+ DateHistogramAggregationInterval["SECOND"] = "SECOND";
237
+ })(DateHistogramAggregationInterval || (DateHistogramAggregationInterval = {}));
238
+ export var CommonAggregationType;
239
+ (function (CommonAggregationType) {
240
+ CommonAggregationType["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
241
+ /** An aggregation where result buckets are dynamically built - one per unique value. */
242
+ CommonAggregationType["VALUE"] = "VALUE";
243
+ /** An aggregation, where user can define set of ranges - each representing a bucket. */
244
+ CommonAggregationType["RANGE"] = "RANGE";
245
+ /** A single-value metric aggregation. For example, min, max, sum, avg. */
246
+ CommonAggregationType["SCALAR"] = "SCALAR";
247
+ /** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
248
+ CommonAggregationType["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
249
+ /** Multi-level aggregation, where each next aggregation is nested within previous one. */
250
+ CommonAggregationType["NESTED"] = "NESTED";
251
+ })(CommonAggregationType || (CommonAggregationType = {}));
252
+ export var SearchDetailsMode;
253
+ (function (SearchDetailsMode) {
254
+ /** Any of the search terms must be present. */
255
+ SearchDetailsMode["OR"] = "OR";
256
+ /** All search terms must be present. */
257
+ SearchDetailsMode["AND"] = "AND";
258
+ })(SearchDetailsMode || (SearchDetailsMode = {}));
259
+ export var NodeType;
260
+ (function (NodeType) {
261
+ NodeType["PARAGRAPH"] = "PARAGRAPH";
262
+ NodeType["TEXT"] = "TEXT";
263
+ NodeType["HEADING"] = "HEADING";
264
+ NodeType["BULLETED_LIST"] = "BULLETED_LIST";
265
+ NodeType["ORDERED_LIST"] = "ORDERED_LIST";
266
+ NodeType["LIST_ITEM"] = "LIST_ITEM";
267
+ NodeType["BLOCKQUOTE"] = "BLOCKQUOTE";
268
+ NodeType["CODE_BLOCK"] = "CODE_BLOCK";
269
+ NodeType["VIDEO"] = "VIDEO";
270
+ NodeType["DIVIDER"] = "DIVIDER";
271
+ NodeType["FILE"] = "FILE";
272
+ NodeType["GALLERY"] = "GALLERY";
273
+ NodeType["GIF"] = "GIF";
274
+ NodeType["HTML"] = "HTML";
275
+ NodeType["IMAGE"] = "IMAGE";
276
+ NodeType["LINK_PREVIEW"] = "LINK_PREVIEW";
277
+ /** @deprecated */
278
+ NodeType["MAP"] = "MAP";
279
+ NodeType["POLL"] = "POLL";
280
+ NodeType["APP_EMBED"] = "APP_EMBED";
281
+ NodeType["BUTTON"] = "BUTTON";
282
+ NodeType["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
283
+ NodeType["TABLE"] = "TABLE";
284
+ NodeType["EMBED"] = "EMBED";
285
+ NodeType["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
286
+ NodeType["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
287
+ NodeType["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
288
+ NodeType["TABLE_CELL"] = "TABLE_CELL";
289
+ NodeType["TABLE_ROW"] = "TABLE_ROW";
290
+ NodeType["EXTERNAL"] = "EXTERNAL";
291
+ NodeType["AUDIO"] = "AUDIO";
292
+ NodeType["CAPTION"] = "CAPTION";
293
+ NodeType["LAYOUT"] = "LAYOUT";
294
+ NodeType["LAYOUT_CELL"] = "LAYOUT_CELL";
295
+ })(NodeType || (NodeType = {}));
296
+ export var WidthType;
297
+ (function (WidthType) {
298
+ /** Width matches the content width */
299
+ WidthType["CONTENT"] = "CONTENT";
300
+ /** Small Width */
301
+ WidthType["SMALL"] = "SMALL";
302
+ /** Width will match the original asset width */
303
+ WidthType["ORIGINAL"] = "ORIGINAL";
304
+ /** coast-to-coast display */
305
+ WidthType["FULL_WIDTH"] = "FULL_WIDTH";
306
+ })(WidthType || (WidthType = {}));
307
+ export var PluginContainerDataAlignment;
308
+ (function (PluginContainerDataAlignment) {
309
+ /** Center Alignment */
310
+ PluginContainerDataAlignment["CENTER"] = "CENTER";
311
+ /** Left Alignment */
312
+ PluginContainerDataAlignment["LEFT"] = "LEFT";
313
+ /** Right Alignment */
314
+ PluginContainerDataAlignment["RIGHT"] = "RIGHT";
315
+ })(PluginContainerDataAlignment || (PluginContainerDataAlignment = {}));
316
+ export var Type;
317
+ (function (Type) {
318
+ /** Regular link button */
319
+ Type["LINK"] = "LINK";
320
+ /** Triggers custom action that is defined in plugin configuration by the consumer */
321
+ Type["ACTION"] = "ACTION";
322
+ })(Type || (Type = {}));
323
+ export var Target;
324
+ (function (Target) {
325
+ /** Opens the linked document in the same frame as it was clicked (this is default) */
326
+ Target["SELF"] = "SELF";
327
+ /** Opens the linked document in a new window or tab */
328
+ Target["BLANK"] = "BLANK";
329
+ /** Opens the linked document in the parent frame */
330
+ Target["PARENT"] = "PARENT";
331
+ /** Opens the linked document in the full body of the window */
332
+ Target["TOP"] = "TOP";
333
+ })(Target || (Target = {}));
334
+ export var TextAlignment;
335
+ (function (TextAlignment) {
336
+ /** browser default, eqivalent to `initial` */
337
+ TextAlignment["AUTO"] = "AUTO";
338
+ /** Left align */
339
+ TextAlignment["LEFT"] = "LEFT";
340
+ /** Right align */
341
+ TextAlignment["RIGHT"] = "RIGHT";
342
+ /** Center align */
343
+ TextAlignment["CENTER"] = "CENTER";
344
+ /** Text is spaced to line up its left and right edges to the left and right edges of the line box, except for the last line */
345
+ TextAlignment["JUSTIFY"] = "JUSTIFY";
346
+ })(TextAlignment || (TextAlignment = {}));
347
+ export var LineStyle;
348
+ (function (LineStyle) {
349
+ /** Single Line */
350
+ LineStyle["SINGLE"] = "SINGLE";
351
+ /** Double Line */
352
+ LineStyle["DOUBLE"] = "DOUBLE";
353
+ /** Dashed Line */
354
+ LineStyle["DASHED"] = "DASHED";
355
+ /** Dotted Line */
356
+ LineStyle["DOTTED"] = "DOTTED";
357
+ })(LineStyle || (LineStyle = {}));
358
+ export var Width;
359
+ (function (Width) {
360
+ /** Large line */
361
+ Width["LARGE"] = "LARGE";
362
+ /** Medium line */
363
+ Width["MEDIUM"] = "MEDIUM";
364
+ /** Small line */
365
+ Width["SMALL"] = "SMALL";
366
+ })(Width || (Width = {}));
367
+ export var Alignment;
368
+ (function (Alignment) {
369
+ /** Center alignment */
370
+ Alignment["CENTER"] = "CENTER";
371
+ /** Left alignment */
372
+ Alignment["LEFT"] = "LEFT";
373
+ /** Right alignment */
374
+ Alignment["RIGHT"] = "RIGHT";
375
+ })(Alignment || (Alignment = {}));
376
+ export var ViewMode;
377
+ (function (ViewMode) {
378
+ /** No PDF view */
379
+ ViewMode["NONE"] = "NONE";
380
+ /** Full PDF view */
381
+ ViewMode["FULL"] = "FULL";
382
+ /** Mini PDF view */
383
+ ViewMode["MINI"] = "MINI";
384
+ })(ViewMode || (ViewMode = {}));
385
+ export var LayoutType;
386
+ (function (LayoutType) {
387
+ /** Collage type */
388
+ LayoutType["COLLAGE"] = "COLLAGE";
389
+ /** Masonry type */
390
+ LayoutType["MASONRY"] = "MASONRY";
391
+ /** Grid type */
392
+ LayoutType["GRID"] = "GRID";
393
+ /** Thumbnail type */
394
+ LayoutType["THUMBNAIL"] = "THUMBNAIL";
395
+ /** Slider type */
396
+ LayoutType["SLIDER"] = "SLIDER";
397
+ /** Slideshow type */
398
+ LayoutType["SLIDESHOW"] = "SLIDESHOW";
399
+ /** Panorama type */
400
+ LayoutType["PANORAMA"] = "PANORAMA";
401
+ /** Column type */
402
+ LayoutType["COLUMN"] = "COLUMN";
403
+ /** Magic type */
404
+ LayoutType["MAGIC"] = "MAGIC";
405
+ /** Fullsize images type */
406
+ LayoutType["FULLSIZE"] = "FULLSIZE";
407
+ })(LayoutType || (LayoutType = {}));
408
+ export var Orientation;
409
+ (function (Orientation) {
410
+ /** Rows Orientation */
411
+ Orientation["ROWS"] = "ROWS";
412
+ /** Columns Orientation */
413
+ Orientation["COLUMNS"] = "COLUMNS";
414
+ })(Orientation || (Orientation = {}));
415
+ export var Crop;
416
+ (function (Crop) {
417
+ /** Crop to fill */
418
+ Crop["FILL"] = "FILL";
419
+ /** Crop to fit */
420
+ Crop["FIT"] = "FIT";
421
+ })(Crop || (Crop = {}));
422
+ export var ThumbnailsAlignment;
423
+ (function (ThumbnailsAlignment) {
424
+ /** Top alignment */
425
+ ThumbnailsAlignment["TOP"] = "TOP";
426
+ /** Right alignment */
427
+ ThumbnailsAlignment["RIGHT"] = "RIGHT";
428
+ /** Bottom alignment */
429
+ ThumbnailsAlignment["BOTTOM"] = "BOTTOM";
430
+ /** Left alignment */
431
+ ThumbnailsAlignment["LEFT"] = "LEFT";
432
+ /** No thumbnail */
433
+ ThumbnailsAlignment["NONE"] = "NONE";
434
+ })(ThumbnailsAlignment || (ThumbnailsAlignment = {}));
435
+ export var GIFType;
436
+ (function (GIFType) {
437
+ GIFType["NORMAL"] = "NORMAL";
438
+ GIFType["STICKER"] = "STICKER";
439
+ })(GIFType || (GIFType = {}));
440
+ export var Source;
441
+ (function (Source) {
442
+ Source["HTML"] = "HTML";
443
+ Source["ADSENSE"] = "ADSENSE";
444
+ })(Source || (Source = {}));
445
+ export var Position;
446
+ (function (Position) {
447
+ /** Thumbnail positioned at the start (left in LTR layouts, right in RTL layouts) */
448
+ Position["START"] = "START";
449
+ /** Thumbnail positioned at the end (right in LTR layouts, left in RTL layouts) */
450
+ Position["END"] = "END";
451
+ /** Thumbnail positioned at the top */
452
+ Position["TOP"] = "TOP";
453
+ /** Thumbnail hidden and not displayed */
454
+ Position["HIDDEN"] = "HIDDEN";
455
+ })(Position || (Position = {}));
456
+ export var MapType;
457
+ (function (MapType) {
458
+ /** Roadmap map type */
459
+ MapType["ROADMAP"] = "ROADMAP";
460
+ /** Satellite map type */
461
+ MapType["SATELITE"] = "SATELITE";
462
+ /** Hybrid map type */
463
+ MapType["HYBRID"] = "HYBRID";
464
+ /** Terrain map type */
465
+ MapType["TERRAIN"] = "TERRAIN";
466
+ })(MapType || (MapType = {}));
467
+ export var ViewRole;
468
+ (function (ViewRole) {
469
+ /** Only Poll creator can view the results */
470
+ ViewRole["CREATOR"] = "CREATOR";
471
+ /** Anyone who voted can see the results */
472
+ ViewRole["VOTERS"] = "VOTERS";
473
+ /** Anyone can see the results, even if one didn't vote */
474
+ ViewRole["EVERYONE"] = "EVERYONE";
475
+ })(ViewRole || (ViewRole = {}));
476
+ export var VoteRole;
477
+ (function (VoteRole) {
478
+ /** Logged in member */
479
+ VoteRole["SITE_MEMBERS"] = "SITE_MEMBERS";
480
+ /** Anyone */
481
+ VoteRole["ALL"] = "ALL";
482
+ })(VoteRole || (VoteRole = {}));
483
+ export var PollLayoutType;
484
+ (function (PollLayoutType) {
485
+ /** List */
486
+ PollLayoutType["LIST"] = "LIST";
487
+ /** Grid */
488
+ PollLayoutType["GRID"] = "GRID";
489
+ })(PollLayoutType || (PollLayoutType = {}));
490
+ export var PollLayoutDirection;
491
+ (function (PollLayoutDirection) {
492
+ /** Left-to-right */
493
+ PollLayoutDirection["LTR"] = "LTR";
494
+ /** Right-to-left */
495
+ PollLayoutDirection["RTL"] = "RTL";
496
+ })(PollLayoutDirection || (PollLayoutDirection = {}));
497
+ export var BackgroundType;
498
+ (function (BackgroundType) {
499
+ /** Color background type */
500
+ BackgroundType["COLOR"] = "COLOR";
501
+ /** Image background type */
502
+ BackgroundType["IMAGE"] = "IMAGE";
503
+ /** Gradiant background type */
504
+ BackgroundType["GRADIENT"] = "GRADIENT";
505
+ })(BackgroundType || (BackgroundType = {}));
506
+ export var DecorationType;
507
+ (function (DecorationType) {
508
+ DecorationType["BOLD"] = "BOLD";
509
+ DecorationType["ITALIC"] = "ITALIC";
510
+ DecorationType["UNDERLINE"] = "UNDERLINE";
511
+ DecorationType["SPOILER"] = "SPOILER";
512
+ DecorationType["ANCHOR"] = "ANCHOR";
513
+ DecorationType["MENTION"] = "MENTION";
514
+ DecorationType["LINK"] = "LINK";
515
+ DecorationType["COLOR"] = "COLOR";
516
+ DecorationType["FONT_SIZE"] = "FONT_SIZE";
517
+ DecorationType["EXTERNAL"] = "EXTERNAL";
518
+ DecorationType["STRIKETHROUGH"] = "STRIKETHROUGH";
519
+ })(DecorationType || (DecorationType = {}));
520
+ export var FontType;
521
+ (function (FontType) {
522
+ FontType["PX"] = "PX";
523
+ FontType["EM"] = "EM";
524
+ })(FontType || (FontType = {}));
525
+ export var AppType;
526
+ (function (AppType) {
527
+ AppType["PRODUCT"] = "PRODUCT";
528
+ AppType["EVENT"] = "EVENT";
529
+ AppType["BOOKING"] = "BOOKING";
530
+ })(AppType || (AppType = {}));
531
+ export var InitialExpandedItems;
532
+ (function (InitialExpandedItems) {
533
+ /** First item will be expended initally */
534
+ InitialExpandedItems["FIRST"] = "FIRST";
535
+ /** All items will expended initally */
536
+ InitialExpandedItems["ALL"] = "ALL";
537
+ /** All items collapsed initally */
538
+ InitialExpandedItems["NONE"] = "NONE";
539
+ })(InitialExpandedItems || (InitialExpandedItems = {}));
540
+ export var Direction;
541
+ (function (Direction) {
542
+ /** Left-to-right */
543
+ Direction["LTR"] = "LTR";
544
+ /** Right-to-left */
545
+ Direction["RTL"] = "RTL";
546
+ })(Direction || (Direction = {}));
547
+ export var VerticalAlignment;
548
+ (function (VerticalAlignment) {
549
+ /** Top alignment */
550
+ VerticalAlignment["TOP"] = "TOP";
551
+ /** Middle alignment */
552
+ VerticalAlignment["MIDDLE"] = "MIDDLE";
553
+ /** Bottom alignment */
554
+ VerticalAlignment["BOTTOM"] = "BOTTOM";
555
+ })(VerticalAlignment || (VerticalAlignment = {}));
556
+ /**
557
+ * `NullValue` is a singleton enumeration to represent the null value for the
558
+ * `Value` type union.
559
+ *
560
+ * The JSON representation for `NullValue` is JSON `null`.
561
+ */
562
+ export var NullValue;
563
+ (function (NullValue) {
564
+ /** Null value. */
565
+ NullValue["NULL_VALUE"] = "NULL_VALUE";
566
+ })(NullValue || (NullValue = {}));
567
+ export var MediaType;
568
+ (function (MediaType) {
569
+ MediaType["UNKNOWN_MEDIA_TYPE"] = "UNKNOWN_MEDIA_TYPE";
570
+ /** Image media type. */
571
+ MediaType["IMAGE"] = "IMAGE";
572
+ /** Video media type. */
573
+ MediaType["VIDEO"] = "VIDEO";
574
+ })(MediaType || (MediaType = {}));
575
+ export var ProductOptionRenderType;
576
+ (function (ProductOptionRenderType) {
577
+ /** Not implemented. */
578
+ ProductOptionRenderType["UNKNOWN_OPTION_RENDER_TYPE"] = "UNKNOWN_OPTION_RENDER_TYPE";
579
+ /** Text choices. */
580
+ ProductOptionRenderType["TEXT_CHOICES"] = "TEXT_CHOICES";
581
+ /** Swatch choices. */
582
+ ProductOptionRenderType["SWATCH_CHOICES"] = "SWATCH_CHOICES";
583
+ })(ProductOptionRenderType || (ProductOptionRenderType = {}));
584
+ export var ChoiceType;
585
+ (function (ChoiceType) {
586
+ ChoiceType["UNKNOWN_CHOICE_TYPE"] = "UNKNOWN_CHOICE_TYPE";
587
+ /** Text choice. */
588
+ ChoiceType["CHOICE_TEXT"] = "CHOICE_TEXT";
589
+ /** Single color choice. */
590
+ ChoiceType["ONE_COLOR"] = "ONE_COLOR";
591
+ /** Multiple colors choice. */
592
+ ChoiceType["MULTIPLE_COLORS"] = "MULTIPLE_COLORS";
593
+ /** Image choice. */
594
+ ChoiceType["IMAGE"] = "IMAGE";
595
+ })(ChoiceType || (ChoiceType = {}));
596
+ export var ModifierRenderType;
597
+ (function (ModifierRenderType) {
598
+ /** Not implemented. */
599
+ ModifierRenderType["UNKNOWN_MODIFIER_RENDER_TYPE"] = "UNKNOWN_MODIFIER_RENDER_TYPE";
600
+ /** Free text. */
601
+ ModifierRenderType["FREE_TEXT"] = "FREE_TEXT";
602
+ /** Text choices. */
603
+ ModifierRenderType["TEXT_CHOICES"] = "TEXT_CHOICES";
604
+ /** Swatch choices. */
605
+ ModifierRenderType["SWATCH_CHOICES"] = "SWATCH_CHOICES";
606
+ })(ModifierRenderType || (ModifierRenderType = {}));
607
+ export var AvailabilityStatus;
608
+ (function (AvailabilityStatus) {
609
+ AvailabilityStatus["UNKNOWN_AVAILABILITY_STATUS"] = "UNKNOWN_AVAILABILITY_STATUS";
610
+ /** All variants are in stock and available for purchase. */
611
+ AvailabilityStatus["IN_STOCK"] = "IN_STOCK";
612
+ /** All variants are out of stock. */
613
+ AvailabilityStatus["OUT_OF_STOCK"] = "OUT_OF_STOCK";
614
+ /** Some variants are out of stock and some are in stock and available for purchase. */
615
+ AvailabilityStatus["PARTIALLY_OUT_OF_STOCK"] = "PARTIALLY_OUT_OF_STOCK";
616
+ })(AvailabilityStatus || (AvailabilityStatus = {}));
617
+ export var PreorderStatus;
618
+ (function (PreorderStatus) {
619
+ PreorderStatus["UNKNOWN_PREORDER_STATUS"] = "UNKNOWN_PREORDER_STATUS";
620
+ /** All variants are enabled for preorder. */
621
+ PreorderStatus["ENABLED"] = "ENABLED";
622
+ /** All variants are disabled for preorder. */
623
+ PreorderStatus["DISABLED"] = "DISABLED";
624
+ /** Some variants are disabled and some are enabled for preorder. */
625
+ PreorderStatus["PARTIALLY_ENABLED"] = "PARTIALLY_ENABLED";
626
+ })(PreorderStatus || (PreorderStatus = {}));
627
+ export var ProductPreorderAvailability;
628
+ (function (ProductPreorderAvailability) {
629
+ ProductPreorderAvailability["UNKNOWN_PREORDER_AVAILABILITY_STATUS"] = "UNKNOWN_PREORDER_AVAILABILITY_STATUS";
630
+ /** All the product variants are available for preorder. */
631
+ ProductPreorderAvailability["ALL_VARIANTS"] = "ALL_VARIANTS";
632
+ /** None of the product variants are available for preorder. */
633
+ ProductPreorderAvailability["NO_VARIANTS"] = "NO_VARIANTS";
634
+ /** Some of the product variants are available for preorder. */
635
+ ProductPreorderAvailability["SOME_VARIANTS"] = "SOME_VARIANTS";
636
+ })(ProductPreorderAvailability || (ProductPreorderAvailability = {}));
637
+ export var ProductType;
638
+ (function (ProductType) {
639
+ /** Not implemented. */
640
+ ProductType["UNKNOWN_PRODUCT_TYPE"] = "UNKNOWN_PRODUCT_TYPE";
641
+ /** Physical product. */
642
+ ProductType["PHYSICAL"] = "PHYSICAL";
643
+ /** Digital product. */
644
+ ProductType["DIGITAL"] = "DIGITAL";
645
+ })(ProductType || (ProductType = {}));
646
+ export var FileType;
647
+ (function (FileType) {
648
+ /** Unspecified file type. */
649
+ FileType["UNSPECIFIED"] = "UNSPECIFIED";
650
+ /** Secure picture file. */
651
+ FileType["SECURE_PICTURE"] = "SECURE_PICTURE";
652
+ /** Secure video file. */
653
+ FileType["SECURE_VIDEO"] = "SECURE_VIDEO";
654
+ /** Secure document file. */
655
+ FileType["SECURE_DOCUMENT"] = "SECURE_DOCUMENT";
656
+ /** Secure music file. */
657
+ FileType["SECURE_MUSIC"] = "SECURE_MUSIC";
658
+ /** Secure archive file. */
659
+ FileType["SECURE_ARCHIVE"] = "SECURE_ARCHIVE";
660
+ })(FileType || (FileType = {}));
661
+ /** Frequency unit of recurring payment */
662
+ export var SubscriptionFrequency;
663
+ (function (SubscriptionFrequency) {
664
+ SubscriptionFrequency["UNDEFINED"] = "UNDEFINED";
665
+ SubscriptionFrequency["DAY"] = "DAY";
666
+ SubscriptionFrequency["WEEK"] = "WEEK";
667
+ SubscriptionFrequency["MONTH"] = "MONTH";
668
+ SubscriptionFrequency["YEAR"] = "YEAR";
669
+ })(SubscriptionFrequency || (SubscriptionFrequency = {}));
670
+ export var DiscountType;
671
+ (function (DiscountType) {
672
+ DiscountType["UNKNOWN_DISCOUNT"] = "UNKNOWN_DISCOUNT";
673
+ /** Discount by a specific amount. */
674
+ DiscountType["AMOUNT"] = "AMOUNT";
675
+ /** Discount by a percentage. */
676
+ DiscountType["PERCENT"] = "PERCENT";
677
+ })(DiscountType || (DiscountType = {}));
678
+ export var WebhookIdentityType;
679
+ (function (WebhookIdentityType) {
680
+ WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
681
+ WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
682
+ WebhookIdentityType["MEMBER"] = "MEMBER";
683
+ WebhookIdentityType["WIX_USER"] = "WIX_USER";
684
+ WebhookIdentityType["APP"] = "APP";
685
+ })(WebhookIdentityType || (WebhookIdentityType = {}));
686
+ /**
687
+ * Retrieves a list of ReadOnlyVariants, given the provided [paging, filtering, and sorting][1].
688
+ * Up to 1,000 ReadOnlyVariants can be returned per request.
689
+ * To learn how to query ReadOnlyVariants, see [API Query Language][2].
690
+ * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging
691
+ * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language
692
+ * @internal
693
+ * @documentationMaturity preview
694
+ * @permissionScope Manage Stores - all permissions
695
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
696
+ * @permissionScope Read products in v3 catalog
697
+ * @permissionScopeId SCOPE.STORES.PRODUCT_READ
698
+ * @permissionScope Read v3 catalog
699
+ * @permissionScopeId SCOPE.STORES.CATALOG_READ
700
+ * @permissionScope Manage Products
701
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
702
+ * @permissionScope Read Stores - all read permissions
703
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
704
+ * @permissionScope Read Products
705
+ * @permissionScopeId SCOPE.DC-STORES.READ-PRODUCTS
706
+ * @permissionScope Product v3 read admin
707
+ * @permissionScopeId SCOPE.STORES.PRODUCT_READ_ADMIN
708
+ * @permissionScope Manage Restaurants - all permissions
709
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
710
+ * @permissionScope Manage v3 catalog
711
+ * @permissionScopeId SCOPE.STORES.CATALOG_WRITE
712
+ * @permissionScope Manage Orders
713
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
714
+ * @permissionScope Manage Stores - all permissions
715
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
716
+ * @permissionScope Manage Products
717
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
718
+ * @permissionScope Read Stores - all read permissions
719
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
720
+ * @permissionScope Read Products
721
+ * @permissionScopeId SCOPE.DC-STORES.READ-PRODUCTS
722
+ * @permissionScope Product v3 read admin
723
+ * @permissionScopeId SCOPE.STORES.PRODUCT_READ_ADMIN
724
+ * @permissionId WIX_STORES.READ_ONLY_VARIANT_READ
725
+ * @permissionId WIX_STORES.READ_ONLY_VARIANT_READ_HIDDEN
726
+ * @applicableIdentity APP
727
+ * @applicableIdentity VISITOR
728
+ * @fqn com.wix.stores.catalog.product.variants.reader.api.v3.ProductVariantsReader.QueryVariants
729
+ */
730
+ export function queryVariants(options) {
731
+ // @ts-ignore
732
+ const { httpClient, sideEffects } = arguments[1];
733
+ return queryBuilder({
734
+ func: async (payload) => {
735
+ const reqOpts = ambassadorWixStoresCatalogV3ReadOnlyVariant.queryVariants({ ...payload, ...(options ?? {}) });
736
+ sideEffects?.onSiteCall?.();
737
+ try {
738
+ const result = await httpClient.request(reqOpts);
739
+ sideEffects?.onSuccess?.(result);
740
+ return result;
741
+ }
742
+ catch (err) {
743
+ sideEffects?.onError?.(err);
744
+ throw err;
745
+ }
746
+ },
747
+ requestTransformer: (query) => {
748
+ const args = [query, options];
749
+ return renameKeysFromSDKRequestToRESTRequest({
750
+ ...args?.[1],
751
+ query: args?.[0],
752
+ });
753
+ },
754
+ responseTransformer: ({ data }) => {
755
+ const transformedData = renameKeysFromRESTResponseToSDKResponse(transformPaths(data, [
756
+ {
757
+ transformFn: transformRESTImageToSDKImage,
758
+ paths: [{ path: 'variants.media.image' }],
759
+ },
760
+ {
761
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
762
+ paths: [{ path: 'variants.media.video' }],
763
+ },
764
+ ]));
765
+ return {
766
+ items: transformedData?.variants,
767
+ pagingMetadata: transformedData?.pagingMetadata,
768
+ };
769
+ },
770
+ errorTransformer: (err) => {
771
+ const transformedError = sdkTransformError(err, {
772
+ spreadPathsToArguments: {},
773
+ explicitPathsToArguments: { query: '$[0]' },
774
+ singleArgumentUnchanged: false,
775
+ });
776
+ throw transformedError;
777
+ },
778
+ pagingMethod: 'CURSOR',
779
+ transformationPaths: {},
780
+ });
781
+ }
782
+ //# sourceMappingURL=stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal.js.map