@agility/content-fetch 2.0.0-rc24 → 2.0.0-rc25

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/browser.js CHANGED
@@ -80,6 +80,18 @@
80
80
  return true;
81
81
  }
82
82
 
83
+ // src/types/errors/Errors.ts
84
+ var TypeError2 = class extends Error {
85
+ /**
86
+ * @param {string} message The error message
87
+ * @param {Function} [asserter] The assertion function that threw the error. Removes stack-trace noise if provided.
88
+ */
89
+ constructor(message, asserter) {
90
+ super(message);
91
+ Error.captureStackTrace?.(this, asserter || this.constructor);
92
+ }
93
+ };
94
+
83
95
  // src/methods/getSitemapFlat.ts
84
96
  function getSitemapFlat(requestParams) {
85
97
  validateRequestParams(requestParams);
@@ -94,9 +106,9 @@
94
106
  }
95
107
  function validateRequestParams(requestParams) {
96
108
  if (!requestParams.languageCode && !requestParams.locale) {
97
- throw new TypeError("You must include a locale in your request params.");
109
+ throw new TypeError2("You must include a locale in your request params.", validateRequestParams);
98
110
  } else if (!requestParams.channelName) {
99
- throw new TypeError("You must include a channelName in your request params.");
111
+ throw new TypeError2("You must include a channelName in your request params.", validateRequestParams);
100
112
  } else {
101
113
  return;
102
114
  }
@@ -117,9 +129,9 @@
117
129
  }
118
130
  function validateRequestParams2(requestParams) {
119
131
  if (!requestParams.languageCode && !requestParams.locale) {
120
- throw new TypeError("You must include a locale in your request params.");
132
+ throw new TypeError2("You must include a locale in your request params.", validateRequestParams2);
121
133
  } else if (!requestParams.channelName) {
122
- throw new TypeError("You must include a channelName in your request params.");
134
+ throw new TypeError2("You must include a channelName in your request params.", validateRequestParams2);
123
135
  }
124
136
  }
125
137
  var getSitemapNested_default = getSitemapNested;
@@ -143,13 +155,13 @@
143
155
  }
144
156
  function validateRequestParams3(requestParams) {
145
157
  if (!requestParams.languageCode && !requestParams.locale) {
146
- throw new TypeError("You must include a locale in your request params.");
158
+ throw new TypeError2("You must include a locale in your request params.", validateRequestParams3);
147
159
  } else if (!requestParams.contentID) {
148
- throw new TypeError("You must include a contentID number in your request params.");
160
+ throw new TypeError2("You must include a contentID number in your request params.");
149
161
  } else if (requestParams.contentLinkDepth && (isNaN(requestParams.contentLinkDepth) || requestParams.contentLinkDepth < 0)) {
150
- throw new TypeError("When specifying contentLinkDepth, it must be a number greater than 0.");
162
+ throw new TypeError2("When specifying contentLinkDepth, it must be a number greater than 0.");
151
163
  } else if (requestParams.expandAllContentLinks && typeof requestParams.expandAllContentLinks !== "boolean") {
152
- throw new TypeError("ExpandAllContentLinks parameter must be a value of true or false");
164
+ throw new TypeError2("ExpandAllContentLinks parameter must be a value of true or false");
153
165
  } else {
154
166
  return;
155
167
  }
@@ -175,39 +187,39 @@
175
187
  }
176
188
  function validateRequestParams4(requestParams) {
177
189
  if (!requestParams.languageCode && !requestParams.locale) {
178
- throw new TypeError("You must include a locale in your request params.");
190
+ throw new TypeError2("You must include a locale in your request params.", validateRequestParams4);
179
191
  } else if (!requestParams.referenceName) {
180
- throw new TypeError("You must include a content referenceName in your request params.");
192
+ throw new TypeError2("You must include a content referenceName in your request params.", validateRequestParams4);
181
193
  } else if (requestParams.take && isNaN(requestParams.take)) {
182
- throw new TypeError("Take parameter must be a number.");
194
+ throw new TypeError2("Take parameter must be a number.", validateRequestParams4);
183
195
  } else if ((requestParams.take || requestParams.take == 0) && !isNaN(requestParams.take) && requestParams.take < 1) {
184
- throw new TypeError("Take parameter must be greater than 0.");
196
+ throw new TypeError2("Take parameter must be greater than 0.", validateRequestParams4);
185
197
  } else if (requestParams.take && !isNaN(requestParams.take) && requestParams.take > 250) {
186
- throw new TypeError("Take parameter must be 250 or less.");
198
+ throw new TypeError2("Take parameter must be 250 or less.", validateRequestParams4);
187
199
  } else if (requestParams.skip && isNaN(requestParams.skip)) {
188
- throw new TypeError("Skip parameter must be a number.");
200
+ throw new TypeError2("Skip parameter must be a number.", validateRequestParams4);
189
201
  } else if (requestParams.skip && !isNaN(requestParams.skip) && requestParams.skip < 0) {
190
- throw new TypeError("Skip parameter must be 0 or greater");
202
+ throw new TypeError2("Skip parameter must be 0 or greater", validateRequestParams4);
191
203
  } else if (requestParams.direction && (requestParams.direction !== "desc" && requestParams.direction !== "asc")) {
192
- throw new TypeError('Direction parameter must have a value of "asc" or "desc"');
204
+ throw new TypeError2('Direction parameter must have a value of "asc" or "desc"', validateRequestParams4);
193
205
  } else if (requestParams.filters && requestParams.filters.length > 0) {
194
206
  for (let i = 0; i < requestParams.filters.length; i++) {
195
207
  let filter = requestParams.filters[i];
196
208
  if (!filter.hasOwnProperty("property")) {
197
- throw new TypeError(JSON.stringify(filter) + " does not contain 'property'.");
209
+ throw new TypeError2(JSON.stringify(filter) + " does not contain 'property'.", validateRequestParams4);
198
210
  } else if (!filter.hasOwnProperty("operator")) {
199
- throw new TypeError(JSON.stringify(filter) + " does not contain 'operator'.");
211
+ throw new TypeError2(JSON.stringify(filter) + " does not contain 'operator'.", validateRequestParams4);
200
212
  } else if (!filter.hasOwnProperty("value")) {
201
- throw new TypeError(JSON.stringify(filter) + " does not contain 'value'.");
213
+ throw new TypeError2(JSON.stringify(filter) + " does not contain 'value'.", validateRequestParams4);
202
214
  }
203
215
  if (["eq", "ne", "gt", "gte", "lt", "lte", "like"].indexOf(filter.operator.toLowerCase()) < 0) {
204
- throw new TypeError(JSON.stringify(filter) + "Operator must be one of ['eq','ne','gt','gte','lt','lte','like'].");
216
+ throw new TypeError2(JSON.stringify(filter) + "Operator must be one of ['eq','ne','gt','gte','lt','lte','like', 'in', 'contains'].", validateRequestParams4);
205
217
  }
206
218
  }
207
219
  } else if (requestParams.filtersLogicOperator && requestParams.filtersLogicOperator.toLowerCase() !== "and" && requestParams.filtersLogicOperator.toLowerCase() !== "or") {
208
- throw new TypeError('FiltersLogicOperator parameter must have a value of "AND" or "OR"');
220
+ throw new TypeError2('FiltersLogicOperator parameter must have a value of "AND" or "OR"', validateRequestParams4);
209
221
  } else if (requestParams.expandAllContentLinks && typeof requestParams.expandAllContentLinks !== "boolean") {
210
- throw new TypeError("ExpandAllContentLinks parameter must be a value of true or false");
222
+ throw new TypeError2("ExpandAllContentLinks parameter must be a value of true or false", validateRequestParams4);
211
223
  }
212
224
  return true;
213
225
  }
@@ -232,11 +244,11 @@
232
244
  }
233
245
  function validateRequestParams5(requestParams) {
234
246
  if (!requestParams.languageCode && !requestParams.locale) {
235
- throw new TypeError("You must include a locale in your request params.");
247
+ throw new TypeError2("You must include a locale in your request params.", validateRequestParams5);
236
248
  } else if (!requestParams.pageID) {
237
- throw new TypeError("You must include a pageID in your request params.");
249
+ throw new TypeError2("You must include a pageID in your request params.", validateRequestParams5);
238
250
  } else if (requestParams.expandAllContentLinks && typeof requestParams.expandAllContentLinks !== "boolean") {
239
- throw new TypeError("ExpandAllContentLinks parameter must be a value of true or false");
251
+ throw new TypeError2("ExpandAllContentLinks parameter must be a value of true or false", validateRequestParams5);
240
252
  } else {
241
253
  return;
242
254
  }
@@ -262,7 +274,7 @@
262
274
  }
263
275
  function validateRequestParams6(requestParams) {
264
276
  if (!requestParams.galleryID) {
265
- throw new TypeError("You must include a galleryID number in your request params.");
277
+ throw new TypeError2("You must include a galleryID number in your request params.", validateRequestParams6);
266
278
  } else {
267
279
  return;
268
280
  }
@@ -310,7 +322,7 @@
310
322
  if (!requestParams.lastAccessDate.toISOString) {
311
323
  let dt = new Date(requestParams.lastAccessDate);
312
324
  if (isNaN(dt.getTime())) {
313
- throw new TypeError("You must include a valid Datetime for the lastAccessDate.");
325
+ throw new TypeError2("You must include a valid Datetime for the lastAccessDate.", validateRequestParams7);
314
326
  }
315
327
  }
316
328
  } else {
@@ -333,9 +345,9 @@
333
345
  }
334
346
  function validateRequestParams8(requestParams) {
335
347
  if (!requestParams.languageCode && !requestParams.locale) {
336
- throw new TypeError("You must include a locale in your request params.");
348
+ throw new TypeError2("You must include a locale in your request params.", validateRequestParams8);
337
349
  } else if (requestParams.syncToken == void 0 || requestParams.syncToken == null) {
338
- throw new TypeError("You must include a syncToken value your request params. Use zero (0) to start a new sync.");
350
+ throw new TypeError2("You must include a syncToken value your request params. Use zero (0) to start a new sync.", validateRequestParams8);
339
351
  } else {
340
352
  return;
341
353
  }
@@ -369,7 +381,8 @@
369
381
  var types_exports = {};
370
382
  __export(types_exports, {
371
383
  FilterLogicOperators: () => FilterLogicOperators,
372
- FilterOperators: () => FilterOperator_default
384
+ FilterOperators: () => FilterOperator_default,
385
+ SortDirections: () => SortDirections
373
386
  });
374
387
 
375
388
  // src/types/FilterOperator.ts
@@ -392,6 +405,13 @@
392
405
  return FilterLogicOperators2;
393
406
  })(FilterLogicOperators || {});
394
407
 
408
+ // src/types/SortDirection.ts
409
+ var SortDirections = /* @__PURE__ */ ((SortDirections2) => {
410
+ SortDirections2["ASC"] = "asc";
411
+ SortDirections2["DESC"] = "desc";
412
+ return SortDirections2;
413
+ })(SortDirections || {});
414
+
395
415
  // src/api-client.ts
396
416
  var defaultConfig = {
397
417
  baseUrl: null,
@@ -426,13 +446,13 @@
426
446
  }
427
447
  function validateConfigParams(configParams) {
428
448
  if (!configParams.guid || configParams.guid.length == 0) {
429
- throw new TypeError("You must provide a guid.");
449
+ throw new TypeError2("You must provide a guid.");
430
450
  } else if (!configParams.apiKey || configParams.apiKey.length == 0) {
431
- throw new TypeError("You must provide an access token.");
451
+ throw new TypeError2("You must provide an access token.");
432
452
  } else if (configParams.caching && isNaN(configParams.caching.maxAge)) {
433
- throw new TypeError("When specifying a cache maxAge, you must set a number value in miliseconds, i.e. 180000 (3 mins).");
453
+ throw new TypeError2("When specifying a cache maxAge, you must set a number value in miliseconds, i.e. 180000 (3 mins).");
434
454
  } else if (configParams.baseUrl && !isHttps(configParams.baseUrl)) {
435
- throw new TypeError(`When specifying a baseUrl (${configParams.baseUrl}), it must be over HTTPs.`);
455
+ throw new TypeError2(`When specifying a baseUrl (${configParams.baseUrl}), it must be over HTTPs.`);
436
456
  } else {
437
457
  return;
438
458
  }
package/dist/node.js CHANGED
@@ -98,6 +98,18 @@ function isHttps(url) {
98
98
  return true;
99
99
  }
100
100
 
101
+ // src/types/errors/Errors.ts
102
+ var TypeError2 = class extends Error {
103
+ /**
104
+ * @param {string} message The error message
105
+ * @param {Function} [asserter] The assertion function that threw the error. Removes stack-trace noise if provided.
106
+ */
107
+ constructor(message, asserter) {
108
+ super(message);
109
+ Error.captureStackTrace?.(this, asserter || this.constructor);
110
+ }
111
+ };
112
+
101
113
  // src/methods/getSitemapFlat.ts
102
114
  function getSitemapFlat(requestParams) {
103
115
  validateRequestParams(requestParams);
@@ -112,9 +124,9 @@ function getSitemapFlat(requestParams) {
112
124
  }
113
125
  function validateRequestParams(requestParams) {
114
126
  if (!requestParams.languageCode && !requestParams.locale) {
115
- throw new TypeError("You must include a locale in your request params.");
127
+ throw new TypeError2("You must include a locale in your request params.", validateRequestParams);
116
128
  } else if (!requestParams.channelName) {
117
- throw new TypeError("You must include a channelName in your request params.");
129
+ throw new TypeError2("You must include a channelName in your request params.", validateRequestParams);
118
130
  } else {
119
131
  return;
120
132
  }
@@ -135,9 +147,9 @@ function getSitemapNested(requestParams) {
135
147
  }
136
148
  function validateRequestParams2(requestParams) {
137
149
  if (!requestParams.languageCode && !requestParams.locale) {
138
- throw new TypeError("You must include a locale in your request params.");
150
+ throw new TypeError2("You must include a locale in your request params.", validateRequestParams2);
139
151
  } else if (!requestParams.channelName) {
140
- throw new TypeError("You must include a channelName in your request params.");
152
+ throw new TypeError2("You must include a channelName in your request params.", validateRequestParams2);
141
153
  }
142
154
  }
143
155
  var getSitemapNested_default = getSitemapNested;
@@ -161,13 +173,13 @@ function getContentItem(requestParams) {
161
173
  }
162
174
  function validateRequestParams3(requestParams) {
163
175
  if (!requestParams.languageCode && !requestParams.locale) {
164
- throw new TypeError("You must include a locale in your request params.");
176
+ throw new TypeError2("You must include a locale in your request params.", validateRequestParams3);
165
177
  } else if (!requestParams.contentID) {
166
- throw new TypeError("You must include a contentID number in your request params.");
178
+ throw new TypeError2("You must include a contentID number in your request params.");
167
179
  } else if (requestParams.contentLinkDepth && (isNaN(requestParams.contentLinkDepth) || requestParams.contentLinkDepth < 0)) {
168
- throw new TypeError("When specifying contentLinkDepth, it must be a number greater than 0.");
180
+ throw new TypeError2("When specifying contentLinkDepth, it must be a number greater than 0.");
169
181
  } else if (requestParams.expandAllContentLinks && typeof requestParams.expandAllContentLinks !== "boolean") {
170
- throw new TypeError("ExpandAllContentLinks parameter must be a value of true or false");
182
+ throw new TypeError2("ExpandAllContentLinks parameter must be a value of true or false");
171
183
  } else {
172
184
  return;
173
185
  }
@@ -193,39 +205,39 @@ function sanitizeReferenceName(referenceName) {
193
205
  }
194
206
  function validateRequestParams4(requestParams) {
195
207
  if (!requestParams.languageCode && !requestParams.locale) {
196
- throw new TypeError("You must include a locale in your request params.");
208
+ throw new TypeError2("You must include a locale in your request params.", validateRequestParams4);
197
209
  } else if (!requestParams.referenceName) {
198
- throw new TypeError("You must include a content referenceName in your request params.");
210
+ throw new TypeError2("You must include a content referenceName in your request params.", validateRequestParams4);
199
211
  } else if (requestParams.take && isNaN(requestParams.take)) {
200
- throw new TypeError("Take parameter must be a number.");
212
+ throw new TypeError2("Take parameter must be a number.", validateRequestParams4);
201
213
  } else if ((requestParams.take || requestParams.take == 0) && !isNaN(requestParams.take) && requestParams.take < 1) {
202
- throw new TypeError("Take parameter must be greater than 0.");
214
+ throw new TypeError2("Take parameter must be greater than 0.", validateRequestParams4);
203
215
  } else if (requestParams.take && !isNaN(requestParams.take) && requestParams.take > 250) {
204
- throw new TypeError("Take parameter must be 250 or less.");
216
+ throw new TypeError2("Take parameter must be 250 or less.", validateRequestParams4);
205
217
  } else if (requestParams.skip && isNaN(requestParams.skip)) {
206
- throw new TypeError("Skip parameter must be a number.");
218
+ throw new TypeError2("Skip parameter must be a number.", validateRequestParams4);
207
219
  } else if (requestParams.skip && !isNaN(requestParams.skip) && requestParams.skip < 0) {
208
- throw new TypeError("Skip parameter must be 0 or greater");
220
+ throw new TypeError2("Skip parameter must be 0 or greater", validateRequestParams4);
209
221
  } else if (requestParams.direction && (requestParams.direction !== "desc" && requestParams.direction !== "asc")) {
210
- throw new TypeError('Direction parameter must have a value of "asc" or "desc"');
222
+ throw new TypeError2('Direction parameter must have a value of "asc" or "desc"', validateRequestParams4);
211
223
  } else if (requestParams.filters && requestParams.filters.length > 0) {
212
224
  for (let i = 0; i < requestParams.filters.length; i++) {
213
225
  let filter = requestParams.filters[i];
214
226
  if (!filter.hasOwnProperty("property")) {
215
- throw new TypeError(JSON.stringify(filter) + " does not contain 'property'.");
227
+ throw new TypeError2(JSON.stringify(filter) + " does not contain 'property'.", validateRequestParams4);
216
228
  } else if (!filter.hasOwnProperty("operator")) {
217
- throw new TypeError(JSON.stringify(filter) + " does not contain 'operator'.");
229
+ throw new TypeError2(JSON.stringify(filter) + " does not contain 'operator'.", validateRequestParams4);
218
230
  } else if (!filter.hasOwnProperty("value")) {
219
- throw new TypeError(JSON.stringify(filter) + " does not contain 'value'.");
231
+ throw new TypeError2(JSON.stringify(filter) + " does not contain 'value'.", validateRequestParams4);
220
232
  }
221
233
  if (["eq", "ne", "gt", "gte", "lt", "lte", "like"].indexOf(filter.operator.toLowerCase()) < 0) {
222
- throw new TypeError(JSON.stringify(filter) + "Operator must be one of ['eq','ne','gt','gte','lt','lte','like'].");
234
+ throw new TypeError2(JSON.stringify(filter) + "Operator must be one of ['eq','ne','gt','gte','lt','lte','like', 'in', 'contains'].", validateRequestParams4);
223
235
  }
224
236
  }
225
237
  } else if (requestParams.filtersLogicOperator && requestParams.filtersLogicOperator.toLowerCase() !== "and" && requestParams.filtersLogicOperator.toLowerCase() !== "or") {
226
- throw new TypeError('FiltersLogicOperator parameter must have a value of "AND" or "OR"');
238
+ throw new TypeError2('FiltersLogicOperator parameter must have a value of "AND" or "OR"', validateRequestParams4);
227
239
  } else if (requestParams.expandAllContentLinks && typeof requestParams.expandAllContentLinks !== "boolean") {
228
- throw new TypeError("ExpandAllContentLinks parameter must be a value of true or false");
240
+ throw new TypeError2("ExpandAllContentLinks parameter must be a value of true or false", validateRequestParams4);
229
241
  }
230
242
  return true;
231
243
  }
@@ -250,11 +262,11 @@ function getPage(requestParams) {
250
262
  }
251
263
  function validateRequestParams5(requestParams) {
252
264
  if (!requestParams.languageCode && !requestParams.locale) {
253
- throw new TypeError("You must include a locale in your request params.");
265
+ throw new TypeError2("You must include a locale in your request params.", validateRequestParams5);
254
266
  } else if (!requestParams.pageID) {
255
- throw new TypeError("You must include a pageID in your request params.");
267
+ throw new TypeError2("You must include a pageID in your request params.", validateRequestParams5);
256
268
  } else if (requestParams.expandAllContentLinks && typeof requestParams.expandAllContentLinks !== "boolean") {
257
- throw new TypeError("ExpandAllContentLinks parameter must be a value of true or false");
269
+ throw new TypeError2("ExpandAllContentLinks parameter must be a value of true or false", validateRequestParams5);
258
270
  } else {
259
271
  return;
260
272
  }
@@ -280,7 +292,7 @@ function getGallery(requestParams) {
280
292
  }
281
293
  function validateRequestParams6(requestParams) {
282
294
  if (!requestParams.galleryID) {
283
- throw new TypeError("You must include a galleryID number in your request params.");
295
+ throw new TypeError2("You must include a galleryID number in your request params.", validateRequestParams6);
284
296
  } else {
285
297
  return;
286
298
  }
@@ -328,7 +340,7 @@ function validateRequestParams7(requestParams) {
328
340
  if (!requestParams.lastAccessDate.toISOString) {
329
341
  let dt = new Date(requestParams.lastAccessDate);
330
342
  if (isNaN(dt.getTime())) {
331
- throw new TypeError("You must include a valid Datetime for the lastAccessDate.");
343
+ throw new TypeError2("You must include a valid Datetime for the lastAccessDate.", validateRequestParams7);
332
344
  }
333
345
  }
334
346
  } else {
@@ -351,9 +363,9 @@ function getSyncContent(requestParams) {
351
363
  }
352
364
  function validateRequestParams8(requestParams) {
353
365
  if (!requestParams.languageCode && !requestParams.locale) {
354
- throw new TypeError("You must include a locale in your request params.");
366
+ throw new TypeError2("You must include a locale in your request params.", validateRequestParams8);
355
367
  } else if (requestParams.syncToken == void 0 || requestParams.syncToken == null) {
356
- throw new TypeError("You must include a syncToken value your request params. Use zero (0) to start a new sync.");
368
+ throw new TypeError2("You must include a syncToken value your request params. Use zero (0) to start a new sync.", validateRequestParams8);
357
369
  } else {
358
370
  return;
359
371
  }
@@ -387,7 +399,8 @@ var getSyncPages_default = getSyncPages;
387
399
  var types_exports = {};
388
400
  __export(types_exports, {
389
401
  FilterLogicOperators: () => FilterLogicOperators,
390
- FilterOperators: () => FilterOperator_default
402
+ FilterOperators: () => FilterOperator_default,
403
+ SortDirections: () => SortDirections
391
404
  });
392
405
 
393
406
  // src/types/FilterOperator.ts
@@ -410,6 +423,13 @@ var FilterLogicOperators = /* @__PURE__ */ ((FilterLogicOperators2) => {
410
423
  return FilterLogicOperators2;
411
424
  })(FilterLogicOperators || {});
412
425
 
426
+ // src/types/SortDirection.ts
427
+ var SortDirections = /* @__PURE__ */ ((SortDirections2) => {
428
+ SortDirections2["ASC"] = "asc";
429
+ SortDirections2["DESC"] = "desc";
430
+ return SortDirections2;
431
+ })(SortDirections || {});
432
+
413
433
  // src/api-client.ts
414
434
  var defaultConfig = {
415
435
  baseUrl: null,
@@ -444,13 +464,13 @@ function buildBaseUrl(guid) {
444
464
  }
445
465
  function validateConfigParams(configParams) {
446
466
  if (!configParams.guid || configParams.guid.length == 0) {
447
- throw new TypeError("You must provide a guid.");
467
+ throw new TypeError2("You must provide a guid.");
448
468
  } else if (!configParams.apiKey || configParams.apiKey.length == 0) {
449
- throw new TypeError("You must provide an access token.");
469
+ throw new TypeError2("You must provide an access token.");
450
470
  } else if (configParams.caching && isNaN(configParams.caching.maxAge)) {
451
- throw new TypeError("When specifying a cache maxAge, you must set a number value in miliseconds, i.e. 180000 (3 mins).");
471
+ throw new TypeError2("When specifying a cache maxAge, you must set a number value in miliseconds, i.e. 180000 (3 mins).");
452
472
  } else if (configParams.baseUrl && !isHttps(configParams.baseUrl)) {
453
- throw new TypeError(`When specifying a baseUrl (${configParams.baseUrl}), it must be over HTTPs.`);
473
+ throw new TypeError2(`When specifying a baseUrl (${configParams.baseUrl}), it must be over HTTPs.`);
454
474
  } else {
455
475
  return;
456
476
  }
@@ -0,0 +1,22 @@
1
+ export declare class EvalError extends Error {
2
+ constructor(message?: string, asserter?: any);
3
+ }
4
+ export declare class RangeError extends Error {
5
+ constructor(message?: string, asserter?: any);
6
+ }
7
+ export declare class ReferenceError extends Error {
8
+ constructor(message?: string, asserter?: any);
9
+ }
10
+ export declare class SyntaxError extends Error {
11
+ constructor(message?: string, asserter?: any);
12
+ }
13
+ export declare class TypeError extends Error {
14
+ /**
15
+ * @param {string} message The error message
16
+ * @param {Function} [asserter] The assertion function that threw the error. Removes stack-trace noise if provided.
17
+ */
18
+ constructor(message: string, asserter?: any);
19
+ }
20
+ export declare class URIError extends Error {
21
+ constructor(message?: string, asserter?: any);
22
+ }
@@ -1,3 +1,4 @@
1
1
  import FilterOperators from "./FilterOperator";
2
2
  import { FilterLogicOperators } from "./FilterLogicOperator";
3
- export { FilterOperators, FilterLogicOperators };
3
+ import { SortDirections } from "./SortDirection";
4
+ export { FilterOperators, FilterLogicOperators, SortDirections };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agility/content-fetch",
3
- "version": "2.0.0-rc24",
3
+ "version": "2.0.0-rc25",
4
4
  "description": "JavaScript library for the Agility Fetch API (node and browser)",
5
5
  "repository": {
6
6
  "type": "git",