@salesforce/lds-adapters-industries-constraints 0.1.0-dev1

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 (26) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/industries-constraints.js +798 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
  4. package/dist/es/es2018/types/src/generated/adapters/createConstraintVersion.d.ts +18 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getConstraintVersion.d.ts +28 -0
  6. package/dist/es/es2018/types/src/generated/adapters/updateConstraintVersion.d.ts +19 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
  8. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +5 -0
  9. package/dist/es/es2018/types/src/generated/resources/getIndustriesConstraintsVersionsByExpressionSetId.d.ts +15 -0
  10. package/dist/es/es2018/types/src/generated/resources/getIndustriesConstraintsVersionsByExpressionSetIdAndExpressionSetVersionId.d.ts +16 -0
  11. package/dist/es/es2018/types/src/generated/resources/patchIndustriesConstraintsVersionsByExpressionSetId.d.ts +17 -0
  12. package/dist/es/es2018/types/src/generated/resources/patchIndustriesConstraintsVersionsByExpressionSetIdAndExpressionSetVersionId.d.ts +18 -0
  13. package/dist/es/es2018/types/src/generated/resources/postIndustriesConstraintsVersionsByExpressionSetId.d.ts +17 -0
  14. package/dist/es/es2018/types/src/generated/resources/postIndustriesConstraintsVersionsByExpressionSetIdAndExpressionSetVersionId.d.ts +18 -0
  15. package/dist/es/es2018/types/src/generated/types/ConstraintErrorResponseRepresentation.d.ts +32 -0
  16. package/dist/es/es2018/types/src/generated/types/ConstraintVersionOutputRepresentation.d.ts +35 -0
  17. package/dist/es/es2018/types/src/generated/types/CreateConstraintVersionInputRepresentation.d.ts +34 -0
  18. package/dist/es/es2018/types/src/generated/types/CreateConstraintVersionOutputRepresentation.d.ts +54 -0
  19. package/dist/es/es2018/types/src/generated/types/UpdateConstraintVersionInputRepresentation.d.ts +34 -0
  20. package/dist/es/es2018/types/src/generated/types/UpdateConstraintVersionOutputRepresentation.d.ts +51 -0
  21. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  22. package/package.json +66 -0
  23. package/sfdc/index.d.ts +1 -0
  24. package/sfdc/index.js +845 -0
  25. package/src/raml/api.raml +195 -0
  26. package/src/raml/luvio.raml +41 -0
@@ -0,0 +1,195 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '62.0'
6
+ mediaType: application/json
7
+ protocols:
8
+ - https
9
+ baseUri: /services/data/v66.0
10
+ securitySchemes:
11
+ OAuth2:
12
+ type: OAuth 2.0
13
+ settings:
14
+ authorizationUri: https://example.com/oauth/authorize
15
+ accessTokenUri: ''
16
+ authorizationGrants:
17
+ - implicit
18
+ annotationTypes:
19
+ oas-readOnly:
20
+ type: boolean
21
+ allowedTargets: TypeDeclaration
22
+ oas-collectionFormat:
23
+ type: string
24
+ oas-body-name:
25
+ type: string
26
+ allowedTargets: TypeDeclaration
27
+ types:
28
+ ConstraintErrorResponseRepresentation:
29
+ description: Constraint Service Error Response representation
30
+ type: object
31
+ properties:
32
+ errorCode:
33
+ description: Error Code from Constraint Service Response. For example, INVALID_INPUT_ERROR,
34
+ type: string
35
+ message:
36
+ description: Error message from Constraint Service Response.
37
+ type: string
38
+ ConstraintVersionOutputRepresentation:
39
+ description: Constraint Version Connect API output representation
40
+ type: object
41
+ properties:
42
+ constraintModel:
43
+ description: Constraint Model
44
+ type: string
45
+ description:
46
+ description: Constraint Description
47
+ type: string
48
+ status:
49
+ description: Status
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
64
+ enum:
65
+ - Active
66
+ - Inactive
67
+ CreateConstraintVersionOutputRepresentation:
68
+ description: Create Constraint Version Connect API Output
69
+ type: object
70
+ properties:
71
+ errors:
72
+ description: List of errors encountered during the API processing.
73
+ type: array
74
+ items:
75
+ type: ConstraintErrorResponseRepresentation
76
+ success:
77
+ description: API request successfully completed
78
+ type: boolean
79
+ versionId:
80
+ description: New constraint version ID
81
+ type: string
82
+ UpdateConstraintVersionInputRepresentation:
83
+ description: Update constraint input representation
84
+ type: object
85
+ properties:
86
+ constraintModel:
87
+ description: Constraint Model
88
+ type: string
89
+ required: false # TODO hand rolled. W-16265940
90
+ description:
91
+ description: Constraint Model
92
+ type: string
93
+ required: false # TODO hand rolled. W-16265940
94
+ status:
95
+ description: Status
96
+ type: string
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
@@ -0,0 +1,41 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'constraints'
8
+ (luvio.ttl): 1000
9
+
10
+ types:
11
+ ConstraintErrorResponseRepresentation:
12
+ (luvio.ttl): 1000
13
+ (luvio.opaque): true
14
+ ConstraintVersionOutputRepresentation:
15
+ (luvio.ttl): 1000
16
+ (luvio.opaque): true
17
+ CreateConstraintVersionOutputRepresentation:
18
+ (luvio.ttl): 1000
19
+ (luvio.key):
20
+ success: success
21
+ UpdateConstraintVersionOutputRepresentation:
22
+ (luvio.ttl): 1000
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: