@salesforce/lds-adapters-industries-stagemanagement 1.366.0 → 1.367.0
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 +66 -2
- package/dist/es/es2018/types/src/generated/types/FulfillmentStepInfo.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/StageTransitionEntryInfo.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/StageValueInfo.d.ts +5 -1
- package/package.json +4 -4
- package/sfdc/index.js +67 -3
- package/src/raml/api.raml +29 -0
|
@@ -80,7 +80,7 @@ function createLink(ref) {
|
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
function validate$
|
|
83
|
+
function validate$3(obj, path = 'FulfillmentStepInfo') {
|
|
84
84
|
const v_error = (() => {
|
|
85
85
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
86
86
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -113,6 +113,11 @@ function validate$2(obj, path = 'FulfillmentStepInfo') {
|
|
|
113
113
|
return new TypeError('Expected "defined" but received "' + typeof obj_details_prop + '" (at "' + path_details_prop + '")');
|
|
114
114
|
}
|
|
115
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
|
+
}
|
|
116
121
|
const obj_id = obj.id;
|
|
117
122
|
const path_id = path + '.id';
|
|
118
123
|
if (typeof obj_id !== 'string') {
|
|
@@ -128,6 +133,11 @@ function validate$2(obj, path = 'FulfillmentStepInfo') {
|
|
|
128
133
|
if (typeof obj_status !== 'string') {
|
|
129
134
|
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
130
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
|
+
}
|
|
131
141
|
const obj_stepType = obj.stepType;
|
|
132
142
|
const path_stepType = path + '.stepType';
|
|
133
143
|
if (typeof obj_stepType !== 'string') {
|
|
@@ -137,6 +147,45 @@ function validate$2(obj, path = 'FulfillmentStepInfo') {
|
|
|
137
147
|
return v_error === undefined ? null : v_error;
|
|
138
148
|
}
|
|
139
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_fulfillmentSteps = obj.fulfillmentSteps;
|
|
156
|
+
const path_fulfillmentSteps = path + '.fulfillmentSteps';
|
|
157
|
+
if (!ArrayIsArray(obj_fulfillmentSteps)) {
|
|
158
|
+
return new TypeError('Expected "array" but received "' + typeof obj_fulfillmentSteps + '" (at "' + path_fulfillmentSteps + '")');
|
|
159
|
+
}
|
|
160
|
+
for (let i = 0; i < obj_fulfillmentSteps.length; i++) {
|
|
161
|
+
const obj_fulfillmentSteps_item = obj_fulfillmentSteps[i];
|
|
162
|
+
const path_fulfillmentSteps_item = path_fulfillmentSteps + '[' + i + ']';
|
|
163
|
+
const referencepath_fulfillmentSteps_itemValidationError = validate$3(obj_fulfillmentSteps_item, path_fulfillmentSteps_item);
|
|
164
|
+
if (referencepath_fulfillmentSteps_itemValidationError !== null) {
|
|
165
|
+
let message = 'Object doesn\'t match FulfillmentStepInfo (at "' + path_fulfillmentSteps_item + '")\n';
|
|
166
|
+
message += referencepath_fulfillmentSteps_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
167
|
+
return new TypeError(message);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
const obj_name = obj.name;
|
|
171
|
+
const path_name = path + '.name';
|
|
172
|
+
if (typeof obj_name !== 'string') {
|
|
173
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
174
|
+
}
|
|
175
|
+
const obj_toStage = obj.toStage;
|
|
176
|
+
const path_toStage = path + '.toStage';
|
|
177
|
+
if (typeof obj_toStage !== 'string') {
|
|
178
|
+
return new TypeError('Expected "string" but received "' + typeof obj_toStage + '" (at "' + path_toStage + '")');
|
|
179
|
+
}
|
|
180
|
+
const obj_transitionId = obj.transitionId;
|
|
181
|
+
const path_transitionId = path + '.transitionId';
|
|
182
|
+
if (typeof obj_transitionId !== 'string') {
|
|
183
|
+
return new TypeError('Expected "string" but received "' + typeof obj_transitionId + '" (at "' + path_transitionId + '")');
|
|
184
|
+
}
|
|
185
|
+
})();
|
|
186
|
+
return v_error === undefined ? null : v_error;
|
|
187
|
+
}
|
|
188
|
+
|
|
140
189
|
function validate$1(obj, path = 'StageValueInfo') {
|
|
141
190
|
const v_error = (() => {
|
|
142
191
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -155,7 +204,7 @@ function validate$1(obj, path = 'StageValueInfo') {
|
|
|
155
204
|
for (let i = 0; i < obj_fulfillmentSteps.length; i++) {
|
|
156
205
|
const obj_fulfillmentSteps_item = obj_fulfillmentSteps[i];
|
|
157
206
|
const path_fulfillmentSteps_item = path_fulfillmentSteps + '[' + i + ']';
|
|
158
|
-
const referencepath_fulfillmentSteps_itemValidationError = validate$
|
|
207
|
+
const referencepath_fulfillmentSteps_itemValidationError = validate$3(obj_fulfillmentSteps_item, path_fulfillmentSteps_item);
|
|
159
208
|
if (referencepath_fulfillmentSteps_itemValidationError !== null) {
|
|
160
209
|
let message = 'Object doesn\'t match FulfillmentStepInfo (at "' + path_fulfillmentSteps_item + '")\n';
|
|
161
210
|
message += referencepath_fulfillmentSteps_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -177,6 +226,21 @@ function validate$1(obj, path = 'StageValueInfo') {
|
|
|
177
226
|
if (typeof obj_stageName !== 'string') {
|
|
178
227
|
return new TypeError('Expected "string" but received "' + typeof obj_stageName + '" (at "' + path_stageName + '")');
|
|
179
228
|
}
|
|
229
|
+
const obj_stageTransitions = obj.stageTransitions;
|
|
230
|
+
const path_stageTransitions = path + '.stageTransitions';
|
|
231
|
+
if (!ArrayIsArray(obj_stageTransitions)) {
|
|
232
|
+
return new TypeError('Expected "array" but received "' + typeof obj_stageTransitions + '" (at "' + path_stageTransitions + '")');
|
|
233
|
+
}
|
|
234
|
+
for (let i = 0; i < obj_stageTransitions.length; i++) {
|
|
235
|
+
const obj_stageTransitions_item = obj_stageTransitions[i];
|
|
236
|
+
const path_stageTransitions_item = path_stageTransitions + '[' + i + ']';
|
|
237
|
+
const referencepath_stageTransitions_itemValidationError = validate$2(obj_stageTransitions_item, path_stageTransitions_item);
|
|
238
|
+
if (referencepath_stageTransitions_itemValidationError !== null) {
|
|
239
|
+
let message = 'Object doesn\'t match StageTransitionEntryInfo (at "' + path_stageTransitions_item + '")\n';
|
|
240
|
+
message += referencepath_stageTransitions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
241
|
+
return new TypeError(message);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
180
244
|
})();
|
|
181
245
|
return v_error === undefined ? null : v_error;
|
|
182
246
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
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';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "2a618263c516c5022e6b405fe0b463d8";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: FulfillmentStepInfo, existing: FulfillmentStepInfoNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FulfillmentStepInfoNormalized;
|
|
@@ -22,12 +22,16 @@ export interface FulfillmentStepInfoNormalized {
|
|
|
22
22
|
details: {
|
|
23
23
|
[key: string]: unknown;
|
|
24
24
|
};
|
|
25
|
+
/** Display number for ordering fulfillment steps. */
|
|
26
|
+
displayNumber: number;
|
|
25
27
|
/** Id of fulfillment step. */
|
|
26
28
|
id: string;
|
|
27
29
|
/** Name of fulfillment step. */
|
|
28
30
|
name: string;
|
|
29
31
|
/** Status of current fulfillment step. */
|
|
30
32
|
status: string;
|
|
33
|
+
/** Reason for current status of current fulfillment step. */
|
|
34
|
+
statusReason: string;
|
|
31
35
|
/** Step type of current fulfillment step. */
|
|
32
36
|
stepType: string;
|
|
33
37
|
}
|
|
@@ -44,8 +48,10 @@ export interface FulfillmentStepInfo {
|
|
|
44
48
|
details: {
|
|
45
49
|
[key: string]: unknown;
|
|
46
50
|
};
|
|
51
|
+
displayNumber: number;
|
|
47
52
|
id: string;
|
|
48
53
|
name: string;
|
|
49
54
|
status: string;
|
|
55
|
+
statusReason: string;
|
|
50
56
|
stepType: string;
|
|
51
57
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { FulfillmentStepInfo as FulfillmentStepInfo_FulfillmentStepInfo } from './FulfillmentStepInfo';
|
|
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 = "45729ada4e425c5d0a34fa6ea576790c";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: StageTransitionEntryInfo, existing: StageTransitionEntryInfoNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): StageTransitionEntryInfoNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: StageTransitionEntryInfoNormalized, incoming: StageTransitionEntryInfoNormalized): boolean;
|
|
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: StageTransitionEntryInfo, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Output representation of Stage Transition Entry
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface StageTransitionEntryInfoNormalized {
|
|
18
|
+
/** List of fulfillment steps associated with this stage transition. */
|
|
19
|
+
fulfillmentSteps: Array<FulfillmentStepInfo_FulfillmentStepInfo>;
|
|
20
|
+
/** Name of the stage transition. */
|
|
21
|
+
name: string;
|
|
22
|
+
/** Target stage for this transition. */
|
|
23
|
+
toStage: string;
|
|
24
|
+
/** Id of the stage transition. */
|
|
25
|
+
transitionId: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Output representation of Stage Transition Entry
|
|
29
|
+
*
|
|
30
|
+
* Keys:
|
|
31
|
+
* (none)
|
|
32
|
+
*/
|
|
33
|
+
export interface StageTransitionEntryInfo {
|
|
34
|
+
fulfillmentSteps: Array<FulfillmentStepInfo_FulfillmentStepInfo>;
|
|
35
|
+
name: string;
|
|
36
|
+
toStage: string;
|
|
37
|
+
transitionId: string;
|
|
38
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FulfillmentStepInfo as FulfillmentStepInfo_FulfillmentStepInfo } from './FulfillmentStepInfo';
|
|
2
|
+
import { StageTransitionEntryInfo as StageTransitionEntryInfo_StageTransitionEntryInfo } from './StageTransitionEntryInfo';
|
|
2
3
|
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 = "
|
|
4
|
+
export declare const VERSION = "492ea8151dc16e6e770d6661dcd8038c";
|
|
4
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
6
|
export declare const RepresentationType: string;
|
|
6
7
|
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;
|
|
@@ -25,6 +26,8 @@ export interface StageValueInfoNormalized {
|
|
|
25
26
|
plannedStepsCount: number;
|
|
26
27
|
/** Name of stage. */
|
|
27
28
|
stageName: string;
|
|
29
|
+
/** List of stage transitions associated with this stage. */
|
|
30
|
+
stageTransitions: Array<StageTransitionEntryInfo_StageTransitionEntryInfo>;
|
|
28
31
|
}
|
|
29
32
|
/**
|
|
30
33
|
* Output representation of Stage Value Info Object
|
|
@@ -38,4 +41,5 @@ export interface StageValueInfo {
|
|
|
38
41
|
isActive: boolean;
|
|
39
42
|
plannedStepsCount: number;
|
|
40
43
|
stageName: string;
|
|
44
|
+
stageTransitions: Array<StageTransitionEntryInfo_StageTransitionEntryInfo>;
|
|
41
45
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-stagemanagement",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.367.0",
|
|
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.367.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
47
|
-
"@salesforce/lds-karma": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.367.0",
|
|
47
|
+
"@salesforce/lds-karma": "^1.367.0"
|
|
48
48
|
},
|
|
49
49
|
"nx": {
|
|
50
50
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -90,7 +90,7 @@ function createLink(ref) {
|
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
function validate$
|
|
93
|
+
function validate$3(obj, path = 'FulfillmentStepInfo') {
|
|
94
94
|
const v_error = (() => {
|
|
95
95
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
96
96
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -123,6 +123,11 @@ function validate$2(obj, path = 'FulfillmentStepInfo') {
|
|
|
123
123
|
return new TypeError('Expected "defined" but received "' + typeof obj_details_prop + '" (at "' + path_details_prop + '")');
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
+
const obj_displayNumber = obj.displayNumber;
|
|
127
|
+
const path_displayNumber = path + '.displayNumber';
|
|
128
|
+
if (typeof obj_displayNumber !== 'number' || (typeof obj_displayNumber === 'number' && Math.floor(obj_displayNumber) !== obj_displayNumber)) {
|
|
129
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_displayNumber + '" (at "' + path_displayNumber + '")');
|
|
130
|
+
}
|
|
126
131
|
const obj_id = obj.id;
|
|
127
132
|
const path_id = path + '.id';
|
|
128
133
|
if (typeof obj_id !== 'string') {
|
|
@@ -138,6 +143,11 @@ function validate$2(obj, path = 'FulfillmentStepInfo') {
|
|
|
138
143
|
if (typeof obj_status !== 'string') {
|
|
139
144
|
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
140
145
|
}
|
|
146
|
+
const obj_statusReason = obj.statusReason;
|
|
147
|
+
const path_statusReason = path + '.statusReason';
|
|
148
|
+
if (typeof obj_statusReason !== 'string') {
|
|
149
|
+
return new TypeError('Expected "string" but received "' + typeof obj_statusReason + '" (at "' + path_statusReason + '")');
|
|
150
|
+
}
|
|
141
151
|
const obj_stepType = obj.stepType;
|
|
142
152
|
const path_stepType = path + '.stepType';
|
|
143
153
|
if (typeof obj_stepType !== 'string') {
|
|
@@ -147,6 +157,45 @@ function validate$2(obj, path = 'FulfillmentStepInfo') {
|
|
|
147
157
|
return v_error === undefined ? null : v_error;
|
|
148
158
|
}
|
|
149
159
|
|
|
160
|
+
function validate$2(obj, path = 'StageTransitionEntryInfo') {
|
|
161
|
+
const v_error = (() => {
|
|
162
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
163
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
164
|
+
}
|
|
165
|
+
const obj_fulfillmentSteps = obj.fulfillmentSteps;
|
|
166
|
+
const path_fulfillmentSteps = path + '.fulfillmentSteps';
|
|
167
|
+
if (!ArrayIsArray(obj_fulfillmentSteps)) {
|
|
168
|
+
return new TypeError('Expected "array" but received "' + typeof obj_fulfillmentSteps + '" (at "' + path_fulfillmentSteps + '")');
|
|
169
|
+
}
|
|
170
|
+
for (let i = 0; i < obj_fulfillmentSteps.length; i++) {
|
|
171
|
+
const obj_fulfillmentSteps_item = obj_fulfillmentSteps[i];
|
|
172
|
+
const path_fulfillmentSteps_item = path_fulfillmentSteps + '[' + i + ']';
|
|
173
|
+
const referencepath_fulfillmentSteps_itemValidationError = validate$3(obj_fulfillmentSteps_item, path_fulfillmentSteps_item);
|
|
174
|
+
if (referencepath_fulfillmentSteps_itemValidationError !== null) {
|
|
175
|
+
let message = 'Object doesn\'t match FulfillmentStepInfo (at "' + path_fulfillmentSteps_item + '")\n';
|
|
176
|
+
message += referencepath_fulfillmentSteps_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
177
|
+
return new TypeError(message);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
const obj_name = obj.name;
|
|
181
|
+
const path_name = path + '.name';
|
|
182
|
+
if (typeof obj_name !== 'string') {
|
|
183
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
184
|
+
}
|
|
185
|
+
const obj_toStage = obj.toStage;
|
|
186
|
+
const path_toStage = path + '.toStage';
|
|
187
|
+
if (typeof obj_toStage !== 'string') {
|
|
188
|
+
return new TypeError('Expected "string" but received "' + typeof obj_toStage + '" (at "' + path_toStage + '")');
|
|
189
|
+
}
|
|
190
|
+
const obj_transitionId = obj.transitionId;
|
|
191
|
+
const path_transitionId = path + '.transitionId';
|
|
192
|
+
if (typeof obj_transitionId !== 'string') {
|
|
193
|
+
return new TypeError('Expected "string" but received "' + typeof obj_transitionId + '" (at "' + path_transitionId + '")');
|
|
194
|
+
}
|
|
195
|
+
})();
|
|
196
|
+
return v_error === undefined ? null : v_error;
|
|
197
|
+
}
|
|
198
|
+
|
|
150
199
|
function validate$1(obj, path = 'StageValueInfo') {
|
|
151
200
|
const v_error = (() => {
|
|
152
201
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -165,7 +214,7 @@ function validate$1(obj, path = 'StageValueInfo') {
|
|
|
165
214
|
for (let i = 0; i < obj_fulfillmentSteps.length; i++) {
|
|
166
215
|
const obj_fulfillmentSteps_item = obj_fulfillmentSteps[i];
|
|
167
216
|
const path_fulfillmentSteps_item = path_fulfillmentSteps + '[' + i + ']';
|
|
168
|
-
const referencepath_fulfillmentSteps_itemValidationError = validate$
|
|
217
|
+
const referencepath_fulfillmentSteps_itemValidationError = validate$3(obj_fulfillmentSteps_item, path_fulfillmentSteps_item);
|
|
169
218
|
if (referencepath_fulfillmentSteps_itemValidationError !== null) {
|
|
170
219
|
let message = 'Object doesn\'t match FulfillmentStepInfo (at "' + path_fulfillmentSteps_item + '")\n';
|
|
171
220
|
message += referencepath_fulfillmentSteps_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -187,6 +236,21 @@ function validate$1(obj, path = 'StageValueInfo') {
|
|
|
187
236
|
if (typeof obj_stageName !== 'string') {
|
|
188
237
|
return new TypeError('Expected "string" but received "' + typeof obj_stageName + '" (at "' + path_stageName + '")');
|
|
189
238
|
}
|
|
239
|
+
const obj_stageTransitions = obj.stageTransitions;
|
|
240
|
+
const path_stageTransitions = path + '.stageTransitions';
|
|
241
|
+
if (!ArrayIsArray(obj_stageTransitions)) {
|
|
242
|
+
return new TypeError('Expected "array" but received "' + typeof obj_stageTransitions + '" (at "' + path_stageTransitions + '")');
|
|
243
|
+
}
|
|
244
|
+
for (let i = 0; i < obj_stageTransitions.length; i++) {
|
|
245
|
+
const obj_stageTransitions_item = obj_stageTransitions[i];
|
|
246
|
+
const path_stageTransitions_item = path_stageTransitions + '[' + i + ']';
|
|
247
|
+
const referencepath_stageTransitions_itemValidationError = validate$2(obj_stageTransitions_item, path_stageTransitions_item);
|
|
248
|
+
if (referencepath_stageTransitions_itemValidationError !== null) {
|
|
249
|
+
let message = 'Object doesn\'t match StageTransitionEntryInfo (at "' + path_stageTransitions_item + '")\n';
|
|
250
|
+
message += referencepath_stageTransitions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
251
|
+
return new TypeError(message);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
190
254
|
})();
|
|
191
255
|
return v_error === undefined ? null : v_error;
|
|
192
256
|
}
|
|
@@ -419,4 +483,4 @@ withDefaultLuvio((luvio) => {
|
|
|
419
483
|
});
|
|
420
484
|
|
|
421
485
|
export { getStageDetails, getStageDetails_imperative };
|
|
422
|
-
// version: 1.
|
|
486
|
+
// version: 1.367.0-dc146bc62e
|
package/src/raml/api.raml
CHANGED
|
@@ -42,6 +42,9 @@ types:
|
|
|
42
42
|
properties:
|
|
43
43
|
//:
|
|
44
44
|
type: any
|
|
45
|
+
displayNumber:
|
|
46
|
+
description: Display number for ordering fulfillment steps.
|
|
47
|
+
type: integer
|
|
45
48
|
id:
|
|
46
49
|
description: Id of fulfillment step.
|
|
47
50
|
type: string
|
|
@@ -51,6 +54,9 @@ types:
|
|
|
51
54
|
status:
|
|
52
55
|
description: Status of current fulfillment step.
|
|
53
56
|
type: string
|
|
57
|
+
statusReason:
|
|
58
|
+
description: Reason for current status of current fulfillment step.
|
|
59
|
+
type: string
|
|
54
60
|
stepType:
|
|
55
61
|
description: Step type of current fulfillment step.
|
|
56
62
|
type: string
|
|
@@ -63,6 +69,24 @@ types:
|
|
|
63
69
|
type: array
|
|
64
70
|
items:
|
|
65
71
|
type: StageValueInfo
|
|
72
|
+
StageTransitionEntryInfo:
|
|
73
|
+
description: Output representation of Stage Transition Entry
|
|
74
|
+
type: object
|
|
75
|
+
properties:
|
|
76
|
+
fulfillmentSteps:
|
|
77
|
+
description: List of fulfillment steps associated with this stage transition.
|
|
78
|
+
type: array
|
|
79
|
+
items:
|
|
80
|
+
type: FulfillmentStepInfo
|
|
81
|
+
name:
|
|
82
|
+
description: Name of the stage transition.
|
|
83
|
+
type: string
|
|
84
|
+
toStage:
|
|
85
|
+
description: Target stage for this transition.
|
|
86
|
+
type: string
|
|
87
|
+
transitionId:
|
|
88
|
+
description: Id of the stage transition.
|
|
89
|
+
type: string
|
|
66
90
|
StageValueInfo:
|
|
67
91
|
description: Output representation of Stage Value Info Object
|
|
68
92
|
type: object
|
|
@@ -84,6 +108,11 @@ types:
|
|
|
84
108
|
stageName:
|
|
85
109
|
description: Name of stage.
|
|
86
110
|
type: string
|
|
111
|
+
stageTransitions:
|
|
112
|
+
description: List of stage transitions associated with this stage.
|
|
113
|
+
type: array
|
|
114
|
+
items:
|
|
115
|
+
type: StageTransitionEntryInfo
|
|
87
116
|
/connect/stage-management/kanban-view/{recordId}:
|
|
88
117
|
get:
|
|
89
118
|
displayName: getStageManagement
|