@salesforce/lds-adapters-industries-constraints 1.308.0-dev1 → 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.
Files changed (24) hide show
  1. package/dist/es/es2018/industries-constraints.js +353 -125
  2. package/dist/es/es2018/types/src/generated/adapters/createConstraintVersion.d.ts +18 -0
  3. package/dist/es/es2018/types/src/generated/adapters/getConstraintVersion.d.ts +28 -0
  4. package/dist/es/es2018/types/src/generated/adapters/updateConstraintVersion.d.ts +19 -0
  5. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -2
  6. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +5 -4
  7. package/dist/es/es2018/types/src/generated/resources/{getConstraintActionsViewByExpressionSetDefinitionVersionId.d.ts → getIndustriesConstraintsVersionsByExpressionSetId.d.ts} +5 -5
  8. package/dist/es/es2018/types/src/generated/resources/getIndustriesConstraintsVersionsByExpressionSetIdAndExpressionSetVersionId.d.ts +16 -0
  9. package/dist/es/es2018/types/src/generated/resources/patchIndustriesConstraintsVersionsByExpressionSetId.d.ts +17 -0
  10. package/dist/es/es2018/types/src/generated/resources/patchIndustriesConstraintsVersionsByExpressionSetIdAndExpressionSetVersionId.d.ts +18 -0
  11. package/dist/es/es2018/types/src/generated/resources/{patchConstraintActionsUpdateByExpressionSetDefinitionVersionId.d.ts → postIndustriesConstraintsVersionsByExpressionSetId.d.ts} +4 -4
  12. package/dist/es/es2018/types/src/generated/resources/postIndustriesConstraintsVersionsByExpressionSetIdAndExpressionSetVersionId.d.ts +18 -0
  13. package/dist/es/es2018/types/src/generated/types/{ViewConstraintOutputRepresentation.d.ts → ConstraintVersionOutputRepresentation.d.ts} +8 -8
  14. package/dist/es/es2018/types/src/generated/types/CreateConstraintVersionInputRepresentation.d.ts +34 -0
  15. package/dist/es/es2018/types/src/generated/types/CreateConstraintVersionOutputRepresentation.d.ts +54 -0
  16. package/dist/es/es2018/types/src/generated/types/UpdateConstraintVersionInputRepresentation.d.ts +34 -0
  17. package/dist/es/es2018/types/src/generated/types/{ConstraintOutputRepresentation.d.ts → UpdateConstraintVersionOutputRepresentation.d.ts} +14 -14
  18. package/package.json +3 -3
  19. package/sfdc/index.js +362 -129
  20. package/src/raml/api.raml +125 -40
  21. package/src/raml/luvio.raml +21 -13
  22. package/dist/es/es2018/types/src/generated/adapters/getViewConstraint.d.ts +0 -27
  23. package/dist/es/es2018/types/src/generated/adapters/patchUpdateConstraint.d.ts +0 -18
  24. package/dist/es/es2018/types/src/generated/types/ConstraintInputRepresentation.d.ts +0 -34
package/src/raml/api.raml CHANGED
@@ -35,24 +35,37 @@ types:
35
35
  message:
36
36
  description: Error message from Constraint Service Response.
37
37
  type: string
38
- ConstraintInputRepresentation:
39
- description: Update Constraint Connect API input representation
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
45
  description:
46
- description: Constraint Model
46
+ description: Constraint Description
47
47
  type: string
48
48
  status:
49
49
  description: Status
50
50
  type: string
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
51
64
  enum:
52
65
  - Active
53
66
  - Inactive
54
- ConstraintOutputRepresentation:
55
- description: Update Constraint Connect API output
67
+ CreateConstraintVersionOutputRepresentation:
68
+ description: Create Constraint Version Connect API Output
56
69
  type: object
57
70
  properties:
58
71
  errors:
@@ -63,48 +76,120 @@ types:
63
76
  success:
64
77
  description: API request successfully completed
65
78
  type: boolean
66
- ViewConstraintOutputRepresentation:
67
- description: View Constraint Connect API output representation
79
+ versionId:
80
+ description: New constraint version ID
81
+ type: string
82
+ UpdateConstraintVersionInputRepresentation:
83
+ description: Update constraint input representation
68
84
  type: object
69
85
  properties:
70
86
  constraintModel:
71
87
  description: Constraint Model
72
88
  type: string
89
+ required: false # TODO hand rolled. W-16265940
73
90
  description:
74
- description: Constraint Description
91
+ description: Constraint Model
75
92
  type: string
93
+ required: false # TODO hand rolled. W-16265940
76
94
  status:
77
95
  description: Status
78
96
  type: string
79
- /constraint/actions/{expressionSetDefinitionVersionId}:
80
- /update:
81
- patch:
82
- displayName: patchUpdateConstraint
83
- description: Update a Constraint
84
- responses:
85
- '200':
86
- description: Success
87
- body:
88
- application/json:
89
- type: ConstraintOutputRepresentation
90
- body:
91
- application/json:
92
- type: ConstraintInputRepresentation
93
- (oas-body-name): constraintInput
94
- uriParameters:
95
- expressionSetDefinitionVersionId:
96
- type: string
97
- /view:
98
- get:
99
- displayName: getViewConstraint
100
- description: Get constraint model
101
- responses:
102
- '200':
103
- description: Success
104
- body:
105
- application/json:
106
- type: ViewConstraintOutputRepresentation
107
- uriParameters:
108
- expressionSetDefinitionVersionId:
109
- type: string
110
- required: true
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
182
+ body:
183
+ application/json:
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
@@ -11,23 +11,31 @@ types:
11
11
  ConstraintErrorResponseRepresentation:
12
12
  (luvio.ttl): 1000
13
13
  (luvio.opaque): true
14
- ConstraintOutputRepresentation:
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
- ViewConstraintOutputRepresentation:
21
+ UpdateConstraintVersionOutputRepresentation:
19
22
  (luvio.ttl): 1000
20
- (luvio.opaque): true
21
- /constraint/actions/{expressionSetDefinitionVersionId}:
22
- /update:
23
- patch:
24
- (luvio.adapter):
25
- name: patchUpdateConstraint
26
- uriParameters:
27
- expressionSetDefinitionVersionId:
28
- /view:
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}:
29
33
  get:
30
34
  (luvio.adapter):
31
- name: getViewConstraint
35
+ name: getConstraintVersion
36
+ patch:
37
+ (luvio.adapter):
38
+ name: updateConstraintVersion
32
39
  uriParameters:
33
- expressionSetDefinitionVersionId:
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_getConstraintActionsViewByExpressionSetDefinitionVersionId_ResourceRequestConfig } from '../resources/getConstraintActionsViewByExpressionSetDefinitionVersionId';
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_getConstraintActionsViewByExpressionSetDefinitionVersionId_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_getConstraintActionsViewByExpressionSetDefinitionVersionId_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_getConstraintActionsViewByExpressionSetDefinitionVersionId_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_patchConstraintActionsUpdateByExpressionSetDefinitionVersionId_ResourceRequestConfig } from '../resources/patchConstraintActionsUpdateByExpressionSetDefinitionVersionId';
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_patchConstraintActionsUpdateByExpressionSetDefinitionVersionId_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>;
@@ -1,34 +0,0 @@
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 = "a51f259e6b951d238b5ade6a975f9808";
3
- export declare function validate(obj: any, path?: string): TypeError | null;
4
- export declare const RepresentationType: string;
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;
6
- export declare const select: () => $64$luvio_engine_FragmentSelection;
7
- export declare function equals(existing: ConstraintInputRepresentationNormalized, incoming: ConstraintInputRepresentationNormalized): boolean;
8
- export declare const ingest: $64$luvio_engine_ResourceIngest;
9
- export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ConstraintInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
- /**
11
- * Update Constraint Connect API input representation
12
- *
13
- * Keys:
14
- * (none)
15
- */
16
- export interface ConstraintInputRepresentationNormalized {
17
- /** Constraint Model */
18
- constraintModel: string;
19
- /** Constraint Model */
20
- description: string;
21
- /** Status */
22
- status: string;
23
- }
24
- /**
25
- * Update Constraint Connect API input representation
26
- *
27
- * Keys:
28
- * (none)
29
- */
30
- export interface ConstraintInputRepresentation {
31
- constraintModel: string;
32
- description: string;
33
- status: string;
34
- }