@salesforce/lds-adapters-analytics-app-framework 1.401.0 → 1.403.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.
@@ -573,7 +573,7 @@ function equals$q(existing, incoming) {
573
573
  }
574
574
 
575
575
  const TTL$e = 5000;
576
- const VERSION$p = "83db5eb45b2ef59314498ac2065f8703";
576
+ const VERSION$p = "3f235a5ba94d1ece8d06067bb2a82154";
577
577
  function validate$v(obj, path = 'AppRepresentation') {
578
578
  const v_error = (() => {
579
579
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -802,6 +802,32 @@ function validate$v(obj, path = 'AppRepresentation') {
802
802
  message += '\n' + obj_templateVersion_union1.split('\n').map((line) => '\t' + line).join('\n');
803
803
  return new TypeError(message);
804
804
  }
805
+ const obj_updateBasicAppUrl = obj.updateBasicAppUrl;
806
+ const path_updateBasicAppUrl = path + '.updateBasicAppUrl';
807
+ let obj_updateBasicAppUrl_union0 = null;
808
+ const obj_updateBasicAppUrl_union0_error = (() => {
809
+ if (typeof obj_updateBasicAppUrl !== 'string') {
810
+ return new TypeError('Expected "string" but received "' + typeof obj_updateBasicAppUrl + '" (at "' + path_updateBasicAppUrl + '")');
811
+ }
812
+ })();
813
+ if (obj_updateBasicAppUrl_union0_error != null) {
814
+ obj_updateBasicAppUrl_union0 = obj_updateBasicAppUrl_union0_error.message;
815
+ }
816
+ let obj_updateBasicAppUrl_union1 = null;
817
+ const obj_updateBasicAppUrl_union1_error = (() => {
818
+ if (obj_updateBasicAppUrl !== null) {
819
+ return new TypeError('Expected "null" but received "' + typeof obj_updateBasicAppUrl + '" (at "' + path_updateBasicAppUrl + '")');
820
+ }
821
+ })();
822
+ if (obj_updateBasicAppUrl_union1_error != null) {
823
+ obj_updateBasicAppUrl_union1 = obj_updateBasicAppUrl_union1_error.message;
824
+ }
825
+ if (obj_updateBasicAppUrl_union0 && obj_updateBasicAppUrl_union1) {
826
+ let message = 'Object doesn\'t match union (at "' + path_updateBasicAppUrl + '")';
827
+ message += '\n' + obj_updateBasicAppUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
828
+ message += '\n' + obj_updateBasicAppUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
829
+ return new TypeError(message);
830
+ }
805
831
  const obj_url = obj.url;
806
832
  const path_url = path + '.url';
807
833
  if (typeof obj_url !== 'string') {
@@ -916,6 +942,10 @@ const select$K = function AppRepresentationSelect() {
916
942
  name: 'templateVersion',
917
943
  kind: 'Scalar'
918
944
  },
945
+ {
946
+ name: 'updateBasicAppUrl',
947
+ kind: 'Scalar'
948
+ },
919
949
  {
920
950
  name: 'url',
921
951
  kind: 'Scalar'
@@ -1037,6 +1067,11 @@ function equals$p(existing, incoming) {
1037
1067
  if (!(existing_templateVersion === incoming_templateVersion)) {
1038
1068
  return false;
1039
1069
  }
1070
+ const existing_updateBasicAppUrl = existing.updateBasicAppUrl;
1071
+ const incoming_updateBasicAppUrl = incoming.updateBasicAppUrl;
1072
+ if (!(existing_updateBasicAppUrl === incoming_updateBasicAppUrl)) {
1073
+ return false;
1074
+ }
1040
1075
  return true;
1041
1076
  }
1042
1077
  const ingest$e = function AppRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -1298,7 +1333,7 @@ const getAppsAdapterFactory = (luvio) => function AppFramework__getApps(untruste
1298
1333
  };
1299
1334
 
1300
1335
  const TTL$c = 5000;
1301
- const VERSION$n = "a85525e1766a7eebe825500005c5bdc6";
1336
+ const VERSION$n = "b985c6a47ada42709443d2790e712cab";
1302
1337
  function validate$t(obj, path = 'AppResultRepresentation') {
1303
1338
  const v_error = (() => {
1304
1339
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1311,8 +1346,29 @@ function validate$t(obj, path = 'AppResultRepresentation') {
1311
1346
  }
1312
1347
  const obj_appHubUrl = obj.appHubUrl;
1313
1348
  const path_appHubUrl = path + '.appHubUrl';
1314
- if (typeof obj_appHubUrl !== 'string') {
1315
- return new TypeError('Expected "string" but received "' + typeof obj_appHubUrl + '" (at "' + path_appHubUrl + '")');
1349
+ let obj_appHubUrl_union0 = null;
1350
+ const obj_appHubUrl_union0_error = (() => {
1351
+ if (typeof obj_appHubUrl !== 'string') {
1352
+ return new TypeError('Expected "string" but received "' + typeof obj_appHubUrl + '" (at "' + path_appHubUrl + '")');
1353
+ }
1354
+ })();
1355
+ if (obj_appHubUrl_union0_error != null) {
1356
+ obj_appHubUrl_union0 = obj_appHubUrl_union0_error.message;
1357
+ }
1358
+ let obj_appHubUrl_union1 = null;
1359
+ const obj_appHubUrl_union1_error = (() => {
1360
+ if (obj_appHubUrl !== null) {
1361
+ return new TypeError('Expected "null" but received "' + typeof obj_appHubUrl + '" (at "' + path_appHubUrl + '")');
1362
+ }
1363
+ })();
1364
+ if (obj_appHubUrl_union1_error != null) {
1365
+ obj_appHubUrl_union1 = obj_appHubUrl_union1_error.message;
1366
+ }
1367
+ if (obj_appHubUrl_union0 && obj_appHubUrl_union1) {
1368
+ let message = 'Object doesn\'t match union (at "' + path_appHubUrl + '")';
1369
+ message += '\n' + obj_appHubUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
1370
+ message += '\n' + obj_appHubUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
1371
+ return new TypeError(message);
1316
1372
  }
1317
1373
  const obj_failureMessage = obj.failureMessage;
1318
1374
  const path_failureMessage = path + '.failureMessage';
@@ -1440,16 +1496,16 @@ const select$H = function AppResultRepresentationSelect() {
1440
1496
  };
1441
1497
  };
1442
1498
  function equals$n(existing, incoming) {
1443
- const existing_appHubUrl = existing.appHubUrl;
1444
- const incoming_appHubUrl = incoming.appHubUrl;
1445
- if (!(existing_appHubUrl === incoming_appHubUrl)) {
1446
- return false;
1447
- }
1448
1499
  const existing_app = existing.app;
1449
1500
  const incoming_app = incoming.app;
1450
1501
  if (!(existing_app.__ref === incoming_app.__ref)) {
1451
1502
  return false;
1452
1503
  }
1504
+ const existing_appHubUrl = existing.appHubUrl;
1505
+ const incoming_appHubUrl = incoming.appHubUrl;
1506
+ if (!(existing_appHubUrl === incoming_appHubUrl)) {
1507
+ return false;
1508
+ }
1453
1509
  const existing_failureMessage = existing.failureMessage;
1454
1510
  const incoming_failureMessage = incoming.failureMessage;
1455
1511
  if (!(existing_failureMessage === incoming_failureMessage)) {
@@ -2,7 +2,7 @@ import { UserRepresentation as UserRepresentation_UserRepresentation } from './U
2
2
  import { AppScheduleRepresentation as AppScheduleRepresentation_AppScheduleRepresentation } from './AppScheduleRepresentation';
3
3
  import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
4
4
  export declare const TTL = 5000;
5
- export declare const VERSION = "83db5eb45b2ef59314498ac2065f8703";
5
+ export declare const VERSION = "3f235a5ba94d1ece8d06067bb2a82154";
6
6
  export declare function validate(obj: any, path?: string): TypeError | null;
7
7
  export declare const RepresentationType: string;
8
8
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -66,6 +66,8 @@ export interface AppRepresentationNormalized {
66
66
  };
67
67
  /** The version of the template used to create the app. */
68
68
  templateVersion: string | null;
69
+ /** A link to run the update for an app that is a template source */
70
+ updateBasicAppUrl: string | null;
69
71
  /** A self link to this App */
70
72
  url: string;
71
73
  }
@@ -98,5 +100,6 @@ export interface AppRepresentation {
98
100
  [key: string]: unknown;
99
101
  };
100
102
  templateVersion: string | null;
103
+ updateBasicAppUrl: string | null;
101
104
  url: string;
102
105
  }
@@ -1,7 +1,7 @@
1
1
  import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
2
  import { AppRepresentation as AppRepresentation_AppRepresentation } from './AppRepresentation';
3
3
  export declare const TTL = 5000;
4
- export declare const VERSION = "a85525e1766a7eebe825500005c5bdc6";
4
+ export declare const VERSION = "b985c6a47ada42709443d2790e712cab";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
7
7
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -37,7 +37,7 @@ export interface AppResultRepresentationNormalized {
37
37
  /** The App. */
38
38
  app: $64$luvio_engine_StoreLink;
39
39
  /** A link to the App Hub Setup Page. */
40
- appHubUrl: string;
40
+ appHubUrl: string | null;
41
41
  /** The Failure message if the app has failed. If this app was created Async it may not have completed yet. */
42
42
  failureMessage: string | null;
43
43
  /** The Domino Runtime Request. */
@@ -55,7 +55,7 @@ export interface AppResultRepresentationNormalized {
55
55
  */
56
56
  export interface AppResultRepresentation {
57
57
  app: AppRepresentation_AppRepresentation;
58
- appHubUrl: string;
58
+ appHubUrl: string | null;
59
59
  failureMessage: string | null;
60
60
  runtimeRequestId: string | null;
61
61
  state: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-analytics-app-framework",
3
- "version": "1.401.0",
3
+ "version": "1.403.0",
4
4
  "description": "APIs for the app-framework",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/analytics-app-framework.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.401.0"
43
+ "@salesforce/lds-bindings": "^1.403.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.401.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.403.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -583,7 +583,7 @@ function equals$q(existing, incoming) {
583
583
  }
584
584
 
585
585
  const TTL$e = 5000;
586
- const VERSION$p = "83db5eb45b2ef59314498ac2065f8703";
586
+ const VERSION$p = "3f235a5ba94d1ece8d06067bb2a82154";
587
587
  function validate$v(obj, path = 'AppRepresentation') {
588
588
  const v_error = (() => {
589
589
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -812,6 +812,32 @@ function validate$v(obj, path = 'AppRepresentation') {
812
812
  message += '\n' + obj_templateVersion_union1.split('\n').map((line) => '\t' + line).join('\n');
813
813
  return new TypeError(message);
814
814
  }
815
+ const obj_updateBasicAppUrl = obj.updateBasicAppUrl;
816
+ const path_updateBasicAppUrl = path + '.updateBasicAppUrl';
817
+ let obj_updateBasicAppUrl_union0 = null;
818
+ const obj_updateBasicAppUrl_union0_error = (() => {
819
+ if (typeof obj_updateBasicAppUrl !== 'string') {
820
+ return new TypeError('Expected "string" but received "' + typeof obj_updateBasicAppUrl + '" (at "' + path_updateBasicAppUrl + '")');
821
+ }
822
+ })();
823
+ if (obj_updateBasicAppUrl_union0_error != null) {
824
+ obj_updateBasicAppUrl_union0 = obj_updateBasicAppUrl_union0_error.message;
825
+ }
826
+ let obj_updateBasicAppUrl_union1 = null;
827
+ const obj_updateBasicAppUrl_union1_error = (() => {
828
+ if (obj_updateBasicAppUrl !== null) {
829
+ return new TypeError('Expected "null" but received "' + typeof obj_updateBasicAppUrl + '" (at "' + path_updateBasicAppUrl + '")');
830
+ }
831
+ })();
832
+ if (obj_updateBasicAppUrl_union1_error != null) {
833
+ obj_updateBasicAppUrl_union1 = obj_updateBasicAppUrl_union1_error.message;
834
+ }
835
+ if (obj_updateBasicAppUrl_union0 && obj_updateBasicAppUrl_union1) {
836
+ let message = 'Object doesn\'t match union (at "' + path_updateBasicAppUrl + '")';
837
+ message += '\n' + obj_updateBasicAppUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
838
+ message += '\n' + obj_updateBasicAppUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
839
+ return new TypeError(message);
840
+ }
815
841
  const obj_url = obj.url;
816
842
  const path_url = path + '.url';
817
843
  if (typeof obj_url !== 'string') {
@@ -926,6 +952,10 @@ const select$K = function AppRepresentationSelect() {
926
952
  name: 'templateVersion',
927
953
  kind: 'Scalar'
928
954
  },
955
+ {
956
+ name: 'updateBasicAppUrl',
957
+ kind: 'Scalar'
958
+ },
929
959
  {
930
960
  name: 'url',
931
961
  kind: 'Scalar'
@@ -1047,6 +1077,11 @@ function equals$p(existing, incoming) {
1047
1077
  if (!(existing_templateVersion === incoming_templateVersion)) {
1048
1078
  return false;
1049
1079
  }
1080
+ const existing_updateBasicAppUrl = existing.updateBasicAppUrl;
1081
+ const incoming_updateBasicAppUrl = incoming.updateBasicAppUrl;
1082
+ if (!(existing_updateBasicAppUrl === incoming_updateBasicAppUrl)) {
1083
+ return false;
1084
+ }
1050
1085
  return true;
1051
1086
  }
1052
1087
  const ingest$e = function AppRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -1072,7 +1107,7 @@ function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
1072
1107
  }
1073
1108
 
1074
1109
  const TTL$d = 5000;
1075
- const VERSION$o = "a85525e1766a7eebe825500005c5bdc6";
1110
+ const VERSION$o = "b985c6a47ada42709443d2790e712cab";
1076
1111
  function validate$u(obj, path = 'AppResultRepresentation') {
1077
1112
  const v_error = (() => {
1078
1113
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1085,8 +1120,29 @@ function validate$u(obj, path = 'AppResultRepresentation') {
1085
1120
  }
1086
1121
  const obj_appHubUrl = obj.appHubUrl;
1087
1122
  const path_appHubUrl = path + '.appHubUrl';
1088
- if (typeof obj_appHubUrl !== 'string') {
1089
- return new TypeError('Expected "string" but received "' + typeof obj_appHubUrl + '" (at "' + path_appHubUrl + '")');
1123
+ let obj_appHubUrl_union0 = null;
1124
+ const obj_appHubUrl_union0_error = (() => {
1125
+ if (typeof obj_appHubUrl !== 'string') {
1126
+ return new TypeError('Expected "string" but received "' + typeof obj_appHubUrl + '" (at "' + path_appHubUrl + '")');
1127
+ }
1128
+ })();
1129
+ if (obj_appHubUrl_union0_error != null) {
1130
+ obj_appHubUrl_union0 = obj_appHubUrl_union0_error.message;
1131
+ }
1132
+ let obj_appHubUrl_union1 = null;
1133
+ const obj_appHubUrl_union1_error = (() => {
1134
+ if (obj_appHubUrl !== null) {
1135
+ return new TypeError('Expected "null" but received "' + typeof obj_appHubUrl + '" (at "' + path_appHubUrl + '")');
1136
+ }
1137
+ })();
1138
+ if (obj_appHubUrl_union1_error != null) {
1139
+ obj_appHubUrl_union1 = obj_appHubUrl_union1_error.message;
1140
+ }
1141
+ if (obj_appHubUrl_union0 && obj_appHubUrl_union1) {
1142
+ let message = 'Object doesn\'t match union (at "' + path_appHubUrl + '")';
1143
+ message += '\n' + obj_appHubUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
1144
+ message += '\n' + obj_appHubUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
1145
+ return new TypeError(message);
1090
1146
  }
1091
1147
  const obj_failureMessage = obj.failureMessage;
1092
1148
  const path_failureMessage = path + '.failureMessage';
@@ -1214,16 +1270,16 @@ const select$J = function AppResultRepresentationSelect() {
1214
1270
  };
1215
1271
  };
1216
1272
  function equals$o(existing, incoming) {
1217
- const existing_appHubUrl = existing.appHubUrl;
1218
- const incoming_appHubUrl = incoming.appHubUrl;
1219
- if (!(existing_appHubUrl === incoming_appHubUrl)) {
1220
- return false;
1221
- }
1222
1273
  const existing_app = existing.app;
1223
1274
  const incoming_app = incoming.app;
1224
1275
  if (!(existing_app.__ref === incoming_app.__ref)) {
1225
1276
  return false;
1226
1277
  }
1278
+ const existing_appHubUrl = existing.appHubUrl;
1279
+ const incoming_appHubUrl = incoming.appHubUrl;
1280
+ if (!(existing_appHubUrl === incoming_appHubUrl)) {
1281
+ return false;
1282
+ }
1227
1283
  const existing_failureMessage = existing.failureMessage;
1228
1284
  const incoming_failureMessage = incoming.failureMessage;
1229
1285
  if (!(existing_failureMessage === incoming_failureMessage)) {
@@ -8403,4 +8459,4 @@ withDefaultLuvio((luvio) => {
8403
8459
  });
8404
8460
 
8405
8461
  export { createApp, createAppAsset, createTemplate, deleteApp, deleteAppAsset, deleteTemplate, getApp, getAppActivities, getAppActivitiesNotifyChange, getAppActivities_imperative, getAppActivity, getAppActivityNotifyChange, getAppActivity_imperative, getAppAsset, getAppAsset_imperative, getAppAssets, getAppAssetsNotifyChange, getAppAssets_imperative, getAppNotifyChange, getApp_imperative, getApps, getApps_imperative, getInstalledAssets, getInstalledAssets_imperative, getTags, getTagsNotifyChange, getTags_imperative, getTemplate, getTemplateAssets, getTemplateAssets_imperative, getTemplateConfig, getTemplateConfigNotifyChange, getTemplateConfig_imperative, getTemplateNotifyChange, getTemplate_imperative, getTemplates, getTemplates_imperative, readinessCheck, setTags, updateApp, updateAppAsset, updateBasicApp, updateTemplate };
8406
- // version: 1.401.0-c620f9ffed
8462
+ // version: 1.403.0-5476a05446
package/src/raml/api.raml CHANGED
@@ -254,6 +254,9 @@ types:
254
254
  url:
255
255
  description: A self link to this App
256
256
  type: string
257
+ updateBasicAppUrl:
258
+ description: A link to run the update for an app that is a template source
259
+ type: string | nil
257
260
  AppResultRepresentation:
258
261
  description: Representation for the results of an app creation.
259
262
  type: object
@@ -276,7 +279,7 @@ types:
276
279
  type: any # TODO Hand-rolled W-8863405
277
280
  appHubUrl:
278
281
  description: A link to the App Hub Setup Page.
279
- type: string
282
+ type: string | nil
280
283
  AppScheduleRepresentation:
281
284
  description: Representaiton for an App Data Refresh schedule
282
285
  type: object