@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.
Files changed (23) hide show
  1. package/dist/es/es2018/industries-constraints.js +356 -128
  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/{getIndustriesConstraintActionsViewByExpressionSetDefinitionVersionId.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/{patchIndustriesConstraintActionsUpdateByExpressionSetDefinitionVersionId.d.ts → patchIndustriesConstraintsVersionsByExpressionSetId.d.ts} +4 -4
  10. package/dist/es/es2018/types/src/generated/resources/patchIndustriesConstraintsVersionsByExpressionSetIdAndExpressionSetVersionId.d.ts +18 -0
  11. package/dist/es/es2018/types/src/generated/resources/postIndustriesConstraintsVersionsByExpressionSetId.d.ts +17 -0
  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/{ConstraintInputRepresentation.d.ts → UpdateConstraintVersionInputRepresentation.d.ts} +8 -8
  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 +359 -126
  20. package/src/raml/api.raml +123 -42
  21. package/src/raml/luvio.raml +24 -17
  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
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
- 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
- required: false
46
45
  description:
47
- description: Constraint Model
46
+ description: Constraint Description
48
47
  type: string
49
- required: false
50
48
  status:
51
49
  description: Status
52
50
  type: string
53
- required: false
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
- ConstraintOutputRepresentation:
58
- description: Update Constraint Connect API output
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
- ViewConstraintOutputRepresentation:
70
- 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
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 Description
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
- /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
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: 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
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,24 +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
- /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:
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>;