@wix/auto_sdk_online-programs_programs 1.0.22 → 1.0.23

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 (41) hide show
  1. package/build/cjs/index.d.ts +2 -2
  2. package/build/cjs/index.js +2 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +2 -2
  5. package/build/cjs/index.typings.js +2 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +1 -1
  8. package/build/cjs/meta.js +2 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/{online-programs-v3-program-programs.universal-D4WCMJwS.d.ts → online-programs-v3-program-programs.universal-BT1XB9EK.d.ts} +4 -0
  11. package/build/es/index.d.mts +2 -2
  12. package/build/es/index.mjs +2 -0
  13. package/build/es/index.mjs.map +1 -1
  14. package/build/es/index.typings.d.mts +2 -2
  15. package/build/es/index.typings.mjs +2 -0
  16. package/build/es/index.typings.mjs.map +1 -1
  17. package/build/es/meta.d.mts +1 -1
  18. package/build/es/meta.mjs +2 -0
  19. package/build/es/meta.mjs.map +1 -1
  20. package/build/es/{online-programs-v3-program-programs.universal-D4WCMJwS.d.mts → online-programs-v3-program-programs.universal-BT1XB9EK.d.mts} +4 -0
  21. package/build/internal/cjs/index.d.ts +2 -2
  22. package/build/internal/cjs/index.js +2 -0
  23. package/build/internal/cjs/index.js.map +1 -1
  24. package/build/internal/cjs/index.typings.d.ts +2 -2
  25. package/build/internal/cjs/index.typings.js +2 -0
  26. package/build/internal/cjs/index.typings.js.map +1 -1
  27. package/build/internal/cjs/meta.d.ts +219 -2
  28. package/build/internal/cjs/meta.js +2 -0
  29. package/build/internal/cjs/meta.js.map +1 -1
  30. package/build/internal/cjs/{online-programs-v3-program-programs.universal-D4WCMJwS.d.ts → online-programs-v3-program-programs.universal-CY1iRKeB.d.ts} +136 -1
  31. package/build/internal/es/index.d.mts +2 -2
  32. package/build/internal/es/index.mjs +2 -0
  33. package/build/internal/es/index.mjs.map +1 -1
  34. package/build/internal/es/index.typings.d.mts +2 -2
  35. package/build/internal/es/index.typings.mjs +2 -0
  36. package/build/internal/es/index.typings.mjs.map +1 -1
  37. package/build/internal/es/meta.d.mts +219 -2
  38. package/build/internal/es/meta.mjs +2 -0
  39. package/build/internal/es/meta.mjs.map +1 -1
  40. package/build/internal/es/{online-programs-v3-program-programs.universal-D4WCMJwS.d.mts → online-programs-v3-program-programs.universal-CY1iRKeB.d.mts} +136 -1
  41. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- import { ax as CreateProgramRequest$1, ay as CreateProgramResponse$1, aI as DuplicateProgramRequest$1, D as DuplicateProgramResponse$1, aJ as GetProgramRequest$1, aK as GetProgramResponse$1, aL as UpdateProgramRequest$1, aM as UpdateProgramResponse$1, aS as DeleteProgramRequest$1, aT as DeleteProgramResponse$1, aU as QueryProgramsRequest$1, a_ as QueryProgramsResponse$1, b1 as SearchProgramsRequest$1, S as SearchProgramsResponse$1, bF as PublishProgramRequest$1, c as PublishProgramResponse$1, bG as EndProgramRequest$1, E as EndProgramResponse$1, bH as ArchiveProgramRequest$1, A as ArchiveProgramResponse$1, bI as BulkUpdateProgramsRequest$1, e as BulkUpdateProgramsResponse$1, bK as CountProgramsRequest$1, f as CountProgramsResponse$1, bL as ListSampleProgramsRequest$1, L as ListSampleProgramsResponse$1 } from './online-programs-v3-program-programs.universal-D4WCMJwS.mjs';
1
+ import { ax as CreateProgramRequest$1, ay as CreateProgramResponse$1, aI as DuplicateProgramRequest$1, D as DuplicateProgramResponse$1, aJ as GetProgramRequest$1, aK as GetProgramResponse$1, aL as UpdateProgramRequest$1, aM as UpdateProgramResponse$1, aS as DeleteProgramRequest$1, aT as DeleteProgramResponse$1, aU as QueryProgramsRequest$1, a_ as QueryProgramsResponse$1, b1 as SearchProgramsRequest$1, S as SearchProgramsResponse$1, bF as PublishProgramRequest$1, c as PublishProgramResponse$1, bG as EndProgramRequest$1, E as EndProgramResponse$1, bH as ArchiveProgramRequest$1, A as ArchiveProgramResponse$1, bI as BulkUpdateProgramsRequest$1, e as BulkUpdateProgramsResponse$1, bK as CountProgramsRequest$1, f as CountProgramsResponse$1, bL as ListSampleProgramsRequest$1, L as ListSampleProgramsResponse$1 } from './online-programs-v3-program-programs.universal-CY1iRKeB.mjs';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  /**
@@ -136,11 +136,29 @@ interface Image {
136
136
  width?: number;
137
137
  /** Image alt text. */
138
138
  altText?: string | null;
139
+ /**
140
+ * Image URL expiration date (when relevant).
141
+ * @internal
142
+ * @readonly
143
+ */
144
+ urlExpirationDate?: Date | null;
139
145
  /**
140
146
  * Image filename.
141
147
  * @readonly
142
148
  */
143
149
  filename?: string | null;
150
+ /**
151
+ * Image size in bytes.
152
+ * @internal
153
+ * @readonly
154
+ * @format DECIMAL_VALUE
155
+ */
156
+ sizeInBytes?: string | null;
157
+ /**
158
+ * Focal point of the image.
159
+ * @internal
160
+ */
161
+ focalPoint?: FocalPoint;
144
162
  }
145
163
  interface FocalPoint {
146
164
  /** X-coordinate of the focal point. */
@@ -155,6 +173,11 @@ interface FocalPoint {
155
173
  interface VideoV2 {
156
174
  /** WixMedia ID. */
157
175
  id?: string;
176
+ /**
177
+ * Original video URL.
178
+ * @internal
179
+ */
180
+ url?: string;
158
181
  /**
159
182
  * Available resolutions for the video, starting with the optimal resolution.
160
183
  * @readonly
@@ -166,6 +189,55 @@ interface VideoV2 {
166
189
  * @readonly
167
190
  */
168
191
  filename?: string | null;
192
+ /**
193
+ * Video posters.
194
+ * @internal
195
+ * @readonly
196
+ */
197
+ posters?: Image[];
198
+ /**
199
+ * Original video size in bytes.
200
+ * @internal
201
+ * @readonly
202
+ * @format DECIMAL_VALUE
203
+ */
204
+ sizeInBytes?: string | null;
205
+ /**
206
+ * Video URL expiration date (when relevant).
207
+ * @internal
208
+ * @readonly
209
+ */
210
+ urlExpirationDate?: Date | null;
211
+ /**
212
+ * Original video duration in milliseconds.
213
+ * @internal
214
+ * @readonly
215
+ */
216
+ durationInMilliseconds?: number | null;
217
+ /**
218
+ * A short title for the video. will be used for SEO purposes.
219
+ * @internal
220
+ * @maxLength 300
221
+ */
222
+ title?: string | null;
223
+ /**
224
+ * A long description for the video. will be used for SEO purposes.
225
+ * @internal
226
+ * @maxLength 2000
227
+ */
228
+ description?: string | null;
229
+ /**
230
+ * Original video height.
231
+ * @internal
232
+ * @readonly
233
+ */
234
+ height?: number | null;
235
+ /**
236
+ * Original video width.
237
+ * @internal
238
+ * @readonly
239
+ */
240
+ width?: number | null;
169
241
  }
170
242
  interface VideoResolution {
171
243
  /** Video URL. */
@@ -174,8 +246,68 @@ interface VideoResolution {
174
246
  height?: number;
175
247
  /** Video width. */
176
248
  width?: number;
249
+ /**
250
+ * Deprecated. Use the `posters` property in the parent entity instead.
251
+ * @internal
252
+ * @deprecated
253
+ */
254
+ poster?: Image;
177
255
  /** Video format for example, mp4, hls. */
178
256
  format?: string;
257
+ /**
258
+ * Deprecated. Use the `urlExpirationDate` property in the parent entity instead.
259
+ * @internal
260
+ * @deprecated
261
+ */
262
+ urlExpirationDate?: Date | null;
263
+ /**
264
+ * Deprecated. Use the `sizeInBytes` property in the parent entity instead. Size cannot be provided per resolution.
265
+ * @internal
266
+ * @format DECIMAL_VALUE
267
+ * @deprecated
268
+ */
269
+ sizeInBytes?: string | null;
270
+ /**
271
+ * Video quality. For example: 480p, 720p.
272
+ * @internal
273
+ */
274
+ quality?: string | null;
275
+ /**
276
+ * Video filename.
277
+ * @internal
278
+ */
279
+ filename?: string | null;
280
+ /**
281
+ * Video duration in seconds.
282
+ * @internal
283
+ * @readonly
284
+ * @deprecated Video duration in seconds.
285
+ * @replacedBy duration_in_milliseconds
286
+ * @targetRemovalDate 2024-08-01
287
+ */
288
+ durationInSeconds?: number | null;
289
+ /**
290
+ * Video duration in milliseconds.
291
+ * @internal
292
+ * @readonly
293
+ */
294
+ durationInMilliseconds?: number | null;
295
+ /**
296
+ * When true, this is a protected asset, and calling the URL will return a 403 error.
297
+ * In order to access private assets, make a request to:
298
+ * `GenerateFileDownloadUrl` with the WixMedia id and specify the asset_key in the request
299
+ * @internal
300
+ * @readonly
301
+ */
302
+ private?: boolean | null;
303
+ /**
304
+ * Key to identify the video resolution's relationship to the original media in WixMedia.
305
+ * Can be used to request a download for the specific video resolution.
306
+ * For example: 480p.mp4, 720p.mp4, 1080p.mp4, trailer-720p.mp4, clip-720p.mp4
307
+ * @internal
308
+ * @readonly
309
+ */
310
+ assetKey?: string | null;
179
311
  }
180
312
  /** Program scheduling settings. */
181
313
  interface Timeline {
@@ -817,6 +949,11 @@ interface GetProgramResponse {
817
949
  interface UpdateProgramRequest {
818
950
  /** Program fields to update. Include `id` and the latest `revision`. */
819
951
  program: Program;
952
+ /**
953
+ * The list of fields to update. For REST requests, this list is inferred from the request body.
954
+ * @internal
955
+ */
956
+ fieldMask?: string[];
820
957
  }
821
958
  interface UpdateProgramResponse {
822
959
  /** Updated program. */
@@ -893,6 +1030,20 @@ interface Sorting {
893
1030
  fieldName?: string;
894
1031
  /** Sort order. */
895
1032
  order?: SortOrderWithLiterals;
1033
+ /**
1034
+ * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
1035
+ * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
1036
+ *
1037
+ * If multiple filters are provided, they are combined with AND operator.
1038
+ *
1039
+ * Example:
1040
+ * Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
1041
+ * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
1042
+ * { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
1043
+ * @internal
1044
+ * @maxSize 10
1045
+ */
1046
+ selectItemsBy?: Record<string, any>[] | null;
896
1047
  }
897
1048
  declare enum SortOrder {
898
1049
  ASC = "ASC",
@@ -937,6 +1088,13 @@ interface PagingMetadataV2 {
937
1088
  tooManyToCount?: boolean | null;
938
1089
  /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
939
1090
  cursors?: Cursors;
1091
+ /**
1092
+ * Indicates if there are more results after the current page.
1093
+ * If `true`, another page of results can be retrieved.
1094
+ * If `false`, this is the last page.
1095
+ * @internal
1096
+ */
1097
+ hasNext?: boolean | null;
940
1098
  }
941
1099
  interface Cursors {
942
1100
  /**
@@ -1089,7 +1247,17 @@ declare enum ScalarType {
1089
1247
  /** Minimum value. */
1090
1248
  MIN = "MIN",
1091
1249
  /** Maximum value. */
1092
- MAX = "MAX"
1250
+ MAX = "MAX",
1251
+ /**
1252
+ * Sum of values.
1253
+ * @internal
1254
+ */
1255
+ SUM = "SUM",
1256
+ /**
1257
+ * Average of values.
1258
+ * @internal
1259
+ */
1260
+ AVG = "AVG"
1093
1261
  }
1094
1262
  /** @enumType */
1095
1263
  type ScalarTypeWithLiterals = ScalarType | 'COUNT_DISTINCT' | 'MIN' | 'MAX';
@@ -1275,6 +1443,13 @@ interface CursorPagingMetadata {
1275
1443
  * + `false`: This is the last page.
1276
1444
  */
1277
1445
  hasNext?: boolean | null;
1446
+ /**
1447
+ * Total number of items matching the filter.
1448
+ * Available only on the first page of *Search* results, not included in *Query* or *List* results.
1449
+ * If the Search results span multiple pages, the value of `total` will exceed the number of items returned on the first page.
1450
+ * @internal
1451
+ */
1452
+ total?: number | null;
1278
1453
  }
1279
1454
  interface AggregationData {
1280
1455
  /**
@@ -1613,8 +1788,18 @@ interface DomainEventBodyOneOf {
1613
1788
  }
1614
1789
  interface EntityCreatedEvent {
1615
1790
  entityAsJson?: string;
1791
+ /**
1792
+ * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
1793
+ * @internal
1794
+ */
1795
+ triggeredByUndelete?: boolean | null;
1616
1796
  /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
1617
1797
  restoreInfo?: RestoreInfo;
1798
+ /**
1799
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
1800
+ * @internal
1801
+ */
1802
+ additionalMetadataAsJson?: string | null;
1618
1803
  }
1619
1804
  interface RestoreInfo {
1620
1805
  deletedDate?: Date | null;
@@ -1626,10 +1811,42 @@ interface EntityUpdatedEvent {
1626
1811
  * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1627
1812
  */
1628
1813
  currentEntityAsJson?: string;
1814
+ /**
1815
+ * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
1816
+ * wont populate it / have any reference to it in the API.
1817
+ * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
1818
+ * the developer should send only the new (current) entity.
1819
+ * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
1820
+ * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
1821
+ * @internal
1822
+ * @deprecated
1823
+ */
1824
+ previousEntityAsJson?: string | null;
1825
+ /**
1826
+ * Map of fully qualified field paths to their previous values for fields that changed.
1827
+ * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
1828
+ * @internal
1829
+ */
1830
+ modifiedFields?: Record<string, any>;
1831
+ /**
1832
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
1833
+ * @internal
1834
+ */
1835
+ additionalMetadataAsJson?: string | null;
1629
1836
  }
1630
1837
  interface EntityDeletedEvent {
1838
+ /**
1839
+ * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
1840
+ * @internal
1841
+ */
1842
+ movedToTrash?: boolean | null;
1631
1843
  /** Entity that was deleted. */
1632
1844
  deletedEntityAsJson?: string | null;
1845
+ /**
1846
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
1847
+ * @internal
1848
+ */
1849
+ additionalMetadataAsJson?: string | null;
1633
1850
  }
1634
1851
  interface ActionEvent {
1635
1852
  bodyAsJson?: string;
@@ -959,6 +959,8 @@ var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
959
959
  ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
960
960
  ScalarType2["MIN"] = "MIN";
961
961
  ScalarType2["MAX"] = "MAX";
962
+ ScalarType2["SUM"] = "SUM";
963
+ ScalarType2["AVG"] = "AVG";
962
964
  return ScalarType2;
963
965
  })(ScalarType || {});
964
966
  var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {