@contentchef/contentchef-types 10.1.0-alpha.6 → 10.1.0-alpha.7

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.
@@ -222,7 +222,29 @@ export type UpdateReleaseRequest = {
222
222
  */
223
223
  export type UpdateReleaseResponse = Release;
224
224
  /**
225
- * This type represent the filters that can be applied to release items in the release V2 API requests
225
+ * This enum represent the comparison operators available to a release item date filter
226
+ */
227
+ export declare enum DateFilterOperator {
228
+ lte = "lte",
229
+ gte = "gte"
230
+ }
231
+ /**
232
+ * This type represent a filter applied to one of the release item date fields
233
+ */
234
+ export type ReleaseItemDateFilter = {
235
+ /**
236
+ * The date to compare the release item date field with, as an ISO 8601 string
237
+ */
238
+ value: string;
239
+ /**
240
+ * The comparison to apply to the release item date field.
241
+ * Defaults to [[DateFilterOperator.lte]], i.e. "at or before"
242
+ */
243
+ operator?: DateFilterOperator;
244
+ };
245
+ /**
246
+ * This type represent the filters that can be applied to release items in the release V2 API requests.
247
+ * When more than one filter is given they are combined with AND
226
248
  */
227
249
  export type ReleaseItemFilters = {
228
250
  /**
@@ -241,6 +263,16 @@ export type ReleaseItemFilters = {
241
263
  * Match only the release items that are (or are not) currently selected to be published
242
264
  */
243
265
  toPublish?: boolean;
266
+ /**
267
+ * Match only the release items whose related content online date satisfies the filter.
268
+ * Release items with no online date never match, whatever the operator
269
+ */
270
+ onlineDate?: ReleaseItemDateFilter;
271
+ /**
272
+ * Match only the release items whose related content offline date satisfies the filter.
273
+ * Release items with no offline date never match, whatever the operator
274
+ */
275
+ offlineDate?: ReleaseItemDateFilter;
244
276
  };
245
277
  /**
246
278
  * This type represent the data needed to make a create release V2 API request
@@ -272,7 +304,9 @@ export type UpdateReleaseV2Request = {
272
304
  includeAll?: boolean;
273
305
  /**
274
306
  * Select the release items matching the given filters. Empty filters select all the release items.
275
- * A toPublish filter is evaluated against the selection before the update
307
+ * A toPublish filter is evaluated against the selection before the update.
308
+ * The filters are the same ones accepted by [[ListReleaseItemsV2Request]], so a selection can be
309
+ * previewed with `listReleaseItemsV2` and then applied by passing the very same filters here
276
310
  */
277
311
  filters?: ReleaseItemFilters;
278
312
  /**
@@ -1,2 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DateFilterOperator = void 0;
4
+ /**
5
+ * This enum represent the comparison operators available to a release item date filter
6
+ */
7
+ var DateFilterOperator;
8
+ (function (DateFilterOperator) {
9
+ DateFilterOperator["lte"] = "lte";
10
+ DateFilterOperator["gte"] = "gte";
11
+ })(DateFilterOperator || (exports.DateFilterOperator = DateFilterOperator = {}));
@@ -236,7 +236,31 @@ export type UpdateReleaseRequest = {
236
236
  export type UpdateReleaseResponse = Release;
237
237
 
238
238
  /**
239
- * This type represent the filters that can be applied to release items in the release V2 API requests
239
+ * This enum represent the comparison operators available to a release item date filter
240
+ */
241
+ export enum DateFilterOperator {
242
+ lte = "lte",
243
+ gte = "gte",
244
+ }
245
+
246
+ /**
247
+ * This type represent a filter applied to one of the release item date fields
248
+ */
249
+ export type ReleaseItemDateFilter = {
250
+ /**
251
+ * The date to compare the release item date field with, as an ISO 8601 string
252
+ */
253
+ value: string;
254
+ /**
255
+ * The comparison to apply to the release item date field.
256
+ * Defaults to [[DateFilterOperator.lte]], i.e. "at or before"
257
+ */
258
+ operator?: DateFilterOperator;
259
+ };
260
+
261
+ /**
262
+ * This type represent the filters that can be applied to release items in the release V2 API requests.
263
+ * When more than one filter is given they are combined with AND
240
264
  */
241
265
  export type ReleaseItemFilters = {
242
266
  /**
@@ -255,6 +279,16 @@ export type ReleaseItemFilters = {
255
279
  * Match only the release items that are (or are not) currently selected to be published
256
280
  */
257
281
  toPublish?: boolean;
282
+ /**
283
+ * Match only the release items whose related content online date satisfies the filter.
284
+ * Release items with no online date never match, whatever the operator
285
+ */
286
+ onlineDate?: ReleaseItemDateFilter;
287
+ /**
288
+ * Match only the release items whose related content offline date satisfies the filter.
289
+ * Release items with no offline date never match, whatever the operator
290
+ */
291
+ offlineDate?: ReleaseItemDateFilter;
258
292
  };
259
293
 
260
294
  /**
@@ -289,7 +323,9 @@ export type UpdateReleaseV2Request = {
289
323
  includeAll?: boolean;
290
324
  /**
291
325
  * Select the release items matching the given filters. Empty filters select all the release items.
292
- * A toPublish filter is evaluated against the selection before the update
326
+ * A toPublish filter is evaluated against the selection before the update.
327
+ * The filters are the same ones accepted by [[ListReleaseItemsV2Request]], so a selection can be
328
+ * previewed with `listReleaseItemsV2` and then applied by passing the very same filters here
293
329
  */
294
330
  filters?: ReleaseItemFilters;
295
331
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentchef/contentchef-types",
3
- "version": "10.1.0-alpha.6",
3
+ "version": "10.1.0-alpha.7",
4
4
  "description": "ContentChef types",
5
5
  "author": "PierpaoloIannone <piannone@byte-code.com>",
6
6
  "homepage": "https://github.com/ContentChef/contentchef-management-js-client#readme",
@@ -34,5 +34,5 @@
34
34
  "devDependencies": {
35
35
  "typescript": "^5.9.3"
36
36
  },
37
- "gitHead": "44d000ee30bfadef421bea413b472ee5290a1000"
37
+ "gitHead": "32486d3ee511a086801ccf537683912616e17884"
38
38
  }