@stackone/core 1.52.4 → 1.52.6

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 (42) hide show
  1. package/dist/index.d.mts +410 -0
  2. package/dist/index.d.ts +410 -0
  3. package/dist/index.js +4298 -1
  4. package/dist/index.mjs +4260 -0
  5. package/package.json +24 -6
  6. package/dist/index.es.mjs +0 -1
  7. package/dist/types/accounts/types.d.ts +0 -10
  8. package/dist/types/blocks/types.d.ts +0 -70
  9. package/dist/types/categories/index.d.ts +0 -3
  10. package/dist/types/categories/types.d.ts +0 -6
  11. package/dist/types/compositeIds/constants.d.ts +0 -8
  12. package/dist/types/compositeIds/errors.d.ts +0 -18
  13. package/dist/types/compositeIds/index.d.ts +0 -4
  14. package/dist/types/compositeIds/typeguards.d.ts +0 -3
  15. package/dist/types/compositeIds/types.d.ts +0 -28
  16. package/dist/types/connector/types.d.ts +0 -113
  17. package/dist/types/cursor/index.d.ts +0 -15
  18. package/dist/types/cursor/schemas.d.ts +0 -67
  19. package/dist/types/cursor/types.d.ts +0 -21
  20. package/dist/types/errors/coreError.d.ts +0 -14
  21. package/dist/types/errors/typeguards.d.ts +0 -2
  22. package/dist/types/index.d.ts +0 -18
  23. package/dist/types/schema/types.d.ts +0 -17
  24. package/dist/types/stepFunctions/factory.d.ts +0 -10
  25. package/dist/types/stepFunctions/groupData/groupDataStepFunction.d.ts +0 -2
  26. package/dist/types/stepFunctions/groupData/schemas.d.ts +0 -18
  27. package/dist/types/stepFunctions/mapFields/getEnumMatcher.d.ts +0 -1
  28. package/dist/types/stepFunctions/mapFields/mapFieldsStepFunction.d.ts +0 -2
  29. package/dist/types/stepFunctions/mapFields/mapFieldsStepFunction.v2.d.ts +0 -2
  30. package/dist/types/stepFunctions/mapFields/schemas.d.ts +0 -99
  31. package/dist/types/stepFunctions/paginatedRequest/paginatedRequestStepFunction.d.ts +0 -2
  32. package/dist/types/stepFunctions/paginatedRequest/schemas.d.ts +0 -176
  33. package/dist/types/stepFunctions/request/requestStepFunction.d.ts +0 -2
  34. package/dist/types/stepFunctions/request/schemas.d.ts +0 -134
  35. package/dist/types/stepFunctions/stepFunctionsList.d.ts +0 -460
  36. package/dist/types/stepFunctions/typecast/schemas.d.ts +0 -48
  37. package/dist/types/stepFunctions/typecast/typecast.d.ts +0 -6
  38. package/dist/types/stepFunctions/typecast/typecastStepFunction.d.ts +0 -2
  39. package/dist/types/stepFunctions/typecast/typecastStepFunction.v2.d.ts +0 -2
  40. package/dist/types/stepFunctions/typecast/types.d.ts +0 -6
  41. package/dist/types/stepFunctions/types.d.ts +0 -29
  42. package/dist/types/steps/types.d.ts +0 -29
@@ -1,99 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const MAP_FIELDS_INPUT_PARAMS: z.ZodObject<{
3
- fields: z.ZodArray<z.ZodObject<{
4
- targetFieldKey: z.ZodString;
5
- alias: z.ZodOptional<z.ZodString>;
6
- expression: z.ZodString;
7
- type: z.ZodEnum<["string", "number", "boolean", "datetime_string", "enum"]>;
8
- custom: z.ZodDefault<z.ZodBoolean>;
9
- hidden: z.ZodDefault<z.ZodBoolean>;
10
- enumMapper: z.ZodOptional<z.ZodObject<{
11
- matcher: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
12
- matchExpression: z.ZodString;
13
- value: z.ZodString;
14
- }, "strip", z.ZodTypeAny, {
15
- value: string;
16
- matchExpression: string;
17
- }, {
18
- value: string;
19
- matchExpression: string;
20
- }>, "many">]>;
21
- }, "strip", z.ZodTypeAny, {
22
- matcher: string | {
23
- value: string;
24
- matchExpression: string;
25
- }[];
26
- }, {
27
- matcher: string | {
28
- value: string;
29
- matchExpression: string;
30
- }[];
31
- }>>;
32
- }, "strip", z.ZodTypeAny, {
33
- targetFieldKey: string;
34
- expression: string;
35
- type: "string" | "number" | "boolean" | "datetime_string" | "enum";
36
- custom: boolean;
37
- hidden: boolean;
38
- alias?: string | undefined;
39
- enumMapper?: {
40
- matcher: string | {
41
- value: string;
42
- matchExpression: string;
43
- }[];
44
- } | undefined;
45
- }, {
46
- targetFieldKey: string;
47
- expression: string;
48
- type: "string" | "number" | "boolean" | "datetime_string" | "enum";
49
- alias?: string | undefined;
50
- custom?: boolean | undefined;
51
- hidden?: boolean | undefined;
52
- enumMapper?: {
53
- matcher: string | {
54
- value: string;
55
- matchExpression: string;
56
- }[];
57
- } | undefined;
58
- }>, "many">;
59
- dataSource: z.ZodString;
60
- }, "strip", z.ZodTypeAny, {
61
- fields: {
62
- targetFieldKey: string;
63
- expression: string;
64
- type: "string" | "number" | "boolean" | "datetime_string" | "enum";
65
- custom: boolean;
66
- hidden: boolean;
67
- alias?: string | undefined;
68
- enumMapper?: {
69
- matcher: string | {
70
- value: string;
71
- matchExpression: string;
72
- }[];
73
- } | undefined;
74
- }[];
75
- dataSource: string;
76
- }, {
77
- fields: {
78
- targetFieldKey: string;
79
- expression: string;
80
- type: "string" | "number" | "boolean" | "datetime_string" | "enum";
81
- alias?: string | undefined;
82
- custom?: boolean | undefined;
83
- hidden?: boolean | undefined;
84
- enumMapper?: {
85
- matcher: string | {
86
- value: string;
87
- matchExpression: string;
88
- }[];
89
- } | undefined;
90
- }[];
91
- dataSource: string;
92
- }>;
93
- export declare const MAP_FIELDS_OUTPUT: z.ZodObject<{
94
- data: z.ZodUnknown;
95
- }, "strip", z.ZodTypeAny, {
96
- data?: unknown;
97
- }, {
98
- data?: unknown;
99
- }>;
@@ -1,2 +0,0 @@
1
- import type { StepFunction } from '../types';
2
- export declare const paginatedRequestStepFunction: StepFunction;
@@ -1,176 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const AUTHENTICATION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3
- type: z.ZodLiteral<"basic">;
4
- username: z.ZodOptional<z.ZodString>;
5
- password: z.ZodOptional<z.ZodString>;
6
- encoding: z.ZodOptional<z.ZodString>;
7
- }, "strip", z.ZodTypeAny, {
8
- type: "basic";
9
- username?: string | undefined;
10
- password?: string | undefined;
11
- encoding?: string | undefined;
12
- }, {
13
- type: "basic";
14
- username?: string | undefined;
15
- password?: string | undefined;
16
- encoding?: string | undefined;
17
- }>, z.ZodObject<{
18
- type: z.ZodLiteral<"bearer">;
19
- token: z.ZodString;
20
- }, "strip", z.ZodTypeAny, {
21
- type: "bearer";
22
- token: string;
23
- }, {
24
- type: "bearer";
25
- token: string;
26
- }>]>;
27
- export declare const PAGINATED_REQUEST_INPUT_PARAMS: z.ZodObject<{
28
- baseUrl: z.ZodString;
29
- url: z.ZodString;
30
- method: z.ZodEnum<["get", "post", "put", "delete", "patch"]>;
31
- response: z.ZodOptional<z.ZodObject<{
32
- indexField: z.ZodOptional<z.ZodString>;
33
- dataKey: z.ZodOptional<z.ZodString>;
34
- nextKey: z.ZodOptional<z.ZodString>;
35
- }, "strip", z.ZodTypeAny, {
36
- indexField?: string | undefined;
37
- dataKey?: string | undefined;
38
- nextKey?: string | undefined;
39
- }, {
40
- indexField?: string | undefined;
41
- dataKey?: string | undefined;
42
- nextKey?: string | undefined;
43
- }>>;
44
- iterator: z.ZodObject<{
45
- key: z.ZodString;
46
- in: z.ZodEnum<["query", "body", "headers"]>;
47
- }, "strip", z.ZodTypeAny, {
48
- key: string;
49
- in: "query" | "body" | "headers";
50
- }, {
51
- key: string;
52
- in: "query" | "body" | "headers";
53
- }>;
54
- cursor: z.ZodOptional<z.ZodObject<{
55
- token: z.ZodNullable<z.ZodOptional<z.ZodString>>;
56
- position: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
57
- }, "strip", z.ZodTypeAny, {
58
- token?: string | null | undefined;
59
- position?: number | null | undefined;
60
- }, {
61
- token?: string | null | undefined;
62
- position?: number | null | undefined;
63
- }>>;
64
- customErrors: z.ZodOptional<z.ZodArray<z.ZodObject<{
65
- receivedStatus: z.ZodNumber;
66
- targetStatus: z.ZodNumber;
67
- message: z.ZodOptional<z.ZodString>;
68
- condition: z.ZodOptional<z.ZodString>;
69
- }, "strip", z.ZodTypeAny, {
70
- receivedStatus: number;
71
- targetStatus: number;
72
- message?: string | undefined;
73
- condition?: string | undefined;
74
- }, {
75
- receivedStatus: number;
76
- targetStatus: number;
77
- message?: string | undefined;
78
- condition?: string | undefined;
79
- }>, "many">>;
80
- args: z.ZodOptional<z.ZodArray<z.ZodObject<{
81
- name: z.ZodString;
82
- value: z.ZodUnknown;
83
- in: z.ZodEnum<["query", "body", "headers"]>;
84
- condition: z.ZodOptional<z.ZodString>;
85
- }, "strip", z.ZodTypeAny, {
86
- in: "query" | "body" | "headers";
87
- name: string;
88
- value?: unknown;
89
- condition?: string | undefined;
90
- }, {
91
- in: "query" | "body" | "headers";
92
- name: string;
93
- value?: unknown;
94
- condition?: string | undefined;
95
- }>, "many">>;
96
- }, "strip", z.ZodTypeAny, {
97
- baseUrl: string;
98
- url: string;
99
- method: "get" | "post" | "put" | "delete" | "patch";
100
- iterator: {
101
- key: string;
102
- in: "query" | "body" | "headers";
103
- };
104
- response?: {
105
- indexField?: string | undefined;
106
- dataKey?: string | undefined;
107
- nextKey?: string | undefined;
108
- } | undefined;
109
- cursor?: {
110
- token?: string | null | undefined;
111
- position?: number | null | undefined;
112
- } | undefined;
113
- customErrors?: {
114
- receivedStatus: number;
115
- targetStatus: number;
116
- message?: string | undefined;
117
- condition?: string | undefined;
118
- }[] | undefined;
119
- args?: {
120
- in: "query" | "body" | "headers";
121
- name: string;
122
- value?: unknown;
123
- condition?: string | undefined;
124
- }[] | undefined;
125
- }, {
126
- baseUrl: string;
127
- url: string;
128
- method: "get" | "post" | "put" | "delete" | "patch";
129
- iterator: {
130
- key: string;
131
- in: "query" | "body" | "headers";
132
- };
133
- response?: {
134
- indexField?: string | undefined;
135
- dataKey?: string | undefined;
136
- nextKey?: string | undefined;
137
- } | undefined;
138
- cursor?: {
139
- token?: string | null | undefined;
140
- position?: number | null | undefined;
141
- } | undefined;
142
- customErrors?: {
143
- receivedStatus: number;
144
- targetStatus: number;
145
- message?: string | undefined;
146
- condition?: string | undefined;
147
- }[] | undefined;
148
- args?: {
149
- in: "query" | "body" | "headers";
150
- name: string;
151
- value?: unknown;
152
- condition?: string | undefined;
153
- }[] | undefined;
154
- }>;
155
- export declare const PAGINATED_REQUEST_OUTPUT: z.ZodOptional<z.ZodObject<{
156
- data: z.ZodOptional<z.ZodUnknown>;
157
- raw: z.ZodOptional<z.ZodUnknown>;
158
- statusCode: z.ZodNumber;
159
- message: z.ZodOptional<z.ZodString>;
160
- next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
161
- position: z.ZodOptional<z.ZodNumber>;
162
- }, "strip", z.ZodTypeAny, {
163
- statusCode: number;
164
- message?: string | undefined;
165
- position?: number | undefined;
166
- data?: unknown;
167
- raw?: unknown;
168
- next?: string | null | undefined;
169
- }, {
170
- statusCode: number;
171
- message?: string | undefined;
172
- position?: number | undefined;
173
- data?: unknown;
174
- raw?: unknown;
175
- next?: string | null | undefined;
176
- }>>;
@@ -1,2 +0,0 @@
1
- import type { StepFunction } from '../types';
2
- export declare const requestStepFunction: StepFunction;
@@ -1,134 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const AUTHENTICATION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3
- type: z.ZodLiteral<"basic">;
4
- username: z.ZodOptional<z.ZodString>;
5
- password: z.ZodOptional<z.ZodString>;
6
- encoding: z.ZodOptional<z.ZodString>;
7
- }, "strip", z.ZodTypeAny, {
8
- type: "basic";
9
- username?: string | undefined;
10
- password?: string | undefined;
11
- encoding?: string | undefined;
12
- }, {
13
- type: "basic";
14
- username?: string | undefined;
15
- password?: string | undefined;
16
- encoding?: string | undefined;
17
- }>, z.ZodObject<{
18
- type: z.ZodLiteral<"bearer">;
19
- token: z.ZodString;
20
- }, "strip", z.ZodTypeAny, {
21
- type: "bearer";
22
- token: string;
23
- }, {
24
- type: "bearer";
25
- token: string;
26
- }>]>;
27
- export declare const REQUEST_INPUT_PARAMS: z.ZodObject<{
28
- baseUrl: z.ZodString;
29
- url: z.ZodString;
30
- method: z.ZodEnum<["get", "post", "put", "delete", "patch"]>;
31
- response: z.ZodOptional<z.ZodObject<{
32
- collection: z.ZodOptional<z.ZodBoolean>;
33
- indexField: z.ZodOptional<z.ZodString>;
34
- dataKey: z.ZodOptional<z.ZodString>;
35
- }, "strip", z.ZodTypeAny, {
36
- collection?: boolean | undefined;
37
- indexField?: string | undefined;
38
- dataKey?: string | undefined;
39
- }, {
40
- collection?: boolean | undefined;
41
- indexField?: string | undefined;
42
- dataKey?: string | undefined;
43
- }>>;
44
- customErrors: z.ZodOptional<z.ZodArray<z.ZodObject<{
45
- receivedStatus: z.ZodNumber;
46
- targetStatus: z.ZodNumber;
47
- message: z.ZodOptional<z.ZodString>;
48
- condition: z.ZodOptional<z.ZodString>;
49
- }, "strip", z.ZodTypeAny, {
50
- receivedStatus: number;
51
- targetStatus: number;
52
- message?: string | undefined;
53
- condition?: string | undefined;
54
- }, {
55
- receivedStatus: number;
56
- targetStatus: number;
57
- message?: string | undefined;
58
- condition?: string | undefined;
59
- }>, "many">>;
60
- args: z.ZodOptional<z.ZodArray<z.ZodObject<{
61
- name: z.ZodString;
62
- value: z.ZodUnknown;
63
- in: z.ZodEnum<["query", "body", "headers"]>;
64
- condition: z.ZodOptional<z.ZodString>;
65
- }, "strip", z.ZodTypeAny, {
66
- name: string;
67
- in: "query" | "body" | "headers";
68
- value?: unknown;
69
- condition?: string | undefined;
70
- }, {
71
- name: string;
72
- in: "query" | "body" | "headers";
73
- value?: unknown;
74
- condition?: string | undefined;
75
- }>, "many">>;
76
- }, "strip", z.ZodTypeAny, {
77
- baseUrl: string;
78
- url: string;
79
- method: "get" | "post" | "put" | "delete" | "patch";
80
- response?: {
81
- collection?: boolean | undefined;
82
- indexField?: string | undefined;
83
- dataKey?: string | undefined;
84
- } | undefined;
85
- customErrors?: {
86
- receivedStatus: number;
87
- targetStatus: number;
88
- message?: string | undefined;
89
- condition?: string | undefined;
90
- }[] | undefined;
91
- args?: {
92
- name: string;
93
- in: "query" | "body" | "headers";
94
- value?: unknown;
95
- condition?: string | undefined;
96
- }[] | undefined;
97
- }, {
98
- baseUrl: string;
99
- url: string;
100
- method: "get" | "post" | "put" | "delete" | "patch";
101
- response?: {
102
- collection?: boolean | undefined;
103
- indexField?: string | undefined;
104
- dataKey?: string | undefined;
105
- } | undefined;
106
- customErrors?: {
107
- receivedStatus: number;
108
- targetStatus: number;
109
- message?: string | undefined;
110
- condition?: string | undefined;
111
- }[] | undefined;
112
- args?: {
113
- name: string;
114
- in: "query" | "body" | "headers";
115
- value?: unknown;
116
- condition?: string | undefined;
117
- }[] | undefined;
118
- }>;
119
- export declare const REQUEST_OUTPUT: z.ZodOptional<z.ZodObject<{
120
- data: z.ZodOptional<z.ZodUnknown>;
121
- raw: z.ZodOptional<z.ZodUnknown>;
122
- statusCode: z.ZodNumber;
123
- message: z.ZodOptional<z.ZodString>;
124
- }, "strip", z.ZodTypeAny, {
125
- statusCode: number;
126
- message?: string | undefined;
127
- data?: unknown;
128
- raw?: unknown;
129
- }, {
130
- statusCode: number;
131
- message?: string | undefined;
132
- data?: unknown;
133
- raw?: unknown;
134
- }>>;