New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pexip-engage-public/plugin-events

Package Overview
Dependencies
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pexip-engage-public/plugin-events - npm Package Compare versions

Comparing version 2.0.0-canary-20231025101109 to 3.0.0-canary-20231026085920

15

CHANGELOG.md
# @pexip-engage-public/plugin-events
## 2.0.0-canary-20231025101109
## 3.0.0-canary-20231026085920

@@ -12,5 +12,14 @@ ### Major Changes

- Updated dependencies [f94a30b50]
- @pexip-engage-public/plugin-configuration@3.0.0-canary-20231026085920
- @pexip-engage-public/plugin-state@3.0.0-canary-20231026085920
## 1.0.30
### Patch Changes
- c49c5a4aa: SKED-11604: plugin-instance-hooks
- Updated dependencies [d5413de87]
- @pexip-engage-public/plugin-configuration@2.0.0-canary-20231025101109
- @pexip-engage-public/plugin-state@2.0.0-canary-20231025101109
- @pexip-engage-public/plugin-state@1.2.2
- @pexip-engage-public/plugin-configuration@1.2.0
- skedify-types@0.5.0

@@ -17,0 +26,0 @@ ## 1.0.29

250

dist/event-types.d.ts
import type { PluginState } from "@pexip-engage-public/plugin-state";
import type { ValueOf } from "./utils.js";
export declare const PluginEvent: {
readonly CREATION: "CREATION";
readonly ERROR: "ERROR";
readonly INIT: "INIT";
readonly LOADED: "LOADED";
readonly MISCONFIGURED: "MISCONFIGURED";
readonly APPOINTMENT_CANCELLED: "APPOINTMENT_CANCELLED";
readonly APPOINTMENT_COMPLETED: "APPOINTMENT_COMPLETED";
readonly APPOINTMENT_CREATED: "APPOINTMENT_CREATED";
readonly APPOINTMENT_EDITED: "APPOINTMENT_EDITED";
readonly INVITE_ACCEPTED: "INVITE_ACCEPTED";
readonly STEP_SHOWN: "STEP_SHOWN";
readonly CREATION: "CREATION";
readonly ERROR: "ERROR";
readonly INIT: "INIT";
readonly LOADED: "LOADED";
readonly MISCONFIGURED: "MISCONFIGURED";
readonly APPOINTMENT_CANCELLED: "APPOINTMENT_CANCELLED";
readonly APPOINTMENT_COMPLETED: "APPOINTMENT_COMPLETED";
readonly APPOINTMENT_CREATED: "APPOINTMENT_CREATED";
readonly APPOINTMENT_EDITED: "APPOINTMENT_EDITED";
readonly INVITE_ACCEPTED: "INVITE_ACCEPTED";
readonly STEP_SHOWN: "STEP_SHOWN";
};
export type PluginEvent = ValueOf<typeof PluginEvent>;
export declare const RequestEvent: {
readonly REQUEST_METADATA: "REQUEST_METADATA";
readonly REQUEST_GEOLOCATION: "REQUEST_GEOLOCATION";
readonly REQUEST_ORIGIN_URL: "REQUEST_ORIGIN_URL";
readonly CSS_VAR_UPDATE: "CSS_VAR_UPDATE";
readonly CUSTOM_CSS_UPDATE: "CUSTOM_CSS_UPDATE";
readonly PRE_APPOINTMENT_REQUEST: "PRE_APPOINTMENT_REQUEST";
readonly REQUEST_GEOLOCATION: "REQUEST_GEOLOCATION";
readonly REQUEST_ORIGIN_URL: "REQUEST_ORIGIN_URL";
readonly CSS_VAR_UPDATE: "CSS_VAR_UPDATE";
readonly CUSTOM_CSS_UPDATE: "CUSTOM_CSS_UPDATE";
};
export type RequestEvent = ValueOf<typeof RequestEvent>;
export declare const PluginMisconfigured: {
readonly EMPLOYEE_ID: "EMPLOYEE_ID";
readonly CLIENT_ID: "CLIENT_ID";
readonly CONTACT_HINTS: "CONTACT_HINTS";
readonly GEOLOCATION: "GEOLOCATION";
readonly INTENT_WITHOUT_RESOURCE_CODE: "INTENT_WITHOUT_RESOURCE_CODE";
readonly INVALID_FLOW: "INVALID_FLOW";
readonly INVALID_INTENT: "INVALID_INTENT";
readonly INVALID_RESOURCE_CODE: "INVALID_RESOURCE_CODE";
readonly LISTING_ID: "LISTING_ID";
readonly MEETING_TYPE: "MEETING_TYPE";
readonly OFFICE_ID: "OFFICE_ID";
readonly RESOURCE_CODE: "RESOURCE_CODE";
readonly SUBJECT_ID: "SUBJECT_ID";
readonly TIMEZONE: "TIMEZONE";
readonly EMPLOYEE_ID: "EMPLOYEE_ID";
readonly CLIENT_ID: "CLIENT_ID";
readonly CONTACT_HINTS: "CONTACT_HINTS";
readonly GEOLOCATION: "GEOLOCATION";
readonly INTENT_WITHOUT_RESOURCE_CODE: "INTENT_WITHOUT_RESOURCE_CODE";
readonly INVALID_FLOW: "INVALID_FLOW";
readonly INVALID_INTENT: "INVALID_INTENT";
readonly INVALID_RESOURCE_CODE: "INVALID_RESOURCE_CODE";
readonly LISTING_ID: "LISTING_ID";
readonly MEETING_TYPE: "MEETING_TYPE";
readonly OFFICE_ID: "OFFICE_ID";
readonly RESOURCE_CODE: "RESOURCE_CODE";
readonly SUBJECT_ID: "SUBJECT_ID";
readonly TIMEZONE: "TIMEZONE";
};
export type PluginMisconfigured = ValueOf<typeof PluginMisconfigured>;
export declare const PluginError: {
readonly API_DOWN: "API_DOWN";
readonly RECAPTCHA_SCRIPT_LOAD: "RECAPTCHA_SCRIPT_LOAD";
readonly SUB_DATE_INTERPOLATION: "SUB_DATE_INTERPOLATION";
readonly TRANSLATION: "TRANSLATION";
readonly API_DOWN: "API_DOWN";
readonly RECAPTCHA_SCRIPT_LOAD: "RECAPTCHA_SCRIPT_LOAD";
readonly SUB_DATE_INTERPOLATION: "SUB_DATE_INTERPOLATION";
readonly TRANSLATION: "TRANSLATION";
};
export type PluginError = ValueOf<typeof PluginError>;
export type IFrameMessage =
| StateUpdateMessage
| StepShownMessage
| PluginMisconfiguredMessage
| PluginEventMessage
| RequestEventMessage;
export type IFrameMessage = StateUpdateMessage | StepShownMessage | PluginMisconfiguredMessage | PluginEventMessage | RequestEventMessage<RequestEvent>;
export interface StateUpdateMessage {
type: "STATE_UPDATE";
payload: PluginState & {
subjectCategoryId?: string;
};
type: "STATE_UPDATE";
payload: PluginState & {
subjectCategoryId?: string;
};
}
export interface StepShownMessage {
type: (typeof PluginEvent)["STEP_SHOWN"];
payload: {
step:
| "office"
| "timetable"
| "customer"
| "questions"
| "subject"
| "employee"
| "meeting-type";
subject?: {
id: string;
title?: string;
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" | "VIDEO" | "PHONE" | "ON_LOCATION" | "OFFICE";
employee?: {
id: string;
firstName?: string | null;
lastName?: string | null;
};
};
office?: {
id: string;
title?: string;
};
meetingType?:
| "video"
| "phone"
| "on_location"
| "office"
| "VIDEO"
| "PHONE"
| "ON_LOCATION"
| "OFFICE";
employee?: {
id: string;
firstName?: string | null;
lastName?: string | null;
};
};
}
export interface PluginMisconfiguredMessage {
type: PluginMisconfigured;
payload?: string;
type: PluginMisconfigured;
payload?: string;
}
export interface PluginEventMessage {
type: Exclude<PluginEvent, "STEP_SHOWN">;
payload?: PluginError;
type: Exclude<PluginEvent, "STEP_SHOWN">;
payload?: PluginError;
}
export interface RequestEventMessage {
type: RequestEvent;
export interface RequestEventMessage<T extends RequestEvent> {
type: T;
payload: IFrameRequestPayloadMap[T];
}
export type IFrameObjectMessage =
| MetadataResponseMessage
| GeolocationResponseMessage
| CssVarUpdateResponseMessage
| OriginResponseMessage
| CustomCssUpdateResponseMessage;
export type IFrameObjectMessage = PreAppointmentRequestResponseMessage | GeolocationResponseMessage | CssVarUpdateResponseMessage | OriginResponseMessage | CustomCssUpdateResponseMessage;
export interface IFrameRequestPayloadMap {
[RequestEvent.PRE_APPOINTMENT_REQUEST]: PreAppointmentRequestPayload;
[RequestEvent.REQUEST_GEOLOCATION]: null;
[RequestEvent.REQUEST_ORIGIN_URL]: null;
[RequestEvent.CSS_VAR_UPDATE]: null;
[RequestEvent.CUSTOM_CSS_UPDATE]: null;
}
export interface IFrameResponseMap {
[RequestEvent.REQUEST_METADATA]: MetadataResponseMessage["payload"];
[RequestEvent.REQUEST_GEOLOCATION]: GeolocationResponseMessage["payload"];
[RequestEvent.REQUEST_ORIGIN_URL]: OriginResponseMessage["payload"];
[RequestEvent.CSS_VAR_UPDATE]: CssVarUpdateResponseMessage["payload"];
[RequestEvent.CUSTOM_CSS_UPDATE]: CustomCssUpdateResponseMessage["payload"];
[RequestEvent.PRE_APPOINTMENT_REQUEST]: PreAppointmentRequestResponseMessage["payload"];
[RequestEvent.REQUEST_GEOLOCATION]: GeolocationResponseMessage["payload"];
[RequestEvent.REQUEST_ORIGIN_URL]: OriginResponseMessage["payload"];
[RequestEvent.CSS_VAR_UPDATE]: CssVarUpdateResponseMessage["payload"];
[RequestEvent.CUSTOM_CSS_UPDATE]: CustomCssUpdateResponseMessage["payload"];
}
export interface MetadataResponseMessage {
type: (typeof RequestEvent)["REQUEST_METADATA"];
payload: Record<string, unknown> | null;
export interface PreAppointmentRequestResponseMessage {
type: (typeof RequestEvent)["PRE_APPOINTMENT_REQUEST"];
payload: {
meta: Record<string, unknown>;
};
}
export interface GeolocationResponseMessage {
type: (typeof RequestEvent)["REQUEST_GEOLOCATION"];
payload:
| GeolocationPosition
| {
type: (typeof RequestEvent)["REQUEST_GEOLOCATION"];
payload: GeolocationPosition | {
error: string;
};
};
}
export interface CssVarUpdateResponseMessage {
type: typeof RequestEvent.CSS_VAR_UPDATE;
payload: {
name: string;
value: string;
};
type: typeof RequestEvent.CSS_VAR_UPDATE;
payload: {
name: string;
value: string;
};
}
export interface CustomCssUpdateResponseMessage {
type: typeof RequestEvent.CUSTOM_CSS_UPDATE;
payload: {
css: string;
};
type: typeof RequestEvent.CUSTOM_CSS_UPDATE;
payload: {
css: string;
};
}
export interface OriginResponseMessage {
type: typeof RequestEvent.REQUEST_ORIGIN_URL;
payload: {
href: string;
};
type: typeof RequestEvent.REQUEST_ORIGIN_URL;
payload: {
href: string;
};
}
//# sourceMappingURL=event-types.d.ts.map
export interface PreAppointmentRequestPayload {
employee?: {
externalId?: string;
firstName?: string;
lastName?: string;
};
meetingType: "OFFICE" | "PHONE" | "VIDEO" | "ON_LOCATION";
office: {
externalId?: string;
title: string;
};
subject: {
externalId?: string;
title: string;
};
customer: {
externalId?: string;
firstName?: string;
lastName?: string;
};
questions: ReadonlyArray<{
label: string;
externalId?: string;
answer: {
type: Exclude<NextGenQuestionInputType, "SELECT" | "MULTI_SELECT">;
value?: string;
} | {
type: Extract<NextGenQuestionInputType, "SELECT" | "MULTI_SELECT">;
selectedAnswerOptions: ReadonlyArray<{
externalId?: string;
value?: string;
label: string;
}>;
};
}>;
}
export type NextGenQuestionInputType = "ADDRESS" | "BOOLEAN" | "DATE" | "DATE_TIME" | "EMAIL" | "FETCH" | "LONG_TEXT" | "MULTI_SELECT" | "NUMBER" | "PHONE" | "SELECT" | "SHORT_TEXT" | "URL";
//# sourceMappingURL=event-types.d.ts.map
export const PluginEvent = {
CREATION: "CREATION",
ERROR: "ERROR",
INIT: "INIT",
LOADED: "LOADED",
MISCONFIGURED: "MISCONFIGURED",
APPOINTMENT_CANCELLED: "APPOINTMENT_CANCELLED",
APPOINTMENT_COMPLETED: "APPOINTMENT_COMPLETED",
APPOINTMENT_CREATED: "APPOINTMENT_CREATED",
APPOINTMENT_EDITED: "APPOINTMENT_EDITED",
INVITE_ACCEPTED: "INVITE_ACCEPTED",
STEP_SHOWN: "STEP_SHOWN",
CREATION: "CREATION",
ERROR: "ERROR",
INIT: "INIT",
LOADED: "LOADED",
MISCONFIGURED: "MISCONFIGURED",
APPOINTMENT_CANCELLED: "APPOINTMENT_CANCELLED",
APPOINTMENT_COMPLETED: "APPOINTMENT_COMPLETED",
APPOINTMENT_CREATED: "APPOINTMENT_CREATED",
APPOINTMENT_EDITED: "APPOINTMENT_EDITED",
INVITE_ACCEPTED: "INVITE_ACCEPTED",
STEP_SHOWN: "STEP_SHOWN",
};
export const RequestEvent = {
REQUEST_METADATA: "REQUEST_METADATA",
REQUEST_GEOLOCATION: "REQUEST_GEOLOCATION",
REQUEST_ORIGIN_URL: "REQUEST_ORIGIN_URL",
CSS_VAR_UPDATE: "CSS_VAR_UPDATE",
CUSTOM_CSS_UPDATE: "CUSTOM_CSS_UPDATE",
PRE_APPOINTMENT_REQUEST: "PRE_APPOINTMENT_REQUEST",
REQUEST_GEOLOCATION: "REQUEST_GEOLOCATION",
REQUEST_ORIGIN_URL: "REQUEST_ORIGIN_URL",
CSS_VAR_UPDATE: "CSS_VAR_UPDATE",
CUSTOM_CSS_UPDATE: "CUSTOM_CSS_UPDATE",
};
export const PluginMisconfigured = {
EMPLOYEE_ID: "EMPLOYEE_ID",
CLIENT_ID: "CLIENT_ID",
CONTACT_HINTS: "CONTACT_HINTS",
GEOLOCATION: "GEOLOCATION",
INTENT_WITHOUT_RESOURCE_CODE: "INTENT_WITHOUT_RESOURCE_CODE",
INVALID_FLOW: "INVALID_FLOW",
INVALID_INTENT: "INVALID_INTENT",
INVALID_RESOURCE_CODE: "INVALID_RESOURCE_CODE",
LISTING_ID: "LISTING_ID",
MEETING_TYPE: "MEETING_TYPE",
OFFICE_ID: "OFFICE_ID",
RESOURCE_CODE: "RESOURCE_CODE",
SUBJECT_ID: "SUBJECT_ID",
TIMEZONE: "TIMEZONE",
EMPLOYEE_ID: "EMPLOYEE_ID",
CLIENT_ID: "CLIENT_ID",
CONTACT_HINTS: "CONTACT_HINTS",
GEOLOCATION: "GEOLOCATION",
INTENT_WITHOUT_RESOURCE_CODE: "INTENT_WITHOUT_RESOURCE_CODE",
INVALID_FLOW: "INVALID_FLOW",
INVALID_INTENT: "INVALID_INTENT",
INVALID_RESOURCE_CODE: "INVALID_RESOURCE_CODE",
LISTING_ID: "LISTING_ID",
MEETING_TYPE: "MEETING_TYPE",
OFFICE_ID: "OFFICE_ID",
RESOURCE_CODE: "RESOURCE_CODE",
SUBJECT_ID: "SUBJECT_ID",
TIMEZONE: "TIMEZONE",
};
export const PluginError = {
API_DOWN: "API_DOWN",
RECAPTCHA_SCRIPT_LOAD: "RECAPTCHA_SCRIPT_LOAD",
SUB_DATE_INTERPOLATION: "SUB_DATE_INTERPOLATION",
TRANSLATION: "TRANSLATION",
API_DOWN: "API_DOWN",
RECAPTCHA_SCRIPT_LOAD: "RECAPTCHA_SCRIPT_LOAD",
SUB_DATE_INTERPOLATION: "SUB_DATE_INTERPOLATION",
TRANSLATION: "TRANSLATION",
};
{
"name": "@pexip-engage-public/plugin-events",
"version": "2.0.0-canary-20231025101109",
"version": "3.0.0-canary-20231026085920",
"homepage": "https://github.com/skedify/frontend-mono/tree/develop/apps/plugin-remix/packages/plugin-events#readme",

@@ -22,5 +22,3 @@ "bugs": {

"exports": {
".": {
"import": "./dist/index.js"
}
".": "./dist/index.js"
},

@@ -33,9 +31,9 @@ "files": [

"dependencies": {
"@pexip-engage-public/plugin-configuration": "2.0.0-canary-20231025101109",
"@pexip-engage-public/plugin-state": "2.0.0-canary-20231025101109"
"@pexip-engage-public/plugin-configuration": "3.0.0-canary-20231026085920",
"@pexip-engage-public/plugin-state": "3.0.0-canary-20231026085920"
},
"devDependencies": {
"@eslint/eslintrc": "^2.1.2",
"@pexip-engage/tsconfig": "0.0.10-canary-20231025101109",
"eslint-config-pexip-engage": "0.0.41-canary-20231025101109"
"eslint-config-pexip-engage": "0.0.41",
"@pexip-engage/tsconfig": "0.0.10-canary-20231026085920"
},

@@ -42,0 +40,0 @@ "volta": {

@@ -22,3 +22,3 @@ import type { PluginState } from "@pexip-engage-public/plugin-state";

export const RequestEvent = {
REQUEST_METADATA: "REQUEST_METADATA",
PRE_APPOINTMENT_REQUEST: "PRE_APPOINTMENT_REQUEST",
REQUEST_GEOLOCATION: "REQUEST_GEOLOCATION",

@@ -65,3 +65,3 @@ REQUEST_ORIGIN_URL: "REQUEST_ORIGIN_URL",

| PluginEventMessage
| RequestEventMessage;
| RequestEventMessage<RequestEvent>;

@@ -109,8 +109,9 @@ export interface StateUpdateMessage {

export interface RequestEventMessage {
type: RequestEvent;
export interface RequestEventMessage<T extends RequestEvent> {
type: T;
payload: IFrameRequestPayloadMap[T];
}
export type IFrameObjectMessage =
| MetadataResponseMessage
| PreAppointmentRequestResponseMessage
| GeolocationResponseMessage

@@ -121,4 +122,12 @@ | CssVarUpdateResponseMessage

export interface IFrameRequestPayloadMap {
[RequestEvent.PRE_APPOINTMENT_REQUEST]: PreAppointmentRequestPayload;
[RequestEvent.REQUEST_GEOLOCATION]: null;
[RequestEvent.REQUEST_ORIGIN_URL]: null;
[RequestEvent.CSS_VAR_UPDATE]: null;
[RequestEvent.CUSTOM_CSS_UPDATE]: null;
}
export interface IFrameResponseMap {
[RequestEvent.REQUEST_METADATA]: MetadataResponseMessage["payload"];
[RequestEvent.PRE_APPOINTMENT_REQUEST]: PreAppointmentRequestResponseMessage["payload"];
[RequestEvent.REQUEST_GEOLOCATION]: GeolocationResponseMessage["payload"];

@@ -130,5 +139,5 @@ [RequestEvent.REQUEST_ORIGIN_URL]: OriginResponseMessage["payload"];

export interface MetadataResponseMessage {
type: (typeof RequestEvent)["REQUEST_METADATA"];
payload: Record<string, unknown> | null;
export interface PreAppointmentRequestResponseMessage {
type: (typeof RequestEvent)["PRE_APPOINTMENT_REQUEST"];
payload: { meta: Record<string, unknown> };
}

@@ -155,1 +164,41 @@

}
export interface PreAppointmentRequestPayload {
employee?: { externalId?: string; firstName?: string; lastName?: string };
meetingType: "OFFICE" | "PHONE" | "VIDEO" | "ON_LOCATION";
office: { externalId?: string; title: string };
subject: { externalId?: string; title: string };
customer: { externalId?: string; firstName?: string; lastName?: string };
questions: ReadonlyArray<{
label: string;
externalId?: string;
answer:
| {
type: Exclude<NextGenQuestionInputType, "SELECT" | "MULTI_SELECT">;
value?: string;
}
| {
type: Extract<NextGenQuestionInputType, "SELECT" | "MULTI_SELECT">;
selectedAnswerOptions: ReadonlyArray<{
externalId?: string;
value?: string;
label: string;
}>;
};
}>;
}
export type NextGenQuestionInputType =
| "ADDRESS"
| "BOOLEAN"
| "DATE"
| "DATE_TIME"
| "EMAIL"
| "FETCH"
| "LONG_TEXT"
| "MULTI_SELECT"
| "NUMBER"
| "PHONE"
| "SELECT"
| "SHORT_TEXT"
| "URL";

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc