seatsio 86.4.0 → 86.5.0
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/src/SeatsioClient.d.ts +0 -4
- package/dist/src/SeatsioClient.js +0 -4
- package/dist/src/index.d.ts +0 -4
- package/dist/src/index.js +0 -4
- package/package.json +1 -1
- package/dist/src/Invitations/Invitation.d.ts +0 -9
- package/dist/src/Invitations/Invitation.js +0 -13
- package/dist/src/Invitations/Invitations.d.ts +0 -6
- package/dist/src/Invitations/Invitations.js +0 -15
- package/dist/src/Users/User.d.ts +0 -14
- package/dist/src/Users/User.js +0 -18
- package/dist/src/Users/Users.d.ts +0 -18
- package/dist/src/Users/Users.js +0 -57
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { Accounts } from './Accounts/Accounts';
|
|
2
|
-
import { Users } from './Users/Users';
|
|
3
|
-
import { Invitations } from './Invitations/Invitations';
|
|
4
2
|
import { Charts } from './Charts/Charts';
|
|
5
3
|
import { Events } from './Events/Events';
|
|
6
4
|
import { Workspaces } from './Workspaces/Workspaces';
|
|
@@ -22,11 +20,9 @@ export declare class SeatsioClient {
|
|
|
22
20
|
eventReports: EventReports;
|
|
23
21
|
events: Events;
|
|
24
22
|
holdTokens: HoldTokens;
|
|
25
|
-
invitations: Invitations;
|
|
26
23
|
requestListener: any;
|
|
27
24
|
seasons: Seasons;
|
|
28
25
|
usageReports: UsageReports;
|
|
29
|
-
users: Users;
|
|
30
26
|
workspaces: Workspaces;
|
|
31
27
|
eventLog: EventLog;
|
|
32
28
|
ticketBuyers: TicketBuyers;
|
|
@@ -5,8 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.SeatsioClient = void 0;
|
|
7
7
|
var Accounts_1 = require("./Accounts/Accounts");
|
|
8
|
-
var Users_1 = require("./Users/Users");
|
|
9
|
-
var Invitations_1 = require("./Invitations/Invitations");
|
|
10
8
|
var Charts_1 = require("./Charts/Charts");
|
|
11
9
|
var Events_1 = require("./Events/Events");
|
|
12
10
|
var Workspaces_1 = require("./Workspaces/Workspaces");
|
|
@@ -33,8 +31,6 @@ var SeatsioClient = /** @class */ (function () {
|
|
|
33
31
|
this.charts = new Charts_1.Charts(this.client);
|
|
34
32
|
this.events = new Events_1.Events(this.client);
|
|
35
33
|
this.workspaces = new Workspaces_1.Workspaces(this.client);
|
|
36
|
-
this.users = new Users_1.Users(this.client);
|
|
37
|
-
this.invitations = new Invitations_1.Invitations(this.client);
|
|
38
34
|
this.holdTokens = new HoldTokens_1.HoldTokens(this.client);
|
|
39
35
|
this.accounts = new Accounts_1.Accounts(this.client);
|
|
40
36
|
this.chartReports = new ChartReports_1.ChartReports(this.client);
|
package/dist/src/index.d.ts
CHANGED
|
@@ -46,8 +46,6 @@ export * from './Events/TableBookingConfig';
|
|
|
46
46
|
export * from './Events/UpdateEventParams';
|
|
47
47
|
export * from './HoldTokens/HoldToken';
|
|
48
48
|
export * from './HoldTokens/HoldTokens';
|
|
49
|
-
export * from './Invitations/Invitation';
|
|
50
|
-
export * from './Invitations/Invitations';
|
|
51
49
|
export * from './Reports/ChartReports';
|
|
52
50
|
export * from './Reports/EventReports';
|
|
53
51
|
export * from './Reports/UsageReports';
|
|
@@ -57,7 +55,5 @@ export * from './Seasons/Seasons';
|
|
|
57
55
|
export * from './TicketBuyers/AddTicketBuyerIdsResponse';
|
|
58
56
|
export * from './TicketBuyers/RemoveTicketBuyerIdsResponse';
|
|
59
57
|
export * from './TicketBuyers/TicketBuyers';
|
|
60
|
-
export * from './Users/User';
|
|
61
|
-
export * from './Users/Users';
|
|
62
58
|
export * from './Workspaces/Workspace';
|
|
63
59
|
export * from './Workspaces/Workspaces';
|
package/dist/src/index.js
CHANGED
|
@@ -62,8 +62,6 @@ __exportStar(require("./Events/TableBookingConfig"), exports);
|
|
|
62
62
|
__exportStar(require("./Events/UpdateEventParams"), exports);
|
|
63
63
|
__exportStar(require("./HoldTokens/HoldToken"), exports);
|
|
64
64
|
__exportStar(require("./HoldTokens/HoldTokens"), exports);
|
|
65
|
-
__exportStar(require("./Invitations/Invitation"), exports);
|
|
66
|
-
__exportStar(require("./Invitations/Invitations"), exports);
|
|
67
65
|
__exportStar(require("./Reports/ChartReports"), exports);
|
|
68
66
|
__exportStar(require("./Reports/EventReports"), exports);
|
|
69
67
|
__exportStar(require("./Reports/UsageReports"), exports);
|
|
@@ -73,7 +71,5 @@ __exportStar(require("./Seasons/Seasons"), exports);
|
|
|
73
71
|
__exportStar(require("./TicketBuyers/AddTicketBuyerIdsResponse"), exports);
|
|
74
72
|
__exportStar(require("./TicketBuyers/RemoveTicketBuyerIdsResponse"), exports);
|
|
75
73
|
__exportStar(require("./TicketBuyers/TicketBuyers"), exports);
|
|
76
|
-
__exportStar(require("./Users/User"), exports);
|
|
77
|
-
__exportStar(require("./Users/Users"), exports);
|
|
78
74
|
__exportStar(require("./Workspaces/Workspace"), exports);
|
|
79
75
|
__exportStar(require("./Workspaces/Workspaces"), exports);
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Invitation = void 0;
|
|
4
|
-
var Invitation = /** @class */ (function () {
|
|
5
|
-
function Invitation(json) {
|
|
6
|
-
this.id = json.id;
|
|
7
|
-
this.status = json.status;
|
|
8
|
-
this.email = json.email;
|
|
9
|
-
this.date = new Date(json.date);
|
|
10
|
-
}
|
|
11
|
-
return Invitation;
|
|
12
|
-
}());
|
|
13
|
-
exports.Invitation = Invitation;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Invitations = void 0;
|
|
4
|
-
var Invitation_1 = require("./Invitation");
|
|
5
|
-
var Invitations = /** @class */ (function () {
|
|
6
|
-
function Invitations(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
Invitations.prototype.listAll = function () {
|
|
10
|
-
return this.client.get('/invitations')
|
|
11
|
-
.then(function (res) { return res.data.map(function (json) { return new Invitation_1.Invitation(json); }); });
|
|
12
|
-
};
|
|
13
|
-
return Invitations;
|
|
14
|
-
}());
|
|
15
|
-
exports.Invitations = Invitations;
|
package/dist/src/Users/User.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Dict } from '../Dict';
|
|
2
|
-
export type UserJson = Dict<any>;
|
|
3
|
-
export declare class User {
|
|
4
|
-
createdOn: Date | null;
|
|
5
|
-
email: string;
|
|
6
|
-
id: number;
|
|
7
|
-
isActive: boolean;
|
|
8
|
-
name: string;
|
|
9
|
-
role: string;
|
|
10
|
-
status: string;
|
|
11
|
-
workspaces: any;
|
|
12
|
-
nonAdminHasAccessToAllWorkspaces?: boolean;
|
|
13
|
-
constructor(json: UserJson);
|
|
14
|
-
}
|
package/dist/src/Users/User.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.User = void 0;
|
|
4
|
-
var User = /** @class */ (function () {
|
|
5
|
-
function User(json) {
|
|
6
|
-
this.id = json.id;
|
|
7
|
-
this.email = json.email;
|
|
8
|
-
this.name = json.name;
|
|
9
|
-
this.role = json.role;
|
|
10
|
-
this.createdOn = json.createdOn ? new Date(json.createdOn) : null;
|
|
11
|
-
this.isActive = json.isActive;
|
|
12
|
-
this.status = json.status;
|
|
13
|
-
this.workspaces = json.workspaces;
|
|
14
|
-
this.nonAdminHasAccessToAllWorkspaces = json.nonAdminHasAccessToAllWorkspaces;
|
|
15
|
-
}
|
|
16
|
-
return User;
|
|
17
|
-
}());
|
|
18
|
-
exports.User = User;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Invitation } from '../Invitations/Invitation';
|
|
2
|
-
import { Page } from '../Page';
|
|
3
|
-
import { User, UserJson } from './User';
|
|
4
|
-
import { Lister } from '../Lister';
|
|
5
|
-
import { Axios } from 'axios';
|
|
6
|
-
export declare class Users {
|
|
7
|
-
client: Axios;
|
|
8
|
-
constructor(client: Axios);
|
|
9
|
-
invite(email: string, role: string, workspaces?: string[]): Promise<Invitation>;
|
|
10
|
-
retrieve(id: number): Promise<User>;
|
|
11
|
-
activate(id: number): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
12
|
-
deactivate(id: number): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
13
|
-
listAll(role?: string | null): import("..").AsyncIterator<User, UserJson>;
|
|
14
|
-
listFirstPage(role?: string | null, pageSize?: number | null): Promise<Page<User>>;
|
|
15
|
-
listPageAfter(afterId: number, role?: string | null, pageSize?: number | null): Promise<Page<User>>;
|
|
16
|
-
listPageBefore(beforeId: number, role?: string | null, pageSize?: number | null): Promise<Page<User>>;
|
|
17
|
-
iterator(): Lister<User, UserJson>;
|
|
18
|
-
}
|
package/dist/src/Users/Users.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Users = void 0;
|
|
4
|
-
var Invitation_1 = require("../Invitations/Invitation");
|
|
5
|
-
var Page_1 = require("../Page");
|
|
6
|
-
var User_1 = require("./User");
|
|
7
|
-
var Lister_1 = require("../Lister");
|
|
8
|
-
var Users = /** @class */ (function () {
|
|
9
|
-
function Users(client) {
|
|
10
|
-
this.client = client;
|
|
11
|
-
}
|
|
12
|
-
Users.prototype.invite = function (email, role, workspaces) {
|
|
13
|
-
var requestParameters = { email: email, role: role, workspaces: workspaces };
|
|
14
|
-
return this.client.post('/users/actions/invite', requestParameters)
|
|
15
|
-
.then(function (res) { return new Invitation_1.Invitation(res.data); });
|
|
16
|
-
};
|
|
17
|
-
Users.prototype.retrieve = function (id) {
|
|
18
|
-
return this.client.get("/users/".concat(id)).then(function (res) { return new User_1.User(res.data); });
|
|
19
|
-
};
|
|
20
|
-
Users.prototype.activate = function (id) {
|
|
21
|
-
return this.client.post("/users/".concat(id, "/actions/activate"));
|
|
22
|
-
};
|
|
23
|
-
Users.prototype.deactivate = function (id) {
|
|
24
|
-
return this.client.post("/users/".concat(id, "/actions/deactivate"));
|
|
25
|
-
};
|
|
26
|
-
Users.prototype.listAll = function (role) {
|
|
27
|
-
if (role === void 0) { role = null; }
|
|
28
|
-
var requestParameters = role !== null ? { role: role } : {};
|
|
29
|
-
return this.iterator().all(requestParameters);
|
|
30
|
-
};
|
|
31
|
-
Users.prototype.listFirstPage = function (role, pageSize) {
|
|
32
|
-
if (role === void 0) { role = null; }
|
|
33
|
-
if (pageSize === void 0) { pageSize = null; }
|
|
34
|
-
var requestParameters = role !== null ? { role: role } : {};
|
|
35
|
-
return this.iterator().firstPage(requestParameters, pageSize);
|
|
36
|
-
};
|
|
37
|
-
Users.prototype.listPageAfter = function (afterId, role, pageSize) {
|
|
38
|
-
if (role === void 0) { role = null; }
|
|
39
|
-
if (pageSize === void 0) { pageSize = null; }
|
|
40
|
-
var requestParameters = role !== null ? { role: role } : {};
|
|
41
|
-
return this.iterator().pageAfter(afterId, requestParameters, pageSize);
|
|
42
|
-
};
|
|
43
|
-
Users.prototype.listPageBefore = function (beforeId, role, pageSize) {
|
|
44
|
-
if (role === void 0) { role = null; }
|
|
45
|
-
if (pageSize === void 0) { pageSize = null; }
|
|
46
|
-
var requestParameters = role !== null ? { role: role } : {};
|
|
47
|
-
return this.iterator().pageBefore(beforeId, requestParameters, pageSize);
|
|
48
|
-
};
|
|
49
|
-
Users.prototype.iterator = function () {
|
|
50
|
-
return new Lister_1.Lister('/users', this.client, function (data) {
|
|
51
|
-
var users = data.items.map(function (usersData) { return new User_1.User(usersData); });
|
|
52
|
-
return new Page_1.Page(users, data.next_page_starts_after, data.previous_page_ends_before);
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
return Users;
|
|
56
|
-
}());
|
|
57
|
-
exports.Users = Users;
|