@salesforce/lds-adapters-industries-constraints 1.308.0-dev2 → 1.308.0-dev3
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-constraints.js +356 -128
- package/dist/es/es2018/types/src/generated/adapters/createConstraintVersion.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/adapters/getConstraintVersion.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/updateConstraintVersion.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +5 -4
- package/dist/es/es2018/types/src/generated/resources/{getIndustriesConstraintActionsViewByExpressionSetDefinitionVersionId.d.ts → getIndustriesConstraintsVersionsByExpressionSetId.d.ts} +5 -5
- package/dist/es/es2018/types/src/generated/resources/getIndustriesConstraintsVersionsByExpressionSetIdAndExpressionSetVersionId.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/{patchIndustriesConstraintActionsUpdateByExpressionSetDefinitionVersionId.d.ts → patchIndustriesConstraintsVersionsByExpressionSetId.d.ts} +4 -4
- package/dist/es/es2018/types/src/generated/resources/patchIndustriesConstraintsVersionsByExpressionSetIdAndExpressionSetVersionId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/postIndustriesConstraintsVersionsByExpressionSetId.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/postIndustriesConstraintsVersionsByExpressionSetIdAndExpressionSetVersionId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/types/{ViewConstraintOutputRepresentation.d.ts → ConstraintVersionOutputRepresentation.d.ts} +8 -8
- package/dist/es/es2018/types/src/generated/types/CreateConstraintVersionInputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/CreateConstraintVersionOutputRepresentation.d.ts +54 -0
- package/dist/es/es2018/types/src/generated/types/{ConstraintInputRepresentation.d.ts → UpdateConstraintVersionInputRepresentation.d.ts} +8 -8
- package/dist/es/es2018/types/src/generated/types/{ConstraintOutputRepresentation.d.ts → UpdateConstraintVersionOutputRepresentation.d.ts} +14 -14
- package/package.json +3 -3
- package/sfdc/index.js +359 -126
- package/src/raml/api.raml +123 -42
- package/src/raml/luvio.raml +24 -17
- package/dist/es/es2018/types/src/generated/adapters/getViewConstraint.d.ts +0 -27
- package/dist/es/es2018/types/src/generated/adapters/patchUpdateConstraint.d.ts +0 -18
package/src/raml/api.raml
CHANGED
|
@@ -35,27 +35,37 @@ types:
|
|
|
35
35
|
message:
|
|
36
36
|
description: Error message from Constraint Service Response.
|
|
37
37
|
type: string
|
|
38
|
-
|
|
39
|
-
description:
|
|
38
|
+
ConstraintVersionOutputRepresentation:
|
|
39
|
+
description: Constraint Version Connect API output representation
|
|
40
40
|
type: object
|
|
41
41
|
properties:
|
|
42
42
|
constraintModel:
|
|
43
43
|
description: Constraint Model
|
|
44
44
|
type: string
|
|
45
|
-
required: false
|
|
46
45
|
description:
|
|
47
|
-
description: Constraint
|
|
46
|
+
description: Constraint Description
|
|
48
47
|
type: string
|
|
49
|
-
required: false
|
|
50
48
|
status:
|
|
51
49
|
description: Status
|
|
52
50
|
type: string
|
|
53
|
-
|
|
51
|
+
CreateConstraintVersionInputRepresentation:
|
|
52
|
+
description: Create new constraint input representation
|
|
53
|
+
type: object
|
|
54
|
+
properties:
|
|
55
|
+
constraintModel:
|
|
56
|
+
description: Constraint model of the version
|
|
57
|
+
type: string
|
|
58
|
+
description:
|
|
59
|
+
description: Description of the constraint version
|
|
60
|
+
type: string
|
|
61
|
+
status:
|
|
62
|
+
description: Status of the constraint version
|
|
63
|
+
type: string
|
|
54
64
|
enum:
|
|
55
65
|
- Active
|
|
56
66
|
- Inactive
|
|
57
|
-
|
|
58
|
-
description:
|
|
67
|
+
CreateConstraintVersionOutputRepresentation:
|
|
68
|
+
description: Create Constraint Version Connect API Output
|
|
59
69
|
type: object
|
|
60
70
|
properties:
|
|
61
71
|
errors:
|
|
@@ -66,49 +76,120 @@ types:
|
|
|
66
76
|
success:
|
|
67
77
|
description: API request successfully completed
|
|
68
78
|
type: boolean
|
|
69
|
-
|
|
70
|
-
|
|
79
|
+
versionId:
|
|
80
|
+
description: New constraint version ID
|
|
81
|
+
type: string
|
|
82
|
+
UpdateConstraintVersionInputRepresentation:
|
|
83
|
+
description: Update constraint input representation
|
|
71
84
|
type: object
|
|
72
85
|
properties:
|
|
73
86
|
constraintModel:
|
|
74
87
|
description: Constraint Model
|
|
75
88
|
type: string
|
|
89
|
+
required: false # TODO hand rolled. W-16265940
|
|
76
90
|
description:
|
|
77
|
-
description: Constraint
|
|
91
|
+
description: Constraint Model
|
|
78
92
|
type: string
|
|
93
|
+
required: false # TODO hand rolled. W-16265940
|
|
79
94
|
status:
|
|
80
95
|
description: Status
|
|
81
96
|
type: string
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
97
|
+
required: false # TODO hand rolled. W-16265940
|
|
98
|
+
enum:
|
|
99
|
+
- Active
|
|
100
|
+
- Inactive
|
|
101
|
+
UpdateConstraintVersionOutputRepresentation:
|
|
102
|
+
description: Update Constraint Version Connect API Output
|
|
103
|
+
type: object
|
|
104
|
+
properties:
|
|
105
|
+
errors:
|
|
106
|
+
description: List of errors encountered during the API processing.
|
|
107
|
+
type: array
|
|
108
|
+
items:
|
|
109
|
+
type: ConstraintErrorResponseRepresentation
|
|
110
|
+
success:
|
|
111
|
+
description: API request successfully completed
|
|
112
|
+
type: boolean
|
|
113
|
+
/industries/constraints/{expressionSetId}/versions:
|
|
114
|
+
get:
|
|
115
|
+
displayName: getConstraintVersion
|
|
116
|
+
description: Get a constraint version
|
|
117
|
+
responses:
|
|
118
|
+
'200':
|
|
119
|
+
description: Success
|
|
120
|
+
body:
|
|
121
|
+
application/json:
|
|
122
|
+
type: ConstraintVersionOutputRepresentation
|
|
123
|
+
patch:
|
|
124
|
+
displayName: patchConstraintVersion
|
|
125
|
+
description: Patch a constraint version
|
|
126
|
+
responses:
|
|
127
|
+
'200':
|
|
128
|
+
description: Success
|
|
129
|
+
body:
|
|
130
|
+
application/json:
|
|
131
|
+
type: UpdateConstraintVersionOutputRepresentation
|
|
132
|
+
body:
|
|
133
|
+
application/json:
|
|
134
|
+
type: UpdateConstraintVersionInputRepresentation
|
|
135
|
+
(oas-body-name): constraintInput
|
|
136
|
+
post:
|
|
137
|
+
displayName: postConstraintVersion
|
|
138
|
+
description: Create a new constraint version
|
|
139
|
+
responses:
|
|
140
|
+
'200':
|
|
141
|
+
description: Success
|
|
142
|
+
body:
|
|
143
|
+
application/json:
|
|
144
|
+
type: CreateConstraintVersionOutputRepresentation
|
|
145
|
+
body:
|
|
146
|
+
application/json:
|
|
147
|
+
type: CreateConstraintVersionInputRepresentation
|
|
148
|
+
(oas-body-name): constraintInput
|
|
149
|
+
uriParameters:
|
|
150
|
+
expressionSetId:
|
|
151
|
+
type: string
|
|
152
|
+
required: true
|
|
153
|
+
/industries/constraints/{expressionSetId}/versions/{expressionSetVersionId}:
|
|
154
|
+
get:
|
|
155
|
+
displayName: getConstraintVersion
|
|
156
|
+
description: Get a constraint version
|
|
157
|
+
responses:
|
|
158
|
+
'200':
|
|
159
|
+
description: Success
|
|
160
|
+
body:
|
|
161
|
+
application/json:
|
|
162
|
+
type: ConstraintVersionOutputRepresentation
|
|
163
|
+
patch:
|
|
164
|
+
displayName: patchConstraintVersion
|
|
165
|
+
description: Patch a constraint version
|
|
166
|
+
responses:
|
|
167
|
+
'200':
|
|
168
|
+
description: Success
|
|
169
|
+
body:
|
|
170
|
+
application/json:
|
|
171
|
+
type: UpdateConstraintVersionOutputRepresentation
|
|
172
|
+
body:
|
|
173
|
+
application/json:
|
|
174
|
+
type: UpdateConstraintVersionInputRepresentation
|
|
175
|
+
(oas-body-name): constraintInput
|
|
176
|
+
post:
|
|
177
|
+
displayName: postConstraintVersion
|
|
178
|
+
description: Create a new constraint version
|
|
179
|
+
responses:
|
|
180
|
+
'200':
|
|
181
|
+
description: Success
|
|
94
182
|
body:
|
|
95
183
|
application/json:
|
|
96
|
-
type:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
body:
|
|
109
|
-
application/json:
|
|
110
|
-
type: ViewConstraintOutputRepresentation
|
|
111
|
-
uriParameters:
|
|
112
|
-
expressionSetDefinitionVersionId:
|
|
113
|
-
type: string
|
|
114
|
-
required: true
|
|
184
|
+
type: CreateConstraintVersionOutputRepresentation
|
|
185
|
+
body:
|
|
186
|
+
application/json:
|
|
187
|
+
type: CreateConstraintVersionInputRepresentation
|
|
188
|
+
(oas-body-name): constraintInput
|
|
189
|
+
uriParameters:
|
|
190
|
+
expressionSetId:
|
|
191
|
+
type: string
|
|
192
|
+
required: true
|
|
193
|
+
expressionSetVersionId:
|
|
194
|
+
type: string
|
|
195
|
+
required: true
|
package/src/raml/luvio.raml
CHANGED
|
@@ -11,24 +11,31 @@ types:
|
|
|
11
11
|
ConstraintErrorResponseRepresentation:
|
|
12
12
|
(luvio.ttl): 1000
|
|
13
13
|
(luvio.opaque): true
|
|
14
|
-
|
|
14
|
+
ConstraintVersionOutputRepresentation:
|
|
15
|
+
(luvio.ttl): 1000
|
|
16
|
+
(luvio.opaque): true
|
|
17
|
+
CreateConstraintVersionOutputRepresentation:
|
|
15
18
|
(luvio.ttl): 1000
|
|
16
19
|
(luvio.key):
|
|
17
20
|
success: success
|
|
18
|
-
|
|
21
|
+
UpdateConstraintVersionOutputRepresentation:
|
|
19
22
|
(luvio.ttl): 1000
|
|
20
|
-
(luvio.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
23
|
+
(luvio.key):
|
|
24
|
+
success: success
|
|
25
|
+
|
|
26
|
+
/industries/constraints/{expressionSetId}/versions:
|
|
27
|
+
post:
|
|
28
|
+
(luvio.adapter):
|
|
29
|
+
name: createConstraintVersion
|
|
30
|
+
uriParameters:
|
|
31
|
+
expressionSetId:
|
|
32
|
+
/{expressionSetVersionId}:
|
|
33
|
+
get:
|
|
34
|
+
(luvio.adapter):
|
|
35
|
+
name: getConstraintVersion
|
|
36
|
+
patch:
|
|
37
|
+
(luvio.adapter):
|
|
38
|
+
name: updateConstraintVersion
|
|
39
|
+
uriParameters:
|
|
40
|
+
expressionSetId:
|
|
41
|
+
expressionSetVersionId:
|
|
@@ -1,27 +0,0 @@
|
|
|
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_getIndustriesConstraintActionsViewByExpressionSetDefinitionVersionId_ResourceRequestConfig } from '../resources/getIndustriesConstraintActionsViewByExpressionSetDefinitionVersionId';
|
|
4
|
-
import { ViewConstraintOutputRepresentation as types_ViewConstraintOutputRepresentation_ViewConstraintOutputRepresentation } from '../types/ViewConstraintOutputRepresentation';
|
|
5
|
-
export declare const adapterName = "getViewConstraint";
|
|
6
|
-
export declare const getViewConstraint_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
-
export declare const getViewConstraint_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
-
export interface GetViewConstraintConfig {
|
|
9
|
-
expressionSetDefinitionVersionId: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const createResourceParams: (config: GetViewConstraintConfig) => resources_getIndustriesConstraintActionsViewByExpressionSetDefinitionVersionId_ResourceRequestConfig;
|
|
12
|
-
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetViewConstraintConfig): string;
|
|
13
|
-
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetViewConstraintConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
|
-
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetViewConstraintConfig>): adapter$45$utils_Untrusted<GetViewConstraintConfig>;
|
|
15
|
-
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetViewConstraintConfig | null;
|
|
16
|
-
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetViewConstraintConfig): $64$luvio_engine_Fragment;
|
|
17
|
-
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetViewConstraintConfig): $64$luvio_engine_Snapshot<types_ViewConstraintOutputRepresentation_ViewConstraintOutputRepresentation, any>;
|
|
18
|
-
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetViewConstraintConfig, resourceParams: resources_getIndustriesConstraintActionsViewByExpressionSetDefinitionVersionId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ViewConstraintOutputRepresentation_ViewConstraintOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_ViewConstraintOutputRepresentation_ViewConstraintOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ViewConstraintOutputRepresentation_ViewConstraintOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ViewConstraintOutputRepresentation_ViewConstraintOutputRepresentation, any>>;
|
|
19
|
-
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetViewConstraintConfig, resourceParams: resources_getIndustriesConstraintActionsViewByExpressionSetDefinitionVersionId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
20
|
-
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetViewConstraintConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_ViewConstraintOutputRepresentation_ViewConstraintOutputRepresentation, any>>;
|
|
21
|
-
export type BuildSnapshotContext = {
|
|
22
|
-
luvio: $64$luvio_engine_Luvio;
|
|
23
|
-
config: GetViewConstraintConfig;
|
|
24
|
-
};
|
|
25
|
-
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_ViewConstraintOutputRepresentation_ViewConstraintOutputRepresentation, any>>;
|
|
26
|
-
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_ViewConstraintOutputRepresentation_ViewConstraintOutputRepresentation>): $64$luvio_engine_Snapshot<types_ViewConstraintOutputRepresentation_ViewConstraintOutputRepresentation, any>;
|
|
27
|
-
export declare const getViewConstraintAdapterFactory: $64$luvio_engine_AdapterFactory<GetViewConstraintConfig, types_ViewConstraintOutputRepresentation_ViewConstraintOutputRepresentation>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, 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_patchIndustriesConstraintActionsUpdateByExpressionSetDefinitionVersionId_ResourceRequestConfig } from '../resources/patchIndustriesConstraintActionsUpdateByExpressionSetDefinitionVersionId';
|
|
4
|
-
import { ConstraintOutputRepresentation as types_ConstraintOutputRepresentation_ConstraintOutputRepresentation } from '../types/ConstraintOutputRepresentation';
|
|
5
|
-
export declare const adapterName = "patchUpdateConstraint";
|
|
6
|
-
export declare const patchUpdateConstraint_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
-
export declare const patchUpdateConstraint_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
-
export interface PatchUpdateConstraintConfig {
|
|
9
|
-
expressionSetDefinitionVersionId: string;
|
|
10
|
-
constraintModel?: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
status?: string;
|
|
13
|
-
}
|
|
14
|
-
export declare const createResourceParams: (config: PatchUpdateConstraintConfig) => resources_patchIndustriesConstraintActionsUpdateByExpressionSetDefinitionVersionId_ResourceRequestConfig;
|
|
15
|
-
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<PatchUpdateConstraintConfig>): adapter$45$utils_Untrusted<PatchUpdateConstraintConfig>;
|
|
16
|
-
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): PatchUpdateConstraintConfig | null;
|
|
17
|
-
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: PatchUpdateConstraintConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_ConstraintOutputRepresentation_ConstraintOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ConstraintOutputRepresentation_ConstraintOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ConstraintOutputRepresentation_ConstraintOutputRepresentation, any>>;
|
|
18
|
-
export declare const patchUpdateConstraintAdapterFactory: $64$luvio_engine_AdapterFactory<PatchUpdateConstraintConfig, types_ConstraintOutputRepresentation_ConstraintOutputRepresentation>;
|