totalum-api-sdk 2.0.28 → 2.0.29

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.
@@ -63,12 +63,7 @@ export interface DataProperties {
63
63
  };
64
64
  }
65
65
  export interface NestedQuery {
66
- [tableName: string]: NestedQueryItem;
67
- }
68
- interface NestedQueryItem {
69
- tableFilter?: FilterSearchQueryI;
70
- propertyName?: string;
71
- [tableName: string]: NestedQueryItem | FilterSearchQueryI | string;
66
+ [tableName: string]: any;
72
67
  }
73
68
  export interface AuthOptions {
74
69
  token?: {
@@ -79,4 +74,3 @@ export interface AuthOptions {
79
74
  };
80
75
  baseUrl?: string;
81
76
  }
82
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "totalum-api-sdk",
3
- "version": "2.0.28",
3
+ "version": "2.0.29",
4
4
  "description": "Totalum sdk wrapper and utils of totalum api",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,15 +0,0 @@
1
- import { GoogleCalendarI } from "../common/interfaces";
2
- export declare class GoogleService {
3
- private headers;
4
- private baseUrl;
5
- constructor(baseUrl: string, headers: any);
6
- getGoogleAccountEmails(accountEmail: string): Promise<import("axios").AxiosResponse<any, any>>;
7
- googleAccountSendEmail(accountEmail: string, body: {
8
- to: string;
9
- subject: string;
10
- message?: string;
11
- html?: string;
12
- }): Promise<import("axios").AxiosResponse<any, any>>;
13
- getGoogleCalendarEvents(accountEmail: string): Promise<import("axios").AxiosResponse<any, any>>;
14
- createCalendarEvent(accountEmail: string, body: GoogleCalendarI): Promise<import("axios").AxiosResponse<any, any>>;
15
- }
@@ -1,53 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.GoogleService = void 0;
16
- const axios_1 = __importDefault(require("axios"));
17
- const endpoints_1 = require("../common/endpoints");
18
- const utils_1 = require("../utils");
19
- class GoogleService {
20
- constructor(baseUrl, headers) {
21
- this.headers = headers;
22
- this.baseUrl = baseUrl;
23
- }
24
- getGoogleAccountEmails(accountEmail) {
25
- return __awaiter(this, void 0, void 0, function* () {
26
- const url = utils_1.UtilsService.getUrl(this.baseUrl, endpoints_1.endpoints.googleIntegration.getEmails, {});
27
- const params = { userEmail: accountEmail };
28
- return axios_1.default.get(url, { params: params, headers: this.headers });
29
- });
30
- }
31
- googleAccountSendEmail(accountEmail, body) {
32
- return __awaiter(this, void 0, void 0, function* () {
33
- const url = utils_1.UtilsService.getUrl(this.baseUrl, endpoints_1.endpoints.googleIntegration.sendEmail, {});
34
- const params = { userEmail: accountEmail };
35
- return axios_1.default.post(url, body, { params: params, headers: this.headers });
36
- });
37
- }
38
- getGoogleCalendarEvents(accountEmail) {
39
- return __awaiter(this, void 0, void 0, function* () {
40
- const url = utils_1.UtilsService.getUrl(this.baseUrl, endpoints_1.endpoints.googleIntegration.getCalendarEvents, {});
41
- const params = { userEmail: accountEmail };
42
- return axios_1.default.get(url, { params: params, headers: this.headers });
43
- });
44
- }
45
- createCalendarEvent(accountEmail, body) {
46
- return __awaiter(this, void 0, void 0, function* () {
47
- const url = utils_1.UtilsService.getUrl(this.baseUrl, endpoints_1.endpoints.googleIntegration.createCalendarEvent, {});
48
- const params = { userEmail: accountEmail };
49
- return axios_1.default.post(url, body, { params: params, headers: this.headers });
50
- });
51
- }
52
- }
53
- exports.GoogleService = GoogleService;