@garrix82/reactgenie-dsl 1.0.0 → 1.0.2
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.
- package/.env +10 -0
- package/.env.example +17 -0
- package/.github/workflows/publish.yml +20 -0
- package/README.md +5 -1
- package/package.json +1 -5
- package/dist/__test__/dsl-descriptor.test.d.ts +0 -1
- package/dist/__test__/dsl-descriptor.test.js +0 -27
- package/dist/__test__/dsl-descriptor.test.js.map +0 -1
- package/dist/__test__/example_descriptor.d.ts +0 -125
- package/dist/__test__/example_descriptor.js +0 -607
- package/dist/__test__/example_descriptor.js.map +0 -1
- package/dist/__test__/food_descriptor.state.json +0 -1
- package/dist/__test__/food_descriptor.test.d.ts +0 -74
- package/dist/__test__/food_descriptor.test.js +0 -205
- package/dist/__test__/food_descriptor.test.js.map +0 -1
- package/dist/__test__/nl-interpreter-provider-selection.test.d.ts +0 -1
- package/dist/__test__/nl-interpreter-provider-selection.test.js +0 -73
- package/dist/__test__/nl-interpreter-provider-selection.test.js.map +0 -1
- package/dist/__test__/nl-interpreter.test.d.ts +0 -1
- package/dist/__test__/nl-interpreter.test.js +0 -86
- package/dist/__test__/nl-interpreter.test.js.map +0 -1
- package/dist/decorators/__test__/decorators.test.d.ts +0 -1
- package/dist/decorators/__test__/decorators.test.js +0 -182
- package/dist/decorators/__test__/decorators.test.js.map +0 -1
- package/dist/decorators/__test__/inheritance-descriptor.test.d.ts +0 -1
- package/dist/decorators/__test__/inheritance-descriptor.test.js +0 -107
- package/dist/decorators/__test__/inheritance-descriptor.test.js.map +0 -1
- package/dist/dsl/__test__/dsl-interpreter.test.d.ts +0 -1
- package/dist/dsl/__test__/dsl-interpreter.test.js +0 -334
- package/dist/dsl/__test__/dsl-interpreter.test.js.map +0 -1
- package/dist/dsl/__test__/parser.gen.test.d.ts +0 -1
- package/dist/dsl/__test__/parser.gen.test.js +0 -283
- package/dist/dsl/__test__/parser.gen.test.js.map +0 -1
- package/dist/nl/__test__/context-aware-prompt.test.d.ts +0 -1
- package/dist/nl/__test__/context-aware-prompt.test.js +0 -247
- package/dist/nl/__test__/context-aware-prompt.test.js.map +0 -1
- package/dist/nl/__test__/context-selector.test.d.ts +0 -1
- package/dist/nl/__test__/context-selector.test.js +0 -20
- package/dist/nl/__test__/context-selector.test.js.map +0 -1
- package/dist/nl/__test__/nl-parser-groq-transport.test.d.ts +0 -1
- package/dist/nl/__test__/nl-parser-groq-transport.test.js +0 -87
- package/dist/nl/__test__/nl-parser-groq-transport.test.js.map +0 -1
- package/dist/nl/__test__/nl-parser-openai-parity.test.d.ts +0 -1
- package/dist/nl/__test__/nl-parser-openai-parity.test.js +0 -206
- package/dist/nl/__test__/nl-parser-openai-parity.test.js.map +0 -1
- package/dist/nl/__test__/nl-parser-openai-sampling.test.d.ts +0 -1
- package/dist/nl/__test__/nl-parser-openai-sampling.test.js +0 -44
- package/dist/nl/__test__/nl-parser-openai-sampling.test.js.map +0 -1
- package/dist/nl/__test__/nl-parser-openai-transport.test.d.ts +0 -1
- package/dist/nl/__test__/nl-parser-openai-transport.test.js +0 -55
- package/dist/nl/__test__/nl-parser-openai-transport.test.js.map +0 -1
- package/dist/nl/__test__/nl-parser-utils.test.d.ts +0 -1
- package/dist/nl/__test__/nl-parser-utils.test.js +0 -70
- package/dist/nl/__test__/nl-parser-utils.test.js.map +0 -1
- package/dist/nl/__test__/nl-parser.test.d.ts +0 -1
- package/dist/nl/__test__/nl-parser.test.js +0 -64
- package/dist/nl/__test__/nl-parser.test.js.map +0 -1
- package/dist/nl/__test__/parameter-tuning.test.d.ts +0 -1
- package/dist/nl/__test__/parameter-tuning.test.js +0 -95
- package/dist/nl/__test__/parameter-tuning.test.js.map +0 -1
- package/dist/nl/__test__/semantic-parsing-experiment.test.d.ts +0 -1
- package/dist/nl/__test__/semantic-parsing-experiment.test.js +0 -178
- package/dist/nl/__test__/semantic-parsing-experiment.test.js.map +0 -1
- package/dist/nl/llm-monitoring.test.d.ts +0 -5
- package/dist/nl/llm-monitoring.test.js +0 -101
- package/dist/nl/llm-monitoring.test.js.map +0 -1
- package/lib/__test__/dsl-descriptor.test.ts +0 -27
- package/lib/__test__/example_descriptor.ts +0 -762
- package/lib/__test__/food_descriptor.state.json +0 -1
- package/lib/__test__/food_descriptor.test.ts +0 -331
- package/lib/__test__/nl-interpreter-provider-selection.test.ts +0 -126
- package/lib/__test__/nl-interpreter.test.ts +0 -129
- package/lib/decorators/__test__/decorators.test.ts +0 -177
- package/lib/decorators/__test__/inheritance-descriptor.test.ts +0 -92
- package/lib/decorators/decorators.ts +0 -754
- package/lib/decorators/index.ts +0 -2
- package/lib/decorators/store.ts +0 -47
- package/lib/dsl/__test__/dsl-interpreter.test.ts +0 -453
- package/lib/dsl/__test__/parser.gen.test.ts +0 -296
- package/lib/dsl/dsl-interpreter.ts +0 -974
- package/lib/dsl/index.ts +0 -1
- package/lib/dsl/parser.gen.js +0 -1479
- package/lib/dsl/parser.pegjs +0 -130
- package/lib/dsl-descriptor.ts +0 -241
- package/lib/index.ts +0 -5
- package/lib/nl/__test__/context-aware-prompt.test.ts +0 -372
- package/lib/nl/__test__/context-selector.test.ts +0 -27
- package/lib/nl/__test__/nl-parser-groq-transport.test.ts +0 -139
- package/lib/nl/__test__/nl-parser-openai-parity.test.ts +0 -381
- package/lib/nl/__test__/nl-parser-openai-sampling.test.ts +0 -73
- package/lib/nl/__test__/nl-parser-openai-transport.test.ts +0 -79
- package/lib/nl/__test__/nl-parser-utils.test.ts +0 -98
- package/lib/nl/__test__/nl-parser.test.ts +0 -119
- package/lib/nl/__test__/parameter-tuning.test.ts +0 -137
- package/lib/nl/__test__/semantic-parsing-experiment.test.ts +0 -260
- package/lib/nl/context-selector.ts +0 -123
- package/lib/nl/index.ts +0 -19
- package/lib/nl/llm-monitoring.test.ts +0 -136
- package/lib/nl/llm-monitoring.ts +0 -339
- package/lib/nl/nl-parser-groq.ts +0 -510
- package/lib/nl/nl-parser-utils.ts +0 -310
- package/lib/nl/nl-parser.ts +0 -616
- package/lib/nl/prompt-gen.ts +0 -607
- package/lib/nl/prompt-res.ts +0 -207
- package/lib/nl-interpreter.ts +0 -262
|
@@ -1,607 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var DateTime_1, Food_1, Order_1, Restaurant_1;
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.examples = exports.classDescriptions = exports.allDescriptors = exports.Restaurant = exports.Order = exports.Food = exports.DateTime = exports.recentBooking = void 0;
|
|
14
|
-
const dsl_descriptor_1 = require("../dsl-descriptor");
|
|
15
|
-
const decorators_1 = require("../decorators");
|
|
16
|
-
exports.recentBooking = null;
|
|
17
|
-
let DateTime = class DateTime extends dsl_descriptor_1.HelperClass {
|
|
18
|
-
static { DateTime_1 = this; }
|
|
19
|
-
updateDate() {
|
|
20
|
-
this.year = this._date.getFullYear();
|
|
21
|
-
this.month = this._date.getMonth() + 1;
|
|
22
|
-
this.day = this._date.getDate();
|
|
23
|
-
this.hour = this._date.getHours();
|
|
24
|
-
this.minute = this._date.getMinutes();
|
|
25
|
-
this.dayOfWeek = this._date.toLocaleDateString("en-US", { weekday: "long" });
|
|
26
|
-
}
|
|
27
|
-
static today() {
|
|
28
|
-
return DateTime_1.CreateObject({
|
|
29
|
-
year: 2020,
|
|
30
|
-
month: 2,
|
|
31
|
-
day: 4,
|
|
32
|
-
hour: 12,
|
|
33
|
-
minute: 0,
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
static { this.sunday = 0; }
|
|
37
|
-
static { this.monday = 1; }
|
|
38
|
-
static { this.tuesday = 2; }
|
|
39
|
-
static { this.wednesday = 3; }
|
|
40
|
-
static { this.thursday = 4; }
|
|
41
|
-
static { this.friday = 5; }
|
|
42
|
-
static { this.saturday = 6; }
|
|
43
|
-
static fromDate(date) {
|
|
44
|
-
const dt = DateTime_1.CreateObject({});
|
|
45
|
-
dt._date = date;
|
|
46
|
-
dt.updateDate();
|
|
47
|
-
return dt;
|
|
48
|
-
}
|
|
49
|
-
description() {
|
|
50
|
-
return {
|
|
51
|
-
year: this.year,
|
|
52
|
-
month: this.month,
|
|
53
|
-
day: this.day,
|
|
54
|
-
dayOfWeek: this.dayOfWeek,
|
|
55
|
-
hour: this.hour,
|
|
56
|
-
minute: this.minute,
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
static compare(a, b) {
|
|
60
|
-
return a._date.getTime() - b._date.getTime();
|
|
61
|
-
}
|
|
62
|
-
constructor({ year = undefined, month = undefined, day = undefined, hour = undefined, minute = undefined, }) {
|
|
63
|
-
super({});
|
|
64
|
-
this._date = new Date();
|
|
65
|
-
this.setDate({ year, month, day, hour, minute });
|
|
66
|
-
}
|
|
67
|
-
_getConstructorParams() {
|
|
68
|
-
return {
|
|
69
|
-
year: this.year,
|
|
70
|
-
month: this.month,
|
|
71
|
-
day: this.day,
|
|
72
|
-
hour: this.hour,
|
|
73
|
-
minute: this.minute,
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
addDateOffset({ year = 0, month = 0, day = 0, hour = 0, minute = 0, }) {
|
|
77
|
-
this._date.setFullYear(this._date.getFullYear() + year);
|
|
78
|
-
this._date.setMonth(this._date.getMonth() + month);
|
|
79
|
-
this._date.setDate(this._date.getDate() + day);
|
|
80
|
-
this._date.setHours(this._date.getHours() + hour);
|
|
81
|
-
this._date.setMinutes(this._date.getMinutes() + minute);
|
|
82
|
-
this.updateDate();
|
|
83
|
-
return this;
|
|
84
|
-
}
|
|
85
|
-
setDate({ year = undefined, month = undefined, day = undefined, hour = undefined, minute = undefined, day_of_the_week = undefined, }) {
|
|
86
|
-
if (year !== undefined) {
|
|
87
|
-
this._date.setFullYear(year);
|
|
88
|
-
}
|
|
89
|
-
if (month !== undefined) {
|
|
90
|
-
this._date.setMonth(month - 1);
|
|
91
|
-
}
|
|
92
|
-
if (day !== undefined) {
|
|
93
|
-
this._date.setDate(day);
|
|
94
|
-
}
|
|
95
|
-
if (day_of_the_week !== undefined) {
|
|
96
|
-
this._date.setDate(this._date.getDate() + (day_of_the_week - this._date.getDay()));
|
|
97
|
-
}
|
|
98
|
-
if (hour !== undefined) {
|
|
99
|
-
this._date.setHours(hour);
|
|
100
|
-
}
|
|
101
|
-
if (minute !== undefined) {
|
|
102
|
-
this._date.setMinutes(minute);
|
|
103
|
-
}
|
|
104
|
-
this.updateDate();
|
|
105
|
-
return this;
|
|
106
|
-
}
|
|
107
|
-
toString() {
|
|
108
|
-
return `${this.year}-${this.month}-${this.day} ${this.hour}:${this.minute}`;
|
|
109
|
-
}
|
|
110
|
-
static { this._ClassDescriptor = new dsl_descriptor_1.ClassDescriptor("DateTime", [
|
|
111
|
-
new dsl_descriptor_1.FuncDescriptor("addDateOffset", [
|
|
112
|
-
new dsl_descriptor_1.ParamDescriptor("year", "int"),
|
|
113
|
-
new dsl_descriptor_1.ParamDescriptor("month", "int"),
|
|
114
|
-
new dsl_descriptor_1.ParamDescriptor("day", "int"),
|
|
115
|
-
new dsl_descriptor_1.ParamDescriptor("hour", "int"),
|
|
116
|
-
new dsl_descriptor_1.ParamDescriptor("minute", "int"),
|
|
117
|
-
], "DateTime", false, "Add a date offset to the current date"),
|
|
118
|
-
new dsl_descriptor_1.FuncDescriptor("constructor", [
|
|
119
|
-
new dsl_descriptor_1.ParamDescriptor("year", "int", false),
|
|
120
|
-
new dsl_descriptor_1.ParamDescriptor("month", "int", false),
|
|
121
|
-
new dsl_descriptor_1.ParamDescriptor("day", "int", false),
|
|
122
|
-
new dsl_descriptor_1.ParamDescriptor("hour", "int", false),
|
|
123
|
-
new dsl_descriptor_1.ParamDescriptor("minute", "int", false),
|
|
124
|
-
], "DateTime", false, "Create a new date time object"),
|
|
125
|
-
new dsl_descriptor_1.FuncDescriptor("setDate", [
|
|
126
|
-
new dsl_descriptor_1.ParamDescriptor("year", "int", false),
|
|
127
|
-
new dsl_descriptor_1.ParamDescriptor("month", "int", false),
|
|
128
|
-
new dsl_descriptor_1.ParamDescriptor("day", "int", false),
|
|
129
|
-
new dsl_descriptor_1.ParamDescriptor("hour", "int", false),
|
|
130
|
-
new dsl_descriptor_1.ParamDescriptor("minute", "int", false),
|
|
131
|
-
new dsl_descriptor_1.ParamDescriptor("day_of_the_week", "int", false),
|
|
132
|
-
], "DateTime", false, "Set the date of the date time object"),
|
|
133
|
-
new dsl_descriptor_1.FuncDescriptor("today", [], "DateTime", true, "Get the current date time"),
|
|
134
|
-
], [
|
|
135
|
-
new dsl_descriptor_1.FieldDescriptor("year", "int", false),
|
|
136
|
-
new dsl_descriptor_1.FieldDescriptor("month", "int", false),
|
|
137
|
-
new dsl_descriptor_1.FieldDescriptor("day", "int", false),
|
|
138
|
-
new dsl_descriptor_1.FieldDescriptor("hour", "int", false),
|
|
139
|
-
new dsl_descriptor_1.FieldDescriptor("minute", "int", false),
|
|
140
|
-
new dsl_descriptor_1.FieldDescriptor("dayOfWeek", "string", false),
|
|
141
|
-
new dsl_descriptor_1.FieldDescriptor("sunday", "int", true),
|
|
142
|
-
new dsl_descriptor_1.FieldDescriptor("monday", "int", true),
|
|
143
|
-
new dsl_descriptor_1.FieldDescriptor("tuesday", "int", true),
|
|
144
|
-
new dsl_descriptor_1.FieldDescriptor("wednesday", "int", true),
|
|
145
|
-
new dsl_descriptor_1.FieldDescriptor("thursday", "int", true),
|
|
146
|
-
new dsl_descriptor_1.FieldDescriptor("friday", "int", true),
|
|
147
|
-
new dsl_descriptor_1.FieldDescriptor("saturday", "int", true),
|
|
148
|
-
], DateTime_1, "Representing a date and time"); }
|
|
149
|
-
};
|
|
150
|
-
exports.DateTime = DateTime;
|
|
151
|
-
exports.DateTime = DateTime = DateTime_1 = __decorate([
|
|
152
|
-
(0, decorators_1.GenieClass)("Representing a date and time"),
|
|
153
|
-
__metadata("design:paramtypes", [Object])
|
|
154
|
-
], DateTime);
|
|
155
|
-
let Food = class Food extends dsl_descriptor_1.DataClass {
|
|
156
|
-
static { Food_1 = this; }
|
|
157
|
-
static { this._all = []; }
|
|
158
|
-
static all() {
|
|
159
|
-
return Food_1._all;
|
|
160
|
-
}
|
|
161
|
-
constructor({ name, price, restaurant, }) {
|
|
162
|
-
super({});
|
|
163
|
-
this.name = name;
|
|
164
|
-
this._price = price;
|
|
165
|
-
this.restaurant = restaurant;
|
|
166
|
-
Food_1._all.push(this);
|
|
167
|
-
}
|
|
168
|
-
async update() {
|
|
169
|
-
await new Promise((resolve) => {
|
|
170
|
-
setTimeout(() => {
|
|
171
|
-
resolve(void 0);
|
|
172
|
-
}, 10);
|
|
173
|
-
});
|
|
174
|
-
this.price = this._price;
|
|
175
|
-
}
|
|
176
|
-
description() {
|
|
177
|
-
return {
|
|
178
|
-
name: this.name,
|
|
179
|
-
price: this.price,
|
|
180
|
-
restaurant: this.restaurant.name,
|
|
181
|
-
};
|
|
182
|
-
}
|
|
183
|
-
static { this._ClassDescriptor = new dsl_descriptor_1.ClassDescriptor("Food", [new dsl_descriptor_1.FuncDescriptor("all", [], "Food[]", true, "All foods"),
|
|
184
|
-
new dsl_descriptor_1.FuncDescriptor("All", [], "Food[]", true, "")
|
|
185
|
-
], [
|
|
186
|
-
new dsl_descriptor_1.FieldDescriptor("name", "string", false),
|
|
187
|
-
new dsl_descriptor_1.FieldDescriptor("price", "float", false),
|
|
188
|
-
new dsl_descriptor_1.FieldDescriptor("restaurant", "Restaurant", false, "The restaurant this food is served at"),
|
|
189
|
-
], Food_1, "A food item"); }
|
|
190
|
-
};
|
|
191
|
-
exports.Food = Food;
|
|
192
|
-
__decorate([
|
|
193
|
-
decorators_1.GenieKey,
|
|
194
|
-
(0, decorators_1.GenieProperty)("Name of the food item"),
|
|
195
|
-
__metadata("design:type", String)
|
|
196
|
-
], Food.prototype, "name", void 0);
|
|
197
|
-
__decorate([
|
|
198
|
-
(0, decorators_1.GenieProperty)("Price of the food item"),
|
|
199
|
-
__metadata("design:type", Number)
|
|
200
|
-
], Food.prototype, "price", void 0);
|
|
201
|
-
__decorate([
|
|
202
|
-
(0, decorators_1.GenieProperty)("Restaurant of the food item"),
|
|
203
|
-
__metadata("design:type", Object)
|
|
204
|
-
], Food.prototype, "restaurant", void 0);
|
|
205
|
-
__decorate([
|
|
206
|
-
(0, decorators_1.GenieFunction)("Get all food items"),
|
|
207
|
-
__metadata("design:type", Function),
|
|
208
|
-
__metadata("design:paramtypes", []),
|
|
209
|
-
__metadata("design:returntype", Array)
|
|
210
|
-
], Food, "all", null);
|
|
211
|
-
exports.Food = Food = Food_1 = __decorate([
|
|
212
|
-
(0, decorators_1.GenieClass)("A food item"),
|
|
213
|
-
__metadata("design:paramtypes", [Object])
|
|
214
|
-
], Food);
|
|
215
|
-
let Order = class Order extends dsl_descriptor_1.DataClass {
|
|
216
|
-
static { Order_1 = this; }
|
|
217
|
-
static { this._all = []; }
|
|
218
|
-
static all() {
|
|
219
|
-
return Order_1._all;
|
|
220
|
-
}
|
|
221
|
-
static { this._current = undefined; }
|
|
222
|
-
static async current() {
|
|
223
|
-
if (this._current === undefined) {
|
|
224
|
-
this._current = Order_1.CreateObject({
|
|
225
|
-
orderId: (Order_1.all().length + 1).toString(),
|
|
226
|
-
dateTime: DateTime.fromDate(new Date()),
|
|
227
|
-
foods: [],
|
|
228
|
-
restaurant: await Restaurant.current(),
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
return this._current;
|
|
232
|
-
}
|
|
233
|
-
constructor({ orderId, dateTime, foods, restaurant, }) {
|
|
234
|
-
super({ orderId: orderId });
|
|
235
|
-
this.orderId = (Order_1.all().length + 1).toString();
|
|
236
|
-
this.dateTime = dateTime;
|
|
237
|
-
this.foods = foods;
|
|
238
|
-
this.restaurant = restaurant;
|
|
239
|
-
Order_1._all.push(this);
|
|
240
|
-
}
|
|
241
|
-
addFoods({ foods }) {
|
|
242
|
-
this.foods.push(...foods);
|
|
243
|
-
}
|
|
244
|
-
removeFoods({ foods }) {
|
|
245
|
-
this.foods = this.foods.filter((f) => !foods.includes(f));
|
|
246
|
-
}
|
|
247
|
-
placeOrder() {
|
|
248
|
-
this.restaurant.orders.push(this);
|
|
249
|
-
}
|
|
250
|
-
description() {
|
|
251
|
-
return {
|
|
252
|
-
dateTime: this.dateTime.toString(),
|
|
253
|
-
foods: this.foods.map((f) => f.name),
|
|
254
|
-
restaurant: this.restaurant.name,
|
|
255
|
-
};
|
|
256
|
-
}
|
|
257
|
-
static { this._ClassDescriptor = new dsl_descriptor_1.ClassDescriptor("Order", [
|
|
258
|
-
new dsl_descriptor_1.FuncDescriptor("addFoods", [new dsl_descriptor_1.ParamDescriptor("foods", "Food[]")], "void", false, "Add a list of foods to the order"),
|
|
259
|
-
new dsl_descriptor_1.FuncDescriptor("removeFoods", [new dsl_descriptor_1.ParamDescriptor("foods", "Food[]")], "void", false, "Remove a list of foods from the order"),
|
|
260
|
-
new dsl_descriptor_1.FuncDescriptor("placeOrder", [], "void", false, "Place the order"),
|
|
261
|
-
new dsl_descriptor_1.FuncDescriptor("current", [], "Order", true, "The current order"),
|
|
262
|
-
new dsl_descriptor_1.FuncDescriptor("all", [], "Order[]", true, "All past orders"),
|
|
263
|
-
new dsl_descriptor_1.FuncDescriptor("All", [], "Order[]", true, ""),
|
|
264
|
-
], [
|
|
265
|
-
new dsl_descriptor_1.FieldDescriptor("orderId", "string", false),
|
|
266
|
-
new dsl_descriptor_1.FieldDescriptor("dateTime", "DateTime", false),
|
|
267
|
-
new dsl_descriptor_1.FieldDescriptor("foods", "Food[]", false),
|
|
268
|
-
new dsl_descriptor_1.FieldDescriptor("restaurant", "Restaurant", false),
|
|
269
|
-
], Order_1, "An Order"); }
|
|
270
|
-
};
|
|
271
|
-
exports.Order = Order;
|
|
272
|
-
__decorate([
|
|
273
|
-
decorators_1.GenieKey,
|
|
274
|
-
(0, decorators_1.GenieProperty)("Order ID number"),
|
|
275
|
-
__metadata("design:type", String)
|
|
276
|
-
], Order.prototype, "orderId", void 0);
|
|
277
|
-
__decorate([
|
|
278
|
-
(0, decorators_1.GenieProperty)("Time that order is placed"),
|
|
279
|
-
__metadata("design:type", DateTime)
|
|
280
|
-
], Order.prototype, "dateTime", void 0);
|
|
281
|
-
__decorate([
|
|
282
|
-
(0, decorators_1.GenieProperty)("Foods in the order"),
|
|
283
|
-
__metadata("design:type", Array)
|
|
284
|
-
], Order.prototype, "foods", void 0);
|
|
285
|
-
__decorate([
|
|
286
|
-
(0, decorators_1.GenieProperty)("Restaurant of the order"),
|
|
287
|
-
__metadata("design:type", Object)
|
|
288
|
-
], Order.prototype, "restaurant", void 0);
|
|
289
|
-
__decorate([
|
|
290
|
-
(0, decorators_1.GenieFunction)("Add foods to the order"),
|
|
291
|
-
__metadata("design:type", Function),
|
|
292
|
-
__metadata("design:paramtypes", [Object]),
|
|
293
|
-
__metadata("design:returntype", void 0)
|
|
294
|
-
], Order.prototype, "addFoods", null);
|
|
295
|
-
__decorate([
|
|
296
|
-
(0, decorators_1.GenieFunction)("Remove foods from the order"),
|
|
297
|
-
__metadata("design:type", Function),
|
|
298
|
-
__metadata("design:paramtypes", [Object]),
|
|
299
|
-
__metadata("design:returntype", void 0)
|
|
300
|
-
], Order.prototype, "removeFoods", null);
|
|
301
|
-
__decorate([
|
|
302
|
-
(0, decorators_1.GenieFunction)("Place the order"),
|
|
303
|
-
__metadata("design:type", Function),
|
|
304
|
-
__metadata("design:paramtypes", []),
|
|
305
|
-
__metadata("design:returntype", void 0)
|
|
306
|
-
], Order.prototype, "placeOrder", null);
|
|
307
|
-
__decorate([
|
|
308
|
-
(0, decorators_1.GenieFunction)("Get all orders"),
|
|
309
|
-
__metadata("design:type", Function),
|
|
310
|
-
__metadata("design:paramtypes", []),
|
|
311
|
-
__metadata("design:returntype", Array)
|
|
312
|
-
], Order, "all", null);
|
|
313
|
-
__decorate([
|
|
314
|
-
(0, decorators_1.GenieFunction)("Get the current order"),
|
|
315
|
-
__metadata("design:type", Function),
|
|
316
|
-
__metadata("design:paramtypes", []),
|
|
317
|
-
__metadata("design:returntype", Promise)
|
|
318
|
-
], Order, "current", null);
|
|
319
|
-
exports.Order = Order = Order_1 = __decorate([
|
|
320
|
-
(0, decorators_1.GenieClass)("An Order"),
|
|
321
|
-
__metadata("design:paramtypes", [Object])
|
|
322
|
-
], Order);
|
|
323
|
-
let Restaurant = class Restaurant extends dsl_descriptor_1.DataClass {
|
|
324
|
-
static { Restaurant_1 = this; }
|
|
325
|
-
static { this._all = undefined; }
|
|
326
|
-
static all() {
|
|
327
|
-
if (this._all === undefined) {
|
|
328
|
-
const mcDonald = Restaurant_1.CreateObject({
|
|
329
|
-
name: "McDonald's",
|
|
330
|
-
menu: [],
|
|
331
|
-
rating: 4,
|
|
332
|
-
priceGrade: 2,
|
|
333
|
-
cuisine: "Fast Food",
|
|
334
|
-
address: "123 Main St, Mountain view, USA",
|
|
335
|
-
});
|
|
336
|
-
const kfc = Restaurant_1.CreateObject({
|
|
337
|
-
name: "KFC",
|
|
338
|
-
menu: [],
|
|
339
|
-
rating: 3,
|
|
340
|
-
priceGrade: 1,
|
|
341
|
-
cuisine: "Fast Food",
|
|
342
|
-
address: "123 Main St, Palo Alto, USA",
|
|
343
|
-
});
|
|
344
|
-
const pizzaHut = Restaurant_1.CreateObject({
|
|
345
|
-
name: "Pizza Hut",
|
|
346
|
-
menu: [],
|
|
347
|
-
rating: 4,
|
|
348
|
-
priceGrade: 2,
|
|
349
|
-
cuisine: "Fast Food",
|
|
350
|
-
address: "123 Main St, Palo Alto, USA",
|
|
351
|
-
});
|
|
352
|
-
const burgerKing = Restaurant_1.CreateObject({
|
|
353
|
-
name: "Burger King",
|
|
354
|
-
menu: [],
|
|
355
|
-
rating: 4,
|
|
356
|
-
priceGrade: 2,
|
|
357
|
-
cuisine: "Fast Food",
|
|
358
|
-
address: "123 Main St, Mountain View, USA",
|
|
359
|
-
});
|
|
360
|
-
const taste = Restaurant_1.CreateObject({
|
|
361
|
-
name: "Taste",
|
|
362
|
-
menu: [],
|
|
363
|
-
rating: 5,
|
|
364
|
-
priceGrade: 3,
|
|
365
|
-
cuisine: "Chinese",
|
|
366
|
-
address: "123 Main St, Palo Alto, USA",
|
|
367
|
-
});
|
|
368
|
-
const orensHummus = Restaurant_1.CreateObject({
|
|
369
|
-
name: "Oren's Hummus",
|
|
370
|
-
menu: [],
|
|
371
|
-
rating: 4,
|
|
372
|
-
priceGrade: 2,
|
|
373
|
-
cuisine: "Middle Eastern",
|
|
374
|
-
address: "123 Main St, Mountain View, USA",
|
|
375
|
-
});
|
|
376
|
-
const steam = Restaurant_1.CreateObject({
|
|
377
|
-
name: "Steam",
|
|
378
|
-
menu: [],
|
|
379
|
-
rating: 4,
|
|
380
|
-
priceGrade: 2,
|
|
381
|
-
cuisine: "Chinese",
|
|
382
|
-
address: "123 Main St, Palo Alto, USA",
|
|
383
|
-
});
|
|
384
|
-
mcDonald.createFood("Hamburger", 5);
|
|
385
|
-
mcDonald.createFood("Cheeseburger", 6);
|
|
386
|
-
mcDonald.createFood("McFlurry", 3);
|
|
387
|
-
mcDonald.createFood("McChicken", 4);
|
|
388
|
-
mcDonald.createFood("McDouble", 4);
|
|
389
|
-
mcDonald.createFood("Coca Cola Coke", 2);
|
|
390
|
-
mcDonald.createOrder((Order.all().length + 1).toString(), DateTime.CreateObject({
|
|
391
|
-
year: 2020,
|
|
392
|
-
month: 1,
|
|
393
|
-
day: 1,
|
|
394
|
-
hour: 12,
|
|
395
|
-
minute: 0,
|
|
396
|
-
}), [mcDonald.menu[0], mcDonald.menu[1]]);
|
|
397
|
-
mcDonald.createOrder((Order.all().length + 1).toString(), DateTime.CreateObject({
|
|
398
|
-
year: 2020,
|
|
399
|
-
month: 2,
|
|
400
|
-
day: 1,
|
|
401
|
-
hour: 13,
|
|
402
|
-
minute: 0,
|
|
403
|
-
}), [mcDonald.menu[2], mcDonald.menu[3]]);
|
|
404
|
-
mcDonald.createOrder((Order.all().length + 1).toString(), DateTime.CreateObject({
|
|
405
|
-
year: 2020,
|
|
406
|
-
month: 2,
|
|
407
|
-
day: 3,
|
|
408
|
-
hour: 14,
|
|
409
|
-
minute: 0,
|
|
410
|
-
}), [mcDonald.menu[4], mcDonald.menu[5]]);
|
|
411
|
-
kfc.createFood("Chicken", 5);
|
|
412
|
-
kfc.createFood("Fries", 2);
|
|
413
|
-
kfc.createFood("Pepsi Coke", 2);
|
|
414
|
-
kfc.createOrder((Order.all().length + 1).toString(), DateTime.CreateObject({
|
|
415
|
-
year: 2020,
|
|
416
|
-
month: 1,
|
|
417
|
-
day: 4,
|
|
418
|
-
hour: 15,
|
|
419
|
-
minute: 0,
|
|
420
|
-
}), [kfc.menu[0], kfc.menu[1]]);
|
|
421
|
-
this._all = [
|
|
422
|
-
mcDonald,
|
|
423
|
-
kfc,
|
|
424
|
-
pizzaHut,
|
|
425
|
-
burgerKing,
|
|
426
|
-
taste,
|
|
427
|
-
orensHummus,
|
|
428
|
-
steam,
|
|
429
|
-
];
|
|
430
|
-
}
|
|
431
|
-
return this._all;
|
|
432
|
-
}
|
|
433
|
-
description() {
|
|
434
|
-
return {
|
|
435
|
-
name: this.name,
|
|
436
|
-
cuisine: this.cuisine,
|
|
437
|
-
rating: this.rating,
|
|
438
|
-
priceGrade: this.priceGrade,
|
|
439
|
-
address: this.address,
|
|
440
|
-
};
|
|
441
|
-
}
|
|
442
|
-
createFood(name, price) {
|
|
443
|
-
const food = Food.CreateObject({ name, price, restaurant: this });
|
|
444
|
-
this.menu.push(food);
|
|
445
|
-
return food;
|
|
446
|
-
}
|
|
447
|
-
async createOrder(orderId, dateTime, foods) {
|
|
448
|
-
const order = Order.CreateObject({
|
|
449
|
-
orderId,
|
|
450
|
-
dateTime,
|
|
451
|
-
foods,
|
|
452
|
-
restaurant: this,
|
|
453
|
-
});
|
|
454
|
-
this.orders.push(order);
|
|
455
|
-
return new Promise((resolve) => {
|
|
456
|
-
setTimeout(() => {
|
|
457
|
-
resolve(order);
|
|
458
|
-
}, 10);
|
|
459
|
-
});
|
|
460
|
-
}
|
|
461
|
-
static async current() {
|
|
462
|
-
await new Promise((resolve) => {
|
|
463
|
-
setTimeout(() => {
|
|
464
|
-
resolve(void 0);
|
|
465
|
-
}, 10);
|
|
466
|
-
});
|
|
467
|
-
return this.all()[0];
|
|
468
|
-
}
|
|
469
|
-
book({ dateTime = DateTime.today() }) {
|
|
470
|
-
console.log(`${this.name} is booking for ${dateTime.toString()}`);
|
|
471
|
-
exports.recentBooking = `${this.name} is booking for ${dateTime.toString()}`;
|
|
472
|
-
}
|
|
473
|
-
bookTable({ dateTime = undefined, number }) {
|
|
474
|
-
if (dateTime === undefined) {
|
|
475
|
-
dateTime = DateTime.today();
|
|
476
|
-
}
|
|
477
|
-
if (number === undefined) {
|
|
478
|
-
number = 1;
|
|
479
|
-
}
|
|
480
|
-
console.log(`${this.name} is booking ${number} tables for ${dateTime.toString()}`);
|
|
481
|
-
exports.recentBooking = `${this.name} is booking ${number} tables for ${dateTime.toString()}`;
|
|
482
|
-
}
|
|
483
|
-
constructor({ name, menu, rating = 0, priceGrade = 0, cuisine = "", address = "", }) {
|
|
484
|
-
super({ name: name });
|
|
485
|
-
this.orders = [];
|
|
486
|
-
this.name = name;
|
|
487
|
-
this.menu = menu;
|
|
488
|
-
this.rating = rating;
|
|
489
|
-
this.priceGrade = priceGrade;
|
|
490
|
-
this.cuisine = cuisine;
|
|
491
|
-
this.address = address;
|
|
492
|
-
}
|
|
493
|
-
static { this._ClassDescriptor = new dsl_descriptor_1.ClassDescriptor("Restaurant", [
|
|
494
|
-
new dsl_descriptor_1.FuncDescriptor("all", [], "Restaurant[]", true, "All active restaurants"),
|
|
495
|
-
new dsl_descriptor_1.FuncDescriptor("All", [], "Restaurant[]", true, "All active restaurants"),
|
|
496
|
-
new dsl_descriptor_1.FuncDescriptor("current", [], "Restaurant", true, "The current restaurant"),
|
|
497
|
-
new dsl_descriptor_1.FuncDescriptor("book", [new dsl_descriptor_1.ParamDescriptor("dateTime", "DateTime", false, "DateTime.today()")], "void", false, "Book a table for a given date time"),
|
|
498
|
-
new dsl_descriptor_1.FuncDescriptor("bookTable", [
|
|
499
|
-
new dsl_descriptor_1.ParamDescriptor("dateTime", "DateTime", false, null),
|
|
500
|
-
new dsl_descriptor_1.ParamDescriptor("number", "int", false, null)
|
|
501
|
-
], "void", false, "Book numbers tables for a given date time"),
|
|
502
|
-
], [
|
|
503
|
-
new dsl_descriptor_1.FieldDescriptor("name", "string", false),
|
|
504
|
-
new dsl_descriptor_1.FieldDescriptor("menu", "Food[]", false),
|
|
505
|
-
new dsl_descriptor_1.FieldDescriptor("rating", "int", false),
|
|
506
|
-
new dsl_descriptor_1.FieldDescriptor("priceGrade", "float", false),
|
|
507
|
-
new dsl_descriptor_1.FieldDescriptor("cuisine", "string", false),
|
|
508
|
-
new dsl_descriptor_1.FieldDescriptor("address", "string", false),
|
|
509
|
-
new dsl_descriptor_1.FieldDescriptor("orders", "Order[]", false),
|
|
510
|
-
], Restaurant_1, "A restaurant"); }
|
|
511
|
-
};
|
|
512
|
-
exports.Restaurant = Restaurant;
|
|
513
|
-
__decorate([
|
|
514
|
-
(0, decorators_1.GenieProperty)("Past orders of the restaurant"),
|
|
515
|
-
__metadata("design:type", Array)
|
|
516
|
-
], Restaurant.prototype, "orders", void 0);
|
|
517
|
-
__decorate([
|
|
518
|
-
(0, decorators_1.GenieFunction)("Book a table for a given date time"),
|
|
519
|
-
__metadata("design:type", Function),
|
|
520
|
-
__metadata("design:paramtypes", [Object]),
|
|
521
|
-
__metadata("design:returntype", void 0)
|
|
522
|
-
], Restaurant.prototype, "book", null);
|
|
523
|
-
__decorate([
|
|
524
|
-
(0, decorators_1.GenieFunction)("Book numbers tables for a given date time"),
|
|
525
|
-
__metadata("design:type", Function),
|
|
526
|
-
__metadata("design:paramtypes", [Object]),
|
|
527
|
-
__metadata("design:returntype", void 0)
|
|
528
|
-
], Restaurant.prototype, "bookTable", null);
|
|
529
|
-
__decorate([
|
|
530
|
-
decorators_1.GenieKey,
|
|
531
|
-
(0, decorators_1.GenieProperty)("Name of the restaurant"),
|
|
532
|
-
__metadata("design:type", String)
|
|
533
|
-
], Restaurant.prototype, "name", void 0);
|
|
534
|
-
__decorate([
|
|
535
|
-
(0, decorators_1.GenieProperty)("Menu of the restaurant"),
|
|
536
|
-
__metadata("design:type", Array)
|
|
537
|
-
], Restaurant.prototype, "menu", void 0);
|
|
538
|
-
__decorate([
|
|
539
|
-
(0, decorators_1.GenieProperty)("Rating of the restaurant"),
|
|
540
|
-
__metadata("design:type", Number)
|
|
541
|
-
], Restaurant.prototype, "rating", void 0);
|
|
542
|
-
__decorate([
|
|
543
|
-
(0, decorators_1.GenieProperty)("Price grade of the restaurant"),
|
|
544
|
-
__metadata("design:type", Number)
|
|
545
|
-
], Restaurant.prototype, "priceGrade", void 0);
|
|
546
|
-
__decorate([
|
|
547
|
-
(0, decorators_1.GenieProperty)("Cuisine of the restaurant"),
|
|
548
|
-
__metadata("design:type", String)
|
|
549
|
-
], Restaurant.prototype, "cuisine", void 0);
|
|
550
|
-
__decorate([
|
|
551
|
-
(0, decorators_1.GenieProperty)("Address of the restaurant"),
|
|
552
|
-
__metadata("design:type", String)
|
|
553
|
-
], Restaurant.prototype, "address", void 0);
|
|
554
|
-
__decorate([
|
|
555
|
-
(0, decorators_1.GenieFunction)("Get all restaurants"),
|
|
556
|
-
__metadata("design:type", Function),
|
|
557
|
-
__metadata("design:paramtypes", []),
|
|
558
|
-
__metadata("design:returntype", Array)
|
|
559
|
-
], Restaurant, "all", null);
|
|
560
|
-
__decorate([
|
|
561
|
-
(0, decorators_1.GenieFunction)("Get the current restaurant"),
|
|
562
|
-
__metadata("design:type", Function),
|
|
563
|
-
__metadata("design:paramtypes", []),
|
|
564
|
-
__metadata("design:returntype", Promise)
|
|
565
|
-
], Restaurant, "current", null);
|
|
566
|
-
exports.Restaurant = Restaurant = Restaurant_1 = __decorate([
|
|
567
|
-
(0, decorators_1.GenieClass)("A restaurant"),
|
|
568
|
-
__metadata("design:paramtypes", [Object])
|
|
569
|
-
], Restaurant);
|
|
570
|
-
exports.allDescriptors = [
|
|
571
|
-
Restaurant.ClassDescriptor,
|
|
572
|
-
Food.ClassDescriptor,
|
|
573
|
-
Order.ClassDescriptor,
|
|
574
|
-
DateTime._ClassDescriptor,
|
|
575
|
-
];
|
|
576
|
-
exports.classDescriptions = exports.allDescriptors.map((d) => d.description());
|
|
577
|
-
exports.examples = [
|
|
578
|
-
{
|
|
579
|
-
user_utterance: "get me the best restaurant in palo alto",
|
|
580
|
-
example_parsed: 'Restaurant.all().matching(field: .address, value: "palo alto").sort(field: .rating, ascending: false)[0]',
|
|
581
|
-
},
|
|
582
|
-
{
|
|
583
|
-
user_utterance: "get me the least expensive restaurant that serves chinese food",
|
|
584
|
-
example_parsed: 'Restaurant.all().matching(field: .cuisine, value: "chinese").sort(field: .price, ascending: true)[0]',
|
|
585
|
-
},
|
|
586
|
-
{
|
|
587
|
-
user_utterance: "add hamburger to the order",
|
|
588
|
-
example_parsed: 'Order.current().addFoods(foods: [Restaurant.current().menu.matching(field: .name, value: "hamburger")[0]])',
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
user_utterance: "remove hamburger from the order",
|
|
592
|
-
example_parsed: 'Order.current().removeFoods(foods: Order.current().foods.matching(field: .name, value: "hamburger"))',
|
|
593
|
-
},
|
|
594
|
-
{
|
|
595
|
-
user_utterance: "what do I have in my order",
|
|
596
|
-
example_parsed: "Order.current().foods",
|
|
597
|
-
},
|
|
598
|
-
{
|
|
599
|
-
user_utterance: "what did I ordered at mcDonald last time?",
|
|
600
|
-
example_parsed: 'Order.all().matching(field: .restaurant, value: Restaurant.all().matching(field: .name, value: "mcDonald")[0]).sort(field: .dateTime, ascending: false)[0].foods\n',
|
|
601
|
-
},
|
|
602
|
-
{
|
|
603
|
-
user_utterance: "what's my recent order with a milkshake?",
|
|
604
|
-
example_parsed: 'Order.all().contains(field: .foods, value: Food.all().matching(field: .name, value: "milkshake")[0]).sort(field: .dateTime, ascending: false)[0]',
|
|
605
|
-
},
|
|
606
|
-
];
|
|
607
|
-
//# sourceMappingURL=example_descriptor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"example_descriptor.js","sourceRoot":"","sources":["../../lib/__test__/example_descriptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,sDAO2B;AAE3B,8CAQuB;AAEZ,QAAA,aAAa,GAAG,IAAI,CAAC;AAGzB,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,4BAAW;;IAU/B,UAAU;QAChB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;QACrC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;QACvC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;QAChC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;QAClC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;QACtC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,MAAM,EA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