@salesforce/lds-adapters-industries-stagemanagement 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-stagemanagement.js +446 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/getStageDetails.d.ts +27 -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/getConnectStageManagementKanbanViewByRecordId.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/FulfillmentStepInfo.d.ts +57 -0
- package/dist/es/es2018/types/src/generated/types/StageMgmtKanbanVisualization.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/StageTransitionEntryInfo.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/StageValueInfo.d.ts +39 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +63 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +481 -0
- package/src/raml/api.raml +127 -0
- package/src/raml/luvio.raml +17 -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,446 @@
|
|
|
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$1, create: ObjectCreate$1 } = 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$1(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 = 'stage-management-connect-api';
|
|
73
|
+
|
|
74
|
+
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
75
|
+
const { isArray: ArrayIsArray } = Array;
|
|
76
|
+
const { stringify: JSONStringify } = JSON;
|
|
77
|
+
function createLink(ref) {
|
|
78
|
+
return {
|
|
79
|
+
__ref: serializeStructuredKey(ref),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function validate$3(obj, path = 'FulfillmentStepInfo') {
|
|
84
|
+
const v_error = (() => {
|
|
85
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
86
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
87
|
+
}
|
|
88
|
+
const obj_actions = obj.actions;
|
|
89
|
+
const path_actions = path + '.actions';
|
|
90
|
+
if (typeof obj_actions !== 'object' || ArrayIsArray(obj_actions) || obj_actions === null) {
|
|
91
|
+
return new TypeError('Expected "object" but received "' + typeof obj_actions + '" (at "' + path_actions + '")');
|
|
92
|
+
}
|
|
93
|
+
const obj_actions_keys = ObjectKeys(obj_actions);
|
|
94
|
+
for (let i = 0; i < obj_actions_keys.length; i++) {
|
|
95
|
+
const key = obj_actions_keys[i];
|
|
96
|
+
const obj_actions_prop = obj_actions[key];
|
|
97
|
+
const path_actions_prop = path_actions + '["' + key + '"]';
|
|
98
|
+
if (obj_actions_prop === undefined) {
|
|
99
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_actions_prop + '" (at "' + path_actions_prop + '")');
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
const obj_details = obj.details;
|
|
103
|
+
const path_details = path + '.details';
|
|
104
|
+
if (typeof obj_details !== 'object' || ArrayIsArray(obj_details) || obj_details === null) {
|
|
105
|
+
return new TypeError('Expected "object" but received "' + typeof obj_details + '" (at "' + path_details + '")');
|
|
106
|
+
}
|
|
107
|
+
const obj_details_keys = ObjectKeys(obj_details);
|
|
108
|
+
for (let i = 0; i < obj_details_keys.length; i++) {
|
|
109
|
+
const key = obj_details_keys[i];
|
|
110
|
+
const obj_details_prop = obj_details[key];
|
|
111
|
+
const path_details_prop = path_details + '["' + key + '"]';
|
|
112
|
+
if (obj_details_prop === undefined) {
|
|
113
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_details_prop + '" (at "' + path_details_prop + '")');
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
const obj_displayNumber = obj.displayNumber;
|
|
117
|
+
const path_displayNumber = path + '.displayNumber';
|
|
118
|
+
if (typeof obj_displayNumber !== 'number' || (typeof obj_displayNumber === 'number' && Math.floor(obj_displayNumber) !== obj_displayNumber)) {
|
|
119
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_displayNumber + '" (at "' + path_displayNumber + '")');
|
|
120
|
+
}
|
|
121
|
+
const obj_id = obj.id;
|
|
122
|
+
const path_id = path + '.id';
|
|
123
|
+
if (typeof obj_id !== 'string') {
|
|
124
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
125
|
+
}
|
|
126
|
+
const obj_name = obj.name;
|
|
127
|
+
const path_name = path + '.name';
|
|
128
|
+
if (typeof obj_name !== 'string') {
|
|
129
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
130
|
+
}
|
|
131
|
+
const obj_status = obj.status;
|
|
132
|
+
const path_status = path + '.status';
|
|
133
|
+
if (typeof obj_status !== 'string') {
|
|
134
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
135
|
+
}
|
|
136
|
+
const obj_statusReason = obj.statusReason;
|
|
137
|
+
const path_statusReason = path + '.statusReason';
|
|
138
|
+
if (typeof obj_statusReason !== 'string') {
|
|
139
|
+
return new TypeError('Expected "string" but received "' + typeof obj_statusReason + '" (at "' + path_statusReason + '")');
|
|
140
|
+
}
|
|
141
|
+
const obj_stepType = obj.stepType;
|
|
142
|
+
const path_stepType = path + '.stepType';
|
|
143
|
+
if (typeof obj_stepType !== 'string') {
|
|
144
|
+
return new TypeError('Expected "string" but received "' + typeof obj_stepType + '" (at "' + path_stepType + '")');
|
|
145
|
+
}
|
|
146
|
+
})();
|
|
147
|
+
return v_error === undefined ? null : v_error;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
function validate$2(obj, path = 'StageTransitionEntryInfo') {
|
|
151
|
+
const v_error = (() => {
|
|
152
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
153
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
154
|
+
}
|
|
155
|
+
const obj_createdDate = obj.createdDate;
|
|
156
|
+
const path_createdDate = path + '.createdDate';
|
|
157
|
+
if (typeof obj_createdDate !== 'string') {
|
|
158
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
159
|
+
}
|
|
160
|
+
const obj_fulfillmentSteps = obj.fulfillmentSteps;
|
|
161
|
+
const path_fulfillmentSteps = path + '.fulfillmentSteps';
|
|
162
|
+
if (!ArrayIsArray(obj_fulfillmentSteps)) {
|
|
163
|
+
return new TypeError('Expected "array" but received "' + typeof obj_fulfillmentSteps + '" (at "' + path_fulfillmentSteps + '")');
|
|
164
|
+
}
|
|
165
|
+
for (let i = 0; i < obj_fulfillmentSteps.length; i++) {
|
|
166
|
+
const obj_fulfillmentSteps_item = obj_fulfillmentSteps[i];
|
|
167
|
+
const path_fulfillmentSteps_item = path_fulfillmentSteps + '[' + i + ']';
|
|
168
|
+
const referencepath_fulfillmentSteps_itemValidationError = validate$3(obj_fulfillmentSteps_item, path_fulfillmentSteps_item);
|
|
169
|
+
if (referencepath_fulfillmentSteps_itemValidationError !== null) {
|
|
170
|
+
let message = 'Object doesn\'t match FulfillmentStepInfo (at "' + path_fulfillmentSteps_item + '")\n';
|
|
171
|
+
message += referencepath_fulfillmentSteps_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
172
|
+
return new TypeError(message);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
const obj_name = obj.name;
|
|
176
|
+
const path_name = path + '.name';
|
|
177
|
+
if (typeof obj_name !== 'string') {
|
|
178
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
179
|
+
}
|
|
180
|
+
const obj_toStage = obj.toStage;
|
|
181
|
+
const path_toStage = path + '.toStage';
|
|
182
|
+
if (typeof obj_toStage !== 'string') {
|
|
183
|
+
return new TypeError('Expected "string" but received "' + typeof obj_toStage + '" (at "' + path_toStage + '")');
|
|
184
|
+
}
|
|
185
|
+
const obj_transitionId = obj.transitionId;
|
|
186
|
+
const path_transitionId = path + '.transitionId';
|
|
187
|
+
if (typeof obj_transitionId !== 'string') {
|
|
188
|
+
return new TypeError('Expected "string" but received "' + typeof obj_transitionId + '" (at "' + path_transitionId + '")');
|
|
189
|
+
}
|
|
190
|
+
})();
|
|
191
|
+
return v_error === undefined ? null : v_error;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
function validate$1(obj, path = 'StageValueInfo') {
|
|
195
|
+
const v_error = (() => {
|
|
196
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
197
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
198
|
+
}
|
|
199
|
+
const obj_fulfillmentSteps = obj.fulfillmentSteps;
|
|
200
|
+
const path_fulfillmentSteps = path + '.fulfillmentSteps';
|
|
201
|
+
if (!ArrayIsArray(obj_fulfillmentSteps)) {
|
|
202
|
+
return new TypeError('Expected "array" but received "' + typeof obj_fulfillmentSteps + '" (at "' + path_fulfillmentSteps + '")');
|
|
203
|
+
}
|
|
204
|
+
for (let i = 0; i < obj_fulfillmentSteps.length; i++) {
|
|
205
|
+
const obj_fulfillmentSteps_item = obj_fulfillmentSteps[i];
|
|
206
|
+
const path_fulfillmentSteps_item = path_fulfillmentSteps + '[' + i + ']';
|
|
207
|
+
const referencepath_fulfillmentSteps_itemValidationError = validate$3(obj_fulfillmentSteps_item, path_fulfillmentSteps_item);
|
|
208
|
+
if (referencepath_fulfillmentSteps_itemValidationError !== null) {
|
|
209
|
+
let message = 'Object doesn\'t match FulfillmentStepInfo (at "' + path_fulfillmentSteps_item + '")\n';
|
|
210
|
+
message += referencepath_fulfillmentSteps_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
211
|
+
return new TypeError(message);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
const obj_isActive = obj.isActive;
|
|
215
|
+
const path_isActive = path + '.isActive';
|
|
216
|
+
if (typeof obj_isActive !== 'boolean') {
|
|
217
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isActive + '" (at "' + path_isActive + '")');
|
|
218
|
+
}
|
|
219
|
+
const obj_stageName = obj.stageName;
|
|
220
|
+
const path_stageName = path + '.stageName';
|
|
221
|
+
if (typeof obj_stageName !== 'string') {
|
|
222
|
+
return new TypeError('Expected "string" but received "' + typeof obj_stageName + '" (at "' + path_stageName + '")');
|
|
223
|
+
}
|
|
224
|
+
const obj_stageTransitions = obj.stageTransitions;
|
|
225
|
+
const path_stageTransitions = path + '.stageTransitions';
|
|
226
|
+
if (!ArrayIsArray(obj_stageTransitions)) {
|
|
227
|
+
return new TypeError('Expected "array" but received "' + typeof obj_stageTransitions + '" (at "' + path_stageTransitions + '")');
|
|
228
|
+
}
|
|
229
|
+
for (let i = 0; i < obj_stageTransitions.length; i++) {
|
|
230
|
+
const obj_stageTransitions_item = obj_stageTransitions[i];
|
|
231
|
+
const path_stageTransitions_item = path_stageTransitions + '[' + i + ']';
|
|
232
|
+
const referencepath_stageTransitions_itemValidationError = validate$2(obj_stageTransitions_item, path_stageTransitions_item);
|
|
233
|
+
if (referencepath_stageTransitions_itemValidationError !== null) {
|
|
234
|
+
let message = 'Object doesn\'t match StageTransitionEntryInfo (at "' + path_stageTransitions_item + '")\n';
|
|
235
|
+
message += referencepath_stageTransitions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
236
|
+
return new TypeError(message);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
})();
|
|
240
|
+
return v_error === undefined ? null : v_error;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
const TTL = 10000;
|
|
244
|
+
const VERSION = "80703a0eccf6c5549ed2d91cd6b613c4";
|
|
245
|
+
function validate(obj, path = 'StageMgmtKanbanVisualization') {
|
|
246
|
+
const v_error = (() => {
|
|
247
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
248
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
249
|
+
}
|
|
250
|
+
const obj_stages = obj.stages;
|
|
251
|
+
const path_stages = path + '.stages';
|
|
252
|
+
if (!ArrayIsArray(obj_stages)) {
|
|
253
|
+
return new TypeError('Expected "array" but received "' + typeof obj_stages + '" (at "' + path_stages + '")');
|
|
254
|
+
}
|
|
255
|
+
for (let i = 0; i < obj_stages.length; i++) {
|
|
256
|
+
const obj_stages_item = obj_stages[i];
|
|
257
|
+
const path_stages_item = path_stages + '[' + i + ']';
|
|
258
|
+
const referencepath_stages_itemValidationError = validate$1(obj_stages_item, path_stages_item);
|
|
259
|
+
if (referencepath_stages_itemValidationError !== null) {
|
|
260
|
+
let message = 'Object doesn\'t match StageValueInfo (at "' + path_stages_item + '")\n';
|
|
261
|
+
message += referencepath_stages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
262
|
+
return new TypeError(message);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
})();
|
|
266
|
+
return v_error === undefined ? null : v_error;
|
|
267
|
+
}
|
|
268
|
+
const RepresentationType = 'StageMgmtKanbanVisualization';
|
|
269
|
+
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
270
|
+
return input;
|
|
271
|
+
}
|
|
272
|
+
const select$1 = function StageMgmtKanbanVisualizationSelect() {
|
|
273
|
+
return {
|
|
274
|
+
kind: 'Fragment',
|
|
275
|
+
version: VERSION,
|
|
276
|
+
private: [],
|
|
277
|
+
opaque: true
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
function equals(existing, incoming) {
|
|
281
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
282
|
+
return false;
|
|
283
|
+
}
|
|
284
|
+
return true;
|
|
285
|
+
}
|
|
286
|
+
const ingest = function StageMgmtKanbanVisualizationIngest(input, path, luvio, store, timestamp) {
|
|
287
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
288
|
+
const validateError = validate(input);
|
|
289
|
+
if (validateError !== null) {
|
|
290
|
+
throw validateError;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
const key = path.fullPath;
|
|
294
|
+
const ttlToUse = TTL;
|
|
295
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "stage-management-connect-api", VERSION, RepresentationType, equals);
|
|
296
|
+
return createLink(key);
|
|
297
|
+
};
|
|
298
|
+
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
299
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
300
|
+
const rootKey = fullPathFactory();
|
|
301
|
+
rootKeySet.set(rootKey, {
|
|
302
|
+
namespace: keyPrefix,
|
|
303
|
+
representationName: RepresentationType,
|
|
304
|
+
mergeable: false
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
function select(luvio, params) {
|
|
309
|
+
return select$1();
|
|
310
|
+
}
|
|
311
|
+
function keyBuilder$1(luvio, params) {
|
|
312
|
+
return keyPrefix + '::StageMgmtKanbanVisualization:(' + 'recordId:' + params.urlParams.recordId + ')';
|
|
313
|
+
}
|
|
314
|
+
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
315
|
+
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
316
|
+
}
|
|
317
|
+
function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
318
|
+
const { body } = response;
|
|
319
|
+
const key = keyBuilder$1(luvio, resourceParams);
|
|
320
|
+
luvio.storeIngest(key, ingest, body);
|
|
321
|
+
const snapshot = luvio.storeLookup({
|
|
322
|
+
recordId: key,
|
|
323
|
+
node: select(),
|
|
324
|
+
variables: {},
|
|
325
|
+
}, snapshotRefresh);
|
|
326
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
327
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
328
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
deepFreeze(snapshot.data);
|
|
332
|
+
return snapshot;
|
|
333
|
+
}
|
|
334
|
+
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
335
|
+
const key = keyBuilder$1(luvio, params);
|
|
336
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
337
|
+
const storeMetadataParams = {
|
|
338
|
+
ttl: TTL,
|
|
339
|
+
namespace: keyPrefix,
|
|
340
|
+
version: VERSION,
|
|
341
|
+
representationName: RepresentationType
|
|
342
|
+
};
|
|
343
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
344
|
+
return errorSnapshot;
|
|
345
|
+
}
|
|
346
|
+
function createResourceRequest(config) {
|
|
347
|
+
const headers = {};
|
|
348
|
+
return {
|
|
349
|
+
baseUri: '/services/data/v66.0',
|
|
350
|
+
basePath: '/connect/stage-management/kanban-view/' + config.urlParams.recordId + '',
|
|
351
|
+
method: 'get',
|
|
352
|
+
body: null,
|
|
353
|
+
urlParams: config.urlParams,
|
|
354
|
+
queryParams: {},
|
|
355
|
+
headers,
|
|
356
|
+
priority: 'normal',
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
const adapterName = 'getStageDetails';
|
|
361
|
+
const getStageDetails_ConfigPropertyMetadata = [
|
|
362
|
+
generateParamConfigMetadata('recordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
363
|
+
];
|
|
364
|
+
const getStageDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getStageDetails_ConfigPropertyMetadata);
|
|
365
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$1(getStageDetails_ConfigPropertyMetadata);
|
|
366
|
+
function keyBuilder(luvio, config) {
|
|
367
|
+
const resourceParams = createResourceParams(config);
|
|
368
|
+
return keyBuilder$1(luvio, resourceParams);
|
|
369
|
+
}
|
|
370
|
+
function typeCheckConfig(untrustedConfig) {
|
|
371
|
+
const config = {};
|
|
372
|
+
typeCheckConfig$1(untrustedConfig, config, getStageDetails_ConfigPropertyMetadata);
|
|
373
|
+
return config;
|
|
374
|
+
}
|
|
375
|
+
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
376
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
377
|
+
return null;
|
|
378
|
+
}
|
|
379
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
380
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
381
|
+
}
|
|
382
|
+
const config = typeCheckConfig(untrustedConfig);
|
|
383
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
384
|
+
return null;
|
|
385
|
+
}
|
|
386
|
+
return config;
|
|
387
|
+
}
|
|
388
|
+
function adapterFragment(luvio, config) {
|
|
389
|
+
createResourceParams(config);
|
|
390
|
+
return select();
|
|
391
|
+
}
|
|
392
|
+
function onFetchResponseSuccess(luvio, config, resourceParams, response) {
|
|
393
|
+
const snapshot = ingestSuccess(luvio, resourceParams, response, {
|
|
394
|
+
config,
|
|
395
|
+
resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
|
|
396
|
+
});
|
|
397
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
398
|
+
}
|
|
399
|
+
function onFetchResponseError(luvio, config, resourceParams, response) {
|
|
400
|
+
const snapshot = ingestError(luvio, resourceParams, response, {
|
|
401
|
+
config,
|
|
402
|
+
resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
|
|
403
|
+
});
|
|
404
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
405
|
+
}
|
|
406
|
+
function buildNetworkSnapshot(luvio, config, options) {
|
|
407
|
+
const resourceParams = createResourceParams(config);
|
|
408
|
+
const request = createResourceRequest(resourceParams);
|
|
409
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
410
|
+
.then((response) => {
|
|
411
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
412
|
+
const cache = new StoreKeyMap();
|
|
413
|
+
getResponseCacheKeys(cache, luvio, resourceParams, response.body);
|
|
414
|
+
return cache;
|
|
415
|
+
});
|
|
416
|
+
}, (response) => {
|
|
417
|
+
return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
421
|
+
return buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
422
|
+
}
|
|
423
|
+
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
424
|
+
const { luvio, config } = context;
|
|
425
|
+
const selector = {
|
|
426
|
+
recordId: keyBuilder(luvio, config),
|
|
427
|
+
node: adapterFragment(luvio, config),
|
|
428
|
+
variables: {},
|
|
429
|
+
};
|
|
430
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
431
|
+
config,
|
|
432
|
+
resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
|
|
433
|
+
});
|
|
434
|
+
return cacheSnapshot;
|
|
435
|
+
}
|
|
436
|
+
const getStageDetailsAdapterFactory = (luvio) => function stageManagementConnectApi__getStageDetails(untrustedConfig, requestContext) {
|
|
437
|
+
const config = validateAdapterConfig(untrustedConfig, getStageDetails_ConfigPropertyNames);
|
|
438
|
+
// Invalid or incomplete config
|
|
439
|
+
if (config === null) {
|
|
440
|
+
return null;
|
|
441
|
+
}
|
|
442
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
443
|
+
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
444
|
+
};
|
|
445
|
+
|
|
446
|
+
export { getStageDetailsAdapterFactory };
|
|
@@ -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 = "stage-management-connect-api";
|
|
@@ -0,0 +1,27 @@
|
|
|
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_getConnectStageManagementKanbanViewByRecordId_ResourceRequestConfig } from '../resources/getConnectStageManagementKanbanViewByRecordId';
|
|
4
|
+
import { StageMgmtKanbanVisualization as types_StageMgmtKanbanVisualization_StageMgmtKanbanVisualization } from '../types/StageMgmtKanbanVisualization';
|
|
5
|
+
export declare const adapterName = "getStageDetails";
|
|
6
|
+
export declare const getStageDetails_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const getStageDetails_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetStageDetailsConfig {
|
|
9
|
+
recordId: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const createResourceParams: (config: GetStageDetailsConfig) => resources_getConnectStageManagementKanbanViewByRecordId_ResourceRequestConfig;
|
|
12
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetStageDetailsConfig): string;
|
|
13
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetStageDetailsConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetStageDetailsConfig>): adapter$45$utils_Untrusted<GetStageDetailsConfig>;
|
|
15
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetStageDetailsConfig | null;
|
|
16
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetStageDetailsConfig): $64$luvio_engine_Fragment;
|
|
17
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetStageDetailsConfig): $64$luvio_engine_Snapshot<types_StageMgmtKanbanVisualization_StageMgmtKanbanVisualization, any>;
|
|
18
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetStageDetailsConfig, resourceParams: resources_getConnectStageManagementKanbanViewByRecordId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_StageMgmtKanbanVisualization_StageMgmtKanbanVisualization>): Promise<import("@luvio/engine").FulfilledSnapshot<types_StageMgmtKanbanVisualization_StageMgmtKanbanVisualization, {}> | import("@luvio/engine").StaleSnapshot<types_StageMgmtKanbanVisualization_StageMgmtKanbanVisualization, {}> | import("@luvio/engine").PendingSnapshot<types_StageMgmtKanbanVisualization_StageMgmtKanbanVisualization, any>>;
|
|
19
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetStageDetailsConfig, resourceParams: resources_getConnectStageManagementKanbanViewByRecordId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
20
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetStageDetailsConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_StageMgmtKanbanVisualization_StageMgmtKanbanVisualization, any>>;
|
|
21
|
+
export type BuildSnapshotContext = {
|
|
22
|
+
luvio: $64$luvio_engine_Luvio;
|
|
23
|
+
config: GetStageDetailsConfig;
|
|
24
|
+
};
|
|
25
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_StageMgmtKanbanVisualization_StageMgmtKanbanVisualization, any>>;
|
|
26
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_StageMgmtKanbanVisualization_StageMgmtKanbanVisualization>): $64$luvio_engine_Snapshot<types_StageMgmtKanbanVisualization_StageMgmtKanbanVisualization, any>;
|
|
27
|
+
export declare const getStageDetailsAdapterFactory: $64$luvio_engine_AdapterFactory<GetStageDetailsConfig, types_StageMgmtKanbanVisualization_StageMgmtKanbanVisualization>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getStageDetailsAdapterFactory } from '../adapters/getStageDetails';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { StageMgmtKanbanVisualization as types_StageMgmtKanbanVisualization_StageMgmtKanbanVisualization } from '../types/StageMgmtKanbanVisualization';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
recordId: string;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
9
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
10
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_StageMgmtKanbanVisualization_StageMgmtKanbanVisualization): void;
|
|
12
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_StageMgmtKanbanVisualization_StageMgmtKanbanVisualization>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_StageMgmtKanbanVisualization_StageMgmtKanbanVisualization>): $64$luvio_engine_FulfilledSnapshot<types_StageMgmtKanbanVisualization_StageMgmtKanbanVisualization, {}> | $64$luvio_engine_StaleSnapshot<types_StageMgmtKanbanVisualization_StageMgmtKanbanVisualization, {}> | $64$luvio_engine_PendingSnapshot<types_StageMgmtKanbanVisualization_StageMgmtKanbanVisualization, any>;
|
|
13
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_StageMgmtKanbanVisualization_StageMgmtKanbanVisualization>): $64$luvio_engine_ErrorSnapshot;
|
|
14
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
15
|
+
export default createResourceRequest;
|