@uniformdev/mesh-edgehancer-sdk 19.178.2-alpha.25 → 19.179.2-alpha.22

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.object({
122
+ baseUrl: z.string(),
123
+ headers: z.array(parameterDefinitionSchema).optional(),
124
+ parameters: z.array(parameterDefinitionSchema).optional(),
125
+ variables: z.record(variableDefinitionSchema).optional(),
126
+ custom: z.record(z.unknown()).optional(),
127
+ customPublic: z.record(z.unknown()).optional()
128
+ }).optional();
116
129
  var mergedDataTypeSchema = z.object({
117
130
  id: z.string(),
118
131
  displayName: z.string(),
@@ -120,6 +133,7 @@ var mergedDataTypeSchema = z.object({
120
133
  allowedOnComponents: z.array(z.string()).optional(),
121
134
  badgeIconUrl: z.string().optional(),
122
135
  connectorType: z.string(),
136
+ path: z.string(),
123
137
  url: z.string(),
124
138
  headers: z.array(parameterDefinitionSchema).optional(),
125
139
  parameters: z.array(parameterDefinitionSchema).optional(),
@@ -132,7 +146,11 @@ var mergedDataTypeSchema = z.object({
132
146
  purgeKey: z.string().optional(),
133
147
  localeMapping: z.record(z.string()).optional(),
134
148
  edgehancer: customEdgehancerDefinitionSchema.optional(),
135
- uiBadgeText: z.string().max(12).optional()
149
+ uiBadgeText: z.string().max(12).optional(),
150
+ variants: z.object({
151
+ unpublished: dataSourceVariantSchema.optional()
152
+ }).optional(),
153
+ dataSourceVariant: z.enum(["unpublished"]).optional()
136
154
  });
137
155
  assert();
138
156
  var dataResourceSchema = z.union([
@@ -183,6 +201,9 @@ var requestEdgehancerResultSchema = z3.strictObject({
183
201
  results: z3.array(requestEdgehancerDataResourceResolutionResultSchema)
184
202
  });
185
203
  export {
204
+ COLLECTION_DEFAULT_LIMIT,
205
+ COLLECTION_DEFAULT_OFFSET,
206
+ COLLECTION_MAX_LIMIT,
186
207
  convertBatchResultsToEdgehancerResult,
187
208
  dataResourceSchema,
188
209
  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.object({
163
+ baseUrl: import_zod.z.string(),
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
+ custom: import_zod.z.record(import_zod.z.unknown()).optional(),
168
+ customPublic: import_zod.z.record(import_zod.z.unknown()).optional()
169
+ }).optional();
154
170
  var mergedDataTypeSchema = import_zod.z.object({
155
171
  id: import_zod.z.string(),
156
172
  displayName: import_zod.z.string(),
@@ -158,6 +174,7 @@ var mergedDataTypeSchema = import_zod.z.object({
158
174
  allowedOnComponents: import_zod.z.array(import_zod.z.string()).optional(),
159
175
  badgeIconUrl: import_zod.z.string().optional(),
160
176
  connectorType: import_zod.z.string(),
177
+ path: import_zod.z.string(),
161
178
  url: import_zod.z.string(),
162
179
  headers: import_zod.z.array(parameterDefinitionSchema).optional(),
163
180
  parameters: import_zod.z.array(parameterDefinitionSchema).optional(),
@@ -170,7 +187,11 @@ var mergedDataTypeSchema = import_zod.z.object({
170
187
  purgeKey: import_zod.z.string().optional(),
171
188
  localeMapping: import_zod.z.record(import_zod.z.string()).optional(),
172
189
  edgehancer: customEdgehancerDefinitionSchema.optional(),
173
- uiBadgeText: import_zod.z.string().max(12).optional()
190
+ uiBadgeText: import_zod.z.string().max(12).optional(),
191
+ variants: import_zod.z.object({
192
+ unpublished: dataSourceVariantSchema.optional()
193
+ }).optional(),
194
+ dataSourceVariant: import_zod.z.enum(["unpublished"]).optional()
174
195
  });
175
196
  (0, import_tsafe.assert)();
176
197
  var dataResourceSchema = import_zod.z.union([
@@ -222,6 +243,9 @@ var requestEdgehancerResultSchema = import_zod3.z.strictObject({
222
243
  });
223
244
  // Annotate the CommonJS export names for ESM import in node:
224
245
  0 && (module.exports = {
246
+ COLLECTION_DEFAULT_LIMIT,
247
+ COLLECTION_DEFAULT_OFFSET,
248
+ COLLECTION_MAX_LIMIT,
225
249
  convertBatchResultsToEdgehancerResult,
226
250
  dataResourceSchema,
227
251
  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.object({
122
+ baseUrl: z.string(),
123
+ headers: z.array(parameterDefinitionSchema).optional(),
124
+ parameters: z.array(parameterDefinitionSchema).optional(),
125
+ variables: z.record(variableDefinitionSchema).optional(),
126
+ custom: z.record(z.unknown()).optional(),
127
+ customPublic: z.record(z.unknown()).optional()
128
+ }).optional();
116
129
  var mergedDataTypeSchema = z.object({
117
130
  id: z.string(),
118
131
  displayName: z.string(),
@@ -120,6 +133,7 @@ var mergedDataTypeSchema = z.object({
120
133
  allowedOnComponents: z.array(z.string()).optional(),
121
134
  badgeIconUrl: z.string().optional(),
122
135
  connectorType: z.string(),
136
+ path: z.string(),
123
137
  url: z.string(),
124
138
  headers: z.array(parameterDefinitionSchema).optional(),
125
139
  parameters: z.array(parameterDefinitionSchema).optional(),
@@ -132,7 +146,11 @@ var mergedDataTypeSchema = z.object({
132
146
  purgeKey: z.string().optional(),
133
147
  localeMapping: z.record(z.string()).optional(),
134
148
  edgehancer: customEdgehancerDefinitionSchema.optional(),
135
- uiBadgeText: z.string().max(12).optional()
149
+ uiBadgeText: z.string().max(12).optional(),
150
+ variants: z.object({
151
+ unpublished: dataSourceVariantSchema.optional()
152
+ }).optional(),
153
+ dataSourceVariant: z.enum(["unpublished"]).optional()
136
154
  });
137
155
  assert();
138
156
  var dataResourceSchema = z.union([
@@ -183,6 +201,9 @@ var requestEdgehancerResultSchema = z3.strictObject({
183
201
  results: z3.array(requestEdgehancerDataResourceResolutionResultSchema)
184
202
  });
185
203
  export {
204
+ COLLECTION_DEFAULT_LIMIT,
205
+ COLLECTION_DEFAULT_OFFSET,
206
+ COLLECTION_MAX_LIMIT,
186
207
  convertBatchResultsToEdgehancerResult,
187
208
  dataResourceSchema,
188
209
  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.178.2-alpha.25+0f7f53f560",
3
+ "version": "19.179.2-alpha.22+79878be48f",
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.178.2-alpha.25+0f7f53f560",
51
+ "@uniformdev/canvas": "19.179.2-alpha.22+79878be48f",
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": "0f7f53f56071a59cee38bf83c9f3bae541846de2"
64
+ "gitHead": "79878be48f2d4b1c6158026aa632e71c91473ac6"
65
65
  }