@seamapi/react 4.12.0 → 4.13.0
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/README.md +2 -17
- package/dist/elements.js +8340 -8097
- package/dist/elements.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib/seam/SeamProvider.d.ts +1 -1
- package/lib/seam/SeamProvider.js +1 -1
- package/lib/seam/SeamProvider.js.map +1 -1
- package/lib/seam/access-codes/use-access-code.js +1 -1
- package/lib/seam/access-codes/use-access-code.js.map +1 -1
- package/lib/seam/access-codes/use-access-codes.js +1 -1
- package/lib/seam/access-codes/use-access-codes.js.map +1 -1
- package/lib/seam/access-codes/use-create-access-code.d.ts +1 -1
- package/lib/seam/access-codes/use-create-access-code.js +1 -1
- package/lib/seam/access-codes/use-create-access-code.js.map +1 -1
- package/lib/seam/access-codes/use-delete-access-code.js +1 -1
- package/lib/seam/access-codes/use-delete-access-code.js.map +1 -1
- package/lib/seam/access-codes/use-generate-access-code-code.js +1 -1
- package/lib/seam/access-codes/use-generate-access-code-code.js.map +1 -1
- package/lib/seam/access-codes/use-update-access-code.js +1 -1
- package/lib/seam/access-codes/use-update-access-code.js.map +1 -1
- package/lib/seam/client-sessions/use-client-session.js +1 -1
- package/lib/seam/client-sessions/use-client-session.js.map +1 -1
- package/lib/seam/components/SupportedDeviceTable/use-device-model.js +1 -1
- package/lib/seam/components/SupportedDeviceTable/use-device-model.js.map +1 -1
- package/lib/seam/components/SupportedDeviceTable/use-device-models.js +1 -1
- package/lib/seam/components/SupportedDeviceTable/use-device-models.js.map +1 -1
- package/lib/seam/components/SupportedDeviceTable/use-manufacturer.js +1 -1
- package/lib/seam/components/SupportedDeviceTable/use-manufacturer.js.map +1 -1
- package/lib/seam/components/SupportedDeviceTable/use-manufacturers.js +1 -1
- package/lib/seam/components/SupportedDeviceTable/use-manufacturers.js.map +1 -1
- package/lib/seam/connect-webviews/use-create-connect-webview.js +1 -1
- package/lib/seam/connect-webviews/use-create-connect-webview.js.map +1 -1
- package/lib/seam/connected-accounts/use-connected-account.js +1 -1
- package/lib/seam/connected-accounts/use-connected-account.js.map +1 -1
- package/lib/seam/devices/use-device-providers.js +1 -1
- package/lib/seam/devices/use-device-providers.js.map +1 -1
- package/lib/seam/devices/use-device.js +1 -1
- package/lib/seam/devices/use-device.js.map +1 -1
- package/lib/seam/devices/use-devices.js +1 -1
- package/lib/seam/devices/use-devices.js.map +1 -1
- package/lib/seam/devices/use-update-device-name.js +1 -1
- package/lib/seam/devices/use-update-device-name.js.map +1 -1
- package/lib/seam/events/use-events.js +1 -1
- package/lib/seam/events/use-events.js.map +1 -1
- package/lib/seam/index.d.ts +0 -6
- package/lib/seam/index.js +0 -6
- package/lib/seam/index.js.map +1 -1
- package/lib/seam/locks/use-toggle-lock.js +1 -1
- package/lib/seam/locks/use-toggle-lock.js.map +1 -1
- package/lib/seam/noise-sensors/use-noise-thresholds.js +1 -1
- package/lib/seam/noise-sensors/use-noise-thresholds.js.map +1 -1
- package/lib/seam/thermostats/use-cool-thermostat.js +1 -1
- package/lib/seam/thermostats/use-cool-thermostat.js.map +1 -1
- package/lib/seam/thermostats/use-create-thermostat-climate-preset.js +1 -1
- package/lib/seam/thermostats/use-create-thermostat-climate-preset.js.map +1 -1
- package/lib/seam/thermostats/use-delete-thermostat-climate-preset.js +1 -1
- package/lib/seam/thermostats/use-delete-thermostat-climate-preset.js.map +1 -1
- package/lib/seam/thermostats/use-heat-cool-thermostat.js +1 -1
- package/lib/seam/thermostats/use-heat-cool-thermostat.js.map +1 -1
- package/lib/seam/thermostats/use-heat-thermostat.js +1 -1
- package/lib/seam/thermostats/use-heat-thermostat.js.map +1 -1
- package/lib/seam/thermostats/use-set-thermostat-fan-mode.js +1 -1
- package/lib/seam/thermostats/use-set-thermostat-fan-mode.js.map +1 -1
- package/lib/seam/thermostats/use-set-thermostat-off.js +1 -1
- package/lib/seam/thermostats/use-set-thermostat-off.js.map +1 -1
- package/lib/seam/thermostats/use-update-thermostat-climate-preset.js +1 -1
- package/lib/seam/thermostats/use-update-thermostat-climate-preset.js.map +1 -1
- package/lib/telemetry/hooks.js +1 -1
- package/lib/telemetry/hooks.js.map +1 -1
- package/lib/ui/DateTimePicker/DateTimePicker.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +9 -9
- package/src/index.ts +1 -0
- package/src/lib/index.ts +0 -1
- package/src/lib/seam/SeamProvider.tsx +4 -4
- package/src/lib/seam/access-codes/use-access-code.ts +1 -1
- package/src/lib/seam/access-codes/use-access-codes.ts +1 -1
- package/src/lib/seam/access-codes/use-create-access-code.ts +2 -3
- package/src/lib/seam/access-codes/use-delete-access-code.ts +1 -2
- package/src/lib/seam/access-codes/use-generate-access-code-code.ts +1 -2
- package/src/lib/seam/access-codes/use-update-access-code.ts +1 -2
- package/src/lib/seam/client-sessions/use-client-session.ts +1 -1
- package/src/lib/seam/components/SupportedDeviceTable/use-device-model.ts +1 -1
- package/src/lib/seam/components/SupportedDeviceTable/use-device-models.ts +1 -1
- package/src/lib/seam/components/SupportedDeviceTable/use-manufacturer.ts +1 -1
- package/src/lib/seam/components/SupportedDeviceTable/use-manufacturers.ts +1 -1
- package/src/lib/seam/connect-webviews/use-create-connect-webview.ts +1 -1
- package/src/lib/seam/connected-accounts/use-connected-account.ts +1 -1
- package/src/lib/seam/devices/use-device-providers.ts +1 -1
- package/src/lib/seam/devices/use-device.ts +1 -1
- package/src/lib/seam/devices/use-devices.ts +1 -1
- package/src/lib/seam/devices/use-update-device-name.ts +1 -2
- package/src/lib/seam/events/use-events.ts +1 -1
- package/src/lib/seam/index.ts +0 -6
- package/src/lib/seam/locks/use-toggle-lock.ts +1 -2
- package/src/lib/seam/noise-sensors/use-noise-thresholds.ts +1 -1
- package/src/lib/seam/thermostats/use-cool-thermostat.ts +1 -1
- package/src/lib/seam/thermostats/use-create-thermostat-climate-preset.ts +1 -1
- package/src/lib/seam/thermostats/use-delete-thermostat-climate-preset.ts +1 -1
- package/src/lib/seam/thermostats/use-heat-cool-thermostat.ts +1 -1
- package/src/lib/seam/thermostats/use-heat-thermostat.ts +1 -1
- package/src/lib/seam/thermostats/use-set-thermostat-fan-mode.ts +1 -2
- package/src/lib/seam/thermostats/use-set-thermostat-off.ts +1 -2
- package/src/lib/seam/thermostats/use-update-thermostat-climate-preset.ts +1 -1
- package/src/lib/telemetry/hooks.ts +1 -1
- package/src/lib/version.ts +1 -1
- package/lib/seam/SeamQueryProvider.d.ts +0 -40
- package/lib/seam/SeamQueryProvider.js +0 -180
- package/lib/seam/SeamQueryProvider.js.map +0 -1
- package/lib/seam/use-seam-client.d.ts +0 -14
- package/lib/seam/use-seam-client.js +0 -134
- package/lib/seam/use-seam-client.js.map +0 -1
- package/lib/seam/use-seam-infinite-query.d.ts +0 -15
- package/lib/seam/use-seam-infinite-query.js +0 -47
- package/lib/seam/use-seam-infinite-query.js.map +0 -1
- package/lib/seam/use-seam-mutation-without-workspace.d.ts +0 -9
- package/lib/seam/use-seam-mutation-without-workspace.js +0 -17
- package/lib/seam/use-seam-mutation-without-workspace.js.map +0 -1
- package/lib/seam/use-seam-mutation.d.ts +0 -10
- package/lib/seam/use-seam-mutation.js +0 -17
- package/lib/seam/use-seam-mutation.js.map +0 -1
- package/lib/seam/use-seam-query-without-workspace.d.ts +0 -11
- package/lib/seam/use-seam-query-without-workspace.js +0 -25
- package/lib/seam/use-seam-query-without-workspace.js.map +0 -1
- package/lib/seam/use-seam-query.d.ts +0 -12
- package/lib/seam/use-seam-query.js +0 -25
- package/lib/seam/use-seam-query.js.map +0 -1
- package/src/lib/seam/SeamQueryProvider.tsx +0 -356
- package/src/lib/seam/use-seam-client.ts +0 -225
- package/src/lib/seam/use-seam-infinite-query.ts +0 -103
- package/src/lib/seam/use-seam-mutation-without-workspace.ts +0 -56
- package/src/lib/seam/use-seam-mutation.ts +0 -64
- package/src/lib/seam/use-seam-query-without-workspace.ts +0 -59
- package/src/lib/seam/use-seam-query.ts +0 -66
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-set-thermostat-fan-mode.js","sourceRoot":"","sources":["../../../src/lib/seam/thermostats/use-set-thermostat-fan-mode.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-set-thermostat-fan-mode.js","sourceRoot":"","sources":["../../../src/lib/seam/thermostats/use-set-thermostat-fan-mode.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzE,OAAO,EACL,WAAW,EAEX,cAAc,GACf,MAAM,uBAAuB,CAAA;AAkB9B,MAAM,UAAU,uBAAuB;IAKrC,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,CAAA;IAClC,MAAM,WAAW,GAAG,cAAc,EAAE,CAAA;IAEpC,OAAO,WAAW,CAIhB;QACA,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE;YAC9B,IAAI,MAAM,KAAK,IAAI;gBAAE,MAAM,IAAI,mBAAmB,EAAE,CAAA;YACpD,MAAM,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC,SAAS,CAAC,CAAA;QAChD,CAAC;QACD,SAAS,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE;YAC9B,WAAW,CAAC,YAAY,CACtB,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,SAAS,CAAC,SAAS,EAAE,CAAC,EACtD,CAAC,MAAM,EAAE,EAAE;gBACT,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;oBACnB,OAAM;gBACR,CAAC;gBACD,OAAO,gBAAgB,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;YAC5C,CAAC,CACF,CAAA;YAED,WAAW,CAAC,YAAY,CACtB,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,SAAS,CAAC,SAAS,EAAE,CAAC,EACvD,CAAC,OAAO,EAAY,EAAE;gBACpB,IAAI,OAAO,IAAI,IAAI,EAAE,CAAC;oBACpB,OAAO,EAAE,CAAA;gBACX,CAAC;gBAED,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;oBAC5B,IAAI,MAAM,CAAC,SAAS,KAAK,SAAS,CAAC,SAAS,EAAE,CAAC;wBAC7C,OAAO,gBAAgB,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;oBAC5C,CAAC;oBAED,OAAO,MAAM,CAAA;gBACf,CAAC,CAAC,CAAA;YACJ,CAAC,CACF,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AAED,MAAM,gBAAgB,GAAG,CACvB,MAAc,EACd,SAAmD,EAC3C,EAAE;IACV,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAA;IAC7B,IAAI,kBAAkB,IAAI,UAAU,IAAI,UAAU,CAAC,gBAAgB,IAAI,IAAI,EAAE,CAAC;QAC5E,OAAO;YACL,GAAG,MAAM;YACT,UAAU,EAAE;gBACV,GAAG,UAAU;gBACb,gBAAgB,EAAE,SAAS,CAAC,gBAAgB;aAC7C;SACF,CAAA;IACH,CAAC;IACD,OAAO,MAAM,CAAA;AACf,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { NullSeamClientError, useSeamClient } from '@seamapi/react-query';
|
|
1
2
|
import { useMutation, useQueryClient, } from '@tanstack/react-query';
|
|
2
|
-
import { NullSeamClientError, useSeamClient } from '../../../lib/seam/use-seam-client.js';
|
|
3
3
|
export function useSetThermostatOff() {
|
|
4
4
|
const { client } = useSeamClient();
|
|
5
5
|
const queryClient = useQueryClient();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-set-thermostat-off.js","sourceRoot":"","sources":["../../../src/lib/seam/thermostats/use-set-thermostat-off.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-set-thermostat-off.js","sourceRoot":"","sources":["../../../src/lib/seam/thermostats/use-set-thermostat-off.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzE,OAAO,EACL,WAAW,EAEX,cAAc,GACf,MAAM,uBAAuB,CAAA;AAkB9B,MAAM,UAAU,mBAAmB;IAKjC,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,CAAA;IAClC,MAAM,WAAW,GAAG,cAAc,EAAE,CAAA;IAEpC,OAAO,WAAW,CAIhB;QACA,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE;YAC9B,IAAI,MAAM,KAAK,IAAI;gBAAE,MAAM,IAAI,mBAAmB,EAAE,CAAA;YACpD,MAAM,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;QACzC,CAAC;QACD,SAAS,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE;YAC9B,WAAW,CAAC,YAAY,CACtB,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,SAAS,CAAC,SAAS,EAAE,CAAC,EACtD,CAAC,MAAM,EAAE,EAAE;gBACT,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;oBACnB,OAAM;gBACR,CAAC;gBACD,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAA;YACjC,CAAC,CACF,CAAA;YAED,WAAW,CAAC,YAAY,CACtB,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,SAAS,CAAC,SAAS,EAAE,CAAC,EACvD,CAAC,OAAO,EAAY,EAAE;gBACpB,IAAI,OAAO,IAAI,IAAI,EAAE,CAAC;oBACpB,OAAO,EAAE,CAAA;gBACX,CAAC;gBAED,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;oBAC5B,IAAI,MAAM,CAAC,SAAS,KAAK,SAAS,CAAC,SAAS,EAAE,CAAC;wBAC7C,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAA;oBACjC,CAAC;oBAED,OAAO,MAAM,CAAA;gBACf,CAAC,CAAC,CAAA;YACJ,CAAC,CACF,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AAED,MAAM,gBAAgB,GAAG,CAAC,MAAc,EAAU,EAAE;IAClD,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAA;IAC7B,IACE,yBAAyB,IAAI,UAAU;QACvC,UAAU,CAAC,uBAAuB,IAAI,IAAI,EAC1C,CAAC;QACD,OAAO;YACL,GAAG,MAAM;YACT,UAAU,EAAE;gBACV,GAAG,UAAU;gBACb,cAAc,EAAE,KAAK;gBACrB,UAAU,EAAE,KAAK;gBACjB,UAAU,EAAE,KAAK;gBACjB,uBAAuB,EAAE;oBACvB,GAAG,UAAU,CAAC,uBAAuB;oBACrC,iBAAiB,EAAE,KAAK;oBACxB,yBAAyB,EAAE,SAAS;oBACpC,4BAA4B,EAAE,SAAS;oBACvC,yBAAyB,EAAE,SAAS;oBACpC,4BAA4B,EAAE,SAAS;iBACxC;aACF;SACF,CAAA;IACH,CAAC;IACD,OAAO,MAAM,CAAA;AACf,CAAC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { NullSeamClientError, useSeamClient } from '@seamapi/react-query';
|
|
1
2
|
import { useMutation, useQueryClient, } from '@tanstack/react-query';
|
|
2
3
|
import { fahrenheitToCelsius } from '../../../lib/seam/thermostats/unit-conversion.js';
|
|
3
|
-
import { NullSeamClientError, useSeamClient } from '../../../lib/seam/use-seam-client.js';
|
|
4
4
|
export function useUpdateThermostatClimatePreset() {
|
|
5
5
|
const { client } = useSeamClient();
|
|
6
6
|
const queryClient = useQueryClient();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-update-thermostat-climate-preset.js","sourceRoot":"","sources":["../../../src/lib/seam/thermostats/use-update-thermostat-climate-preset.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"use-update-thermostat-climate-preset.js","sourceRoot":"","sources":["../../../src/lib/seam/thermostats/use-update-thermostat-climate-preset.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzE,OAAO,EACL,WAAW,EAEX,cAAc,GACf,MAAM,uBAAuB,CAAA;AAM9B,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAQ7E,MAAM,UAAU,gCAAgC;IAK9C,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,CAAA;IAClC,MAAM,WAAW,GAAG,cAAc,EAAE,CAAA;IAEpC,OAAO,WAAW,CAIhB;QACA,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE;YAC9B,IAAI,MAAM,KAAK,IAAI;gBAAE,MAAM,IAAI,mBAAmB,EAAE,CAAA;YACpD,MAAM,MAAM,CAAC,WAAW,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAA;QACzD,CAAC;QACD,SAAS,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE;YAC9B,WAAW,CAAC,YAAY,CACtB,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,SAAS,CAAC,SAAS,EAAE,CAAC,EACtD,CAAC,MAAM,EAAE,EAAE;gBACT,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;oBACnB,OAAM;gBACR,CAAC;gBAED,OAAO,gBAAgB,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;YAC5C,CAAC,CACF,CAAA;YAED,WAAW,CAAC,YAAY,CACtB,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,SAAS,CAAC,SAAS,EAAE,CAAC,EACvD,CAAC,OAAO,EAAsB,EAAE;gBAC9B,IAAI,OAAO,IAAI,IAAI,EAAE,CAAC;oBACpB,OAAO,EAAE,CAAA;gBACX,CAAC;gBAED,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;oBAC5B,IAAI,MAAM,CAAC,SAAS,KAAK,SAAS,CAAC,SAAS,EAAE,CAAC;wBAC7C,OAAO,gBAAgB,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;oBAC5C,CAAC;oBAED,OAAO,MAAM,CAAA;gBACf,CAAC,CAAC,CAAA;YACJ,CAAC,CACF,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AAED,SAAS,gBAAgB,CACvB,MAAwB,EACxB,SAAoD;IAEpD,MAAM,MAAM,GAA4B;QACtC,GAAG,SAAS;QACZ,yBAAyB,EAAE,mBAAmB,CAC5C,SAAS,CAAC,4BAA4B,CACvC;QACD,yBAAyB,EAAE,mBAAmB,CAC5C,SAAS,CAAC,4BAA4B,CACvC;QACD,YAAY,EAAE,SAAS,CAAC,IAAI,IAAI,SAAS,CAAC,kBAAkB;QAC5D,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,IAAI;QACjB,uBAAuB,EAAE,IAAI;KAC9B,CAAA;IAED,OAAO;QACL,GAAG,MAAM;QACT,UAAU,EAAE;YACV,GAAG,MAAM,CAAC,UAAU;YACpB,yBAAyB,EAAE;gBACzB,MAAM;gBACN,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,yBAAyB,IAAI,EAAE,CAAC;aACvD;SACF;KACF,CAAA;AACH,CAAC"}
|
package/lib/telemetry/hooks.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { useSeamQueryContext } from '@seamapi/react-query';
|
|
1
2
|
import { useEffect, useLayoutEffect } from 'react';
|
|
2
3
|
import { useClientSession } from '../../lib/seam/client-sessions/use-client-session.js';
|
|
3
|
-
import { useSeamQueryContext } from '../../lib/seam/SeamQueryProvider.js';
|
|
4
4
|
import { useTelemetryContext } from './TelemetryProvider.js';
|
|
5
5
|
export function useTelemetryClient() {
|
|
6
6
|
const { client } = useTelemetryContext();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../src/lib/telemetry/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../src/lib/telemetry/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,OAAO,CAAA;AAElD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAA;AAGjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAE5D,MAAM,UAAU,kBAAkB;IAChC,MAAM,EAAE,MAAM,EAAE,GAAG,mBAAmB,EAAE,CAAA;IACxC,OAAO,MAAM,CAAA;AACf,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,IAAY;IAChD,MAAM,EAAE,aAAa,EAAE,GAAG,gBAAgB,EAAE,CAAA;IAC5C,MAAM,SAAS,GAAG,kBAAkB,EAAE,CAAA;IACtC,SAAS,CAAC,GAAG,EAAE;QACb,sEAAsE;QACtE,IAAI,aAAa,IAAI,IAAI;YAAE,OAAM;QACjC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IACxB,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC,CAAA;AACtC,CAAC;AAED,MAAM,UAAU,gBAAgB;IAC9B,MAAM,SAAS,GAAG,kBAAkB,EAAE,CAAA;IACtC,MAAM,EAAE,cAAc,EAAE,GAAG,mBAAmB,EAAE,CAAA;IAChD,MAAM,EAAE,aAAa,EAAE,GAAG,gBAAgB,EAAE,CAAA;IAE5C,qFAAqF;IACrF,eAAe,CAAC,GAAG,EAAE;QACnB,IAAI,aAAa,IAAI,IAAI;YAAE,OAAM;QAEjC,MAAM,eAAe,GAAG;YACtB,aAAa,CAAC,YAAY;YAC1B,aAAa,CAAC,mBAAmB,IAAI,SAAS;SAC/C,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QAEX,SAAS,CAAC,KAAK,CAAC,eAAe,CAAC,CAAA;QAEhC,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE;YAClC,YAAY,EAAE,aAAa,CAAC,YAAY;YACxC,mBAAmB,EAAE,aAAa,CAAC,mBAAmB;YACtD,eAAe,EAAE,cAAc;SAChC,CAAC,CAAA;QAEF,SAAS,CAAC,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE;YAC1C,YAAY,EAAE,aAAa,CAAC,YAAY;SACzC,CAAC,CAAA;IACJ,CAAC,EAAE,CAAC,aAAa,EAAE,cAAc,EAAE,SAAS,CAAC,CAAC,CAAA;AAChD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type TextFieldProps } from '../../../lib/ui/TextField/TextField.js';
|
|
3
|
-
export declare const DateTimePicker: import("react").ForwardRefExoticComponent<Pick<TextFieldProps, "
|
|
3
|
+
export declare const DateTimePicker: import("react").ForwardRefExoticComponent<Pick<TextFieldProps, "size" | "className" | "value"> & {
|
|
4
4
|
onChange: (value: string) => void;
|
|
5
5
|
} & import("react").RefAttributes<HTMLInputElement | undefined>>;
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const seamapiReactVersion = "4.
|
|
1
|
+
declare const seamapiReactVersion = "4.13.0";
|
|
2
2
|
export default seamapiReactVersion;
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seamapi/react",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.13.0",
|
|
4
4
|
"description": "Seam Components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -109,12 +109,11 @@
|
|
|
109
109
|
"npm": ">= 9.0.0"
|
|
110
110
|
},
|
|
111
111
|
"peerDependencies": {
|
|
112
|
-
"@seamapi/
|
|
113
|
-
"@
|
|
114
|
-
"@types/react": "^18.0.0
|
|
115
|
-
"
|
|
116
|
-
"react": "^18.0.0
|
|
117
|
-
"react-dom": "^18.0.0 | ^19.0.0"
|
|
112
|
+
"@seamapi/types": "^1.441.1",
|
|
113
|
+
"@types/react": "^18.0.0 || ^19.0.0",
|
|
114
|
+
"@types/react-dom": "^18.0.0 || ^19.0.0",
|
|
115
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
116
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
118
117
|
},
|
|
119
118
|
"peerDependenciesMeta": {
|
|
120
119
|
"@seamapi/types": {
|
|
@@ -129,6 +128,8 @@
|
|
|
129
128
|
},
|
|
130
129
|
"dependencies": {
|
|
131
130
|
"@floating-ui/react": "^0.27.5",
|
|
131
|
+
"@seamapi/http": "^1.45.0",
|
|
132
|
+
"@seamapi/react-query": "^0.2.0",
|
|
132
133
|
"@tanstack/react-query": "^5.27.5",
|
|
133
134
|
"classnames": "^2.3.2",
|
|
134
135
|
"luxon": "^3.3.0",
|
|
@@ -145,8 +146,7 @@
|
|
|
145
146
|
"@rxfork/r2wc-react-to-web-component": "^2.4.0",
|
|
146
147
|
"@seamapi/fake-devicedb": "^1.6.1",
|
|
147
148
|
"@seamapi/fake-seam-connect": "^1.76.0",
|
|
148
|
-
"@seamapi/
|
|
149
|
-
"@seamapi/types": "^1.395.3",
|
|
149
|
+
"@seamapi/types": "^1.441.1",
|
|
150
150
|
"@storybook/addon-designs": "^7.0.1",
|
|
151
151
|
"@storybook/addon-essentials": "^7.0.2",
|
|
152
152
|
"@storybook/addon-links": "^7.0.2",
|
package/src/index.ts
CHANGED
package/src/lib/index.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { SeamHttp } from '@seamapi/http/connect'
|
|
2
|
-
import type { QueryClient } from '@tanstack/react-query'
|
|
3
|
-
import { createContext, type PropsWithChildren, useMemo } from 'react'
|
|
4
|
-
|
|
5
2
|
import {
|
|
6
3
|
SeamQueryProvider,
|
|
7
4
|
type SeamQueryProviderPropsWithClient,
|
|
8
5
|
type SeamQueryProviderPropsWithClientSessionToken,
|
|
9
6
|
type SeamQueryProviderPropsWithPublishableKey,
|
|
10
|
-
} from '
|
|
7
|
+
} from '@seamapi/react-query'
|
|
8
|
+
import type { QueryClient } from '@tanstack/react-query'
|
|
9
|
+
import { createContext, type PropsWithChildren, useMemo } from 'react'
|
|
10
|
+
|
|
11
11
|
import { useSeamFont } from 'lib/seam/use-seam-font.js'
|
|
12
12
|
import { useSeamStyles } from 'lib/seam/use-seam-styles.js'
|
|
13
13
|
import {
|
|
@@ -2,10 +2,10 @@ import type {
|
|
|
2
2
|
AccessCodesGetParams,
|
|
3
3
|
SeamHttpApiError,
|
|
4
4
|
} from '@seamapi/http/connect'
|
|
5
|
+
import { useSeamClient } from '@seamapi/react-query'
|
|
5
6
|
import type { AccessCode } from '@seamapi/types/connect'
|
|
6
7
|
import { useQuery } from '@tanstack/react-query'
|
|
7
8
|
|
|
8
|
-
import { useSeamClient } from 'lib/seam/use-seam-client.js'
|
|
9
9
|
import type { UseSeamQueryResultLegacy } from 'lib/seam/use-seam-query-result.js'
|
|
10
10
|
|
|
11
11
|
export type UseAccessCodeParams = AccessCodesGetParams
|
|
@@ -2,10 +2,10 @@ import type {
|
|
|
2
2
|
AccessCodesListParams,
|
|
3
3
|
SeamHttpApiError,
|
|
4
4
|
} from '@seamapi/http/connect'
|
|
5
|
+
import { useSeamClient } from '@seamapi/react-query'
|
|
5
6
|
import type { AccessCode } from '@seamapi/types/connect'
|
|
6
7
|
import { useQuery, useQueryClient } from '@tanstack/react-query'
|
|
7
8
|
|
|
8
|
-
import { useSeamClient } from 'lib/seam/use-seam-client.js'
|
|
9
9
|
import type { UseSeamQueryResultLegacy } from 'lib/seam/use-seam-query-result.js'
|
|
10
10
|
|
|
11
11
|
export type UseAccessCodesParams = AccessCodesListParams
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { useQueryClient } from '@tanstack/react-query'
|
|
2
|
-
|
|
3
1
|
import {
|
|
4
2
|
useSeamMutation,
|
|
5
3
|
type UseSeamMutationResult,
|
|
6
|
-
} from '
|
|
4
|
+
} from '@seamapi/react-query'
|
|
5
|
+
import { useQueryClient } from '@tanstack/react-query'
|
|
7
6
|
|
|
8
7
|
export function useCreateAccessCode(): UseSeamMutationResult<'/access_codes/create'> {
|
|
9
8
|
const queryClient = useQueryClient()
|
|
@@ -2,6 +2,7 @@ import type {
|
|
|
2
2
|
AccessCodesDeleteParams,
|
|
3
3
|
SeamHttpApiError,
|
|
4
4
|
} from '@seamapi/http/connect'
|
|
5
|
+
import { NullSeamClientError, useSeamClient } from '@seamapi/react-query'
|
|
5
6
|
import type { AccessCode } from '@seamapi/types/connect'
|
|
6
7
|
import {
|
|
7
8
|
useMutation,
|
|
@@ -9,8 +10,6 @@ import {
|
|
|
9
10
|
useQueryClient,
|
|
10
11
|
} from '@tanstack/react-query'
|
|
11
12
|
|
|
12
|
-
import { NullSeamClientError, useSeamClient } from 'lib/seam/use-seam-client.js'
|
|
13
|
-
|
|
14
13
|
export type UseDeleteAccessCodeParams = never
|
|
15
14
|
|
|
16
15
|
export type UseDeleteAccessCodeData = undefined
|
|
@@ -2,10 +2,9 @@ import type {
|
|
|
2
2
|
AccessCodesGenerateCodeParams,
|
|
3
3
|
SeamHttpApiError,
|
|
4
4
|
} from '@seamapi/http/connect'
|
|
5
|
+
import { NullSeamClientError, useSeamClient } from '@seamapi/react-query'
|
|
5
6
|
import { useMutation, type UseMutationResult } from '@tanstack/react-query'
|
|
6
7
|
|
|
7
|
-
import { NullSeamClientError, useSeamClient } from 'lib/seam/use-seam-client.js'
|
|
8
|
-
|
|
9
8
|
export type UseGenerateAccessCodeCodeParams = never
|
|
10
9
|
|
|
11
10
|
export type UseGenerateAccessCodeCodeData = string
|
|
@@ -2,6 +2,7 @@ import type {
|
|
|
2
2
|
AccessCodesUpdateBody,
|
|
3
3
|
SeamHttpApiError,
|
|
4
4
|
} from '@seamapi/http/connect'
|
|
5
|
+
import { NullSeamClientError, useSeamClient } from '@seamapi/react-query'
|
|
5
6
|
import type { AccessCode } from '@seamapi/types/connect'
|
|
6
7
|
import {
|
|
7
8
|
useMutation,
|
|
@@ -9,8 +10,6 @@ import {
|
|
|
9
10
|
useQueryClient,
|
|
10
11
|
} from '@tanstack/react-query'
|
|
11
12
|
|
|
12
|
-
import { NullSeamClientError, useSeamClient } from 'lib/seam/use-seam-client.js'
|
|
13
|
-
|
|
14
13
|
export type UseUpdateAccessCodeParams = never
|
|
15
14
|
|
|
16
15
|
export type UseUpdateAccessCodeData = undefined
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { SeamHttpApiError } from '@seamapi/http/connect'
|
|
2
|
+
import { useSeamClient } from '@seamapi/react-query'
|
|
2
3
|
import type { ClientSession } from '@seamapi/types/connect'
|
|
3
4
|
import { useQuery } from '@tanstack/react-query'
|
|
4
5
|
|
|
5
|
-
import { useSeamClient } from 'lib/seam/use-seam-client.js'
|
|
6
6
|
import type { UseSeamQueryResultLegacy } from 'lib/seam/use-seam-query-result.js'
|
|
7
7
|
|
|
8
8
|
export type UseClientSessionParams = never
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SeamHttpApiError } from '@seamapi/http/connect'
|
|
2
|
+
import { useSeamClient } from '@seamapi/react-query'
|
|
2
3
|
import type {
|
|
3
4
|
DeviceModel,
|
|
4
5
|
RouteRequestParams,
|
|
@@ -6,7 +7,6 @@ import type {
|
|
|
6
7
|
} from '@seamapi/types/devicedb'
|
|
7
8
|
import { useQuery } from '@tanstack/react-query'
|
|
8
9
|
|
|
9
|
-
import { useSeamClient } from 'lib/seam/use-seam-client.js'
|
|
10
10
|
import type { UseSeamQueryResultLegacy } from 'lib/seam/use-seam-query-result.js'
|
|
11
11
|
|
|
12
12
|
export type UseDeviceModelParams = DeviceModelsGetParams
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SeamHttpApiError } from '@seamapi/http/connect'
|
|
2
|
+
import { useSeamClient } from '@seamapi/react-query'
|
|
2
3
|
import type {
|
|
3
4
|
DeviceModel,
|
|
4
5
|
RouteRequestParams,
|
|
@@ -6,7 +7,6 @@ import type {
|
|
|
6
7
|
} from '@seamapi/types/devicedb'
|
|
7
8
|
import { useQuery, useQueryClient } from '@tanstack/react-query'
|
|
8
9
|
|
|
9
|
-
import { useSeamClient } from 'lib/seam/use-seam-client.js'
|
|
10
10
|
import type { UseSeamQueryResultLegacy } from 'lib/seam/use-seam-query-result.js'
|
|
11
11
|
|
|
12
12
|
export type UseDeviceModelsParams = DeviceModelsListParams
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SeamHttpApiError } from '@seamapi/http/connect'
|
|
2
|
+
import { useSeamClient } from '@seamapi/react-query'
|
|
2
3
|
import type {
|
|
3
4
|
Manufacturer,
|
|
4
5
|
RouteRequestParams,
|
|
@@ -6,7 +7,6 @@ import type {
|
|
|
6
7
|
} from '@seamapi/types/devicedb'
|
|
7
8
|
import { useQuery } from '@tanstack/react-query'
|
|
8
9
|
|
|
9
|
-
import { useSeamClient } from 'lib/seam/use-seam-client.js'
|
|
10
10
|
import type { UseSeamQueryResultLegacy } from 'lib/seam/use-seam-query-result.js'
|
|
11
11
|
|
|
12
12
|
export type UseManufacturerParams = ManufacturersGetParams
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SeamHttpApiError } from '@seamapi/http/connect'
|
|
2
|
+
import { useSeamClient } from '@seamapi/react-query'
|
|
2
3
|
import type {
|
|
3
4
|
Manufacturer,
|
|
4
5
|
RouteRequestParams,
|
|
@@ -6,7 +7,6 @@ import type {
|
|
|
6
7
|
} from '@seamapi/types/devicedb'
|
|
7
8
|
import { useQuery, useQueryClient } from '@tanstack/react-query'
|
|
8
9
|
|
|
9
|
-
import { useSeamClient } from 'lib/seam/use-seam-client.js'
|
|
10
10
|
import type { UseSeamQueryResultLegacy } from 'lib/seam/use-seam-query-result.js'
|
|
11
11
|
|
|
12
12
|
export type UseManufacturersParams = ManufacturersListParams
|
|
@@ -2,11 +2,11 @@ import type {
|
|
|
2
2
|
ConnectWebviewsCreateBody,
|
|
3
3
|
SeamHttpApiError,
|
|
4
4
|
} from '@seamapi/http/connect'
|
|
5
|
+
import { NullSeamClientError, useSeamClient } from '@seamapi/react-query'
|
|
5
6
|
import type { ConnectWebview } from '@seamapi/types/connect'
|
|
6
7
|
import { useMutation, type UseMutationResult } from '@tanstack/react-query'
|
|
7
8
|
|
|
8
9
|
import { useClientSession } from 'lib/seam/client-sessions/use-client-session.js'
|
|
9
|
-
import { NullSeamClientError, useSeamClient } from 'lib/seam/use-seam-client.js'
|
|
10
10
|
|
|
11
11
|
export interface UseCreateConnectWebviewParams {
|
|
12
12
|
willNavigateToWebview?: boolean
|
|
@@ -2,10 +2,10 @@ import type {
|
|
|
2
2
|
ConnectedAccountsGetParams,
|
|
3
3
|
SeamHttpApiError,
|
|
4
4
|
} from '@seamapi/http/connect'
|
|
5
|
+
import { useSeamClient } from '@seamapi/react-query'
|
|
5
6
|
import type { ConnectedAccount } from '@seamapi/types/connect'
|
|
6
7
|
import { useQuery } from '@tanstack/react-query'
|
|
7
8
|
|
|
8
|
-
import { useSeamClient } from 'lib/seam/use-seam-client.js'
|
|
9
9
|
import type { UseSeamQueryResultLegacy } from 'lib/seam/use-seam-query-result.js'
|
|
10
10
|
|
|
11
11
|
export type UseConnectedAccountParams = ConnectedAccountsGetParams
|
|
@@ -2,10 +2,10 @@ import type {
|
|
|
2
2
|
DevicesListDeviceProvidersParams,
|
|
3
3
|
SeamHttpApiError,
|
|
4
4
|
} from '@seamapi/http/connect'
|
|
5
|
+
import { useSeamClient } from '@seamapi/react-query'
|
|
5
6
|
import type { DeviceProvider } from '@seamapi/types/connect'
|
|
6
7
|
import { useQuery } from '@tanstack/react-query'
|
|
7
8
|
|
|
8
|
-
import { useSeamClient } from 'lib/seam/use-seam-client.js'
|
|
9
9
|
import type { UseSeamQueryResultLegacy } from 'lib/seam/use-seam-query-result.js'
|
|
10
10
|
|
|
11
11
|
export type UseDeviceProvidersParams = DevicesListDeviceProvidersParams
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { DevicesGetParams, SeamHttpApiError } from '@seamapi/http/connect'
|
|
2
|
+
import { useSeamClient } from '@seamapi/react-query'
|
|
2
3
|
import type { Device } from '@seamapi/types/connect'
|
|
3
4
|
import { useQuery } from '@tanstack/react-query'
|
|
4
5
|
|
|
5
|
-
import { useSeamClient } from 'lib/seam/use-seam-client.js'
|
|
6
6
|
import type { UseSeamQueryResultLegacy } from 'lib/seam/use-seam-query-result.js'
|
|
7
7
|
|
|
8
8
|
export type UseDeviceParams = DevicesGetParams
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { DevicesListParams, SeamHttpApiError } from '@seamapi/http/connect'
|
|
2
|
+
import { useSeamClient } from '@seamapi/react-query'
|
|
2
3
|
import type { Device } from '@seamapi/types/connect'
|
|
3
4
|
import { useQuery, useQueryClient } from '@tanstack/react-query'
|
|
4
5
|
|
|
5
|
-
import { useSeamClient } from 'lib/seam/use-seam-client.js'
|
|
6
6
|
import type { UseSeamQueryResultLegacy } from 'lib/seam/use-seam-query-result.js'
|
|
7
7
|
|
|
8
8
|
export type UseDevicesParams = DevicesListParams
|
|
@@ -3,6 +3,7 @@ import type {
|
|
|
3
3
|
DevicesUpdateBody,
|
|
4
4
|
SeamHttpApiError,
|
|
5
5
|
} from '@seamapi/http/connect'
|
|
6
|
+
import { NullSeamClientError, useSeamClient } from '@seamapi/react-query'
|
|
6
7
|
import type { Device } from '@seamapi/types/connect'
|
|
7
8
|
import {
|
|
8
9
|
useMutation,
|
|
@@ -10,8 +11,6 @@ import {
|
|
|
10
11
|
useQueryClient,
|
|
11
12
|
} from '@tanstack/react-query'
|
|
12
13
|
|
|
13
|
-
import { NullSeamClientError, useSeamClient } from 'lib/seam/use-seam-client.js'
|
|
14
|
-
|
|
15
14
|
export type UseUpdateDeviceNameParams = never
|
|
16
15
|
|
|
17
16
|
export type UseUpdateDeviceNameData = undefined
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { EventsListParams, SeamHttpApiError } from '@seamapi/http/connect'
|
|
2
|
+
import { useSeamClient } from '@seamapi/react-query'
|
|
2
3
|
import type { SeamEvent } from '@seamapi/types/connect'
|
|
3
4
|
import { useQuery, useQueryClient } from '@tanstack/react-query'
|
|
4
5
|
|
|
5
|
-
import { useSeamClient } from 'lib/seam/use-seam-client.js'
|
|
6
6
|
import type { UseSeamQueryResultLegacy } from 'lib/seam/use-seam-query-result.js'
|
|
7
7
|
|
|
8
8
|
export type UseEventsParams = EventsListParams
|
package/src/lib/seam/index.ts
CHANGED
|
@@ -11,10 +11,4 @@ export * from './devices/use-device.js'
|
|
|
11
11
|
export * from './devices/use-device-providers.js'
|
|
12
12
|
export * from './devices/use-devices.js'
|
|
13
13
|
export * from './SeamProvider.js'
|
|
14
|
-
export * from './use-seam-client.js'
|
|
15
|
-
export * from './use-seam-infinite-query.js'
|
|
16
|
-
export * from './use-seam-mutation.js'
|
|
17
|
-
export * from './use-seam-mutation-without-workspace.js'
|
|
18
|
-
export * from './use-seam-query.js'
|
|
19
14
|
export * from './use-seam-query-result.js'
|
|
20
|
-
export * from './use-seam-query-without-workspace.js'
|
|
@@ -3,6 +3,7 @@ import type {
|
|
|
3
3
|
SeamActionAttemptTimeoutError,
|
|
4
4
|
SeamHttpApiError,
|
|
5
5
|
} from '@seamapi/http/connect'
|
|
6
|
+
import { NullSeamClientError, useSeamClient } from '@seamapi/react-query'
|
|
6
7
|
import type { ActionAttempt, Device } from '@seamapi/types/connect'
|
|
7
8
|
import {
|
|
8
9
|
useMutation,
|
|
@@ -10,8 +11,6 @@ import {
|
|
|
10
11
|
useQueryClient,
|
|
11
12
|
} from '@tanstack/react-query'
|
|
12
13
|
|
|
13
|
-
import { NullSeamClientError, useSeamClient } from 'lib/seam/use-seam-client.js'
|
|
14
|
-
|
|
15
14
|
export type UseToggleLockData = undefined
|
|
16
15
|
|
|
17
16
|
export type UseToggleLockMutationVariables = Pick<Device, 'device_id'> & {
|
|
@@ -2,10 +2,10 @@ import type {
|
|
|
2
2
|
NoiseSensorsNoiseThresholdsListParams,
|
|
3
3
|
SeamHttpApiError,
|
|
4
4
|
} from '@seamapi/http/connect'
|
|
5
|
+
import { useSeamClient } from '@seamapi/react-query'
|
|
5
6
|
import type { NoiseThreshold } from '@seamapi/types/connect'
|
|
6
7
|
import { useQuery, useQueryClient } from '@tanstack/react-query'
|
|
7
8
|
|
|
8
|
-
import { useSeamClient } from 'lib/seam/use-seam-client.js'
|
|
9
9
|
import type { UseSeamQueryResultLegacy } from 'lib/seam/use-seam-query-result.js'
|
|
10
10
|
|
|
11
11
|
export type UseNoiseThresholdsParams = NoiseSensorsNoiseThresholdsListParams
|
|
@@ -4,6 +4,7 @@ import type {
|
|
|
4
4
|
SeamHttpApiError,
|
|
5
5
|
ThermostatsCoolBody,
|
|
6
6
|
} from '@seamapi/http/connect'
|
|
7
|
+
import { NullSeamClientError, useSeamClient } from '@seamapi/react-query'
|
|
7
8
|
import type { ActionAttempt, Device } from '@seamapi/types/connect'
|
|
8
9
|
import {
|
|
9
10
|
useMutation,
|
|
@@ -15,7 +16,6 @@ import {
|
|
|
15
16
|
getCoolingSetPointCelsius,
|
|
16
17
|
getCoolingSetPointFahrenheit,
|
|
17
18
|
} from 'lib/seam/thermostats/unit-conversion.js'
|
|
18
|
-
import { NullSeamClientError, useSeamClient } from 'lib/seam/use-seam-client.js'
|
|
19
19
|
|
|
20
20
|
export type UseCoolThermostatParams = never
|
|
21
21
|
|
|
@@ -2,6 +2,7 @@ import type {
|
|
|
2
2
|
SeamHttpApiError,
|
|
3
3
|
ThermostatsCreateClimatePresetBody,
|
|
4
4
|
} from '@seamapi/http/connect'
|
|
5
|
+
import { NullSeamClientError, useSeamClient } from '@seamapi/react-query'
|
|
5
6
|
import {
|
|
6
7
|
useMutation,
|
|
7
8
|
type UseMutationResult,
|
|
@@ -13,7 +14,6 @@ import type {
|
|
|
13
14
|
ThermostatDevice,
|
|
14
15
|
} from 'lib/seam/thermostats/thermostat-device.js'
|
|
15
16
|
import { fahrenheitToCelsius } from 'lib/seam/thermostats/unit-conversion.js'
|
|
16
|
-
import { NullSeamClientError, useSeamClient } from 'lib/seam/use-seam-client.js'
|
|
17
17
|
|
|
18
18
|
export type UseCreateThermostatClimatePresetParams = never
|
|
19
19
|
export type UseCreateThermostatClimatePresetData = undefined
|
|
@@ -2,6 +2,7 @@ import type {
|
|
|
2
2
|
SeamHttpApiError,
|
|
3
3
|
ThermostatsDeleteClimatePresetParams,
|
|
4
4
|
} from '@seamapi/http/connect'
|
|
5
|
+
import { NullSeamClientError, useSeamClient } from '@seamapi/react-query'
|
|
5
6
|
import {
|
|
6
7
|
useMutation,
|
|
7
8
|
type UseMutationResult,
|
|
@@ -9,7 +10,6 @@ import {
|
|
|
9
10
|
} from '@tanstack/react-query'
|
|
10
11
|
|
|
11
12
|
import type { ThermostatDevice } from 'lib/seam/thermostats/thermostat-device.js'
|
|
12
|
-
import { NullSeamClientError, useSeamClient } from 'lib/seam/use-seam-client.js'
|
|
13
13
|
|
|
14
14
|
export type UseDeleteThermostatClimatePresetParams = never
|
|
15
15
|
|
|
@@ -4,6 +4,7 @@ import type {
|
|
|
4
4
|
SeamHttpApiError,
|
|
5
5
|
ThermostatsHeatCoolBody,
|
|
6
6
|
} from '@seamapi/http/connect'
|
|
7
|
+
import { NullSeamClientError, useSeamClient } from '@seamapi/react-query'
|
|
7
8
|
import type { ActionAttempt, Device } from '@seamapi/types/connect'
|
|
8
9
|
import {
|
|
9
10
|
useMutation,
|
|
@@ -17,7 +18,6 @@ import {
|
|
|
17
18
|
getHeatingSetPointCelsius,
|
|
18
19
|
getHeatingSetPointFahrenheit,
|
|
19
20
|
} from 'lib/seam/thermostats/unit-conversion.js'
|
|
20
|
-
import { NullSeamClientError, useSeamClient } from 'lib/seam/use-seam-client.js'
|
|
21
21
|
|
|
22
22
|
export type UseHeatCoolThermostatParams = never
|
|
23
23
|
|
|
@@ -4,6 +4,7 @@ import type {
|
|
|
4
4
|
SeamHttpApiError,
|
|
5
5
|
ThermostatsHeatBody,
|
|
6
6
|
} from '@seamapi/http/connect'
|
|
7
|
+
import { NullSeamClientError, useSeamClient } from '@seamapi/react-query'
|
|
7
8
|
import type { ActionAttempt, Device } from '@seamapi/types/connect'
|
|
8
9
|
import {
|
|
9
10
|
useMutation,
|
|
@@ -15,7 +16,6 @@ import {
|
|
|
15
16
|
getHeatingSetPointCelsius,
|
|
16
17
|
getHeatingSetPointFahrenheit,
|
|
17
18
|
} from 'lib/seam/thermostats/unit-conversion.js'
|
|
18
|
-
import { NullSeamClientError, useSeamClient } from 'lib/seam/use-seam-client.js'
|
|
19
19
|
|
|
20
20
|
export type UseHeatThermostatParams = never
|
|
21
21
|
|
|
@@ -4,6 +4,7 @@ import type {
|
|
|
4
4
|
SeamHttpApiError,
|
|
5
5
|
ThermostatsSetFanModeBody,
|
|
6
6
|
} from '@seamapi/http/connect'
|
|
7
|
+
import { NullSeamClientError, useSeamClient } from '@seamapi/react-query'
|
|
7
8
|
import type { ActionAttempt, Device } from '@seamapi/types/connect'
|
|
8
9
|
import {
|
|
9
10
|
useMutation,
|
|
@@ -11,8 +12,6 @@ import {
|
|
|
11
12
|
useQueryClient,
|
|
12
13
|
} from '@tanstack/react-query'
|
|
13
14
|
|
|
14
|
-
import { NullSeamClientError, useSeamClient } from 'lib/seam/use-seam-client.js'
|
|
15
|
-
|
|
16
15
|
export type UseSetThermostatFanModeParams = never
|
|
17
16
|
|
|
18
17
|
export type UseSetThermostatFanModeData = undefined
|
|
@@ -4,6 +4,7 @@ import type {
|
|
|
4
4
|
SeamHttpApiError,
|
|
5
5
|
ThermostatsOffBody,
|
|
6
6
|
} from '@seamapi/http/connect'
|
|
7
|
+
import { NullSeamClientError, useSeamClient } from '@seamapi/react-query'
|
|
7
8
|
import type { ActionAttempt, Device } from '@seamapi/types/connect'
|
|
8
9
|
import {
|
|
9
10
|
useMutation,
|
|
@@ -11,8 +12,6 @@ import {
|
|
|
11
12
|
useQueryClient,
|
|
12
13
|
} from '@tanstack/react-query'
|
|
13
14
|
|
|
14
|
-
import { NullSeamClientError, useSeamClient } from 'lib/seam/use-seam-client.js'
|
|
15
|
-
|
|
16
15
|
export type UseSetThermostatOffParams = never
|
|
17
16
|
|
|
18
17
|
export type UseSetThermostatOffData = undefined
|
|
@@ -2,6 +2,7 @@ import type {
|
|
|
2
2
|
SeamHttpApiError,
|
|
3
3
|
ThermostatsUpdateClimatePresetBody,
|
|
4
4
|
} from '@seamapi/http/connect'
|
|
5
|
+
import { NullSeamClientError, useSeamClient } from '@seamapi/react-query'
|
|
5
6
|
import {
|
|
6
7
|
useMutation,
|
|
7
8
|
type UseMutationResult,
|
|
@@ -13,7 +14,6 @@ import type {
|
|
|
13
14
|
ThermostatDevice,
|
|
14
15
|
} from 'lib/seam/thermostats/thermostat-device.js'
|
|
15
16
|
import { fahrenheitToCelsius } from 'lib/seam/thermostats/unit-conversion.js'
|
|
16
|
-
import { NullSeamClientError, useSeamClient } from 'lib/seam/use-seam-client.js'
|
|
17
17
|
|
|
18
18
|
export type UseUpdateThermostatClimatePresetParams = never
|
|
19
19
|
export type UseUpdateThermostatClimatePresetData = undefined
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { useSeamQueryContext } from '@seamapi/react-query'
|
|
1
2
|
import { useEffect, useLayoutEffect } from 'react'
|
|
2
3
|
|
|
3
4
|
import { useClientSession } from 'lib/seam/client-sessions/use-client-session.js'
|
|
4
|
-
import { useSeamQueryContext } from 'lib/seam/SeamQueryProvider.js'
|
|
5
5
|
|
|
6
6
|
import type { TelemetryClient } from './client.js'
|
|
7
7
|
import { useTelemetryContext } from './TelemetryProvider.js'
|
package/src/lib/version.ts
CHANGED