@salesforce/lds-adapters-industries-contextrules 1.436.0 → 1.438.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.
@@ -80,7 +80,7 @@ function createLink(ref) {
80
80
  }
81
81
 
82
82
  const TTL$3 = 1000;
83
- const VERSION$3 = "4b7bef672f4996c31c5a042959681437";
83
+ const VERSION$3 = "eff1fdb35c24fa52d908bb6b6ce236ee";
84
84
  function validate$5(obj, path = 'RuleLibraryTagMappingsReadOutputRepresentation') {
85
85
  const v_error = (() => {
86
86
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -91,6 +91,13 @@ function validate$5(obj, path = 'RuleLibraryTagMappingsReadOutputRepresentation'
91
91
  if (typeof obj_id !== 'string') {
92
92
  return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
93
93
  }
94
+ if (obj.mappingLabel !== undefined) {
95
+ const obj_mappingLabel = obj.mappingLabel;
96
+ const path_mappingLabel = path + '.mappingLabel';
97
+ if (typeof obj_mappingLabel !== 'string') {
98
+ return new TypeError('Expected "string" but received "' + typeof obj_mappingLabel + '" (at "' + path_mappingLabel + '")');
99
+ }
100
+ }
94
101
  const obj_mappingName = obj.mappingName;
95
102
  const path_mappingName = path + '.mappingName';
96
103
  if (typeof obj_mappingName !== 'string') {
@@ -922,7 +929,7 @@ function validate$1(obj, path = 'UsageSubtypeOutputRepresentation') {
922
929
  }
923
930
 
924
931
  const TTL = 1000;
925
- const VERSION = "19586883f36a2f3e5aa88a8708d670b4";
932
+ const VERSION = "b90202a702e4defac4d79f1b870aaf75";
926
933
  function validate(obj, path = 'UsageTypeOutputRepresentation') {
927
934
  const v_error = (() => {
928
935
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -940,6 +947,11 @@ function validate(obj, path = 'UsageTypeOutputRepresentation') {
940
947
  return new TypeError('Expected "string" but received "' + typeof obj_mappingNames_item + '" (at "' + path_mappingNames_item + '")');
941
948
  }
942
949
  }
950
+ const obj_supportsCustomMappingLabels = obj.supportsCustomMappingLabels;
951
+ const path_supportsCustomMappingLabels = path + '.supportsCustomMappingLabels';
952
+ if (typeof obj_supportsCustomMappingLabels !== 'boolean') {
953
+ return new TypeError('Expected "boolean" but received "' + typeof obj_supportsCustomMappingLabels + '" (at "' + path_supportsCustomMappingLabels + '")');
954
+ }
943
955
  const obj_usageSubtypes = obj.usageSubtypes;
944
956
  const path_usageSubtypes = path + '.usageSubtypes';
945
957
  if (!ArrayIsArray(obj_usageSubtypes)) {
@@ -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 = "5ab6c8a530b34dbd6ca4146015f4b13d";
2
+ export declare const VERSION = "223cb40990281d463c3764e94744499a";
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: RuleLibraryTagMappingsInputRepresentation, existing: RuleLibraryTagMappingsInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): RuleLibraryTagMappingsInputRepresentationNormalized;
@@ -14,6 +14,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
14
14
  * (none)
15
15
  */
16
16
  export interface RuleLibraryTagMappingsInputRepresentationNormalized {
17
+ /** User-provided mapping label for Custom Tag with Custom Mapping. */
18
+ mappingLabel?: string;
17
19
  /** Mapping name */
18
20
  mappingName: string;
19
21
  /** Sequence number */
@@ -30,6 +32,7 @@ export interface RuleLibraryTagMappingsInputRepresentationNormalized {
30
32
  * (none)
31
33
  */
32
34
  export interface RuleLibraryTagMappingsInputRepresentation {
35
+ mappingLabel?: string;
33
36
  mappingName: string;
34
37
  sequenceNumber: number;
35
38
  tagName: string;
@@ -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 = 1000;
3
- export declare const VERSION = "4b7bef672f4996c31c5a042959681437";
3
+ export declare const VERSION = "eff1fdb35c24fa52d908bb6b6ce236ee";
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 {
@@ -26,6 +26,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
26
26
  export interface RuleLibraryTagMappingsReadOutputRepresentationNormalized {
27
27
  /** Id of the tag mapping */
28
28
  id: string;
29
+ /** User-provided mapping label for Custom Tag with Custom Mapping. Null for hook-provided mappings. */
30
+ mappingLabel?: string;
29
31
  /** Mapping name */
30
32
  mappingName: string;
31
33
  /** API name of the rule library */
@@ -47,6 +49,7 @@ export interface RuleLibraryTagMappingsReadOutputRepresentationNormalized {
47
49
  */
48
50
  export interface RuleLibraryTagMappingsReadOutputRepresentation {
49
51
  id: string;
52
+ mappingLabel?: string;
50
53
  mappingName: string;
51
54
  ruleLibraryApiName: string;
52
55
  sequenceNumber?: number;
@@ -1,7 +1,7 @@
1
1
  import { UsageSubtypeOutputRepresentation as UsageSubtypeOutputRepresentation_UsageSubtypeOutputRepresentation } from './UsageSubtypeOutputRepresentation';
2
2
  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';
3
3
  export declare const TTL = 1000;
4
- export declare const VERSION = "19586883f36a2f3e5aa88a8708d670b4";
4
+ export declare const VERSION = "b90202a702e4defac4d79f1b870aaf75";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
7
7
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -27,6 +27,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
27
27
  export interface UsageTypeOutputRepresentationNormalized {
28
28
  /** mapping names */
29
29
  mappingNames: Array<string>;
30
+ /** True when this usage type supports user-authored mapping labels (server auto-generates the mapping name). Null/false otherwise. */
31
+ supportsCustomMappingLabels: boolean;
30
32
  /** Usage Subtypes */
31
33
  usageSubtypes: Array<UsageSubtypeOutputRepresentation_UsageSubtypeOutputRepresentation>;
32
34
  /** Usage type */
@@ -40,6 +42,7 @@ export interface UsageTypeOutputRepresentationNormalized {
40
42
  */
41
43
  export interface UsageTypeOutputRepresentation {
42
44
  mappingNames: Array<string>;
45
+ supportsCustomMappingLabels: boolean;
43
46
  usageSubtypes: Array<UsageSubtypeOutputRepresentation_UsageSubtypeOutputRepresentation>;
44
47
  usageType: string;
45
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-contextrules",
3
- "version": "1.436.0",
3
+ "version": "1.438.0",
4
4
  "description": "API family for contextrules",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/industries-contextrules.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.436.0"
44
+ "@salesforce/lds-bindings": "^1.438.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@salesforce/lds-compiler-plugins": "^1.436.0"
47
+ "@salesforce/lds-compiler-plugins": "^1.438.0"
48
48
  },
49
49
  "nx": {
50
50
  "targets": {
package/sfdc/index.js CHANGED
@@ -279,7 +279,7 @@ const createContextTagMappingAdapterFactory = (luvio) => {
279
279
  };
280
280
 
281
281
  const TTL$2 = 1000;
282
- const VERSION$2 = "4b7bef672f4996c31c5a042959681437";
282
+ const VERSION$2 = "eff1fdb35c24fa52d908bb6b6ce236ee";
283
283
  function validate$3(obj, path = 'RuleLibraryTagMappingsReadOutputRepresentation') {
284
284
  const v_error = (() => {
285
285
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -290,6 +290,13 @@ function validate$3(obj, path = 'RuleLibraryTagMappingsReadOutputRepresentation'
290
290
  if (typeof obj_id !== 'string') {
291
291
  return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
292
292
  }
293
+ if (obj.mappingLabel !== undefined) {
294
+ const obj_mappingLabel = obj.mappingLabel;
295
+ const path_mappingLabel = path + '.mappingLabel';
296
+ if (typeof obj_mappingLabel !== 'string') {
297
+ return new TypeError('Expected "string" but received "' + typeof obj_mappingLabel + '" (at "' + path_mappingLabel + '")');
298
+ }
299
+ }
293
300
  const obj_mappingName = obj.mappingName;
294
301
  const path_mappingName = path + '.mappingName';
295
302
  if (typeof obj_mappingName !== 'string') {
@@ -876,7 +883,7 @@ function validate$1(obj, path = 'UsageSubtypeOutputRepresentation') {
876
883
  }
877
884
 
878
885
  const TTL = 1000;
879
- const VERSION = "19586883f36a2f3e5aa88a8708d670b4";
886
+ const VERSION = "b90202a702e4defac4d79f1b870aaf75";
880
887
  function validate(obj, path = 'UsageTypeOutputRepresentation') {
881
888
  const v_error = (() => {
882
889
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -894,6 +901,11 @@ function validate(obj, path = 'UsageTypeOutputRepresentation') {
894
901
  return new TypeError('Expected "string" but received "' + typeof obj_mappingNames_item + '" (at "' + path_mappingNames_item + '")');
895
902
  }
896
903
  }
904
+ const obj_supportsCustomMappingLabels = obj.supportsCustomMappingLabels;
905
+ const path_supportsCustomMappingLabels = path + '.supportsCustomMappingLabels';
906
+ if (typeof obj_supportsCustomMappingLabels !== 'boolean') {
907
+ return new TypeError('Expected "boolean" but received "' + typeof obj_supportsCustomMappingLabels + '" (at "' + path_supportsCustomMappingLabels + '")');
908
+ }
897
909
  const obj_usageSubtypes = obj.usageSubtypes;
898
910
  const path_usageSubtypes = path + '.usageSubtypes';
899
911
  if (!ArrayIsArray(obj_usageSubtypes)) {
@@ -1314,4 +1326,4 @@ withDefaultLuvio((luvio) => {
1314
1326
  });
1315
1327
 
1316
1328
  export { createContextTagMapping, deleteContextTagMapping, getContextTagMapping, getContextTagMappingNotifyChange, getContextTagMapping_imperative, getContextTagMappings, getContextTagMappings_imperative, getUsageTypeDetail, getUsageTypeDetailNotifyChange, getUsageTypeDetail_imperative, updateContextTagMapping };
1317
- // version: 1.436.0-7cd4295391
1329
+ // version: 1.438.0-242a4ab027
package/src/raml/api.raml CHANGED
@@ -50,6 +50,10 @@ types:
50
50
  usageSubtype:
51
51
  description: The usage sub type
52
52
  type: string
53
+ mappingLabel:
54
+ description: User-provided mapping label for Custom Tag with Custom Mapping.
55
+ type: string
56
+ required: false
53
57
  RuleLibraryTagMappingsListWrapperRepresentation:
54
58
  description: Tag mapping input representation list
55
59
  type: object
@@ -93,6 +97,10 @@ types:
93
97
  versionNumber:
94
98
  description: Version number
95
99
  type: integer
100
+ mappingLabel:
101
+ description: User-provided mapping label for Custom Tag with Custom Mapping. Null for hook-provided mappings.
102
+ type: string
103
+ required: false
96
104
  RuleLibraryTagMappingsReadOutputRepresentationList:
97
105
  description: Output representation list of read tag mapping
98
106
  type: object
@@ -119,6 +127,9 @@ types:
119
127
  usageType:
120
128
  description: Usage type
121
129
  type: string
130
+ supportsCustomMappingLabels:
131
+ type: boolean
132
+ description: True when this usage type supports user-authored mapping labels (server auto-generates the mapping name). Null/false otherwise.
122
133
  UsageSubtypeOutputRepresentation:
123
134
  description: Output representation of context rule usageSubtype
124
135
  type: object