@reviza/api-client 0.0.1
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/README.md +1 -0
- package/dist/App/Data/ActionLog/index.d.ts +25 -0
- package/dist/App/Data/ActionLog/index.js +1 -0
- package/dist/App/Data/Auth/index.d.ts +36 -0
- package/dist/App/Data/Auth/index.js +1 -0
- package/dist/App/Data/Category/index.d.ts +67 -0
- package/dist/App/Data/Category/index.js +1 -0
- package/dist/App/Data/Config/index.d.ts +36 -0
- package/dist/App/Data/Config/index.js +1 -0
- package/dist/App/Data/Demo/index.d.ts +20 -0
- package/dist/App/Data/Demo/index.js +1 -0
- package/dist/App/Data/Document/index.d.ts +22 -0
- package/dist/App/Data/Document/index.js +1 -0
- package/dist/App/Data/Facility/index.d.ts +108 -0
- package/dist/App/Data/Facility/index.js +1 -0
- package/dist/App/Data/FrontendRoute/index.d.ts +6 -0
- package/dist/App/Data/FrontendRoute/index.js +1 -0
- package/dist/App/Data/Map/index.d.ts +25 -0
- package/dist/App/Data/Map/index.js +1 -0
- package/dist/App/Data/Me/index.d.ts +29 -0
- package/dist/App/Data/Me/index.js +1 -0
- package/dist/App/Data/Notification/index.d.ts +32 -0
- package/dist/App/Data/Notification/index.js +1 -0
- package/dist/App/Data/Organization/index.d.ts +57 -0
- package/dist/App/Data/Organization/index.js +1 -0
- package/dist/App/Data/Permission/index.d.ts +32 -0
- package/dist/App/Data/Permission/index.js +1 -0
- package/dist/App/Data/Revision/index.d.ts +72 -0
- package/dist/App/Data/Revision/index.js +1 -0
- package/dist/App/Data/Search/index.d.ts +24 -0
- package/dist/App/Data/Search/index.js +1 -0
- package/dist/App/Data/Subscription/index.d.ts +25 -0
- package/dist/App/Data/Subscription/index.js +1 -0
- package/dist/App/Data/User/index.d.ts +31 -0
- package/dist/App/Data/User/index.js +1 -0
- package/dist/App/Data/index.d.ts +4 -0
- package/dist/App/Data/index.js +1 -0
- package/dist/App/Enum/Notifications/index.d.ts +11 -0
- package/dist/App/Enum/Notifications/index.js +13 -0
- package/dist/App/Enum/Permissions/index.d.ts +11 -0
- package/dist/App/Enum/Permissions/index.js +13 -0
- package/dist/App/Enum/index.d.ts +55 -0
- package/dist/App/Enum/index.js +62 -0
- package/dist/Carbon/index.d.ts +44 -0
- package/dist/Carbon/index.js +47 -0
- package/dist/Illuminate/Http/index.d.ts +1 -0
- package/dist/Illuminate/Http/index.js +1 -0
- package/dist/Illuminate/index.d.ts +39 -0
- package/dist/Illuminate/index.js +1 -0
- package/dist/Spatie/LaravelData/Enums/index.d.ts +27 -0
- package/dist/Spatie/LaravelData/Enums/index.js +30 -0
- package/dist/Spatie/LaravelData/Support/Creation/index.d.ts +6 -0
- package/dist/Spatie/LaravelData/Support/Creation/index.js +7 -0
- package/dist/Spatie/LaravelData/Support/Partials/index.d.ts +6 -0
- package/dist/Spatie/LaravelData/Support/Partials/index.js +7 -0
- package/dist/Spatie/LaravelData/Support/Wrapping/index.d.ts +10 -0
- package/dist/Spatie/LaravelData/Support/Wrapping/index.js +12 -0
- package/dist/Spatie/LaravelData/index.d.ts +7 -0
- package/dist/Spatie/LaravelData/index.js +1 -0
- package/dist/Symfony/Component/HttpFoundation/index.d.ts +1 -0
- package/dist/Symfony/Component/HttpFoundation/index.js +1 -0
- package/dist/controllers/System/index.d.ts +253 -0
- package/dist/controllers/System/index.js +42 -0
- package/dist/controllers/index.d.ts +627 -0
- package/dist/controllers/index.js +159 -0
- package/dist/index.d.ts +184 -0
- package/dist/index.js +433 -0
- package/package.json +29 -0
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { RevizaResponseData } from "../../App/Data";
|
|
2
|
+
import { DataCollection } from "../../Spatie/LaravelData";
|
|
3
|
+
import { ActionTransactionData } from "../../App/Data/ActionLog";
|
|
4
|
+
import { MapCreatePayload, MapUpdatePayload } from "../../App/Data/Map";
|
|
5
|
+
import { OrganizationCreatePayload, OrganizationData } from "../../App/Data/Organization";
|
|
6
|
+
import { SubscriptionCreatePayload, SubscriptionData } from "../../App/Data/Subscription";
|
|
7
|
+
import { UserPermissionData, UserPermissionPayload } from "../../App/Data/Permission";
|
|
8
|
+
import { UserData, UserUpdatePayload } from "../../App/Data/User";
|
|
9
|
+
import { LoginData } from "../../App/Data/Auth";
|
|
10
|
+
export declare const ActionLogController: {
|
|
11
|
+
readonly index: ((options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
12
|
+
url: string;
|
|
13
|
+
}) & {
|
|
14
|
+
[x: string]: (options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
15
|
+
url: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly show: ((params: {
|
|
19
|
+
transaction: string | number;
|
|
20
|
+
}, options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
21
|
+
url: string;
|
|
22
|
+
}) & {
|
|
23
|
+
[x: string]: (params: {
|
|
24
|
+
transaction: string | number;
|
|
25
|
+
}, options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
26
|
+
url: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
readonly revert: ((params: {
|
|
30
|
+
transaction: string | number;
|
|
31
|
+
}, options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
32
|
+
url: string;
|
|
33
|
+
}) & {
|
|
34
|
+
[x: string]: (params: {
|
|
35
|
+
transaction: string | number;
|
|
36
|
+
}, options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
37
|
+
url: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export declare namespace ActionLogController {
|
|
42
|
+
namespace index {
|
|
43
|
+
type Request = object;
|
|
44
|
+
type Response = RevizaResponseData<DataCollection<number, ActionTransactionData>>;
|
|
45
|
+
}
|
|
46
|
+
namespace show {
|
|
47
|
+
type Request = object;
|
|
48
|
+
type Response = RevizaResponseData<ActionTransactionData>;
|
|
49
|
+
}
|
|
50
|
+
namespace revert {
|
|
51
|
+
type Request = object;
|
|
52
|
+
type Response = RevizaResponseData<null>;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
export declare const MapController: {
|
|
56
|
+
readonly store: ((options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
57
|
+
url: string;
|
|
58
|
+
}) & {
|
|
59
|
+
[x: string]: (options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
60
|
+
url: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
readonly update: ((params: {
|
|
64
|
+
map: string | number;
|
|
65
|
+
}, options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
66
|
+
url: string;
|
|
67
|
+
}) & {
|
|
68
|
+
[x: string]: (params: {
|
|
69
|
+
map: string | number;
|
|
70
|
+
}, options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
71
|
+
url: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
readonly destroy: ((params: {
|
|
75
|
+
map: string | number;
|
|
76
|
+
}, options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
77
|
+
url: string;
|
|
78
|
+
}) & {
|
|
79
|
+
[x: string]: (params: {
|
|
80
|
+
map: string | number;
|
|
81
|
+
}, options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
82
|
+
url: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
export declare namespace MapController {
|
|
87
|
+
namespace store {
|
|
88
|
+
type Request = MapCreatePayload;
|
|
89
|
+
type Response = RevizaResponseData<null>;
|
|
90
|
+
}
|
|
91
|
+
namespace update {
|
|
92
|
+
type Request = MapUpdatePayload;
|
|
93
|
+
type Response = RevizaResponseData<null>;
|
|
94
|
+
}
|
|
95
|
+
namespace destroy {
|
|
96
|
+
type Request = object;
|
|
97
|
+
type Response = RevizaResponseData<null>;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
export declare const OrganizationController: {
|
|
101
|
+
readonly store: ((options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
102
|
+
url: string;
|
|
103
|
+
}) & {
|
|
104
|
+
[x: string]: (options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
105
|
+
url: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
readonly destroy: ((params: {
|
|
109
|
+
organization: string | number;
|
|
110
|
+
}, options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
111
|
+
url: string;
|
|
112
|
+
}) & {
|
|
113
|
+
[x: string]: (params: {
|
|
114
|
+
organization: string | number;
|
|
115
|
+
}, options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
116
|
+
url: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
readonly storeSubscription: ((params: {
|
|
120
|
+
organization: string | number;
|
|
121
|
+
}, options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
122
|
+
url: string;
|
|
123
|
+
}) & {
|
|
124
|
+
[x: string]: (params: {
|
|
125
|
+
organization: string | number;
|
|
126
|
+
}, options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
127
|
+
url: string;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
export declare namespace OrganizationController {
|
|
132
|
+
namespace store {
|
|
133
|
+
type Request = OrganizationCreatePayload;
|
|
134
|
+
type Response = RevizaResponseData<OrganizationData>;
|
|
135
|
+
}
|
|
136
|
+
namespace destroy {
|
|
137
|
+
type Request = object;
|
|
138
|
+
type Response = RevizaResponseData<null>;
|
|
139
|
+
}
|
|
140
|
+
namespace storeSubscription {
|
|
141
|
+
type Request = SubscriptionCreatePayload;
|
|
142
|
+
type Response = RevizaResponseData<SubscriptionData>;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
export declare const PermissionController: {
|
|
146
|
+
readonly show: ((params: {
|
|
147
|
+
user: string | number;
|
|
148
|
+
}, options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
149
|
+
url: string;
|
|
150
|
+
}) & {
|
|
151
|
+
[x: string]: (params: {
|
|
152
|
+
user: string | number;
|
|
153
|
+
}, options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
154
|
+
url: string;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
readonly update: ((params: {
|
|
158
|
+
user: string | number;
|
|
159
|
+
}, options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
160
|
+
url: string;
|
|
161
|
+
}) & {
|
|
162
|
+
[x: string]: (params: {
|
|
163
|
+
user: string | number;
|
|
164
|
+
}, options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
165
|
+
url: string;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
export declare namespace PermissionController {
|
|
170
|
+
namespace show {
|
|
171
|
+
type Request = object;
|
|
172
|
+
type Response = RevizaResponseData<UserPermissionData>;
|
|
173
|
+
}
|
|
174
|
+
namespace update {
|
|
175
|
+
type Request = UserPermissionPayload;
|
|
176
|
+
type Response = RevizaResponseData<null>;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
export declare const UserController: {
|
|
180
|
+
readonly index: ((options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
181
|
+
url: string;
|
|
182
|
+
}) & {
|
|
183
|
+
[x: string]: (options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
184
|
+
url: string;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
readonly show: ((params: {
|
|
188
|
+
user: string | number;
|
|
189
|
+
}, options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
190
|
+
url: string;
|
|
191
|
+
}) & {
|
|
192
|
+
[x: string]: (params: {
|
|
193
|
+
user: string | number;
|
|
194
|
+
}, options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
195
|
+
url: string;
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
readonly update: ((params: {
|
|
199
|
+
user: string | number;
|
|
200
|
+
}, options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
201
|
+
url: string;
|
|
202
|
+
}) & {
|
|
203
|
+
[x: string]: (params: {
|
|
204
|
+
user: string | number;
|
|
205
|
+
}, options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
206
|
+
url: string;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
readonly destroy: ((params: {
|
|
210
|
+
user: string | number;
|
|
211
|
+
}, options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
212
|
+
url: string;
|
|
213
|
+
}) & {
|
|
214
|
+
[x: string]: (params: {
|
|
215
|
+
user: string | number;
|
|
216
|
+
}, options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
217
|
+
url: string;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
readonly loginAsUser: ((params: {
|
|
221
|
+
user: string | number;
|
|
222
|
+
}, options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
223
|
+
url: string;
|
|
224
|
+
}) & {
|
|
225
|
+
[x: string]: (params: {
|
|
226
|
+
user: string | number;
|
|
227
|
+
}, options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
228
|
+
url: string;
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
export declare namespace UserController {
|
|
233
|
+
namespace index {
|
|
234
|
+
type Request = object;
|
|
235
|
+
type Response = RevizaResponseData<DataCollection<number, UserData>>;
|
|
236
|
+
}
|
|
237
|
+
namespace show {
|
|
238
|
+
type Request = object;
|
|
239
|
+
type Response = RevizaResponseData<UserData>;
|
|
240
|
+
}
|
|
241
|
+
namespace update {
|
|
242
|
+
type Request = UserUpdatePayload;
|
|
243
|
+
type Response = RevizaResponseData<UserData | null>;
|
|
244
|
+
}
|
|
245
|
+
namespace destroy {
|
|
246
|
+
type Request = object;
|
|
247
|
+
type Response = RevizaResponseData<null>;
|
|
248
|
+
}
|
|
249
|
+
namespace loginAsUser {
|
|
250
|
+
type Request = object;
|
|
251
|
+
type Response = RevizaResponseData<LoginData>;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { createActionWithMethods } from "../";
|
|
2
|
+
export const ActionLogController = {
|
|
3
|
+
index: createActionWithMethods([
|
|
4
|
+
{ method: "get", url: "api/v1/system/logs" },
|
|
5
|
+
]),
|
|
6
|
+
show: createActionWithMethods([{ method: "get", url: "api/v1/system/logs/{transaction}" }]),
|
|
7
|
+
revert: createActionWithMethods([{ method: "post", url: "api/v1/system/logs/{transaction}/revert" }]),
|
|
8
|
+
};
|
|
9
|
+
export const MapController = {
|
|
10
|
+
store: createActionWithMethods([
|
|
11
|
+
{ method: "post", url: "api/v1/system/maps" },
|
|
12
|
+
]),
|
|
13
|
+
update: createActionWithMethods([{ method: "patch", url: "api/v1/system/maps/{map}" }]),
|
|
14
|
+
destroy: createActionWithMethods([{ method: "delete", url: "api/v1/system/maps/{map}" }]),
|
|
15
|
+
};
|
|
16
|
+
export const OrganizationController = {
|
|
17
|
+
store: createActionWithMethods([
|
|
18
|
+
{ method: "post", url: "api/v1/system/organizations" },
|
|
19
|
+
]),
|
|
20
|
+
destroy: createActionWithMethods([
|
|
21
|
+
{ method: "delete", url: "api/v1/system/organizations/{organization}" },
|
|
22
|
+
]),
|
|
23
|
+
storeSubscription: createActionWithMethods([
|
|
24
|
+
{
|
|
25
|
+
method: "post",
|
|
26
|
+
url: "api/v1/system/organizations/{organization}/subscriptions",
|
|
27
|
+
},
|
|
28
|
+
]),
|
|
29
|
+
};
|
|
30
|
+
export const PermissionController = {
|
|
31
|
+
show: createActionWithMethods([{ method: "get", url: "api/v1/system/users/{user}/permissions" }]),
|
|
32
|
+
update: createActionWithMethods([{ method: "put", url: "api/v1/system/users/{user}/permissions" }]),
|
|
33
|
+
};
|
|
34
|
+
export const UserController = {
|
|
35
|
+
index: createActionWithMethods([
|
|
36
|
+
{ method: "get", url: "api/v1/system/users" },
|
|
37
|
+
]),
|
|
38
|
+
show: createActionWithMethods([{ method: "get", url: "api/v1/system/users/{user}" }]),
|
|
39
|
+
update: createActionWithMethods([{ method: "put", url: "api/v1/system/users/{user}" }]),
|
|
40
|
+
destroy: createActionWithMethods([{ method: "delete", url: "api/v1/system/users/{user}" }]),
|
|
41
|
+
loginAsUser: createActionWithMethods([{ method: "post", url: "api/v1/system/users/{user}/login" }]),
|
|
42
|
+
};
|