@salesforce/lds-adapters-service-serviceemployee 1.331.0 → 1.332.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.
- package/dist/es/es2018/service-serviceemployee.js +27 -1
- package/dist/es/es2018/types/src/generated/adapters/updateUserSettings.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/patchConnectServiceEmployeeUserSettings.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/UserSettingsInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/UserSettingsOutputRepresentations.d.ts +4 -1
- package/package.json +3 -3
- package/sfdc/index.js +28 -2
- package/src/raml/api.raml +7 -0
|
@@ -1159,6 +1159,7 @@ function createResourceRequest$2(config) {
|
|
|
1159
1159
|
const adapterName$2 = 'updateUserSettings';
|
|
1160
1160
|
const updateUserSettings_ConfigPropertyMetadata = [
|
|
1161
1161
|
generateParamConfigMetadata('autoCreateFlag', false, 2 /* Body */, 1 /* Boolean */),
|
|
1162
|
+
generateParamConfigMetadata('autoDeactivateFlag', true, 2 /* Body */, 1 /* Boolean */),
|
|
1162
1163
|
generateParamConfigMetadata('domain', false, 2 /* Body */, 0 /* String */),
|
|
1163
1164
|
generateParamConfigMetadata('emailEncoding', false, 2 /* Body */, 0 /* String */),
|
|
1164
1165
|
generateParamConfigMetadata('permissionId', false, 2 /* Body */, 0 /* String */),
|
|
@@ -1544,7 +1545,7 @@ function equals$5(existing, incoming) {
|
|
|
1544
1545
|
return true;
|
|
1545
1546
|
}
|
|
1546
1547
|
|
|
1547
|
-
const VERSION$4 = "
|
|
1548
|
+
const VERSION$4 = "1374eb7105fe217c4f04a7b83af4438f";
|
|
1548
1549
|
function validate$6(obj, path = 'UserSettingsOutputRepresentations') {
|
|
1549
1550
|
const v_error = (() => {
|
|
1550
1551
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1557,6 +1558,13 @@ function validate$6(obj, path = 'UserSettingsOutputRepresentations') {
|
|
|
1557
1558
|
return new TypeError('Expected "boolean" but received "' + typeof obj_autoCreateFlag + '" (at "' + path_autoCreateFlag + '")');
|
|
1558
1559
|
}
|
|
1559
1560
|
}
|
|
1561
|
+
if (obj.autoDeactivateFlag !== undefined) {
|
|
1562
|
+
const obj_autoDeactivateFlag = obj.autoDeactivateFlag;
|
|
1563
|
+
const path_autoDeactivateFlag = path + '.autoDeactivateFlag';
|
|
1564
|
+
if (typeof obj_autoDeactivateFlag !== 'boolean') {
|
|
1565
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_autoDeactivateFlag + '" (at "' + path_autoDeactivateFlag + '")');
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1560
1568
|
if (obj.domain !== undefined) {
|
|
1561
1569
|
const obj_domain = obj.domain;
|
|
1562
1570
|
const path_domain = path + '.domain';
|
|
@@ -1707,6 +1715,11 @@ const select$6 = function UserSettingsOutputRepresentationsSelect() {
|
|
|
1707
1715
|
kind: 'Scalar',
|
|
1708
1716
|
required: false
|
|
1709
1717
|
},
|
|
1718
|
+
{
|
|
1719
|
+
name: 'autoDeactivateFlag',
|
|
1720
|
+
kind: 'Scalar',
|
|
1721
|
+
required: false
|
|
1722
|
+
},
|
|
1710
1723
|
{
|
|
1711
1724
|
name: 'domain',
|
|
1712
1725
|
kind: 'Scalar',
|
|
@@ -1757,6 +1770,19 @@ function equals$4(existing, incoming) {
|
|
|
1757
1770
|
return false;
|
|
1758
1771
|
}
|
|
1759
1772
|
}
|
|
1773
|
+
const existing_autoDeactivateFlag = existing.autoDeactivateFlag;
|
|
1774
|
+
const incoming_autoDeactivateFlag = incoming.autoDeactivateFlag;
|
|
1775
|
+
// if at least one of these optionals is defined
|
|
1776
|
+
if (existing_autoDeactivateFlag !== undefined || incoming_autoDeactivateFlag !== undefined) {
|
|
1777
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1778
|
+
// not equal
|
|
1779
|
+
if (existing_autoDeactivateFlag === undefined || incoming_autoDeactivateFlag === undefined) {
|
|
1780
|
+
return false;
|
|
1781
|
+
}
|
|
1782
|
+
if (!(existing_autoDeactivateFlag === incoming_autoDeactivateFlag)) {
|
|
1783
|
+
return false;
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1760
1786
|
const existing_syncEmployee2Users = existing.syncEmployee2Users;
|
|
1761
1787
|
const incoming_syncEmployee2Users = incoming.syncEmployee2Users;
|
|
1762
1788
|
if (!(existing_syncEmployee2Users === incoming_syncEmployee2Users)) {
|
|
@@ -7,6 +7,7 @@ export declare const updateUserSettings_ConfigPropertyMetadata: $64$luvio_engine
|
|
|
7
7
|
export declare const updateUserSettings_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
8
|
export interface UpdateUserSettingsConfig {
|
|
9
9
|
autoCreateFlag?: boolean;
|
|
10
|
+
autoDeactivateFlag: boolean;
|
|
10
11
|
domain?: string;
|
|
11
12
|
emailEncoding?: string;
|
|
12
13
|
permissionId?: 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 = "d8b2bc1adbb1534e8ecbd1a2526e02ab";
|
|
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: UserSettingsInputRepresentation, existing: UserSettingsInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): UserSettingsInputRepresentationNormalized;
|
|
@@ -16,6 +16,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
16
16
|
export interface UserSettingsInputRepresentationNormalized {
|
|
17
17
|
/** The property to set the auto create flag for the Emp2+PA user creation */
|
|
18
18
|
autoCreateFlag?: boolean;
|
|
19
|
+
/** The property to set the auto deactivate flag for the Emp2+PA user creation */
|
|
20
|
+
autoDeactivateFlag: boolean;
|
|
19
21
|
/** The property to set the domain for the Emp2+PA user creation */
|
|
20
22
|
domain?: string;
|
|
21
23
|
/** The property to set the Email Encoding for the Emp2+PA user creation */
|
|
@@ -39,6 +41,7 @@ export interface UserSettingsInputRepresentationNormalized {
|
|
|
39
41
|
*/
|
|
40
42
|
export interface UserSettingsInputRepresentation {
|
|
41
43
|
autoCreateFlag?: boolean;
|
|
44
|
+
autoDeactivateFlag: boolean;
|
|
42
45
|
domain?: string;
|
|
43
46
|
emailEncoding?: string;
|
|
44
47
|
employeeStatus?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PermissionDetailsRepresentation as PermissionDetailsRepresentation_PermissionDetailsRepresentation } from './PermissionDetailsRepresentation';
|
|
2
2
|
import { ProfileDetailsRepresentation as ProfileDetailsRepresentation_ProfileDetailsRepresentation } from './ProfileDetailsRepresentation';
|
|
3
3
|
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';
|
|
4
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "1374eb7105fe217c4f04a7b83af4438f";
|
|
5
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
6
|
export declare const RepresentationType: string;
|
|
7
7
|
export declare function normalize(input: UserSettingsOutputRepresentations, existing: UserSettingsOutputRepresentationsNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): UserSettingsOutputRepresentationsNormalized;
|
|
@@ -18,6 +18,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
18
18
|
export interface UserSettingsOutputRepresentationsNormalized {
|
|
19
19
|
/** The details of the auto create flag */
|
|
20
20
|
autoCreateFlag?: boolean;
|
|
21
|
+
/** The details of the auto deactivate flag */
|
|
22
|
+
autoDeactivateFlag?: boolean;
|
|
21
23
|
/** The details of the domain */
|
|
22
24
|
domain?: string | null;
|
|
23
25
|
/** The details of the Email encoding */
|
|
@@ -39,6 +41,7 @@ export interface UserSettingsOutputRepresentationsNormalized {
|
|
|
39
41
|
*/
|
|
40
42
|
export interface UserSettingsOutputRepresentations {
|
|
41
43
|
autoCreateFlag?: boolean;
|
|
44
|
+
autoDeactivateFlag?: boolean;
|
|
42
45
|
domain?: string | null;
|
|
43
46
|
emailEncoding?: string;
|
|
44
47
|
employeeStatus?: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-serviceemployee",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.332.0-dev1",
|
|
4
4
|
"description": "Employee Service Resources",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/service-serviceemployee.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.332.0-dev1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.332.0-dev1"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -1788,7 +1788,7 @@ function equals$3(existing, incoming) {
|
|
|
1788
1788
|
return true;
|
|
1789
1789
|
}
|
|
1790
1790
|
|
|
1791
|
-
const VERSION$2 = "
|
|
1791
|
+
const VERSION$2 = "1374eb7105fe217c4f04a7b83af4438f";
|
|
1792
1792
|
function validate$2(obj, path = 'UserSettingsOutputRepresentations') {
|
|
1793
1793
|
const v_error = (() => {
|
|
1794
1794
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1801,6 +1801,13 @@ function validate$2(obj, path = 'UserSettingsOutputRepresentations') {
|
|
|
1801
1801
|
return new TypeError('Expected "boolean" but received "' + typeof obj_autoCreateFlag + '" (at "' + path_autoCreateFlag + '")');
|
|
1802
1802
|
}
|
|
1803
1803
|
}
|
|
1804
|
+
if (obj.autoDeactivateFlag !== undefined) {
|
|
1805
|
+
const obj_autoDeactivateFlag = obj.autoDeactivateFlag;
|
|
1806
|
+
const path_autoDeactivateFlag = path + '.autoDeactivateFlag';
|
|
1807
|
+
if (typeof obj_autoDeactivateFlag !== 'boolean') {
|
|
1808
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_autoDeactivateFlag + '" (at "' + path_autoDeactivateFlag + '")');
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1804
1811
|
if (obj.domain !== undefined) {
|
|
1805
1812
|
const obj_domain = obj.domain;
|
|
1806
1813
|
const path_domain = path + '.domain';
|
|
@@ -1951,6 +1958,11 @@ const select$5 = function UserSettingsOutputRepresentationsSelect() {
|
|
|
1951
1958
|
kind: 'Scalar',
|
|
1952
1959
|
required: false
|
|
1953
1960
|
},
|
|
1961
|
+
{
|
|
1962
|
+
name: 'autoDeactivateFlag',
|
|
1963
|
+
kind: 'Scalar',
|
|
1964
|
+
required: false
|
|
1965
|
+
},
|
|
1954
1966
|
{
|
|
1955
1967
|
name: 'domain',
|
|
1956
1968
|
kind: 'Scalar',
|
|
@@ -2001,6 +2013,19 @@ function equals$2(existing, incoming) {
|
|
|
2001
2013
|
return false;
|
|
2002
2014
|
}
|
|
2003
2015
|
}
|
|
2016
|
+
const existing_autoDeactivateFlag = existing.autoDeactivateFlag;
|
|
2017
|
+
const incoming_autoDeactivateFlag = incoming.autoDeactivateFlag;
|
|
2018
|
+
// if at least one of these optionals is defined
|
|
2019
|
+
if (existing_autoDeactivateFlag !== undefined || incoming_autoDeactivateFlag !== undefined) {
|
|
2020
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2021
|
+
// not equal
|
|
2022
|
+
if (existing_autoDeactivateFlag === undefined || incoming_autoDeactivateFlag === undefined) {
|
|
2023
|
+
return false;
|
|
2024
|
+
}
|
|
2025
|
+
if (!(existing_autoDeactivateFlag === incoming_autoDeactivateFlag)) {
|
|
2026
|
+
return false;
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2004
2029
|
const existing_syncEmployee2Users = existing.syncEmployee2Users;
|
|
2005
2030
|
const incoming_syncEmployee2Users = incoming.syncEmployee2Users;
|
|
2006
2031
|
if (!(existing_syncEmployee2Users === incoming_syncEmployee2Users)) {
|
|
@@ -2556,6 +2581,7 @@ function createResourceRequest(config) {
|
|
|
2556
2581
|
const adapterName = 'updateUserSettings';
|
|
2557
2582
|
const updateUserSettings_ConfigPropertyMetadata = [
|
|
2558
2583
|
generateParamConfigMetadata('autoCreateFlag', false, 2 /* Body */, 1 /* Boolean */),
|
|
2584
|
+
generateParamConfigMetadata('autoDeactivateFlag', true, 2 /* Body */, 1 /* Boolean */),
|
|
2559
2585
|
generateParamConfigMetadata('domain', false, 2 /* Body */, 0 /* String */),
|
|
2560
2586
|
generateParamConfigMetadata('emailEncoding', false, 2 /* Body */, 0 /* String */),
|
|
2561
2587
|
generateParamConfigMetadata('permissionId', false, 2 /* Body */, 0 /* String */),
|
|
@@ -2661,4 +2687,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2661
2687
|
});
|
|
2662
2688
|
|
|
2663
2689
|
export { availableUserOptions, availableUserOptions_imperative, getFieldDetailsFromCompactLayout, getUserProfileDetails, getUserSettings, getUserSettings_imperative, postEmployeeUserProvisioningJob, updateUserSettings };
|
|
2664
|
-
// version: 1.
|
|
2690
|
+
// version: 1.332.0-dev1-2186468293
|
package/src/raml/api.raml
CHANGED
|
@@ -327,6 +327,10 @@ types:
|
|
|
327
327
|
description: The property to set the auto create flag for the Emp2+PA user
|
|
328
328
|
creation
|
|
329
329
|
type: boolean
|
|
330
|
+
autoDeactivateFlag:
|
|
331
|
+
description: The property to set the auto deactivate flag for the Emp2+PA
|
|
332
|
+
user creation
|
|
333
|
+
type: boolean
|
|
330
334
|
domain?:
|
|
331
335
|
description: The property to set the domain for the Emp2+PA user creation
|
|
332
336
|
type: string
|
|
@@ -358,6 +362,9 @@ types:
|
|
|
358
362
|
autoCreateFlag?:
|
|
359
363
|
description: The details of the auto create flag
|
|
360
364
|
type: boolean
|
|
365
|
+
autoDeactivateFlag?:
|
|
366
|
+
description: The details of the auto deactivate flag
|
|
367
|
+
type: boolean
|
|
361
368
|
domain?:
|
|
362
369
|
description: The details of the domain
|
|
363
370
|
type: string | nil
|