@fluid-experimental/property-changeset 1.2.7 → 2.0.0-dev.1.3.0.96595

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.
Files changed (58) hide show
  1. package/dist/changeset.d.ts +39 -45
  2. package/dist/changeset.d.ts.map +1 -1
  3. package/dist/changeset.js +42 -51
  4. package/dist/changeset.js.map +1 -1
  5. package/dist/changeset_operations/array.d.ts +34 -3
  6. package/dist/changeset_operations/array.d.ts.map +1 -1
  7. package/dist/changeset_operations/array.js +97 -94
  8. package/dist/changeset_operations/array.js.map +1 -1
  9. package/dist/changeset_operations/indexedCollection.d.ts +13 -15
  10. package/dist/changeset_operations/indexedCollection.d.ts.map +1 -1
  11. package/dist/changeset_operations/indexedCollection.js +14 -15
  12. package/dist/changeset_operations/indexedCollection.js.map +1 -1
  13. package/dist/helpers/typeidHelper.d.ts +14 -14
  14. package/dist/helpers/typeidHelper.d.ts.map +1 -1
  15. package/dist/helpers/typeidHelper.js +24 -34
  16. package/dist/helpers/typeidHelper.js.map +1 -1
  17. package/dist/pathHelper.d.ts +5 -5
  18. package/dist/pathHelper.d.ts.map +1 -1
  19. package/dist/pathHelper.js +54 -56
  20. package/dist/pathHelper.js.map +1 -1
  21. package/dist/templateValidator.d.ts +62 -30
  22. package/dist/templateValidator.d.ts.map +1 -1
  23. package/dist/templateValidator.js +128 -94
  24. package/dist/templateValidator.js.map +1 -1
  25. package/dist/test/array.spec.js +3 -6
  26. package/dist/test/array.spec.js.map +1 -1
  27. package/dist/test/pathHelper.spec.js +2 -4
  28. package/dist/test/pathHelper.spec.js.map +1 -1
  29. package/dist/test/reversibleCs.spec.js +2 -4
  30. package/dist/test/reversibleCs.spec.js.map +1 -1
  31. package/dist/test/tsconfig.tsbuildinfo +1 -1
  32. package/dist/test/validator/templateValidator.spec.js +5 -10
  33. package/dist/test/validator/templateValidator.spec.js.map +1 -1
  34. package/dist/utils.d.ts +137 -109
  35. package/dist/utils.d.ts.map +1 -1
  36. package/dist/utils.js +167 -174
  37. package/dist/utils.js.map +1 -1
  38. package/dist/validationResultBuilder.d.ts +6 -8
  39. package/dist/validationResultBuilder.d.ts.map +1 -1
  40. package/dist/validationResultBuilder.js +5 -11
  41. package/dist/validationResultBuilder.js.map +1 -1
  42. package/lib/changeset.js +42 -51
  43. package/lib/changeset.js.map +1 -1
  44. package/lib/changeset_operations/array.js +97 -94
  45. package/lib/changeset_operations/array.js.map +1 -1
  46. package/lib/changeset_operations/indexedCollection.js +14 -15
  47. package/lib/changeset_operations/indexedCollection.js.map +1 -1
  48. package/lib/helpers/typeidHelper.js +24 -34
  49. package/lib/helpers/typeidHelper.js.map +1 -1
  50. package/lib/pathHelper.js +54 -56
  51. package/lib/pathHelper.js.map +1 -1
  52. package/lib/templateValidator.js +128 -94
  53. package/lib/templateValidator.js.map +1 -1
  54. package/lib/utils.js +167 -174
  55. package/lib/utils.js.map +1 -1
  56. package/lib/validationResultBuilder.js +5 -11
  57. package/lib/validationResultBuilder.js.map +1 -1
  58. package/package.json +5 -5
package/dist/utils.d.ts CHANGED
@@ -26,11 +26,11 @@ export declare namespace Utils {
26
26
  [key: string]: any;
27
27
  };
28
28
  /**
29
- * The operation that has been applied to the root of the ChangeSet (either 'insert' or 'modify')
29
+ * The operation that has been applied to the root of the ChangeSet (either 'insert' or 'modify')
30
30
  */
31
31
  rootOperation?: OperationType;
32
32
  /**
33
- * The full typeid for the Property at the root of the ChangeSet
33
+ * The full typeid for the Property at the root of the ChangeSet
34
34
  */
35
35
  rootTypeid?: string;
36
36
  }
@@ -111,7 +111,7 @@ export declare namespace Utils {
111
111
  /**
112
112
  * Returns true if the passed context is an empty object
113
113
  * @private
114
- * @param in_context change set traversal context
114
+ * @param in_context - change set traversal context
115
115
  * @returns Wether the object is empty
116
116
  */
117
117
  _isEmptyObject(in_context: TraversalContext): boolean;
@@ -141,7 +141,7 @@ export declare namespace Utils {
141
141
  /**
142
142
  * Replace the current nested ChangeSet by another one
143
143
  *
144
- * @param in_newNestedChangeset The new content
144
+ * @param in_newNestedChangeset - The new content
145
145
  */
146
146
  replaceNestedChangeSet(in_newNestedChangeset: SerializedChangeSet): void;
147
147
  /**
@@ -280,9 +280,8 @@ export declare namespace Utils {
280
280
  * @param in_callback - A callback that is used to emit every template
281
281
  * @param in_finalizer - A callback that is called when enumeration is completed
282
282
  *
283
- * @returns All templates that appear in the ChangeSet
284
- * The returned object has members key (string), corresponding to the type and value with the
285
- * definition (object)
283
+ * @returns All templates that appear in the ChangeSet.
284
+ * The returned object has members key (string), corresponding to the type and value with the definition (object)
286
285
  */
287
286
  export function enumerateSchemas(in_changeSet: SerializedChangeSet, in_callback: (arg0: {
288
287
  key: string;
@@ -298,7 +297,7 @@ export declare namespace Utils {
298
297
  /**
299
298
  * Searches through a ChangeSet and returns all Changes to a properties with a given typeid
300
299
  *
301
- * @param in_typeid - The typeid of the property to look for
300
+ * @param in_typeid - The typeid of the property to look for
302
301
  * @param in_changeSet - The ChangeSet to process
303
302
  * @param in_excludeTypeids - Exclude all typeids from the returned ChangeSet
304
303
  * @returns Returns the applied operations to entries of the given typeid. The returned maps for insert and modify map paths to ChangeSets
@@ -316,74 +315,90 @@ export declare namespace Utils {
316
315
  * @param in_changeSet - The ChangeSet to process
317
316
  * @param in_excludetypeids - Exclude all typeids from the returned ChangeSet
318
317
  * @throws if path is invalid.
319
- * @returns The changes that are applied to the given path
318
+ * @returns The changes that are applied to the given path.
319
+ *
320
+ * ```
320
321
  * <pre>
321
322
  * {insert: Object|undefined, modify: Object|undefined, remove: boolean|undefined}
322
323
  * </pre>
324
+ * ```
323
325
  */
324
326
  export function getChangesByPath(in_path: string, in_root: any, in_changeSet: SerializedChangeSet, in_excludetypeids: boolean): object;
325
327
  /**
326
328
  * Invoke a callback for all nested ChangeSets that correspond to a set of user supplied tokenized paths.
327
329
  *
328
- * @param in_paths -
329
- * A map or object which contains the tokenized paths as nested elements. Common path segment are thus shared.
330
- * NOTE: It is recommended to use Map as it provides better performance.
331
- * For example, for these three paths:
332
- * 'entry1'
333
- * 'nested.entry2'
334
- * 'nested.entry3'
335
- *
336
- * Using a map for paths would look like this:
337
- * new Map([
338
- * ['entry', new Map()],
339
- * ['nested', new Map([
340
- * ['entry2', new Map()],
341
- * ['entry3', new Map()]
342
- * ])]
343
- * ])
344
- *
345
- * While using objects for paths would look like this:
346
- * {
347
- * entry: {},
348
- * nested: {
349
- * entry2: {}
350
- * entry3: {}
351
- * }
352
- * }
353
- *
354
- * The element under the path, will be provided to the callback. If you have to pass additional data
355
- * to the callback, you can add private data by prefixing it with __ and setting
356
- * in_options.escapeLeadingDoubleUnderscore to true.
357
- * In case you do that, bear in mind that paths that refer to changeSet properties that have at least
358
- * two underscores as prefix in its id, should contain an extra underscore character as prefix:
359
- * | Path in changeSet | Path in paths |
360
- * | path0 | path0 | (unescaped)
361
- * | _path1 | _path1 | (unescaoed)
362
- * | __path2 | ___path2 | (escaped with one extra leading underscore)
363
- * | ___path3 | ____path3 | (also escaped, the same applies to N underscores where N >= 2)
364
- * @param in_changeSet -
365
- * The ChangeSet to process
366
- * @param in_callback -
367
- * The function to invoke at the registered paths (it is called both for the interior and the leaf nodes). The
368
- * callback will be called for each node with the following parameters:
369
- * context - The current TraversalContext as returned by Utils.traverseChangeSetRecursively. Can be used for
370
- * querying the current Property type, operation, etc.
371
- * currentSubPaths - a subset of the tokenized paths passed in as input to this
372
- * function that still need to be processed from the current node
373
- * currentTokenizedPath - the tokenized path leading to the current node
374
- * contractedPathSegment - True if the current node is inside a contracted path segment
375
- * (e.g. currentTokenizedPath is ['foo'], coming from the
376
- * changeset segment 'foo.bar'), false otherwise. If true, the
377
- * typeid from the context parameter may not be valid at the
378
- * current node. Callbacks may ignore this if they are not
379
- * concerned with the type.
380
- * @param in_options -
381
- * @param in_options.rootOperation - The operation that has been applied to the root of the ChangeSet (either 'insert' or 'modify')
330
+ * @param in_paths - A map or object which contains the tokenized paths as nested elements.
331
+ * Common path segment are thus shared.
332
+ *
333
+ * NOTE: It is recommended to use Map as it provides better performance.
334
+ * For example, for these three paths:
335
+ *
336
+ * - 'entry1'
337
+ *
338
+ * - 'nested.entry2'
339
+ *
340
+ * - 'nested.entry3'
341
+ *
342
+ * Using a map for paths would look like this:
343
+ *
344
+ * ```typescript
345
+ * new Map([
346
+ * ['entry', new Map()],
347
+ * ['nested', new Map([
348
+ * ['entry2', new Map()],
349
+ * ['entry3', new Map()]
350
+ * ])]
351
+ * ])
352
+ * ```
353
+ *
354
+ * While using objects for paths would look like this:
355
+ *
356
+ * ```typescript
357
+ * {
358
+ * entry: {},
359
+ * nested: {
360
+ * entry2: {}
361
+ * entry3: {}
362
+ * }
363
+ * }
364
+ * ```
365
+ *
366
+ * The element under the path, will be provided to the callback. If you have to pass additional data
367
+ * to the callback, you can add private data by prefixing it with __ and setting
368
+ * in_options.escapeLeadingDoubleUnderscore to true.
369
+ * In case you do that, bear in mind that paths that refer to changeSet properties that have at least
370
+ * two underscores as prefix in its id, should contain an extra underscore character as prefix:
371
+ *
372
+ * ```
373
+ * | Path in changeSet | Path in paths |
374
+ * | path0 | path0 | (unescaped)
375
+ * | _path1 | _path1 | (unescaoed)
376
+ * | __path2 | ___path2 | (escaped with one extra leading underscore)
377
+ * | ___path3 | ____path3 | (also escaped, the same applies to N underscores where N >= 2)
378
+ * ```
379
+ * @param in_changeSet - The ChangeSet to process
380
+ * @param in_callback - The function to invoke at the registered paths (it is called both for the interior and the
381
+ * leaf nodes). The callback will be called for each node with the following parameters:
382
+ *
383
+ * - `context`: The current TraversalContext as returned by Utils.traverseChangeSetRecursively.
384
+ * Can be used for querying the current Property type, operation, etc.
385
+ *
386
+ * - `currentSubPaths`: A subset of the tokenized paths passed in as input to this function that still need to be
387
+ * processed from the current node
388
+ *
389
+ * - `currentTokenizedPath`: The tokenized path leading to the current node
390
+ *
391
+ * - `contractedPathSegment`: True if the current node is inside a contracted path segment (e.g.
392
+ * currentTokenizedPath is ['foo'], coming from the changeset segment 'foo.bar'), false otherwise. If true, the
393
+ * typeid from the context parameter may not be valid at the current node. Callbacks may ignore this if they are
394
+ * not concerned with the type.
395
+ *
396
+ * @param in_options.rootOperation - The operation that has been applied to the root of the ChangeSet
397
+ * (either 'insert' or 'modify')
382
398
  * @param in_options.rootTypeid - The full type of the root Property of the ChangeSet
383
- * @param in_options.escapeLeadingDoubleUnderscore -
384
- * If this is set to true, keys which start with '__' will be escaped (by adding an additional '_') before the
385
- * lookup into the paths map. This frees the keyspace with duplicated underscores for the use by the calling
386
- * application.
399
+ * @param in_options.escapeLeadingDoubleUnderscore - If this is set to true, keys which start with '__' will be
400
+ * escaped (by adding an additional '_') before the lookup into the paths map. This frees the keyspace with
401
+ * duplicated underscores for the use by the calling application.
387
402
  */
388
403
  export function getChangesToTokenizedPaths(in_paths: Map<string, Map<string, any>> | {
389
404
  [key: string]: any;
@@ -401,32 +416,37 @@ export declare namespace Utils {
401
416
  * Given a change set, this function will filter it based on a series of paths.
402
417
  * The final ChangeSet will only include the paths in question starting from the root of
403
418
  * the ChangeSet.
404
- * For Example,
405
- * Given the following change set
406
- * 'insert': {
407
- * 'String': {
408
- * 'string1': 'hello',
409
- * 'string2': 'world
410
- * }
411
- * }
412
- * And the path
413
- * ['string1']
414
- * the resulting ChangeSet will be
415
- * 'insert': {
416
- * 'String': {
417
- * 'string1': 'hello'
418
- * }
419
- * }
419
+ *
420
+ * @example Given the following change set:
421
+ *
422
+ * ```json
423
+ * 'insert': {
424
+ * 'String': {
425
+ * 'string1': 'hello',
426
+ * 'string2': 'world
427
+ * }
428
+ * }
429
+ * ```
430
+ *
431
+ * And the path `['string1']`, the resulting ChangeSet will be:
432
+ *
433
+ * ```json
434
+ * 'insert': {
435
+ * 'String': {
436
+ * 'string1': 'hello'
437
+ * }
438
+ * }
439
+ * ```
420
440
  *
421
441
  * NOTE: Paths that traverse through sets and arrays are not supported.
422
442
  *
423
- * @param in_changeSet - The changeset to parse
424
- * @param - List of paths to filter by. This can either be passed
425
- * as a flat array of paths or as a Map with the tokenized, tree structured paths, see the
426
- * documentation of getChangesToTokenizedPaths for an example.
427
- * Note: duplicate paths will be ignored including ones that encompasse other paths
443
+ * @param in_changeSet - The changeset to parse.
444
+ * @param in_paths - List of paths to filter by. This can either be passed
445
+ * as a flat array of paths or as a Map with the tokenized, tree structured paths, see the
446
+ * documentation of getChangesToTokenizedPaths for an example.
447
+ * Note: duplicate paths will be ignored including ones that encompasse other paths.
428
448
  *
429
- * @throws if a path given resolves into an array or set
449
+ * @throws If a path given resolves into an array or set.
430
450
  * @returns - Filtered ChangeSet
431
451
  */
432
452
  export function getFilteredChangeSetByPaths(in_changeSet: SerializedChangeSet, in_paths: PathsType): SerializedChangeSet;
@@ -434,9 +454,9 @@ export declare namespace Utils {
434
454
  * Converts an array of paths to the tree structured representation that is needed
435
455
  * as input for the function getChangesToTokenizedPaths.
436
456
  *
437
- * @param in_paths - An array with paths
457
+ * @param in_paths - An array with paths
438
458
  * @returns {Map} A tree structured representation of the tokenized paths that can be
439
- * passed to getChangesToTokenizedPaths and getFilteredChangeSetByPaths.
459
+ * passed to getChangesToTokenizedPaths and getFilteredChangeSetByPaths.
440
460
  */
441
461
  export function convertPathArrayToTree(in_paths: string[]): PathTree;
442
462
  /**
@@ -444,22 +464,27 @@ export declare namespace Utils {
444
464
  * Given a change set, this function will filter it based on a series of paths.
445
465
  * The final ChangeSet will exclude the paths in question starting from the root of
446
466
  * the ChangeSet.
447
- * For Example,
448
- * Given the following change set
449
- * 'insert': {
450
- * 'String': {
451
- * 'string1': 'hello',
452
- * 'string2': 'world
453
- * }
454
- * }
455
- * And the path
456
- * ['string1']
457
- * the resulting ChangeSet will be
458
- * 'insert': {
459
- * 'String': {
460
- * 'string2': 'world'
461
- * }
462
- * }
467
+ *
468
+ * @example Given the following change set:
469
+ *
470
+ * ```json
471
+ * 'insert': {
472
+ * 'String': {
473
+ * 'string1': 'hello',
474
+ * 'string2': 'world
475
+ * }
476
+ * }
477
+ * ```
478
+ *
479
+ * And the path `['string1']`, the resulting ChangeSet will be:
480
+ *
481
+ * ```json
482
+ * 'insert': {
483
+ * 'String': {
484
+ * 'string2': 'world'
485
+ * }
486
+ * }
487
+ * ```
463
488
  *
464
489
  * NOTE: Paths that traverse through sets and arrays are not supported.
465
490
  *
@@ -472,7 +497,8 @@ export declare namespace Utils {
472
497
  export function excludePathsFromChangeSet(in_changeSet: SerializedChangeSet, in_paths: string[]): SerializedChangeSet;
473
498
  /**
474
499
  * Extract all paths from the ChangeSet in a flattened list and include the operations and typeid information.
475
- * NOTE: The paths returned also include the parent. i.e. the path 'nodeProp.subproperty' will result in
500
+ * @remarks NOTE: The paths returned also include the parent. i.e. the path 'nodeProp.subproperty' will result in:
501
+ * ```json
476
502
  * {
477
503
  * nodeProp: {
478
504
  * operation: 'modify',
@@ -483,8 +509,10 @@ export declare namespace Utils {
483
509
  * typeid: { typeid: 'Float32', context: 'single', isEnum: false }
484
510
  * }
485
511
  * }
512
+ * ```
513
+ *
486
514
  * @param in_changeSet - The changeset to extract paths from
487
- * @param in_options] - Set of options
515
+ * @param in_options - Set of options
488
516
  * @param in_options.includeOperation - Flag to include the operation
489
517
  * @param in_options.includeTypeidInfo - Flag to include the typeid info
490
518
  * @returns - Flat list of paths
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAMA,OAAO,EAA4B,aAAa,EAA+B,MAAM,OAAO,CAAC;AAW7F,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,EAAE,gBAAgB,EAAgB,MAAM,wBAAwB,CAAC;AAExE,OAAO,EAAc,QAAQ,EAAE,MAAM,cAAc,CAAC;AAOpD;;;;EAIE;AACF,yBAAiB,KAAK,CAAC;IACnB,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC3D,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG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