@adobe/exc-app 1.5.3 → 1.5.5

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.
@@ -0,0 +1,235 @@
1
+ "use strict";
2
+ /*************************************************************************
3
+ * Copyright 2021 Adobe
4
+ * All Rights Reserved.
5
+ *
6
+ * NOTICE: Adobe permits you to use, modify, and distribute this file in
7
+ * accordance with the terms of the Adobe license agreement accompanying
8
+ * it. If you have received this file from a source other than Adobe,
9
+ * then your use, modification, or distribution of it requires the prior
10
+ * written permission of Adobe.
11
+ **************************************************************************/
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.CapabilityIds = exports.CapabilityNames = void 0;
14
+ /**
15
+ * API to request capability icons by id (or secondarily by display name).
16
+ *
17
+ * ***Import:***
18
+ *
19
+ * ```typescript
20
+ * import capabilityApi from '@adobe/exc-app/capabilityapi';
21
+ * ```
22
+ *
23
+ * ***Default export:***
24
+ *
25
+ * [CapabilityApi](../interfaces/capability.capabilityapi.md#interface-capabilityapi)
26
+ *
27
+ * ***Usage:***
28
+ * These APIs return promises, not properties, and will need to be
29
+ * asynchronously loaded by calling `get`.
30
+ *
31
+ * ```typescript
32
+ * const [home, assets, offer] = await Promise.all([
33
+ * capabilityApi.get('home'),
34
+ * capabilityApi.get('assets'),
35
+ * capabilityApi.get('offer')
36
+ * ]);
37
+ *
38
+ * ```
39
+ *
40
+ * API for fetching capability icon data.
41
+ * @packageDocumentation
42
+ * @module capabilityapi
43
+ */
44
+ const Global_1 = require("./src/Global");
45
+ // This list is dynamically generated in preBuild
46
+ var CapabilityNames;
47
+ (function (CapabilityNames) {
48
+ CapabilityNames["ACCOUNTPROFILE"] = "Profiles";
49
+ CapabilityNames["ACCOUNTSEGMENTS"] = "Segments";
50
+ CapabilityNames["ADMIN"] = "Configurations";
51
+ CapabilityNames["ALERT"] = "Alerts";
52
+ CapabilityNames["AMMHARMONIZATION"] = "Harmonized datasets";
53
+ CapabilityNames["AMMHOME"] = "Overview";
54
+ CapabilityNames["AMMMODELS"] = "Models";
55
+ CapabilityNames["AMMPLANS"] = "Plans";
56
+ CapabilityNames["APPCONFIGURATIONS"] = "App Configurations";
57
+ CapabilityNames["APPLICATIONS"] = "Applications";
58
+ CapabilityNames["APPSURFACES"] = "App Surfaces";
59
+ CapabilityNames["ASSETS"] = "Assets";
60
+ CapabilityNames["ASSURANCE"] = "Assurance";
61
+ CapabilityNames["CAMPAIGNS"] = "Campaigns";
62
+ CapabilityNames["CHANNELREPORTING"] = "Reports";
63
+ CapabilityNames["CLIENTPROPERTIES"] = "Tags";
64
+ CapabilityNames["COMPONENTS"] = "Components";
65
+ CapabilityNames["CONTENTTEMPLATES"] = "Content Templates";
66
+ CapabilityNames["CONTROLRULES"] = "Rules";
67
+ CapabilityNames["DASHBOARD"] = "Dashboards";
68
+ CapabilityNames["DATACLEANSING"] = "Data Hygiene";
69
+ CapabilityNames["DATACOLLECTIONMONITORING"] = "Monitoring";
70
+ CapabilityNames["DATAFLOW"] = "Dataflows";
71
+ CapabilityNames["DATASET"] = "Datasets";
72
+ CapabilityNames["DATASTREAMS"] = "Datastreams";
73
+ CapabilityNames["DATASTREAMSBETA"] = "Datastreams (Beta)";
74
+ CapabilityNames["DECISIONCONFIGURATION"] = "Configuration";
75
+ CapabilityNames["DECISIONITEMS"] = "Items";
76
+ CapabilityNames["DESTINATION"] = "Destinations";
77
+ CapabilityNames["FRAGMENTS"] = "Fragments";
78
+ CapabilityNames["GENSTUDIOASSETS"] = "Assets";
79
+ CapabilityNames["HOME"] = "Home";
80
+ CapabilityNames["IDENTITIES"] = "Identities";
81
+ CapabilityNames["IDENTITY"] = "Identities";
82
+ CapabilityNames["INITIATIVES"] = "Initiatives";
83
+ CapabilityNames["JOURNEYS"] = "Journeys";
84
+ CapabilityNames["LANDINGPAGES"] = "Landing pages";
85
+ CapabilityNames["LICENSEUSAGE"] = "License Usage";
86
+ CapabilityNames["MARKETINGCAMPAIGN"] = "Marketing Campaigns";
87
+ CapabilityNames["MESSAGES"] = "Messages";
88
+ CapabilityNames["MODEL"] = "Models";
89
+ CapabilityNames["MODELMANAGEMENT"] = "Model Management";
90
+ CapabilityNames["MONITORING"] = "Monitoring";
91
+ CapabilityNames["NOTEBOOK"] = "Notebooks";
92
+ CapabilityNames["OFFER"] = "Offers";
93
+ CapabilityNames["OFFERACTIVITY"] = "Components";
94
+ CapabilityNames["OPTIMIZATIONMETRICS"] = "Optimization metrics";
95
+ CapabilityNames["ORIONASSETS"] = "Assets";
96
+ CapabilityNames["ORIONCAMPAIGNS"] = "Campaigns";
97
+ CapabilityNames["ORIONHOME"] = "Home";
98
+ CapabilityNames["ORIONJOURNEYS"] = "Journeys";
99
+ CapabilityNames["ORIONPROJECTS"] = "Projects";
100
+ CapabilityNames["ORIONSCHEMAS"] = "Schemas";
101
+ CapabilityNames["ORIONSEGMENTAUDIENCE"] = "Audiences";
102
+ CapabilityNames["PERMISSIONSUI"] = "Permissions";
103
+ CapabilityNames["PLACES"] = "Places";
104
+ CapabilityNames["PLATFORMUIENCRYPTION"] = "Encryption";
105
+ CapabilityNames["PLAYBOOKS"] = "Playbooks";
106
+ CapabilityNames["POLICY"] = "Policies";
107
+ CapabilityNames["PRIVACYAUDIT"] = "Audits";
108
+ CapabilityNames["PRIVACYCONSOLE"] = "Privacy Console";
109
+ CapabilityNames["PROFILE"] = "Profiles";
110
+ CapabilityNames["PROSPECTAUDIENCE"] = "Audiences";
111
+ CapabilityNames["PROSPECTPROFILE"] = "Profiles";
112
+ CapabilityNames["QUERY"] = "Queries";
113
+ CapabilityNames["REPORT"] = "Reports";
114
+ CapabilityNames["REQUEST"] = "Requests";
115
+ CapabilityNames["SANDBOX"] = "Sandboxes";
116
+ CapabilityNames["SAPPHIREACCOUNTAUDIENCE"] = "Account Audiences";
117
+ CapabilityNames["SAPPHIREACCOUNTJOURNEY"] = "Account Journeys";
118
+ CapabilityNames["SAPPHIREBUYINGGROUPTEMPLATES"] = "Buying Group Templates";
119
+ CapabilityNames["SAPPHIREEMAILTEMPLATES"] = "Templates";
120
+ CapabilityNames["SAPPHIREINSIGHTSDASHBOARD"] = "Dashboard";
121
+ CapabilityNames["SAPPHIREMARKETOASSETS"] = "Assets";
122
+ CapabilityNames["SCENARIO"] = "Scenarios";
123
+ CapabilityNames["SCHEMA"] = "Schemas";
124
+ CapabilityNames["SEGMENT"] = "Segments";
125
+ CapabilityNames["SEGMENTAUDIENCE"] = "Audiences";
126
+ CapabilityNames["SERVERPROPERTIES"] = "Event Forwarding";
127
+ CapabilityNames["SERVICE"] = "Services";
128
+ CapabilityNames["SETTINGS"] = "Channels";
129
+ CapabilityNames["SOURCE"] = "Sources";
130
+ CapabilityNames["SUBSCRIPTIONS"] = "Subscription list";
131
+ CapabilityNames["TRANSLATIONPROJECTS"] = "Translation projects";
132
+ CapabilityNames["TRANSLATIONSERVICEADMIN"] = "Translations";
133
+ CapabilityNames["UNIFIEDTAGS"] = "Tags";
134
+ CapabilityNames["UNIFIEDTAGSBETA"] = "Tags (Beta)";
135
+ CapabilityNames["WORKFLOW"] = "Workflows";
136
+ })(CapabilityNames = exports.CapabilityNames || (exports.CapabilityNames = {}));
137
+ // This list is dynamically generated in preBuild
138
+ var CapabilityIds;
139
+ (function (CapabilityIds) {
140
+ CapabilityIds["ACCOUNTPROFILE"] = "accountProfile";
141
+ CapabilityIds["ACCOUNTSEGMENTS"] = "accountSegments";
142
+ CapabilityIds["ADMIN"] = "admin";
143
+ CapabilityIds["ALERT"] = "alert";
144
+ CapabilityIds["AMMHARMONIZATION"] = "ammharmonization";
145
+ CapabilityIds["AMMHOME"] = "ammhome";
146
+ CapabilityIds["AMMMODELS"] = "ammmodels";
147
+ CapabilityIds["AMMPLANS"] = "ammplans";
148
+ CapabilityIds["APPCONFIGURATIONS"] = "appconfigurations";
149
+ CapabilityIds["APPLICATIONS"] = "applications";
150
+ CapabilityIds["APPSURFACES"] = "appsurfaces";
151
+ CapabilityIds["ASSETS"] = "assets";
152
+ CapabilityIds["ASSURANCE"] = "assurance";
153
+ CapabilityIds["CAMPAIGNS"] = "campaigns";
154
+ CapabilityIds["CHANNELREPORTING"] = "channelReporting";
155
+ CapabilityIds["CLIENTPROPERTIES"] = "clientproperties";
156
+ CapabilityIds["COMPONENTS"] = "components";
157
+ CapabilityIds["CONTENTTEMPLATES"] = "contentTemplates";
158
+ CapabilityIds["CONTROLRULES"] = "controlRules";
159
+ CapabilityIds["DASHBOARD"] = "dashboard";
160
+ CapabilityIds["DATACLEANSING"] = "dataCleansing";
161
+ CapabilityIds["DATACOLLECTIONMONITORING"] = "datacollectionmonitoring";
162
+ CapabilityIds["DATAFLOW"] = "dataflow";
163
+ CapabilityIds["DATASET"] = "dataset";
164
+ CapabilityIds["DATASTREAMS"] = "datastreams";
165
+ CapabilityIds["DATASTREAMSBETA"] = "datastreamsbeta";
166
+ CapabilityIds["DECISIONCONFIGURATION"] = "decisionConfiguration";
167
+ CapabilityIds["DECISIONITEMS"] = "decisionItems";
168
+ CapabilityIds["DESTINATION"] = "destination";
169
+ CapabilityIds["FRAGMENTS"] = "fragments";
170
+ CapabilityIds["GENSTUDIOASSETS"] = "genStudioAssets";
171
+ CapabilityIds["HOME"] = "home";
172
+ CapabilityIds["IDENTITIES"] = "identities";
173
+ CapabilityIds["IDENTITY"] = "identity";
174
+ CapabilityIds["INITIATIVES"] = "initiatives";
175
+ CapabilityIds["JOURNEYS"] = "journeys";
176
+ CapabilityIds["LANDINGPAGES"] = "landingPages";
177
+ CapabilityIds["LICENSEUSAGE"] = "licenseUsage";
178
+ CapabilityIds["MARKETINGCAMPAIGN"] = "marketingCampaign";
179
+ CapabilityIds["MESSAGES"] = "messages";
180
+ CapabilityIds["MODEL"] = "model";
181
+ CapabilityIds["MODELMANAGEMENT"] = "modelmanagement";
182
+ CapabilityIds["MONITORING"] = "monitoring";
183
+ CapabilityIds["NOTEBOOK"] = "notebook";
184
+ CapabilityIds["OFFER"] = "offer";
185
+ CapabilityIds["OFFERACTIVITY"] = "offeractivity";
186
+ CapabilityIds["OPTIMIZATIONMETRICS"] = "optimizationMetrics";
187
+ CapabilityIds["ORIONASSETS"] = "orionAssets";
188
+ CapabilityIds["ORIONCAMPAIGNS"] = "orionCampaigns";
189
+ CapabilityIds["ORIONHOME"] = "orionHome";
190
+ CapabilityIds["ORIONJOURNEYS"] = "orionJourneys";
191
+ CapabilityIds["ORIONPROJECTS"] = "orionProjects";
192
+ CapabilityIds["ORIONSCHEMAS"] = "orionSchemas";
193
+ CapabilityIds["ORIONSEGMENTAUDIENCE"] = "orionSegmentAudience";
194
+ CapabilityIds["PERMISSIONSUI"] = "permissionsUI";
195
+ CapabilityIds["PLACES"] = "places";
196
+ CapabilityIds["PLATFORMUIENCRYPTION"] = "platformUIEncryption";
197
+ CapabilityIds["PLAYBOOKS"] = "playbooks";
198
+ CapabilityIds["POLICY"] = "policy";
199
+ CapabilityIds["PRIVACYAUDIT"] = "privacyAudit";
200
+ CapabilityIds["PRIVACYCONSOLE"] = "privacyConsole";
201
+ CapabilityIds["PROFILE"] = "profile";
202
+ CapabilityIds["PROSPECTAUDIENCE"] = "prospectAudience";
203
+ CapabilityIds["PROSPECTPROFILE"] = "prospectProfile";
204
+ CapabilityIds["QUERY"] = "query";
205
+ CapabilityIds["REPORT"] = "report";
206
+ CapabilityIds["REQUEST"] = "request";
207
+ CapabilityIds["SANDBOX"] = "sandbox";
208
+ CapabilityIds["SAPPHIREACCOUNTAUDIENCE"] = "sapphireAccountAudience";
209
+ CapabilityIds["SAPPHIREACCOUNTJOURNEY"] = "sapphireAccountJourney";
210
+ CapabilityIds["SAPPHIREBUYINGGROUPTEMPLATES"] = "sapphireBuyingGroupTemplates";
211
+ CapabilityIds["SAPPHIREEMAILTEMPLATES"] = "sapphireEmailTemplates";
212
+ CapabilityIds["SAPPHIREINSIGHTSDASHBOARD"] = "sapphireInsightsDashboard";
213
+ CapabilityIds["SAPPHIREMARKETOASSETS"] = "sapphireMarketoAssets";
214
+ CapabilityIds["SCENARIO"] = "scenario";
215
+ CapabilityIds["SCHEMA"] = "schema";
216
+ CapabilityIds["SEGMENT"] = "segment";
217
+ CapabilityIds["SEGMENTAUDIENCE"] = "segmentAudience";
218
+ CapabilityIds["SERVERPROPERTIES"] = "serverproperties";
219
+ CapabilityIds["SERVICE"] = "service";
220
+ CapabilityIds["SETTINGS"] = "settings";
221
+ CapabilityIds["SOURCE"] = "source";
222
+ CapabilityIds["SUBSCRIPTIONS"] = "subscriptions";
223
+ CapabilityIds["TRANSLATIONPROJECTS"] = "translationProjects";
224
+ CapabilityIds["TRANSLATIONSERVICEADMIN"] = "translationServiceAdmin";
225
+ CapabilityIds["UNIFIEDTAGS"] = "unifiedTags";
226
+ CapabilityIds["UNIFIEDTAGSBETA"] = "unifiedTagsBeta";
227
+ CapabilityIds["WORKFLOW"] = "workflow";
228
+ })(CapabilityIds = exports.CapabilityIds || (exports.CapabilityIds = {}));
229
+ const capabilityapi = {
230
+ get: params => {
231
+ return (0, Global_1.getImpl)('capabilityApi')().get(params);
232
+ }
233
+ };
234
+ exports.default = capabilityapi;
235
+ //# sourceMappingURL=capabilityapi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capabilityapi.js","sourceRoot":"","sources":["capabilityapi.ts"],"names":[],"mappings":";AAAA;;;;;;;;;4EAS4E;;;AAE5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,yCAAqC;AAarC,iDAAiD;AACjD,IAAY,eAyFX;AAzFD,WAAY,eAAe;IACzB,8CAA2B,CAAA;IAC3B,+CAA4B,CAAA;IAC5B,2CAAwB,CAAA;IACxB,mCAAgB,CAAA;IAChB,2DAAwC,CAAA;IACxC,uCAAoB,CAAA;IACpB,uCAAoB,CAAA;IACpB,qCAAkB,CAAA;IAClB,2DAAwC,CAAA;IACxC,gDAA6B,CAAA;IAC7B,+CAA4B,CAAA;IAC5B,oCAAiB,CAAA;IACjB,0CAAuB,CAAA;IACvB,0CAAuB,CAAA;IACvB,+CA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e,aAAa,CAAC"}
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
- } | any) => void;
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,QAKnC;AAED,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,4EAAmD,CAAA;IACnD,oEAA2C,CAAA;IAC3C,sEAA6C,CAAA;AAC/C,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC;AAED,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,4C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AAE,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 Token
116
+ * IMS org id
120
117
  */
121
- imsToken: string;
118
+ imsOrg?: string;
122
119
  /**
123
- * Is the org an AWS org
120
+ * IMS Token
124
121
  */
125
- isAWSOrg?: boolean;
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
- * Adobe IO gateway URL used as a fallback in GQL call
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
- xqlGatewayUrl?: string;
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