@appconda/nextjs 1.0.104 → 1.0.105

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.
Files changed (37) hide show
  1. package/dist/getSDKForCurrentUser.d.ts +2 -0
  2. package/dist/getSDKForCurrentUser.js +5 -2
  3. package/dist/modules/acl/service.d.ts +1 -1
  4. package/dist/modules/acl/service.js +1 -1
  5. package/dist/modules/index.d.ts +1 -0
  6. package/dist/modules/index.js +2 -1
  7. package/dist/modules/task/action.d.ts +137 -0
  8. package/dist/modules/task/action.js +123 -0
  9. package/dist/modules/task/index.d.ts +4 -0
  10. package/dist/modules/task/index.js +5 -0
  11. package/dist/modules/task/schema.d.ts +81 -0
  12. package/dist/modules/task/schema.js +34 -0
  13. package/dist/modules/task/service.d.ts +17 -0
  14. package/dist/modules/task/service.js +37 -0
  15. package/dist/modules/task/types.d.ts +10 -0
  16. package/dist/modules/task/types.js +2 -0
  17. package/package.json +1 -1
  18. package/src/getSDKForCurrentUser.ts +4 -1
  19. package/src/modules/acl/service.ts +1 -1
  20. package/src/modules/index.ts +2 -1
  21. package/src/modules/task/action.ts +148 -0
  22. package/src/modules/task/index.ts +4 -0
  23. package/src/modules/task/schema.ts +42 -0
  24. package/src/modules/task/service.ts +54 -0
  25. package/src/modules/task/types.ts +13 -0
  26. package/dist/actions/nodes.d.ts +0 -4
  27. package/dist/actions/nodes.js +0 -15
  28. package/dist/enums/authentication-factor.d.ts +0 -6
  29. package/dist/enums/authentication-factor.js +0 -7
  30. package/dist/enums/authenticator-type.d.ts +0 -3
  31. package/dist/enums/authenticator-type.js +0 -4
  32. package/dist/enums/o-auth-provider.d.ts +0 -41
  33. package/dist/enums/o-auth-provider.js +0 -42
  34. package/dist/services/account.d.ts +0 -530
  35. package/dist/services/account.js +0 -1259
  36. package/dist/services/node.d.ts +0 -5
  37. package/dist/services/node.js +0 -11
@@ -46,7 +46,7 @@ export class Acl extends ServiceClient {
46
46
 
47
47
  }
48
48
 
49
- public async getAllTenantIpAddresses(): Promise<{ items: any[]; pagination: PaginationDto }> {
49
+ public async getAllTenantIpAddresses(): Promise<{ items: any[]; pagination: any }> {
50
50
 
51
51
  const payload: Payload = {};
52
52
  return await this.actionCall('GetAllTenantIpAddresses', payload);
@@ -2,4 +2,5 @@ export * from './waitlist';
2
2
  export * from './account';
3
3
  export * from './ai';
4
4
  export * from './agent';
5
- export * from './tenant';
5
+ export * from './tenant';
6
+ export * from './task';
@@ -0,0 +1,148 @@
1
+ 'use server';
2
+
3
+
4
+ import { actionClient } from '../../actions/actionClient';
5
+ import { getSDKForCurrentUser } from '../../getSDKForCurrentUser';
6
+ import { getSDKForService } from '../../getSDKForService';
7
+ import { CreateSprintSchema, CreateTaskListSchema, DeleteSprintSchema, DeleteTaskListSchema, GetSprintSchema, GetTaskListSchema, UpdateSprintSchema, UpdateTaskListSchema } from './schema';
8
+ import { Sprint, TaskList } from './types';
9
+
10
+
11
+ export const CreateTaskList = actionClient
12
+ .schema(CreateTaskListSchema)
13
+ .action(async ({ parsedInput }): Promise<TaskList> => {
14
+ try {
15
+
16
+ const { task } = await getSDKForCurrentUser();
17
+ return await task.CreateTaskList(parsedInput);
18
+
19
+ } catch (error) {
20
+ console.error('Error in CreateTaskList:', error);
21
+ throw new Error('Failed to fetch CreateTaskList');
22
+ }
23
+ });
24
+
25
+ export const GetTaskList = actionClient
26
+ .schema(GetTaskListSchema)
27
+ .action(async ({ parsedInput }): Promise<TaskList> => {
28
+ try {
29
+
30
+ const { task } = await getSDKForCurrentUser();
31
+ return await task.GetTaskList(parsedInput);
32
+
33
+ } catch (error) {
34
+ console.error('Error in GetTaskList:', error);
35
+ throw new Error('Failed to fetch GetTaskList');
36
+ }
37
+ });
38
+
39
+ export const ListTaskLists = actionClient
40
+ .action(async ({ parsedInput }): Promise<TaskList[]> => {
41
+ try {
42
+
43
+ const { task } = await getSDKForCurrentUser();
44
+ return await task.ListTaskLists();
45
+
46
+ } catch (error) {
47
+ console.error('Error in ListTaskLists:', error);
48
+ throw new Error('Failed to fetch ListTaskLists');
49
+ }
50
+ });
51
+
52
+ export const UpdateTaskList = actionClient
53
+ .schema(UpdateTaskListSchema)
54
+ .action(async ({ parsedInput }): Promise<TaskList> => {
55
+ try {
56
+
57
+ const { task } = await getSDKForCurrentUser();
58
+ return await task.UpdateTaskList(parsedInput);
59
+
60
+ } catch (error) {
61
+ console.error('Error in UpdateTaskList:', error);
62
+ throw new Error('Failed to fetch UpdateTaskList');
63
+ }
64
+ });
65
+
66
+ export const DeleteTaskList = actionClient
67
+ .schema(DeleteTaskListSchema)
68
+ .action(async ({ parsedInput }): Promise<void> => {
69
+ try {
70
+
71
+ const { task } = await getSDKForCurrentUser();
72
+ return await task.DeleteTaskList(parsedInput);
73
+
74
+ } catch (error) {
75
+ console.error('Error in DeleteTaskList:', error);
76
+ throw new Error('Failed to fetch DeleteTaskList');
77
+ }
78
+ });
79
+
80
+
81
+ export const CreateSprint = actionClient
82
+ .schema(CreateSprintSchema)
83
+ .action(async ({ parsedInput }): Promise<Sprint> => {
84
+ try {
85
+
86
+ const { task } = await getSDKForCurrentUser();
87
+ return await task.CreateSprint(parsedInput);
88
+
89
+ } catch (error) {
90
+ console.error('Error in CreateSprint:', error);
91
+ throw new Error('Failed to fetch CreateSprint');
92
+ }
93
+ });
94
+
95
+ export const GetSprint = actionClient
96
+ .schema(GetSprintSchema)
97
+ .action(async ({ parsedInput }): Promise<Sprint> => {
98
+ try {
99
+
100
+ const { task } = await getSDKForCurrentUser();
101
+ return await task.GetSprint(parsedInput);
102
+
103
+ } catch (error) {
104
+ console.error('Error in GetSprint:', error);
105
+ throw new Error('Failed to fetch GetSprint');
106
+ }
107
+ });
108
+
109
+ export const ListSprints = actionClient
110
+ .action(async ({ parsedInput }): Promise<Sprint[]> => {
111
+ try {
112
+
113
+ const { task } = await getSDKForCurrentUser();
114
+ return await task.ListSprints();
115
+
116
+ } catch (error) {
117
+ console.error('Error in ListSprints:', error);
118
+ throw new Error('Failed to fetch ListSprints');
119
+ }
120
+ });
121
+
122
+ export const UpdateSprint = actionClient
123
+ .schema(UpdateSprintSchema)
124
+ .action(async ({ parsedInput }): Promise<Sprint> => {
125
+ try {
126
+
127
+ const { task } = await getSDKForCurrentUser();
128
+ return await task.UpdateSprint(parsedInput);
129
+
130
+ } catch (error) {
131
+ console.error('Error in UpdateSprint:', error);
132
+ throw new Error('Failed to fetch UpdateSprint');
133
+ }
134
+ });
135
+
136
+ export const DeleteSprint = actionClient
137
+ .schema(DeleteSprintSchema)
138
+ .action(async ({ parsedInput }): Promise<void> => {
139
+ try {
140
+
141
+ const { task } = await getSDKForCurrentUser();
142
+ return await task.DeleteSprint(parsedInput);
143
+
144
+ } catch (error) {
145
+ console.error('Error in DeleteSprint:', error);
146
+ throw new Error('Failed to fetch DeleteSprint');
147
+ }
148
+ });
@@ -0,0 +1,4 @@
1
+ export * from './action';
2
+ export * from './schema';
3
+ export * from './service';
4
+ export * from './types';
@@ -0,0 +1,42 @@
1
+ import { z } from "zod";
2
+
3
+ export const CreateTaskListSchema = z.object({
4
+ id: z.string().optional(),
5
+ name: z.string(),
6
+ description: z.string().optional()
7
+ });
8
+
9
+ export const CreateSprintSchema = z.object({
10
+ id: z.string().optional(),
11
+ name: z.string(),
12
+ description: z.string().optional()
13
+ });
14
+
15
+ export const GetTaskListSchema = z.object({
16
+ id: z.string()
17
+ });
18
+
19
+ export const GetSprintSchema = z.object({
20
+ id: z.string()
21
+ });
22
+
23
+ export const UpdateTaskListSchema = z.object({
24
+ id: z.string(),
25
+ name: z.string(),
26
+ description: z.string().optional()
27
+ });
28
+
29
+ export const UpdateSprintSchema = z.object({
30
+ id: z.string(),
31
+ name: z.string(),
32
+ description: z.string().optional()
33
+ });
34
+
35
+ export const DeleteTaskListSchema = z.object({
36
+ id: z.string()
37
+ });
38
+
39
+ export const DeleteSprintSchema = z.object({
40
+ id: z.string()
41
+ });
42
+
@@ -0,0 +1,54 @@
1
+
2
+ import z from "zod";
3
+ import { ServiceClient } from "../../service-client";
4
+ import { CreateSprintSchema, CreateTaskListSchema, DeleteSprintSchema, DeleteTaskListSchema, GetSprintSchema, GetTaskListSchema, UpdateSprintSchema, UpdateTaskListSchema } from "./schema";
5
+ import { Sprint, TaskList } from "./types";
6
+
7
+
8
+ export class TaskService extends ServiceClient {
9
+ protected getServiceName(): string {
10
+ return 'com.appconda.service.task';
11
+ }
12
+
13
+ public async CreateTaskList(payload: z.infer<typeof CreateTaskListSchema>): Promise<TaskList> {
14
+ return await this.actionCall('CreateTaskList', payload);
15
+ }
16
+
17
+ public async CreateSprint(payload: z.infer<typeof CreateSprintSchema>): Promise<Sprint> {
18
+ return await this.actionCall('CreateSprint', payload);
19
+ }
20
+
21
+ public async ListTaskLists(): Promise<TaskList[]> {
22
+ return await this.actionCall('ListTaskLists', {});
23
+ }
24
+
25
+ public async ListSprints(): Promise<Sprint[]> {
26
+ return await this.actionCall('ListSprints', {});
27
+ }
28
+
29
+ public async GetTaskList(payload: z.infer<typeof GetTaskListSchema>): Promise<TaskList> {
30
+ return await this.actionCall('GetTaskList', payload);
31
+ }
32
+
33
+ public async GetSprint(payload: z.infer<typeof GetSprintSchema>): Promise<Sprint> {
34
+ return await this.actionCall('GetSprint', payload);
35
+ }
36
+
37
+ public async UpdateTaskList(payload: z.infer<typeof UpdateTaskListSchema>): Promise<TaskList> {
38
+ return await this.actionCall('UpdateTaskList', payload);
39
+ }
40
+
41
+ public async UpdateSprint(payload: z.infer<typeof UpdateSprintSchema>): Promise<Sprint> {
42
+ return await this.actionCall('UpdateSprint', payload);
43
+ }
44
+
45
+ public async DeleteTaskList(payload: z.infer<typeof DeleteTaskListSchema>): Promise<void> {
46
+ return await this.actionCall('DeleteTaskList', payload);
47
+ }
48
+
49
+ public async DeleteSprint(payload: z.infer<typeof DeleteSprintSchema>): Promise<void> {
50
+ return await this.actionCall('DeleteSprint', payload);
51
+ }
52
+
53
+
54
+ }
@@ -0,0 +1,13 @@
1
+
2
+ export type TaskList = {
3
+ id: string;
4
+ name: string;
5
+ description: string;
6
+ }
7
+
8
+ export type Sprint = {
9
+ id: string;
10
+ name: string;
11
+ description: string;
12
+ }
13
+
@@ -1,4 +0,0 @@
1
- export declare const getAllNodesAction: import("next-safe-action").SafeActionFn<string, undefined, readonly [], {
2
- formErrors: string[];
3
- fieldErrors: {};
4
- }, readonly [], any[]>;
@@ -1,15 +0,0 @@
1
- 'use server';
2
- import { actionClient } from "./actionClient";
3
- import { getSDKForCurrentUser } from '../getSDKForCurrentUser';
4
- export const getAllNodesAction = actionClient
5
- // .schema(listModelsSchema)
6
- .action(async ({ parsedInput }) => {
7
- try {
8
- const { node } = await getSDKForCurrentUser();
9
- return await node.GetAllNodes();
10
- }
11
- catch (error) {
12
- console.error('Error in getAllNodesAction:', error);
13
- throw new Error('Failed to fetch nodes');
14
- }
15
- });
@@ -1,6 +0,0 @@
1
- export declare enum AuthenticationFactor {
2
- Email = "email",
3
- Phone = "phone",
4
- Totp = "totp",
5
- Recoverycode = "recoverycode"
6
- }
@@ -1,7 +0,0 @@
1
- export var AuthenticationFactor;
2
- (function (AuthenticationFactor) {
3
- AuthenticationFactor["Email"] = "email";
4
- AuthenticationFactor["Phone"] = "phone";
5
- AuthenticationFactor["Totp"] = "totp";
6
- AuthenticationFactor["Recoverycode"] = "recoverycode";
7
- })(AuthenticationFactor || (AuthenticationFactor = {}));
@@ -1,3 +0,0 @@
1
- export declare enum AuthenticatorType {
2
- Totp = "totp"
3
- }
@@ -1,4 +0,0 @@
1
- export var AuthenticatorType;
2
- (function (AuthenticatorType) {
3
- AuthenticatorType["Totp"] = "totp";
4
- })(AuthenticatorType || (AuthenticatorType = {}));
@@ -1,41 +0,0 @@
1
- export declare enum OAuthProvider {
2
- Amazon = "amazon",
3
- Apple = "apple",
4
- Auth0 = "auth0",
5
- Authentik = "authentik",
6
- Autodesk = "autodesk",
7
- Bitbucket = "bitbucket",
8
- Bitly = "bitly",
9
- Box = "box",
10
- Dailymotion = "dailymotion",
11
- Discord = "discord",
12
- Disqus = "disqus",
13
- Dropbox = "dropbox",
14
- Etsy = "etsy",
15
- Facebook = "facebook",
16
- Github = "github",
17
- Gitlab = "gitlab",
18
- Google = "google",
19
- Linkedin = "linkedin",
20
- Microsoft = "microsoft",
21
- Notion = "notion",
22
- Oidc = "oidc",
23
- Okta = "okta",
24
- Paypal = "paypal",
25
- PaypalSandbox = "paypalSandbox",
26
- Podio = "podio",
27
- Salesforce = "salesforce",
28
- Slack = "slack",
29
- Spotify = "spotify",
30
- Stripe = "stripe",
31
- Tradeshift = "tradeshift",
32
- TradeshiftBox = "tradeshiftBox",
33
- Twitch = "twitch",
34
- Wordpress = "wordpress",
35
- Yahoo = "yahoo",
36
- Yammer = "yammer",
37
- Yandex = "yandex",
38
- Zoho = "zoho",
39
- Zoom = "zoom",
40
- Mock = "mock"
41
- }
@@ -1,42 +0,0 @@
1
- export var OAuthProvider;
2
- (function (OAuthProvider) {
3
- OAuthProvider["Amazon"] = "amazon";
4
- OAuthProvider["Apple"] = "apple";
5
- OAuthProvider["Auth0"] = "auth0";
6
- OAuthProvider["Authentik"] = "authentik";
7
- OAuthProvider["Autodesk"] = "autodesk";
8
- OAuthProvider["Bitbucket"] = "bitbucket";
9
- OAuthProvider["Bitly"] = "bitly";
10
- OAuthProvider["Box"] = "box";
11
- OAuthProvider["Dailymotion"] = "dailymotion";
12
- OAuthProvider["Discord"] = "discord";
13
- OAuthProvider["Disqus"] = "disqus";
14
- OAuthProvider["Dropbox"] = "dropbox";
15
- OAuthProvider["Etsy"] = "etsy";
16
- OAuthProvider["Facebook"] = "facebook";
17
- OAuthProvider["Github"] = "github";
18
- OAuthProvider["Gitlab"] = "gitlab";
19
- OAuthProvider["Google"] = "google";
20
- OAuthProvider["Linkedin"] = "linkedin";
21
- OAuthProvider["Microsoft"] = "microsoft";
22
- OAuthProvider["Notion"] = "notion";
23
- OAuthProvider["Oidc"] = "oidc";
24
- OAuthProvider["Okta"] = "okta";
25
- OAuthProvider["Paypal"] = "paypal";
26
- OAuthProvider["PaypalSandbox"] = "paypalSandbox";
27
- OAuthProvider["Podio"] = "podio";
28
- OAuthProvider["Salesforce"] = "salesforce";
29
- OAuthProvider["Slack"] = "slack";
30
- OAuthProvider["Spotify"] = "spotify";
31
- OAuthProvider["Stripe"] = "stripe";
32
- OAuthProvider["Tradeshift"] = "tradeshift";
33
- OAuthProvider["TradeshiftBox"] = "tradeshiftBox";
34
- OAuthProvider["Twitch"] = "twitch";
35
- OAuthProvider["Wordpress"] = "wordpress";
36
- OAuthProvider["Yahoo"] = "yahoo";
37
- OAuthProvider["Yammer"] = "yammer";
38
- OAuthProvider["Yandex"] = "yandex";
39
- OAuthProvider["Zoho"] = "zoho";
40
- OAuthProvider["Zoom"] = "zoom";
41
- OAuthProvider["Mock"] = "mock";
42
- })(OAuthProvider || (OAuthProvider = {}));