@uniformdev/canvas 19.113.1-alpha.1 → 19.114.1-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.
package/dist/index.d.mts CHANGED
@@ -3031,11 +3031,9 @@ interface paths$b {
3031
3031
  */
3032
3032
  orderBy?: components$4["parameters"]["orderBy"];
3033
3033
  /**
3034
- * Matches compositions based on whether they are a pattern composition or a regular composition.
3035
- * If true, only pattern compositions will be returned.
3036
- * If false, only regular compositions will be returned.
3037
- * If omitted, both pattern and regular compositions will be returned.
3038
- * This is a list query parameter, and cannot be used with any primary query parameters.
3034
+ * Matches entries based on whether they are pattern entries or a regular entries.
3035
+ * If true, only pattern entries will be returned.
3036
+ * If false (default), only regular entries will be returned.
3039
3037
  */
3040
3038
  pattern?: components$4["parameters"]["pattern"];
3041
3039
  /** The project the entry/entries are on. */
@@ -3432,11 +3430,9 @@ interface components$4 {
3432
3430
  */
3433
3431
  skipParameterResolution: boolean;
3434
3432
  /**
3435
- * @description Matches compositions based on whether they are a pattern composition or a regular composition.
3436
- * If true, only pattern compositions will be returned.
3437
- * If false, only regular compositions will be returned.
3438
- * If omitted, both pattern and regular compositions will be returned.
3439
- * This is a list query parameter, and cannot be used with any primary query parameters.
3433
+ * @description Matches entries based on whether they are pattern entries or a regular entries.
3434
+ * If true, only pattern entries will be returned.
3435
+ * If false (default), only regular entries will be returned.
3440
3436
  */
3441
3437
  pattern: boolean;
3442
3438
  /**
@@ -11206,11 +11202,9 @@ interface external$3 {
11206
11202
  */
11207
11203
  orderBy?: external$3["../../../lambda/functions/v1-entries.swagger.yml"]["components"]["parameters"]["orderBy"];
11208
11204
  /**
11209
- * Matches compositions based on whether they are a pattern composition or a regular composition.
11210
- * If true, only pattern compositions will be returned.
11211
- * If false, only regular compositions will be returned.
11212
- * If omitted, both pattern and regular compositions will be returned.
11213
- * This is a list query parameter, and cannot be used with any primary query parameters.
11205
+ * Matches entries based on whether they are pattern entries or a regular entries.
11206
+ * If true, only pattern entries will be returned.
11207
+ * If false (default), only regular entries will be returned.
11214
11208
  */
11215
11209
  pattern?: external$3["../../../lambda/functions/v1-entries.swagger.yml"]["components"]["parameters"]["pattern"];
11216
11210
  /** The project the entry/entries are on. */
@@ -11607,11 +11601,9 @@ interface external$3 {
11607
11601
  */
11608
11602
  skipParameterResolution: boolean;
11609
11603
  /**
11610
- * @description Matches compositions based on whether they are a pattern composition or a regular composition.
11611
- * If true, only pattern compositions will be returned.
11612
- * If false, only regular compositions will be returned.
11613
- * If omitted, both pattern and regular compositions will be returned.
11614
- * This is a list query parameter, and cannot be used with any primary query parameters.
11604
+ * @description Matches entries based on whether they are pattern entries or a regular entries.
11605
+ * If true, only pattern entries will be returned.
11606
+ * If false (default), only regular entries will be returned.
11615
11607
  */
11616
11608
  pattern: boolean;
11617
11609
  /**
@@ -14202,7 +14194,9 @@ type ContentClientOptions = ClientOptions & {
14202
14194
  edgeApiHost?: string;
14203
14195
  disableSWR?: boolean;
14204
14196
  };
14205
- type FilterLhs = 'type' | 'locale' | 'uiStatus' | 'name' | 'slug' | 'creator' | 'author' | 'created' | 'modified' | `fields.${string}`;
14197
+ type BuiltinField = 'type' | 'locale' | 'uiStatus' | 'name' | 'slug' | 'creator' | 'author' | 'created' | 'modified';
14198
+ type Operator = 'match' | 'eq' | 'neq' | 'in' | 'nin' | 'gt' | 'gte' | 'lt' | 'lte' | 'def';
14199
+ type FilterLhs = BuiltinField | `${BuiltinField}[${Operator}]` | `fields.${string}` | `fields.${string}[${Operator}]`;
14206
14200
  type FilterRhs = string | number | boolean | {
14207
14201
  match: string;
14208
14202
  } | {
package/dist/index.d.ts CHANGED
@@ -3031,11 +3031,9 @@ interface paths$b {
3031
3031
  */
3032
3032
  orderBy?: components$4["parameters"]["orderBy"];
3033
3033
  /**
3034
- * Matches compositions based on whether they are a pattern composition or a regular composition.
3035
- * If true, only pattern compositions will be returned.
3036
- * If false, only regular compositions will be returned.
3037
- * If omitted, both pattern and regular compositions will be returned.
3038
- * This is a list query parameter, and cannot be used with any primary query parameters.
3034
+ * Matches entries based on whether they are pattern entries or a regular entries.
3035
+ * If true, only pattern entries will be returned.
3036
+ * If false (default), only regular entries will be returned.
3039
3037
  */
3040
3038
  pattern?: components$4["parameters"]["pattern"];
3041
3039
  /** The project the entry/entries are on. */
@@ -3432,11 +3430,9 @@ interface components$4 {
3432
3430
  */
3433
3431
  skipParameterResolution: boolean;
3434
3432
  /**
3435
- * @description Matches compositions based on whether they are a pattern composition or a regular composition.
3436
- * If true, only pattern compositions will be returned.
3437
- * If false, only regular compositions will be returned.
3438
- * If omitted, both pattern and regular compositions will be returned.
3439
- * This is a list query parameter, and cannot be used with any primary query parameters.
3433
+ * @description Matches entries based on whether they are pattern entries or a regular entries.
3434
+ * If true, only pattern entries will be returned.
3435
+ * If false (default), only regular entries will be returned.
3440
3436
  */
3441
3437
  pattern: boolean;
3442
3438
  /**
@@ -11206,11 +11202,9 @@ interface external$3 {
11206
11202
  */
11207
11203
  orderBy?: external$3["../../../lambda/functions/v1-entries.swagger.yml"]["components"]["parameters"]["orderBy"];
11208
11204
  /**
11209
- * Matches compositions based on whether they are a pattern composition or a regular composition.
11210
- * If true, only pattern compositions will be returned.
11211
- * If false, only regular compositions will be returned.
11212
- * If omitted, both pattern and regular compositions will be returned.
11213
- * This is a list query parameter, and cannot be used with any primary query parameters.
11205
+ * Matches entries based on whether they are pattern entries or a regular entries.
11206
+ * If true, only pattern entries will be returned.
11207
+ * If false (default), only regular entries will be returned.
11214
11208
  */
11215
11209
  pattern?: external$3["../../../lambda/functions/v1-entries.swagger.yml"]["components"]["parameters"]["pattern"];
11216
11210
  /** The project the entry/entries are on. */
@@ -11607,11 +11601,9 @@ interface external$3 {
11607
11601
  */
11608
11602
  skipParameterResolution: boolean;
11609
11603
  /**
11610
- * @description Matches compositions based on whether they are a pattern composition or a regular composition.
11611
- * If true, only pattern compositions will be returned.
11612
- * If false, only regular compositions will be returned.
11613
- * If omitted, both pattern and regular compositions will be returned.
11614
- * This is a list query parameter, and cannot be used with any primary query parameters.
11604
+ * @description Matches entries based on whether they are pattern entries or a regular entries.
11605
+ * If true, only pattern entries will be returned.
11606
+ * If false (default), only regular entries will be returned.
11615
11607
  */
11616
11608
  pattern: boolean;
11617
11609
  /**
@@ -14202,7 +14194,9 @@ type ContentClientOptions = ClientOptions & {
14202
14194
  edgeApiHost?: string;
14203
14195
  disableSWR?: boolean;
14204
14196
  };
14205
- type FilterLhs = 'type' | 'locale' | 'uiStatus' | 'name' | 'slug' | 'creator' | 'author' | 'created' | 'modified' | `fields.${string}`;
14197
+ type BuiltinField = 'type' | 'locale' | 'uiStatus' | 'name' | 'slug' | 'creator' | 'author' | 'created' | 'modified';
14198
+ type Operator = 'match' | 'eq' | 'neq' | 'in' | 'nin' | 'gt' | 'gte' | 'lt' | 'lte' | 'def';
14199
+ type FilterLhs = BuiltinField | `${BuiltinField}[${Operator}]` | `fields.${string}` | `fields.${string}[${Operator}]`;
14206
14200
  type FilterRhs = string | number | boolean | {
14207
14201
  match: string;
14208
14202
  } | {
package/dist/index.esm.js CHANGED
@@ -654,7 +654,11 @@ var _ContentClient = class _ContentClient extends ApiClient3 {
654
654
  const url = this.createUrl(__privateGet(_ContentClient, _entriesUrl), { ...params, ...rewrittenFilters, projectId });
655
655
  return this.apiClient(url);
656
656
  }
657
- const edgeUrl = this.createUrl(__privateGet(_ContentClient, _entriesUrl), this.getEdgeOptions(params), this.edgeApiHost);
657
+ const edgeUrl = this.createUrl(
658
+ __privateGet(_ContentClient, _entriesUrl),
659
+ { ...this.getEdgeOptions(params), ...rewrittenFilters },
660
+ this.edgeApiHost
661
+ );
658
662
  return this.apiClient(
659
663
  edgeUrl,
660
664
  this.options.disableSWR ? { headers: { "x-disable-swr": "true" } } : void 0
@@ -2350,6 +2354,7 @@ function convertEntryToPutEntry(entry) {
2350
2354
  fields: entry.entry.fields,
2351
2355
  _locales: entry.entry._locales
2352
2356
  },
2357
+ pattern: entry.pattern,
2353
2358
  state: entry.state,
2354
2359
  projectId: entry.projectId
2355
2360
  };
package/dist/index.js CHANGED
@@ -782,7 +782,11 @@ var _ContentClient = class _ContentClient extends import_api4.ApiClient {
782
782
  const url = this.createUrl(__privateGet(_ContentClient, _entriesUrl), { ...params, ...rewrittenFilters, projectId });
783
783
  return this.apiClient(url);
784
784
  }
785
- const edgeUrl = this.createUrl(__privateGet(_ContentClient, _entriesUrl), this.getEdgeOptions(params), this.edgeApiHost);
785
+ const edgeUrl = this.createUrl(
786
+ __privateGet(_ContentClient, _entriesUrl),
787
+ { ...this.getEdgeOptions(params), ...rewrittenFilters },
788
+ this.edgeApiHost
789
+ );
786
790
  return this.apiClient(
787
791
  edgeUrl,
788
792
  this.options.disableSWR ? { headers: { "x-disable-swr": "true" } } : void 0
@@ -2478,6 +2482,7 @@ function convertEntryToPutEntry(entry) {
2478
2482
  fields: entry.entry.fields,
2479
2483
  _locales: entry.entry._locales
2480
2484
  },
2485
+ pattern: entry.pattern,
2481
2486
  state: entry.state,
2482
2487
  projectId: entry.projectId
2483
2488
  };
package/dist/index.mjs CHANGED
@@ -654,7 +654,11 @@ var _ContentClient = class _ContentClient extends ApiClient3 {
654
654
  const url = this.createUrl(__privateGet(_ContentClient, _entriesUrl), { ...params, ...rewrittenFilters, projectId });
655
655
  return this.apiClient(url);
656
656
  }
657
- const edgeUrl = this.createUrl(__privateGet(_ContentClient, _entriesUrl), this.getEdgeOptions(params), this.edgeApiHost);
657
+ const edgeUrl = this.createUrl(
658
+ __privateGet(_ContentClient, _entriesUrl),
659
+ { ...this.getEdgeOptions(params), ...rewrittenFilters },
660
+ this.edgeApiHost
661
+ );
658
662
  return this.apiClient(
659
663
  edgeUrl,
660
664
  this.options.disableSWR ? { headers: { "x-disable-swr": "true" } } : void 0
@@ -2350,6 +2354,7 @@ function convertEntryToPutEntry(entry) {
2350
2354
  fields: entry.entry.fields,
2351
2355
  _locales: entry.entry._locales
2352
2356
  },
2357
+ pattern: entry.pattern,
2353
2358
  state: entry.state,
2354
2359
  projectId: entry.projectId
2355
2360
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas",
3
- "version": "19.113.1-alpha.1+3e77addb62",
3
+ "version": "19.114.1-alpha.7+205e9240f9",
4
4
  "description": "Common functionality and types for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -38,8 +38,8 @@
38
38
  "pusher-js": "8.2.0"
39
39
  },
40
40
  "dependencies": {
41
- "@uniformdev/assets": "19.113.1-alpha.1+3e77addb62",
42
- "@uniformdev/context": "19.113.1-alpha.1+3e77addb62",
41
+ "@uniformdev/assets": "19.114.1-alpha.7+205e9240f9",
42
+ "@uniformdev/context": "19.114.1-alpha.7+205e9240f9",
43
43
  "immer": "10.0.3"
44
44
  },
45
45
  "files": [
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "3e77addb62f502f808b2ee1c631b4d58e13f555c"
51
+ "gitHead": "205e9240f95b7c75d2cdaefb5588c56b8c1e9368"
52
52
  }