namirasoft-account
Advanced tools
Comparing version 1.4.20 to 1.4.21
@@ -19,3 +19,3 @@ "use strict"; | ||
constructor(argv) { | ||
super(argv, ["filters", "page", "size"], []); | ||
super(argv, ["filters", "page", "size", "user_id"], []); | ||
} | ||
@@ -32,3 +32,3 @@ exec() { | ||
let server = new NamirasoftAccountServer_1.NamirasoftAccountServer(url, manager, e => this.app.logger.error(e.message)); | ||
let ans = yield server.servicesession.List(this.arg_values[0], this.arg_values[1], this.arg_values[2]); | ||
let ans = yield server.servicesession.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]); | ||
this.app.logger.success(JSON.stringify(ans)); | ||
@@ -35,0 +35,0 @@ }); |
@@ -19,3 +19,3 @@ "use strict"; | ||
constructor(argv) { | ||
super(argv, ["filters", "page", "size"], []); | ||
super(argv, ["filters", "page", "size", "user_id"], []); | ||
} | ||
@@ -32,3 +32,3 @@ exec() { | ||
let server = new NamirasoftAccountServer_1.NamirasoftAccountServer(url, manager, e => this.app.logger.error(e.message)); | ||
let ans = yield server.serviceuser.List(this.arg_values[0], this.arg_values[1], this.arg_values[2]); | ||
let ans = yield server.serviceuser.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]); | ||
this.app.logger.success(JSON.stringify(ans)); | ||
@@ -35,0 +35,0 @@ }); |
@@ -19,3 +19,3 @@ "use strict"; | ||
constructor(argv) { | ||
super(argv, ["filters", "page", "size"], []); | ||
super(argv, ["filters", "page", "size", "user_id"], []); | ||
} | ||
@@ -32,3 +32,3 @@ exec() { | ||
let server = new NamirasoftAccountServer_1.NamirasoftAccountServer(url, manager, e => this.app.logger.error(e.message)); | ||
let ans = yield server.sessioncategory.List(this.arg_values[0], this.arg_values[1], this.arg_values[2]); | ||
let ans = yield server.sessioncategory.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]); | ||
this.app.logger.success(JSON.stringify(ans)); | ||
@@ -35,0 +35,0 @@ }); |
@@ -19,3 +19,3 @@ "use strict"; | ||
constructor(argv) { | ||
super(argv, ["filters", "page", "size"], []); | ||
super(argv, ["filters", "page", "size", "user_id"], []); | ||
} | ||
@@ -32,3 +32,3 @@ exec() { | ||
let server = new NamirasoftAccountServer_1.NamirasoftAccountServer(url, manager, e => this.app.logger.error(e.message)); | ||
let ans = yield server.sessionfield.List(this.arg_values[0], this.arg_values[1], this.arg_values[2]); | ||
let ans = yield server.sessionfield.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]); | ||
this.app.logger.success(JSON.stringify(ans)); | ||
@@ -35,0 +35,0 @@ }); |
@@ -19,3 +19,3 @@ "use strict"; | ||
constructor(argv) { | ||
super(argv, ["filters", "page", "size"], []); | ||
super(argv, ["filters", "page", "size", "user_id"], []); | ||
} | ||
@@ -32,3 +32,3 @@ exec() { | ||
let server = new NamirasoftAccountServer_1.NamirasoftAccountServer(url, manager, e => this.app.logger.error(e.message)); | ||
let ans = yield server.session.List(this.arg_values[0], this.arg_values[1], this.arg_values[2]); | ||
let ans = yield server.session.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]); | ||
this.app.logger.success(JSON.stringify(ans)); | ||
@@ -35,0 +35,0 @@ }); |
@@ -19,3 +19,3 @@ "use strict"; | ||
constructor(argv) { | ||
super(argv, ["filters", "page", "size"], []); | ||
super(argv, ["filters", "page", "size", "user_id"], []); | ||
} | ||
@@ -32,3 +32,3 @@ exec() { | ||
let server = new NamirasoftAccountServer_1.NamirasoftAccountServer(url, manager, e => this.app.logger.error(e.message)); | ||
let ans = yield server.sessiontag.List(this.arg_values[0], this.arg_values[1], this.arg_values[2]); | ||
let ans = yield server.sessiontag.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]); | ||
this.app.logger.success(JSON.stringify(ans)); | ||
@@ -35,0 +35,0 @@ }); |
@@ -19,3 +19,3 @@ "use strict"; | ||
constructor(argv) { | ||
super(argv, ["filters", "page", "size"], []); | ||
super(argv, ["filters", "page", "size", "user_id"], []); | ||
} | ||
@@ -32,3 +32,3 @@ exec() { | ||
let server = new NamirasoftAccountServer_1.NamirasoftAccountServer(url, manager, e => this.app.logger.error(e.message)); | ||
let ans = yield server.usercategory.List(this.arg_values[0], this.arg_values[1], this.arg_values[2]); | ||
let ans = yield server.usercategory.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]); | ||
this.app.logger.success(JSON.stringify(ans)); | ||
@@ -35,0 +35,0 @@ }); |
@@ -10,2 +10,3 @@ "use strict"; | ||
const UserGetCommand_1 = require("./UserGetCommand"); | ||
const UserGetEmailCommand_1 = require("./UserGetEmailCommand"); | ||
const UserGoogleCommand_1 = require("./UserGoogleCommand"); | ||
@@ -19,2 +20,3 @@ const UserRegisterCommand_1 = require("./UserRegisterCommand"); | ||
"register": UserRegisterCommand_1.UserRegisterCommand, | ||
"getemail": UserGetEmailCommand_1.UserGetEmailCommand, | ||
"get": UserGetCommand_1.UserGetCommand, | ||
@@ -21,0 +23,0 @@ "google": UserGoogleCommand_1.UserGoogleCommand, |
@@ -19,3 +19,3 @@ "use strict"; | ||
constructor(argv) { | ||
super(argv, ["filters", "page", "size"], []); | ||
super(argv, ["filters", "page", "size", "user_id"], []); | ||
} | ||
@@ -32,3 +32,3 @@ exec() { | ||
let server = new NamirasoftAccountServer_1.NamirasoftAccountServer(url, manager, e => this.app.logger.error(e.message)); | ||
let ans = yield server.userfield.List(this.arg_values[0], this.arg_values[1], this.arg_values[2]); | ||
let ans = yield server.userfield.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]); | ||
this.app.logger.success(JSON.stringify(ans)); | ||
@@ -35,0 +35,0 @@ }); |
@@ -19,3 +19,3 @@ "use strict"; | ||
constructor(argv) { | ||
super(argv, ["filters", "page", "size"], []); | ||
super(argv, ["filters", "page", "size", "user_id"], []); | ||
} | ||
@@ -32,3 +32,3 @@ exec() { | ||
let server = new NamirasoftAccountServer_1.NamirasoftAccountServer(url, manager, e => this.app.logger.error(e.message)); | ||
let ans = yield server.usertag.List(this.arg_values[0], this.arg_values[1], this.arg_values[2]); | ||
let ans = yield server.usertag.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]); | ||
this.app.logger.success(JSON.stringify(ans)); | ||
@@ -35,0 +35,0 @@ }); |
@@ -101,2 +101,3 @@ export * from "./NamirasoftAccountBaseHeader"; | ||
export * from "./command/UserGetCommand"; | ||
export * from "./command/UserGetEmailCommand"; | ||
export * from "./command/UserGoogleCommand"; | ||
@@ -103,0 +104,0 @@ export * from "./command/UserRegisterCommand"; |
@@ -117,2 +117,3 @@ "use strict"; | ||
__exportStar(require("./command/UserGetCommand"), exports); | ||
__exportStar(require("./command/UserGetEmailCommand"), exports); | ||
__exportStar(require("./command/UserGoogleCommand"), exports); | ||
@@ -119,0 +120,0 @@ __exportStar(require("./command/UserRegisterCommand"), exports); |
@@ -7,3 +7,3 @@ "use strict"; | ||
constructor(base_url, manager, onError) { | ||
super(base_url, `1.4.20`, manager, onError); | ||
super(base_url, `1.4.21`, manager, onError); | ||
} | ||
@@ -10,0 +10,0 @@ } |
@@ -9,3 +9,3 @@ import { FilterItem } from "namirasoft-core"; | ||
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void); | ||
List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{ | ||
List(filters: FilterItem[] | null, page: (number | null), size: (number | null), user_id: (string | null)): Promise<{ | ||
rows: SessionRow[]; | ||
@@ -12,0 +12,0 @@ count: number; |
@@ -23,7 +23,7 @@ "use strict"; | ||
} | ||
List(filters, page, size) { | ||
List(filters, page, size, user_id) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
let filters_string_value = namirasoft_core_1.FilterItem.stringify(filters); | ||
let path = `/service/session/list`; | ||
let { data } = yield this._get(path, { filters: filters_string_value, page, size }); | ||
let { data } = yield this._get(path, { filters: filters_string_value, page, size, user_id }); | ||
return data; | ||
@@ -30,0 +30,0 @@ }); |
@@ -8,3 +8,3 @@ import { FilterItem } from "namirasoft-core"; | ||
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void); | ||
List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{ | ||
List(filters: FilterItem[] | null, page: (number | null), size: (number | null), user_id: (string | null)): Promise<{ | ||
rows: UserRow[]; | ||
@@ -11,0 +11,0 @@ count: number; |
@@ -24,7 +24,7 @@ "use strict"; | ||
} | ||
List(filters, page, size) { | ||
List(filters, page, size, user_id) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
let filters_string_value = namirasoft_core_1.FilterItem.stringify(filters); | ||
let path = `/service/user/list`; | ||
let { data } = yield this._get(path, { filters: filters_string_value, page, size }); | ||
let { data } = yield this._get(path, { filters: filters_string_value, page, size, user_id }); | ||
return data; | ||
@@ -31,0 +31,0 @@ }); |
@@ -12,3 +12,3 @@ import { FilterItem } from "namirasoft-core"; | ||
Current(): Promise<NamirasoftAccountToken>; | ||
List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{ | ||
List(filters: FilterItem[] | null, page: (number | null), size: (number | null), user_id: (string | null)): Promise<{ | ||
rows: SessionRow[]; | ||
@@ -15,0 +15,0 @@ count: number; |
@@ -47,7 +47,7 @@ "use strict"; | ||
} | ||
List(filters, page, size) { | ||
List(filters, page, size, user_id) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
let filters_string_value = namirasoft_core_1.FilterItem.stringify(filters); | ||
let path = `/session/list`; | ||
let { data } = yield this._get(path, { filters: filters_string_value, page, size }); | ||
let { data } = yield this._get(path, { filters: filters_string_value, page, size, user_id }); | ||
return data; | ||
@@ -54,0 +54,0 @@ }); |
@@ -8,3 +8,3 @@ import { EntityCategoryInputRow } from "./row/EntityCategoryInputRow"; | ||
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void); | ||
List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{ | ||
List(filters: FilterItem[] | null, page: (number | null), size: (number | null), user_id: (string | null)): Promise<{ | ||
rows: SessionCategoryRow[]; | ||
@@ -11,0 +11,0 @@ count: number; |
@@ -23,7 +23,7 @@ "use strict"; | ||
} | ||
List(filters, page, size) { | ||
List(filters, page, size, user_id) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
let filters_string_value = namirasoft_core_1.FilterItem.stringify(filters); | ||
let path = `session/category/list`; | ||
let { data } = yield this._get(path, { filters: filters_string_value, page, size }); | ||
let { data } = yield this._get(path, { filters: filters_string_value, page, size, user_id }); | ||
return data; | ||
@@ -30,0 +30,0 @@ }); |
@@ -8,3 +8,3 @@ import { EntityFieldInputRow } from "./row/EntityFieldInputRow"; | ||
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void); | ||
List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{ | ||
List(filters: FilterItem[] | null, page: (number | null), size: (number | null), user_id: (string | null)): Promise<{ | ||
rows: SessionFieldRow[]; | ||
@@ -11,0 +11,0 @@ count: number; |
@@ -24,7 +24,7 @@ "use strict"; | ||
} | ||
List(filters, page, size) { | ||
List(filters, page, size, user_id) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
let filters_string_value = namirasoft_core_1.FilterItem.stringify(filters); | ||
let path = `session/field/list`; | ||
let { data } = yield this._get(path, { filters: filters_string_value, page, size }); | ||
let { data } = yield this._get(path, { filters: filters_string_value, page, size, user_id }); | ||
return data; | ||
@@ -31,0 +31,0 @@ }); |
@@ -8,3 +8,3 @@ import { EntityTagInputRow } from "./row/EntityTagInputRow"; | ||
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void); | ||
List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{ | ||
List(filters: FilterItem[] | null, page: (number | null), size: (number | null), user_id: (string | null)): Promise<{ | ||
rows: SessionTagRow[]; | ||
@@ -11,0 +11,0 @@ count: number; |
@@ -24,7 +24,7 @@ "use strict"; | ||
} | ||
List(filters, page, size) { | ||
List(filters, page, size, user_id) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
let filters_string_value = namirasoft_core_1.FilterItem.stringify(filters); | ||
let path = `session/tag/list`; | ||
let { data } = yield this._get(path, { filters: filters_string_value, page, size }); | ||
let { data } = yield this._get(path, { filters: filters_string_value, page, size, user_id }); | ||
return data; | ||
@@ -31,0 +31,0 @@ }); |
@@ -12,2 +12,3 @@ import { NamirasoftAccountServerBase } from "./NamirasoftAccountServerBase"; | ||
Register(body: UserCreateRow): Promise<NamirasoftAccountToken>; | ||
GetEmail(email: string): Promise<UserRow>; | ||
Get(id: string): Promise<UserRow>; | ||
@@ -14,0 +15,0 @@ Google(body: UserCreateByGoogleRow): Promise<NamirasoftAccountToken>; |
@@ -19,2 +19,3 @@ "use strict"; | ||
this.Register = this.Register.bind(this); | ||
this.GetEmail = this.GetEmail.bind(this); | ||
this.Get = this.Get.bind(this); | ||
@@ -42,2 +43,9 @@ this.Google = this.Google.bind(this); | ||
} | ||
GetEmail(email) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
let path = `/user/email/${email}`; | ||
let { data } = yield this._get(path, {}); | ||
return data; | ||
}); | ||
} | ||
Get(id) { | ||
@@ -44,0 +52,0 @@ return __awaiter(this, void 0, void 0, function* () { |
@@ -8,3 +8,3 @@ import { EntityCategoryInputRow } from "./row/EntityCategoryInputRow"; | ||
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void); | ||
List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{ | ||
List(filters: FilterItem[] | null, page: (number | null), size: (number | null), user_id: (string | null)): Promise<{ | ||
rows: UserCategoryRow[]; | ||
@@ -11,0 +11,0 @@ count: number; |
@@ -23,7 +23,7 @@ "use strict"; | ||
} | ||
List(filters, page, size) { | ||
List(filters, page, size, user_id) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
let filters_string_value = namirasoft_core_1.FilterItem.stringify(filters); | ||
let path = `user/category/list`; | ||
let { data } = yield this._get(path, { filters: filters_string_value, page, size }); | ||
let { data } = yield this._get(path, { filters: filters_string_value, page, size, user_id }); | ||
return data; | ||
@@ -30,0 +30,0 @@ }); |
@@ -8,3 +8,3 @@ import { EntityFieldInputRow } from "./row/EntityFieldInputRow"; | ||
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void); | ||
List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{ | ||
List(filters: FilterItem[] | null, page: (number | null), size: (number | null), user_id: (string | null)): Promise<{ | ||
rows: UserFieldRow[]; | ||
@@ -11,0 +11,0 @@ count: number; |
@@ -24,7 +24,7 @@ "use strict"; | ||
} | ||
List(filters, page, size) { | ||
List(filters, page, size, user_id) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
let filters_string_value = namirasoft_core_1.FilterItem.stringify(filters); | ||
let path = `user/field/list`; | ||
let { data } = yield this._get(path, { filters: filters_string_value, page, size }); | ||
let { data } = yield this._get(path, { filters: filters_string_value, page, size, user_id }); | ||
return data; | ||
@@ -31,0 +31,0 @@ }); |
@@ -8,3 +8,3 @@ import { EntityTagInputRow } from "./row/EntityTagInputRow"; | ||
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void); | ||
List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{ | ||
List(filters: FilterItem[] | null, page: (number | null), size: (number | null), user_id: (string | null)): Promise<{ | ||
rows: UserTagRow[]; | ||
@@ -11,0 +11,0 @@ count: number; |
@@ -24,7 +24,7 @@ "use strict"; | ||
} | ||
List(filters, page, size) { | ||
List(filters, page, size, user_id) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
let filters_string_value = namirasoft_core_1.FilterItem.stringify(filters); | ||
let path = `user/tag/list`; | ||
let { data } = yield this._get(path, { filters: filters_string_value, page, size }); | ||
let { data } = yield this._get(path, { filters: filters_string_value, page, size, user_id }); | ||
return data; | ||
@@ -31,0 +31,0 @@ }); |
@@ -11,3 +11,3 @@ { | ||
"private": false, | ||
"version": "1.4.20", | ||
"version": "1.4.21", | ||
"author": "Amir Abolhasani", | ||
@@ -14,0 +14,0 @@ "license": "MIT", |
@@ -30,3 +30,3 @@ /****************************************************************/ | ||
{ | ||
super(argv, ["filters", "page", "size"], []); | ||
super(argv, ["filters", "page", "size", "user_id"], []); | ||
} | ||
@@ -43,5 +43,5 @@ override async exec() | ||
let server = new NamirasoftAccountServer(url, manager, e => this.app.logger.error(e.message)); | ||
let ans = await server.servicesession.List(this.arg_values[0], this.arg_values[1], this.arg_values[2]); | ||
let ans = await server.servicesession.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]); | ||
this.app.logger.success(JSON.stringify(ans)); | ||
} | ||
}; |
@@ -30,3 +30,3 @@ /****************************************************************/ | ||
{ | ||
super(argv, ["filters", "page", "size"], []); | ||
super(argv, ["filters", "page", "size", "user_id"], []); | ||
} | ||
@@ -43,5 +43,5 @@ override async exec() | ||
let server = new NamirasoftAccountServer(url, manager, e => this.app.logger.error(e.message)); | ||
let ans = await server.serviceuser.List(this.arg_values[0], this.arg_values[1], this.arg_values[2]); | ||
let ans = await server.serviceuser.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]); | ||
this.app.logger.success(JSON.stringify(ans)); | ||
} | ||
}; |
@@ -30,3 +30,3 @@ /****************************************************************/ | ||
{ | ||
super(argv, ["filters", "page", "size"], []); | ||
super(argv, ["filters", "page", "size", "user_id"], []); | ||
} | ||
@@ -43,5 +43,5 @@ override async exec() | ||
let server = new NamirasoftAccountServer(url, manager, e => this.app.logger.error(e.message)); | ||
let ans = await server.sessioncategory.List(this.arg_values[0], this.arg_values[1], this.arg_values[2]); | ||
let ans = await server.sessioncategory.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]); | ||
this.app.logger.success(JSON.stringify(ans)); | ||
} | ||
}; |
@@ -30,3 +30,3 @@ /****************************************************************/ | ||
{ | ||
super(argv, ["filters", "page", "size"], []); | ||
super(argv, ["filters", "page", "size", "user_id"], []); | ||
} | ||
@@ -43,5 +43,5 @@ override async exec() | ||
let server = new NamirasoftAccountServer(url, manager, e => this.app.logger.error(e.message)); | ||
let ans = await server.sessionfield.List(this.arg_values[0], this.arg_values[1], this.arg_values[2]); | ||
let ans = await server.sessionfield.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]); | ||
this.app.logger.success(JSON.stringify(ans)); | ||
} | ||
}; |
@@ -30,3 +30,3 @@ /****************************************************************/ | ||
{ | ||
super(argv, ["filters", "page", "size"], []); | ||
super(argv, ["filters", "page", "size", "user_id"], []); | ||
} | ||
@@ -43,5 +43,5 @@ override async exec() | ||
let server = new NamirasoftAccountServer(url, manager, e => this.app.logger.error(e.message)); | ||
let ans = await server.session.List(this.arg_values[0], this.arg_values[1], this.arg_values[2]); | ||
let ans = await server.session.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]); | ||
this.app.logger.success(JSON.stringify(ans)); | ||
} | ||
}; |
@@ -30,3 +30,3 @@ /****************************************************************/ | ||
{ | ||
super(argv, ["filters", "page", "size"], []); | ||
super(argv, ["filters", "page", "size", "user_id"], []); | ||
} | ||
@@ -43,5 +43,5 @@ override async exec() | ||
let server = new NamirasoftAccountServer(url, manager, e => this.app.logger.error(e.message)); | ||
let ans = await server.sessiontag.List(this.arg_values[0], this.arg_values[1], this.arg_values[2]); | ||
let ans = await server.sessiontag.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]); | ||
this.app.logger.success(JSON.stringify(ans)); | ||
} | ||
}; |
@@ -30,3 +30,3 @@ /****************************************************************/ | ||
{ | ||
super(argv, ["filters", "page", "size"], []); | ||
super(argv, ["filters", "page", "size", "user_id"], []); | ||
} | ||
@@ -43,5 +43,5 @@ override async exec() | ||
let server = new NamirasoftAccountServer(url, manager, e => this.app.logger.error(e.message)); | ||
let ans = await server.usercategory.List(this.arg_values[0], this.arg_values[1], this.arg_values[2]); | ||
let ans = await server.usercategory.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]); | ||
this.app.logger.success(JSON.stringify(ans)); | ||
} | ||
}; |
@@ -27,2 +27,3 @@ /****************************************************************/ | ||
import { UserGetCommand } from "./UserGetCommand"; | ||
import { UserGetEmailCommand } from "./UserGetEmailCommand"; | ||
import { UserGoogleCommand } from "./UserGoogleCommand"; | ||
@@ -39,2 +40,3 @@ import { UserRegisterCommand } from "./UserRegisterCommand"; | ||
"register": UserRegisterCommand, | ||
"getemail": UserGetEmailCommand, | ||
"get": UserGetCommand, | ||
@@ -41,0 +43,0 @@ "google": UserGoogleCommand, |
@@ -30,3 +30,3 @@ /****************************************************************/ | ||
{ | ||
super(argv, ["filters", "page", "size"], []); | ||
super(argv, ["filters", "page", "size", "user_id"], []); | ||
} | ||
@@ -43,5 +43,5 @@ override async exec() | ||
let server = new NamirasoftAccountServer(url, manager, e => this.app.logger.error(e.message)); | ||
let ans = await server.userfield.List(this.arg_values[0], this.arg_values[1], this.arg_values[2]); | ||
let ans = await server.userfield.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]); | ||
this.app.logger.success(JSON.stringify(ans)); | ||
} | ||
}; |
@@ -30,3 +30,3 @@ /****************************************************************/ | ||
{ | ||
super(argv, ["filters", "page", "size"], []); | ||
super(argv, ["filters", "page", "size", "user_id"], []); | ||
} | ||
@@ -43,5 +43,5 @@ override async exec() | ||
let server = new NamirasoftAccountServer(url, manager, e => this.app.logger.error(e.message)); | ||
let ans = await server.usertag.List(this.arg_values[0], this.arg_values[1], this.arg_values[2]); | ||
let ans = await server.usertag.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]); | ||
this.app.logger.success(JSON.stringify(ans)); | ||
} | ||
}; |
@@ -121,2 +121,3 @@ /****************************************************************/ | ||
export * from "./command/UserGetCommand"; | ||
export * from "./command/UserGetEmailCommand"; | ||
export * from "./command/UserGoogleCommand"; | ||
@@ -123,0 +124,0 @@ export * from "./command/UserRegisterCommand"; |
@@ -28,4 +28,4 @@ /****************************************************************/ | ||
{ | ||
super(base_url, `1.4.20`, manager, onError); | ||
super(base_url, `1.4.21`, manager, onError); | ||
} | ||
}; |
@@ -38,7 +38,7 @@ /****************************************************************/ | ||
} | ||
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{ rows: SessionRow[], count: number }> | ||
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), user_id: (string | null)): Promise<{ rows: SessionRow[], count: number }> | ||
{ | ||
let filters_string_value: string = FilterItem.stringify(filters); | ||
let path = `/service/session/list`; | ||
let { data } = await this._get<{ rows: SessionRow[], count: number }>(path, { filters: filters_string_value, page, size }); | ||
let { data } = await this._get<{ rows: SessionRow[], count: number }>(path, { filters: filters_string_value, page, size, user_id }); | ||
return data; | ||
@@ -45,0 +45,0 @@ } |
@@ -38,7 +38,7 @@ /****************************************************************/ | ||
} | ||
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{ rows: UserRow[], count: number }> | ||
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), user_id: (string | null)): Promise<{ rows: UserRow[], count: number }> | ||
{ | ||
let filters_string_value: string = FilterItem.stringify(filters); | ||
let path = `/service/user/list`; | ||
let { data } = await this._get<{ rows: UserRow[], count: number }>(path, { filters: filters_string_value, page, size }); | ||
let { data } = await this._get<{ rows: UserRow[], count: number }>(path, { filters: filters_string_value, page, size, user_id }); | ||
return data; | ||
@@ -45,0 +45,0 @@ } |
@@ -59,7 +59,7 @@ /****************************************************************/ | ||
} | ||
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{ rows: SessionRow[], count: number }> | ||
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), user_id: (string | null)): Promise<{ rows: SessionRow[], count: number }> | ||
{ | ||
let filters_string_value: string = FilterItem.stringify(filters); | ||
let path = `/session/list`; | ||
let { data } = await this._get<{ rows: SessionRow[], count: number }>(path, { filters: filters_string_value, page, size }); | ||
let { data } = await this._get<{ rows: SessionRow[], count: number }>(path, { filters: filters_string_value, page, size, user_id }); | ||
return data; | ||
@@ -66,0 +66,0 @@ } |
@@ -37,7 +37,7 @@ /****************************************************************/ | ||
} | ||
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{ rows: SessionCategoryRow[], count: number }> | ||
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), user_id: (string | null)): Promise<{ rows: SessionCategoryRow[], count: number }> | ||
{ | ||
let filters_string_value: string = FilterItem.stringify(filters); | ||
let path = `session/category/list`; | ||
let { data } = await this._get<{ rows: SessionCategoryRow[], count: number }>(path, { filters: filters_string_value, page, size }); | ||
let { data } = await this._get<{ rows: SessionCategoryRow[], count: number }>(path, { filters: filters_string_value, page, size, user_id }); | ||
return data; | ||
@@ -44,0 +44,0 @@ } |
@@ -38,7 +38,7 @@ /****************************************************************/ | ||
} | ||
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{ rows: SessionFieldRow[], count: number }> | ||
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), user_id: (string | null)): Promise<{ rows: SessionFieldRow[], count: number }> | ||
{ | ||
let filters_string_value: string = FilterItem.stringify(filters); | ||
let path = `session/field/list`; | ||
let { data } = await this._get<{ rows: SessionFieldRow[], count: number }>(path, { filters: filters_string_value, page, size }); | ||
let { data } = await this._get<{ rows: SessionFieldRow[], count: number }>(path, { filters: filters_string_value, page, size, user_id }); | ||
return data; | ||
@@ -45,0 +45,0 @@ } |
@@ -38,7 +38,7 @@ /****************************************************************/ | ||
} | ||
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{ rows: SessionTagRow[], count: number }> | ||
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), user_id: (string | null)): Promise<{ rows: SessionTagRow[], count: number }> | ||
{ | ||
let filters_string_value: string = FilterItem.stringify(filters); | ||
let path = `session/tag/list`; | ||
let { data } = await this._get<{ rows: SessionTagRow[], count: number }>(path, { filters: filters_string_value, page, size }); | ||
let { data } = await this._get<{ rows: SessionTagRow[], count: number }>(path, { filters: filters_string_value, page, size, user_id }); | ||
return data; | ||
@@ -45,0 +45,0 @@ } |
@@ -36,2 +36,3 @@ /****************************************************************/ | ||
this.Register = this.Register.bind(this); | ||
this.GetEmail = this.GetEmail.bind(this); | ||
this.Get = this.Get.bind(this); | ||
@@ -57,2 +58,8 @@ this.Google = this.Google.bind(this); | ||
} | ||
async GetEmail(email: string): Promise<UserRow> | ||
{ | ||
let path = `/user/email/${email}`; | ||
let { data } = await this._get<UserRow>(path, {}); | ||
return data; | ||
} | ||
async Get(id: string): Promise<UserRow> | ||
@@ -59,0 +66,0 @@ { |
@@ -37,7 +37,7 @@ /****************************************************************/ | ||
} | ||
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{ rows: UserCategoryRow[], count: number }> | ||
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), user_id: (string | null)): Promise<{ rows: UserCategoryRow[], count: number }> | ||
{ | ||
let filters_string_value: string = FilterItem.stringify(filters); | ||
let path = `user/category/list`; | ||
let { data } = await this._get<{ rows: UserCategoryRow[], count: number }>(path, { filters: filters_string_value, page, size }); | ||
let { data } = await this._get<{ rows: UserCategoryRow[], count: number }>(path, { filters: filters_string_value, page, size, user_id }); | ||
return data; | ||
@@ -44,0 +44,0 @@ } |
@@ -38,7 +38,7 @@ /****************************************************************/ | ||
} | ||
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{ rows: UserFieldRow[], count: number }> | ||
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), user_id: (string | null)): Promise<{ rows: UserFieldRow[], count: number }> | ||
{ | ||
let filters_string_value: string = FilterItem.stringify(filters); | ||
let path = `user/field/list`; | ||
let { data } = await this._get<{ rows: UserFieldRow[], count: number }>(path, { filters: filters_string_value, page, size }); | ||
let { data } = await this._get<{ rows: UserFieldRow[], count: number }>(path, { filters: filters_string_value, page, size, user_id }); | ||
return data; | ||
@@ -45,0 +45,0 @@ } |
@@ -38,7 +38,7 @@ /****************************************************************/ | ||
} | ||
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{ rows: UserTagRow[], count: number }> | ||
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), user_id: (string | null)): Promise<{ rows: UserTagRow[], count: number }> | ||
{ | ||
let filters_string_value: string = FilterItem.stringify(filters); | ||
let path = `user/tag/list`; | ||
let { data } = await this._get<{ rows: UserTagRow[], count: number }>(path, { filters: filters_string_value, page, size }); | ||
let { data } = await this._get<{ rows: UserTagRow[], count: number }>(path, { filters: filters_string_value, page, size, user_id }); | ||
return data; | ||
@@ -45,0 +45,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
929052
570
12722