@salesforce/lds-adapters-industries-program-mgmt 1.457.0 → 1.459.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-program-mgmt.js +66 -19
- package/dist/es/es2018/types/src/generated/adapters/postUpdateBenefitSessions.d.ts +4 -3
- package/dist/es/es2018/types/src/generated/resources/postConnectProgramMgmtBenefitSchedulesSessionUpdatesByBenefitScheduleId.d.ts +4 -3
- package/dist/es/es2018/types/src/generated/types/BenefitSessionDeleteList.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/BenefitSessionUpsertList.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/UpdateBenefitSessionsInputRepresentation.d.ts +7 -6
- package/package.json +3 -3
- package/sfdc/index.js +67 -20
- package/src/raml/api.raml +26 -4
|
@@ -75,7 +75,7 @@ function createLink(ref) {
|
|
|
75
75
|
|
|
76
76
|
const TTL$2 = 100;
|
|
77
77
|
const VERSION$2 = "c0d0d94c035c5fa3b02194b685c79ce3";
|
|
78
|
-
function validate$
|
|
78
|
+
function validate$6(obj, path = 'GenerateBenefitSessionOutputRepresentation') {
|
|
79
79
|
const v_error = (() => {
|
|
80
80
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
81
81
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -124,7 +124,7 @@ function equals$2(existing, incoming) {
|
|
|
124
124
|
}
|
|
125
125
|
const ingest$2 = function GenerateBenefitSessionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
126
126
|
if (process.env.NODE_ENV !== 'production') {
|
|
127
|
-
const validateError = validate$
|
|
127
|
+
const validateError = validate$6(input);
|
|
128
128
|
if (validateError !== null) {
|
|
129
129
|
throw validateError;
|
|
130
130
|
}
|
|
@@ -234,7 +234,7 @@ const postTriggerBenefitSessionGenerationAdapterFactory = (luvio) => {
|
|
|
234
234
|
};
|
|
235
235
|
};
|
|
236
236
|
|
|
237
|
-
function validate$
|
|
237
|
+
function validate$5(obj, path = 'BenefitSessions') {
|
|
238
238
|
const v_error = (() => {
|
|
239
239
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
240
240
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -260,7 +260,7 @@ function validate$3(obj, path = 'BenefitSessions') {
|
|
|
260
260
|
|
|
261
261
|
const TTL$1 = 100;
|
|
262
262
|
const VERSION$1 = "df34bd680bc967e0b41fd56d4ee79f3a";
|
|
263
|
-
function validate$
|
|
263
|
+
function validate$4(obj, path = 'PreviewBenefitSessionsOutputRepresentation') {
|
|
264
264
|
const v_error = (() => {
|
|
265
265
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
266
266
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -273,7 +273,7 @@ function validate$2(obj, path = 'PreviewBenefitSessionsOutputRepresentation') {
|
|
|
273
273
|
for (let i = 0; i < obj_sessions.length; i++) {
|
|
274
274
|
const obj_sessions_item = obj_sessions[i];
|
|
275
275
|
const path_sessions_item = path_sessions + '[' + i + ']';
|
|
276
|
-
const referencepath_sessions_itemValidationError = validate$
|
|
276
|
+
const referencepath_sessions_itemValidationError = validate$5(obj_sessions_item, path_sessions_item);
|
|
277
277
|
if (referencepath_sessions_itemValidationError !== null) {
|
|
278
278
|
let message = 'Object doesn\'t match BenefitSessions (at "' + path_sessions_item + '")\n';
|
|
279
279
|
message += referencepath_sessions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -317,7 +317,7 @@ function equals$1(existing, incoming) {
|
|
|
317
317
|
}
|
|
318
318
|
const ingest$1 = function PreviewBenefitSessionsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
319
319
|
if (process.env.NODE_ENV !== 'production') {
|
|
320
|
-
const validateError = validate$
|
|
320
|
+
const validateError = validate$4(input);
|
|
321
321
|
if (validateError !== null) {
|
|
322
322
|
throw validateError;
|
|
323
323
|
}
|
|
@@ -435,7 +435,7 @@ const postBenefitSessionsPreviewAdapterFactory = (luvio) => {
|
|
|
435
435
|
};
|
|
436
436
|
};
|
|
437
437
|
|
|
438
|
-
function validate$
|
|
438
|
+
function validate$3(obj, path = 'BenefitSessionUpsertInputRepresentation') {
|
|
439
439
|
const v_error = (() => {
|
|
440
440
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
441
441
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -458,6 +458,55 @@ function validate$1(obj, path = 'BenefitSessionUpsertInputRepresentation') {
|
|
|
458
458
|
return v_error === undefined ? null : v_error;
|
|
459
459
|
}
|
|
460
460
|
|
|
461
|
+
function validate$2(obj, path = 'BenefitSessionUpsertList') {
|
|
462
|
+
const v_error = (() => {
|
|
463
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
464
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
465
|
+
}
|
|
466
|
+
if (obj.sessionList !== undefined) {
|
|
467
|
+
const obj_sessionList = obj.sessionList;
|
|
468
|
+
const path_sessionList = path + '.sessionList';
|
|
469
|
+
if (!ArrayIsArray(obj_sessionList)) {
|
|
470
|
+
return new TypeError('Expected "array" but received "' + typeof obj_sessionList + '" (at "' + path_sessionList + '")');
|
|
471
|
+
}
|
|
472
|
+
for (let i = 0; i < obj_sessionList.length; i++) {
|
|
473
|
+
const obj_sessionList_item = obj_sessionList[i];
|
|
474
|
+
const path_sessionList_item = path_sessionList + '[' + i + ']';
|
|
475
|
+
const referencepath_sessionList_itemValidationError = validate$3(obj_sessionList_item, path_sessionList_item);
|
|
476
|
+
if (referencepath_sessionList_itemValidationError !== null) {
|
|
477
|
+
let message = 'Object doesn\'t match BenefitSessionUpsertInputRepresentation (at "' + path_sessionList_item + '")\n';
|
|
478
|
+
message += referencepath_sessionList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
479
|
+
return new TypeError(message);
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
})();
|
|
484
|
+
return v_error === undefined ? null : v_error;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
function validate$1(obj, path = 'BenefitSessionDeleteList') {
|
|
488
|
+
const v_error = (() => {
|
|
489
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
490
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
491
|
+
}
|
|
492
|
+
if (obj.sessionIdList !== undefined) {
|
|
493
|
+
const obj_sessionIdList = obj.sessionIdList;
|
|
494
|
+
const path_sessionIdList = path + '.sessionIdList';
|
|
495
|
+
if (!ArrayIsArray(obj_sessionIdList)) {
|
|
496
|
+
return new TypeError('Expected "array" but received "' + typeof obj_sessionIdList + '" (at "' + path_sessionIdList + '")');
|
|
497
|
+
}
|
|
498
|
+
for (let i = 0; i < obj_sessionIdList.length; i++) {
|
|
499
|
+
const obj_sessionIdList_item = obj_sessionIdList[i];
|
|
500
|
+
const path_sessionIdList_item = path_sessionIdList + '[' + i + ']';
|
|
501
|
+
if (typeof obj_sessionIdList_item !== 'string') {
|
|
502
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sessionIdList_item + '" (at "' + path_sessionIdList_item + '")');
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
})();
|
|
507
|
+
return v_error === undefined ? null : v_error;
|
|
508
|
+
}
|
|
509
|
+
|
|
461
510
|
const TTL = 100;
|
|
462
511
|
const VERSION = "5821fdcb2a41b9e59a04ab5fa43ffe40";
|
|
463
512
|
function validate(obj, path = 'UpdateBenefitSessionsOutputRepresentation') {
|
|
@@ -597,8 +646,8 @@ function createResourceRequest(config) {
|
|
|
597
646
|
const adapterName = 'postUpdateBenefitSessions';
|
|
598
647
|
const postUpdateBenefitSessions_ConfigPropertyMetadata = [
|
|
599
648
|
generateParamConfigMetadata('benefitScheduleId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
600
|
-
generateParamConfigMetadata('upsertSessions', false, 2 /* Body */, 4 /* Unsupported
|
|
601
|
-
generateParamConfigMetadata('deleteSessions', false, 2 /* Body */,
|
|
649
|
+
generateParamConfigMetadata('upsertSessions', false, 2 /* Body */, 4 /* Unsupported */),
|
|
650
|
+
generateParamConfigMetadata('deleteSessions', false, 2 /* Body */, 4 /* Unsupported */),
|
|
602
651
|
];
|
|
603
652
|
const postUpdateBenefitSessions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postUpdateBenefitSessions_ConfigPropertyMetadata);
|
|
604
653
|
const createResourceParams = /*#__PURE__*/ createResourceParams$3(postUpdateBenefitSessions_ConfigPropertyMetadata);
|
|
@@ -606,16 +655,14 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
606
655
|
const config = {};
|
|
607
656
|
typeCheckConfig$3(untrustedConfig, config, postUpdateBenefitSessions_ConfigPropertyMetadata);
|
|
608
657
|
const untrustedConfig_upsertSessions = untrustedConfig.upsertSessions;
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
}
|
|
618
|
-
config.upsertSessions = untrustedConfig_upsertSessions_array;
|
|
658
|
+
const referenceBenefitSessionUpsertListValidationError = validate$2(untrustedConfig_upsertSessions);
|
|
659
|
+
if (referenceBenefitSessionUpsertListValidationError === null) {
|
|
660
|
+
config.upsertSessions = untrustedConfig_upsertSessions;
|
|
661
|
+
}
|
|
662
|
+
const untrustedConfig_deleteSessions = untrustedConfig.deleteSessions;
|
|
663
|
+
const referenceBenefitSessionDeleteListValidationError = validate$1(untrustedConfig_deleteSessions);
|
|
664
|
+
if (referenceBenefitSessionDeleteListValidationError === null) {
|
|
665
|
+
config.deleteSessions = untrustedConfig_deleteSessions;
|
|
619
666
|
}
|
|
620
667
|
return config;
|
|
621
668
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
2
|
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
-
import {
|
|
3
|
+
import { BenefitSessionUpsertList as types_BenefitSessionUpsertList_BenefitSessionUpsertList } from '../types/BenefitSessionUpsertList';
|
|
4
|
+
import { BenefitSessionDeleteList as types_BenefitSessionDeleteList_BenefitSessionDeleteList } from '../types/BenefitSessionDeleteList';
|
|
4
5
|
import { ResourceRequestConfig as resources_postConnectProgramMgmtBenefitSchedulesSessionUpdatesByBenefitScheduleId_ResourceRequestConfig } from '../resources/postConnectProgramMgmtBenefitSchedulesSessionUpdatesByBenefitScheduleId';
|
|
5
6
|
import { UpdateBenefitSessionsOutputRepresentation as types_UpdateBenefitSessionsOutputRepresentation_UpdateBenefitSessionsOutputRepresentation } from '../types/UpdateBenefitSessionsOutputRepresentation';
|
|
6
7
|
export declare const adapterName = "postUpdateBenefitSessions";
|
|
@@ -8,8 +9,8 @@ export declare const postUpdateBenefitSessions_ConfigPropertyMetadata: $64$luvio
|
|
|
8
9
|
export declare const postUpdateBenefitSessions_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
9
10
|
export interface PostUpdateBenefitSessionsConfig {
|
|
10
11
|
benefitScheduleId: string;
|
|
11
|
-
upsertSessions?:
|
|
12
|
-
deleteSessions?:
|
|
12
|
+
upsertSessions?: types_BenefitSessionUpsertList_BenefitSessionUpsertList;
|
|
13
|
+
deleteSessions?: types_BenefitSessionDeleteList_BenefitSessionDeleteList;
|
|
13
14
|
}
|
|
14
15
|
export declare const createResourceParams: (config: PostUpdateBenefitSessionsConfig) => resources_postConnectProgramMgmtBenefitSchedulesSessionUpdatesByBenefitScheduleId_ResourceRequestConfig;
|
|
15
16
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<PostUpdateBenefitSessionsConfig>): adapter$45$utils_Untrusted<PostUpdateBenefitSessionsConfig>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BenefitSessionUpsertList as types_BenefitSessionUpsertList_BenefitSessionUpsertList } from '../types/BenefitSessionUpsertList';
|
|
2
|
+
import { BenefitSessionDeleteList as types_BenefitSessionDeleteList_BenefitSessionDeleteList } from '../types/BenefitSessionDeleteList';
|
|
2
3
|
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
3
4
|
import { UpdateBenefitSessionsOutputRepresentation as types_UpdateBenefitSessionsOutputRepresentation_UpdateBenefitSessionsOutputRepresentation } from '../types/UpdateBenefitSessionsOutputRepresentation';
|
|
4
5
|
export interface ResourceRequestConfig {
|
|
@@ -6,8 +7,8 @@ export interface ResourceRequestConfig {
|
|
|
6
7
|
benefitScheduleId: string;
|
|
7
8
|
};
|
|
8
9
|
body: {
|
|
9
|
-
upsertSessions?:
|
|
10
|
-
deleteSessions?:
|
|
10
|
+
upsertSessions?: types_BenefitSessionUpsertList_BenefitSessionUpsertList;
|
|
11
|
+
deleteSessions?: types_BenefitSessionDeleteList_BenefitSessionDeleteList;
|
|
11
12
|
};
|
|
12
13
|
}
|
|
13
14
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 = "faf03ccacf099c59da475f3c1f4ab414";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: BenefitSessionDeleteList, existing: BenefitSessionDeleteListNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): BenefitSessionDeleteListNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: BenefitSessionDeleteListNormalized, incoming: BenefitSessionDeleteListNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: BenefitSessionDeleteList, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Wrapper for the Ids of benefit sessions to delete. The Connect API request representation nests this array under "sessionIdList" (its @ConnectInputListWrapper listName).
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface BenefitSessionDeleteListNormalized {
|
|
17
|
+
/** Ids of benefit sessions to delete */
|
|
18
|
+
sessionIdList?: Array<string>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Wrapper for the Ids of benefit sessions to delete. The Connect API request representation nests this array under "sessionIdList" (its @ConnectInputListWrapper listName).
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* (none)
|
|
25
|
+
*/
|
|
26
|
+
export interface BenefitSessionDeleteList {
|
|
27
|
+
sessionIdList?: Array<string>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BenefitSessionUpsertInputRepresentation as BenefitSessionUpsertInputRepresentation_BenefitSessionUpsertInputRepresentation } from './BenefitSessionUpsertInputRepresentation';
|
|
2
|
+
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';
|
|
3
|
+
export declare const VERSION = "13a642f05f2e5421f15ff6901eac0ac1";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: BenefitSessionUpsertList, existing: BenefitSessionUpsertListNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): BenefitSessionUpsertListNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: BenefitSessionUpsertListNormalized, incoming: BenefitSessionUpsertListNormalized): boolean;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: BenefitSessionUpsertList, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Wrapper for the benefit sessions to upsert. The Connect API request representation nests this array under "sessionList" (its @ConnectInputListWrapper listName). That wrapper is only elided on Connect's outbound serialize path, not on inbound request deserialization, so the POST body must send the nested object rather than a bare array.
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface BenefitSessionUpsertListNormalized {
|
|
18
|
+
/** Benefit sessions to upsert */
|
|
19
|
+
sessionList?: Array<BenefitSessionUpsertInputRepresentation_BenefitSessionUpsertInputRepresentation>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Wrapper for the benefit sessions to upsert. The Connect API request representation nests this array under "sessionList" (its @ConnectInputListWrapper listName). That wrapper is only elided on Connect's outbound serialize path, not on inbound request deserialization, so the POST body must send the nested object rather than a bare array.
|
|
23
|
+
*
|
|
24
|
+
* Keys:
|
|
25
|
+
* (none)
|
|
26
|
+
*/
|
|
27
|
+
export interface BenefitSessionUpsertList {
|
|
28
|
+
sessionList?: Array<BenefitSessionUpsertInputRepresentation_BenefitSessionUpsertInputRepresentation>;
|
|
29
|
+
}
|
package/dist/es/es2018/types/src/generated/types/UpdateBenefitSessionsInputRepresentation.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BenefitSessionDeleteList as BenefitSessionDeleteList_BenefitSessionDeleteList } from './BenefitSessionDeleteList';
|
|
2
|
+
import { BenefitSessionUpsertList as BenefitSessionUpsertList_BenefitSessionUpsertList } from './BenefitSessionUpsertList';
|
|
2
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';
|
|
3
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "1f46c95beffd0ed6239d15a9f84b97c1";
|
|
4
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
6
|
export declare const RepresentationType: string;
|
|
6
7
|
export declare function normalize(input: UpdateBenefitSessionsInputRepresentation, existing: UpdateBenefitSessionsInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): UpdateBenefitSessionsInputRepresentationNormalized;
|
|
@@ -16,9 +17,9 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
16
17
|
*/
|
|
17
18
|
export interface UpdateBenefitSessionsInputRepresentationNormalized {
|
|
18
19
|
/** Ids of benefit sessions to delete */
|
|
19
|
-
deleteSessions?:
|
|
20
|
+
deleteSessions?: BenefitSessionDeleteList_BenefitSessionDeleteList;
|
|
20
21
|
/** Benefit sessions to upsert */
|
|
21
|
-
upsertSessions?:
|
|
22
|
+
upsertSessions?: BenefitSessionUpsertList_BenefitSessionUpsertList;
|
|
22
23
|
}
|
|
23
24
|
/**
|
|
24
25
|
* Input representation for upserting/deleting benefit sessions
|
|
@@ -27,6 +28,6 @@ export interface UpdateBenefitSessionsInputRepresentationNormalized {
|
|
|
27
28
|
* (none)
|
|
28
29
|
*/
|
|
29
30
|
export interface UpdateBenefitSessionsInputRepresentation {
|
|
30
|
-
deleteSessions?:
|
|
31
|
-
upsertSessions?:
|
|
31
|
+
deleteSessions?: BenefitSessionDeleteList_BenefitSessionDeleteList;
|
|
32
|
+
upsertSessions?: BenefitSessionUpsertList_BenefitSessionUpsertList;
|
|
32
33
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-program-mgmt",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.459.0",
|
|
4
4
|
"description": "This has files related to Program Management",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/industries-program-mgmt.js",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"test:unit:debug": "node --inspect-brk ../../node_modules/jest/bin/jest.js --config ./jest.config.js --runInBand"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@salesforce/lds-bindings": "^1.
|
|
44
|
+
"@salesforce/lds-bindings": "^1.459.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
47
|
+
"@salesforce/lds-compiler-plugins": "^1.459.0"
|
|
48
48
|
},
|
|
49
49
|
"nx": {
|
|
50
50
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -82,7 +82,7 @@ function createLink(ref) {
|
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
function validate$
|
|
85
|
+
function validate$6(obj, path = 'BenefitSessions') {
|
|
86
86
|
const v_error = (() => {
|
|
87
87
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
88
88
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -108,7 +108,7 @@ function validate$4(obj, path = 'BenefitSessions') {
|
|
|
108
108
|
|
|
109
109
|
const TTL$2 = 100;
|
|
110
110
|
const VERSION$2 = "df34bd680bc967e0b41fd56d4ee79f3a";
|
|
111
|
-
function validate$
|
|
111
|
+
function validate$5(obj, path = 'PreviewBenefitSessionsOutputRepresentation') {
|
|
112
112
|
const v_error = (() => {
|
|
113
113
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
114
114
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -121,7 +121,7 @@ function validate$3(obj, path = 'PreviewBenefitSessionsOutputRepresentation') {
|
|
|
121
121
|
for (let i = 0; i < obj_sessions.length; i++) {
|
|
122
122
|
const obj_sessions_item = obj_sessions[i];
|
|
123
123
|
const path_sessions_item = path_sessions + '[' + i + ']';
|
|
124
|
-
const referencepath_sessions_itemValidationError = validate$
|
|
124
|
+
const referencepath_sessions_itemValidationError = validate$6(obj_sessions_item, path_sessions_item);
|
|
125
125
|
if (referencepath_sessions_itemValidationError !== null) {
|
|
126
126
|
let message = 'Object doesn\'t match BenefitSessions (at "' + path_sessions_item + '")\n';
|
|
127
127
|
message += referencepath_sessions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -165,7 +165,7 @@ function equals$2(existing, incoming) {
|
|
|
165
165
|
}
|
|
166
166
|
const ingest$2 = function PreviewBenefitSessionsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
167
167
|
if (process.env.NODE_ENV !== 'production') {
|
|
168
|
-
const validateError = validate$
|
|
168
|
+
const validateError = validate$5(input);
|
|
169
169
|
if (validateError !== null) {
|
|
170
170
|
throw validateError;
|
|
171
171
|
}
|
|
@@ -285,7 +285,7 @@ const postBenefitSessionsPreviewAdapterFactory = (luvio) => {
|
|
|
285
285
|
|
|
286
286
|
const TTL$1 = 100;
|
|
287
287
|
const VERSION$1 = "c0d0d94c035c5fa3b02194b685c79ce3";
|
|
288
|
-
function validate$
|
|
288
|
+
function validate$4(obj, path = 'GenerateBenefitSessionOutputRepresentation') {
|
|
289
289
|
const v_error = (() => {
|
|
290
290
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
291
291
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -334,7 +334,7 @@ function equals$1(existing, incoming) {
|
|
|
334
334
|
}
|
|
335
335
|
const ingest$1 = function GenerateBenefitSessionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
336
336
|
if (process.env.NODE_ENV !== 'production') {
|
|
337
|
-
const validateError = validate$
|
|
337
|
+
const validateError = validate$4(input);
|
|
338
338
|
if (validateError !== null) {
|
|
339
339
|
throw validateError;
|
|
340
340
|
}
|
|
@@ -444,7 +444,7 @@ const postTriggerBenefitSessionGenerationAdapterFactory = (luvio) => {
|
|
|
444
444
|
};
|
|
445
445
|
};
|
|
446
446
|
|
|
447
|
-
function validate$
|
|
447
|
+
function validate$3(obj, path = 'BenefitSessionUpsertInputRepresentation') {
|
|
448
448
|
const v_error = (() => {
|
|
449
449
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
450
450
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -467,6 +467,55 @@ function validate$1(obj, path = 'BenefitSessionUpsertInputRepresentation') {
|
|
|
467
467
|
return v_error === undefined ? null : v_error;
|
|
468
468
|
}
|
|
469
469
|
|
|
470
|
+
function validate$2(obj, path = 'BenefitSessionUpsertList') {
|
|
471
|
+
const v_error = (() => {
|
|
472
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
473
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
474
|
+
}
|
|
475
|
+
if (obj.sessionList !== undefined) {
|
|
476
|
+
const obj_sessionList = obj.sessionList;
|
|
477
|
+
const path_sessionList = path + '.sessionList';
|
|
478
|
+
if (!ArrayIsArray(obj_sessionList)) {
|
|
479
|
+
return new TypeError('Expected "array" but received "' + typeof obj_sessionList + '" (at "' + path_sessionList + '")');
|
|
480
|
+
}
|
|
481
|
+
for (let i = 0; i < obj_sessionList.length; i++) {
|
|
482
|
+
const obj_sessionList_item = obj_sessionList[i];
|
|
483
|
+
const path_sessionList_item = path_sessionList + '[' + i + ']';
|
|
484
|
+
const referencepath_sessionList_itemValidationError = validate$3(obj_sessionList_item, path_sessionList_item);
|
|
485
|
+
if (referencepath_sessionList_itemValidationError !== null) {
|
|
486
|
+
let message = 'Object doesn\'t match BenefitSessionUpsertInputRepresentation (at "' + path_sessionList_item + '")\n';
|
|
487
|
+
message += referencepath_sessionList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
488
|
+
return new TypeError(message);
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
})();
|
|
493
|
+
return v_error === undefined ? null : v_error;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
function validate$1(obj, path = 'BenefitSessionDeleteList') {
|
|
497
|
+
const v_error = (() => {
|
|
498
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
499
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
500
|
+
}
|
|
501
|
+
if (obj.sessionIdList !== undefined) {
|
|
502
|
+
const obj_sessionIdList = obj.sessionIdList;
|
|
503
|
+
const path_sessionIdList = path + '.sessionIdList';
|
|
504
|
+
if (!ArrayIsArray(obj_sessionIdList)) {
|
|
505
|
+
return new TypeError('Expected "array" but received "' + typeof obj_sessionIdList + '" (at "' + path_sessionIdList + '")');
|
|
506
|
+
}
|
|
507
|
+
for (let i = 0; i < obj_sessionIdList.length; i++) {
|
|
508
|
+
const obj_sessionIdList_item = obj_sessionIdList[i];
|
|
509
|
+
const path_sessionIdList_item = path_sessionIdList + '[' + i + ']';
|
|
510
|
+
if (typeof obj_sessionIdList_item !== 'string') {
|
|
511
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sessionIdList_item + '" (at "' + path_sessionIdList_item + '")');
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
})();
|
|
516
|
+
return v_error === undefined ? null : v_error;
|
|
517
|
+
}
|
|
518
|
+
|
|
470
519
|
const TTL = 100;
|
|
471
520
|
const VERSION = "5821fdcb2a41b9e59a04ab5fa43ffe40";
|
|
472
521
|
function validate(obj, path = 'UpdateBenefitSessionsOutputRepresentation') {
|
|
@@ -606,8 +655,8 @@ function createResourceRequest(config) {
|
|
|
606
655
|
const adapterName = 'postUpdateBenefitSessions';
|
|
607
656
|
const postUpdateBenefitSessions_ConfigPropertyMetadata = [
|
|
608
657
|
generateParamConfigMetadata('benefitScheduleId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
609
|
-
generateParamConfigMetadata('upsertSessions', false, 2 /* Body */, 4 /* Unsupported
|
|
610
|
-
generateParamConfigMetadata('deleteSessions', false, 2 /* Body */,
|
|
658
|
+
generateParamConfigMetadata('upsertSessions', false, 2 /* Body */, 4 /* Unsupported */),
|
|
659
|
+
generateParamConfigMetadata('deleteSessions', false, 2 /* Body */, 4 /* Unsupported */),
|
|
611
660
|
];
|
|
612
661
|
const postUpdateBenefitSessions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postUpdateBenefitSessions_ConfigPropertyMetadata);
|
|
613
662
|
const createResourceParams = /*#__PURE__*/ createResourceParams$3(postUpdateBenefitSessions_ConfigPropertyMetadata);
|
|
@@ -615,16 +664,14 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
615
664
|
const config = {};
|
|
616
665
|
typeCheckConfig$3(untrustedConfig, config, postUpdateBenefitSessions_ConfigPropertyMetadata);
|
|
617
666
|
const untrustedConfig_upsertSessions = untrustedConfig.upsertSessions;
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
}
|
|
627
|
-
config.upsertSessions = untrustedConfig_upsertSessions_array;
|
|
667
|
+
const referenceBenefitSessionUpsertListValidationError = validate$2(untrustedConfig_upsertSessions);
|
|
668
|
+
if (referenceBenefitSessionUpsertListValidationError === null) {
|
|
669
|
+
config.upsertSessions = untrustedConfig_upsertSessions;
|
|
670
|
+
}
|
|
671
|
+
const untrustedConfig_deleteSessions = untrustedConfig.deleteSessions;
|
|
672
|
+
const referenceBenefitSessionDeleteListValidationError = validate$1(untrustedConfig_deleteSessions);
|
|
673
|
+
if (referenceBenefitSessionDeleteListValidationError === null) {
|
|
674
|
+
config.deleteSessions = untrustedConfig_deleteSessions;
|
|
628
675
|
}
|
|
629
676
|
return config;
|
|
630
677
|
}
|
|
@@ -697,4 +744,4 @@ withDefaultLuvio((luvio) => {
|
|
|
697
744
|
});
|
|
698
745
|
|
|
699
746
|
export { postBenefitSessionsPreview, postTriggerBenefitSessionGeneration, postUpdateBenefitSessions };
|
|
700
|
-
// version: 1.
|
|
747
|
+
// version: 1.459.0-eda2fb69a9
|
package/src/raml/api.raml
CHANGED
|
@@ -116,20 +116,42 @@ types:
|
|
|
116
116
|
//:
|
|
117
117
|
type: any
|
|
118
118
|
additionalProperties: true
|
|
119
|
-
|
|
120
|
-
description:
|
|
119
|
+
BenefitSessionUpsertList:
|
|
120
|
+
description: Wrapper for the benefit sessions to upsert. The Connect API request
|
|
121
|
+
representation nests this array under "sessionList" (its @ConnectInputListWrapper
|
|
122
|
+
listName). That wrapper is only elided on Connect's outbound serialize path, not on
|
|
123
|
+
inbound request deserialization, so the POST body must send the nested object rather
|
|
124
|
+
than a bare array.
|
|
121
125
|
type: object
|
|
122
126
|
properties:
|
|
123
|
-
|
|
127
|
+
sessionList:
|
|
124
128
|
description: Benefit sessions to upsert
|
|
125
129
|
type: array
|
|
126
130
|
items: BenefitSessionUpsertInputRepresentation
|
|
127
131
|
required: false
|
|
128
|
-
|
|
132
|
+
BenefitSessionDeleteList:
|
|
133
|
+
description: Wrapper for the Ids of benefit sessions to delete. The Connect API request
|
|
134
|
+
representation nests this array under "sessionIdList" (its @ConnectInputListWrapper
|
|
135
|
+
listName).
|
|
136
|
+
type: object
|
|
137
|
+
properties:
|
|
138
|
+
sessionIdList:
|
|
129
139
|
description: Ids of benefit sessions to delete
|
|
130
140
|
type: array
|
|
131
141
|
items: string
|
|
132
142
|
required: false
|
|
143
|
+
UpdateBenefitSessionsInputRepresentation:
|
|
144
|
+
description: Input representation for upserting/deleting benefit sessions
|
|
145
|
+
type: object
|
|
146
|
+
properties:
|
|
147
|
+
upsertSessions:
|
|
148
|
+
description: Benefit sessions to upsert
|
|
149
|
+
type: BenefitSessionUpsertList
|
|
150
|
+
required: false
|
|
151
|
+
deleteSessions:
|
|
152
|
+
description: Ids of benefit sessions to delete
|
|
153
|
+
type: BenefitSessionDeleteList
|
|
154
|
+
required: false
|
|
133
155
|
UpdateBenefitSessionsOutputRepresentation:
|
|
134
156
|
description: Output representation of the update benefit sessions request
|
|
135
157
|
type: object
|