@salesforce/lds-adapters-industries-epc 0.131.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.
Files changed (29) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/industries-epc.js +926 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +66 -0
  4. package/dist/es/es2018/types/src/generated/adapters/createProductAttributeDefinition.d.ts +15 -0
  5. package/dist/es/es2018/types/src/generated/adapters/deactivate.d.ts +15 -0
  6. package/dist/es/es2018/types/src/generated/adapters/getProductFlowByProductId.d.ts +27 -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/getConnectEpcProductsFlowByProductId.d.ts +18 -0
  10. package/dist/es/es2018/types/src/generated/resources/patchConnectEpcActionsDeactivate.d.ts +13 -0
  11. package/dist/es/es2018/types/src/generated/resources/postConnectEpcProductAttributeDefinition.d.ts +13 -0
  12. package/dist/es/es2018/types/src/generated/types/DeactivateInputRepresentation.d.ts +35 -0
  13. package/dist/es/es2018/types/src/generated/types/DeactivateInputRepresentationWrapper.d.ts +30 -0
  14. package/dist/es/es2018/types/src/generated/types/ErrorOutputRepresentation.d.ts +35 -0
  15. package/dist/es/es2018/types/src/generated/types/ProductAttributeDefinitionInputRepresentation.d.ts +35 -0
  16. package/dist/es/es2018/types/src/generated/types/ProductAttributeDefinitionListInputRepresentation.d.ts +29 -0
  17. package/dist/es/es2018/types/src/generated/types/ProductAttributeDefinitionListInputRepresentationWrapper.d.ts +30 -0
  18. package/dist/es/es2018/types/src/generated/types/ProductAttributeDefinitionListRepresentation.d.ts +43 -0
  19. package/dist/es/es2018/types/src/generated/types/ProductAttributeDefinitionRepresentation.d.ts +32 -0
  20. package/dist/es/es2018/types/src/generated/types/ProductFlowConnectRepresentation.d.ts +29 -0
  21. package/dist/es/es2018/types/src/generated/types/ProductFlowOutputRepresentation.d.ts +38 -0
  22. package/dist/es/es2018/types/src/generated/types/RecordIdMapOutputRepresentation.d.ts +43 -0
  23. package/dist/es/es2018/types/src/generated/types/Status.d.ts +32 -0
  24. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +39 -0
  25. package/package.json +67 -0
  26. package/sfdc/index.d.ts +1 -0
  27. package/sfdc/index.js +967 -0
  28. package/src/raml/api.raml +222 -0
  29. package/src/raml/luvio.raml +36 -0
@@ -0,0 +1,222 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '56.0'
6
+ mediaType: application/json
7
+ protocols:
8
+ - https
9
+ baseUri: /services/data/v58.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
+ DeactivateInputRepresentation:
29
+ description: Representation for list of Record Ids
30
+ type: object
31
+ properties:
32
+ entityName:
33
+ description: Name of entity
34
+ type: string
35
+ parentRecordId:
36
+ description: Parent Product Id for PAD records
37
+ type: string
38
+ required: false
39
+ recordIds:
40
+ description: List of record ids
41
+ type: array
42
+ items:
43
+ type: string
44
+ ErrorOutputRepresentation:
45
+ description: Error description
46
+ type: object
47
+ properties:
48
+ details:
49
+ description: List of record ids creating error
50
+ type: array
51
+ items:
52
+ type: string
53
+ message:
54
+ description: Human readable error message
55
+ type: string
56
+ reason:
57
+ description: Machine readable (string) error code
58
+ type: string
59
+
60
+ # TODO Hand-Rolled due to issue #28 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
61
+ DeactivateInputRepresentationWrapper:
62
+ description: Wrapper for DeactivateInputRepresentation
63
+ type: object
64
+ properties:
65
+ deactivateInputPayload:
66
+ type: DeactivateInputRepresentation
67
+ description: Input representation for entityName and list of record ids
68
+
69
+ ProductAttributeDefinitionInputRepresentation:
70
+ description: An Input Representation for create Product-Attribute Definition Api.
71
+ type: object
72
+ properties:
73
+ attributeDefinitionId:
74
+ description: Attribute Definition Id
75
+ type: string
76
+ attributeDefinitionName:
77
+ description: AttributeDefinition Name
78
+ type: string
79
+ productId:
80
+ description: Product Id
81
+ type: string
82
+ ProductAttributeDefinitionListInputRepresentation:
83
+ description: Input representation for list of Product-Attribute Definition
84
+ type: object
85
+ properties:
86
+ productAttributeDefinitions:
87
+ description: List of Product-Attribute Definitions
88
+ type: array
89
+ items:
90
+ type: object
91
+
92
+ # TODO Hand-Rolled due to issue #28 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
93
+ ProductAttributeDefinitionListInputRepresentationWrapper:
94
+ description: Wrapper for ProductAttributeDefinitionListInputRepresentation
95
+ type: object
96
+ properties:
97
+ productAttributeDefinitionListInputPayload:
98
+ type: ProductAttributeDefinitionListInputRepresentation
99
+ description: Input representation for list of Product-Attribute Definition
100
+
101
+ ProductAttributeDefinitionListRepresentation:
102
+ description: Product-Attribute Definition List
103
+ type: object
104
+ properties:
105
+ data:
106
+ description: The list of Product-Attribute Definition records created
107
+ type: array
108
+ items:
109
+ type: ProductAttributeDefinitionRepresentation
110
+ message:
111
+ description: API result message
112
+ type: string
113
+ ProductAttributeDefinitionRepresentation:
114
+ description: Product-Attribute Definition
115
+ type: object
116
+ properties:
117
+ attributeDefinitionName:
118
+ description: The name of the attributeDefinition associated with the Product-Attribute
119
+ Definition
120
+ type: string
121
+ required: false
122
+ recordId:
123
+ description: The record Id of the Product-Attribute Definition
124
+ type: string
125
+ required: false
126
+ RecordIdMapOutputRepresentation:
127
+ description: Deactivate api response
128
+ type: object
129
+ properties:
130
+ errors:
131
+ description: The list of error messages
132
+ type: array
133
+ items:
134
+ type: ErrorOutputRepresentation
135
+ status:
136
+ description: Returns if the operation was a success or not
137
+ type: string
138
+ Status:
139
+ description: The output representation of the Status of the request.
140
+ type: object
141
+ properties:
142
+ code:
143
+ description: get Code.
144
+ type: string
145
+ message:
146
+ description: Get Error Message
147
+ type: string
148
+ ProductFlowConnectRepresentation:
149
+ description: Product Flow Connect Representation Model
150
+ type: object
151
+ properties:
152
+ flowApiName:
153
+ description: flowApiName
154
+ type: string
155
+ required: false
156
+ ProductFlowOutputRepresentation:
157
+ description: Product Flow Output Representation Model
158
+ type: object
159
+ properties:
160
+ correlationId:
161
+ description: correlation id for the request
162
+ type: string
163
+ required: false
164
+ productFlow:
165
+ description: productFlow
166
+ type: ProductFlowConnectRepresentation
167
+ required: false
168
+ status:
169
+ description: API result status
170
+ type: Status
171
+ required: false
172
+ /connect/epc:
173
+ /actions/deactivate:
174
+ patch:
175
+ description: Deactivate batch of records for an entity
176
+ responses:
177
+ '200':
178
+ description: Success
179
+ body:
180
+ application/json:
181
+ type: RecordIdMapOutputRepresentation
182
+ body:
183
+ application/json:
184
+ # TODO Hand-Rolled due to issue #28 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
185
+ type: DeactivateInputRepresentationWrapper
186
+ # TODO: Hand-rolled due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
187
+ # required: false
188
+ (oas-body-name): deactivateInputPayload
189
+ /product-attribute-definition:
190
+ post:
191
+ description: Create Product-Attribute Definition
192
+ responses:
193
+ '200':
194
+ description: Success
195
+ body:
196
+ application/json:
197
+ type: ProductAttributeDefinitionListRepresentation
198
+ body:
199
+ application/json:
200
+ # TODO Hand-Rolled due to issue #28 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
201
+ type: ProductAttributeDefinitionListInputRepresentationWrapper
202
+ # TODO: Hand-rolled due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
203
+ # required: false
204
+ (oas-body-name): productAttributeDefinitionListInputPayload
205
+ /products/{productId}/flow:
206
+ get:
207
+ description: API to fetch product flow based on the product id.
208
+ responses:
209
+ '200':
210
+ description: Success
211
+ body:
212
+ application/json:
213
+ type: ProductFlowOutputRepresentation
214
+ queryParameters:
215
+ correlationId:
216
+ type: string
217
+ required: false
218
+ uriParameters:
219
+ productId:
220
+ description: Product Id for which flow details has to be fetched.
221
+ type: string
222
+ required: true
@@ -0,0 +1,36 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'epc'
8
+ (luvio.ttl): 360000
9
+
10
+ types:
11
+ RecordIdMapOutputRepresentation:
12
+ (luvio.ttl): 6000
13
+ (luvio.opaque): true
14
+ (luvio.key):
15
+ message: status
16
+ ProductAttributeDefinitionListRepresentation:
17
+ (luvio.ttl): 6000
18
+ (luvio.opaque): true
19
+ (luvio.key):
20
+ message: message
21
+ ProductFlowOutputRepresentation:
22
+ (luvio.ttl): 6000
23
+ (luvio.opaque): true
24
+ /connect/epc:
25
+ /actions/deactivate:
26
+ patch:
27
+ (luvio.adapter):
28
+ name: deactivate
29
+ /product-attribute-definition:
30
+ post:
31
+ (luvio.adapter):
32
+ name: createProductAttributeDefinition
33
+ /products/{productId}/flow:
34
+ get:
35
+ (luvio.adapter):
36
+ name: getProductFlowByProductId