@salesforce/lds-adapters-industries-sustainability-reference-data-v3 1.249.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 (22) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/industries-sustainability-reference-data-v3.js +660 -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/getSCGetDatasetMetaResource.d.ts +27 -0
  5. package/dist/es/es2018/types/src/generated/adapters/postUploadDataset.d.ts +16 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +4 -0
  8. package/dist/es/es2018/types/src/generated/resources/getConnectSustainabilityReferenceDataV3EntitySectionByEntitySection.d.ts +15 -0
  9. package/dist/es/es2018/types/src/generated/resources/postConnectSustainabilityReferenceDataV3EntityVersionUpload.d.ts +13 -0
  10. package/dist/es/es2018/types/src/generated/types/EntityDatasetVersionDetailRepresentation.d.ts +34 -0
  11. package/dist/es/es2018/types/src/generated/types/GetDataSetMetaOutputRepresentation.d.ts +30 -0
  12. package/dist/es/es2018/types/src/generated/types/ReferenceDataRepresentation.d.ts +32 -0
  13. package/dist/es/es2018/types/src/generated/types/ReferenceDataVersionsRepresentation.d.ts +49 -0
  14. package/dist/es/es2018/types/src/generated/types/ReferenceDatasetsRepresentation.d.ts +68 -0
  15. package/dist/es/es2018/types/src/generated/types/UploadDatasetInputRepresentation.d.ts +29 -0
  16. package/dist/es/es2018/types/src/generated/types/UploadDatasetOutputRepresentation.d.ts +41 -0
  17. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  18. package/package.json +66 -0
  19. package/sfdc/index.d.ts +1 -0
  20. package/sfdc/index.js +699 -0
  21. package/src/raml/api.raml +191 -0
  22. package/src/raml/luvio.raml +29 -0
@@ -0,0 +1,191 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '60.0'
6
+ mediaType: application/json
7
+ protocols:
8
+ - https
9
+ baseUri: /services/data/v60.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
+ EntityDatasetVersionDetailRepresentation:
29
+ description: Input representation for the upload datasets
30
+ type: object
31
+ properties:
32
+ dataIdentifier:
33
+ description: Data Identifier of the dataset that needs to be updated
34
+ type: string
35
+ recordTypeId:
36
+ description: Record type of the entity
37
+ type: string
38
+ versionNumber:
39
+ description: Version number of the entity
40
+ type: string
41
+ GetDataSetMetaOutputRepresentation:
42
+ description: Get dataset metadata output representation
43
+ type: object
44
+ properties:
45
+ referenceDataRepresentation:
46
+ description: Get dataset metadata output representation
47
+ type: array
48
+ items:
49
+ type: ReferenceDataRepresentation
50
+ ReferenceDataRepresentation:
51
+ description: Reference Data Information
52
+ type: object
53
+ properties:
54
+ entityObject:
55
+ description: Entity Name of the Object
56
+ type: string
57
+ referenceDatasetsRepresentation:
58
+ description: List of datasets for the entity object
59
+ type: array
60
+ items:
61
+ type: ReferenceDatasetsRepresentation
62
+ ReferenceDataVersionsRepresentation:
63
+ description: Reference Dataset Versions
64
+ type: object
65
+ properties:
66
+ loadBy:
67
+ description: Name of user that loaded the dataset
68
+ type: string
69
+ loadDate:
70
+ description: Date when the dataset was loaded
71
+ type: string
72
+ loadStatus:
73
+ description: get the load status of the dataset
74
+ type: string
75
+ publishDate:
76
+ description: get the publish date of the dataset
77
+ type: string
78
+ salesforceRelease:
79
+ description: get a list of salesforce release of the dataset
80
+ type: array
81
+ items:
82
+ type: string
83
+ versionNotes:
84
+ description: get the version notes of the dataset
85
+ type: string
86
+ versionNumber:
87
+ description: get the version number of the dataset
88
+ type: string
89
+ versionTag:
90
+ description: get the version tag of the dataset
91
+ type: string
92
+ ReferenceDatasetsRepresentation:
93
+ description: Reference Datasets Information
94
+ type: object
95
+ properties:
96
+ categoryName:
97
+ description: Category name of the dataset
98
+ type: string
99
+ dataIdentifier:
100
+ description: Get the data identifier of the dataset
101
+ type: string
102
+ description:
103
+ description: Get the description of the dataset
104
+ type: string
105
+ locationRegion:
106
+ description: Get the location region of the dataset
107
+ type: string
108
+ locationSubregion:
109
+ description: Get the location sub region of the dataset
110
+ type: string
111
+ locationSubsubregion:
112
+ description: Get the location sub sub region of the dataset
113
+ type: string
114
+ name:
115
+ description: Get the name of the dataset
116
+ type: string
117
+ productDetailUrl:
118
+ description: Get the product detail url of the dataset
119
+ type: string
120
+ providerName:
121
+ description: Get the provider name of the dataset
122
+ type: string
123
+ referenceDataVersionsRepresentations:
124
+ description: List of Reference data source versions
125
+ type: array
126
+ items:
127
+ type: ReferenceDataVersionsRepresentation
128
+ source:
129
+ description: get a list of sources of the dataset
130
+ type: array
131
+ items:
132
+ type: string
133
+ timeframeEndDate:
134
+ description: Get the time frame end date of the dataset
135
+ type: string
136
+ timeframeStartDate:
137
+ description: Get the time frame start date of the dataset
138
+ type: string
139
+ updateFrequency:
140
+ description: Get the update frequency of the dataset
141
+ type: string
142
+ UploadDatasetOutputRepresentation:
143
+ description: Response for the Upload Emissions Factor from NZM to NZC
144
+ type: object
145
+ properties:
146
+ code:
147
+ description: Response code
148
+ type: integer
149
+ message:
150
+ description: Response message
151
+ type: string
152
+ UploadDatasetInputRepresentation:
153
+ description: Upload Dataset input representation
154
+ type: object
155
+ properties:
156
+ entityDatasetVersionDetailRepresentations:
157
+ description: Entity Dataset Version Representation
158
+ type: array
159
+ items:
160
+ type: EntityDatasetVersionDetailRepresentation
161
+ /connect/sustainability:
162
+ /reference-data:
163
+ /v3:
164
+ /entitySection/{entitySection}:
165
+ get:
166
+ displayName: getSCGetDatasetMetaResource
167
+ description: Get dataset metadata from NZM
168
+ responses:
169
+ '200':
170
+ description: Success
171
+ body:
172
+ application/json:
173
+ type: GetDataSetMetaOutputRepresentation
174
+ uriParameters:
175
+ entitySection:
176
+ type: string
177
+ required: true
178
+ /entityVersion/upload:
179
+ post:
180
+ displayName: postUploadDataset
181
+ description: Upload Emissions Factor data from NZM to NZC
182
+ responses:
183
+ '200':
184
+ description: Success
185
+ body:
186
+ application/json:
187
+ type: UploadDatasetOutputRepresentation
188
+ body:
189
+ application/json:
190
+ type: UploadDatasetInputRepresentation
191
+ (oas-body-name): uploadDatasetEntityInput
@@ -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): 'sustainability-reference-data-v3'
8
+ types:
9
+ GetDataSetMetaOutputRepresentation:
10
+ (luvio.ttl): 10000
11
+ (luvio.opaque): true
12
+
13
+ UploadDatasetOutputRepresentation:
14
+ (luvio.ttl): 300
15
+ (luvio.opaque): true
16
+ (luvio.key):
17
+ message: message
18
+
19
+ /connect/sustainability:
20
+ /reference-data:
21
+ /v3:
22
+ /entitySection/{entitySection}:
23
+ get:
24
+ (luvio.adapter):
25
+ name: getSCGetDatasetMetaResource
26
+ /entityVersion/upload:
27
+ post:
28
+ (luvio.adapter):
29
+ name: postUploadDataset