novo-elements 9.2.0-next.4 → 9.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "novo-elements",
3
- "version": "9.2.0-next.4",
3
+ "version": "9.2.0",
4
4
  "sideEffects": true,
5
5
  "peerDependencies": {
6
6
  "@angular/animations": ">=10",
@@ -1,11 +1,36 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
- import { AppBridgeHandler, AlleyLinkColors, IAppBridgeOpenEvent, IAppBridgeOpenListEvent, MESSAGE_TYPES } from './interfaces';
3
- declare type ValueOf<T> = T[keyof T];
4
- declare type MessageType = ValueOf<typeof MESSAGE_TYPES>;
5
- export interface PostRobotEvent<T> {
6
- data: T;
7
- origin: string;
8
- source: Window;
2
+ export declare enum AppBridgeHandler {
3
+ HTTP = 0,
4
+ OPEN = 1,
5
+ OPEN_LIST = 2,
6
+ CLOSE = 3,
7
+ REFRESH = 4,
8
+ PIN = 5,
9
+ REGISTER = 6,
10
+ UPDATE = 7,
11
+ REQUEST_DATA = 8,
12
+ CALLBACK = 9,
13
+ PING = 10
14
+ }
15
+ export declare type NovoApps = 'record' | 'add' | 'fast-add' | 'slide-out-add' | 'custom' | 'preview';
16
+ export declare type AlleyLinkColors = 'purple' | 'green' | 'blue' | 'lead' | 'candidate' | 'contact' | 'company' | 'opportunity' | 'job' | 'billable-charge' | 'earn-code' | 'invoice-statement' | 'job-code' | 'payable-charge' | 'sales-tax-rate' | 'tax-rules' | 'submission' | 'placement' | 'navigation' | 'canvas' | 'neutral' | 'neutral-italic' | 'initial' | 'distributionList' | 'contract';
17
+ export interface IAppBridgeOpenEvent {
18
+ type: NovoApps;
19
+ entityType: string;
20
+ entityId?: string;
21
+ tab?: string;
22
+ data?: any;
23
+ passthrough?: string;
24
+ }
25
+ export declare type MosaicLists = 'Candidate' | 'ClientContact' | 'ClientCorporation' | 'JobOrder' | 'JobSubmission' | 'JobPosting' | 'Placement' | 'Lead' | 'Opportunity';
26
+ export interface IAppBridgeOpenListEvent {
27
+ type: MosaicLists;
28
+ keywords: Array<string>;
29
+ criteria: any;
30
+ }
31
+ export declare type NovoDataType = 'entitlements' | 'settings' | 'user';
32
+ export interface IAppBridgeRequestDataEvent {
33
+ type: NovoDataType;
9
34
  }
10
35
  export declare class AppBridgeService {
11
36
  create(name: string): AppBridge;
@@ -23,20 +48,11 @@ export declare class AppBridge {
23
48
  private _handlers;
24
49
  private _tracing;
25
50
  private _eventListeners;
26
- private postRobot;
27
- constructor(traceName?: string, postRobotRef?: any);
51
+ constructor(traceName?: string);
28
52
  set tracing(tracing: boolean);
29
53
  handle(type: AppBridgeHandler, handler: Function): void;
30
54
  private _trace;
31
55
  protected _setupHandlers(): void;
32
- protected windowOrigin(): string;
33
- handleMessage<T>({ msgType, handler, packet, echoPacket, resolveEventData }: {
34
- msgType: MessageType;
35
- handler: AppBridgeHandler;
36
- packet: T;
37
- echoPacket: any;
38
- resolveEventData: (any: any) => boolean;
39
- }): Promise<boolean>;
40
56
  /**
41
57
  * Fires or responds to an open event
42
58
  * @param packet any - packet of data to send with the open event
@@ -99,31 +115,23 @@ export declare class AppBridge {
99
115
  /**
100
116
  * Fires or responds to an HTTP_GET event
101
117
  * @param packet any - packet of data to send with the event
102
- * @param timeout - how long to attempt the request before reporting an error
103
- * @param originStack - the domain of the previous frame(s) the request originated from
104
118
  */
105
- httpGET(relativeURL: string, timeout?: number, originStack?: string[]): Promise<any>;
119
+ httpGET(relativeURL: string, timeout?: number): Promise<any>;
106
120
  /**
107
121
  * Fires or responds to an HTTP_POST event
108
122
  * @param packet any - packet of data to send with the event
109
- * @param timeout - how long to attempt the request before reporting an error
110
- * @param originStack - the domain of the previous frame(s) the request originated from
111
123
  */
112
- httpPOST(relativeURL: string, postData: any, timeout?: number, originStack?: string[]): Promise<any>;
124
+ httpPOST(relativeURL: string, postData: any, timeout?: number): Promise<any>;
113
125
  /**
114
126
  * Fires or responds to an HTTP_PUT event
115
127
  * @param packet any - packet of data to send with the event
116
- * @param timeout - how long to attempt the request before reporting an error
117
- * @param originStack - the domain of the previous frame(s) the request originated from
118
128
  */
119
- httpPUT(relativeURL: string, putData: any, timeout?: number, originStack?: string[]): Promise<any>;
129
+ httpPUT(relativeURL: string, putData: any, timeout?: number): Promise<any>;
120
130
  /**
121
131
  * Fires or responds to an HTTP_DELETE event
122
132
  * @param packet any - packet of data to send with the event
123
- * @param timeout - how long to attempt the request before reporting an error
124
- * @param originStack - the domain of the previous frame(s) the request originated from
125
133
  */
126
- httpDELETE(relativeURL: string, timeout?: number, originStack?: string[]): Promise<any>;
134
+ httpDELETE(relativeURL: string, timeout?: number): Promise<any>;
127
135
  /**
128
136
  * Fires a custom event to anywhere in the application
129
137
  * @param event string - event name to fire
@@ -177,4 +185,3 @@ export declare class DevAppBridge extends AppBridge {
177
185
  httpDELETE(relativeURL: string): Promise<any>;
178
186
  private getCookie;
179
187
  }
180
- export {};
@@ -1,2 +1 @@
1
1
  export * from './AppBridge';
2
- export * from './interfaces';
@@ -1,38 +0,0 @@
1
- export var AppBridgeHandler;
2
- (function (AppBridgeHandler) {
3
- AppBridgeHandler[AppBridgeHandler["HTTP"] = 0] = "HTTP";
4
- AppBridgeHandler[AppBridgeHandler["OPEN"] = 1] = "OPEN";
5
- AppBridgeHandler[AppBridgeHandler["OPEN_LIST"] = 2] = "OPEN_LIST";
6
- AppBridgeHandler[AppBridgeHandler["CLOSE"] = 3] = "CLOSE";
7
- AppBridgeHandler[AppBridgeHandler["REFRESH"] = 4] = "REFRESH";
8
- AppBridgeHandler[AppBridgeHandler["PIN"] = 5] = "PIN";
9
- AppBridgeHandler[AppBridgeHandler["REGISTER"] = 6] = "REGISTER";
10
- AppBridgeHandler[AppBridgeHandler["UPDATE"] = 7] = "UPDATE";
11
- AppBridgeHandler[AppBridgeHandler["REQUEST_DATA"] = 8] = "REQUEST_DATA";
12
- AppBridgeHandler[AppBridgeHandler["CALLBACK"] = 9] = "CALLBACK";
13
- AppBridgeHandler[AppBridgeHandler["PING"] = 10] = "PING";
14
- })(AppBridgeHandler || (AppBridgeHandler = {}));
15
- export const HTTP_VERBS = {
16
- GET: 'get',
17
- POST: 'post',
18
- PUT: 'put',
19
- DELETE: 'delete',
20
- };
21
- export const MESSAGE_TYPES = {
22
- REGISTER: 'register',
23
- OPEN: 'open',
24
- OPEN_LIST: 'openList',
25
- CLOSE: 'close',
26
- REFRESH: 'refresh',
27
- PIN: 'pin',
28
- PING: 'ping',
29
- UPDATE: 'update',
30
- HTTP_GET: 'httpGET',
31
- HTTP_POST: 'httpPOST',
32
- HTTP_PUT: 'httpPUT',
33
- HTTP_DELETE: 'httpDELETE',
34
- CUSTOM_EVENT: 'customEvent',
35
- REQUEST_DATA: 'requestData',
36
- CALLBACK: 'callback',
37
- };
38
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJmYWNlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25vdm8tZWxlbWVudHMvc3JjL3V0aWxzL2FwcC1icmlkZ2UvaW50ZXJmYWNlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSxnQkFZWDtBQVpELFdBQVksZ0JBQWdCO0lBQzFCLHVEQUFJLENBQUE7SUFDSix1REFBSSxDQUFBO0lBQ0osaUVBQVMsQ0FBQTtJQUNULHlEQUFLLENBQUE7SUFDTCw2REFBTyxDQUFBO0lBQ1AscURBQUcsQ0FBQTtJQUNILCtEQUFRLENBQUE7SUFDUiwyREFBTSxDQUFBO0lBQ04sdUVBQVksQ0FBQTtJQUNaLCtEQUFRLENBQUE7SUFDUix3REFBSSxDQUFBO0FBQ04sQ0FBQyxFQVpXLGdCQUFnQixLQUFoQixnQkFBZ0IsUUFZM0I7QUFxRUQsTU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fCAnaHR0cERFTEVURScgfCAnY3VzdG9tRXZlbnQnIHwgJ3JlcXVlc3REYXRhJyB8ICdjYWxsYmFjayc7XG5cbmV4cG9ydCBjb25zdCBNRVNTQUdFX1RZUEVTID0ge1xuICBSRUdJU1RFUjogJ3JlZ2lzdGVyJyxcbiAgT1BFTjogJ29wZW4nLFxuICBPUEVOX0xJU1Q6ICdvcGVuTGlzdCcsXG4gIENMT1NFOiAnY2xvc2UnLFxuICBSRUZSRVNIOiAncmVmcmVzaCcsXG4gIFBJTjogJ3BpbicsXG4gIFBJTkc6ICdwaW5nJyxcbiAgVVBEQVRFOiAndXBkYXRlJyxcbiAgSFRUUF9HRVQ6ICdodHRwR0VUJyxcbiAgSFRUUF9QT1NUOiAnaHR0cFBPU1QnLFxuICBIVFRQX1BVVDogJ2h0dHBQVVQnLFxuICBIVFRQX0RFTEVURTogJ2h0dHBERUxFVEUnLFxuICBDVVNUT01fRVZFTlQ6ICdjdXN0b21FdmVudCcsXG4gIFJFUVVFU1RfREFUQTogJ3JlcXVlc3REYXRhJyxcbiAgQ0FMTEJBQ0s6ICdjYWxsYmFjaycsXG59OyJdfQ==
@@ -1,58 +0,0 @@
1
- export declare enum AppBridgeHandler {
2
- HTTP = 0,
3
- OPEN = 1,
4
- OPEN_LIST = 2,
5
- CLOSE = 3,
6
- REFRESH = 4,
7
- PIN = 5,
8
- REGISTER = 6,
9
- UPDATE = 7,
10
- REQUEST_DATA = 8,
11
- CALLBACK = 9,
12
- PING = 10
13
- }
14
- export declare type NovoApps = 'record' | 'add' | 'fast-add' | 'slide-out-add' | 'custom' | 'preview';
15
- export declare type AlleyLinkColors = 'purple' | 'green' | 'blue' | 'lead' | 'candidate' | 'contact' | 'company' | 'opportunity' | 'job' | 'billable-charge' | 'earn-code' | 'invoice-statement' | 'job-code' | 'payable-charge' | 'sales-tax-rate' | 'tax-rules' | 'submission' | 'placement' | 'navigation' | 'canvas' | 'neutral' | 'neutral-italic' | 'initial' | 'distributionList' | 'contract';
16
- export interface IAppBridgeOpenEvent {
17
- type: NovoApps;
18
- entityType: string;
19
- entityId?: string;
20
- tab?: string;
21
- data?: any;
22
- passthrough?: string;
23
- }
24
- export declare type MosaicLists = 'Candidate' | 'ClientContact' | 'ClientCorporation' | 'JobOrder' | 'JobSubmission' | 'JobPosting' | 'Placement' | 'Lead' | 'Opportunity';
25
- export interface IAppBridgeOpenListEvent {
26
- type: MosaicLists;
27
- keywords: Array<string>;
28
- criteria: any;
29
- }
30
- export declare type NovoDataType = 'entitlements' | 'settings' | 'user';
31
- export interface IAppBridgeRequestDataEvent {
32
- type: NovoDataType;
33
- }
34
- export declare type HttpVerb = 'get' | 'post' | 'put' | 'delete';
35
- export declare const HTTP_VERBS: {
36
- GET: string;
37
- POST: string;
38
- PUT: string;
39
- DELETE: string;
40
- };
41
- export declare type MessageType = 'register' | 'open' | 'openList' | 'close' | 'refresh' | 'pin' | 'ping' | 'update' | 'httpGET' | 'httpPOST' | 'httpPUT' | 'httpDELETE' | 'customEvent' | 'requestData' | 'callback';
42
- export declare const MESSAGE_TYPES: {
43
- REGISTER: string;
44
- OPEN: string;
45
- OPEN_LIST: string;
46
- CLOSE: string;
47
- REFRESH: string;
48
- PIN: string;
49
- PING: string;
50
- UPDATE: string;
51
- HTTP_GET: string;
52
- HTTP_POST: string;
53
- HTTP_PUT: string;
54
- HTTP_DELETE: string;
55
- CUSTOM_EVENT: string;
56
- REQUEST_DATA: string;
57
- CALLBACK: string;
58
- };