@salesforce/lds-adapters-platform-appexchange 1.332.0-dev2 → 1.332.0-dev21
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/dist/es/es2018/platform-appexchange.js +560 -195
- package/dist/es/es2018/types/src/generated/adapters/searchListings.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +2 -3
- package/dist/es/es2018/types/src/generated/resources/postConnectAppexchangeSearchListings.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeSearchListingCollectionRepresentation.d.ts +17 -5
- package/dist/es/es2018/types/src/generated/types/AppExchangeSearchListingRepresentation.d.ts +29 -29
- package/dist/es/es2018/types/src/generated/types/AppExchangeSearchListingsInputRepresentation.d.ts +79 -0
- package/package.json +3 -3
- package/sfdc/index.js +846 -489
- package/src/raml/api.raml +345 -312
- package/src/raml/luvio.raml +4 -3
- package/dist/es/es2018/types/src/generated/adapters/getAppExchangeSearchListingCollection.d.ts +0 -44
- package/dist/es/es2018/types/src/generated/resources/getConnectAppexchangeSearchListings.d.ts +0 -32
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1, typeCheckConfig as typeCheckConfig$3, StoreKeyMap, createResourceParams as createResourceParams$3 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -84,347 +84,26 @@ const keyPrefix = 'appexchange';
|
|
|
84
84
|
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
85
85
|
const { isArray: ArrayIsArray } = Array;
|
|
86
86
|
const { stringify: JSONStringify } = JSON;
|
|
87
|
-
function
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
function validate$A(obj, path = 'AppExchangeListingLogoRepresentation') {
|
|
94
|
-
const v_error = (() => {
|
|
95
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
96
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
97
|
-
}
|
|
98
|
-
const obj_externalId = obj.externalId;
|
|
99
|
-
const path_externalId = path + '.externalId';
|
|
100
|
-
if (typeof obj_externalId !== 'string') {
|
|
101
|
-
return new TypeError('Expected "string" but received "' + typeof obj_externalId + '" (at "' + path_externalId + '")');
|
|
102
|
-
}
|
|
103
|
-
const obj_logoType = obj.logoType;
|
|
104
|
-
const path_logoType = path + '.logoType';
|
|
105
|
-
if (typeof obj_logoType !== 'string') {
|
|
106
|
-
return new TypeError('Expected "string" but received "' + typeof obj_logoType + '" (at "' + path_logoType + '")');
|
|
107
|
-
}
|
|
108
|
-
const obj_mediaId = obj.mediaId;
|
|
109
|
-
const path_mediaId = path + '.mediaId';
|
|
110
|
-
if (typeof obj_mediaId !== 'string') {
|
|
111
|
-
return new TypeError('Expected "string" but received "' + typeof obj_mediaId + '" (at "' + path_mediaId + '")');
|
|
112
|
-
}
|
|
113
|
-
})();
|
|
114
|
-
return v_error === undefined ? null : v_error;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
function validate$z(obj, path = 'AppExchangeSearchListingRepresentation') {
|
|
118
|
-
const v_error = (() => {
|
|
119
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
120
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
121
|
-
}
|
|
122
|
-
obj.averageRating;
|
|
123
|
-
const obj_collectionName = obj.collectionName;
|
|
124
|
-
const path_collectionName = path + '.collectionName';
|
|
125
|
-
if (typeof obj_collectionName !== 'string') {
|
|
126
|
-
return new TypeError('Expected "string" but received "' + typeof obj_collectionName + '" (at "' + path_collectionName + '")');
|
|
127
|
-
}
|
|
128
|
-
const obj_description = obj.description;
|
|
129
|
-
const path_description = path + '.description';
|
|
130
|
-
if (typeof obj_description !== 'string') {
|
|
131
|
-
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
132
|
-
}
|
|
133
|
-
const obj_documentPosition = obj.documentPosition;
|
|
134
|
-
const path_documentPosition = path + '.documentPosition';
|
|
135
|
-
if (typeof obj_documentPosition !== 'number' || (typeof obj_documentPosition === 'number' && Math.floor(obj_documentPosition) !== obj_documentPosition)) {
|
|
136
|
-
return new TypeError('Expected "integer" but received "' + typeof obj_documentPosition + '" (at "' + path_documentPosition + '")');
|
|
137
|
-
}
|
|
138
|
-
const obj_documentTitle = obj.documentTitle;
|
|
139
|
-
const path_documentTitle = path + '.documentTitle';
|
|
140
|
-
if (typeof obj_documentTitle !== 'string') {
|
|
141
|
-
return new TypeError('Expected "string" but received "' + typeof obj_documentTitle + '" (at "' + path_documentTitle + '")');
|
|
142
|
-
}
|
|
143
|
-
const obj_listingCategories = obj.listingCategories;
|
|
144
|
-
const path_listingCategories = path + '.listingCategories';
|
|
145
|
-
if (!ArrayIsArray(obj_listingCategories)) {
|
|
146
|
-
return new TypeError('Expected "array" but received "' + typeof obj_listingCategories + '" (at "' + path_listingCategories + '")');
|
|
147
|
-
}
|
|
148
|
-
for (let i = 0; i < obj_listingCategories.length; i++) {
|
|
149
|
-
const obj_listingCategories_item = obj_listingCategories[i];
|
|
150
|
-
const path_listingCategories_item = path_listingCategories + '[' + i + ']';
|
|
151
|
-
if (typeof obj_listingCategories_item !== 'string') {
|
|
152
|
-
return new TypeError('Expected "string" but received "' + typeof obj_listingCategories_item + '" (at "' + path_listingCategories_item + '")');
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
const obj_logos = obj.logos;
|
|
156
|
-
const path_logos = path + '.logos';
|
|
157
|
-
if (!ArrayIsArray(obj_logos)) {
|
|
158
|
-
return new TypeError('Expected "array" but received "' + typeof obj_logos + '" (at "' + path_logos + '")');
|
|
159
|
-
}
|
|
160
|
-
for (let i = 0; i < obj_logos.length; i++) {
|
|
161
|
-
const obj_logos_item = obj_logos[i];
|
|
162
|
-
const path_logos_item = path_logos + '[' + i + ']';
|
|
163
|
-
const referencepath_logos_itemValidationError = validate$A(obj_logos_item, path_logos_item);
|
|
164
|
-
if (referencepath_logos_itemValidationError !== null) {
|
|
165
|
-
let message = 'Object doesn\'t match AppExchangeListingLogoRepresentation (at "' + path_logos_item + '")\n';
|
|
166
|
-
message += referencepath_logos_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
167
|
-
return new TypeError(message);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
const obj_oafId = obj.oafId;
|
|
171
|
-
const path_oafId = path + '.oafId';
|
|
172
|
-
if (typeof obj_oafId !== 'string') {
|
|
173
|
-
return new TypeError('Expected "string" but received "' + typeof obj_oafId + '" (at "' + path_oafId + '")');
|
|
174
|
-
}
|
|
175
|
-
const obj_pricing = obj.pricing;
|
|
176
|
-
const path_pricing = path + '.pricing';
|
|
177
|
-
if (typeof obj_pricing !== 'string') {
|
|
178
|
-
return new TypeError('Expected "string" but received "' + typeof obj_pricing + '" (at "' + path_pricing + '")');
|
|
179
|
-
}
|
|
180
|
-
const obj_publisher = obj.publisher;
|
|
181
|
-
const path_publisher = path + '.publisher';
|
|
182
|
-
if (typeof obj_publisher !== 'string') {
|
|
183
|
-
return new TypeError('Expected "string" but received "' + typeof obj_publisher + '" (at "' + path_publisher + '")');
|
|
184
|
-
}
|
|
185
|
-
const obj_reviewsAmount = obj.reviewsAmount;
|
|
186
|
-
const path_reviewsAmount = path + '.reviewsAmount';
|
|
187
|
-
if (typeof obj_reviewsAmount !== 'number' || (typeof obj_reviewsAmount === 'number' && Math.floor(obj_reviewsAmount) !== obj_reviewsAmount)) {
|
|
188
|
-
return new TypeError('Expected "integer" but received "' + typeof obj_reviewsAmount + '" (at "' + path_reviewsAmount + '")');
|
|
189
|
-
}
|
|
190
|
-
const obj_sourceName = obj.sourceName;
|
|
191
|
-
const path_sourceName = path + '.sourceName';
|
|
192
|
-
if (typeof obj_sourceName !== 'string') {
|
|
193
|
-
return new TypeError('Expected "string" but received "' + typeof obj_sourceName + '" (at "' + path_sourceName + '")');
|
|
194
|
-
}
|
|
195
|
-
const obj_title = obj.title;
|
|
196
|
-
const path_title = path + '.title';
|
|
197
|
-
if (typeof obj_title !== 'string') {
|
|
198
|
-
return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
|
|
199
|
-
}
|
|
200
|
-
const obj_type = obj.type;
|
|
201
|
-
const path_type = path + '.type';
|
|
202
|
-
if (typeof obj_type !== 'string') {
|
|
203
|
-
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
204
|
-
}
|
|
205
|
-
})();
|
|
206
|
-
return v_error === undefined ? null : v_error;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
const VERSION$2 = "a62184aef316aa15954899c1d6098cb5";
|
|
210
|
-
function validate$y(obj, path = 'AppExchangeSearchListingCollectionRepresentation') {
|
|
211
|
-
const v_error = (() => {
|
|
212
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
213
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
214
|
-
}
|
|
215
|
-
const obj_listings = obj.listings;
|
|
216
|
-
const path_listings = path + '.listings';
|
|
217
|
-
if (!ArrayIsArray(obj_listings)) {
|
|
218
|
-
return new TypeError('Expected "array" but received "' + typeof obj_listings + '" (at "' + path_listings + '")');
|
|
219
|
-
}
|
|
220
|
-
for (let i = 0; i < obj_listings.length; i++) {
|
|
221
|
-
const obj_listings_item = obj_listings[i];
|
|
222
|
-
const path_listings_item = path_listings + '[' + i + ']';
|
|
223
|
-
const referencepath_listings_itemValidationError = validate$z(obj_listings_item, path_listings_item);
|
|
224
|
-
if (referencepath_listings_itemValidationError !== null) {
|
|
225
|
-
let message = 'Object doesn\'t match AppExchangeSearchListingRepresentation (at "' + path_listings_item + '")\n';
|
|
226
|
-
message += referencepath_listings_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
227
|
-
return new TypeError(message);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
const obj_totalCount = obj.totalCount;
|
|
231
|
-
const path_totalCount = path + '.totalCount';
|
|
232
|
-
if (typeof obj_totalCount !== 'number' || (typeof obj_totalCount === 'number' && Math.floor(obj_totalCount) !== obj_totalCount)) {
|
|
233
|
-
return new TypeError('Expected "integer" but received "' + typeof obj_totalCount + '" (at "' + path_totalCount + '")');
|
|
234
|
-
}
|
|
235
|
-
})();
|
|
236
|
-
return v_error === undefined ? null : v_error;
|
|
237
|
-
}
|
|
238
|
-
const RepresentationType$2 = 'AppExchangeSearchListingCollectionRepresentation';
|
|
239
|
-
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
240
|
-
return input;
|
|
241
|
-
}
|
|
242
|
-
const select$5 = function AppExchangeSearchListingCollectionRepresentationSelect() {
|
|
243
|
-
return {
|
|
244
|
-
kind: 'Fragment',
|
|
245
|
-
version: VERSION$2,
|
|
246
|
-
private: [],
|
|
247
|
-
opaque: true
|
|
248
|
-
};
|
|
249
|
-
};
|
|
250
|
-
function equals$2(existing, incoming) {
|
|
251
|
-
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
87
|
+
function equalsArray(a, b, equalsItem) {
|
|
88
|
+
const aLength = a.length;
|
|
89
|
+
const bLength = b.length;
|
|
90
|
+
if (aLength !== bLength) {
|
|
252
91
|
return false;
|
|
253
92
|
}
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
258
|
-
const validateError = validate$y(input);
|
|
259
|
-
if (validateError !== null) {
|
|
260
|
-
throw validateError;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
const key = path.fullPath;
|
|
264
|
-
const ttlToUse = path.ttl !== undefined ? path.ttl : 3000;
|
|
265
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "appexchange", VERSION$2, RepresentationType$2, equals$2);
|
|
266
|
-
return createLink(key);
|
|
267
|
-
};
|
|
268
|
-
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
269
|
-
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
270
|
-
const rootKey = fullPathFactory();
|
|
271
|
-
rootKeySet.set(rootKey, {
|
|
272
|
-
namespace: keyPrefix,
|
|
273
|
-
representationName: RepresentationType$2,
|
|
274
|
-
mergeable: false
|
|
275
|
-
});
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
function select$4(luvio, params) {
|
|
279
|
-
return select$5();
|
|
280
|
-
}
|
|
281
|
-
function keyBuilder$4(luvio, params) {
|
|
282
|
-
return keyPrefix + '::AppExchangeSearchListingCollectionRepresentation:(' + 'category:' + params.queryParams.category + ',' + 'edition:' + params.queryParams.edition + ',' + 'features:' + params.queryParams.features + ',' + 'impact:' + params.queryParams.impact + ',' + 'industry:' + params.queryParams.industry + ',' + 'keyword:' + params.queryParams.keyword + ',' + 'labs:' + params.queryParams.labs + ',' + 'language:' + params.queryParams.language + ',' + 'languages:' + params.queryParams.languages + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'persona:' + params.queryParams.persona + ',' + 'price:' + params.queryParams.price + ',' + 'product:' + params.queryParams.product + ',' + 'rating:' + params.queryParams.rating + ',' + 'sort:' + params.queryParams.sort + ',' + 'tech:' + params.queryParams.tech + ',' + 'type:' + params.queryParams.type + ')';
|
|
283
|
-
}
|
|
284
|
-
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
285
|
-
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
|
|
286
|
-
}
|
|
287
|
-
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
288
|
-
const { body } = response;
|
|
289
|
-
const key = keyBuilder$4(luvio, resourceParams);
|
|
290
|
-
luvio.storeIngest(key, ingest$2, body);
|
|
291
|
-
const snapshot = luvio.storeLookup({
|
|
292
|
-
recordId: key,
|
|
293
|
-
node: select$4(),
|
|
294
|
-
variables: {},
|
|
295
|
-
}, snapshotRefresh);
|
|
296
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
297
|
-
if (snapshot.state !== 'Fulfilled') {
|
|
298
|
-
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
93
|
+
for (let i = 0; i < aLength; i++) {
|
|
94
|
+
if (equalsItem(a[i], b[i]) === false) {
|
|
95
|
+
return false;
|
|
299
96
|
}
|
|
300
97
|
}
|
|
301
|
-
|
|
302
|
-
return snapshot;
|
|
303
|
-
}
|
|
304
|
-
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
305
|
-
const key = keyBuilder$4(luvio, params);
|
|
306
|
-
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
307
|
-
luvio.storeIngestError(key, errorSnapshot);
|
|
308
|
-
return errorSnapshot;
|
|
98
|
+
return true;
|
|
309
99
|
}
|
|
310
|
-
function
|
|
311
|
-
const headers = {};
|
|
100
|
+
function createLink(ref) {
|
|
312
101
|
return {
|
|
313
|
-
|
|
314
|
-
basePath: '/connect/appexchange/search-listings',
|
|
315
|
-
method: 'get',
|
|
316
|
-
body: null,
|
|
317
|
-
urlParams: {},
|
|
318
|
-
queryParams: config.queryParams,
|
|
319
|
-
headers,
|
|
320
|
-
priority: 'normal',
|
|
321
|
-
};
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
const adapterName$2 = 'getAppExchangeSearchListingCollection';
|
|
325
|
-
const getAppExchangeSearchListingCollection_ConfigPropertyMetadata = [
|
|
326
|
-
generateParamConfigMetadata('category', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
327
|
-
generateParamConfigMetadata('edition', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
328
|
-
generateParamConfigMetadata('features', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
329
|
-
generateParamConfigMetadata('impact', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
330
|
-
generateParamConfigMetadata('industry', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
331
|
-
generateParamConfigMetadata('keyword', false, 1 /* QueryParameter */, 0 /* String */),
|
|
332
|
-
generateParamConfigMetadata('labs', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
333
|
-
generateParamConfigMetadata('language', false, 1 /* QueryParameter */, 0 /* String */),
|
|
334
|
-
generateParamConfigMetadata('languages', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
335
|
-
generateParamConfigMetadata('page', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
336
|
-
generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
337
|
-
generateParamConfigMetadata('persona', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
338
|
-
generateParamConfigMetadata('price', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
339
|
-
generateParamConfigMetadata('product', false, 1 /* QueryParameter */, 0 /* String */),
|
|
340
|
-
generateParamConfigMetadata('rating', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
341
|
-
generateParamConfigMetadata('sort', false, 1 /* QueryParameter */, 0 /* String */),
|
|
342
|
-
generateParamConfigMetadata('tech', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
343
|
-
generateParamConfigMetadata('type', false, 1 /* QueryParameter */, 0 /* String */),
|
|
344
|
-
];
|
|
345
|
-
const getAppExchangeSearchListingCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getAppExchangeSearchListingCollection_ConfigPropertyMetadata);
|
|
346
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$3(getAppExchangeSearchListingCollection_ConfigPropertyMetadata);
|
|
347
|
-
function keyBuilder$3(luvio, config) {
|
|
348
|
-
const resourceParams = createResourceParams$2(config);
|
|
349
|
-
return keyBuilder$4(luvio, resourceParams);
|
|
350
|
-
}
|
|
351
|
-
function typeCheckConfig$2(untrustedConfig) {
|
|
352
|
-
const config = {};
|
|
353
|
-
typeCheckConfig$3(untrustedConfig, config, getAppExchangeSearchListingCollection_ConfigPropertyMetadata);
|
|
354
|
-
return config;
|
|
355
|
-
}
|
|
356
|
-
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
357
|
-
if (!untrustedIsObject(untrustedConfig)) {
|
|
358
|
-
return null;
|
|
359
|
-
}
|
|
360
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
361
|
-
validateConfig(untrustedConfig, configPropertyNames);
|
|
362
|
-
}
|
|
363
|
-
const config = typeCheckConfig$2(untrustedConfig);
|
|
364
|
-
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
365
|
-
return null;
|
|
366
|
-
}
|
|
367
|
-
return config;
|
|
368
|
-
}
|
|
369
|
-
function adapterFragment$1(luvio, config) {
|
|
370
|
-
createResourceParams$2(config);
|
|
371
|
-
return select$4();
|
|
372
|
-
}
|
|
373
|
-
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
374
|
-
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
375
|
-
config,
|
|
376
|
-
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
377
|
-
});
|
|
378
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
379
|
-
}
|
|
380
|
-
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
381
|
-
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
382
|
-
config,
|
|
383
|
-
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
384
|
-
});
|
|
385
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
386
|
-
}
|
|
387
|
-
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
388
|
-
const resourceParams = createResourceParams$2(config);
|
|
389
|
-
const request = createResourceRequest$2(resourceParams);
|
|
390
|
-
return luvio.dispatchResourceRequest(request, options)
|
|
391
|
-
.then((response) => {
|
|
392
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
393
|
-
const cache = new StoreKeyMap();
|
|
394
|
-
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
395
|
-
return cache;
|
|
396
|
-
});
|
|
397
|
-
}, (response) => {
|
|
398
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
399
|
-
});
|
|
400
|
-
}
|
|
401
|
-
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
402
|
-
return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
403
|
-
}
|
|
404
|
-
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
405
|
-
const { luvio, config } = context;
|
|
406
|
-
const selector = {
|
|
407
|
-
recordId: keyBuilder$3(luvio, config),
|
|
408
|
-
node: adapterFragment$1(luvio, config),
|
|
409
|
-
variables: {},
|
|
102
|
+
__ref: serializeStructuredKey(ref),
|
|
410
103
|
};
|
|
411
|
-
const cacheSnapshot = storeLookup(selector, {
|
|
412
|
-
config,
|
|
413
|
-
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
414
|
-
});
|
|
415
|
-
return cacheSnapshot;
|
|
416
104
|
}
|
|
417
|
-
const getAppExchangeSearchListingCollectionAdapterFactory = (luvio) => function appexchange__getAppExchangeSearchListingCollection(untrustedConfig, requestContext) {
|
|
418
|
-
const config = validateAdapterConfig$2(untrustedConfig, getAppExchangeSearchListingCollection_ConfigPropertyNames);
|
|
419
|
-
// Invalid or incomplete config
|
|
420
|
-
if (config === null) {
|
|
421
|
-
return null;
|
|
422
|
-
}
|
|
423
|
-
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
424
|
-
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
425
|
-
};
|
|
426
105
|
|
|
427
|
-
function validate$
|
|
106
|
+
function validate$A(obj, path = 'AppExchangeListingCategoriesRepresentation') {
|
|
428
107
|
const v_error = (() => {
|
|
429
108
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
430
109
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -454,7 +133,7 @@ function validate$x(obj, path = 'AppExchangeListingCategoriesRepresentation') {
|
|
|
454
133
|
return v_error === undefined ? null : v_error;
|
|
455
134
|
}
|
|
456
135
|
|
|
457
|
-
function validate$
|
|
136
|
+
function validate$z(obj, path = 'AppExchangeForceCopilotListingExtensionRepresentation') {
|
|
458
137
|
const v_error = (() => {
|
|
459
138
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
460
139
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1180,7 +859,7 @@ function validate$w(obj, path = 'AppExchangeForceCopilotListingExtensionRepresen
|
|
|
1180
859
|
return v_error === undefined ? null : v_error;
|
|
1181
860
|
}
|
|
1182
861
|
|
|
1183
|
-
function validate$
|
|
862
|
+
function validate$y(obj, path = 'AppExchangeForceExtensionRepresentation') {
|
|
1184
863
|
const v_error = (() => {
|
|
1185
864
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1186
865
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1906,7 +1585,7 @@ function validate$v(obj, path = 'AppExchangeForceExtensionRepresentation') {
|
|
|
1906
1585
|
return v_error === undefined ? null : v_error;
|
|
1907
1586
|
}
|
|
1908
1587
|
|
|
1909
|
-
function validate$
|
|
1588
|
+
function validate$x(obj, path = 'AppExchangeForcePackageListingExtensionRepresentation') {
|
|
1910
1589
|
const v_error = (() => {
|
|
1911
1590
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1912
1591
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1943,7 +1622,7 @@ function validate$u(obj, path = 'AppExchangeForcePackageListingExtensionRepresen
|
|
|
1943
1622
|
return v_error === undefined ? null : v_error;
|
|
1944
1623
|
}
|
|
1945
1624
|
|
|
1946
|
-
function validate$
|
|
1625
|
+
function validate$w(obj, path = 'AppExchangeForcePackageListingTestDriveExtensionRepresentation') {
|
|
1947
1626
|
const v_error = (() => {
|
|
1948
1627
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1949
1628
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1987,7 +1666,7 @@ function validate$t(obj, path = 'AppExchangeForcePackageListingTestDriveExtensio
|
|
|
1987
1666
|
return v_error === undefined ? null : v_error;
|
|
1988
1667
|
}
|
|
1989
1668
|
|
|
1990
|
-
function validate$
|
|
1669
|
+
function validate$v(obj, path = 'AppExchangeTableauExtensionRepresentation') {
|
|
1991
1670
|
const v_error = (() => {
|
|
1992
1671
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1993
1672
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2255,7 +1934,7 @@ function validate$s(obj, path = 'AppExchangeTableauExtensionRepresentation') {
|
|
|
2255
1934
|
return v_error === undefined ? null : v_error;
|
|
2256
1935
|
}
|
|
2257
1936
|
|
|
2258
|
-
function validate$
|
|
1937
|
+
function validate$u(obj, path = 'AppExchangeListingExtensionsRepresentation') {
|
|
2259
1938
|
const v_error = (() => {
|
|
2260
1939
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2261
1940
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2263,7 +1942,7 @@ function validate$r(obj, path = 'AppExchangeListingExtensionsRepresentation') {
|
|
|
2263
1942
|
if (obj.listing_extensions_force_listings_CopilotListing !== undefined) {
|
|
2264
1943
|
const obj_listing_extensions_force_listings_CopilotListing = obj.listing_extensions_force_listings_CopilotListing;
|
|
2265
1944
|
const path_listing_extensions_force_listings_CopilotListing = path + '.listing_extensions_force_listings_CopilotListing';
|
|
2266
|
-
const referencepath_listing_extensions_force_listings_CopilotListingValidationError = validate$
|
|
1945
|
+
const referencepath_listing_extensions_force_listings_CopilotListingValidationError = validate$z(obj_listing_extensions_force_listings_CopilotListing, path_listing_extensions_force_listings_CopilotListing);
|
|
2267
1946
|
if (referencepath_listing_extensions_force_listings_CopilotListingValidationError !== null) {
|
|
2268
1947
|
let message = 'Object doesn\'t match AppExchangeForceCopilotListingExtensionRepresentation (at "' + path_listing_extensions_force_listings_CopilotListing + '")\n';
|
|
2269
1948
|
message += referencepath_listing_extensions_force_listings_CopilotListingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2273,7 +1952,7 @@ function validate$r(obj, path = 'AppExchangeListingExtensionsRepresentation') {
|
|
|
2273
1952
|
if (obj.listing_extensions_force_listings_Listing !== undefined) {
|
|
2274
1953
|
const obj_listing_extensions_force_listings_Listing = obj.listing_extensions_force_listings_Listing;
|
|
2275
1954
|
const path_listing_extensions_force_listings_Listing = path + '.listing_extensions_force_listings_Listing';
|
|
2276
|
-
const referencepath_listing_extensions_force_listings_ListingValidationError = validate$
|
|
1955
|
+
const referencepath_listing_extensions_force_listings_ListingValidationError = validate$y(obj_listing_extensions_force_listings_Listing, path_listing_extensions_force_listings_Listing);
|
|
2277
1956
|
if (referencepath_listing_extensions_force_listings_ListingValidationError !== null) {
|
|
2278
1957
|
let message = 'Object doesn\'t match AppExchangeForceExtensionRepresentation (at "' + path_listing_extensions_force_listings_Listing + '")\n';
|
|
2279
1958
|
message += referencepath_listing_extensions_force_listings_ListingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2283,7 +1962,7 @@ function validate$r(obj, path = 'AppExchangeListingExtensionsRepresentation') {
|
|
|
2283
1962
|
if (obj.listing_extensions_force_listings_Listing_extensions_PackageListing !== undefined) {
|
|
2284
1963
|
const obj_listing_extensions_force_listings_Listing_extensions_PackageListing = obj.listing_extensions_force_listings_Listing_extensions_PackageListing;
|
|
2285
1964
|
const path_listing_extensions_force_listings_Listing_extensions_PackageListing = path + '.listing_extensions_force_listings_Listing_extensions_PackageListing';
|
|
2286
|
-
const referencepath_listing_extensions_force_listings_Listing_extensions_PackageListingValidationError = validate$
|
|
1965
|
+
const referencepath_listing_extensions_force_listings_Listing_extensions_PackageListingValidationError = validate$x(obj_listing_extensions_force_listings_Listing_extensions_PackageListing, path_listing_extensions_force_listings_Listing_extensions_PackageListing);
|
|
2287
1966
|
if (referencepath_listing_extensions_force_listings_Listing_extensions_PackageListingValidationError !== null) {
|
|
2288
1967
|
let message = 'Object doesn\'t match AppExchangeForcePackageListingExtensionRepresentation (at "' + path_listing_extensions_force_listings_Listing_extensions_PackageListing + '")\n';
|
|
2289
1968
|
message += referencepath_listing_extensions_force_listings_Listing_extensions_PackageListingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2293,7 +1972,7 @@ function validate$r(obj, path = 'AppExchangeListingExtensionsRepresentation') {
|
|
|
2293
1972
|
if (obj.listing_extensions_force_listings_Listing_extensions_PackageListing_TestDrive !== undefined) {
|
|
2294
1973
|
const obj_listing_extensions_force_listings_Listing_extensions_PackageListing_TestDrive = obj.listing_extensions_force_listings_Listing_extensions_PackageListing_TestDrive;
|
|
2295
1974
|
const path_listing_extensions_force_listings_Listing_extensions_PackageListing_TestDrive = path + '.listing_extensions_force_listings_Listing_extensions_PackageListing_TestDrive';
|
|
2296
|
-
const referencepath_listing_extensions_force_listings_Listing_extensions_PackageListing_TestDriveValidationError = validate$
|
|
1975
|
+
const referencepath_listing_extensions_force_listings_Listing_extensions_PackageListing_TestDriveValidationError = validate$w(obj_listing_extensions_force_listings_Listing_extensions_PackageListing_TestDrive, path_listing_extensions_force_listings_Listing_extensions_PackageListing_TestDrive);
|
|
2297
1976
|
if (referencepath_listing_extensions_force_listings_Listing_extensions_PackageListing_TestDriveValidationError !== null) {
|
|
2298
1977
|
let message = 'Object doesn\'t match AppExchangeForcePackageListingTestDriveExtensionRepresentation (at "' + path_listing_extensions_force_listings_Listing_extensions_PackageListing_TestDrive + '")\n';
|
|
2299
1978
|
message += referencepath_listing_extensions_force_listings_Listing_extensions_PackageListing_TestDriveValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2303,7 +1982,7 @@ function validate$r(obj, path = 'AppExchangeListingExtensionsRepresentation') {
|
|
|
2303
1982
|
if (obj.listing_extensions_tableau_listings_Listing !== undefined) {
|
|
2304
1983
|
const obj_listing_extensions_tableau_listings_Listing = obj.listing_extensions_tableau_listings_Listing;
|
|
2305
1984
|
const path_listing_extensions_tableau_listings_Listing = path + '.listing_extensions_tableau_listings_Listing';
|
|
2306
|
-
const referencepath_listing_extensions_tableau_listings_ListingValidationError = validate$
|
|
1985
|
+
const referencepath_listing_extensions_tableau_listings_ListingValidationError = validate$v(obj_listing_extensions_tableau_listings_Listing, path_listing_extensions_tableau_listings_Listing);
|
|
2307
1986
|
if (referencepath_listing_extensions_tableau_listings_ListingValidationError !== null) {
|
|
2308
1987
|
let message = 'Object doesn\'t match AppExchangeTableauExtensionRepresentation (at "' + path_listing_extensions_tableau_listings_Listing + '")\n';
|
|
2309
1988
|
message += referencepath_listing_extensions_tableau_listings_ListingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2319,7 +1998,7 @@ var DiscriminatorValues$3;
|
|
|
2319
1998
|
DiscriminatorValues["Video"] = "Video";
|
|
2320
1999
|
DiscriminatorValues["Image"] = "Image";
|
|
2321
2000
|
})(DiscriminatorValues$3 || (DiscriminatorValues$3 = {}));
|
|
2322
|
-
function validate$
|
|
2001
|
+
function validate$t(obj, path = 'AppExchangeCarouselItemDataRepresentation') {
|
|
2323
2002
|
const v_error = (() => {
|
|
2324
2003
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2325
2004
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2335,7 +2014,7 @@ function validate$q(obj, path = 'AppExchangeCarouselItemDataRepresentation') {
|
|
|
2335
2014
|
return v_error === undefined ? null : v_error;
|
|
2336
2015
|
}
|
|
2337
2016
|
|
|
2338
|
-
function validate$
|
|
2017
|
+
function validate$s(obj, path = 'AppExchangeCarouselItemRepresentation') {
|
|
2339
2018
|
const v_error = (() => {
|
|
2340
2019
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2341
2020
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2343,7 +2022,7 @@ function validate$p(obj, path = 'AppExchangeCarouselItemRepresentation') {
|
|
|
2343
2022
|
if (obj.data !== undefined) {
|
|
2344
2023
|
const obj_data = obj.data;
|
|
2345
2024
|
const path_data = path + '.data';
|
|
2346
|
-
const referencepath_dataValidationError = validate$
|
|
2025
|
+
const referencepath_dataValidationError = validate$t(obj_data, path_data);
|
|
2347
2026
|
if (referencepath_dataValidationError !== null) {
|
|
2348
2027
|
let message = 'Object doesn\'t match AppExchangeCarouselItemDataRepresentation (at "' + path_data + '")\n';
|
|
2349
2028
|
message += referencepath_dataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2368,7 +2047,7 @@ function validate$p(obj, path = 'AppExchangeCarouselItemRepresentation') {
|
|
|
2368
2047
|
return v_error === undefined ? null : v_error;
|
|
2369
2048
|
}
|
|
2370
2049
|
|
|
2371
|
-
function validate$
|
|
2050
|
+
function validate$r(obj, path = 'AppExchangeCarouselPluginRepresentation') {
|
|
2372
2051
|
const v_error = (() => {
|
|
2373
2052
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2374
2053
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2382,7 +2061,7 @@ function validate$o(obj, path = 'AppExchangeCarouselPluginRepresentation') {
|
|
|
2382
2061
|
for (let i = 0; i < obj_items.length; i++) {
|
|
2383
2062
|
const obj_items_item = obj_items[i];
|
|
2384
2063
|
const path_items_item = path_items + '[' + i + ']';
|
|
2385
|
-
const referencepath_items_itemValidationError = validate$
|
|
2064
|
+
const referencepath_items_itemValidationError = validate$s(obj_items_item, path_items_item);
|
|
2386
2065
|
if (referencepath_items_itemValidationError !== null) {
|
|
2387
2066
|
let message = 'Object doesn\'t match AppExchangeCarouselItemRepresentation (at "' + path_items_item + '")\n';
|
|
2388
2067
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2399,7 +2078,7 @@ var DiscriminatorValues$2;
|
|
|
2399
2078
|
DiscriminatorValues["Url"] = "Url";
|
|
2400
2079
|
DiscriminatorValues["File"] = "File";
|
|
2401
2080
|
})(DiscriminatorValues$2 || (DiscriminatorValues$2 = {}));
|
|
2402
|
-
function validate$
|
|
2081
|
+
function validate$q(obj, path = 'AppExchangeContentItemDataRepresentation') {
|
|
2403
2082
|
const v_error = (() => {
|
|
2404
2083
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2405
2084
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2415,7 +2094,7 @@ function validate$n(obj, path = 'AppExchangeContentItemDataRepresentation') {
|
|
|
2415
2094
|
return v_error === undefined ? null : v_error;
|
|
2416
2095
|
}
|
|
2417
2096
|
|
|
2418
|
-
function validate$
|
|
2097
|
+
function validate$p(obj, path = 'AppExchangeContentItemRepresentation') {
|
|
2419
2098
|
const v_error = (() => {
|
|
2420
2099
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2421
2100
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2423,7 +2102,7 @@ function validate$m(obj, path = 'AppExchangeContentItemRepresentation') {
|
|
|
2423
2102
|
if (obj.data !== undefined) {
|
|
2424
2103
|
const obj_data = obj.data;
|
|
2425
2104
|
const path_data = path + '.data';
|
|
2426
|
-
const referencepath_dataValidationError = validate$
|
|
2105
|
+
const referencepath_dataValidationError = validate$q(obj_data, path_data);
|
|
2427
2106
|
if (referencepath_dataValidationError !== null) {
|
|
2428
2107
|
let message = 'Object doesn\'t match AppExchangeContentItemDataRepresentation (at "' + path_data + '")\n';
|
|
2429
2108
|
message += referencepath_dataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2448,7 +2127,7 @@ function validate$m(obj, path = 'AppExchangeContentItemRepresentation') {
|
|
|
2448
2127
|
return v_error === undefined ? null : v_error;
|
|
2449
2128
|
}
|
|
2450
2129
|
|
|
2451
|
-
function validate$
|
|
2130
|
+
function validate$o(obj, path = 'AppExchangeContentPluginRepresentation') {
|
|
2452
2131
|
const v_error = (() => {
|
|
2453
2132
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2454
2133
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2462,7 +2141,7 @@ function validate$l(obj, path = 'AppExchangeContentPluginRepresentation') {
|
|
|
2462
2141
|
for (let i = 0; i < obj_items.length; i++) {
|
|
2463
2142
|
const obj_items_item = obj_items[i];
|
|
2464
2143
|
const path_items_item = path_items + '[' + i + ']';
|
|
2465
|
-
const referencepath_items_itemValidationError = validate$
|
|
2144
|
+
const referencepath_items_itemValidationError = validate$p(obj_items_item, path_items_item);
|
|
2466
2145
|
if (referencepath_items_itemValidationError !== null) {
|
|
2467
2146
|
let message = 'Object doesn\'t match AppExchangeContentItemRepresentation (at "' + path_items_item + '")\n';
|
|
2468
2147
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2474,7 +2153,7 @@ function validate$l(obj, path = 'AppExchangeContentPluginRepresentation') {
|
|
|
2474
2153
|
return v_error === undefined ? null : v_error;
|
|
2475
2154
|
}
|
|
2476
2155
|
|
|
2477
|
-
function validate$
|
|
2156
|
+
function validate$n(obj, path = 'AppExchangeDemoVideoRepresentation') {
|
|
2478
2157
|
const v_error = (() => {
|
|
2479
2158
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2480
2159
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2525,7 +2204,7 @@ function validate$k(obj, path = 'AppExchangeDemoVideoRepresentation') {
|
|
|
2525
2204
|
return v_error === undefined ? null : v_error;
|
|
2526
2205
|
}
|
|
2527
2206
|
|
|
2528
|
-
function validate$
|
|
2207
|
+
function validate$m(obj, path = 'AppExchangeDemoPluginRepresentation') {
|
|
2529
2208
|
const v_error = (() => {
|
|
2530
2209
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2531
2210
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2539,7 +2218,7 @@ function validate$j(obj, path = 'AppExchangeDemoPluginRepresentation') {
|
|
|
2539
2218
|
for (let i = 0; i < obj_items.length; i++) {
|
|
2540
2219
|
const obj_items_item = obj_items[i];
|
|
2541
2220
|
const path_items_item = path_items + '[' + i + ']';
|
|
2542
|
-
const referencepath_items_itemValidationError = validate$
|
|
2221
|
+
const referencepath_items_itemValidationError = validate$n(obj_items_item, path_items_item);
|
|
2543
2222
|
if (referencepath_items_itemValidationError !== null) {
|
|
2544
2223
|
let message = 'Object doesn\'t match AppExchangeDemoVideoRepresentation (at "' + path_items_item + '")\n';
|
|
2545
2224
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2551,7 +2230,7 @@ function validate$j(obj, path = 'AppExchangeDemoPluginRepresentation') {
|
|
|
2551
2230
|
return v_error === undefined ? null : v_error;
|
|
2552
2231
|
}
|
|
2553
2232
|
|
|
2554
|
-
function validate$
|
|
2233
|
+
function validate$l(obj, path = 'AppExchangeLeadTrialInformationPluginRepresentation') {
|
|
2555
2234
|
const v_error = (() => {
|
|
2556
2235
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2557
2236
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2637,7 +2316,7 @@ function validate$i(obj, path = 'AppExchangeLeadTrialInformationPluginRepresenta
|
|
|
2637
2316
|
return v_error === undefined ? null : v_error;
|
|
2638
2317
|
}
|
|
2639
2318
|
|
|
2640
|
-
function validate$
|
|
2319
|
+
function validate$k(obj, path = 'AppExchangeLogoSetItemRepresentation') {
|
|
2641
2320
|
const v_error = (() => {
|
|
2642
2321
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2643
2322
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2667,7 +2346,7 @@ function validate$h(obj, path = 'AppExchangeLogoSetItemRepresentation') {
|
|
|
2667
2346
|
return v_error === undefined ? null : v_error;
|
|
2668
2347
|
}
|
|
2669
2348
|
|
|
2670
|
-
function validate$
|
|
2349
|
+
function validate$j(obj, path = 'AppExchangeLogoSetPluginRepresentation') {
|
|
2671
2350
|
const v_error = (() => {
|
|
2672
2351
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2673
2352
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2681,7 +2360,7 @@ function validate$g(obj, path = 'AppExchangeLogoSetPluginRepresentation') {
|
|
|
2681
2360
|
for (let i = 0; i < obj_items.length; i++) {
|
|
2682
2361
|
const obj_items_item = obj_items[i];
|
|
2683
2362
|
const path_items_item = path_items + '[' + i + ']';
|
|
2684
|
-
const referencepath_items_itemValidationError = validate$
|
|
2363
|
+
const referencepath_items_itemValidationError = validate$k(obj_items_item, path_items_item);
|
|
2685
2364
|
if (referencepath_items_itemValidationError !== null) {
|
|
2686
2365
|
let message = 'Object doesn\'t match AppExchangeLogoSetItemRepresentation (at "' + path_items_item + '")\n';
|
|
2687
2366
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2693,7 +2372,7 @@ function validate$g(obj, path = 'AppExchangeLogoSetPluginRepresentation') {
|
|
|
2693
2372
|
return v_error === undefined ? null : v_error;
|
|
2694
2373
|
}
|
|
2695
2374
|
|
|
2696
|
-
function validate$
|
|
2375
|
+
function validate$i(obj, path = 'AppExchangeSupportInformationPluginRepresentation') {
|
|
2697
2376
|
const v_error = (() => {
|
|
2698
2377
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2699
2378
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2814,7 +2493,7 @@ function validate$f(obj, path = 'AppExchangeSupportInformationPluginRepresentati
|
|
|
2814
2493
|
return v_error === undefined ? null : v_error;
|
|
2815
2494
|
}
|
|
2816
2495
|
|
|
2817
|
-
function validate$
|
|
2496
|
+
function validate$h(obj, path = 'AppExchangeListingPluginsRepresentation') {
|
|
2818
2497
|
const v_error = (() => {
|
|
2819
2498
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2820
2499
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2822,7 +2501,7 @@ function validate$e(obj, path = 'AppExchangeListingPluginsRepresentation') {
|
|
|
2822
2501
|
if (obj.listing_plugins_Carousel !== undefined) {
|
|
2823
2502
|
const obj_listing_plugins_Carousel = obj.listing_plugins_Carousel;
|
|
2824
2503
|
const path_listing_plugins_Carousel = path + '.listing_plugins_Carousel';
|
|
2825
|
-
const referencepath_listing_plugins_CarouselValidationError = validate$
|
|
2504
|
+
const referencepath_listing_plugins_CarouselValidationError = validate$r(obj_listing_plugins_Carousel, path_listing_plugins_Carousel);
|
|
2826
2505
|
if (referencepath_listing_plugins_CarouselValidationError !== null) {
|
|
2827
2506
|
let message = 'Object doesn\'t match AppExchangeCarouselPluginRepresentation (at "' + path_listing_plugins_Carousel + '")\n';
|
|
2828
2507
|
message += referencepath_listing_plugins_CarouselValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2832,7 +2511,7 @@ function validate$e(obj, path = 'AppExchangeListingPluginsRepresentation') {
|
|
|
2832
2511
|
if (obj.listing_plugins_Content !== undefined) {
|
|
2833
2512
|
const obj_listing_plugins_Content = obj.listing_plugins_Content;
|
|
2834
2513
|
const path_listing_plugins_Content = path + '.listing_plugins_Content';
|
|
2835
|
-
const referencepath_listing_plugins_ContentValidationError = validate$
|
|
2514
|
+
const referencepath_listing_plugins_ContentValidationError = validate$o(obj_listing_plugins_Content, path_listing_plugins_Content);
|
|
2836
2515
|
if (referencepath_listing_plugins_ContentValidationError !== null) {
|
|
2837
2516
|
let message = 'Object doesn\'t match AppExchangeContentPluginRepresentation (at "' + path_listing_plugins_Content + '")\n';
|
|
2838
2517
|
message += referencepath_listing_plugins_ContentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2842,7 +2521,7 @@ function validate$e(obj, path = 'AppExchangeListingPluginsRepresentation') {
|
|
|
2842
2521
|
if (obj.listing_plugins_Demo !== undefined) {
|
|
2843
2522
|
const obj_listing_plugins_Demo = obj.listing_plugins_Demo;
|
|
2844
2523
|
const path_listing_plugins_Demo = path + '.listing_plugins_Demo';
|
|
2845
|
-
const referencepath_listing_plugins_DemoValidationError = validate$
|
|
2524
|
+
const referencepath_listing_plugins_DemoValidationError = validate$m(obj_listing_plugins_Demo, path_listing_plugins_Demo);
|
|
2846
2525
|
if (referencepath_listing_plugins_DemoValidationError !== null) {
|
|
2847
2526
|
let message = 'Object doesn\'t match AppExchangeDemoPluginRepresentation (at "' + path_listing_plugins_Demo + '")\n';
|
|
2848
2527
|
message += referencepath_listing_plugins_DemoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2852,7 +2531,7 @@ function validate$e(obj, path = 'AppExchangeListingPluginsRepresentation') {
|
|
|
2852
2531
|
if (obj.listing_plugins_LeadTrialInformation !== undefined) {
|
|
2853
2532
|
const obj_listing_plugins_LeadTrialInformation = obj.listing_plugins_LeadTrialInformation;
|
|
2854
2533
|
const path_listing_plugins_LeadTrialInformation = path + '.listing_plugins_LeadTrialInformation';
|
|
2855
|
-
const referencepath_listing_plugins_LeadTrialInformationValidationError = validate$
|
|
2534
|
+
const referencepath_listing_plugins_LeadTrialInformationValidationError = validate$l(obj_listing_plugins_LeadTrialInformation, path_listing_plugins_LeadTrialInformation);
|
|
2856
2535
|
if (referencepath_listing_plugins_LeadTrialInformationValidationError !== null) {
|
|
2857
2536
|
let message = 'Object doesn\'t match AppExchangeLeadTrialInformationPluginRepresentation (at "' + path_listing_plugins_LeadTrialInformation + '")\n';
|
|
2858
2537
|
message += referencepath_listing_plugins_LeadTrialInformationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2862,7 +2541,7 @@ function validate$e(obj, path = 'AppExchangeListingPluginsRepresentation') {
|
|
|
2862
2541
|
if (obj.listing_plugins_LogoSet !== undefined) {
|
|
2863
2542
|
const obj_listing_plugins_LogoSet = obj.listing_plugins_LogoSet;
|
|
2864
2543
|
const path_listing_plugins_LogoSet = path + '.listing_plugins_LogoSet';
|
|
2865
|
-
const referencepath_listing_plugins_LogoSetValidationError = validate$
|
|
2544
|
+
const referencepath_listing_plugins_LogoSetValidationError = validate$j(obj_listing_plugins_LogoSet, path_listing_plugins_LogoSet);
|
|
2866
2545
|
if (referencepath_listing_plugins_LogoSetValidationError !== null) {
|
|
2867
2546
|
let message = 'Object doesn\'t match AppExchangeLogoSetPluginRepresentation (at "' + path_listing_plugins_LogoSet + '")\n';
|
|
2868
2547
|
message += referencepath_listing_plugins_LogoSetValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2872,7 +2551,7 @@ function validate$e(obj, path = 'AppExchangeListingPluginsRepresentation') {
|
|
|
2872
2551
|
if (obj.listing_plugins_SupportInformation !== undefined) {
|
|
2873
2552
|
const obj_listing_plugins_SupportInformation = obj.listing_plugins_SupportInformation;
|
|
2874
2553
|
const path_listing_plugins_SupportInformation = path + '.listing_plugins_SupportInformation';
|
|
2875
|
-
const referencepath_listing_plugins_SupportInformationValidationError = validate$
|
|
2554
|
+
const referencepath_listing_plugins_SupportInformationValidationError = validate$i(obj_listing_plugins_SupportInformation, path_listing_plugins_SupportInformation);
|
|
2876
2555
|
if (referencepath_listing_plugins_SupportInformationValidationError !== null) {
|
|
2877
2556
|
let message = 'Object doesn\'t match AppExchangeSupportInformationPluginRepresentation (at "' + path_listing_plugins_SupportInformation + '")\n';
|
|
2878
2557
|
message += referencepath_listing_plugins_SupportInformationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2890,7 +2569,7 @@ var DiscriminatorValues$1;
|
|
|
2890
2569
|
DiscriminatorValues["free_to_install"] = "free_to_install";
|
|
2891
2570
|
DiscriminatorValues["free"] = "free";
|
|
2892
2571
|
})(DiscriminatorValues$1 || (DiscriminatorValues$1 = {}));
|
|
2893
|
-
function validate$
|
|
2572
|
+
function validate$g(obj, path = 'AppExchangePricingModelRepresentation') {
|
|
2894
2573
|
const v_error = (() => {
|
|
2895
2574
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2896
2575
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2906,7 +2585,7 @@ function validate$d(obj, path = 'AppExchangePricingModelRepresentation') {
|
|
|
2906
2585
|
return v_error === undefined ? null : v_error;
|
|
2907
2586
|
}
|
|
2908
2587
|
|
|
2909
|
-
function validate$
|
|
2588
|
+
function validate$f(obj, path = 'AppExchangePricingRepresentation') {
|
|
2910
2589
|
const v_error = (() => {
|
|
2911
2590
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2912
2591
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2970,7 +2649,7 @@ function validate$c(obj, path = 'AppExchangePricingRepresentation') {
|
|
|
2970
2649
|
if (obj.model !== undefined) {
|
|
2971
2650
|
const obj_model = obj.model;
|
|
2972
2651
|
const path_model = path + '.model';
|
|
2973
|
-
const referencepath_modelValidationError = validate$
|
|
2652
|
+
const referencepath_modelValidationError = validate$g(obj_model, path_model);
|
|
2974
2653
|
if (referencepath_modelValidationError !== null) {
|
|
2975
2654
|
let message = 'Object doesn\'t match AppExchangePricingModelRepresentation (at "' + path_model + '")\n';
|
|
2976
2655
|
message += referencepath_modelValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3016,7 +2695,7 @@ function validate$c(obj, path = 'AppExchangePricingRepresentation') {
|
|
|
3016
2695
|
return v_error === undefined ? null : v_error;
|
|
3017
2696
|
}
|
|
3018
2697
|
|
|
3019
|
-
function validate$
|
|
2698
|
+
function validate$e(obj, path = 'AppExchangeForcePublisherExtensionRepresentation') {
|
|
3020
2699
|
const v_error = (() => {
|
|
3021
2700
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3022
2701
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3161,7 +2840,7 @@ function validate$b(obj, path = 'AppExchangeForcePublisherExtensionRepresentatio
|
|
|
3161
2840
|
return v_error === undefined ? null : v_error;
|
|
3162
2841
|
}
|
|
3163
2842
|
|
|
3164
|
-
function validate$
|
|
2843
|
+
function validate$d(obj, path = 'AppExchangePublisherExtensionsRepresentation') {
|
|
3165
2844
|
const v_error = (() => {
|
|
3166
2845
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3167
2846
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3169,7 +2848,7 @@ function validate$a(obj, path = 'AppExchangePublisherExtensionsRepresentation')
|
|
|
3169
2848
|
if (obj.publisher_extensions_force_Publisher !== undefined) {
|
|
3170
2849
|
const obj_publisher_extensions_force_Publisher = obj.publisher_extensions_force_Publisher;
|
|
3171
2850
|
const path_publisher_extensions_force_Publisher = path + '.publisher_extensions_force_Publisher';
|
|
3172
|
-
const referencepath_publisher_extensions_force_PublisherValidationError = validate$
|
|
2851
|
+
const referencepath_publisher_extensions_force_PublisherValidationError = validate$e(obj_publisher_extensions_force_Publisher, path_publisher_extensions_force_Publisher);
|
|
3173
2852
|
if (referencepath_publisher_extensions_force_PublisherValidationError !== null) {
|
|
3174
2853
|
let message = 'Object doesn\'t match AppExchangeForcePublisherExtensionRepresentation (at "' + path_publisher_extensions_force_Publisher + '")\n';
|
|
3175
2854
|
message += referencepath_publisher_extensions_force_PublisherValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3180,7 +2859,7 @@ function validate$a(obj, path = 'AppExchangePublisherExtensionsRepresentation')
|
|
|
3180
2859
|
return v_error === undefined ? null : v_error;
|
|
3181
2860
|
}
|
|
3182
2861
|
|
|
3183
|
-
function validate$
|
|
2862
|
+
function validate$c(obj, path = 'AppExchangePublisherLogoItemRepresentation') {
|
|
3184
2863
|
const v_error = (() => {
|
|
3185
2864
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3186
2865
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3210,7 +2889,7 @@ function validate$9(obj, path = 'AppExchangePublisherLogoItemRepresentation') {
|
|
|
3210
2889
|
return v_error === undefined ? null : v_error;
|
|
3211
2890
|
}
|
|
3212
2891
|
|
|
3213
|
-
function validate$
|
|
2892
|
+
function validate$b(obj, path = 'AppExchangePublisherLogoRepresentation') {
|
|
3214
2893
|
const v_error = (() => {
|
|
3215
2894
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3216
2895
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3224,7 +2903,7 @@ function validate$8(obj, path = 'AppExchangePublisherLogoRepresentation') {
|
|
|
3224
2903
|
for (let i = 0; i < obj_items.length; i++) {
|
|
3225
2904
|
const obj_items_item = obj_items[i];
|
|
3226
2905
|
const path_items_item = path_items + '[' + i + ']';
|
|
3227
|
-
const referencepath_items_itemValidationError = validate$
|
|
2906
|
+
const referencepath_items_itemValidationError = validate$c(obj_items_item, path_items_item);
|
|
3228
2907
|
if (referencepath_items_itemValidationError !== null) {
|
|
3229
2908
|
let message = 'Object doesn\'t match AppExchangePublisherLogoItemRepresentation (at "' + path_items_item + '")\n';
|
|
3230
2909
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3236,7 +2915,7 @@ function validate$8(obj, path = 'AppExchangePublisherLogoRepresentation') {
|
|
|
3236
2915
|
return v_error === undefined ? null : v_error;
|
|
3237
2916
|
}
|
|
3238
2917
|
|
|
3239
|
-
function validate$
|
|
2918
|
+
function validate$a(obj, path = 'AppExchangePublisherPluginsRepresentation') {
|
|
3240
2919
|
const v_error = (() => {
|
|
3241
2920
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3242
2921
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3244,7 +2923,7 @@ function validate$7(obj, path = 'AppExchangePublisherPluginsRepresentation') {
|
|
|
3244
2923
|
if (obj.publisher_plugins_PublisherLogo !== undefined) {
|
|
3245
2924
|
const obj_publisher_plugins_PublisherLogo = obj.publisher_plugins_PublisherLogo;
|
|
3246
2925
|
const path_publisher_plugins_PublisherLogo = path + '.publisher_plugins_PublisherLogo';
|
|
3247
|
-
const referencepath_publisher_plugins_PublisherLogoValidationError = validate$
|
|
2926
|
+
const referencepath_publisher_plugins_PublisherLogoValidationError = validate$b(obj_publisher_plugins_PublisherLogo, path_publisher_plugins_PublisherLogo);
|
|
3248
2927
|
if (referencepath_publisher_plugins_PublisherLogoValidationError !== null) {
|
|
3249
2928
|
let message = 'Object doesn\'t match AppExchangePublisherLogoRepresentation (at "' + path_publisher_plugins_PublisherLogo + '")\n';
|
|
3250
2929
|
message += referencepath_publisher_plugins_PublisherLogoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3255,7 +2934,7 @@ function validate$7(obj, path = 'AppExchangePublisherPluginsRepresentation') {
|
|
|
3255
2934
|
return v_error === undefined ? null : v_error;
|
|
3256
2935
|
}
|
|
3257
2936
|
|
|
3258
|
-
function validate$
|
|
2937
|
+
function validate$9(obj, path = 'AppExchangePublisherRepresentation') {
|
|
3259
2938
|
const v_error = (() => {
|
|
3260
2939
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3261
2940
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3312,7 +2991,7 @@ function validate$6(obj, path = 'AppExchangePublisherRepresentation') {
|
|
|
3312
2991
|
if (obj.extensions !== undefined) {
|
|
3313
2992
|
const obj_extensions = obj.extensions;
|
|
3314
2993
|
const path_extensions = path + '.extensions';
|
|
3315
|
-
const referencepath_extensionsValidationError = validate$
|
|
2994
|
+
const referencepath_extensionsValidationError = validate$d(obj_extensions, path_extensions);
|
|
3316
2995
|
if (referencepath_extensionsValidationError !== null) {
|
|
3317
2996
|
let message = 'Object doesn\'t match AppExchangePublisherExtensionsRepresentation (at "' + path_extensions + '")\n';
|
|
3318
2997
|
message += referencepath_extensionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3371,7 +3050,7 @@ function validate$6(obj, path = 'AppExchangePublisherRepresentation') {
|
|
|
3371
3050
|
if (obj.plugins !== undefined) {
|
|
3372
3051
|
const obj_plugins = obj.plugins;
|
|
3373
3052
|
const path_plugins = path + '.plugins';
|
|
3374
|
-
const referencepath_pluginsValidationError = validate$
|
|
3053
|
+
const referencepath_pluginsValidationError = validate$a(obj_plugins, path_plugins);
|
|
3375
3054
|
if (referencepath_pluginsValidationError !== null) {
|
|
3376
3055
|
let message = 'Object doesn\'t match AppExchangePublisherPluginsRepresentation (at "' + path_plugins + '")\n';
|
|
3377
3056
|
message += referencepath_pluginsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3424,7 +3103,7 @@ function validate$6(obj, path = 'AppExchangePublisherRepresentation') {
|
|
|
3424
3103
|
return v_error === undefined ? null : v_error;
|
|
3425
3104
|
}
|
|
3426
3105
|
|
|
3427
|
-
function validate$
|
|
3106
|
+
function validate$8(obj, path = 'AppExchangeListingReviewsSummaryRepresentation') {
|
|
3428
3107
|
const v_error = (() => {
|
|
3429
3108
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3430
3109
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3464,7 +3143,7 @@ function validate$5(obj, path = 'AppExchangeListingReviewsSummaryRepresentation'
|
|
|
3464
3143
|
return v_error === undefined ? null : v_error;
|
|
3465
3144
|
}
|
|
3466
3145
|
|
|
3467
|
-
function validate$
|
|
3146
|
+
function validate$7(obj, path = 'AppExchangeListingSecurityReviewRepresentation') {
|
|
3468
3147
|
const v_error = (() => {
|
|
3469
3148
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3470
3149
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3493,7 +3172,7 @@ var DiscriminatorValues;
|
|
|
3493
3172
|
DiscriminatorValues["tableau_Accelerator"] = "tableau_Accelerator";
|
|
3494
3173
|
DiscriminatorValues["force_Api"] = "force_Api";
|
|
3495
3174
|
})(DiscriminatorValues || (DiscriminatorValues = {}));
|
|
3496
|
-
function validate$
|
|
3175
|
+
function validate$6(obj, path = 'AppExchangeListingSolutionDetailRepresentation') {
|
|
3497
3176
|
const v_error = (() => {
|
|
3498
3177
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3499
3178
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3509,7 +3188,7 @@ function validate$3(obj, path = 'AppExchangeListingSolutionDetailRepresentation'
|
|
|
3509
3188
|
return v_error === undefined ? null : v_error;
|
|
3510
3189
|
}
|
|
3511
3190
|
|
|
3512
|
-
function validate$
|
|
3191
|
+
function validate$5(obj, path = 'AppExchangeListingSolutionRepresentation') {
|
|
3513
3192
|
const v_error = (() => {
|
|
3514
3193
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3515
3194
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3552,7 +3231,7 @@ function validate$2(obj, path = 'AppExchangeListingSolutionRepresentation') {
|
|
|
3552
3231
|
if (obj.securityReview !== undefined) {
|
|
3553
3232
|
const obj_securityReview = obj.securityReview;
|
|
3554
3233
|
const path_securityReview = path + '.securityReview';
|
|
3555
|
-
const referencepath_securityReviewValidationError = validate$
|
|
3234
|
+
const referencepath_securityReviewValidationError = validate$7(obj_securityReview, path_securityReview);
|
|
3556
3235
|
if (referencepath_securityReviewValidationError !== null) {
|
|
3557
3236
|
let message = 'Object doesn\'t match AppExchangeListingSecurityReviewRepresentation (at "' + path_securityReview + '")\n';
|
|
3558
3237
|
message += referencepath_securityReviewValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3562,7 +3241,7 @@ function validate$2(obj, path = 'AppExchangeListingSolutionRepresentation') {
|
|
|
3562
3241
|
if (obj.solution !== undefined) {
|
|
3563
3242
|
const obj_solution = obj.solution;
|
|
3564
3243
|
const path_solution = path + '.solution';
|
|
3565
|
-
const referencepath_solutionValidationError = validate$
|
|
3244
|
+
const referencepath_solutionValidationError = validate$6(obj_solution, path_solution);
|
|
3566
3245
|
if (referencepath_solutionValidationError !== null) {
|
|
3567
3246
|
let message = 'Object doesn\'t match AppExchangeListingSolutionDetailRepresentation (at "' + path_solution + '")\n';
|
|
3568
3247
|
message += referencepath_solutionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3594,8 +3273,8 @@ function validate$2(obj, path = 'AppExchangeListingSolutionRepresentation') {
|
|
|
3594
3273
|
return v_error === undefined ? null : v_error;
|
|
3595
3274
|
}
|
|
3596
3275
|
|
|
3597
|
-
const VERSION$
|
|
3598
|
-
function validate$
|
|
3276
|
+
const VERSION$4 = "63d5e3efd71a374614cb5f690a60b6d9";
|
|
3277
|
+
function validate$4(obj, path = 'AppExchangeListingDetailsRepresentation') {
|
|
3599
3278
|
const v_error = (() => {
|
|
3600
3279
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3601
3280
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3611,7 +3290,7 @@ function validate$1(obj, path = 'AppExchangeListingDetailsRepresentation') {
|
|
|
3611
3290
|
const key = obj_businessNeeds_keys[i];
|
|
3612
3291
|
const obj_businessNeeds_prop = obj_businessNeeds[key];
|
|
3613
3292
|
const path_businessNeeds_prop = path_businessNeeds + '["' + key + '"]';
|
|
3614
|
-
const referencepath_businessNeeds_propValidationError = validate$
|
|
3293
|
+
const referencepath_businessNeeds_propValidationError = validate$A(obj_businessNeeds_prop, path_businessNeeds_prop);
|
|
3615
3294
|
if (referencepath_businessNeeds_propValidationError !== null) {
|
|
3616
3295
|
let message = 'Object doesn\'t match AppExchangeListingCategoriesRepresentation (at "' + path_businessNeeds_prop + '")\n';
|
|
3617
3296
|
message += referencepath_businessNeeds_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3636,7 +3315,7 @@ function validate$1(obj, path = 'AppExchangeListingDetailsRepresentation') {
|
|
|
3636
3315
|
if (obj.extensions !== undefined) {
|
|
3637
3316
|
const obj_extensions = obj.extensions;
|
|
3638
3317
|
const path_extensions = path + '.extensions';
|
|
3639
|
-
const referencepath_extensionsValidationError = validate$
|
|
3318
|
+
const referencepath_extensionsValidationError = validate$u(obj_extensions, path_extensions);
|
|
3640
3319
|
if (referencepath_extensionsValidationError !== null) {
|
|
3641
3320
|
let message = 'Object doesn\'t match AppExchangeListingExtensionsRepresentation (at "' + path_extensions + '")\n';
|
|
3642
3321
|
message += referencepath_extensionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3709,7 +3388,7 @@ function validate$1(obj, path = 'AppExchangeListingDetailsRepresentation') {
|
|
|
3709
3388
|
if (obj.plugins !== undefined) {
|
|
3710
3389
|
const obj_plugins = obj.plugins;
|
|
3711
3390
|
const path_plugins = path + '.plugins';
|
|
3712
|
-
const referencepath_pluginsValidationError = validate$
|
|
3391
|
+
const referencepath_pluginsValidationError = validate$h(obj_plugins, path_plugins);
|
|
3713
3392
|
if (referencepath_pluginsValidationError !== null) {
|
|
3714
3393
|
let message = 'Object doesn\'t match AppExchangeListingPluginsRepresentation (at "' + path_plugins + '")\n';
|
|
3715
3394
|
message += referencepath_pluginsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3719,7 +3398,7 @@ function validate$1(obj, path = 'AppExchangeListingDetailsRepresentation') {
|
|
|
3719
3398
|
if (obj.pricing !== undefined) {
|
|
3720
3399
|
const obj_pricing = obj.pricing;
|
|
3721
3400
|
const path_pricing = path + '.pricing';
|
|
3722
|
-
const referencepath_pricingValidationError = validate$
|
|
3401
|
+
const referencepath_pricingValidationError = validate$f(obj_pricing, path_pricing);
|
|
3723
3402
|
if (referencepath_pricingValidationError !== null) {
|
|
3724
3403
|
let message = 'Object doesn\'t match AppExchangePricingRepresentation (at "' + path_pricing + '")\n';
|
|
3725
3404
|
message += referencepath_pricingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3729,7 +3408,7 @@ function validate$1(obj, path = 'AppExchangeListingDetailsRepresentation') {
|
|
|
3729
3408
|
if (obj.publisher !== undefined) {
|
|
3730
3409
|
const obj_publisher = obj.publisher;
|
|
3731
3410
|
const path_publisher = path + '.publisher';
|
|
3732
|
-
const referencepath_publisherValidationError = validate$
|
|
3411
|
+
const referencepath_publisherValidationError = validate$9(obj_publisher, path_publisher);
|
|
3733
3412
|
if (referencepath_publisherValidationError !== null) {
|
|
3734
3413
|
let message = 'Object doesn\'t match AppExchangePublisherRepresentation (at "' + path_publisher + '")\n';
|
|
3735
3414
|
message += referencepath_publisherValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3739,7 +3418,7 @@ function validate$1(obj, path = 'AppExchangeListingDetailsRepresentation') {
|
|
|
3739
3418
|
if (obj.reviewsSummary !== undefined) {
|
|
3740
3419
|
const obj_reviewsSummary = obj.reviewsSummary;
|
|
3741
3420
|
const path_reviewsSummary = path + '.reviewsSummary';
|
|
3742
|
-
const referencepath_reviewsSummaryValidationError = validate$
|
|
3421
|
+
const referencepath_reviewsSummaryValidationError = validate$8(obj_reviewsSummary, path_reviewsSummary);
|
|
3743
3422
|
if (referencepath_reviewsSummaryValidationError !== null) {
|
|
3744
3423
|
let message = 'Object doesn\'t match AppExchangeListingReviewsSummaryRepresentation (at "' + path_reviewsSummary + '")\n';
|
|
3745
3424
|
message += referencepath_reviewsSummaryValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3756,7 +3435,7 @@ function validate$1(obj, path = 'AppExchangeListingDetailsRepresentation') {
|
|
|
3756
3435
|
if (obj.solution !== undefined) {
|
|
3757
3436
|
const obj_solution = obj.solution;
|
|
3758
3437
|
const path_solution = path + '.solution';
|
|
3759
|
-
const referencepath_solutionValidationError = validate$
|
|
3438
|
+
const referencepath_solutionValidationError = validate$5(obj_solution, path_solution);
|
|
3760
3439
|
if (referencepath_solutionValidationError !== null) {
|
|
3761
3440
|
let message = 'Object doesn\'t match AppExchangeListingSolutionRepresentation (at "' + path_solution + '")\n';
|
|
3762
3441
|
message += referencepath_solutionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3794,62 +3473,62 @@ function validate$1(obj, path = 'AppExchangeListingDetailsRepresentation') {
|
|
|
3794
3473
|
})();
|
|
3795
3474
|
return v_error === undefined ? null : v_error;
|
|
3796
3475
|
}
|
|
3797
|
-
const RepresentationType$
|
|
3798
|
-
function normalize$
|
|
3476
|
+
const RepresentationType$2 = 'AppExchangeListingDetailsRepresentation';
|
|
3477
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
3799
3478
|
return input;
|
|
3800
3479
|
}
|
|
3801
|
-
const select$
|
|
3480
|
+
const select$7 = function AppExchangeListingDetailsRepresentationSelect() {
|
|
3802
3481
|
return {
|
|
3803
3482
|
kind: 'Fragment',
|
|
3804
|
-
version: VERSION$
|
|
3483
|
+
version: VERSION$4,
|
|
3805
3484
|
private: [],
|
|
3806
3485
|
opaque: true
|
|
3807
3486
|
};
|
|
3808
3487
|
};
|
|
3809
|
-
function equals$
|
|
3488
|
+
function equals$4(existing, incoming) {
|
|
3810
3489
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3811
3490
|
return false;
|
|
3812
3491
|
}
|
|
3813
3492
|
return true;
|
|
3814
3493
|
}
|
|
3815
|
-
const ingest$
|
|
3494
|
+
const ingest$2 = function AppExchangeListingDetailsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3816
3495
|
if (process.env.NODE_ENV !== 'production') {
|
|
3817
|
-
const validateError = validate$
|
|
3496
|
+
const validateError = validate$4(input);
|
|
3818
3497
|
if (validateError !== null) {
|
|
3819
3498
|
throw validateError;
|
|
3820
3499
|
}
|
|
3821
3500
|
}
|
|
3822
3501
|
const key = path.fullPath;
|
|
3823
3502
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 3000;
|
|
3824
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3503
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "appexchange", VERSION$4, RepresentationType$2, equals$4);
|
|
3825
3504
|
return createLink(key);
|
|
3826
3505
|
};
|
|
3827
|
-
function getTypeCacheKeys$
|
|
3506
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
3828
3507
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3829
3508
|
const rootKey = fullPathFactory();
|
|
3830
3509
|
rootKeySet.set(rootKey, {
|
|
3831
3510
|
namespace: keyPrefix,
|
|
3832
|
-
representationName: RepresentationType$
|
|
3511
|
+
representationName: RepresentationType$2,
|
|
3833
3512
|
mergeable: false
|
|
3834
3513
|
});
|
|
3835
3514
|
}
|
|
3836
3515
|
|
|
3837
|
-
function select$
|
|
3838
|
-
return select$
|
|
3516
|
+
function select$6(luvio, params) {
|
|
3517
|
+
return select$7();
|
|
3839
3518
|
}
|
|
3840
|
-
function keyBuilder$
|
|
3519
|
+
function keyBuilder$3(luvio, params) {
|
|
3841
3520
|
return keyPrefix + '::AppExchangeListingDetailsRepresentation:(' + 'includeRelated:' + params.queryParams.includeRelated + ',' + 'listingId:' + params.urlParams.listingId + ')';
|
|
3842
3521
|
}
|
|
3843
|
-
function getResponseCacheKeys$
|
|
3844
|
-
getTypeCacheKeys$
|
|
3522
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
3523
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
3845
3524
|
}
|
|
3846
|
-
function ingestSuccess$
|
|
3525
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
3847
3526
|
const { body } = response;
|
|
3848
|
-
const key = keyBuilder$
|
|
3849
|
-
luvio.storeIngest(key, ingest$
|
|
3527
|
+
const key = keyBuilder$3(luvio, resourceParams);
|
|
3528
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
3850
3529
|
const snapshot = luvio.storeLookup({
|
|
3851
3530
|
recordId: key,
|
|
3852
|
-
node: select$
|
|
3531
|
+
node: select$6(),
|
|
3853
3532
|
variables: {},
|
|
3854
3533
|
}, snapshotRefresh);
|
|
3855
3534
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3861,12 +3540,12 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3861
3540
|
return snapshot;
|
|
3862
3541
|
}
|
|
3863
3542
|
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
3864
|
-
const key = keyBuilder$
|
|
3543
|
+
const key = keyBuilder$3(luvio, params);
|
|
3865
3544
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3866
3545
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3867
3546
|
return errorSnapshot;
|
|
3868
3547
|
}
|
|
3869
|
-
function createResourceRequest$
|
|
3548
|
+
function createResourceRequest$2(config) {
|
|
3870
3549
|
const headers = {};
|
|
3871
3550
|
return {
|
|
3872
3551
|
baseUri: '/services/data/v63.0',
|
|
@@ -3880,61 +3559,61 @@ function createResourceRequest$1(config) {
|
|
|
3880
3559
|
};
|
|
3881
3560
|
}
|
|
3882
3561
|
|
|
3883
|
-
const adapterName$
|
|
3562
|
+
const adapterName$2 = 'getListingDetails';
|
|
3884
3563
|
const getListingDetails_ConfigPropertyMetadata = [
|
|
3885
3564
|
generateParamConfigMetadata('listingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3886
3565
|
generateParamConfigMetadata('includeRelated', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
3887
3566
|
];
|
|
3888
|
-
const getListingDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3889
|
-
const createResourceParams$
|
|
3890
|
-
function keyBuilder$
|
|
3891
|
-
const resourceParams = createResourceParams$
|
|
3892
|
-
return keyBuilder$
|
|
3567
|
+
const getListingDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getListingDetails_ConfigPropertyMetadata);
|
|
3568
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$3(getListingDetails_ConfigPropertyMetadata);
|
|
3569
|
+
function keyBuilder$2(luvio, config) {
|
|
3570
|
+
const resourceParams = createResourceParams$2(config);
|
|
3571
|
+
return keyBuilder$3(luvio, resourceParams);
|
|
3893
3572
|
}
|
|
3894
|
-
function typeCheckConfig$
|
|
3573
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
3895
3574
|
const config = {};
|
|
3896
3575
|
typeCheckConfig$3(untrustedConfig, config, getListingDetails_ConfigPropertyMetadata);
|
|
3897
3576
|
return config;
|
|
3898
3577
|
}
|
|
3899
|
-
function validateAdapterConfig$
|
|
3578
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
3900
3579
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3901
3580
|
return null;
|
|
3902
3581
|
}
|
|
3903
3582
|
if (process.env.NODE_ENV !== 'production') {
|
|
3904
3583
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3905
3584
|
}
|
|
3906
|
-
const config = typeCheckConfig$
|
|
3585
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
3907
3586
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3908
3587
|
return null;
|
|
3909
3588
|
}
|
|
3910
3589
|
return config;
|
|
3911
3590
|
}
|
|
3912
3591
|
function adapterFragment(luvio, config) {
|
|
3913
|
-
createResourceParams$
|
|
3914
|
-
return select$
|
|
3592
|
+
createResourceParams$2(config);
|
|
3593
|
+
return select$6();
|
|
3915
3594
|
}
|
|
3916
3595
|
function onFetchResponseSuccess(luvio, config, resourceParams, response) {
|
|
3917
|
-
const snapshot = ingestSuccess$
|
|
3596
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
3918
3597
|
config,
|
|
3919
|
-
resolve: () => buildNetworkSnapshot$
|
|
3598
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
3920
3599
|
});
|
|
3921
3600
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3922
3601
|
}
|
|
3923
3602
|
function onFetchResponseError(luvio, config, resourceParams, response) {
|
|
3924
3603
|
const snapshot = ingestError(luvio, resourceParams, response, {
|
|
3925
3604
|
config,
|
|
3926
|
-
resolve: () => buildNetworkSnapshot$
|
|
3605
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
3927
3606
|
});
|
|
3928
3607
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3929
3608
|
}
|
|
3930
|
-
function buildNetworkSnapshot$
|
|
3931
|
-
const resourceParams = createResourceParams$
|
|
3932
|
-
const request = createResourceRequest$
|
|
3609
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
3610
|
+
const resourceParams = createResourceParams$2(config);
|
|
3611
|
+
const request = createResourceRequest$2(resourceParams);
|
|
3933
3612
|
return luvio.dispatchResourceRequest(request, options)
|
|
3934
3613
|
.then((response) => {
|
|
3935
3614
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
3936
3615
|
const cache = new StoreKeyMap();
|
|
3937
|
-
getResponseCacheKeys$
|
|
3616
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
3938
3617
|
return cache;
|
|
3939
3618
|
});
|
|
3940
3619
|
}, (response) => {
|
|
@@ -3942,23 +3621,23 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
3942
3621
|
});
|
|
3943
3622
|
}
|
|
3944
3623
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
3945
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3624
|
+
return buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
3946
3625
|
}
|
|
3947
3626
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
3948
3627
|
const { luvio, config } = context;
|
|
3949
3628
|
const selector = {
|
|
3950
|
-
recordId: keyBuilder$
|
|
3629
|
+
recordId: keyBuilder$2(luvio, config),
|
|
3951
3630
|
node: adapterFragment(luvio, config),
|
|
3952
3631
|
variables: {},
|
|
3953
3632
|
};
|
|
3954
3633
|
const cacheSnapshot = storeLookup(selector, {
|
|
3955
3634
|
config,
|
|
3956
|
-
resolve: () => buildNetworkSnapshot$
|
|
3635
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
3957
3636
|
});
|
|
3958
3637
|
return cacheSnapshot;
|
|
3959
3638
|
}
|
|
3960
3639
|
const getListingDetailsAdapterFactory = (luvio) => function appexchange__getListingDetails(untrustedConfig, requestContext) {
|
|
3961
|
-
const config = validateAdapterConfig$
|
|
3640
|
+
const config = validateAdapterConfig$2(untrustedConfig, getListingDetails_ConfigPropertyNames);
|
|
3962
3641
|
// Invalid or incomplete config
|
|
3963
3642
|
if (config === null) {
|
|
3964
3643
|
return null;
|
|
@@ -3967,8 +3646,8 @@ const getListingDetailsAdapterFactory = (luvio) => function appexchange__getList
|
|
|
3967
3646
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
3968
3647
|
};
|
|
3969
3648
|
|
|
3970
|
-
const VERSION = "b0309b3336a7e875a0cc40a008a340f9";
|
|
3971
|
-
function validate(obj, path = 'AppExchangeUserEventsOutputRepresentation') {
|
|
3649
|
+
const VERSION$3 = "b0309b3336a7e875a0cc40a008a340f9";
|
|
3650
|
+
function validate$3(obj, path = 'AppExchangeUserEventsOutputRepresentation') {
|
|
3972
3651
|
const v_error = (() => {
|
|
3973
3652
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3974
3653
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3986,23 +3665,23 @@ function validate(obj, path = 'AppExchangeUserEventsOutputRepresentation') {
|
|
|
3986
3665
|
})();
|
|
3987
3666
|
return v_error === undefined ? null : v_error;
|
|
3988
3667
|
}
|
|
3989
|
-
const RepresentationType = 'AppExchangeUserEventsOutputRepresentation';
|
|
3990
|
-
function keyBuilder(luvio, config) {
|
|
3991
|
-
return keyPrefix + '::' + RepresentationType + ':' + config.primaryKey;
|
|
3668
|
+
const RepresentationType$1 = 'AppExchangeUserEventsOutputRepresentation';
|
|
3669
|
+
function keyBuilder$1(luvio, config) {
|
|
3670
|
+
return keyPrefix + '::' + RepresentationType$1 + ':' + config.primaryKey;
|
|
3992
3671
|
}
|
|
3993
|
-
function keyBuilderFromType(luvio, object) {
|
|
3672
|
+
function keyBuilderFromType$1(luvio, object) {
|
|
3994
3673
|
const keyParams = {
|
|
3995
3674
|
primaryKey: object.primaryKey
|
|
3996
3675
|
};
|
|
3997
|
-
return keyBuilder(luvio, keyParams);
|
|
3676
|
+
return keyBuilder$1(luvio, keyParams);
|
|
3998
3677
|
}
|
|
3999
|
-
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
3678
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
4000
3679
|
return input;
|
|
4001
3680
|
}
|
|
4002
|
-
const select$
|
|
3681
|
+
const select$5 = function AppExchangeUserEventsOutputRepresentationSelect() {
|
|
4003
3682
|
return {
|
|
4004
3683
|
kind: 'Fragment',
|
|
4005
|
-
version: VERSION,
|
|
3684
|
+
version: VERSION$3,
|
|
4006
3685
|
private: [],
|
|
4007
3686
|
selections: [
|
|
4008
3687
|
{
|
|
@@ -4016,7 +3695,7 @@ const select$1 = function AppExchangeUserEventsOutputRepresentationSelect() {
|
|
|
4016
3695
|
]
|
|
4017
3696
|
};
|
|
4018
3697
|
};
|
|
4019
|
-
function equals(existing, incoming) {
|
|
3698
|
+
function equals$3(existing, incoming) {
|
|
4020
3699
|
const existing_message = existing.message;
|
|
4021
3700
|
const incoming_message = incoming.message;
|
|
4022
3701
|
if (!(existing_message === incoming_message)) {
|
|
@@ -4029,41 +3708,41 @@ function equals(existing, incoming) {
|
|
|
4029
3708
|
}
|
|
4030
3709
|
return true;
|
|
4031
3710
|
}
|
|
4032
|
-
const ingest = function AppExchangeUserEventsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3711
|
+
const ingest$1 = function AppExchangeUserEventsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4033
3712
|
if (process.env.NODE_ENV !== 'production') {
|
|
4034
|
-
const validateError = validate(input);
|
|
3713
|
+
const validateError = validate$3(input);
|
|
4035
3714
|
if (validateError !== null) {
|
|
4036
3715
|
throw validateError;
|
|
4037
3716
|
}
|
|
4038
3717
|
}
|
|
4039
|
-
const key = keyBuilderFromType(luvio, input);
|
|
3718
|
+
const key = keyBuilderFromType$1(luvio, input);
|
|
4040
3719
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 3000;
|
|
4041
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "appexchange", VERSION, RepresentationType, equals);
|
|
3720
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "appexchange", VERSION$3, RepresentationType$1, equals$3);
|
|
4042
3721
|
return createLink(key);
|
|
4043
3722
|
};
|
|
4044
|
-
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
3723
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
4045
3724
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4046
|
-
const rootKey = keyBuilderFromType(luvio, input);
|
|
3725
|
+
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
4047
3726
|
rootKeySet.set(rootKey, {
|
|
4048
3727
|
namespace: keyPrefix,
|
|
4049
|
-
representationName: RepresentationType,
|
|
3728
|
+
representationName: RepresentationType$1,
|
|
4050
3729
|
mergeable: false
|
|
4051
3730
|
});
|
|
4052
3731
|
}
|
|
4053
3732
|
|
|
4054
|
-
function select(luvio, params) {
|
|
4055
|
-
return select$
|
|
3733
|
+
function select$4(luvio, params) {
|
|
3734
|
+
return select$5();
|
|
4056
3735
|
}
|
|
4057
|
-
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
4058
|
-
getTypeCacheKeys(storeKeyMap, luvio, response);
|
|
3736
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
3737
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response);
|
|
4059
3738
|
}
|
|
4060
|
-
function ingestSuccess(luvio, resourceParams, response) {
|
|
3739
|
+
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
4061
3740
|
const { body } = response;
|
|
4062
|
-
const key = keyBuilderFromType(luvio, body);
|
|
4063
|
-
luvio.storeIngest(key, ingest, body);
|
|
3741
|
+
const key = keyBuilderFromType$1(luvio, body);
|
|
3742
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
4064
3743
|
const snapshot = luvio.storeLookup({
|
|
4065
3744
|
recordId: key,
|
|
4066
|
-
node: select(),
|
|
3745
|
+
node: select$4(),
|
|
4067
3746
|
variables: {},
|
|
4068
3747
|
});
|
|
4069
3748
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4074,7 +3753,7 @@ function ingestSuccess(luvio, resourceParams, response) {
|
|
|
4074
3753
|
deepFreeze(snapshot.data);
|
|
4075
3754
|
return snapshot;
|
|
4076
3755
|
}
|
|
4077
|
-
function createResourceRequest(config) {
|
|
3756
|
+
function createResourceRequest$1(config) {
|
|
4078
3757
|
const headers = {};
|
|
4079
3758
|
return {
|
|
4080
3759
|
baseUri: '/services/data/v63.0',
|
|
@@ -4088,7 +3767,7 @@ function createResourceRequest(config) {
|
|
|
4088
3767
|
};
|
|
4089
3768
|
}
|
|
4090
3769
|
|
|
4091
|
-
const adapterName = 'postAppExchangeUserEvents';
|
|
3770
|
+
const adapterName$1 = 'postAppExchangeUserEvents';
|
|
4092
3771
|
const postAppExchangeUserEvents_ConfigPropertyMetadata = [
|
|
4093
3772
|
generateParamConfigMetadata('browser', false, 2 /* Body */, 0 /* String */),
|
|
4094
3773
|
generateParamConfigMetadata('buttonType', false, 2 /* Body */, 0 /* String */),
|
|
@@ -4115,15 +3794,701 @@ const postAppExchangeUserEvents_ConfigPropertyMetadata = [
|
|
|
4115
3794
|
generateParamConfigMetadata('viewportHeight', false, 2 /* Body */, 0 /* String */),
|
|
4116
3795
|
generateParamConfigMetadata('viewportWidth', false, 2 /* Body */, 0 /* String */),
|
|
4117
3796
|
];
|
|
4118
|
-
const postAppExchangeUserEvents_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postAppExchangeUserEvents_ConfigPropertyMetadata);
|
|
4119
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$3(postAppExchangeUserEvents_ConfigPropertyMetadata);
|
|
4120
|
-
function typeCheckConfig(untrustedConfig) {
|
|
3797
|
+
const postAppExchangeUserEvents_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, postAppExchangeUserEvents_ConfigPropertyMetadata);
|
|
3798
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(postAppExchangeUserEvents_ConfigPropertyMetadata);
|
|
3799
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
4121
3800
|
const config = {};
|
|
4122
3801
|
typeCheckConfig$3(untrustedConfig, config, postAppExchangeUserEvents_ConfigPropertyMetadata);
|
|
4123
3802
|
const untrustedConfig_image = untrustedConfig.image;
|
|
4124
3803
|
config.image = untrustedConfig_image;
|
|
4125
3804
|
return config;
|
|
4126
3805
|
}
|
|
3806
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
3807
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
3808
|
+
return null;
|
|
3809
|
+
}
|
|
3810
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3811
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
3812
|
+
}
|
|
3813
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
3814
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3815
|
+
return null;
|
|
3816
|
+
}
|
|
3817
|
+
return config;
|
|
3818
|
+
}
|
|
3819
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
3820
|
+
const resourceParams = createResourceParams$1(config);
|
|
3821
|
+
const request = createResourceRequest$1(resourceParams);
|
|
3822
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
3823
|
+
.then((response) => {
|
|
3824
|
+
return luvio.handleSuccessResponse(() => {
|
|
3825
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response);
|
|
3826
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
3827
|
+
}, () => {
|
|
3828
|
+
const cache = new StoreKeyMap();
|
|
3829
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
3830
|
+
return cache;
|
|
3831
|
+
});
|
|
3832
|
+
}, (response) => {
|
|
3833
|
+
deepFreeze(response);
|
|
3834
|
+
throw response;
|
|
3835
|
+
});
|
|
3836
|
+
}
|
|
3837
|
+
const postAppExchangeUserEventsAdapterFactory = (luvio) => {
|
|
3838
|
+
return function postAppExchangeUserEvents(untrustedConfig) {
|
|
3839
|
+
const config = validateAdapterConfig$1(untrustedConfig, postAppExchangeUserEvents_ConfigPropertyNames);
|
|
3840
|
+
// Invalid or incomplete config
|
|
3841
|
+
if (config === null) {
|
|
3842
|
+
throw new Error('Invalid config for "postAppExchangeUserEvents"');
|
|
3843
|
+
}
|
|
3844
|
+
return buildNetworkSnapshot$1(luvio, config);
|
|
3845
|
+
};
|
|
3846
|
+
};
|
|
3847
|
+
|
|
3848
|
+
const VERSION$2 = "10de01efdeabbe2f2446485b4b1f8103";
|
|
3849
|
+
function validate$2(obj, path = 'AppExchangeListingLogoRepresentation') {
|
|
3850
|
+
const v_error = (() => {
|
|
3851
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3852
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3853
|
+
}
|
|
3854
|
+
const obj_externalId = obj.externalId;
|
|
3855
|
+
const path_externalId = path + '.externalId';
|
|
3856
|
+
if (typeof obj_externalId !== 'string') {
|
|
3857
|
+
return new TypeError('Expected "string" but received "' + typeof obj_externalId + '" (at "' + path_externalId + '")');
|
|
3858
|
+
}
|
|
3859
|
+
const obj_logoType = obj.logoType;
|
|
3860
|
+
const path_logoType = path + '.logoType';
|
|
3861
|
+
if (typeof obj_logoType !== 'string') {
|
|
3862
|
+
return new TypeError('Expected "string" but received "' + typeof obj_logoType + '" (at "' + path_logoType + '")');
|
|
3863
|
+
}
|
|
3864
|
+
const obj_mediaId = obj.mediaId;
|
|
3865
|
+
const path_mediaId = path + '.mediaId';
|
|
3866
|
+
if (typeof obj_mediaId !== 'string') {
|
|
3867
|
+
return new TypeError('Expected "string" but received "' + typeof obj_mediaId + '" (at "' + path_mediaId + '")');
|
|
3868
|
+
}
|
|
3869
|
+
})();
|
|
3870
|
+
return v_error === undefined ? null : v_error;
|
|
3871
|
+
}
|
|
3872
|
+
const select$3 = function AppExchangeListingLogoRepresentationSelect() {
|
|
3873
|
+
return {
|
|
3874
|
+
kind: 'Fragment',
|
|
3875
|
+
version: VERSION$2,
|
|
3876
|
+
private: [],
|
|
3877
|
+
selections: [
|
|
3878
|
+
{
|
|
3879
|
+
name: 'externalId',
|
|
3880
|
+
kind: 'Scalar'
|
|
3881
|
+
},
|
|
3882
|
+
{
|
|
3883
|
+
name: 'logoType',
|
|
3884
|
+
kind: 'Scalar'
|
|
3885
|
+
},
|
|
3886
|
+
{
|
|
3887
|
+
name: 'mediaId',
|
|
3888
|
+
kind: 'Scalar'
|
|
3889
|
+
}
|
|
3890
|
+
]
|
|
3891
|
+
};
|
|
3892
|
+
};
|
|
3893
|
+
function equals$2(existing, incoming) {
|
|
3894
|
+
const existing_externalId = existing.externalId;
|
|
3895
|
+
const incoming_externalId = incoming.externalId;
|
|
3896
|
+
if (!(existing_externalId === incoming_externalId)) {
|
|
3897
|
+
return false;
|
|
3898
|
+
}
|
|
3899
|
+
const existing_logoType = existing.logoType;
|
|
3900
|
+
const incoming_logoType = incoming.logoType;
|
|
3901
|
+
if (!(existing_logoType === incoming_logoType)) {
|
|
3902
|
+
return false;
|
|
3903
|
+
}
|
|
3904
|
+
const existing_mediaId = existing.mediaId;
|
|
3905
|
+
const incoming_mediaId = incoming.mediaId;
|
|
3906
|
+
if (!(existing_mediaId === incoming_mediaId)) {
|
|
3907
|
+
return false;
|
|
3908
|
+
}
|
|
3909
|
+
return true;
|
|
3910
|
+
}
|
|
3911
|
+
|
|
3912
|
+
const VERSION$1 = "d0c891a7c7f849972936e052211f1ffe";
|
|
3913
|
+
function validate$1(obj, path = 'AppExchangeSearchListingRepresentation') {
|
|
3914
|
+
const v_error = (() => {
|
|
3915
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3916
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3917
|
+
}
|
|
3918
|
+
if (obj.averageRating !== undefined) {
|
|
3919
|
+
obj.averageRating;
|
|
3920
|
+
}
|
|
3921
|
+
if (obj.collectionName !== undefined) {
|
|
3922
|
+
const obj_collectionName = obj.collectionName;
|
|
3923
|
+
const path_collectionName = path + '.collectionName';
|
|
3924
|
+
if (typeof obj_collectionName !== 'string') {
|
|
3925
|
+
return new TypeError('Expected "string" but received "' + typeof obj_collectionName + '" (at "' + path_collectionName + '")');
|
|
3926
|
+
}
|
|
3927
|
+
}
|
|
3928
|
+
if (obj.description !== undefined) {
|
|
3929
|
+
const obj_description = obj.description;
|
|
3930
|
+
const path_description = path + '.description';
|
|
3931
|
+
if (typeof obj_description !== 'string') {
|
|
3932
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
3933
|
+
}
|
|
3934
|
+
}
|
|
3935
|
+
if (obj.documentPosition !== undefined) {
|
|
3936
|
+
const obj_documentPosition = obj.documentPosition;
|
|
3937
|
+
const path_documentPosition = path + '.documentPosition';
|
|
3938
|
+
if (typeof obj_documentPosition !== 'number' || (typeof obj_documentPosition === 'number' && Math.floor(obj_documentPosition) !== obj_documentPosition)) {
|
|
3939
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_documentPosition + '" (at "' + path_documentPosition + '")');
|
|
3940
|
+
}
|
|
3941
|
+
}
|
|
3942
|
+
if (obj.documentTitle !== undefined) {
|
|
3943
|
+
const obj_documentTitle = obj.documentTitle;
|
|
3944
|
+
const path_documentTitle = path + '.documentTitle';
|
|
3945
|
+
if (typeof obj_documentTitle !== 'string') {
|
|
3946
|
+
return new TypeError('Expected "string" but received "' + typeof obj_documentTitle + '" (at "' + path_documentTitle + '")');
|
|
3947
|
+
}
|
|
3948
|
+
}
|
|
3949
|
+
if (obj.listingCategories !== undefined) {
|
|
3950
|
+
const obj_listingCategories = obj.listingCategories;
|
|
3951
|
+
const path_listingCategories = path + '.listingCategories';
|
|
3952
|
+
if (!ArrayIsArray(obj_listingCategories)) {
|
|
3953
|
+
return new TypeError('Expected "array" but received "' + typeof obj_listingCategories + '" (at "' + path_listingCategories + '")');
|
|
3954
|
+
}
|
|
3955
|
+
for (let i = 0; i < obj_listingCategories.length; i++) {
|
|
3956
|
+
const obj_listingCategories_item = obj_listingCategories[i];
|
|
3957
|
+
const path_listingCategories_item = path_listingCategories + '[' + i + ']';
|
|
3958
|
+
if (typeof obj_listingCategories_item !== 'string') {
|
|
3959
|
+
return new TypeError('Expected "string" but received "' + typeof obj_listingCategories_item + '" (at "' + path_listingCategories_item + '")');
|
|
3960
|
+
}
|
|
3961
|
+
}
|
|
3962
|
+
}
|
|
3963
|
+
if (obj.logos !== undefined) {
|
|
3964
|
+
const obj_logos = obj.logos;
|
|
3965
|
+
const path_logos = path + '.logos';
|
|
3966
|
+
if (!ArrayIsArray(obj_logos)) {
|
|
3967
|
+
return new TypeError('Expected "array" but received "' + typeof obj_logos + '" (at "' + path_logos + '")');
|
|
3968
|
+
}
|
|
3969
|
+
for (let i = 0; i < obj_logos.length; i++) {
|
|
3970
|
+
const obj_logos_item = obj_logos[i];
|
|
3971
|
+
const path_logos_item = path_logos + '[' + i + ']';
|
|
3972
|
+
const referencepath_logos_itemValidationError = validate$2(obj_logos_item, path_logos_item);
|
|
3973
|
+
if (referencepath_logos_itemValidationError !== null) {
|
|
3974
|
+
let message = 'Object doesn\'t match AppExchangeListingLogoRepresentation (at "' + path_logos_item + '")\n';
|
|
3975
|
+
message += referencepath_logos_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3976
|
+
return new TypeError(message);
|
|
3977
|
+
}
|
|
3978
|
+
}
|
|
3979
|
+
}
|
|
3980
|
+
if (obj.oafId !== undefined) {
|
|
3981
|
+
const obj_oafId = obj.oafId;
|
|
3982
|
+
const path_oafId = path + '.oafId';
|
|
3983
|
+
if (typeof obj_oafId !== 'string') {
|
|
3984
|
+
return new TypeError('Expected "string" but received "' + typeof obj_oafId + '" (at "' + path_oafId + '")');
|
|
3985
|
+
}
|
|
3986
|
+
}
|
|
3987
|
+
if (obj.pricing !== undefined) {
|
|
3988
|
+
const obj_pricing = obj.pricing;
|
|
3989
|
+
const path_pricing = path + '.pricing';
|
|
3990
|
+
if (typeof obj_pricing !== 'string') {
|
|
3991
|
+
return new TypeError('Expected "string" but received "' + typeof obj_pricing + '" (at "' + path_pricing + '")');
|
|
3992
|
+
}
|
|
3993
|
+
}
|
|
3994
|
+
if (obj.publisher !== undefined) {
|
|
3995
|
+
const obj_publisher = obj.publisher;
|
|
3996
|
+
const path_publisher = path + '.publisher';
|
|
3997
|
+
if (typeof obj_publisher !== 'string') {
|
|
3998
|
+
return new TypeError('Expected "string" but received "' + typeof obj_publisher + '" (at "' + path_publisher + '")');
|
|
3999
|
+
}
|
|
4000
|
+
}
|
|
4001
|
+
if (obj.reviewsAmount !== undefined) {
|
|
4002
|
+
const obj_reviewsAmount = obj.reviewsAmount;
|
|
4003
|
+
const path_reviewsAmount = path + '.reviewsAmount';
|
|
4004
|
+
if (typeof obj_reviewsAmount !== 'number' || (typeof obj_reviewsAmount === 'number' && Math.floor(obj_reviewsAmount) !== obj_reviewsAmount)) {
|
|
4005
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_reviewsAmount + '" (at "' + path_reviewsAmount + '")');
|
|
4006
|
+
}
|
|
4007
|
+
}
|
|
4008
|
+
if (obj.sourceName !== undefined) {
|
|
4009
|
+
const obj_sourceName = obj.sourceName;
|
|
4010
|
+
const path_sourceName = path + '.sourceName';
|
|
4011
|
+
if (typeof obj_sourceName !== 'string') {
|
|
4012
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sourceName + '" (at "' + path_sourceName + '")');
|
|
4013
|
+
}
|
|
4014
|
+
}
|
|
4015
|
+
if (obj.title !== undefined) {
|
|
4016
|
+
const obj_title = obj.title;
|
|
4017
|
+
const path_title = path + '.title';
|
|
4018
|
+
if (typeof obj_title !== 'string') {
|
|
4019
|
+
return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
|
|
4020
|
+
}
|
|
4021
|
+
}
|
|
4022
|
+
if (obj.type !== undefined) {
|
|
4023
|
+
const obj_type = obj.type;
|
|
4024
|
+
const path_type = path + '.type';
|
|
4025
|
+
if (typeof obj_type !== 'string') {
|
|
4026
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
4027
|
+
}
|
|
4028
|
+
}
|
|
4029
|
+
})();
|
|
4030
|
+
return v_error === undefined ? null : v_error;
|
|
4031
|
+
}
|
|
4032
|
+
const select$2 = function AppExchangeSearchListingRepresentationSelect() {
|
|
4033
|
+
const { selections: AppExchangeListingLogoRepresentation__selections, opaque: AppExchangeListingLogoRepresentation__opaque, } = select$3();
|
|
4034
|
+
return {
|
|
4035
|
+
kind: 'Fragment',
|
|
4036
|
+
version: VERSION$1,
|
|
4037
|
+
private: [],
|
|
4038
|
+
selections: [
|
|
4039
|
+
{
|
|
4040
|
+
name: 'averageRating',
|
|
4041
|
+
kind: 'Scalar',
|
|
4042
|
+
required: false
|
|
4043
|
+
},
|
|
4044
|
+
{
|
|
4045
|
+
name: 'collectionName',
|
|
4046
|
+
kind: 'Scalar',
|
|
4047
|
+
required: false
|
|
4048
|
+
},
|
|
4049
|
+
{
|
|
4050
|
+
name: 'description',
|
|
4051
|
+
kind: 'Scalar',
|
|
4052
|
+
required: false
|
|
4053
|
+
},
|
|
4054
|
+
{
|
|
4055
|
+
name: 'documentPosition',
|
|
4056
|
+
kind: 'Scalar',
|
|
4057
|
+
required: false
|
|
4058
|
+
},
|
|
4059
|
+
{
|
|
4060
|
+
name: 'documentTitle',
|
|
4061
|
+
kind: 'Scalar',
|
|
4062
|
+
required: false
|
|
4063
|
+
},
|
|
4064
|
+
{
|
|
4065
|
+
name: 'listingCategories',
|
|
4066
|
+
kind: 'Scalar',
|
|
4067
|
+
plural: true,
|
|
4068
|
+
required: false
|
|
4069
|
+
},
|
|
4070
|
+
{
|
|
4071
|
+
name: 'logos',
|
|
4072
|
+
kind: 'Object',
|
|
4073
|
+
plural: true,
|
|
4074
|
+
selections: AppExchangeListingLogoRepresentation__selections,
|
|
4075
|
+
required: false
|
|
4076
|
+
},
|
|
4077
|
+
{
|
|
4078
|
+
name: 'oafId',
|
|
4079
|
+
kind: 'Scalar',
|
|
4080
|
+
required: false
|
|
4081
|
+
},
|
|
4082
|
+
{
|
|
4083
|
+
name: 'pricing',
|
|
4084
|
+
kind: 'Scalar',
|
|
4085
|
+
required: false
|
|
4086
|
+
},
|
|
4087
|
+
{
|
|
4088
|
+
name: 'publisher',
|
|
4089
|
+
kind: 'Scalar',
|
|
4090
|
+
required: false
|
|
4091
|
+
},
|
|
4092
|
+
{
|
|
4093
|
+
name: 'reviewsAmount',
|
|
4094
|
+
kind: 'Scalar',
|
|
4095
|
+
required: false
|
|
4096
|
+
},
|
|
4097
|
+
{
|
|
4098
|
+
name: 'sourceName',
|
|
4099
|
+
kind: 'Scalar',
|
|
4100
|
+
required: false
|
|
4101
|
+
},
|
|
4102
|
+
{
|
|
4103
|
+
name: 'title',
|
|
4104
|
+
kind: 'Scalar',
|
|
4105
|
+
required: false
|
|
4106
|
+
},
|
|
4107
|
+
{
|
|
4108
|
+
name: 'type',
|
|
4109
|
+
kind: 'Scalar',
|
|
4110
|
+
required: false
|
|
4111
|
+
}
|
|
4112
|
+
]
|
|
4113
|
+
};
|
|
4114
|
+
};
|
|
4115
|
+
function equals$1(existing, incoming) {
|
|
4116
|
+
const existing_documentPosition = existing.documentPosition;
|
|
4117
|
+
const incoming_documentPosition = incoming.documentPosition;
|
|
4118
|
+
// if at least one of these optionals is defined
|
|
4119
|
+
if (existing_documentPosition !== undefined || incoming_documentPosition !== undefined) {
|
|
4120
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4121
|
+
// not equal
|
|
4122
|
+
if (existing_documentPosition === undefined || incoming_documentPosition === undefined) {
|
|
4123
|
+
return false;
|
|
4124
|
+
}
|
|
4125
|
+
if (!(existing_documentPosition === incoming_documentPosition)) {
|
|
4126
|
+
return false;
|
|
4127
|
+
}
|
|
4128
|
+
}
|
|
4129
|
+
const existing_reviewsAmount = existing.reviewsAmount;
|
|
4130
|
+
const incoming_reviewsAmount = incoming.reviewsAmount;
|
|
4131
|
+
// if at least one of these optionals is defined
|
|
4132
|
+
if (existing_reviewsAmount !== undefined || incoming_reviewsAmount !== undefined) {
|
|
4133
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4134
|
+
// not equal
|
|
4135
|
+
if (existing_reviewsAmount === undefined || incoming_reviewsAmount === undefined) {
|
|
4136
|
+
return false;
|
|
4137
|
+
}
|
|
4138
|
+
if (!(existing_reviewsAmount === incoming_reviewsAmount)) {
|
|
4139
|
+
return false;
|
|
4140
|
+
}
|
|
4141
|
+
}
|
|
4142
|
+
const existing_collectionName = existing.collectionName;
|
|
4143
|
+
const incoming_collectionName = incoming.collectionName;
|
|
4144
|
+
// if at least one of these optionals is defined
|
|
4145
|
+
if (existing_collectionName !== undefined || incoming_collectionName !== undefined) {
|
|
4146
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4147
|
+
// not equal
|
|
4148
|
+
if (existing_collectionName === undefined || incoming_collectionName === undefined) {
|
|
4149
|
+
return false;
|
|
4150
|
+
}
|
|
4151
|
+
if (!(existing_collectionName === incoming_collectionName)) {
|
|
4152
|
+
return false;
|
|
4153
|
+
}
|
|
4154
|
+
}
|
|
4155
|
+
const existing_description = existing.description;
|
|
4156
|
+
const incoming_description = incoming.description;
|
|
4157
|
+
// if at least one of these optionals is defined
|
|
4158
|
+
if (existing_description !== undefined || incoming_description !== undefined) {
|
|
4159
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4160
|
+
// not equal
|
|
4161
|
+
if (existing_description === undefined || incoming_description === undefined) {
|
|
4162
|
+
return false;
|
|
4163
|
+
}
|
|
4164
|
+
if (!(existing_description === incoming_description)) {
|
|
4165
|
+
return false;
|
|
4166
|
+
}
|
|
4167
|
+
}
|
|
4168
|
+
const existing_documentTitle = existing.documentTitle;
|
|
4169
|
+
const incoming_documentTitle = incoming.documentTitle;
|
|
4170
|
+
// if at least one of these optionals is defined
|
|
4171
|
+
if (existing_documentTitle !== undefined || incoming_documentTitle !== undefined) {
|
|
4172
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4173
|
+
// not equal
|
|
4174
|
+
if (existing_documentTitle === undefined || incoming_documentTitle === undefined) {
|
|
4175
|
+
return false;
|
|
4176
|
+
}
|
|
4177
|
+
if (!(existing_documentTitle === incoming_documentTitle)) {
|
|
4178
|
+
return false;
|
|
4179
|
+
}
|
|
4180
|
+
}
|
|
4181
|
+
const existing_oafId = existing.oafId;
|
|
4182
|
+
const incoming_oafId = incoming.oafId;
|
|
4183
|
+
// if at least one of these optionals is defined
|
|
4184
|
+
if (existing_oafId !== undefined || incoming_oafId !== undefined) {
|
|
4185
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4186
|
+
// not equal
|
|
4187
|
+
if (existing_oafId === undefined || incoming_oafId === undefined) {
|
|
4188
|
+
return false;
|
|
4189
|
+
}
|
|
4190
|
+
if (!(existing_oafId === incoming_oafId)) {
|
|
4191
|
+
return false;
|
|
4192
|
+
}
|
|
4193
|
+
}
|
|
4194
|
+
const existing_pricing = existing.pricing;
|
|
4195
|
+
const incoming_pricing = incoming.pricing;
|
|
4196
|
+
// if at least one of these optionals is defined
|
|
4197
|
+
if (existing_pricing !== undefined || incoming_pricing !== undefined) {
|
|
4198
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4199
|
+
// not equal
|
|
4200
|
+
if (existing_pricing === undefined || incoming_pricing === undefined) {
|
|
4201
|
+
return false;
|
|
4202
|
+
}
|
|
4203
|
+
if (!(existing_pricing === incoming_pricing)) {
|
|
4204
|
+
return false;
|
|
4205
|
+
}
|
|
4206
|
+
}
|
|
4207
|
+
const existing_publisher = existing.publisher;
|
|
4208
|
+
const incoming_publisher = incoming.publisher;
|
|
4209
|
+
// if at least one of these optionals is defined
|
|
4210
|
+
if (existing_publisher !== undefined || incoming_publisher !== undefined) {
|
|
4211
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4212
|
+
// not equal
|
|
4213
|
+
if (existing_publisher === undefined || incoming_publisher === undefined) {
|
|
4214
|
+
return false;
|
|
4215
|
+
}
|
|
4216
|
+
if (!(existing_publisher === incoming_publisher)) {
|
|
4217
|
+
return false;
|
|
4218
|
+
}
|
|
4219
|
+
}
|
|
4220
|
+
const existing_sourceName = existing.sourceName;
|
|
4221
|
+
const incoming_sourceName = incoming.sourceName;
|
|
4222
|
+
// if at least one of these optionals is defined
|
|
4223
|
+
if (existing_sourceName !== undefined || incoming_sourceName !== undefined) {
|
|
4224
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4225
|
+
// not equal
|
|
4226
|
+
if (existing_sourceName === undefined || incoming_sourceName === undefined) {
|
|
4227
|
+
return false;
|
|
4228
|
+
}
|
|
4229
|
+
if (!(existing_sourceName === incoming_sourceName)) {
|
|
4230
|
+
return false;
|
|
4231
|
+
}
|
|
4232
|
+
}
|
|
4233
|
+
const existing_title = existing.title;
|
|
4234
|
+
const incoming_title = incoming.title;
|
|
4235
|
+
// if at least one of these optionals is defined
|
|
4236
|
+
if (existing_title !== undefined || incoming_title !== undefined) {
|
|
4237
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4238
|
+
// not equal
|
|
4239
|
+
if (existing_title === undefined || incoming_title === undefined) {
|
|
4240
|
+
return false;
|
|
4241
|
+
}
|
|
4242
|
+
if (!(existing_title === incoming_title)) {
|
|
4243
|
+
return false;
|
|
4244
|
+
}
|
|
4245
|
+
}
|
|
4246
|
+
const existing_type = existing.type;
|
|
4247
|
+
const incoming_type = incoming.type;
|
|
4248
|
+
// if at least one of these optionals is defined
|
|
4249
|
+
if (existing_type !== undefined || incoming_type !== undefined) {
|
|
4250
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4251
|
+
// not equal
|
|
4252
|
+
if (existing_type === undefined || incoming_type === undefined) {
|
|
4253
|
+
return false;
|
|
4254
|
+
}
|
|
4255
|
+
if (!(existing_type === incoming_type)) {
|
|
4256
|
+
return false;
|
|
4257
|
+
}
|
|
4258
|
+
}
|
|
4259
|
+
const existing_averageRating = existing.averageRating;
|
|
4260
|
+
const incoming_averageRating = incoming.averageRating;
|
|
4261
|
+
// if at least one of these optionals is defined
|
|
4262
|
+
if (existing_averageRating !== undefined || incoming_averageRating !== undefined) {
|
|
4263
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4264
|
+
// not equal
|
|
4265
|
+
if (existing_averageRating === undefined || incoming_averageRating === undefined) {
|
|
4266
|
+
return false;
|
|
4267
|
+
}
|
|
4268
|
+
if (!(existing_averageRating === incoming_averageRating)) {
|
|
4269
|
+
return false;
|
|
4270
|
+
}
|
|
4271
|
+
}
|
|
4272
|
+
const existing_listingCategories = existing.listingCategories;
|
|
4273
|
+
const incoming_listingCategories = incoming.listingCategories;
|
|
4274
|
+
// if at least one of these optionals is defined
|
|
4275
|
+
if (existing_listingCategories !== undefined || incoming_listingCategories !== undefined) {
|
|
4276
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4277
|
+
// not equal
|
|
4278
|
+
if (existing_listingCategories === undefined || incoming_listingCategories === undefined) {
|
|
4279
|
+
return false;
|
|
4280
|
+
}
|
|
4281
|
+
const equals_listingCategories_items = equalsArray(existing_listingCategories, incoming_listingCategories, (existing_listingCategories_item, incoming_listingCategories_item) => {
|
|
4282
|
+
if (!(existing_listingCategories_item === incoming_listingCategories_item)) {
|
|
4283
|
+
return false;
|
|
4284
|
+
}
|
|
4285
|
+
});
|
|
4286
|
+
if (equals_listingCategories_items === false) {
|
|
4287
|
+
return false;
|
|
4288
|
+
}
|
|
4289
|
+
}
|
|
4290
|
+
const existing_logos = existing.logos;
|
|
4291
|
+
const incoming_logos = incoming.logos;
|
|
4292
|
+
// if at least one of these optionals is defined
|
|
4293
|
+
if (existing_logos !== undefined || incoming_logos !== undefined) {
|
|
4294
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4295
|
+
// not equal
|
|
4296
|
+
if (existing_logos === undefined || incoming_logos === undefined) {
|
|
4297
|
+
return false;
|
|
4298
|
+
}
|
|
4299
|
+
const equals_logos_items = equalsArray(existing_logos, incoming_logos, (existing_logos_item, incoming_logos_item) => {
|
|
4300
|
+
if (!(equals$2(existing_logos_item, incoming_logos_item))) {
|
|
4301
|
+
return false;
|
|
4302
|
+
}
|
|
4303
|
+
});
|
|
4304
|
+
if (equals_logos_items === false) {
|
|
4305
|
+
return false;
|
|
4306
|
+
}
|
|
4307
|
+
}
|
|
4308
|
+
return true;
|
|
4309
|
+
}
|
|
4310
|
+
|
|
4311
|
+
const VERSION = "8d9a771044db35da3a48fdd775bfe9b2";
|
|
4312
|
+
function validate(obj, path = 'AppExchangeSearchListingCollectionRepresentation') {
|
|
4313
|
+
const v_error = (() => {
|
|
4314
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4315
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4316
|
+
}
|
|
4317
|
+
const obj_listings = obj.listings;
|
|
4318
|
+
const path_listings = path + '.listings';
|
|
4319
|
+
if (!ArrayIsArray(obj_listings)) {
|
|
4320
|
+
return new TypeError('Expected "array" but received "' + typeof obj_listings + '" (at "' + path_listings + '")');
|
|
4321
|
+
}
|
|
4322
|
+
for (let i = 0; i < obj_listings.length; i++) {
|
|
4323
|
+
const obj_listings_item = obj_listings[i];
|
|
4324
|
+
const path_listings_item = path_listings + '[' + i + ']';
|
|
4325
|
+
const referencepath_listings_itemValidationError = validate$1(obj_listings_item, path_listings_item);
|
|
4326
|
+
if (referencepath_listings_itemValidationError !== null) {
|
|
4327
|
+
let message = 'Object doesn\'t match AppExchangeSearchListingRepresentation (at "' + path_listings_item + '")\n';
|
|
4328
|
+
message += referencepath_listings_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4329
|
+
return new TypeError(message);
|
|
4330
|
+
}
|
|
4331
|
+
}
|
|
4332
|
+
const obj_primaryKey = obj.primaryKey;
|
|
4333
|
+
const path_primaryKey = path + '.primaryKey';
|
|
4334
|
+
if (typeof obj_primaryKey !== 'string') {
|
|
4335
|
+
return new TypeError('Expected "string" but received "' + typeof obj_primaryKey + '" (at "' + path_primaryKey + '")');
|
|
4336
|
+
}
|
|
4337
|
+
const obj_totalCount = obj.totalCount;
|
|
4338
|
+
const path_totalCount = path + '.totalCount';
|
|
4339
|
+
if (typeof obj_totalCount !== 'number' || (typeof obj_totalCount === 'number' && Math.floor(obj_totalCount) !== obj_totalCount)) {
|
|
4340
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_totalCount + '" (at "' + path_totalCount + '")');
|
|
4341
|
+
}
|
|
4342
|
+
})();
|
|
4343
|
+
return v_error === undefined ? null : v_error;
|
|
4344
|
+
}
|
|
4345
|
+
const RepresentationType = 'AppExchangeSearchListingCollectionRepresentation';
|
|
4346
|
+
function keyBuilder(luvio, config) {
|
|
4347
|
+
return keyPrefix + '::' + RepresentationType + ':' + config.primaryKey;
|
|
4348
|
+
}
|
|
4349
|
+
function keyBuilderFromType(luvio, object) {
|
|
4350
|
+
const keyParams = {
|
|
4351
|
+
primaryKey: object.primaryKey
|
|
4352
|
+
};
|
|
4353
|
+
return keyBuilder(luvio, keyParams);
|
|
4354
|
+
}
|
|
4355
|
+
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
4356
|
+
return input;
|
|
4357
|
+
}
|
|
4358
|
+
const select$1 = function AppExchangeSearchListingCollectionRepresentationSelect() {
|
|
4359
|
+
const { selections: AppExchangeSearchListingRepresentation__selections, opaque: AppExchangeSearchListingRepresentation__opaque, } = select$2();
|
|
4360
|
+
return {
|
|
4361
|
+
kind: 'Fragment',
|
|
4362
|
+
version: VERSION,
|
|
4363
|
+
private: [],
|
|
4364
|
+
selections: [
|
|
4365
|
+
{
|
|
4366
|
+
name: 'listings',
|
|
4367
|
+
kind: 'Object',
|
|
4368
|
+
plural: true,
|
|
4369
|
+
selections: AppExchangeSearchListingRepresentation__selections
|
|
4370
|
+
},
|
|
4371
|
+
{
|
|
4372
|
+
name: 'primaryKey',
|
|
4373
|
+
kind: 'Scalar'
|
|
4374
|
+
},
|
|
4375
|
+
{
|
|
4376
|
+
name: 'totalCount',
|
|
4377
|
+
kind: 'Scalar'
|
|
4378
|
+
}
|
|
4379
|
+
]
|
|
4380
|
+
};
|
|
4381
|
+
};
|
|
4382
|
+
function equals(existing, incoming) {
|
|
4383
|
+
const existing_totalCount = existing.totalCount;
|
|
4384
|
+
const incoming_totalCount = incoming.totalCount;
|
|
4385
|
+
if (!(existing_totalCount === incoming_totalCount)) {
|
|
4386
|
+
return false;
|
|
4387
|
+
}
|
|
4388
|
+
const existing_primaryKey = existing.primaryKey;
|
|
4389
|
+
const incoming_primaryKey = incoming.primaryKey;
|
|
4390
|
+
if (!(existing_primaryKey === incoming_primaryKey)) {
|
|
4391
|
+
return false;
|
|
4392
|
+
}
|
|
4393
|
+
const existing_listings = existing.listings;
|
|
4394
|
+
const incoming_listings = incoming.listings;
|
|
4395
|
+
const equals_listings_items = equalsArray(existing_listings, incoming_listings, (existing_listings_item, incoming_listings_item) => {
|
|
4396
|
+
if (!(equals$1(existing_listings_item, incoming_listings_item))) {
|
|
4397
|
+
return false;
|
|
4398
|
+
}
|
|
4399
|
+
});
|
|
4400
|
+
if (equals_listings_items === false) {
|
|
4401
|
+
return false;
|
|
4402
|
+
}
|
|
4403
|
+
return true;
|
|
4404
|
+
}
|
|
4405
|
+
const ingest = function AppExchangeSearchListingCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4406
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4407
|
+
const validateError = validate(input);
|
|
4408
|
+
if (validateError !== null) {
|
|
4409
|
+
throw validateError;
|
|
4410
|
+
}
|
|
4411
|
+
}
|
|
4412
|
+
const key = keyBuilderFromType(luvio, input);
|
|
4413
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 3000;
|
|
4414
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "appexchange", VERSION, RepresentationType, equals);
|
|
4415
|
+
return createLink(key);
|
|
4416
|
+
};
|
|
4417
|
+
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
4418
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4419
|
+
const rootKey = keyBuilderFromType(luvio, input);
|
|
4420
|
+
rootKeySet.set(rootKey, {
|
|
4421
|
+
namespace: keyPrefix,
|
|
4422
|
+
representationName: RepresentationType,
|
|
4423
|
+
mergeable: false
|
|
4424
|
+
});
|
|
4425
|
+
}
|
|
4426
|
+
|
|
4427
|
+
function select(luvio, params) {
|
|
4428
|
+
return select$1();
|
|
4429
|
+
}
|
|
4430
|
+
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
4431
|
+
getTypeCacheKeys(storeKeyMap, luvio, response);
|
|
4432
|
+
}
|
|
4433
|
+
function ingestSuccess(luvio, resourceParams, response) {
|
|
4434
|
+
const { body } = response;
|
|
4435
|
+
const key = keyBuilderFromType(luvio, body);
|
|
4436
|
+
luvio.storeIngest(key, ingest, body);
|
|
4437
|
+
const snapshot = luvio.storeLookup({
|
|
4438
|
+
recordId: key,
|
|
4439
|
+
node: select(),
|
|
4440
|
+
variables: {},
|
|
4441
|
+
});
|
|
4442
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4443
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4444
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4445
|
+
}
|
|
4446
|
+
}
|
|
4447
|
+
deepFreeze(snapshot.data);
|
|
4448
|
+
return snapshot;
|
|
4449
|
+
}
|
|
4450
|
+
function createResourceRequest(config) {
|
|
4451
|
+
const headers = {};
|
|
4452
|
+
return {
|
|
4453
|
+
baseUri: '/services/data/v63.0',
|
|
4454
|
+
basePath: '/connect/appexchange/search-listings',
|
|
4455
|
+
method: 'post',
|
|
4456
|
+
body: config.body,
|
|
4457
|
+
urlParams: {},
|
|
4458
|
+
queryParams: {},
|
|
4459
|
+
headers,
|
|
4460
|
+
priority: 'normal',
|
|
4461
|
+
};
|
|
4462
|
+
}
|
|
4463
|
+
|
|
4464
|
+
const adapterName = 'searchListings';
|
|
4465
|
+
const searchListings_ConfigPropertyMetadata = [
|
|
4466
|
+
generateParamConfigMetadata('category', false, 2 /* Body */, 0 /* String */, true),
|
|
4467
|
+
generateParamConfigMetadata('edition', false, 2 /* Body */, 0 /* String */, true),
|
|
4468
|
+
generateParamConfigMetadata('features', false, 2 /* Body */, 0 /* String */, true),
|
|
4469
|
+
generateParamConfigMetadata('impact', false, 2 /* Body */, 0 /* String */, true),
|
|
4470
|
+
generateParamConfigMetadata('industry', false, 2 /* Body */, 0 /* String */, true),
|
|
4471
|
+
generateParamConfigMetadata('keyword', false, 2 /* Body */, 0 /* String */),
|
|
4472
|
+
generateParamConfigMetadata('labs', false, 2 /* Body */, 0 /* String */, true),
|
|
4473
|
+
generateParamConfigMetadata('language', false, 2 /* Body */, 0 /* String */),
|
|
4474
|
+
generateParamConfigMetadata('languages', false, 2 /* Body */, 0 /* String */, true),
|
|
4475
|
+
generateParamConfigMetadata('page', false, 2 /* Body */, 3 /* Integer */),
|
|
4476
|
+
generateParamConfigMetadata('pageSize', false, 2 /* Body */, 3 /* Integer */),
|
|
4477
|
+
generateParamConfigMetadata('persona', false, 2 /* Body */, 0 /* String */, true),
|
|
4478
|
+
generateParamConfigMetadata('price', false, 2 /* Body */, 0 /* String */, true),
|
|
4479
|
+
generateParamConfigMetadata('product', false, 2 /* Body */, 0 /* String */),
|
|
4480
|
+
generateParamConfigMetadata('rating', false, 2 /* Body */, 3 /* Integer */),
|
|
4481
|
+
generateParamConfigMetadata('sort', false, 2 /* Body */, 0 /* String */),
|
|
4482
|
+
generateParamConfigMetadata('tech', false, 2 /* Body */, 0 /* String */, true),
|
|
4483
|
+
generateParamConfigMetadata('type', false, 2 /* Body */, 0 /* String */),
|
|
4484
|
+
];
|
|
4485
|
+
const searchListings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, searchListings_ConfigPropertyMetadata);
|
|
4486
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$3(searchListings_ConfigPropertyMetadata);
|
|
4487
|
+
function typeCheckConfig(untrustedConfig) {
|
|
4488
|
+
const config = {};
|
|
4489
|
+
typeCheckConfig$3(untrustedConfig, config, searchListings_ConfigPropertyMetadata);
|
|
4490
|
+
return config;
|
|
4491
|
+
}
|
|
4127
4492
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
4128
4493
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4129
4494
|
return null;
|
|
@@ -4155,57 +4520,49 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
4155
4520
|
throw response;
|
|
4156
4521
|
});
|
|
4157
4522
|
}
|
|
4158
|
-
const
|
|
4159
|
-
return function
|
|
4160
|
-
const config = validateAdapterConfig(untrustedConfig,
|
|
4523
|
+
const searchListingsAdapterFactory = (luvio) => {
|
|
4524
|
+
return function searchListings(untrustedConfig) {
|
|
4525
|
+
const config = validateAdapterConfig(untrustedConfig, searchListings_ConfigPropertyNames);
|
|
4161
4526
|
// Invalid or incomplete config
|
|
4162
4527
|
if (config === null) {
|
|
4163
|
-
throw new Error('Invalid config for "
|
|
4528
|
+
throw new Error('Invalid config for "searchListings"');
|
|
4164
4529
|
}
|
|
4165
4530
|
return buildNetworkSnapshot(luvio, config);
|
|
4166
4531
|
};
|
|
4167
4532
|
};
|
|
4168
4533
|
|
|
4169
|
-
let getAppExchangeSearchListingCollection;
|
|
4170
4534
|
let getListingDetails;
|
|
4171
4535
|
let postAppExchangeUserEvents;
|
|
4536
|
+
let searchListings;
|
|
4172
4537
|
// Imperative GET Adapters
|
|
4173
|
-
let getAppExchangeSearchListingCollection_imperative;
|
|
4174
4538
|
let getListingDetails_imperative;
|
|
4175
4539
|
// Adapter Metadata
|
|
4176
|
-
const getAppExchangeSearchListingCollectionMetadata = {
|
|
4177
|
-
apiFamily: 'appexchange',
|
|
4178
|
-
name: 'getAppExchangeSearchListingCollection',
|
|
4179
|
-
};
|
|
4180
4540
|
const getListingDetailsMetadata = { apiFamily: 'appexchange', name: 'getListingDetails' };
|
|
4181
4541
|
// Notify Update Available
|
|
4182
4542
|
function bindExportsTo(luvio) {
|
|
4183
4543
|
// LDS Adapters
|
|
4184
|
-
const getAppExchangeSearchListingCollection_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAppExchangeSearchListingCollection', getAppExchangeSearchListingCollectionAdapterFactory), getAppExchangeSearchListingCollectionMetadata);
|
|
4185
4544
|
const getListingDetails_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getListingDetails', getListingDetailsAdapterFactory), getListingDetailsMetadata);
|
|
4186
4545
|
function unwrapSnapshotData(factory) {
|
|
4187
4546
|
const adapter = factory(luvio);
|
|
4188
4547
|
return (config) => adapter(config).then((snapshot) => snapshot.data);
|
|
4189
4548
|
}
|
|
4190
4549
|
return {
|
|
4191
|
-
getAppExchangeSearchListingCollection: createWireAdapterConstructor(luvio, getAppExchangeSearchListingCollection_ldsAdapter, getAppExchangeSearchListingCollectionMetadata),
|
|
4192
4550
|
getListingDetails: createWireAdapterConstructor(luvio, getListingDetails_ldsAdapter, getListingDetailsMetadata),
|
|
4193
4551
|
postAppExchangeUserEvents: unwrapSnapshotData(postAppExchangeUserEventsAdapterFactory),
|
|
4552
|
+
searchListings: unwrapSnapshotData(searchListingsAdapterFactory),
|
|
4194
4553
|
// Imperative GET Adapters
|
|
4195
|
-
getAppExchangeSearchListingCollection_imperative: createImperativeAdapter(luvio, getAppExchangeSearchListingCollection_ldsAdapter, getAppExchangeSearchListingCollectionMetadata),
|
|
4196
4554
|
getListingDetails_imperative: createImperativeAdapter(luvio, getListingDetails_ldsAdapter, getListingDetailsMetadata),
|
|
4197
4555
|
// Notify Update Availables
|
|
4198
4556
|
};
|
|
4199
4557
|
}
|
|
4200
4558
|
withDefaultLuvio((luvio) => {
|
|
4201
4559
|
({
|
|
4202
|
-
getAppExchangeSearchListingCollection,
|
|
4203
4560
|
getListingDetails,
|
|
4204
4561
|
postAppExchangeUserEvents,
|
|
4205
|
-
|
|
4562
|
+
searchListings,
|
|
4206
4563
|
getListingDetails_imperative,
|
|
4207
4564
|
} = bindExportsTo(luvio));
|
|
4208
4565
|
});
|
|
4209
4566
|
|
|
4210
|
-
export {
|
|
4211
|
-
// version: 1.332.0-
|
|
4567
|
+
export { getListingDetails, getListingDetails_imperative, postAppExchangeUserEvents, searchListings };
|
|
4568
|
+
// version: 1.332.0-dev21-cc02503f9d
|