@warp-drive/legacy 5.9.0-alpha.21 → 5.9.0-alpha.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/-private-DQ6Iap2t.js +193 -0
- package/dist/-private-DQ6Iap2t.js.map +1 -0
- package/dist/-private-DccRZQsm.js +904 -0
- package/dist/-private-DccRZQsm.js.map +1 -0
- package/dist/adapter/-private.d.ts +33 -0
- package/dist/adapter/-private.d.ts.map +1 -0
- package/dist/adapter/-private.js +3 -1
- package/dist/adapter/error.d.ts +2 -0
- package/dist/adapter/error.js +422 -453
- package/dist/adapter/error.js.map +1 -0
- package/{declarations → dist}/adapter/json-api.d.ts +30 -29
- package/dist/adapter/json-api.d.ts.map +1 -0
- package/dist/adapter/json-api.js +265 -143
- package/dist/adapter/json-api.js.map +1 -0
- package/dist/adapter/rest.d.ts +2 -0
- package/dist/adapter/rest.js +937 -1136
- package/dist/adapter/rest.js.map +1 -0
- package/dist/adapter-CARrK3-8.d.ts +784 -0
- package/dist/adapter-CARrK3-8.d.ts.map +1 -0
- package/dist/adapter-XgLAkYVs.js +1130 -0
- package/dist/adapter-XgLAkYVs.js.map +1 -0
- package/dist/adapter.d.ts +2 -0
- package/dist/adapter.js +1 -1248
- package/dist/compat/-private.d.ts +2 -0
- package/dist/compat/-private.js +3 -1
- package/dist/compat/builders.d.ts +169 -0
- package/dist/compat/builders.d.ts.map +1 -0
- package/dist/compat/builders.js +205 -245
- package/dist/compat/builders.js.map +1 -0
- package/dist/compat/extensions.d.ts +2 -0
- package/dist/compat/extensions.js +265 -304
- package/dist/compat/extensions.js.map +1 -0
- package/dist/compat/utils.d.ts +151 -0
- package/dist/compat/utils.d.ts.map +1 -0
- package/dist/compat/utils.js +187 -206
- package/dist/compat/utils.js.map +1 -0
- package/dist/compat-BbNNmTM-.d.ts +1386 -0
- package/dist/compat-BbNNmTM-.d.ts.map +1 -0
- package/dist/compat-g__Pfy2S.js +734 -0
- package/dist/compat-g__Pfy2S.js.map +1 -0
- package/dist/compat.d.ts +2 -0
- package/dist/compat.js +1 -1036
- package/dist/error-CzkyXr1Q.d.ts +435 -0
- package/dist/error-CzkyXr1Q.d.ts.map +1 -0
- package/dist/errors-LQhmDVdd.js +2134 -0
- package/dist/errors-LQhmDVdd.js.map +1 -0
- package/dist/extensions-DumNm4dA.d.ts +102 -0
- package/dist/extensions-DumNm4dA.d.ts.map +1 -0
- package/dist/index.d.ts +243 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +267 -339
- package/dist/index.js.map +1 -0
- package/dist/json-BXNPTlcH.js +1106 -0
- package/dist/json-BXNPTlcH.js.map +1 -0
- package/dist/model/-private.d.ts +3 -0
- package/dist/model/-private.js +3 -1
- package/dist/model/migration-support.d.ts +335 -0
- package/dist/model/migration-support.d.ts.map +1 -0
- package/dist/model/migration-support.js +504 -575
- package/dist/model/migration-support.js.map +1 -0
- package/dist/model-62hn5_PD.d.ts +3107 -0
- package/dist/model-62hn5_PD.d.ts.map +1 -0
- package/dist/model-BtIEHqYZ.js +683 -0
- package/dist/model-BtIEHqYZ.js.map +1 -0
- package/dist/model-fragments-Dpn9285r.js +334 -0
- package/dist/model-fragments-Dpn9285r.js.map +1 -0
- package/dist/model-fragments.d.ts +294 -0
- package/dist/model-fragments.d.ts.map +1 -0
- package/dist/model-fragments.js +2 -94
- package/dist/model.d.ts +404 -0
- package/dist/model.d.ts.map +1 -0
- package/dist/model.js +3 -670
- package/{declarations/adapter/rest.d.ts → dist/rest-0NhtexIq.d.ts} +183 -173
- package/dist/rest-0NhtexIq.d.ts.map +1 -0
- package/dist/runtime-BPCpkOf1-BgO3Lyjx.js +53 -0
- package/dist/runtime-BPCpkOf1-BgO3Lyjx.js.map +1 -0
- package/dist/schema-provider-DsKuB5Wb.js +1929 -0
- package/dist/schema-provider-DsKuB5Wb.js.map +1 -0
- package/{declarations → dist}/serializer/json-api.d.ts +3 -0
- package/dist/serializer/json-api.d.ts.map +1 -0
- package/dist/serializer/json-api.js +527 -519
- package/dist/serializer/json-api.js.map +1 -0
- package/{declarations → dist}/serializer/json.d.ts +3 -0
- package/dist/serializer/json.d.ts.map +1 -0
- package/dist/serializer/json.js +3 -6
- package/{declarations/serializer/-private/embedded-records-mixin.d.ts → dist/serializer/rest.d.ts} +56 -1
- package/dist/serializer/rest.d.ts.map +1 -0
- package/dist/serializer/rest.js +958 -1199
- package/dist/serializer/rest.js.map +1 -0
- package/dist/serializer/transform.d.ts +313 -0
- package/dist/serializer/transform.d.ts.map +1 -0
- package/dist/serializer/transform.js +283 -308
- package/dist/serializer/transform.js.map +1 -0
- package/dist/serializer.d.ts +151 -0
- package/dist/serializer.d.ts.map +1 -0
- package/dist/serializer.js +205 -205
- package/dist/serializer.js.map +1 -0
- package/dist/store-C4qYzXei.js +473 -0
- package/dist/store-C4qYzXei.js.map +1 -0
- package/dist/store.d.ts +13 -0
- package/dist/store.d.ts.map +1 -0
- package/dist/store.js +1 -641
- package/dist/unpkg/dev/-private-CrEyBE-B.js +189 -0
- package/dist/unpkg/dev/-private-CrEyBE-B.js.map +1 -0
- package/dist/unpkg/dev/-private-vOhxVExH.js +896 -0
- package/dist/unpkg/dev/-private-vOhxVExH.js.map +1 -0
- package/dist/unpkg/dev/adapter/-private.js +3 -1
- package/dist/unpkg/dev/adapter/error.js +421 -452
- package/dist/unpkg/dev/adapter/error.js.map +1 -0
- package/dist/unpkg/dev/adapter/json-api.js +239 -257
- package/dist/unpkg/dev/adapter/json-api.js.map +1 -0
- package/dist/unpkg/dev/adapter/rest.js +935 -1134
- package/dist/unpkg/dev/adapter/rest.js.map +1 -0
- package/dist/unpkg/dev/adapter-Cw0uSl8d.js +1129 -0
- package/dist/unpkg/dev/adapter-Cw0uSl8d.js.map +1 -0
- package/dist/unpkg/dev/adapter.js +1 -1247
- package/dist/unpkg/dev/compat/-private.js +3 -1
- package/dist/unpkg/dev/compat/builders.js +204 -247
- package/dist/unpkg/dev/compat/builders.js.map +1 -0
- package/dist/unpkg/dev/compat/extensions.js +264 -303
- package/dist/unpkg/dev/compat/extensions.js.map +1 -0
- package/dist/unpkg/dev/compat/utils.js +186 -205
- package/dist/unpkg/dev/compat/utils.js.map +1 -0
- package/dist/unpkg/dev/compat-CeyxXB7K.js +825 -0
- package/dist/unpkg/dev/compat-CeyxXB7K.js.map +1 -0
- package/dist/unpkg/dev/compat.js +1 -1178
- package/dist/unpkg/dev/errors-1javxsPo.js +2127 -0
- package/dist/unpkg/dev/errors-1javxsPo.js.map +1 -0
- package/dist/unpkg/dev/index.js +266 -344
- package/dist/unpkg/dev/index.js.map +1 -0
- package/dist/unpkg/dev/json-DDJji3V3.js +1104 -0
- package/dist/unpkg/dev/json-DDJji3V3.js.map +1 -0
- package/dist/unpkg/dev/model/-private.js +3 -1
- package/dist/unpkg/dev/model/migration-support.js +481 -549
- package/dist/unpkg/dev/model/migration-support.js.map +1 -0
- package/dist/unpkg/dev/model-C9Xb1R1x.js +655 -0
- package/dist/unpkg/dev/model-C9Xb1R1x.js.map +1 -0
- package/dist/unpkg/dev/model-fragments-Dpn9285r.js +334 -0
- package/dist/unpkg/dev/model-fragments-Dpn9285r.js.map +1 -0
- package/dist/unpkg/dev/model-fragments.js +2 -94
- package/dist/unpkg/dev/model.js +3 -681
- package/dist/unpkg/dev/runtime-BPCpkOf1-BgO3Lyjx.js +53 -0
- package/dist/unpkg/dev/runtime-BPCpkOf1-BgO3Lyjx.js.map +1 -0
- package/dist/unpkg/dev/schema-provider-Dy6c1J5f.js +1834 -0
- package/dist/unpkg/dev/schema-provider-Dy6c1J5f.js.map +1 -0
- package/dist/unpkg/dev/serializer/json-api.js +514 -634
- package/dist/unpkg/dev/serializer/json-api.js.map +1 -0
- package/dist/unpkg/dev/serializer/json.js +3 -4
- package/dist/unpkg/dev/serializer/rest.js +954 -1196
- package/dist/unpkg/dev/serializer/rest.js.map +1 -0
- package/dist/unpkg/dev/serializer/transform.js +283 -308
- package/dist/unpkg/dev/serializer/transform.js.map +1 -0
- package/dist/unpkg/dev/serializer.js +205 -205
- package/dist/unpkg/dev/serializer.js.map +1 -0
- package/dist/unpkg/dev/store-D_V8-HQl.js +472 -0
- package/dist/unpkg/dev/store-D_V8-HQl.js.map +1 -0
- package/dist/unpkg/dev/store.js +1 -649
- package/dist/unpkg/dev/util-dSKEgQDp.js +12 -0
- package/dist/unpkg/dev/util-dSKEgQDp.js.map +1 -0
- package/dist/unpkg/dev/utils-DYC9utVJ.js +11 -0
- package/dist/unpkg/dev/utils-DYC9utVJ.js.map +1 -0
- package/dist/unpkg/dev-deprecated/-private-CrEyBE-B.js +189 -0
- package/dist/unpkg/dev-deprecated/-private-CrEyBE-B.js.map +1 -0
- package/dist/unpkg/dev-deprecated/-private-vOhxVExH.js +896 -0
- package/dist/unpkg/dev-deprecated/-private-vOhxVExH.js.map +1 -0
- package/dist/unpkg/dev-deprecated/adapter/-private.js +3 -1
- package/dist/unpkg/dev-deprecated/adapter/error.js +421 -452
- package/dist/unpkg/dev-deprecated/adapter/error.js.map +1 -0
- package/dist/unpkg/dev-deprecated/adapter/json-api.js +239 -257
- package/dist/unpkg/dev-deprecated/adapter/json-api.js.map +1 -0
- package/dist/unpkg/dev-deprecated/adapter/rest.js +935 -1134
- package/dist/unpkg/dev-deprecated/adapter/rest.js.map +1 -0
- package/dist/unpkg/dev-deprecated/adapter-Cw0uSl8d.js +1129 -0
- package/dist/unpkg/dev-deprecated/adapter-Cw0uSl8d.js.map +1 -0
- package/dist/unpkg/dev-deprecated/adapter.js +1 -1247
- package/dist/unpkg/dev-deprecated/compat/-private.js +3 -1
- package/dist/unpkg/dev-deprecated/compat/builders.js +204 -247
- package/dist/unpkg/dev-deprecated/compat/builders.js.map +1 -0
- package/dist/unpkg/dev-deprecated/compat/extensions.js +264 -303
- package/dist/unpkg/dev-deprecated/compat/extensions.js.map +1 -0
- package/dist/unpkg/dev-deprecated/compat/utils.js +186 -205
- package/dist/unpkg/dev-deprecated/compat/utils.js.map +1 -0
- package/dist/unpkg/dev-deprecated/compat-DmAgB2NS.js +825 -0
- package/dist/unpkg/dev-deprecated/compat-DmAgB2NS.js.map +1 -0
- package/dist/unpkg/dev-deprecated/compat.js +1 -1178
- package/dist/unpkg/dev-deprecated/errors-C4_aOhY5.js +2128 -0
- package/dist/unpkg/dev-deprecated/errors-C4_aOhY5.js.map +1 -0
- package/dist/unpkg/dev-deprecated/index.js +266 -343
- package/dist/unpkg/dev-deprecated/index.js.map +1 -0
- package/dist/unpkg/dev-deprecated/json-DDJji3V3.js +1104 -0
- package/dist/unpkg/dev-deprecated/json-DDJji3V3.js.map +1 -0
- package/dist/unpkg/dev-deprecated/model/-private.js +3 -1
- package/dist/unpkg/dev-deprecated/model/migration-support.js +492 -566
- package/dist/unpkg/dev-deprecated/model/migration-support.js.map +1 -0
- package/dist/unpkg/dev-deprecated/model-CvSMYkgs.js +660 -0
- package/dist/unpkg/dev-deprecated/model-CvSMYkgs.js.map +1 -0
- package/dist/unpkg/dev-deprecated/model-fragments-Dpn9285r.js +334 -0
- package/dist/unpkg/dev-deprecated/model-fragments-Dpn9285r.js.map +1 -0
- package/dist/unpkg/dev-deprecated/model-fragments.js +2 -94
- package/dist/unpkg/dev-deprecated/model.js +3 -685
- package/dist/unpkg/dev-deprecated/runtime-BPCpkOf1-BgO3Lyjx.js +53 -0
- package/dist/unpkg/dev-deprecated/runtime-BPCpkOf1-BgO3Lyjx.js.map +1 -0
- package/dist/unpkg/dev-deprecated/schema-provider-Cqttza94.js +1835 -0
- package/dist/unpkg/dev-deprecated/schema-provider-Cqttza94.js.map +1 -0
- package/dist/unpkg/dev-deprecated/serializer/json-api.js +514 -634
- package/dist/unpkg/dev-deprecated/serializer/json-api.js.map +1 -0
- package/dist/unpkg/dev-deprecated/serializer/json.js +3 -4
- package/dist/unpkg/dev-deprecated/serializer/rest.js +954 -1196
- package/dist/unpkg/dev-deprecated/serializer/rest.js.map +1 -0
- package/dist/unpkg/dev-deprecated/serializer/transform.js +283 -308
- package/dist/unpkg/dev-deprecated/serializer/transform.js.map +1 -0
- package/dist/unpkg/dev-deprecated/serializer.js +205 -205
- package/dist/unpkg/dev-deprecated/serializer.js.map +1 -0
- package/dist/unpkg/dev-deprecated/store-BX7GvXC_.js +472 -0
- package/dist/unpkg/dev-deprecated/store-BX7GvXC_.js.map +1 -0
- package/dist/unpkg/dev-deprecated/store.js +1 -649
- package/dist/unpkg/dev-deprecated/util-9mgEBJ3W.js +18 -0
- package/dist/unpkg/dev-deprecated/util-9mgEBJ3W.js.map +1 -0
- package/dist/unpkg/dev-deprecated/utils-Cl86-e7F.js +17 -0
- package/dist/unpkg/dev-deprecated/utils-Cl86-e7F.js.map +1 -0
- package/dist/unpkg/prod/-private-B4bxoTuK.js +160 -0
- package/dist/unpkg/prod/-private-B4bxoTuK.js.map +1 -0
- package/dist/unpkg/prod/-private-SfXkkHKd.js +745 -0
- package/dist/unpkg/prod/-private-SfXkkHKd.js.map +1 -0
- package/dist/unpkg/prod/adapter/-private.js +3 -1
- package/dist/unpkg/prod/adapter/error.js +418 -447
- package/dist/unpkg/prod/adapter/error.js.map +1 -0
- package/dist/unpkg/prod/adapter/json-api.js +236 -252
- package/dist/unpkg/prod/adapter/json-api.js.map +1 -0
- package/dist/unpkg/prod/adapter/rest.js +911 -1097
- package/dist/unpkg/prod/adapter/rest.js.map +1 -0
- package/dist/unpkg/prod/adapter-Wnk7jizX.js +1111 -0
- package/dist/unpkg/prod/adapter-Wnk7jizX.js.map +1 -0
- package/dist/unpkg/prod/adapter.js +1 -1214
- package/dist/unpkg/prod/compat/-private.js +3 -1
- package/dist/unpkg/prod/compat/builders.js +165 -182
- package/dist/unpkg/prod/compat/builders.js.map +1 -0
- package/dist/unpkg/prod/compat/extensions.js +252 -283
- package/dist/unpkg/prod/compat/extensions.js.map +1 -0
- package/dist/unpkg/prod/compat/utils.js +183 -200
- package/dist/unpkg/prod/compat/utils.js.map +1 -0
- package/dist/unpkg/prod/compat-CJ87MzDn.js +547 -0
- package/dist/unpkg/prod/compat-CJ87MzDn.js.map +1 -0
- package/dist/unpkg/prod/compat.js +1 -742
- package/dist/unpkg/prod/errors-Co7YWHoA.js +1977 -0
- package/dist/unpkg/prod/errors-Co7YWHoA.js.map +1 -0
- package/dist/unpkg/prod/index.js +245 -308
- package/dist/unpkg/prod/index.js.map +1 -0
- package/dist/unpkg/prod/json-BD1kRTfB.js +1080 -0
- package/dist/unpkg/prod/json-BD1kRTfB.js.map +1 -0
- package/dist/unpkg/prod/model/-private.js +3 -1
- package/dist/unpkg/prod/model/migration-support.js +477 -542
- package/dist/unpkg/prod/model/migration-support.js.map +1 -0
- package/dist/unpkg/prod/model-BzoOmtka.js +603 -0
- package/dist/unpkg/prod/model-BzoOmtka.js.map +1 -0
- package/dist/unpkg/prod/model-fragments-Dpn9285r.js +334 -0
- package/dist/unpkg/prod/model-fragments-Dpn9285r.js.map +1 -0
- package/dist/unpkg/prod/model-fragments.js +2 -94
- package/dist/unpkg/prod/model.js +3 -596
- package/dist/unpkg/prod/runtime-BPCpkOf1-BgO3Lyjx.js +53 -0
- package/dist/unpkg/prod/runtime-BPCpkOf1-BgO3Lyjx.js.map +1 -0
- package/dist/unpkg/prod/schema-provider-CKZcqWyP.js +1622 -0
- package/dist/unpkg/prod/schema-provider-CKZcqWyP.js.map +1 -0
- package/dist/unpkg/prod/serializer/json-api.js +497 -592
- package/dist/unpkg/prod/serializer/json-api.js.map +1 -0
- package/dist/unpkg/prod/serializer/json.js +3 -4
- package/dist/unpkg/prod/serializer/rest.js +938 -1166
- package/dist/unpkg/prod/serializer/rest.js.map +1 -0
- package/dist/unpkg/prod/serializer/transform.js +283 -308
- package/dist/unpkg/prod/serializer/transform.js.map +1 -0
- package/dist/unpkg/prod/serializer.js +205 -205
- package/dist/unpkg/prod/serializer.js.map +1 -0
- package/dist/unpkg/prod/store-RGGc1ilN.js +392 -0
- package/dist/unpkg/prod/store-RGGc1ilN.js.map +1 -0
- package/dist/unpkg/prod/store.js +1 -517
- package/dist/unpkg/prod/util-dSKEgQDp.js +12 -0
- package/dist/unpkg/prod/util-dSKEgQDp.js.map +1 -0
- package/dist/unpkg/prod/utils-DYC9utVJ.js +11 -0
- package/dist/unpkg/prod/utils-DYC9utVJ.js.map +1 -0
- package/dist/unpkg/prod-deprecated/-private-B4bxoTuK.js +160 -0
- package/dist/unpkg/prod-deprecated/-private-B4bxoTuK.js.map +1 -0
- package/dist/unpkg/prod-deprecated/-private-SfXkkHKd.js +745 -0
- package/dist/unpkg/prod-deprecated/-private-SfXkkHKd.js.map +1 -0
- package/dist/unpkg/prod-deprecated/adapter/-private.js +3 -1
- package/dist/unpkg/prod-deprecated/adapter/error.js +418 -447
- package/dist/unpkg/prod-deprecated/adapter/error.js.map +1 -0
- package/dist/unpkg/prod-deprecated/adapter/json-api.js +236 -252
- package/dist/unpkg/prod-deprecated/adapter/json-api.js.map +1 -0
- package/dist/unpkg/prod-deprecated/adapter/rest.js +911 -1097
- package/dist/unpkg/prod-deprecated/adapter/rest.js.map +1 -0
- package/{declarations/adapter.d.ts → dist/unpkg/prod-deprecated/adapter-Wnk7jizX.js} +445 -110
- package/dist/unpkg/prod-deprecated/adapter-Wnk7jizX.js.map +1 -0
- package/dist/unpkg/prod-deprecated/adapter.js +1 -1214
- package/dist/unpkg/prod-deprecated/compat/-private.js +3 -1
- package/dist/unpkg/prod-deprecated/compat/builders.js +165 -182
- package/dist/unpkg/prod-deprecated/compat/builders.js.map +1 -0
- package/dist/unpkg/prod-deprecated/compat/extensions.js +252 -283
- package/dist/unpkg/prod-deprecated/compat/extensions.js.map +1 -0
- package/dist/unpkg/prod-deprecated/compat/utils.js +183 -200
- package/dist/unpkg/prod-deprecated/compat/utils.js.map +1 -0
- package/dist/unpkg/prod-deprecated/compat-CJ87MzDn.js +547 -0
- package/dist/unpkg/prod-deprecated/compat-CJ87MzDn.js.map +1 -0
- package/dist/unpkg/prod-deprecated/compat.js +1 -742
- package/dist/unpkg/prod-deprecated/errors-C-opde61.js +1978 -0
- package/dist/unpkg/prod-deprecated/errors-C-opde61.js.map +1 -0
- package/dist/unpkg/prod-deprecated/index.js +245 -307
- package/dist/unpkg/prod-deprecated/index.js.map +1 -0
- package/dist/unpkg/prod-deprecated/json-BD1kRTfB.js +1080 -0
- package/dist/unpkg/prod-deprecated/json-BD1kRTfB.js.map +1 -0
- package/dist/unpkg/prod-deprecated/model/-private.js +3 -1
- package/dist/unpkg/prod-deprecated/model/migration-support.js +488 -559
- package/dist/unpkg/prod-deprecated/model/migration-support.js.map +1 -0
- package/dist/unpkg/prod-deprecated/model-C0bTXzGn.js +604 -0
- package/dist/unpkg/prod-deprecated/model-C0bTXzGn.js.map +1 -0
- package/dist/unpkg/prod-deprecated/model-fragments-Dpn9285r.js +334 -0
- package/dist/unpkg/prod-deprecated/model-fragments-Dpn9285r.js.map +1 -0
- package/dist/unpkg/prod-deprecated/model-fragments.js +2 -94
- package/dist/unpkg/prod-deprecated/model.js +3 -599
- package/dist/unpkg/prod-deprecated/runtime-BPCpkOf1-BgO3Lyjx.js +53 -0
- package/dist/unpkg/prod-deprecated/runtime-BPCpkOf1-BgO3Lyjx.js.map +1 -0
- package/dist/unpkg/prod-deprecated/schema-provider-lH3qP5tw.js +1635 -0
- package/dist/unpkg/prod-deprecated/schema-provider-lH3qP5tw.js.map +1 -0
- package/dist/unpkg/prod-deprecated/serializer/json-api.js +497 -592
- package/dist/unpkg/prod-deprecated/serializer/json-api.js.map +1 -0
- package/dist/unpkg/prod-deprecated/serializer/json.js +3 -4
- package/dist/unpkg/prod-deprecated/serializer/rest.js +938 -1166
- package/dist/unpkg/prod-deprecated/serializer/rest.js.map +1 -0
- package/dist/unpkg/prod-deprecated/serializer/transform.js +283 -308
- package/dist/unpkg/prod-deprecated/serializer/transform.js.map +1 -0
- package/dist/unpkg/prod-deprecated/serializer.js +205 -205
- package/dist/unpkg/prod-deprecated/serializer.js.map +1 -0
- package/dist/unpkg/prod-deprecated/store-0L2CkYzh.js +392 -0
- package/dist/unpkg/prod-deprecated/store-0L2CkYzh.js.map +1 -0
- package/dist/unpkg/prod-deprecated/store.js +1 -517
- package/dist/unpkg/prod-deprecated/util-CQQdHX3n.js +14 -0
- package/dist/unpkg/prod-deprecated/util-CQQdHX3n.js.map +1 -0
- package/dist/unpkg/prod-deprecated/utils-BMI_JwFP.js +13 -0
- package/dist/unpkg/prod-deprecated/utils-BMI_JwFP.js.map +1 -0
- package/dist/util-Bnx8nm-D.js +29 -0
- package/dist/util-Bnx8nm-D.js.map +1 -0
- package/dist/utils-ZAytYep8.js +28 -0
- package/dist/utils-ZAytYep8.js.map +1 -0
- package/package.json +13 -13
- package/declarations/adapter/-private/build-url-mixin.d.ts +0 -189
- package/declarations/adapter/-private/fastboot-interface.d.ts +0 -8
- package/declarations/adapter/-private/utils/continue-on-reject.d.ts +0 -1
- package/declarations/adapter/-private/utils/determine-body-promise.d.ts +0 -4
- package/declarations/adapter/-private/utils/fetch.d.ts +0 -8
- package/declarations/adapter/-private/utils/parse-response-headers.d.ts +0 -1
- package/declarations/adapter/-private/utils/serialize-into-hash.d.ts +0 -6
- package/declarations/adapter/-private/utils/serialize-query-params.d.ts +0 -5
- package/declarations/adapter/-private.d.ts +0 -5
- package/declarations/adapter/error.d.ts +0 -431
- package/declarations/compat/-private.d.ts +0 -13
- package/declarations/compat/builders/find-all.d.ts +0 -34
- package/declarations/compat/builders/find-record.d.ts +0 -56
- package/declarations/compat/builders/query.d.ts +0 -66
- package/declarations/compat/builders/save-record.d.ts +0 -34
- package/declarations/compat/builders/utils.d.ts +0 -3
- package/declarations/compat/builders.d.ts +0 -14
- package/declarations/compat/extensions.d.ts +0 -99
- package/declarations/compat/legacy-network-handler/fetch-manager.d.ts +0 -55
- package/declarations/compat/legacy-network-handler/identifier-has-id.d.ts +0 -2
- package/declarations/compat/legacy-network-handler/legacy-data-fetch.d.ts +0 -11
- package/declarations/compat/legacy-network-handler/legacy-data-utils.d.ts +0 -5
- package/declarations/compat/legacy-network-handler/legacy-network-handler.d.ts +0 -9
- package/declarations/compat/legacy-network-handler/minimum-adapter-interface.d.ts +0 -528
- package/declarations/compat/legacy-network-handler/minimum-serializer-interface.d.ts +0 -220
- package/declarations/compat/legacy-network-handler/serializer-response.d.ts +0 -6
- package/declarations/compat/legacy-network-handler/snapshot-record-array.d.ts +0 -110
- package/declarations/compat/legacy-network-handler/snapshot.d.ts +0 -255
- package/declarations/compat/utils.d.ts +0 -148
- package/declarations/compat.d.ts +0 -189
- package/declarations/index.d.ts +0 -244
- package/declarations/model/-private/attr.d.ts +0 -191
- package/declarations/model/-private/belongs-to.d.ts +0 -195
- package/declarations/model/-private/debug/assert-polymorphic-type.d.ts +0 -5
- package/declarations/model/-private/errors.d.ts +0 -289
- package/declarations/model/-private/has-many.d.ts +0 -162
- package/declarations/model/-private/hooks.d.ts +0 -36
- package/declarations/model/-private/legacy-relationships-support.d.ts +0 -47
- package/declarations/model/-private/model-for-mixin.d.ts +0 -3
- package/declarations/model/-private/model-methods.d.ts +0 -39
- package/declarations/model/-private/model.d.ts +0 -1279
- package/declarations/model/-private/notify-changes.d.ts +0 -4
- package/declarations/model/-private/promise-belongs-to.d.ts +0 -40
- package/declarations/model/-private/promise-many-array.d.ts +0 -130
- package/declarations/model/-private/record-state.d.ts +0 -58
- package/declarations/model/-private/references/belongs-to.d.ts +0 -488
- package/declarations/model/-private/references/has-many.d.ts +0 -498
- package/declarations/model/-private/schema-provider.d.ts +0 -66
- package/declarations/model/-private/type-utils.d.ts +0 -57
- package/declarations/model/-private/util.d.ts +0 -5
- package/declarations/model/-private.d.ts +0 -8
- package/declarations/model/migration-support.d.ts +0 -306
- package/declarations/model-fragments/extensions/fragment-array.d.ts +0 -54
- package/declarations/model-fragments/extensions/fragment.d.ts +0 -50
- package/declarations/model-fragments/hooks/model-for.d.ts +0 -27
- package/declarations/model-fragments/index.d.ts +0 -13
- package/declarations/model-fragments/instance-initializers/fragment-extensions.d.ts +0 -15
- package/declarations/model-fragments/utilities/with-array-defaults.d.ts +0 -56
- package/declarations/model-fragments/utilities/with-fragment-array-defaults.d.ts +0 -38
- package/declarations/model-fragments/utilities/with-fragment-defaults.d.ts +0 -34
- package/declarations/model-fragments/utilities/with-legacy.d.ts +0 -11
- package/declarations/model-fragments.d.ts +0 -9
- package/declarations/model.d.ts +0 -49
- package/declarations/serializer/-private/transforms/boolean.d.ts +0 -60
- package/declarations/serializer/-private/transforms/date.d.ts +0 -42
- package/declarations/serializer/-private/transforms/number.d.ts +0 -42
- package/declarations/serializer/-private/transforms/string.d.ts +0 -42
- package/declarations/serializer/-private/transforms/transform.d.ts +0 -118
- package/declarations/serializer/-private/utils.d.ts +0 -27
- package/declarations/serializer/rest.d.ts +0 -51
- package/declarations/serializer/transform.d.ts +0 -5
- package/declarations/serializer.d.ts +0 -252
- package/declarations/store/-private.d.ts +0 -223
- package/declarations/store.d.ts +0 -10
- package/dist/-private-BG3bMiKp.js +0 -1211
- package/dist/errors-DZKA206g.js +0 -2589
- package/dist/hooks-BvOqJBei.js +0 -105
- package/dist/json-DU8m1pGf.js +0 -1336
- package/dist/model-for-CXkJw59V.js +0 -297
- package/dist/runtime-BPCpkOf1-BKOwiRJp.js +0 -65
- package/dist/schema-provider-DtPOp0d7.js +0 -2382
- package/dist/serialize-into-hash-DPZYoF-i.js +0 -261
- package/dist/unpkg/dev/-private-DtjBbEgy.js +0 -1206
- package/dist/unpkg/dev/errors-DngRU-If.js +0 -2585
- package/dist/unpkg/dev/hooks-UuiLxWxS.js +0 -104
- package/dist/unpkg/dev/json-K2Y9z6MN.js +0 -1333
- package/dist/unpkg/dev/model-for-CXkJw59V.js +0 -297
- package/dist/unpkg/dev/runtime-BPCpkOf1-BKOwiRJp.js +0 -65
- package/dist/unpkg/dev/schema-provider-0D7f-QOn.js +0 -2272
- package/dist/unpkg/dev/serialize-into-hash-B2xDbuo5.js +0 -259
- package/dist/unpkg/dev/util-DvanW33H.js +0 -20
- package/dist/unpkg/dev/utils-BhvS1iTS.js +0 -8
- package/dist/unpkg/dev-deprecated/-private-DtjBbEgy.js +0 -1206
- package/dist/unpkg/dev-deprecated/errors-Bzidntpi.js +0 -2588
- package/dist/unpkg/dev-deprecated/hooks-DVXhMW14.js +0 -104
- package/dist/unpkg/dev-deprecated/json-K2Y9z6MN.js +0 -1333
- package/dist/unpkg/dev-deprecated/model-for-CXkJw59V.js +0 -297
- package/dist/unpkg/dev-deprecated/runtime-BPCpkOf1-BKOwiRJp.js +0 -65
- package/dist/unpkg/dev-deprecated/schema-provider-ZwO5_fZw.js +0 -2292
- package/dist/unpkg/dev-deprecated/serialize-into-hash-B2xDbuo5.js +0 -259
- package/dist/unpkg/dev-deprecated/util-CWr5WQOT.js +0 -24
- package/dist/unpkg/dev-deprecated/utils-C9PJehtL.js +0 -12
- package/dist/unpkg/prod/-private-BdyZaGEh.js +0 -971
- package/dist/unpkg/prod/errors-B-PWeYlW.js +0 -2337
- package/dist/unpkg/prod/hooks-Bx-zBziU.js +0 -72
- package/dist/unpkg/prod/json-Qewu-UN9.js +0 -1300
- package/dist/unpkg/prod/model-for-CXkJw59V.js +0 -297
- package/dist/unpkg/prod/runtime-BPCpkOf1-BKOwiRJp.js +0 -65
- package/dist/unpkg/prod/schema-provider-BgRqk8i9.js +0 -1951
- package/dist/unpkg/prod/serialize-into-hash-DGlzQteF.js +0 -215
- package/dist/unpkg/prod/util-DvanW33H.js +0 -20
- package/dist/unpkg/prod/utils-BhvS1iTS.js +0 -8
- package/dist/unpkg/prod-deprecated/-private-BdyZaGEh.js +0 -971
- package/dist/unpkg/prod-deprecated/errors-Dl2J9d1D.js +0 -2340
- package/dist/unpkg/prod-deprecated/hooks-Cm60wWTf.js +0 -72
- package/dist/unpkg/prod-deprecated/json-Qewu-UN9.js +0 -1300
- package/dist/unpkg/prod-deprecated/model-for-CXkJw59V.js +0 -297
- package/dist/unpkg/prod-deprecated/runtime-BPCpkOf1-BKOwiRJp.js +0 -65
- package/dist/unpkg/prod-deprecated/schema-provider-Dh6tRqVI.js +0 -1980
- package/dist/unpkg/prod-deprecated/serialize-into-hash-DGlzQteF.js +0 -215
- package/dist/unpkg/prod-deprecated/util-B6cn-i93.js +0 -23
- package/dist/unpkg/prod-deprecated/utils-BUWwQwCh.js +0 -11
- package/dist/util-Dul6TZts.js +0 -35
- package/dist/utils-Cqw9eRj5.js +0 -23
|
@@ -1,431 +0,0 @@
|
|
|
1
|
-
import type { ApiError } from "@warp-drive/core/types/spec/error";
|
|
2
|
-
/**
|
|
3
|
-
* The shape of the errors thrown/returned by {@link AdapterError} and its subclasses.
|
|
4
|
-
*/
|
|
5
|
-
export interface AdapterRequestError<T extends string = string> extends Error {
|
|
6
|
-
/**
|
|
7
|
-
* A property signifying that an Error uses the {@link AdapterRequestError} interface.
|
|
8
|
-
*/
|
|
9
|
-
isAdapterError: true;
|
|
10
|
-
/**
|
|
11
|
-
* A short code identifying the kind of error, e.g. `'NotFoundError'`.
|
|
12
|
-
*/
|
|
13
|
-
code: T;
|
|
14
|
-
/**
|
|
15
|
-
* The {json:api} formatted errors associated with the request.
|
|
16
|
-
*/
|
|
17
|
-
errors: ApiError[];
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* The static interface shared by {@link AdapterError} and its subclasses,
|
|
21
|
-
* allowing further subclassing via {@link AdapterRequestErrorConstructor.extend | extend}.
|
|
22
|
-
*/
|
|
23
|
-
export interface AdapterRequestErrorConstructor<Instance extends AdapterRequestError = AdapterRequestError> {
|
|
24
|
-
new (errors?: unknown[], message?: string): Instance;
|
|
25
|
-
/**
|
|
26
|
-
* Creates a new {@link AdapterRequestErrorConstructor} that inherits from this one.
|
|
27
|
-
*/
|
|
28
|
-
extend(options: {
|
|
29
|
-
message: string;
|
|
30
|
-
}): AdapterRequestErrorConstructor;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* The {@link AdapterRequestError} shape thrown by the {@link AdapterError} constructor.
|
|
34
|
-
*/
|
|
35
|
-
export type AdapterError = AdapterRequestError<"AdapterError">;
|
|
36
|
-
/**
|
|
37
|
-
* :::danger
|
|
38
|
-
* ⚠️ **This is LEGACY documentation** for a feature that is no longer encouraged to be used.
|
|
39
|
-
* If starting a new app or thinking of implementing a new adapter, consider writing a
|
|
40
|
-
* {@link Handler} instead to be used with the {@link RequestManager}
|
|
41
|
-
* :::
|
|
42
|
-
*
|
|
43
|
-
* An `AdapterError` is used by an adapter to signal that an error occurred
|
|
44
|
-
* during a request to an external API. It indicates a generic error, and
|
|
45
|
-
* subclasses are used to indicate specific error states.
|
|
46
|
-
*
|
|
47
|
-
* To create a custom error to signal a specific error state in communicating
|
|
48
|
-
* with an external API, extend the `AdapterError`. For example, if the
|
|
49
|
-
* external API exclusively used HTTP `503 Service Unavailable` to indicate
|
|
50
|
-
* it was closed for maintenance:
|
|
51
|
-
*
|
|
52
|
-
* ```js [app/adapters/maintenance-error.js]
|
|
53
|
-
* import AdapterError from '@warp-drive/legacy/adapter/error';
|
|
54
|
-
*
|
|
55
|
-
* export default AdapterError.extend({ message: "Down for maintenance." });
|
|
56
|
-
* ```
|
|
57
|
-
*
|
|
58
|
-
* This error would then be returned by an adapter's `handleResponse` method:
|
|
59
|
-
*
|
|
60
|
-
* ```js [app/adapters/application.js]
|
|
61
|
-
* import JSONAPIAdapter from '@warp-drive/legacy/adapter/json-api';
|
|
62
|
-
* import MaintenanceError from './maintenance-error';
|
|
63
|
-
*
|
|
64
|
-
* export default class ApplicationAdapter extends JSONAPIAdapter {
|
|
65
|
-
* handleResponse(status) {
|
|
66
|
-
* if (503 === status) {
|
|
67
|
-
* return new MaintenanceError();
|
|
68
|
-
* }
|
|
69
|
-
*
|
|
70
|
-
* return super.handleResponse(...arguments);
|
|
71
|
-
* }
|
|
72
|
-
* }
|
|
73
|
-
* ```
|
|
74
|
-
*
|
|
75
|
-
* And can then be detected in an application and used to send the user to an
|
|
76
|
-
* `under-maintenance` route:
|
|
77
|
-
*
|
|
78
|
-
* ```js [app/routes/application.js]
|
|
79
|
-
* import MaintenanceError from '../adapters/maintenance-error';
|
|
80
|
-
*
|
|
81
|
-
* export default class ApplicationRoute extends Route {
|
|
82
|
-
* actions: {
|
|
83
|
-
* error(error, transition) {
|
|
84
|
-
* if (error instanceof MaintenanceError) {
|
|
85
|
-
* this.transitionTo('under-maintenance');
|
|
86
|
-
* return;
|
|
87
|
-
* }
|
|
88
|
-
*
|
|
89
|
-
* // ...other error handling logic
|
|
90
|
-
* }
|
|
91
|
-
* }
|
|
92
|
-
* }
|
|
93
|
-
* ```
|
|
94
|
-
*
|
|
95
|
-
* ### Signaling an Error Without Extending `AdapterError`
|
|
96
|
-
*
|
|
97
|
-
* Extending `AdapterError` (or one of its subclasses) is a convenience, not
|
|
98
|
-
* a requirement. WarpDrive only inspects an error for the {@link AdapterRequestError}
|
|
99
|
-
* shape: an `isAdapterError` flag, a `code`, and an {json:api}-formatted
|
|
100
|
-
* `errors` array. Any object satisfying that shape — including a plain
|
|
101
|
-
* `Error` with those properties attached — will be handled identically to
|
|
102
|
-
* an instance created via `new AdapterError()` or one of its subclasses.
|
|
103
|
-
*
|
|
104
|
-
* This is useful when you'd rather not introduce a class hierarchy, or
|
|
105
|
-
* when the error needs to be constructed from data you don't control
|
|
106
|
-
* (for example, re-throwing an error surfaced by a third-party library):
|
|
107
|
-
*
|
|
108
|
-
* ```js [app/adapters/application.js]
|
|
109
|
-
* import JSONAPIAdapter from '@warp-drive/legacy/adapter/json-api';
|
|
110
|
-
*
|
|
111
|
-
* export default class ApplicationAdapter extends JSONAPIAdapter {
|
|
112
|
-
* handleResponse(status, headers, payload) {
|
|
113
|
-
* if (status === 503) {
|
|
114
|
-
* const error = new Error('Down for maintenance.');
|
|
115
|
-
* error.isAdapterError = true;
|
|
116
|
-
* error.code = 'MaintenanceError';
|
|
117
|
-
* error.errors = [{ title: 'Service Unavailable', detail: 'Down for maintenance.' }];
|
|
118
|
-
* return error;
|
|
119
|
-
* }
|
|
120
|
-
*
|
|
121
|
-
* return super.handleResponse(status, headers, payload);
|
|
122
|
-
* }
|
|
123
|
-
* }
|
|
124
|
-
* ```
|
|
125
|
-
*
|
|
126
|
-
* Because `code` is just a string you control, `error instanceof AdapterError`
|
|
127
|
-
* checks won't match a plain object built this way — consumers should
|
|
128
|
-
* instead branch on `error.isAdapterError && error.code === 'MaintenanceError'`,
|
|
129
|
-
* or on whichever of the {@link AdapterError} subclasses' `code` values
|
|
130
|
-
* (e.g. `'InvalidError'`, `'NotFoundError'`) the error's `code` matches.
|
|
131
|
-
*
|
|
132
|
-
* @public
|
|
133
|
-
*/
|
|
134
|
-
export declare const AdapterError: AdapterRequestErrorConstructor<AdapterError>;
|
|
135
|
-
/**
|
|
136
|
-
* The {@link AdapterRequestError} shape thrown by the {@link InvalidError} constructor.
|
|
137
|
-
*/
|
|
138
|
-
export type InvalidError = AdapterRequestError<"InvalidError">;
|
|
139
|
-
/**
|
|
140
|
-
* An `InvalidError` is used by an adapter to signal that the external API
|
|
141
|
-
* was unable to process a request because the content was not semantically
|
|
142
|
-
* correct or meaningful per the API. Usually, this means a record failed
|
|
143
|
-
* some form of server-side validation. When a promise from an adapter is
|
|
144
|
-
* rejected with an `InvalidError` the record will transition to the
|
|
145
|
-
* `invalid` state and the errors will be set to the `errors` property on
|
|
146
|
-
* the record.
|
|
147
|
-
*
|
|
148
|
-
* For WarpDrive to correctly map errors to their corresponding properties
|
|
149
|
-
* on the model, WarpDrive expects each error to be a valid {json:api} error
|
|
150
|
-
* object with a `source.pointer` that matches the property name. For
|
|
151
|
-
* example, if you had a `Post` model that looked like this:
|
|
152
|
-
*
|
|
153
|
-
* ```js [app/models/post.js]
|
|
154
|
-
* import { Model, attr } from '@warp-drive/legacy/model';
|
|
155
|
-
*
|
|
156
|
-
* export default class PostModel extends Model {
|
|
157
|
-
* @attr('string') title;
|
|
158
|
-
* @attr('string') content;
|
|
159
|
-
* }
|
|
160
|
-
* ```
|
|
161
|
-
*
|
|
162
|
-
* To show an error from the server related to the `title` and `content`
|
|
163
|
-
* properties your adapter could return a promise that rejects with an
|
|
164
|
-
* `InvalidError` that looks like this:
|
|
165
|
-
*
|
|
166
|
-
* ```js [app/adapters/post.js]
|
|
167
|
-
* import RSVP from 'RSVP';
|
|
168
|
-
* import RESTAdapter from '@warp-drive/legacy/adapter/rest';
|
|
169
|
-
* import { InvalidError } from '@warp-drive/legacy/adapter/error';
|
|
170
|
-
*
|
|
171
|
-
* export default class ApplicationAdapter extends RESTAdapter {
|
|
172
|
-
* updateRecord() {
|
|
173
|
-
* // Fictional adapter that always rejects
|
|
174
|
-
* return RSVP.reject(new InvalidError([
|
|
175
|
-
* {
|
|
176
|
-
* detail: 'Must be unique',
|
|
177
|
-
* source: { pointer: '/data/attributes/title' }
|
|
178
|
-
* },
|
|
179
|
-
* {
|
|
180
|
-
* detail: 'Must not be blank',
|
|
181
|
-
* source: { pointer: '/data/attributes/content' }
|
|
182
|
-
* }
|
|
183
|
-
* ]));
|
|
184
|
-
* }
|
|
185
|
-
* }
|
|
186
|
-
* ```
|
|
187
|
-
*
|
|
188
|
-
* Your backend may use different property names for your records; the
|
|
189
|
-
* store will attempt to extract and normalize the errors using the
|
|
190
|
-
* serializer's `extractErrors` method before the errors get added to the
|
|
191
|
-
* model. As a result, it is safe for the `InvalidError` to wrap the error
|
|
192
|
-
* payload unaltered.
|
|
193
|
-
*
|
|
194
|
-
* @public
|
|
195
|
-
*/
|
|
196
|
-
export declare const InvalidError: AdapterRequestErrorConstructor<InvalidError>;
|
|
197
|
-
/**
|
|
198
|
-
* The {@link AdapterRequestError} shape thrown by the {@link TimeoutError} constructor.
|
|
199
|
-
*/
|
|
200
|
-
export type TimeoutError = AdapterRequestError<"TimeoutError">;
|
|
201
|
-
/**
|
|
202
|
-
* A `TimeoutError` is used by an adapter to signal that a request to the
|
|
203
|
-
* external API has timed out, i.e. no response was received from the
|
|
204
|
-
* external API within an allowed time period.
|
|
205
|
-
*
|
|
206
|
-
* An example use case would be to warn the user to check their internet
|
|
207
|
-
* connection if an adapter operation has timed out:
|
|
208
|
-
*
|
|
209
|
-
* ```js [app/routes/application.js]
|
|
210
|
-
* import { TimeoutError } from '@warp-drive/legacy/adapter/error';
|
|
211
|
-
*
|
|
212
|
-
* export default class ApplicationRoute extends Route {
|
|
213
|
-
* @action
|
|
214
|
-
* error(error, transition) {
|
|
215
|
-
* if (error instanceof TimeoutError) {
|
|
216
|
-
* // alert the user
|
|
217
|
-
* alert('Are you still connected to the Internet?');
|
|
218
|
-
* return;
|
|
219
|
-
* }
|
|
220
|
-
*
|
|
221
|
-
* // ...other error handling logic
|
|
222
|
-
* }
|
|
223
|
-
* }
|
|
224
|
-
* ```
|
|
225
|
-
*
|
|
226
|
-
* @public
|
|
227
|
-
*/
|
|
228
|
-
export declare const TimeoutError: AdapterRequestErrorConstructor<TimeoutError>;
|
|
229
|
-
/**
|
|
230
|
-
* The {@link AdapterRequestError} shape thrown by the {@link AbortError} constructor.
|
|
231
|
-
*/
|
|
232
|
-
export type AbortError = AdapterRequestError<"AbortError">;
|
|
233
|
-
/**
|
|
234
|
-
* An `AbortError` is used by an adapter to signal that a request to the
|
|
235
|
-
* external API was aborted. For example, this can occur if the user
|
|
236
|
-
* navigates away from the current page after a request to the external API
|
|
237
|
-
* has been initiated but before a response has been received.
|
|
238
|
-
*
|
|
239
|
-
* Because an aborted request is typically expected (the user chose to
|
|
240
|
-
* navigate away, or a newer request superseded this one) rather than
|
|
241
|
-
* exceptional, an example use case would be to silently ignore it instead
|
|
242
|
-
* of surfacing an error to the user:
|
|
243
|
-
*
|
|
244
|
-
* ```js [app/routes/application.js]
|
|
245
|
-
* import { AbortError } from '@warp-drive/legacy/adapter/error';
|
|
246
|
-
*
|
|
247
|
-
* export default class ApplicationRoute extends Route {
|
|
248
|
-
* @action
|
|
249
|
-
* error(error, transition) {
|
|
250
|
-
* if (error instanceof AbortError) {
|
|
251
|
-
* // the request was aborted, nothing to report
|
|
252
|
-
* return;
|
|
253
|
-
* }
|
|
254
|
-
*
|
|
255
|
-
* // ...other error handling logic
|
|
256
|
-
* }
|
|
257
|
-
* }
|
|
258
|
-
* ```
|
|
259
|
-
*
|
|
260
|
-
* @public
|
|
261
|
-
*/
|
|
262
|
-
export declare const AbortError: AdapterRequestErrorConstructor<AbortError>;
|
|
263
|
-
/**
|
|
264
|
-
* The {@link AdapterRequestError} shape thrown by the {@link UnauthorizedError} constructor.
|
|
265
|
-
*/
|
|
266
|
-
export type UnauthorizedError = AdapterRequestError<"UnauthorizedError">;
|
|
267
|
-
/**
|
|
268
|
-
* A `UnauthorizedError` equates to an HTTP `401 Unauthorized` response
|
|
269
|
-
* status. It is used by an adapter to signal that a request to the external
|
|
270
|
-
* API was rejected because authorization is required and has failed or has
|
|
271
|
-
* not yet been provided.
|
|
272
|
-
*
|
|
273
|
-
* An example use case would be to redirect the user to a login route if a
|
|
274
|
-
* request is unauthorized:
|
|
275
|
-
*
|
|
276
|
-
* ```js [app/routes/application.js]
|
|
277
|
-
* import { UnauthorizedError } from '@warp-drive/legacy/adapter/error';
|
|
278
|
-
*
|
|
279
|
-
* export default class ApplicationRoute extends Route {
|
|
280
|
-
* @action
|
|
281
|
-
* error(error, transition) {
|
|
282
|
-
* if (error instanceof UnauthorizedError) {
|
|
283
|
-
* // go to the login route
|
|
284
|
-
* this.transitionTo('login');
|
|
285
|
-
* return;
|
|
286
|
-
* }
|
|
287
|
-
*
|
|
288
|
-
* // ...other error handling logic
|
|
289
|
-
* }
|
|
290
|
-
* }
|
|
291
|
-
* ```
|
|
292
|
-
*
|
|
293
|
-
* @public
|
|
294
|
-
*/
|
|
295
|
-
export declare const UnauthorizedError: AdapterRequestErrorConstructor<UnauthorizedError>;
|
|
296
|
-
/**
|
|
297
|
-
* The {@link AdapterRequestError} shape thrown by the {@link ForbiddenError} constructor.
|
|
298
|
-
*/
|
|
299
|
-
export type ForbiddenError = AdapterRequestError<"ForbiddenError">;
|
|
300
|
-
/**
|
|
301
|
-
* A `ForbiddenError` equates to an HTTP `403 Forbidden` response status.
|
|
302
|
-
* It is used by an adapter to signal that a request to the external API was
|
|
303
|
-
* valid but the server is refusing to respond to it. If authorization was
|
|
304
|
-
* provided and is valid, then the authenticated user does not have the
|
|
305
|
-
* necessary permissions for the request.
|
|
306
|
-
*
|
|
307
|
-
* Unlike an {@link UnauthorizedError}, retrying the request with different
|
|
308
|
-
* credentials will not help; the currently authenticated user simply lacks
|
|
309
|
-
* permission. An example use case would be to show the user a "you don't
|
|
310
|
-
* have access to this" message rather than redirecting them to log in:
|
|
311
|
-
*
|
|
312
|
-
* ```js [app/routes/application.js]
|
|
313
|
-
* import { ForbiddenError } from '@warp-drive/legacy/adapter/error';
|
|
314
|
-
*
|
|
315
|
-
* export default class ApplicationRoute extends Route {
|
|
316
|
-
* @action
|
|
317
|
-
* error(error, transition) {
|
|
318
|
-
* if (error instanceof ForbiddenError) {
|
|
319
|
-
* this.transitionTo('forbidden');
|
|
320
|
-
* return;
|
|
321
|
-
* }
|
|
322
|
-
*
|
|
323
|
-
* // ...other error handling logic
|
|
324
|
-
* }
|
|
325
|
-
* }
|
|
326
|
-
* ```
|
|
327
|
-
*
|
|
328
|
-
* @public
|
|
329
|
-
*/
|
|
330
|
-
export declare const ForbiddenError: AdapterRequestErrorConstructor<ForbiddenError>;
|
|
331
|
-
/**
|
|
332
|
-
* The {@link AdapterRequestError} shape thrown by the {@link NotFoundError} constructor.
|
|
333
|
-
*/
|
|
334
|
-
export type NotFoundError = AdapterRequestError<"NotFoundError">;
|
|
335
|
-
/**
|
|
336
|
-
* A `NotFoundError` equates to an HTTP `404 Not Found` response status.
|
|
337
|
-
* It is used by an adapter to signal that a request to the external API
|
|
338
|
-
* was rejected because the resource could not be found on the API.
|
|
339
|
-
*
|
|
340
|
-
* An example use case would be to detect if the user has entered a route
|
|
341
|
-
* for a specific model that does not exist. For example:
|
|
342
|
-
*
|
|
343
|
-
* ```js [app/routes/post.js]
|
|
344
|
-
* import { NotFoundError } from '@warp-drive/legacy/adapter/error';
|
|
345
|
-
*
|
|
346
|
-
* export default class PostRoute extends Route {
|
|
347
|
-
* @service store;
|
|
348
|
-
* model(params) {
|
|
349
|
-
* return this.store.findRecord('post', params.post_id);
|
|
350
|
-
* }
|
|
351
|
-
* @action
|
|
352
|
-
* error(error, transition) {
|
|
353
|
-
* if (error instanceof NotFoundError) {
|
|
354
|
-
* // redirect to a list of all posts instead
|
|
355
|
-
* this.transitionTo('posts');
|
|
356
|
-
* } else {
|
|
357
|
-
* // otherwise let the error bubble
|
|
358
|
-
* return true;
|
|
359
|
-
* }
|
|
360
|
-
* }
|
|
361
|
-
* }
|
|
362
|
-
* ```
|
|
363
|
-
*
|
|
364
|
-
* @public
|
|
365
|
-
*/
|
|
366
|
-
export declare const NotFoundError: AdapterRequestErrorConstructor<NotFoundError>;
|
|
367
|
-
/**
|
|
368
|
-
* The {@link AdapterRequestError} shape thrown by the {@link ConflictError} constructor.
|
|
369
|
-
*/
|
|
370
|
-
export type ConflictError = AdapterRequestError<"ConflictError">;
|
|
371
|
-
/**
|
|
372
|
-
* A `ConflictError` equates to an HTTP `409 Conflict` response status.
|
|
373
|
-
* It is used by an adapter to indicate that the request could not be
|
|
374
|
-
* processed because of a conflict in the request. An example scenario
|
|
375
|
-
* would be when creating a record with a client-generated ID but that ID
|
|
376
|
-
* is already known to the external API.
|
|
377
|
-
*
|
|
378
|
-
* An example use case would be to surface a conflict-specific message so
|
|
379
|
-
* the user can retry with different input:
|
|
380
|
-
*
|
|
381
|
-
* ```js [app/routes/application.js]
|
|
382
|
-
* import { ConflictError } from '@warp-drive/legacy/adapter/error';
|
|
383
|
-
*
|
|
384
|
-
* export default class ApplicationRoute extends Route {
|
|
385
|
-
* @action
|
|
386
|
-
* error(error, transition) {
|
|
387
|
-
* if (error instanceof ConflictError) {
|
|
388
|
-
* alert('That identifier is already in use, please choose another.');
|
|
389
|
-
* return;
|
|
390
|
-
* }
|
|
391
|
-
*
|
|
392
|
-
* // ...other error handling logic
|
|
393
|
-
* }
|
|
394
|
-
* }
|
|
395
|
-
* ```
|
|
396
|
-
*
|
|
397
|
-
* @public
|
|
398
|
-
*/
|
|
399
|
-
export declare const ConflictError: AdapterRequestErrorConstructor<ConflictError>;
|
|
400
|
-
/**
|
|
401
|
-
* The {@link AdapterRequestError} shape thrown by the {@link ServerError} constructor.
|
|
402
|
-
*/
|
|
403
|
-
export type ServerError = AdapterRequestError<"ServerError">;
|
|
404
|
-
/**
|
|
405
|
-
* A `ServerError` equates to an HTTP `500 Internal Server Error` response
|
|
406
|
-
* status. It is used by the adapter to indicate that a request has failed
|
|
407
|
-
* because of an error in the external API, and is unlikely to succeed if
|
|
408
|
-
* retried immediately.
|
|
409
|
-
*
|
|
410
|
-
* An example use case would be to show a generic "something went wrong on
|
|
411
|
-
* our end" message rather than one implying the user made a mistake:
|
|
412
|
-
*
|
|
413
|
-
* ```js [app/routes/application.js]
|
|
414
|
-
* import { ServerError } from '@warp-drive/legacy/adapter/error';
|
|
415
|
-
*
|
|
416
|
-
* export default class ApplicationRoute extends Route {
|
|
417
|
-
* @action
|
|
418
|
-
* error(error, transition) {
|
|
419
|
-
* if (error instanceof ServerError) {
|
|
420
|
-
* alert('Something went wrong on our end. Please try again later.');
|
|
421
|
-
* return;
|
|
422
|
-
* }
|
|
423
|
-
*
|
|
424
|
-
* // ...other error handling logic
|
|
425
|
-
* }
|
|
426
|
-
* }
|
|
427
|
-
* ```
|
|
428
|
-
*
|
|
429
|
-
* @public
|
|
430
|
-
*/
|
|
431
|
-
export declare const ServerError: AdapterRequestErrorConstructor<ServerError>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Store } from "@warp-drive/core";
|
|
2
|
-
import type { CompatStore } from "../compat.js";
|
|
3
|
-
/**
|
|
4
|
-
* Utilities - often temporary - for maintaining backwards compatibility with
|
|
5
|
-
* older parts of WarpDrive.
|
|
6
|
-
*
|
|
7
|
-
@module
|
|
8
|
-
*/
|
|
9
|
-
export { SnapshotRecordArray } from "./legacy-network-handler/snapshot-record-array.js";
|
|
10
|
-
export { SaveOp } from "./legacy-network-handler/fetch-manager.js";
|
|
11
|
-
export { FetchManager } from "./legacy-network-handler/fetch-manager.js";
|
|
12
|
-
export { Snapshot } from "./legacy-network-handler/snapshot.js";
|
|
13
|
-
export declare function upgradeStore(store: Store): asserts store is CompatStore;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { StoreRequestInput } from "@warp-drive/core";
|
|
2
|
-
import type { FindAllOptions } from "@warp-drive/core/types";
|
|
3
|
-
import type { TypedRecordInstance, TypeFromInstance } from "@warp-drive/core/types/record";
|
|
4
|
-
import type { RequestSignature } from "@warp-drive/core/types/symbols";
|
|
5
|
-
type FindAllRequestInput<
|
|
6
|
-
T extends string = string,
|
|
7
|
-
RT = unknown[]
|
|
8
|
-
> = StoreRequestInput & {
|
|
9
|
-
op: "findAll";
|
|
10
|
-
data: {
|
|
11
|
-
type: T;
|
|
12
|
-
options: FindAllBuilderOptions;
|
|
13
|
-
};
|
|
14
|
-
[RequestSignature]?: RT;
|
|
15
|
-
};
|
|
16
|
-
type FindAllBuilderOptions = FindAllOptions;
|
|
17
|
-
/**
|
|
18
|
-
This function builds a request config to perform a `findAll` request for the given type.
|
|
19
|
-
When passed to `store.request`, this config will result in the same behavior as a `store.findAll` request.
|
|
20
|
-
Additionally, it takes the same options as `store.findAll`.
|
|
21
|
-
|
|
22
|
-
All `@warp-drive/legacy/compat` builders exist to enable you to migrate your codebase to using the correct syntax for `store.request` while temporarily preserving legacy behaviors.
|
|
23
|
-
This is useful for quickly upgrading an entire app to a unified syntax while a longer incremental migration is made to shift off of adapters and serializers.
|
|
24
|
-
To that end, these builders are deprecated and will be removed in a future version of WarpDrive.
|
|
25
|
-
|
|
26
|
-
@deprecated
|
|
27
|
-
@public
|
|
28
|
-
@param type the name of the resource
|
|
29
|
-
@param options optional, may include `adapterOptions` hash which will be passed to adapter.findAll
|
|
30
|
-
@return request config
|
|
31
|
-
*/
|
|
32
|
-
export declare function findAllBuilder<T extends TypedRecordInstance>(type: TypeFromInstance<T>, options?: FindAllBuilderOptions): FindAllRequestInput<TypeFromInstance<T>, T[]>;
|
|
33
|
-
export declare function findAllBuilder(type: string, options?: FindAllBuilderOptions): FindAllRequestInput;
|
|
34
|
-
export {};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { StoreRequestInput } from "@warp-drive/core";
|
|
2
|
-
import type { FindRecordOptions } from "@warp-drive/core/types";
|
|
3
|
-
import type { TypedRecordInstance, TypeFromInstance } from "@warp-drive/core/types/record";
|
|
4
|
-
import type { ResourceIdentifierObject } from "@warp-drive/core/types/spec/json-api-raw";
|
|
5
|
-
import type { RequestSignature } from "@warp-drive/core/types/symbols";
|
|
6
|
-
type FindRecordRequestInput<
|
|
7
|
-
T extends string = string,
|
|
8
|
-
RT = unknown
|
|
9
|
-
> = StoreRequestInput & {
|
|
10
|
-
op: "findRecord";
|
|
11
|
-
data: {
|
|
12
|
-
record: ResourceIdentifierObject<T>;
|
|
13
|
-
options: FindRecordBuilderOptions;
|
|
14
|
-
};
|
|
15
|
-
[RequestSignature]?: RT;
|
|
16
|
-
};
|
|
17
|
-
type FindRecordBuilderOptions = Omit<FindRecordOptions, "preload">;
|
|
18
|
-
/**
|
|
19
|
-
This function builds a request config to find the record for a given identifier or type and id combination.
|
|
20
|
-
When passed to `store.request`, this config will result in the same behavior as a `store.findRecord` request.
|
|
21
|
-
Additionally, it takes the same options as `store.findRecord`, with the exception of `preload` (which is unsupported).
|
|
22
|
-
|
|
23
|
-
**Example 1**
|
|
24
|
-
|
|
25
|
-
```ts
|
|
26
|
-
import { findRecord } from '@warp-drive/legacy/compat/builders';
|
|
27
|
-
const { content: post } = await store.request<Post>(findRecord<Post>('post', '1'));
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
**Example 2**
|
|
31
|
-
|
|
32
|
-
`findRecord` can be called with a single identifier argument instead of the combination
|
|
33
|
-
of `type` (modelName) and `id` as separate arguments. You may recognize this combo as
|
|
34
|
-
the typical pairing from [JSON:API](https://jsonapi.org/format/#document-resource-object-identification)
|
|
35
|
-
|
|
36
|
-
```ts
|
|
37
|
-
import { findRecord } from '@warp-drive/legacy/compat/builders';
|
|
38
|
-
const { content: post } = await store.request<Post>(findRecord<Post>({ type: 'post', id }));
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
All `@warp-drive/legacy/compat` builders exist to enable you to migrate your codebase to using the correct syntax for `store.request` while temporarily preserving legacy behaviors.
|
|
42
|
-
This is useful for quickly upgrading an entire app to a unified syntax while a longer incremental migration is made to shift off of adapters and serializers.
|
|
43
|
-
To that end, these builders are deprecated and will be removed in a future version of Warp Drive.
|
|
44
|
-
|
|
45
|
-
@deprecated
|
|
46
|
-
@public
|
|
47
|
-
@param resource - either a string representing the name of the resource or a ResourceIdentifier object containing both the type (a string) and the id (a string) for the record or an lid (a string) of an existing record
|
|
48
|
-
@param id - optional object with options for the request only if the first param is a ResourceIdentifier, else the string id of the record to be retrieved
|
|
49
|
-
@param options - if the first param is a string this will be the optional options for the request. See examples for available options.
|
|
50
|
-
@return request config
|
|
51
|
-
*/
|
|
52
|
-
export declare function findRecordBuilder<T extends TypedRecordInstance>(type: TypeFromInstance<T>, id: string, options?: FindRecordBuilderOptions): FindRecordRequestInput<TypeFromInstance<T>, T>;
|
|
53
|
-
export declare function findRecordBuilder(type: string, id: string, options?: FindRecordBuilderOptions): FindRecordRequestInput;
|
|
54
|
-
export declare function findRecordBuilder<T extends TypedRecordInstance>(resource: ResourceIdentifierObject<TypeFromInstance<T>>, options?: FindRecordBuilderOptions): FindRecordRequestInput<TypeFromInstance<T>, T>;
|
|
55
|
-
export declare function findRecordBuilder(resource: ResourceIdentifierObject, options?: FindRecordBuilderOptions): FindRecordRequestInput;
|
|
56
|
-
export {};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import type { StoreRequestInput } from "@warp-drive/core";
|
|
2
|
-
import type { LegacyResourceQuery, QueryOptions } from "@warp-drive/core/types";
|
|
3
|
-
import type { TypedRecordInstance, TypeFromInstance } from "@warp-drive/core/types/record";
|
|
4
|
-
import type { RequestSignature } from "@warp-drive/core/types/symbols";
|
|
5
|
-
type QueryRequestInput<
|
|
6
|
-
T extends string = string,
|
|
7
|
-
RT = unknown[]
|
|
8
|
-
> = StoreRequestInput & {
|
|
9
|
-
op: "query";
|
|
10
|
-
data: {
|
|
11
|
-
type: T;
|
|
12
|
-
query: LegacyResourceQuery;
|
|
13
|
-
options: QueryBuilderOptions;
|
|
14
|
-
};
|
|
15
|
-
[RequestSignature]?: RT;
|
|
16
|
-
};
|
|
17
|
-
type QueryBuilderOptions = QueryOptions;
|
|
18
|
-
/**
|
|
19
|
-
This function builds a request config for a given type and query object.
|
|
20
|
-
When passed to `store.request`, this config will result in the same behavior as a `store.query` request.
|
|
21
|
-
Additionally, it takes the same options as `store.query`.
|
|
22
|
-
|
|
23
|
-
All `@warp-drive/legacy/compat` builders exist to enable you to migrate your codebase to using the correct syntax for `store.request` while temporarily preserving legacy behaviors.
|
|
24
|
-
This is useful for quickly upgrading an entire app to a unified syntax while a longer incremental migration is made to shift off of adapters and serializers.
|
|
25
|
-
To that end, these builders are deprecated and will be removed in a future version of WarpDrive.
|
|
26
|
-
|
|
27
|
-
@deprecated
|
|
28
|
-
@public
|
|
29
|
-
@param type the name of the resource
|
|
30
|
-
@param query a query to be used by the adapter
|
|
31
|
-
@param options optional, may include `adapterOptions` hash which will be passed to adapter.query
|
|
32
|
-
@return request config
|
|
33
|
-
*/
|
|
34
|
-
export declare function queryBuilder<T extends TypedRecordInstance>(type: TypeFromInstance<T>, query: LegacyResourceQuery, options?: QueryBuilderOptions): QueryRequestInput<TypeFromInstance<T>, T[]>;
|
|
35
|
-
export declare function queryBuilder(type: string, query: LegacyResourceQuery, options?: QueryBuilderOptions): QueryRequestInput;
|
|
36
|
-
type QueryRecordRequestInput<
|
|
37
|
-
T extends string = string,
|
|
38
|
-
RT = unknown
|
|
39
|
-
> = StoreRequestInput & {
|
|
40
|
-
op: "queryRecord";
|
|
41
|
-
data: {
|
|
42
|
-
type: T;
|
|
43
|
-
query: LegacyResourceQuery;
|
|
44
|
-
options: QueryBuilderOptions;
|
|
45
|
-
};
|
|
46
|
-
[RequestSignature]?: RT;
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
This function builds a request config for a given type and query object.
|
|
50
|
-
When passed to `store.request`, this config will result in the same behavior as a `store.queryRecord` request.
|
|
51
|
-
Additionally, it takes the same options as `store.queryRecord`.
|
|
52
|
-
|
|
53
|
-
All `@warp-drive/legacy/compat` builders exist to enable you to migrate your codebase to using the correct syntax for `store.request` while temporarily preserving legacy behaviors.
|
|
54
|
-
This is useful for quickly upgrading an entire app to a unified syntax while a longer incremental migration is made to shift off of adapters and serializers.
|
|
55
|
-
To that end, these builders are deprecated and will be removed in a future version of WarpDrive.
|
|
56
|
-
|
|
57
|
-
@deprecated
|
|
58
|
-
@public
|
|
59
|
-
@param type the name of the resource
|
|
60
|
-
@param query a query to be used by the adapter
|
|
61
|
-
@param options optional, may include `adapterOptions` hash which will be passed to adapter.query
|
|
62
|
-
@return request config
|
|
63
|
-
*/
|
|
64
|
-
export declare function queryRecordBuilder<T extends TypedRecordInstance>(type: TypeFromInstance<T>, query: LegacyResourceQuery, options?: QueryBuilderOptions): QueryRecordRequestInput<TypeFromInstance<T>, T | null>;
|
|
65
|
-
export declare function queryRecordBuilder(type: string, query: LegacyResourceQuery, options?: QueryBuilderOptions): QueryRecordRequestInput;
|
|
66
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { type StoreRequestInput } from "@warp-drive/core";
|
|
2
|
-
import type { ResourceKey } from "@warp-drive/core/types";
|
|
3
|
-
import type { TypedRecordInstance, TypeFromInstance } from "@warp-drive/core/types/record";
|
|
4
|
-
import type { RequestSignature } from "@warp-drive/core/types/symbols";
|
|
5
|
-
type SaveRecordRequestInput<
|
|
6
|
-
T extends string = string,
|
|
7
|
-
RT = unknown
|
|
8
|
-
> = StoreRequestInput & {
|
|
9
|
-
op: "createRecord" | "deleteRecord" | "updateRecord";
|
|
10
|
-
data: {
|
|
11
|
-
record: ResourceKey<T>;
|
|
12
|
-
options: SaveRecordBuilderOptions;
|
|
13
|
-
};
|
|
14
|
-
records: [ResourceKey<T>];
|
|
15
|
-
[RequestSignature]?: RT;
|
|
16
|
-
};
|
|
17
|
-
type SaveRecordBuilderOptions = Record<string, unknown>;
|
|
18
|
-
/**
|
|
19
|
-
This function builds a request config for saving the given record (e.g. creating, updating, or deleting the record).
|
|
20
|
-
When passed to `store.request`, this config will result in the same behavior as a legacy `store.saveRecord` request.
|
|
21
|
-
Additionally, it takes the same options as `store.saveRecord`.
|
|
22
|
-
|
|
23
|
-
All `@ember-data/legacy-compat` builders exist to enable you to migrate your codebase to using the correct syntax for `store.request` while temporarily preserving legacy behaviors.
|
|
24
|
-
This is useful for quickly upgrading an entire app to a unified syntax while a longer incremental migration is made to shift off of adapters and serializers.
|
|
25
|
-
To that end, these builders are deprecated and will be removed in a future version of Ember Data.
|
|
26
|
-
|
|
27
|
-
@deprecated
|
|
28
|
-
@public
|
|
29
|
-
@param {Object} record a record to save
|
|
30
|
-
@param {SaveRecordBuilderOptions} options optional, may include `adapterOptions` hash which will be passed to adapter.saveRecord
|
|
31
|
-
@return {SaveRecordRequestInput} request config
|
|
32
|
-
*/
|
|
33
|
-
export declare function saveRecordBuilder<T extends TypedRecordInstance>(record: T, options?: Record<string, unknown>): SaveRecordRequestInput<TypeFromInstance<T>, T>;
|
|
34
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { ResourceIdentifierObject } from "@warp-drive/core/types/spec/json-api-raw";
|
|
2
|
-
export declare function isMaybeIdentifier(maybeIdentifier: string | ResourceIdentifierObject): maybeIdentifier is ResourceIdentifierObject;
|
|
3
|
-
export declare function normalizeModelName(type: string): string;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Builders for migrating from `store` methods to `store.request`.
|
|
3
|
-
|
|
4
|
-
These builders enable you to migrate your codebase to using the correct syntax for `store.request` while temporarily preserving legacy behaviors.
|
|
5
|
-
This is useful for quickly upgrading an entire app to a unified syntax while a longer incremental migration is made to shift off of adapters and serializers.
|
|
6
|
-
To that end, these builders are deprecated and will be removed in a future version of Ember Data.
|
|
7
|
-
|
|
8
|
-
@module
|
|
9
|
-
@deprecated
|
|
10
|
-
*/
|
|
11
|
-
export { findAllBuilder as findAll } from "./builders/find-all.js";
|
|
12
|
-
export { findRecordBuilder as findRecord } from "./builders/find-record.js";
|
|
13
|
-
export { queryBuilder as query, queryRecordBuilder as queryRecord } from "./builders/query.js";
|
|
14
|
-
export { saveRecordBuilder as saveRecord } from "./builders/save-record.js";
|