@veruna/api-contracts 1.1.20 → 1.1.22
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/build/controllers/index.d.ts +1 -0
- package/build/controllers/index.js +5 -1
- package/build/controllers/index.js.map +1 -1
- package/build/controllers/tasks.controllers.d.ts +3 -0
- package/build/controllers/tasks.controllers.js +7 -0
- package/build/controllers/tasks.controllers.js.map +1 -0
- package/build/locales/validation.d.ts +204 -0
- package/build/locales/validation.js +204 -0
- package/build/locales/validation.js.map +1 -1
- package/build/rest-api.d.ts +12 -0
- package/build/rest-api.js +12 -0
- package/build/rest-api.js.map +1 -1
- package/build/routes/index.d.ts +1 -0
- package/build/routes/index.js +5 -1
- package/build/routes/index.js.map +1 -1
- package/build/routes/tasks.routes.d.ts +12 -0
- package/build/routes/tasks.routes.js +16 -0
- package/build/routes/tasks.routes.js.map +1 -0
- package/build/shared/index.d.ts +1 -0
- package/build/shared/index.js +1 -0
- package/build/shared/index.js.map +1 -1
- package/build/shared/metadata.schema.d.ts +16 -0
- package/build/shared/metadata.schema.js +94 -0
- package/build/shared/metadata.schema.js.map +1 -0
- package/build/shared/regex.d.ts +1 -0
- package/build/shared/regex.js +2 -1
- package/build/shared/regex.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/ai-model/public/queries/get-active-models.query.d.ts +2 -2
- package/build/v1/ai-model/public/queries/get-models-list.query.d.ts +2 -2
- package/build/v1/ai-model/schemas/model-response.schema.d.ts +2 -2
- package/build/v1/ai-model/schemas/model-settings.schema.d.ts +2 -2
- package/build/v1/ai-model/schemas/models-list-response.schema.d.ts +6 -6
- package/build/v1/ai-model/schemas/unreg-models-list-response.schema.d.ts +2 -2
- package/build/v1/ai-model/unreg/queries/get-models-list.query.d.ts +2 -2
- package/build/v1/assistants/catalog/queries/catalog-short-reg.query.d.ts +2 -2
- package/build/v1/assistants/catalog/queries/catalog-short-unreg.query.d.ts +2 -2
- package/build/v1/assistants/public/queries/get-tree.query.d.ts +2 -2
- package/build/v1/assistants/schemas/assistant-linked-page.schema.d.ts +1 -1
- package/build/v1/assistants/schemas/assistant-tree.schema.d.ts +6 -6
- package/build/v1/assistants/schemas/catalog-short-response.schema.d.ts +8 -8
- package/build/v1/blog/public/queries/get-post-by-alias.query.d.ts +2 -2
- package/build/v1/blog/schemas/public-post-response.schema.d.ts +2 -2
- package/build/v1/daily-rewards/queries/get-unreg-reward-table.query.js.map +1 -1
- package/build/v1/index.d.ts +1 -0
- package/build/v1/index.js +1 -0
- package/build/v1/index.js.map +1 -1
- package/build/v1/seo-pages/public/queries/get-index-page.query.d.ts +2 -2
- package/build/v1/seo-pages/public/queries/get-page-by-alias.query.d.ts +2 -2
- package/build/v1/seo-pages/schemas/page-response.schema.d.ts +2 -2
- package/build/v1/tasks/commands/admin-create-task-definition.command.d.ts +40 -0
- package/build/v1/tasks/commands/admin-create-task-definition.command.js +14 -0
- package/build/v1/tasks/commands/admin-create-task-definition.command.js.map +1 -0
- package/build/v1/tasks/commands/admin-delete-task-definition.command.d.ts +10 -0
- package/build/v1/tasks/commands/admin-delete-task-definition.command.js +14 -0
- package/build/v1/tasks/commands/admin-delete-task-definition.command.js.map +1 -0
- package/build/v1/tasks/commands/admin-update-task-definition.command.d.ts +40 -0
- package/build/v1/tasks/commands/admin-update-task-definition.command.js +14 -0
- package/build/v1/tasks/commands/admin-update-task-definition.command.js.map +1 -0
- package/build/v1/tasks/commands/claim-task.command.d.ts +15 -0
- package/build/v1/tasks/commands/claim-task.command.js +15 -0
- package/build/v1/tasks/commands/claim-task.command.js.map +1 -0
- package/build/v1/tasks/commands/index.d.ts +5 -0
- package/build/v1/tasks/commands/index.js +22 -0
- package/build/v1/tasks/commands/index.js.map +1 -0
- package/build/v1/tasks/commands/verify-task.command.d.ts +14 -0
- package/build/v1/tasks/commands/verify-task.command.js +15 -0
- package/build/v1/tasks/commands/verify-task.command.js.map +1 -0
- package/build/v1/tasks/index.d.ts +7 -0
- package/build/v1/tasks/index.js +31 -0
- package/build/v1/tasks/index.js.map +1 -0
- package/build/v1/tasks/queries/get-admin-task-definitions.query.d.ts +28 -0
- package/build/v1/tasks/queries/get-admin-task-definitions.query.js +15 -0
- package/build/v1/tasks/queries/get-admin-task-definitions.query.js.map +1 -0
- package/build/v1/tasks/queries/get-unreg-tasks.query.d.ts +25 -0
- package/build/v1/tasks/queries/get-unreg-tasks.query.js +15 -0
- package/build/v1/tasks/queries/get-unreg-tasks.query.js.map +1 -0
- package/build/v1/tasks/queries/get-user-tasks.query.d.ts +25 -0
- package/build/v1/tasks/queries/get-user-tasks.query.js +15 -0
- package/build/v1/tasks/queries/get-user-tasks.query.js.map +1 -0
- package/build/v1/tasks/queries/index.d.ts +3 -0
- package/build/v1/tasks/queries/index.js +20 -0
- package/build/v1/tasks/queries/index.js.map +1 -0
- package/build/v1/tasks/schemas/admin-task-definition.schema.d.ts +68 -0
- package/build/v1/tasks/schemas/admin-task-definition.schema.js +140 -0
- package/build/v1/tasks/schemas/admin-task-definition.schema.js.map +1 -0
- package/build/v1/tasks/schemas/claim-task-response.schema.d.ts +8 -0
- package/build/v1/tasks/schemas/claim-task-response.schema.js +12 -0
- package/build/v1/tasks/schemas/claim-task-response.schema.js.map +1 -0
- package/build/v1/tasks/schemas/index.d.ts +8 -0
- package/build/v1/tasks/schemas/index.js +25 -0
- package/build/v1/tasks/schemas/index.js.map +1 -0
- package/build/v1/tasks/schemas/metadata/index.d.ts +2 -0
- package/build/v1/tasks/schemas/metadata/index.js +19 -0
- package/build/v1/tasks/schemas/metadata/index.js.map +1 -0
- package/build/v1/tasks/schemas/metadata/task-code-metadata.registry.d.ts +4 -0
- package/build/v1/tasks/schemas/metadata/task-code-metadata.registry.js +18 -0
- package/build/v1/tasks/schemas/metadata/task-code-metadata.registry.js.map +1 -0
- package/build/v1/tasks/schemas/metadata/telegram-channel-metadata.schema.d.ts +9 -0
- package/build/v1/tasks/schemas/metadata/telegram-channel-metadata.schema.js +26 -0
- package/build/v1/tasks/schemas/metadata/telegram-channel-metadata.schema.js.map +1 -0
- package/build/v1/tasks/schemas/route-params.schema.d.ts +7 -0
- package/build/v1/tasks/schemas/route-params.schema.js +18 -0
- package/build/v1/tasks/schemas/route-params.schema.js.map +1 -0
- package/build/v1/tasks/schemas/task-audience.schema.d.ts +8 -0
- package/build/v1/tasks/schemas/task-audience.schema.js +19 -0
- package/build/v1/tasks/schemas/task-audience.schema.js.map +1 -0
- package/build/v1/tasks/schemas/task-requirements.schema.d.ts +10 -0
- package/build/v1/tasks/schemas/task-requirements.schema.js +20 -0
- package/build/v1/tasks/schemas/task-requirements.schema.js.map +1 -0
- package/build/v1/tasks/schemas/user-task-response.schema.d.ts +33 -0
- package/build/v1/tasks/schemas/user-task-response.schema.js +24 -0
- package/build/v1/tasks/schemas/user-task-response.schema.js.map +1 -0
- package/build/v1/tasks/schemas/verify-task-response.schema.d.ts +7 -0
- package/build/v1/tasks/schemas/verify-task-response.schema.js +11 -0
- package/build/v1/tasks/schemas/verify-task-response.schema.js.map +1 -0
- package/build/v1/tasks/tasks.constants.d.ts +32 -0
- package/build/v1/tasks/tasks.constants.js +40 -0
- package/build/v1/tasks/tasks.constants.js.map +1 -0
- package/build/v1/tasks/tasks.errors.d.ts +22 -0
- package/build/v1/tasks/tasks.errors.js +99 -0
- package/build/v1/tasks/tasks.errors.js.map +1 -0
- package/build/v1/tool/public/queries/get-tool-availability.query.d.ts +5 -5
- package/build/v1/tool/public/queries/get-tools.query.d.ts +3 -3
- package/build/v1/tool/schemas/tool.schema.d.ts +35 -35
- package/build/v1/tool/unreg/queries/get-tool-availability-unreg.query.d.ts +5 -5
- package/build/v1/tool/unreg/queries/get-tools-unreg.query.d.ts +3 -3
- package/build/v1/wallet/schemas/balance-type-code.enum.d.ts +2 -3
- package/build/v1/wallet/schemas/balance-type-code.enum.js +1 -2
- package/build/v1/wallet/schemas/balance-type-code.enum.js.map +1 -1
- package/build/v1/wallet/schemas/metadata.schema.js +8 -63
- package/build/v1/wallet/schemas/metadata.schema.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,8 +6,8 @@ export declare namespace PublicAiModelGetActiveModelsQuery {
|
|
|
6
6
|
type: z.ZodEnum<typeof import("../../schemas").ModelType>;
|
|
7
7
|
uuid: z.ZodString;
|
|
8
8
|
title: z.ZodString;
|
|
9
|
-
order: z.ZodNumber;
|
|
10
9
|
description: z.ZodString;
|
|
10
|
+
order: z.ZodNumber;
|
|
11
11
|
marks: z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelMark>>;
|
|
12
12
|
icon: z.ZodString;
|
|
13
13
|
price: z.ZodNumber;
|
|
@@ -44,9 +44,9 @@ export declare namespace PublicAiModelGetActiveModelsQuery {
|
|
|
44
44
|
defaultOptionId: z.ZodString;
|
|
45
45
|
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
46
46
|
options: z.ZodArray<z.ZodObject<{
|
|
47
|
+
id: z.ZodString;
|
|
47
48
|
title: z.ZodString;
|
|
48
49
|
icon: z.ZodOptional<z.ZodString>;
|
|
49
|
-
id: z.ZodString;
|
|
50
50
|
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
51
51
|
}, z.core.$strip>>;
|
|
52
52
|
}, z.core.$strip>>>;
|
|
@@ -12,8 +12,8 @@ export declare namespace PublicAiModelGetModelsListQuery {
|
|
|
12
12
|
type: z.ZodEnum<typeof import("../../schemas").ModelType>;
|
|
13
13
|
uuid: z.ZodString;
|
|
14
14
|
title: z.ZodString;
|
|
15
|
-
order: z.ZodNumber;
|
|
16
15
|
description: z.ZodString;
|
|
16
|
+
order: z.ZodNumber;
|
|
17
17
|
marks: z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelMark>>;
|
|
18
18
|
icon: z.ZodString;
|
|
19
19
|
price: z.ZodNumber;
|
|
@@ -50,9 +50,9 @@ export declare namespace PublicAiModelGetModelsListQuery {
|
|
|
50
50
|
defaultOptionId: z.ZodString;
|
|
51
51
|
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
52
52
|
options: z.ZodArray<z.ZodObject<{
|
|
53
|
+
id: z.ZodString;
|
|
53
54
|
title: z.ZodString;
|
|
54
55
|
icon: z.ZodOptional<z.ZodString>;
|
|
55
|
-
id: z.ZodString;
|
|
56
56
|
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
57
57
|
}, z.core.$strip>>;
|
|
58
58
|
}, z.core.$strip>>>;
|
|
@@ -55,8 +55,8 @@ export declare const PublicModelResponseSchema: z.ZodObject<{
|
|
|
55
55
|
type: z.ZodEnum<typeof ModelType>;
|
|
56
56
|
uuid: z.ZodString;
|
|
57
57
|
title: z.ZodString;
|
|
58
|
-
order: z.ZodNumber;
|
|
59
58
|
description: z.ZodString;
|
|
59
|
+
order: z.ZodNumber;
|
|
60
60
|
marks: z.ZodArray<z.ZodEnum<typeof ModelMark>>;
|
|
61
61
|
icon: z.ZodString;
|
|
62
62
|
price: z.ZodNumber;
|
|
@@ -93,9 +93,9 @@ export declare const PublicModelResponseSchema: z.ZodObject<{
|
|
|
93
93
|
defaultOptionId: z.ZodString;
|
|
94
94
|
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
95
95
|
options: z.ZodArray<z.ZodObject<{
|
|
96
|
+
id: z.ZodString;
|
|
96
97
|
title: z.ZodString;
|
|
97
98
|
icon: z.ZodOptional<z.ZodString>;
|
|
98
|
-
id: z.ZodString;
|
|
99
99
|
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
100
100
|
}, z.core.$strip>>;
|
|
101
101
|
}, z.core.$strip>>>;
|
|
@@ -29,9 +29,9 @@ export declare const SettingOptionWithProviderValueSchema: z.ZodObject<{
|
|
|
29
29
|
}, z.core.$strip>;
|
|
30
30
|
export type SettingOptionWithProviderValue = z.infer<typeof SettingOptionWithProviderValueSchema>;
|
|
31
31
|
export declare const SettingOptionClientSchema: z.ZodObject<{
|
|
32
|
+
id: z.ZodString;
|
|
32
33
|
title: z.ZodString;
|
|
33
34
|
icon: z.ZodOptional<z.ZodString>;
|
|
34
|
-
id: z.ZodString;
|
|
35
35
|
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
36
36
|
}, z.core.$strip>;
|
|
37
37
|
export type SettingOptionClient = z.infer<typeof SettingOptionClientSchema>;
|
|
@@ -188,9 +188,9 @@ export declare const SettingDefinitionClientSchema: z.ZodObject<{
|
|
|
188
188
|
defaultOptionId: z.ZodString;
|
|
189
189
|
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
190
190
|
options: z.ZodArray<z.ZodObject<{
|
|
191
|
+
id: z.ZodString;
|
|
191
192
|
title: z.ZodString;
|
|
192
193
|
icon: z.ZodOptional<z.ZodString>;
|
|
193
|
-
id: z.ZodString;
|
|
194
194
|
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
195
195
|
}, z.core.$strip>>;
|
|
196
196
|
}, z.core.$strip>;
|
|
@@ -3,8 +3,8 @@ export declare const PublicModelInListSchema: z.ZodObject<{
|
|
|
3
3
|
type: z.ZodEnum<typeof import("./model-type.enum").ModelType>;
|
|
4
4
|
uuid: z.ZodString;
|
|
5
5
|
title: z.ZodString;
|
|
6
|
-
order: z.ZodNumber;
|
|
7
6
|
description: z.ZodString;
|
|
7
|
+
order: z.ZodNumber;
|
|
8
8
|
marks: z.ZodArray<z.ZodEnum<typeof import("./model-mark.enum").ModelMark>>;
|
|
9
9
|
icon: z.ZodString;
|
|
10
10
|
price: z.ZodNumber;
|
|
@@ -41,9 +41,9 @@ export declare const PublicModelInListSchema: z.ZodObject<{
|
|
|
41
41
|
defaultOptionId: z.ZodString;
|
|
42
42
|
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
43
43
|
options: z.ZodArray<z.ZodObject<{
|
|
44
|
+
id: z.ZodString;
|
|
44
45
|
title: z.ZodString;
|
|
45
46
|
icon: z.ZodOptional<z.ZodString>;
|
|
46
|
-
id: z.ZodString;
|
|
47
47
|
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
48
48
|
}, z.core.$strip>>;
|
|
49
49
|
}, z.core.$strip>>>;
|
|
@@ -59,8 +59,8 @@ export declare const PublicProviderWithModelsSchema: z.ZodObject<{
|
|
|
59
59
|
type: z.ZodEnum<typeof import("./model-type.enum").ModelType>;
|
|
60
60
|
uuid: z.ZodString;
|
|
61
61
|
title: z.ZodString;
|
|
62
|
-
order: z.ZodNumber;
|
|
63
62
|
description: z.ZodString;
|
|
63
|
+
order: z.ZodNumber;
|
|
64
64
|
marks: z.ZodArray<z.ZodEnum<typeof import("./model-mark.enum").ModelMark>>;
|
|
65
65
|
icon: z.ZodString;
|
|
66
66
|
price: z.ZodNumber;
|
|
@@ -97,9 +97,9 @@ export declare const PublicProviderWithModelsSchema: z.ZodObject<{
|
|
|
97
97
|
defaultOptionId: z.ZodString;
|
|
98
98
|
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
99
99
|
options: z.ZodArray<z.ZodObject<{
|
|
100
|
+
id: z.ZodString;
|
|
100
101
|
title: z.ZodString;
|
|
101
102
|
icon: z.ZodOptional<z.ZodString>;
|
|
102
|
-
id: z.ZodString;
|
|
103
103
|
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
104
104
|
}, z.core.$strip>>;
|
|
105
105
|
}, z.core.$strip>>>;
|
|
@@ -117,8 +117,8 @@ export declare const ModelsListResponseSchema: z.ZodObject<{
|
|
|
117
117
|
type: z.ZodEnum<typeof import("./model-type.enum").ModelType>;
|
|
118
118
|
uuid: z.ZodString;
|
|
119
119
|
title: z.ZodString;
|
|
120
|
-
order: z.ZodNumber;
|
|
121
120
|
description: z.ZodString;
|
|
121
|
+
order: z.ZodNumber;
|
|
122
122
|
marks: z.ZodArray<z.ZodEnum<typeof import("./model-mark.enum").ModelMark>>;
|
|
123
123
|
icon: z.ZodString;
|
|
124
124
|
price: z.ZodNumber;
|
|
@@ -155,9 +155,9 @@ export declare const ModelsListResponseSchema: z.ZodObject<{
|
|
|
155
155
|
defaultOptionId: z.ZodString;
|
|
156
156
|
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
157
157
|
options: z.ZodArray<z.ZodObject<{
|
|
158
|
+
id: z.ZodString;
|
|
158
159
|
title: z.ZodString;
|
|
159
160
|
icon: z.ZodOptional<z.ZodString>;
|
|
160
|
-
id: z.ZodString;
|
|
161
161
|
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
162
162
|
}, z.core.$strip>>;
|
|
163
163
|
}, z.core.$strip>>>;
|
|
@@ -8,8 +8,8 @@ export declare const UnregModelsListResponseSchema: import("zod").ZodObject<{
|
|
|
8
8
|
type: import("zod").ZodEnum<typeof import("./model-type.enum").ModelType>;
|
|
9
9
|
uuid: import("zod").ZodString;
|
|
10
10
|
title: import("zod").ZodString;
|
|
11
|
-
order: import("zod").ZodNumber;
|
|
12
11
|
description: import("zod").ZodString;
|
|
12
|
+
order: import("zod").ZodNumber;
|
|
13
13
|
marks: import("zod").ZodArray<import("zod").ZodEnum<typeof import("./model-mark.enum").ModelMark>>;
|
|
14
14
|
icon: import("zod").ZodString;
|
|
15
15
|
price: import("zod").ZodNumber;
|
|
@@ -46,9 +46,9 @@ export declare const UnregModelsListResponseSchema: import("zod").ZodObject<{
|
|
|
46
46
|
defaultOptionId: import("zod").ZodString;
|
|
47
47
|
maxSelections: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
48
48
|
options: import("zod").ZodArray<import("zod").ZodObject<{
|
|
49
|
+
id: import("zod").ZodString;
|
|
49
50
|
title: import("zod").ZodString;
|
|
50
51
|
icon: import("zod").ZodOptional<import("zod").ZodString>;
|
|
51
|
-
id: import("zod").ZodString;
|
|
52
52
|
priceModifier: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
53
53
|
}, import("zod/v4/core").$strip>>;
|
|
54
54
|
}, import("zod/v4/core").$strip>>>;
|
|
@@ -12,8 +12,8 @@ export declare namespace UnregAiModelGetModelsListQuery {
|
|
|
12
12
|
type: z.ZodEnum<typeof import("../../schemas").ModelType>;
|
|
13
13
|
uuid: z.ZodString;
|
|
14
14
|
title: z.ZodString;
|
|
15
|
-
order: z.ZodNumber;
|
|
16
15
|
description: z.ZodString;
|
|
16
|
+
order: z.ZodNumber;
|
|
17
17
|
marks: z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelMark>>;
|
|
18
18
|
icon: z.ZodString;
|
|
19
19
|
price: z.ZodNumber;
|
|
@@ -50,9 +50,9 @@ export declare namespace UnregAiModelGetModelsListQuery {
|
|
|
50
50
|
defaultOptionId: z.ZodString;
|
|
51
51
|
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
52
52
|
options: z.ZodArray<z.ZodObject<{
|
|
53
|
+
id: z.ZodString;
|
|
53
54
|
title: z.ZodString;
|
|
54
55
|
icon: z.ZodOptional<z.ZodString>;
|
|
55
|
-
id: z.ZodString;
|
|
56
56
|
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
57
57
|
}, z.core.$strip>>;
|
|
58
58
|
}, z.core.$strip>>>;
|
|
@@ -50,8 +50,8 @@ export declare namespace CatalogShortRegQuery {
|
|
|
50
50
|
page: z.ZodObject<{
|
|
51
51
|
type: z.ZodEnum<typeof import("../../..").PageType>;
|
|
52
52
|
uuid: z.ZodString;
|
|
53
|
-
alias: z.ZodString;
|
|
54
53
|
title: z.ZodString;
|
|
54
|
+
alias: z.ZodString;
|
|
55
55
|
}, z.core.$strip>;
|
|
56
56
|
}, z.core.$strip>>;
|
|
57
57
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -69,8 +69,8 @@ export declare namespace CatalogShortRegQuery {
|
|
|
69
69
|
page: z.ZodObject<{
|
|
70
70
|
type: z.ZodEnum<typeof import("../../..").PageType>;
|
|
71
71
|
uuid: z.ZodString;
|
|
72
|
-
alias: z.ZodString;
|
|
73
72
|
title: z.ZodString;
|
|
73
|
+
alias: z.ZodString;
|
|
74
74
|
}, z.core.$strip>;
|
|
75
75
|
}, z.core.$strip>]>>;
|
|
76
76
|
}, z.core.$strip>;
|
|
@@ -22,8 +22,8 @@ export declare namespace CatalogShortUnregQuery {
|
|
|
22
22
|
page: z.ZodObject<{
|
|
23
23
|
type: z.ZodEnum<typeof import("../../..").PageType>;
|
|
24
24
|
uuid: z.ZodString;
|
|
25
|
-
alias: z.ZodString;
|
|
26
25
|
title: z.ZodString;
|
|
26
|
+
alias: z.ZodString;
|
|
27
27
|
}, z.core.$strip>;
|
|
28
28
|
}, z.core.$strip>>;
|
|
29
29
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -41,8 +41,8 @@ export declare namespace CatalogShortUnregQuery {
|
|
|
41
41
|
page: z.ZodObject<{
|
|
42
42
|
type: z.ZodEnum<typeof import("../../..").PageType>;
|
|
43
43
|
uuid: z.ZodString;
|
|
44
|
-
alias: z.ZodString;
|
|
45
44
|
title: z.ZodString;
|
|
45
|
+
alias: z.ZodString;
|
|
46
46
|
}, z.core.$strip>;
|
|
47
47
|
}, z.core.$strip>]>>;
|
|
48
48
|
}, z.core.$strip>;
|
|
@@ -17,8 +17,8 @@ export declare namespace AssistantGetTreeQuery {
|
|
|
17
17
|
page: z.ZodObject<{
|
|
18
18
|
type: z.ZodEnum<typeof import("../../..").PageType>;
|
|
19
19
|
uuid: z.ZodString;
|
|
20
|
-
alias: z.ZodString;
|
|
21
20
|
title: z.ZodString;
|
|
21
|
+
alias: z.ZodString;
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
}, z.core.$strip>>;
|
|
24
24
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -32,8 +32,8 @@ export declare namespace AssistantGetTreeQuery {
|
|
|
32
32
|
page: z.ZodObject<{
|
|
33
33
|
type: z.ZodEnum<typeof import("../../..").PageType>;
|
|
34
34
|
uuid: z.ZodString;
|
|
35
|
-
alias: z.ZodString;
|
|
36
35
|
title: z.ZodString;
|
|
36
|
+
alias: z.ZodString;
|
|
37
37
|
}, z.core.$strip>;
|
|
38
38
|
}, z.core.$strip>]>>;
|
|
39
39
|
const URL: "/api/v1/assistants/";
|
|
@@ -12,8 +12,8 @@ export declare const AssistantLinkedPageSchema: z.ZodObject<{
|
|
|
12
12
|
export declare const AssistantTreePageSchema: z.ZodObject<{
|
|
13
13
|
type: z.ZodEnum<typeof PageType>;
|
|
14
14
|
uuid: z.ZodString;
|
|
15
|
-
alias: z.ZodString;
|
|
16
15
|
title: z.ZodString;
|
|
16
|
+
alias: z.ZodString;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
18
|
export type AssistantLinkedPageType = z.infer<typeof AssistantLinkedPageSchema>;
|
|
19
19
|
export type AssistantTreePageType = z.infer<typeof AssistantTreePageSchema>;
|
|
@@ -11,8 +11,8 @@ export declare const AssistantTreeChildSchema: z.ZodObject<{
|
|
|
11
11
|
page: z.ZodObject<{
|
|
12
12
|
type: z.ZodEnum<typeof import("../..").PageType>;
|
|
13
13
|
uuid: z.ZodString;
|
|
14
|
-
alias: z.ZodString;
|
|
15
14
|
title: z.ZodString;
|
|
15
|
+
alias: z.ZodString;
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
18
|
export declare const AssistantTreeNodeSchema: z.ZodObject<{
|
|
@@ -30,8 +30,8 @@ export declare const AssistantTreeNodeSchema: z.ZodObject<{
|
|
|
30
30
|
page: z.ZodObject<{
|
|
31
31
|
type: z.ZodEnum<typeof import("../..").PageType>;
|
|
32
32
|
uuid: z.ZodString;
|
|
33
|
-
alias: z.ZodString;
|
|
34
33
|
title: z.ZodString;
|
|
34
|
+
alias: z.ZodString;
|
|
35
35
|
}, z.core.$strip>;
|
|
36
36
|
}, z.core.$strip>>;
|
|
37
37
|
}, z.core.$strip>;
|
|
@@ -50,8 +50,8 @@ export declare const AssistantTreeResponseItemSchema: z.ZodUnion<readonly [z.Zod
|
|
|
50
50
|
page: z.ZodObject<{
|
|
51
51
|
type: z.ZodEnum<typeof import("../..").PageType>;
|
|
52
52
|
uuid: z.ZodString;
|
|
53
|
-
alias: z.ZodString;
|
|
54
53
|
title: z.ZodString;
|
|
54
|
+
alias: z.ZodString;
|
|
55
55
|
}, z.core.$strip>;
|
|
56
56
|
}, z.core.$strip>>;
|
|
57
57
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -65,8 +65,8 @@ export declare const AssistantTreeResponseItemSchema: z.ZodUnion<readonly [z.Zod
|
|
|
65
65
|
page: z.ZodObject<{
|
|
66
66
|
type: z.ZodEnum<typeof import("../..").PageType>;
|
|
67
67
|
uuid: z.ZodString;
|
|
68
|
-
alias: z.ZodString;
|
|
69
68
|
title: z.ZodString;
|
|
69
|
+
alias: z.ZodString;
|
|
70
70
|
}, z.core.$strip>;
|
|
71
71
|
}, z.core.$strip>]>;
|
|
72
72
|
export declare const AssistantsTreeResponseSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -84,8 +84,8 @@ export declare const AssistantsTreeResponseSchema: z.ZodArray<z.ZodUnion<readonl
|
|
|
84
84
|
page: z.ZodObject<{
|
|
85
85
|
type: z.ZodEnum<typeof import("../..").PageType>;
|
|
86
86
|
uuid: z.ZodString;
|
|
87
|
-
alias: z.ZodString;
|
|
88
87
|
title: z.ZodString;
|
|
88
|
+
alias: z.ZodString;
|
|
89
89
|
}, z.core.$strip>;
|
|
90
90
|
}, z.core.$strip>>;
|
|
91
91
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -99,8 +99,8 @@ export declare const AssistantsTreeResponseSchema: z.ZodArray<z.ZodUnion<readonl
|
|
|
99
99
|
page: z.ZodObject<{
|
|
100
100
|
type: z.ZodEnum<typeof import("../..").PageType>;
|
|
101
101
|
uuid: z.ZodString;
|
|
102
|
-
alias: z.ZodString;
|
|
103
102
|
title: z.ZodString;
|
|
103
|
+
alias: z.ZodString;
|
|
104
104
|
}, z.core.$strip>;
|
|
105
105
|
}, z.core.$strip>]>>;
|
|
106
106
|
export type AssistantTreeChildType = z.infer<typeof AssistantTreeChildSchema>;
|
|
@@ -29,8 +29,8 @@ export declare const CatalogShortTreeChildSchema: z.ZodObject<{
|
|
|
29
29
|
page: z.ZodObject<{
|
|
30
30
|
type: z.ZodEnum<typeof import("../..").PageType>;
|
|
31
31
|
uuid: z.ZodString;
|
|
32
|
-
alias: z.ZodString;
|
|
33
32
|
title: z.ZodString;
|
|
33
|
+
alias: z.ZodString;
|
|
34
34
|
}, z.core.$strip>;
|
|
35
35
|
}, z.core.$strip>;
|
|
36
36
|
export declare const CatalogShortTreeNodeSchema: z.ZodObject<{
|
|
@@ -52,8 +52,8 @@ export declare const CatalogShortTreeNodeSchema: z.ZodObject<{
|
|
|
52
52
|
page: z.ZodObject<{
|
|
53
53
|
type: z.ZodEnum<typeof import("../..").PageType>;
|
|
54
54
|
uuid: z.ZodString;
|
|
55
|
-
alias: z.ZodString;
|
|
56
55
|
title: z.ZodString;
|
|
56
|
+
alias: z.ZodString;
|
|
57
57
|
}, z.core.$strip>;
|
|
58
58
|
}, z.core.$strip>>;
|
|
59
59
|
}, z.core.$strip>;
|
|
@@ -76,8 +76,8 @@ export declare const CatalogShortResponseItemSchema: z.ZodUnion<readonly [z.ZodO
|
|
|
76
76
|
page: z.ZodObject<{
|
|
77
77
|
type: z.ZodEnum<typeof import("../..").PageType>;
|
|
78
78
|
uuid: z.ZodString;
|
|
79
|
-
alias: z.ZodString;
|
|
80
79
|
title: z.ZodString;
|
|
80
|
+
alias: z.ZodString;
|
|
81
81
|
}, z.core.$strip>;
|
|
82
82
|
}, z.core.$strip>>;
|
|
83
83
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -95,8 +95,8 @@ export declare const CatalogShortResponseItemSchema: z.ZodUnion<readonly [z.ZodO
|
|
|
95
95
|
page: z.ZodObject<{
|
|
96
96
|
type: z.ZodEnum<typeof import("../..").PageType>;
|
|
97
97
|
uuid: z.ZodString;
|
|
98
|
-
alias: z.ZodString;
|
|
99
98
|
title: z.ZodString;
|
|
99
|
+
alias: z.ZodString;
|
|
100
100
|
}, z.core.$strip>;
|
|
101
101
|
}, z.core.$strip>]>;
|
|
102
102
|
export declare const CatalogShortUnregResponseSchema: z.ZodObject<{
|
|
@@ -119,8 +119,8 @@ export declare const CatalogShortUnregResponseSchema: z.ZodObject<{
|
|
|
119
119
|
page: z.ZodObject<{
|
|
120
120
|
type: z.ZodEnum<typeof import("../..").PageType>;
|
|
121
121
|
uuid: z.ZodString;
|
|
122
|
-
alias: z.ZodString;
|
|
123
122
|
title: z.ZodString;
|
|
123
|
+
alias: z.ZodString;
|
|
124
124
|
}, z.core.$strip>;
|
|
125
125
|
}, z.core.$strip>>;
|
|
126
126
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -138,8 +138,8 @@ export declare const CatalogShortUnregResponseSchema: z.ZodObject<{
|
|
|
138
138
|
page: z.ZodObject<{
|
|
139
139
|
type: z.ZodEnum<typeof import("../..").PageType>;
|
|
140
140
|
uuid: z.ZodString;
|
|
141
|
-
alias: z.ZodString;
|
|
142
141
|
title: z.ZodString;
|
|
142
|
+
alias: z.ZodString;
|
|
143
143
|
}, z.core.$strip>;
|
|
144
144
|
}, z.core.$strip>]>>;
|
|
145
145
|
}, z.core.$strip>;
|
|
@@ -191,8 +191,8 @@ export declare const CatalogShortRegResponseSchema: z.ZodObject<{
|
|
|
191
191
|
page: z.ZodObject<{
|
|
192
192
|
type: z.ZodEnum<typeof import("../..").PageType>;
|
|
193
193
|
uuid: z.ZodString;
|
|
194
|
-
alias: z.ZodString;
|
|
195
194
|
title: z.ZodString;
|
|
195
|
+
alias: z.ZodString;
|
|
196
196
|
}, z.core.$strip>;
|
|
197
197
|
}, z.core.$strip>>;
|
|
198
198
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -210,8 +210,8 @@ export declare const CatalogShortRegResponseSchema: z.ZodObject<{
|
|
|
210
210
|
page: z.ZodObject<{
|
|
211
211
|
type: z.ZodEnum<typeof import("../..").PageType>;
|
|
212
212
|
uuid: z.ZodString;
|
|
213
|
-
alias: z.ZodString;
|
|
214
213
|
title: z.ZodString;
|
|
214
|
+
alias: z.ZodString;
|
|
215
215
|
}, z.core.$strip>;
|
|
216
216
|
}, z.core.$strip>]>>;
|
|
217
217
|
}, z.core.$strip>;
|
|
@@ -6,12 +6,12 @@ export declare namespace BlogGetPostByAliasQuery {
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
const Response: z.ZodObject<{
|
|
8
8
|
uuid: z.ZodString;
|
|
9
|
+
title: z.ZodString;
|
|
10
|
+
description: z.ZodString;
|
|
9
11
|
createdAt: z.ZodString;
|
|
10
12
|
status: z.ZodEnum<typeof import("../../schemas").BlogPostStatus>;
|
|
11
13
|
alias: z.ZodString;
|
|
12
|
-
title: z.ZodString;
|
|
13
14
|
updatedAt: z.ZodString;
|
|
14
|
-
description: z.ZodString;
|
|
15
15
|
metaTitle: z.ZodString;
|
|
16
16
|
metaDescription: z.ZodString;
|
|
17
17
|
content: z.ZodString;
|
|
@@ -5,12 +5,12 @@ export declare const MiniAssistantSchema: z.ZodObject<{
|
|
|
5
5
|
}, z.core.$strip>;
|
|
6
6
|
export declare const PublicPostResponseSchema: z.ZodObject<{
|
|
7
7
|
uuid: z.ZodString;
|
|
8
|
+
title: z.ZodString;
|
|
9
|
+
description: z.ZodString;
|
|
8
10
|
createdAt: z.ZodString;
|
|
9
11
|
status: z.ZodEnum<typeof import("./blog-post-status.enum").BlogPostStatus>;
|
|
10
12
|
alias: z.ZodString;
|
|
11
|
-
title: z.ZodString;
|
|
12
13
|
updatedAt: z.ZodString;
|
|
13
|
-
description: z.ZodString;
|
|
14
14
|
metaTitle: z.ZodString;
|
|
15
15
|
metaDescription: z.ZodString;
|
|
16
16
|
content: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-unreg-reward-table.query.js","sourceRoot":"","sources":["../../../../v1/daily-rewards/queries/get-unreg-reward-table.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAA4D;AAC5D,gDAA6C;AAC7C,6DAAyD;
|
|
1
|
+
{"version":3,"file":"get-unreg-reward-table.query.js","sourceRoot":"","sources":["../../../../v1/daily-rewards/queries/get-unreg-reward-table.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAA4D;AAC5D,gDAA6C;AAC7C,6DAAyD;AAczD,IAAiB,wBAAwB,CASxC;AATD,WAAiB,wBAAwB;IACxB,gCAAO,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;IACnB,iCAAQ,GAAG,wCAA8B,CAAC;IAE1C,4BAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,YAAY,CAAC;IACnD,+BAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EATgB,wBAAwB,wCAAxB,wBAAwB,QASxC"}
|
package/build/v1/index.d.ts
CHANGED
package/build/v1/index.js
CHANGED
|
@@ -53,4 +53,5 @@ __exportStar(require("./file"), exports);
|
|
|
53
53
|
__exportStar(require("./forms"), exports);
|
|
54
54
|
__exportStar(require("./open-graph"), exports);
|
|
55
55
|
__exportStar(require("./daily-rewards"), exports);
|
|
56
|
+
__exportStar(require("./tasks"), exports);
|
|
56
57
|
//# sourceMappingURL=index.js.map
|
package/build/v1/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,yCAAuB;AACvB,uDAAqC;AACrC,yCAAuB;AACvB,0CAAwB;AACxB,0CAAwB;AACxB,kDAAgC;AAChC,sDAAoC;AACpC,gDAA8B;AAC9B,+CAA6B;AAC7B,yDAAuC;AACvC,oDAAkC;AAClC,8CAA4B;AAC5B,gDAA8B;AAC9B,6CAA2B;AAC3B,yCAAuB;AACvB,iDAA+B;AAC/B,yCAAuB;AACvB,4CAA0B;AAC1B,uCAAqB;AACrB,iDAA+B;AAC/B,4CAA0B;AAC1B,2CAAyB;AACzB,qDAAmC;AACnC,uCAAqB;AACrB,wCAAsB;AACtB,kDAAgC;AAChC,qDAAmC;AACnC,iDAA+B;AAC/B,4CAA0B;AAC1B,+CAA6B;AAC7B,gDAA8B;AAC9B,mDAAiC;AACjC,+CAA6B;AAC7B,gDAA8B;AAC9B,yCAAuB;AACvB,0CAAwB;AACxB,+CAA6B;AAC7B,kDAAgC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,yCAAuB;AACvB,uDAAqC;AACrC,yCAAuB;AACvB,0CAAwB;AACxB,0CAAwB;AACxB,kDAAgC;AAChC,sDAAoC;AACpC,gDAA8B;AAC9B,+CAA6B;AAC7B,yDAAuC;AACvC,oDAAkC;AAClC,8CAA4B;AAC5B,gDAA8B;AAC9B,6CAA2B;AAC3B,yCAAuB;AACvB,iDAA+B;AAC/B,yCAAuB;AACvB,4CAA0B;AAC1B,uCAAqB;AACrB,iDAA+B;AAC/B,4CAA0B;AAC1B,2CAAyB;AACzB,qDAAmC;AACnC,uCAAqB;AACrB,wCAAsB;AACtB,kDAAgC;AAChC,qDAAmC;AACnC,iDAA+B;AAC/B,4CAA0B;AAC1B,+CAA6B;AAC7B,gDAA8B;AAC9B,mDAAiC;AACjC,+CAA6B;AAC7B,gDAA8B;AAC9B,yCAAuB;AACvB,0CAAwB;AACxB,+CAA6B;AAC7B,kDAAgC;AAChC,0CAAwB"}
|
|
@@ -5,11 +5,11 @@ export declare namespace SeoPageGetIndexPageQuery {
|
|
|
5
5
|
const Response: z.ZodObject<{
|
|
6
6
|
type: z.ZodEnum<typeof import("../../schemas").PageType>;
|
|
7
7
|
uuid: z.ZodString;
|
|
8
|
+
title: z.ZodString;
|
|
9
|
+
description: z.ZodString;
|
|
8
10
|
createdAt: z.ZodString;
|
|
9
11
|
alias: z.ZodString;
|
|
10
|
-
title: z.ZodString;
|
|
11
12
|
updatedAt: z.ZodString;
|
|
12
|
-
description: z.ZodString;
|
|
13
13
|
metaTitle: z.ZodString;
|
|
14
14
|
metaDescription: z.ZodString;
|
|
15
15
|
content: z.ZodString;
|
|
@@ -5,11 +5,11 @@ export declare namespace SeoPageGetPageByAliasQuery {
|
|
|
5
5
|
const Response: z.ZodObject<{
|
|
6
6
|
type: z.ZodEnum<typeof import("../../schemas").PageType>;
|
|
7
7
|
uuid: z.ZodString;
|
|
8
|
+
title: z.ZodString;
|
|
9
|
+
description: z.ZodString;
|
|
8
10
|
createdAt: z.ZodString;
|
|
9
11
|
alias: z.ZodString;
|
|
10
|
-
title: z.ZodString;
|
|
11
12
|
updatedAt: z.ZodString;
|
|
12
|
-
description: z.ZodString;
|
|
13
13
|
metaTitle: z.ZodString;
|
|
14
14
|
metaDescription: z.ZodString;
|
|
15
15
|
content: z.ZodString;
|
|
@@ -39,11 +39,11 @@ export declare const PageListItemSchema: z.ZodObject<{
|
|
|
39
39
|
export declare const PublicPageResponseSchema: z.ZodObject<{
|
|
40
40
|
type: z.ZodEnum<typeof PageType>;
|
|
41
41
|
uuid: z.ZodString;
|
|
42
|
+
title: z.ZodString;
|
|
43
|
+
description: z.ZodString;
|
|
42
44
|
createdAt: z.ZodString;
|
|
43
45
|
alias: z.ZodString;
|
|
44
|
-
title: z.ZodString;
|
|
45
46
|
updatedAt: z.ZodString;
|
|
46
|
-
description: z.ZodString;
|
|
47
47
|
metaTitle: z.ZodString;
|
|
48
48
|
metaDescription: z.ZodString;
|
|
49
49
|
content: z.ZodString;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace AdminCreateTaskDefinitionCommand {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
taskCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
title: z.ZodString;
|
|
7
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
rewardBalanceTypeId: z.ZodString;
|
|
9
|
+
rewardAmount: z.ZodString;
|
|
10
|
+
maxCompletions: z.ZodDefault<z.ZodNumber>;
|
|
11
|
+
type: z.ZodEnum<typeof import("..").TaskType>;
|
|
12
|
+
visibleFor: z.ZodArray<z.ZodEnum<typeof import("../schemas").TaskAudience>>;
|
|
13
|
+
requirements: z.ZodArray<z.ZodEnum<typeof import("../schemas").TaskRequirement>>;
|
|
14
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
15
|
+
status: z.ZodDefault<z.ZodEnum<typeof import("..").TaskDefinitionStatus>>;
|
|
16
|
+
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>>;
|
|
18
|
+
}, z.core.$strict>;
|
|
19
|
+
const Response: z.ZodObject<{
|
|
20
|
+
uuid: z.ZodString;
|
|
21
|
+
taskCode: z.ZodNullable<z.ZodString>;
|
|
22
|
+
title: z.ZodString;
|
|
23
|
+
description: z.ZodNullable<z.ZodString>;
|
|
24
|
+
rewardAmount: z.ZodString;
|
|
25
|
+
maxCompletions: z.ZodNumber;
|
|
26
|
+
type: z.ZodEnum<typeof import("..").TaskType>;
|
|
27
|
+
visibleFor: z.ZodArray<z.ZodEnum<typeof import("../schemas").TaskAudience>>;
|
|
28
|
+
requirements: z.ZodArray<z.ZodEnum<typeof import("../schemas").TaskRequirement>>;
|
|
29
|
+
order: z.ZodNumber;
|
|
30
|
+
status: z.ZodEnum<typeof import("..").TaskDefinitionStatus>;
|
|
31
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
32
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
33
|
+
createdAt: z.ZodString;
|
|
34
|
+
updatedAt: z.ZodString;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
const URL: "/api/v1/admin/tasks";
|
|
37
|
+
const METHOD = HttpMethod.POST;
|
|
38
|
+
type RequestType = z.infer<typeof Request>;
|
|
39
|
+
type ResponseType = z.infer<typeof Response>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminCreateTaskDefinitionCommand = void 0;
|
|
4
|
+
const schemas_1 = require("../schemas");
|
|
5
|
+
const rest_api_1 = require("../../../rest-api");
|
|
6
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
7
|
+
var AdminCreateTaskDefinitionCommand;
|
|
8
|
+
(function (AdminCreateTaskDefinitionCommand) {
|
|
9
|
+
AdminCreateTaskDefinitionCommand.Request = schemas_1.CreateTaskDefinitionRequestSchema;
|
|
10
|
+
AdminCreateTaskDefinitionCommand.Response = schemas_1.AdminTaskDefinitionSchema;
|
|
11
|
+
AdminCreateTaskDefinitionCommand.URL = rest_api_1.REST_API.V1.TASKS_ADMIN.TASKS;
|
|
12
|
+
AdminCreateTaskDefinitionCommand.METHOD = http_method_1.HttpMethod.POST;
|
|
13
|
+
})(AdminCreateTaskDefinitionCommand || (exports.AdminCreateTaskDefinitionCommand = AdminCreateTaskDefinitionCommand = {}));
|
|
14
|
+
//# sourceMappingURL=admin-create-task-definition.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-create-task-definition.command.js","sourceRoot":"","sources":["../../../../v1/tasks/commands/admin-create-task-definition.command.ts"],"names":[],"mappings":";;;AACA,wCAA0F;AAC1F,gDAA6C;AAC7C,6DAAyD;AAEzD,IAAiB,gCAAgC,CAShD;AATD,WAAiB,gCAAgC;IAChC,wCAAO,GAAG,2CAAiC,CAAC;IAC5C,yCAAQ,GAAG,mCAAyB,CAAC;IAErC,oCAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC;IACpC,uCAAM,GAAG,wBAAU,CAAC,IAAI,CAAC;AAI1C,CAAC,EATgB,gCAAgC,gDAAhC,gCAAgC,QAShD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace AdminDeleteTaskDefinitionCommand {
|
|
4
|
+
const Request: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
const Response: z.ZodObject<{}, z.core.$strip>;
|
|
6
|
+
const URL: (id: string) => string;
|
|
7
|
+
const METHOD = HttpMethod.DELETE;
|
|
8
|
+
type RequestType = z.infer<typeof Request>;
|
|
9
|
+
type ResponseType = z.infer<typeof Response>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminDeleteTaskDefinitionCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const rest_api_1 = require("../../../rest-api");
|
|
6
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
7
|
+
var AdminDeleteTaskDefinitionCommand;
|
|
8
|
+
(function (AdminDeleteTaskDefinitionCommand) {
|
|
9
|
+
AdminDeleteTaskDefinitionCommand.Request = zod_1.z.object({});
|
|
10
|
+
AdminDeleteTaskDefinitionCommand.Response = zod_1.z.object({});
|
|
11
|
+
AdminDeleteTaskDefinitionCommand.URL = rest_api_1.REST_API.V1.TASKS_ADMIN.TASK_BY_ID;
|
|
12
|
+
AdminDeleteTaskDefinitionCommand.METHOD = http_method_1.HttpMethod.DELETE;
|
|
13
|
+
})(AdminDeleteTaskDefinitionCommand || (exports.AdminDeleteTaskDefinitionCommand = AdminDeleteTaskDefinitionCommand = {}));
|
|
14
|
+
//# sourceMappingURL=admin-delete-task-definition.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-delete-task-definition.command.js","sourceRoot":"","sources":["../../../../v1/tasks/commands/admin-delete-task-definition.command.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,gDAA6C;AAC7C,6DAAyD;AAEzD,IAAiB,gCAAgC,CAShD;AATD,WAAiB,gCAAgC;IAChC,wCAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,yCAAQ,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAExB,oCAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,WAAW,CAAC,UAAU,CAAC;IACzC,uCAAM,GAAG,wBAAU,CAAC,MAAM,CAAC;AAI5C,CAAC,EATgB,gCAAgC,gDAAhC,gCAAgC,QAShD"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace AdminUpdateTaskDefinitionCommand {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
taskCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
title: z.ZodOptional<z.ZodString>;
|
|
7
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
rewardBalanceTypeId: z.ZodOptional<z.ZodString>;
|
|
9
|
+
rewardAmount: z.ZodOptional<z.ZodString>;
|
|
10
|
+
maxCompletions: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
type: z.ZodOptional<z.ZodEnum<typeof import("..").TaskType>>;
|
|
12
|
+
visibleFor: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("../schemas").TaskAudience>>>;
|
|
13
|
+
requirements: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("../schemas").TaskRequirement>>>;
|
|
14
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
status: z.ZodOptional<z.ZodEnum<typeof import("..").TaskDefinitionStatus>>;
|
|
16
|
+
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>>;
|
|
18
|
+
}, z.core.$strict>;
|
|
19
|
+
const Response: z.ZodObject<{
|
|
20
|
+
uuid: z.ZodString;
|
|
21
|
+
taskCode: z.ZodNullable<z.ZodString>;
|
|
22
|
+
title: z.ZodString;
|
|
23
|
+
description: z.ZodNullable<z.ZodString>;
|
|
24
|
+
rewardAmount: z.ZodString;
|
|
25
|
+
maxCompletions: z.ZodNumber;
|
|
26
|
+
type: z.ZodEnum<typeof import("..").TaskType>;
|
|
27
|
+
visibleFor: z.ZodArray<z.ZodEnum<typeof import("../schemas").TaskAudience>>;
|
|
28
|
+
requirements: z.ZodArray<z.ZodEnum<typeof import("../schemas").TaskRequirement>>;
|
|
29
|
+
order: z.ZodNumber;
|
|
30
|
+
status: z.ZodEnum<typeof import("..").TaskDefinitionStatus>;
|
|
31
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
32
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
33
|
+
createdAt: z.ZodString;
|
|
34
|
+
updatedAt: z.ZodString;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
const URL: (id: string) => string;
|
|
37
|
+
const METHOD = HttpMethod.PATCH;
|
|
38
|
+
type RequestType = z.infer<typeof Request>;
|
|
39
|
+
type ResponseType = z.infer<typeof Response>;
|
|
40
|
+
}
|