@adobe/exc-app 1.5.2 → 1.5.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.
- package/RuntimeConfiguration.d.ts +7 -32
- package/RuntimeConfiguration.js.map +1 -1
- package/ai.d.ts +5 -1
- package/ai.js +4 -0
- package/ai.js.map +1 -1
- package/appapi.d.ts +1 -1
- package/appapi.js +1 -1
- package/appapi.js.map +1 -1
- package/docs/docs_html/assets/hierarchy.js +1 -0
- package/docs/docs_html/assets/icons.js +18 -0
- package/docs/docs_html/assets/main.js +60 -0
- package/docs/docs_html/assets/navigation.js +1 -0
- package/docs/docs_html/assets/search.js +1 -0
- package/interframe.d.ts +14 -5
- package/interframe.js +11 -1
- package/interframe.js.map +1 -1
- package/network.d.ts +169 -40
- package/network.js +41 -1
- package/network.js.map +1 -1
- package/package.json +1 -1
- package/settings.d.ts +10 -0
- package/settings.js.map +1 -1
- package/tests/network.test.js +27 -17
- package/tests/network.test.js.map +1 -1
- package/user.d.ts +6 -0
- package/user.js +2 -0
- package/user.js.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sorter.js +0 -196
- package/nest.d.ts +0 -28
- package/nest.js +0 -24
- package/nest.js.map +0 -1
- package/tests/capabilityapi.test.d.ts +0 -1
- package/tests/capabilityapi.test.js +0 -89
- package/tests/capabilityapi.test.js.map +0 -1
package/interframe.d.ts
CHANGED
|
@@ -29,6 +29,15 @@ export declare enum InterFrameError {
|
|
|
29
29
|
TARGET_NOT_FOUND = "TARGET_NOT_FOUND",
|
|
30
30
|
UNKNOWN_ERROR = "ERROR"
|
|
31
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Extensible list of action types that have automatic shell handlers.
|
|
34
|
+
*/
|
|
35
|
+
export declare enum InterFrameActionType {
|
|
36
|
+
/**
|
|
37
|
+
* Used to get and send context information between app and rail frames that will be included with messages in AI Assistant.
|
|
38
|
+
*/
|
|
39
|
+
APP_CONTEXT = "APP_CONTEXT"
|
|
40
|
+
}
|
|
32
41
|
/**
|
|
33
42
|
* Inter-frame request message.
|
|
34
43
|
* Used when one frame (app or rail) needs to send a message to another frame.
|
|
@@ -43,7 +52,7 @@ export interface InterFrameRequest {
|
|
|
43
52
|
/**
|
|
44
53
|
* Data accompanying the action to be sent and emitted.
|
|
45
54
|
*/
|
|
46
|
-
data: any
|
|
55
|
+
data: Record<string, any>;
|
|
47
56
|
requestId: string;
|
|
48
57
|
source: FrameTarget;
|
|
49
58
|
target: FrameTarget;
|
|
@@ -53,10 +62,10 @@ export interface InterFrameRequest {
|
|
|
53
62
|
* Sent back to the requesting frame with results or errors.
|
|
54
63
|
*/
|
|
55
64
|
export interface InterFrameResponse {
|
|
56
|
-
data?: any
|
|
65
|
+
data?: Record<string, any>;
|
|
57
66
|
error?: {
|
|
58
67
|
code: string;
|
|
59
|
-
details?: any
|
|
68
|
+
details?: Record<string, any>;
|
|
60
69
|
message: string;
|
|
61
70
|
};
|
|
62
71
|
requestId: string;
|
|
@@ -112,8 +121,8 @@ export interface ResponseCallbacks {
|
|
|
112
121
|
sendError: (error: {
|
|
113
122
|
code: string;
|
|
114
123
|
message: string;
|
|
115
|
-
details?: any
|
|
116
|
-
}
|
|
124
|
+
details?: Record<string, any>;
|
|
125
|
+
}) => void;
|
|
117
126
|
/**
|
|
118
127
|
* Send a progress update.
|
|
119
128
|
*/
|
package/interframe.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* written permission of Adobe.
|
|
11
11
|
**************************************************************************/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.InterFrameError = exports.InterFrameMessageType = exports.InterFrameResponseStatus = exports.InterFrameTarget = exports.FrameTarget = void 0;
|
|
13
|
+
exports.InterFrameActionType = exports.InterFrameError = exports.InterFrameMessageType = exports.InterFrameResponseStatus = exports.InterFrameTarget = exports.FrameTarget = void 0;
|
|
14
14
|
/**
|
|
15
15
|
* APIs for inter-frame communication between app and rail iframes.
|
|
16
16
|
*
|
|
@@ -70,6 +70,16 @@ var InterFrameError;
|
|
|
70
70
|
InterFrameError["TARGET_NOT_FOUND"] = "TARGET_NOT_FOUND";
|
|
71
71
|
InterFrameError["UNKNOWN_ERROR"] = "ERROR";
|
|
72
72
|
})(InterFrameError || (exports.InterFrameError = InterFrameError = {}));
|
|
73
|
+
/**
|
|
74
|
+
* Extensible list of action types that have automatic shell handlers.
|
|
75
|
+
*/
|
|
76
|
+
var InterFrameActionType;
|
|
77
|
+
(function (InterFrameActionType) {
|
|
78
|
+
/**
|
|
79
|
+
* Used to get and send context information between app and rail frames that will be included with messages in AI Assistant.
|
|
80
|
+
*/
|
|
81
|
+
InterFrameActionType["APP_CONTEXT"] = "APP_CONTEXT";
|
|
82
|
+
})(InterFrameActionType || (exports.InterFrameActionType = InterFrameActionType = {}));
|
|
73
83
|
const interFrame = {
|
|
74
84
|
emit: (type, evt) => {
|
|
75
85
|
return (0, Global_1.getImpl)('interFrame')().emit(type, evt);
|
package/interframe.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interframe.js","sourceRoot":"","sources":["interframe.ts"],"names":[],"mappings":";AAAA;;;;;;;;;4EAS4E;;;AAE5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,yCAAqC;AAErC,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,0BAAW,CAAA;IACX,4BAAa,CAAA;AACf,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB;AAED,oCAAoC;AACvB,QAAA,gBAAgB,GAAG,WAAW,CAAC;AAE5C,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAClC,uDAA2B,CAAA;IAC3B,mDAAuB,CAAA;IACvB,6CAAiB,CAAA;IACjB,yDAA6B,CAAA;AAC/B,CAAC,EALW,wBAAwB,wCAAxB,wBAAwB,Q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,IAAI,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;IACD,IAAI,EAAE,CAAC,MAAc,EAAE,SAAyB,EAAE,IAAU,EAAE,MAAoB,EAAE,EAAE;QACpF,OAAO,IAAA,gBAAO,EAAC,YAAY,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;IACvE,CAAC;CACe,CAAC;AAEnB,kBAAe,UAAU,CAAC"}
|
package/network.d.ts
CHANGED
|
@@ -51,7 +51,6 @@
|
|
|
51
51
|
* @packageDocumentation
|
|
52
52
|
* @module network
|
|
53
53
|
*/
|
|
54
|
-
import type { APIMode } from './RuntimeConfiguration';
|
|
55
54
|
import type { ApolloClient, ApolloClientOptions, ApolloLink, HttpLink, InMemoryCacheConfig, NormalizedCacheObject } from '@apollo/client';
|
|
56
55
|
import { CacheEntry } from './cache';
|
|
57
56
|
import type { gql } from 'graphql-tag';
|
|
@@ -61,11 +60,17 @@ import type { Sandbox } from './appcontext';
|
|
|
61
60
|
*/
|
|
62
61
|
export declare const DEFAULT_STATUS_CODES_TO_RETRY: number[];
|
|
63
62
|
export type GraphQLRegion = 'va7' | 'aus5' | 'nld2' | 'va6';
|
|
63
|
+
export type APIMode = 'io' | 'afd';
|
|
64
64
|
export interface FetchOptions {
|
|
65
65
|
/**
|
|
66
66
|
* A boolean value indicating whether to add Authentication token, API Key to the request.
|
|
67
67
|
*/
|
|
68
68
|
auth?: 'Header' | 'Body';
|
|
69
|
+
/**
|
|
70
|
+
* Whether the region lock on requests should be bypassed and the provided URL
|
|
71
|
+
* should be used exclusively.
|
|
72
|
+
*/
|
|
73
|
+
bypassRegionLock?: boolean;
|
|
69
74
|
/**
|
|
70
75
|
* Number indicating how many fetch attempts should be made using exponential backoff.
|
|
71
76
|
*/
|
|
@@ -94,11 +99,7 @@ export interface FetchOptions {
|
|
|
94
99
|
/**
|
|
95
100
|
* @ignore
|
|
96
101
|
*/
|
|
97
|
-
export interface Configuration {
|
|
98
|
-
/**
|
|
99
|
-
* Unified Shell API Gateway URL
|
|
100
|
-
*/
|
|
101
|
-
apiGatewayUrl: string;
|
|
102
|
+
export interface Configuration extends BaseNetworkConfig {
|
|
102
103
|
/**
|
|
103
104
|
* API Key that will be added to x-api-key on requests
|
|
104
105
|
*/
|
|
@@ -107,58 +108,30 @@ export interface Configuration {
|
|
|
107
108
|
* appId from solution route config
|
|
108
109
|
*/
|
|
109
110
|
appId: string;
|
|
110
|
-
/**
|
|
111
|
-
* Should API calls go directly to IO or accelerated via AFD/AWS (Default 'afd')
|
|
112
|
-
*/
|
|
113
|
-
apiMode?: APIMode;
|
|
114
111
|
/**
|
|
115
112
|
* IMS Client ID
|
|
116
113
|
*/
|
|
117
114
|
imsClientId?: string;
|
|
118
115
|
/**
|
|
119
|
-
* IMS
|
|
116
|
+
* IMS org id
|
|
120
117
|
*/
|
|
121
|
-
|
|
118
|
+
imsOrg?: string;
|
|
122
119
|
/**
|
|
123
|
-
*
|
|
120
|
+
* IMS Token
|
|
124
121
|
*/
|
|
125
|
-
|
|
122
|
+
imsToken: string;
|
|
126
123
|
/**
|
|
127
124
|
* metricsAppId from solution route config
|
|
128
125
|
*/
|
|
129
126
|
metricsAppId?: string;
|
|
130
|
-
/**
|
|
131
|
-
* Ims Org Region
|
|
132
|
-
*/
|
|
133
|
-
orgRegion?: string;
|
|
134
|
-
/**
|
|
135
|
-
* @deprecated tenantAppId from solution route config
|
|
136
|
-
*/
|
|
137
|
-
tenantAppId?: string;
|
|
138
|
-
/**
|
|
139
|
-
* IMS org id
|
|
140
|
-
*/
|
|
141
|
-
imsOrg?: string;
|
|
142
127
|
/**
|
|
143
128
|
* Current sandbox object
|
|
144
129
|
*/
|
|
145
130
|
sandbox?: Sandbox;
|
|
146
131
|
/**
|
|
147
|
-
*
|
|
148
|
-
*/
|
|
149
|
-
ioGatewayUrl?: string;
|
|
150
|
-
/**
|
|
151
|
-
* Map of Adobe IO region specific endpoints.
|
|
152
|
-
*/
|
|
153
|
-
ioRegionSpecificMap?: Record<string, string>;
|
|
154
|
-
/**
|
|
155
|
-
* Clients can pass in their local GQL endpoint
|
|
156
|
-
*/
|
|
157
|
-
gqlEndpoint?: string;
|
|
158
|
-
/**
|
|
159
|
-
* XQL gateway used for AEP specific queries
|
|
132
|
+
* @deprecated tenantAppId from solution route config
|
|
160
133
|
*/
|
|
161
|
-
|
|
134
|
+
tenantAppId?: string;
|
|
162
135
|
}
|
|
163
136
|
/**
|
|
164
137
|
* GQL Query containing graphql query and variables.
|
|
@@ -276,6 +249,11 @@ export interface QueryRequest {
|
|
|
276
249
|
* Overwrite config.appId until federation is out. This allow scenario where sharing components that are linked to their own tenants.
|
|
277
250
|
*/
|
|
278
251
|
appId?: string;
|
|
252
|
+
/**
|
|
253
|
+
* Whether the region lock on requests should be bypassed and the provided URL
|
|
254
|
+
* should be used exclusively.
|
|
255
|
+
*/
|
|
256
|
+
bypassRegionLock?: boolean;
|
|
279
257
|
/**
|
|
280
258
|
* Data containing single or multiple GQL queries.
|
|
281
259
|
*
|
|
@@ -400,6 +378,103 @@ export declare enum FetchScope {
|
|
|
400
378
|
*/
|
|
401
379
|
SANDBOX_PLUS = "SANDBOX_PLUS"
|
|
402
380
|
}
|
|
381
|
+
/**
|
|
382
|
+
* The network configuration properties that are defined in Unified Shell, are
|
|
383
|
+
* mostly made available to the network API through the RuntimeConfiguration
|
|
384
|
+
* object so requests can be made to the correct place.
|
|
385
|
+
*/
|
|
386
|
+
export interface BaseNetworkConfig {
|
|
387
|
+
/**
|
|
388
|
+
* Unified Shell API Gateway URL
|
|
389
|
+
*/
|
|
390
|
+
apiGatewayUrl: string;
|
|
391
|
+
/**
|
|
392
|
+
* Should API calls go directly to IO or accelerated via AFD/AWS (Default 'afd')
|
|
393
|
+
*/
|
|
394
|
+
apiMode: APIMode;
|
|
395
|
+
/**
|
|
396
|
+
* Clients can pass in their local GQL endpoint
|
|
397
|
+
*/
|
|
398
|
+
gqlEndpoint?: string;
|
|
399
|
+
/**
|
|
400
|
+
* Adobe IO gateway URL used as a fallback in GQL call
|
|
401
|
+
*/
|
|
402
|
+
ioGatewayUrl: string;
|
|
403
|
+
/**
|
|
404
|
+
* Map of Adobe Io region specific endpoints.
|
|
405
|
+
*/
|
|
406
|
+
ioRegionSpecificMap: Record<string, string>;
|
|
407
|
+
/**
|
|
408
|
+
* Whether the current region, if any, is locked.
|
|
409
|
+
*/
|
|
410
|
+
isRegionLocked: boolean;
|
|
411
|
+
/**
|
|
412
|
+
* Region assigned to the IMS org, assigned to the AEP product.
|
|
413
|
+
*/
|
|
414
|
+
orgRegion?: string;
|
|
415
|
+
/**
|
|
416
|
+
* Settings-specific IO gateway URL
|
|
417
|
+
*/
|
|
418
|
+
settingsIoGatewayUrl: string;
|
|
419
|
+
/**
|
|
420
|
+
* XQL gateway used for AEP specific queries
|
|
421
|
+
*/
|
|
422
|
+
xqlGatewayUrl: string;
|
|
423
|
+
/**
|
|
424
|
+
* Map of XQL region specific endpoints.
|
|
425
|
+
*/
|
|
426
|
+
xqlRegionSpecificMap: Record<string, string>;
|
|
427
|
+
}
|
|
428
|
+
export interface FetchConfig extends BaseNetworkConfig {
|
|
429
|
+
apiKey: string;
|
|
430
|
+
appId: string;
|
|
431
|
+
imsOrg: string;
|
|
432
|
+
imsToken: string;
|
|
433
|
+
sandbox: Sandbox;
|
|
434
|
+
}
|
|
435
|
+
export interface GraphQLConfig extends BaseNetworkConfig {
|
|
436
|
+
appId: string;
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* Input properties for the getRegionEndpoint function.
|
|
440
|
+
*/
|
|
441
|
+
export interface RegionalEndpointInput {
|
|
442
|
+
/**
|
|
443
|
+
* For requests that should bypass the CDN if they are not regional.
|
|
444
|
+
*/
|
|
445
|
+
bypassCDN?: boolean;
|
|
446
|
+
/**
|
|
447
|
+
* Current Adobe.io endpoint used that should be region-adjusted.
|
|
448
|
+
*/
|
|
449
|
+
ioEndpoint?: string;
|
|
450
|
+
/**
|
|
451
|
+
* Service type to get the regional endpoint for. One of GRAPHQL, IO, XQL.
|
|
452
|
+
*/
|
|
453
|
+
type: ServiceType;
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* Result of the getRegionEndpoint function.
|
|
457
|
+
*/
|
|
458
|
+
export interface RegionalEndpointResult {
|
|
459
|
+
/**
|
|
460
|
+
* Whether the endpoint was adjusted for region.
|
|
461
|
+
*/
|
|
462
|
+
adjusted: boolean;
|
|
463
|
+
/**
|
|
464
|
+
* Endpoint that has possibly been adjusted. Will only be undefined if an
|
|
465
|
+
* invalid type was passed in.
|
|
466
|
+
*/
|
|
467
|
+
endpoint?: string;
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* Service type enum.
|
|
471
|
+
*/
|
|
472
|
+
export declare enum ServiceType {
|
|
473
|
+
GRAPHQL = "GRAPHQL",
|
|
474
|
+
IO = "IO",
|
|
475
|
+
SETTINGS = "SETTINGS",
|
|
476
|
+
XQL = "XQL"
|
|
477
|
+
}
|
|
403
478
|
/**
|
|
404
479
|
* Defines the object containing any custom settings that you want to apply to the request. You can
|
|
405
480
|
* also additionally specify the 'auth' parameter to automatically set the Authentication, API key in Headers/Query params.
|
|
@@ -467,6 +542,33 @@ export interface NetworkApi {
|
|
|
467
542
|
* @returns Promise for the contract execution response
|
|
468
543
|
*/
|
|
469
544
|
getPrefetched<T>(key: string, options?: PrefetchOptions): Promise<PrefetchResponse<T>>;
|
|
545
|
+
/**
|
|
546
|
+
* Provides an interface for requesting a region-adjusted endpoint for a
|
|
547
|
+
* specific service type. This uses the region associated with the currently
|
|
548
|
+
* enabled IMS organization, via the Platform region property. If this value
|
|
549
|
+
* is not available, the default endpoint will be returned.
|
|
550
|
+
*
|
|
551
|
+
* ***Example:***
|
|
552
|
+
*
|
|
553
|
+
* ```typescript
|
|
554
|
+
* // Requests the region-adjusted endpoint for GraphQL
|
|
555
|
+
* getRegionEndpoint({type: ServiceType.GRAPHQL});
|
|
556
|
+
*
|
|
557
|
+
* // Requests the region-adjusted endpoint for Adobe.io
|
|
558
|
+
* getRegionEndpoint({type: ServiceType.IO});
|
|
559
|
+
*
|
|
560
|
+
* // Requests the region-adjusted endpoint for XQL
|
|
561
|
+
* getRegionEndpoint({type: ServiceType.XQL});
|
|
562
|
+
*
|
|
563
|
+
* // Requests the region-adjusted endpoint for Adobe.io, but provides the
|
|
564
|
+
* // current Adobe.io endpoint, which will be modified accordingly.
|
|
565
|
+
* // Note: This only works on supported Adobe.io tenants.
|
|
566
|
+
* getRegionEndpoint({endpoint: 'https://experience.adobe.io/some/path', type: ServiceType.IO});
|
|
567
|
+
* ```
|
|
568
|
+
* @param input Endpoint options.
|
|
569
|
+
* @returns The region-adjusted endpoint for the service.
|
|
570
|
+
*/
|
|
571
|
+
getRegionEndpoint(input: RegionalEndpointInput): RegionalEndpointResult;
|
|
470
572
|
/**
|
|
471
573
|
* Provides an interface for querying resources via GraphqQL.
|
|
472
574
|
* In order to consume query, please make sure the respective query resolver is
|
|
@@ -567,6 +669,33 @@ export declare function fetch(input: RequestInfo, init?: FetchInit): Promise<Res
|
|
|
567
669
|
* @returns Promise for the contract execution response
|
|
568
670
|
*/
|
|
569
671
|
export declare function getPrefetched<T>(key: string, options?: PrefetchOptions): Promise<PrefetchResponse<T>>;
|
|
672
|
+
/**
|
|
673
|
+
* Provides an interface for requesting a region-adjusted endpoint for a
|
|
674
|
+
* specific service type. This uses the region associated with the currently
|
|
675
|
+
* enabled IMS organization, via the Platform region property. If this value
|
|
676
|
+
* is not available, the default endpoint will be returned.
|
|
677
|
+
*
|
|
678
|
+
* ***Example:***
|
|
679
|
+
*
|
|
680
|
+
* ```typescript
|
|
681
|
+
* // Requests the region-adjusted endpoint for GraphQL
|
|
682
|
+
* getRegionEndpoint({type: ServiceType.GRAPHQL});
|
|
683
|
+
*
|
|
684
|
+
* // Requests the region-adjusted endpoint for Adobe.io
|
|
685
|
+
* getRegionEndpoint({type: ServiceType.IO});
|
|
686
|
+
*
|
|
687
|
+
* // Requests the region-adjusted endpoint for XQL
|
|
688
|
+
* getRegionEndpoint({type: ServiceType.XQL});
|
|
689
|
+
*
|
|
690
|
+
* // Requests the region-adjusted endpoint for Adobe.io, but provides the
|
|
691
|
+
* // current Adobe.io endpoint, which will be modified accordingly.
|
|
692
|
+
* // Note: This only works on supported Adobe.io tenants.
|
|
693
|
+
* getRegionEndpoint({endpoint: 'https://experience.adobe.io/some/path', type: ServiceType.IO});
|
|
694
|
+
* ```
|
|
695
|
+
* @param input Endpoint options.
|
|
696
|
+
* @returns The region-adjusted endpoint for the service.
|
|
697
|
+
*/
|
|
698
|
+
export declare function getRegionEndpoint(input: RegionalEndpointInput): RegionalEndpointResult;
|
|
570
699
|
/**
|
|
571
700
|
* Provides an interface for querying resources via GraphqQL.
|
|
572
701
|
* In order to consume query, please make sure the respective query resolver is
|
package/network.js
CHANGED
|
@@ -10,9 +10,10 @@
|
|
|
10
10
|
* written permission of Adobe.
|
|
11
11
|
**************************************************************************/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.FetchScope = exports.ROUTING = exports.DEFAULT_STATUS_CODES_TO_RETRY = void 0;
|
|
13
|
+
exports.ServiceType = exports.FetchScope = exports.ROUTING = exports.DEFAULT_STATUS_CODES_TO_RETRY = void 0;
|
|
14
14
|
exports.fetch = fetch;
|
|
15
15
|
exports.getPrefetched = getPrefetched;
|
|
16
|
+
exports.getRegionEndpoint = getRegionEndpoint;
|
|
16
17
|
exports.query = query;
|
|
17
18
|
exports.getApolloClient = getApolloClient;
|
|
18
19
|
exports.createApolloClient = createApolloClient;
|
|
@@ -78,6 +79,16 @@ var FetchScope;
|
|
|
78
79
|
*/
|
|
79
80
|
FetchScope["SANDBOX_PLUS"] = "SANDBOX_PLUS";
|
|
80
81
|
})(FetchScope || (exports.FetchScope = FetchScope = {}));
|
|
82
|
+
/**
|
|
83
|
+
* Service type enum.
|
|
84
|
+
*/
|
|
85
|
+
var ServiceType;
|
|
86
|
+
(function (ServiceType) {
|
|
87
|
+
ServiceType["GRAPHQL"] = "GRAPHQL";
|
|
88
|
+
ServiceType["IO"] = "IO";
|
|
89
|
+
ServiceType["SETTINGS"] = "SETTINGS";
|
|
90
|
+
ServiceType["XQL"] = "XQL";
|
|
91
|
+
})(ServiceType || (exports.ServiceType = ServiceType = {}));
|
|
81
92
|
/**
|
|
82
93
|
* Provides an interface for fetching resources powered by the global 'fetch' API.
|
|
83
94
|
*
|
|
@@ -119,6 +130,35 @@ function fetch(input, init) {
|
|
|
119
130
|
function getPrefetched(key, options) {
|
|
120
131
|
return (0, Global_1.getImpl)('network').getPrefetched(key, options);
|
|
121
132
|
}
|
|
133
|
+
/**
|
|
134
|
+
* Provides an interface for requesting a region-adjusted endpoint for a
|
|
135
|
+
* specific service type. This uses the region associated with the currently
|
|
136
|
+
* enabled IMS organization, via the Platform region property. If this value
|
|
137
|
+
* is not available, the default endpoint will be returned.
|
|
138
|
+
*
|
|
139
|
+
* ***Example:***
|
|
140
|
+
*
|
|
141
|
+
* ```typescript
|
|
142
|
+
* // Requests the region-adjusted endpoint for GraphQL
|
|
143
|
+
* getRegionEndpoint({type: ServiceType.GRAPHQL});
|
|
144
|
+
*
|
|
145
|
+
* // Requests the region-adjusted endpoint for Adobe.io
|
|
146
|
+
* getRegionEndpoint({type: ServiceType.IO});
|
|
147
|
+
*
|
|
148
|
+
* // Requests the region-adjusted endpoint for XQL
|
|
149
|
+
* getRegionEndpoint({type: ServiceType.XQL});
|
|
150
|
+
*
|
|
151
|
+
* // Requests the region-adjusted endpoint for Adobe.io, but provides the
|
|
152
|
+
* // current Adobe.io endpoint, which will be modified accordingly.
|
|
153
|
+
* // Note: This only works on supported Adobe.io tenants.
|
|
154
|
+
* getRegionEndpoint({endpoint: 'https://experience.adobe.io/some/path', type: ServiceType.IO});
|
|
155
|
+
* ```
|
|
156
|
+
* @param input Endpoint options.
|
|
157
|
+
* @returns The region-adjusted endpoint for the service.
|
|
158
|
+
*/
|
|
159
|
+
function getRegionEndpoint(input) {
|
|
160
|
+
return (0, Global_1.getImpl)('network').getRegionEndpoint(input);
|
|
161
|
+
}
|
|
122
162
|
/**
|
|
123
163
|
* Provides an interface for querying resources via GraphqQL.
|
|
124
164
|
* In order to consume query, please make sure the respective query resolver is
|
package/network.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network.js","sourceRoot":"","sources":["network.ts"],"names":[],"mappings":";AAAA;;;;;;;;;4EAS4E;;;
|
|
1
|
+
{"version":3,"file":"network.js","sourceRoot":"","sources":["network.ts"],"names":[],"mappings":";AAAA;;;;;;;;;4EAS4E;;;AAorB5E,sBAEC;AAYD,sCAEC;AA4BD,8CAEC;AAkCD,sBAEC;AAsBD,0CAOC;AAED,gDAKC;AAnvBD,yCAAqC;AAIrC;;GAEG;AACU,QAAA,6BAA6B,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AA2KlE,IAAY,OAaX;AAbD,WAAY,OAAO;IACjB;;OAEG;IACH,+DAAiB,CAAA;IACjB;;OAEG;IACH,2CAAO,CAAA;IACP;;OAEG;IACH,yEAAsB,CAAA;AACxB,CAAC,EAbW,OAAO,uBAAP,OAAO,QAalB;AA0GD;;GAEG;AACH,IAAY,UAqCX;AArCD,WAAY,UAAU;IACpB;;;OAGG;IACH,2BAAa,CAAA;IACb;;;;OAIG;IACH,2BAAa,CAAA;IACb;;;;;OAKG;IACH,yBAAW,CAAA;IACX;;;;;;OAMG;IACH,iCAAmB,CAAA;IACnB;;;;;;;;OAQG;IACH,2CAA6B,CAAA;AAC/B,CAAC,EArCW,UAAU,0BAAV,UAAU,QAqCrB;AA+FD;;GAEG;AACH,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,wBAAS,CAAA;IACT,oCAAqB,CAAA;IACrB,0BAAW,CAAA;AACb,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB;AA4KD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,KAAK,CAAC,KAAkB,EAAE,IAAgB;IACxD,OAAO,IAAA,gBAAO,EAAC,SAAS,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;AAC/C,CAAC;AAED;;;;;;;;;GASG;AACH,SAAgB,aAAa,CAAI,GAAW,EAAE,OAAyB;IACrE,OAAO,IAAA,gBAAO,EAAC,SAAS,CAAC,CAAC,aAAa,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AACxD,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,SAAgB,iBAAiB,CAAC,KAA4B;IAC5D,OAAO,IAAA,gBAAO,EAAC,SAAS,CAAC,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;AACrD,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,SAAgB,KAAK,CAAC,KAAmB;IACvC,OAAO,IAAA,gBAAO,EAAC,SAAS,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AACzC,CAAC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,eAAe,CAC7B,OAAmC;IAKnC,OAAO,IAAA,gBAAO,EAAC,SAAS,CAAC,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,kBAAkB,CAChC,oBAA2C,EAC3C,OAA+C;IAE/C,OAAO,IAAA,gBAAO,EAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;AAC9E,CAAC"}
|
package/package.json
CHANGED
package/settings.d.ts
CHANGED
|
@@ -19,10 +19,20 @@ export interface Settings {
|
|
|
19
19
|
* The response from the settings service.
|
|
20
20
|
*/
|
|
21
21
|
export interface SettingsResponse<T extends Settings> {
|
|
22
|
+
/**
|
|
23
|
+
* Any additional error details.
|
|
24
|
+
*/
|
|
25
|
+
errorDetail?: unknown;
|
|
22
26
|
/**
|
|
23
27
|
* The map of settings being worked upon.
|
|
24
28
|
*/
|
|
25
29
|
settings: T;
|
|
30
|
+
/**
|
|
31
|
+
* Boolean indicating whether the operation was successful.
|
|
32
|
+
* When this is `false`, the settings object will be empty for a set call
|
|
33
|
+
* and set to the fallback from the request in a get call.
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
26
36
|
}
|
|
27
37
|
/**
|
|
28
38
|
* The input parameters for the settings API.
|
package/settings.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["settings.ts"],"names":[],"mappings":";AAAA;;;;;;;;;4EAS4E;;;AAE5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AAEH,yCAAqC;AACrC,4DAAuD;
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["settings.ts"],"names":[],"mappings":";AAAA;;;;;;;;;4EAS4E;;;AAE5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AAEH,yCAAqC;AACrC,4DAAuD;AAkF/C,8FAlFA,6BAAa,OAkFA;AALrB,MAAM,QAAQ,GAAgB;IAC5B,GAAG,EAAE,MAAM,CAAC,EAAE,CAAC,IAAA,gBAAO,EAAC,UAAU,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC;IAChD,GAAG,EAAE,MAAM,CAAC,EAAE,CAAC,IAAA,gBAAO,EAAC,UAAU,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC;CACjD,CAAC;AAGF,kBAAe,QAAQ,CAAC"}
|
package/tests/network.test.js
CHANGED
|
@@ -24,14 +24,16 @@ const Global_1 = require("../src/Global");
|
|
|
24
24
|
describe('network', () => {
|
|
25
25
|
const createApolloClientMock = jest.fn();
|
|
26
26
|
const fetchMock = jest.fn();
|
|
27
|
+
const getApolloClientMock = jest.fn();
|
|
27
28
|
const getPrefetchedMock = jest.fn();
|
|
29
|
+
const getRegionEndpointMock = jest.fn();
|
|
28
30
|
const queryMock = jest.fn();
|
|
29
|
-
const getApolloClientMock = jest.fn();
|
|
30
31
|
const networkMock = {
|
|
31
32
|
createApolloClient: createApolloClientMock,
|
|
32
33
|
fetch: fetchMock,
|
|
33
34
|
getApolloClient: getApolloClientMock,
|
|
34
35
|
getPrefetched: getPrefetchedMock,
|
|
36
|
+
getRegionEndpoint: getRegionEndpointMock,
|
|
35
37
|
query: queryMock
|
|
36
38
|
};
|
|
37
39
|
beforeAll(() => {
|
|
@@ -39,6 +41,14 @@ describe('network', () => {
|
|
|
39
41
|
emr.network = networkMock;
|
|
40
42
|
});
|
|
41
43
|
afterEach(() => jest.clearAllMocks());
|
|
44
|
+
test('createApolloClient', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
45
|
+
const res = { status: 'ok' };
|
|
46
|
+
createApolloClientMock.mockResolvedValue(res);
|
|
47
|
+
const client = yield createApolloClientMock({}, { xql: true });
|
|
48
|
+
expect(client).toEqual(res);
|
|
49
|
+
expect(createApolloClientMock).toHaveBeenCalledTimes(1);
|
|
50
|
+
expect(createApolloClientMock).toHaveBeenCalledWith({}, { xql: true });
|
|
51
|
+
}));
|
|
42
52
|
test('fetch', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
43
53
|
const res = { status: 'ok' };
|
|
44
54
|
fetchMock.mockResolvedValue(res);
|
|
@@ -47,6 +57,14 @@ describe('network', () => {
|
|
|
47
57
|
expect(fetchMock).toHaveBeenCalledTimes(1);
|
|
48
58
|
expect(fetchMock).toHaveBeenCalledWith('url', { auth: 'Header' });
|
|
49
59
|
}));
|
|
60
|
+
test('getApolloClient', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
61
|
+
const res = { status: 'ok' };
|
|
62
|
+
getApolloClientMock.mockResolvedValue(res);
|
|
63
|
+
const result = yield (0, network_1.getApolloClient)({ xql: true });
|
|
64
|
+
expect(result).toEqual(res);
|
|
65
|
+
expect(getApolloClientMock).toHaveBeenCalledTimes(1);
|
|
66
|
+
expect(getApolloClientMock).toHaveBeenCalledWith({ xql: true });
|
|
67
|
+
}));
|
|
50
68
|
test('getPrefetched', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
51
69
|
const res = { status: 'ok' };
|
|
52
70
|
getPrefetchedMock.mockResolvedValue(res);
|
|
@@ -55,6 +73,14 @@ describe('network', () => {
|
|
|
55
73
|
expect(getPrefetchedMock).toHaveBeenCalledTimes(1);
|
|
56
74
|
expect(getPrefetchedMock).toHaveBeenCalledWith('key', { createdAfter: 100 });
|
|
57
75
|
}));
|
|
76
|
+
test('getRegionEndpoint', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
77
|
+
const res = { status: 'ok' };
|
|
78
|
+
getRegionEndpointMock.mockResolvedValue(res);
|
|
79
|
+
const result = yield (0, network_1.getRegionEndpoint)({ type: network_1.ServiceType.GRAPHQL });
|
|
80
|
+
expect(result).toEqual(res);
|
|
81
|
+
expect(getRegionEndpointMock).toHaveBeenCalledTimes(1);
|
|
82
|
+
expect(getRegionEndpointMock).toHaveBeenCalledWith({ type: network_1.ServiceType.GRAPHQL });
|
|
83
|
+
}));
|
|
58
84
|
test('query', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
59
85
|
const res = { status: 'ok' };
|
|
60
86
|
queryMock.mockResolvedValue(res);
|
|
@@ -63,21 +89,5 @@ describe('network', () => {
|
|
|
63
89
|
expect(queryMock).toHaveBeenCalledTimes(1);
|
|
64
90
|
expect(queryMock).toHaveBeenCalledWith({ data: { query: 'query' } });
|
|
65
91
|
}));
|
|
66
|
-
test('getApolloClient', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
67
|
-
const res = { status: 'ok' };
|
|
68
|
-
getApolloClientMock.mockResolvedValue(res);
|
|
69
|
-
const result = yield (0, network_1.getApolloClient)({ xql: true });
|
|
70
|
-
expect(result).toEqual(res);
|
|
71
|
-
expect(getApolloClientMock).toHaveBeenCalledTimes(1);
|
|
72
|
-
expect(getApolloClientMock).toHaveBeenCalledWith({ xql: true });
|
|
73
|
-
}));
|
|
74
|
-
test('createApolloClient', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
75
|
-
const res = { status: 'ok' };
|
|
76
|
-
createApolloClientMock.mockResolvedValue(res);
|
|
77
|
-
const client = yield createApolloClientMock({}, { xql: true });
|
|
78
|
-
expect(client).toEqual(res);
|
|
79
|
-
expect(createApolloClientMock).toHaveBeenCalledTimes(1);
|
|
80
|
-
expect(createApolloClientMock).toHaveBeenCalledWith({}, { xql: true });
|
|
81
|
-
}));
|
|
82
92
|
});
|
|
83
93
|
//# sourceMappingURL=network.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network.test.js","sourceRoot":"","sources":["network.test.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA;;;;;;;;;4EAS4E;AAC5E,
|
|
1
|
+
{"version":3,"file":"network.test.js","sourceRoot":"","sources":["network.test.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA;;;;;;;;;4EAS4E;AAC5E,wCAAoH;AACpH,0CAAyD;AAEzD,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,MAAM,sBAAsB,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;IACzC,MAAM,SAAS,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;IAC5B,MAAM,mBAAmB,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;IACtC,MAAM,iBAAiB,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;IACpC,MAAM,qBAAqB,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;IACxC,MAAM,SAAS,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;IAE5B,MAAM,WAAW,GAAG;QAClB,kBAAkB,EAAE,sBAAsB;QAC1C,KAAK,EAAE,SAAS;QAChB,eAAe,EAAE,mBAAmB;QACpC,aAAa,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C,MAAM,GAAG,GAAG,EAAC,MAAM,EAAE,IAAI,EAAC,CAAC;QAC3B,qBAAqB,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC;QAC7C,MAAM,MAAM,GAAG,MAAM,IAAA,2BAAiB,EAAC,EAAC,IAAI,EAAE,qBAAW,CAAC,OAAO,EAAC,CAAC,CAAC;QACpE,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAC5B,MAAM,CAAC,qBAAqB,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;QACvD,MAAM,CAAC,qBAAqB,CAAC,CAAC,oBAAoB,CAAC,EAAC,IAAI,EAAE,qBAAW,CAAC,OAAO,EAAC,CAAC,CAAC;IAClF,CAAC,CAAA,CAAC,CAAC;IAEH,IAAI,CAAC,OAAO,EAAE,GAAS,EAAE;QACvB,MAAM,GAAG,GAAG,EAAC,MAAM,EAAE,IAAI,EAAC,CAAC;QAC3B,SAAS,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC;QACjC,MAAM,MAAM,GAAG,MAAM,IAAA,eAAK,EAAC,EAAC,IAAI,EAAE,EAAC,KAAK,EAAE,OAAO,EAAC,EAAC,CAAC,CAAC;QACrD,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAC5B,MAAM,CAAC,SAAS,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;QAC3C,MAAM,CAAC,SAAS,CAAC,CAAC,oBAAoB,CAAC,EAAC,IAAI,EAAE,EAAC,KAAK,EAAE,OAAO,EAAC,EAAC,CAAC,CAAC;IACnE,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/user.d.ts
CHANGED
|
@@ -101,8 +101,10 @@ import type { Sandbox } from './appcontext';
|
|
|
101
101
|
export type { Sandbox };
|
|
102
102
|
export declare enum CollaboratorType {
|
|
103
103
|
ADVERTISER = "ADVERTISER",
|
|
104
|
+
AGENCY = "AGENCY",
|
|
104
105
|
DATA_PARTNER = "DATA_PARTNER",
|
|
105
106
|
ID_PARTNER = "ID_PARTNER",
|
|
107
|
+
PLATFORM = "PLATFORM",
|
|
106
108
|
PUBLISHER = "PUBLISHER"
|
|
107
109
|
}
|
|
108
110
|
export interface Collaborator {
|
|
@@ -132,6 +134,10 @@ export interface Instance {
|
|
|
132
134
|
* Instance name
|
|
133
135
|
*/
|
|
134
136
|
name: string;
|
|
137
|
+
/**
|
|
138
|
+
* Instance product
|
|
139
|
+
*/
|
|
140
|
+
product: string;
|
|
135
141
|
/**
|
|
136
142
|
* Instance type
|
|
137
143
|
*/
|
package/user.js
CHANGED
|
@@ -15,8 +15,10 @@ const Global_1 = require("./src/Global");
|
|
|
15
15
|
var CollaboratorType;
|
|
16
16
|
(function (CollaboratorType) {
|
|
17
17
|
CollaboratorType["ADVERTISER"] = "ADVERTISER";
|
|
18
|
+
CollaboratorType["AGENCY"] = "AGENCY";
|
|
18
19
|
CollaboratorType["DATA_PARTNER"] = "DATA_PARTNER";
|
|
19
20
|
CollaboratorType["ID_PARTNER"] = "ID_PARTNER";
|
|
21
|
+
CollaboratorType["PLATFORM"] = "PLATFORM";
|
|
20
22
|
CollaboratorType["PUBLISHER"] = "PUBLISHER";
|
|
21
23
|
})(CollaboratorType || (exports.CollaboratorType = CollaboratorType = {}));
|
|
22
24
|
var InstanceType;
|
package/user.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["user.ts"],"names":[],"mappings":";AAAA;;;;;;;;;4EAS4E;;;AA2F5E,yCAAqC;AAOrC,IAAY,
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["user.ts"],"names":[],"mappings":";AAAA;;;;;;;;;4EAS4E;;;AA2F5E,yCAAqC;AAOrC,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAC1B,6CAAyB,CAAA;IACzB,qCAAiB,CAAA;IACjB,iDAA6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E;IAC7C,GAAG,EAAE,GAAwB,EAAE;QAC7B,OAAO,IAAA,gBAAO,EAAC,MAAM,CAAC,EAAE,CAAC,eAAe,CAAC;IAC3C,CAAC;IACD,GAAG,EAAE,CAAC,KAAc,EAAE,EAAE;QACtB,IAAA,gBAAO,EAAC,MAAM,CAAC,EAAE,CAAC,eAAe,GAAG,KAAK,CAAC;IAC5C,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,mBAAmB,EAAE;IAC/C,GAAG,EAAE,GAAkC,EAAE;QACvC,OAAO,IAAA,gBAAO,EAAC,MAAM,CAAC,EAAE,CAAC,iBAAiB,CAAC;IAC7C,CAAC;IACD,GAAG,EAAE,CAAC,KAAwB,EAAE,EAAE;QAChC,IAAA,gBAAO,EAAC,MAAM,CAAC,EAAE,CAAC,iBAAiB,GAAG,KAAK,CAAC;IAC9C,CAAC;CACF,CAAC,CAAC;AAEH,kBAAe,IAAI,CAAC"}
|
package/version.d.ts
CHANGED
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
* then your use, modification, or distribution of it requires the prior
|
|
9
9
|
* written permission of Adobe.
|
|
10
10
|
**************************************************************************/
|
|
11
|
-
declare const EXC_APP_VERSION = "1.5.
|
|
11
|
+
declare const EXC_APP_VERSION = "1.5.4";
|
|
12
12
|
export default EXC_APP_VERSION;
|
package/version.js
CHANGED
|
@@ -10,6 +10,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
* then your use, modification, or distribution of it requires the prior
|
|
11
11
|
* written permission of Adobe.
|
|
12
12
|
**************************************************************************/
|
|
13
|
-
const EXC_APP_VERSION = '1.5.
|
|
13
|
+
const EXC_APP_VERSION = '1.5.4';
|
|
14
14
|
exports.default = EXC_APP_VERSION;
|
|
15
15
|
//# sourceMappingURL=version.js.map
|