aimyapi 0.1.2 → 0.1.4
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/README.md +196 -4
- package/dist/{lib/index.d.ts → index.d.ts} +1 -1
- package/dist/{lib/index.js → index.js} +18 -16
- package/dist/{lib/sandbox.js → sandbox.js} +1 -1
- package/example/example1.ts +0 -2
- package/example/example2.ts +5 -7
- package/example/ordering_api.md +23 -11
- package/example/ordering_api.ts +8 -12
- package/example/ordering_api_impl.ts +30 -21
- package/lib/index.ts +18 -21
- package/lib/sandbox.ts +1 -1
- package/package.json +1 -1
- package/tsconfig.json +2 -2
- package/dist/example/example1.d.ts +0 -1
- package/dist/example/example1.js +0 -52
- package/dist/example/example2.d.ts +0 -1
- package/dist/example/example2.js +0 -66
- package/dist/example/example3.d.ts +0 -1
- package/dist/example/example3.js +0 -79
- package/dist/example/ordering_api.d.ts +0 -36
- package/dist/example/ordering_api.js +0 -125
- package/dist/example/ordering_api_impl.d.ts +0 -23
- package/dist/example/ordering_api_impl.js +0 -128
- package/dist/example/sales_api.d.ts +0 -16
- package/dist/example/sales_api.js +0 -5
- package/dist/example/sales_api_impl.d.ts +0 -7
- package/dist/example/sales_api_impl.js +0 -59
- /package/dist/{lib/sandbox-wrappers.d.ts → sandbox-wrappers.d.ts} +0 -0
- /package/dist/{lib/sandbox-wrappers.js → sandbox-wrappers.js} +0 -0
- /package/dist/{lib/sandbox.d.ts → sandbox.d.ts} +0 -0
- /package/dist/{lib/utils.d.ts → utils.d.ts} +0 -0
- /package/dist/{lib/utils.js → utils.js} +0 -0
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.API = void 0;
|
|
4
|
-
const utils_1 = require("../lib/utils");
|
|
5
|
-
class API {
|
|
6
|
-
// Mock implementation, doesn't actually send an email
|
|
7
|
-
sendEmail(to, subject, body) {
|
|
8
|
-
console.log(`Sending email to "${to}" with subject "${subject}" and body\n"${body}"`);
|
|
9
|
-
return (0, utils_1.delay)(1000);
|
|
10
|
-
}
|
|
11
|
-
getSalesData() {
|
|
12
|
-
return [
|
|
13
|
-
{ sales: 100, month: 1, year: 2020, businessUnit: "Advertising" },
|
|
14
|
-
{ sales: 200, month: 2, year: 2020, businessUnit: "Advertising" },
|
|
15
|
-
{ sales: 300, month: 3, year: 2020, businessUnit: "Advertising" },
|
|
16
|
-
{ sales: 400, month: 4, year: 2020, businessUnit: "Advertising" },
|
|
17
|
-
{ sales: 500, month: 5, year: 2020, businessUnit: "Advertising" },
|
|
18
|
-
{ sales: 600, month: 6, year: 2020, businessUnit: "Advertising" },
|
|
19
|
-
{ sales: 700, month: 7, year: 2020, businessUnit: "Advertising" },
|
|
20
|
-
{ sales: 800, month: 8, year: 2020, businessUnit: "Advertising" },
|
|
21
|
-
{ sales: 900, month: 9, year: 2020, businessUnit: "Advertising" },
|
|
22
|
-
{ sales: 1000, month: 10, year: 2020, businessUnit: "Advertising" },
|
|
23
|
-
{ sales: 1100, month: 11, year: 2020, businessUnit: "Advertising" },
|
|
24
|
-
{ sales: 1100, month: 12, year: 2020, businessUnit: "Advertising" },
|
|
25
|
-
{ sales: 1200, month: 1, year: 2020, businessUnit: "Software" },
|
|
26
|
-
{ sales: 1300, month: 2, year: 2020, businessUnit: "Software" },
|
|
27
|
-
{ sales: 1400, month: 3, year: 2020, businessUnit: "Software" },
|
|
28
|
-
{ sales: 1500, month: 4, year: 2020, businessUnit: "Software" },
|
|
29
|
-
{ sales: 1600, month: 5, year: 2020, businessUnit: "Software" },
|
|
30
|
-
{ sales: 1700, month: 6, year: 2020, businessUnit: "Software" },
|
|
31
|
-
{ sales: 1800, month: 7, year: 2020, businessUnit: "Software" },
|
|
32
|
-
{ sales: 1800, month: 8, year: 2020, businessUnit: "Software" },
|
|
33
|
-
{ sales: 1500, month: 9, year: 2020, businessUnit: "Software" },
|
|
34
|
-
{ sales: 1200, month: 10, year: 2020, businessUnit: "Software" },
|
|
35
|
-
{ sales: 1000, month: 11, year: 2020, businessUnit: "Software" },
|
|
36
|
-
{ sales: 100, month: 12, year: 2020, businessUnit: "Software" },
|
|
37
|
-
{ sales: 1200, month: 1, year: 2020, businessUnit: "Hardware" },
|
|
38
|
-
{ sales: 1300, month: 2, year: 2020, businessUnit: "Hardware" },
|
|
39
|
-
{ sales: 1400, month: 3, year: 2020, businessUnit: "Hardware" },
|
|
40
|
-
{ sales: 1500, month: 4, year: 2020, businessUnit: "Hardware" },
|
|
41
|
-
{ sales: 1600, month: 5, year: 2020, businessUnit: "Hardware" },
|
|
42
|
-
{ sales: 1700, month: 6, year: 2020, businessUnit: "Hardware" },
|
|
43
|
-
{ sales: 1800, month: 7, year: 2020, businessUnit: "Hardware" },
|
|
44
|
-
{ sales: 1800, month: 8, year: 2020, businessUnit: "Hardware" },
|
|
45
|
-
{ sales: 1500, month: 9, year: 2020, businessUnit: "Hardware" },
|
|
46
|
-
{ sales: 1200, month: 10, year: 2020, businessUnit: "Hardware" },
|
|
47
|
-
{ sales: 1000, month: 11, year: 2020, businessUnit: "Hardware" },
|
|
48
|
-
{ sales: 100, month: 12, year: 2020, businessUnit: "Hardware" },
|
|
49
|
-
];
|
|
50
|
-
}
|
|
51
|
-
;
|
|
52
|
-
print(text) {
|
|
53
|
-
console.log(text);
|
|
54
|
-
}
|
|
55
|
-
delay(milliseconds) {
|
|
56
|
-
return (0, utils_1.delay)(milliseconds);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
exports.API = API;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|