@salesforce/lds-adapters-industries-filebased-dataimport 1.278.0 → 1.280.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.
@@ -93,7 +93,7 @@ function createLink(ref) {
93
93
  };
94
94
  }
95
95
 
96
- const VERSION$c = "3124b7013ab7c908e4590d64fe411ce3";
96
+ const VERSION$c = "beed2d58164c2930bf83d9bb61ad8ddb";
97
97
  function validate$g(obj, path = 'FileBasedDataImportRepresentation') {
98
98
  const v_error = (() => {
99
99
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -191,6 +191,34 @@ function validate$g(obj, path = 'FileBasedDataImportRepresentation') {
191
191
  return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
192
192
  }
193
193
  }
194
+ if (obj.parentJobId !== undefined) {
195
+ const obj_parentJobId = obj.parentJobId;
196
+ const path_parentJobId = path + '.parentJobId';
197
+ let obj_parentJobId_union0 = null;
198
+ const obj_parentJobId_union0_error = (() => {
199
+ if (typeof obj_parentJobId !== 'string') {
200
+ return new TypeError('Expected "string" but received "' + typeof obj_parentJobId + '" (at "' + path_parentJobId + '")');
201
+ }
202
+ })();
203
+ if (obj_parentJobId_union0_error != null) {
204
+ obj_parentJobId_union0 = obj_parentJobId_union0_error.message;
205
+ }
206
+ let obj_parentJobId_union1 = null;
207
+ const obj_parentJobId_union1_error = (() => {
208
+ if (obj_parentJobId !== null) {
209
+ return new TypeError('Expected "null" but received "' + typeof obj_parentJobId + '" (at "' + path_parentJobId + '")');
210
+ }
211
+ })();
212
+ if (obj_parentJobId_union1_error != null) {
213
+ obj_parentJobId_union1 = obj_parentJobId_union1_error.message;
214
+ }
215
+ if (obj_parentJobId_union0 && obj_parentJobId_union1) {
216
+ let message = 'Object doesn\'t match union (at "' + path_parentJobId + '")';
217
+ message += '\n' + obj_parentJobId_union0.split('\n').map((line) => '\t' + line).join('\n');
218
+ message += '\n' + obj_parentJobId_union1.split('\n').map((line) => '\t' + line).join('\n');
219
+ return new TypeError(message);
220
+ }
221
+ }
194
222
  if (obj.sourceContentDocument !== undefined) {
195
223
  const obj_sourceContentDocument = obj.sourceContentDocument;
196
224
  const path_sourceContentDocument = path + '.sourceContentDocument';
@@ -414,6 +442,11 @@ const select$n = function FileBasedDataImportRepresentationSelect() {
414
442
  kind: 'Scalar',
415
443
  required: false
416
444
  },
445
+ {
446
+ name: 'parentJobId',
447
+ kind: 'Scalar',
448
+ required: false
449
+ },
417
450
  {
418
451
  name: 'sourceContentDocument',
419
452
  kind: 'Scalar',
@@ -577,6 +610,19 @@ function equals$c(existing, incoming) {
577
610
  return false;
578
611
  }
579
612
  }
613
+ const existing_parentJobId = existing.parentJobId;
614
+ const incoming_parentJobId = incoming.parentJobId;
615
+ // if at least one of these optionals is defined
616
+ if (existing_parentJobId !== undefined || incoming_parentJobId !== undefined) {
617
+ // if one of these is not defined we know the other is defined and therefore
618
+ // not equal
619
+ if (existing_parentJobId === undefined || incoming_parentJobId === undefined) {
620
+ return false;
621
+ }
622
+ if (!(existing_parentJobId === incoming_parentJobId)) {
623
+ return false;
624
+ }
625
+ }
580
626
  const existing_sourceContentDocument = existing.sourceContentDocument;
581
627
  const incoming_sourceContentDocument = incoming.sourceContentDocument;
582
628
  // if at least one of these optionals is defined
@@ -1,5 +1,5 @@
1
1
  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';
2
- export declare const VERSION = "3124b7013ab7c908e4590d64fe411ce3";
2
+ export declare const VERSION = "beed2d58164c2930bf83d9bb61ad8ddb";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
5
5
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -39,6 +39,8 @@ export interface FileBasedDataImportRepresentationNormalized {
39
39
  jobIdentifier?: string | null;
40
40
  /** lastModifiedDate */
41
41
  lastModifiedDate?: string;
42
+ /** ParentJobId */
43
+ parentJobId?: string | null;
42
44
  /** SourceContentDocument */
43
45
  sourceContentDocument?: string | null;
44
46
  /** SourceFileName */
@@ -73,6 +75,7 @@ export interface FileBasedDataImportRepresentation {
73
75
  importOperationType: string;
74
76
  jobIdentifier?: string | null;
75
77
  lastModifiedDate?: string;
78
+ parentJobId?: string | null;
76
79
  sourceContentDocument?: string | null;
77
80
  sourceFileName: string;
78
81
  status: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-filebased-dataimport",
3
- "version": "1.278.0",
3
+ "version": "1.280.0",
4
4
  "description": "Resource Family for File Based Data Import Use cases",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/industries-filebased-dataimport.js",
@@ -41,11 +41,11 @@
41
41
  "test:unit": "jest"
42
42
  },
43
43
  "dependencies": {
44
- "@salesforce/lds-bindings": "^1.278.0"
44
+ "@salesforce/lds-bindings": "^1.280.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@salesforce/lds-compiler-plugins": "^1.278.0",
48
- "@salesforce/lds-karma": "^1.278.0"
47
+ "@salesforce/lds-compiler-plugins": "^1.280.0",
48
+ "@salesforce/lds-karma": "^1.280.0"
49
49
  },
50
50
  "nx": {
51
51
  "targets": {
package/sfdc/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- /* *******************************************************************************************
7
+ /*
8
8
  * ATTENTION!
9
9
  * THIS IS A GENERATED FILE FROM https://github.com/salesforce-experience-platform-emu/lds-lightning-platform
10
10
  * If you would like to contribute to LDS, please follow the steps outlined in the git repo.
@@ -103,7 +103,7 @@ function createLink(ref) {
103
103
  };
104
104
  }
105
105
 
106
- const VERSION$c = "3124b7013ab7c908e4590d64fe411ce3";
106
+ const VERSION$c = "beed2d58164c2930bf83d9bb61ad8ddb";
107
107
  function validate$g(obj, path = 'FileBasedDataImportRepresentation') {
108
108
  const v_error = (() => {
109
109
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -201,6 +201,34 @@ function validate$g(obj, path = 'FileBasedDataImportRepresentation') {
201
201
  return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
202
202
  }
203
203
  }
204
+ if (obj.parentJobId !== undefined) {
205
+ const obj_parentJobId = obj.parentJobId;
206
+ const path_parentJobId = path + '.parentJobId';
207
+ let obj_parentJobId_union0 = null;
208
+ const obj_parentJobId_union0_error = (() => {
209
+ if (typeof obj_parentJobId !== 'string') {
210
+ return new TypeError('Expected "string" but received "' + typeof obj_parentJobId + '" (at "' + path_parentJobId + '")');
211
+ }
212
+ })();
213
+ if (obj_parentJobId_union0_error != null) {
214
+ obj_parentJobId_union0 = obj_parentJobId_union0_error.message;
215
+ }
216
+ let obj_parentJobId_union1 = null;
217
+ const obj_parentJobId_union1_error = (() => {
218
+ if (obj_parentJobId !== null) {
219
+ return new TypeError('Expected "null" but received "' + typeof obj_parentJobId + '" (at "' + path_parentJobId + '")');
220
+ }
221
+ })();
222
+ if (obj_parentJobId_union1_error != null) {
223
+ obj_parentJobId_union1 = obj_parentJobId_union1_error.message;
224
+ }
225
+ if (obj_parentJobId_union0 && obj_parentJobId_union1) {
226
+ let message = 'Object doesn\'t match union (at "' + path_parentJobId + '")';
227
+ message += '\n' + obj_parentJobId_union0.split('\n').map((line) => '\t' + line).join('\n');
228
+ message += '\n' + obj_parentJobId_union1.split('\n').map((line) => '\t' + line).join('\n');
229
+ return new TypeError(message);
230
+ }
231
+ }
204
232
  if (obj.sourceContentDocument !== undefined) {
205
233
  const obj_sourceContentDocument = obj.sourceContentDocument;
206
234
  const path_sourceContentDocument = path + '.sourceContentDocument';
@@ -424,6 +452,11 @@ const select$n = function FileBasedDataImportRepresentationSelect() {
424
452
  kind: 'Scalar',
425
453
  required: false
426
454
  },
455
+ {
456
+ name: 'parentJobId',
457
+ kind: 'Scalar',
458
+ required: false
459
+ },
427
460
  {
428
461
  name: 'sourceContentDocument',
429
462
  kind: 'Scalar',
@@ -587,6 +620,19 @@ function equals$c(existing, incoming) {
587
620
  return false;
588
621
  }
589
622
  }
623
+ const existing_parentJobId = existing.parentJobId;
624
+ const incoming_parentJobId = incoming.parentJobId;
625
+ // if at least one of these optionals is defined
626
+ if (existing_parentJobId !== undefined || incoming_parentJobId !== undefined) {
627
+ // if one of these is not defined we know the other is defined and therefore
628
+ // not equal
629
+ if (existing_parentJobId === undefined || incoming_parentJobId === undefined) {
630
+ return false;
631
+ }
632
+ if (!(existing_parentJobId === incoming_parentJobId)) {
633
+ return false;
634
+ }
635
+ }
590
636
  const existing_sourceContentDocument = existing.sourceContentDocument;
591
637
  const incoming_sourceContentDocument = incoming.sourceContentDocument;
592
638
  // if at least one of these optionals is defined
@@ -3891,4 +3937,4 @@ withDefaultLuvio((luvio) => {
3891
3937
  });
3892
3938
 
3893
3939
  export { createFileBasedDataImport, deleteFileBasedDataImport, getAllFields, getAllFields_imperative, getAllSobjects, getAllSobjects_imperative, getCsvAutoMap, getCsvAutoMap_imperative, getCsvPreviewData, getCsvPreviewData_imperative, getDPEDefinitions, getDPEDefinitions_imperative, getFileBasedDataImportById, getFileBasedDataImportByIdNotifyChange, getFileBasedDataImportById_imperative, getFileBasedDataImports, getFileBasedDataImports_imperative, startAdvanceImport, startSimpleImport, updateFileBasedDataImport };
3894
- // version: 1.278.0-a388a38f0
3940
+ // version: 1.280.0-09f980816
package/src/raml/api.raml CHANGED
@@ -354,6 +354,9 @@ types:
354
354
  unprocessedRecordsCount?:
355
355
  description: UnprocessedRecordsCount
356
356
  type: integer
357
+ parentJobId?:
358
+ description: ParentJobId
359
+ type: string | nil
357
360
  FileBasedDataImportInputRep:
358
361
  description: 'Input representation for File Based Data Import '
359
362
  type: object