@bondsports/types 2.4.84-a-3 → 2.4.84-a-4

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.
@@ -1,7 +1,7 @@
1
1
  import Stripe from 'stripe';
2
2
  import { TerminalActionResponseDto } from '../dto/terminal-actions.dto';
3
3
  import { ITerminalActionInitiatedBy, ITerminalActiveAction } from './terminal-action.types';
4
- import { TerminalReaderActionTypeEnum } from './terminal-readers.enums';
4
+ import { TerminalReaderActionTypeEnum, TerminalReaderStatusEnum } from './terminal-readers.enums';
5
5
  export type StripeReaderAction = (Stripe.Terminal.Reader.Action & {
6
6
  id?: string;
7
7
  }) | null;
@@ -14,6 +14,7 @@ export interface IBusyState {
14
14
  export interface IBusyStateSnapshot {
15
15
  busyState: IBusyState;
16
16
  previous: ITerminalActiveAction | null;
17
+ readerStatus: TerminalReaderStatusEnum | null;
17
18
  }
18
19
  export interface ITriggerDecisionDispatch {
19
20
  actionDispatchedLogMeta: {
@@ -26,11 +27,14 @@ export interface ITriggerDecisionRejectBusy {
26
27
  busyState: IBusyState;
27
28
  kind: 'reject_busy';
28
29
  }
30
+ export interface ITriggerDecisionRejectOffline {
31
+ kind: 'reject_offline';
32
+ }
29
33
  export interface ITriggerDecisionForceOverride {
30
34
  forceParams: IForceActionTriggerParams;
31
35
  kind: 'force_override';
32
36
  }
33
- export type TTriggerDecision = ITriggerDecisionDispatch | ITriggerDecisionRejectBusy | ITriggerDecisionForceOverride;
37
+ export type TTriggerDecision = ITriggerDecisionDispatch | ITriggerDecisionRejectBusy | ITriggerDecisionRejectOffline | ITriggerDecisionForceOverride;
34
38
  export interface IActionLogTemplates {
35
39
  actionDispatched: string;
36
40
  dispatchContention: string;
@@ -38,6 +42,7 @@ export interface IActionLogTemplates {
38
42
  forceOverrideInFlightAction: string;
39
43
  overrideContention: string;
40
44
  readerBusyRejected: string;
45
+ readerOfflineRejected: string;
41
46
  }
42
47
  export interface IExecuteActionTriggerParams {
43
48
  organizationId: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.4.84-a-3",
3
+ "version": "2.4.84-a-4",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {