@salesforce/lds-adapters-industries-sustainability-dgf 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 (23) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/industries-sustainability-dgf.js +621 -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/computeDataGapFillers.d.ts +16 -0
  5. package/dist/es/es2018/types/src/generated/adapters/identifyDateIssues.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 +3 -0
  8. package/dist/es/es2018/types/src/generated/resources/postConnectSustainabilityDgfComputeDatagapFillers.d.ts +13 -0
  9. package/dist/es/es2018/types/src/generated/resources/postConnectSustainabilityDgfIdentifyDateIssues.d.ts +13 -0
  10. package/dist/es/es2018/types/src/generated/types/FilterInputRepresentation.d.ts +31 -0
  11. package/dist/es/es2018/types/src/generated/types/SustainabilityDGFDataGapFillerInputRepresentation.d.ts +35 -0
  12. package/dist/es/es2018/types/src/generated/types/SustainabilityDGFDataGapFillerInputWrapperRepresentation.d.ts +29 -0
  13. package/dist/es/es2018/types/src/generated/types/SustainabilityDGFDataGapFillerRepresentation.d.ts +45 -0
  14. package/dist/es/es2018/types/src/generated/types/SustainabilityDataGapRecordRepresentation.d.ts +36 -0
  15. package/dist/es/es2018/types/src/generated/types/SustainabilityDateIssueInputRepresentation.d.ts +35 -0
  16. package/dist/es/es2018/types/src/generated/types/SustainabilityDateIssueInputWrapperRepresentation.d.ts +29 -0
  17. package/dist/es/es2018/types/src/generated/types/SustainabilityDateIssueRepresentation.d.ts +50 -0
  18. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  19. package/package.json +70 -0
  20. package/sfdc/index.d.ts +1 -0
  21. package/sfdc/index.js +651 -0
  22. package/src/raml/api.raml +170 -0
  23. package/src/raml/luvio.raml +28 -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/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
+ FilterInputRepresentation:
29
+ description: An input representing the filter object with key value pair
30
+ type: object
31
+ properties:
32
+ item:
33
+ description: item
34
+ type: string
35
+ value:
36
+ description: value
37
+ type: string
38
+ SustainabilityDGFDataGapFillerInputRepresentation:
39
+ description: An input representation of data gap filler
40
+ type: object
41
+ properties:
42
+ filters:
43
+ description: Different DGF filters
44
+ type: array
45
+ required: false
46
+ items:
47
+ type: FilterInputRepresentation
48
+ methods:
49
+ description: Different methods
50
+ type: array
51
+ items:
52
+ type: string
53
+ recordId:
54
+ description: RecordId
55
+ type: string
56
+ SustainabilityDGFDataGapFillerRepresentation:
57
+ description: Output object for Sustainability data Gap Filler
58
+ type: object
59
+ properties:
60
+ code:
61
+ description: return code
62
+ type: integer
63
+ gaps:
64
+ description: return gaps
65
+ type: array
66
+ items:
67
+ type: SustainabilityDataGapRecordRepresentation
68
+ message:
69
+ description: return message
70
+ type: string
71
+ SustainabilityDataGapRecordRepresentation:
72
+ description: Output object for Sustainability data Gap filler
73
+ type: object
74
+ properties:
75
+ fillValues:
76
+ description: 'return fillValues '
77
+ type: object
78
+ properties:
79
+ //:
80
+ type: object
81
+ properties:
82
+ //:
83
+ type: string | boolean |number
84
+ SustainabilityDateIssueInputRepresentation:
85
+ description: An Input Representation for converting source object to sales agreement.
86
+ type: object
87
+ properties:
88
+ filters:
89
+ description: filters
90
+ type: array
91
+ required: false
92
+ items:
93
+ type: FilterInputRepresentation
94
+ recordId:
95
+ description: RecordId
96
+ type: string
97
+ types:
98
+ description: types
99
+ type: array
100
+ items:
101
+ type: string
102
+ SustainabilityDateIssueInputWrapperRepresentation: # TODO Hand Rolled 'SustainabilityDateIssueInputRepresentation' W-9311618 and W-9311623
103
+ description: A Wrapper around the SustainabilityDateIssueRepresentation
104
+ type: object
105
+ properties:
106
+ dateIssueInput:
107
+ description: The Oas Body Name for dateIssueInput.
108
+ type: SustainabilityDateIssueInputRepresentation
109
+ SustainabilityDGFDataGapFillerInputWrapperRepresentation: # TODO Hand Rolled 'SustainabilityDGFDataGapFillerInputRepresentation' W-9311618 and W-9311623
110
+ description: A Wrapper around the SustainabilityDGFDataGapFillerInputRepresentation
111
+ type: object
112
+ properties:
113
+ dataGapInput:
114
+ description: The Oas Body Name for dateGap filler input.
115
+ type: SustainabilityDGFDataGapFillerInputRepresentation
116
+ SustainabilityDateIssueRepresentation:
117
+ description: Output object for Sustainability Date issue calculation
118
+ type: object
119
+ properties:
120
+ code:
121
+ description: return code
122
+ type: integer
123
+ message:
124
+ description: return message
125
+ type: string
126
+ missingDatesRecords:
127
+ description: return missing date records
128
+ type: array
129
+ items:
130
+ type: string
131
+ outOfDateRangeRecords:
132
+ description: 'return out of range records '
133
+ type: array
134
+ items:
135
+ type: string
136
+ overlappingDatesRecords:
137
+ description: return overlapping date records
138
+ type: array
139
+ items:
140
+ type: string
141
+ /connect/sustainability:
142
+ /dgf:
143
+ /compute-datagap-fillers:
144
+ post:
145
+ description: used for fetching the date issues for a given record Id
146
+ responses:
147
+ '200':
148
+ description: Success
149
+ body:
150
+ application/json:
151
+ type: SustainabilityDGFDataGapFillerRepresentation
152
+ body:
153
+ application/json:
154
+ type: SustainabilityDGFDataGapFillerInputWrapperRepresentation
155
+ #required: false
156
+ (oas-body-name): dataGapInput
157
+ /identify-date-issues:
158
+ post:
159
+ description: used for fetching the date issues for a given record Id
160
+ responses:
161
+ '200':
162
+ description: Success
163
+ body:
164
+ application/json:
165
+ type: SustainabilityDateIssueRepresentation
166
+ body:
167
+ application/json:
168
+ type: SustainabilityDateIssueInputWrapperRepresentation
169
+ #required: false
170
+ (oas-body-name): dateIssueInput
@@ -0,0 +1,28 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'sustainability-dgf'
8
+ types:
9
+ SustainabilityDateIssueRepresentation:
10
+ (luvio.ttl): 300
11
+ (luvio.opaque): true
12
+ (luvio.key):
13
+ message: message
14
+ SustainabilityDGFDataGapFillerRepresentation:
15
+ (luvio.ttl): 300
16
+ (luvio.opaque): true
17
+ (luvio.key):
18
+ message: message
19
+
20
+ /connect/sustainability/dgf:
21
+ /compute-datagap-fillers:
22
+ post:
23
+ (luvio.adapter):
24
+ name: computeDataGapFillers
25
+ /identify-date-issues:
26
+ post:
27
+ (luvio.adapter):
28
+ name: identifyDateIssues