@salesforce/lds-adapters-platform-appexchange 1.435.0 → 1.436.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.
@@ -93,7 +93,7 @@ function createLink(ref) {
93
93
  };
94
94
  }
95
95
 
96
- function validate$R(obj, path = 'AppExchangeActionInfoRepresentation') {
96
+ function validate$T(obj, path = 'AppExchangeActionInfoRepresentation') {
97
97
  const v_error = (() => {
98
98
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
99
99
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -117,7 +117,7 @@ function validate$R(obj, path = 'AppExchangeActionInfoRepresentation') {
117
117
  return v_error === undefined ? null : v_error;
118
118
  }
119
119
 
120
- function validate$Q(obj, path = 'AppExchangeAgentInfoRepresentation') {
120
+ function validate$S(obj, path = 'AppExchangeAgentInfoRepresentation') {
121
121
  const v_error = (() => {
122
122
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
123
123
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -141,7 +141,7 @@ function validate$Q(obj, path = 'AppExchangeAgentInfoRepresentation') {
141
141
  return v_error === undefined ? null : v_error;
142
142
  }
143
143
 
144
- function validate$P(obj, path = 'AppExchangeAssetNodeRepresentation') {
144
+ function validate$R(obj, path = 'AppExchangeAssetNodeRepresentation') {
145
145
  const v_error = (() => {
146
146
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
147
147
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -160,7 +160,7 @@ function validate$P(obj, path = 'AppExchangeAssetNodeRepresentation') {
160
160
  for (let i = 0; i < obj_children.length; i++) {
161
161
  const obj_children_item = obj_children[i];
162
162
  const path_children_item = path_children + '[' + i + ']';
163
- const referencepath_children_itemValidationError = validate$P(obj_children_item, path_children_item);
163
+ const referencepath_children_itemValidationError = validate$R(obj_children_item, path_children_item);
164
164
  if (referencepath_children_itemValidationError !== null) {
165
165
  let message = 'Object doesn\'t match AppExchangeAssetNodeRepresentation (at "' + path_children_item + '")\n';
166
166
  message += referencepath_children_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -177,6 +177,104 @@ function validate$P(obj, path = 'AppExchangeAssetNodeRepresentation') {
177
177
  return v_error === undefined ? null : v_error;
178
178
  }
179
179
 
180
+ function validate$Q(obj, path = 'InstalledPackageDetails') {
181
+ const v_error = (() => {
182
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
183
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
184
+ }
185
+ if (obj.installedDate !== undefined) {
186
+ const obj_installedDate = obj.installedDate;
187
+ const path_installedDate = path + '.installedDate';
188
+ if (typeof obj_installedDate !== 'string') {
189
+ return new TypeError('Expected "string" but received "' + typeof obj_installedDate + '" (at "' + path_installedDate + '")');
190
+ }
191
+ }
192
+ if (obj.majorVersion !== undefined) {
193
+ const obj_majorVersion = obj.majorVersion;
194
+ const path_majorVersion = path + '.majorVersion';
195
+ if (typeof obj_majorVersion !== 'number' || (typeof obj_majorVersion === 'number' && Math.floor(obj_majorVersion) !== obj_majorVersion)) {
196
+ return new TypeError('Expected "integer" but received "' + typeof obj_majorVersion + '" (at "' + path_majorVersion + '")');
197
+ }
198
+ }
199
+ if (obj.minorVersion !== undefined) {
200
+ const obj_minorVersion = obj.minorVersion;
201
+ const path_minorVersion = path + '.minorVersion';
202
+ if (typeof obj_minorVersion !== 'number' || (typeof obj_minorVersion === 'number' && Math.floor(obj_minorVersion) !== obj_minorVersion)) {
203
+ return new TypeError('Expected "integer" but received "' + typeof obj_minorVersion + '" (at "' + path_minorVersion + '")');
204
+ }
205
+ }
206
+ if (obj.patchVersion !== undefined) {
207
+ const obj_patchVersion = obj.patchVersion;
208
+ const path_patchVersion = path + '.patchVersion';
209
+ if (typeof obj_patchVersion !== 'number' || (typeof obj_patchVersion === 'number' && Math.floor(obj_patchVersion) !== obj_patchVersion)) {
210
+ return new TypeError('Expected "integer" but received "' + typeof obj_patchVersion + '" (at "' + path_patchVersion + '")');
211
+ }
212
+ }
213
+ if (obj.versionName !== undefined) {
214
+ const obj_versionName = obj.versionName;
215
+ const path_versionName = path + '.versionName';
216
+ if (typeof obj_versionName !== 'string') {
217
+ return new TypeError('Expected "string" but received "' + typeof obj_versionName + '" (at "' + path_versionName + '")');
218
+ }
219
+ }
220
+ })();
221
+ return v_error === undefined ? null : v_error;
222
+ }
223
+
224
+ function validate$P(obj, path = 'InstallStatusOutput') {
225
+ const v_error = (() => {
226
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
227
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
228
+ }
229
+ if (obj.failureReason !== undefined) {
230
+ const obj_failureReason = obj.failureReason;
231
+ const path_failureReason = path + '.failureReason';
232
+ if (typeof obj_failureReason !== 'string') {
233
+ return new TypeError('Expected "string" but received "' + typeof obj_failureReason + '" (at "' + path_failureReason + '")');
234
+ }
235
+ }
236
+ if (obj.installFailureDate !== undefined) {
237
+ const obj_installFailureDate = obj.installFailureDate;
238
+ const path_installFailureDate = path + '.installFailureDate';
239
+ if (typeof obj_installFailureDate !== 'string') {
240
+ return new TypeError('Expected "string" but received "' + typeof obj_installFailureDate + '" (at "' + path_installFailureDate + '")');
241
+ }
242
+ }
243
+ if (obj.installedPackageDetails !== undefined) {
244
+ const obj_installedPackageDetails = obj.installedPackageDetails;
245
+ const path_installedPackageDetails = path + '.installedPackageDetails';
246
+ const referencepath_installedPackageDetailsValidationError = validate$Q(obj_installedPackageDetails, path_installedPackageDetails);
247
+ if (referencepath_installedPackageDetailsValidationError !== null) {
248
+ let message = 'Object doesn\'t match InstalledPackageDetails (at "' + path_installedPackageDetails + '")\n';
249
+ message += referencepath_installedPackageDetailsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
250
+ return new TypeError(message);
251
+ }
252
+ }
253
+ if (obj.rejectReason !== undefined) {
254
+ const obj_rejectReason = obj.rejectReason;
255
+ const path_rejectReason = path + '.rejectReason';
256
+ if (typeof obj_rejectReason !== 'string') {
257
+ return new TypeError('Expected "string" but received "' + typeof obj_rejectReason + '" (at "' + path_rejectReason + '")');
258
+ }
259
+ }
260
+ if (obj.requestedDate !== undefined) {
261
+ const obj_requestedDate = obj.requestedDate;
262
+ const path_requestedDate = path + '.requestedDate';
263
+ if (typeof obj_requestedDate !== 'string') {
264
+ return new TypeError('Expected "string" but received "' + typeof obj_requestedDate + '" (at "' + path_requestedDate + '")');
265
+ }
266
+ }
267
+ if (obj.status !== undefined) {
268
+ const obj_status = obj.status;
269
+ const path_status = path + '.status';
270
+ if (typeof obj_status !== 'string') {
271
+ return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
272
+ }
273
+ }
274
+ })();
275
+ return v_error === undefined ? null : v_error;
276
+ }
277
+
180
278
  function validate$O(obj, path = 'AppExchangeInstalledPackageVersionRepresentation') {
181
279
  const v_error = (() => {
182
280
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -854,7 +952,7 @@ function validate$C(obj, path = 'AppExchangeAssetListingDetailsRepresentation')
854
952
  const key = obj_actions_keys[i];
855
953
  const obj_actions_prop = obj_actions[key];
856
954
  const path_actions_prop = path_actions + '["' + key + '"]';
857
- const referencepath_actions_propValidationError = validate$R(obj_actions_prop, path_actions_prop);
955
+ const referencepath_actions_propValidationError = validate$T(obj_actions_prop, path_actions_prop);
858
956
  if (referencepath_actions_propValidationError !== null) {
859
957
  let message = 'Object doesn\'t match AppExchangeActionInfoRepresentation (at "' + path_actions_prop + '")\n';
860
958
  message += referencepath_actions_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -873,7 +971,7 @@ function validate$C(obj, path = 'AppExchangeAssetListingDetailsRepresentation')
873
971
  const key = obj_agents_keys[i];
874
972
  const obj_agents_prop = obj_agents[key];
875
973
  const path_agents_prop = path_agents + '["' + key + '"]';
876
- const referencepath_agents_propValidationError = validate$Q(obj_agents_prop, path_agents_prop);
974
+ const referencepath_agents_propValidationError = validate$S(obj_agents_prop, path_agents_prop);
877
975
  if (referencepath_agents_propValidationError !== null) {
878
976
  let message = 'Object doesn\'t match AppExchangeAgentInfoRepresentation (at "' + path_agents_prop + '")\n';
879
977
  message += referencepath_agents_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -890,7 +988,7 @@ function validate$C(obj, path = 'AppExchangeAssetListingDetailsRepresentation')
890
988
  for (let i = 0; i < obj_assets.length; i++) {
891
989
  const obj_assets_item = obj_assets[i];
892
990
  const path_assets_item = path_assets + '[' + i + ']';
893
- const referencepath_assets_itemValidationError = validate$P(obj_assets_item, path_assets_item);
991
+ const referencepath_assets_itemValidationError = validate$R(obj_assets_item, path_assets_item);
894
992
  if (referencepath_assets_itemValidationError !== null) {
895
993
  let message = 'Object doesn\'t match AppExchangeAssetNodeRepresentation (at "' + path_assets_item + '")\n';
896
994
  message += referencepath_assets_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -922,6 +1020,16 @@ function validate$C(obj, path = 'AppExchangeAssetListingDetailsRepresentation')
922
1020
  return new TypeError('Expected "boolean" but received "' + typeof obj_installPackagingPermission + '" (at "' + path_installPackagingPermission + '")');
923
1021
  }
924
1022
  }
1023
+ if (obj.installStatus !== undefined) {
1024
+ const obj_installStatus = obj.installStatus;
1025
+ const path_installStatus = path + '.installStatus';
1026
+ const referencepath_installStatusValidationError = validate$P(obj_installStatus, path_installStatus);
1027
+ if (referencepath_installStatusValidationError !== null) {
1028
+ let message = 'Object doesn\'t match InstallStatusOutput (at "' + path_installStatus + '")\n';
1029
+ message += referencepath_installStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1030
+ return new TypeError(message);
1031
+ }
1032
+ }
925
1033
  if (obj.installedPackage !== undefined) {
926
1034
  const obj_installedPackage = obj.installedPackage;
927
1035
  const path_installedPackage = path + '.installedPackage';
@@ -1,13 +1,14 @@
1
1
  import { AppExchangeActionInfoRepresentation as AppExchangeActionInfoRepresentation_AppExchangeActionInfoRepresentation } from './AppExchangeActionInfoRepresentation';
2
2
  import { AppExchangeAgentInfoRepresentation as AppExchangeAgentInfoRepresentation_AppExchangeAgentInfoRepresentation } from './AppExchangeAgentInfoRepresentation';
3
3
  import { AppExchangeAssetNodeRepresentation as AppExchangeAssetNodeRepresentation_AppExchangeAssetNodeRepresentation } from './AppExchangeAssetNodeRepresentation';
4
+ import { InstallStatusOutput as InstallStatusOutput_InstallStatusOutput } from './InstallStatusOutput';
4
5
  import { AppExchangeInstalledPackageRepresentation as AppExchangeInstalledPackageRepresentation_AppExchangeInstalledPackageRepresentation } from './AppExchangeInstalledPackageRepresentation';
5
6
  import { AppExchangePricingRepresentation as AppExchangePricingRepresentation_AppExchangePricingRepresentation } from './AppExchangePricingRepresentation';
6
7
  import { AppExchangePublisherRepresentation as AppExchangePublisherRepresentation_AppExchangePublisherRepresentation } from './AppExchangePublisherRepresentation';
7
8
  import { AppExchangeListingReviewsSummaryRepresentation as AppExchangeListingReviewsSummaryRepresentation_AppExchangeListingReviewsSummaryRepresentation } from './AppExchangeListingReviewsSummaryRepresentation';
8
9
  import { AppExchangeTopicInfoRepresentation as AppExchangeTopicInfoRepresentation_AppExchangeTopicInfoRepresentation } from './AppExchangeTopicInfoRepresentation';
9
10
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
10
- export declare const VERSION = "01e92fd9b7a65ed763c3f4b660ab51f6";
11
+ export declare const VERSION = "585e7c43f15cd2521ccaf4a97eb5c1a8";
11
12
  export declare function validate(obj: any, path?: string): TypeError | null;
12
13
  export declare const RepresentationType: string;
13
14
  export declare function normalize(input: AppExchangeAssetListingDetailsRepresentation, existing: AppExchangeAssetListingDetailsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AppExchangeAssetListingDetailsRepresentationNormalized;
@@ -40,6 +41,7 @@ export interface AppExchangeAssetListingDetailsRepresentationNormalized {
40
41
  id: string;
41
42
  /** Whether the user has install packaging permission */
42
43
  installPackagingPermission?: boolean;
44
+ installStatus?: InstallStatusOutput_InstallStatusOutput;
43
45
  installedPackage?: AppExchangeInstalledPackageRepresentation_AppExchangeInstalledPackageRepresentation;
44
46
  latestVersion?: AppExchangeInstalledPackageRepresentation_AppExchangeInstalledPackageRepresentation;
45
47
  /** The logo URL */
@@ -78,6 +80,7 @@ export interface AppExchangeAssetListingDetailsRepresentation {
78
80
  fullDescription?: string;
79
81
  id: string;
80
82
  installPackagingPermission?: boolean;
83
+ installStatus?: InstallStatusOutput_InstallStatusOutput;
81
84
  installedPackage?: AppExchangeInstalledPackageRepresentation_AppExchangeInstalledPackageRepresentation;
82
85
  latestVersion?: AppExchangeInstalledPackageRepresentation_AppExchangeInstalledPackageRepresentation;
83
86
  logoUrl?: string;
@@ -0,0 +1,43 @@
1
+ import { InstalledPackageDetails as InstalledPackageDetails_InstalledPackageDetails } from './InstalledPackageDetails';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
+ export declare const VERSION = "4cf49354cf9d79b0ee8f2de1ec0add7f";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: InstallStatusOutput, existing: InstallStatusOutputNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): InstallStatusOutputNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: InstallStatusOutputNormalized, incoming: InstallStatusOutputNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: InstallStatusOutput, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Installation status for a single package version
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface InstallStatusOutputNormalized {
18
+ /** Reason for installation failure (present for failed statuses) */
19
+ failureReason?: string;
20
+ /** Date when the installation failed (present for failed statuses) */
21
+ installFailureDate?: string;
22
+ installedPackageDetails?: InstalledPackageDetails_InstalledPackageDetails;
23
+ /** Reason for rejection by admin (present when status is InstallRequestRejected) */
24
+ rejectReason?: string;
25
+ /** Date when the installation was requested (present for in-progress/pending statuses) */
26
+ requestedDate?: string;
27
+ /** Current installation status */
28
+ status?: string;
29
+ }
30
+ /**
31
+ * Installation status for a single package version
32
+ *
33
+ * Keys:
34
+ * (none)
35
+ */
36
+ export interface InstallStatusOutput {
37
+ failureReason?: string;
38
+ installFailureDate?: string;
39
+ installedPackageDetails?: InstalledPackageDetails_InstalledPackageDetails;
40
+ rejectReason?: string;
41
+ requestedDate?: string;
42
+ status?: string;
43
+ }
@@ -0,0 +1,40 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "a1cc76cd5ec22869d3417a613c973ad0";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: InstalledPackageDetails, existing: InstalledPackageDetailsNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): InstalledPackageDetailsNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: InstalledPackageDetailsNormalized, incoming: InstalledPackageDetailsNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: InstalledPackageDetails, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Details of an installed package version (reusable across APIs)
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface InstalledPackageDetailsNormalized {
17
+ /** Date when the package was installed */
18
+ installedDate?: string;
19
+ /** Major version number */
20
+ majorVersion?: number;
21
+ /** Minor version number */
22
+ minorVersion?: number;
23
+ /** Patch version number */
24
+ patchVersion?: number;
25
+ /** Version name of the installed package */
26
+ versionName?: string;
27
+ }
28
+ /**
29
+ * Details of an installed package version (reusable across APIs)
30
+ *
31
+ * Keys:
32
+ * (none)
33
+ */
34
+ export interface InstalledPackageDetails {
35
+ installedDate?: string;
36
+ majorVersion?: number;
37
+ minorVersion?: number;
38
+ patchVersion?: number;
39
+ versionName?: string;
40
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-appexchange",
3
- "version": "1.435.0",
3
+ "version": "1.436.0",
4
4
  "description": "This API Family is owned by AppExchange Everywhere team, aimed at integrating AppExchange with Core.",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/platform-appexchange.js",
@@ -46,10 +46,10 @@
46
46
  "test:unit": "jest"
47
47
  },
48
48
  "dependencies": {
49
- "@salesforce/lds-bindings": "^1.435.0"
49
+ "@salesforce/lds-bindings": "^1.436.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@salesforce/lds-compiler-plugins": "^1.435.0"
52
+ "@salesforce/lds-compiler-plugins": "^1.436.0"
53
53
  },
54
54
  "nx": {
55
55
  "targets": {
package/sfdc/index.js CHANGED
@@ -103,7 +103,7 @@ function createLink(ref) {
103
103
  };
104
104
  }
105
105
 
106
- function validate$R(obj, path = 'AppExchangeActionInfoRepresentation') {
106
+ function validate$T(obj, path = 'AppExchangeActionInfoRepresentation') {
107
107
  const v_error = (() => {
108
108
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
109
109
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -127,7 +127,7 @@ function validate$R(obj, path = 'AppExchangeActionInfoRepresentation') {
127
127
  return v_error === undefined ? null : v_error;
128
128
  }
129
129
 
130
- function validate$Q(obj, path = 'AppExchangeAgentInfoRepresentation') {
130
+ function validate$S(obj, path = 'AppExchangeAgentInfoRepresentation') {
131
131
  const v_error = (() => {
132
132
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
133
133
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -151,7 +151,7 @@ function validate$Q(obj, path = 'AppExchangeAgentInfoRepresentation') {
151
151
  return v_error === undefined ? null : v_error;
152
152
  }
153
153
 
154
- function validate$P(obj, path = 'AppExchangeAssetNodeRepresentation') {
154
+ function validate$R(obj, path = 'AppExchangeAssetNodeRepresentation') {
155
155
  const v_error = (() => {
156
156
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
157
157
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -170,7 +170,7 @@ function validate$P(obj, path = 'AppExchangeAssetNodeRepresentation') {
170
170
  for (let i = 0; i < obj_children.length; i++) {
171
171
  const obj_children_item = obj_children[i];
172
172
  const path_children_item = path_children + '[' + i + ']';
173
- const referencepath_children_itemValidationError = validate$P(obj_children_item, path_children_item);
173
+ const referencepath_children_itemValidationError = validate$R(obj_children_item, path_children_item);
174
174
  if (referencepath_children_itemValidationError !== null) {
175
175
  let message = 'Object doesn\'t match AppExchangeAssetNodeRepresentation (at "' + path_children_item + '")\n';
176
176
  message += referencepath_children_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -187,6 +187,104 @@ function validate$P(obj, path = 'AppExchangeAssetNodeRepresentation') {
187
187
  return v_error === undefined ? null : v_error;
188
188
  }
189
189
 
190
+ function validate$Q(obj, path = 'InstalledPackageDetails') {
191
+ const v_error = (() => {
192
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
193
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
194
+ }
195
+ if (obj.installedDate !== undefined) {
196
+ const obj_installedDate = obj.installedDate;
197
+ const path_installedDate = path + '.installedDate';
198
+ if (typeof obj_installedDate !== 'string') {
199
+ return new TypeError('Expected "string" but received "' + typeof obj_installedDate + '" (at "' + path_installedDate + '")');
200
+ }
201
+ }
202
+ if (obj.majorVersion !== undefined) {
203
+ const obj_majorVersion = obj.majorVersion;
204
+ const path_majorVersion = path + '.majorVersion';
205
+ if (typeof obj_majorVersion !== 'number' || (typeof obj_majorVersion === 'number' && Math.floor(obj_majorVersion) !== obj_majorVersion)) {
206
+ return new TypeError('Expected "integer" but received "' + typeof obj_majorVersion + '" (at "' + path_majorVersion + '")');
207
+ }
208
+ }
209
+ if (obj.minorVersion !== undefined) {
210
+ const obj_minorVersion = obj.minorVersion;
211
+ const path_minorVersion = path + '.minorVersion';
212
+ if (typeof obj_minorVersion !== 'number' || (typeof obj_minorVersion === 'number' && Math.floor(obj_minorVersion) !== obj_minorVersion)) {
213
+ return new TypeError('Expected "integer" but received "' + typeof obj_minorVersion + '" (at "' + path_minorVersion + '")');
214
+ }
215
+ }
216
+ if (obj.patchVersion !== undefined) {
217
+ const obj_patchVersion = obj.patchVersion;
218
+ const path_patchVersion = path + '.patchVersion';
219
+ if (typeof obj_patchVersion !== 'number' || (typeof obj_patchVersion === 'number' && Math.floor(obj_patchVersion) !== obj_patchVersion)) {
220
+ return new TypeError('Expected "integer" but received "' + typeof obj_patchVersion + '" (at "' + path_patchVersion + '")');
221
+ }
222
+ }
223
+ if (obj.versionName !== undefined) {
224
+ const obj_versionName = obj.versionName;
225
+ const path_versionName = path + '.versionName';
226
+ if (typeof obj_versionName !== 'string') {
227
+ return new TypeError('Expected "string" but received "' + typeof obj_versionName + '" (at "' + path_versionName + '")');
228
+ }
229
+ }
230
+ })();
231
+ return v_error === undefined ? null : v_error;
232
+ }
233
+
234
+ function validate$P(obj, path = 'InstallStatusOutput') {
235
+ const v_error = (() => {
236
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
237
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
238
+ }
239
+ if (obj.failureReason !== undefined) {
240
+ const obj_failureReason = obj.failureReason;
241
+ const path_failureReason = path + '.failureReason';
242
+ if (typeof obj_failureReason !== 'string') {
243
+ return new TypeError('Expected "string" but received "' + typeof obj_failureReason + '" (at "' + path_failureReason + '")');
244
+ }
245
+ }
246
+ if (obj.installFailureDate !== undefined) {
247
+ const obj_installFailureDate = obj.installFailureDate;
248
+ const path_installFailureDate = path + '.installFailureDate';
249
+ if (typeof obj_installFailureDate !== 'string') {
250
+ return new TypeError('Expected "string" but received "' + typeof obj_installFailureDate + '" (at "' + path_installFailureDate + '")');
251
+ }
252
+ }
253
+ if (obj.installedPackageDetails !== undefined) {
254
+ const obj_installedPackageDetails = obj.installedPackageDetails;
255
+ const path_installedPackageDetails = path + '.installedPackageDetails';
256
+ const referencepath_installedPackageDetailsValidationError = validate$Q(obj_installedPackageDetails, path_installedPackageDetails);
257
+ if (referencepath_installedPackageDetailsValidationError !== null) {
258
+ let message = 'Object doesn\'t match InstalledPackageDetails (at "' + path_installedPackageDetails + '")\n';
259
+ message += referencepath_installedPackageDetailsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
260
+ return new TypeError(message);
261
+ }
262
+ }
263
+ if (obj.rejectReason !== undefined) {
264
+ const obj_rejectReason = obj.rejectReason;
265
+ const path_rejectReason = path + '.rejectReason';
266
+ if (typeof obj_rejectReason !== 'string') {
267
+ return new TypeError('Expected "string" but received "' + typeof obj_rejectReason + '" (at "' + path_rejectReason + '")');
268
+ }
269
+ }
270
+ if (obj.requestedDate !== undefined) {
271
+ const obj_requestedDate = obj.requestedDate;
272
+ const path_requestedDate = path + '.requestedDate';
273
+ if (typeof obj_requestedDate !== 'string') {
274
+ return new TypeError('Expected "string" but received "' + typeof obj_requestedDate + '" (at "' + path_requestedDate + '")');
275
+ }
276
+ }
277
+ if (obj.status !== undefined) {
278
+ const obj_status = obj.status;
279
+ const path_status = path + '.status';
280
+ if (typeof obj_status !== 'string') {
281
+ return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
282
+ }
283
+ }
284
+ })();
285
+ return v_error === undefined ? null : v_error;
286
+ }
287
+
190
288
  function validate$O(obj, path = 'AppExchangeInstalledPackageVersionRepresentation') {
191
289
  const v_error = (() => {
192
290
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -864,7 +962,7 @@ function validate$C(obj, path = 'AppExchangeAssetListingDetailsRepresentation')
864
962
  const key = obj_actions_keys[i];
865
963
  const obj_actions_prop = obj_actions[key];
866
964
  const path_actions_prop = path_actions + '["' + key + '"]';
867
- const referencepath_actions_propValidationError = validate$R(obj_actions_prop, path_actions_prop);
965
+ const referencepath_actions_propValidationError = validate$T(obj_actions_prop, path_actions_prop);
868
966
  if (referencepath_actions_propValidationError !== null) {
869
967
  let message = 'Object doesn\'t match AppExchangeActionInfoRepresentation (at "' + path_actions_prop + '")\n';
870
968
  message += referencepath_actions_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -883,7 +981,7 @@ function validate$C(obj, path = 'AppExchangeAssetListingDetailsRepresentation')
883
981
  const key = obj_agents_keys[i];
884
982
  const obj_agents_prop = obj_agents[key];
885
983
  const path_agents_prop = path_agents + '["' + key + '"]';
886
- const referencepath_agents_propValidationError = validate$Q(obj_agents_prop, path_agents_prop);
984
+ const referencepath_agents_propValidationError = validate$S(obj_agents_prop, path_agents_prop);
887
985
  if (referencepath_agents_propValidationError !== null) {
888
986
  let message = 'Object doesn\'t match AppExchangeAgentInfoRepresentation (at "' + path_agents_prop + '")\n';
889
987
  message += referencepath_agents_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -900,7 +998,7 @@ function validate$C(obj, path = 'AppExchangeAssetListingDetailsRepresentation')
900
998
  for (let i = 0; i < obj_assets.length; i++) {
901
999
  const obj_assets_item = obj_assets[i];
902
1000
  const path_assets_item = path_assets + '[' + i + ']';
903
- const referencepath_assets_itemValidationError = validate$P(obj_assets_item, path_assets_item);
1001
+ const referencepath_assets_itemValidationError = validate$R(obj_assets_item, path_assets_item);
904
1002
  if (referencepath_assets_itemValidationError !== null) {
905
1003
  let message = 'Object doesn\'t match AppExchangeAssetNodeRepresentation (at "' + path_assets_item + '")\n';
906
1004
  message += referencepath_assets_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -932,6 +1030,16 @@ function validate$C(obj, path = 'AppExchangeAssetListingDetailsRepresentation')
932
1030
  return new TypeError('Expected "boolean" but received "' + typeof obj_installPackagingPermission + '" (at "' + path_installPackagingPermission + '")');
933
1031
  }
934
1032
  }
1033
+ if (obj.installStatus !== undefined) {
1034
+ const obj_installStatus = obj.installStatus;
1035
+ const path_installStatus = path + '.installStatus';
1036
+ const referencepath_installStatusValidationError = validate$P(obj_installStatus, path_installStatus);
1037
+ if (referencepath_installStatusValidationError !== null) {
1038
+ let message = 'Object doesn\'t match InstallStatusOutput (at "' + path_installStatus + '")\n';
1039
+ message += referencepath_installStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1040
+ return new TypeError(message);
1041
+ }
1042
+ }
935
1043
  if (obj.installedPackage !== undefined) {
936
1044
  const obj_installedPackage = obj.installedPackage;
937
1045
  const path_installedPackage = path + '.installedPackage';
@@ -6270,4 +6378,4 @@ withDefaultLuvio((luvio) => {
6270
6378
  });
6271
6379
 
6272
6380
  export { getActionDetails, getActionDetails_imperative, getAssetActions, getAssetActions_imperative, getAssetTopics, getAssetTopics_imperative, getListingDetails, getListingDetails_imperative, getTopicDetails, getTopicDetails_imperative, postAppExchangeUserEvents, searchListings };
6273
- // version: 1.435.0-615ebb9bbd
6381
+ // version: 1.436.0-7cd4295391
package/src/raml/api.raml CHANGED
@@ -2,7 +2,7 @@
2
2
  securedBy:
3
3
  - OAuth2
4
4
  title: Salesforce Connect API
5
- version: '67.0'
5
+ version: '68.0'
6
6
  mediaType: application/json
7
7
  protocols:
8
8
  - https
@@ -199,6 +199,10 @@ types:
199
199
  description: The installed package version info
200
200
  type: AppExchangeInstalledPackageRepresentation
201
201
  required: false # hand-rolled
202
+ installStatus:
203
+ description: Install lifecycle status and related data for the package
204
+ type: InstallStatusOutput
205
+ required: false #Hand-rolled
202
206
  latestVersion:
203
207
  description: The latest package version info
204
208
  type: AppExchangeInstalledPackageRepresentation
@@ -3272,6 +3276,70 @@ types:
3272
3276
  primaryKey:
3273
3277
  description: The primary key
3274
3278
  type: string
3279
+ InstallStatusOutput:
3280
+ description: Installation status for a single package version
3281
+ type: object
3282
+ properties:
3283
+ failureReason:
3284
+ description: Reason for installation failure (present for failed statuses)
3285
+ type: string
3286
+ required: false #Hand-rolled
3287
+ installFailureDate:
3288
+ description: Date when the installation failed (present for failed statuses)
3289
+ type: string
3290
+ required: false #Hand-rolled
3291
+ installedPackageDetails:
3292
+ description: Details of the installed package version (present when status is Installed)
3293
+ type: InstalledPackageDetails
3294
+ required: false #Hand-rolled
3295
+ rejectReason:
3296
+ description: Reason for rejection by admin (present when status is InstallRequestRejected)
3297
+ type: string
3298
+ required: false #Hand-rolled
3299
+ requestedDate:
3300
+ description: Date when the installation was requested (present for in-progress/pending statuses)
3301
+ type: string
3302
+ required: false #Hand-rolled
3303
+ status:
3304
+ description: Current installation status
3305
+ type: string
3306
+ required: false #Hand-rolled
3307
+ enum:
3308
+ - Installed
3309
+ - NotInstalled
3310
+ - InProgress
3311
+ - OtherUserInstallInProgress
3312
+ - InstallFailed
3313
+ - PendingInstall
3314
+ - AdminInstallPending
3315
+ - AdminInstallInProgress
3316
+ - AdminInstallFailed
3317
+ - InstallRequestRejected
3318
+ - UpdateAvailable
3319
+ InstalledPackageDetails:
3320
+ description: Details of an installed package version (reusable across APIs)
3321
+ type: object
3322
+ properties:
3323
+ installedDate:
3324
+ description: Date when the package was installed
3325
+ type: string
3326
+ required: false #Hand-rolled
3327
+ majorVersion:
3328
+ description: Major version number
3329
+ type: integer
3330
+ required: false #Hand-rolled
3331
+ minorVersion:
3332
+ description: Minor version number
3333
+ type: integer
3334
+ required: false #Hand-rolled
3335
+ patchVersion:
3336
+ description: Patch version number
3337
+ type: integer
3338
+ required: false #Hand-rolled
3339
+ versionName:
3340
+ description: Version name of the installed package
3341
+ type: string
3342
+ required: false #Hand-rolled
3275
3343
  /connect/appexchange:
3276
3344
  /assets:
3277
3345
  /listings/{listingId}: