@salesforce/lds-adapters-analytics-app-framework 1.362.0 → 1.364.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.
@@ -4296,7 +4296,7 @@ function equals$d(existing, incoming) {
4296
4296
  }
4297
4297
 
4298
4298
  const TTL$6 = 5000;
4299
- const VERSION$c = "dd0aa8a59d7655eec95623d20af6168b";
4299
+ const VERSION$c = "ef302004cf7fc4fc5d3aadccdc1d2d46";
4300
4300
  function validate$i(obj, path = 'TemplateRepresentation') {
4301
4301
  const v_error = (() => {
4302
4302
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -4637,6 +4637,32 @@ function validate$i(obj, path = 'TemplateRepresentation') {
4637
4637
  return new TypeError('Expected "defined" but received "' + typeof obj_tags_prop + '" (at "' + path_tags_prop + '")');
4638
4638
  }
4639
4639
  }
4640
+ const obj_templateStatus = obj.templateStatus;
4641
+ const path_templateStatus = path + '.templateStatus';
4642
+ let obj_templateStatus_union0 = null;
4643
+ const obj_templateStatus_union0_error = (() => {
4644
+ if (typeof obj_templateStatus !== 'string') {
4645
+ return new TypeError('Expected "string" but received "' + typeof obj_templateStatus + '" (at "' + path_templateStatus + '")');
4646
+ }
4647
+ })();
4648
+ if (obj_templateStatus_union0_error != null) {
4649
+ obj_templateStatus_union0 = obj_templateStatus_union0_error.message;
4650
+ }
4651
+ let obj_templateStatus_union1 = null;
4652
+ const obj_templateStatus_union1_error = (() => {
4653
+ if (obj_templateStatus !== null) {
4654
+ return new TypeError('Expected "null" but received "' + typeof obj_templateStatus + '" (at "' + path_templateStatus + '")');
4655
+ }
4656
+ })();
4657
+ if (obj_templateStatus_union1_error != null) {
4658
+ obj_templateStatus_union1 = obj_templateStatus_union1_error.message;
4659
+ }
4660
+ if (obj_templateStatus_union0 && obj_templateStatus_union1) {
4661
+ let message = 'Object doesn\'t match union (at "' + path_templateStatus + '")';
4662
+ message += '\n' + obj_templateStatus_union0.split('\n').map((line) => '\t' + line).join('\n');
4663
+ message += '\n' + obj_templateStatus_union1.split('\n').map((line) => '\t' + line).join('\n');
4664
+ return new TypeError(message);
4665
+ }
4640
4666
  const obj_templateSubtype = obj.templateSubtype;
4641
4667
  const path_templateSubtype = path + '.templateSubtype';
4642
4668
  let obj_templateSubtype_union0 = null;
@@ -4806,6 +4832,10 @@ const select$l = function TemplateRepresentationSelect() {
4806
4832
  kind: 'Object',
4807
4833
  // any
4808
4834
  },
4835
+ {
4836
+ name: 'templateStatus',
4837
+ kind: 'Scalar'
4838
+ },
4809
4839
  {
4810
4840
  name: 'templateSubtype',
4811
4841
  kind: 'Scalar'
@@ -4947,6 +4977,11 @@ function equals$c(existing, incoming) {
4947
4977
  if (equals_tags_props === false) {
4948
4978
  return false;
4949
4979
  }
4980
+ const existing_templateStatus = existing.templateStatus;
4981
+ const incoming_templateStatus = incoming.templateStatus;
4982
+ if (!(existing_templateStatus === incoming_templateStatus)) {
4983
+ return false;
4984
+ }
4950
4985
  const existing_templateSubtype = existing.templateSubtype;
4951
4986
  const incoming_templateSubtype = incoming.templateSubtype;
4952
4987
  if (!(existing_templateSubtype === incoming_templateSubtype)) {
@@ -5747,6 +5782,7 @@ const updateTemplate_ConfigPropertyMetadata = [
5747
5782
  generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
5748
5783
  generateParamConfigMetadata('releaseInfo', false, 2 /* Body */, 4 /* Unsupported */),
5749
5784
  generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
5785
+ generateParamConfigMetadata('templateStatus', false, 2 /* Body */, 0 /* String */),
5750
5786
  ];
5751
5787
  const updateTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, updateTemplate_ConfigPropertyMetadata);
5752
5788
  const createResourceParams$6 = /*#__PURE__*/ createResourceParams$o(updateTemplate_ConfigPropertyMetadata);
@@ -12,6 +12,7 @@ export interface UpdateTemplateConfig {
12
12
  description?: string;
13
13
  releaseInfo?: types_ReleaseInfoInputRepresentation_ReleaseInfoInputRepresentation;
14
14
  label?: string;
15
+ templateStatus?: string;
15
16
  }
16
17
  export declare const createResourceParams: (config: UpdateTemplateConfig) => resources_patchAppFrameworkTemplatesByTemplateIdOrApiName_ResourceRequestConfig;
17
18
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UpdateTemplateConfig>): adapter$45$utils_Untrusted<UpdateTemplateConfig>;
@@ -10,6 +10,7 @@ export interface ResourceRequestConfig {
10
10
  description?: string;
11
11
  releaseInfo?: types_ReleaseInfoInputRepresentation_ReleaseInfoInputRepresentation;
12
12
  label?: string;
13
+ templateStatus?: string;
13
14
  };
14
15
  }
15
16
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -4,7 +4,7 @@ import { ReleaseInfoRepresentation as ReleaseInfoRepresentation_ReleaseInfoRepre
4
4
  import { RuleInfoRepresentation as RuleInfoRepresentation_RuleInfoRepresentation } from './RuleInfoRepresentation';
5
5
  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, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
6
6
  export declare const TTL = 5000;
7
- export declare const VERSION = "dd0aa8a59d7655eec95623d20af6168b";
7
+ export declare const VERSION = "ef302004cf7fc4fc5d3aadccdc1d2d46";
8
8
  export declare function validate(obj: any, path?: string): TypeError | null;
9
9
  export declare const RepresentationType: string;
10
10
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -66,6 +66,8 @@ export interface TemplateRepresentationNormalized {
66
66
  tags: {
67
67
  [key: string]: unknown;
68
68
  };
69
+ /** The Template Status */
70
+ templateStatus: string | null;
69
71
  /** The template sub type. */
70
72
  templateSubtype: string | null;
71
73
  /** The template type. */
@@ -102,6 +104,7 @@ export interface TemplateRepresentation {
102
104
  tags: {
103
105
  [key: string]: unknown;
104
106
  };
107
+ templateStatus: string | null;
105
108
  templateSubtype: string | null;
106
109
  templateType: string;
107
110
  url: string;
@@ -1,6 +1,6 @@
1
1
  import { ReleaseInfoInputRepresentation as ReleaseInfoInputRepresentation_ReleaseInfoInputRepresentation } from './ReleaseInfoInputRepresentation';
2
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 = "3c61f30e8de1c98fa674c9a065675b0e";
3
+ export declare const VERSION = "01f100a8457021894adb18d27497ed1d";
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: TemplateUpdateRepresentation, existing: TemplateUpdateRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): TemplateUpdateRepresentationNormalized;
@@ -23,6 +23,8 @@ export interface TemplateUpdateRepresentationNormalized {
23
23
  label?: string;
24
24
  /** The Template release notes */
25
25
  releaseInfo?: ReleaseInfoInputRepresentation_ReleaseInfoInputRepresentation;
26
+ /** The Template Status */
27
+ templateStatus?: string;
26
28
  }
27
29
  /**
28
30
  * Input representation for Template update.
@@ -35,4 +37,5 @@ export interface TemplateUpdateRepresentation {
35
37
  description?: string;
36
38
  label?: string;
37
39
  releaseInfo?: ReleaseInfoInputRepresentation_ReleaseInfoInputRepresentation;
40
+ templateStatus?: string;
38
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-analytics-app-framework",
3
- "version": "1.362.0",
3
+ "version": "1.364.0",
4
4
  "description": "APIs for the app-framework",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/analytics-app-framework.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.362.0"
43
+ "@salesforce/lds-bindings": "^1.364.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.362.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.364.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -2372,7 +2372,7 @@ function equals$i(existing, incoming) {
2372
2372
  }
2373
2373
 
2374
2374
  const TTL$b = 5000;
2375
- const VERSION$h = "dd0aa8a59d7655eec95623d20af6168b";
2375
+ const VERSION$h = "ef302004cf7fc4fc5d3aadccdc1d2d46";
2376
2376
  function validate$i(obj, path = 'TemplateRepresentation') {
2377
2377
  const v_error = (() => {
2378
2378
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2713,6 +2713,32 @@ function validate$i(obj, path = 'TemplateRepresentation') {
2713
2713
  return new TypeError('Expected "defined" but received "' + typeof obj_tags_prop + '" (at "' + path_tags_prop + '")');
2714
2714
  }
2715
2715
  }
2716
+ const obj_templateStatus = obj.templateStatus;
2717
+ const path_templateStatus = path + '.templateStatus';
2718
+ let obj_templateStatus_union0 = null;
2719
+ const obj_templateStatus_union0_error = (() => {
2720
+ if (typeof obj_templateStatus !== 'string') {
2721
+ return new TypeError('Expected "string" but received "' + typeof obj_templateStatus + '" (at "' + path_templateStatus + '")');
2722
+ }
2723
+ })();
2724
+ if (obj_templateStatus_union0_error != null) {
2725
+ obj_templateStatus_union0 = obj_templateStatus_union0_error.message;
2726
+ }
2727
+ let obj_templateStatus_union1 = null;
2728
+ const obj_templateStatus_union1_error = (() => {
2729
+ if (obj_templateStatus !== null) {
2730
+ return new TypeError('Expected "null" but received "' + typeof obj_templateStatus + '" (at "' + path_templateStatus + '")');
2731
+ }
2732
+ })();
2733
+ if (obj_templateStatus_union1_error != null) {
2734
+ obj_templateStatus_union1 = obj_templateStatus_union1_error.message;
2735
+ }
2736
+ if (obj_templateStatus_union0 && obj_templateStatus_union1) {
2737
+ let message = 'Object doesn\'t match union (at "' + path_templateStatus + '")';
2738
+ message += '\n' + obj_templateStatus_union0.split('\n').map((line) => '\t' + line).join('\n');
2739
+ message += '\n' + obj_templateStatus_union1.split('\n').map((line) => '\t' + line).join('\n');
2740
+ return new TypeError(message);
2741
+ }
2716
2742
  const obj_templateSubtype = obj.templateSubtype;
2717
2743
  const path_templateSubtype = path + '.templateSubtype';
2718
2744
  let obj_templateSubtype_union0 = null;
@@ -2882,6 +2908,10 @@ const select$A = function TemplateRepresentationSelect() {
2882
2908
  kind: 'Object',
2883
2909
  // any
2884
2910
  },
2911
+ {
2912
+ name: 'templateStatus',
2913
+ kind: 'Scalar'
2914
+ },
2885
2915
  {
2886
2916
  name: 'templateSubtype',
2887
2917
  kind: 'Scalar'
@@ -3023,6 +3053,11 @@ function equals$h(existing, incoming) {
3023
3053
  if (equals_tags_props === false) {
3024
3054
  return false;
3025
3055
  }
3056
+ const existing_templateStatus = existing.templateStatus;
3057
+ const incoming_templateStatus = incoming.templateStatus;
3058
+ if (!(existing_templateStatus === incoming_templateStatus)) {
3059
+ return false;
3060
+ }
3026
3061
  const existing_templateSubtype = existing.templateSubtype;
3027
3062
  const incoming_templateSubtype = incoming.templateSubtype;
3028
3063
  if (!(existing_templateSubtype === incoming_templateSubtype)) {
@@ -8113,6 +8148,7 @@ const updateTemplate_ConfigPropertyMetadata = [
8113
8148
  generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
8114
8149
  generateParamConfigMetadata('releaseInfo', false, 2 /* Body */, 4 /* Unsupported */),
8115
8150
  generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
8151
+ generateParamConfigMetadata('templateStatus', false, 2 /* Body */, 0 /* String */),
8116
8152
  ];
8117
8153
  const updateTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateTemplate_ConfigPropertyMetadata);
8118
8154
  const createResourceParams = /*#__PURE__*/ createResourceParams$o(updateTemplate_ConfigPropertyMetadata);
@@ -8352,4 +8388,4 @@ withDefaultLuvio((luvio) => {
8352
8388
  });
8353
8389
 
8354
8390
  export { createApp, createAppAsset, createTemplate, deleteApp, deleteAppAsset, deleteTemplate, getApp, getAppActivities, getAppActivitiesNotifyChange, getAppActivities_imperative, getAppActivity, getAppActivityNotifyChange, getAppActivity_imperative, getAppAsset, getAppAsset_imperative, getAppAssets, getAppAssetsNotifyChange, getAppAssets_imperative, getAppNotifyChange, getApp_imperative, getApps, getApps_imperative, getInstalledAssets, getInstalledAssets_imperative, getTags, getTagsNotifyChange, getTags_imperative, getTemplate, getTemplateAssets, getTemplateAssets_imperative, getTemplateConfig, getTemplateConfigNotifyChange, getTemplateConfig_imperative, getTemplateNotifyChange, getTemplate_imperative, getTemplates, getTemplates_imperative, readinessCheck, setTags, updateApp, updateAppAsset, updateBasicApp, updateTemplate };
8355
- // version: 1.362.0-d2e818ae61
8391
+ // version: 1.364.0-a541a03c7e
package/src/raml/api.raml CHANGED
@@ -812,6 +812,12 @@ types:
812
812
  variableDefinition:
813
813
  description: The variable definition of the application template.
814
814
  type: string | nil
815
+ templateStatus:
816
+ description: The Template Status
817
+ type: string | nil
818
+ enum:
819
+ - Draft
820
+ - Published
815
821
  UserRepresentation:
816
822
  description: Information about a user.
817
823
  type: object
@@ -966,6 +972,13 @@ types:
966
972
  description: The Template label.
967
973
  required: false # TODO Hand-rolled W-15955585
968
974
  type: string
975
+ templateStatus:
976
+ description: The Template Status
977
+ required: false
978
+ type: string
979
+ enum:
980
+ - Draft
981
+ - Published
969
982
  TemplatedAssetCollectionRepresentation:
970
983
  description: Representation for Next Gen application templated assets.
971
984
  type: object