@salesforce/lds-adapters-industries-loyalty-engine 1.134.2 → 1.134.3

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.
@@ -1,9 +1,19 @@
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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
- export declare const VERSION = "d8f3f09184608522befb7481560705cf";
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
+ export declare const TTL = 10000;
3
+ export declare const VERSION = "96e5795863b4b2ea8ce298245c4ba2e5";
3
4
  export declare function validate(obj: any, path?: string): TypeError | null;
4
5
  export declare const RepresentationType: string;
6
+ export interface KeyParams extends $64$luvio_engine_KeyMetadata {
7
+ id: Array<string>;
8
+ }
9
+ export type LoyaltyEngineBatchOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
10
+ export type PartialLoyaltyEngineBatchOutputRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
11
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
12
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): LoyaltyEngineBatchOutputRepresentationNormalizedKeyMetadata;
13
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: LoyaltyEngineBatchOutputRepresentation): string;
14
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: LoyaltyEngineBatchOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
5
15
  export declare function normalize(input: LoyaltyEngineBatchOutputRepresentation, existing: LoyaltyEngineBatchOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LoyaltyEngineBatchOutputRepresentationNormalized;
6
- export declare const select: () => $64$luvio_engine_FragmentSelection;
16
+ export declare const select: () => $64$luvio_engine_BaseFragment;
7
17
  export declare function equals(existing: LoyaltyEngineBatchOutputRepresentationNormalized, incoming: LoyaltyEngineBatchOutputRepresentationNormalized): boolean;
8
18
  export declare function deepFreeze(input: LoyaltyEngineBatchOutputRepresentation): void;
9
19
  export declare const ingest: $64$luvio_engine_ResourceIngest;
@@ -12,7 +22,7 @@ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: L
12
22
  * Wrapper for the Payload map
13
23
  *
14
24
  * Keys:
15
- * (none)
25
+ * id (Array<string>): transactionJournalIds
16
26
  */
17
27
  export interface LoyaltyEngineBatchOutputRepresentationNormalized {
18
28
  /** Represents the Error Message. Message stating the reason for error, if any. */
@@ -26,7 +36,7 @@ export interface LoyaltyEngineBatchOutputRepresentationNormalized {
26
36
  * Wrapper for the Payload map
27
37
  *
28
38
  * Keys:
29
- * (none)
39
+ * id (Array<string>): transactionJournalIds
30
40
  */
31
41
  export interface LoyaltyEngineBatchOutputRepresentation {
32
42
  message: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-loyalty-engine",
3
- "version": "1.134.2",
3
+ "version": "1.134.3",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "The api is responsible for upserting Loyalty Process Rules",
6
6
  "main": "dist/es/es2018/industries-loyalty-engine.js",
package/sfdc/index.js CHANGED
@@ -4510,4 +4510,4 @@ withDefaultLuvio((luvio) => {
4510
4510
  });
4511
4511
 
4512
4512
  export { createProgramProcessRule, executeRealtimeLoyaltyEngine, getJournalExplainabilityInfo, getJournalExplainabilityInfo_imperative, getProgramProcessRule, getProgramProcessRule_imperative, updateProgramProcessRule };
4513
- // version: 1.134.2-29b530b89
4513
+ // version: 1.134.3-ea1008c6e
package/src/raml/api.raml CHANGED
@@ -1163,25 +1163,26 @@ types:
1163
1163
  programName:
1164
1164
  type: string
1165
1165
  required: true
1166
- /formula/loyalty/process/{processId}:
1167
- post:
1168
- description: http post method for Formula Syntax validation for given processId
1169
- responses:
1170
- '200':
1171
- description: Success
1172
- body:
1173
- application/json:
1174
- type: FormulaSyntaxValidationOutputRepresentation
1175
- body:
1176
- application/json:
1177
- type: FormulaSyntaxValidationInputRepresentation
1178
- # TODO: Hand-rolled W-8334626 due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
1179
- # required: false
1180
- (oas-body-name): formulas
1181
- uriParameters:
1182
- processId:
1183
- type: string
1184
- required: true
1166
+ # TODO: Hand-rolled
1167
+ # /formula/loyalty/process/{processId}:
1168
+ # post:
1169
+ # description: http post method for Formula Syntax validation for given processId
1170
+ # responses:
1171
+ # '200':
1172
+ # description: Success
1173
+ # body:
1174
+ # application/json:
1175
+ # type: FormulaSyntaxValidationOutputRepresentation
1176
+ # body:
1177
+ # application/json:
1178
+ # type: FormulaSyntaxValidationInputRepresentation
1179
+ # # TODO: Hand-rolled W-8334626 due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
1180
+ # # required: false
1181
+ # (oas-body-name): formulas
1182
+ # uriParameters:
1183
+ # processId:
1184
+ # type: string
1185
+ # required: true
1185
1186
  /loyalty:
1186
1187
  /program-process/transaction-journals/{journalId}:
1187
1188
  get:
@@ -18,6 +18,11 @@ types:
18
18
  (luvio.ttl): 10000
19
19
  (luvio.key):
20
20
  id: ruleId
21
+ LoyaltyEngineBatchOutputRepresentation:
22
+ (luvio.opaque): true
23
+ (luvio.ttl): 10000
24
+ (luvio.key):
25
+ id: transactionJournalIds
21
26
  LoyaltyEngineInputRepresentation:
22
27
  (luvio.opaque): true
23
28
  (luvio.ttl): 10000
@@ -1,15 +0,0 @@
1
- import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, 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';
2
- import { FormulaSyntaxValidationOutputRepresentation as types_FormulaSyntaxValidationOutputRepresentation_FormulaSyntaxValidationOutputRepresentation } from '../types/FormulaSyntaxValidationOutputRepresentation';
3
- export interface ResourceRequestConfig {
4
- urlParams: {
5
- processId: string;
6
- };
7
- body: {
8
- formulas: Array<{}>;
9
- };
10
- }
11
- export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
12
- export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_FormulaSyntaxValidationOutputRepresentation_FormulaSyntaxValidationOutputRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
13
- export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_FormulaSyntaxValidationOutputRepresentation_FormulaSyntaxValidationOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_FormulaSyntaxValidationOutputRepresentation_FormulaSyntaxValidationOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_FormulaSyntaxValidationOutputRepresentation_FormulaSyntaxValidationOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_FormulaSyntaxValidationOutputRepresentation_FormulaSyntaxValidationOutputRepresentation, any>;
14
- export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
15
- export default createResourceRequest;