@go-avro/avro-js 0.0.87 → 0.0.88

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.
@@ -82,6 +82,7 @@ AvroQueryClient.prototype.useCreateBill = function () {
82
82
  entityKey: 'bills',
83
83
  id: result.id,
84
84
  fetchPath: `/bill/${result.id}`,
85
+ construct: (d) => new Bill(d),
85
86
  });
86
87
  },
87
88
  onError: (_err, _variables, context) => {
@@ -131,6 +132,7 @@ AvroQueryClient.prototype.useUpdateBill = function () {
131
132
  entityKey: 'bills',
132
133
  id: billId,
133
134
  fetchPath: `/bill/${billId}`,
135
+ construct: (d) => new Bill(d),
134
136
  });
135
137
  },
136
138
  onError: (err, variables, context) => {
@@ -162,6 +164,7 @@ AvroQueryClient.prototype.useUpdateBillLineItemStatus = function () {
162
164
  entityKey: 'bills',
163
165
  id: billId,
164
166
  fetchPath: `/bill/${billId}`,
167
+ construct: (d) => new Bill(d),
165
168
  });
166
169
  // Item paid state also lives on the underlying events,
167
170
  // service months and prepayments
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const AVRO_JS_VERSION = "0.0.87";
1
+ export declare const AVRO_JS_VERSION = "0.0.88";
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // AUTO-GENERATED by scripts/gen-version.js — do not edit by hand.
2
2
  // Regenerated from package.json by the `prebuild` npm hook.
3
- export const AVRO_JS_VERSION = '0.0.87';
3
+ export const AVRO_JS_VERSION = '0.0.88';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-avro/avro-js",
3
- "version": "0.0.87",
3
+ "version": "0.0.88",
4
4
  "description": "JS client for Avro backend integration.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",