@contember/client-content 2.0.0-alpha.32 → 2.0.0-alpha.36

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 (47) hide show
  1. package/dist/development/src/ContentClient.cjs.map +1 -1
  2. package/dist/development/src/ContentClient.js.map +1 -1
  3. package/dist/development/src/ContentQueryBuilder.cjs.map +1 -1
  4. package/dist/development/src/ContentQueryBuilder.js.map +1 -1
  5. package/dist/development/src/nodes/ContentEntitySelection.cjs.map +1 -1
  6. package/dist/development/src/nodes/ContentEntitySelection.js.map +1 -1
  7. package/dist/development/src/nodes/ContentOperation.cjs.map +1 -1
  8. package/dist/development/src/nodes/ContentOperation.js.map +1 -1
  9. package/dist/development/src/utils/ContentOperationSet.cjs.map +1 -1
  10. package/dist/development/src/utils/ContentOperationSet.js.map +1 -1
  11. package/dist/development/src/utils/createListArgs.cjs.map +1 -1
  12. package/dist/development/src/utils/createListArgs.js.map +1 -1
  13. package/dist/development/src/utils/createMutationOperationSet.cjs.map +1 -1
  14. package/dist/development/src/utils/createMutationOperationSet.js.map +1 -1
  15. package/dist/development/src/utils/createQueryOperationSet.cjs.map +1 -1
  16. package/dist/development/src/utils/createQueryOperationSet.js.map +1 -1
  17. package/dist/development/src/utils/createTypedArgs.cjs.map +1 -1
  18. package/dist/development/src/utils/createTypedArgs.js.map +1 -1
  19. package/dist/development/src/utils/mutationFragments.cjs.map +1 -1
  20. package/dist/development/src/utils/mutationFragments.js.map +1 -1
  21. package/dist/production/src/ContentClient.cjs.map +1 -1
  22. package/dist/production/src/ContentClient.js.map +1 -1
  23. package/dist/production/src/ContentQueryBuilder.cjs.map +1 -1
  24. package/dist/production/src/ContentQueryBuilder.js.map +1 -1
  25. package/dist/production/src/nodes/ContentEntitySelection.cjs.map +1 -1
  26. package/dist/production/src/nodes/ContentEntitySelection.js.map +1 -1
  27. package/dist/production/src/nodes/ContentOperation.cjs.map +1 -1
  28. package/dist/production/src/nodes/ContentOperation.js.map +1 -1
  29. package/dist/production/src/utils/ContentOperationSet.cjs.map +1 -1
  30. package/dist/production/src/utils/ContentOperationSet.js.map +1 -1
  31. package/dist/production/src/utils/createListArgs.cjs.map +1 -1
  32. package/dist/production/src/utils/createListArgs.js.map +1 -1
  33. package/dist/production/src/utils/createMutationOperationSet.cjs.map +1 -1
  34. package/dist/production/src/utils/createMutationOperationSet.js.map +1 -1
  35. package/dist/production/src/utils/createQueryOperationSet.cjs.map +1 -1
  36. package/dist/production/src/utils/createQueryOperationSet.js.map +1 -1
  37. package/dist/production/src/utils/createTypedArgs.cjs.map +1 -1
  38. package/dist/production/src/utils/createTypedArgs.js.map +1 -1
  39. package/dist/production/src/utils/mutationFragments.cjs.map +1 -1
  40. package/dist/production/src/utils/mutationFragments.js.map +1 -1
  41. package/dist/types/tsconfig.tsbuildinfo +1 -1
  42. package/package.json +6 -6
  43. package/tests/cases/unit/__snapshots__/mutation.test.ts.snap +1198 -0
  44. package/tests/cases/unit/__snapshots__/query.test.ts.snap +102 -0
  45. package/tests/cases/unit/mutation.test.ts +244 -1199
  46. package/tests/cases/unit/query.test.ts +55 -124
  47. package/tests/cases/unit/types.test.ts +3 -2
@@ -0,0 +1,102 @@
1
+ // Bun Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`queries list 1`] = `
4
+ "query {
5
+ \tauthors: listAuthor {
6
+ \t\tid
7
+ \t\tname
8
+ \t\temail
9
+ \t}
10
+ }
11
+ "
12
+ `;
13
+
14
+ exports[`queries multiple queries 1`] = `
15
+ "query {
16
+ \tauthors: listAuthor {
17
+ \t\tid
18
+ \t\tname
19
+ \t\temail
20
+ \t}
21
+ \tposts: listPost {
22
+ \t\tid
23
+ \t\tpublishedAt
24
+ \t}
25
+ }
26
+ "
27
+ `;
28
+
29
+ exports[`queries single query 1`] = `
30
+ "query {
31
+ \tvalue: listPost {
32
+ \t\tid
33
+ \t\tpublishedAt
34
+ \t}
35
+ }
36
+ "
37
+ `;
38
+
39
+ exports[`queries nested object 1`] = `
40
+ "query {
41
+ \tauthors: listAuthor {
42
+ \t\tid
43
+ \t\tname
44
+ \t\temail
45
+ \t\tposts {
46
+ \t\t\tid
47
+ \t\t\tpublishedAt
48
+ \t\t\ttags {
49
+ \t\t\t\tid
50
+ \t\t\t\tname
51
+ \t\t\t}
52
+ \t\t}
53
+ \t}
54
+ }
55
+ "
56
+ `;
57
+
58
+ exports[`queries nested object args 1`] = `
59
+ "query($PostWhere_0: PostWhere, $Int_1: Int) {
60
+ \tauthors: listAuthor {
61
+ \t\tid
62
+ \t\tname
63
+ \t\temail
64
+ \t\tposts(filter: $PostWhere_0, limit: $Int_1) {
65
+ \t\t\tid
66
+ \t\t\tpublishedAt
67
+ \t\t}
68
+ \t}
69
+ }
70
+ "
71
+ `;
72
+
73
+ exports[`queries list with args:
74
+ \t\t\t"query($AuthorWhere_0: AuthorWhere, $AuthorOrderBy_1: [AuthorOrderBy!], $Int_2: Int, $Int_3: Int) {
75
+ \t\t\t\tauthors: listAuthor(filter: $AuthorWhere_0, orderBy: $AuthorOrderBy_1, limit: $Int_2, offset: $Int_3) {
76
+ \t\t\t\t\tid
77
+ \t\t\t\t\tname
78
+ \t\t\t\t\temail
79
+ \t\t\t\t}
80
+ \t\t\t}
81
+ \t\t\t"
82
+ \t\t 1`] = `
83
+ "query($AuthorWhere_0: AuthorWhere, $AuthorOrderBy_1: [AuthorOrderBy!], $Int_2: Int, $Int_3: Int) {
84
+ \tauthors: listAuthor(filter: $AuthorWhere_0, orderBy: $AuthorOrderBy_1, limit: $Int_2, offset: $Int_3) {
85
+ \t\tid
86
+ \t\tname
87
+ \t\temail
88
+ \t}
89
+ }
90
+ "
91
+ `;
92
+
93
+ exports[`queries get by id 1`] = `
94
+ "query($AuthorUniqueWhere_0: AuthorUniqueWhere!) {
95
+ \tauthors: getAuthor(by: $AuthorUniqueWhere_0) {
96
+ \t\tid
97
+ \t\tname
98
+ \t\temail
99
+ \t}
100
+ }
101
+ "
102
+ `;