@salesforce/lds-adapters-cdp-byoc 1.404.0-dev2 → 1.404.0-dev20
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.
- package/dist/es/es2018/cdp-byoc.js +95 -9
- package/dist/es/es2018/types/src/generated/types/CustomCodeDeploymentRepresentation.d.ts +9 -3
- package/dist/es/es2018/types/src/generated/types/CustomCodeExecutionBaseRepresentation.d.ts +4 -1
- package/package.json +3 -3
- package/sfdc/index.js +96 -10
- package/src/raml/api.raml +23 -1
|
@@ -176,7 +176,7 @@ function equals$5(existing, incoming) {
|
|
|
176
176
|
return true;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
const VERSION$4 = "
|
|
179
|
+
const VERSION$4 = "e25554500069930311e4b242cf15006b";
|
|
180
180
|
function validate$4(obj, path = 'CustomCodeDeploymentRepresentation') {
|
|
181
181
|
const v_error = (() => {
|
|
182
182
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -231,10 +231,12 @@ function validate$4(obj, path = 'CustomCodeDeploymentRepresentation') {
|
|
|
231
231
|
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
234
|
+
if (obj.fileUploadUrl !== undefined) {
|
|
235
|
+
const obj_fileUploadUrl = obj.fileUploadUrl;
|
|
236
|
+
const path_fileUploadUrl = path + '.fileUploadUrl';
|
|
237
|
+
if (typeof obj_fileUploadUrl !== 'string') {
|
|
238
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fileUploadUrl + '" (at "' + path_fileUploadUrl + '")');
|
|
239
|
+
}
|
|
238
240
|
}
|
|
239
241
|
if (obj.functionInvokeOptions !== undefined) {
|
|
240
242
|
const obj_functionInvokeOptions = obj.functionInvokeOptions;
|
|
@@ -255,6 +257,13 @@ function validate$4(obj, path = 'CustomCodeDeploymentRepresentation') {
|
|
|
255
257
|
if (typeof obj_id !== 'string') {
|
|
256
258
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
257
259
|
}
|
|
260
|
+
if (obj.isRemote !== undefined) {
|
|
261
|
+
const obj_isRemote = obj.isRemote;
|
|
262
|
+
const path_isRemote = path + '.isRemote';
|
|
263
|
+
if (typeof obj_isRemote !== 'boolean') {
|
|
264
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isRemote + '" (at "' + path_isRemote + '")');
|
|
265
|
+
}
|
|
266
|
+
}
|
|
258
267
|
const obj_label = obj.label;
|
|
259
268
|
const path_label = path + '.label';
|
|
260
269
|
if (typeof obj_label !== 'string') {
|
|
@@ -285,6 +294,13 @@ function validate$4(obj, path = 'CustomCodeDeploymentRepresentation') {
|
|
|
285
294
|
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
286
295
|
}
|
|
287
296
|
}
|
|
297
|
+
if (obj.ownedBy !== undefined) {
|
|
298
|
+
const obj_ownedBy = obj.ownedBy;
|
|
299
|
+
const path_ownedBy = path + '.ownedBy';
|
|
300
|
+
if (typeof obj_ownedBy !== 'string') {
|
|
301
|
+
return new TypeError('Expected "string" but received "' + typeof obj_ownedBy + '" (at "' + path_ownedBy + '")');
|
|
302
|
+
}
|
|
303
|
+
}
|
|
288
304
|
const obj_parameters = obj.parameters;
|
|
289
305
|
const path_parameters = path + '.parameters';
|
|
290
306
|
if (typeof obj_parameters !== 'object' || ArrayIsArray(obj_parameters) || obj_parameters === null) {
|
|
@@ -375,7 +391,8 @@ const select$b = function CustomCodeDeploymentRepresentationSelect() {
|
|
|
375
391
|
},
|
|
376
392
|
{
|
|
377
393
|
name: 'fileUploadUrl',
|
|
378
|
-
kind: 'Scalar'
|
|
394
|
+
kind: 'Scalar',
|
|
395
|
+
required: false
|
|
379
396
|
},
|
|
380
397
|
{
|
|
381
398
|
name: 'functionInvokeOptions',
|
|
@@ -387,6 +404,11 @@ const select$b = function CustomCodeDeploymentRepresentationSelect() {
|
|
|
387
404
|
name: 'id',
|
|
388
405
|
kind: 'Scalar'
|
|
389
406
|
},
|
|
407
|
+
{
|
|
408
|
+
name: 'isRemote',
|
|
409
|
+
kind: 'Scalar',
|
|
410
|
+
required: false
|
|
411
|
+
},
|
|
390
412
|
{
|
|
391
413
|
name: 'label',
|
|
392
414
|
kind: 'Scalar'
|
|
@@ -409,6 +431,11 @@ const select$b = function CustomCodeDeploymentRepresentationSelect() {
|
|
|
409
431
|
kind: 'Scalar',
|
|
410
432
|
required: false
|
|
411
433
|
},
|
|
434
|
+
{
|
|
435
|
+
name: 'ownedBy',
|
|
436
|
+
kind: 'Scalar',
|
|
437
|
+
required: false
|
|
438
|
+
},
|
|
412
439
|
{
|
|
413
440
|
name: 'parameters',
|
|
414
441
|
kind: 'Object',
|
|
@@ -430,6 +457,19 @@ const select$b = function CustomCodeDeploymentRepresentationSelect() {
|
|
|
430
457
|
};
|
|
431
458
|
};
|
|
432
459
|
function equals$4(existing, incoming) {
|
|
460
|
+
const existing_isRemote = existing.isRemote;
|
|
461
|
+
const incoming_isRemote = incoming.isRemote;
|
|
462
|
+
// if at least one of these optionals is defined
|
|
463
|
+
if (existing_isRemote !== undefined || incoming_isRemote !== undefined) {
|
|
464
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
465
|
+
// not equal
|
|
466
|
+
if (existing_isRemote === undefined || incoming_isRemote === undefined) {
|
|
467
|
+
return false;
|
|
468
|
+
}
|
|
469
|
+
if (!(existing_isRemote === incoming_isRemote)) {
|
|
470
|
+
return false;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
433
473
|
const existing_deploymentFailureCode = existing.deploymentFailureCode;
|
|
434
474
|
const incoming_deploymentFailureCode = incoming.deploymentFailureCode;
|
|
435
475
|
// if at least one of these optionals is defined
|
|
@@ -491,8 +531,16 @@ function equals$4(existing, incoming) {
|
|
|
491
531
|
}
|
|
492
532
|
const existing_fileUploadUrl = existing.fileUploadUrl;
|
|
493
533
|
const incoming_fileUploadUrl = incoming.fileUploadUrl;
|
|
494
|
-
if
|
|
495
|
-
|
|
534
|
+
// if at least one of these optionals is defined
|
|
535
|
+
if (existing_fileUploadUrl !== undefined || incoming_fileUploadUrl !== undefined) {
|
|
536
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
537
|
+
// not equal
|
|
538
|
+
if (existing_fileUploadUrl === undefined || incoming_fileUploadUrl === undefined) {
|
|
539
|
+
return false;
|
|
540
|
+
}
|
|
541
|
+
if (!(existing_fileUploadUrl === incoming_fileUploadUrl)) {
|
|
542
|
+
return false;
|
|
543
|
+
}
|
|
496
544
|
}
|
|
497
545
|
const existing_id = existing.id;
|
|
498
546
|
const incoming_id = incoming.id;
|
|
@@ -527,6 +575,19 @@ function equals$4(existing, incoming) {
|
|
|
527
575
|
return false;
|
|
528
576
|
}
|
|
529
577
|
}
|
|
578
|
+
const existing_ownedBy = existing.ownedBy;
|
|
579
|
+
const incoming_ownedBy = incoming.ownedBy;
|
|
580
|
+
// if at least one of these optionals is defined
|
|
581
|
+
if (existing_ownedBy !== undefined || incoming_ownedBy !== undefined) {
|
|
582
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
583
|
+
// not equal
|
|
584
|
+
if (existing_ownedBy === undefined || incoming_ownedBy === undefined) {
|
|
585
|
+
return false;
|
|
586
|
+
}
|
|
587
|
+
if (!(existing_ownedBy === incoming_ownedBy)) {
|
|
588
|
+
return false;
|
|
589
|
+
}
|
|
590
|
+
}
|
|
530
591
|
const existing_status = existing.status;
|
|
531
592
|
const incoming_status = incoming.status;
|
|
532
593
|
if (!(existing_status === incoming_status)) {
|
|
@@ -1318,12 +1379,19 @@ const updateCustomCodeDeploymentAdapterFactory = (luvio) => {
|
|
|
1318
1379
|
};
|
|
1319
1380
|
};
|
|
1320
1381
|
|
|
1321
|
-
const VERSION$2 = "
|
|
1382
|
+
const VERSION$2 = "8e9985e5c4e9c49ff9ae48d69222cf4c";
|
|
1322
1383
|
function validate$2(obj, path = 'CustomCodeExecutionBaseRepresentation') {
|
|
1323
1384
|
const v_error = (() => {
|
|
1324
1385
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1325
1386
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1326
1387
|
}
|
|
1388
|
+
if (obj.computeType !== undefined) {
|
|
1389
|
+
const obj_computeType = obj.computeType;
|
|
1390
|
+
const path_computeType = path + '.computeType';
|
|
1391
|
+
if (typeof obj_computeType !== 'string') {
|
|
1392
|
+
return new TypeError('Expected "string" but received "' + typeof obj_computeType + '" (at "' + path_computeType + '")');
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1327
1395
|
const obj_durationInSeconds = obj.durationInSeconds;
|
|
1328
1396
|
const path_durationInSeconds = path + '.durationInSeconds';
|
|
1329
1397
|
if (typeof obj_durationInSeconds !== 'number' || (typeof obj_durationInSeconds === 'number' && Math.floor(obj_durationInSeconds) !== obj_durationInSeconds)) {
|
|
@@ -1391,6 +1459,11 @@ const select$5 = function CustomCodeExecutionBaseRepresentationSelect() {
|
|
|
1391
1459
|
version: VERSION$2,
|
|
1392
1460
|
private: [],
|
|
1393
1461
|
selections: [
|
|
1462
|
+
{
|
|
1463
|
+
name: 'computeType',
|
|
1464
|
+
kind: 'Scalar',
|
|
1465
|
+
required: false
|
|
1466
|
+
},
|
|
1394
1467
|
{
|
|
1395
1468
|
name: 'durationInSeconds',
|
|
1396
1469
|
kind: 'Scalar'
|
|
@@ -1465,6 +1538,19 @@ function equals$2(existing, incoming) {
|
|
|
1465
1538
|
if (!(existing_rowsWritten === incoming_rowsWritten)) {
|
|
1466
1539
|
return false;
|
|
1467
1540
|
}
|
|
1541
|
+
const existing_computeType = existing.computeType;
|
|
1542
|
+
const incoming_computeType = incoming.computeType;
|
|
1543
|
+
// if at least one of these optionals is defined
|
|
1544
|
+
if (existing_computeType !== undefined || incoming_computeType !== undefined) {
|
|
1545
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1546
|
+
// not equal
|
|
1547
|
+
if (existing_computeType === undefined || incoming_computeType === undefined) {
|
|
1548
|
+
return false;
|
|
1549
|
+
}
|
|
1550
|
+
if (!(existing_computeType === incoming_computeType)) {
|
|
1551
|
+
return false;
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1468
1554
|
const existing_endTime = existing.endTime;
|
|
1469
1555
|
const incoming_endTime = incoming.endTime;
|
|
1470
1556
|
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 = "
|
|
3
|
+
export declare const VERSION = "e25554500069930311e4b242cf15006b";
|
|
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 {
|
|
@@ -41,11 +41,13 @@ export interface CustomCodeDeploymentRepresentationNormalized {
|
|
|
41
41
|
/** Description of the custom code deployment */
|
|
42
42
|
description?: string;
|
|
43
43
|
/** URL to use for custom code file upload */
|
|
44
|
-
fileUploadUrl
|
|
44
|
+
fileUploadUrl?: string;
|
|
45
45
|
/** List of function invoke options */
|
|
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;
|
|
@@ -82,14 +86,16 @@ export interface CustomCodeDeploymentRepresentation {
|
|
|
82
86
|
deploymentFailureReason?: string;
|
|
83
87
|
deploymentStatus: string;
|
|
84
88
|
description?: string;
|
|
85
|
-
fileUploadUrl
|
|
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 = "
|
|
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-
|
|
3
|
+
"version": "1.404.0-dev20",
|
|
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-
|
|
43
|
+
"@salesforce/lds-bindings": "^1.404.0-dev20"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.404.0-
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.404.0-dev20"
|
|
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 = "
|
|
189
|
+
const VERSION$4 = "e25554500069930311e4b242cf15006b";
|
|
190
190
|
function validate$4(obj, path = 'CustomCodeDeploymentRepresentation') {
|
|
191
191
|
const v_error = (() => {
|
|
192
192
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -241,10 +241,12 @@ function validate$4(obj, path = 'CustomCodeDeploymentRepresentation') {
|
|
|
241
241
|
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
244
|
+
if (obj.fileUploadUrl !== undefined) {
|
|
245
|
+
const obj_fileUploadUrl = obj.fileUploadUrl;
|
|
246
|
+
const path_fileUploadUrl = path + '.fileUploadUrl';
|
|
247
|
+
if (typeof obj_fileUploadUrl !== 'string') {
|
|
248
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fileUploadUrl + '" (at "' + path_fileUploadUrl + '")');
|
|
249
|
+
}
|
|
248
250
|
}
|
|
249
251
|
if (obj.functionInvokeOptions !== undefined) {
|
|
250
252
|
const obj_functionInvokeOptions = obj.functionInvokeOptions;
|
|
@@ -265,6 +267,13 @@ function validate$4(obj, path = 'CustomCodeDeploymentRepresentation') {
|
|
|
265
267
|
if (typeof obj_id !== 'string') {
|
|
266
268
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
267
269
|
}
|
|
270
|
+
if (obj.isRemote !== undefined) {
|
|
271
|
+
const obj_isRemote = obj.isRemote;
|
|
272
|
+
const path_isRemote = path + '.isRemote';
|
|
273
|
+
if (typeof obj_isRemote !== 'boolean') {
|
|
274
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isRemote + '" (at "' + path_isRemote + '")');
|
|
275
|
+
}
|
|
276
|
+
}
|
|
268
277
|
const obj_label = obj.label;
|
|
269
278
|
const path_label = path + '.label';
|
|
270
279
|
if (typeof obj_label !== 'string') {
|
|
@@ -295,6 +304,13 @@ function validate$4(obj, path = 'CustomCodeDeploymentRepresentation') {
|
|
|
295
304
|
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
296
305
|
}
|
|
297
306
|
}
|
|
307
|
+
if (obj.ownedBy !== undefined) {
|
|
308
|
+
const obj_ownedBy = obj.ownedBy;
|
|
309
|
+
const path_ownedBy = path + '.ownedBy';
|
|
310
|
+
if (typeof obj_ownedBy !== 'string') {
|
|
311
|
+
return new TypeError('Expected "string" but received "' + typeof obj_ownedBy + '" (at "' + path_ownedBy + '")');
|
|
312
|
+
}
|
|
313
|
+
}
|
|
298
314
|
const obj_parameters = obj.parameters;
|
|
299
315
|
const path_parameters = path + '.parameters';
|
|
300
316
|
if (typeof obj_parameters !== 'object' || ArrayIsArray(obj_parameters) || obj_parameters === null) {
|
|
@@ -385,7 +401,8 @@ const select$b = function CustomCodeDeploymentRepresentationSelect() {
|
|
|
385
401
|
},
|
|
386
402
|
{
|
|
387
403
|
name: 'fileUploadUrl',
|
|
388
|
-
kind: 'Scalar'
|
|
404
|
+
kind: 'Scalar',
|
|
405
|
+
required: false
|
|
389
406
|
},
|
|
390
407
|
{
|
|
391
408
|
name: 'functionInvokeOptions',
|
|
@@ -397,6 +414,11 @@ const select$b = function CustomCodeDeploymentRepresentationSelect() {
|
|
|
397
414
|
name: 'id',
|
|
398
415
|
kind: 'Scalar'
|
|
399
416
|
},
|
|
417
|
+
{
|
|
418
|
+
name: 'isRemote',
|
|
419
|
+
kind: 'Scalar',
|
|
420
|
+
required: false
|
|
421
|
+
},
|
|
400
422
|
{
|
|
401
423
|
name: 'label',
|
|
402
424
|
kind: 'Scalar'
|
|
@@ -419,6 +441,11 @@ const select$b = function CustomCodeDeploymentRepresentationSelect() {
|
|
|
419
441
|
kind: 'Scalar',
|
|
420
442
|
required: false
|
|
421
443
|
},
|
|
444
|
+
{
|
|
445
|
+
name: 'ownedBy',
|
|
446
|
+
kind: 'Scalar',
|
|
447
|
+
required: false
|
|
448
|
+
},
|
|
422
449
|
{
|
|
423
450
|
name: 'parameters',
|
|
424
451
|
kind: 'Object',
|
|
@@ -440,6 +467,19 @@ const select$b = function CustomCodeDeploymentRepresentationSelect() {
|
|
|
440
467
|
};
|
|
441
468
|
};
|
|
442
469
|
function equals$4(existing, incoming) {
|
|
470
|
+
const existing_isRemote = existing.isRemote;
|
|
471
|
+
const incoming_isRemote = incoming.isRemote;
|
|
472
|
+
// if at least one of these optionals is defined
|
|
473
|
+
if (existing_isRemote !== undefined || incoming_isRemote !== undefined) {
|
|
474
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
475
|
+
// not equal
|
|
476
|
+
if (existing_isRemote === undefined || incoming_isRemote === undefined) {
|
|
477
|
+
return false;
|
|
478
|
+
}
|
|
479
|
+
if (!(existing_isRemote === incoming_isRemote)) {
|
|
480
|
+
return false;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
443
483
|
const existing_deploymentFailureCode = existing.deploymentFailureCode;
|
|
444
484
|
const incoming_deploymentFailureCode = incoming.deploymentFailureCode;
|
|
445
485
|
// if at least one of these optionals is defined
|
|
@@ -501,8 +541,16 @@ function equals$4(existing, incoming) {
|
|
|
501
541
|
}
|
|
502
542
|
const existing_fileUploadUrl = existing.fileUploadUrl;
|
|
503
543
|
const incoming_fileUploadUrl = incoming.fileUploadUrl;
|
|
504
|
-
if
|
|
505
|
-
|
|
544
|
+
// if at least one of these optionals is defined
|
|
545
|
+
if (existing_fileUploadUrl !== undefined || incoming_fileUploadUrl !== undefined) {
|
|
546
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
547
|
+
// not equal
|
|
548
|
+
if (existing_fileUploadUrl === undefined || incoming_fileUploadUrl === undefined) {
|
|
549
|
+
return false;
|
|
550
|
+
}
|
|
551
|
+
if (!(existing_fileUploadUrl === incoming_fileUploadUrl)) {
|
|
552
|
+
return false;
|
|
553
|
+
}
|
|
506
554
|
}
|
|
507
555
|
const existing_id = existing.id;
|
|
508
556
|
const incoming_id = incoming.id;
|
|
@@ -537,6 +585,19 @@ function equals$4(existing, incoming) {
|
|
|
537
585
|
return false;
|
|
538
586
|
}
|
|
539
587
|
}
|
|
588
|
+
const existing_ownedBy = existing.ownedBy;
|
|
589
|
+
const incoming_ownedBy = incoming.ownedBy;
|
|
590
|
+
// if at least one of these optionals is defined
|
|
591
|
+
if (existing_ownedBy !== undefined || incoming_ownedBy !== undefined) {
|
|
592
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
593
|
+
// not equal
|
|
594
|
+
if (existing_ownedBy === undefined || incoming_ownedBy === undefined) {
|
|
595
|
+
return false;
|
|
596
|
+
}
|
|
597
|
+
if (!(existing_ownedBy === incoming_ownedBy)) {
|
|
598
|
+
return false;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
540
601
|
const existing_status = existing.status;
|
|
541
602
|
const incoming_status = incoming.status;
|
|
542
603
|
if (!(existing_status === incoming_status)) {
|
|
@@ -1269,12 +1330,19 @@ const getCustomCodeDeploymentsAdapterFactory = (luvio) => function byoc__getCust
|
|
|
1269
1330
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
1270
1331
|
};
|
|
1271
1332
|
|
|
1272
|
-
const VERSION$2 = "
|
|
1333
|
+
const VERSION$2 = "8e9985e5c4e9c49ff9ae48d69222cf4c";
|
|
1273
1334
|
function validate$2(obj, path = 'CustomCodeExecutionBaseRepresentation') {
|
|
1274
1335
|
const v_error = (() => {
|
|
1275
1336
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1276
1337
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1277
1338
|
}
|
|
1339
|
+
if (obj.computeType !== undefined) {
|
|
1340
|
+
const obj_computeType = obj.computeType;
|
|
1341
|
+
const path_computeType = path + '.computeType';
|
|
1342
|
+
if (typeof obj_computeType !== 'string') {
|
|
1343
|
+
return new TypeError('Expected "string" but received "' + typeof obj_computeType + '" (at "' + path_computeType + '")');
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1278
1346
|
const obj_durationInSeconds = obj.durationInSeconds;
|
|
1279
1347
|
const path_durationInSeconds = path + '.durationInSeconds';
|
|
1280
1348
|
if (typeof obj_durationInSeconds !== 'number' || (typeof obj_durationInSeconds === 'number' && Math.floor(obj_durationInSeconds) !== obj_durationInSeconds)) {
|
|
@@ -1342,6 +1410,11 @@ const select$6 = function CustomCodeExecutionBaseRepresentationSelect() {
|
|
|
1342
1410
|
version: VERSION$2,
|
|
1343
1411
|
private: [],
|
|
1344
1412
|
selections: [
|
|
1413
|
+
{
|
|
1414
|
+
name: 'computeType',
|
|
1415
|
+
kind: 'Scalar',
|
|
1416
|
+
required: false
|
|
1417
|
+
},
|
|
1345
1418
|
{
|
|
1346
1419
|
name: 'durationInSeconds',
|
|
1347
1420
|
kind: 'Scalar'
|
|
@@ -1416,6 +1489,19 @@ function equals$2(existing, incoming) {
|
|
|
1416
1489
|
if (!(existing_rowsWritten === incoming_rowsWritten)) {
|
|
1417
1490
|
return false;
|
|
1418
1491
|
}
|
|
1492
|
+
const existing_computeType = existing.computeType;
|
|
1493
|
+
const incoming_computeType = incoming.computeType;
|
|
1494
|
+
// if at least one of these optionals is defined
|
|
1495
|
+
if (existing_computeType !== undefined || incoming_computeType !== undefined) {
|
|
1496
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1497
|
+
// not equal
|
|
1498
|
+
if (existing_computeType === undefined || incoming_computeType === undefined) {
|
|
1499
|
+
return false;
|
|
1500
|
+
}
|
|
1501
|
+
if (!(existing_computeType === incoming_computeType)) {
|
|
1502
|
+
return false;
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1419
1505
|
const existing_endTime = existing.endTime;
|
|
1420
1506
|
const incoming_endTime = incoming.endTime;
|
|
1421
1507
|
if (!(existing_endTime === incoming_endTime)) {
|
|
@@ -2262,4 +2348,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2262
2348
|
});
|
|
2263
2349
|
|
|
2264
2350
|
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-
|
|
2351
|
+
// version: 1.404.0-dev20-d07b5007e7
|
package/src/raml/api.raml
CHANGED
|
@@ -167,7 +167,7 @@ types:
|
|
|
167
167
|
description?:
|
|
168
168
|
description: Description of the custom code deployment
|
|
169
169
|
type: string
|
|
170
|
-
fileUploadUrl
|
|
170
|
+
fileUploadUrl?:
|
|
171
171
|
description: URL to use for custom code file upload
|
|
172
172
|
type: string
|
|
173
173
|
id:
|
|
@@ -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
|