@salesforce/lds-adapters-industries-scheduler 1.214.2 → 1.216.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 +39 -126
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/createServiceAppointment.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/createWaitlistAppointment.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/createWaitlistCheckIn.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getEngagementChannelTypes.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getNextWaitlistParticipant.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getParticipantRecentInteractions.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getWaitlistRelationships.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getWaitlists.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/updateServiceAppointment.d.ts +1 -1
- package/package.json +1 -1
- package/sfdc/index.js +40 -127
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5,
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5, typeCheckConfig as typeCheckConfig$9, StoreKeyMap, createResourceParams as createResourceParams$9 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -48,10 +48,13 @@ const snapshotRefreshOptions = {
|
|
|
48
48
|
},
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
function generateParamConfigMetadata(name, required, coerceFn) {
|
|
51
|
+
function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
|
|
52
52
|
return {
|
|
53
53
|
name,
|
|
54
54
|
required,
|
|
55
|
+
resourceType,
|
|
56
|
+
typeCheckShape,
|
|
57
|
+
isArrayShape,
|
|
55
58
|
coerceFn,
|
|
56
59
|
};
|
|
57
60
|
}
|
|
@@ -454,28 +457,18 @@ function createResourceRequest$8(config) {
|
|
|
454
457
|
|
|
455
458
|
const adapterName$8 = 'getEngagementChannelTypes';
|
|
456
459
|
const getEngagementChannelTypes_ConfigPropertyMetadata = [
|
|
457
|
-
generateParamConfigMetadata('workTypeGroupIds', false),
|
|
458
|
-
generateParamConfigMetadata('workTypeIds', false),
|
|
460
|
+
generateParamConfigMetadata('workTypeGroupIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
461
|
+
generateParamConfigMetadata('workTypeIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
459
462
|
];
|
|
460
463
|
const getEngagementChannelTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getEngagementChannelTypes_ConfigPropertyMetadata);
|
|
461
|
-
|
|
462
|
-
const resourceParams = {
|
|
463
|
-
queryParams: {
|
|
464
|
-
workTypeGroupIds: config.workTypeGroupIds, workTypeIds: config.workTypeIds
|
|
465
|
-
}
|
|
466
|
-
};
|
|
467
|
-
return resourceParams;
|
|
468
|
-
}
|
|
464
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$9(getEngagementChannelTypes_ConfigPropertyMetadata);
|
|
469
465
|
function keyBuilder$e(luvio, config) {
|
|
470
466
|
const resourceParams = createResourceParams$8(config);
|
|
471
467
|
return keyBuilder$f(luvio, resourceParams);
|
|
472
468
|
}
|
|
473
469
|
function typeCheckConfig$8(untrustedConfig) {
|
|
474
470
|
const config = {};
|
|
475
|
-
|
|
476
|
-
workTypeGroupIds: 0 /* String */,
|
|
477
|
-
workTypeIds: 0 /* String */,
|
|
478
|
-
});
|
|
471
|
+
typeCheckConfig$9(untrustedConfig, config, getEngagementChannelTypes_ConfigPropertyMetadata);
|
|
479
472
|
return config;
|
|
480
473
|
}
|
|
481
474
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -960,26 +953,17 @@ function createResourceRequest$7(config) {
|
|
|
960
953
|
|
|
961
954
|
const adapterName$7 = 'getNextWaitlistParticipant';
|
|
962
955
|
const getNextWaitlistParticipant_ConfigPropertyMetadata = [
|
|
963
|
-
generateParamConfigMetadata('userId', false),
|
|
956
|
+
generateParamConfigMetadata('userId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
964
957
|
];
|
|
965
958
|
const getNextWaitlistParticipant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getNextWaitlistParticipant_ConfigPropertyMetadata);
|
|
966
|
-
|
|
967
|
-
const resourceParams = {
|
|
968
|
-
queryParams: {
|
|
969
|
-
userId: config.userId
|
|
970
|
-
}
|
|
971
|
-
};
|
|
972
|
-
return resourceParams;
|
|
973
|
-
}
|
|
959
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$9(getNextWaitlistParticipant_ConfigPropertyMetadata);
|
|
974
960
|
function keyBuilder$c(luvio, config) {
|
|
975
961
|
const resourceParams = createResourceParams$7(config);
|
|
976
962
|
return keyBuilder$d(luvio, resourceParams);
|
|
977
963
|
}
|
|
978
964
|
function typeCheckConfig$7(untrustedConfig) {
|
|
979
965
|
const config = {};
|
|
980
|
-
|
|
981
|
-
userId: 0 /* String */,
|
|
982
|
-
});
|
|
966
|
+
typeCheckConfig$9(untrustedConfig, config, getNextWaitlistParticipant_ConfigPropertyMetadata);
|
|
983
967
|
return config;
|
|
984
968
|
}
|
|
985
969
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -1293,32 +1277,19 @@ function createResourceRequest$6(config) {
|
|
|
1293
1277
|
|
|
1294
1278
|
const adapterName$6 = 'getParticipantRecentInteractions';
|
|
1295
1279
|
const getParticipantRecentInteractions_ConfigPropertyMetadata = [
|
|
1296
|
-
generateParamConfigMetadata('filterByResourceIds', false),
|
|
1297
|
-
generateParamConfigMetadata('participantId', false),
|
|
1298
|
-
generateParamConfigMetadata('territoryId', false),
|
|
1280
|
+
generateParamConfigMetadata('filterByResourceIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
1281
|
+
generateParamConfigMetadata('participantId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1282
|
+
generateParamConfigMetadata('territoryId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1299
1283
|
];
|
|
1300
1284
|
const getParticipantRecentInteractions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getParticipantRecentInteractions_ConfigPropertyMetadata);
|
|
1301
|
-
|
|
1302
|
-
const resourceParams = {
|
|
1303
|
-
queryParams: {
|
|
1304
|
-
filterByResourceIds: config.filterByResourceIds, participantId: config.participantId, territoryId: config.territoryId
|
|
1305
|
-
}
|
|
1306
|
-
};
|
|
1307
|
-
return resourceParams;
|
|
1308
|
-
}
|
|
1285
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$9(getParticipantRecentInteractions_ConfigPropertyMetadata);
|
|
1309
1286
|
function keyBuilder$a(luvio, config) {
|
|
1310
1287
|
const resourceParams = createResourceParams$6(config);
|
|
1311
1288
|
return keyBuilder$b(luvio, resourceParams);
|
|
1312
1289
|
}
|
|
1313
1290
|
function typeCheckConfig$6(untrustedConfig) {
|
|
1314
1291
|
const config = {};
|
|
1315
|
-
|
|
1316
|
-
participantId: 0 /* String */,
|
|
1317
|
-
territoryId: 0 /* String */,
|
|
1318
|
-
});
|
|
1319
|
-
typeCheckArrayOfScalars(untrustedConfig, config, {
|
|
1320
|
-
filterByResourceIds: 0 /* String */,
|
|
1321
|
-
});
|
|
1292
|
+
typeCheckConfig$9(untrustedConfig, config, getParticipantRecentInteractions_ConfigPropertyMetadata);
|
|
1322
1293
|
return config;
|
|
1323
1294
|
}
|
|
1324
1295
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -1684,17 +1655,10 @@ function createResourceRequest$5(config) {
|
|
|
1684
1655
|
|
|
1685
1656
|
const adapterName$5 = 'updateServiceAppointment';
|
|
1686
1657
|
const updateServiceAppointment_ConfigPropertyMetadata = [
|
|
1687
|
-
generateParamConfigMetadata('updateServiceAppointmentInput', true),
|
|
1658
|
+
generateParamConfigMetadata('updateServiceAppointmentInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1688
1659
|
];
|
|
1689
1660
|
const updateServiceAppointment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, updateServiceAppointment_ConfigPropertyMetadata);
|
|
1690
|
-
|
|
1691
|
-
const resourceParams = {
|
|
1692
|
-
body: {
|
|
1693
|
-
updateServiceAppointmentInput: config.updateServiceAppointmentInput
|
|
1694
|
-
}
|
|
1695
|
-
};
|
|
1696
|
-
return resourceParams;
|
|
1697
|
-
}
|
|
1661
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$9(updateServiceAppointment_ConfigPropertyMetadata);
|
|
1698
1662
|
function typeCheckConfig$5(untrustedConfig) {
|
|
1699
1663
|
const config = {};
|
|
1700
1664
|
const untrustedConfig_updateServiceAppointmentInput = untrustedConfig.updateServiceAppointmentInput;
|
|
@@ -1836,17 +1800,10 @@ function createResourceRequest$4(config) {
|
|
|
1836
1800
|
|
|
1837
1801
|
const adapterName$4 = 'createServiceAppointment';
|
|
1838
1802
|
const createServiceAppointment_ConfigPropertyMetadata = [
|
|
1839
|
-
generateParamConfigMetadata('createServiceAppointmentInput', true),
|
|
1803
|
+
generateParamConfigMetadata('createServiceAppointmentInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1840
1804
|
];
|
|
1841
1805
|
const createServiceAppointment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createServiceAppointment_ConfigPropertyMetadata);
|
|
1842
|
-
|
|
1843
|
-
const resourceParams = {
|
|
1844
|
-
body: {
|
|
1845
|
-
createServiceAppointmentInput: config.createServiceAppointmentInput
|
|
1846
|
-
}
|
|
1847
|
-
};
|
|
1848
|
-
return resourceParams;
|
|
1849
|
-
}
|
|
1806
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$9(createServiceAppointment_ConfigPropertyMetadata);
|
|
1850
1807
|
function typeCheckConfig$4(untrustedConfig) {
|
|
1851
1808
|
const config = {};
|
|
1852
1809
|
const untrustedConfig_createServiceAppointmentInput = untrustedConfig.createServiceAppointmentInput;
|
|
@@ -2160,17 +2117,10 @@ function createResourceRequest$3(config) {
|
|
|
2160
2117
|
|
|
2161
2118
|
const adapterName$3 = 'createWaitlistAppointment';
|
|
2162
2119
|
const createWaitlistAppointment_ConfigPropertyMetadata = [
|
|
2163
|
-
generateParamConfigMetadata('waitlistAppointmentInput', true),
|
|
2120
|
+
generateParamConfigMetadata('waitlistAppointmentInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2164
2121
|
];
|
|
2165
2122
|
const createWaitlistAppointment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createWaitlistAppointment_ConfigPropertyMetadata);
|
|
2166
|
-
|
|
2167
|
-
const resourceParams = {
|
|
2168
|
-
body: {
|
|
2169
|
-
waitlistAppointmentInput: config.waitlistAppointmentInput
|
|
2170
|
-
}
|
|
2171
|
-
};
|
|
2172
|
-
return resourceParams;
|
|
2173
|
-
}
|
|
2123
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$9(createWaitlistAppointment_ConfigPropertyMetadata);
|
|
2174
2124
|
function typeCheckConfig$3(untrustedConfig) {
|
|
2175
2125
|
const config = {};
|
|
2176
2126
|
const untrustedConfig_waitlistAppointmentInput = untrustedConfig.waitlistAppointmentInput;
|
|
@@ -2535,17 +2485,10 @@ function createResourceRequest$2(config) {
|
|
|
2535
2485
|
|
|
2536
2486
|
const adapterName$2 = 'createWaitlistCheckIn';
|
|
2537
2487
|
const createWaitlistCheckIn_ConfigPropertyMetadata = [
|
|
2538
|
-
generateParamConfigMetadata('waitlistCheckInInput', true),
|
|
2488
|
+
generateParamConfigMetadata('waitlistCheckInInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2539
2489
|
];
|
|
2540
2490
|
const createWaitlistCheckIn_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, createWaitlistCheckIn_ConfigPropertyMetadata);
|
|
2541
|
-
|
|
2542
|
-
const resourceParams = {
|
|
2543
|
-
body: {
|
|
2544
|
-
waitlistCheckInInput: config.waitlistCheckInInput
|
|
2545
|
-
}
|
|
2546
|
-
};
|
|
2547
|
-
return resourceParams;
|
|
2548
|
-
}
|
|
2491
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$9(createWaitlistCheckIn_ConfigPropertyMetadata);
|
|
2549
2492
|
function typeCheckConfig$2(untrustedConfig) {
|
|
2550
2493
|
const config = {};
|
|
2551
2494
|
const untrustedConfig_waitlistCheckInInput = untrustedConfig.waitlistCheckInInput;
|
|
@@ -3715,32 +3658,19 @@ function createResourceRequest$1(config) {
|
|
|
3715
3658
|
|
|
3716
3659
|
const adapterName$1 = 'getWaitlistRelationships';
|
|
3717
3660
|
const getWaitlistRelationships_ConfigPropertyMetadata = [
|
|
3718
|
-
generateParamConfigMetadata('serviceTerritoryId', false),
|
|
3719
|
-
generateParamConfigMetadata('waitlistIds', false),
|
|
3720
|
-
generateParamConfigMetadata('workTypeIds', false),
|
|
3661
|
+
generateParamConfigMetadata('serviceTerritoryId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3662
|
+
generateParamConfigMetadata('waitlistIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
3663
|
+
generateParamConfigMetadata('workTypeIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
3721
3664
|
];
|
|
3722
3665
|
const getWaitlistRelationships_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getWaitlistRelationships_ConfigPropertyMetadata);
|
|
3723
|
-
|
|
3724
|
-
const resourceParams = {
|
|
3725
|
-
queryParams: {
|
|
3726
|
-
serviceTerritoryId: config.serviceTerritoryId, waitlistIds: config.waitlistIds, workTypeIds: config.workTypeIds
|
|
3727
|
-
}
|
|
3728
|
-
};
|
|
3729
|
-
return resourceParams;
|
|
3730
|
-
}
|
|
3666
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$9(getWaitlistRelationships_ConfigPropertyMetadata);
|
|
3731
3667
|
function keyBuilder$2(luvio, config) {
|
|
3732
3668
|
const resourceParams = createResourceParams$1(config);
|
|
3733
3669
|
return keyBuilder$3(luvio, resourceParams);
|
|
3734
3670
|
}
|
|
3735
3671
|
function typeCheckConfig$1(untrustedConfig) {
|
|
3736
3672
|
const config = {};
|
|
3737
|
-
|
|
3738
|
-
serviceTerritoryId: 0 /* String */,
|
|
3739
|
-
});
|
|
3740
|
-
typeCheckArrayOfScalars(untrustedConfig, config, {
|
|
3741
|
-
waitlistIds: 0 /* String */,
|
|
3742
|
-
workTypeIds: 0 /* String */,
|
|
3743
|
-
});
|
|
3673
|
+
typeCheckConfig$9(untrustedConfig, config, getWaitlistRelationships_ConfigPropertyMetadata);
|
|
3744
3674
|
return config;
|
|
3745
3675
|
}
|
|
3746
3676
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -3982,40 +3912,23 @@ function createResourceRequest(config) {
|
|
|
3982
3912
|
|
|
3983
3913
|
const adapterName = 'getWaitlists';
|
|
3984
3914
|
const getWaitlists_ConfigPropertyMetadata = [
|
|
3985
|
-
generateParamConfigMetadata('isActive', false),
|
|
3986
|
-
generateParamConfigMetadata('maxLimit', false),
|
|
3987
|
-
generateParamConfigMetadata('offset', false),
|
|
3988
|
-
generateParamConfigMetadata('participantFields', false),
|
|
3989
|
-
generateParamConfigMetadata('requestId', false),
|
|
3990
|
-
generateParamConfigMetadata('serviceTerritoryId', false),
|
|
3991
|
-
generateParamConfigMetadata('waitlistIds', false),
|
|
3915
|
+
generateParamConfigMetadata('isActive', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
3916
|
+
generateParamConfigMetadata('maxLimit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3917
|
+
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3918
|
+
generateParamConfigMetadata('participantFields', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
3919
|
+
generateParamConfigMetadata('requestId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3920
|
+
generateParamConfigMetadata('serviceTerritoryId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3921
|
+
generateParamConfigMetadata('waitlistIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
3992
3922
|
];
|
|
3993
3923
|
const getWaitlists_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getWaitlists_ConfigPropertyMetadata);
|
|
3994
|
-
|
|
3995
|
-
const resourceParams = {
|
|
3996
|
-
queryParams: {
|
|
3997
|
-
isActive: config.isActive, maxLimit: config.maxLimit, offset: config.offset, participantFields: config.participantFields, requestId: config.requestId, serviceTerritoryId: config.serviceTerritoryId, waitlistIds: config.waitlistIds
|
|
3998
|
-
}
|
|
3999
|
-
};
|
|
4000
|
-
return resourceParams;
|
|
4001
|
-
}
|
|
3924
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$9(getWaitlists_ConfigPropertyMetadata);
|
|
4002
3925
|
function keyBuilder(luvio, config) {
|
|
4003
3926
|
const resourceParams = createResourceParams(config);
|
|
4004
3927
|
return keyBuilder$1(luvio, resourceParams);
|
|
4005
3928
|
}
|
|
4006
3929
|
function typeCheckConfig(untrustedConfig) {
|
|
4007
3930
|
const config = {};
|
|
4008
|
-
|
|
4009
|
-
isActive: 1 /* Boolean */,
|
|
4010
|
-
maxLimit: 3 /* Integer */,
|
|
4011
|
-
offset: 3 /* Integer */,
|
|
4012
|
-
requestId: 0 /* String */,
|
|
4013
|
-
serviceTerritoryId: 0 /* String */,
|
|
4014
|
-
});
|
|
4015
|
-
typeCheckArrayOfScalars(untrustedConfig, config, {
|
|
4016
|
-
participantFields: 0 /* String */,
|
|
4017
|
-
waitlistIds: 0 /* String */,
|
|
4018
|
-
});
|
|
3931
|
+
typeCheckConfig$9(untrustedConfig, config, getWaitlists_ConfigPropertyMetadata);
|
|
4019
3932
|
return config;
|
|
4020
3933
|
}
|
|
4021
3934
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -57,6 +57,6 @@ export declare const snapshotRefreshOptions: {
|
|
|
57
57
|
export declare function stableJSONStringify(node: any): string | undefined;
|
|
58
58
|
export declare function getFetchResponseStatusText(status: number): string;
|
|
59
59
|
export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
|
|
60
|
-
export declare function generateParamConfigMetadata(name: string, required: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
|
|
60
|
+
export declare function generateParamConfigMetadata(name: string, required: boolean, resourceType: $64$luvio_engine_AdapterConfigMetadata['resourceType'], typeCheckShape: $64$luvio_engine_AdapterConfigMetadata['typeCheckShape'], isArrayShape?: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
|
|
61
61
|
export declare function buildAdapterValidationConfig(displayName: string, paramsMeta: $64$luvio_engine_AdapterConfigMetadata[]): AdapterValidationConfig;
|
|
62
62
|
export declare const keyPrefix = "IndustriesScheduler";
|
|
@@ -9,7 +9,7 @@ export declare const createServiceAppointment_ConfigPropertyNames: adapter$45$ut
|
|
|
9
9
|
export interface CreateServiceAppointmentConfig {
|
|
10
10
|
createServiceAppointmentInput: types_CreateServiceAppointmentInputRepresentation_CreateServiceAppointmentInputRepresentation;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: CreateServiceAppointmentConfig) => resources_postConnectSchedulingServiceAppointments_ResourceRequestConfig;
|
|
13
13
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateServiceAppointmentConfig>): adapter$45$utils_Untrusted<CreateServiceAppointmentConfig>;
|
|
14
14
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): CreateServiceAppointmentConfig | null;
|
|
15
15
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateServiceAppointmentConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_ServiceAppointmentOutputRepresentation_ServiceAppointmentOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ServiceAppointmentOutputRepresentation_ServiceAppointmentOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ServiceAppointmentOutputRepresentation_ServiceAppointmentOutputRepresentation, any>>;
|
|
@@ -9,7 +9,7 @@ export declare const createWaitlistAppointment_ConfigPropertyNames: adapter$45$u
|
|
|
9
9
|
export interface CreateWaitlistAppointmentConfig {
|
|
10
10
|
waitlistAppointmentInput: types_WaitlistAppointmentInputRepresentation_WaitlistAppointmentInputRepresentation;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: CreateWaitlistAppointmentConfig) => resources_postConnectSchedulingWaitlistAppointments_ResourceRequestConfig;
|
|
13
13
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateWaitlistAppointmentConfig>): adapter$45$utils_Untrusted<CreateWaitlistAppointmentConfig>;
|
|
14
14
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): CreateWaitlistAppointmentConfig | null;
|
|
15
15
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateWaitlistAppointmentConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_WaitlistAppointmentOutputRepresentation_WaitlistAppointmentOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_WaitlistAppointmentOutputRepresentation_WaitlistAppointmentOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_WaitlistAppointmentOutputRepresentation_WaitlistAppointmentOutputRepresentation, any>>;
|
|
@@ -9,7 +9,7 @@ export declare const createWaitlistCheckIn_ConfigPropertyNames: adapter$45$utils
|
|
|
9
9
|
export interface CreateWaitlistCheckInConfig {
|
|
10
10
|
waitlistCheckInInput: types_WaitlistCheckInInputRepresentation_WaitlistCheckInInputRepresentation;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: CreateWaitlistCheckInConfig) => resources_postConnectSchedulingWaitlistCheckin_ResourceRequestConfig;
|
|
13
13
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateWaitlistCheckInConfig>): adapter$45$utils_Untrusted<CreateWaitlistCheckInConfig>;
|
|
14
14
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): CreateWaitlistCheckInConfig | null;
|
|
15
15
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateWaitlistCheckInConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_WaitlistCheckInOutputRepresentation_WaitlistCheckInOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_WaitlistCheckInOutputRepresentation_WaitlistCheckInOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_WaitlistCheckInOutputRepresentation_WaitlistCheckInOutputRepresentation, any>>;
|
|
@@ -9,7 +9,7 @@ export interface GetEngagementChannelTypesConfig {
|
|
|
9
9
|
workTypeGroupIds?: Array<string>;
|
|
10
10
|
workTypeIds?: Array<string>;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: GetEngagementChannelTypesConfig) => resources_getConnectSchedulingEngagementChannelTypes_ResourceRequestConfig;
|
|
13
13
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetEngagementChannelTypesConfig): string;
|
|
14
14
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetEngagementChannelTypesConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
15
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetEngagementChannelTypesConfig>): adapter$45$utils_Untrusted<GetEngagementChannelTypesConfig>;
|
|
@@ -8,7 +8,7 @@ export declare const getNextWaitlistParticipant_ConfigPropertyNames: adapter$45$
|
|
|
8
8
|
export interface GetNextWaitlistParticipantConfig {
|
|
9
9
|
userId?: string;
|
|
10
10
|
}
|
|
11
|
-
export declare
|
|
11
|
+
export declare const createResourceParams: (config: GetNextWaitlistParticipantConfig) => resources_getConnectSchedulingNextWaitlistParticipant_ResourceRequestConfig;
|
|
12
12
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetNextWaitlistParticipantConfig): string;
|
|
13
13
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetNextWaitlistParticipantConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetNextWaitlistParticipantConfig>): adapter$45$utils_Untrusted<GetNextWaitlistParticipantConfig>;
|
|
@@ -10,7 +10,7 @@ export interface GetParticipantRecentInteractionsConfig {
|
|
|
10
10
|
participantId?: string;
|
|
11
11
|
territoryId?: string;
|
|
12
12
|
}
|
|
13
|
-
export declare
|
|
13
|
+
export declare const createResourceParams: (config: GetParticipantRecentInteractionsConfig) => resources_getConnectSchedulingParticipantRecentInteractions_ResourceRequestConfig;
|
|
14
14
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetParticipantRecentInteractionsConfig): string;
|
|
15
15
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetParticipantRecentInteractionsConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
16
16
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetParticipantRecentInteractionsConfig>): adapter$45$utils_Untrusted<GetParticipantRecentInteractionsConfig>;
|
|
@@ -10,7 +10,7 @@ export interface GetWaitlistRelationshipsConfig {
|
|
|
10
10
|
waitlistIds?: Array<string>;
|
|
11
11
|
workTypeIds?: Array<string>;
|
|
12
12
|
}
|
|
13
|
-
export declare
|
|
13
|
+
export declare const createResourceParams: (config: GetWaitlistRelationshipsConfig) => resources_getConnectSchedulingWaitlistRelationships_ResourceRequestConfig;
|
|
14
14
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetWaitlistRelationshipsConfig): string;
|
|
15
15
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetWaitlistRelationshipsConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
16
16
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetWaitlistRelationshipsConfig>): adapter$45$utils_Untrusted<GetWaitlistRelationshipsConfig>;
|
|
@@ -14,7 +14,7 @@ export interface GetWaitlistsConfig {
|
|
|
14
14
|
serviceTerritoryId?: string;
|
|
15
15
|
waitlistIds?: Array<string>;
|
|
16
16
|
}
|
|
17
|
-
export declare
|
|
17
|
+
export declare const createResourceParams: (config: GetWaitlistsConfig) => resources_getConnectSchedulingWaitlists_ResourceRequestConfig;
|
|
18
18
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetWaitlistsConfig): string;
|
|
19
19
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetWaitlistsConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
20
20
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetWaitlistsConfig>): adapter$45$utils_Untrusted<GetWaitlistsConfig>;
|
|
@@ -9,7 +9,7 @@ export declare const updateServiceAppointment_ConfigPropertyNames: adapter$45$ut
|
|
|
9
9
|
export interface UpdateServiceAppointmentConfig {
|
|
10
10
|
updateServiceAppointmentInput: types_UpdateServiceAppointmentInputRepresentation_UpdateServiceAppointmentInputRepresentation;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: UpdateServiceAppointmentConfig) => resources_patchConnectSchedulingServiceAppointments_ResourceRequestConfig;
|
|
13
13
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UpdateServiceAppointmentConfig>): adapter$45$utils_Untrusted<UpdateServiceAppointmentConfig>;
|
|
14
14
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): UpdateServiceAppointmentConfig | null;
|
|
15
15
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: UpdateServiceAppointmentConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_ServiceAppointmentOutputRepresentation_ServiceAppointmentOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ServiceAppointmentOutputRepresentation_ServiceAppointmentOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ServiceAppointmentOutputRepresentation_ServiceAppointmentOutputRepresentation, any>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-scheduler",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.216.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",
|
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5,
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$9, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5, typeCheckConfig as typeCheckConfig$9 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -58,10 +58,13 @@ const snapshotRefreshOptions = {
|
|
|
58
58
|
},
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
-
function generateParamConfigMetadata(name, required, coerceFn) {
|
|
61
|
+
function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
|
|
62
62
|
return {
|
|
63
63
|
name,
|
|
64
64
|
required,
|
|
65
|
+
resourceType,
|
|
66
|
+
typeCheckShape,
|
|
67
|
+
isArrayShape,
|
|
65
68
|
coerceFn,
|
|
66
69
|
};
|
|
67
70
|
}
|
|
@@ -394,17 +397,10 @@ function createResourceRequest$8(config) {
|
|
|
394
397
|
|
|
395
398
|
const adapterName$8 = 'createServiceAppointment';
|
|
396
399
|
const createServiceAppointment_ConfigPropertyMetadata = [
|
|
397
|
-
generateParamConfigMetadata('createServiceAppointmentInput', true),
|
|
400
|
+
generateParamConfigMetadata('createServiceAppointmentInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
398
401
|
];
|
|
399
402
|
const createServiceAppointment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createServiceAppointment_ConfigPropertyMetadata);
|
|
400
|
-
|
|
401
|
-
const resourceParams = {
|
|
402
|
-
body: {
|
|
403
|
-
createServiceAppointmentInput: config.createServiceAppointmentInput
|
|
404
|
-
}
|
|
405
|
-
};
|
|
406
|
-
return resourceParams;
|
|
407
|
-
}
|
|
403
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$9(createServiceAppointment_ConfigPropertyMetadata);
|
|
408
404
|
function typeCheckConfig$8(untrustedConfig) {
|
|
409
405
|
const config = {};
|
|
410
406
|
const untrustedConfig_createServiceAppointmentInput = untrustedConfig.createServiceAppointmentInput;
|
|
@@ -718,17 +714,10 @@ function createResourceRequest$7(config) {
|
|
|
718
714
|
|
|
719
715
|
const adapterName$7 = 'createWaitlistAppointment';
|
|
720
716
|
const createWaitlistAppointment_ConfigPropertyMetadata = [
|
|
721
|
-
generateParamConfigMetadata('waitlistAppointmentInput', true),
|
|
717
|
+
generateParamConfigMetadata('waitlistAppointmentInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
722
718
|
];
|
|
723
719
|
const createWaitlistAppointment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createWaitlistAppointment_ConfigPropertyMetadata);
|
|
724
|
-
|
|
725
|
-
const resourceParams = {
|
|
726
|
-
body: {
|
|
727
|
-
waitlistAppointmentInput: config.waitlistAppointmentInput
|
|
728
|
-
}
|
|
729
|
-
};
|
|
730
|
-
return resourceParams;
|
|
731
|
-
}
|
|
720
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$9(createWaitlistAppointment_ConfigPropertyMetadata);
|
|
732
721
|
function typeCheckConfig$7(untrustedConfig) {
|
|
733
722
|
const config = {};
|
|
734
723
|
const untrustedConfig_waitlistAppointmentInput = untrustedConfig.waitlistAppointmentInput;
|
|
@@ -1093,17 +1082,10 @@ function createResourceRequest$6(config) {
|
|
|
1093
1082
|
|
|
1094
1083
|
const adapterName$6 = 'createWaitlistCheckIn';
|
|
1095
1084
|
const createWaitlistCheckIn_ConfigPropertyMetadata = [
|
|
1096
|
-
generateParamConfigMetadata('waitlistCheckInInput', true),
|
|
1085
|
+
generateParamConfigMetadata('waitlistCheckInInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1097
1086
|
];
|
|
1098
1087
|
const createWaitlistCheckIn_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createWaitlistCheckIn_ConfigPropertyMetadata);
|
|
1099
|
-
|
|
1100
|
-
const resourceParams = {
|
|
1101
|
-
body: {
|
|
1102
|
-
waitlistCheckInInput: config.waitlistCheckInInput
|
|
1103
|
-
}
|
|
1104
|
-
};
|
|
1105
|
-
return resourceParams;
|
|
1106
|
-
}
|
|
1088
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$9(createWaitlistCheckIn_ConfigPropertyMetadata);
|
|
1107
1089
|
function typeCheckConfig$6(untrustedConfig) {
|
|
1108
1090
|
const config = {};
|
|
1109
1091
|
const untrustedConfig_waitlistCheckInInput = untrustedConfig.waitlistCheckInInput;
|
|
@@ -1521,28 +1503,18 @@ function createResourceRequest$5(config) {
|
|
|
1521
1503
|
|
|
1522
1504
|
const adapterName$5 = 'getEngagementChannelTypes';
|
|
1523
1505
|
const getEngagementChannelTypes_ConfigPropertyMetadata = [
|
|
1524
|
-
generateParamConfigMetadata('workTypeGroupIds', false),
|
|
1525
|
-
generateParamConfigMetadata('workTypeIds', false),
|
|
1506
|
+
generateParamConfigMetadata('workTypeGroupIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
1507
|
+
generateParamConfigMetadata('workTypeIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
1526
1508
|
];
|
|
1527
1509
|
const getEngagementChannelTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getEngagementChannelTypes_ConfigPropertyMetadata);
|
|
1528
|
-
|
|
1529
|
-
const resourceParams = {
|
|
1530
|
-
queryParams: {
|
|
1531
|
-
workTypeGroupIds: config.workTypeGroupIds, workTypeIds: config.workTypeIds
|
|
1532
|
-
}
|
|
1533
|
-
};
|
|
1534
|
-
return resourceParams;
|
|
1535
|
-
}
|
|
1510
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$9(getEngagementChannelTypes_ConfigPropertyMetadata);
|
|
1536
1511
|
function keyBuilder$8(luvio, config) {
|
|
1537
1512
|
const resourceParams = createResourceParams$5(config);
|
|
1538
1513
|
return keyBuilder$9(luvio, resourceParams);
|
|
1539
1514
|
}
|
|
1540
1515
|
function typeCheckConfig$5(untrustedConfig) {
|
|
1541
1516
|
const config = {};
|
|
1542
|
-
|
|
1543
|
-
workTypeGroupIds: 0 /* String */,
|
|
1544
|
-
workTypeIds: 0 /* String */,
|
|
1545
|
-
});
|
|
1517
|
+
typeCheckConfig$9(untrustedConfig, config, getEngagementChannelTypes_ConfigPropertyMetadata);
|
|
1546
1518
|
return config;
|
|
1547
1519
|
}
|
|
1548
1520
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -2027,26 +1999,17 @@ function createResourceRequest$4(config) {
|
|
|
2027
1999
|
|
|
2028
2000
|
const adapterName$4 = 'getNextWaitlistParticipant';
|
|
2029
2001
|
const getNextWaitlistParticipant_ConfigPropertyMetadata = [
|
|
2030
|
-
generateParamConfigMetadata('userId', false),
|
|
2002
|
+
generateParamConfigMetadata('userId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2031
2003
|
];
|
|
2032
2004
|
const getNextWaitlistParticipant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getNextWaitlistParticipant_ConfigPropertyMetadata);
|
|
2033
|
-
|
|
2034
|
-
const resourceParams = {
|
|
2035
|
-
queryParams: {
|
|
2036
|
-
userId: config.userId
|
|
2037
|
-
}
|
|
2038
|
-
};
|
|
2039
|
-
return resourceParams;
|
|
2040
|
-
}
|
|
2005
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$9(getNextWaitlistParticipant_ConfigPropertyMetadata);
|
|
2041
2006
|
function keyBuilder$6(luvio, config) {
|
|
2042
2007
|
const resourceParams = createResourceParams$4(config);
|
|
2043
2008
|
return keyBuilder$7(luvio, resourceParams);
|
|
2044
2009
|
}
|
|
2045
2010
|
function typeCheckConfig$4(untrustedConfig) {
|
|
2046
2011
|
const config = {};
|
|
2047
|
-
|
|
2048
|
-
userId: 0 /* String */,
|
|
2049
|
-
});
|
|
2012
|
+
typeCheckConfig$9(untrustedConfig, config, getNextWaitlistParticipant_ConfigPropertyMetadata);
|
|
2050
2013
|
return config;
|
|
2051
2014
|
}
|
|
2052
2015
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -2360,32 +2323,19 @@ function createResourceRequest$3(config) {
|
|
|
2360
2323
|
|
|
2361
2324
|
const adapterName$3 = 'getParticipantRecentInteractions';
|
|
2362
2325
|
const getParticipantRecentInteractions_ConfigPropertyMetadata = [
|
|
2363
|
-
generateParamConfigMetadata('filterByResourceIds', false),
|
|
2364
|
-
generateParamConfigMetadata('participantId', false),
|
|
2365
|
-
generateParamConfigMetadata('territoryId', false),
|
|
2326
|
+
generateParamConfigMetadata('filterByResourceIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
2327
|
+
generateParamConfigMetadata('participantId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2328
|
+
generateParamConfigMetadata('territoryId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2366
2329
|
];
|
|
2367
2330
|
const getParticipantRecentInteractions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getParticipantRecentInteractions_ConfigPropertyMetadata);
|
|
2368
|
-
|
|
2369
|
-
const resourceParams = {
|
|
2370
|
-
queryParams: {
|
|
2371
|
-
filterByResourceIds: config.filterByResourceIds, participantId: config.participantId, territoryId: config.territoryId
|
|
2372
|
-
}
|
|
2373
|
-
};
|
|
2374
|
-
return resourceParams;
|
|
2375
|
-
}
|
|
2331
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$9(getParticipantRecentInteractions_ConfigPropertyMetadata);
|
|
2376
2332
|
function keyBuilder$4(luvio, config) {
|
|
2377
2333
|
const resourceParams = createResourceParams$3(config);
|
|
2378
2334
|
return keyBuilder$5(luvio, resourceParams);
|
|
2379
2335
|
}
|
|
2380
2336
|
function typeCheckConfig$3(untrustedConfig) {
|
|
2381
2337
|
const config = {};
|
|
2382
|
-
|
|
2383
|
-
participantId: 0 /* String */,
|
|
2384
|
-
territoryId: 0 /* String */,
|
|
2385
|
-
});
|
|
2386
|
-
typeCheckArrayOfScalars(untrustedConfig, config, {
|
|
2387
|
-
filterByResourceIds: 0 /* String */,
|
|
2388
|
-
});
|
|
2338
|
+
typeCheckConfig$9(untrustedConfig, config, getParticipantRecentInteractions_ConfigPropertyMetadata);
|
|
2389
2339
|
return config;
|
|
2390
2340
|
}
|
|
2391
2341
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -3577,32 +3527,19 @@ function createResourceRequest$2(config) {
|
|
|
3577
3527
|
|
|
3578
3528
|
const adapterName$2 = 'getWaitlistRelationships';
|
|
3579
3529
|
const getWaitlistRelationships_ConfigPropertyMetadata = [
|
|
3580
|
-
generateParamConfigMetadata('serviceTerritoryId', false),
|
|
3581
|
-
generateParamConfigMetadata('waitlistIds', false),
|
|
3582
|
-
generateParamConfigMetadata('workTypeIds', false),
|
|
3530
|
+
generateParamConfigMetadata('serviceTerritoryId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3531
|
+
generateParamConfigMetadata('waitlistIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
3532
|
+
generateParamConfigMetadata('workTypeIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
3583
3533
|
];
|
|
3584
3534
|
const getWaitlistRelationships_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getWaitlistRelationships_ConfigPropertyMetadata);
|
|
3585
|
-
|
|
3586
|
-
const resourceParams = {
|
|
3587
|
-
queryParams: {
|
|
3588
|
-
serviceTerritoryId: config.serviceTerritoryId, waitlistIds: config.waitlistIds, workTypeIds: config.workTypeIds
|
|
3589
|
-
}
|
|
3590
|
-
};
|
|
3591
|
-
return resourceParams;
|
|
3592
|
-
}
|
|
3535
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$9(getWaitlistRelationships_ConfigPropertyMetadata);
|
|
3593
3536
|
function keyBuilder$2(luvio, config) {
|
|
3594
3537
|
const resourceParams = createResourceParams$2(config);
|
|
3595
3538
|
return keyBuilder$3(luvio, resourceParams);
|
|
3596
3539
|
}
|
|
3597
3540
|
function typeCheckConfig$2(untrustedConfig) {
|
|
3598
3541
|
const config = {};
|
|
3599
|
-
|
|
3600
|
-
serviceTerritoryId: 0 /* String */,
|
|
3601
|
-
});
|
|
3602
|
-
typeCheckArrayOfScalars(untrustedConfig, config, {
|
|
3603
|
-
waitlistIds: 0 /* String */,
|
|
3604
|
-
workTypeIds: 0 /* String */,
|
|
3605
|
-
});
|
|
3542
|
+
typeCheckConfig$9(untrustedConfig, config, getWaitlistRelationships_ConfigPropertyMetadata);
|
|
3606
3543
|
return config;
|
|
3607
3544
|
}
|
|
3608
3545
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -3844,40 +3781,23 @@ function createResourceRequest$1(config) {
|
|
|
3844
3781
|
|
|
3845
3782
|
const adapterName$1 = 'getWaitlists';
|
|
3846
3783
|
const getWaitlists_ConfigPropertyMetadata = [
|
|
3847
|
-
generateParamConfigMetadata('isActive', false),
|
|
3848
|
-
generateParamConfigMetadata('maxLimit', false),
|
|
3849
|
-
generateParamConfigMetadata('offset', false),
|
|
3850
|
-
generateParamConfigMetadata('participantFields', false),
|
|
3851
|
-
generateParamConfigMetadata('requestId', false),
|
|
3852
|
-
generateParamConfigMetadata('serviceTerritoryId', false),
|
|
3853
|
-
generateParamConfigMetadata('waitlistIds', false),
|
|
3784
|
+
generateParamConfigMetadata('isActive', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
3785
|
+
generateParamConfigMetadata('maxLimit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3786
|
+
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3787
|
+
generateParamConfigMetadata('participantFields', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
3788
|
+
generateParamConfigMetadata('requestId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3789
|
+
generateParamConfigMetadata('serviceTerritoryId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3790
|
+
generateParamConfigMetadata('waitlistIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
3854
3791
|
];
|
|
3855
3792
|
const getWaitlists_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getWaitlists_ConfigPropertyMetadata);
|
|
3856
|
-
|
|
3857
|
-
const resourceParams = {
|
|
3858
|
-
queryParams: {
|
|
3859
|
-
isActive: config.isActive, maxLimit: config.maxLimit, offset: config.offset, participantFields: config.participantFields, requestId: config.requestId, serviceTerritoryId: config.serviceTerritoryId, waitlistIds: config.waitlistIds
|
|
3860
|
-
}
|
|
3861
|
-
};
|
|
3862
|
-
return resourceParams;
|
|
3863
|
-
}
|
|
3793
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$9(getWaitlists_ConfigPropertyMetadata);
|
|
3864
3794
|
function keyBuilder(luvio, config) {
|
|
3865
3795
|
const resourceParams = createResourceParams$1(config);
|
|
3866
3796
|
return keyBuilder$1(luvio, resourceParams);
|
|
3867
3797
|
}
|
|
3868
3798
|
function typeCheckConfig$1(untrustedConfig) {
|
|
3869
3799
|
const config = {};
|
|
3870
|
-
|
|
3871
|
-
isActive: 1 /* Boolean */,
|
|
3872
|
-
maxLimit: 3 /* Integer */,
|
|
3873
|
-
offset: 3 /* Integer */,
|
|
3874
|
-
requestId: 0 /* String */,
|
|
3875
|
-
serviceTerritoryId: 0 /* String */,
|
|
3876
|
-
});
|
|
3877
|
-
typeCheckArrayOfScalars(untrustedConfig, config, {
|
|
3878
|
-
participantFields: 0 /* String */,
|
|
3879
|
-
waitlistIds: 0 /* String */,
|
|
3880
|
-
});
|
|
3800
|
+
typeCheckConfig$9(untrustedConfig, config, getWaitlists_ConfigPropertyMetadata);
|
|
3881
3801
|
return config;
|
|
3882
3802
|
}
|
|
3883
3803
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -4037,17 +3957,10 @@ function createResourceRequest(config) {
|
|
|
4037
3957
|
|
|
4038
3958
|
const adapterName = 'updateServiceAppointment';
|
|
4039
3959
|
const updateServiceAppointment_ConfigPropertyMetadata = [
|
|
4040
|
-
generateParamConfigMetadata('updateServiceAppointmentInput', true),
|
|
3960
|
+
generateParamConfigMetadata('updateServiceAppointmentInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4041
3961
|
];
|
|
4042
3962
|
const updateServiceAppointment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateServiceAppointment_ConfigPropertyMetadata);
|
|
4043
|
-
|
|
4044
|
-
const resourceParams = {
|
|
4045
|
-
body: {
|
|
4046
|
-
updateServiceAppointmentInput: config.updateServiceAppointmentInput
|
|
4047
|
-
}
|
|
4048
|
-
};
|
|
4049
|
-
return resourceParams;
|
|
4050
|
-
}
|
|
3963
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$9(updateServiceAppointment_ConfigPropertyMetadata);
|
|
4051
3964
|
function typeCheckConfig(untrustedConfig) {
|
|
4052
3965
|
const config = {};
|
|
4053
3966
|
const untrustedConfig_updateServiceAppointmentInput = untrustedConfig.updateServiceAppointmentInput;
|
|
@@ -4168,4 +4081,4 @@ withDefaultLuvio((luvio) => {
|
|
|
4168
4081
|
});
|
|
4169
4082
|
|
|
4170
4083
|
export { createServiceAppointment, createWaitlistAppointment, createWaitlistCheckIn, getEngagementChannelTypes, getEngagementChannelTypes_imperative, getNextWaitlistParticipant, getNextWaitlistParticipant_imperative, getParticipantRecentInteractions, getParticipantRecentInteractions_imperative, getWaitlistRelationships, getWaitlistRelationships_imperative, getWaitlists, getWaitlists_imperative, updateServiceAppointment };
|
|
4171
|
-
// version: 1.
|
|
4084
|
+
// version: 1.216.0-1d57d45fe
|