@timetac/js-client-library
Advanced tools
Comparing version 2.19.1 to 2.19.2
@@ -7,3 +7,3 @@ import { AxiosRequestConfig } from 'axios'; | ||
import { ReadRawResponse } from '../utils/response/readRawResponse'; | ||
import { UserCreate, UserResetPassword, UserUpdate, UserUpdatePassword, UserReadMe, UserRead, UserValidatePassword, UserCreateLoginLink, ReturnUserCreateLoginLink, UserSendWelcomeEmail } from './types'; | ||
import { UserCreate, UserResetPassword, UserUpdate, UserUpdatePassword, UserReadMe, UserRead, UserValidatePassword, UserCreateLoginLink, ReturnUserCreateLoginLink, UserSendWelcomeEmail, UserInvite } from './types'; | ||
declare const resourceName = "users"; | ||
@@ -31,3 +31,4 @@ declare const usersReadMe = "usersReadMe"; | ||
sendWelcomeEmail(data: UserSendWelcomeEmail): Promise<LibraryReturn<ResourceName, Entity<ResourceName> | undefined>>; | ||
inviteUsers(data: UserInvite | Array<UserInvite>): Promise<LibraryReturn<ResourceName, Entity<ResourceName> | Array<Entity<ResourceName> | ParsedErrorMesage> | undefined>>; | ||
} | ||
export {}; |
@@ -83,4 +83,8 @@ "use strict"; | ||
} | ||
inviteUsers(data) { | ||
const response = this._post('invite', data); | ||
return (0, responseHandlers_1.requiredBatch)(response); | ||
} | ||
} | ||
exports.UsersEndpoint = UsersEndpoint; | ||
//# sourceMappingURL=index.js.map |
@@ -132,1 +132,6 @@ export type UserReadObscured = { | ||
} | ||
export interface UserInvite { | ||
email_address: string; | ||
firstname: string; | ||
lastname: string; | ||
} |
@@ -7,3 +7,3 @@ import { AxiosRequestConfig } from 'axios'; | ||
import { ReadRawResponse } from '../utils/response/readRawResponse'; | ||
import { UserCreate, UserResetPassword, UserUpdate, UserUpdatePassword, UserReadMe, UserRead, UserValidatePassword, UserCreateLoginLink, ReturnUserCreateLoginLink, UserSendWelcomeEmail } from './types'; | ||
import { UserCreate, UserResetPassword, UserUpdate, UserUpdatePassword, UserReadMe, UserRead, UserValidatePassword, UserCreateLoginLink, ReturnUserCreateLoginLink, UserSendWelcomeEmail, UserInvite } from './types'; | ||
declare const resourceName = "users"; | ||
@@ -31,3 +31,4 @@ declare const usersReadMe = "usersReadMe"; | ||
sendWelcomeEmail(data: UserSendWelcomeEmail): Promise<LibraryReturn<ResourceName, Entity<ResourceName> | undefined>>; | ||
inviteUsers(data: UserInvite | Array<UserInvite>): Promise<LibraryReturn<ResourceName, Entity<ResourceName> | Array<Entity<ResourceName> | ParsedErrorMesage> | undefined>>; | ||
} | ||
export {}; |
@@ -80,3 +80,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
inviteUsers(data) { | ||
const response = this._post('invite', data); | ||
return requiredBatch(response); | ||
} | ||
} | ||
//# sourceMappingURL=index.js.map |
@@ -132,1 +132,6 @@ export type UserReadObscured = { | ||
} | ||
export interface UserInvite { | ||
email_address: string; | ||
firstname: string; | ||
lastname: string; | ||
} |
{ | ||
"name": "@timetac/js-client-library", | ||
"version": "2.19.1", | ||
"version": "2.19.2", | ||
"description": "TimeTac API JS client library", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/TimeTac/js-client-library#readme", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
636105
10459