@salesforce/lds-adapters-cdp-data-clean-room 1.440.0 → 1.442.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.
@@ -3894,7 +3894,7 @@ const rejectDataCleanRoomInvitationAdapterFactory = (luvio) => {
3894
3894
  };
3895
3895
  };
3896
3896
 
3897
- const VERSION$1 = "c88ad589b064cbc75394ed69083e8f5f";
3897
+ const VERSION$1 = "06f49647307cbb06986f97fb3ed203f9";
3898
3898
  function validate$1(obj, path = 'DataCleanRoomQueryJobRepresentation') {
3899
3899
  const v_error = (() => {
3900
3900
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -3988,6 +3988,13 @@ function validate$1(obj, path = 'DataCleanRoomQueryJobRepresentation') {
3988
3988
  return new TypeError('Expected "string" but received "' + typeof obj_outputDMOName + '" (at "' + path_outputDMOName + '")');
3989
3989
  }
3990
3990
  }
3991
+ if (obj.queryName !== undefined) {
3992
+ const obj_queryName = obj.queryName;
3993
+ const path_queryName = path + '.queryName';
3994
+ if (typeof obj_queryName !== 'string') {
3995
+ return new TypeError('Expected "string" but received "' + typeof obj_queryName + '" (at "' + path_queryName + '")');
3996
+ }
3997
+ }
3991
3998
  if (obj.queryParam !== undefined) {
3992
3999
  const obj_queryParam = obj.queryParam;
3993
4000
  const path_queryParam = path + '.queryParam';
@@ -4028,6 +4035,13 @@ function validate$1(obj, path = 'DataCleanRoomQueryJobRepresentation') {
4028
4035
  if (typeof obj_status !== 'string') {
4029
4036
  return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
4030
4037
  }
4038
+ if (obj.templateVersionId !== undefined) {
4039
+ const obj_templateVersionId = obj.templateVersionId;
4040
+ const path_templateVersionId = path + '.templateVersionId';
4041
+ if (typeof obj_templateVersionId !== 'string') {
4042
+ return new TypeError('Expected "string" but received "' + typeof obj_templateVersionId + '" (at "' + path_templateVersionId + '")');
4043
+ }
4044
+ }
4031
4045
  if (obj.triggeredDate !== undefined) {
4032
4046
  const obj_triggeredDate = obj.triggeredDate;
4033
4047
  const path_triggeredDate = path + '.triggeredDate';
@@ -4128,6 +4142,7 @@ const adapterName$2 = 'executeDataCleanRoomQuery';
4128
4142
  const executeDataCleanRoomQuery_ConfigPropertyMetadata = [
4129
4143
  generateParamConfigMetadata('collaborationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
4130
4144
  generateParamConfigMetadata('queryExecutionName', true, 2 /* Body */, 0 /* String */),
4145
+ generateParamConfigMetadata('templateVersionId', false, 2 /* Body */, 0 /* String */),
4131
4146
  generateParamConfigMetadata('segmentIds', false, 2 /* Body */, 0 /* String */, true),
4132
4147
  generateParamConfigMetadata('queryParameters', false, 2 /* Body */, 4 /* Unsupported */),
4133
4148
  ];
@@ -4182,7 +4197,7 @@ const executeDataCleanRoomQueryAdapterFactory = (luvio) => {
4182
4197
  };
4183
4198
  };
4184
4199
 
4185
- const VERSION = "7aaafdce5d4ed7457442ab5701329217";
4200
+ const VERSION = "406c8b91188a78aeb561c9615b2fb834";
4186
4201
  function validate(obj, path = 'DataCleanRoomQueryJobHistoryCollectionRepresentation') {
4187
4202
  const v_error = (() => {
4188
4203
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -4233,6 +4248,13 @@ function validate(obj, path = 'DataCleanRoomQueryJobHistoryCollectionRepresentat
4233
4248
  if (typeof obj_offset !== 'number' || (typeof obj_offset === 'number' && Math.floor(obj_offset) !== obj_offset)) {
4234
4249
  return new TypeError('Expected "integer" but received "' + typeof obj_offset + '" (at "' + path_offset + '")');
4235
4250
  }
4251
+ if (obj.queryConcurrencyLimit !== undefined) {
4252
+ const obj_queryConcurrencyLimit = obj.queryConcurrencyLimit;
4253
+ const path_queryConcurrencyLimit = path + '.queryConcurrencyLimit';
4254
+ if (typeof obj_queryConcurrencyLimit !== 'number' || (typeof obj_queryConcurrencyLimit === 'number' && Math.floor(obj_queryConcurrencyLimit) !== obj_queryConcurrencyLimit)) {
4255
+ return new TypeError('Expected "integer" but received "' + typeof obj_queryConcurrencyLimit + '" (at "' + path_queryConcurrencyLimit + '")');
4256
+ }
4257
+ }
4236
4258
  const obj_queryJobs = obj.queryJobs;
4237
4259
  const path_queryJobs = path + '.queryJobs';
4238
4260
  if (!ArrayIsArray(obj_queryJobs)) {
@@ -8,6 +8,7 @@ export declare const executeDataCleanRoomQuery_ConfigPropertyNames: adapter$45$u
8
8
  export interface ExecuteDataCleanRoomQueryConfig {
9
9
  collaborationIdOrApiName: string;
10
10
  queryExecutionName: string;
11
+ templateVersionId?: string;
11
12
  segmentIds?: Array<string>;
12
13
  queryParameters?: unknown;
13
14
  }
@@ -6,6 +6,7 @@ export interface ResourceRequestConfig {
6
6
  };
7
7
  body: {
8
8
  queryExecutionName: string;
9
+ templateVersionId?: string;
9
10
  segmentIds?: Array<string>;
10
11
  queryParameters?: unknown;
11
12
  };
@@ -1,6 +1,6 @@
1
1
  import { DataCleanRoomQueryJobRepresentation as DataCleanRoomQueryJobRepresentation_DataCleanRoomQueryJobRepresentation } from './DataCleanRoomQueryJobRepresentation';
2
2
  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, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
- export declare const VERSION = "7aaafdce5d4ed7457442ab5701329217";
3
+ export declare const VERSION = "406c8b91188a78aeb561c9615b2fb834";
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: DataCleanRoomQueryJobHistoryCollectionRepresentation, existing: DataCleanRoomQueryJobHistoryCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DataCleanRoomQueryJobHistoryCollectionRepresentationNormalized;
@@ -23,6 +23,8 @@ export interface DataCleanRoomQueryJobHistoryCollectionRepresentationNormalized
23
23
  nextPageUrl?: string | null;
24
24
  /** Start offset of the next batch */
25
25
  offset: number;
26
+ /** Maximum number of concurrent query jobs allowed */
27
+ queryConcurrencyLimit?: number;
26
28
  /** List of query jobs */
27
29
  queryJobs: Array<$64$luvio_engine_StoreLink>;
28
30
  /** Total size of collection */
@@ -39,6 +41,7 @@ export interface DataCleanRoomQueryJobHistoryCollectionRepresentation {
39
41
  limit: number;
40
42
  nextPageUrl?: string | null;
41
43
  offset: number;
44
+ queryConcurrencyLimit?: number;
42
45
  queryJobs: Array<DataCleanRoomQueryJobRepresentation_DataCleanRoomQueryJobRepresentation>;
43
46
  totalSize?: number;
44
47
  }
@@ -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 = "dafde3e51bb80800fa0d8c0a2077c845";
2
+ export declare const VERSION = "4b0fb889e4ea8c5bf365715ec28dea4f";
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: DataCleanRoomQueryJobInputRepresentation, existing: DataCleanRoomQueryJobInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DataCleanRoomQueryJobInputRepresentationNormalized;
@@ -20,6 +20,8 @@ export interface DataCleanRoomQueryJobInputRepresentationNormalized {
20
20
  queryParameters?: unknown;
21
21
  /** Segment IDs on which the query would be executed */
22
22
  segmentIds?: Array<string>;
23
+ /** Id of the template version to run the query with */
24
+ templateVersionId?: string;
23
25
  }
24
26
  /**
25
27
  * Represents Cdp Data clean room Query Job input
@@ -31,4 +33,5 @@ export interface DataCleanRoomQueryJobInputRepresentation {
31
33
  queryExecutionName: string;
32
34
  queryParameters?: unknown;
33
35
  segmentIds?: Array<string>;
36
+ templateVersionId?: string;
34
37
  }
@@ -1,6 +1,6 @@
1
1
  import { CdpUserRepresentation as CdpUserRepresentation_CdpUserRepresentation } from './CdpUserRepresentation';
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
- export declare const VERSION = "c88ad589b064cbc75394ed69083e8f5f";
3
+ export declare const VERSION = "06f49647307cbb06986f97fb3ed203f9";
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 {
@@ -48,7 +48,9 @@ export interface DataCleanRoomQueryJobRepresentationNormalized {
48
48
  name?: string;
49
49
  /** Result DMO developer name in case of Activation usecase; result report name in case of other usecases. */
50
50
  outputDMOName?: string;
51
- /** Date time at which query was triggered */
51
+ /** Name of the underlying query template version */
52
+ queryName?: string;
53
+ /** Map of query parameters along-with their values, required for the query to be executed */
52
54
  queryParam?: unknown;
53
55
  /** Id of the report associated with output DMO */
54
56
  reportId?: string;
@@ -58,6 +60,8 @@ export interface DataCleanRoomQueryJobRepresentationNormalized {
58
60
  segmentNames?: Array<string>;
59
61
  /** Query Status of Query Job */
60
62
  status: string;
63
+ /** Reference key to DataCleanRoomTemplateVersion entity */
64
+ templateVersionId?: string;
61
65
  /** Date time at which query was triggered */
62
66
  triggeredDate?: string;
63
67
  }
@@ -80,10 +84,12 @@ export interface DataCleanRoomQueryJobRepresentation {
80
84
  lastModifiedDate?: string;
81
85
  name?: string;
82
86
  outputDMOName?: string;
87
+ queryName?: string;
83
88
  queryParam?: unknown;
84
89
  reportId?: string;
85
90
  reportName?: string;
86
91
  segmentNames?: Array<string>;
87
92
  status: string;
93
+ templateVersionId?: string;
88
94
  triggeredDate?: string;
89
95
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-cdp-data-clean-room",
3
- "version": "1.440.0",
3
+ "version": "1.442.0",
4
4
  "description": "API's related to Data Clean Room Feature",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/cdp-data-clean-room.js",
@@ -41,10 +41,10 @@
41
41
  "test:unit": "jest"
42
42
  },
43
43
  "dependencies": {
44
- "@salesforce/lds-bindings": "^1.440.0"
44
+ "@salesforce/lds-bindings": "^1.442.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@salesforce/lds-compiler-plugins": "^1.440.0"
47
+ "@salesforce/lds-compiler-plugins": "^1.442.0"
48
48
  },
49
49
  "nx": {
50
50
  "targets": {
package/sfdc/index.js CHANGED
@@ -2581,7 +2581,7 @@ const createProviderAdapterFactory = (luvio) => {
2581
2581
  };
2582
2582
  };
2583
2583
 
2584
- const VERSION$5 = "c88ad589b064cbc75394ed69083e8f5f";
2584
+ const VERSION$5 = "06f49647307cbb06986f97fb3ed203f9";
2585
2585
  function validate$5(obj, path = 'DataCleanRoomQueryJobRepresentation') {
2586
2586
  const v_error = (() => {
2587
2587
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2675,6 +2675,13 @@ function validate$5(obj, path = 'DataCleanRoomQueryJobRepresentation') {
2675
2675
  return new TypeError('Expected "string" but received "' + typeof obj_outputDMOName + '" (at "' + path_outputDMOName + '")');
2676
2676
  }
2677
2677
  }
2678
+ if (obj.queryName !== undefined) {
2679
+ const obj_queryName = obj.queryName;
2680
+ const path_queryName = path + '.queryName';
2681
+ if (typeof obj_queryName !== 'string') {
2682
+ return new TypeError('Expected "string" but received "' + typeof obj_queryName + '" (at "' + path_queryName + '")');
2683
+ }
2684
+ }
2678
2685
  if (obj.queryParam !== undefined) {
2679
2686
  const obj_queryParam = obj.queryParam;
2680
2687
  const path_queryParam = path + '.queryParam';
@@ -2715,6 +2722,13 @@ function validate$5(obj, path = 'DataCleanRoomQueryJobRepresentation') {
2715
2722
  if (typeof obj_status !== 'string') {
2716
2723
  return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
2717
2724
  }
2725
+ if (obj.templateVersionId !== undefined) {
2726
+ const obj_templateVersionId = obj.templateVersionId;
2727
+ const path_templateVersionId = path + '.templateVersionId';
2728
+ if (typeof obj_templateVersionId !== 'string') {
2729
+ return new TypeError('Expected "string" but received "' + typeof obj_templateVersionId + '" (at "' + path_templateVersionId + '")');
2730
+ }
2731
+ }
2718
2732
  if (obj.triggeredDate !== undefined) {
2719
2733
  const obj_triggeredDate = obj.triggeredDate;
2720
2734
  const path_triggeredDate = path + '.triggeredDate';
@@ -2815,6 +2829,7 @@ const adapterName$7 = 'executeDataCleanRoomQuery';
2815
2829
  const executeDataCleanRoomQuery_ConfigPropertyMetadata = [
2816
2830
  generateParamConfigMetadata('collaborationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
2817
2831
  generateParamConfigMetadata('queryExecutionName', true, 2 /* Body */, 0 /* String */),
2832
+ generateParamConfigMetadata('templateVersionId', false, 2 /* Body */, 0 /* String */),
2818
2833
  generateParamConfigMetadata('segmentIds', false, 2 /* Body */, 0 /* String */, true),
2819
2834
  generateParamConfigMetadata('queryParameters', false, 2 /* Body */, 4 /* Unsupported */),
2820
2835
  ];
@@ -2869,7 +2884,7 @@ const executeDataCleanRoomQueryAdapterFactory = (luvio) => {
2869
2884
  };
2870
2885
  };
2871
2886
 
2872
- const VERSION$4 = "7aaafdce5d4ed7457442ab5701329217";
2887
+ const VERSION$4 = "406c8b91188a78aeb561c9615b2fb834";
2873
2888
  function validate$4(obj, path = 'DataCleanRoomQueryJobHistoryCollectionRepresentation') {
2874
2889
  const v_error = (() => {
2875
2890
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2920,6 +2935,13 @@ function validate$4(obj, path = 'DataCleanRoomQueryJobHistoryCollectionRepresent
2920
2935
  if (typeof obj_offset !== 'number' || (typeof obj_offset === 'number' && Math.floor(obj_offset) !== obj_offset)) {
2921
2936
  return new TypeError('Expected "integer" but received "' + typeof obj_offset + '" (at "' + path_offset + '")');
2922
2937
  }
2938
+ if (obj.queryConcurrencyLimit !== undefined) {
2939
+ const obj_queryConcurrencyLimit = obj.queryConcurrencyLimit;
2940
+ const path_queryConcurrencyLimit = path + '.queryConcurrencyLimit';
2941
+ if (typeof obj_queryConcurrencyLimit !== 'number' || (typeof obj_queryConcurrencyLimit === 'number' && Math.floor(obj_queryConcurrencyLimit) !== obj_queryConcurrencyLimit)) {
2942
+ return new TypeError('Expected "integer" but received "' + typeof obj_queryConcurrencyLimit + '" (at "' + path_queryConcurrencyLimit + '")');
2943
+ }
2944
+ }
2923
2945
  const obj_queryJobs = obj.queryJobs;
2924
2946
  const path_queryJobs = path + '.queryJobs';
2925
2947
  if (!ArrayIsArray(obj_queryJobs)) {
@@ -4683,4 +4705,4 @@ withDefaultLuvio((luvio) => {
4683
4705
  });
4684
4706
 
4685
4707
  export { acceptDataCleanRoomInvitation, createDataCleanRoomCollaboration, createDataCleanRoomSpecification, createProvider, executeDataCleanRoomQuery, getAllDataCleanRoomQueryPaginated, getAllDataCleanRoomQueryPaginated_imperative, getAllDataCleanRoomsPaginated, getAllDataCleanRoomsPaginated_imperative, getDataCleanRoomProvidersPaginated, getDataCleanRoomProvidersPaginated_imperative, getDataCleanRoomSpecificationsPaginated, getDataCleanRoomSpecificationsPaginated_imperative, getDataCleanRoomTemplatePaginated, getDataCleanRoomTemplatePaginated_imperative, getDataCleanRoomTemplatesByProviderIdPaginated, getDataCleanRoomTemplatesByProviderIdPaginated_imperative, rejectDataCleanRoomInvitation };
4686
- // version: 1.440.0-1ddfff6500
4708
+ // version: 1.442.0-d73ebfc396
package/src/raml/api.raml CHANGED
@@ -980,6 +980,10 @@ types:
980
980
  queryExecutionName:
981
981
  description: Name of the Query that would be executed
982
982
  type: string
983
+ templateVersionId:
984
+ description: Id of the template version to run the query with
985
+ type: string
986
+ required: false
983
987
  segmentIds:
984
988
  description: Segment IDs on which the query would be executed
985
989
  required: false
@@ -1043,9 +1047,17 @@ types:
1043
1047
  items:
1044
1048
  type: string
1045
1049
  queryParam:
1046
- description: Date time at which query was triggered
1050
+ description: Map of query parameters along-with their values, required for the query to be executed
1047
1051
  type: any
1048
1052
  required: false
1053
+ templateVersionId:
1054
+ description: Reference key to DataCleanRoomTemplateVersion entity
1055
+ type: string
1056
+ required: false
1057
+ queryName:
1058
+ description: Name of the underlying query template version
1059
+ type: string
1060
+ required: false
1049
1061
  outputDMOName:
1050
1062
  description: Result DMO developer name in case of Activation usecase; result report name in case of other usecases.
1051
1063
  type: string
@@ -1088,6 +1100,10 @@ types:
1088
1100
  type: array
1089
1101
  items:
1090
1102
  type: DataCleanRoomQueryJobRepresentation
1103
+ queryConcurrencyLimit:
1104
+ description: Maximum number of concurrent query jobs allowed
1105
+ type: integer
1106
+ required: false
1091
1107
 
1092
1108
  CustomUseCaseTemplateInputRepresentation:
1093
1109
  description: Represents data clean room custom template