@salesforce/lds-adapters-industries-constraints 1.308.0-dev1 → 1.309.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-constraints.js +5 -5
- package/dist/es/es2018/types/src/generated/adapters/getViewConstraint.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/adapters/patchUpdateConstraint.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/resources/{patchConstraintActionsUpdateByExpressionSetDefinitionVersionId.d.ts → patchIndustriesConstraintActionsUpdateByExpressionSetDefinitionVersionId.d.ts} +3 -3
- package/dist/es/es2018/types/src/generated/types/ConstraintInputRepresentation.d.ts +7 -7
- package/package.json +3 -3
- package/sfdc/index.js +6 -6
- package/src/raml/api.raml +36 -32
- package/src/raml/luvio.raml +14 -13
- /package/dist/es/es2018/types/src/generated/resources/{getConstraintActionsViewByExpressionSetDefinitionVersionId.d.ts → getIndustriesConstraintActionsViewByExpressionSetDefinitionVersionId.d.ts} +0 -0
|
@@ -298,7 +298,7 @@ function createResourceRequest$1(config) {
|
|
|
298
298
|
const headers = {};
|
|
299
299
|
return {
|
|
300
300
|
baseUri: '/services/data/v62.0',
|
|
301
|
-
basePath: '/constraint/actions/' + config.urlParams.expressionSetDefinitionVersionId + '/update',
|
|
301
|
+
basePath: '/industries/constraint/actions/' + config.urlParams.expressionSetDefinitionVersionId + '/update',
|
|
302
302
|
method: 'patch',
|
|
303
303
|
body: config.body,
|
|
304
304
|
urlParams: config.urlParams,
|
|
@@ -311,9 +311,9 @@ function createResourceRequest$1(config) {
|
|
|
311
311
|
const adapterName$1 = 'patchUpdateConstraint';
|
|
312
312
|
const patchUpdateConstraint_ConfigPropertyMetadata = [
|
|
313
313
|
generateParamConfigMetadata('expressionSetDefinitionVersionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
314
|
-
generateParamConfigMetadata('constraintModel',
|
|
315
|
-
generateParamConfigMetadata('description',
|
|
316
|
-
generateParamConfigMetadata('status',
|
|
314
|
+
generateParamConfigMetadata('constraintModel', false, 2 /* Body */, 0 /* String */),
|
|
315
|
+
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
316
|
+
generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
|
|
317
317
|
];
|
|
318
318
|
const patchUpdateConstraint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, patchUpdateConstraint_ConfigPropertyMetadata);
|
|
319
319
|
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$2(patchUpdateConstraint_ConfigPropertyMetadata);
|
|
@@ -471,7 +471,7 @@ function createResourceRequest(config) {
|
|
|
471
471
|
const headers = {};
|
|
472
472
|
return {
|
|
473
473
|
baseUri: '/services/data/v62.0',
|
|
474
|
-
basePath: '/constraint/actions/' + config.urlParams.expressionSetDefinitionVersionId + '/view',
|
|
474
|
+
basePath: '/industries/constraint/actions/' + config.urlParams.expressionSetDefinitionVersionId + '/view',
|
|
475
475
|
method: 'get',
|
|
476
476
|
body: null,
|
|
477
477
|
urlParams: config.urlParams,
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
import { ResourceRequestConfig as
|
|
3
|
+
import { ResourceRequestConfig as resources_getIndustriesConstraintActionsViewByExpressionSetDefinitionVersionId_ResourceRequestConfig } from '../resources/getIndustriesConstraintActionsViewByExpressionSetDefinitionVersionId';
|
|
4
4
|
import { ViewConstraintOutputRepresentation as types_ViewConstraintOutputRepresentation_ViewConstraintOutputRepresentation } from '../types/ViewConstraintOutputRepresentation';
|
|
5
5
|
export declare const adapterName = "getViewConstraint";
|
|
6
6
|
export declare const getViewConstraint_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
@@ -8,15 +8,15 @@ export declare const getViewConstraint_ConfigPropertyNames: adapter$45$utils_Ada
|
|
|
8
8
|
export interface GetViewConstraintConfig {
|
|
9
9
|
expressionSetDefinitionVersionId: string;
|
|
10
10
|
}
|
|
11
|
-
export declare const createResourceParams: (config: GetViewConstraintConfig) =>
|
|
11
|
+
export declare const createResourceParams: (config: GetViewConstraintConfig) => resources_getIndustriesConstraintActionsViewByExpressionSetDefinitionVersionId_ResourceRequestConfig;
|
|
12
12
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetViewConstraintConfig): string;
|
|
13
13
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetViewConstraintConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetViewConstraintConfig>): adapter$45$utils_Untrusted<GetViewConstraintConfig>;
|
|
15
15
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetViewConstraintConfig | null;
|
|
16
16
|
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetViewConstraintConfig): $64$luvio_engine_Fragment;
|
|
17
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:
|
|
19
|
-
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetViewConstraintConfig, resourceParams:
|
|
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
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
21
|
export type BuildSnapshotContext = {
|
|
22
22
|
luvio: $64$luvio_engine_Luvio;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
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
2
|
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
-
import { ResourceRequestConfig as
|
|
3
|
+
import { ResourceRequestConfig as resources_patchIndustriesConstraintActionsUpdateByExpressionSetDefinitionVersionId_ResourceRequestConfig } from '../resources/patchIndustriesConstraintActionsUpdateByExpressionSetDefinitionVersionId';
|
|
4
4
|
import { ConstraintOutputRepresentation as types_ConstraintOutputRepresentation_ConstraintOutputRepresentation } from '../types/ConstraintOutputRepresentation';
|
|
5
5
|
export declare const adapterName = "patchUpdateConstraint";
|
|
6
6
|
export declare const patchUpdateConstraint_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
7
|
export declare const patchUpdateConstraint_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
8
|
export interface PatchUpdateConstraintConfig {
|
|
9
9
|
expressionSetDefinitionVersionId: string;
|
|
10
|
-
constraintModel
|
|
11
|
-
description
|
|
12
|
-
status
|
|
10
|
+
constraintModel?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
status?: string;
|
|
13
13
|
}
|
|
14
|
-
export declare const createResourceParams: (config: PatchUpdateConstraintConfig) =>
|
|
14
|
+
export declare const createResourceParams: (config: PatchUpdateConstraintConfig) => resources_patchIndustriesConstraintActionsUpdateByExpressionSetDefinitionVersionId_ResourceRequestConfig;
|
|
15
15
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<PatchUpdateConstraintConfig>): adapter$45$utils_Untrusted<PatchUpdateConstraintConfig>;
|
|
16
16
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): PatchUpdateConstraintConfig | null;
|
|
17
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>>;
|
|
@@ -5,9 +5,9 @@ export interface ResourceRequestConfig {
|
|
|
5
5
|
expressionSetDefinitionVersionId: string;
|
|
6
6
|
};
|
|
7
7
|
body: {
|
|
8
|
-
constraintModel
|
|
9
|
-
description
|
|
10
|
-
status
|
|
8
|
+
constraintModel?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
status?: string;
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -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 = "1670aec57fce67d5e6ab1b08585a411e";
|
|
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: ConstraintInputRepresentation, existing: ConstraintInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ConstraintInputRepresentationNormalized;
|
|
@@ -15,11 +15,11 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
15
15
|
*/
|
|
16
16
|
export interface ConstraintInputRepresentationNormalized {
|
|
17
17
|
/** Constraint Model */
|
|
18
|
-
constraintModel
|
|
18
|
+
constraintModel?: string;
|
|
19
19
|
/** Constraint Model */
|
|
20
|
-
description
|
|
20
|
+
description?: string;
|
|
21
21
|
/** Status */
|
|
22
|
-
status
|
|
22
|
+
status?: string;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* Update Constraint Connect API input representation
|
|
@@ -28,7 +28,7 @@ export interface ConstraintInputRepresentationNormalized {
|
|
|
28
28
|
* (none)
|
|
29
29
|
*/
|
|
30
30
|
export interface ConstraintInputRepresentation {
|
|
31
|
-
constraintModel
|
|
32
|
-
description
|
|
33
|
-
status
|
|
31
|
+
constraintModel?: string;
|
|
32
|
+
description?: string;
|
|
33
|
+
status?: string;
|
|
34
34
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-constraints",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.309.0",
|
|
4
4
|
"description": "Read/Update CML API",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/industries-constraints.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.309.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.309.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -209,7 +209,7 @@ function createResourceRequest$1(config) {
|
|
|
209
209
|
const headers = {};
|
|
210
210
|
return {
|
|
211
211
|
baseUri: '/services/data/v62.0',
|
|
212
|
-
basePath: '/constraint/actions/' + config.urlParams.expressionSetDefinitionVersionId + '/view',
|
|
212
|
+
basePath: '/industries/constraint/actions/' + config.urlParams.expressionSetDefinitionVersionId + '/view',
|
|
213
213
|
method: 'get',
|
|
214
214
|
body: null,
|
|
215
215
|
urlParams: config.urlParams,
|
|
@@ -511,7 +511,7 @@ function createResourceRequest(config) {
|
|
|
511
511
|
const headers = {};
|
|
512
512
|
return {
|
|
513
513
|
baseUri: '/services/data/v62.0',
|
|
514
|
-
basePath: '/constraint/actions/' + config.urlParams.expressionSetDefinitionVersionId + '/update',
|
|
514
|
+
basePath: '/industries/constraint/actions/' + config.urlParams.expressionSetDefinitionVersionId + '/update',
|
|
515
515
|
method: 'patch',
|
|
516
516
|
body: config.body,
|
|
517
517
|
urlParams: config.urlParams,
|
|
@@ -524,9 +524,9 @@ function createResourceRequest(config) {
|
|
|
524
524
|
const adapterName = 'patchUpdateConstraint';
|
|
525
525
|
const patchUpdateConstraint_ConfigPropertyMetadata = [
|
|
526
526
|
generateParamConfigMetadata('expressionSetDefinitionVersionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
527
|
-
generateParamConfigMetadata('constraintModel',
|
|
528
|
-
generateParamConfigMetadata('description',
|
|
529
|
-
generateParamConfigMetadata('status',
|
|
527
|
+
generateParamConfigMetadata('constraintModel', false, 2 /* Body */, 0 /* String */),
|
|
528
|
+
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
529
|
+
generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
|
|
530
530
|
];
|
|
531
531
|
const patchUpdateConstraint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, patchUpdateConstraint_ConfigPropertyMetadata);
|
|
532
532
|
const createResourceParams = /*#__PURE__*/ createResourceParams$2(patchUpdateConstraint_ConfigPropertyMetadata);
|
|
@@ -609,4 +609,4 @@ withDefaultLuvio((luvio) => {
|
|
|
609
609
|
});
|
|
610
610
|
|
|
611
611
|
export { getViewConstraint, getViewConstraint_imperative, patchUpdateConstraint };
|
|
612
|
-
// version: 1.
|
|
612
|
+
// version: 1.309.0-3ac0e022f5
|
package/src/raml/api.raml
CHANGED
|
@@ -42,12 +42,15 @@ types:
|
|
|
42
42
|
constraintModel:
|
|
43
43
|
description: Constraint Model
|
|
44
44
|
type: string
|
|
45
|
+
required: false
|
|
45
46
|
description:
|
|
46
47
|
description: Constraint Model
|
|
47
48
|
type: string
|
|
49
|
+
required: false
|
|
48
50
|
status:
|
|
49
51
|
description: Status
|
|
50
52
|
type: string
|
|
53
|
+
required: false
|
|
51
54
|
enum:
|
|
52
55
|
- Active
|
|
53
56
|
- Inactive
|
|
@@ -76,35 +79,36 @@ types:
|
|
|
76
79
|
status:
|
|
77
80
|
description: Status
|
|
78
81
|
type: string
|
|
79
|
-
/
|
|
80
|
-
/
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
82
|
+
/industries:
|
|
83
|
+
/constraint/actions/{expressionSetDefinitionVersionId}:
|
|
84
|
+
/update:
|
|
85
|
+
patch:
|
|
86
|
+
displayName: patchUpdateConstraint
|
|
87
|
+
description: Update a Constraint
|
|
88
|
+
responses:
|
|
89
|
+
'200':
|
|
90
|
+
description: Success
|
|
91
|
+
body:
|
|
92
|
+
application/json:
|
|
93
|
+
type: ConstraintOutputRepresentation
|
|
94
|
+
body:
|
|
95
|
+
application/json:
|
|
96
|
+
type: ConstraintInputRepresentation
|
|
97
|
+
(oas-body-name): constraintInput
|
|
98
|
+
uriParameters:
|
|
99
|
+
expressionSetDefinitionVersionId:
|
|
100
|
+
type: string
|
|
101
|
+
/view:
|
|
102
|
+
get:
|
|
103
|
+
displayName: getViewConstraint
|
|
104
|
+
description: Get constraint model
|
|
105
|
+
responses:
|
|
106
|
+
'200':
|
|
107
|
+
description: Success
|
|
108
|
+
body:
|
|
109
|
+
application/json:
|
|
110
|
+
type: ViewConstraintOutputRepresentation
|
|
111
|
+
uriParameters:
|
|
112
|
+
expressionSetDefinitionVersionId:
|
|
113
|
+
type: string
|
|
114
|
+
required: true
|
package/src/raml/luvio.raml
CHANGED
|
@@ -18,16 +18,17 @@ types:
|
|
|
18
18
|
ViewConstraintOutputRepresentation:
|
|
19
19
|
(luvio.ttl): 1000
|
|
20
20
|
(luvio.opaque): true
|
|
21
|
-
/
|
|
22
|
-
/
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
21
|
+
/industries:
|
|
22
|
+
/constraint/actions/{expressionSetDefinitionVersionId}:
|
|
23
|
+
/update:
|
|
24
|
+
patch:
|
|
25
|
+
(luvio.adapter):
|
|
26
|
+
name: patchUpdateConstraint
|
|
27
|
+
uriParameters:
|
|
28
|
+
expressionSetDefinitionVersionId:
|
|
29
|
+
/view:
|
|
30
|
+
get:
|
|
31
|
+
(luvio.adapter):
|
|
32
|
+
name: getViewConstraint
|
|
33
|
+
uriParameters:
|
|
34
|
+
expressionSetDefinitionVersionId:
|