@salesforce/lds-adapters-industries-sustainability-reference-data-v3 0.1.0-dev1
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/LICENSE.txt +82 -0
- package/dist/es/es2018/industries-sustainability-reference-data-v3.js +660 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/getSCGetDatasetMetaResource.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/postUploadDataset.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectSustainabilityReferenceDataV3EntitySectionByEntitySection.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectSustainabilityReferenceDataV3EntityVersionUpload.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/types/EntityDatasetVersionDetailRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/GetDataSetMetaOutputRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/ReferenceDataRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/ReferenceDataVersionsRepresentation.d.ts +49 -0
- package/dist/es/es2018/types/src/generated/types/ReferenceDatasetsRepresentation.d.ts +68 -0
- package/dist/es/es2018/types/src/generated/types/UploadDatasetInputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/UploadDatasetOutputRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +66 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +702 -0
- package/src/raml/api.raml +191 -0
- package/src/raml/luvio.raml +29 -0
package/sfdc/index.js
ADDED
|
@@ -0,0 +1,702 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2022, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
* ATTENTION!
|
|
9
|
+
* THIS IS A GENERATED FILE FROM https://github.com/salesforce-experience-platform-emu/lds-lightning-platform
|
|
10
|
+
* If you would like to contribute to LDS, please follow the steps outlined in the git repo.
|
|
11
|
+
* Any changes made to this file in p4 will be automatically overwritten.
|
|
12
|
+
* *******************************************************************************************
|
|
13
|
+
*/
|
|
14
|
+
/* proxy-compat-disable */
|
|
15
|
+
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
|
+
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1, typeCheckConfig as typeCheckConfig$2, StoreKeyMap, createResourceParams as createResourceParams$2 } from 'force/luvioEngine';
|
|
18
|
+
|
|
19
|
+
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
|
+
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
21
|
+
const { isArray: ArrayIsArray$1 } = Array;
|
|
22
|
+
/**
|
|
23
|
+
* Validates an adapter config is well-formed.
|
|
24
|
+
* @param config The config to validate.
|
|
25
|
+
* @param adapter The adapter validation configuration.
|
|
26
|
+
* @param oneOf The keys the config must contain at least one of.
|
|
27
|
+
* @throws A TypeError if config doesn't satisfy the adapter's config validation.
|
|
28
|
+
*/
|
|
29
|
+
function validateConfig(config, adapter, oneOf) {
|
|
30
|
+
const { displayName } = adapter;
|
|
31
|
+
const { required, optional, unsupported } = adapter.parameters;
|
|
32
|
+
if (config === undefined ||
|
|
33
|
+
required.every(req => ObjectPrototypeHasOwnProperty.call(config, req)) === false) {
|
|
34
|
+
throw new TypeError(`adapter ${displayName} configuration must specify ${required.sort().join(', ')}`);
|
|
35
|
+
}
|
|
36
|
+
if (oneOf && oneOf.some(req => ObjectPrototypeHasOwnProperty.call(config, req)) === false) {
|
|
37
|
+
throw new TypeError(`adapter ${displayName} configuration must specify one of ${oneOf.sort().join(', ')}`);
|
|
38
|
+
}
|
|
39
|
+
if (unsupported !== undefined &&
|
|
40
|
+
unsupported.some(req => ObjectPrototypeHasOwnProperty.call(config, req))) {
|
|
41
|
+
throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
|
|
42
|
+
}
|
|
43
|
+
const supported = required.concat(optional);
|
|
44
|
+
if (ObjectKeys(config).some(key => !supported.includes(key))) {
|
|
45
|
+
throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function untrustedIsObject(untrusted) {
|
|
49
|
+
return typeof untrusted === 'object' && untrusted !== null && ArrayIsArray$1(untrusted) === false;
|
|
50
|
+
}
|
|
51
|
+
function areRequiredParametersPresent(config, configPropertyNames) {
|
|
52
|
+
return configPropertyNames.parameters.required.every(req => req in config);
|
|
53
|
+
}
|
|
54
|
+
const snapshotRefreshOptions = {
|
|
55
|
+
overrides: {
|
|
56
|
+
headers: {
|
|
57
|
+
'Cache-Control': 'no-cache',
|
|
58
|
+
},
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
|
|
62
|
+
return {
|
|
63
|
+
name,
|
|
64
|
+
required,
|
|
65
|
+
resourceType,
|
|
66
|
+
typeCheckShape,
|
|
67
|
+
isArrayShape,
|
|
68
|
+
coerceFn,
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
72
|
+
const required = paramsMeta.filter(p => p.required).map(p => p.name);
|
|
73
|
+
const optional = paramsMeta.filter(p => !p.required).map(p => p.name);
|
|
74
|
+
return {
|
|
75
|
+
displayName,
|
|
76
|
+
parameters: {
|
|
77
|
+
required,
|
|
78
|
+
optional,
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
const keyPrefix = 'sustainability-reference-data-v3';
|
|
83
|
+
|
|
84
|
+
const { isArray: ArrayIsArray } = Array;
|
|
85
|
+
const { stringify: JSONStringify } = JSON;
|
|
86
|
+
function createLink(ref) {
|
|
87
|
+
return {
|
|
88
|
+
__ref: serializeStructuredKey(ref),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function validate$5(obj, path = 'ReferenceDataVersionsRepresentation') {
|
|
93
|
+
const v_error = (() => {
|
|
94
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
95
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
96
|
+
}
|
|
97
|
+
const obj_loadBy = obj.loadBy;
|
|
98
|
+
const path_loadBy = path + '.loadBy';
|
|
99
|
+
if (typeof obj_loadBy !== 'string') {
|
|
100
|
+
return new TypeError('Expected "string" but received "' + typeof obj_loadBy + '" (at "' + path_loadBy + '")');
|
|
101
|
+
}
|
|
102
|
+
const obj_loadDate = obj.loadDate;
|
|
103
|
+
const path_loadDate = path + '.loadDate';
|
|
104
|
+
if (typeof obj_loadDate !== 'string') {
|
|
105
|
+
return new TypeError('Expected "string" but received "' + typeof obj_loadDate + '" (at "' + path_loadDate + '")');
|
|
106
|
+
}
|
|
107
|
+
const obj_loadStatus = obj.loadStatus;
|
|
108
|
+
const path_loadStatus = path + '.loadStatus';
|
|
109
|
+
if (typeof obj_loadStatus !== 'string') {
|
|
110
|
+
return new TypeError('Expected "string" but received "' + typeof obj_loadStatus + '" (at "' + path_loadStatus + '")');
|
|
111
|
+
}
|
|
112
|
+
const obj_publishDate = obj.publishDate;
|
|
113
|
+
const path_publishDate = path + '.publishDate';
|
|
114
|
+
if (typeof obj_publishDate !== 'string') {
|
|
115
|
+
return new TypeError('Expected "string" but received "' + typeof obj_publishDate + '" (at "' + path_publishDate + '")');
|
|
116
|
+
}
|
|
117
|
+
const obj_salesforceRelease = obj.salesforceRelease;
|
|
118
|
+
const path_salesforceRelease = path + '.salesforceRelease';
|
|
119
|
+
if (!ArrayIsArray(obj_salesforceRelease)) {
|
|
120
|
+
return new TypeError('Expected "array" but received "' + typeof obj_salesforceRelease + '" (at "' + path_salesforceRelease + '")');
|
|
121
|
+
}
|
|
122
|
+
for (let i = 0; i < obj_salesforceRelease.length; i++) {
|
|
123
|
+
const obj_salesforceRelease_item = obj_salesforceRelease[i];
|
|
124
|
+
const path_salesforceRelease_item = path_salesforceRelease + '[' + i + ']';
|
|
125
|
+
if (typeof obj_salesforceRelease_item !== 'string') {
|
|
126
|
+
return new TypeError('Expected "string" but received "' + typeof obj_salesforceRelease_item + '" (at "' + path_salesforceRelease_item + '")');
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
const obj_versionNotes = obj.versionNotes;
|
|
130
|
+
const path_versionNotes = path + '.versionNotes';
|
|
131
|
+
if (typeof obj_versionNotes !== 'string') {
|
|
132
|
+
return new TypeError('Expected "string" but received "' + typeof obj_versionNotes + '" (at "' + path_versionNotes + '")');
|
|
133
|
+
}
|
|
134
|
+
const obj_versionNumber = obj.versionNumber;
|
|
135
|
+
const path_versionNumber = path + '.versionNumber';
|
|
136
|
+
if (typeof obj_versionNumber !== 'string') {
|
|
137
|
+
return new TypeError('Expected "string" but received "' + typeof obj_versionNumber + '" (at "' + path_versionNumber + '")');
|
|
138
|
+
}
|
|
139
|
+
const obj_versionTag = obj.versionTag;
|
|
140
|
+
const path_versionTag = path + '.versionTag';
|
|
141
|
+
if (typeof obj_versionTag !== 'string') {
|
|
142
|
+
return new TypeError('Expected "string" but received "' + typeof obj_versionTag + '" (at "' + path_versionTag + '")');
|
|
143
|
+
}
|
|
144
|
+
})();
|
|
145
|
+
return v_error === undefined ? null : v_error;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
function validate$4(obj, path = 'ReferenceDatasetsRepresentation') {
|
|
149
|
+
const v_error = (() => {
|
|
150
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
151
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
152
|
+
}
|
|
153
|
+
const obj_categoryName = obj.categoryName;
|
|
154
|
+
const path_categoryName = path + '.categoryName';
|
|
155
|
+
if (typeof obj_categoryName !== 'string') {
|
|
156
|
+
return new TypeError('Expected "string" but received "' + typeof obj_categoryName + '" (at "' + path_categoryName + '")');
|
|
157
|
+
}
|
|
158
|
+
const obj_dataIdentifier = obj.dataIdentifier;
|
|
159
|
+
const path_dataIdentifier = path + '.dataIdentifier';
|
|
160
|
+
if (typeof obj_dataIdentifier !== 'string') {
|
|
161
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataIdentifier + '" (at "' + path_dataIdentifier + '")');
|
|
162
|
+
}
|
|
163
|
+
const obj_description = obj.description;
|
|
164
|
+
const path_description = path + '.description';
|
|
165
|
+
if (typeof obj_description !== 'string') {
|
|
166
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
167
|
+
}
|
|
168
|
+
const obj_locationRegion = obj.locationRegion;
|
|
169
|
+
const path_locationRegion = path + '.locationRegion';
|
|
170
|
+
if (typeof obj_locationRegion !== 'string') {
|
|
171
|
+
return new TypeError('Expected "string" but received "' + typeof obj_locationRegion + '" (at "' + path_locationRegion + '")');
|
|
172
|
+
}
|
|
173
|
+
const obj_locationSubregion = obj.locationSubregion;
|
|
174
|
+
const path_locationSubregion = path + '.locationSubregion';
|
|
175
|
+
if (typeof obj_locationSubregion !== 'string') {
|
|
176
|
+
return new TypeError('Expected "string" but received "' + typeof obj_locationSubregion + '" (at "' + path_locationSubregion + '")');
|
|
177
|
+
}
|
|
178
|
+
const obj_locationSubsubregion = obj.locationSubsubregion;
|
|
179
|
+
const path_locationSubsubregion = path + '.locationSubsubregion';
|
|
180
|
+
if (typeof obj_locationSubsubregion !== 'string') {
|
|
181
|
+
return new TypeError('Expected "string" but received "' + typeof obj_locationSubsubregion + '" (at "' + path_locationSubsubregion + '")');
|
|
182
|
+
}
|
|
183
|
+
const obj_name = obj.name;
|
|
184
|
+
const path_name = path + '.name';
|
|
185
|
+
if (typeof obj_name !== 'string') {
|
|
186
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
187
|
+
}
|
|
188
|
+
const obj_productDetailUrl = obj.productDetailUrl;
|
|
189
|
+
const path_productDetailUrl = path + '.productDetailUrl';
|
|
190
|
+
if (typeof obj_productDetailUrl !== 'string') {
|
|
191
|
+
return new TypeError('Expected "string" but received "' + typeof obj_productDetailUrl + '" (at "' + path_productDetailUrl + '")');
|
|
192
|
+
}
|
|
193
|
+
const obj_providerName = obj.providerName;
|
|
194
|
+
const path_providerName = path + '.providerName';
|
|
195
|
+
if (typeof obj_providerName !== 'string') {
|
|
196
|
+
return new TypeError('Expected "string" but received "' + typeof obj_providerName + '" (at "' + path_providerName + '")');
|
|
197
|
+
}
|
|
198
|
+
const obj_referenceDataVersionsRepresentations = obj.referenceDataVersionsRepresentations;
|
|
199
|
+
const path_referenceDataVersionsRepresentations = path + '.referenceDataVersionsRepresentations';
|
|
200
|
+
if (!ArrayIsArray(obj_referenceDataVersionsRepresentations)) {
|
|
201
|
+
return new TypeError('Expected "array" but received "' + typeof obj_referenceDataVersionsRepresentations + '" (at "' + path_referenceDataVersionsRepresentations + '")');
|
|
202
|
+
}
|
|
203
|
+
for (let i = 0; i < obj_referenceDataVersionsRepresentations.length; i++) {
|
|
204
|
+
const obj_referenceDataVersionsRepresentations_item = obj_referenceDataVersionsRepresentations[i];
|
|
205
|
+
const path_referenceDataVersionsRepresentations_item = path_referenceDataVersionsRepresentations + '[' + i + ']';
|
|
206
|
+
const referencepath_referenceDataVersionsRepresentations_itemValidationError = validate$5(obj_referenceDataVersionsRepresentations_item, path_referenceDataVersionsRepresentations_item);
|
|
207
|
+
if (referencepath_referenceDataVersionsRepresentations_itemValidationError !== null) {
|
|
208
|
+
let message = 'Object doesn\'t match ReferenceDataVersionsRepresentation (at "' + path_referenceDataVersionsRepresentations_item + '")\n';
|
|
209
|
+
message += referencepath_referenceDataVersionsRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
210
|
+
return new TypeError(message);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
const obj_source = obj.source;
|
|
214
|
+
const path_source = path + '.source';
|
|
215
|
+
if (!ArrayIsArray(obj_source)) {
|
|
216
|
+
return new TypeError('Expected "array" but received "' + typeof obj_source + '" (at "' + path_source + '")');
|
|
217
|
+
}
|
|
218
|
+
for (let i = 0; i < obj_source.length; i++) {
|
|
219
|
+
const obj_source_item = obj_source[i];
|
|
220
|
+
const path_source_item = path_source + '[' + i + ']';
|
|
221
|
+
if (typeof obj_source_item !== 'string') {
|
|
222
|
+
return new TypeError('Expected "string" but received "' + typeof obj_source_item + '" (at "' + path_source_item + '")');
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
const obj_timeframeEndDate = obj.timeframeEndDate;
|
|
226
|
+
const path_timeframeEndDate = path + '.timeframeEndDate';
|
|
227
|
+
if (typeof obj_timeframeEndDate !== 'string') {
|
|
228
|
+
return new TypeError('Expected "string" but received "' + typeof obj_timeframeEndDate + '" (at "' + path_timeframeEndDate + '")');
|
|
229
|
+
}
|
|
230
|
+
const obj_timeframeStartDate = obj.timeframeStartDate;
|
|
231
|
+
const path_timeframeStartDate = path + '.timeframeStartDate';
|
|
232
|
+
if (typeof obj_timeframeStartDate !== 'string') {
|
|
233
|
+
return new TypeError('Expected "string" but received "' + typeof obj_timeframeStartDate + '" (at "' + path_timeframeStartDate + '")');
|
|
234
|
+
}
|
|
235
|
+
const obj_updateFrequency = obj.updateFrequency;
|
|
236
|
+
const path_updateFrequency = path + '.updateFrequency';
|
|
237
|
+
if (typeof obj_updateFrequency !== 'string') {
|
|
238
|
+
return new TypeError('Expected "string" but received "' + typeof obj_updateFrequency + '" (at "' + path_updateFrequency + '")');
|
|
239
|
+
}
|
|
240
|
+
})();
|
|
241
|
+
return v_error === undefined ? null : v_error;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
function validate$3(obj, path = 'ReferenceDataRepresentation') {
|
|
245
|
+
const v_error = (() => {
|
|
246
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
247
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
248
|
+
}
|
|
249
|
+
const obj_entityObject = obj.entityObject;
|
|
250
|
+
const path_entityObject = path + '.entityObject';
|
|
251
|
+
if (typeof obj_entityObject !== 'string') {
|
|
252
|
+
return new TypeError('Expected "string" but received "' + typeof obj_entityObject + '" (at "' + path_entityObject + '")');
|
|
253
|
+
}
|
|
254
|
+
const obj_referenceDatasetsRepresentation = obj.referenceDatasetsRepresentation;
|
|
255
|
+
const path_referenceDatasetsRepresentation = path + '.referenceDatasetsRepresentation';
|
|
256
|
+
if (!ArrayIsArray(obj_referenceDatasetsRepresentation)) {
|
|
257
|
+
return new TypeError('Expected "array" but received "' + typeof obj_referenceDatasetsRepresentation + '" (at "' + path_referenceDatasetsRepresentation + '")');
|
|
258
|
+
}
|
|
259
|
+
for (let i = 0; i < obj_referenceDatasetsRepresentation.length; i++) {
|
|
260
|
+
const obj_referenceDatasetsRepresentation_item = obj_referenceDatasetsRepresentation[i];
|
|
261
|
+
const path_referenceDatasetsRepresentation_item = path_referenceDatasetsRepresentation + '[' + i + ']';
|
|
262
|
+
const referencepath_referenceDatasetsRepresentation_itemValidationError = validate$4(obj_referenceDatasetsRepresentation_item, path_referenceDatasetsRepresentation_item);
|
|
263
|
+
if (referencepath_referenceDatasetsRepresentation_itemValidationError !== null) {
|
|
264
|
+
let message = 'Object doesn\'t match ReferenceDatasetsRepresentation (at "' + path_referenceDatasetsRepresentation_item + '")\n';
|
|
265
|
+
message += referencepath_referenceDatasetsRepresentation_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
266
|
+
return new TypeError(message);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
})();
|
|
270
|
+
return v_error === undefined ? null : v_error;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
const TTL$1 = 10000;
|
|
274
|
+
const VERSION$1 = "74f10d044a1250ae926e510c9ec7ae67";
|
|
275
|
+
function validate$2(obj, path = 'GetDataSetMetaOutputRepresentation') {
|
|
276
|
+
const v_error = (() => {
|
|
277
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
278
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
279
|
+
}
|
|
280
|
+
const obj_referenceDataRepresentation = obj.referenceDataRepresentation;
|
|
281
|
+
const path_referenceDataRepresentation = path + '.referenceDataRepresentation';
|
|
282
|
+
if (!ArrayIsArray(obj_referenceDataRepresentation)) {
|
|
283
|
+
return new TypeError('Expected "array" but received "' + typeof obj_referenceDataRepresentation + '" (at "' + path_referenceDataRepresentation + '")');
|
|
284
|
+
}
|
|
285
|
+
for (let i = 0; i < obj_referenceDataRepresentation.length; i++) {
|
|
286
|
+
const obj_referenceDataRepresentation_item = obj_referenceDataRepresentation[i];
|
|
287
|
+
const path_referenceDataRepresentation_item = path_referenceDataRepresentation + '[' + i + ']';
|
|
288
|
+
const referencepath_referenceDataRepresentation_itemValidationError = validate$3(obj_referenceDataRepresentation_item, path_referenceDataRepresentation_item);
|
|
289
|
+
if (referencepath_referenceDataRepresentation_itemValidationError !== null) {
|
|
290
|
+
let message = 'Object doesn\'t match ReferenceDataRepresentation (at "' + path_referenceDataRepresentation_item + '")\n';
|
|
291
|
+
message += referencepath_referenceDataRepresentation_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
292
|
+
return new TypeError(message);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
})();
|
|
296
|
+
return v_error === undefined ? null : v_error;
|
|
297
|
+
}
|
|
298
|
+
const RepresentationType$1 = 'GetDataSetMetaOutputRepresentation';
|
|
299
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
300
|
+
return input;
|
|
301
|
+
}
|
|
302
|
+
const select$3 = function GetDataSetMetaOutputRepresentationSelect() {
|
|
303
|
+
return {
|
|
304
|
+
kind: 'Fragment',
|
|
305
|
+
version: VERSION$1,
|
|
306
|
+
private: [],
|
|
307
|
+
opaque: true
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
function equals$1(existing, incoming) {
|
|
311
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
312
|
+
return false;
|
|
313
|
+
}
|
|
314
|
+
return true;
|
|
315
|
+
}
|
|
316
|
+
const ingest$1 = function GetDataSetMetaOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
317
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
318
|
+
const validateError = validate$2(input);
|
|
319
|
+
if (validateError !== null) {
|
|
320
|
+
throw validateError;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
const key = path.fullPath;
|
|
324
|
+
const ttlToUse = TTL$1;
|
|
325
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "sustainability-reference-data-v3", VERSION$1, RepresentationType$1, equals$1);
|
|
326
|
+
return createLink(key);
|
|
327
|
+
};
|
|
328
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
329
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
330
|
+
const rootKey = fullPathFactory();
|
|
331
|
+
rootKeySet.set(rootKey, {
|
|
332
|
+
namespace: keyPrefix,
|
|
333
|
+
representationName: RepresentationType$1,
|
|
334
|
+
mergeable: false
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
function select$2(luvio, params) {
|
|
339
|
+
return select$3();
|
|
340
|
+
}
|
|
341
|
+
function keyBuilder$2(luvio, params) {
|
|
342
|
+
return keyPrefix + '::GetDataSetMetaOutputRepresentation:(' + 'entitySection:' + params.urlParams.entitySection + ')';
|
|
343
|
+
}
|
|
344
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
345
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$2(luvio, resourceParams));
|
|
346
|
+
}
|
|
347
|
+
function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
348
|
+
const { body } = response;
|
|
349
|
+
const key = keyBuilder$2(luvio, resourceParams);
|
|
350
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
351
|
+
const snapshot = luvio.storeLookup({
|
|
352
|
+
recordId: key,
|
|
353
|
+
node: select$2(),
|
|
354
|
+
variables: {},
|
|
355
|
+
}, snapshotRefresh);
|
|
356
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
357
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
358
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
deepFreeze(snapshot.data);
|
|
362
|
+
return snapshot;
|
|
363
|
+
}
|
|
364
|
+
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
365
|
+
const key = keyBuilder$2(luvio, params);
|
|
366
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
367
|
+
const storeMetadataParams = {
|
|
368
|
+
ttl: TTL$1,
|
|
369
|
+
namespace: keyPrefix,
|
|
370
|
+
version: VERSION$1,
|
|
371
|
+
representationName: RepresentationType$1
|
|
372
|
+
};
|
|
373
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
374
|
+
return errorSnapshot;
|
|
375
|
+
}
|
|
376
|
+
function createResourceRequest$1(config) {
|
|
377
|
+
const headers = {};
|
|
378
|
+
return {
|
|
379
|
+
baseUri: '/services/data/v66.0',
|
|
380
|
+
basePath: '/connect/sustainability/reference-data/v3/entitySection/' + config.urlParams.entitySection + '',
|
|
381
|
+
method: 'get',
|
|
382
|
+
body: null,
|
|
383
|
+
urlParams: config.urlParams,
|
|
384
|
+
queryParams: {},
|
|
385
|
+
headers,
|
|
386
|
+
priority: 'normal',
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
const adapterName$1 = 'getSCGetDatasetMetaResource';
|
|
391
|
+
const getSCGetDatasetMetaResource_ConfigPropertyMetadata = [
|
|
392
|
+
generateParamConfigMetadata('entitySection', true, 0 /* UrlParameter */, 0 /* String */),
|
|
393
|
+
];
|
|
394
|
+
const getSCGetDatasetMetaResource_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getSCGetDatasetMetaResource_ConfigPropertyMetadata);
|
|
395
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$2(getSCGetDatasetMetaResource_ConfigPropertyMetadata);
|
|
396
|
+
function keyBuilder$1(luvio, config) {
|
|
397
|
+
const resourceParams = createResourceParams$1(config);
|
|
398
|
+
return keyBuilder$2(luvio, resourceParams);
|
|
399
|
+
}
|
|
400
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
401
|
+
const config = {};
|
|
402
|
+
typeCheckConfig$2(untrustedConfig, config, getSCGetDatasetMetaResource_ConfigPropertyMetadata);
|
|
403
|
+
return config;
|
|
404
|
+
}
|
|
405
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
406
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
407
|
+
return null;
|
|
408
|
+
}
|
|
409
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
410
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
411
|
+
}
|
|
412
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
413
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
414
|
+
return null;
|
|
415
|
+
}
|
|
416
|
+
return config;
|
|
417
|
+
}
|
|
418
|
+
function adapterFragment(luvio, config) {
|
|
419
|
+
createResourceParams$1(config);
|
|
420
|
+
return select$2();
|
|
421
|
+
}
|
|
422
|
+
function onFetchResponseSuccess(luvio, config, resourceParams, response) {
|
|
423
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
|
|
424
|
+
config,
|
|
425
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
426
|
+
});
|
|
427
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
428
|
+
}
|
|
429
|
+
function onFetchResponseError(luvio, config, resourceParams, response) {
|
|
430
|
+
const snapshot = ingestError(luvio, resourceParams, response, {
|
|
431
|
+
config,
|
|
432
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
433
|
+
});
|
|
434
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
435
|
+
}
|
|
436
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
437
|
+
const resourceParams = createResourceParams$1(config);
|
|
438
|
+
const request = createResourceRequest$1(resourceParams);
|
|
439
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
440
|
+
.then((response) => {
|
|
441
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
442
|
+
const cache = new StoreKeyMap();
|
|
443
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
444
|
+
return cache;
|
|
445
|
+
});
|
|
446
|
+
}, (response) => {
|
|
447
|
+
return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
|
|
448
|
+
});
|
|
449
|
+
}
|
|
450
|
+
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
451
|
+
return buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
452
|
+
}
|
|
453
|
+
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
454
|
+
const { luvio, config } = context;
|
|
455
|
+
const selector = {
|
|
456
|
+
recordId: keyBuilder$1(luvio, config),
|
|
457
|
+
node: adapterFragment(luvio, config),
|
|
458
|
+
variables: {},
|
|
459
|
+
};
|
|
460
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
461
|
+
config,
|
|
462
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
463
|
+
});
|
|
464
|
+
return cacheSnapshot;
|
|
465
|
+
}
|
|
466
|
+
const getSCGetDatasetMetaResourceAdapterFactory = (luvio) => function sustainabilityReferenceDataV3__getSCGetDatasetMetaResource(untrustedConfig, requestContext) {
|
|
467
|
+
const config = validateAdapterConfig$1(untrustedConfig, getSCGetDatasetMetaResource_ConfigPropertyNames);
|
|
468
|
+
// Invalid or incomplete config
|
|
469
|
+
if (config === null) {
|
|
470
|
+
return null;
|
|
471
|
+
}
|
|
472
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
473
|
+
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
function validate$1(obj, path = 'EntityDatasetVersionDetailRepresentation') {
|
|
477
|
+
const v_error = (() => {
|
|
478
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
479
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
480
|
+
}
|
|
481
|
+
const obj_dataIdentifier = obj.dataIdentifier;
|
|
482
|
+
const path_dataIdentifier = path + '.dataIdentifier';
|
|
483
|
+
if (typeof obj_dataIdentifier !== 'string') {
|
|
484
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataIdentifier + '" (at "' + path_dataIdentifier + '")');
|
|
485
|
+
}
|
|
486
|
+
const obj_recordTypeId = obj.recordTypeId;
|
|
487
|
+
const path_recordTypeId = path + '.recordTypeId';
|
|
488
|
+
if (typeof obj_recordTypeId !== 'string') {
|
|
489
|
+
return new TypeError('Expected "string" but received "' + typeof obj_recordTypeId + '" (at "' + path_recordTypeId + '")');
|
|
490
|
+
}
|
|
491
|
+
const obj_versionNumber = obj.versionNumber;
|
|
492
|
+
const path_versionNumber = path + '.versionNumber';
|
|
493
|
+
if (typeof obj_versionNumber !== 'string') {
|
|
494
|
+
return new TypeError('Expected "string" but received "' + typeof obj_versionNumber + '" (at "' + path_versionNumber + '")');
|
|
495
|
+
}
|
|
496
|
+
})();
|
|
497
|
+
return v_error === undefined ? null : v_error;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
const TTL = 300;
|
|
501
|
+
const VERSION = "3b1b1133dbb5a047be7cf920dd919ef5";
|
|
502
|
+
function validate(obj, path = 'UploadDatasetOutputRepresentation') {
|
|
503
|
+
const v_error = (() => {
|
|
504
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
505
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
506
|
+
}
|
|
507
|
+
const obj_code = obj.code;
|
|
508
|
+
const path_code = path + '.code';
|
|
509
|
+
if (typeof obj_code !== 'number' || (typeof obj_code === 'number' && Math.floor(obj_code) !== obj_code)) {
|
|
510
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_code + '" (at "' + path_code + '")');
|
|
511
|
+
}
|
|
512
|
+
const obj_message = obj.message;
|
|
513
|
+
const path_message = path + '.message';
|
|
514
|
+
if (typeof obj_message !== 'string') {
|
|
515
|
+
return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
|
|
516
|
+
}
|
|
517
|
+
})();
|
|
518
|
+
return v_error === undefined ? null : v_error;
|
|
519
|
+
}
|
|
520
|
+
const RepresentationType = 'UploadDatasetOutputRepresentation';
|
|
521
|
+
function keyBuilder(luvio, config) {
|
|
522
|
+
return keyPrefix + '::' + RepresentationType + ':' + config.message;
|
|
523
|
+
}
|
|
524
|
+
function keyBuilderFromType(luvio, object) {
|
|
525
|
+
const keyParams = {
|
|
526
|
+
message: object.message
|
|
527
|
+
};
|
|
528
|
+
return keyBuilder(luvio, keyParams);
|
|
529
|
+
}
|
|
530
|
+
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
531
|
+
return input;
|
|
532
|
+
}
|
|
533
|
+
const select$1 = function UploadDatasetOutputRepresentationSelect() {
|
|
534
|
+
return {
|
|
535
|
+
kind: 'Fragment',
|
|
536
|
+
version: VERSION,
|
|
537
|
+
private: [],
|
|
538
|
+
opaque: true
|
|
539
|
+
};
|
|
540
|
+
};
|
|
541
|
+
function equals(existing, incoming) {
|
|
542
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
543
|
+
return false;
|
|
544
|
+
}
|
|
545
|
+
return true;
|
|
546
|
+
}
|
|
547
|
+
const ingest = function UploadDatasetOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
548
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
549
|
+
const validateError = validate(input);
|
|
550
|
+
if (validateError !== null) {
|
|
551
|
+
throw validateError;
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
const key = keyBuilderFromType(luvio, input);
|
|
555
|
+
const ttlToUse = TTL;
|
|
556
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "sustainability-reference-data-v3", VERSION, RepresentationType, equals);
|
|
557
|
+
return createLink(key);
|
|
558
|
+
};
|
|
559
|
+
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
560
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
561
|
+
const rootKey = keyBuilderFromType(luvio, input);
|
|
562
|
+
rootKeySet.set(rootKey, {
|
|
563
|
+
namespace: keyPrefix,
|
|
564
|
+
representationName: RepresentationType,
|
|
565
|
+
mergeable: false
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
function select(luvio, params) {
|
|
570
|
+
return select$1();
|
|
571
|
+
}
|
|
572
|
+
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
573
|
+
getTypeCacheKeys(storeKeyMap, luvio, response);
|
|
574
|
+
}
|
|
575
|
+
function ingestSuccess(luvio, resourceParams, response) {
|
|
576
|
+
const { body } = response;
|
|
577
|
+
const key = keyBuilderFromType(luvio, body);
|
|
578
|
+
luvio.storeIngest(key, ingest, body);
|
|
579
|
+
const snapshot = luvio.storeLookup({
|
|
580
|
+
recordId: key,
|
|
581
|
+
node: select(),
|
|
582
|
+
variables: {},
|
|
583
|
+
});
|
|
584
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
585
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
586
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
deepFreeze(snapshot.data);
|
|
590
|
+
return snapshot;
|
|
591
|
+
}
|
|
592
|
+
function createResourceRequest(config) {
|
|
593
|
+
const headers = {};
|
|
594
|
+
return {
|
|
595
|
+
baseUri: '/services/data/v66.0',
|
|
596
|
+
basePath: '/connect/sustainability/reference-data/v3/entityVersion/upload',
|
|
597
|
+
method: 'post',
|
|
598
|
+
body: config.body,
|
|
599
|
+
urlParams: {},
|
|
600
|
+
queryParams: {},
|
|
601
|
+
headers,
|
|
602
|
+
priority: 'normal',
|
|
603
|
+
};
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
const adapterName = 'postUploadDataset';
|
|
607
|
+
const postUploadDataset_ConfigPropertyMetadata = [
|
|
608
|
+
generateParamConfigMetadata('entityDatasetVersionDetailRepresentations', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
609
|
+
];
|
|
610
|
+
const postUploadDataset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postUploadDataset_ConfigPropertyMetadata);
|
|
611
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$2(postUploadDataset_ConfigPropertyMetadata);
|
|
612
|
+
function typeCheckConfig(untrustedConfig) {
|
|
613
|
+
const config = {};
|
|
614
|
+
const untrustedConfig_entityDatasetVersionDetailRepresentations = untrustedConfig.entityDatasetVersionDetailRepresentations;
|
|
615
|
+
if (ArrayIsArray$1(untrustedConfig_entityDatasetVersionDetailRepresentations)) {
|
|
616
|
+
const untrustedConfig_entityDatasetVersionDetailRepresentations_array = [];
|
|
617
|
+
for (let i = 0, arrayLength = untrustedConfig_entityDatasetVersionDetailRepresentations.length; i < arrayLength; i++) {
|
|
618
|
+
const untrustedConfig_entityDatasetVersionDetailRepresentations_item = untrustedConfig_entityDatasetVersionDetailRepresentations[i];
|
|
619
|
+
const referenceEntityDatasetVersionDetailRepresentationValidationError = validate$1(untrustedConfig_entityDatasetVersionDetailRepresentations_item);
|
|
620
|
+
if (referenceEntityDatasetVersionDetailRepresentationValidationError === null) {
|
|
621
|
+
untrustedConfig_entityDatasetVersionDetailRepresentations_array.push(untrustedConfig_entityDatasetVersionDetailRepresentations_item);
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
config.entityDatasetVersionDetailRepresentations = untrustedConfig_entityDatasetVersionDetailRepresentations_array;
|
|
625
|
+
}
|
|
626
|
+
return config;
|
|
627
|
+
}
|
|
628
|
+
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
629
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
630
|
+
return null;
|
|
631
|
+
}
|
|
632
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
633
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
634
|
+
}
|
|
635
|
+
const config = typeCheckConfig(untrustedConfig);
|
|
636
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
637
|
+
return null;
|
|
638
|
+
}
|
|
639
|
+
return config;
|
|
640
|
+
}
|
|
641
|
+
function buildNetworkSnapshot(luvio, config, options) {
|
|
642
|
+
const resourceParams = createResourceParams(config);
|
|
643
|
+
const request = createResourceRequest(resourceParams);
|
|
644
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
645
|
+
.then((response) => {
|
|
646
|
+
return luvio.handleSuccessResponse(() => {
|
|
647
|
+
const snapshot = ingestSuccess(luvio, resourceParams, response);
|
|
648
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
649
|
+
}, () => {
|
|
650
|
+
const cache = new StoreKeyMap();
|
|
651
|
+
getResponseCacheKeys(cache, luvio, resourceParams, response.body);
|
|
652
|
+
return cache;
|
|
653
|
+
});
|
|
654
|
+
}, (response) => {
|
|
655
|
+
deepFreeze(response);
|
|
656
|
+
throw response;
|
|
657
|
+
});
|
|
658
|
+
}
|
|
659
|
+
const postUploadDatasetAdapterFactory = (luvio) => {
|
|
660
|
+
return function postUploadDataset(untrustedConfig) {
|
|
661
|
+
const config = validateAdapterConfig(untrustedConfig, postUploadDataset_ConfigPropertyNames);
|
|
662
|
+
// Invalid or incomplete config
|
|
663
|
+
if (config === null) {
|
|
664
|
+
throw new Error('Invalid config for "postUploadDataset"');
|
|
665
|
+
}
|
|
666
|
+
return buildNetworkSnapshot(luvio, config);
|
|
667
|
+
};
|
|
668
|
+
};
|
|
669
|
+
|
|
670
|
+
let getSCGetDatasetMetaResource;
|
|
671
|
+
let postUploadDataset;
|
|
672
|
+
// Imperative GET Adapters
|
|
673
|
+
let getSCGetDatasetMetaResource_imperative;
|
|
674
|
+
// Adapter Metadata
|
|
675
|
+
const getSCGetDatasetMetaResourceMetadata = {
|
|
676
|
+
apiFamily: 'sustainabilityreference-data-v3',
|
|
677
|
+
name: 'getSCGetDatasetMetaResource',
|
|
678
|
+
ttl: 10000,
|
|
679
|
+
};
|
|
680
|
+
// Notify Update Available
|
|
681
|
+
function bindExportsTo(luvio) {
|
|
682
|
+
// LDS Adapters
|
|
683
|
+
const getSCGetDatasetMetaResource_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSCGetDatasetMetaResource', getSCGetDatasetMetaResourceAdapterFactory), getSCGetDatasetMetaResourceMetadata);
|
|
684
|
+
function unwrapSnapshotData(factory) {
|
|
685
|
+
const adapter = factory(luvio);
|
|
686
|
+
return (config) => adapter(config).then((snapshot) => snapshot.data);
|
|
687
|
+
}
|
|
688
|
+
return {
|
|
689
|
+
getSCGetDatasetMetaResource: createWireAdapterConstructor(luvio, getSCGetDatasetMetaResource_ldsAdapter, getSCGetDatasetMetaResourceMetadata),
|
|
690
|
+
postUploadDataset: unwrapSnapshotData(postUploadDatasetAdapterFactory),
|
|
691
|
+
// Imperative GET Adapters
|
|
692
|
+
getSCGetDatasetMetaResource_imperative: createImperativeAdapter(luvio, getSCGetDatasetMetaResource_ldsAdapter, getSCGetDatasetMetaResourceMetadata),
|
|
693
|
+
// Notify Update Availables
|
|
694
|
+
};
|
|
695
|
+
}
|
|
696
|
+
withDefaultLuvio((luvio) => {
|
|
697
|
+
({ getSCGetDatasetMetaResource, postUploadDataset, getSCGetDatasetMetaResource_imperative } =
|
|
698
|
+
bindExportsTo(luvio));
|
|
699
|
+
});
|
|
700
|
+
|
|
701
|
+
export { getSCGetDatasetMetaResource, getSCGetDatasetMetaResource_imperative, postUploadDataset };
|
|
702
|
+
// version: 0.1.0-dev1-c978a7b010
|