@uniformdev/mesh-edgehancer-sdk 19.186.4-alpha.4 → 19.187.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.
package/dist/index.d.mts CHANGED
@@ -239,7 +239,7 @@ declare const mergedDataTypeSchema: z.ZodObject<{
239
239
  url: string;
240
240
  }) | undefined;
241
241
  }>>;
242
- dataSourceVariant: z.ZodOptional<z.ZodEnum<["unpublished"]>>;
242
+ enableUnpublishedMode: z.ZodOptional<z.ZodBoolean>;
243
243
  }, "strip", z.ZodTypeAny, {
244
244
  displayName: string;
245
245
  url: string;
@@ -302,7 +302,7 @@ declare const mergedDataTypeSchema: z.ZodObject<{
302
302
  url: string;
303
303
  }) | undefined;
304
304
  } | undefined;
305
- dataSourceVariant?: "unpublished" | undefined;
305
+ enableUnpublishedMode?: boolean | undefined;
306
306
  }, {
307
307
  displayName: string;
308
308
  url: string;
@@ -365,14 +365,14 @@ declare const mergedDataTypeSchema: z.ZodObject<{
365
365
  url: string;
366
366
  }) | undefined;
367
367
  } | undefined;
368
- dataSourceVariant?: "unpublished" | undefined;
368
+ enableUnpublishedMode?: boolean | undefined;
369
369
  }>;
370
370
  /** Declaration of custom edgehancer hooks on a merged data type */
371
371
  type CustomEdgehancerDefinition = z.infer<typeof customEdgehancerDefinitionSchema>;
372
372
  /**
373
373
  * The result of merging a data source with a data type into a single request object
374
374
  */
375
- type MergedDataType = Omit<DataType, 'dataSourceId' | 'path'> & Pick<DataSource, 'connectorType' | 'localeMapping' | 'customPublic'> & {
375
+ type MergedDataType = Omit<DataType, 'dataSourceId' | 'path'> & Pick<DataSource, 'connectorType' | 'localeMapping' | 'customPublic' | 'enableUnpublishedMode'> & {
376
376
  /**
377
377
  * Data Source variants with "url" with the merged DS base URL and DT relative URL,
378
378
  * same way we have the "url" in the MergedDataType. We need it merged for mergeDataResourcesWithDataTypes() to switch between variants
@@ -396,7 +396,6 @@ type MergedDataType = Omit<DataType, 'dataSourceId' | 'path'> & Pick<DataSource,
396
396
  * Max length 12
397
397
  */
398
398
  uiBadgeText?: string;
399
- dataSourceVariant?: DataSourceVariantsKeys;
400
399
  };
401
400
  declare const dataResourceSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown, "many">, z.ZodUndefined]>;
402
401
  /** A data resource of JSON data retrieved from a data type/data source */
@@ -734,7 +733,7 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
734
733
  url: string;
735
734
  }) | undefined;
736
735
  }>>;
737
- dataSourceVariant: z.ZodOptional<z.ZodEnum<["unpublished"]>>;
736
+ enableUnpublishedMode: z.ZodOptional<z.ZodBoolean>;
738
737
  }, "displayName" | "variables" | "id" | "allowedOnComponents" | "badgeIconUrl" | "purgeKey" | "edgehancer">, "strip", z.ZodTypeAny, {
739
738
  url: string;
740
739
  connectorType: string;
@@ -780,7 +779,7 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
780
779
  url: string;
781
780
  }) | undefined;
782
781
  } | undefined;
783
- dataSourceVariant?: "unpublished" | undefined;
782
+ enableUnpublishedMode?: boolean | undefined;
784
783
  }, {
785
784
  url: string;
786
785
  connectorType: string;
@@ -826,7 +825,7 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
826
825
  url: string;
827
826
  }) | undefined;
828
827
  } | undefined;
829
- dataSourceVariant?: "unpublished" | undefined;
828
+ enableUnpublishedMode?: boolean | undefined;
830
829
  }>;
831
830
  type EdgehancerMergedDataType = z.infer<typeof edgehancerMergedDataTypeSchema>;
832
831
  type PreRequestEdgehancerDataResourceContext = {
@@ -1067,7 +1066,7 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
1067
1066
  url: string;
1068
1067
  }) | undefined;
1069
1068
  }>>;
1070
- dataSourceVariant: z.ZodOptional<z.ZodEnum<["unpublished"]>>;
1069
+ enableUnpublishedMode: z.ZodOptional<z.ZodBoolean>;
1071
1070
  }, "displayName" | "variables" | "id" | "allowedOnComponents" | "badgeIconUrl" | "purgeKey" | "edgehancer">, "strip", z.ZodTypeAny, {
1072
1071
  url: string;
1073
1072
  connectorType: string;
@@ -1113,7 +1112,7 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
1113
1112
  url: string;
1114
1113
  }) | undefined;
1115
1114
  } | undefined;
1116
- dataSourceVariant?: "unpublished" | undefined;
1115
+ enableUnpublishedMode?: boolean | undefined;
1117
1116
  }, {
1118
1117
  url: string;
1119
1118
  connectorType: string;
@@ -1159,7 +1158,7 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
1159
1158
  url: string;
1160
1159
  }) | undefined;
1161
1160
  } | undefined;
1162
- dataSourceVariant?: "unpublished" | undefined;
1161
+ enableUnpublishedMode?: boolean | undefined;
1163
1162
  }>;
1164
1163
  }, "strict", z.ZodTypeAny, {
1165
1164
  dataResource: {
@@ -1207,7 +1206,7 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
1207
1206
  url: string;
1208
1207
  }) | undefined;
1209
1208
  } | undefined;
1210
- dataSourceVariant?: "unpublished" | undefined;
1209
+ enableUnpublishedMode?: boolean | undefined;
1211
1210
  };
1212
1211
  errors?: string[] | undefined;
1213
1212
  warnings?: string[] | undefined;
@@ -1258,7 +1257,7 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
1258
1257
  url: string;
1259
1258
  }) | undefined;
1260
1259
  } | undefined;
1261
- dataSourceVariant?: "unpublished" | undefined;
1260
+ enableUnpublishedMode?: boolean | undefined;
1262
1261
  };
1263
1262
  errors?: string[] | undefined;
1264
1263
  warnings?: string[] | undefined;
@@ -1485,7 +1484,7 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1485
1484
  url: string;
1486
1485
  }) | undefined;
1487
1486
  }>>;
1488
- dataSourceVariant: z.ZodOptional<z.ZodEnum<["unpublished"]>>;
1487
+ enableUnpublishedMode: z.ZodOptional<z.ZodBoolean>;
1489
1488
  }, "displayName" | "variables" | "id" | "allowedOnComponents" | "badgeIconUrl" | "purgeKey" | "edgehancer">, "strip", z.ZodTypeAny, {
1490
1489
  url: string;
1491
1490
  connectorType: string;
@@ -1531,7 +1530,7 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1531
1530
  url: string;
1532
1531
  }) | undefined;
1533
1532
  } | undefined;
1534
- dataSourceVariant?: "unpublished" | undefined;
1533
+ enableUnpublishedMode?: boolean | undefined;
1535
1534
  }, {
1536
1535
  url: string;
1537
1536
  connectorType: string;
@@ -1577,7 +1576,7 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1577
1576
  url: string;
1578
1577
  }) | undefined;
1579
1578
  } | undefined;
1580
- dataSourceVariant?: "unpublished" | undefined;
1579
+ enableUnpublishedMode?: boolean | undefined;
1581
1580
  }>;
1582
1581
  }, "strict", z.ZodTypeAny, {
1583
1582
  dataResource: {
@@ -1625,7 +1624,7 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1625
1624
  url: string;
1626
1625
  }) | undefined;
1627
1626
  } | undefined;
1628
- dataSourceVariant?: "unpublished" | undefined;
1627
+ enableUnpublishedMode?: boolean | undefined;
1629
1628
  };
1630
1629
  errors?: string[] | undefined;
1631
1630
  warnings?: string[] | undefined;
@@ -1676,7 +1675,7 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1676
1675
  url: string;
1677
1676
  }) | undefined;
1678
1677
  } | undefined;
1679
- dataSourceVariant?: "unpublished" | undefined;
1678
+ enableUnpublishedMode?: boolean | undefined;
1680
1679
  };
1681
1680
  errors?: string[] | undefined;
1682
1681
  warnings?: string[] | undefined;
@@ -1729,7 +1728,7 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1729
1728
  url: string;
1730
1729
  }) | undefined;
1731
1730
  } | undefined;
1732
- dataSourceVariant?: "unpublished" | undefined;
1731
+ enableUnpublishedMode?: boolean | undefined;
1733
1732
  };
1734
1733
  errors?: string[] | undefined;
1735
1734
  warnings?: string[] | undefined;
@@ -1782,7 +1781,7 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1782
1781
  url: string;
1783
1782
  }) | undefined;
1784
1783
  } | undefined;
1785
- dataSourceVariant?: "unpublished" | undefined;
1784
+ enableUnpublishedMode?: boolean | undefined;
1786
1785
  };
1787
1786
  errors?: string[] | undefined;
1788
1787
  warnings?: string[] | undefined;
package/dist/index.d.ts CHANGED
@@ -239,7 +239,7 @@ declare const mergedDataTypeSchema: z.ZodObject<{
239
239
  url: string;
240
240
  }) | undefined;
241
241
  }>>;
242
- dataSourceVariant: z.ZodOptional<z.ZodEnum<["unpublished"]>>;
242
+ enableUnpublishedMode: z.ZodOptional<z.ZodBoolean>;
243
243
  }, "strip", z.ZodTypeAny, {
244
244
  displayName: string;
245
245
  url: string;
@@ -302,7 +302,7 @@ declare const mergedDataTypeSchema: z.ZodObject<{
302
302
  url: string;
303
303
  }) | undefined;
304
304
  } | undefined;
305
- dataSourceVariant?: "unpublished" | undefined;
305
+ enableUnpublishedMode?: boolean | undefined;
306
306
  }, {
307
307
  displayName: string;
308
308
  url: string;
@@ -365,14 +365,14 @@ declare const mergedDataTypeSchema: z.ZodObject<{
365
365
  url: string;
366
366
  }) | undefined;
367
367
  } | undefined;
368
- dataSourceVariant?: "unpublished" | undefined;
368
+ enableUnpublishedMode?: boolean | undefined;
369
369
  }>;
370
370
  /** Declaration of custom edgehancer hooks on a merged data type */
371
371
  type CustomEdgehancerDefinition = z.infer<typeof customEdgehancerDefinitionSchema>;
372
372
  /**
373
373
  * The result of merging a data source with a data type into a single request object
374
374
  */
375
- type MergedDataType = Omit<DataType, 'dataSourceId' | 'path'> & Pick<DataSource, 'connectorType' | 'localeMapping' | 'customPublic'> & {
375
+ type MergedDataType = Omit<DataType, 'dataSourceId' | 'path'> & Pick<DataSource, 'connectorType' | 'localeMapping' | 'customPublic' | 'enableUnpublishedMode'> & {
376
376
  /**
377
377
  * Data Source variants with "url" with the merged DS base URL and DT relative URL,
378
378
  * same way we have the "url" in the MergedDataType. We need it merged for mergeDataResourcesWithDataTypes() to switch between variants
@@ -396,7 +396,6 @@ type MergedDataType = Omit<DataType, 'dataSourceId' | 'path'> & Pick<DataSource,
396
396
  * Max length 12
397
397
  */
398
398
  uiBadgeText?: string;
399
- dataSourceVariant?: DataSourceVariantsKeys;
400
399
  };
401
400
  declare const dataResourceSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown, "many">, z.ZodUndefined]>;
402
401
  /** A data resource of JSON data retrieved from a data type/data source */
@@ -734,7 +733,7 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
734
733
  url: string;
735
734
  }) | undefined;
736
735
  }>>;
737
- dataSourceVariant: z.ZodOptional<z.ZodEnum<["unpublished"]>>;
736
+ enableUnpublishedMode: z.ZodOptional<z.ZodBoolean>;
738
737
  }, "displayName" | "variables" | "id" | "allowedOnComponents" | "badgeIconUrl" | "purgeKey" | "edgehancer">, "strip", z.ZodTypeAny, {
739
738
  url: string;
740
739
  connectorType: string;
@@ -780,7 +779,7 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
780
779
  url: string;
781
780
  }) | undefined;
782
781
  } | undefined;
783
- dataSourceVariant?: "unpublished" | undefined;
782
+ enableUnpublishedMode?: boolean | undefined;
784
783
  }, {
785
784
  url: string;
786
785
  connectorType: string;
@@ -826,7 +825,7 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
826
825
  url: string;
827
826
  }) | undefined;
828
827
  } | undefined;
829
- dataSourceVariant?: "unpublished" | undefined;
828
+ enableUnpublishedMode?: boolean | undefined;
830
829
  }>;
831
830
  type EdgehancerMergedDataType = z.infer<typeof edgehancerMergedDataTypeSchema>;
832
831
  type PreRequestEdgehancerDataResourceContext = {
@@ -1067,7 +1066,7 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
1067
1066
  url: string;
1068
1067
  }) | undefined;
1069
1068
  }>>;
1070
- dataSourceVariant: z.ZodOptional<z.ZodEnum<["unpublished"]>>;
1069
+ enableUnpublishedMode: z.ZodOptional<z.ZodBoolean>;
1071
1070
  }, "displayName" | "variables" | "id" | "allowedOnComponents" | "badgeIconUrl" | "purgeKey" | "edgehancer">, "strip", z.ZodTypeAny, {
1072
1071
  url: string;
1073
1072
  connectorType: string;
@@ -1113,7 +1112,7 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
1113
1112
  url: string;
1114
1113
  }) | undefined;
1115
1114
  } | undefined;
1116
- dataSourceVariant?: "unpublished" | undefined;
1115
+ enableUnpublishedMode?: boolean | undefined;
1117
1116
  }, {
1118
1117
  url: string;
1119
1118
  connectorType: string;
@@ -1159,7 +1158,7 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
1159
1158
  url: string;
1160
1159
  }) | undefined;
1161
1160
  } | undefined;
1162
- dataSourceVariant?: "unpublished" | undefined;
1161
+ enableUnpublishedMode?: boolean | undefined;
1163
1162
  }>;
1164
1163
  }, "strict", z.ZodTypeAny, {
1165
1164
  dataResource: {
@@ -1207,7 +1206,7 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
1207
1206
  url: string;
1208
1207
  }) | undefined;
1209
1208
  } | undefined;
1210
- dataSourceVariant?: "unpublished" | undefined;
1209
+ enableUnpublishedMode?: boolean | undefined;
1211
1210
  };
1212
1211
  errors?: string[] | undefined;
1213
1212
  warnings?: string[] | undefined;
@@ -1258,7 +1257,7 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
1258
1257
  url: string;
1259
1258
  }) | undefined;
1260
1259
  } | undefined;
1261
- dataSourceVariant?: "unpublished" | undefined;
1260
+ enableUnpublishedMode?: boolean | undefined;
1262
1261
  };
1263
1262
  errors?: string[] | undefined;
1264
1263
  warnings?: string[] | undefined;
@@ -1485,7 +1484,7 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1485
1484
  url: string;
1486
1485
  }) | undefined;
1487
1486
  }>>;
1488
- dataSourceVariant: z.ZodOptional<z.ZodEnum<["unpublished"]>>;
1487
+ enableUnpublishedMode: z.ZodOptional<z.ZodBoolean>;
1489
1488
  }, "displayName" | "variables" | "id" | "allowedOnComponents" | "badgeIconUrl" | "purgeKey" | "edgehancer">, "strip", z.ZodTypeAny, {
1490
1489
  url: string;
1491
1490
  connectorType: string;
@@ -1531,7 +1530,7 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1531
1530
  url: string;
1532
1531
  }) | undefined;
1533
1532
  } | undefined;
1534
- dataSourceVariant?: "unpublished" | undefined;
1533
+ enableUnpublishedMode?: boolean | undefined;
1535
1534
  }, {
1536
1535
  url: string;
1537
1536
  connectorType: string;
@@ -1577,7 +1576,7 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1577
1576
  url: string;
1578
1577
  }) | undefined;
1579
1578
  } | undefined;
1580
- dataSourceVariant?: "unpublished" | undefined;
1579
+ enableUnpublishedMode?: boolean | undefined;
1581
1580
  }>;
1582
1581
  }, "strict", z.ZodTypeAny, {
1583
1582
  dataResource: {
@@ -1625,7 +1624,7 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1625
1624
  url: string;
1626
1625
  }) | undefined;
1627
1626
  } | undefined;
1628
- dataSourceVariant?: "unpublished" | undefined;
1627
+ enableUnpublishedMode?: boolean | undefined;
1629
1628
  };
1630
1629
  errors?: string[] | undefined;
1631
1630
  warnings?: string[] | undefined;
@@ -1676,7 +1675,7 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1676
1675
  url: string;
1677
1676
  }) | undefined;
1678
1677
  } | undefined;
1679
- dataSourceVariant?: "unpublished" | undefined;
1678
+ enableUnpublishedMode?: boolean | undefined;
1680
1679
  };
1681
1680
  errors?: string[] | undefined;
1682
1681
  warnings?: string[] | undefined;
@@ -1729,7 +1728,7 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1729
1728
  url: string;
1730
1729
  }) | undefined;
1731
1730
  } | undefined;
1732
- dataSourceVariant?: "unpublished" | undefined;
1731
+ enableUnpublishedMode?: boolean | undefined;
1733
1732
  };
1734
1733
  errors?: string[] | undefined;
1735
1734
  warnings?: string[] | undefined;
@@ -1782,7 +1781,7 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
1782
1781
  url: string;
1783
1782
  }) | undefined;
1784
1783
  } | undefined;
1785
- dataSourceVariant?: "unpublished" | undefined;
1784
+ enableUnpublishedMode?: boolean | undefined;
1786
1785
  };
1787
1786
  errors?: string[] | undefined;
1788
1787
  warnings?: string[] | undefined;
package/dist/index.esm.js CHANGED
@@ -149,7 +149,7 @@ var mergedDataTypeSchema = z.object({
149
149
  variants: z.object({
150
150
  unpublished: dataSourceVariantSchema.optional()
151
151
  }).optional(),
152
- dataSourceVariant: z.enum(["unpublished"]).optional()
152
+ enableUnpublishedMode: z.boolean().optional()
153
153
  });
154
154
  assert();
155
155
  var dataResourceSchema = z.union([
package/dist/index.js CHANGED
@@ -190,7 +190,7 @@ var mergedDataTypeSchema = import_zod.z.object({
190
190
  variants: import_zod.z.object({
191
191
  unpublished: dataSourceVariantSchema.optional()
192
192
  }).optional(),
193
- dataSourceVariant: import_zod.z.enum(["unpublished"]).optional()
193
+ enableUnpublishedMode: import_zod.z.boolean().optional()
194
194
  });
195
195
  (0, import_tsafe.assert)();
196
196
  var dataResourceSchema = import_zod.z.union([
package/dist/index.mjs CHANGED
@@ -149,7 +149,7 @@ var mergedDataTypeSchema = z.object({
149
149
  variants: z.object({
150
150
  unpublished: dataSourceVariantSchema.optional()
151
151
  }).optional(),
152
- dataSourceVariant: z.enum(["unpublished"]).optional()
152
+ enableUnpublishedMode: z.boolean().optional()
153
153
  });
154
154
  assert();
155
155
  var dataResourceSchema = z.union([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/mesh-edgehancer-sdk",
3
- "version": "19.186.4-alpha.4+1424f4a2db",
3
+ "version": "19.187.0",
4
4
  "description": "Uniform Mesh Edgehancer SDK",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -48,12 +48,12 @@
48
48
  "/dist"
49
49
  ],
50
50
  "dependencies": {
51
- "@uniformdev/canvas": "19.186.4-alpha.4+1424f4a2db",
51
+ "@uniformdev/canvas": "19.187.0",
52
52
  "tsafe": "1.6.6",
53
53
  "zod": "3.23.8"
54
54
  },
55
55
  "devDependencies": {
56
- "next": "14.2.5"
56
+ "next": "14.2.10"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "next": ">13"
@@ -61,5 +61,5 @@
61
61
  "publishConfig": {
62
62
  "access": "public"
63
63
  },
64
- "gitHead": "1424f4a2db7b2f40aab77fee598eb714ac00b807"
64
+ "gitHead": "9ccfdb652e2d67d66fe90e2df1845c3c2e3bee8b"
65
65
  }