@thomas-labs/scrape-service-lib 1.1.8 → 1.1.10

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/dist/AppClient.js CHANGED
@@ -16,7 +16,7 @@ class AppClient {
16
16
  constructor(config, HttpRequest = FetchHttpRequest_1.FetchHttpRequest) {
17
17
  this.request = new HttpRequest({
18
18
  BASE: config?.BASE ?? '/api',
19
- VERSION: config?.VERSION ?? '1.0.9',
19
+ VERSION: config?.VERSION ?? '1.0.11',
20
20
  WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
21
21
  CREDENTIALS: config?.CREDENTIALS ?? 'include',
22
22
  TOKEN: config?.TOKEN,
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OpenAPI = void 0;
4
4
  exports.OpenAPI = {
5
5
  BASE: '/api',
6
- VERSION: '1.0.9',
6
+ VERSION: '1.0.11',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
@@ -29,6 +29,43 @@ export declare class StatsService {
29
29
  * @throws ApiError
30
30
  */
31
31
  historyYears(): CancelablePromise<any>;
32
+ /**
33
+ * @param year
34
+ * @returns any Ok
35
+ * @throws ApiError
36
+ */
37
+ historyDays(year?: number): CancelablePromise<any>;
38
+ /**
39
+ * @param year
40
+ * @param month
41
+ * @returns any Ok
42
+ * @throws ApiError
43
+ */
44
+ retention(year?: number, month?: number): CancelablePromise<any>;
45
+ /**
46
+ * @param year
47
+ * @param month
48
+ * @returns any Ok
49
+ * @throws ApiError
50
+ */
51
+ growth(year?: number, month?: number): CancelablePromise<any>;
52
+ /**
53
+ * @param year
54
+ * @param month
55
+ * @returns any Ok
56
+ * @throws ApiError
57
+ */
58
+ reviewVsNew(year?: number, month?: number): CancelablePromise<any>;
59
+ /**
60
+ * @returns any Ok
61
+ * @throws ApiError
62
+ */
63
+ vocabCoverage(): CancelablePromise<any>;
64
+ /**
65
+ * @returns any Ok
66
+ * @throws ApiError
67
+ */
68
+ collectionProgress(): CancelablePromise<any>;
32
69
  /**
33
70
  * @param year
34
71
  * @param month
@@ -41,6 +41,88 @@ class StatsService {
41
41
  url: '/stats/history/years',
42
42
  });
43
43
  }
44
+ /**
45
+ * @param year
46
+ * @returns any Ok
47
+ * @throws ApiError
48
+ */
49
+ historyDays(year) {
50
+ return this.httpRequest.request({
51
+ method: 'GET',
52
+ url: '/stats/history/days',
53
+ query: {
54
+ 'year': year,
55
+ },
56
+ });
57
+ }
58
+ /**
59
+ * @param year
60
+ * @param month
61
+ * @returns any Ok
62
+ * @throws ApiError
63
+ */
64
+ retention(year, month) {
65
+ return this.httpRequest.request({
66
+ method: 'GET',
67
+ url: '/stats/retention',
68
+ query: {
69
+ 'year': year,
70
+ 'month': month,
71
+ },
72
+ });
73
+ }
74
+ /**
75
+ * @param year
76
+ * @param month
77
+ * @returns any Ok
78
+ * @throws ApiError
79
+ */
80
+ growth(year, month) {
81
+ return this.httpRequest.request({
82
+ method: 'GET',
83
+ url: '/stats/growth',
84
+ query: {
85
+ 'year': year,
86
+ 'month': month,
87
+ },
88
+ });
89
+ }
90
+ /**
91
+ * @param year
92
+ * @param month
93
+ * @returns any Ok
94
+ * @throws ApiError
95
+ */
96
+ reviewVsNew(year, month) {
97
+ return this.httpRequest.request({
98
+ method: 'GET',
99
+ url: '/stats/review-vs-new',
100
+ query: {
101
+ 'year': year,
102
+ 'month': month,
103
+ },
104
+ });
105
+ }
106
+ /**
107
+ * @returns any Ok
108
+ * @throws ApiError
109
+ */
110
+ vocabCoverage() {
111
+ return this.httpRequest.request({
112
+ method: 'GET',
113
+ url: '/stats/vocab-coverage',
114
+ });
115
+ }
116
+ /**
117
+ * @returns any Ok
118
+ * @throws ApiError
119
+ */
120
+ collectionProgress() {
121
+ return this.httpRequest.request({
122
+ method: 'GET',
123
+ url: '/stats/collection-progress',
124
+ });
125
+ }
44
126
  /**
45
127
  * @param year
46
128
  * @param month
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thomas-labs/scrape-service-lib",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",