@forestadmin/agent 1.0.0-beta.8 → 1.0.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 (149) hide show
  1. package/dist/agent.d.ts +76 -0
  2. package/dist/agent.js +133 -0
  3. package/dist/framework-mounter.d.ts +43 -0
  4. package/dist/framework-mounter.js +157 -0
  5. package/dist/index.d.ts +7 -4
  6. package/dist/index.js +10 -21
  7. package/dist/routes/access/api-chart.d.ts +16 -0
  8. package/dist/routes/access/api-chart.js +47 -0
  9. package/dist/{agent/routes → routes}/access/chart.d.ts +1 -0
  10. package/dist/routes/access/chart.js +162 -0
  11. package/dist/{agent/routes → routes}/access/count-related.d.ts +0 -0
  12. package/dist/routes/access/count-related.js +31 -0
  13. package/dist/{agent/routes → routes}/access/count.d.ts +0 -0
  14. package/dist/routes/access/count.js +31 -0
  15. package/dist/{agent/routes → routes}/access/csv-related.d.ts +0 -0
  16. package/dist/routes/access/csv-related.js +33 -0
  17. package/dist/{agent/routes → routes}/access/csv.d.ts +0 -0
  18. package/dist/routes/access/csv.js +31 -0
  19. package/dist/{agent/routes → routes}/access/get.d.ts +0 -0
  20. package/dist/routes/access/get.js +29 -0
  21. package/dist/{agent/routes → routes}/access/list-related.d.ts +0 -0
  22. package/dist/routes/access/list-related.js +25 -0
  23. package/dist/{agent/routes → routes}/access/list.d.ts +0 -0
  24. package/dist/routes/access/list.js +22 -0
  25. package/dist/{agent/routes → routes}/base-route.d.ts +0 -1
  26. package/dist/routes/base-route.js +13 -0
  27. package/dist/{agent/routes → routes}/collection-route.d.ts +0 -0
  28. package/dist/{agent/routes → routes}/collection-route.js +1 -1
  29. package/dist/{agent/routes → routes}/index.d.ts +0 -0
  30. package/dist/routes/index.js +108 -0
  31. package/dist/{agent/routes → routes}/modification/action.d.ts +0 -1
  32. package/dist/routes/modification/action.js +104 -0
  33. package/dist/routes/modification/associate-related.d.ts +12 -0
  34. package/dist/routes/modification/associate-related.js +51 -0
  35. package/dist/{agent/routes → routes}/modification/create.d.ts +0 -0
  36. package/dist/routes/modification/create.js +83 -0
  37. package/dist/{agent/routes → routes}/modification/delete.d.ts +0 -0
  38. package/dist/routes/modification/delete.js +41 -0
  39. package/dist/{agent/routes → routes}/modification/dissociate-delete-related.d.ts +0 -0
  40. package/dist/routes/modification/dissociate-delete-related.js +89 -0
  41. package/dist/routes/modification/update-field.d.ts +9 -0
  42. package/dist/routes/modification/update-field.js +39 -0
  43. package/dist/{agent/routes → routes}/modification/update-relation.d.ts +0 -0
  44. package/dist/routes/modification/update-relation.js +59 -0
  45. package/dist/{agent/routes → routes}/modification/update.d.ts +0 -0
  46. package/dist/routes/modification/update.js +31 -0
  47. package/dist/{agent/routes → routes}/relation-route.d.ts +0 -0
  48. package/dist/{agent/routes → routes}/relation-route.js +1 -1
  49. package/dist/{agent/routes → routes}/security/authentication.d.ts +1 -3
  50. package/dist/routes/security/authentication.js +74 -0
  51. package/dist/{agent/routes → routes}/security/ip-whitelist.d.ts +0 -0
  52. package/dist/{agent/routes → routes}/security/ip-whitelist.js +1 -1
  53. package/dist/{agent/routes → routes}/security/scope-invalidation.d.ts +0 -0
  54. package/dist/{agent/routes → routes}/security/scope-invalidation.js +1 -1
  55. package/dist/{agent/routes → routes}/system/error-handling.d.ts +2 -0
  56. package/dist/routes/system/error-handling.js +75 -0
  57. package/dist/{agent/routes → routes}/system/healthcheck.d.ts +0 -0
  58. package/dist/{agent/routes → routes}/system/healthcheck.js +1 -1
  59. package/dist/{agent/routes → routes}/system/logger.d.ts +0 -0
  60. package/dist/{agent/routes → routes}/system/logger.js +2 -2
  61. package/dist/{agent/services → services}/index.d.ts +0 -0
  62. package/dist/{agent/services → services}/index.js +2 -2
  63. package/dist/{agent/services → services}/permissions.d.ts +0 -0
  64. package/dist/services/permissions.js +85 -0
  65. package/dist/{agent/services → services}/serializer.d.ts +0 -5
  66. package/dist/services/serializer.js +120 -0
  67. package/dist/types.d.ts +28 -3
  68. package/dist/types.js +21 -1
  69. package/dist/{agent/utils → utils}/body-parser.d.ts +0 -0
  70. package/dist/{agent/utils → utils}/body-parser.js +1 -1
  71. package/dist/utils/condition-tree-parser.d.ts +11 -0
  72. package/dist/utils/condition-tree-parser.js +53 -0
  73. package/dist/{agent/utils → utils}/context-filter-factory.d.ts +0 -0
  74. package/dist/{agent/utils → utils}/context-filter-factory.js +1 -2
  75. package/dist/{agent/utils → utils}/csv-generator.d.ts +2 -2
  76. package/dist/utils/csv-generator.js +39 -0
  77. package/dist/{agent/utils → utils}/csv-route-context.d.ts +0 -0
  78. package/dist/utils/csv-route-context.js +14 -0
  79. package/dist/{agent/utils → utils}/forest-http-api.d.ts +5 -3
  80. package/dist/utils/forest-http-api.js +180 -0
  81. package/dist/{agent/utils → utils}/forest-schema/action-values.d.ts +2 -2
  82. package/dist/utils/forest-schema/action-values.js +144 -0
  83. package/dist/{agent/utils → utils}/forest-schema/emitter.d.ts +2 -2
  84. package/dist/utils/forest-schema/emitter.js +70 -0
  85. package/dist/{agent/utils → utils}/forest-schema/filterable.d.ts +0 -0
  86. package/dist/{agent/utils → utils}/forest-schema/filterable.js +1 -1
  87. package/dist/{agent/utils → utils}/forest-schema/generator-actions.d.ts +1 -1
  88. package/dist/utils/forest-schema/generator-actions.js +99 -0
  89. package/dist/{agent/utils → utils}/forest-schema/generator-collection.d.ts +1 -1
  90. package/dist/{agent/utils → utils}/forest-schema/generator-collection.js +3 -3
  91. package/dist/{agent/utils → utils}/forest-schema/generator-fields.d.ts +1 -0
  92. package/dist/utils/forest-schema/generator-fields.js +160 -0
  93. package/dist/{agent/utils → utils}/forest-schema/generator-segments.d.ts +0 -0
  94. package/dist/{agent/utils → utils}/forest-schema/generator-segments.js +1 -1
  95. package/dist/{agent/utils → utils}/forest-schema/types.d.ts +10 -4
  96. package/dist/{agent/utils → utils}/forest-schema/types.js +1 -1
  97. package/dist/{agent/utils → utils}/forest-schema/validation.d.ts +1 -1
  98. package/dist/utils/forest-schema/validation.js +28 -0
  99. package/dist/{agent/utils → utils}/id.d.ts +0 -0
  100. package/dist/utils/id.js +43 -0
  101. package/dist/{agent/utils/http-driver-options.d.ts → utils/options-validator.d.ts} +4 -5
  102. package/dist/utils/options-validator.js +92 -0
  103. package/dist/{agent/utils → utils}/query-string.d.ts +2 -2
  104. package/dist/utils/query-string.js +134 -0
  105. package/package.json +14 -3
  106. package/CHANGELOG.md +0 -457
  107. package/dist/agent/forestadmin-http-driver.d.ts +0 -34
  108. package/dist/agent/forestadmin-http-driver.js +0 -72
  109. package/dist/agent/routes/access/chart.js +0 -147
  110. package/dist/agent/routes/access/count-related.js +0 -24
  111. package/dist/agent/routes/access/count.js +0 -24
  112. package/dist/agent/routes/access/csv-related.js +0 -33
  113. package/dist/agent/routes/access/csv.js +0 -30
  114. package/dist/agent/routes/access/get.js +0 -28
  115. package/dist/agent/routes/access/list-related.js +0 -26
  116. package/dist/agent/routes/access/list.js +0 -23
  117. package/dist/agent/routes/base-route.js +0 -16
  118. package/dist/agent/routes/index.js +0 -90
  119. package/dist/agent/routes/modification/action.js +0 -103
  120. package/dist/agent/routes/modification/associate-related.d.ts +0 -12
  121. package/dist/agent/routes/modification/associate-related.js +0 -49
  122. package/dist/agent/routes/modification/create.js +0 -81
  123. package/dist/agent/routes/modification/delete.js +0 -40
  124. package/dist/agent/routes/modification/dissociate-delete-related.js +0 -88
  125. package/dist/agent/routes/modification/update-relation.js +0 -53
  126. package/dist/agent/routes/modification/update.js +0 -29
  127. package/dist/agent/routes/security/authentication.js +0 -86
  128. package/dist/agent/routes/system/error-handling.js +0 -56
  129. package/dist/agent/services/permissions.js +0 -79
  130. package/dist/agent/services/serializer.js +0 -120
  131. package/dist/agent/types.d.ts +0 -23
  132. package/dist/agent/types.js +0 -22
  133. package/dist/agent/utils/csv-generator.js +0 -39
  134. package/dist/agent/utils/csv-route-context.js +0 -14
  135. package/dist/agent/utils/forest-http-api.js +0 -173
  136. package/dist/agent/utils/forest-schema/action-values.js +0 -144
  137. package/dist/agent/utils/forest-schema/emitter.js +0 -70
  138. package/dist/agent/utils/forest-schema/generator-actions.js +0 -99
  139. package/dist/agent/utils/forest-schema/generator-fields.js +0 -131
  140. package/dist/agent/utils/forest-schema/validation.js +0 -26
  141. package/dist/agent/utils/http-driver-options.js +0 -93
  142. package/dist/agent/utils/id.js +0 -43
  143. package/dist/agent/utils/query-string.js +0 -130
  144. package/dist/builder/agent.d.ts +0 -82
  145. package/dist/builder/agent.js +0 -123
  146. package/dist/builder/collection.d.ts +0 -148
  147. package/dist/builder/collection.js +0 -226
  148. package/dist/builder/types.d.ts +0 -5
  149. package/dist/builder/types.js +0 -3
@@ -1,226 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const datasource_toolkit_1 = require("@forestadmin/datasource-toolkit");
7
- const filterable_1 = __importDefault(require("../agent/utils/forest-schema/filterable"));
8
- class CollectionBuilder {
9
- constructor(agentBuilder, name) {
10
- this.agentBuilder = agentBuilder;
11
- this.name = name;
12
- }
13
- /**
14
- * Import a field from a many to one or one to one relation.
15
- *
16
- * @param name the name of the field that will be created on the collection
17
- * @param options options to import the field
18
- * @example
19
- * .importField('authorName', { path: 'author:fullName' })
20
- */
21
- importField(name, options) {
22
- const collection = this.agentBuilder.lateComputed.getCollection(this.name);
23
- const schema = datasource_toolkit_1.CollectionUtils.getFieldSchema(collection, options.path);
24
- this.addField(name, {
25
- beforeRelations: options.beforeRelations,
26
- columnType: schema.columnType,
27
- defaultValue: schema.defaultValue,
28
- dependencies: [options.path],
29
- getValues: records => records.map(r => datasource_toolkit_1.RecordUtils.getFieldValue(r, options.path)),
30
- enumValues: schema.enumValues,
31
- });
32
- for (const operator of schema.filterOperators) {
33
- const handler = (value) => ({ field: options.path, operator, value });
34
- this.replaceFieldOperator(name, operator, handler);
35
- }
36
- if (schema.isSortable) {
37
- this.replaceFieldSorting(name, [{ field: options.path, ascending: true }]);
38
- }
39
- return this;
40
- }
41
- /**
42
- * Allow to rename a field of a given collection.
43
- * @param {string} oldName the current name of the field in a given collection
44
- * @param {string} newName the new name of the field
45
- * @example
46
- * .renameField('theCurrentNameOfTheField', 'theNewNameOfTheField');
47
- */
48
- renameField(oldName, newName) {
49
- this.agentBuilder.rename.getCollection(this.name).renameField(oldName, newName);
50
- return this;
51
- }
52
- /**
53
- * Remove field by setting its visibility to false.
54
- * @param {...string[]} names the fields to remove
55
- * @example
56
- * .removeField('aFieldToRemove', 'anOtherFieldToRemove');
57
- */
58
- removeField(...names) {
59
- const collection = this.agentBuilder.publication.getCollection(this.name);
60
- for (const name of names)
61
- collection.changeFieldVisibility(name, false);
62
- return this;
63
- }
64
- /**
65
- * Add a new action on the collection.
66
- * @param {string} name the name of the action
67
- * @param {ActionDefinition} definition the definition of the action
68
- * @example
69
- * .addAction('is live', {
70
- * scope: 'Single',
71
- * execute: async (context, responseBuilder) => {
72
- * return responseBuilder.success(`Is live!`);
73
- * },
74
- * })
75
- */
76
- addAction(name, definition) {
77
- this.agentBuilder.action.getCollection(this.name).addAction(name, definition);
78
- return this;
79
- }
80
- /**
81
- * Add a new field on the collection.
82
- * @param {string} name the name of the field
83
- * @param {FieldDefinition} definition The definition of the field
84
- * @example
85
- * .addField('fullName', {
86
- * columnType: 'String',
87
- * dependencies: ['firstName', 'lastName'],
88
- * getValues: (records) => records.map(record => `${record.lastName} ${record.firstName}`),
89
- * });
90
- */
91
- addField(name, definition) {
92
- const { beforeRelations, ...computedDefinition } = definition;
93
- const collection = definition.beforeRelations
94
- ? this.agentBuilder.earlyComputed.getCollection(this.name)
95
- : this.agentBuilder.lateComputed.getCollection(this.name);
96
- collection.registerComputed(name, computedDefinition);
97
- return this;
98
- }
99
- /**
100
- * Add a relation between two collections.
101
- * @param name name of the new relation
102
- * @param definition definition of the new relation
103
- * @example
104
- * .addRelation('author', {
105
- * type: 'ManyToOne',
106
- * foreignCollection: 'persons',
107
- * foreignKey: 'authorId'
108
- * });
109
- */
110
- addRelation(name, definition) {
111
- this.agentBuilder.relation.getCollection(this.name).addRelation(name, definition);
112
- return this;
113
- }
114
- /**
115
- * Add a new segment on the collection.
116
- * @param {string} name the name of the segment
117
- * @param {SegmentDefinition} definition a function used to generate a condition tree
118
- * or a condition tree
119
- * @example
120
- * .addSegment(
121
- * 'Wrote more than 2 books',
122
- * new ConditionTreeLeaf('booksCount', 'GreaterThan', 2),
123
- * );
124
- */
125
- addSegment(name, definition) {
126
- this.agentBuilder.segment.getCollection(this.name).addSegment(name, definition);
127
- return this;
128
- }
129
- /**
130
- * Enable sorting on a specific field using emulation.
131
- * As for all the emulation method, the field sorting will be done in-memory.
132
- * @param {string} name the name of the field to enable emulation on
133
- * @example
134
- * .emulateFieldSorting('fullName');
135
- */
136
- emulateFieldSorting(name) {
137
- this.agentBuilder.sortEmulate.getCollection(this.name).emulateFieldSorting(name);
138
- return this;
139
- }
140
- /**
141
- * Replace an implementation for the sorting.
142
- * The field sorting will be done by the datasource.
143
- * @param {string} name the name of the field to enable sort
144
- * @param {SortClause[]} equivalentSort the sort equivalent
145
- * @example
146
- * .replaceFieldSorting(
147
- * 'fullName',
148
- * [
149
- * { field: 'firstName', ascending: true },
150
- * { field: 'lastName', ascending: true },
151
- * ]
152
- * )
153
- */
154
- replaceFieldSorting(name, equivalentSort) {
155
- this.agentBuilder.sortEmulate
156
- .getCollection(this.name)
157
- .replaceFieldSorting(name, equivalentSort);
158
- return this;
159
- }
160
- /**
161
- * Enable filtering on a specific field using emulation.
162
- * As for all the emulation method, the field filtering will be done in-memory.
163
- * @param name the name of the field to enable emulation on
164
- * @example
165
- * .emulateFieldFiltering('aField');
166
- */
167
- emulateFieldFiltering(name) {
168
- const collection = this.agentBuilder.lateOpEmulate.getCollection(this.name);
169
- const field = collection.schema.fields[name];
170
- for (const operator of filterable_1.default.getRequiredOperators(field.columnType)) {
171
- if (!field.filterOperators.has(operator)) {
172
- this.emulateFieldOperator(name, operator);
173
- }
174
- }
175
- return this;
176
- }
177
- /**
178
- * Enable filtering on a specific field with a specific operator using emulation.
179
- * As for all the emulation method, the field filtering will be done in-memory.
180
- * @param {string} name the name of the field to enable emulation on
181
- * @param {Operator} operator the operator to emulate
182
- * @example
183
- * .emulateFieldOperator('aField', 'In');
184
- */
185
- emulateFieldOperator(name, operator) {
186
- const collection = this.agentBuilder.earlyOpEmulate.getCollection(this.name).schema.fields[name]
187
- ? this.agentBuilder.earlyOpEmulate.getCollection(this.name)
188
- : this.agentBuilder.lateOpEmulate.getCollection(this.name);
189
- collection.emulateFieldOperator(name, operator);
190
- return this;
191
- }
192
- /**
193
- * Replace an implementation for a specific operator on a specific field.
194
- * The operator replacement will be done by the datasource.
195
- * @param {string} name the name of the field to filter on
196
- * @param {Operator} operator the operator to replace
197
- * @param {OperatorReplacer} replacer the proposed implementation
198
- * @example
199
- * .replaceFieldOperator('booksCount', 'Equal', ({ value }) => new ConditionTreeNot(
200
- * new ConditionTreeLeaf('booksCount', 'Equal', value),
201
- * ));
202
- */
203
- replaceFieldOperator(name, operator, replacer) {
204
- const collection = this.agentBuilder.earlyOpEmulate.getCollection(this.name).schema.fields[name]
205
- ? this.agentBuilder.earlyOpEmulate.getCollection(this.name)
206
- : this.agentBuilder.lateOpEmulate.getCollection(this.name);
207
- collection.replaceFieldOperator(name, operator, replacer);
208
- return this;
209
- }
210
- /**
211
- * Replace the write behavior of a field.
212
- * @param {string} name the name of the field
213
- * @param {WriteDefinition} definition the function or a value to represent the write behavior
214
- * @example
215
- * .replaceFieldWriting('fullName', ({ patch: fullName }) => {
216
- * const [firstName, lastName] = fullName.split(' ');
217
- * return { firstName, lastName };
218
- * });
219
- */
220
- replaceFieldWriting(name, definition) {
221
- this.agentBuilder.write.getCollection(this.name).replaceFieldWriting(name, definition);
222
- return this;
223
- }
224
- }
225
- exports.default = CollectionBuilder;
226
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaW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FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUMsTUFBTSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUM7WUFDOUYsQ0FBQyxDQUFDLElBQUksQ0FBQyxZQUFZLENBQUMsY0FBYyxDQUFDLGFBQWEsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDO1lBQzNELENBQUMsQ0FBQyxJQUFJLENBQUMsWUFBWSxDQUFDLGFBQWEsQ0FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO1FBRTdELFVBQVUsQ0FBQyxvQkFBb0IsQ0FBQyxJQUFJLEVBQUUsUUFBUSxFQUFFLFFBQVEsQ0FBQyxDQUFDO1FBRTFELE9BQU8sSUFBSSxDQUFDO0lBQ2QsQ0FBQztJQUVEOzs7Ozs7Ozs7T0FTRztJQUNILG1CQUFtQixDQUFDLElBQVksRUFBRSxVQUEyQjtRQUMzRCxJQUFJLENBQUMsWUFBWSxDQUFDLEtBQUssQ0FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDLG1CQUFtQixDQUFDLElBQUksRUFBRSxVQUFVLENBQUMsQ0FBQztRQUV2RixPQUFPLElBQUksQ0FBQztJQUNkLENBQUM7Q0FDRjtBQTNQRCxvQ0EyUEMifQ==
@@ -1,5 +0,0 @@
1
- import { ComputedDefinition } from '@forestadmin/datasource-toolkit';
2
- export declare type FieldDefinition = ComputedDefinition & {
3
- beforeRelations?: boolean;
4
- };
5
- //# sourceMappingURL=types.d.ts.map
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYnVpbGRlci90eXBlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=