@uniformdev/mesh-edgehancer-sdk 19.173.1-alpha.17 → 19.173.2-alpha.210

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.esm.js CHANGED
@@ -52,6 +52,11 @@ function resolveBatchFetchIds(batch, resolveBatchItemIdFn) {
52
52
  return result;
53
53
  }
54
54
 
55
+ // src/contentConstants.ts
56
+ var COLLECTION_DEFAULT_LIMIT = 20;
57
+ var COLLECTION_MAX_LIMIT = 50;
58
+ var COLLECTION_DEFAULT_OFFSET = 0;
59
+
55
60
  // src/fetchUtils.ts
56
61
  function getDataResourceAsRequest(data) {
57
62
  var _a;
@@ -113,6 +118,14 @@ var customEdgehancerDefinitionSchema = z.object({
113
118
  preRequest: z.string().optional(),
114
119
  request: z.string().optional()
115
120
  });
121
+ var dataSourceVariantSchema = z.intersection(
122
+ z.object({
123
+ headers: z.array(parameterDefinitionSchema).optional(),
124
+ parameters: z.array(parameterDefinitionSchema).optional(),
125
+ variables: z.record(variableDefinitionSchema).optional()
126
+ }),
127
+ z.object({ url: z.string() })
128
+ );
116
129
  var mergedDataTypeSchema = z.object({
117
130
  id: z.string(),
118
131
  displayName: z.string(),
@@ -132,7 +145,11 @@ var mergedDataTypeSchema = z.object({
132
145
  purgeKey: z.string().optional(),
133
146
  localeMapping: z.record(z.string()).optional(),
134
147
  edgehancer: customEdgehancerDefinitionSchema.optional(),
135
- uiBadgeText: z.string().max(12).optional()
148
+ uiBadgeText: z.string().max(12).optional(),
149
+ variants: z.object({
150
+ unpublished: dataSourceVariantSchema.optional()
151
+ }).optional(),
152
+ dataSourceVariant: z.enum(["unpublished"]).optional()
136
153
  });
137
154
  assert();
138
155
  var dataResourceSchema = z.union([
@@ -183,6 +200,9 @@ var requestEdgehancerResultSchema = z3.strictObject({
183
200
  results: z3.array(requestEdgehancerDataResourceResolutionResultSchema)
184
201
  });
185
202
  export {
203
+ COLLECTION_DEFAULT_LIMIT,
204
+ COLLECTION_DEFAULT_OFFSET,
205
+ COLLECTION_MAX_LIMIT,
186
206
  convertBatchResultsToEdgehancerResult,
187
207
  dataResourceSchema,
188
208
  edgehancerMergedDataTypeSchema,
package/dist/index.js CHANGED
@@ -20,6 +20,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var src_exports = {};
22
22
  __export(src_exports, {
23
+ COLLECTION_DEFAULT_LIMIT: () => COLLECTION_DEFAULT_LIMIT,
24
+ COLLECTION_DEFAULT_OFFSET: () => COLLECTION_DEFAULT_OFFSET,
25
+ COLLECTION_MAX_LIMIT: () => COLLECTION_MAX_LIMIT,
23
26
  convertBatchResultsToEdgehancerResult: () => convertBatchResultsToEdgehancerResult,
24
27
  dataResourceSchema: () => dataResourceSchema,
25
28
  edgehancerMergedDataTypeSchema: () => edgehancerMergedDataTypeSchema,
@@ -90,6 +93,11 @@ function resolveBatchFetchIds(batch, resolveBatchItemIdFn) {
90
93
  return result;
91
94
  }
92
95
 
96
+ // src/contentConstants.ts
97
+ var COLLECTION_DEFAULT_LIMIT = 20;
98
+ var COLLECTION_MAX_LIMIT = 50;
99
+ var COLLECTION_DEFAULT_OFFSET = 0;
100
+
93
101
  // src/fetchUtils.ts
94
102
  function getDataResourceAsRequest(data) {
95
103
  var _a;
@@ -151,6 +159,14 @@ var customEdgehancerDefinitionSchema = import_zod.z.object({
151
159
  preRequest: import_zod.z.string().optional(),
152
160
  request: import_zod.z.string().optional()
153
161
  });
162
+ var dataSourceVariantSchema = import_zod.z.intersection(
163
+ import_zod.z.object({
164
+ headers: import_zod.z.array(parameterDefinitionSchema).optional(),
165
+ parameters: import_zod.z.array(parameterDefinitionSchema).optional(),
166
+ variables: import_zod.z.record(variableDefinitionSchema).optional()
167
+ }),
168
+ import_zod.z.object({ url: import_zod.z.string() })
169
+ );
154
170
  var mergedDataTypeSchema = import_zod.z.object({
155
171
  id: import_zod.z.string(),
156
172
  displayName: import_zod.z.string(),
@@ -170,7 +186,11 @@ var mergedDataTypeSchema = import_zod.z.object({
170
186
  purgeKey: import_zod.z.string().optional(),
171
187
  localeMapping: import_zod.z.record(import_zod.z.string()).optional(),
172
188
  edgehancer: customEdgehancerDefinitionSchema.optional(),
173
- uiBadgeText: import_zod.z.string().max(12).optional()
189
+ uiBadgeText: import_zod.z.string().max(12).optional(),
190
+ variants: import_zod.z.object({
191
+ unpublished: dataSourceVariantSchema.optional()
192
+ }).optional(),
193
+ dataSourceVariant: import_zod.z.enum(["unpublished"]).optional()
174
194
  });
175
195
  (0, import_tsafe.assert)();
176
196
  var dataResourceSchema = import_zod.z.union([
@@ -222,6 +242,9 @@ var requestEdgehancerResultSchema = import_zod3.z.strictObject({
222
242
  });
223
243
  // Annotate the CommonJS export names for ESM import in node:
224
244
  0 && (module.exports = {
245
+ COLLECTION_DEFAULT_LIMIT,
246
+ COLLECTION_DEFAULT_OFFSET,
247
+ COLLECTION_MAX_LIMIT,
225
248
  convertBatchResultsToEdgehancerResult,
226
249
  dataResourceSchema,
227
250
  edgehancerMergedDataTypeSchema,
package/dist/index.mjs CHANGED
@@ -52,6 +52,11 @@ function resolveBatchFetchIds(batch, resolveBatchItemIdFn) {
52
52
  return result;
53
53
  }
54
54
 
55
+ // src/contentConstants.ts
56
+ var COLLECTION_DEFAULT_LIMIT = 20;
57
+ var COLLECTION_MAX_LIMIT = 50;
58
+ var COLLECTION_DEFAULT_OFFSET = 0;
59
+
55
60
  // src/fetchUtils.ts
56
61
  function getDataResourceAsRequest(data) {
57
62
  var _a;
@@ -113,6 +118,14 @@ var customEdgehancerDefinitionSchema = z.object({
113
118
  preRequest: z.string().optional(),
114
119
  request: z.string().optional()
115
120
  });
121
+ var dataSourceVariantSchema = z.intersection(
122
+ z.object({
123
+ headers: z.array(parameterDefinitionSchema).optional(),
124
+ parameters: z.array(parameterDefinitionSchema).optional(),
125
+ variables: z.record(variableDefinitionSchema).optional()
126
+ }),
127
+ z.object({ url: z.string() })
128
+ );
116
129
  var mergedDataTypeSchema = z.object({
117
130
  id: z.string(),
118
131
  displayName: z.string(),
@@ -132,7 +145,11 @@ var mergedDataTypeSchema = z.object({
132
145
  purgeKey: z.string().optional(),
133
146
  localeMapping: z.record(z.string()).optional(),
134
147
  edgehancer: customEdgehancerDefinitionSchema.optional(),
135
- uiBadgeText: z.string().max(12).optional()
148
+ uiBadgeText: z.string().max(12).optional(),
149
+ variants: z.object({
150
+ unpublished: dataSourceVariantSchema.optional()
151
+ }).optional(),
152
+ dataSourceVariant: z.enum(["unpublished"]).optional()
136
153
  });
137
154
  assert();
138
155
  var dataResourceSchema = z.union([
@@ -183,6 +200,9 @@ var requestEdgehancerResultSchema = z3.strictObject({
183
200
  results: z3.array(requestEdgehancerDataResourceResolutionResultSchema)
184
201
  });
185
202
  export {
203
+ COLLECTION_DEFAULT_LIMIT,
204
+ COLLECTION_DEFAULT_OFFSET,
205
+ COLLECTION_MAX_LIMIT,
186
206
  convertBatchResultsToEdgehancerResult,
187
207
  dataResourceSchema,
188
208
  edgehancerMergedDataTypeSchema,
@@ -33,8 +33,8 @@ declare const createPurger: ({ projectId, purgeKey, dataTypeId, edgeApiHost, log
33
33
  projectId: string;
34
34
  purgeKey: string;
35
35
  dataTypeId: string;
36
- edgeApiHost?: string | undefined;
37
- logger?: Console | undefined;
36
+ edgeApiHost?: string;
37
+ logger?: Console;
38
38
  }) => Purger;
39
39
 
40
40
  type handleNextJSWebhookRequestArgs = {
@@ -33,8 +33,8 @@ declare const createPurger: ({ projectId, purgeKey, dataTypeId, edgeApiHost, log
33
33
  projectId: string;
34
34
  purgeKey: string;
35
35
  dataTypeId: string;
36
- edgeApiHost?: string | undefined;
37
- logger?: Console | undefined;
36
+ edgeApiHost?: string;
37
+ logger?: Console;
38
38
  }) => Purger;
39
39
 
40
40
  type handleNextJSWebhookRequestArgs = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/mesh-edgehancer-sdk",
3
- "version": "19.173.1-alpha.17+25c1176cea",
3
+ "version": "19.173.2-alpha.210+4f0f6ff104",
4
4
  "description": "Uniform Mesh Edgehancer SDK",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -48,7 +48,7 @@
48
48
  "/dist"
49
49
  ],
50
50
  "dependencies": {
51
- "@uniformdev/canvas": "19.173.1-alpha.17+25c1176cea",
51
+ "@uniformdev/canvas": "19.173.2-alpha.210+4f0f6ff104",
52
52
  "tsafe": "1.6.6",
53
53
  "zod": "3.23.8"
54
54
  },
@@ -61,5 +61,5 @@
61
61
  "publishConfig": {
62
62
  "access": "public"
63
63
  },
64
- "gitHead": "25c1176cea8d5114b92fc75cdd8bba4aa6463a50"
64
+ "gitHead": "4f0f6ff104f46349c338fde461f063f22f04ce0e"
65
65
  }