@salesforce/lds-adapters-industries-stagemanagement 1.286.0 → 1.287.0-dev10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/industries-stagemanagement.js +37 -22
- package/dist/es/es2018/types/src/generated/adapters/getStageDetails.d.ts +7 -7
- package/dist/es/es2018/types/src/generated/resources/getConnectStageManagementKanbanViewByRecordId.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/types/{StateMgmtKanbanVisualization.d.ts → StageMgmtKanbanVisualization.d.ts} +10 -10
- package/dist/es/es2018/types/src/generated/types/{ObjectStateValueInfo.d.ts → StageValueInfo.d.ts} +20 -11
- package/package.json +4 -4
- package/sfdc/index.js +38 -23
- package/src/raml/api.raml +36 -28
- package/src/raml/luvio.raml +5 -6
|
@@ -137,11 +137,16 @@ function validate$2(obj, path = 'FulfillmentStepInfo') {
|
|
|
137
137
|
return v_error === undefined ? null : v_error;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
function validate$1(obj, path = '
|
|
140
|
+
function validate$1(obj, path = 'StageValueInfo') {
|
|
141
141
|
const v_error = (() => {
|
|
142
142
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
143
143
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
144
144
|
}
|
|
145
|
+
const obj_executedStepsCount = obj.executedStepsCount;
|
|
146
|
+
const path_executedStepsCount = path + '.executedStepsCount';
|
|
147
|
+
if (typeof obj_executedStepsCount !== 'number' || (typeof obj_executedStepsCount === 'number' && Math.floor(obj_executedStepsCount) !== obj_executedStepsCount)) {
|
|
148
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_executedStepsCount + '" (at "' + path_executedStepsCount + '")');
|
|
149
|
+
}
|
|
145
150
|
const obj_fulfillmentSteps = obj.fulfillmentSteps;
|
|
146
151
|
const path_fulfillmentSteps = path + '.fulfillmentSteps';
|
|
147
152
|
if (!ArrayIsArray(obj_fulfillmentSteps)) {
|
|
@@ -157,45 +162,55 @@ function validate$1(obj, path = 'ObjectStateValueInfo') {
|
|
|
157
162
|
return new TypeError(message);
|
|
158
163
|
}
|
|
159
164
|
}
|
|
160
|
-
const
|
|
161
|
-
const
|
|
162
|
-
if (typeof
|
|
163
|
-
return new TypeError('Expected "
|
|
165
|
+
const obj_isActive = obj.isActive;
|
|
166
|
+
const path_isActive = path + '.isActive';
|
|
167
|
+
if (typeof obj_isActive !== 'boolean') {
|
|
168
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isActive + '" (at "' + path_isActive + '")');
|
|
169
|
+
}
|
|
170
|
+
const obj_plannedStepsCount = obj.plannedStepsCount;
|
|
171
|
+
const path_plannedStepsCount = path + '.plannedStepsCount';
|
|
172
|
+
if (typeof obj_plannedStepsCount !== 'number' || (typeof obj_plannedStepsCount === 'number' && Math.floor(obj_plannedStepsCount) !== obj_plannedStepsCount)) {
|
|
173
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_plannedStepsCount + '" (at "' + path_plannedStepsCount + '")');
|
|
174
|
+
}
|
|
175
|
+
const obj_stageName = obj.stageName;
|
|
176
|
+
const path_stageName = path + '.stageName';
|
|
177
|
+
if (typeof obj_stageName !== 'string') {
|
|
178
|
+
return new TypeError('Expected "string" but received "' + typeof obj_stageName + '" (at "' + path_stageName + '")');
|
|
164
179
|
}
|
|
165
180
|
})();
|
|
166
181
|
return v_error === undefined ? null : v_error;
|
|
167
182
|
}
|
|
168
183
|
|
|
169
184
|
const TTL = 10000;
|
|
170
|
-
const VERSION = "
|
|
171
|
-
function validate(obj, path = '
|
|
185
|
+
const VERSION = "80703a0eccf6c5549ed2d91cd6b613c4";
|
|
186
|
+
function validate(obj, path = 'StageMgmtKanbanVisualization') {
|
|
172
187
|
const v_error = (() => {
|
|
173
188
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
174
189
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
175
190
|
}
|
|
176
|
-
const
|
|
177
|
-
const
|
|
178
|
-
if (!ArrayIsArray(
|
|
179
|
-
return new TypeError('Expected "array" but received "' + typeof
|
|
191
|
+
const obj_stages = obj.stages;
|
|
192
|
+
const path_stages = path + '.stages';
|
|
193
|
+
if (!ArrayIsArray(obj_stages)) {
|
|
194
|
+
return new TypeError('Expected "array" but received "' + typeof obj_stages + '" (at "' + path_stages + '")');
|
|
180
195
|
}
|
|
181
|
-
for (let i = 0; i <
|
|
182
|
-
const
|
|
183
|
-
const
|
|
184
|
-
const
|
|
185
|
-
if (
|
|
186
|
-
let message = 'Object doesn\'t match
|
|
187
|
-
message +=
|
|
196
|
+
for (let i = 0; i < obj_stages.length; i++) {
|
|
197
|
+
const obj_stages_item = obj_stages[i];
|
|
198
|
+
const path_stages_item = path_stages + '[' + i + ']';
|
|
199
|
+
const referencepath_stages_itemValidationError = validate$1(obj_stages_item, path_stages_item);
|
|
200
|
+
if (referencepath_stages_itemValidationError !== null) {
|
|
201
|
+
let message = 'Object doesn\'t match StageValueInfo (at "' + path_stages_item + '")\n';
|
|
202
|
+
message += referencepath_stages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
188
203
|
return new TypeError(message);
|
|
189
204
|
}
|
|
190
205
|
}
|
|
191
206
|
})();
|
|
192
207
|
return v_error === undefined ? null : v_error;
|
|
193
208
|
}
|
|
194
|
-
const RepresentationType = '
|
|
209
|
+
const RepresentationType = 'StageMgmtKanbanVisualization';
|
|
195
210
|
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
196
211
|
return input;
|
|
197
212
|
}
|
|
198
|
-
const select$1 = function
|
|
213
|
+
const select$1 = function StageMgmtKanbanVisualizationSelect() {
|
|
199
214
|
return {
|
|
200
215
|
kind: 'Fragment',
|
|
201
216
|
version: VERSION,
|
|
@@ -209,7 +224,7 @@ function equals(existing, incoming) {
|
|
|
209
224
|
}
|
|
210
225
|
return true;
|
|
211
226
|
}
|
|
212
|
-
const ingest = function
|
|
227
|
+
const ingest = function StageMgmtKanbanVisualizationIngest(input, path, luvio, store, timestamp) {
|
|
213
228
|
if (process.env.NODE_ENV !== 'production') {
|
|
214
229
|
const validateError = validate(input);
|
|
215
230
|
if (validateError !== null) {
|
|
@@ -235,7 +250,7 @@ function select(luvio, params) {
|
|
|
235
250
|
return select$1();
|
|
236
251
|
}
|
|
237
252
|
function keyBuilder$1(luvio, params) {
|
|
238
|
-
return keyPrefix + '::
|
|
253
|
+
return keyPrefix + '::StageMgmtKanbanVisualization:(' + 'recordId:' + params.urlParams.recordId + ')';
|
|
239
254
|
}
|
|
240
255
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
241
256
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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
2
|
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
3
|
import { ResourceRequestConfig as resources_getConnectStageManagementKanbanViewByRecordId_ResourceRequestConfig } from '../resources/getConnectStageManagementKanbanViewByRecordId';
|
|
4
|
-
import {
|
|
4
|
+
import { StageMgmtKanbanVisualization as types_StageMgmtKanbanVisualization_StageMgmtKanbanVisualization } from '../types/StageMgmtKanbanVisualization';
|
|
5
5
|
export declare const adapterName = "getStageDetails";
|
|
6
6
|
export declare const getStageDetails_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
7
|
export declare const getStageDetails_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
@@ -14,14 +14,14 @@ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio,
|
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetStageDetailsConfig>): adapter$45$utils_Untrusted<GetStageDetailsConfig>;
|
|
15
15
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetStageDetailsConfig | null;
|
|
16
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<
|
|
18
|
-
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetStageDetailsConfig, resourceParams: resources_getConnectStageManagementKanbanViewByRecordId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<
|
|
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
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<
|
|
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
21
|
export type BuildSnapshotContext = {
|
|
22
22
|
luvio: $64$luvio_engine_Luvio;
|
|
23
23
|
config: GetStageDetailsConfig;
|
|
24
24
|
};
|
|
25
|
-
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<
|
|
26
|
-
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<
|
|
27
|
-
export declare const getStageDetailsAdapterFactory: $64$luvio_engine_AdapterFactory<GetStageDetailsConfig,
|
|
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>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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 {
|
|
2
|
+
import { StageMgmtKanbanVisualization as types_StageMgmtKanbanVisualization_StageMgmtKanbanVisualization } from '../types/StageMgmtKanbanVisualization';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
urlParams: {
|
|
5
5
|
recordId: string;
|
|
@@ -8,8 +8,8 @@ export interface ResourceRequestConfig {
|
|
|
8
8
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
9
9
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
10
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:
|
|
12
|
-
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<
|
|
13
|
-
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<
|
|
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
14
|
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
15
15
|
export default createResourceRequest;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StageValueInfo as StageValueInfo_StageValueInfo } from './StageValueInfo';
|
|
2
2
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
3
|
export declare const TTL = 10000;
|
|
4
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "80703a0eccf6c5549ed2d91cd6b613c4";
|
|
5
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
6
|
export declare const RepresentationType: string;
|
|
7
|
-
export declare function normalize(input:
|
|
7
|
+
export declare function normalize(input: StageMgmtKanbanVisualization, existing: StageMgmtKanbanVisualizationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): StageMgmtKanbanVisualizationNormalized;
|
|
8
8
|
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
9
|
-
export declare function equals(existing:
|
|
9
|
+
export declare function equals(existing: StageMgmtKanbanVisualizationNormalized, incoming: StageMgmtKanbanVisualizationNormalized): boolean;
|
|
10
10
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
11
|
-
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input:
|
|
11
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: StageMgmtKanbanVisualization, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
12
12
|
/**
|
|
13
13
|
* Output representation of Stage Management Kanban View
|
|
14
14
|
*
|
|
15
15
|
* Keys:
|
|
16
16
|
* (none)
|
|
17
17
|
*/
|
|
18
|
-
export interface
|
|
19
|
-
/** List of information about
|
|
20
|
-
|
|
18
|
+
export interface StageMgmtKanbanVisualizationNormalized {
|
|
19
|
+
/** List of information about stage value. */
|
|
20
|
+
stages: Array<StageValueInfo_StageValueInfo>;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Output representation of Stage Management Kanban View
|
|
@@ -25,6 +25,6 @@ export interface StateMgmtKanbanVisualizationNormalized {
|
|
|
25
25
|
* Keys:
|
|
26
26
|
* (none)
|
|
27
27
|
*/
|
|
28
|
-
export interface
|
|
29
|
-
|
|
28
|
+
export interface StageMgmtKanbanVisualization {
|
|
29
|
+
stages: Array<StageValueInfo_StageValueInfo>;
|
|
30
30
|
}
|
package/dist/es/es2018/types/src/generated/types/{ObjectStateValueInfo.d.ts → StageValueInfo.d.ts}
RENAMED
|
@@ -1,32 +1,41 @@
|
|
|
1
1
|
import { FulfillmentStepInfo as FulfillmentStepInfo_FulfillmentStepInfo } from './FulfillmentStepInfo';
|
|
2
2
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "b419665ec8746e7b9df3980386381a33";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
|
-
export declare function normalize(input:
|
|
6
|
+
export declare function normalize(input: StageValueInfo, existing: StageValueInfoNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): StageValueInfoNormalized;
|
|
7
7
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
-
export declare function equals(existing:
|
|
8
|
+
export declare function equals(existing: StageValueInfoNormalized, incoming: StageValueInfoNormalized): boolean;
|
|
9
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
-
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input:
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: StageValueInfo, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
11
|
/**
|
|
12
|
-
* Output representation of
|
|
12
|
+
* Output representation of Stage Value Info Object
|
|
13
13
|
*
|
|
14
14
|
* Keys:
|
|
15
15
|
* (none)
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface StageValueInfoNormalized {
|
|
18
|
+
/** Executed Steps Count. */
|
|
19
|
+
executedStepsCount: number;
|
|
18
20
|
/** List of information about fulfillment steps. */
|
|
19
21
|
fulfillmentSteps: Array<FulfillmentStepInfo_FulfillmentStepInfo>;
|
|
20
|
-
/**
|
|
21
|
-
|
|
22
|
+
/** Is Current State. */
|
|
23
|
+
isActive: boolean;
|
|
24
|
+
/** Unexecuted Steps Count. */
|
|
25
|
+
plannedStepsCount: number;
|
|
26
|
+
/** Name of stage. */
|
|
27
|
+
stageName: string;
|
|
22
28
|
}
|
|
23
29
|
/**
|
|
24
|
-
* Output representation of
|
|
30
|
+
* Output representation of Stage Value Info Object
|
|
25
31
|
*
|
|
26
32
|
* Keys:
|
|
27
33
|
* (none)
|
|
28
34
|
*/
|
|
29
|
-
export interface
|
|
35
|
+
export interface StageValueInfo {
|
|
36
|
+
executedStepsCount: number;
|
|
30
37
|
fulfillmentSteps: Array<FulfillmentStepInfo_FulfillmentStepInfo>;
|
|
31
|
-
|
|
38
|
+
isActive: boolean;
|
|
39
|
+
plannedStepsCount: number;
|
|
40
|
+
stageName: string;
|
|
32
41
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-stagemanagement",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.287.0-dev10",
|
|
4
4
|
"description": "Get Kanban View for Stage Management",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/industries-stagemanagement.js",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.287.0-dev10"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
47
|
-
"@salesforce/lds-karma": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.287.0-dev10",
|
|
47
|
+
"@salesforce/lds-karma": "^1.287.0-dev10"
|
|
48
48
|
},
|
|
49
49
|
"nx": {
|
|
50
50
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -147,11 +147,16 @@ function validate$2(obj, path = 'FulfillmentStepInfo') {
|
|
|
147
147
|
return v_error === undefined ? null : v_error;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
function validate$1(obj, path = '
|
|
150
|
+
function validate$1(obj, path = 'StageValueInfo') {
|
|
151
151
|
const v_error = (() => {
|
|
152
152
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
153
153
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
154
154
|
}
|
|
155
|
+
const obj_executedStepsCount = obj.executedStepsCount;
|
|
156
|
+
const path_executedStepsCount = path + '.executedStepsCount';
|
|
157
|
+
if (typeof obj_executedStepsCount !== 'number' || (typeof obj_executedStepsCount === 'number' && Math.floor(obj_executedStepsCount) !== obj_executedStepsCount)) {
|
|
158
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_executedStepsCount + '" (at "' + path_executedStepsCount + '")');
|
|
159
|
+
}
|
|
155
160
|
const obj_fulfillmentSteps = obj.fulfillmentSteps;
|
|
156
161
|
const path_fulfillmentSteps = path + '.fulfillmentSteps';
|
|
157
162
|
if (!ArrayIsArray(obj_fulfillmentSteps)) {
|
|
@@ -167,45 +172,55 @@ function validate$1(obj, path = 'ObjectStateValueInfo') {
|
|
|
167
172
|
return new TypeError(message);
|
|
168
173
|
}
|
|
169
174
|
}
|
|
170
|
-
const
|
|
171
|
-
const
|
|
172
|
-
if (typeof
|
|
173
|
-
return new TypeError('Expected "
|
|
175
|
+
const obj_isActive = obj.isActive;
|
|
176
|
+
const path_isActive = path + '.isActive';
|
|
177
|
+
if (typeof obj_isActive !== 'boolean') {
|
|
178
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isActive + '" (at "' + path_isActive + '")');
|
|
179
|
+
}
|
|
180
|
+
const obj_plannedStepsCount = obj.plannedStepsCount;
|
|
181
|
+
const path_plannedStepsCount = path + '.plannedStepsCount';
|
|
182
|
+
if (typeof obj_plannedStepsCount !== 'number' || (typeof obj_plannedStepsCount === 'number' && Math.floor(obj_plannedStepsCount) !== obj_plannedStepsCount)) {
|
|
183
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_plannedStepsCount + '" (at "' + path_plannedStepsCount + '")');
|
|
184
|
+
}
|
|
185
|
+
const obj_stageName = obj.stageName;
|
|
186
|
+
const path_stageName = path + '.stageName';
|
|
187
|
+
if (typeof obj_stageName !== 'string') {
|
|
188
|
+
return new TypeError('Expected "string" but received "' + typeof obj_stageName + '" (at "' + path_stageName + '")');
|
|
174
189
|
}
|
|
175
190
|
})();
|
|
176
191
|
return v_error === undefined ? null : v_error;
|
|
177
192
|
}
|
|
178
193
|
|
|
179
194
|
const TTL = 10000;
|
|
180
|
-
const VERSION = "
|
|
181
|
-
function validate(obj, path = '
|
|
195
|
+
const VERSION = "80703a0eccf6c5549ed2d91cd6b613c4";
|
|
196
|
+
function validate(obj, path = 'StageMgmtKanbanVisualization') {
|
|
182
197
|
const v_error = (() => {
|
|
183
198
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
184
199
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
185
200
|
}
|
|
186
|
-
const
|
|
187
|
-
const
|
|
188
|
-
if (!ArrayIsArray(
|
|
189
|
-
return new TypeError('Expected "array" but received "' + typeof
|
|
201
|
+
const obj_stages = obj.stages;
|
|
202
|
+
const path_stages = path + '.stages';
|
|
203
|
+
if (!ArrayIsArray(obj_stages)) {
|
|
204
|
+
return new TypeError('Expected "array" but received "' + typeof obj_stages + '" (at "' + path_stages + '")');
|
|
190
205
|
}
|
|
191
|
-
for (let i = 0; i <
|
|
192
|
-
const
|
|
193
|
-
const
|
|
194
|
-
const
|
|
195
|
-
if (
|
|
196
|
-
let message = 'Object doesn\'t match
|
|
197
|
-
message +=
|
|
206
|
+
for (let i = 0; i < obj_stages.length; i++) {
|
|
207
|
+
const obj_stages_item = obj_stages[i];
|
|
208
|
+
const path_stages_item = path_stages + '[' + i + ']';
|
|
209
|
+
const referencepath_stages_itemValidationError = validate$1(obj_stages_item, path_stages_item);
|
|
210
|
+
if (referencepath_stages_itemValidationError !== null) {
|
|
211
|
+
let message = 'Object doesn\'t match StageValueInfo (at "' + path_stages_item + '")\n';
|
|
212
|
+
message += referencepath_stages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
198
213
|
return new TypeError(message);
|
|
199
214
|
}
|
|
200
215
|
}
|
|
201
216
|
})();
|
|
202
217
|
return v_error === undefined ? null : v_error;
|
|
203
218
|
}
|
|
204
|
-
const RepresentationType = '
|
|
219
|
+
const RepresentationType = 'StageMgmtKanbanVisualization';
|
|
205
220
|
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
206
221
|
return input;
|
|
207
222
|
}
|
|
208
|
-
const select$1 = function
|
|
223
|
+
const select$1 = function StageMgmtKanbanVisualizationSelect() {
|
|
209
224
|
return {
|
|
210
225
|
kind: 'Fragment',
|
|
211
226
|
version: VERSION,
|
|
@@ -219,7 +234,7 @@ function equals(existing, incoming) {
|
|
|
219
234
|
}
|
|
220
235
|
return true;
|
|
221
236
|
}
|
|
222
|
-
const ingest = function
|
|
237
|
+
const ingest = function StageMgmtKanbanVisualizationIngest(input, path, luvio, store, timestamp) {
|
|
223
238
|
if (process.env.NODE_ENV !== 'production') {
|
|
224
239
|
const validateError = validate(input);
|
|
225
240
|
if (validateError !== null) {
|
|
@@ -245,7 +260,7 @@ function select(luvio, params) {
|
|
|
245
260
|
return select$1();
|
|
246
261
|
}
|
|
247
262
|
function keyBuilder$1(luvio, params) {
|
|
248
|
-
return keyPrefix + '::
|
|
263
|
+
return keyPrefix + '::StageMgmtKanbanVisualization:(' + 'recordId:' + params.urlParams.recordId + ')';
|
|
249
264
|
}
|
|
250
265
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
251
266
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -404,4 +419,4 @@ withDefaultLuvio((luvio) => {
|
|
|
404
419
|
});
|
|
405
420
|
|
|
406
421
|
export { getStageDetails, getStageDetails_imperative };
|
|
407
|
-
// version: 1.
|
|
422
|
+
// version: 1.287.0-dev10-32adad9f2
|
package/src/raml/api.raml
CHANGED
|
@@ -54,40 +54,48 @@ types:
|
|
|
54
54
|
stepType:
|
|
55
55
|
description: Step type of current fulfillment step.
|
|
56
56
|
type: string
|
|
57
|
-
|
|
58
|
-
description: Output representation of
|
|
57
|
+
StageMgmtKanbanVisualization:
|
|
58
|
+
description: Output representation of Stage Management Kanban View
|
|
59
59
|
type: object
|
|
60
60
|
properties:
|
|
61
|
-
|
|
62
|
-
description: List of information about
|
|
61
|
+
stages:
|
|
62
|
+
description: List of information about stage value.
|
|
63
63
|
type: array
|
|
64
64
|
items:
|
|
65
|
-
type:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
type: string
|
|
69
|
-
StateMgmtKanbanVisualization:
|
|
70
|
-
description: Output representation of Stage Management Kanban View
|
|
65
|
+
type: StageValueInfo
|
|
66
|
+
StageValueInfo:
|
|
67
|
+
description: Output representation of Stage Value Info Object
|
|
71
68
|
type: object
|
|
72
69
|
properties:
|
|
73
|
-
|
|
74
|
-
description:
|
|
70
|
+
executedStepsCount:
|
|
71
|
+
description: Executed Steps Count.
|
|
72
|
+
type: integer
|
|
73
|
+
fulfillmentSteps:
|
|
74
|
+
description: List of information about fulfillment steps.
|
|
75
75
|
type: array
|
|
76
76
|
items:
|
|
77
|
-
type:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
body:
|
|
87
|
-
application/json:
|
|
88
|
-
type: StateMgmtKanbanVisualization
|
|
89
|
-
uriParameters:
|
|
90
|
-
recordId:
|
|
91
|
-
description: The Id of ReferenceObject record.
|
|
77
|
+
type: FulfillmentStepInfo
|
|
78
|
+
isActive:
|
|
79
|
+
description: Is Current State.
|
|
80
|
+
type: boolean
|
|
81
|
+
plannedStepsCount:
|
|
82
|
+
description: Unexecuted Steps Count.
|
|
83
|
+
type: integer
|
|
84
|
+
stageName:
|
|
85
|
+
description: Name of stage.
|
|
92
86
|
type: string
|
|
93
|
-
|
|
87
|
+
/connect/stage-management/kanban-view/{recordId}:
|
|
88
|
+
get:
|
|
89
|
+
displayName: getStageManagement
|
|
90
|
+
description: Get stage details
|
|
91
|
+
responses:
|
|
92
|
+
'200':
|
|
93
|
+
description: Success
|
|
94
|
+
body:
|
|
95
|
+
application/json:
|
|
96
|
+
type: StageMgmtKanbanVisualization
|
|
97
|
+
uriParameters:
|
|
98
|
+
recordId:
|
|
99
|
+
description: The Id of ReferenceObject record.
|
|
100
|
+
type: string
|
|
101
|
+
required: true
|
package/src/raml/luvio.raml
CHANGED
|
@@ -7,12 +7,11 @@ uses:
|
|
|
7
7
|
(luvio.keyPrefix): 'stage-management-connect-api'
|
|
8
8
|
|
|
9
9
|
types:
|
|
10
|
-
|
|
10
|
+
StageMgmtKanbanVisualization:
|
|
11
11
|
(luvio.ttl): 10000
|
|
12
12
|
(luvio.opaque): true
|
|
13
13
|
|
|
14
|
-
/connect:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
name: getStageDetails
|
|
14
|
+
/connect/stage-management/kanban-view/{recordId}:
|
|
15
|
+
get:
|
|
16
|
+
(luvio.adapter):
|
|
17
|
+
name: getStageDetails
|