@salesforce/lds-adapters-sales-yukon 1.329.1 → 1.331.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.
|
@@ -112,12 +112,19 @@ function createLink(ref) {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
const VERSION$2 = "
|
|
115
|
+
const VERSION$2 = "39a89614d541016543febe3b3d72fc19";
|
|
116
116
|
function validate$3(obj, path = 'YukonNudgeOutputRepresentation') {
|
|
117
117
|
const v_error = (() => {
|
|
118
118
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
119
119
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
120
120
|
}
|
|
121
|
+
if (obj.endDate !== undefined) {
|
|
122
|
+
const obj_endDate = obj.endDate;
|
|
123
|
+
const path_endDate = path + '.endDate';
|
|
124
|
+
if (typeof obj_endDate !== 'string') {
|
|
125
|
+
return new TypeError('Expected "string" but received "' + typeof obj_endDate + '" (at "' + path_endDate + '")');
|
|
126
|
+
}
|
|
127
|
+
}
|
|
121
128
|
const obj_id = obj.id;
|
|
122
129
|
const path_id = path + '.id';
|
|
123
130
|
if (typeof obj_id !== 'string') {
|
|
@@ -137,6 +144,13 @@ function validate$3(obj, path = 'YukonNudgeOutputRepresentation') {
|
|
|
137
144
|
return new TypeError('Expected "defined" but received "' + typeof obj_payload_prop + '" (at "' + path_payload_prop + '")');
|
|
138
145
|
}
|
|
139
146
|
}
|
|
147
|
+
if (obj.startDate !== undefined) {
|
|
148
|
+
const obj_startDate = obj.startDate;
|
|
149
|
+
const path_startDate = path + '.startDate';
|
|
150
|
+
if (typeof obj_startDate !== 'string') {
|
|
151
|
+
return new TypeError('Expected "string" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
|
|
152
|
+
}
|
|
153
|
+
}
|
|
140
154
|
})();
|
|
141
155
|
return v_error === undefined ? null : v_error;
|
|
142
156
|
}
|
|
@@ -146,6 +160,11 @@ const select$5 = function YukonNudgeOutputRepresentationSelect() {
|
|
|
146
160
|
version: VERSION$2,
|
|
147
161
|
private: [],
|
|
148
162
|
selections: [
|
|
163
|
+
{
|
|
164
|
+
name: 'endDate',
|
|
165
|
+
kind: 'Scalar',
|
|
166
|
+
required: false
|
|
167
|
+
},
|
|
149
168
|
{
|
|
150
169
|
name: 'id',
|
|
151
170
|
kind: 'Scalar'
|
|
@@ -154,16 +173,47 @@ const select$5 = function YukonNudgeOutputRepresentationSelect() {
|
|
|
154
173
|
name: 'payload',
|
|
155
174
|
kind: 'Object',
|
|
156
175
|
// any
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
name: 'startDate',
|
|
179
|
+
kind: 'Scalar',
|
|
180
|
+
required: false
|
|
157
181
|
}
|
|
158
182
|
]
|
|
159
183
|
};
|
|
160
184
|
};
|
|
161
185
|
function equals$2(existing, incoming) {
|
|
186
|
+
const existing_endDate = existing.endDate;
|
|
187
|
+
const incoming_endDate = incoming.endDate;
|
|
188
|
+
// if at least one of these optionals is defined
|
|
189
|
+
if (existing_endDate !== undefined || incoming_endDate !== undefined) {
|
|
190
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
191
|
+
// not equal
|
|
192
|
+
if (existing_endDate === undefined || incoming_endDate === undefined) {
|
|
193
|
+
return false;
|
|
194
|
+
}
|
|
195
|
+
if (!(existing_endDate === incoming_endDate)) {
|
|
196
|
+
return false;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
162
199
|
const existing_id = existing.id;
|
|
163
200
|
const incoming_id = incoming.id;
|
|
164
201
|
if (!(existing_id === incoming_id)) {
|
|
165
202
|
return false;
|
|
166
203
|
}
|
|
204
|
+
const existing_startDate = existing.startDate;
|
|
205
|
+
const incoming_startDate = incoming.startDate;
|
|
206
|
+
// if at least one of these optionals is defined
|
|
207
|
+
if (existing_startDate !== undefined || incoming_startDate !== undefined) {
|
|
208
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
209
|
+
// not equal
|
|
210
|
+
if (existing_startDate === undefined || incoming_startDate === undefined) {
|
|
211
|
+
return false;
|
|
212
|
+
}
|
|
213
|
+
if (!(existing_startDate === incoming_startDate)) {
|
|
214
|
+
return false;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
167
217
|
const existing_payload = existing.payload;
|
|
168
218
|
const incoming_payload = incoming.payload;
|
|
169
219
|
const equals_payload_props = equalsObject(existing_payload, incoming_payload, (existing_payload_prop, incoming_payload_prop) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "39a89614d541016543febe3b3d72fc19";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: YukonNudgeOutputRepresentation, existing: YukonNudgeOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): YukonNudgeOutputRepresentationNormalized;
|
|
@@ -14,12 +14,16 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
14
14
|
* (none)
|
|
15
15
|
*/
|
|
16
16
|
export interface YukonNudgeOutputRepresentationNormalized {
|
|
17
|
+
/** End Date of the Nudge */
|
|
18
|
+
endDate?: string;
|
|
17
19
|
/** Id of the Nudge */
|
|
18
20
|
id: string;
|
|
19
21
|
/** Payload of the Nudge in the surface */
|
|
20
22
|
payload: {
|
|
21
23
|
[key: string]: unknown;
|
|
22
24
|
};
|
|
25
|
+
/** Start Date of the Nudge */
|
|
26
|
+
startDate?: string;
|
|
23
27
|
}
|
|
24
28
|
/**
|
|
25
29
|
* A Yukon Nudge to display in a surface
|
|
@@ -28,8 +32,10 @@ export interface YukonNudgeOutputRepresentationNormalized {
|
|
|
28
32
|
* (none)
|
|
29
33
|
*/
|
|
30
34
|
export interface YukonNudgeOutputRepresentation {
|
|
35
|
+
endDate?: string;
|
|
31
36
|
id: string;
|
|
32
37
|
payload: {
|
|
33
38
|
[key: string]: unknown;
|
|
34
39
|
};
|
|
40
|
+
startDate?: string;
|
|
35
41
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-sales-yukon",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.331.0",
|
|
4
4
|
"description": "wires for interacting with yukon services",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/sales-yukon.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.331.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.331.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -122,12 +122,19 @@ function createLink(ref) {
|
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
const VERSION$2 = "
|
|
125
|
+
const VERSION$2 = "39a89614d541016543febe3b3d72fc19";
|
|
126
126
|
function validate$3(obj, path = 'YukonNudgeOutputRepresentation') {
|
|
127
127
|
const v_error = (() => {
|
|
128
128
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
129
129
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
130
130
|
}
|
|
131
|
+
if (obj.endDate !== undefined) {
|
|
132
|
+
const obj_endDate = obj.endDate;
|
|
133
|
+
const path_endDate = path + '.endDate';
|
|
134
|
+
if (typeof obj_endDate !== 'string') {
|
|
135
|
+
return new TypeError('Expected "string" but received "' + typeof obj_endDate + '" (at "' + path_endDate + '")');
|
|
136
|
+
}
|
|
137
|
+
}
|
|
131
138
|
const obj_id = obj.id;
|
|
132
139
|
const path_id = path + '.id';
|
|
133
140
|
if (typeof obj_id !== 'string') {
|
|
@@ -147,6 +154,13 @@ function validate$3(obj, path = 'YukonNudgeOutputRepresentation') {
|
|
|
147
154
|
return new TypeError('Expected "defined" but received "' + typeof obj_payload_prop + '" (at "' + path_payload_prop + '")');
|
|
148
155
|
}
|
|
149
156
|
}
|
|
157
|
+
if (obj.startDate !== undefined) {
|
|
158
|
+
const obj_startDate = obj.startDate;
|
|
159
|
+
const path_startDate = path + '.startDate';
|
|
160
|
+
if (typeof obj_startDate !== 'string') {
|
|
161
|
+
return new TypeError('Expected "string" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
|
|
162
|
+
}
|
|
163
|
+
}
|
|
150
164
|
})();
|
|
151
165
|
return v_error === undefined ? null : v_error;
|
|
152
166
|
}
|
|
@@ -156,6 +170,11 @@ const select$5 = function YukonNudgeOutputRepresentationSelect() {
|
|
|
156
170
|
version: VERSION$2,
|
|
157
171
|
private: [],
|
|
158
172
|
selections: [
|
|
173
|
+
{
|
|
174
|
+
name: 'endDate',
|
|
175
|
+
kind: 'Scalar',
|
|
176
|
+
required: false
|
|
177
|
+
},
|
|
159
178
|
{
|
|
160
179
|
name: 'id',
|
|
161
180
|
kind: 'Scalar'
|
|
@@ -164,16 +183,47 @@ const select$5 = function YukonNudgeOutputRepresentationSelect() {
|
|
|
164
183
|
name: 'payload',
|
|
165
184
|
kind: 'Object',
|
|
166
185
|
// any
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
name: 'startDate',
|
|
189
|
+
kind: 'Scalar',
|
|
190
|
+
required: false
|
|
167
191
|
}
|
|
168
192
|
]
|
|
169
193
|
};
|
|
170
194
|
};
|
|
171
195
|
function equals$2(existing, incoming) {
|
|
196
|
+
const existing_endDate = existing.endDate;
|
|
197
|
+
const incoming_endDate = incoming.endDate;
|
|
198
|
+
// if at least one of these optionals is defined
|
|
199
|
+
if (existing_endDate !== undefined || incoming_endDate !== undefined) {
|
|
200
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
201
|
+
// not equal
|
|
202
|
+
if (existing_endDate === undefined || incoming_endDate === undefined) {
|
|
203
|
+
return false;
|
|
204
|
+
}
|
|
205
|
+
if (!(existing_endDate === incoming_endDate)) {
|
|
206
|
+
return false;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
172
209
|
const existing_id = existing.id;
|
|
173
210
|
const incoming_id = incoming.id;
|
|
174
211
|
if (!(existing_id === incoming_id)) {
|
|
175
212
|
return false;
|
|
176
213
|
}
|
|
214
|
+
const existing_startDate = existing.startDate;
|
|
215
|
+
const incoming_startDate = incoming.startDate;
|
|
216
|
+
// if at least one of these optionals is defined
|
|
217
|
+
if (existing_startDate !== undefined || incoming_startDate !== undefined) {
|
|
218
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
219
|
+
// not equal
|
|
220
|
+
if (existing_startDate === undefined || incoming_startDate === undefined) {
|
|
221
|
+
return false;
|
|
222
|
+
}
|
|
223
|
+
if (!(existing_startDate === incoming_startDate)) {
|
|
224
|
+
return false;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
177
227
|
const existing_payload = existing.payload;
|
|
178
228
|
const incoming_payload = incoming.payload;
|
|
179
229
|
const equals_payload_props = equalsObject(existing_payload, incoming_payload, (existing_payload_prop, incoming_payload_prop) => {
|
|
@@ -932,4 +982,4 @@ withDefaultLuvio((luvio) => {
|
|
|
932
982
|
});
|
|
933
983
|
|
|
934
984
|
export { getYukonSurfaceNudges, getYukonSurfaceNudgesMock, getYukonSurfaceNudgesMockNotifyChange, getYukonSurfaceNudgesMock_imperative, getYukonSurfaceNudgesNotifyChange, getYukonSurfaceNudges_imperative, postYukonTelemetry };
|
|
935
|
-
// version: 1.
|
|
985
|
+
// version: 1.331.0-e9c482e8ab
|
package/src/raml/api.raml
CHANGED
|
@@ -76,6 +76,14 @@ types:
|
|
|
76
76
|
properties:
|
|
77
77
|
//:
|
|
78
78
|
type: any # TODO: Handrolled W-7107899
|
|
79
|
+
startDate:
|
|
80
|
+
description: Start Date of the Nudge
|
|
81
|
+
required: false
|
|
82
|
+
type: string
|
|
83
|
+
endDate:
|
|
84
|
+
description: End Date of the Nudge
|
|
85
|
+
required: false
|
|
86
|
+
type: string
|
|
79
87
|
|
|
80
88
|
YukonSurfaceNudgesOutputRepresentation:
|
|
81
89
|
description: A collection of Yukon Nudges to display in a surface
|