@warp-drive/utilities 5.6.0-alpha.15 → 5.6.0-alpha.17

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.
Files changed (73) hide show
  1. package/declarations/-private/active-record/find-record.d.ts +59 -60
  2. package/declarations/-private/active-record/query.d.ts +50 -51
  3. package/declarations/-private/active-record/save-record.d.ts +136 -134
  4. package/declarations/-private/builder-utils.d.ts +2 -3
  5. package/declarations/-private/handlers/auto-compress.d.ts +142 -143
  6. package/declarations/-private/handlers/gated.d.ts +12 -13
  7. package/declarations/-private/handlers/utils.d.ts +22 -23
  8. package/declarations/-private/json-api/-utils.d.ts +96 -97
  9. package/declarations/-private/json-api/find-record.d.ts +59 -60
  10. package/declarations/-private/json-api/query.d.ts +97 -98
  11. package/declarations/-private/json-api/save-record.d.ts +180 -178
  12. package/declarations/-private/json-api/serialize.d.ts +43 -44
  13. package/declarations/-private/rest/find-record.d.ts +59 -60
  14. package/declarations/-private/rest/query.d.ts +50 -51
  15. package/declarations/-private/rest/save-record.d.ts +136 -134
  16. package/declarations/-private/string/inflect.d.ts +60 -83
  17. package/declarations/-private/string/inflections.d.ts +4 -5
  18. package/declarations/-private/string/transform.d.ts +68 -80
  19. package/declarations/-private.d.ts +1 -2
  20. package/declarations/active-record.d.ts +3 -4
  21. package/declarations/handlers.d.ts +8 -9
  22. package/declarations/index.d.ts +180 -182
  23. package/declarations/json-api.d.ts +5 -6
  24. package/declarations/rest.d.ts +3 -4
  25. package/declarations/string.d.ts +13 -14
  26. package/dist/active-record.js +1 -1
  27. package/dist/{inflect-Dr20y6b1.js → inflect-BSG696t-.js} +0 -32
  28. package/dist/json-api.js +1 -1
  29. package/dist/rest.js +1 -1
  30. package/dist/string.cjs +0 -33
  31. package/dist/string.js +1 -1
  32. package/package.json +5 -5
  33. package/declarations/-private/active-record/find-record.d.ts.map +0 -1
  34. package/declarations/-private/active-record/query.d.ts.map +0 -1
  35. package/declarations/-private/active-record/save-record.d.ts.map +0 -1
  36. package/declarations/-private/builder-utils.d.ts.map +0 -1
  37. package/declarations/-private/derivations.d.ts +0 -23
  38. package/declarations/-private/derivations.d.ts.map +0 -1
  39. package/declarations/-private/handlers/auto-compress.d.ts.map +0 -1
  40. package/declarations/-private/handlers/gated.d.ts.map +0 -1
  41. package/declarations/-private/handlers/utils.d.ts.map +0 -1
  42. package/declarations/-private/json-api/-utils.d.ts.map +0 -1
  43. package/declarations/-private/json-api/find-record.d.ts.map +0 -1
  44. package/declarations/-private/json-api/find-record.type-test.d.ts +0 -2
  45. package/declarations/-private/json-api/find-record.type-test.d.ts.map +0 -1
  46. package/declarations/-private/json-api/query.d.ts.map +0 -1
  47. package/declarations/-private/json-api/query.type-test.d.ts +0 -2
  48. package/declarations/-private/json-api/query.type-test.d.ts.map +0 -1
  49. package/declarations/-private/json-api/save-record.d.ts.map +0 -1
  50. package/declarations/-private/json-api/serialize.d.ts.map +0 -1
  51. package/declarations/-private/rest/find-record.d.ts.map +0 -1
  52. package/declarations/-private/rest/query.d.ts.map +0 -1
  53. package/declarations/-private/rest/save-record.d.ts.map +0 -1
  54. package/declarations/-private/string/inflect.d.ts.map +0 -1
  55. package/declarations/-private/string/inflections.d.ts.map +0 -1
  56. package/declarations/-private/string/transform.d.ts.map +0 -1
  57. package/declarations/-private.d.ts.map +0 -1
  58. package/declarations/active-record.d.ts.map +0 -1
  59. package/declarations/handlers.d.ts.map +0 -1
  60. package/declarations/index.d.ts.map +0 -1
  61. package/declarations/json-api.d.ts.map +0 -1
  62. package/declarations/rest.d.ts.map +0 -1
  63. package/declarations/string.d.ts.map +0 -1
  64. package/dist/-private.js.map +0 -1
  65. package/dist/active-record.js.map +0 -1
  66. package/dist/builder-utils-Donkk-BZ.js.map +0 -1
  67. package/dist/handlers.js.map +0 -1
  68. package/dist/index.js.map +0 -1
  69. package/dist/inflect-Dr20y6b1.js.map +0 -1
  70. package/dist/json-api.js.map +0 -1
  71. package/dist/rest.js.map +0 -1
  72. package/dist/string.cjs.map +0 -1
  73. package/dist/string.js.map +0 -1
@@ -27,8 +27,6 @@ const CAPITALIZE_CACHE = new LRUCache(str => str.replace(STRING_CAPITALIZE_REGEX
27
27
  * ```
28
28
  *
29
29
  * @public
30
- * @param {String} str
31
- * @return {String}
32
30
  * @since 4.13.0
33
31
  */
34
32
  const dasherize = dasherize$1;
@@ -48,8 +46,6 @@ const dasherize = dasherize$1;
48
46
  * ```
49
47
  *
50
48
  * @public
51
- * @param {String} str
52
- * @return {String}
53
49
  * @since 4.13.0
54
50
  */
55
51
  function camelize(str) {
@@ -70,8 +66,6 @@ function camelize(str) {
70
66
  * ```
71
67
  *
72
68
  * @public
73
- * @param {String} str
74
- * @return {String}
75
69
  * @since 4.13.0
76
70
  */
77
71
  function underscore(str) {
@@ -92,8 +86,6 @@ function underscore(str) {
92
86
  * ```
93
87
  *
94
88
  * @public
95
- * @param {String} str
96
- * @return {String}
97
89
  * @since 4.13.0
98
90
  */
99
91
  function capitalize(str) {
@@ -105,8 +97,6 @@ function capitalize(str) {
105
97
  * The default size is 10,000.
106
98
  *
107
99
  * @public
108
- * @param {Number} size
109
- * @return {void}
110
100
  * @since 4.13.0
111
101
  */
112
102
  function setMaxLRUCacheSize(size) {
@@ -136,8 +126,6 @@ const PLURAL_RULES = new Map(defaultRules.plurals.reverse());
136
126
  * or singularized.
137
127
  *
138
128
  * @public
139
- * @param {String} word
140
- * @return {void}
141
129
  * @since 4.13.0
142
130
  */
143
131
  function uncountable(word) {
@@ -149,8 +137,6 @@ function uncountable(word) {
149
137
  * or singularized.
150
138
  *
151
139
  * @public
152
- * @param {Array<String>} uncountables
153
- * @return {void}
154
140
  * @since 4.13.0
155
141
  */
156
142
  function loadUncountable(uncountables) {
@@ -164,9 +150,6 @@ function loadUncountable(uncountables) {
164
150
  * pluralization and singularization rules.
165
151
  *
166
152
  * @public
167
- * @param {String} single
168
- * @param {String} plur
169
- * @return {void}
170
153
  * @since 4.13.0
171
154
  */
172
155
  function irregular(single, plur) {
@@ -184,8 +167,6 @@ function irregular(single, plur) {
184
167
  * pluralization and singularization rules.
185
168
  *
186
169
  * @public
187
- * @param {Array<Array<String>>} irregularPairs
188
- * @return {void}
189
170
  * @since 4.13.0
190
171
  */
191
172
  function loadIrregular(irregularPairs) {
@@ -205,7 +186,6 @@ loadIrregular(defaultRules.irregularPairs);
205
186
  * Clears the caches for singularize and pluralize.
206
187
  *
207
188
  * @public
208
- * @return {void}
209
189
  * @since 4.13.0
210
190
  */
211
191
  function clear() {
@@ -217,7 +197,6 @@ function clear() {
217
197
  * Resets the inflection rules to the defaults.
218
198
  *
219
199
  * @public
220
- * @return {void}
221
200
  * @since 4.13.0
222
201
  */
223
202
  function resetToDefaults() {
@@ -233,7 +212,6 @@ function resetToDefaults() {
233
212
  * and resets the caches for singularize and pluralize.
234
213
  *
235
214
  * @public
236
- * @return {void}
237
215
  * @since 4.13.0
238
216
  */
239
217
  function clearRules() {
@@ -250,8 +228,6 @@ function clearRules() {
250
228
  * Singularizes a word.
251
229
  *
252
230
  * @public
253
- * @param {String} word
254
- * @return {String}
255
231
  * @since 4.13.0
256
232
  */
257
233
  function singularize(word) {
@@ -268,8 +244,6 @@ function singularize(word) {
268
244
  * Pluralizes a word.
269
245
  *
270
246
  * @public
271
- * @param {String} word
272
- * @return {String}
273
247
  * @since 4.13.0
274
248
  */
275
249
  function pluralize(word) {
@@ -294,9 +268,6 @@ function unshiftMap(v, map) {
294
268
  * Adds a pluralization rule.
295
269
  *
296
270
  * @public
297
- * @param {RegExp} regex
298
- * @param {String} string
299
- * @return {void}
300
271
  * @since 4.13.0
301
272
  */
302
273
  function plural(regex, string) {
@@ -313,9 +284,6 @@ function plural(regex, string) {
313
284
  * Adds a singularization rule.
314
285
  *
315
286
  * @public
316
- * @param {RegExp} regex
317
- * @param {String} string
318
- * @return {void}
319
287
  * @since 4.13.0
320
288
  */
321
289
  function singular(regex, string) {
package/dist/json-api.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { setBuildURLConfig as setBuildURLConfig$1, buildBaseURL, buildQueryParams } from './index.js';
2
- import { p as pluralize } from "./inflect-Dr20y6b1.js";
2
+ import { p as pluralize } from "./inflect-BSG696t-.js";
3
3
  import { e as extractCacheOptions, c as copyForwardUrlOptions } from "./builder-utils-Donkk-BZ.js";
4
4
  import { recordIdentifierFor } from '@warp-drive/core';
5
5
  import { macroCondition, getGlobalConfig } from '@embroider/macros';
package/dist/rest.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { buildBaseURL, buildQueryParams } from './index.js';
2
- import { p as pluralize, g as camelize } from "./inflect-Dr20y6b1.js";
2
+ import { p as pluralize, g as camelize } from "./inflect-BSG696t-.js";
3
3
  import { e as extractCacheOptions, c as copyForwardUrlOptions } from "./builder-utils-Donkk-BZ.js";
4
4
  import { recordIdentifierFor } from '@warp-drive/core';
5
5
  import { macroCondition, getGlobalConfig } from '@embroider/macros';
package/dist/string.cjs CHANGED
@@ -106,8 +106,6 @@ const CAPITALIZE_CACHE = new LRUCache(str => str.replace(STRING_CAPITALIZE_REGEX
106
106
  * ```
107
107
  *
108
108
  * @public
109
- * @param {String} str
110
- * @return {String}
111
109
  * @since 4.13.0
112
110
  */
113
111
  const dasherize = dasherize$1;
@@ -127,8 +125,6 @@ const dasherize = dasherize$1;
127
125
  * ```
128
126
  *
129
127
  * @public
130
- * @param {String} str
131
- * @return {String}
132
128
  * @since 4.13.0
133
129
  */
134
130
  function camelize(str) {
@@ -149,8 +145,6 @@ function camelize(str) {
149
145
  * ```
150
146
  *
151
147
  * @public
152
- * @param {String} str
153
- * @return {String}
154
148
  * @since 4.13.0
155
149
  */
156
150
  function underscore(str) {
@@ -171,8 +165,6 @@ function underscore(str) {
171
165
  * ```
172
166
  *
173
167
  * @public
174
- * @param {String} str
175
- * @return {String}
176
168
  * @since 4.13.0
177
169
  */
178
170
  function capitalize(str) {
@@ -184,8 +176,6 @@ function capitalize(str) {
184
176
  * The default size is 10,000.
185
177
  *
186
178
  * @public
187
- * @param {Number} size
188
- * @return {void}
189
179
  * @since 4.13.0
190
180
  */
191
181
  function setMaxLRUCacheSize(size) {
@@ -216,8 +206,6 @@ const PLURAL_RULES = new Map(defaultRules.plurals.reverse());
216
206
  * or singularized.
217
207
  *
218
208
  * @public
219
- * @param {String} word
220
- * @return {void}
221
209
  * @since 4.13.0
222
210
  */
223
211
  function uncountable(word) {
@@ -229,8 +217,6 @@ function uncountable(word) {
229
217
  * or singularized.
230
218
  *
231
219
  * @public
232
- * @param {Array<String>} uncountables
233
- * @return {void}
234
220
  * @since 4.13.0
235
221
  */
236
222
  function loadUncountable(uncountables) {
@@ -244,9 +230,6 @@ function loadUncountable(uncountables) {
244
230
  * pluralization and singularization rules.
245
231
  *
246
232
  * @public
247
- * @param {String} single
248
- * @param {String} plur
249
- * @return {void}
250
233
  * @since 4.13.0
251
234
  */
252
235
  function irregular(single, plur) {
@@ -264,8 +247,6 @@ function irregular(single, plur) {
264
247
  * pluralization and singularization rules.
265
248
  *
266
249
  * @public
267
- * @param {Array<Array<String>>} irregularPairs
268
- * @return {void}
269
250
  * @since 4.13.0
270
251
  */
271
252
  function loadIrregular(irregularPairs) {
@@ -285,7 +266,6 @@ loadIrregular(defaultRules.irregularPairs);
285
266
  * Clears the caches for singularize and pluralize.
286
267
  *
287
268
  * @public
288
- * @return {void}
289
269
  * @since 4.13.0
290
270
  */
291
271
  function clear() {
@@ -297,7 +277,6 @@ function clear() {
297
277
  * Resets the inflection rules to the defaults.
298
278
  *
299
279
  * @public
300
- * @return {void}
301
280
  * @since 4.13.0
302
281
  */
303
282
  function resetToDefaults() {
@@ -313,7 +292,6 @@ function resetToDefaults() {
313
292
  * and resets the caches for singularize and pluralize.
314
293
  *
315
294
  * @public
316
- * @return {void}
317
295
  * @since 4.13.0
318
296
  */
319
297
  function clearRules() {
@@ -330,8 +308,6 @@ function clearRules() {
330
308
  * Singularizes a word.
331
309
  *
332
310
  * @public
333
- * @param {String} word
334
- * @return {String}
335
311
  * @since 4.13.0
336
312
  */
337
313
  function singularize(word) {
@@ -343,8 +319,6 @@ function singularize(word) {
343
319
  * Pluralizes a word.
344
320
  *
345
321
  * @public
346
- * @param {String} word
347
- * @return {String}
348
322
  * @since 4.13.0
349
323
  */
350
324
  function pluralize(word) {
@@ -364,9 +338,6 @@ function unshiftMap(v, map) {
364
338
  * Adds a pluralization rule.
365
339
  *
366
340
  * @public
367
- * @param {RegExp} regex
368
- * @param {String} string
369
- * @return {void}
370
341
  * @since 4.13.0
371
342
  */
372
343
  function plural(regex, string) {
@@ -383,9 +354,6 @@ function plural(regex, string) {
383
354
  * Adds a singularization rule.
384
355
  *
385
356
  * @public
386
- * @param {RegExp} regex
387
- * @param {String} string
388
- * @return {void}
389
357
  * @since 4.13.0
390
358
  */
391
359
  function singular(regex, string) {
@@ -460,4 +428,3 @@ exports.singular = singular;
460
428
  exports.singularize = singularize;
461
429
  exports.uncountable = uncountable;
462
430
  exports.underscore = underscore;
463
- //# sourceMappingURL=string.cjs.map
package/dist/string.js CHANGED
@@ -1 +1 @@
1
- export { g as camelize, h as capitalize, d as clear, e as clearRules, f as dasherize, i as irregular, l as loadIrregular, c as loadUncountable, b as plural, p as pluralize, r as resetToDefaults, k as setMaxLRUCacheSize, a as singular, s as singularize, u as uncountable, j as underscore } from "./inflect-Dr20y6b1.js";
1
+ export { g as camelize, h as capitalize, d as clear, e as clearRules, f as dasherize, i as irregular, l as loadIrregular, c as loadUncountable, b as plural, p as pluralize, r as resetToDefaults, k as setMaxLRUCacheSize, a as singular, s as singularize, u as uncountable, j as underscore } from "./inflect-BSG696t-.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warp-drive/utilities",
3
- "version": "5.6.0-alpha.15",
3
+ "version": "5.6.0-alpha.17",
4
4
  "description": "Utilities package for WarpDrive | Things your app might find useful",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -36,7 +36,7 @@
36
36
  }
37
37
  },
38
38
  "peerDependencies": {
39
- "@warp-drive/core": "5.6.0-alpha.15"
39
+ "@warp-drive/core": "5.6.0-alpha.17"
40
40
  },
41
41
  "dependencies": {
42
42
  "@embroider/macros": "^1.16.12"
@@ -45,12 +45,12 @@
45
45
  "@babel/core": "^7.26.10",
46
46
  "@babel/plugin-transform-typescript": "^7.27.0",
47
47
  "@babel/preset-typescript": "^7.27.0",
48
- "@warp-drive/internal-config": "5.6.0-alpha.15",
49
- "@warp-drive/core": "5.6.0-alpha.15",
48
+ "@warp-drive/internal-config": "5.6.0-alpha.17",
49
+ "@warp-drive/core": "5.6.0-alpha.17",
50
50
  "decorator-transforms": "^2.3.0",
51
51
  "expect-type": "^1.2.1",
52
52
  "typescript": "^5.8.3",
53
- "vite": "^5.4.15"
53
+ "vite": "^7.0.0"
54
54
  },
55
55
  "volta": {
56
56
  "extends": "../../package.json"
@@ -1 +0,0 @@
1
- {"version":3,"file":"find-record.d.ts","sourceRoot":"","sources":["../../../src/-private/active-record/find-record.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,KAAK,EACV,iBAAiB,EACjB,wBAAwB,EACxB,4BAA4B,EAC7B,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAMvF,MAAM,MAAM,wBAAwB,CAAC,CAAC,IAAI,IAAI,CAAC,0BAA0B,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG;IAAE,IAAI,EAAE,CAAC,CAAA;CAAE,CAAC;AAEpG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAC1B,UAAU,EAAE,4BAA4B,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,EAC7D,OAAO,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAC7B,wBAAwB,CAAC,wBAAwB,CAAC,C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D,wBAAgB,YAAY,CAC1B,MAAM,EAAE,OAAO,EACf,OAAO,CAAC,EAAE,yBAAyB,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,GACxD,oBAAoB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"builder-utils.d.ts","sourceRoot":"","sources":["../../src/-private/builder-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAE9F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,yBAAyB,GAAG,IAAI,CAUtG;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,yBAAyB,GAAG,YAAY,CASpF"}
@@ -1,23 +0,0 @@
1
- import type { ReactiveResource } from '@warp-drive/core/reactive';
2
- /**
3
- * A derivation for use by {@link ReactiveResource} that joins the given fields
4
- * with the optional separator (or '' if no separator is provided).
5
- *
6
- * Generally you should not need to import and use this function directly.
7
- *
8
- * @example
9
- * {
10
- * name: 'fullName',
11
- * kind: 'derived',
12
- * type: 'concat',
13
- * options: {
14
- * fields: ['firstName', 'lastName'],
15
- * separator: ' ',
16
- * },
17
- * }
18
- */
19
- export declare function concat(record: ReactiveResource & {
20
- [key: string]: unknown;
21
- }, options: Record<string, unknown> | null, _prop: string): string;
22
- export declare namespace concat { }
23
- //# sourceMappingURL=derivations.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"derivations.d.ts","sourceRoot":"","sources":["../../src/-private/derivations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAGlE;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,MAAM,CACpB,MAAM,EAAE,gBAAgB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAA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AC,EAAE,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;CA4DjF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"gated.d.ts","sourceRoot":"","sources":["../../../src/-private/handlers/gated.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAE7F;;;GAGG;AACH,KAAK,OAAO,GAAG,CAAC,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC;AAEpD;;;GAGG;AACH,qBAAa,IAAK,YAAW,OAAO;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;gBAEb,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO;IAK9C,OAAO,CAAC,CAAC,GAAG,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;CAMnH"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/-private/handlers/utils.ts"],"names":[],"mappings":"AA4BA;;;;GAIG;AACH,eAAO,MAAM,MAAM,QAAa,CAAC;AACjC;;GAEG;AACH,eAAO,MAAM,YAAY,QAAgC,CAAC;AAE1D;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,WAK9C;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,OAAO,CAAC;AAEnC;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,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EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,wBAAwB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=find-record.type-test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"find-record.type-test.d.ts","sourceRoot":"","sources":["../../../src/-private/json-api/find-record.type-test.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/-private/json-api/query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC3F,OAAO,KAAK,EAEV,yBAAyB,EACzB,uBAAuB,EACvB,mBAAmB,EACpB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAM3F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,mBAAmB,EACjD,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC,EACzB,KAAK,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,EAC5B,OAAO,CAAC,EAAE,yBAAyB,GAClC,mBAAmB,CAAC,8BAA8B,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC7D,wBAAgB,KAAK,CACnB,IAAI,EAAE,MAAM,EACZ,KAAK,CAAC,EAAE,iBAAiB,EACzB,OAAO,CAAC,EAAE,yBAAyB,GAClC,mBAAmB,CAAC;AA8BvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,wBAAgB,SAAS,CAAC,CAAC,EACzB,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC,EACzB,KAAK,CAAC,EAAE,iBAAiB,EACzB,OAAO,CAAC,EAAE,yBAAyB,GAClC,uBAAuB,CAAC,8BAA8B,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACjE,wBAAgB,SAAS,CACvB,IAAI,EAAE,MAAM,EACZ,KAAK,CAAC,EAAE,iBAAiB,EACzB,OAAO,CAAC,EAAE,yBAAyB,GAClC,uBAAuB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=query.type-test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"query.type-test.d.ts","sourceRoot":"","sources":["../../../src/-private/json-api/query.type-test.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"save-record.d.ts","sourceRoot":"","sources":["../../../src/-private/json-api/save-record.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,KAAK,EACV,yBAAyB,EACzB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAgBvF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,yBAAyB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC;AACzG,wBAAgB,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,yBAAyB,GAAG,oBAAoB,CAAC;AA8BzG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,yBAAyB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC;AACzG,wBAAgB,YAAY,CAAC,MAAM,EAAE,OAAO,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;GAQG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAQnD;AAED;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAQrD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"inflections.d.ts","sourceRoot":"","sources":["../../../src/-private/string/inflections.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AACjD,KAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,UAAU,CAAC;IACpB,QAAQ,EAAE,UAAU,CAAC;IACrB,cAAc,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACxC,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,gBAkE1B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../../src/-private/string/transform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,iBAAiB,EAAoC,MAAM,+BAA+B,CAAC;AAuBjH;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,SAAS,0BAAoB,CAAC;AAE3C;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE5C;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,QAK9C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"-private.d.ts","sourceRoot":"","sources":["../src/-private.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,IAAI,sBAAsB,EAAE,MAAM,kCAAkC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"active-record.d.ts","sourceRoot":"","sources":["../src/active-record.ts"],"names":[],"mappings":"AAgDA,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../src/handlers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC5F,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EACL,cAAc,EACd,YAAY,EACZ,MAAM,EACN,sBAAsB,EACtB,cAAc,GACf,MAAM,8BAA8B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,+BAA+B,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAMtH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAOD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,cAAc,QAsBvD;AAED,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,YAAY,CAAC;IACjB,UAAU,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,M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,GAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAY9F;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,+BAA+B,GAAG,eAAe,CA0DrH;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,+BAA+B,GAAG,MAAM,CAE7G"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"json-api.d.ts","sourceRoot":"","sources":["../src/json-api.ts"],"names":[],"mappings":"AAkDA,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"rest.d.ts","sourceRoot":"","sources":["../src/rest.ts"],"names":[],"mappings":"AAgDA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../src/string.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EACL,SAAS,EACT,WAAW,EACX,QAAQ,EACR,MAAM,EACN,aAAa,EACb,eAAe,EACf,SAAS,EACT,WAAW,EACX,eAAe,EACf,KAAK,EACL,UAAU,GACX,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"-private.js","sources":["../src/-private/string/inflections.ts"],"sourcesContent":["export type RulesArray = Array<[RegExp, string]>;\ntype DefaultRulesType = {\n plurals: RulesArray;\n singular: RulesArray;\n irregularPairs: Array<[string, string]>;\n uncountable: string[];\n};\n\nexport const defaultRules: DefaultRulesType = {\n plurals: [\n [/$/, 's'],\n [/s$/i, 's'],\n [/^(ax|test)is$/i, '$1es'],\n [/(octop|vir)us$/i, '$1i'],\n [/(octop|vir)i$/i, '$1i'],\n [/(alias|status|bonus)$/i, '$1es'],\n [/(bu)s$/i, '$1ses'],\n [/(buffal|tomat)o$/i, '$1oes'],\n [/([ti])um$/i, '$1a'],\n [/([ti])a$/i, '$1a'],\n [/sis$/i, 'ses'],\n [/(?:([^f])fe|([lr])f)$/i, '$1$2ves'],\n [/(hive)$/i, '$1s'],\n [/([^aeiouy]|qu)y$/i, '$1ies'],\n [/(x|ch|ss|sh)$/i, '$1es'],\n [/(matr|vert|ind)(?:ix|ex)$/i, '$1ices'],\n [/^(m|l)ouse$/i, '$1ice'],\n [/^(m|l)ice$/i, '$1ice'],\n [/^(ox)$/i, '$1en'],\n [/^(oxen)$/i, '$1'],\n [/(quiz)$/i, '$1zes'],\n ],\n\n singular: [\n [/s$/i, ''],\n [/(ss)$/i, '$1'],\n [/(n)ews$/i, '$1ews'],\n [/([ti])a$/i, '$1um'],\n [/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)(sis|ses)$/i, '$1sis'],\n [/(^analy)(sis|ses)$/i, '$1sis'],\n [/([^f])ves$/i, '$1fe'],\n [/(hive)s$/i, '$1'],\n [/(tive)s$/i, '$1'],\n [/([lr])ves$/i, '$1f'],\n [/([^aeiouy]|qu)ies$/i, '$1y'],\n [/(s)eries$/i, '$1eries'],\n [/(m)ovies$/i, '$1ovie'],\n [/(x|ch|ss|sh)es$/i, '$1'],\n [/^(m|l)ice$/i, '$1ouse'],\n [/(bus)(es)?$/i, '$1'],\n [/(o)es$/i, '$1'],\n [/(shoe)s$/i, '$1'],\n [/(cris|test)(is|es)$/i, '$1is'],\n [/^(a)x[ie]s$/i, '$1xis'],\n [/(octop|vir)(us|i)$/i, '$1us'],\n [/(alias|status|bonus)(es)?$/i, '$1'],\n [/^(ox)en/i, '$1'],\n [/(vert|ind)ices$/i, '$1ex'],\n [/(matr)ices$/i, '$1ix'],\n [/(quiz)zes$/i, '$1'],\n [/(database)s$/i, '$1'],\n ],\n\n irregularPairs: [\n ['person', 'people'],\n ['man', 'men'],\n ['child', 'children'],\n ['sex', 'sexes'],\n ['move', 'moves'],\n ['cow', 'kine'],\n ['zombie', 'zombies'],\n ],\n\n uncountable: ['equipment', 'information', 'rice', 'money', 'species', 'series', 'fish', 'sheep', 'jeans', 'police'],\n};\n"],"names":["defaultRules","plurals","singular","irregularPairs","uncountable"],"mappings":"AAQO,MAAMA,YAA8B,GAAG;AAC5CC,EAAAA,OAAO,EAAE,CACP,CAAC,GAAG,EAAE,GAAG,CAAC,EACV,CAAC,KAAK,EAAE,GAAG,CAAC,EACZ,CAAC,gBAAgB,EAAE,MAAM,CAAC,EAC1B,CAAC,iBAAiB,EAAE,KAAK,CAAC,EAC1B,CAAC,gBAAgB,EAAE,KAAK,CAAC,EACzB,CAAC,wBAAwB,EAAE,MAAM,CAAC,EAClC,CAAC,SAAS,EAAE,OAAO,CAAC,EACpB,CAAC,mBAAmB,EAAE,OAAO,CAAC,EAC9B,CAAC,YAAY,EAAE,KAAK,CAAC,EACrB,CAAC,WAAW,EAAE,KAAK,CAAC,EACpB,CAAC,OAAO,EAAE,KAAK,CAAC,EAChB,CAAC,wBAAwB,EAAE,SAAS,CAAC,EACrC,CAAC,UAAU,EAAE,KAAK,CAAC,EACnB,CAAC,mBAAmB,EAAE,OAAO,CAAC,EAC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AAa,EAAE,IAAI,CAAC,EACrB,CAAC,eAAe,EAAE,IAAI,CAAC,CACxB;AAEDC,EAAAA,cAAc,EAAE,CACd,CAAC,QAAQ,EAAE,QAAQ,CAAC,EACpB,CAAC,KAAK,EAAE,KAAK,CAAC,EACd,CAAC,OAAO,EAAE,UAAU,CAAC,EACrB,CAAC,KAAK,EAAE,OAAO,CAAC,EAChB,CAAC,MAAM,EAAE,OAAO,CAAC,EACjB,CAAC,KAAK,EAAE,MAAM,CAAC,EACf,CAAC,QAAQ,EAAE,SAAS,CAAC,CACtB;EAEDC,WAAW,EAAE,CAAC,WAAW,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ;AACpH;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"active-record.js","sources":["../src/-private/active-record/find-record.ts","../src/-private/active-record/query.ts","../src/-private/active-record/save-record.ts"],"sourcesContent":["import type { TypeFromInstance } from '@warp-drive/core/types/record';\nimport type {\n FindRecordOptions,\n FindRecordRequestOptions,\n RemotelyAccessibleIdentifier,\n} from '@warp-drive/core/types/request';\nimport type { SingleResourceDataDocument } from '@warp-drive/core/types/spec/document';\n\nimport { buildBaseURL, buildQueryParams, type FindRecordUrlOptions } from '../../index.ts';\nimport { pluralize, underscore } from '../../string.ts';\nimport { copyForwardUrlOptions, extractCacheOptions } from '../builder-utils.ts';\n\nexport type FindRecordResultDocument<T> = Omit<SingleResourceDataDocument<T>, 'data'> & { data: T };\n\n/**\n * Builds request options to fetch a single resource by a known id or identifier\n * configured for the url and header expectations of most ActiveRecord APIs.\n *\n * **Basic Usage**\n *\n * ```ts\n * import { findRecord } from '@warp-drive/utilities/active-record';\n *\n * const data = await store.request(findRecord('person', '1'));\n * ```\n *\n * **With Options**\n *\n * ```ts\n * import { findRecord } from '@warp-drive/utilities/active-record';\n *\n * const options = findRecord('person', '1', { include: ['pets', 'friends'] });\n * const data = await store.request(options);\n * ```\n *\n * **With an Identifier**\n *\n * ```ts\n * import { findRecord } from '@warp-drive/utilities/active-record';\n *\n * const options = findRecord({ type: 'person', id: '1' }, { include: ['pets', 'friends'] });\n * const data = await store.request(options);\n * ```\n *\n * **Supplying Options to Modify the Request Behavior**\n *\n * The following options are supported:\n *\n * - `host` - The host to use for the request, defaults to the `host` configured with `setBuildURLConfig`.\n * - `namespace` - The namespace to use for the request, defaults to the `namespace` configured with `setBuildURLConfig`.\n * - `resourcePath` - The resource path to use for the request, defaults to pluralizing and underscoring the supplied type\n * - `reload` - Whether to forcibly reload the request if it is already in the store, not supplying this\n * option will delegate to the store's CachePolicy, defaulting to `false` if none is configured.\n * - `backgroundReload` - Whether to reload the request if it is already in the store, but to also resolve the\n * promise with the cached value, not supplying this option will delegate to the store's CachePolicy,\n * defaulting to `false` if none is configured.\n * - `urlParamsSetting` - an object containing options for how to serialize the query params (see `buildQueryParams`)\n *\n * ```ts\n * import { findRecord } from '@warp-drive/utilities/active-record';\n *\n * const options = findRecord('person', '1', { include: ['pets', 'friends'] }, { namespace: 'api/v2' });\n * const data = await store.request(options);\n * ```\n *\n * @public\n * @param identifier\n * @param options\n */\nexport function findRecord<T>(\n identifier: RemotelyAccessibleIdentifier<TypeFromInstance<T>>,\n options?: FindRecordOptions<T>\n): FindRecordRequestOptions<FindRecordResultDocument<T>, T>;\nexport function findRecord(\n identifier: RemotelyAccessibleIdentifier,\n options?: FindRecordOptions\n): FindRecordRequestOptions;\nexport function findRecord<T>(\n type: TypeFromInstance<T>,\n id: string,\n options?: FindRecordOptions<T>\n): FindRecordRequestOptions<FindRecordResultDocument<T>, T>;\nexport function findRecord(type: string, id: string, options?: FindRecordOptions): FindRecordRequestOptions;\nexport function findRecord(\n arg1: string | RemotelyAccessibleIdentifier,\n arg2: string | FindRecordOptions | undefined,\n arg3?: FindRecordOptions\n): FindRecordRequestOptions {\n const identifier: RemotelyAccessibleIdentifier = typeof arg1 === 'string' ? { type: arg1, id: arg2 as string } : arg1;\n const options = ((typeof arg1 === 'string' ? arg3 : arg2) || {}) as FindRecordOptions;\n const cacheOptions = extractCacheOptions(options);\n const urlOptions: FindRecordUrlOptions = {\n identifier,\n op: 'findRecord',\n resourcePath: pluralize(underscore(identifier.type)),\n };\n\n copyForwardUrlOptions(urlOptions, options);\n\n const url = buildBaseURL(urlOptions);\n const headers = new Headers();\n headers.append('Accept', 'application/json;charset=utf-8');\n\n return {\n url: options.include?.length\n ? `${url}?${buildQueryParams({ include: options.include }, options.urlParamsSettings)}`\n : url,\n method: 'GET',\n headers,\n cacheOptions,\n op: 'findRecord',\n records: [identifier],\n };\n}\n","import type { QueryParamsSource } from '@warp-drive/core/types/params';\nimport type { TypeFromInstance } from '@warp-drive/core/types/record';\nimport type { ConstrainedRequestOptions, QueryRequestOptions } from '@warp-drive/core/types/request';\nimport type { CollectionResourceDataDocument } from '@warp-drive/core/types/spec/document';\n\nimport { buildBaseURL, buildQueryParams, type QueryUrlOptions } from '../../index.ts';\nimport { pluralize, underscore } from '../../string';\nimport { copyForwardUrlOptions, extractCacheOptions } from '../builder-utils.ts';\n\n/**\n * Builds request options to query for resources, usually by a primary\n * type, configured for the url and header expectations of most ActiveRecord APIs.\n *\n * **Basic Usage**\n *\n * ```ts\n * import { query } from '@warp-drive/utilities/active-record';\n *\n * const data = await store.request(query('person'));\n * ```\n *\n * **With Query Params**\n *\n * ```ts\n * import { query } from '@warp-drive/utilities/active-record';\n *\n * const options = query('person', { include: ['pets', 'friends'] });\n * const data = await store.request(options);\n * ```\n *\n * **Supplying Options to Modify the Request Behavior**\n *\n * The following options are supported:\n *\n * - `host` - The host to use for the request, defaults to the `host` configured with `setBuildURLConfig`.\n * - `namespace` - The namespace to use for the request, defaults to the `namespace` configured with `setBuildURLConfig`.\n * - `resourcePath` - The resource path to use for the request, defaults to pluralizing and underscoring the supplied type\n * - `reload` - Whether to forcibly reload the request if it is already in the store, not supplying this\n * option will delegate to the store's CachePolicy, defaulting to `false` if none is configured.\n * - `backgroundReload` - Whether to reload the request if it is already in the store, but to also resolve the\n * promise with the cached value, not supplying this option will delegate to the store's CachePolicy,\n * defaulting to `false` if none is configured.\n * - `urlParamsSetting` - an object containing options for how to serialize the query params (see `buildQueryParams`)\n *\n * ```ts\n * import { query } from '@warp-drive/utilities/active-record';\n *\n * const options = query('person', { include: ['pets', 'friends'] }, { reload: true });\n * const data = await store.request(options);\n * ```\n *\n * @public\n * @param identifier\n * @param query\n * @param options\n */\nexport function query<T>(\n type: TypeFromInstance<T>,\n query?: QueryParamsSource,\n options?: ConstrainedRequestOptions\n): QueryRequestOptions<CollectionResourceDataDocument<T>, T>;\nexport function query(\n type: string,\n query?: QueryParamsSource,\n options?: ConstrainedRequestOptions\n): QueryRequestOptions;\nexport function query(\n type: string,\n // eslint-disable-next-line @typescript-eslint/no-shadow\n query: QueryParamsSource = {},\n options: ConstrainedRequestOptions = {}\n): QueryRequestOptions {\n const cacheOptions = extractCacheOptions(options);\n const urlOptions: QueryUrlOptions = {\n identifier: { type },\n op: 'query',\n resourcePath: pluralize(underscore(type)),\n };\n\n copyForwardUrlOptions(urlOptions, options);\n\n const url = buildBaseURL(urlOptions);\n const headers = new Headers();\n headers.append('Accept', 'application/json;charset=utf-8');\n const queryString = buildQueryParams(query, options.urlParamsSettings);\n\n return {\n url: queryString ? `${url}?${queryString}` : url,\n method: 'GET',\n headers,\n cacheOptions,\n op: 'query',\n };\n}\n","import { recordIdentifierFor } from '@warp-drive/core';\nimport { assert } from '@warp-drive/core/build-config/macros';\nimport type { StableExistingRecordIdentifier, StableRecordIdentifier } from '@warp-drive/core/types/identifier';\nimport type { TypedRecordInstance } from '@warp-drive/core/types/record';\nimport type {\n ConstrainedRequestOptions,\n CreateRequestOptions,\n DeleteRequestOptions,\n UpdateRequestOptions,\n} from '@warp-drive/core/types/request';\nimport type { SingleResourceDataDocument } from '@warp-drive/core/types/spec/document';\n\nimport {\n buildBaseURL,\n type CreateRecordUrlOptions,\n type DeleteRecordUrlOptions,\n type UpdateRecordUrlOptions,\n} from '../../index.ts';\nimport { pluralize, underscore } from '../../string';\nimport { copyForwardUrlOptions } from '../builder-utils.ts';\n\nfunction isExisting(identifier: StableRecordIdentifier): identifier is StableExistingRecordIdentifier {\n return 'id' in identifier && identifier.id !== null && 'type' in identifier && identifier.type !== null;\n}\n\n/**\n * Builds request options to delete record for resources,\n * configured for the url, method and header expectations of ActiveRecord APIs.\n *\n * **Basic Usage**\n *\n * ```ts\n * import { deleteRecord } from '@warp-drive/utilities/active-record';\n *\n * const person = store.peekRecord('person', '1');\n *\n * // mark record as deleted\n * store.deleteRecord(person);\n *\n * // persist deletion\n * const data = await store.request(deleteRecord(person));\n * ```\n *\n * **Supplying Options to Modify the Request Behavior**\n *\n * The following options are supported:\n *\n * - `host` - The host to use for the request, defaults to the `host` configured with `setBuildURLConfig`.\n * - `namespace` - The namespace to use for the request, defaults to the `namespace` configured with `setBuildURLConfig`.\n * - `resourcePath` - The resource path to use for the request, defaults to pluralizing the supplied type\n * - `reload` - Whether to forcibly reload the request if it is already in the store, not supplying this\n * option will delegate to the store's CachePolicy, defaulting to `false` if none is configured.\n * - `backgroundReload` - Whether to reload the request if it is already in the store, but to also resolve the\n * promise with the cached value, not supplying this option will delegate to the store's CachePolicy,\n * defaulting to `false` if none is configured.\n * - `urlParamsSetting` - an object containing options for how to serialize the query params (see `buildQueryParams`)\n *\n * ```ts\n * import { deleteRecord } from '@warp-drive/utilities/active-record';\n *\n * const person = store.peekRecord('person', '1');\n *\n * // mark record as deleted\n * store.deleteRecord(person);\n *\n * // persist deletion\n * const options = deleteRecord(person, { namespace: 'api/v1' });\n * const data = await store.request(options);\n * ```\n *\n * @public\n * @param record\n * @param options\n */\nexport function deleteRecord<T>(record: T, options?: ConstrainedRequestOptions): DeleteRequestOptions<T>;\nexport function deleteRecord(record: unknown, options?: ConstrainedRequestOptions): DeleteRequestOptions;\nexport function deleteRecord(record: unknown, options: ConstrainedRequestOptions = {}): DeleteRequestOptions {\n const identifier = recordIdentifierFor(record);\n assert(`Expected to be given a record instance`, identifier);\n assert(`Cannot delete a record that does not have an associated type and id.`, isExisting(identifier));\n\n const urlOptions: DeleteRecordUrlOptions = {\n identifier: identifier,\n op: 'deleteRecord',\n resourcePath: pluralize(underscore(identifier.type)),\n };\n\n copyForwardUrlOptions(urlOptions, options);\n\n const url = buildBaseURL(urlOptions);\n const headers = new Headers();\n headers.append('Accept', 'application/json;charset=utf-8');\n\n return {\n url,\n method: 'DELETE',\n headers,\n op: 'deleteRecord',\n data: {\n record: identifier,\n },\n records: [identifier],\n };\n}\n\n/**\n * Builds request options to create new record for resources,\n * configured for the url, method and header expectations of most ActiveRecord APIs.\n *\n * **Basic Usage**\n *\n * ```ts\n * import { createRecord } from '@warp-drive/utilities/active-record';\n *\n * const person = store.createRecord('person', { name: 'Ted' });\n * const data = await store.request(createRecord(person));\n * ```\n *\n * **Supplying Options to Modify the Request Behavior**\n *\n * The following options are supported:\n *\n * - `host` - The host to use for the request, defaults to the `host` configured with `setBuildURLConfig`.\n * - `namespace` - The namespace to use for the request, defaults to the `namespace` configured with `setBuildURLConfig`.\n * - `resourcePath` - The resource path to use for the request, defaults to pluralizing the supplied type\n * - `reload` - Whether to forcibly reload the request if it is already in the store, not supplying this\n * option will delegate to the store's CachePolicy, defaulting to `false` if none is configured.\n * - `backgroundReload` - Whether to reload the request if it is already in the store, but to also resolve the\n * promise with the cached value, not supplying this option will delegate to the store's CachePolicy,\n * defaulting to `false` if none is configured.\n * - `urlParamsSetting` - an object containing options for how to serialize the query params (see `buildQueryParams`)\n *\n * ```ts\n * import { createRecord } from '@warp-drive/utilities/active-record';\n *\n * const person = store.createRecord('person', { name: 'Ted' });\n * const options = createRecord(person, { namespace: 'api/v1' });\n * const data = await store.request(options);\n * ```\n *\n * @public\n * @param record\n * @param options\n */\nexport function createRecord<T>(record: T, options?: ConstrainedRequestOptions): CreateRequestOptions<T>;\nexport function createRecord(record: unknown, options?: ConstrainedRequestOptions): CreateRequestOptions;\nexport function createRecord(record: unknown, options: ConstrainedRequestOptions = {}): CreateRequestOptions {\n const identifier = recordIdentifierFor(record);\n assert(`Expected to be given a record instance`, identifier);\n\n const urlOptions: CreateRecordUrlOptions = {\n identifier: identifier,\n op: 'createRecord',\n resourcePath: pluralize(underscore(identifier.type)),\n };\n\n copyForwardUrlOptions(urlOptions, options);\n\n const url = buildBaseURL(urlOptions);\n const headers = new Headers();\n headers.append('Accept', 'application/json;charset=utf-8');\n\n return {\n url,\n method: 'POST',\n headers,\n op: 'createRecord',\n data: {\n record: identifier,\n },\n records: [identifier],\n };\n}\n\n/**\n * Builds request options to update existing record for resources,\n * configured for the url, method and header expectations of most ActiveRecord APIs.\n *\n * **Basic Usage**\n *\n * ```ts\n * import { updateRecord } from '@warp-drive/utilities/active-record';\n *\n * const person = store.peekRecord('person', '1');\n * person.name = 'Chris';\n * const data = await store.request(updateRecord(person));\n * ```\n *\n * **Supplying Options to Modify the Request Behavior**\n *\n * The following options are supported:\n *\n * - `patch` - Allows caller to specify whether to use a PATCH request instead of a PUT request, defaults to `false`.\n * - `host` - The host to use for the request, defaults to the `host` configured with `setBuildURLConfig`.\n * - `namespace` - The namespace to use for the request, defaults to the `namespace` configured with `setBuildURLConfig`.\n * - `resourcePath` - The resource path to use for the request, defaults to pluralizing the supplied type\n * - `reload` - Whether to forcibly reload the request if it is already in the store, not supplying this\n * option will delegate to the store's CachePolicy, defaulting to `false` if none is configured.\n * - `backgroundReload` - Whether to reload the request if it is already in the store, but to also resolve the\n * promise with the cached value, not supplying this option will delegate to the store's CachePolicy,\n * defaulting to `false` if none is configured.\n * - `urlParamsSetting` - an object containing options for how to serialize the query params (see `buildQueryParams`)\n *\n * ```ts\n * import { updateRecord } from '@warp-drive/utilities/active-record';\n *\n * const person = store.peekRecord('person', '1');\n * person.name = 'Chris';\n * const options = updateRecord(person, { patch: true });\n * const data = await store.request(options);\n * ```\n *\n * @public\n * @param record\n * @param options\n */\nexport function updateRecord<T extends TypedRecordInstance, RT extends TypedRecordInstance = T>(\n record: T,\n options?: ConstrainedRequestOptions & { patch?: boolean }\n): UpdateRequestOptions<SingleResourceDataDocument<RT>, T>;\nexport function updateRecord(\n record: unknown,\n options?: ConstrainedRequestOptions & { patch?: boolean }\n): UpdateRequestOptions;\nexport function updateRecord(\n record: unknown,\n options: ConstrainedRequestOptions & { patch?: boolean } = {}\n): UpdateRequestOptions {\n const identifier = recordIdentifierFor(record);\n assert(`Expected to be given a record instance`, identifier);\n assert(`Cannot update a record that does not have an associated type and id.`, isExisting(identifier));\n\n const urlOptions: UpdateRecordUrlOptions = {\n identifier: identifier,\n op: 'updateRecord',\n resourcePath: pluralize(underscore(identifier.type)),\n };\n\n copyForwardUrlOptions(urlOptions, options);\n\n const url = buildBaseURL(urlOptions);\n const headers = new Headers();\n headers.append('Accept', 'application/json;charset=utf-8');\n\n return {\n url,\n method: options.patch ? 'PATCH' : 'PUT',\n headers,\n op: 'updateRecord',\n data: {\n record: identifier,\n },\n records: [identifier],\n };\n}\n"],"names":["findRecord","arg1","arg2","arg3","identifier","type","id","options","cacheOptions","extractCacheOptions","urlOptions","op","resourcePath","pluralize","underscore","copyForwardUrlOptions","url","buildBaseURL","headers","Headers","append","include","length","buildQueryParams","urlParamsSettings","method","records","query","queryString","isExisting","deleteRecord","record","recordIdentifierFor","macroCondition","getGlobalConfig","WarpDrive","env","DEBUG","test","Error","data","createRecord","updateRecord","patch"],"mappings":";;;;;;AAcA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAeO,SAASA,UAAUA,CACxBC,IAA2C,EAC3CC,IAA4C,EAC5CC,IAA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,UAAU,CAAC;AACpC,EAAA,MAAMQ,OAAO,GAAG,IAAIC,OAAO,EAAE;AAC7BD,EAAAA,OAAO,CAACE,MAAM,CAAC,QAAQ,EAAE,gCAAgC,CAAC;EAE1D,OAAO;IACLJ,GAAG;AACHS,IAAAA,MAAM,EAAElB,OAAO,CAACoC,KAAK,GAAG,OAAO,GAAG,KAAK;IACvCzB,OAAO;AACPP,IAAAA,EAAE,EAAE,cAAc;AAClB6B,IAAAA,IAAI,EAAE;AACJT,MAAAA,MAAM,EAAE3B;KACT;IACDsB,OAAO,EAAE,CAACtB,UAAU;GACrB;AACH;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"builder-utils-Donkk-BZ.js","sources":["../src/-private/builder-utils.ts"],"sourcesContent":["import type { CacheOptions, ConstrainedRequestOptions } from '@warp-drive/core/types/request';\n\nimport type { UrlOptions } from '../index.ts';\n\nexport function copyForwardUrlOptions(urlOptions: UrlOptions, options: ConstrainedRequestOptions): void {\n if ('host' in options) {\n urlOptions.host = options.host;\n }\n if ('namespace' in options) {\n urlOptions.namespace = options.namespace;\n }\n if ('resourcePath' in options) {\n urlOptions.resourcePath = options.resourcePath;\n }\n}\n\nexport function extractCacheOptions(options: ConstrainedRequestOptions): CacheOptions {\n const cacheOptions: CacheOptions = {};\n if ('reload' in options) {\n cacheOptions.reload = options.reload;\n }\n if ('backgroundReload' in options) {\n cacheOptions.backgroundReload = options.backgroundReload;\n }\n return cacheOptions;\n}\n"],"names":["copyForwardUrlOptions","urlOptions","options","host","namespace","resourcePath","extractCacheOptions","cacheOptions","reload","backgroundReload"],"mappings":"AAIO,SAASA,qBAAqBA,CAACC,UAAsB,EAAEC,OAAkC,EAAQ;EACtG,IAAI,MAAM,IAAIA,OAAO,EAAE;AACrBD,IAAAA,UAAU,CAACE,IAAI,GAAGD,OAAO,CAACC,IAAI;AAChC;EACA,IAAI,WAAW,IAAID,OAAO,EAAE;AAC1BD,IAAAA,UAAU,CAACG,SAAS,GAAGF,OAAO,CAACE,SAAS;AAC1C;EACA,IAAI,cAAc,IAAIF,OAAO,EAAE;AAC7BD,IAAAA,UAAU,CAACI,YAAY,GAAGH,OAAO,CAACG,YAAY;AAChD;AACF;AAEO,SAASC,mBAAmBA,CAACJ,OAAkC,EAAgB;EACpF,MAAMK,YAA0B,GAAG,EAAE;EACrC,IAAI,QAAQ,IAAIL,OAAO,EAAE;AACvBK,IAAAA,YAAY,CAACC,MAAM,GAAGN,OAAO,CAACM,MAAM;AACtC;EACA,IAAI,kBAAkB,IAAIN,OAAO,EAAE;AACjCK,IAAAA,YAAY,CAACE,gBAAgB,GAAGP,OAAO,CAACO,gBAAgB;AAC1D;AACA,EAAA,OAAOF,YAAY;AACrB;;;;"}