@salesforce/lds-adapters-cdp-byoc 1.404.0-dev10 → 1.404.0-dev11

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.
@@ -176,7 +176,7 @@ function equals$5(existing, incoming) {
176
176
  return true;
177
177
  }
178
178
 
179
- const VERSION$4 = "3a8185ac626c1463f8bf0540517ef2e2";
179
+ const VERSION$4 = "910d042ceaedd551cb164550c6f557e0";
180
180
  function validate$4(obj, path = 'CustomCodeDeploymentRepresentation') {
181
181
  const v_error = (() => {
182
182
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -255,6 +255,13 @@ function validate$4(obj, path = 'CustomCodeDeploymentRepresentation') {
255
255
  if (typeof obj_id !== 'string') {
256
256
  return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
257
257
  }
258
+ if (obj.isRemote !== undefined) {
259
+ const obj_isRemote = obj.isRemote;
260
+ const path_isRemote = path + '.isRemote';
261
+ if (typeof obj_isRemote !== 'boolean') {
262
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isRemote + '" (at "' + path_isRemote + '")');
263
+ }
264
+ }
258
265
  const obj_label = obj.label;
259
266
  const path_label = path + '.label';
260
267
  if (typeof obj_label !== 'string') {
@@ -285,6 +292,13 @@ function validate$4(obj, path = 'CustomCodeDeploymentRepresentation') {
285
292
  return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
286
293
  }
287
294
  }
295
+ if (obj.ownedBy !== undefined) {
296
+ const obj_ownedBy = obj.ownedBy;
297
+ const path_ownedBy = path + '.ownedBy';
298
+ if (typeof obj_ownedBy !== 'string') {
299
+ return new TypeError('Expected "string" but received "' + typeof obj_ownedBy + '" (at "' + path_ownedBy + '")');
300
+ }
301
+ }
288
302
  const obj_parameters = obj.parameters;
289
303
  const path_parameters = path + '.parameters';
290
304
  if (typeof obj_parameters !== 'object' || ArrayIsArray(obj_parameters) || obj_parameters === null) {
@@ -387,6 +401,11 @@ const select$b = function CustomCodeDeploymentRepresentationSelect() {
387
401
  name: 'id',
388
402
  kind: 'Scalar'
389
403
  },
404
+ {
405
+ name: 'isRemote',
406
+ kind: 'Scalar',
407
+ required: false
408
+ },
390
409
  {
391
410
  name: 'label',
392
411
  kind: 'Scalar'
@@ -409,6 +428,11 @@ const select$b = function CustomCodeDeploymentRepresentationSelect() {
409
428
  kind: 'Scalar',
410
429
  required: false
411
430
  },
431
+ {
432
+ name: 'ownedBy',
433
+ kind: 'Scalar',
434
+ required: false
435
+ },
412
436
  {
413
437
  name: 'parameters',
414
438
  kind: 'Object',
@@ -430,6 +454,19 @@ const select$b = function CustomCodeDeploymentRepresentationSelect() {
430
454
  };
431
455
  };
432
456
  function equals$4(existing, incoming) {
457
+ const existing_isRemote = existing.isRemote;
458
+ const incoming_isRemote = incoming.isRemote;
459
+ // if at least one of these optionals is defined
460
+ if (existing_isRemote !== undefined || incoming_isRemote !== undefined) {
461
+ // if one of these is not defined we know the other is defined and therefore
462
+ // not equal
463
+ if (existing_isRemote === undefined || incoming_isRemote === undefined) {
464
+ return false;
465
+ }
466
+ if (!(existing_isRemote === incoming_isRemote)) {
467
+ return false;
468
+ }
469
+ }
433
470
  const existing_deploymentFailureCode = existing.deploymentFailureCode;
434
471
  const incoming_deploymentFailureCode = incoming.deploymentFailureCode;
435
472
  // if at least one of these optionals is defined
@@ -527,6 +564,19 @@ function equals$4(existing, incoming) {
527
564
  return false;
528
565
  }
529
566
  }
567
+ const existing_ownedBy = existing.ownedBy;
568
+ const incoming_ownedBy = incoming.ownedBy;
569
+ // if at least one of these optionals is defined
570
+ if (existing_ownedBy !== undefined || incoming_ownedBy !== undefined) {
571
+ // if one of these is not defined we know the other is defined and therefore
572
+ // not equal
573
+ if (existing_ownedBy === undefined || incoming_ownedBy === undefined) {
574
+ return false;
575
+ }
576
+ if (!(existing_ownedBy === incoming_ownedBy)) {
577
+ return false;
578
+ }
579
+ }
530
580
  const existing_status = existing.status;
531
581
  const incoming_status = incoming.status;
532
582
  if (!(existing_status === incoming_status)) {
@@ -1318,12 +1368,19 @@ const updateCustomCodeDeploymentAdapterFactory = (luvio) => {
1318
1368
  };
1319
1369
  };
1320
1370
 
1321
- const VERSION$2 = "16ba4e83f3e94d331bcbdba6f3d301b9";
1371
+ const VERSION$2 = "8e9985e5c4e9c49ff9ae48d69222cf4c";
1322
1372
  function validate$2(obj, path = 'CustomCodeExecutionBaseRepresentation') {
1323
1373
  const v_error = (() => {
1324
1374
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1325
1375
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1326
1376
  }
1377
+ if (obj.computeType !== undefined) {
1378
+ const obj_computeType = obj.computeType;
1379
+ const path_computeType = path + '.computeType';
1380
+ if (typeof obj_computeType !== 'string') {
1381
+ return new TypeError('Expected "string" but received "' + typeof obj_computeType + '" (at "' + path_computeType + '")');
1382
+ }
1383
+ }
1327
1384
  const obj_durationInSeconds = obj.durationInSeconds;
1328
1385
  const path_durationInSeconds = path + '.durationInSeconds';
1329
1386
  if (typeof obj_durationInSeconds !== 'number' || (typeof obj_durationInSeconds === 'number' && Math.floor(obj_durationInSeconds) !== obj_durationInSeconds)) {
@@ -1391,6 +1448,11 @@ const select$5 = function CustomCodeExecutionBaseRepresentationSelect() {
1391
1448
  version: VERSION$2,
1392
1449
  private: [],
1393
1450
  selections: [
1451
+ {
1452
+ name: 'computeType',
1453
+ kind: 'Scalar',
1454
+ required: false
1455
+ },
1394
1456
  {
1395
1457
  name: 'durationInSeconds',
1396
1458
  kind: 'Scalar'
@@ -1465,6 +1527,19 @@ function equals$2(existing, incoming) {
1465
1527
  if (!(existing_rowsWritten === incoming_rowsWritten)) {
1466
1528
  return false;
1467
1529
  }
1530
+ const existing_computeType = existing.computeType;
1531
+ const incoming_computeType = incoming.computeType;
1532
+ // if at least one of these optionals is defined
1533
+ if (existing_computeType !== undefined || incoming_computeType !== undefined) {
1534
+ // if one of these is not defined we know the other is defined and therefore
1535
+ // not equal
1536
+ if (existing_computeType === undefined || incoming_computeType === undefined) {
1537
+ return false;
1538
+ }
1539
+ if (!(existing_computeType === incoming_computeType)) {
1540
+ return false;
1541
+ }
1542
+ }
1468
1543
  const existing_endTime = existing.endTime;
1469
1544
  const incoming_endTime = incoming.endTime;
1470
1545
  if (!(existing_endTime === incoming_endTime)) {
@@ -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, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
3
- export declare const VERSION = "3a8185ac626c1463f8bf0540517ef2e2";
3
+ export declare const VERSION = "910d042ceaedd551cb164550c6f557e0";
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 {
@@ -46,6 +46,8 @@ export interface CustomCodeDeploymentRepresentationNormalized {
46
46
  functionInvokeOptions?: Array<string>;
47
47
  /** The 18 character ID of the asset */
48
48
  id: string;
49
+ /** Whether this code package is owned by another organization */
50
+ isRemote?: boolean;
49
51
  /** Label of the asset */
50
52
  label: string;
51
53
  /** Last modified by */
@@ -56,6 +58,8 @@ export interface CustomCodeDeploymentRepresentationNormalized {
56
58
  name: string;
57
59
  /** Namespace of the asset */
58
60
  namespace?: string;
61
+ /** The organization owning this code package */
62
+ ownedBy?: string;
59
63
  /** Parameters of custom code deployment */
60
64
  parameters: {
61
65
  [key: string]: unknown;
@@ -85,11 +89,13 @@ export interface CustomCodeDeploymentRepresentation {
85
89
  fileUploadUrl: string;
86
90
  functionInvokeOptions?: Array<string>;
87
91
  id: string;
92
+ isRemote?: boolean;
88
93
  label: string;
89
94
  lastModifiedBy: CdpUserRepresentation_CdpUserRepresentation;
90
95
  lastModifiedDate: string;
91
96
  name: string;
92
97
  namespace?: string;
98
+ ownedBy?: string;
93
99
  parameters: {
94
100
  [key: string]: unknown;
95
101
  };
@@ -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.404.0-dev10",
3
+ "version": "1.404.0-dev11",
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.404.0-dev10"
43
+ "@salesforce/lds-bindings": "^1.404.0-dev11"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.404.0-dev10"
46
+ "@salesforce/lds-compiler-plugins": "^1.404.0-dev11"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -186,7 +186,7 @@ function equals$5(existing, incoming) {
186
186
  return true;
187
187
  }
188
188
 
189
- const VERSION$4 = "3a8185ac626c1463f8bf0540517ef2e2";
189
+ const VERSION$4 = "910d042ceaedd551cb164550c6f557e0";
190
190
  function validate$4(obj, path = 'CustomCodeDeploymentRepresentation') {
191
191
  const v_error = (() => {
192
192
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -265,6 +265,13 @@ function validate$4(obj, path = 'CustomCodeDeploymentRepresentation') {
265
265
  if (typeof obj_id !== 'string') {
266
266
  return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
267
267
  }
268
+ if (obj.isRemote !== undefined) {
269
+ const obj_isRemote = obj.isRemote;
270
+ const path_isRemote = path + '.isRemote';
271
+ if (typeof obj_isRemote !== 'boolean') {
272
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isRemote + '" (at "' + path_isRemote + '")');
273
+ }
274
+ }
268
275
  const obj_label = obj.label;
269
276
  const path_label = path + '.label';
270
277
  if (typeof obj_label !== 'string') {
@@ -295,6 +302,13 @@ function validate$4(obj, path = 'CustomCodeDeploymentRepresentation') {
295
302
  return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
296
303
  }
297
304
  }
305
+ if (obj.ownedBy !== undefined) {
306
+ const obj_ownedBy = obj.ownedBy;
307
+ const path_ownedBy = path + '.ownedBy';
308
+ if (typeof obj_ownedBy !== 'string') {
309
+ return new TypeError('Expected "string" but received "' + typeof obj_ownedBy + '" (at "' + path_ownedBy + '")');
310
+ }
311
+ }
298
312
  const obj_parameters = obj.parameters;
299
313
  const path_parameters = path + '.parameters';
300
314
  if (typeof obj_parameters !== 'object' || ArrayIsArray(obj_parameters) || obj_parameters === null) {
@@ -397,6 +411,11 @@ const select$b = function CustomCodeDeploymentRepresentationSelect() {
397
411
  name: 'id',
398
412
  kind: 'Scalar'
399
413
  },
414
+ {
415
+ name: 'isRemote',
416
+ kind: 'Scalar',
417
+ required: false
418
+ },
400
419
  {
401
420
  name: 'label',
402
421
  kind: 'Scalar'
@@ -419,6 +438,11 @@ const select$b = function CustomCodeDeploymentRepresentationSelect() {
419
438
  kind: 'Scalar',
420
439
  required: false
421
440
  },
441
+ {
442
+ name: 'ownedBy',
443
+ kind: 'Scalar',
444
+ required: false
445
+ },
422
446
  {
423
447
  name: 'parameters',
424
448
  kind: 'Object',
@@ -440,6 +464,19 @@ const select$b = function CustomCodeDeploymentRepresentationSelect() {
440
464
  };
441
465
  };
442
466
  function equals$4(existing, incoming) {
467
+ const existing_isRemote = existing.isRemote;
468
+ const incoming_isRemote = incoming.isRemote;
469
+ // if at least one of these optionals is defined
470
+ if (existing_isRemote !== undefined || incoming_isRemote !== undefined) {
471
+ // if one of these is not defined we know the other is defined and therefore
472
+ // not equal
473
+ if (existing_isRemote === undefined || incoming_isRemote === undefined) {
474
+ return false;
475
+ }
476
+ if (!(existing_isRemote === incoming_isRemote)) {
477
+ return false;
478
+ }
479
+ }
443
480
  const existing_deploymentFailureCode = existing.deploymentFailureCode;
444
481
  const incoming_deploymentFailureCode = incoming.deploymentFailureCode;
445
482
  // if at least one of these optionals is defined
@@ -537,6 +574,19 @@ function equals$4(existing, incoming) {
537
574
  return false;
538
575
  }
539
576
  }
577
+ const existing_ownedBy = existing.ownedBy;
578
+ const incoming_ownedBy = incoming.ownedBy;
579
+ // if at least one of these optionals is defined
580
+ if (existing_ownedBy !== undefined || incoming_ownedBy !== undefined) {
581
+ // if one of these is not defined we know the other is defined and therefore
582
+ // not equal
583
+ if (existing_ownedBy === undefined || incoming_ownedBy === undefined) {
584
+ return false;
585
+ }
586
+ if (!(existing_ownedBy === incoming_ownedBy)) {
587
+ return false;
588
+ }
589
+ }
540
590
  const existing_status = existing.status;
541
591
  const incoming_status = incoming.status;
542
592
  if (!(existing_status === incoming_status)) {
@@ -1269,12 +1319,19 @@ const getCustomCodeDeploymentsAdapterFactory = (luvio) => function byoc__getCust
1269
1319
  buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
1270
1320
  };
1271
1321
 
1272
- const VERSION$2 = "16ba4e83f3e94d331bcbdba6f3d301b9";
1322
+ const VERSION$2 = "8e9985e5c4e9c49ff9ae48d69222cf4c";
1273
1323
  function validate$2(obj, path = 'CustomCodeExecutionBaseRepresentation') {
1274
1324
  const v_error = (() => {
1275
1325
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1276
1326
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1277
1327
  }
1328
+ if (obj.computeType !== undefined) {
1329
+ const obj_computeType = obj.computeType;
1330
+ const path_computeType = path + '.computeType';
1331
+ if (typeof obj_computeType !== 'string') {
1332
+ return new TypeError('Expected "string" but received "' + typeof obj_computeType + '" (at "' + path_computeType + '")');
1333
+ }
1334
+ }
1278
1335
  const obj_durationInSeconds = obj.durationInSeconds;
1279
1336
  const path_durationInSeconds = path + '.durationInSeconds';
1280
1337
  if (typeof obj_durationInSeconds !== 'number' || (typeof obj_durationInSeconds === 'number' && Math.floor(obj_durationInSeconds) !== obj_durationInSeconds)) {
@@ -1342,6 +1399,11 @@ const select$6 = function CustomCodeExecutionBaseRepresentationSelect() {
1342
1399
  version: VERSION$2,
1343
1400
  private: [],
1344
1401
  selections: [
1402
+ {
1403
+ name: 'computeType',
1404
+ kind: 'Scalar',
1405
+ required: false
1406
+ },
1345
1407
  {
1346
1408
  name: 'durationInSeconds',
1347
1409
  kind: 'Scalar'
@@ -1416,6 +1478,19 @@ function equals$2(existing, incoming) {
1416
1478
  if (!(existing_rowsWritten === incoming_rowsWritten)) {
1417
1479
  return false;
1418
1480
  }
1481
+ const existing_computeType = existing.computeType;
1482
+ const incoming_computeType = incoming.computeType;
1483
+ // if at least one of these optionals is defined
1484
+ if (existing_computeType !== undefined || incoming_computeType !== undefined) {
1485
+ // if one of these is not defined we know the other is defined and therefore
1486
+ // not equal
1487
+ if (existing_computeType === undefined || incoming_computeType === undefined) {
1488
+ return false;
1489
+ }
1490
+ if (!(existing_computeType === incoming_computeType)) {
1491
+ return false;
1492
+ }
1493
+ }
1419
1494
  const existing_endTime = existing.endTime;
1420
1495
  const incoming_endTime = incoming.endTime;
1421
1496
  if (!(existing_endTime === incoming_endTime)) {
@@ -2262,4 +2337,4 @@ withDefaultLuvio((luvio) => {
2262
2337
  });
2263
2338
 
2264
2339
  export { createCustomCodeDeployment, deleteCustomCodeDeployment, getCustomCodeDeployment, getCustomCodeDeploymentNotifyChange, getCustomCodeDeployment_imperative, getCustomCodeDeployments, getCustomCodeDeployments_imperative, getCustomCodeExecution, getCustomCodeExecutionLogs, getCustomCodeExecutionLogs_imperative, getCustomCodeExecution_imperative, getCustomCodeExecutions, getCustomCodeExecutions_imperative, updateCustomCodeDeployment };
2265
- // version: 1.404.0-dev10-1e49deeb66
2340
+ // version: 1.404.0-dev11-efd5bd34f5
package/src/raml/api.raml CHANGED
@@ -196,6 +196,12 @@ types:
196
196
  //:
197
197
  # Hand rolled as we are using the Object type in Java which can refer to any data class
198
198
  type: any
199
+ ownedBy?:
200
+ description: The organization owning this code package
201
+ type: string
202
+ isRemote?:
203
+ description: Whether this code package is owned by another organization
204
+ type: boolean
199
205
  status:
200
206
  description: Sync status of the custom code deployment
201
207
  type: string
@@ -235,6 +241,22 @@ types:
235
241
  description: BYOC Custom Code Executions
236
242
  type: object
237
243
  properties:
244
+ computeType?:
245
+ description: the compute type used for the execution
246
+ type: string
247
+ enum:
248
+ - Cpu_l
249
+ - Cpu_m
250
+ - Cpu_s
251
+ - Cpu_xs
252
+ - High_cpu_l
253
+ - High_cpu_m
254
+ - High_cpu_s
255
+ - High_cpu_xs
256
+ - High_memory_cpu_l
257
+ - High_memory_cpu_m
258
+ - High_memory_cpu_s
259
+ - High_memory_cpu_xs
238
260
  durationInSeconds:
239
261
  description: duration of code execution in seconds
240
262
  type: integer