@pexip-engage-public/plugin-events
Advanced tools
Comparing version 1.0.26 to 1.0.27-canary-20230921163157
# @pexip-engage-public/plugin-events | ||
## 1.0.27-canary-20230921163157 | ||
### Patch Changes | ||
- 9f86bbf: SKED-11478: emit event when displaying a step in the booking flow | ||
## 1.0.26 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@pexip-engage-public/plugin-events", | ||
"version": "1.0.26", | ||
"version": "1.0.27-canary-20230921163157", | ||
"homepage": "https://github.com/skedify/frontend-mono/tree/develop/apps/plugin-remix/packages/plugin-events#readme", | ||
@@ -42,3 +42,3 @@ "bugs": { | ||
"@pexip-engage/tsconfig": "0.0.9", | ||
"eslint-config-pexip-engage": "0.0.38" | ||
"eslint-config-pexip-engage": "0.0.39" | ||
}, | ||
@@ -45,0 +45,0 @@ "volta": { |
@@ -16,2 +16,3 @@ import type { PluginState } from "@pexip-engage-public/plugin-state"; | ||
INVITE_ACCEPTED: "INVITE_ACCEPTED", | ||
STEP_SHOWN: "STEP_SHOWN", | ||
} as const; | ||
@@ -61,2 +62,3 @@ // eslint-disable-next-line @typescript-eslint/no-redeclare | ||
| StateUpdateMessage | ||
| StepShownMessage | ||
| PluginMisconfiguredMessage | ||
@@ -71,2 +73,20 @@ | PluginEventMessage | ||
export interface StepShownMessage { | ||
type: (typeof PluginEvent)["STEP_SHOWN"]; | ||
payload: { | ||
step: | ||
| "office" | ||
| "timetable" | ||
| "customer" | ||
| "questions" | ||
| "subject" | ||
| "employee" | ||
| "meeting-type"; | ||
subject?: { id: string; title: string }; | ||
office?: { id: string; title: string }; | ||
meetingType?: "video" | "phone" | "on_location" | "office"; | ||
employee?: { id: string; firstName: string | null; lastName: string | null }; | ||
}; | ||
} | ||
export interface PluginMisconfiguredMessage { | ||
@@ -78,3 +98,3 @@ type: PluginMisconfigured; | ||
export interface PluginEventMessage { | ||
type: PluginEvent; | ||
type: Exclude<PluginEvent, "STEP_SHOWN">; | ||
payload?: PluginError; | ||
@@ -81,0 +101,0 @@ } |
@@ -14,2 +14,3 @@ import type { PluginState } from "@pexip-engage-public/plugin-state"; | ||
readonly INVITE_ACCEPTED: "INVITE_ACCEPTED"; | ||
readonly STEP_SHOWN: "STEP_SHOWN"; | ||
}; | ||
@@ -49,3 +50,3 @@ export type PluginEvent = ValueOf<typeof PluginEvent>; | ||
export type PluginError = ValueOf<typeof PluginError>; | ||
export type IFrameMessage = StateUpdateMessage | PluginMisconfiguredMessage | PluginEventMessage | RequestEventMessage; | ||
export type IFrameMessage = StateUpdateMessage | StepShownMessage | PluginMisconfiguredMessage | PluginEventMessage | RequestEventMessage; | ||
export interface StateUpdateMessage { | ||
@@ -57,2 +58,22 @@ type: "STATE_UPDATE"; | ||
} | ||
export interface StepShownMessage { | ||
type: (typeof PluginEvent)["STEP_SHOWN"]; | ||
payload: { | ||
step: "office" | "timetable" | "customer" | "questions" | "subject" | "employee" | "meeting-type"; | ||
subject?: { | ||
id: string; | ||
title: string; | ||
}; | ||
office?: { | ||
id: string; | ||
title: string; | ||
}; | ||
meetingType?: "video" | "phone" | "on_location" | "office"; | ||
employee?: { | ||
id: string; | ||
firstName: string | null; | ||
lastName: string | null; | ||
}; | ||
}; | ||
} | ||
export interface PluginMisconfiguredMessage { | ||
@@ -63,3 +84,3 @@ type: PluginMisconfigured; | ||
export interface PluginEventMessage { | ||
type: PluginEvent; | ||
type: Exclude<PluginEvent, "STEP_SHOWN">; | ||
payload?: PluginError; | ||
@@ -66,0 +87,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60782
587
2