@salesforce/lds-adapters-industries-scheduler 1.283.0 → 1.285.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.
- package/dist/es/es2018/industries-scheduler.js +57 -23
- package/dist/es/es2018/types/src/generated/adapters/getGroupAppointments.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectSchedulingGroupAppointments.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/GetGroupAppointmentsInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/GetServiceTerritoriesResult.d.ts +7 -7
- package/package.json +4 -4
- package/sfdc/index.js +58 -24
- package/src/raml/api.raml +7 -0
|
@@ -141,7 +141,7 @@ function equals$E(existing, incoming) {
|
|
|
141
141
|
return true;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
const VERSION$D = "
|
|
144
|
+
const VERSION$D = "e1942247bd0b4b845f6e33cb6ef21a75";
|
|
145
145
|
function validate$H(obj, path = 'GetServiceTerritoriesResult') {
|
|
146
146
|
const v_error = (() => {
|
|
147
147
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -162,25 +162,31 @@ function validate$H(obj, path = 'GetServiceTerritoriesResult') {
|
|
|
162
162
|
if (typeof obj_id !== 'string') {
|
|
163
163
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
164
164
|
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
165
|
+
if (obj.latitude !== undefined) {
|
|
166
|
+
const obj_latitude = obj.latitude;
|
|
167
|
+
const path_latitude = path + '.latitude';
|
|
168
|
+
if (typeof obj_latitude !== 'string') {
|
|
169
|
+
return new TypeError('Expected "string" but received "' + typeof obj_latitude + '" (at "' + path_latitude + '")');
|
|
170
|
+
}
|
|
169
171
|
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
172
|
+
if (obj.longitude !== undefined) {
|
|
173
|
+
const obj_longitude = obj.longitude;
|
|
174
|
+
const path_longitude = path + '.longitude';
|
|
175
|
+
if (typeof obj_longitude !== 'string') {
|
|
176
|
+
return new TypeError('Expected "string" but received "' + typeof obj_longitude + '" (at "' + path_longitude + '")');
|
|
177
|
+
}
|
|
174
178
|
}
|
|
175
179
|
const obj_name = obj.name;
|
|
176
180
|
const path_name = path + '.name';
|
|
177
181
|
if (typeof obj_name !== 'string') {
|
|
178
182
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
179
183
|
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
+
if (obj.operatingHoursId !== undefined) {
|
|
185
|
+
const obj_operatingHoursId = obj.operatingHoursId;
|
|
186
|
+
const path_operatingHoursId = path + '.operatingHoursId';
|
|
187
|
+
if (typeof obj_operatingHoursId !== 'string') {
|
|
188
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operatingHoursId + '" (at "' + path_operatingHoursId + '")');
|
|
189
|
+
}
|
|
184
190
|
}
|
|
185
191
|
const obj_postalCode = obj.postalCode;
|
|
186
192
|
const path_postalCode = path + '.postalCode';
|
|
@@ -220,11 +226,13 @@ const select$R = function GetServiceTerritoriesResultSelect() {
|
|
|
220
226
|
},
|
|
221
227
|
{
|
|
222
228
|
name: 'latitude',
|
|
223
|
-
kind: 'Scalar'
|
|
229
|
+
kind: 'Scalar',
|
|
230
|
+
required: false
|
|
224
231
|
},
|
|
225
232
|
{
|
|
226
233
|
name: 'longitude',
|
|
227
|
-
kind: 'Scalar'
|
|
234
|
+
kind: 'Scalar',
|
|
235
|
+
required: false
|
|
228
236
|
},
|
|
229
237
|
{
|
|
230
238
|
name: 'name',
|
|
@@ -232,7 +240,8 @@ const select$R = function GetServiceTerritoriesResultSelect() {
|
|
|
232
240
|
},
|
|
233
241
|
{
|
|
234
242
|
name: 'operatingHoursId',
|
|
235
|
-
kind: 'Scalar'
|
|
243
|
+
kind: 'Scalar',
|
|
244
|
+
required: false
|
|
236
245
|
},
|
|
237
246
|
{
|
|
238
247
|
name: 'postalCode',
|
|
@@ -267,13 +276,29 @@ function equals$D(existing, incoming) {
|
|
|
267
276
|
}
|
|
268
277
|
const existing_latitude = existing.latitude;
|
|
269
278
|
const incoming_latitude = incoming.latitude;
|
|
270
|
-
if
|
|
271
|
-
|
|
279
|
+
// if at least one of these optionals is defined
|
|
280
|
+
if (existing_latitude !== undefined || incoming_latitude !== undefined) {
|
|
281
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
282
|
+
// not equal
|
|
283
|
+
if (existing_latitude === undefined || incoming_latitude === undefined) {
|
|
284
|
+
return false;
|
|
285
|
+
}
|
|
286
|
+
if (!(existing_latitude === incoming_latitude)) {
|
|
287
|
+
return false;
|
|
288
|
+
}
|
|
272
289
|
}
|
|
273
290
|
const existing_longitude = existing.longitude;
|
|
274
291
|
const incoming_longitude = incoming.longitude;
|
|
275
|
-
if
|
|
276
|
-
|
|
292
|
+
// if at least one of these optionals is defined
|
|
293
|
+
if (existing_longitude !== undefined || incoming_longitude !== undefined) {
|
|
294
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
295
|
+
// not equal
|
|
296
|
+
if (existing_longitude === undefined || incoming_longitude === undefined) {
|
|
297
|
+
return false;
|
|
298
|
+
}
|
|
299
|
+
if (!(existing_longitude === incoming_longitude)) {
|
|
300
|
+
return false;
|
|
301
|
+
}
|
|
277
302
|
}
|
|
278
303
|
const existing_name = existing.name;
|
|
279
304
|
const incoming_name = incoming.name;
|
|
@@ -282,8 +307,16 @@ function equals$D(existing, incoming) {
|
|
|
282
307
|
}
|
|
283
308
|
const existing_operatingHoursId = existing.operatingHoursId;
|
|
284
309
|
const incoming_operatingHoursId = incoming.operatingHoursId;
|
|
285
|
-
if
|
|
286
|
-
|
|
310
|
+
// if at least one of these optionals is defined
|
|
311
|
+
if (existing_operatingHoursId !== undefined || incoming_operatingHoursId !== undefined) {
|
|
312
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
313
|
+
// not equal
|
|
314
|
+
if (existing_operatingHoursId === undefined || incoming_operatingHoursId === undefined) {
|
|
315
|
+
return false;
|
|
316
|
+
}
|
|
317
|
+
if (!(existing_operatingHoursId === incoming_operatingHoursId)) {
|
|
318
|
+
return false;
|
|
319
|
+
}
|
|
287
320
|
}
|
|
288
321
|
const existing_postalCode = existing.postalCode;
|
|
289
322
|
const incoming_postalCode = incoming.postalCode;
|
|
@@ -1861,7 +1894,7 @@ function select$D(luvio, params) {
|
|
|
1861
1894
|
return select$E();
|
|
1862
1895
|
}
|
|
1863
1896
|
function keyBuilder$j(luvio, params) {
|
|
1864
|
-
return keyPrefix + '::GetGroupAppointmentsOutputRepresentation:(' + (params.body.startTime === undefined ? 'startTime' : 'startTime:' + params.body.startTime) + '::' + (params.body.endTime === undefined ? 'endTime' : 'endTime:' + params.body.endTime) + '::' + (params.body.limit === undefined ? 'limit' : 'limit:' + params.body.limit) + '::' + (params.body.offset === undefined ? 'offset' : 'offset:' + params.body.offset) + '::' + (params.body.filterByWorkTypeGroups === undefined ? 'filterByWorkTypeGroups' : 'filterByWorkTypeGroups:' + params.body.filterByWorkTypeGroups) + '::' + (params.body.filterByWorkTypes === undefined ? 'filterByWorkTypes' : 'filterByWorkTypes:' + params.body.filterByWorkTypes) + '::' + (params.body.filterByParentRecords === undefined ? 'filterByParentRecords' : 'filterByParentRecords:' + params.body.filterByParentRecords) + '::' + (params.body.filterByTerritories === undefined ? 'filterByTerritories' : 'filterByTerritories:' + params.body.filterByTerritories) + '::' + (params.body.filterByResources === undefined ? 'filterByResources' : 'filterByResources:' + params.body.filterByResources) + '::' + (params.body.extendedFieldsToQuery === undefined ? 'extendedFieldsToQuery' : 'extendedFieldsToQuery:' + params.body.extendedFieldsToQuery) + ')';
|
|
1897
|
+
return keyPrefix + '::GetGroupAppointmentsOutputRepresentation:(' + (params.body.startTime === undefined ? 'startTime' : 'startTime:' + params.body.startTime) + '::' + (params.body.endTime === undefined ? 'endTime' : 'endTime:' + params.body.endTime) + '::' + (params.body.limit === undefined ? 'limit' : 'limit:' + params.body.limit) + '::' + (params.body.offset === undefined ? 'offset' : 'offset:' + params.body.offset) + '::' + (params.body.filterByWorkTypeGroups === undefined ? 'filterByWorkTypeGroups' : 'filterByWorkTypeGroups:' + params.body.filterByWorkTypeGroups) + '::' + (params.body.filterByWorkTypes === undefined ? 'filterByWorkTypes' : 'filterByWorkTypes:' + params.body.filterByWorkTypes) + '::' + (params.body.filterByParentRecords === undefined ? 'filterByParentRecords' : 'filterByParentRecords:' + params.body.filterByParentRecords) + '::' + (params.body.filterByTerritories === undefined ? 'filterByTerritories' : 'filterByTerritories:' + params.body.filterByTerritories) + '::' + (params.body.filterByResources === undefined ? 'filterByResources' : 'filterByResources:' + params.body.filterByResources) + '::' + (params.body.excludeAssociatedAppts === undefined ? 'excludeAssociatedAppts' : 'excludeAssociatedAppts:' + params.body.excludeAssociatedAppts) + '::' + (params.body.extendedFieldsToQuery === undefined ? 'extendedFieldsToQuery' : 'extendedFieldsToQuery:' + params.body.extendedFieldsToQuery) + ')';
|
|
1865
1898
|
}
|
|
1866
1899
|
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
1867
1900
|
getTypeCacheKeys$d(storeKeyMap, luvio, response, () => keyBuilder$j(luvio, resourceParams));
|
|
@@ -1914,6 +1947,7 @@ const getGroupAppointments_ConfigPropertyMetadata = [
|
|
|
1914
1947
|
generateParamConfigMetadata('filterByParentRecords', false, 2 /* Body */, 0 /* String */, true),
|
|
1915
1948
|
generateParamConfigMetadata('filterByTerritories', false, 2 /* Body */, 0 /* String */, true),
|
|
1916
1949
|
generateParamConfigMetadata('filterByResources', false, 2 /* Body */, 0 /* String */, true),
|
|
1950
|
+
generateParamConfigMetadata('excludeAssociatedAppts', false, 2 /* Body */, 1 /* Boolean */),
|
|
1917
1951
|
generateParamConfigMetadata('extendedFieldsToQuery', false, 2 /* Body */, 0 /* String */, true),
|
|
1918
1952
|
];
|
|
1919
1953
|
const getGroupAppointments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getGroupAppointments_ConfigPropertyMetadata);
|
|
@@ -15,6 +15,7 @@ export interface GetGroupAppointmentsConfig {
|
|
|
15
15
|
filterByParentRecords?: Array<string>;
|
|
16
16
|
filterByTerritories?: Array<string>;
|
|
17
17
|
filterByResources?: Array<string>;
|
|
18
|
+
excludeAssociatedAppts?: boolean;
|
|
18
19
|
extendedFieldsToQuery?: Array<string>;
|
|
19
20
|
}
|
|
20
21
|
export declare const createResourceParams: (config: GetGroupAppointmentsConfig) => resources_postConnectSchedulingGroupAppointments_ResourceRequestConfig;
|
package/dist/es/es2018/types/src/generated/types/GetGroupAppointmentsInputRepresentation.d.ts
CHANGED
|
@@ -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 = "6b968aae73dc4e095197a2ee161685a7";
|
|
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: GetGroupAppointmentsInputRepresentation, existing: GetGroupAppointmentsInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): GetGroupAppointmentsInputRepresentationNormalized;
|
|
@@ -16,6 +16,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
16
16
|
export interface GetGroupAppointmentsInputRepresentationNormalized {
|
|
17
17
|
/** End Time */
|
|
18
18
|
endTime?: string;
|
|
19
|
+
/** Exclude appointments for current user. */
|
|
20
|
+
excludeAssociatedAppts?: boolean;
|
|
19
21
|
/** List of Extended Fields */
|
|
20
22
|
extendedFieldsToQuery?: Array<string>;
|
|
21
23
|
/** Parent Record IDs */
|
|
@@ -43,6 +45,7 @@ export interface GetGroupAppointmentsInputRepresentationNormalized {
|
|
|
43
45
|
*/
|
|
44
46
|
export interface GetGroupAppointmentsInputRepresentation {
|
|
45
47
|
endTime?: string;
|
|
48
|
+
excludeAssociatedAppts?: boolean;
|
|
46
49
|
extendedFieldsToQuery?: Array<string>;
|
|
47
50
|
filterByParentRecords?: Array<string>;
|
|
48
51
|
filterByResources?: Array<string>;
|
|
@@ -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 = "e1942247bd0b4b845f6e33cb6ef21a75";
|
|
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: GetServiceTerritoriesResult, existing: GetServiceTerritoriesResultNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): GetServiceTerritoriesResultNormalized;
|
|
@@ -21,13 +21,13 @@ export interface GetServiceTerritoriesResultNormalized {
|
|
|
21
21
|
/** Service territory ID */
|
|
22
22
|
id: string;
|
|
23
23
|
/** Service territory latitude */
|
|
24
|
-
latitude
|
|
24
|
+
latitude?: string;
|
|
25
25
|
/** Service territory longitude */
|
|
26
|
-
longitude
|
|
26
|
+
longitude?: string;
|
|
27
27
|
/** Service territory name */
|
|
28
28
|
name: string;
|
|
29
29
|
/** Service territory operating hours ID */
|
|
30
|
-
operatingHoursId
|
|
30
|
+
operatingHoursId?: string;
|
|
31
31
|
/** Service territory postal code */
|
|
32
32
|
postalCode: string;
|
|
33
33
|
/** Service territory state */
|
|
@@ -45,10 +45,10 @@ export interface GetServiceTerritoriesResult {
|
|
|
45
45
|
city: string;
|
|
46
46
|
country: string;
|
|
47
47
|
id: string;
|
|
48
|
-
latitude
|
|
49
|
-
longitude
|
|
48
|
+
latitude?: string;
|
|
49
|
+
longitude?: string;
|
|
50
50
|
name: string;
|
|
51
|
-
operatingHoursId
|
|
51
|
+
operatingHoursId?: string;
|
|
52
52
|
postalCode: string;
|
|
53
53
|
state: string;
|
|
54
54
|
street: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-scheduler",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.285.0",
|
|
4
4
|
"description": "Wire adapters for Lightning Scheduler resources",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/industries-scheduler.js",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"test:unit": "jest"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@salesforce/lds-bindings": "^1.
|
|
47
|
+
"@salesforce/lds-bindings": "^1.285.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
51
|
-
"@salesforce/lds-karma": "^1.
|
|
50
|
+
"@salesforce/lds-compiler-plugins": "^1.285.0",
|
|
51
|
+
"@salesforce/lds-karma": "^1.285.0"
|
|
52
52
|
},
|
|
53
53
|
"nx": {
|
|
54
54
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -1495,7 +1495,7 @@ function equals$v(existing, incoming) {
|
|
|
1495
1495
|
return true;
|
|
1496
1496
|
}
|
|
1497
1497
|
|
|
1498
|
-
const VERSION$u = "
|
|
1498
|
+
const VERSION$u = "e1942247bd0b4b845f6e33cb6ef21a75";
|
|
1499
1499
|
function validate$v(obj, path = 'GetServiceTerritoriesResult') {
|
|
1500
1500
|
const v_error = (() => {
|
|
1501
1501
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1516,25 +1516,31 @@ function validate$v(obj, path = 'GetServiceTerritoriesResult') {
|
|
|
1516
1516
|
if (typeof obj_id !== 'string') {
|
|
1517
1517
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1518
1518
|
}
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1519
|
+
if (obj.latitude !== undefined) {
|
|
1520
|
+
const obj_latitude = obj.latitude;
|
|
1521
|
+
const path_latitude = path + '.latitude';
|
|
1522
|
+
if (typeof obj_latitude !== 'string') {
|
|
1523
|
+
return new TypeError('Expected "string" but received "' + typeof obj_latitude + '" (at "' + path_latitude + '")');
|
|
1524
|
+
}
|
|
1523
1525
|
}
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1526
|
+
if (obj.longitude !== undefined) {
|
|
1527
|
+
const obj_longitude = obj.longitude;
|
|
1528
|
+
const path_longitude = path + '.longitude';
|
|
1529
|
+
if (typeof obj_longitude !== 'string') {
|
|
1530
|
+
return new TypeError('Expected "string" but received "' + typeof obj_longitude + '" (at "' + path_longitude + '")');
|
|
1531
|
+
}
|
|
1528
1532
|
}
|
|
1529
1533
|
const obj_name = obj.name;
|
|
1530
1534
|
const path_name = path + '.name';
|
|
1531
1535
|
if (typeof obj_name !== 'string') {
|
|
1532
1536
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
1533
1537
|
}
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
+
if (obj.operatingHoursId !== undefined) {
|
|
1539
|
+
const obj_operatingHoursId = obj.operatingHoursId;
|
|
1540
|
+
const path_operatingHoursId = path + '.operatingHoursId';
|
|
1541
|
+
if (typeof obj_operatingHoursId !== 'string') {
|
|
1542
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operatingHoursId + '" (at "' + path_operatingHoursId + '")');
|
|
1543
|
+
}
|
|
1538
1544
|
}
|
|
1539
1545
|
const obj_postalCode = obj.postalCode;
|
|
1540
1546
|
const path_postalCode = path + '.postalCode';
|
|
@@ -1574,11 +1580,13 @@ const select$E = function GetServiceTerritoriesResultSelect() {
|
|
|
1574
1580
|
},
|
|
1575
1581
|
{
|
|
1576
1582
|
name: 'latitude',
|
|
1577
|
-
kind: 'Scalar'
|
|
1583
|
+
kind: 'Scalar',
|
|
1584
|
+
required: false
|
|
1578
1585
|
},
|
|
1579
1586
|
{
|
|
1580
1587
|
name: 'longitude',
|
|
1581
|
-
kind: 'Scalar'
|
|
1588
|
+
kind: 'Scalar',
|
|
1589
|
+
required: false
|
|
1582
1590
|
},
|
|
1583
1591
|
{
|
|
1584
1592
|
name: 'name',
|
|
@@ -1586,7 +1594,8 @@ const select$E = function GetServiceTerritoriesResultSelect() {
|
|
|
1586
1594
|
},
|
|
1587
1595
|
{
|
|
1588
1596
|
name: 'operatingHoursId',
|
|
1589
|
-
kind: 'Scalar'
|
|
1597
|
+
kind: 'Scalar',
|
|
1598
|
+
required: false
|
|
1590
1599
|
},
|
|
1591
1600
|
{
|
|
1592
1601
|
name: 'postalCode',
|
|
@@ -1621,13 +1630,29 @@ function equals$u(existing, incoming) {
|
|
|
1621
1630
|
}
|
|
1622
1631
|
const existing_latitude = existing.latitude;
|
|
1623
1632
|
const incoming_latitude = incoming.latitude;
|
|
1624
|
-
if
|
|
1625
|
-
|
|
1633
|
+
// if at least one of these optionals is defined
|
|
1634
|
+
if (existing_latitude !== undefined || incoming_latitude !== undefined) {
|
|
1635
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1636
|
+
// not equal
|
|
1637
|
+
if (existing_latitude === undefined || incoming_latitude === undefined) {
|
|
1638
|
+
return false;
|
|
1639
|
+
}
|
|
1640
|
+
if (!(existing_latitude === incoming_latitude)) {
|
|
1641
|
+
return false;
|
|
1642
|
+
}
|
|
1626
1643
|
}
|
|
1627
1644
|
const existing_longitude = existing.longitude;
|
|
1628
1645
|
const incoming_longitude = incoming.longitude;
|
|
1629
|
-
if
|
|
1630
|
-
|
|
1646
|
+
// if at least one of these optionals is defined
|
|
1647
|
+
if (existing_longitude !== undefined || incoming_longitude !== undefined) {
|
|
1648
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1649
|
+
// not equal
|
|
1650
|
+
if (existing_longitude === undefined || incoming_longitude === undefined) {
|
|
1651
|
+
return false;
|
|
1652
|
+
}
|
|
1653
|
+
if (!(existing_longitude === incoming_longitude)) {
|
|
1654
|
+
return false;
|
|
1655
|
+
}
|
|
1631
1656
|
}
|
|
1632
1657
|
const existing_name = existing.name;
|
|
1633
1658
|
const incoming_name = incoming.name;
|
|
@@ -1636,8 +1661,16 @@ function equals$u(existing, incoming) {
|
|
|
1636
1661
|
}
|
|
1637
1662
|
const existing_operatingHoursId = existing.operatingHoursId;
|
|
1638
1663
|
const incoming_operatingHoursId = incoming.operatingHoursId;
|
|
1639
|
-
if
|
|
1640
|
-
|
|
1664
|
+
// if at least one of these optionals is defined
|
|
1665
|
+
if (existing_operatingHoursId !== undefined || incoming_operatingHoursId !== undefined) {
|
|
1666
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1667
|
+
// not equal
|
|
1668
|
+
if (existing_operatingHoursId === undefined || incoming_operatingHoursId === undefined) {
|
|
1669
|
+
return false;
|
|
1670
|
+
}
|
|
1671
|
+
if (!(existing_operatingHoursId === incoming_operatingHoursId)) {
|
|
1672
|
+
return false;
|
|
1673
|
+
}
|
|
1641
1674
|
}
|
|
1642
1675
|
const existing_postalCode = existing.postalCode;
|
|
1643
1676
|
const incoming_postalCode = incoming.postalCode;
|
|
@@ -3165,7 +3198,7 @@ function select$r(luvio, params) {
|
|
|
3165
3198
|
return select$s();
|
|
3166
3199
|
}
|
|
3167
3200
|
function keyBuilder$b(luvio, params) {
|
|
3168
|
-
return keyPrefix + '::GetGroupAppointmentsOutputRepresentation:(' + (params.body.startTime === undefined ? 'startTime' : 'startTime:' + params.body.startTime) + '::' + (params.body.endTime === undefined ? 'endTime' : 'endTime:' + params.body.endTime) + '::' + (params.body.limit === undefined ? 'limit' : 'limit:' + params.body.limit) + '::' + (params.body.offset === undefined ? 'offset' : 'offset:' + params.body.offset) + '::' + (params.body.filterByWorkTypeGroups === undefined ? 'filterByWorkTypeGroups' : 'filterByWorkTypeGroups:' + params.body.filterByWorkTypeGroups) + '::' + (params.body.filterByWorkTypes === undefined ? 'filterByWorkTypes' : 'filterByWorkTypes:' + params.body.filterByWorkTypes) + '::' + (params.body.filterByParentRecords === undefined ? 'filterByParentRecords' : 'filterByParentRecords:' + params.body.filterByParentRecords) + '::' + (params.body.filterByTerritories === undefined ? 'filterByTerritories' : 'filterByTerritories:' + params.body.filterByTerritories) + '::' + (params.body.filterByResources === undefined ? 'filterByResources' : 'filterByResources:' + params.body.filterByResources) + '::' + (params.body.extendedFieldsToQuery === undefined ? 'extendedFieldsToQuery' : 'extendedFieldsToQuery:' + params.body.extendedFieldsToQuery) + ')';
|
|
3201
|
+
return keyPrefix + '::GetGroupAppointmentsOutputRepresentation:(' + (params.body.startTime === undefined ? 'startTime' : 'startTime:' + params.body.startTime) + '::' + (params.body.endTime === undefined ? 'endTime' : 'endTime:' + params.body.endTime) + '::' + (params.body.limit === undefined ? 'limit' : 'limit:' + params.body.limit) + '::' + (params.body.offset === undefined ? 'offset' : 'offset:' + params.body.offset) + '::' + (params.body.filterByWorkTypeGroups === undefined ? 'filterByWorkTypeGroups' : 'filterByWorkTypeGroups:' + params.body.filterByWorkTypeGroups) + '::' + (params.body.filterByWorkTypes === undefined ? 'filterByWorkTypes' : 'filterByWorkTypes:' + params.body.filterByWorkTypes) + '::' + (params.body.filterByParentRecords === undefined ? 'filterByParentRecords' : 'filterByParentRecords:' + params.body.filterByParentRecords) + '::' + (params.body.filterByTerritories === undefined ? 'filterByTerritories' : 'filterByTerritories:' + params.body.filterByTerritories) + '::' + (params.body.filterByResources === undefined ? 'filterByResources' : 'filterByResources:' + params.body.filterByResources) + '::' + (params.body.excludeAssociatedAppts === undefined ? 'excludeAssociatedAppts' : 'excludeAssociatedAppts:' + params.body.excludeAssociatedAppts) + '::' + (params.body.extendedFieldsToQuery === undefined ? 'extendedFieldsToQuery' : 'extendedFieldsToQuery:' + params.body.extendedFieldsToQuery) + ')';
|
|
3169
3202
|
}
|
|
3170
3203
|
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
3171
3204
|
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
|
|
@@ -3218,6 +3251,7 @@ const getGroupAppointments_ConfigPropertyMetadata = [
|
|
|
3218
3251
|
generateParamConfigMetadata('filterByParentRecords', false, 2 /* Body */, 0 /* String */, true),
|
|
3219
3252
|
generateParamConfigMetadata('filterByTerritories', false, 2 /* Body */, 0 /* String */, true),
|
|
3220
3253
|
generateParamConfigMetadata('filterByResources', false, 2 /* Body */, 0 /* String */, true),
|
|
3254
|
+
generateParamConfigMetadata('excludeAssociatedAppts', false, 2 /* Body */, 1 /* Boolean */),
|
|
3221
3255
|
generateParamConfigMetadata('extendedFieldsToQuery', false, 2 /* Body */, 0 /* String */, true),
|
|
3222
3256
|
];
|
|
3223
3257
|
const getGroupAppointments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getGroupAppointments_ConfigPropertyMetadata);
|
|
@@ -6275,4 +6309,4 @@ withDefaultLuvio((luvio) => {
|
|
|
6275
6309
|
});
|
|
6276
6310
|
|
|
6277
6311
|
export { createServiceAppointment, createServiceAppointmentAttendee, createWaitlistAppointment, createWaitlistCheckIn, getAppointmentFromToken, getAppointmentFromToken_imperative, getEngagementChannelTypes, getEngagementChannelTypes_imperative, getGroupAppointments, getGroupAppointments_imperative, getNextWaitlistParticipant, getNextWaitlistParticipant_imperative, getParticipantRecentInteractions, getParticipantRecentInteractions_imperative, getServiceTerritoryCapacity, getServiceTerritoryCapacity_imperative, getWaitlistRelationships, getWaitlistRelationships_imperative, getWaitlists, getWaitlists_imperative, updateServiceAppointment, updateServiceAppointmentAttendee };
|
|
6278
|
-
// version: 1.
|
|
6312
|
+
// version: 1.285.0-c97dec82e
|
package/src/raml/api.raml
CHANGED
|
@@ -290,6 +290,10 @@ types:
|
|
|
290
290
|
required: false
|
|
291
291
|
items:
|
|
292
292
|
type: string
|
|
293
|
+
excludeAssociatedAppts:
|
|
294
|
+
description: Exclude appointments for current user.
|
|
295
|
+
required: false
|
|
296
|
+
type: boolean
|
|
293
297
|
extendedFieldsToQuery:
|
|
294
298
|
description: List of Extended Fields
|
|
295
299
|
type: array
|
|
@@ -408,15 +412,18 @@ types:
|
|
|
408
412
|
latitude:
|
|
409
413
|
description: Service territory latitude
|
|
410
414
|
type: string
|
|
415
|
+
required: false
|
|
411
416
|
longitude:
|
|
412
417
|
description: Service territory longitude
|
|
413
418
|
type: string
|
|
419
|
+
required: false
|
|
414
420
|
name:
|
|
415
421
|
description: Service territory name
|
|
416
422
|
type: string
|
|
417
423
|
operatingHoursId:
|
|
418
424
|
description: Service territory operating hours ID
|
|
419
425
|
type: string
|
|
426
|
+
required: false
|
|
420
427
|
postalCode:
|
|
421
428
|
description: Service territory postal code
|
|
422
429
|
type: string
|