@ezpaarse-project/ezreeport-sdk-js 1.0.0-beta.4 → 1.0.0-beta.6

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 (83) hide show
  1. package/README.md +19 -752
  2. package/dist/browser/ezreeport-sdk-js.mjs +529 -495
  3. package/dist/browser/ezreeport-sdk-js.mjs.map +1 -1
  4. package/dist/browser/ezreeport-sdk-js.umd.js +3 -3
  5. package/dist/browser/ezreeport-sdk-js.umd.js.map +1 -1
  6. package/dist/node/package.json +8 -10
  7. package/dist/node/src/index.js +3 -2
  8. package/dist/node/src/index.js.map +1 -1
  9. package/dist/node/src/modules/auth.js.map +1 -1
  10. package/dist/node/src/modules/crons.js +12 -8
  11. package/dist/node/src/modules/crons.js.map +1 -1
  12. package/dist/node/src/modules/queues.js +23 -12
  13. package/dist/node/src/modules/queues.js.map +1 -1
  14. package/dist/node/src/modules/reports.js +10 -9
  15. package/dist/node/src/modules/reports.js.map +1 -1
  16. package/dist/node/src/modules/tasks.base.js.map +1 -1
  17. package/dist/node/src/modules/tasks.js +59 -21
  18. package/dist/node/src/modules/tasks.js.map +1 -1
  19. package/dist/node/src/modules/tasks.public.js +3 -1
  20. package/dist/node/src/modules/tasks.public.js.map +1 -1
  21. package/dist/node/{modules/history.js → src/modules/tasksActivity.js} +13 -11
  22. package/dist/node/src/modules/tasksActivity.js.map +1 -0
  23. package/dist/node/src/modules/tasksActivity.public.js +6 -0
  24. package/dist/node/src/modules/tasksActivity.public.js.map +1 -0
  25. package/dist/node/src/modules/templates.js +23 -22
  26. package/dist/node/src/modules/templates.js.map +1 -1
  27. package/dist/types/{index.d.ts → src/index.d.ts} +5 -2
  28. package/dist/types/{lib → src/lib}/promises.d.ts +1 -0
  29. package/dist/types/{modules → src/modules}/crons.d.ts +8 -8
  30. package/dist/types/{modules → src/modules}/queues.d.ts +12 -12
  31. package/dist/types/{modules → src/modules}/reports.d.ts +20 -14
  32. package/dist/types/{modules → src/modules}/tasks.d.ts +65 -23
  33. package/dist/types/src/modules/tasks.public.d.ts +2 -0
  34. package/dist/types/src/modules/tasksActivity.d.ts +38 -0
  35. package/dist/types/src/modules/tasksActivity.public.d.ts +5 -0
  36. package/dist/types/{modules → src/modules}/templates.d.ts +37 -21
  37. package/package.json +12 -10
  38. package/dist/node/index.js +0 -38
  39. package/dist/node/index.js.map +0 -1
  40. package/dist/node/lib/axios.js +0 -91
  41. package/dist/node/lib/axios.js.map +0 -1
  42. package/dist/node/lib/promises.js +0 -26
  43. package/dist/node/lib/promises.js.map +0 -1
  44. package/dist/node/lib/utils.js +0 -24
  45. package/dist/node/lib/utils.js.map +0 -1
  46. package/dist/node/modules/auth.js +0 -61
  47. package/dist/node/modules/auth.js.map +0 -1
  48. package/dist/node/modules/crons.js +0 -105
  49. package/dist/node/modules/crons.js.map +0 -1
  50. package/dist/node/modules/health.js +0 -52
  51. package/dist/node/modules/health.js.map +0 -1
  52. package/dist/node/modules/history.js.map +0 -1
  53. package/dist/node/modules/institutions.js +0 -61
  54. package/dist/node/modules/institutions.js.map +0 -1
  55. package/dist/node/modules/queues.js +0 -128
  56. package/dist/node/modules/queues.js.map +0 -1
  57. package/dist/node/modules/reports.js +0 -261
  58. package/dist/node/modules/reports.js.map +0 -1
  59. package/dist/node/modules/setup.js +0 -35
  60. package/dist/node/modules/setup.js.map +0 -1
  61. package/dist/node/modules/tasks.js +0 -187
  62. package/dist/node/modules/tasks.js.map +0 -1
  63. package/dist/node/modules/templates.js +0 -28
  64. package/dist/node/modules/templates.js.map +0 -1
  65. package/dist/types/modules/institutions.d.ts +0 -56
  66. package/dist/types/modules/tasks.public.d.ts +0 -2
  67. /package/dist/types/{lib → src/lib}/axios.d.ts +0 -0
  68. /package/dist/types/{lib → src/lib}/utils.d.ts +0 -0
  69. /package/dist/types/{modules → src/modules}/auth.d.ts +0 -0
  70. /package/dist/types/{modules → src/modules}/auth.public.d.ts +0 -0
  71. /package/dist/types/{modules → src/modules}/crons.public.d.ts +0 -0
  72. /package/dist/types/{modules → src/modules}/health.d.ts +0 -0
  73. /package/dist/types/{modules → src/modules}/health.public.d.ts +0 -0
  74. /package/dist/types/{modules → src/modules}/history.d.ts +0 -0
  75. /package/dist/types/{modules → src/modules}/history.public.d.ts +0 -0
  76. /package/dist/types/{modules → src/modules}/namespaces.d.ts +0 -0
  77. /package/dist/types/{modules → src/modules}/namespaces.public.d.ts +0 -0
  78. /package/dist/types/{modules → src/modules}/queues.public.d.ts +0 -0
  79. /package/dist/types/{modules → src/modules}/reports.public.d.ts +0 -0
  80. /package/dist/types/{modules → src/modules}/setup.d.ts +0 -0
  81. /package/dist/types/{modules → src/modules}/setup.public.d.ts +0 -0
  82. /package/dist/types/{modules → src/modules}/tasks.base.d.ts +0 -0
  83. /package/dist/types/{modules → src/modules}/templates.public.d.ts +0 -0
@@ -1,187 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
- return new (P || (P = Promise))(function (resolve, reject) {
28
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
- step((generator = generator.apply(thisArg, _arguments || [])).next());
32
- });
33
- };
34
- var __rest = (this && this.__rest) || function (s, e) {
35
- var t = {};
36
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
37
- t[p] = s[p];
38
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
39
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
40
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
41
- t[p[i]] = s[p[i]];
42
- }
43
- return t;
44
- };
45
- Object.defineProperty(exports, "__esModule", { value: true });
46
- exports.disableTask = exports.enableTask = exports.deleteTask = exports.updateTask = exports.getTask = exports.createTask = exports.getAllTasks = exports.Recurrence = void 0;
47
- const date_fns_1 = require("date-fns");
48
- const axios_1 = __importStar(require("../lib/axios"));
49
- const history_1 = require("./history");
50
- var Recurrence;
51
- (function (Recurrence) {
52
- Recurrence["DAILY"] = "DAILY";
53
- Recurrence["WEEKLY"] = "WEEKLY";
54
- Recurrence["MONTHLY"] = "MONTHLY";
55
- Recurrence["QUARTERLY"] = "QUARTERLY";
56
- Recurrence["BIENNIAL"] = "BIENNIAL";
57
- Recurrence["YEARLY"] = "YEARLY";
58
- })(Recurrence = exports.Recurrence || (exports.Recurrence = {}));
59
- /**
60
- * Transform raw data from JSON, to JS usable data
61
- *
62
- * @param task Raw task
63
- *
64
- * @returns Parsed task
65
- */
66
- const parseTask = (task) => (Object.assign(Object.assign({}, task), { nextRun: (0, date_fns_1.parseISO)(task.nextRun), lastRun: task.lastRun ? (0, date_fns_1.parseISO)(task.lastRun) : undefined, createdAt: (0, date_fns_1.parseISO)(task.createdAt), updatedAt: task.updatedAt ? (0, date_fns_1.parseISO)(task.updatedAt) : undefined }));
67
- /**
68
- * Transform raw data from JSON, to JS usable data
69
- *
70
- * @param task Raw task
71
- *
72
- * @returns Parsed task
73
- */
74
- const parseFullTask = (task) => {
75
- const { template, targets, history } = task, rawTask = __rest(task, ["template", "targets", "history"]);
76
- return Object.assign(Object.assign({}, parseTask(rawTask)), { history: history.map(history_1.parseHistory), template,
77
- targets });
78
- };
79
- /**
80
- * Get all available tasks
81
- *
82
- * Needs `tasks-get` permission
83
- *
84
- * @param paginationOpts Options for pagination
85
- * @param institution Force institution. Only available for SUPER_USERS, otherwise it'll be ignored.
86
- *
87
- * @returns All tasks' info
88
- */
89
- const getAllTasks = (paginationOpts, institution) => __awaiter(void 0, void 0, void 0, function* () {
90
- const _a = (yield (0, axios_1.axiosWithErrorFormatter)('get', '/tasks', {
91
- params: Object.assign({ institution }, (paginationOpts !== null && paginationOpts !== void 0 ? paginationOpts : {})),
92
- })).data, { content } = _a, response = __rest(_a, ["content"]);
93
- return Object.assign(Object.assign({}, response), { content: content.map(parseTask) });
94
- });
95
- exports.getAllTasks = getAllTasks;
96
- /**
97
- * Create a new task
98
- *
99
- * Needs `tasks-post` permission
100
- *
101
- * @param task Task's data
102
- * @param institution Force institution. Only available for SUPER_USERS, otherwise it'll be ignored.
103
- *
104
- * @returns Created task's info
105
- */
106
- const createTask = (task, institution) => __awaiter(void 0, void 0, void 0, function* () {
107
- const _b = yield axios_1.default.$post('/tasks', task, { params: { institution } }), { content } = _b, response = __rest(_b, ["content"]);
108
- return Object.assign(Object.assign({}, response), { content: parseFullTask(content) });
109
- });
110
- exports.createTask = createTask;
111
- /**
112
- * Get task info
113
- *
114
- * Needs `tasks-get-task` permission
115
- *
116
- * @param id Task's id
117
- * @param institution Force institution. Only available for SUPER_USERS, otherwise it'll be ignored.
118
- *
119
- * @returns Task's info
120
- */
121
- const getTask = (id, institution) => __awaiter(void 0, void 0, void 0, function* () {
122
- const _c = yield axios_1.default.$get(`/tasks/${id}`, { params: { institution } }), { content } = _c, response = __rest(_c, ["content"]);
123
- return Object.assign(Object.assign({}, response), { content: parseFullTask(content) });
124
- });
125
- exports.getTask = getTask;
126
- /**
127
- * Update a task
128
- *
129
- * Needs `tasks-put-task` permission
130
- *
131
- * @param id Task's id
132
- * @param task New Task's data
133
- * @param institution Force institution. Only available for SUPER_USERS, otherwise it'll be ignored.
134
- *
135
- * @returns Updated Task's info
136
- */
137
- const updateTask = (id, task, institution) => __awaiter(void 0, void 0, void 0, function* () {
138
- const _d = yield axios_1.default.$put(`/tasks/${id}`, task, { params: { institution } }), { content } = _d, response = __rest(_d, ["content"]);
139
- return Object.assign(Object.assign({}, response), { content: parseFullTask(content) });
140
- });
141
- exports.updateTask = updateTask;
142
- /**
143
- * Delete a task
144
- *
145
- * Needs `tasks-delete-task` permission
146
- *
147
- * @param id Task's id
148
- * @param institution Force institution. Only available for SUPER_USERS, otherwise it'll be ignored.
149
- *
150
- * @returns Deleted Task's info
151
- */
152
- const deleteTask = (id, institution) => __awaiter(void 0, void 0, void 0, function* () {
153
- const _e = yield axios_1.default.$delete(`/tasks/${id}`, { params: { institution } }), { content } = _e, response = __rest(_e, ["content"]);
154
- return Object.assign(Object.assign({}, response), { content: parseFullTask(content) });
155
- });
156
- exports.deleteTask = deleteTask;
157
- /**
158
- * Shorthand to enable task
159
- *
160
- * Needs `tasks-put-task-enable` permission
161
- *
162
- * @param id Task's id
163
- * @param institution Force institution. Only available for SUPER_USERS, otherwise it'll be ignored.
164
- *
165
- * @returns Updated task's info
166
- */
167
- const enableTask = (id, institution) => __awaiter(void 0, void 0, void 0, function* () {
168
- const _f = yield axios_1.default.$put(`/tasks/${id}/enable`, undefined, { params: { institution } }), { content } = _f, response = __rest(_f, ["content"]);
169
- return Object.assign(Object.assign({}, response), { content: parseFullTask(content) });
170
- });
171
- exports.enableTask = enableTask;
172
- /**
173
- * Shorthand to disable task
174
- *
175
- * Needs `tasks-put-task-disable` permission
176
- *
177
- * @param id Task's id
178
- * @param institution Force institution. Only available for SUPER_USERS, otherwise it'll be ignored.
179
- *
180
- * @returns Updated task's info
181
- */
182
- const disableTask = (id, institution) => __awaiter(void 0, void 0, void 0, function* () {
183
- const _g = yield axios_1.default.$put(`/tasks/${id}/disable`, undefined, { params: { institution } }), { content } = _g, response = __rest(_g, ["content"]);
184
- return Object.assign(Object.assign({}, response), { content: parseFullTask(content) });
185
- });
186
- exports.disableTask = disableTask;
187
- //# sourceMappingURL=tasks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tasks.js","sourceRoot":"","sources":["../../../src/modules/tasks.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAoC;AACpC,sDAA2G;AAC3G,uCAAwE;AAGxE,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,6BAAe,CAAA;IACf,+BAAiB,CAAA;IACjB,iCAAmB,CAAA;IACnB,qCAAuB,CAAA;IACvB,mCAAqB,CAAA;IACrB,+BAAiB,CAAA;AACnB,CAAC,EAPW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAOrB;AAqBD;;;;;;GAMG;AACH,MAAM,SAAS,GAAG,CAAC,IAAa,EAAQ,EAAE,CAAC,iCACtC,IAAI,KACP,OAAO,EAAE,IAAA,mBAAQ,EAAC,IAAI,CAAC,OAAO,CAAC,EAC/B,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAA,mBAAQ,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,EAC1D,SAAS,EAAE,IAAA,mBAAQ,EAAC,IAAI,CAAC,SAAS,CAAC,EACnC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,mBAAQ,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,IAChE,CAAC;AAoBH;;;;;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E,SAAS,EACrB,SAAS,EACT,EAAE,MAAM,EAAE,EAAE,WAAW,EAAE,EAAE,CAC5B,EAJK,EAAE,OAAO,OAId,EAJmB,QAAQ,cAAtB,WAAwB,CAI7B,CAAC;IAEF,uCACK,QAAQ,KACX,OAAO,EAAE,aAAa,CAAC,OAAO,CAAC,IAC/B;AACJ,CAAC,CAAA,CAAC;AAdW,QAAA,UAAU,cAcrB;AAEF;;;;;;;;;GASG;AACI,MAAM,WAAW,GAAG,CACzB,EAAc,EACd,WAAoB,EACY,EAAE;IAClC,MAAM,KAA2B,MAAM,eAAK,CAAC,IAAI,CAC/C,UAAU,EAAE,UAAU,EACtB,SAAS,EACT,EAAE,MAAM,EAAE,EAAE,WAAW,EAAE,EAAE,CAC5B,EAJK,EAAE,OAAO,OAId,EAJmB,QAAQ,cAAtB,WAAwB,CAI7B,CAAC;IAEF,uCACK,QAAQ,KACX,OAAO,EAAE,aAAa,CAAC,OAAO,CAAC,IAC/B;AACJ,CAAC,CAAA,CAAC;AAdW,QAAA,WAAW,eActB"}
@@ -1,28 +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
- exports.getTemplate = exports.getAllTemplates = void 0;
7
- const axios_1 = __importDefault(require("../lib/axios"));
8
- /**
9
- * Get all available templates
10
- *
11
- * Needs `templates-get` permission
12
- *
13
- * @returns All templates' info
14
- */
15
- const getAllTemplates = () => axios_1.default.$get('/templates');
16
- exports.getAllTemplates = getAllTemplates;
17
- /**
18
- * Get template info
19
- *
20
- * Needs `templates-get-name(*)` permission
21
- *
22
- * @param name Template's name
23
- *
24
- * @returns Template info
25
- */
26
- const getTemplate = (name) => axios_1.default.$get(`/templates/${name}`);
27
- exports.getTemplate = getTemplate;
28
- //# sourceMappingURL=templates.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"templates.js","sourceRoot":"","sources":["../../../src/modules/templates.ts"],"names":[],"mappings":";;;;;;AAAA,yDAAiC;AA+BjC;;;;;;GAMG;AACI,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,eAAK,CAAC,IAAI,CAAW,YAAY,CAAC,CAAC;AAA3D,QAAA,eAAe,mBAA4C;AAExE;;;;;;;;GAQG;AACI,MAAM,WAAW,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,eAAK,CAAC,IAAI,CAAe,cAAc,IAAI,EAAE,CAAC,CAAC;AAA/E,QAAA,WAAW,eAAoE"}
@@ -1,56 +0,0 @@
1
- import { type ApiResponse } from '../lib/axios';
2
- interface RawInstitution {
3
- id: string;
4
- name: string;
5
- website?: string;
6
- uai?: string;
7
- auto: {
8
- ezmesure: boolean;
9
- ezpaarse: boolean;
10
- report: boolean;
11
- sushi?: boolean;
12
- };
13
- validated?: boolean;
14
- indexCount?: number;
15
- domains?: string[];
16
- logoId?: string;
17
- updatedAt?: string;
18
- createdAt: string;
19
- acronym?: string;
20
- city?: string;
21
- type?: string;
22
- linkedinUrl?: string;
23
- facebookUrl?: string;
24
- twitterUrl?: string;
25
- creator?: string;
26
- youtubeUrl?: string;
27
- indexPrefix?: string;
28
- role?: string;
29
- space?: string;
30
- docContactName?: string;
31
- techContactName?: string;
32
- hidePartner?: boolean;
33
- sushiReadySince?: string;
34
- }
35
- export interface Institution extends Omit<RawInstitution, 'updatedAt' | 'createdAt' | 'sushiReadySince'> {
36
- updatedAt?: Date;
37
- createdAt: Date;
38
- sushiReadySince?: Date;
39
- }
40
- /**
41
- * Get all available institutions for authed user
42
- *
43
- * Needs `institutions-get` permission
44
- *
45
- * @returns Available institutions
46
- */
47
- export declare const getInstitutions: () => Promise<ApiResponse<Institution[]>>;
48
- /**
49
- * Get specific institution that is available for authed user
50
- *
51
- * Needs `institutions-get-id` permission
52
- *
53
- * @returns Available institution
54
- */
55
- export declare const getInstitution: (id: Institution['id']) => Promise<ApiResponse<Institution>>;
56
- export {};
@@ -1,2 +0,0 @@
1
- export { type FullTask, type InputTask, getAllTasks, getTask, createTask, updateTask, upsertTask, deleteTask, enableTask, disableTask, } from './tasks';
2
- export { Recurrence, type Task, type TaskWithNamespace, } from './tasks.base';
File without changes
File without changes
File without changes
File without changes
File without changes