UNPKG

js-data-jsonapi-light

Version:

JsonApi adapter serializer/dezerializer light.

16 lines 1.09 kB
"use strict"; exports.ERROR = { "FORCE_STORE_OPTION": "JsonApiAdapter needs to be given a store option.", "PREVENT_SERIALIZE_DESERIALIZE_OPTIONS": "You can not use deserialize and serialize options with this adapter, you should instead provide an afterSerialize, a beforeSerialize, an afterDeserialize or a beforeDeserialize.", NO_BATCH_CREATE: 'JSONApi doesn\'t support creating in batch.', NO_BATCH_UPDATE: 'JSONApi doesn\'t support updating in batch.', NO_BATCH_DESTROY: 'JSONApi doesn\'t support destroying in batch.' }; exports.WARNING = { NO_RESSOURCE: function (type) { return "Can't find resource '" + type + "'"; }, RELATION_UNKNOWN: 'Unknown relation', WRONG_RELATION_ARRAY_EXPECTED: 'Wrong relation somewhere, array expected', WRONG_RELATION_OBJECT_EXPECTED: 'Wrong relation somewhere, object expected', NO_FOREIGN_KEY: 'No `foreignKey` on this relation. Be careful `localKey` doesn\'t exist anymore on JSData v3 and has been replaced with `foreignKey`. `belongsTo` relations must have a `foreignKey`.' }; //# sourceMappingURL=strings.js.map