@salesforce/lds-adapters-industries-energy-utilities 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-energy-utilities.js +475 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/getProgramApplications.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectEuProgramApplications.d.ts +24 -0
- package/dist/es/es2018/types/src/generated/types/IndividualApplicationObjectOutputRepresentation.d.ts +92 -0
- package/dist/es/es2018/types/src/generated/types/IndividualApplicationStatusOutputRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/ProductAttributeInputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/ProductAttributeListInputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/ProgramIndividualApplicationOutputRepresentation.d.ts +37 -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 +510 -0
- package/src/raml/api.raml +199 -0
- package/src/raml/luvio.raml +26 -0
package/LICENSE.txt
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
Terms of Use
|
|
2
|
+
|
|
3
|
+
Copyright 2022 Salesforce, Inc. All rights reserved.
|
|
4
|
+
|
|
5
|
+
These Terms of Use govern the download, installation, and/or use of this
|
|
6
|
+
software provided by Salesforce, Inc. ("Salesforce") (the "Software"), were
|
|
7
|
+
last updated on April 15, 2022, and constitute a legally binding
|
|
8
|
+
agreement between you and Salesforce. If you do not agree to these Terms of
|
|
9
|
+
Use, do not install or use the Software.
|
|
10
|
+
|
|
11
|
+
Salesforce grants you a worldwide, non-exclusive, no-charge, royalty-free
|
|
12
|
+
copyright license to reproduce, prepare derivative works of, publicly
|
|
13
|
+
display, publicly perform, sublicense, and distribute the Software and
|
|
14
|
+
derivative works subject to these Terms. These Terms shall be included in
|
|
15
|
+
all copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
Subject to the limited rights expressly granted hereunder, Salesforce
|
|
18
|
+
reserves all rights, title, and interest in and to all intellectual
|
|
19
|
+
property subsisting in the Software. No rights are granted to you hereunder
|
|
20
|
+
other than as expressly set forth herein. Users residing in countries on
|
|
21
|
+
the United States Office of Foreign Assets Control sanction list, or which
|
|
22
|
+
are otherwise subject to a US export embargo, may not use the Software.
|
|
23
|
+
|
|
24
|
+
Implementation of the Software may require development work, for which you
|
|
25
|
+
are responsible. The Software may contain bugs, errors and
|
|
26
|
+
incompatibilities and is made available on an AS IS basis without support,
|
|
27
|
+
updates, or service level commitments.
|
|
28
|
+
|
|
29
|
+
Salesforce reserves the right at any time to modify, suspend, or
|
|
30
|
+
discontinue, the Software (or any part thereof) with or without notice. You
|
|
31
|
+
agree that Salesforce shall not be liable to you or to any third party for
|
|
32
|
+
any modification, suspension, or discontinuance.
|
|
33
|
+
|
|
34
|
+
You agree to defend Salesforce against any claim, demand, suit or
|
|
35
|
+
proceeding made or brought against Salesforce by a third party arising out
|
|
36
|
+
of or accruing from (a) your use of the Software, and (b) any application
|
|
37
|
+
you develop with the Software that infringes any copyright, trademark,
|
|
38
|
+
trade secret, trade dress, patent, or other intellectual property right of
|
|
39
|
+
any person or defames any person or violates their rights of publicity or
|
|
40
|
+
privacy (each a "Claim Against Salesforce"), and will indemnify Salesforce
|
|
41
|
+
from any damages, attorney fees, and costs finally awarded against
|
|
42
|
+
Salesforce as a result of, or for any amounts paid by Salesforce under a
|
|
43
|
+
settlement approved by you in writing of, a Claim Against Salesforce,
|
|
44
|
+
provided Salesforce (x) promptly gives you written notice of the Claim
|
|
45
|
+
Against Salesforce, (y) gives you sole control of the defense and
|
|
46
|
+
settlement of the Claim Against Salesforce (except that you may not settle
|
|
47
|
+
any Claim Against Salesforce unless it unconditionally releases Salesforce
|
|
48
|
+
of all liability), and (z) gives you all reasonable assistance, at your
|
|
49
|
+
expense.
|
|
50
|
+
|
|
51
|
+
WITHOUT LIMITING THE GENERALITY OF THE FOREGOING, THE SOFTWARE IS NOT
|
|
52
|
+
SUPPORTED AND IS PROVIDED "AS IS," WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
53
|
+
IMPLIED. IN NO EVENT SHALL SALESFORCE HAVE ANY LIABILITY FOR ANY DAMAGES,
|
|
54
|
+
INCLUDING, BUT NOT LIMITED TO, DIRECT, INDIRECT, SPECIAL, INCIDENTAL,
|
|
55
|
+
PUNITIVE, OR CONSEQUENTIAL DAMAGES, OR DAMAGES BASED ON LOST PROFITS, DATA,
|
|
56
|
+
OR USE, IN CONNECTION WITH THE SOFTWARE, HOWEVER CAUSED AND WHETHER IN
|
|
57
|
+
CONTRACT, TORT, OR UNDER ANY OTHER THEORY OF LIABILITY, WHETHER OR NOT YOU
|
|
58
|
+
HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
|
59
|
+
|
|
60
|
+
These Terms of Use shall be governed exclusively by the internal laws of
|
|
61
|
+
the State of California, without regard to its conflicts of laws
|
|
62
|
+
rules. Each party hereby consents to the exclusive jurisdiction of the
|
|
63
|
+
state and federal courts located in San Francisco County, California to
|
|
64
|
+
adjudicate any dispute arising out of or relating to these Terms of Use and
|
|
65
|
+
the download, installation, and/or use of the Software. Except as expressly
|
|
66
|
+
stated herein, these Terms of Use constitute the entire agreement between
|
|
67
|
+
the parties, and supersede all prior and contemporaneous agreements,
|
|
68
|
+
proposals, or representations, written or oral, concerning their subject
|
|
69
|
+
matter. No modification, amendment, or waiver of any provision of these
|
|
70
|
+
Terms of Use shall be effective unless it is by an update to these Terms of
|
|
71
|
+
Use that Salesforce makes available, or is in writing and signed by the
|
|
72
|
+
party against whom the modification, amendment, or waiver is to be
|
|
73
|
+
asserted.
|
|
74
|
+
|
|
75
|
+
Data Privacy: Salesforce may collect, process, and store device,
|
|
76
|
+
system, and other information related to your use of the Software. This
|
|
77
|
+
information includes, but is not limited to, IP address, user metrics, and
|
|
78
|
+
other data ("Usage Data"). Salesforce may use Usage Data for analytics,
|
|
79
|
+
product development, and marketing purposes. You acknowledge that files
|
|
80
|
+
generated in conjunction with the Software may contain sensitive or
|
|
81
|
+
confidential data, and you are solely responsible for anonymizing and
|
|
82
|
+
protecting such data.
|
|
@@ -0,0 +1,475 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2022, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1, typeCheckConfig as typeCheckConfig$1, StoreKeyMap, createResourceParams as createResourceParams$1 } from '@luvio/engine';
|
|
8
|
+
|
|
9
|
+
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
|
+
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
11
|
+
const { isArray: ArrayIsArray$1 } = Array;
|
|
12
|
+
/**
|
|
13
|
+
* Validates an adapter config is well-formed.
|
|
14
|
+
* @param config The config to validate.
|
|
15
|
+
* @param adapter The adapter validation configuration.
|
|
16
|
+
* @param oneOf The keys the config must contain at least one of.
|
|
17
|
+
* @throws A TypeError if config doesn't satisfy the adapter's config validation.
|
|
18
|
+
*/
|
|
19
|
+
function validateConfig(config, adapter, oneOf) {
|
|
20
|
+
const { displayName } = adapter;
|
|
21
|
+
const { required, optional, unsupported } = adapter.parameters;
|
|
22
|
+
if (config === undefined ||
|
|
23
|
+
required.every(req => ObjectPrototypeHasOwnProperty.call(config, req)) === false) {
|
|
24
|
+
throw new TypeError(`adapter ${displayName} configuration must specify ${required.sort().join(', ')}`);
|
|
25
|
+
}
|
|
26
|
+
if (oneOf && oneOf.some(req => ObjectPrototypeHasOwnProperty.call(config, req)) === false) {
|
|
27
|
+
throw new TypeError(`adapter ${displayName} configuration must specify one of ${oneOf.sort().join(', ')}`);
|
|
28
|
+
}
|
|
29
|
+
if (unsupported !== undefined &&
|
|
30
|
+
unsupported.some(req => ObjectPrototypeHasOwnProperty.call(config, req))) {
|
|
31
|
+
throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
|
|
32
|
+
}
|
|
33
|
+
const supported = required.concat(optional);
|
|
34
|
+
if (ObjectKeys(config).some(key => !supported.includes(key))) {
|
|
35
|
+
throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function untrustedIsObject(untrusted) {
|
|
39
|
+
return typeof untrusted === 'object' && untrusted !== null && ArrayIsArray$1(untrusted) === false;
|
|
40
|
+
}
|
|
41
|
+
function areRequiredParametersPresent(config, configPropertyNames) {
|
|
42
|
+
return configPropertyNames.parameters.required.every(req => req in config);
|
|
43
|
+
}
|
|
44
|
+
const snapshotRefreshOptions = {
|
|
45
|
+
overrides: {
|
|
46
|
+
headers: {
|
|
47
|
+
'Cache-Control': 'no-cache',
|
|
48
|
+
},
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
|
|
52
|
+
return {
|
|
53
|
+
name,
|
|
54
|
+
required,
|
|
55
|
+
resourceType,
|
|
56
|
+
typeCheckShape,
|
|
57
|
+
isArrayShape,
|
|
58
|
+
coerceFn,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
62
|
+
const required = paramsMeta.filter(p => p.required).map(p => p.name);
|
|
63
|
+
const optional = paramsMeta.filter(p => !p.required).map(p => p.name);
|
|
64
|
+
return {
|
|
65
|
+
displayName,
|
|
66
|
+
parameters: {
|
|
67
|
+
required,
|
|
68
|
+
optional,
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
const keyPrefix = 'energy-utilities';
|
|
73
|
+
|
|
74
|
+
const { isArray: ArrayIsArray } = Array;
|
|
75
|
+
const { stringify: JSONStringify } = JSON;
|
|
76
|
+
function createLink(ref) {
|
|
77
|
+
return {
|
|
78
|
+
__ref: serializeStructuredKey(ref),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function validate$2(obj, path = 'IndividualApplicationStatusOutputRepresentation') {
|
|
83
|
+
const v_error = (() => {
|
|
84
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
85
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
86
|
+
}
|
|
87
|
+
const obj_status = obj.status;
|
|
88
|
+
const path_status = path + '.status';
|
|
89
|
+
if (typeof obj_status !== 'string') {
|
|
90
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
91
|
+
}
|
|
92
|
+
const obj_value = obj.value;
|
|
93
|
+
const path_value = path + '.value';
|
|
94
|
+
if (typeof obj_value !== 'number' || (typeof obj_value === 'number' && Math.floor(obj_value) !== obj_value)) {
|
|
95
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
96
|
+
}
|
|
97
|
+
})();
|
|
98
|
+
return v_error === undefined ? null : v_error;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function validate$1(obj, path = 'IndividualApplicationObjectOutputRepresentation') {
|
|
102
|
+
const v_error = (() => {
|
|
103
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
104
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
105
|
+
}
|
|
106
|
+
if (obj.accountId !== undefined) {
|
|
107
|
+
const obj_accountId = obj.accountId;
|
|
108
|
+
const path_accountId = path + '.accountId';
|
|
109
|
+
if (typeof obj_accountId !== 'string') {
|
|
110
|
+
return new TypeError('Expected "string" but received "' + typeof obj_accountId + '" (at "' + path_accountId + '")');
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
if (obj.accountName !== undefined) {
|
|
114
|
+
const obj_accountName = obj.accountName;
|
|
115
|
+
const path_accountName = path + '.accountName';
|
|
116
|
+
if (typeof obj_accountName !== 'string') {
|
|
117
|
+
return new TypeError('Expected "string" but received "' + typeof obj_accountName + '" (at "' + path_accountName + '")');
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
if (obj.applicationName !== undefined) {
|
|
121
|
+
const obj_applicationName = obj.applicationName;
|
|
122
|
+
const path_applicationName = path + '.applicationName';
|
|
123
|
+
if (typeof obj_applicationName !== 'string') {
|
|
124
|
+
return new TypeError('Expected "string" but received "' + typeof obj_applicationName + '" (at "' + path_applicationName + '")');
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
if (obj.applicationType !== undefined) {
|
|
128
|
+
const obj_applicationType = obj.applicationType;
|
|
129
|
+
const path_applicationType = path + '.applicationType';
|
|
130
|
+
if (typeof obj_applicationType !== 'string') {
|
|
131
|
+
return new TypeError('Expected "string" but received "' + typeof obj_applicationType + '" (at "' + path_applicationType + '")');
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
if (obj.appliedDate !== undefined) {
|
|
135
|
+
const obj_appliedDate = obj.appliedDate;
|
|
136
|
+
const path_appliedDate = path + '.appliedDate';
|
|
137
|
+
if (typeof obj_appliedDate !== 'string') {
|
|
138
|
+
return new TypeError('Expected "string" but received "' + typeof obj_appliedDate + '" (at "' + path_appliedDate + '")');
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
if (obj.approvedDate !== undefined) {
|
|
142
|
+
const obj_approvedDate = obj.approvedDate;
|
|
143
|
+
const path_approvedDate = path + '.approvedDate';
|
|
144
|
+
if (typeof obj_approvedDate !== 'string') {
|
|
145
|
+
return new TypeError('Expected "string" but received "' + typeof obj_approvedDate + '" (at "' + path_approvedDate + '")');
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
if (obj.category !== undefined) {
|
|
149
|
+
const obj_category = obj.category;
|
|
150
|
+
const path_category = path + '.category';
|
|
151
|
+
if (typeof obj_category !== 'string') {
|
|
152
|
+
return new TypeError('Expected "string" but received "' + typeof obj_category + '" (at "' + path_category + '")');
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
if (obj.description !== undefined) {
|
|
156
|
+
const obj_description = obj.description;
|
|
157
|
+
const path_description = path + '.description';
|
|
158
|
+
if (typeof obj_description !== 'string') {
|
|
159
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
if (obj.externalProject !== undefined) {
|
|
163
|
+
const obj_externalProject = obj.externalProject;
|
|
164
|
+
const path_externalProject = path + '.externalProject';
|
|
165
|
+
if (typeof obj_externalProject !== 'string') {
|
|
166
|
+
return new TypeError('Expected "string" but received "' + typeof obj_externalProject + '" (at "' + path_externalProject + '")');
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
const obj_id = obj.id;
|
|
170
|
+
const path_id = path + '.id';
|
|
171
|
+
if (typeof obj_id !== 'string') {
|
|
172
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
173
|
+
}
|
|
174
|
+
if (obj.isSubmittedByThirdParty !== undefined) {
|
|
175
|
+
const obj_isSubmittedByThirdParty = obj.isSubmittedByThirdParty;
|
|
176
|
+
const path_isSubmittedByThirdParty = path + '.isSubmittedByThirdParty';
|
|
177
|
+
if (typeof obj_isSubmittedByThirdParty !== 'boolean') {
|
|
178
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSubmittedByThirdParty + '" (at "' + path_isSubmittedByThirdParty + '")');
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
if (obj.locationId !== undefined) {
|
|
182
|
+
const obj_locationId = obj.locationId;
|
|
183
|
+
const path_locationId = path + '.locationId';
|
|
184
|
+
if (typeof obj_locationId !== 'string') {
|
|
185
|
+
return new TypeError('Expected "string" but received "' + typeof obj_locationId + '" (at "' + path_locationId + '")');
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
if (obj.parentApplicationId !== undefined) {
|
|
189
|
+
const obj_parentApplicationId = obj.parentApplicationId;
|
|
190
|
+
const path_parentApplicationId = path + '.parentApplicationId';
|
|
191
|
+
if (typeof obj_parentApplicationId !== 'string') {
|
|
192
|
+
return new TypeError('Expected "string" but received "' + typeof obj_parentApplicationId + '" (at "' + path_parentApplicationId + '")');
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
if (obj.programId !== undefined) {
|
|
196
|
+
const obj_programId = obj.programId;
|
|
197
|
+
const path_programId = path + '.programId';
|
|
198
|
+
if (typeof obj_programId !== 'string') {
|
|
199
|
+
return new TypeError('Expected "string" but received "' + typeof obj_programId + '" (at "' + path_programId + '")');
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
if (obj.rejectionReason !== undefined) {
|
|
203
|
+
const obj_rejectionReason = obj.rejectionReason;
|
|
204
|
+
const path_rejectionReason = path + '.rejectionReason';
|
|
205
|
+
if (typeof obj_rejectionReason !== 'string') {
|
|
206
|
+
return new TypeError('Expected "string" but received "' + typeof obj_rejectionReason + '" (at "' + path_rejectionReason + '")');
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
if (obj.status !== undefined) {
|
|
210
|
+
const obj_status = obj.status;
|
|
211
|
+
const path_status = path + '.status';
|
|
212
|
+
if (typeof obj_status !== 'string') {
|
|
213
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
if (obj.submittedByAccountId !== undefined) {
|
|
217
|
+
const obj_submittedByAccountId = obj.submittedByAccountId;
|
|
218
|
+
const path_submittedByAccountId = path + '.submittedByAccountId';
|
|
219
|
+
if (typeof obj_submittedByAccountId !== 'string') {
|
|
220
|
+
return new TypeError('Expected "string" but received "' + typeof obj_submittedByAccountId + '" (at "' + path_submittedByAccountId + '")');
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
if (obj.submittedByContactId !== undefined) {
|
|
224
|
+
const obj_submittedByContactId = obj.submittedByContactId;
|
|
225
|
+
const path_submittedByContactId = path + '.submittedByContactId';
|
|
226
|
+
if (typeof obj_submittedByContactId !== 'string') {
|
|
227
|
+
return new TypeError('Expected "string" but received "' + typeof obj_submittedByContactId + '" (at "' + path_submittedByContactId + '")');
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
if (obj.wasReturned !== undefined) {
|
|
231
|
+
const obj_wasReturned = obj.wasReturned;
|
|
232
|
+
const path_wasReturned = path + '.wasReturned';
|
|
233
|
+
if (typeof obj_wasReturned !== 'boolean') {
|
|
234
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_wasReturned + '" (at "' + path_wasReturned + '")');
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
})();
|
|
238
|
+
return v_error === undefined ? null : v_error;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
const TTL = 10000;
|
|
242
|
+
const VERSION = "ec383a973177c0746f1280ceece96bf7";
|
|
243
|
+
function validate(obj, path = 'ProgramIndividualApplicationOutputRepresentation') {
|
|
244
|
+
const v_error = (() => {
|
|
245
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
246
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
247
|
+
}
|
|
248
|
+
if (obj.aggregateByStatus !== undefined) {
|
|
249
|
+
const obj_aggregateByStatus = obj.aggregateByStatus;
|
|
250
|
+
const path_aggregateByStatus = path + '.aggregateByStatus';
|
|
251
|
+
if (!ArrayIsArray(obj_aggregateByStatus)) {
|
|
252
|
+
return new TypeError('Expected "array" but received "' + typeof obj_aggregateByStatus + '" (at "' + path_aggregateByStatus + '")');
|
|
253
|
+
}
|
|
254
|
+
for (let i = 0; i < obj_aggregateByStatus.length; i++) {
|
|
255
|
+
const obj_aggregateByStatus_item = obj_aggregateByStatus[i];
|
|
256
|
+
const path_aggregateByStatus_item = path_aggregateByStatus + '[' + i + ']';
|
|
257
|
+
const referencepath_aggregateByStatus_itemValidationError = validate$2(obj_aggregateByStatus_item, path_aggregateByStatus_item);
|
|
258
|
+
if (referencepath_aggregateByStatus_itemValidationError !== null) {
|
|
259
|
+
let message = 'Object doesn\'t match IndividualApplicationStatusOutputRepresentation (at "' + path_aggregateByStatus_item + '")\n';
|
|
260
|
+
message += referencepath_aggregateByStatus_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
261
|
+
return new TypeError(message);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
const obj_applications = obj.applications;
|
|
266
|
+
const path_applications = path + '.applications';
|
|
267
|
+
if (!ArrayIsArray(obj_applications)) {
|
|
268
|
+
return new TypeError('Expected "array" but received "' + typeof obj_applications + '" (at "' + path_applications + '")');
|
|
269
|
+
}
|
|
270
|
+
for (let i = 0; i < obj_applications.length; i++) {
|
|
271
|
+
const obj_applications_item = obj_applications[i];
|
|
272
|
+
const path_applications_item = path_applications + '[' + i + ']';
|
|
273
|
+
const referencepath_applications_itemValidationError = validate$1(obj_applications_item, path_applications_item);
|
|
274
|
+
if (referencepath_applications_itemValidationError !== null) {
|
|
275
|
+
let message = 'Object doesn\'t match IndividualApplicationObjectOutputRepresentation (at "' + path_applications_item + '")\n';
|
|
276
|
+
message += referencepath_applications_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
277
|
+
return new TypeError(message);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
const obj_totalCount = obj.totalCount;
|
|
281
|
+
const path_totalCount = path + '.totalCount';
|
|
282
|
+
if (typeof obj_totalCount !== 'number' || (typeof obj_totalCount === 'number' && Math.floor(obj_totalCount) !== obj_totalCount)) {
|
|
283
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_totalCount + '" (at "' + path_totalCount + '")');
|
|
284
|
+
}
|
|
285
|
+
})();
|
|
286
|
+
return v_error === undefined ? null : v_error;
|
|
287
|
+
}
|
|
288
|
+
const RepresentationType = 'ProgramIndividualApplicationOutputRepresentation';
|
|
289
|
+
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
290
|
+
return input;
|
|
291
|
+
}
|
|
292
|
+
const select$1 = function ProgramIndividualApplicationOutputRepresentationSelect() {
|
|
293
|
+
return {
|
|
294
|
+
kind: 'Fragment',
|
|
295
|
+
version: VERSION,
|
|
296
|
+
private: [],
|
|
297
|
+
opaque: true
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
function equals(existing, incoming) {
|
|
301
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
302
|
+
return false;
|
|
303
|
+
}
|
|
304
|
+
return true;
|
|
305
|
+
}
|
|
306
|
+
const ingest = function ProgramIndividualApplicationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
307
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
308
|
+
const validateError = validate(input);
|
|
309
|
+
if (validateError !== null) {
|
|
310
|
+
throw validateError;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
const key = path.fullPath;
|
|
314
|
+
const ttlToUse = TTL;
|
|
315
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "energy-utilities", VERSION, RepresentationType, equals);
|
|
316
|
+
return createLink(key);
|
|
317
|
+
};
|
|
318
|
+
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
319
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
320
|
+
const rootKey = fullPathFactory();
|
|
321
|
+
rootKeySet.set(rootKey, {
|
|
322
|
+
namespace: keyPrefix,
|
|
323
|
+
representationName: RepresentationType,
|
|
324
|
+
mergeable: false
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
function select(luvio, params) {
|
|
329
|
+
return select$1();
|
|
330
|
+
}
|
|
331
|
+
function keyBuilder$1(luvio, params) {
|
|
332
|
+
return keyPrefix + '::ProgramIndividualApplicationOutputRepresentation:(' + 'accountId:' + params.queryParams.accountId + ',' + 'enrolleeType:' + params.queryParams.enrolleeType + ',' + 'locationId:' + params.queryParams.locationId + ',' + 'offset:' + params.queryParams.offset + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'programId:' + params.queryParams.programId + ',' + 'shouldAggregateByStatus:' + params.queryParams.shouldAggregateByStatus + ',' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'status:' + params.queryParams.status + ')';
|
|
333
|
+
}
|
|
334
|
+
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
335
|
+
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
336
|
+
}
|
|
337
|
+
function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
338
|
+
const { body } = response;
|
|
339
|
+
const key = keyBuilder$1(luvio, resourceParams);
|
|
340
|
+
luvio.storeIngest(key, ingest, body);
|
|
341
|
+
const snapshot = luvio.storeLookup({
|
|
342
|
+
recordId: key,
|
|
343
|
+
node: select(),
|
|
344
|
+
variables: {},
|
|
345
|
+
}, snapshotRefresh);
|
|
346
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
347
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
348
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
deepFreeze(snapshot.data);
|
|
352
|
+
return snapshot;
|
|
353
|
+
}
|
|
354
|
+
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
355
|
+
const key = keyBuilder$1(luvio, params);
|
|
356
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
357
|
+
const storeMetadataParams = {
|
|
358
|
+
ttl: TTL,
|
|
359
|
+
namespace: keyPrefix,
|
|
360
|
+
version: VERSION,
|
|
361
|
+
representationName: RepresentationType
|
|
362
|
+
};
|
|
363
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
364
|
+
return errorSnapshot;
|
|
365
|
+
}
|
|
366
|
+
function createResourceRequest(config) {
|
|
367
|
+
const headers = {};
|
|
368
|
+
return {
|
|
369
|
+
baseUri: '/services/data/v66.0',
|
|
370
|
+
basePath: '/connect/eu-program/applications',
|
|
371
|
+
method: 'get',
|
|
372
|
+
body: null,
|
|
373
|
+
urlParams: {},
|
|
374
|
+
queryParams: config.queryParams,
|
|
375
|
+
headers,
|
|
376
|
+
priority: 'normal',
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
const adapterName = 'getProgramApplications';
|
|
381
|
+
const getProgramApplications_ConfigPropertyMetadata = [
|
|
382
|
+
generateParamConfigMetadata('accountId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
383
|
+
generateParamConfigMetadata('enrolleeType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
384
|
+
generateParamConfigMetadata('locationId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
385
|
+
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
386
|
+
generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
387
|
+
generateParamConfigMetadata('programId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
388
|
+
generateParamConfigMetadata('shouldAggregateByStatus', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
389
|
+
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
390
|
+
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
391
|
+
generateParamConfigMetadata('status', false, 1 /* QueryParameter */, 0 /* String */),
|
|
392
|
+
];
|
|
393
|
+
const getProgramApplications_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getProgramApplications_ConfigPropertyMetadata);
|
|
394
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$1(getProgramApplications_ConfigPropertyMetadata);
|
|
395
|
+
function keyBuilder(luvio, config) {
|
|
396
|
+
const resourceParams = createResourceParams(config);
|
|
397
|
+
return keyBuilder$1(luvio, resourceParams);
|
|
398
|
+
}
|
|
399
|
+
function typeCheckConfig(untrustedConfig) {
|
|
400
|
+
const config = {};
|
|
401
|
+
typeCheckConfig$1(untrustedConfig, config, getProgramApplications_ConfigPropertyMetadata);
|
|
402
|
+
return config;
|
|
403
|
+
}
|
|
404
|
+
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
405
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
406
|
+
return null;
|
|
407
|
+
}
|
|
408
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
409
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
410
|
+
}
|
|
411
|
+
const config = typeCheckConfig(untrustedConfig);
|
|
412
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
413
|
+
return null;
|
|
414
|
+
}
|
|
415
|
+
return config;
|
|
416
|
+
}
|
|
417
|
+
function adapterFragment(luvio, config) {
|
|
418
|
+
createResourceParams(config);
|
|
419
|
+
return select();
|
|
420
|
+
}
|
|
421
|
+
function onFetchResponseSuccess(luvio, config, resourceParams, response) {
|
|
422
|
+
const snapshot = ingestSuccess(luvio, resourceParams, response, {
|
|
423
|
+
config,
|
|
424
|
+
resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
|
|
425
|
+
});
|
|
426
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
427
|
+
}
|
|
428
|
+
function onFetchResponseError(luvio, config, resourceParams, response) {
|
|
429
|
+
const snapshot = ingestError(luvio, resourceParams, response, {
|
|
430
|
+
config,
|
|
431
|
+
resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
|
|
432
|
+
});
|
|
433
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
434
|
+
}
|
|
435
|
+
function buildNetworkSnapshot(luvio, config, options) {
|
|
436
|
+
const resourceParams = createResourceParams(config);
|
|
437
|
+
const request = createResourceRequest(resourceParams);
|
|
438
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
439
|
+
.then((response) => {
|
|
440
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
441
|
+
const cache = new StoreKeyMap();
|
|
442
|
+
getResponseCacheKeys(cache, luvio, resourceParams, response.body);
|
|
443
|
+
return cache;
|
|
444
|
+
});
|
|
445
|
+
}, (response) => {
|
|
446
|
+
return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
450
|
+
return buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
451
|
+
}
|
|
452
|
+
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
453
|
+
const { luvio, config } = context;
|
|
454
|
+
const selector = {
|
|
455
|
+
recordId: keyBuilder(luvio, config),
|
|
456
|
+
node: adapterFragment(luvio, config),
|
|
457
|
+
variables: {},
|
|
458
|
+
};
|
|
459
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
460
|
+
config,
|
|
461
|
+
resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
|
|
462
|
+
});
|
|
463
|
+
return cacheSnapshot;
|
|
464
|
+
}
|
|
465
|
+
const getProgramApplicationsAdapterFactory = (luvio) => function energyUtilities__getProgramApplications(untrustedConfig, requestContext) {
|
|
466
|
+
const config = validateAdapterConfig(untrustedConfig, getProgramApplications_ConfigPropertyNames);
|
|
467
|
+
// Invalid or incomplete config
|
|
468
|
+
if (config === null) {
|
|
469
|
+
return null;
|
|
470
|
+
}
|
|
471
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
472
|
+
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
473
|
+
};
|
|
474
|
+
|
|
475
|
+
export { getProgramApplicationsAdapterFactory };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot, AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
|
|
3
|
+
declare const ObjectKeys: {
|
|
4
|
+
(o: object): string[];
|
|
5
|
+
(o: {}): string[];
|
|
6
|
+
}, ObjectCreate: {
|
|
7
|
+
(o: object | null): any;
|
|
8
|
+
(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
|
|
9
|
+
};
|
|
10
|
+
export { ObjectCreate, ObjectKeys };
|
|
11
|
+
export declare const ArrayIsArray: (arg: any) => arg is any[];
|
|
12
|
+
export declare const ArrayPrototypePush: (...items: any[]) => number;
|
|
13
|
+
export interface AdapterValidationConfig {
|
|
14
|
+
displayName: string;
|
|
15
|
+
parameters: {
|
|
16
|
+
required: string[];
|
|
17
|
+
optional: string[];
|
|
18
|
+
unsupported?: string[];
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Validates an adapter config is well-formed.
|
|
23
|
+
* @param config The config to validate.
|
|
24
|
+
* @param adapter The adapter validation configuration.
|
|
25
|
+
* @param oneOf The keys the config must contain at least one of.
|
|
26
|
+
* @throws A TypeError if config doesn't satisfy the adapter's config validation.
|
|
27
|
+
*/
|
|
28
|
+
export declare function validateConfig<T>(config: Untrusted<T>, adapter: AdapterValidationConfig, oneOf?: string[]): void;
|
|
29
|
+
export declare function untrustedIsObject<Base>(untrusted: unknown): untrusted is Untrusted<Base>;
|
|
30
|
+
export type UncoercedConfiguration<Base, Options extends {
|
|
31
|
+
[key in keyof Base]?: any;
|
|
32
|
+
}> = {
|
|
33
|
+
[Key in keyof Base]?: Base[Key] | Options[Key];
|
|
34
|
+
};
|
|
35
|
+
export type Untrusted<Base> = Partial<Base>;
|
|
36
|
+
export declare function areRequiredParametersPresent<T>(config: any, configPropertyNames: AdapterValidationConfig): config is T;
|
|
37
|
+
export declare function refreshable<C, D, R>(adapter: $64$luvio_engine_Adapter<C, D>, resolve: (config: unknown) => Promise<$64$luvio_engine_Snapshot<R>>): $64$luvio_engine_Adapter<C, D>;
|
|
38
|
+
export declare const SNAPSHOT_STATE_FULFILLED = "Fulfilled";
|
|
39
|
+
export declare const SNAPSHOT_STATE_UNFULFILLED = "Unfulfilled";
|
|
40
|
+
export declare const snapshotRefreshOptions: {
|
|
41
|
+
overrides: {
|
|
42
|
+
headers: {
|
|
43
|
+
'Cache-Control': string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* A deterministic JSON stringify implementation. Heavily adapted from https://github.com/epoberezkin/fast-json-stable-stringify.
|
|
49
|
+
* This is needed because insertion order for JSON.stringify(object) affects output:
|
|
50
|
+
* JSON.stringify({a: 1, b: 2})
|
|
51
|
+
* "{"a":1,"b":2}"
|
|
52
|
+
* JSON.stringify({b: 2, a: 1})
|
|
53
|
+
* "{"b":2,"a":1}"
|
|
54
|
+
* @param data Data to be JSON-stringified.
|
|
55
|
+
* @returns JSON.stringified value with consistent ordering of keys.
|
|
56
|
+
*/
|
|
57
|
+
export declare function stableJSONStringify(node: any): string | undefined;
|
|
58
|
+
export declare function getFetchResponseStatusText(status: number): string;
|
|
59
|
+
export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
|
|
60
|
+
export declare function generateParamConfigMetadata(name: string, required: boolean, resourceType: $64$luvio_engine_AdapterConfigMetadata['resourceType'], typeCheckShape: $64$luvio_engine_AdapterConfigMetadata['typeCheckShape'], isArrayShape?: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
|
|
61
|
+
export declare function buildAdapterValidationConfig(displayName: string, paramsMeta: $64$luvio_engine_AdapterConfigMetadata[]): AdapterValidationConfig;
|
|
62
|
+
export declare const keyPrefix = "energy-utilities";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
+
import { ResourceRequestConfig as resources_getConnectEuProgramApplications_ResourceRequestConfig } from '../resources/getConnectEuProgramApplications';
|
|
4
|
+
import { ProgramIndividualApplicationOutputRepresentation as types_ProgramIndividualApplicationOutputRepresentation_ProgramIndividualApplicationOutputRepresentation } from '../types/ProgramIndividualApplicationOutputRepresentation';
|
|
5
|
+
export declare const adapterName = "getProgramApplications";
|
|
6
|
+
export declare const getProgramApplications_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const getProgramApplications_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetProgramApplicationsConfig {
|
|
9
|
+
accountId?: string;
|
|
10
|
+
enrolleeType?: string;
|
|
11
|
+
locationId?: string;
|
|
12
|
+
offset?: number;
|
|
13
|
+
pageSize?: number;
|
|
14
|
+
programId?: string;
|
|
15
|
+
shouldAggregateByStatus?: boolean;
|
|
16
|
+
sortBy?: string;
|
|
17
|
+
sortOrder?: string;
|
|
18
|
+
status?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const createResourceParams: (config: GetProgramApplicationsConfig) => resources_getConnectEuProgramApplications_ResourceRequestConfig;
|
|
21
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetProgramApplicationsConfig): string;
|
|
22
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetProgramApplicationsConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
23
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetProgramApplicationsConfig>): adapter$45$utils_Untrusted<GetProgramApplicationsConfig>;
|
|
24
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetProgramApplicationsConfig | null;
|
|
25
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetProgramApplicationsConfig): $64$luvio_engine_Fragment;
|
|
26
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetProgramApplicationsConfig): $64$luvio_engine_Snapshot<types_ProgramIndividualApplicationOutputRepresentation_ProgramIndividualApplicationOutputRepresentation, any>;
|
|
27
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetProgramApplicationsConfig, resourceParams: resources_getConnectEuProgramApplications_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ProgramIndividualApplicationOutputRepresentation_ProgramIndividualApplicationOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_ProgramIndividualApplicationOutputRepresentation_ProgramIndividualApplicationOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ProgramIndividualApplicationOutputRepresentation_ProgramIndividualApplicationOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ProgramIndividualApplicationOutputRepresentation_ProgramIndividualApplicationOutputRepresentation, any>>;
|
|
28
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetProgramApplicationsConfig, resourceParams: resources_getConnectEuProgramApplications_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
29
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetProgramApplicationsConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_ProgramIndividualApplicationOutputRepresentation_ProgramIndividualApplicationOutputRepresentation, any>>;
|
|
30
|
+
export type BuildSnapshotContext = {
|
|
31
|
+
luvio: $64$luvio_engine_Luvio;
|
|
32
|
+
config: GetProgramApplicationsConfig;
|
|
33
|
+
};
|
|
34
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_ProgramIndividualApplicationOutputRepresentation_ProgramIndividualApplicationOutputRepresentation, any>>;
|
|
35
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_ProgramIndividualApplicationOutputRepresentation_ProgramIndividualApplicationOutputRepresentation>): $64$luvio_engine_Snapshot<types_ProgramIndividualApplicationOutputRepresentation_ProgramIndividualApplicationOutputRepresentation, any>;
|
|
36
|
+
export declare const getProgramApplicationsAdapterFactory: $64$luvio_engine_AdapterFactory<GetProgramApplicationsConfig, types_ProgramIndividualApplicationOutputRepresentation_ProgramIndividualApplicationOutputRepresentation>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getProgramApplicationsAdapterFactory } from '../adapters/getProgramApplications';
|