@salesforce/lds-adapters-experience-model 1.323.0 → 1.325.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.
@@ -373,7 +373,7 @@ const getBlockTypesAdapterFactory = (luvio) => function ExperienceType__getBlock
373
373
  };
374
374
 
375
375
  const TTL$5 = 3600000;
376
- const VERSION$5 = "a0031d20c176201daecd591a08fcdc75";
376
+ const VERSION$5 = "a9b934d67c8ccf5c199c7afd1ac75b2b";
377
377
  function validate$f(obj, path = 'ExperienceModelBlockTypeDetailRepresentation') {
378
378
  const v_error = (() => {
379
379
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -386,22 +386,6 @@ function validate$f(obj, path = 'ExperienceModelBlockTypeDetailRepresentation')
386
386
  return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
387
387
  }
388
388
  }
389
- if (obj.designConfig !== undefined) {
390
- const obj_designConfig = obj.designConfig;
391
- const path_designConfig = path + '.designConfig';
392
- if (typeof obj_designConfig !== 'object' || ArrayIsArray(obj_designConfig) || obj_designConfig === null) {
393
- return new TypeError('Expected "object" but received "' + typeof obj_designConfig + '" (at "' + path_designConfig + '")');
394
- }
395
- const obj_designConfig_keys = ObjectKeys(obj_designConfig);
396
- for (let i = 0; i < obj_designConfig_keys.length; i++) {
397
- const key = obj_designConfig_keys[i];
398
- const obj_designConfig_prop = obj_designConfig[key];
399
- const path_designConfig_prop = path_designConfig + '["' + key + '"]';
400
- if (obj_designConfig_prop === undefined) {
401
- return new TypeError('Expected "defined" but received "' + typeof obj_designConfig_prop + '" (at "' + path_designConfig_prop + '")');
402
- }
403
- }
404
- }
405
389
  const obj_developerName = obj.developerName;
406
390
  const path_developerName = path + '.developerName';
407
391
  if (typeof obj_developerName !== 'string') {
@@ -451,22 +435,6 @@ function validate$f(obj, path = 'ExperienceModelBlockTypeDetailRepresentation')
451
435
  }
452
436
  }
453
437
  }
454
- if (obj.renditionConfig !== undefined) {
455
- const obj_renditionConfig = obj.renditionConfig;
456
- const path_renditionConfig = path + '.renditionConfig';
457
- if (typeof obj_renditionConfig !== 'object' || ArrayIsArray(obj_renditionConfig) || obj_renditionConfig === null) {
458
- return new TypeError('Expected "object" but received "' + typeof obj_renditionConfig + '" (at "' + path_renditionConfig + '")');
459
- }
460
- const obj_renditionConfig_keys = ObjectKeys(obj_renditionConfig);
461
- for (let i = 0; i < obj_renditionConfig_keys.length; i++) {
462
- const key = obj_renditionConfig_keys[i];
463
- const obj_renditionConfig_prop = obj_renditionConfig[key];
464
- const path_renditionConfig_prop = path_renditionConfig + '["' + key + '"]';
465
- if (obj_renditionConfig_prop === undefined) {
466
- return new TypeError('Expected "defined" but received "' + typeof obj_renditionConfig_prop + '" (at "' + path_renditionConfig_prop + '")');
467
- }
468
- }
469
- }
470
438
  const obj_schema = obj.schema;
471
439
  const path_schema = path + '.schema';
472
440
  if (typeof obj_schema !== 'object' || ArrayIsArray(obj_schema) || obj_schema === null) {
@@ -535,7 +503,7 @@ function select$a(luvio, params) {
535
503
  return select$b();
536
504
  }
537
505
  function keyBuilder$b(luvio, params) {
538
- return keyPrefix + '::ExperienceModelBlockTypeDetailRepresentation:(' + 'editorConfigTarget:' + params.queryParams.editorConfigTarget + ',' + 'designConfigTarget:' + params.queryParams.designConfigTarget + ',' + 'includeSubSchemaDefinitions:' + params.queryParams.includeSubSchemaDefinitions + ',' + 'language:' + params.queryParams.language + ',' + 'rendererConfigTarget:' + params.queryParams.rendererConfigTarget + ',' + 'renditionConfigTarget:' + params.queryParams.renditionConfigTarget + ',' + 'fullyQualifiedName:' + params.urlParams.fullyQualifiedName + ')';
506
+ return keyPrefix + '::ExperienceModelBlockTypeDetailRepresentation:(' + 'editorConfigTarget:' + params.queryParams.editorConfigTarget + ',' + 'includeSubSchemaDefinitions:' + params.queryParams.includeSubSchemaDefinitions + ',' + 'language:' + params.queryParams.language + ',' + 'rendererConfigTarget:' + params.queryParams.rendererConfigTarget + ',' + 'fullyQualifiedName:' + params.urlParams.fullyQualifiedName + ')';
539
507
  }
540
508
  function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
541
509
  getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
@@ -587,11 +555,9 @@ const adapterName$5 = 'getBlockType';
587
555
  const getBlockType_ConfigPropertyMetadata = [
588
556
  generateParamConfigMetadata('fullyQualifiedName', true, 0 /* UrlParameter */, 0 /* String */),
589
557
  generateParamConfigMetadata('editorConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
590
- generateParamConfigMetadata('designConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
591
558
  generateParamConfigMetadata('includeSubSchemaDefinitions', false, 1 /* QueryParameter */, 1 /* Boolean */),
592
559
  generateParamConfigMetadata('language', false, 1 /* QueryParameter */, 0 /* String */),
593
560
  generateParamConfigMetadata('rendererConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
594
- generateParamConfigMetadata('renditionConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
595
561
  ];
596
562
  const getBlockType_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getBlockType_ConfigPropertyMetadata);
597
563
  const createResourceParams$5 = /*#__PURE__*/ createResourceParams$7(getBlockType_ConfigPropertyMetadata);
@@ -8,11 +8,9 @@ export declare const getBlockType_ConfigPropertyNames: adapter$45$utils_AdapterV
8
8
  export interface GetBlockTypeConfig {
9
9
  fullyQualifiedName: string;
10
10
  editorConfigTarget?: string;
11
- designConfigTarget?: string;
12
11
  includeSubSchemaDefinitions?: boolean;
13
12
  language?: string;
14
13
  rendererConfigTarget?: string;
15
- renditionConfigTarget?: string;
16
14
  }
17
15
  export declare const createResourceParams: (config: GetBlockTypeConfig) => resources_getConnectExperienceModelBlockTypesByFullyQualifiedName_ResourceRequestConfig;
18
16
  export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetBlockTypeConfig): string;
@@ -6,11 +6,9 @@ export interface ResourceRequestConfig {
6
6
  };
7
7
  queryParams: {
8
8
  editorConfigTarget?: string;
9
- designConfigTarget?: string;
10
9
  includeSubSchemaDefinitions?: boolean;
11
10
  language?: string;
12
11
  rendererConfigTarget?: string;
13
- renditionConfigTarget?: string;
14
12
  };
15
13
  }
16
14
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -1,6 +1,6 @@
1
1
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
2
  export declare const TTL = 3600000;
3
- export declare const VERSION = "a0031d20c176201daecd591a08fcdc75";
3
+ export declare const VERSION = "a9b934d67c8ccf5c199c7afd1ac75b2b";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export declare function normalize(input: ExperienceModelBlockTypeDetailRepresentation, existing: ExperienceModelBlockTypeDetailRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExperienceModelBlockTypeDetailRepresentationNormalized;
@@ -17,10 +17,6 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
17
17
  export interface ExperienceModelBlockTypeDetailRepresentationNormalized {
18
18
  /** The description of the Block Type that was given in its schema.json. */
19
19
  description?: string;
20
- /** The design configuration for the specified target. */
21
- designConfig?: {
22
- [key: string]: unknown;
23
- };
24
20
  /** The developer name (aka apiName) of the Block Type. */
25
21
  developerName: string;
26
22
  /** The editor configuration for the specified target. */
@@ -35,10 +31,6 @@ export interface ExperienceModelBlockTypeDetailRepresentationNormalized {
35
31
  rendererConfig?: {
36
32
  [key: string]: unknown;
37
33
  };
38
- /** The rendition configuration for the specified target. */
39
- renditionConfig?: {
40
- [key: string]: unknown;
41
- };
42
34
  /** The JSON Schema definition (schema.json) of the Block Type */
43
35
  schema: {
44
36
  [key: string]: unknown;
@@ -54,9 +46,6 @@ export interface ExperienceModelBlockTypeDetailRepresentationNormalized {
54
46
  */
55
47
  export interface ExperienceModelBlockTypeDetailRepresentation {
56
48
  description?: string;
57
- designConfig?: {
58
- [key: string]: unknown;
59
- };
60
49
  developerName: string;
61
50
  editorConfig?: {
62
51
  [key: string]: unknown;
@@ -66,9 +55,6 @@ export interface ExperienceModelBlockTypeDetailRepresentation {
66
55
  rendererConfig?: {
67
56
  [key: string]: unknown;
68
57
  };
69
- renditionConfig?: {
70
- [key: string]: unknown;
71
- };
72
58
  schema: {
73
59
  [key: string]: unknown;
74
60
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-experience-model",
3
- "version": "1.323.0",
3
+ "version": "1.325.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "APIs to read and query all the 'types' in the Unified Experience Model",
6
6
  "main": "dist/es/es2018/experience-model.js",
@@ -44,11 +44,11 @@
44
44
  "test:unit": "jest"
45
45
  },
46
46
  "dependencies": {
47
- "@salesforce/lds-bindings": "^1.323.0"
47
+ "@salesforce/lds-bindings": "^1.325.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@salesforce/lds-compiler-plugins": "^1.323.0",
51
- "@salesforce/lds-karma": "^1.323.0"
50
+ "@salesforce/lds-compiler-plugins": "^1.325.0",
51
+ "@salesforce/lds-karma": "^1.325.0"
52
52
  },
53
53
  "nx": {
54
54
  "targets": {
package/sfdc/index.js CHANGED
@@ -91,7 +91,7 @@ function createLink(ref) {
91
91
  }
92
92
 
93
93
  const TTL$6 = 3600000;
94
- const VERSION$6 = "a0031d20c176201daecd591a08fcdc75";
94
+ const VERSION$6 = "a9b934d67c8ccf5c199c7afd1ac75b2b";
95
95
  function validate$h(obj, path = 'ExperienceModelBlockTypeDetailRepresentation') {
96
96
  const v_error = (() => {
97
97
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -104,22 +104,6 @@ function validate$h(obj, path = 'ExperienceModelBlockTypeDetailRepresentation')
104
104
  return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
105
105
  }
106
106
  }
107
- if (obj.designConfig !== undefined) {
108
- const obj_designConfig = obj.designConfig;
109
- const path_designConfig = path + '.designConfig';
110
- if (typeof obj_designConfig !== 'object' || ArrayIsArray(obj_designConfig) || obj_designConfig === null) {
111
- return new TypeError('Expected "object" but received "' + typeof obj_designConfig + '" (at "' + path_designConfig + '")');
112
- }
113
- const obj_designConfig_keys = ObjectKeys(obj_designConfig);
114
- for (let i = 0; i < obj_designConfig_keys.length; i++) {
115
- const key = obj_designConfig_keys[i];
116
- const obj_designConfig_prop = obj_designConfig[key];
117
- const path_designConfig_prop = path_designConfig + '["' + key + '"]';
118
- if (obj_designConfig_prop === undefined) {
119
- return new TypeError('Expected "defined" but received "' + typeof obj_designConfig_prop + '" (at "' + path_designConfig_prop + '")');
120
- }
121
- }
122
- }
123
107
  const obj_developerName = obj.developerName;
124
108
  const path_developerName = path + '.developerName';
125
109
  if (typeof obj_developerName !== 'string') {
@@ -169,22 +153,6 @@ function validate$h(obj, path = 'ExperienceModelBlockTypeDetailRepresentation')
169
153
  }
170
154
  }
171
155
  }
172
- if (obj.renditionConfig !== undefined) {
173
- const obj_renditionConfig = obj.renditionConfig;
174
- const path_renditionConfig = path + '.renditionConfig';
175
- if (typeof obj_renditionConfig !== 'object' || ArrayIsArray(obj_renditionConfig) || obj_renditionConfig === null) {
176
- return new TypeError('Expected "object" but received "' + typeof obj_renditionConfig + '" (at "' + path_renditionConfig + '")');
177
- }
178
- const obj_renditionConfig_keys = ObjectKeys(obj_renditionConfig);
179
- for (let i = 0; i < obj_renditionConfig_keys.length; i++) {
180
- const key = obj_renditionConfig_keys[i];
181
- const obj_renditionConfig_prop = obj_renditionConfig[key];
182
- const path_renditionConfig_prop = path_renditionConfig + '["' + key + '"]';
183
- if (obj_renditionConfig_prop === undefined) {
184
- return new TypeError('Expected "defined" but received "' + typeof obj_renditionConfig_prop + '" (at "' + path_renditionConfig_prop + '")');
185
- }
186
- }
187
- }
188
156
  const obj_schema = obj.schema;
189
157
  const path_schema = path + '.schema';
190
158
  if (typeof obj_schema !== 'object' || ArrayIsArray(obj_schema) || obj_schema === null) {
@@ -253,7 +221,7 @@ function select$c(luvio, params) {
253
221
  return select$d();
254
222
  }
255
223
  function keyBuilder$d(luvio, params) {
256
- return keyPrefix + '::ExperienceModelBlockTypeDetailRepresentation:(' + 'editorConfigTarget:' + params.queryParams.editorConfigTarget + ',' + 'designConfigTarget:' + params.queryParams.designConfigTarget + ',' + 'includeSubSchemaDefinitions:' + params.queryParams.includeSubSchemaDefinitions + ',' + 'language:' + params.queryParams.language + ',' + 'rendererConfigTarget:' + params.queryParams.rendererConfigTarget + ',' + 'renditionConfigTarget:' + params.queryParams.renditionConfigTarget + ',' + 'fullyQualifiedName:' + params.urlParams.fullyQualifiedName + ')';
224
+ return keyPrefix + '::ExperienceModelBlockTypeDetailRepresentation:(' + 'editorConfigTarget:' + params.queryParams.editorConfigTarget + ',' + 'includeSubSchemaDefinitions:' + params.queryParams.includeSubSchemaDefinitions + ',' + 'language:' + params.queryParams.language + ',' + 'rendererConfigTarget:' + params.queryParams.rendererConfigTarget + ',' + 'fullyQualifiedName:' + params.urlParams.fullyQualifiedName + ')';
257
225
  }
258
226
  function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
259
227
  getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
@@ -305,11 +273,9 @@ const adapterName$6 = 'getBlockType';
305
273
  const getBlockType_ConfigPropertyMetadata = [
306
274
  generateParamConfigMetadata('fullyQualifiedName', true, 0 /* UrlParameter */, 0 /* String */),
307
275
  generateParamConfigMetadata('editorConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
308
- generateParamConfigMetadata('designConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
309
276
  generateParamConfigMetadata('includeSubSchemaDefinitions', false, 1 /* QueryParameter */, 1 /* Boolean */),
310
277
  generateParamConfigMetadata('language', false, 1 /* QueryParameter */, 0 /* String */),
311
278
  generateParamConfigMetadata('rendererConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
312
- generateParamConfigMetadata('renditionConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
313
279
  ];
314
280
  const getBlockType_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getBlockType_ConfigPropertyMetadata);
315
281
  const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(getBlockType_ConfigPropertyMetadata);
@@ -2361,4 +2327,4 @@ withDefaultLuvio((luvio) => {
2361
2327
  });
2362
2328
 
2363
2329
  export { getBlockType, getBlockType_imperative, getBlockTypes, getBlockTypes_imperative, getContentType, getContentType_imperative, getContentTypes, getContentTypes_imperative, getPropertyType, getPropertyType_imperative, getPropertyTypes, getPropertyTypes_imperative, getTypes, getTypes_imperative };
2364
- // version: 1.323.0-34d96539ec
2330
+ // version: 1.325.0-19eed1b9b8
package/src/raml/api.raml CHANGED
@@ -108,13 +108,6 @@ types:
108
108
  properties:
109
109
  //:
110
110
  type: any # TODO waiting on W-8253396
111
- designConfig:
112
- description: The design configuration for the specified target.
113
- type: object
114
- required: false # TODO waiting on W-8253396
115
- properties:
116
- //:
117
- type: any # TODO waiting on W-8253396
118
111
  developerName:
119
112
  description: The developer name (aka apiName) of the Block Type.
120
113
  type: string
@@ -135,13 +128,6 @@ types:
135
128
  properties:
136
129
  //:
137
130
  type: any # TODO waiting on W-8253396
138
- renditionConfig:
139
- description: The rendition configuration for the specified target.
140
- type: object
141
- required: false # TODO waiting on W-8253396
142
- properties:
143
- //:
144
- type: any # TODO waiting on W-8253396
145
131
  schema:
146
132
  description: The JSON Schema definition (schema.json) of the Block Type
147
133
  type: object
@@ -3627,16 +3613,6 @@ types:
3627
3613
  - BlockBuilder
3628
3614
  - CmsContentEditor
3629
3615
  - Default
3630
- designConfigTarget:
3631
- description: A design configuration target. To get the design configuration
3632
- also included for a particular target in the response. If not specified,
3633
- no design configuration is included in the response.
3634
- type: string
3635
- required: false
3636
- enum:
3637
- - BlockBuilder
3638
- - CmsContentEditor
3639
- - Default
3640
3616
  includeSubSchemaDefinitions:
3641
3617
  description: When this is true, the schema definition will include all
3642
3618
  the referenced external sub-schema definitions also under $defs keyword.
@@ -3661,17 +3637,6 @@ types:
3661
3637
  - Default
3662
3638
  - Email
3663
3639
  - Lwr
3664
- renditionConfigTarget:
3665
- description: A rendition configuration target. To get the rendition configuration
3666
- also included for a particular target in the response. If not specified,
3667
- no rendition configuration is included in the response.
3668
- type: string
3669
- required: false
3670
- enum:
3671
- - CmsContentDetail
3672
- - Default
3673
- - Email
3674
- - Lwr
3675
3640
  uriParameters:
3676
3641
  fullyQualifiedName:
3677
3642
  description: The Fully Qualified Name of a block type to be retrieved.
@@ -93,9 +93,7 @@ types:
93
93
  "language":"en_US",
94
94
  "includeSubSchemaDefinitions":false,
95
95
  "editorConfigTarget":"DEFAULT",
96
- "rendererConfigTarget":"DEFAULT",
97
- "designConfigTarget":"DEFAULT",
98
- "renditionConfigTarget":"DEFAULT"
96
+ "rendererConfigTarget":"DEFAULT"
99
97
  }
100
98
  /connect/experience-model/content-types:
101
99
  get: