@salesforce/lds-adapters-industries-epc 1.100.2

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-epc.js +603 -0
  3. package/dist/types/src/generated/adapters/adapter-utils.d.ts +66 -0
  4. package/dist/types/src/generated/adapters/createProductAttributeDefinition.d.ts +15 -0
  5. package/dist/types/src/generated/adapters/deactivate.d.ts +15 -0
  6. package/dist/types/src/generated/artifacts/main.d.ts +2 -0
  7. package/dist/types/src/generated/artifacts/sfdc.d.ts +3 -0
  8. package/dist/types/src/generated/resources/patchConnectEpcActionsDeactivate.d.ts +13 -0
  9. package/dist/types/src/generated/resources/postConnectEpcProductAttributeDefinition.d.ts +13 -0
  10. package/dist/types/src/generated/types/DeactivateInputRepresentation.d.ts +35 -0
  11. package/dist/types/src/generated/types/DeactivateInputRepresentationWrapper.d.ts +30 -0
  12. package/dist/types/src/generated/types/ErrorOutputRepresentation.d.ts +35 -0
  13. package/dist/types/src/generated/types/ProductAttributeDefinitionInputRepresentation.d.ts +35 -0
  14. package/dist/types/src/generated/types/ProductAttributeDefinitionListInputRepresentation.d.ts +29 -0
  15. package/dist/types/src/generated/types/ProductAttributeDefinitionListInputRepresentationWrapper.d.ts +30 -0
  16. package/dist/types/src/generated/types/ProductAttributeDefinitionListRepresentation.d.ts +43 -0
  17. package/dist/types/src/generated/types/ProductAttributeDefinitionRepresentation.d.ts +32 -0
  18. package/dist/types/src/generated/types/RecordIdMapOutputRepresentation.d.ts +43 -0
  19. package/dist/types/src/generated/types/type-utils.d.ts +39 -0
  20. package/dist/umd/es2018/industries-epc.js +612 -0
  21. package/dist/umd/es5/industries-epc.js +618 -0
  22. package/package.json +70 -0
  23. package/sfdc/index.d.ts +1 -0
  24. package/sfdc/index.js +633 -0
  25. package/src/raml/api.raml +170 -0
  26. package/src/raml/luvio.raml +29 -0
@@ -0,0 +1,170 @@
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
+ /connect/epc:
139
+ /actions/deactivate:
140
+ patch:
141
+ description: Deactivate batch of records for an entity
142
+ responses:
143
+ '200':
144
+ description: Success
145
+ body:
146
+ application/json:
147
+ type: RecordIdMapOutputRepresentation
148
+ body:
149
+ application/json:
150
+ # TODO Hand-Rolled due to issue #28 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
151
+ type: DeactivateInputRepresentationWrapper
152
+ # TODO: Hand-rolled due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
153
+ # required: false
154
+ (oas-body-name): deactivateInputPayload
155
+ /product-attribute-definition:
156
+ post:
157
+ description: Create Product-Attribute Definition
158
+ responses:
159
+ '200':
160
+ description: Success
161
+ body:
162
+ application/json:
163
+ type: ProductAttributeDefinitionListRepresentation
164
+ body:
165
+ application/json:
166
+ # TODO Hand-Rolled due to issue #28 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
167
+ type: ProductAttributeDefinitionListInputRepresentationWrapper
168
+ # TODO: Hand-rolled due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
169
+ # required: false
170
+ (oas-body-name): productAttributeDefinitionListInputPayload
@@ -0,0 +1,29 @@
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
+ /connect/epc:
22
+ /actions/deactivate:
23
+ patch:
24
+ (luvio.adapter):
25
+ name: deactivate
26
+ /product-attribute-definition:
27
+ post:
28
+ (luvio.adapter):
29
+ name: createProductAttributeDefinition