@salesforce/lds-adapters-cdp-personalization-service 1.310.0 → 1.311.1

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.
@@ -636,31 +636,33 @@ function validate$7(obj, path = 'SubjectRepresentation') {
636
636
  return new TypeError(message);
637
637
  }
638
638
  }
639
- const obj_objectApiName = obj.objectApiName;
640
- const path_objectApiName = path + '.objectApiName';
641
- let obj_objectApiName_union0 = null;
642
- const obj_objectApiName_union0_error = (() => {
643
- if (typeof obj_objectApiName !== 'string') {
644
- return new TypeError('Expected "string" but received "' + typeof obj_objectApiName + '" (at "' + path_objectApiName + '")');
639
+ if (obj.objectApiName !== undefined) {
640
+ const obj_objectApiName = obj.objectApiName;
641
+ const path_objectApiName = path + '.objectApiName';
642
+ let obj_objectApiName_union0 = null;
643
+ const obj_objectApiName_union0_error = (() => {
644
+ if (typeof obj_objectApiName !== 'string') {
645
+ return new TypeError('Expected "string" but received "' + typeof obj_objectApiName + '" (at "' + path_objectApiName + '")');
646
+ }
647
+ })();
648
+ if (obj_objectApiName_union0_error != null) {
649
+ obj_objectApiName_union0 = obj_objectApiName_union0_error.message;
645
650
  }
646
- })();
647
- if (obj_objectApiName_union0_error != null) {
648
- obj_objectApiName_union0 = obj_objectApiName_union0_error.message;
649
- }
650
- let obj_objectApiName_union1 = null;
651
- const obj_objectApiName_union1_error = (() => {
652
- if (obj_objectApiName !== null) {
653
- return new TypeError('Expected "null" but received "' + typeof obj_objectApiName + '" (at "' + path_objectApiName + '")');
651
+ let obj_objectApiName_union1 = null;
652
+ const obj_objectApiName_union1_error = (() => {
653
+ if (obj_objectApiName !== null) {
654
+ return new TypeError('Expected "null" but received "' + typeof obj_objectApiName + '" (at "' + path_objectApiName + '")');
655
+ }
656
+ })();
657
+ if (obj_objectApiName_union1_error != null) {
658
+ obj_objectApiName_union1 = obj_objectApiName_union1_error.message;
659
+ }
660
+ if (obj_objectApiName_union0 && obj_objectApiName_union1) {
661
+ let message = 'Object doesn\'t match union (at "' + path_objectApiName + '")';
662
+ message += '\n' + obj_objectApiName_union0.split('\n').map((line) => '\t' + line).join('\n');
663
+ message += '\n' + obj_objectApiName_union1.split('\n').map((line) => '\t' + line).join('\n');
664
+ return new TypeError(message);
654
665
  }
655
- })();
656
- if (obj_objectApiName_union1_error != null) {
657
- obj_objectApiName_union1 = obj_objectApiName_union1_error.message;
658
- }
659
- if (obj_objectApiName_union0 && obj_objectApiName_union1) {
660
- let message = 'Object doesn\'t match union (at "' + path_objectApiName + '")';
661
- message += '\n' + obj_objectApiName_union0.split('\n').map((line) => '\t' + line).join('\n');
662
- message += '\n' + obj_objectApiName_union1.split('\n').map((line) => '\t' + line).join('\n');
663
- return new TypeError(message);
664
666
  }
665
667
  if (obj.objectLabel !== undefined) {
666
668
  const obj_objectLabel = obj.objectLabel;
@@ -2504,7 +2506,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
2504
2506
  function createResourceRequest$6(config) {
2505
2507
  const headers = {};
2506
2508
  return {
2507
- baseUri: '/services/data/v62.0',
2509
+ baseUri: '/services/data/v63.0',
2508
2510
  basePath: '/personalization/personalization-points',
2509
2511
  method: 'post',
2510
2512
  body: config.body,
@@ -2681,7 +2683,7 @@ function evictSuccess$1(luvio, resourceParams) {
2681
2683
  function createResourceRequest$5(config) {
2682
2684
  const headers = {};
2683
2685
  return {
2684
- baseUri: '/services/data/v62.0',
2686
+ baseUri: '/services/data/v63.0',
2685
2687
  basePath: '/personalization/personalization-points/' + config.urlParams.idOrName + '',
2686
2688
  method: 'delete',
2687
2689
  body: null,
@@ -2788,7 +2790,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
2788
2790
  function createResourceRequest$4(config) {
2789
2791
  const headers = {};
2790
2792
  return {
2791
- baseUri: '/services/data/v62.0',
2793
+ baseUri: '/services/data/v63.0',
2792
2794
  basePath: '/personalization/personalization-points/' + config.urlParams.idOrName + '',
2793
2795
  method: 'get',
2794
2796
  body: null,
@@ -2911,7 +2913,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
2911
2913
  function createResourceRequest$3(config) {
2912
2914
  const headers = {};
2913
2915
  return {
2914
- baseUri: '/services/data/v62.0',
2916
+ baseUri: '/services/data/v63.0',
2915
2917
  basePath: '/personalization/personalization-points/' + config.urlParams.idOrName + '',
2916
2918
  method: 'put',
2917
2919
  body: config.body,
@@ -3631,7 +3633,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
3631
3633
  function createResourceRequest$2(config) {
3632
3634
  const headers = {};
3633
3635
  return {
3634
- baseUri: '/services/data/v62.0',
3636
+ baseUri: '/services/data/v63.0',
3635
3637
  basePath: '/personalization/personalization-schemas',
3636
3638
  method: 'post',
3637
3639
  body: config.body,
@@ -3761,7 +3763,7 @@ function evictSuccess(luvio, resourceParams) {
3761
3763
  function createResourceRequest$1(config) {
3762
3764
  const headers = {};
3763
3765
  return {
3764
- baseUri: '/services/data/v62.0',
3766
+ baseUri: '/services/data/v63.0',
3765
3767
  basePath: '/personalization/personalization-schemas/' + config.urlParams.idOrName + '',
3766
3768
  method: 'delete',
3767
3769
  body: null,
@@ -3868,7 +3870,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
3868
3870
  function createResourceRequest(config) {
3869
3871
  const headers = {};
3870
3872
  return {
3871
- baseUri: '/services/data/v62.0',
3873
+ baseUri: '/services/data/v63.0',
3872
3874
  basePath: '/personalization/personalization-schemas/' + config.urlParams.idOrName + '',
3873
3875
  method: 'get',
3874
3876
  body: null,
@@ -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 = "09b8e6a2fea1ae7a150190a36737c1b1";
2
+ export declare const VERSION = "14f440701e808f62b64b186a574eb931";
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: SubjectRepresentation, existing: SubjectRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SubjectRepresentationNormalized;
@@ -19,7 +19,7 @@ export interface SubjectRepresentationNormalized {
19
19
  /** Field Label */
20
20
  fieldLabel?: string | null;
21
21
  /** Object API Name */
22
- objectApiName: string | null;
22
+ objectApiName?: string | null;
23
23
  /** Object Label */
24
24
  objectLabel?: string | null;
25
25
  }
@@ -32,6 +32,6 @@ export interface SubjectRepresentationNormalized {
32
32
  export interface SubjectRepresentation {
33
33
  fieldApiName: string | null;
34
34
  fieldLabel?: string | null;
35
- objectApiName: string | null;
35
+ objectApiName?: string | null;
36
36
  objectLabel?: string | null;
37
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-cdp-personalization-service",
3
- "version": "1.310.0",
3
+ "version": "1.311.1",
4
4
  "description": "wire adapters for personalization service connect api",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/cdp-personalization-service.js",
@@ -41,10 +41,10 @@
41
41
  "test:unit:debug": "node --inspect-brk ../../node_modules/.bin/jest --runInBand"
42
42
  },
43
43
  "dependencies": {
44
- "@salesforce/lds-bindings": "^1.310.0"
44
+ "@salesforce/lds-bindings": "^1.311.1"
45
45
  },
46
46
  "devDependencies": {
47
- "@salesforce/lds-compiler-plugins": "^1.310.0"
47
+ "@salesforce/lds-compiler-plugins": "^1.311.1"
48
48
  },
49
49
  "nx": {
50
50
  "targets": {
package/sfdc/index.js CHANGED
@@ -646,31 +646,33 @@ function validate$7(obj, path = 'SubjectRepresentation') {
646
646
  return new TypeError(message);
647
647
  }
648
648
  }
649
- const obj_objectApiName = obj.objectApiName;
650
- const path_objectApiName = path + '.objectApiName';
651
- let obj_objectApiName_union0 = null;
652
- const obj_objectApiName_union0_error = (() => {
653
- if (typeof obj_objectApiName !== 'string') {
654
- return new TypeError('Expected "string" but received "' + typeof obj_objectApiName + '" (at "' + path_objectApiName + '")');
649
+ if (obj.objectApiName !== undefined) {
650
+ const obj_objectApiName = obj.objectApiName;
651
+ const path_objectApiName = path + '.objectApiName';
652
+ let obj_objectApiName_union0 = null;
653
+ const obj_objectApiName_union0_error = (() => {
654
+ if (typeof obj_objectApiName !== 'string') {
655
+ return new TypeError('Expected "string" but received "' + typeof obj_objectApiName + '" (at "' + path_objectApiName + '")');
656
+ }
657
+ })();
658
+ if (obj_objectApiName_union0_error != null) {
659
+ obj_objectApiName_union0 = obj_objectApiName_union0_error.message;
655
660
  }
656
- })();
657
- if (obj_objectApiName_union0_error != null) {
658
- obj_objectApiName_union0 = obj_objectApiName_union0_error.message;
659
- }
660
- let obj_objectApiName_union1 = null;
661
- const obj_objectApiName_union1_error = (() => {
662
- if (obj_objectApiName !== null) {
663
- return new TypeError('Expected "null" but received "' + typeof obj_objectApiName + '" (at "' + path_objectApiName + '")');
661
+ let obj_objectApiName_union1 = null;
662
+ const obj_objectApiName_union1_error = (() => {
663
+ if (obj_objectApiName !== null) {
664
+ return new TypeError('Expected "null" but received "' + typeof obj_objectApiName + '" (at "' + path_objectApiName + '")');
665
+ }
666
+ })();
667
+ if (obj_objectApiName_union1_error != null) {
668
+ obj_objectApiName_union1 = obj_objectApiName_union1_error.message;
669
+ }
670
+ if (obj_objectApiName_union0 && obj_objectApiName_union1) {
671
+ let message = 'Object doesn\'t match union (at "' + path_objectApiName + '")';
672
+ message += '\n' + obj_objectApiName_union0.split('\n').map((line) => '\t' + line).join('\n');
673
+ message += '\n' + obj_objectApiName_union1.split('\n').map((line) => '\t' + line).join('\n');
674
+ return new TypeError(message);
664
675
  }
665
- })();
666
- if (obj_objectApiName_union1_error != null) {
667
- obj_objectApiName_union1 = obj_objectApiName_union1_error.message;
668
- }
669
- if (obj_objectApiName_union0 && obj_objectApiName_union1) {
670
- let message = 'Object doesn\'t match union (at "' + path_objectApiName + '")';
671
- message += '\n' + obj_objectApiName_union0.split('\n').map((line) => '\t' + line).join('\n');
672
- message += '\n' + obj_objectApiName_union1.split('\n').map((line) => '\t' + line).join('\n');
673
- return new TypeError(message);
674
676
  }
675
677
  if (obj.objectLabel !== undefined) {
676
678
  const obj_objectLabel = obj.objectLabel;
@@ -2514,7 +2516,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
2514
2516
  function createResourceRequest$6(config) {
2515
2517
  const headers = {};
2516
2518
  return {
2517
- baseUri: '/services/data/v62.0',
2519
+ baseUri: '/services/data/v63.0',
2518
2520
  basePath: '/personalization/personalization-points',
2519
2521
  method: 'post',
2520
2522
  body: config.body,
@@ -3233,7 +3235,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
3233
3235
  function createResourceRequest$5(config) {
3234
3236
  const headers = {};
3235
3237
  return {
3236
- baseUri: '/services/data/v62.0',
3238
+ baseUri: '/services/data/v63.0',
3237
3239
  basePath: '/personalization/personalization-schemas',
3238
3240
  method: 'post',
3239
3241
  body: config.body,
@@ -3363,7 +3365,7 @@ function evictSuccess$1(luvio, resourceParams) {
3363
3365
  function createResourceRequest$4(config) {
3364
3366
  const headers = {};
3365
3367
  return {
3366
- baseUri: '/services/data/v62.0',
3368
+ baseUri: '/services/data/v63.0',
3367
3369
  basePath: '/personalization/personalization-points/' + config.urlParams.idOrName + '',
3368
3370
  method: 'delete',
3369
3371
  body: null,
@@ -3447,7 +3449,7 @@ function evictSuccess(luvio, resourceParams) {
3447
3449
  function createResourceRequest$3(config) {
3448
3450
  const headers = {};
3449
3451
  return {
3450
- baseUri: '/services/data/v62.0',
3452
+ baseUri: '/services/data/v63.0',
3451
3453
  basePath: '/personalization/personalization-schemas/' + config.urlParams.idOrName + '',
3452
3454
  method: 'delete',
3453
3455
  body: null,
@@ -3554,7 +3556,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
3554
3556
  function createResourceRequest$2(config) {
3555
3557
  const headers = {};
3556
3558
  return {
3557
- baseUri: '/services/data/v62.0',
3559
+ baseUri: '/services/data/v63.0',
3558
3560
  basePath: '/personalization/personalization-points/' + config.urlParams.idOrName + '',
3559
3561
  method: 'get',
3560
3562
  body: null,
@@ -3694,7 +3696,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
3694
3696
  function createResourceRequest$1(config) {
3695
3697
  const headers = {};
3696
3698
  return {
3697
- baseUri: '/services/data/v62.0',
3699
+ baseUri: '/services/data/v63.0',
3698
3700
  basePath: '/personalization/personalization-schemas/' + config.urlParams.idOrName + '',
3699
3701
  method: 'get',
3700
3702
  body: null,
@@ -3858,7 +3860,7 @@ function ingestSuccess(luvio, resourceParams, response) {
3858
3860
  function createResourceRequest(config) {
3859
3861
  const headers = {};
3860
3862
  return {
3861
- baseUri: '/services/data/v62.0',
3863
+ baseUri: '/services/data/v63.0',
3862
3864
  basePath: '/personalization/personalization-points/' + config.urlParams.idOrName + '',
3863
3865
  method: 'put',
3864
3866
  body: config.body,
@@ -4077,4 +4079,4 @@ withDefaultLuvio((luvio) => {
4077
4079
  });
4078
4080
 
4079
4081
  export { createPersonalizationPoint, createPersonalizationSchema, deletePersonalizationPoint, deletePersonalizationSchema, getPersonalizationPoint, getPersonalizationPoint_imperative, getPersonalizationSchema, getPersonalizationSchemaNotifyChange, getPersonalizationSchema_imperative, updatePersonalizationPoint };
4080
- // version: 1.310.0-51b4ab090c
4082
+ // version: 1.311.1-f99d2bc85e
package/src/raml/api.raml CHANGED
@@ -6,7 +6,7 @@ version: '62.0'
6
6
  mediaType: application/json
7
7
  protocols:
8
8
  - https
9
- baseUri: /services/data/v62.0
9
+ baseUri: /services/data/v63.0
10
10
  securitySchemes:
11
11
  OAuth2:
12
12
  type: OAuth 2.0
@@ -686,6 +686,7 @@ types:
686
686
  description: Field Label
687
687
  type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
688
688
  objectApiName:
689
+ required: false
689
690
  description: Object API Name
690
691
  type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
691
692
  objectLabel: