@salesforce/lds-adapters-industries-program-mgmt 1.460.0 → 1.462.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.
@@ -508,7 +508,7 @@ function validate$1(obj, path = 'BenefitSessionDeleteList') {
508
508
  }
509
509
 
510
510
  const TTL = 100;
511
- const VERSION = "5821fdcb2a41b9e59a04ab5fa43ffe40";
511
+ const VERSION = "0f163441dabee5fba73c4428e300be41";
512
512
  function validate(obj, path = 'UpdateBenefitSessionsOutputRepresentation') {
513
513
  const v_error = (() => {
514
514
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -542,6 +542,20 @@ function validate(obj, path = 'UpdateBenefitSessionsOutputRepresentation') {
542
542
  return new TypeError('Expected "integer" but received "' + typeof obj_insertedSessionCount + '" (at "' + path_insertedSessionCount + '")');
543
543
  }
544
544
  }
545
+ if (obj.message !== undefined) {
546
+ const obj_message = obj.message;
547
+ const path_message = path + '.message';
548
+ if (typeof obj_message !== 'string') {
549
+ return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
550
+ }
551
+ }
552
+ if (obj.queued !== undefined) {
553
+ const obj_queued = obj.queued;
554
+ const path_queued = path + '.queued';
555
+ if (typeof obj_queued !== 'boolean') {
556
+ return new TypeError('Expected "boolean" but received "' + typeof obj_queued + '" (at "' + path_queued + '")');
557
+ }
558
+ }
545
559
  const obj_success = obj.success;
546
560
  const path_success = path + '.success';
547
561
  if (typeof obj_success !== 'boolean') {
@@ -648,6 +662,7 @@ const postUpdateBenefitSessions_ConfigPropertyMetadata = [
648
662
  generateParamConfigMetadata('benefitScheduleId', true, 0 /* UrlParameter */, 0 /* String */),
649
663
  generateParamConfigMetadata('upsertSessions', false, 2 /* Body */, 4 /* Unsupported */),
650
664
  generateParamConfigMetadata('deleteSessions', false, 2 /* Body */, 4 /* Unsupported */),
665
+ generateParamConfigMetadata('autoEnrollParticipants', false, 2 /* Body */, 1 /* Boolean */),
651
666
  ];
652
667
  const postUpdateBenefitSessions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postUpdateBenefitSessions_ConfigPropertyMetadata);
653
668
  const createResourceParams = /*#__PURE__*/ createResourceParams$3(postUpdateBenefitSessions_ConfigPropertyMetadata);
@@ -11,6 +11,7 @@ export interface PostUpdateBenefitSessionsConfig {
11
11
  benefitScheduleId: string;
12
12
  upsertSessions?: types_BenefitSessionUpsertList_BenefitSessionUpsertList;
13
13
  deleteSessions?: types_BenefitSessionDeleteList_BenefitSessionDeleteList;
14
+ autoEnrollParticipants?: boolean;
14
15
  }
15
16
  export declare const createResourceParams: (config: PostUpdateBenefitSessionsConfig) => resources_postConnectProgramMgmtBenefitSchedulesSessionUpdatesByBenefitScheduleId_ResourceRequestConfig;
16
17
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<PostUpdateBenefitSessionsConfig>): adapter$45$utils_Untrusted<PostUpdateBenefitSessionsConfig>;
@@ -9,6 +9,7 @@ export interface ResourceRequestConfig {
9
9
  body: {
10
10
  upsertSessions?: types_BenefitSessionUpsertList_BenefitSessionUpsertList;
11
11
  deleteSessions?: types_BenefitSessionDeleteList_BenefitSessionDeleteList;
12
+ autoEnrollParticipants?: boolean;
12
13
  };
13
14
  }
14
15
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -1,7 +1,7 @@
1
1
  import { BenefitSessionDeleteList as BenefitSessionDeleteList_BenefitSessionDeleteList } from './BenefitSessionDeleteList';
2
2
  import { BenefitSessionUpsertList as BenefitSessionUpsertList_BenefitSessionUpsertList } from './BenefitSessionUpsertList';
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 = "1f46c95beffd0ed6239d15a9f84b97c1";
4
+ export declare const VERSION = "0b355e904e010f79dd229920243143f6";
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: UpdateBenefitSessionsInputRepresentation, existing: UpdateBenefitSessionsInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): UpdateBenefitSessionsInputRepresentationNormalized;
@@ -16,6 +16,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
16
16
  * (none)
17
17
  */
18
18
  export interface UpdateBenefitSessionsInputRepresentationNormalized {
19
+ /** Whether the endpoint should automatically enroll participants into the newly created benefit sessions */
20
+ autoEnrollParticipants?: boolean;
19
21
  /** Ids of benefit sessions to delete */
20
22
  deleteSessions?: BenefitSessionDeleteList_BenefitSessionDeleteList;
21
23
  /** Benefit sessions to upsert */
@@ -28,6 +30,7 @@ export interface UpdateBenefitSessionsInputRepresentationNormalized {
28
30
  * (none)
29
31
  */
30
32
  export interface UpdateBenefitSessionsInputRepresentation {
33
+ autoEnrollParticipants?: boolean;
31
34
  deleteSessions?: BenefitSessionDeleteList_BenefitSessionDeleteList;
32
35
  upsertSessions?: BenefitSessionUpsertList_BenefitSessionUpsertList;
33
36
  }
@@ -1,6 +1,6 @@
1
1
  import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
2
  export declare const TTL = 100;
3
- export declare const VERSION = "5821fdcb2a41b9e59a04ab5fa43ffe40";
3
+ export declare const VERSION = "0f163441dabee5fba73c4428e300be41";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -32,6 +32,10 @@ export interface UpdateBenefitSessionsOutputRepresentationNormalized {
32
32
  insertedDisbursementCount?: number;
33
33
  /** Number of benefit sessions that were inserted */
34
34
  insertedSessionCount?: number;
35
+ /** An informational or error message describing the outcome of the request; populated when the request is queued for background processing or when additional context is useful to the caller */
36
+ message?: string;
37
+ /** Whether the request exceeded the synchronous size threshold and was queued for background processing; when true the counts are omitted and the caller is notified on completion */
38
+ queued?: boolean;
35
39
  /** Whether the update benefit sessions request succeeded */
36
40
  success: boolean;
37
41
  /** Number of benefit sessions that were updated */
@@ -48,6 +52,8 @@ export interface UpdateBenefitSessionsOutputRepresentation {
48
52
  deletedSessionCount?: number;
49
53
  insertedDisbursementCount?: number;
50
54
  insertedSessionCount?: number;
55
+ message?: string;
56
+ queued?: boolean;
51
57
  success: boolean;
52
58
  updatedSessionCount?: number;
53
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-program-mgmt",
3
- "version": "1.460.0",
3
+ "version": "1.462.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.460.0"
44
+ "@salesforce/lds-bindings": "^1.462.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@salesforce/lds-compiler-plugins": "^1.460.0"
47
+ "@salesforce/lds-compiler-plugins": "^1.462.0"
48
48
  },
49
49
  "nx": {
50
50
  "targets": {
package/sfdc/index.js CHANGED
@@ -517,7 +517,7 @@ function validate$1(obj, path = 'BenefitSessionDeleteList') {
517
517
  }
518
518
 
519
519
  const TTL = 100;
520
- const VERSION = "5821fdcb2a41b9e59a04ab5fa43ffe40";
520
+ const VERSION = "0f163441dabee5fba73c4428e300be41";
521
521
  function validate(obj, path = 'UpdateBenefitSessionsOutputRepresentation') {
522
522
  const v_error = (() => {
523
523
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -551,6 +551,20 @@ function validate(obj, path = 'UpdateBenefitSessionsOutputRepresentation') {
551
551
  return new TypeError('Expected "integer" but received "' + typeof obj_insertedSessionCount + '" (at "' + path_insertedSessionCount + '")');
552
552
  }
553
553
  }
554
+ if (obj.message !== undefined) {
555
+ const obj_message = obj.message;
556
+ const path_message = path + '.message';
557
+ if (typeof obj_message !== 'string') {
558
+ return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
559
+ }
560
+ }
561
+ if (obj.queued !== undefined) {
562
+ const obj_queued = obj.queued;
563
+ const path_queued = path + '.queued';
564
+ if (typeof obj_queued !== 'boolean') {
565
+ return new TypeError('Expected "boolean" but received "' + typeof obj_queued + '" (at "' + path_queued + '")');
566
+ }
567
+ }
554
568
  const obj_success = obj.success;
555
569
  const path_success = path + '.success';
556
570
  if (typeof obj_success !== 'boolean') {
@@ -657,6 +671,7 @@ const postUpdateBenefitSessions_ConfigPropertyMetadata = [
657
671
  generateParamConfigMetadata('benefitScheduleId', true, 0 /* UrlParameter */, 0 /* String */),
658
672
  generateParamConfigMetadata('upsertSessions', false, 2 /* Body */, 4 /* Unsupported */),
659
673
  generateParamConfigMetadata('deleteSessions', false, 2 /* Body */, 4 /* Unsupported */),
674
+ generateParamConfigMetadata('autoEnrollParticipants', false, 2 /* Body */, 1 /* Boolean */),
660
675
  ];
661
676
  const postUpdateBenefitSessions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postUpdateBenefitSessions_ConfigPropertyMetadata);
662
677
  const createResourceParams = /*#__PURE__*/ createResourceParams$3(postUpdateBenefitSessions_ConfigPropertyMetadata);
@@ -744,4 +759,4 @@ withDefaultLuvio((luvio) => {
744
759
  });
745
760
 
746
761
  export { postBenefitSessionsPreview, postTriggerBenefitSessionGeneration, postUpdateBenefitSessions };
747
- // version: 1.460.0-3e24f1bbff
762
+ // version: 1.462.0-2919385b97
package/src/raml/api.raml CHANGED
@@ -152,6 +152,11 @@ types:
152
152
  description: Ids of benefit sessions to delete
153
153
  type: BenefitSessionDeleteList
154
154
  required: false
155
+ autoEnrollParticipants:
156
+ description: Whether the endpoint should automatically enroll participants
157
+ into the newly created benefit sessions
158
+ type: boolean
159
+ required: false
155
160
  UpdateBenefitSessionsOutputRepresentation:
156
161
  description: Output representation of the update benefit sessions request
157
162
  type: object
@@ -176,6 +181,18 @@ types:
176
181
  description: Number of benefit disbursements that were deleted
177
182
  type: integer
178
183
  required: false
184
+ queued:
185
+ description: Whether the request exceeded the synchronous size threshold and
186
+ was queued for background processing; when true the counts are omitted and
187
+ the caller is notified on completion
188
+ type: boolean
189
+ required: false
190
+ message:
191
+ description: An informational or error message describing the outcome of the
192
+ request; populated when the request is queued for background processing or
193
+ when additional context is useful to the caller
194
+ type: string
195
+ required: false
179
196
  success:
180
197
  # NOTE: Connect's schema marks this required: false, but it is used as this
181
198
  # type's (luvio.key) for the POST adapter response, which the Luvio compiler