@ember-data-mirror/serializer 5.4.0-alpha.49

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 (58) hide show
  1. package/LICENSE.md +11 -0
  2. package/README.md +98 -0
  3. package/addon/-private.js +3 -0
  4. package/addon/-private.js.map +1 -0
  5. package/addon/embedded-records-mixin-QJe_8jrF.js +572 -0
  6. package/addon/embedded-records-mixin-QJe_8jrF.js.map +1 -0
  7. package/addon/index.js +181 -0
  8. package/addon/index.js.map +1 -0
  9. package/addon/json-api.js +508 -0
  10. package/addon/json-api.js.map +1 -0
  11. package/addon/json.js +1375 -0
  12. package/addon/json.js.map +1 -0
  13. package/addon/rest.js +684 -0
  14. package/addon/rest.js.map +1 -0
  15. package/addon/string-Juwz4cu0.js +345 -0
  16. package/addon/string-Juwz4cu0.js.map +1 -0
  17. package/addon/transform.js +1 -0
  18. package/addon/transform.js.map +1 -0
  19. package/addon/utils-NcVD2Jb5.js +12 -0
  20. package/addon/utils-NcVD2Jb5.js.map +1 -0
  21. package/addon-main.js +94 -0
  22. package/blueprints/serializer/files/__root__/__path__/__name__.js +4 -0
  23. package/blueprints/serializer/index.js +14 -0
  24. package/blueprints/serializer/native-files/__root__/__path__/__name__.js +4 -0
  25. package/blueprints/serializer-test/index.js +29 -0
  26. package/blueprints/serializer-test/qunit-files/__root__/__path__/__test__.js +24 -0
  27. package/blueprints/transform/files/__root__/__path__/__name__.js +13 -0
  28. package/blueprints/transform/index.js +7 -0
  29. package/blueprints/transform/native-files/__root__/__path__/__name__.js +13 -0
  30. package/blueprints/transform-test/index.js +29 -0
  31. package/blueprints/transform-test/qunit-files/__root__/__path__/__test__.js +13 -0
  32. package/package.json +113 -0
  33. package/unstable-preview-types/-private/embedded-records-mixin.d.ts +7 -0
  34. package/unstable-preview-types/-private/embedded-records-mixin.d.ts.map +1 -0
  35. package/unstable-preview-types/-private/transforms/boolean.d.ts +52 -0
  36. package/unstable-preview-types/-private/transforms/boolean.d.ts.map +1 -0
  37. package/unstable-preview-types/-private/transforms/date.d.ts +33 -0
  38. package/unstable-preview-types/-private/transforms/date.d.ts.map +1 -0
  39. package/unstable-preview-types/-private/transforms/number.d.ts +34 -0
  40. package/unstable-preview-types/-private/transforms/number.d.ts.map +1 -0
  41. package/unstable-preview-types/-private/transforms/string.d.ts +34 -0
  42. package/unstable-preview-types/-private/transforms/string.d.ts.map +1 -0
  43. package/unstable-preview-types/-private/transforms/transform.d.ts +128 -0
  44. package/unstable-preview-types/-private/transforms/transform.d.ts.map +1 -0
  45. package/unstable-preview-types/-private/utils.d.ts +6 -0
  46. package/unstable-preview-types/-private/utils.d.ts.map +1 -0
  47. package/unstable-preview-types/-private.d.ts +13 -0
  48. package/unstable-preview-types/-private.d.ts.map +1 -0
  49. package/unstable-preview-types/index.d.ts +278 -0
  50. package/unstable-preview-types/index.d.ts.map +1 -0
  51. package/unstable-preview-types/json-api.d.ts +515 -0
  52. package/unstable-preview-types/json-api.d.ts.map +1 -0
  53. package/unstable-preview-types/json.d.ts +1094 -0
  54. package/unstable-preview-types/json.d.ts.map +1 -0
  55. package/unstable-preview-types/rest.d.ts +602 -0
  56. package/unstable-preview-types/rest.d.ts.map +1 -0
  57. package/unstable-preview-types/transform.d.ts +7 -0
  58. package/unstable-preview-types/transform.d.ts.map +1 -0
@@ -0,0 +1,515 @@
1
+ declare module '@ember-data-mirror/serializer/json-api' {
2
+ /// <reference types="ember-source/types" />
3
+ export default JSONAPISerializer;
4
+ /**
5
+ * <blockquote style="margin: 1em; padding: .1em 1em .1em 1em; border-left: solid 1em #E34C32; background: #e0e0e0;">
6
+ <p>
7
+ ⚠️ <strong>This is LEGACY documentation</strong> for a feature that is no longer encouraged to be used.
8
+ If starting a new app or thinking of implementing a new adapter, consider writing a
9
+ <a href="/ember-data/release/classes/%3CInterface%3E%20Handler">Handler</a> instead to be used with the <a href="https://github.com/emberjs/data/tree/main/packages/request#readme">RequestManager</a>
10
+ </p>
11
+ </blockquote>
12
+
13
+ In EmberData a Serializer is used to serialize and deserialize
14
+ records when they are transferred in and out of an external source.
15
+ This process involves normalizing property names, transforming
16
+ attribute values and serializing relationships.
17
+
18
+ `JSONAPISerializer` supports the http://jsonapi.org/ spec and is the
19
+ serializer recommended by Ember Data.
20
+
21
+ This serializer normalizes a JSON API payload that looks like:
22
+
23
+ ```app/models/player.js
24
+ import Model, { attr, belongsTo } from '@ember-data-mirror/model';
25
+
26
+ export default class Player extends Model {
27
+ @attr('string') name;
28
+ @attr('string') skill;
29
+ @attr('number') gamesPlayed;
30
+ @belongsTo('club') club;
31
+ }
32
+ ```
33
+
34
+ ```app/models/club.js
35
+ import Model, { attr, hasMany } from '@ember-data-mirror/model';
36
+
37
+ export default class Club extends Model {
38
+ @attr('string') name;
39
+ @attr('string') location;
40
+ @hasMany('player') players;
41
+ }
42
+ ```
43
+
44
+ ```js
45
+ {
46
+ "data": [
47
+ {
48
+ "attributes": {
49
+ "name": "Benfica",
50
+ "location": "Portugal"
51
+ },
52
+ "id": "1",
53
+ "relationships": {
54
+ "players": {
55
+ "data": [
56
+ {
57
+ "id": "3",
58
+ "type": "players"
59
+ }
60
+ ]
61
+ }
62
+ },
63
+ "type": "clubs"
64
+ }
65
+ ],
66
+ "included": [
67
+ {
68
+ "attributes": {
69
+ "name": "Eusebio Silva Ferreira",
70
+ "skill": "Rocket shot",
71
+ "games-played": 431
72
+ },
73
+ "id": "3",
74
+ "relationships": {
75
+ "club": {
76
+ "data": {
77
+ "id": "1",
78
+ "type": "clubs"
79
+ }
80
+ }
81
+ },
82
+ "type": "players"
83
+ }
84
+ ]
85
+ }
86
+ ```
87
+
88
+ to the format that the Ember Data store expects.
89
+
90
+ ### Customizing meta
91
+
92
+ Since a JSON API Document can have meta defined in multiple locations you can
93
+ use the specific serializer hooks if you need to customize the meta.
94
+
95
+ One scenario would be to camelCase the meta keys of your payload. The example
96
+ below shows how this could be done using `normalizeArrayResponse` and
97
+ `extractRelationship`.
98
+
99
+ ```app/serializers/application.js
100
+ import JSONAPISerializer from '@ember-data-mirror/serializer/json-api';
101
+
102
+ export default class ApplicationSerializer extends JSONAPISerializer {
103
+ normalizeArrayResponse(store, primaryModelClass, payload, id, requestType) {
104
+ let normalizedDocument = super.normalizeArrayResponse(...arguments);
105
+
106
+ // Customize document meta
107
+ normalizedDocument.meta = camelCaseKeys(normalizedDocument.meta);
108
+
109
+ return normalizedDocument;
110
+ }
111
+
112
+ extractRelationship(relationshipHash) {
113
+ let normalizedRelationship = super.extractRelationship(...arguments);
114
+
115
+ // Customize relationship meta
116
+ normalizedRelationship.meta = camelCaseKeys(normalizedRelationship.meta);
117
+
118
+ return normalizedRelationship;
119
+ }
120
+ }
121
+ ```
122
+
123
+ @main @ember-data-mirror/serializer/json-api
124
+ @since 1.13.0
125
+ @class JSONAPISerializer
126
+ @public
127
+ @extends JSONSerializer
128
+ */
129
+ const JSONAPISerializer: Readonly<Readonly<typeof import("@ember-data-mirror/serializer").default> & (new (owner?: import("@ember/-internals/owner").default | undefined) => import(".").default) & {
130
+ primaryKey: string;
131
+ mergedProperties: Object;
132
+ applyTransforms(typeClass: Model, data: Object): Object;
133
+ normalizeResponse(store: Store, primaryModelClass: Model, payload: Object, id: string | number, requestType: string, ...args: any[]): Object;
134
+ normalizeFindRecordResponse(store: Store, primaryModelClass: Model, payload: Object, id: string | number, requestType: string, ...args: any[]): Object;
135
+ normalizeQueryRecordResponse(store: Store, primaryModelClass: Model, payload: Object, id: string | number, requestType: string, ...args: any[]): Object;
136
+ normalizeFindAllResponse(store: Store, primaryModelClass: Model, payload: Object, id: string | number, requestType: string, ...args: any[]): Object;
137
+ normalizeFindBelongsToResponse(store: Store, primaryModelClass: Model, payload: Object, id: string | number, requestType: string, ...args: any[]): Object;
138
+ normalizeFindHasManyResponse(store: Store, primaryModelClass: Model, payload: Object, id: string | number, requestType: string, ...args: any[]): Object;
139
+ normalizeFindManyResponse(store: Store, primaryModelClass: Model, payload: Object, id: string | number, requestType: string, ...args: any[]): Object;
140
+ normalizeQueryResponse(store: Store, primaryModelClass: Model, payload: Object, id: string | number, requestType: string, ...args: any[]): Object;
141
+ normalizeCreateRecordResponse(store: Store, primaryModelClass: Model, payload: Object, id: string | number, requestType: string, ...args: any[]): Object;
142
+ normalizeDeleteRecordResponse(store: Store, primaryModelClass: Model, payload: Object, id: string | number, requestType: string, ...args: any[]): Object;
143
+ normalizeUpdateRecordResponse(store: Store, primaryModelClass: Model, payload: Object, id: string | number, requestType: string, ...args: any[]): Object;
144
+ normalizeSaveResponse(store: Store, primaryModelClass: Model, payload: Object, id: string | number, requestType: string, ...args: any[]): Object;
145
+ normalizeSingleResponse(store: Store, primaryModelClass: Model, payload: Object, id: string | number, requestType: string): Object;
146
+ normalizeArrayResponse(store: Store, primaryModelClass: Model, payload: Object, id: string | number, requestType: string): Object;
147
+ _normalizeResponse(store: Store, primaryModelClass: Model, payload: Object, id: string | number, requestType: string, isSingle: boolean): Object;
148
+ normalize(modelClass: any, resourceHash: any): Object;
149
+ extractId(modelClass: Object, resourceHash: Object): string;
150
+ extractAttributes(modelClass: Object, resourceHash: Object): Object;
151
+ extractRelationship(relationshipModelName: Object, relationshipHash: Object): Object;
152
+ extractPolymorphicRelationship(relationshipModelName: Object, relationshipHash: Object, relationshipOptions: Object): Object;
153
+ extractRelationships(modelClass: Object, resourceHash: Object): Object;
154
+ modelNameFromPayloadKey(key: string): string;
155
+ normalizeRelationships(typeClass: any, hash: any): void;
156
+ normalizeUsingDeclaredMapping(modelClass: any, hash: any): void;
157
+ _getMappedKey(key: string, modelClass: any): string;
158
+ _canSerialize(key: string): boolean;
159
+ _mustSerialize(key: string): boolean;
160
+ shouldSerializeHasMany(snapshot: Snapshot, key: string, relationship: RelationshipSchema): boolean;
161
+ serialize(snapshot: Snapshot, options: Object): Object;
162
+ serializeIntoHash(hash: Object, typeClass: Model, snapshot: Snapshot, options: Object): void;
163
+ serializeAttribute(snapshot: Snapshot, json: Object, key: string, attribute: Object): void;
164
+ serializeBelongsTo(snapshot: Snapshot, json: Object, relationship: Object): void;
165
+ serializeHasMany(snapshot: Snapshot, json: Object, relationship: Object): void;
166
+ serializePolymorphicType(): void;
167
+ extractMeta(store: Store, modelClass: Model, payload: Object): any;
168
+ extractErrors(store: Store, typeClass: Model, payload: Object, id: string | number): Object;
169
+ keyForAttribute(key: string, method: string): string;
170
+ keyForRelationship(key: string, typeClass: string, method: string): string;
171
+ keyForLink(key: string, kind: string): string;
172
+ transformFor(attributeType: string, skipAssertion: boolean): Transform;
173
+ }> & (new (owner?: import("@ember-data-mirror/serializer/@ember/-internals/owner").default | undefined) => import(".").default) & {
174
+ /**
175
+ @method _normalizeDocumentHelper
176
+ @param {Object} documentHash
177
+ @return {Object}
178
+ @private
179
+ */
180
+ _normalizeDocumentHelper(documentHash: Object): Object;
181
+ /**
182
+ @method _normalizeRelationshipDataHelper
183
+ @param {Object} relationshipDataHash
184
+ @return {Object}
185
+ @private
186
+ */
187
+ _normalizeRelationshipDataHelper(relationshipDataHash: Object): Object;
188
+ /**
189
+ @method _normalizeResourceHelper
190
+ @param {Object} resourceHash
191
+ @return {Object}
192
+ @private
193
+ */
194
+ _normalizeResourceHelper(resourceHash: Object): Object;
195
+ /**
196
+ Normalize some data and push it into the store.
197
+
198
+ @method pushPayload
199
+ @public
200
+ @param {Store} store
201
+ @param {Object} payload
202
+ */
203
+ pushPayload(store: Store, payload: Object): void;
204
+ /**
205
+ @method _normalizeResponse
206
+ @param {Store} store
207
+ @param {Model} primaryModelClass
208
+ @param {Object} payload
209
+ @param {String|Number} id
210
+ @param {String} requestType
211
+ @param {Boolean} isSingle
212
+ @return {Object} JSON-API Document
213
+ @private
214
+ */
215
+ _normalizeResponse(store: Store, primaryModelClass: Model, payload: Object, id: string | number, requestType: string, isSingle: boolean): Object;
216
+ normalizeQueryRecordResponse(...args: any[]): any;
217
+ extractAttributes(modelClass: any, resourceHash: any): {};
218
+ /**
219
+ Returns a relationship formatted as a JSON-API "relationship object".
220
+
221
+ http://jsonapi.org/format/#document-resource-object-relationships
222
+
223
+ @method extractRelationship
224
+ @public
225
+ @param {Object} relationshipHash
226
+ @return {Object}
227
+ */
228
+ extractRelationship(relationshipHash: Object): Object;
229
+ /**
230
+ Returns the resource's relationships formatted as a JSON-API "relationships object".
231
+
232
+ http://jsonapi.org/format/#document-resource-object-relationships
233
+
234
+ @method extractRelationships
235
+ @public
236
+ @param {Object} modelClass
237
+ @param {Object} resourceHash
238
+ @return {Object}
239
+ */
240
+ extractRelationships(modelClass: Object, resourceHash: Object): Object;
241
+ /**
242
+ @method _extractType
243
+ @param {Model} modelClass
244
+ @param {Object} resourceHash
245
+ @return {String}
246
+ @private
247
+ */
248
+ _extractType(modelClass: Model, resourceHash: Object): string;
249
+ /**
250
+ Dasherizes and singularizes the model name in the payload to match
251
+ the format Ember Data uses internally for the model name.
252
+
253
+ For example the key `posts` would be converted to `post` and the
254
+ key `studentAssesments` would be converted to `student-assesment`.
255
+
256
+ @method modelNameFromPayloadKey
257
+ @public
258
+ @param {String} key
259
+ @return {String} the model's modelName
260
+ */
261
+ modelNameFromPayloadKey(key: string): string;
262
+ /**
263
+ Converts the model name to a pluralized version of the model name.
264
+
265
+ For example `post` would be converted to `posts` and
266
+ `student-assesment` would be converted to `student-assesments`.
267
+
268
+ @method payloadKeyFromModelName
269
+ @public
270
+ @param {String} modelName
271
+ @return {String}
272
+ */
273
+ payloadKeyFromModelName(modelName: string): string;
274
+ normalize(modelClass: any, resourceHash: any): {
275
+ data: {
276
+ id: any;
277
+ type: string;
278
+ attributes: {};
279
+ relationships: Object;
280
+ };
281
+ };
282
+ /**
283
+ `keyForAttribute` can be used to define rules for how to convert an
284
+ attribute name in your model to a key in your JSON.
285
+ By default `JSONAPISerializer` follows the format used on the examples of
286
+ http://jsonapi.org/format and uses dashes as the word separator in the JSON
287
+ attribute keys.
288
+
289
+ This behaviour can be easily customized by extending this method.
290
+
291
+ Example
292
+
293
+ ```app/serializers/application.js
294
+ import JSONAPISerializer from '@ember-data-mirror/serializer/json-api';
295
+ import { dasherize } from '<app-name>/utils/string-utils';
296
+
297
+ export default class ApplicationSerializer extends JSONAPISerializer {
298
+ keyForAttribute(attr, method) {
299
+ return dasherize(attr).toUpperCase();
300
+ }
301
+ }
302
+ ```
303
+
304
+ @method keyForAttribute
305
+ @public
306
+ @param {String} key
307
+ @param {String} method
308
+ @return {String} normalized key
309
+ */
310
+ keyForAttribute(key: string, method: string): string;
311
+ /**
312
+ `keyForRelationship` can be used to define a custom key when
313
+ serializing and deserializing relationship properties.
314
+ By default `JSONAPISerializer` follows the format used on the examples of
315
+ http://jsonapi.org/format and uses dashes as word separators in
316
+ relationship properties.
317
+
318
+ This behaviour can be easily customized by extending this method.
319
+
320
+ Example
321
+
322
+ ```app/serializers/post.js
323
+ import JSONAPISerializer from '@ember-data-mirror/serializer/json-api';
324
+ import { underscore } from '<app-name>/utils/string-utils';
325
+
326
+ export default class ApplicationSerializer extends JSONAPISerializer {
327
+ keyForRelationship(key, relationship, method) {
328
+ return underscore(key);
329
+ }
330
+ }
331
+ ```
332
+ @method keyForRelationship
333
+ @public
334
+ @param {String} key
335
+ @param {String} typeClass
336
+ @param {String} method
337
+ @return {String} normalized key
338
+ */
339
+ keyForRelationship(key: string, typeClass: string, method: string): string;
340
+ /**
341
+ Called when a record is saved in order to convert the
342
+ record into JSON.
343
+
344
+ For example, consider this model:
345
+
346
+ ```app/models/comment.js
347
+ import Model, { attr, belongsTo } from '@ember-data-mirror/model';
348
+
349
+ export default class CommentModel extends Model {
350
+ @attr title;
351
+ @attr body;
352
+
353
+ @belongsTo('user', { async: false, inverse: null })
354
+ author;
355
+ }
356
+ ```
357
+
358
+ The default serialization would create a JSON-API resource object like:
359
+
360
+ ```javascript
361
+ {
362
+ "data": {
363
+ "type": "comments",
364
+ "attributes": {
365
+ "title": "Rails is unagi",
366
+ "body": "Rails? Omakase? O_O",
367
+ },
368
+ "relationships": {
369
+ "author": {
370
+ "data": {
371
+ "id": "12",
372
+ "type": "users"
373
+ }
374
+ }
375
+ }
376
+ }
377
+ }
378
+ ```
379
+
380
+ By default, attributes are passed through as-is, unless
381
+ you specified an attribute type (`attr('date')`). If
382
+ you specify a transform, the JavaScript value will be
383
+ serialized when inserted into the attributes hash.
384
+
385
+ Belongs-to relationships are converted into JSON-API
386
+ resource identifier objects.
387
+
388
+ ## IDs
389
+
390
+ `serialize` takes an options hash with a single option:
391
+ `includeId`. If this option is `true`, `serialize` will,
392
+ by default include the ID in the JSON object it builds.
393
+
394
+ The JSONAPIAdapter passes in `includeId: true` when serializing a record
395
+ for `createRecord` or `updateRecord`.
396
+
397
+ ## Customization
398
+
399
+ Your server may expect data in a different format than the
400
+ built-in serialization format.
401
+
402
+ In that case, you can implement `serialize` yourself and
403
+ return data formatted to match your API's expectations, or override
404
+ the invoked adapter method and do the serialization in the adapter directly
405
+ by using the provided snapshot.
406
+
407
+ If your API's format differs greatly from the JSON:API spec, you should
408
+ consider authoring your own adapter and serializer instead of extending
409
+ this class.
410
+
411
+ ```app/serializers/post.js
412
+ import JSONAPISerializer from '@ember-data-mirror/serializer/json-api';
413
+
414
+ export default class PostSerializer extends JSONAPISerializer {
415
+ serialize(snapshot, options) {
416
+ let json = {
417
+ POST_TTL: snapshot.attr('title'),
418
+ POST_BDY: snapshot.attr('body'),
419
+ POST_CMS: snapshot.hasMany('comments', { ids: true })
420
+ };
421
+
422
+ if (options.includeId) {
423
+ json.POST_ID_ = snapshot.id;
424
+ }
425
+
426
+ return json;
427
+ }
428
+ }
429
+ ```
430
+
431
+ ## Customizing an App-Wide Serializer
432
+
433
+ If you want to define a serializer for your entire
434
+ application, you'll probably want to use `eachAttribute`
435
+ and `eachRelationship` on the record.
436
+
437
+ ```app/serializers/application.js
438
+ import JSONAPISerializer from '@ember-data-mirror/serializer/json-api';
439
+ import { underscore, singularize } from '<app-name>/utils/string-utils';
440
+
441
+ export default class ApplicationSerializer extends JSONAPISerializer {
442
+ serialize(snapshot, options) {
443
+ let json = {};
444
+
445
+ snapshot.eachAttribute((name) => {
446
+ json[serverAttributeName(name)] = snapshot.attr(name);
447
+ });
448
+
449
+ snapshot.eachRelationship((name, relationship) => {
450
+ if (relationship.kind === 'hasMany') {
451
+ json[serverHasManyName(name)] = snapshot.hasMany(name, { ids: true });
452
+ }
453
+ });
454
+
455
+ if (options.includeId) {
456
+ json.ID_ = snapshot.id;
457
+ }
458
+
459
+ return json;
460
+ }
461
+ }
462
+
463
+ function serverAttributeName(attribute) {
464
+ return underscore(attribute).toUpperCase();
465
+ }
466
+
467
+ function serverHasManyName(name) {
468
+ return serverAttributeName(singularize(name)) + '_IDS';
469
+ }
470
+ ```
471
+
472
+ This serializer will generate JSON that looks like this:
473
+
474
+ ```javascript
475
+ {
476
+ "TITLE": "Rails is omakase",
477
+ "BODY": "Yep. Omakase.",
478
+ "COMMENT_IDS": [ "1", "2", "3" ]
479
+ }
480
+ ```
481
+
482
+ ## Tweaking the Default Formatting
483
+
484
+ If you just want to do some small tweaks on the default JSON:API formatted response,
485
+ you can call `super.serialize` first and make the tweaks
486
+ on the returned object.
487
+
488
+ ```app/serializers/post.js
489
+ import JSONAPISerializer from '@ember-data-mirror/serializer/json-api';
490
+
491
+ export default class PostSerializer extends JSONAPISerializer {
492
+ serialize(snapshot, options) {
493
+ let json = super.serialize(...arguments);
494
+
495
+ json.data.attributes.subject = json.data.attributes.title;
496
+ delete json.data.attributes.title;
497
+
498
+ return json;
499
+ }
500
+ }
501
+ ```
502
+
503
+ @method serialize
504
+ @public
505
+ @param {Snapshot} snapshot
506
+ @param {Object} options
507
+ @return {Object} json
508
+ */
509
+ serialize(snapshot: Snapshot, options: Object, ...args: any[]): Object;
510
+ serializeAttribute(snapshot: any, json: any, key: any, attribute: any): void;
511
+ serializeBelongsTo(snapshot: any, json: any, relationship: any): void;
512
+ serializeHasMany(snapshot: any, json: any, relationship: any): void;
513
+ };
514
+ }
515
+ //# sourceMappingURL=json-api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json-api.d.ts","sourceRoot":"","sources":["../src/json-api.js"],"names":[],"mappings":";;AAYA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4HE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACE;;;;;MAKE;2CAHQ,MAAM,GACL,MAAM;IAkCjB;;;;;MAKE;2DAHQ,MAAM,GACL,MAAM;IASjB;;;;;MAKE;2CAHQ,MAAM,GACL,MAAM;IAqBjB;;;;;;;MAOE;uCADQ,MAAM;IAOhB;;;;;;;;;;MAUE;wEANQ,MAAM,MACN,eAAa,2CAGZ,MAAM;;;IA0CjB;;;;;;;;;MASE;0CAFS,MAAM,GACL,MAAM;IAmBlB;;;;;;;;;;MAUE;qCAHS,MAAM,gBACN,MAAM,GACL,MAAM;IA6BlB;;;;;;MAME;kDAHQ,MAAM;IAQhB;;;;;;;;;;;MAWE;;IAKF;;;;;;;;;;MAUE;;;;;;;;;;IA8BF;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2BE;;IAKF;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2BE;;IAKF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwKE;2CAFQ,MAAM,mBACL,MAAM;;;;EA+FhB"}