@wix/motion-edm-autogen-transformations-core 1.26.0 → 1.27.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.
Files changed (104) hide show
  1. package/dist/cjs/__tests__/corvid-entity.spec.js +4 -2
  2. package/dist/cjs/__tests__/corvid-entity.spec.js.map +1 -1
  3. package/dist/cjs/__tests__/reduceTransformation.spec.js +1 -3
  4. package/dist/cjs/__tests__/reduceTransformation.spec.js.map +1 -1
  5. package/dist/cjs/__tests__/transformations/preset/create-transformation.spec.js +6 -3
  6. package/dist/cjs/__tests__/transformations/preset/create-transformation.spec.js.map +1 -1
  7. package/dist/cjs/__tests__/transformations/preset/delete-transformation.spec.js +9 -4
  8. package/dist/cjs/__tests__/transformations/preset/delete-transformation.spec.js.map +1 -1
  9. package/dist/cjs/__tests__/transformations/preset/get-transformation.spec.js +6 -3
  10. package/dist/cjs/__tests__/transformations/preset/get-transformation.spec.js.map +1 -1
  11. package/dist/cjs/__tests__/transformations/preset/list-transformation.spec.js +6 -3
  12. package/dist/cjs/__tests__/transformations/preset/list-transformation.spec.js.map +1 -1
  13. package/dist/cjs/__tests__/transformations/preset/query-transformation.spec.js +7 -6
  14. package/dist/cjs/__tests__/transformations/preset/query-transformation.spec.js.map +1 -1
  15. package/dist/cjs/__tests__/transformations/preset/update-transformation.spec.js +6 -3
  16. package/dist/cjs/__tests__/transformations/preset/update-transformation.spec.js.map +1 -1
  17. package/dist/cjs/__tests__/validations/validateRequestTransformation.spec.js +3 -1
  18. package/dist/cjs/__tests__/validations/validateRequestTransformation.spec.js.map +1 -1
  19. package/dist/cjs/__tests__/validations/validateResponseTransformation.spec.js +3 -1
  20. package/dist/cjs/__tests__/validations/validateResponseTransformation.spec.js.map +1 -1
  21. package/dist/cjs/index.js +13 -16
  22. package/dist/cjs/index.js.map +1 -1
  23. package/dist/cjs/lib/corvid-entity/index.js +2 -4
  24. package/dist/cjs/lib/corvid-entity/index.js.map +1 -1
  25. package/dist/cjs/lib/helpers.js +10 -10
  26. package/dist/cjs/lib/helpers.js.map +1 -1
  27. package/dist/cjs/lib/transformations/common.js +1 -2
  28. package/dist/cjs/lib/transformations/common.js.map +1 -1
  29. package/dist/cjs/lib/transformations/constants.js +2 -4
  30. package/dist/cjs/lib/transformations/constants.js.map +1 -1
  31. package/dist/cjs/lib/transformations/preset/delete.js +3 -1
  32. package/dist/cjs/lib/transformations/preset/delete.js.map +1 -1
  33. package/dist/cjs/lib/transformations/preset/query.js +9 -7
  34. package/dist/cjs/lib/transformations/preset/query.js.map +1 -1
  35. package/dist/cjs/lib/transformations/reduceTransformation.js +46 -36
  36. package/dist/cjs/lib/transformations/reduceTransformation.js.map +1 -1
  37. package/dist/cjs/lib/transformations/validations/common.js +4 -2
  38. package/dist/cjs/lib/transformations/validations/common.js.map +1 -1
  39. package/dist/cjs/lib/transformations/validations/validateRequestTransformation.js +3 -5
  40. package/dist/cjs/lib/transformations/validations/validateRequestTransformation.js.map +1 -1
  41. package/dist/cjs/lib/transformations/validations/validateResponseTransformation.js +7 -6
  42. package/dist/cjs/lib/transformations/validations/validateResponseTransformation.js.map +1 -1
  43. package/dist/esm/__tests__/corvid-entity.spec.js +30 -24
  44. package/dist/esm/__tests__/corvid-entity.spec.js.map +1 -1
  45. package/dist/esm/__tests__/getArgumentCardinality.spec.js +20 -25
  46. package/dist/esm/__tests__/getArgumentCardinality.spec.js.map +1 -1
  47. package/dist/esm/__tests__/helpers.spec.js +37 -29
  48. package/dist/esm/__tests__/helpers.spec.js.map +1 -1
  49. package/dist/esm/__tests__/reduceTransformation.spec.js +147 -149
  50. package/dist/esm/__tests__/reduceTransformation.spec.js.map +1 -1
  51. package/dist/esm/__tests__/transformations/custom-functions.spec.js +62 -59
  52. package/dist/esm/__tests__/transformations/custom-functions.spec.js.map +1 -1
  53. package/dist/esm/__tests__/transformations/preset/create-transformation.spec.js +24 -26
  54. package/dist/esm/__tests__/transformations/preset/create-transformation.spec.js.map +1 -1
  55. package/dist/esm/__tests__/transformations/preset/delete-transformation.spec.js +39 -43
  56. package/dist/esm/__tests__/transformations/preset/delete-transformation.spec.js.map +1 -1
  57. package/dist/esm/__tests__/transformations/preset/get-transformation.spec.js +22 -24
  58. package/dist/esm/__tests__/transformations/preset/get-transformation.spec.js.map +1 -1
  59. package/dist/esm/__tests__/transformations/preset/list-transformation.spec.js +11 -11
  60. package/dist/esm/__tests__/transformations/preset/list-transformation.spec.js.map +1 -1
  61. package/dist/esm/__tests__/transformations/preset/query-transformation.spec.js +29 -30
  62. package/dist/esm/__tests__/transformations/preset/query-transformation.spec.js.map +1 -1
  63. package/dist/esm/__tests__/transformations/preset/update-transformation.spec.js +58 -62
  64. package/dist/esm/__tests__/transformations/preset/update-transformation.spec.js.map +1 -1
  65. package/dist/esm/__tests__/validations/validateRequestTransformation.spec.js +94 -82
  66. package/dist/esm/__tests__/validations/validateRequestTransformation.spec.js.map +1 -1
  67. package/dist/esm/__tests__/validations/validateResponseTransformation.spec.js +130 -107
  68. package/dist/esm/__tests__/validations/validateResponseTransformation.spec.js.map +1 -1
  69. package/dist/esm/index.js +22 -22
  70. package/dist/esm/index.js.map +1 -1
  71. package/dist/esm/lib/corvid-entity/index.js +6 -10
  72. package/dist/esm/lib/corvid-entity/index.js.map +1 -1
  73. package/dist/esm/lib/getArgumentCardinality.js +15 -21
  74. package/dist/esm/lib/getArgumentCardinality.js.map +1 -1
  75. package/dist/esm/lib/helpers.js +26 -40
  76. package/dist/esm/lib/helpers.js.map +1 -1
  77. package/dist/esm/lib/transformations/common.js +2 -5
  78. package/dist/esm/lib/transformations/common.js.map +1 -1
  79. package/dist/esm/lib/transformations/constants.js +2 -2
  80. package/dist/esm/lib/transformations/constants.js.map +1 -1
  81. package/dist/esm/lib/transformations/custom-functions.js +11 -14
  82. package/dist/esm/lib/transformations/custom-functions.js.map +1 -1
  83. package/dist/esm/lib/transformations/preset/create.js +1 -4
  84. package/dist/esm/lib/transformations/preset/create.js.map +1 -1
  85. package/dist/esm/lib/transformations/preset/delete.js +9 -13
  86. package/dist/esm/lib/transformations/preset/delete.js.map +1 -1
  87. package/dist/esm/lib/transformations/preset/get.js +1 -4
  88. package/dist/esm/lib/transformations/preset/get.js.map +1 -1
  89. package/dist/esm/lib/transformations/preset/list.js +1 -3
  90. package/dist/esm/lib/transformations/preset/list.js.map +1 -1
  91. package/dist/esm/lib/transformations/preset/query.js +17 -24
  92. package/dist/esm/lib/transformations/preset/query.js.map +1 -1
  93. package/dist/esm/lib/transformations/preset/update.js +3 -4
  94. package/dist/esm/lib/transformations/preset/update.js.map +1 -1
  95. package/dist/esm/lib/transformations/reduceTransformation.js +33 -44
  96. package/dist/esm/lib/transformations/reduceTransformation.js.map +1 -1
  97. package/dist/esm/lib/transformations/validations/common.js +17 -20
  98. package/dist/esm/lib/transformations/validations/common.js.map +1 -1
  99. package/dist/esm/lib/transformations/validations/validateRequestTransformation.js +35 -44
  100. package/dist/esm/lib/transformations/validations/validateRequestTransformation.js.map +1 -1
  101. package/dist/esm/lib/transformations/validations/validateResponseTransformation.js +57 -69
  102. package/dist/esm/lib/transformations/validations/validateResponseTransformation.js.map +1 -1
  103. package/dist/tsconfig.tsbuildinfo +1 -1
  104. package/package.json +6 -6
@@ -1,84 +1,80 @@
1
1
  import { aString } from '@wix/motion-runtime-test-context';
2
2
  import { times } from 'lodash';
3
3
  import { preset } from '../../..';
4
- var _a = preset.update, buildRequestTransformation = _a.buildRequestTransformation, buildResponseTransformation = _a.buildResponseTransformation;
5
- describe('update-method transformations', function () {
6
- describe('buildRequestTransformation', function () {
7
- var requestMessageOptionsPath = aString();
8
- var requestMessageEntityPath = aString();
9
- var requestMessageEntityIdentifierField = aString();
10
- test('creates a transformation mapping args into requestMessageIdentifierPath and requestMessageEntityPath', function () {
11
- var _a, _b;
12
- var transformedObject = buildRequestTransformation({
13
- requestMessageEntityIdentifierField: requestMessageEntityIdentifierField,
14
- requestMessageEntityPath: requestMessageEntityPath,
4
+ const { update: { buildRequestTransformation, buildResponseTransformation }, } = preset;
5
+ describe('update-method transformations', () => {
6
+ describe('buildRequestTransformation', () => {
7
+ const requestMessageOptionsPath = aString();
8
+ const requestMessageEntityPath = aString();
9
+ const requestMessageEntityIdentifierField = aString();
10
+ test('creates a transformation mapping args into requestMessageIdentifierPath and requestMessageEntityPath', () => {
11
+ const transformedObject = buildRequestTransformation({
12
+ requestMessageEntityIdentifierField,
13
+ requestMessageEntityPath,
14
+ });
15
+ expect(transformedObject).toStrictEqual({
16
+ [requestMessageEntityPath]: {
17
+ [requestMessageEntityIdentifierField]: '$[0]',
18
+ '*': '$[1]',
19
+ },
15
20
  });
16
- expect(transformedObject).toStrictEqual((_a = {},
17
- _a[requestMessageEntityPath] = (_b = {},
18
- _b[requestMessageEntityIdentifierField] = '$[0]',
19
- _b['*'] = '$[1]',
20
- _b),
21
- _a));
22
21
  });
23
- test("creates a transformation that maps the 3rd argument into requestMessageOptionsPath when provided", function () {
24
- var _a, _b;
25
- var transformedObject = buildRequestTransformation({
26
- requestMessageEntityIdentifierField: requestMessageEntityIdentifierField,
27
- requestMessageEntityPath: requestMessageEntityPath,
28
- requestMessageOptionsPath: requestMessageOptionsPath,
22
+ test(`creates a transformation that maps the 3rd argument into requestMessageOptionsPath when provided`, () => {
23
+ const transformedObject = buildRequestTransformation({
24
+ requestMessageEntityIdentifierField,
25
+ requestMessageEntityPath,
26
+ requestMessageOptionsPath,
27
+ });
28
+ expect(transformedObject).toStrictEqual({
29
+ [requestMessageEntityPath]: {
30
+ [requestMessageEntityIdentifierField]: '$[0]',
31
+ '*': '$[1]',
32
+ },
33
+ [requestMessageOptionsPath]: '$[2]',
29
34
  });
30
- expect(transformedObject).toStrictEqual((_a = {},
31
- _a[requestMessageEntityPath] = (_b = {},
32
- _b[requestMessageEntityIdentifierField] = '$[0]',
33
- _b['*'] = '$[1]',
34
- _b),
35
- _a[requestMessageOptionsPath] = '$[2]',
36
- _a));
37
35
  });
38
- test('supports nested paths for requestMessageEntityPath and requestMessageOptionsPath', function () {
39
- var _a, _b, _c, _d;
36
+ test('supports nested paths for requestMessageEntityPath and requestMessageOptionsPath', () => {
40
37
  // @ts-expect-error
41
- var requestMessageEntityPathSegments = times(2, aString);
38
+ const requestMessageEntityPathSegments = times(2, aString);
42
39
  // @ts-expect-error
43
- var optionsPathSegments = times(2, aString);
44
- var transformationObject = buildRequestTransformation({
45
- requestMessageEntityIdentifierField: requestMessageEntityIdentifierField,
40
+ const optionsPathSegments = times(2, aString);
41
+ const transformationObject = buildRequestTransformation({
42
+ requestMessageEntityIdentifierField,
46
43
  requestMessageEntityPath: requestMessageEntityPathSegments.join('.'),
47
44
  requestMessageOptionsPath: optionsPathSegments.join('.'),
48
45
  });
49
- expect(transformationObject).toStrictEqual((_a = {},
50
- _a[requestMessageEntityPathSegments[0]] = (_b = {},
51
- _b[requestMessageEntityPathSegments[1]] = (_c = {},
52
- _c[requestMessageEntityIdentifierField] = '$[0]',
53
- _c['*'] = '$[1]',
54
- _c),
55
- _b),
56
- _a[optionsPathSegments[0]] = (_d = {}, _d[optionsPathSegments[1]] = '$[2]', _d),
57
- _a));
46
+ expect(transformationObject).toStrictEqual({
47
+ [requestMessageEntityPathSegments[0]]: {
48
+ [requestMessageEntityPathSegments[1]]: {
49
+ [requestMessageEntityIdentifierField]: '$[0]',
50
+ '*': '$[1]',
51
+ },
52
+ },
53
+ [optionsPathSegments[0]]: { [optionsPathSegments[1]]: '$[2]' },
54
+ });
58
55
  });
59
- test('supports shared paths for requestMessageEntityPath and requestMessageOptionsPath', function () {
60
- var _a, _b;
61
- var sharedPath = aString();
62
- var transformationObject = buildRequestTransformation({
63
- requestMessageEntityIdentifierField: requestMessageEntityIdentifierField,
56
+ test('supports shared paths for requestMessageEntityPath and requestMessageOptionsPath', () => {
57
+ const sharedPath = aString();
58
+ const transformationObject = buildRequestTransformation({
59
+ requestMessageEntityIdentifierField,
64
60
  requestMessageEntityPath: sharedPath,
65
61
  requestMessageOptionsPath: sharedPath,
66
62
  });
67
- expect(transformationObject).toStrictEqual((_a = {},
68
- _a[sharedPath] = (_b = {},
69
- _b[requestMessageEntityIdentifierField] = '$[0]',
70
- _b['*'] = ['$[1]', '$[2]'],
71
- _b),
72
- _a));
63
+ expect(transformationObject).toStrictEqual({
64
+ [sharedPath]: {
65
+ [requestMessageEntityIdentifierField]: '$[0]',
66
+ '*': ['$[1]', '$[2]'],
67
+ },
68
+ });
73
69
  });
74
70
  });
75
- describe('buildResponseTransformation', function () {
76
- test('unwraps the value of the provided property-path', function () {
77
- var responseMessageResultPath = aString();
78
- var transformationString = buildResponseTransformation({
79
- responseMessageResultPath: responseMessageResultPath,
71
+ describe('buildResponseTransformation', () => {
72
+ test('unwraps the value of the provided property-path', () => {
73
+ const responseMessageResultPath = aString();
74
+ const transformationString = buildResponseTransformation({
75
+ responseMessageResultPath,
80
76
  });
81
- expect(transformationString).toStrictEqual("$.".concat(responseMessageResultPath));
77
+ expect(transformationString).toStrictEqual(`$.${responseMessageResultPath}`);
82
78
  });
83
79
  });
84
80
  });
@@ -1 +1 @@
1
- {"version":3,"file":"update-transformation.spec.js","sourceRoot":"","sources":["../../../../../src/__tests__/transformations/preset/update-transformation.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAE/B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGhC,IAAA,KACE,MAAM,OAD2D,EAAzD,0BAA0B,gCAAA,EAAE,2BAA2B,iCAAE,CAC1D;AAEX,QAAQ,CAAC,+BAA+B,EAAE;IACxC,QAAQ,CAAC,4BAA4B,EAAE;QACrC,IAAM,yBAAyB,GAAG,OAAO,EAAE,CAAC;QAC5C,IAAM,wBAAwB,GAAG,OAAO,EAAE,CAAC;QAC3C,IAAM,mCAAmC,GAAG,OAAO,EAAE,CAAC;QAEtD,IAAI,CAAC,sGAAsG,EAAE;;YAC3G,I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gBACD,GAAC,mBAAmB,CAAC,CAAC,CAAC,cAAK,GAAC,mBAAmB,CAAC,CAAC,CAAC,IAAG,MAAM,KAAE;oBAC9D,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,kFAAkF,EAAE;;YACvF,IAAM,UAAU,GAAG,OAAO,EAAE,CAAC;YAE7B,IAAM,oBAAoB,GAAG,0BAA0B,CAAC;gBACtD,mCAAmC,qCAAA;gBACnC,wBAAwB,EAAE,UAAU;gBACpC,yBAAyB,EAAE,UAAU;aACtC,CAAC,CAAC;YAEH,MAAM,CAAC,oBAAoB,CAAC,CAAC,aAAa;gBACxC,GAAC,UAAU;oBACT,GAAC,mCAAmC,IAAG,MAAM;oBAC7C,OAAG,GAAE,CAAC,MAAM,EAAE,MAAM,CAAC;uBACtB;oBACD,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,6BAA6B,EAAE;QACtC,IAAI,CAAC,iDAAiD,EAAE;YACtD,IAAM,yBAAyB,GAAG,OAAO,EAAE,CAAC;YAE5C,IAAM,oBAAoB,GAAG,2BAA2B,CAAC;gBACvD,yBAAyB,2BAAA;aAC1B,CAAC,CAAC;YAEH,MAAM,CAAC,oBAAoB,CAAC,CAAC,aAAa,CACxC,YAAK,yBAAyB,CAAE,CACjC,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"update-transformation.spec.js","sourceRoot":"","sources":["../../../../../src/__tests__/transformations/preset/update-transformation.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAE/B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,EACJ,MAAM,EAAE,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,GACpE,GAAG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oB,CAAC,CAAC,aAAa,CACxC,KAAK,yBAAyB,EAAE,CACjC,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,40 +1,38 @@
1
- import { __makeTemplateObject } from "tslib";
2
1
  import { aNumber, aString } from '@wix/motion-runtime-test-context';
3
2
  import { times } from 'lodash';
4
3
  import { validation } from '../..';
5
- var validateRequestTransformation = validation.validateRequestTransformation;
6
- describe('validateRequestTransformation', function () {
7
- describe('valid transformations', function () {
8
- var validResults = { isValid: true, validationErrors: [] };
9
- test('returns valid transformation response for a valid simple transformation', function () {
10
- var validTransformation = '$[0].a.b.c';
4
+ const { validateRequestTransformation } = validation;
5
+ describe('validateRequestTransformation', () => {
6
+ describe('valid transformations', () => {
7
+ const validResults = { isValid: true, validationErrors: [] };
8
+ test('returns valid transformation response for a valid simple transformation', () => {
9
+ const validTransformation = '$[0].a.b.c';
11
10
  expect(validateRequestTransformation(validTransformation)).toStrictEqual(validResults);
12
11
  });
13
- test('returns valid transformation response for a valid complex transformation', function () {
14
- var validTransformation = { a: '$[0].a.b.c' };
12
+ test('returns valid transformation response for a valid complex transformation', () => {
13
+ const validTransformation = { a: '$[0].a.b.c' };
15
14
  expect(validateRequestTransformation(validTransformation)).toStrictEqual(validResults);
16
15
  });
17
16
  });
18
- describe('invalid transformations', function () {
19
- var validationErrorWith = function (_a) {
20
- var parentPath = _a.parentPath, invalidValue = _a.invalidValue, description = _a.description;
21
- return ({
22
- isValid: false,
23
- validationErrors: expect.arrayContaining([
24
- expect.objectContaining({
25
- parentPath: parentPath,
26
- invalidValue: invalidValue,
27
- description: description,
28
- }),
29
- ]),
30
- });
31
- };
32
- describe('invalid complex-transformation keys', function () {
33
- test.each(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n description | transformationKey | expectedValidationMessage\n ", " | ", " | ", "\n ", " | ", " | ", "\n "], ["\n description | transformationKey | expectedValidationMessage\n ", " | ", " | ", "\n ", " | ", " | ", "\n "])), 'refers to an argument index', '$[0]', "must start with '$.'", 'refers to a custom function', '#someFunction', 'cannot be a custom function call')('returns a validation error when a transformation value segment $description', function (_a) {
34
- var _b;
35
- var transformationKey = _a.transformationKey, expectedValidationMessage = _a.expectedValidationMessage;
36
- var transformation = {
37
- d: { e: { f: (_b = {}, _b[transformationKey] = '$[0].a.b.c', _b) } },
17
+ describe('invalid transformations', () => {
18
+ const validationErrorWith = ({ parentPath, invalidValue, description, }) => ({
19
+ isValid: false,
20
+ validationErrors: expect.arrayContaining([
21
+ expect.objectContaining({
22
+ parentPath,
23
+ invalidValue,
24
+ description,
25
+ }),
26
+ ]),
27
+ });
28
+ describe('invalid complex-transformation keys', () => {
29
+ test.each `
30
+ description | transformationKey | expectedValidationMessage
31
+ ${'refers to an argument index'} | ${'$[0]'} | ${"must start with '$.'"}
32
+ ${'refers to a custom function'} | ${'#someFunction'} | ${'cannot be a custom function call'}
33
+ `('returns a validation error when a transformation value segment $description', ({ transformationKey, expectedValidationMessage }) => {
34
+ const transformation = {
35
+ d: { e: { f: { [transformationKey]: '$[0].a.b.c' } } },
38
36
  '*': '$[1]',
39
37
  };
40
38
  expect(validateRequestTransformation(transformation)).toStrictEqual(validationErrorWith({
@@ -44,18 +42,20 @@ describe('validateRequestTransformation', function () {
44
42
  }));
45
43
  });
46
44
  });
47
- describe('invalid transformations values', function () {
48
- describe('omit transformation', function () {
49
- var parentKey = aString();
50
- describe('invalid source', function () {
51
- var _a;
52
- var invalidSourceValue = '$[x].a.b.c';
53
- var invalidSourceTransformation = {
45
+ describe('invalid transformations values', () => {
46
+ describe('omit transformation', () => {
47
+ const parentKey = aString();
48
+ describe('invalid source', () => {
49
+ const invalidSourceValue = '$[x].a.b.c';
50
+ const invalidSourceTransformation = {
54
51
  '@source': invalidSourceValue,
55
- '@omit': times(2, function () { return aString(); }),
52
+ '@omit': times(2, () => aString()),
56
53
  };
57
- test.each(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n description | invalidTransformation | expectedParentPath\n ", " | ", " | ", "\n ", " | ", " | ", "\n "], ["\n description | invalidTransformation | expectedParentPath\n ", " | ", " | ", "\n ", " | ", " | ", "\n "])), 'top level', invalidSourceTransformation, '@source', 'nested', (_a = {}, _a[parentKey] = invalidSourceTransformation, _a), "".concat(parentKey, ".@source"))('returns a validation error when the @source value is invalid', function (_a) {
58
- var invalidTransformation = _a.invalidTransformation, expectedParentPath = _a.expectedParentPath;
54
+ test.each `
55
+ description | invalidTransformation | expectedParentPath
56
+ ${'top level'} | ${invalidSourceTransformation} | ${'@source'}
57
+ ${'nested'} | ${{ [parentKey]: invalidSourceTransformation }} | ${`${parentKey}.@source`}
58
+ `('returns a validation error when the @source value is invalid', ({ invalidTransformation, expectedParentPath }) => {
59
59
  expect(validateRequestTransformation(invalidTransformation)).toStrictEqual(validationErrorWith({
60
60
  parentPath: expectedParentPath,
61
61
  invalidValue: invalidSourceValue,
@@ -63,18 +63,20 @@ describe('validateRequestTransformation', function () {
63
63
  }));
64
64
  });
65
65
  });
66
- describe('invalid @omit', function () {
67
- var _a, _b, _c;
68
- var transformationWithOmitValue = function (value) { return ({
66
+ describe('invalid @omit', () => {
67
+ const transformationWithOmitValue = (value) => ({
69
68
  '@source': '$[0].a.b.c',
70
69
  '@omit': value,
71
- }); };
72
- var nonArray = aString();
73
- var nonStringArray = times(2, function () { return aNumber(); });
74
- var arrayWithInvalidPaths = ['a.b.c', aString()];
75
- describe.each(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n description | invalidTransformation | expectedParentPath\n ", " | ", " | ", "\n ", " | ", " | ", "\n "], ["\n description | invalidTransformation | expectedParentPath\n ", " | ", " | ", "\n ", " | ", " | ", "\n "])), 'top level', transformationWithOmitValue(nonArray), '@omit', 'nested', (_a = {}, _a[parentKey] = transformationWithOmitValue(nonArray), _a), "".concat(parentKey, ".@omit"))('@omit is not an array', function (_a) {
76
- var invalidTransformation = _a.invalidTransformation, expectedParentPath = _a.expectedParentPath;
77
- test('returns a validation error', function () {
70
+ });
71
+ const nonArray = aString();
72
+ const nonStringArray = times(2, () => aNumber());
73
+ const arrayWithInvalidPaths = ['a.b.c', aString()];
74
+ describe.each `
75
+ description | invalidTransformation | expectedParentPath
76
+ ${'top level'} | ${transformationWithOmitValue(nonArray)} | ${'@omit'}
77
+ ${'nested'} | ${{ [parentKey]: transformationWithOmitValue(nonArray) }} | ${`${parentKey}.@omit`}
78
+ `('@omit is not an array', ({ invalidTransformation, expectedParentPath }) => {
79
+ test('returns a validation error', () => {
78
80
  expect(validateRequestTransformation(invalidTransformation)).toStrictEqual(validationErrorWith({
79
81
  parentPath: expectedParentPath,
80
82
  invalidValue: nonArray,
@@ -82,9 +84,12 @@ describe('validateRequestTransformation', function () {
82
84
  }));
83
85
  });
84
86
  });
85
- describe.each(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n description | invalidTransformation | expectedParentPath\n ", " | ", " | ", "\n ", " | ", " | ", "\n "], ["\n description | invalidTransformation | expectedParentPath\n ", " | ", " | ", "\n ", " | ", " | ", "\n "])), 'top level', transformationWithOmitValue(nonStringArray), '@omit', 'nested', (_b = {}, _b[parentKey] = transformationWithOmitValue(nonStringArray), _b), "".concat(parentKey, ".@omit"))('@omit is an array of non-strings', function (_a) {
86
- var invalidTransformation = _a.invalidTransformation, expectedParentPath = _a.expectedParentPath;
87
- test('return a validation error', function () {
87
+ describe.each `
88
+ description | invalidTransformation | expectedParentPath
89
+ ${'top level'} | ${transformationWithOmitValue(nonStringArray)} | ${'@omit'}
90
+ ${'nested'} | ${{ [parentKey]: transformationWithOmitValue(nonStringArray) }} | ${`${parentKey}.@omit`}
91
+ `('@omit is an array of non-strings', ({ invalidTransformation, expectedParentPath }) => {
92
+ test('return a validation error', () => {
88
93
  expect(validateRequestTransformation(invalidTransformation)).toStrictEqual(validationErrorWith({
89
94
  parentPath: expectedParentPath,
90
95
  invalidValue: nonStringArray,
@@ -93,10 +98,13 @@ describe('validateRequestTransformation', function () {
93
98
  });
94
99
  });
95
100
  /* eslint-disable max-len */
96
- describe.each(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n description | invalidTransformation | expectedParentPath\n ", " | ", " | ", "\n ", " | ", " | ", "\n "], ["\n description | invalidTransformation | expectedParentPath\n ", " | ", " | ", "\n ", " | ", " | ", "\n "])), 'top level', transformationWithOmitValue(arrayWithInvalidPaths), '@omit', 'nested', (_c = {}, _c[parentKey] = transformationWithOmitValue(arrayWithInvalidPaths), _c), "".concat(parentKey, ".@omit"))('@omit is an array with invalid string paths', function (_a) {
97
- var description = _a.description, invalidTransformation = _a.invalidTransformation, expectedParentPath = _a.expectedParentPath;
101
+ describe.each `
102
+ description | invalidTransformation | expectedParentPath
103
+ ${'top level'} | ${transformationWithOmitValue(arrayWithInvalidPaths)} | ${'@omit'}
104
+ ${'nested'} | ${{ [parentKey]: transformationWithOmitValue(arrayWithInvalidPaths) }} | ${`${parentKey}.@omit`}
105
+ `('@omit is an array with invalid string paths', ({ description, invalidTransformation, expectedParentPath }) => {
98
106
  /* eslint-enable max-len */
99
- test("returns a validation error for invalid ".concat(description, " transformation"), function () {
107
+ test(`returns a validation error for invalid ${description} transformation`, () => {
100
108
  expect(validateRequestTransformation(invalidTransformation)).toStrictEqual(validationErrorWith({
101
109
  parentPath: expectedParentPath,
102
110
  invalidValue: arrayWithInvalidPaths,
@@ -106,10 +114,10 @@ describe('validateRequestTransformation', function () {
106
114
  });
107
115
  });
108
116
  });
109
- describe('custom function expressions', function () {
110
- test('returns a validation error when an invalid custom function-name is used', function () {
111
- var invalidCustomFunctionCallExpression = '#1a';
112
- var transformation = {
117
+ describe('custom function expressions', () => {
118
+ test('returns a validation error when an invalid custom function-name is used', () => {
119
+ const invalidCustomFunctionCallExpression = '#1a';
120
+ const transformation = {
113
121
  a: { b: { c: invalidCustomFunctionCallExpression } },
114
122
  };
115
123
  expect(validateRequestTransformation(transformation)).toStrictEqual(validationErrorWith({
@@ -118,9 +126,9 @@ describe('validateRequestTransformation', function () {
118
126
  description: 'contains an invalid custom function expression',
119
127
  }));
120
128
  });
121
- test('returns a validation error when a custom function argument is invalid for request transformation', function () {
122
- var invalidCustomFunctionExpression = '#someFunction($.id)';
123
- var transformation = {
129
+ test('returns a validation error when a custom function argument is invalid for request transformation', () => {
130
+ const invalidCustomFunctionExpression = '#someFunction($.id)';
131
+ const transformation = {
124
132
  a: { b: { c: invalidCustomFunctionExpression } },
125
133
  };
126
134
  expect(validateRequestTransformation(transformation)).toStrictEqual(validationErrorWith({
@@ -129,10 +137,10 @@ describe('validateRequestTransformation', function () {
129
137
  description: 'must start with $[N] where N is an index',
130
138
  }));
131
139
  });
132
- describe('#constant function', function () {
133
- test('returns a validation error when passed value is not a valid json value', function () {
134
- var invalidCustomFunctionExpression = '#constant(not-json)';
135
- var transformation = {
140
+ describe('#constant function', () => {
141
+ test('returns a validation error when passed value is not a valid json value', () => {
142
+ const invalidCustomFunctionExpression = '#constant(not-json)';
143
+ const transformation = {
136
144
  a: { b: { c: invalidCustomFunctionExpression } },
137
145
  };
138
146
  expect(validateRequestTransformation(transformation)).toStrictEqual(validationErrorWith({
@@ -141,8 +149,8 @@ describe('validateRequestTransformation', function () {
141
149
  description: 'must be a valid json value',
142
150
  }));
143
151
  });
144
- test('allows passing non json-path arguments to the #constant function', function () {
145
- var transformation = { a: { b: { c: '#constant("abc")' } } };
152
+ test('allows passing non json-path arguments to the #constant function', () => {
153
+ const transformation = { a: { b: { c: '#constant("abc")' } } };
146
154
  expect(validateRequestTransformation(transformation)).toStrictEqual({
147
155
  isValid: true,
148
156
  validationErrors: [],
@@ -151,19 +159,24 @@ describe('validateRequestTransformation', function () {
151
159
  });
152
160
  });
153
161
  /* eslint-disable max-len */
154
- describe.each(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n description | transformationValue | expectedValidationMessage\n ", " | ", " | ", "\n ", " | ", " | ", "\n ", " | ", " | ", "\n ", " | ", " | ", "\n "], ["\n description | transformationValue | expectedValidationMessage\n ", " | ", " | ", "\n ", " | ", " | ", "\n ", " | ", " | ", "\n ", " | ", " | ", "\n "])), 'does not start with $[N] where N is a numeric index', '$[x].a.b.c', 'must start with $[N] where N is an index', 'is not a valid json-path', '@', 'must start with $[N] where N is an index', 'has several arguments referred to in the transformation', '$[0].$[1]', 'must have a single argument-index as the first path segment', 'refers to * in the path', '$[0].a.b.*', 'cannot refer to the * operator')(
162
+ describe.each `
163
+ description | transformationValue | expectedValidationMessage
164
+ ${'does not start with $[N] where N is a numeric index'} | ${'$[x].a.b.c'} | ${'must start with $[N] where N is an index'}
165
+ ${'is not a valid json-path'} | ${'@'} | ${'must start with $[N] where N is an index'}
166
+ ${'has several arguments referred to in the transformation'} | ${'$[0].$[1]'} | ${'must have a single argument-index as the first path segment'}
167
+ ${'refers to * in the path'} | ${'$[0].a.b.*'} | ${'cannot refer to the * operator'}
168
+ `(
155
169
  /* eslint-enable max-len */
156
- 'returns a validation error when a transformation value segment $description', function (_a) {
157
- var transformationValue = _a.transformationValue, expectedValidationMessage = _a.expectedValidationMessage;
158
- test('simple transformation', function () {
170
+ 'returns a validation error when a transformation value segment $description', ({ transformationValue, expectedValidationMessage }) => {
171
+ test('simple transformation', () => {
159
172
  expect(validateRequestTransformation(transformationValue)).toStrictEqual(validationErrorWith({
160
173
  parentPath: null,
161
174
  invalidValue: transformationValue,
162
175
  description: expectedValidationMessage,
163
176
  }));
164
177
  });
165
- test('complex transformation', function () {
166
- var transformation = { a: { b: { c: transformationValue } } };
178
+ test('complex transformation', () => {
179
+ const transformation = { a: { b: { c: transformationValue } } };
167
180
  expect(validateRequestTransformation(transformation)).toStrictEqual(validationErrorWith({
168
181
  parentPath: 'a.b.c',
169
182
  invalidValue: transformationValue,
@@ -171,20 +184,20 @@ describe('validateRequestTransformation', function () {
171
184
  }));
172
185
  });
173
186
  });
174
- describe('special fields', function () {
175
- describe.each(['id', 'createdDate', 'updatedDate'])('%s', function (specialField) {
176
- var transformationValue = "$[0].a.b.".concat(specialField);
187
+ describe('special fields', () => {
188
+ describe.each(['id', 'createdDate', 'updatedDate'])('%s', (specialField) => {
189
+ const transformationValue = `$[0].a.b.${specialField}`;
177
190
  // eslint-disable-next-line max-len
178
- var expectedValidationMessage = "cannot refer to ".concat(specialField, " field, consider using _").concat(specialField, " instead");
179
- test('simple transformation', function () {
191
+ const expectedValidationMessage = `cannot refer to ${specialField} field, consider using _${specialField} instead`;
192
+ test('simple transformation', () => {
180
193
  expect(validateRequestTransformation(transformationValue)).toStrictEqual(validationErrorWith({
181
194
  parentPath: null,
182
195
  invalidValue: transformationValue,
183
196
  description: expectedValidationMessage,
184
197
  }));
185
198
  });
186
- test('complex transformation', function () {
187
- var transformation = { a: { b: { c: transformationValue } } };
199
+ test('complex transformation', () => {
200
+ const transformation = { a: { b: { c: transformationValue } } };
188
201
  expect(validateRequestTransformation(transformation)).toStrictEqual(validationErrorWith({
189
202
  parentPath: 'a.b.c',
190
203
  invalidValue: transformationValue,
@@ -196,5 +209,4 @@ describe('validateRequestTransformation', function () {
196
209
  });
197
210
  });
198
211
  });
199
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
200
212
  //# sourceMappingURL=validateRequestTransformation.spec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"validateRequestTransformation.spec.js","sourceRoot":"","sources":["../../../../src/__tests__/validations/validateRequestTransformation.spec.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE3B,IAAA,6BAA6B,GAAK,UAAU,8BAAf,CAAgB;AAErD,QAAQ,CAAC,+BAA+B,EAAE;IACxC,QAAQ,CAAC,uBAAuB,EAAE;QAChC,IAAM,YAAY,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,EAAE,EAAE,CAAC;QAE7D,IAAI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