@salesforce/lds-adapters-cdp-byoc 1.418.0 → 1.419.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.
@@ -1318,12 +1318,19 @@ const updateCustomCodeDeploymentAdapterFactory = (luvio) => {
1318
1318
  };
1319
1319
  };
1320
1320
 
1321
- const VERSION$2 = "16ba4e83f3e94d331bcbdba6f3d301b9";
1321
+ const VERSION$2 = "8e9985e5c4e9c49ff9ae48d69222cf4c";
1322
1322
  function validate$2(obj, path = 'CustomCodeExecutionBaseRepresentation') {
1323
1323
  const v_error = (() => {
1324
1324
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1325
1325
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1326
1326
  }
1327
+ if (obj.computeType !== undefined) {
1328
+ const obj_computeType = obj.computeType;
1329
+ const path_computeType = path + '.computeType';
1330
+ if (typeof obj_computeType !== 'string') {
1331
+ return new TypeError('Expected "string" but received "' + typeof obj_computeType + '" (at "' + path_computeType + '")');
1332
+ }
1333
+ }
1327
1334
  const obj_durationInSeconds = obj.durationInSeconds;
1328
1335
  const path_durationInSeconds = path + '.durationInSeconds';
1329
1336
  if (typeof obj_durationInSeconds !== 'number' || (typeof obj_durationInSeconds === 'number' && Math.floor(obj_durationInSeconds) !== obj_durationInSeconds)) {
@@ -1391,6 +1398,11 @@ const select$5 = function CustomCodeExecutionBaseRepresentationSelect() {
1391
1398
  version: VERSION$2,
1392
1399
  private: [],
1393
1400
  selections: [
1401
+ {
1402
+ name: 'computeType',
1403
+ kind: 'Scalar',
1404
+ required: false
1405
+ },
1394
1406
  {
1395
1407
  name: 'durationInSeconds',
1396
1408
  kind: 'Scalar'
@@ -1465,6 +1477,19 @@ function equals$2(existing, incoming) {
1465
1477
  if (!(existing_rowsWritten === incoming_rowsWritten)) {
1466
1478
  return false;
1467
1479
  }
1480
+ const existing_computeType = existing.computeType;
1481
+ const incoming_computeType = incoming.computeType;
1482
+ // if at least one of these optionals is defined
1483
+ if (existing_computeType !== undefined || incoming_computeType !== undefined) {
1484
+ // if one of these is not defined we know the other is defined and therefore
1485
+ // not equal
1486
+ if (existing_computeType === undefined || incoming_computeType === undefined) {
1487
+ return false;
1488
+ }
1489
+ if (!(existing_computeType === incoming_computeType)) {
1490
+ return false;
1491
+ }
1492
+ }
1468
1493
  const existing_endTime = existing.endTime;
1469
1494
  const incoming_endTime = incoming.endTime;
1470
1495
  if (!(existing_endTime === incoming_endTime)) {
@@ -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 = "16ba4e83f3e94d331bcbdba6f3d301b9";
2
+ export declare const VERSION = "8e9985e5c4e9c49ff9ae48d69222cf4c";
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: CustomCodeExecutionBaseRepresentation, existing: CustomCodeExecutionBaseRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CustomCodeExecutionBaseRepresentationNormalized;
@@ -14,6 +14,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
14
14
  * (none)
15
15
  */
16
16
  export interface CustomCodeExecutionBaseRepresentationNormalized {
17
+ /** the compute type used for the execution */
18
+ computeType?: string;
17
19
  /** duration of code execution in seconds */
18
20
  durationInSeconds: number;
19
21
  /** end time of code execution */
@@ -42,6 +44,7 @@ export interface CustomCodeExecutionBaseRepresentationNormalized {
42
44
  * (none)
43
45
  */
44
46
  export interface CustomCodeExecutionBaseRepresentation {
47
+ computeType?: string;
45
48
  durationInSeconds: number;
46
49
  endTime: string;
47
50
  errorCode?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-cdp-byoc",
3
- "version": "1.418.0",
3
+ "version": "1.419.0",
4
4
  "description": "Used to connect to the CDP BYOC service in core and off-core",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/cdp-byoc.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.418.0"
43
+ "@salesforce/lds-bindings": "^1.419.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.418.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.419.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -1269,12 +1269,19 @@ const getCustomCodeDeploymentsAdapterFactory = (luvio) => function byoc__getCust
1269
1269
  buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
1270
1270
  };
1271
1271
 
1272
- const VERSION$2 = "16ba4e83f3e94d331bcbdba6f3d301b9";
1272
+ const VERSION$2 = "8e9985e5c4e9c49ff9ae48d69222cf4c";
1273
1273
  function validate$2(obj, path = 'CustomCodeExecutionBaseRepresentation') {
1274
1274
  const v_error = (() => {
1275
1275
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1276
1276
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1277
1277
  }
1278
+ if (obj.computeType !== undefined) {
1279
+ const obj_computeType = obj.computeType;
1280
+ const path_computeType = path + '.computeType';
1281
+ if (typeof obj_computeType !== 'string') {
1282
+ return new TypeError('Expected "string" but received "' + typeof obj_computeType + '" (at "' + path_computeType + '")');
1283
+ }
1284
+ }
1278
1285
  const obj_durationInSeconds = obj.durationInSeconds;
1279
1286
  const path_durationInSeconds = path + '.durationInSeconds';
1280
1287
  if (typeof obj_durationInSeconds !== 'number' || (typeof obj_durationInSeconds === 'number' && Math.floor(obj_durationInSeconds) !== obj_durationInSeconds)) {
@@ -1342,6 +1349,11 @@ const select$6 = function CustomCodeExecutionBaseRepresentationSelect() {
1342
1349
  version: VERSION$2,
1343
1350
  private: [],
1344
1351
  selections: [
1352
+ {
1353
+ name: 'computeType',
1354
+ kind: 'Scalar',
1355
+ required: false
1356
+ },
1345
1357
  {
1346
1358
  name: 'durationInSeconds',
1347
1359
  kind: 'Scalar'
@@ -1416,6 +1428,19 @@ function equals$2(existing, incoming) {
1416
1428
  if (!(existing_rowsWritten === incoming_rowsWritten)) {
1417
1429
  return false;
1418
1430
  }
1431
+ const existing_computeType = existing.computeType;
1432
+ const incoming_computeType = incoming.computeType;
1433
+ // if at least one of these optionals is defined
1434
+ if (existing_computeType !== undefined || incoming_computeType !== undefined) {
1435
+ // if one of these is not defined we know the other is defined and therefore
1436
+ // not equal
1437
+ if (existing_computeType === undefined || incoming_computeType === undefined) {
1438
+ return false;
1439
+ }
1440
+ if (!(existing_computeType === incoming_computeType)) {
1441
+ return false;
1442
+ }
1443
+ }
1419
1444
  const existing_endTime = existing.endTime;
1420
1445
  const incoming_endTime = incoming.endTime;
1421
1446
  if (!(existing_endTime === incoming_endTime)) {
@@ -2262,4 +2287,4 @@ withDefaultLuvio((luvio) => {
2262
2287
  });
2263
2288
 
2264
2289
  export { createCustomCodeDeployment, deleteCustomCodeDeployment, getCustomCodeDeployment, getCustomCodeDeploymentNotifyChange, getCustomCodeDeployment_imperative, getCustomCodeDeployments, getCustomCodeDeployments_imperative, getCustomCodeExecution, getCustomCodeExecutionLogs, getCustomCodeExecutionLogs_imperative, getCustomCodeExecution_imperative, getCustomCodeExecutions, getCustomCodeExecutions_imperative, updateCustomCodeDeployment };
2265
- // version: 1.418.0-68f5961c99
2290
+ // version: 1.419.0-8232dcd0ab
package/src/raml/api.raml CHANGED
@@ -235,6 +235,22 @@ types:
235
235
  description: BYOC Custom Code Executions
236
236
  type: object
237
237
  properties:
238
+ computeType?:
239
+ description: the compute type used for the execution
240
+ type: string
241
+ enum:
242
+ - Cpu_l
243
+ - Cpu_m
244
+ - Cpu_s
245
+ - Cpu_xs
246
+ - High_cpu_l
247
+ - High_cpu_m
248
+ - High_cpu_s
249
+ - High_cpu_xs
250
+ - High_memory_cpu_l
251
+ - High_memory_cpu_m
252
+ - High_memory_cpu_s
253
+ - High_memory_cpu_xs
238
254
  durationInSeconds:
239
255
  description: duration of code execution in seconds
240
256
  type: integer