@appconda/nextjs 1.0.400 → 1.0.402
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/getSDKForService.d.ts +4 -0
- package/dist/getSDKForService.js +7 -1
- package/dist/modules/bpm/action.js +6 -6
- package/dist/modules/emploid/action.js +68 -68
- package/dist/modules/emploid/schema.d.ts +3 -3
- package/package.json +1 -1
- package/src/getSDKForService.ts +6 -1
- package/src/modules/bpm/action.ts +5 -4
- package/src/modules/emploid/action.ts +67 -67
@@ -89,8 +89,8 @@ export declare const CreateJobDefinitionSchema: z.ZodObject<{
|
|
89
89
|
}>>;
|
90
90
|
status: z.ZodOptional<z.ZodEnum<{
|
91
91
|
active: "active";
|
92
|
-
draft: "draft";
|
93
92
|
inactive: "inactive";
|
93
|
+
draft: "draft";
|
94
94
|
}>>;
|
95
95
|
}, z.core.$strip>;
|
96
96
|
export declare const ListJobDefinitionSchema: z.ZodObject<{
|
@@ -114,8 +114,8 @@ export declare const UpdateJobDefinitionSchema: z.ZodObject<{
|
|
114
114
|
}>>;
|
115
115
|
status: z.ZodOptional<z.ZodEnum<{
|
116
116
|
active: "active";
|
117
|
-
draft: "draft";
|
118
117
|
inactive: "inactive";
|
118
|
+
draft: "draft";
|
119
119
|
}>>;
|
120
120
|
}, z.core.$strip>;
|
121
121
|
export declare const DeleteJobDefinitionSchema: z.ZodObject<{
|
@@ -327,8 +327,8 @@ export declare const SaveDocumentSchema: z.ZodObject<{
|
|
327
327
|
id: z.ZodOptional<z.ZodString>;
|
328
328
|
title: z.ZodString;
|
329
329
|
kind: z.ZodEnum<{
|
330
|
-
code: "code";
|
331
330
|
text: "text";
|
331
|
+
code: "code";
|
332
332
|
image: "image";
|
333
333
|
sheet: "sheet";
|
334
334
|
}>;
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@appconda/nextjs",
|
3
3
|
"homepage": "https://appconda.io/support",
|
4
4
|
"description": "Appconda is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
|
5
|
-
"version": "1.0.
|
5
|
+
"version": "1.0.402",
|
6
6
|
"license": "BSD-3-Clause",
|
7
7
|
"main": "dist/index.js",
|
8
8
|
"types": "dist/index.d.ts",
|
package/src/getSDKForService.ts
CHANGED
@@ -5,7 +5,8 @@ import { AccountService } from "./modules/accounv1";
|
|
5
5
|
import { TenantService } from "./modules/tenant/service";
|
6
6
|
import { Configuration } from "./services/configuration";
|
7
7
|
import { OrganizationService } from "./modules/organization/service";
|
8
|
-
|
8
|
+
import { EmploidService } from "./modules/emploid/service";
|
9
|
+
import { BpmService } from "./modules/bpm/service";
|
9
10
|
export async function getSDKForService() {
|
10
11
|
const adminClient = await getAppcondaClient();
|
11
12
|
|
@@ -14,6 +15,8 @@ export async function getSDKForService() {
|
|
14
15
|
const accounts = new AccountService(adminClient);
|
15
16
|
const tenants = new TenantService(adminClient);
|
16
17
|
const organization = new OrganizationService(adminClient);
|
18
|
+
const emploid = new EmploidService(adminClient);
|
19
|
+
const bpm = new BpmService(adminClient);
|
17
20
|
/* const databases = new Databases(adminClient);
|
18
21
|
|
19
22
|
const projects = new Projects(adminClient);
|
@@ -41,6 +44,8 @@ export async function getSDKForService() {
|
|
41
44
|
accounts,
|
42
45
|
tenants,
|
43
46
|
organization,
|
47
|
+
emploid,
|
48
|
+
bpm,
|
44
49
|
/* currentUser,
|
45
50
|
accounts,
|
46
51
|
databases,
|
@@ -5,10 +5,11 @@ import { AppcondaException } from '../../client';
|
|
5
5
|
import { getSDKForCurrentUser } from '../../getSDKForCurrentUser';
|
6
6
|
import { TProcessModel } from './types';
|
7
7
|
import { CreateProcessModelSchema, DeleteProcessModelSchema, ListProcessModelsSchema, UpdateProcessModelSchema } from './schema';
|
8
|
+
import { getSDKForService } from '../../getSDKForService';
|
8
9
|
|
9
10
|
export async function CreateProcessModel(parsedInput: z.infer<typeof CreateProcessModelSchema>): Promise<TProcessModel> {
|
10
11
|
try {
|
11
|
-
const { bpm } = await
|
12
|
+
const { bpm } = await getSDKForService();
|
12
13
|
//@ts-ignore
|
13
14
|
const app = await bpm.CreateProcessModel(parsedInput);
|
14
15
|
return app;
|
@@ -24,7 +25,7 @@ export async function CreateProcessModel(parsedInput: z.infer<typeof CreateProce
|
|
24
25
|
|
25
26
|
export async function UpdateProcessModel(parsedInput: z.infer<typeof UpdateProcessModelSchema>): Promise<TProcessModel> {
|
26
27
|
try {
|
27
|
-
const { bpm } = await
|
28
|
+
const { bpm } = await getSDKForService();
|
28
29
|
//@ts-ignore
|
29
30
|
const app = await bpm.UpdateProcessModel(parsedInput);
|
30
31
|
return app;
|
@@ -40,7 +41,7 @@ export async function UpdateProcessModel(parsedInput: z.infer<typeof UpdateProce
|
|
40
41
|
|
41
42
|
export async function ListProcessModels(parsedInput: z.infer<typeof ListProcessModelsSchema>): Promise<TProcessModel[]> {
|
42
43
|
try {
|
43
|
-
const { bpm } = await
|
44
|
+
const { bpm } = await getSDKForService();
|
44
45
|
//@ts-ignore
|
45
46
|
const app = await bpm.ListProcessModels(parsedInput);
|
46
47
|
return app;
|
@@ -56,7 +57,7 @@ export async function ListProcessModels(parsedInput: z.infer<typeof ListProcessM
|
|
56
57
|
|
57
58
|
export async function DeleteProcessModel(parsedInput: z.infer<typeof DeleteProcessModelSchema>): Promise<TProcessModel> {
|
58
59
|
try {
|
59
|
-
const { bpm } = await
|
60
|
+
const { bpm } = await getSDKForService();
|
60
61
|
//@ts-ignore
|
61
62
|
const app = await bpm.DeleteProcessModel(parsedInput);
|
62
63
|
return app;
|