@ibiliaze/global-vars 1.145.0 → 1.147.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.
|
@@ -814,6 +814,9 @@ export interface StaffBase<Id, TDate> {
|
|
|
814
814
|
createdAt?: TDate;
|
|
815
815
|
updatedAt?: TDate;
|
|
816
816
|
}
|
|
817
|
+
export type StaffTypeWithPopulatedRolesBase<Id, TDate> = StaffBase<Id, TDate> & {
|
|
818
|
+
populatedRoles: RoleBase<Id, TDate>[];
|
|
819
|
+
};
|
|
817
820
|
export interface UserTokenBase<Id> {
|
|
818
821
|
_id?: Id;
|
|
819
822
|
token: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CampaignBase, GroupBase, JobBase } from '../inputsDefault';
|
|
2
|
-
import type { JobAttributes
|
|
1
|
+
import type { AgendaJobData, CampaignBase, GroupBase, JobBase } from '../inputsDefault';
|
|
2
|
+
import type { JobAttributes } from 'agenda';
|
|
3
3
|
export declare const jobRoleDefs: <TId, TDate>() => readonly [{
|
|
4
4
|
readonly method: "post";
|
|
5
5
|
readonly path: "/job";
|
|
@@ -32,7 +32,7 @@ export declare const jobRoleDefs: <TId, TDate>() => readonly [{
|
|
|
32
32
|
readonly role: "postJobStartById";
|
|
33
33
|
readonly name: "Run job by ID";
|
|
34
34
|
readonly response_201: {
|
|
35
|
-
job: JobAttributes<
|
|
35
|
+
job: JobAttributes<AgendaJobData<TId, TDate>>;
|
|
36
36
|
message: string;
|
|
37
37
|
};
|
|
38
38
|
readonly response_404: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { StaffBase } from '../inputsDefault';
|
|
1
|
+
import type { StaffBase, StaffTypeWithPopulatedRolesBase } from '../inputsDefault';
|
|
2
2
|
export declare const staffRoleDefs: <TId, TDate>() => readonly [{
|
|
3
3
|
readonly method: "post";
|
|
4
4
|
readonly path: "/staff/admin";
|
|
@@ -82,7 +82,7 @@ export declare const staffRoleDefs: <TId, TDate>() => readonly [{
|
|
|
82
82
|
readonly role: "getStaff";
|
|
83
83
|
readonly name: "Get current staff";
|
|
84
84
|
readonly response_200: {
|
|
85
|
-
staff:
|
|
85
|
+
staff: StaffTypeWithPopulatedRolesBase<TId, TDate>;
|
|
86
86
|
};
|
|
87
87
|
readonly response_500: {
|
|
88
88
|
message: string;
|
|
@@ -1042,7 +1042,7 @@ export declare const apis: <TId, TDate>() => readonly [{
|
|
|
1042
1042
|
readonly role: "postJobStartById";
|
|
1043
1043
|
readonly name: "Run job by ID";
|
|
1044
1044
|
readonly response_201: {
|
|
1045
|
-
job: import("agenda").JobAttributes<import("
|
|
1045
|
+
job: import("agenda").JobAttributes<import("./inputsDefault").AgendaJobData<TId_11, TDate_11>>;
|
|
1046
1046
|
message: string;
|
|
1047
1047
|
};
|
|
1048
1048
|
readonly response_404: {
|
|
@@ -1924,6 +1924,9 @@ export declare const apis: <TId, TDate>() => readonly [{
|
|
|
1924
1924
|
readonly response_400: {
|
|
1925
1925
|
message: string;
|
|
1926
1926
|
};
|
|
1927
|
+
readonly response_404: {
|
|
1928
|
+
message: string;
|
|
1929
|
+
};
|
|
1927
1930
|
readonly response_500: {
|
|
1928
1931
|
message: string;
|
|
1929
1932
|
error: string;
|
|
@@ -2229,7 +2232,7 @@ export declare const apis: <TId, TDate>() => readonly [{
|
|
|
2229
2232
|
readonly role: "getStaff";
|
|
2230
2233
|
readonly name: "Get current staff";
|
|
2231
2234
|
readonly response_200: {
|
|
2232
|
-
staff: import("./inputsDefault").
|
|
2235
|
+
staff: import("./inputsDefault").StaffTypeWithPopulatedRolesBase<TId_23, TDate_23>;
|
|
2233
2236
|
};
|
|
2234
2237
|
readonly response_500: {
|
|
2235
2238
|
message: string;
|
|
@@ -3638,7 +3641,7 @@ declare const allApis: readonly [{
|
|
|
3638
3641
|
readonly role: "postJobStartById";
|
|
3639
3642
|
readonly name: "Run job by ID";
|
|
3640
3643
|
readonly response_201: {
|
|
3641
|
-
job: import("agenda").JobAttributes<import("
|
|
3644
|
+
job: import("agenda").JobAttributes<import("./inputsDefault").AgendaJobData<TId_10, TDate_10>>;
|
|
3642
3645
|
message: string;
|
|
3643
3646
|
};
|
|
3644
3647
|
readonly response_404: {
|
|
@@ -4520,6 +4523,9 @@ declare const allApis: readonly [{
|
|
|
4520
4523
|
readonly response_400: {
|
|
4521
4524
|
message: string;
|
|
4522
4525
|
};
|
|
4526
|
+
readonly response_404: {
|
|
4527
|
+
message: string;
|
|
4528
|
+
};
|
|
4523
4529
|
readonly response_500: {
|
|
4524
4530
|
message: string;
|
|
4525
4531
|
error: string;
|
|
@@ -4825,7 +4831,7 @@ declare const allApis: readonly [{
|
|
|
4825
4831
|
readonly role: "getStaff";
|
|
4826
4832
|
readonly name: "Get current staff";
|
|
4827
4833
|
readonly response_200: {
|
|
4828
|
-
staff: import("./inputsDefault").
|
|
4834
|
+
staff: import("./inputsDefault").StaffTypeWithPopulatedRolesBase<TId_22, TDate_22>;
|
|
4829
4835
|
};
|
|
4830
4836
|
readonly response_500: {
|
|
4831
4837
|
message: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiliaze/global-vars",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.147.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build": "tsc",
|
|
24
24
|
"pub": "npm publish --access public",
|
|
25
|
-
"git": "git add .; git commit -m 'changes'; git tag -a v1.
|
|
25
|
+
"git": "git add .; git commit -m 'changes'; git tag -a v1.147.0 -m 'v1.147.0'; git push origin v1.147.0; git push",
|
|
26
26
|
"push": "npm run build; npm run git; npm run pub"
|
|
27
27
|
},
|
|
28
28
|
"author": "Ibi Hasanli",
|