@veruna/api-contracts 1.1.19 → 1.1.21
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 +32 -2
- package/build/v1/ai-model/schemas/model-settings.schema.js +4 -1
- package/build/v1/ai-model/schemas/model-settings.schema.js.map +1 -1
- 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/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 +46 -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 +46 -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 +31 -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 +23 -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 +23 -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 +80 -0
- package/build/v1/tasks/schemas/admin-task-definition.schema.js +136 -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 +6 -0
- package/build/v1/tasks/schemas/index.js +23 -0
- package/build/v1/tasks/schemas/index.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-visibility.schema.d.ts +21 -0
- package/build/v1/tasks/schemas/task-visibility.schema.js +27 -0
- package/build/v1/tasks/schemas/task-visibility.schema.js.map +1 -0
- package/build/v1/tasks/schemas/user-task-response.schema.d.ts +28 -0
- package/build/v1/tasks/schemas/user-task-response.schema.js +21 -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 +31 -0
- package/build/v1/tasks/tasks.constants.js +39 -0
- package/build/v1/tasks/tasks.constants.js.map +1 -0
- package/build/v1/tasks/tasks.errors.d.ts +15 -0
- package/build/v1/tasks/tasks.errors.js +64 -0
- package/build/v1/tasks/tasks.errors.js.map +1 -0
- package/build/v1/tool/admin/commands/create-model-tool-binding.command.d.ts +18 -3
- package/build/v1/tool/admin/commands/update-model-tool-binding.command.d.ts +18 -3
- package/build/v1/tool/admin/queries/get-model-tool-bindings.query.d.ts +18 -3
- 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 +100 -41
- package/build/v1/tool/schemas/tool.schema.js +3 -2
- package/build/v1/tool/schemas/tool.schema.js.map +1 -1
- 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
|
@@ -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,46 @@
|
|
|
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
|
+
visibility: z.ZodOptional<z.ZodObject<{
|
|
13
|
+
unregistered: z.ZodEnum<typeof import("../schemas").UnregisteredSegmentAccess>;
|
|
14
|
+
registered: z.ZodEnum<typeof import("../schemas").TaskSegmentAccess>;
|
|
15
|
+
verified: z.ZodEnum<typeof import("../schemas").TaskSegmentAccess>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
status: z.ZodOptional<z.ZodEnum<typeof import("..").TaskDefinitionStatus>>;
|
|
19
|
+
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>>;
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
const Response: z.ZodObject<{
|
|
23
|
+
uuid: z.ZodString;
|
|
24
|
+
taskCode: z.ZodNullable<z.ZodString>;
|
|
25
|
+
title: z.ZodString;
|
|
26
|
+
description: z.ZodNullable<z.ZodString>;
|
|
27
|
+
rewardAmount: z.ZodString;
|
|
28
|
+
maxCompletions: z.ZodNumber;
|
|
29
|
+
type: z.ZodEnum<typeof import("..").TaskType>;
|
|
30
|
+
visibility: z.ZodObject<{
|
|
31
|
+
unregistered: z.ZodEnum<typeof import("../schemas").UnregisteredSegmentAccess>;
|
|
32
|
+
registered: z.ZodEnum<typeof import("../schemas").TaskSegmentAccess>;
|
|
33
|
+
verified: z.ZodEnum<typeof import("../schemas").TaskSegmentAccess>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
order: z.ZodNumber;
|
|
36
|
+
status: z.ZodEnum<typeof import("..").TaskDefinitionStatus>;
|
|
37
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
38
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
39
|
+
createdAt: z.ZodString;
|
|
40
|
+
updatedAt: z.ZodString;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
const URL: (id: string) => string;
|
|
43
|
+
const METHOD = HttpMethod.PATCH;
|
|
44
|
+
type RequestType = z.infer<typeof Request>;
|
|
45
|
+
type ResponseType = z.infer<typeof Response>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminUpdateTaskDefinitionCommand = 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 AdminUpdateTaskDefinitionCommand;
|
|
8
|
+
(function (AdminUpdateTaskDefinitionCommand) {
|
|
9
|
+
AdminUpdateTaskDefinitionCommand.Request = schemas_1.UpdateTaskDefinitionRequestSchema;
|
|
10
|
+
AdminUpdateTaskDefinitionCommand.Response = schemas_1.AdminTaskDefinitionSchema;
|
|
11
|
+
AdminUpdateTaskDefinitionCommand.URL = rest_api_1.REST_API.V1.TASKS_ADMIN.TASK_BY_ID;
|
|
12
|
+
AdminUpdateTaskDefinitionCommand.METHOD = http_method_1.HttpMethod.PATCH;
|
|
13
|
+
})(AdminUpdateTaskDefinitionCommand || (exports.AdminUpdateTaskDefinitionCommand = AdminUpdateTaskDefinitionCommand = {}));
|
|
14
|
+
//# sourceMappingURL=admin-update-task-definition.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-update-task-definition.command.js","sourceRoot":"","sources":["../../../../v1/tasks/commands/admin-update-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,UAAU,CAAC;IACzC,uCAAM,GAAG,wBAAU,CAAC,KAAK,CAAC;AAI3C,CAAC,EATgB,gCAAgC,gDAAhC,gCAAgC,QAShD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace ClaimTaskCommand {
|
|
4
|
+
const Request: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
taskDefinitionId: z.ZodString;
|
|
7
|
+
status: z.ZodEnum<typeof import("..").UserTaskStatus>;
|
|
8
|
+
completionNumber: z.ZodNumber;
|
|
9
|
+
rewardAmount: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
const URL: (taskDefinitionId: string) => string;
|
|
12
|
+
const METHOD = HttpMethod.POST;
|
|
13
|
+
type RequestType = z.infer<typeof Request>;
|
|
14
|
+
type ResponseType = z.infer<typeof Response>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClaimTaskCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../schemas");
|
|
6
|
+
const rest_api_1 = require("../../../rest-api");
|
|
7
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
8
|
+
var ClaimTaskCommand;
|
|
9
|
+
(function (ClaimTaskCommand) {
|
|
10
|
+
ClaimTaskCommand.Request = zod_1.z.object({});
|
|
11
|
+
ClaimTaskCommand.Response = schemas_1.ClaimTaskResponseSchema;
|
|
12
|
+
ClaimTaskCommand.URL = rest_api_1.REST_API.V1.TASKS.CLAIM;
|
|
13
|
+
ClaimTaskCommand.METHOD = http_method_1.HttpMethod.POST;
|
|
14
|
+
})(ClaimTaskCommand || (exports.ClaimTaskCommand = ClaimTaskCommand = {}));
|
|
15
|
+
//# sourceMappingURL=claim-task.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claim-task.command.js","sourceRoot":"","sources":["../../../../v1/tasks/commands/claim-task.command.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAAqD;AACrD,gDAA6C;AAC7C,6DAAyD;AAEzD,IAAiB,gBAAgB,CAShC;AATD,WAAiB,gBAAgB;IAChB,wBAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,yBAAQ,GAAG,iCAAuB,CAAC;IAEnC,oBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;IAC9B,uBAAM,GAAG,wBAAU,CAAC,IAAI,CAAC;AAI1C,CAAC,EATgB,gBAAgB,gCAAhB,gBAAgB,QAShC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./verify-task.command"), exports);
|
|
18
|
+
__exportStar(require("./claim-task.command"), exports);
|
|
19
|
+
__exportStar(require("./admin-create-task-definition.command"), exports);
|
|
20
|
+
__exportStar(require("./admin-update-task-definition.command"), exports);
|
|
21
|
+
__exportStar(require("./admin-delete-task-definition.command"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/tasks/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,uDAAqC;AACrC,yEAAuD;AACvD,yEAAuD;AACvD,yEAAuD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace VerifyTaskCommand {
|
|
4
|
+
const Request: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
taskDefinitionId: z.ZodString;
|
|
7
|
+
status: z.ZodEnum<typeof import("..").UserTaskStatus>;
|
|
8
|
+
completionNumber: z.ZodNumber;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
const URL: (taskDefinitionId: string) => string;
|
|
11
|
+
const METHOD = HttpMethod.POST;
|
|
12
|
+
type RequestType = z.infer<typeof Request>;
|
|
13
|
+
type ResponseType = z.infer<typeof Response>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VerifyTaskCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../schemas");
|
|
6
|
+
const rest_api_1 = require("../../../rest-api");
|
|
7
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
8
|
+
var VerifyTaskCommand;
|
|
9
|
+
(function (VerifyTaskCommand) {
|
|
10
|
+
VerifyTaskCommand.Request = zod_1.z.object({});
|
|
11
|
+
VerifyTaskCommand.Response = schemas_1.VerifyTaskResponseSchema;
|
|
12
|
+
VerifyTaskCommand.URL = rest_api_1.REST_API.V1.TASKS.VERIFY;
|
|
13
|
+
VerifyTaskCommand.METHOD = http_method_1.HttpMethod.POST;
|
|
14
|
+
})(VerifyTaskCommand || (exports.VerifyTaskCommand = VerifyTaskCommand = {}));
|
|
15
|
+
//# sourceMappingURL=verify-task.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verify-task.command.js","sourceRoot":"","sources":["../../../../v1/tasks/commands/verify-task.command.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAAsD;AACtD,gDAA6C;AAC7C,6DAAyD;AAEzD,IAAiB,iBAAiB,CASjC;AATD,WAAiB,iBAAiB;IACjB,yBAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,0BAAQ,GAAG,kCAAwB,CAAC;IAEpC,qBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC;IAC/B,wBAAM,GAAG,wBAAU,CAAC,IAAI,CAAC;AAI1C,CAAC,EATgB,iBAAiB,iCAAjB,iBAAiB,QASjC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './schemas';
|
|
2
|
+
export * from './tasks.constants';
|
|
3
|
+
export * from './tasks.errors';
|
|
4
|
+
export * from './commands';
|
|
5
|
+
export * from './queries';
|
|
6
|
+
export { TASKS_CONTROLLER, TASKS_UNREG_CONTROLLER, TASKS_ADMIN_CONTROLLER, } from '../../controllers';
|
|
7
|
+
export { TASKS_ROUTES, TASKS_UNREG_ROUTES, TASKS_ADMIN_ROUTES, } from '../../routes';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.TASKS_ADMIN_ROUTES = exports.TASKS_UNREG_ROUTES = exports.TASKS_ROUTES = exports.TASKS_ADMIN_CONTROLLER = exports.TASKS_UNREG_CONTROLLER = exports.TASKS_CONTROLLER = void 0;
|
|
18
|
+
__exportStar(require("./schemas"), exports);
|
|
19
|
+
__exportStar(require("./tasks.constants"), exports);
|
|
20
|
+
__exportStar(require("./tasks.errors"), exports);
|
|
21
|
+
__exportStar(require("./commands"), exports);
|
|
22
|
+
__exportStar(require("./queries"), exports);
|
|
23
|
+
var controllers_1 = require("../../controllers");
|
|
24
|
+
Object.defineProperty(exports, "TASKS_CONTROLLER", { enumerable: true, get: function () { return controllers_1.TASKS_CONTROLLER; } });
|
|
25
|
+
Object.defineProperty(exports, "TASKS_UNREG_CONTROLLER", { enumerable: true, get: function () { return controllers_1.TASKS_UNREG_CONTROLLER; } });
|
|
26
|
+
Object.defineProperty(exports, "TASKS_ADMIN_CONTROLLER", { enumerable: true, get: function () { return controllers_1.TASKS_ADMIN_CONTROLLER; } });
|
|
27
|
+
var routes_1 = require("../../routes");
|
|
28
|
+
Object.defineProperty(exports, "TASKS_ROUTES", { enumerable: true, get: function () { return routes_1.TASKS_ROUTES; } });
|
|
29
|
+
Object.defineProperty(exports, "TASKS_UNREG_ROUTES", { enumerable: true, get: function () { return routes_1.TASKS_UNREG_ROUTES; } });
|
|
30
|
+
Object.defineProperty(exports, "TASKS_ADMIN_ROUTES", { enumerable: true, get: function () { return routes_1.TASKS_ADMIN_ROUTES; } });
|
|
31
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/tasks/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,oDAAkC;AAClC,iDAA+B;AAC/B,6CAA2B;AAC3B,4CAA0B;AAC1B,iDAI2B;AAHvB,+GAAA,gBAAgB,OAAA;AAChB,qHAAA,sBAAsB,OAAA;AACtB,qHAAA,sBAAsB,OAAA;AAE1B,uCAIsB;AAHlB,sGAAA,YAAY,OAAA;AACZ,4GAAA,kBAAkB,OAAA;AAClB,4GAAA,kBAAkB,OAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace GetAdminTaskDefinitionsQuery {
|
|
4
|
+
const Request: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
items: z.ZodArray<z.ZodObject<{
|
|
7
|
+
uuid: z.ZodString;
|
|
8
|
+
taskCode: z.ZodNullable<z.ZodString>;
|
|
9
|
+
title: z.ZodString;
|
|
10
|
+
description: z.ZodNullable<z.ZodString>;
|
|
11
|
+
rewardAmount: z.ZodString;
|
|
12
|
+
maxCompletions: z.ZodNumber;
|
|
13
|
+
type: z.ZodEnum<typeof import("..").TaskType>;
|
|
14
|
+
visibility: z.ZodObject<{
|
|
15
|
+
unregistered: z.ZodEnum<typeof import("../schemas").UnregisteredSegmentAccess>;
|
|
16
|
+
registered: z.ZodEnum<typeof import("../schemas").TaskSegmentAccess>;
|
|
17
|
+
verified: z.ZodEnum<typeof import("../schemas").TaskSegmentAccess>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
order: z.ZodNumber;
|
|
20
|
+
status: z.ZodEnum<typeof import("..").TaskDefinitionStatus>;
|
|
21
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
22
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
23
|
+
createdAt: z.ZodString;
|
|
24
|
+
updatedAt: z.ZodString;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
const URL: "/api/v1/admin/tasks";
|
|
28
|
+
const METHOD = HttpMethod.GET;
|
|
29
|
+
type RequestType = z.infer<typeof Request>;
|
|
30
|
+
type ResponseType = z.infer<typeof Response>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAdminTaskDefinitionsQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../schemas");
|
|
6
|
+
const rest_api_1 = require("../../../rest-api");
|
|
7
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
8
|
+
var GetAdminTaskDefinitionsQuery;
|
|
9
|
+
(function (GetAdminTaskDefinitionsQuery) {
|
|
10
|
+
GetAdminTaskDefinitionsQuery.Request = zod_1.z.object({});
|
|
11
|
+
GetAdminTaskDefinitionsQuery.Response = schemas_1.AdminTaskDefinitionListResponseSchema;
|
|
12
|
+
GetAdminTaskDefinitionsQuery.URL = rest_api_1.REST_API.V1.TASKS_ADMIN.TASKS;
|
|
13
|
+
GetAdminTaskDefinitionsQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
14
|
+
})(GetAdminTaskDefinitionsQuery || (exports.GetAdminTaskDefinitionsQuery = GetAdminTaskDefinitionsQuery = {}));
|
|
15
|
+
//# sourceMappingURL=get-admin-task-definitions.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-admin-task-definitions.query.js","sourceRoot":"","sources":["../../../../v1/tasks/queries/get-admin-task-definitions.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAAmE;AACnE,gDAA6C;AAC7C,6DAAyD;AAEzD,IAAiB,4BAA4B,CAS5C;AATD,WAAiB,4BAA4B;IAC5B,oCAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,qCAAQ,GAAG,+CAAqC,CAAC;IAEjD,gCAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC;IACpC,mCAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EATgB,4BAA4B,4CAA5B,4BAA4B,QAS5C"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace GetUnregTasksQuery {
|
|
4
|
+
const Request: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
items: z.ZodArray<z.ZodObject<{
|
|
7
|
+
taskDefinitionId: z.ZodString;
|
|
8
|
+
taskCode: z.ZodNullable<z.ZodString>;
|
|
9
|
+
type: z.ZodEnum<typeof import("..").TaskType>;
|
|
10
|
+
title: z.ZodString;
|
|
11
|
+
description: z.ZodNullable<z.ZodString>;
|
|
12
|
+
rewardAmount: z.ZodString;
|
|
13
|
+
access: z.ZodBoolean;
|
|
14
|
+
status: z.ZodEnum<typeof import("..").UserTaskStatus>;
|
|
15
|
+
currentCompletion: z.ZodNumber;
|
|
16
|
+
maxCompletions: z.ZodNumber;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
const URL: "/api/v1/unreg/tasks";
|
|
20
|
+
const METHOD = HttpMethod.GET;
|
|
21
|
+
type RequestType = z.infer<typeof Request>;
|
|
22
|
+
type ResponseType = z.infer<typeof Response>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetUnregTasksQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../schemas");
|
|
6
|
+
const rest_api_1 = require("../../../rest-api");
|
|
7
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
8
|
+
var GetUnregTasksQuery;
|
|
9
|
+
(function (GetUnregTasksQuery) {
|
|
10
|
+
GetUnregTasksQuery.Request = zod_1.z.object({});
|
|
11
|
+
GetUnregTasksQuery.Response = schemas_1.UserTaskListResponseSchema;
|
|
12
|
+
GetUnregTasksQuery.URL = rest_api_1.REST_API.V1.TASKS.UNREG.LIST;
|
|
13
|
+
GetUnregTasksQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
14
|
+
})(GetUnregTasksQuery || (exports.GetUnregTasksQuery = GetUnregTasksQuery = {}));
|
|
15
|
+
//# sourceMappingURL=get-unreg-tasks.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-unreg-tasks.query.js","sourceRoot":"","sources":["../../../../v1/tasks/queries/get-unreg-tasks.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAAwD;AACxD,gDAA6C;AAC7C,6DAAyD;AAEzD,IAAiB,kBAAkB,CASlC;AATD,WAAiB,kBAAkB;IAClB,0BAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,2BAAQ,GAAG,oCAA0B,CAAC;IAEtC,sBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC;IACnC,yBAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EATgB,kBAAkB,kCAAlB,kBAAkB,QASlC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace GetUserTasksQuery {
|
|
4
|
+
const Request: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
items: z.ZodArray<z.ZodObject<{
|
|
7
|
+
taskDefinitionId: z.ZodString;
|
|
8
|
+
taskCode: z.ZodNullable<z.ZodString>;
|
|
9
|
+
type: z.ZodEnum<typeof import("..").TaskType>;
|
|
10
|
+
title: z.ZodString;
|
|
11
|
+
description: z.ZodNullable<z.ZodString>;
|
|
12
|
+
rewardAmount: z.ZodString;
|
|
13
|
+
access: z.ZodBoolean;
|
|
14
|
+
status: z.ZodEnum<typeof import("..").UserTaskStatus>;
|
|
15
|
+
currentCompletion: z.ZodNumber;
|
|
16
|
+
maxCompletions: z.ZodNumber;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
const URL: "/api/v1/tasks";
|
|
20
|
+
const METHOD = HttpMethod.GET;
|
|
21
|
+
type RequestType = z.infer<typeof Request>;
|
|
22
|
+
type ResponseType = z.infer<typeof Response>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetUserTasksQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../schemas");
|
|
6
|
+
const rest_api_1 = require("../../../rest-api");
|
|
7
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
8
|
+
var GetUserTasksQuery;
|
|
9
|
+
(function (GetUserTasksQuery) {
|
|
10
|
+
GetUserTasksQuery.Request = zod_1.z.object({});
|
|
11
|
+
GetUserTasksQuery.Response = schemas_1.UserTaskListResponseSchema;
|
|
12
|
+
GetUserTasksQuery.URL = rest_api_1.REST_API.V1.TASKS.LIST;
|
|
13
|
+
GetUserTasksQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
14
|
+
})(GetUserTasksQuery || (exports.GetUserTasksQuery = GetUserTasksQuery = {}));
|
|
15
|
+
//# sourceMappingURL=get-user-tasks.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-user-tasks.query.js","sourceRoot":"","sources":["../../../../v1/tasks/queries/get-user-tasks.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAAwD;AACxD,gDAA6C;AAC7C,6DAAyD;AAEzD,IAAiB,iBAAiB,CASjC;AATD,WAAiB,iBAAiB;IACjB,yBAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,0BAAQ,GAAG,oCAA0B,CAAC;IAEtC,qBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC;IAC7B,wBAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EATgB,iBAAiB,iCAAjB,iBAAiB,QASjC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./get-user-tasks.query"), exports);
|
|
18
|
+
__exportStar(require("./get-unreg-tasks.query"), exports);
|
|
19
|
+
__exportStar(require("./get-admin-task-definitions.query"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/tasks/queries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,0DAAwC;AACxC,qEAAmD"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { TaskDefinitionStatus, TaskType } from '../tasks.constants';
|
|
3
|
+
export declare const AdminTaskDefinitionSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodString;
|
|
5
|
+
taskCode: z.ZodNullable<z.ZodString>;
|
|
6
|
+
title: z.ZodString;
|
|
7
|
+
description: z.ZodNullable<z.ZodString>;
|
|
8
|
+
rewardAmount: z.ZodString;
|
|
9
|
+
maxCompletions: z.ZodNumber;
|
|
10
|
+
type: z.ZodEnum<typeof TaskType>;
|
|
11
|
+
visibility: z.ZodObject<{
|
|
12
|
+
unregistered: z.ZodEnum<typeof import("./task-visibility.schema").UnregisteredSegmentAccess>;
|
|
13
|
+
registered: z.ZodEnum<typeof import("./task-visibility.schema").TaskSegmentAccess>;
|
|
14
|
+
verified: z.ZodEnum<typeof import("./task-visibility.schema").TaskSegmentAccess>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
order: z.ZodNumber;
|
|
17
|
+
status: z.ZodEnum<typeof TaskDefinitionStatus>;
|
|
18
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
19
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
20
|
+
createdAt: z.ZodString;
|
|
21
|
+
updatedAt: z.ZodString;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export declare const AdminTaskDefinitionListResponseSchema: z.ZodObject<{
|
|
24
|
+
items: z.ZodArray<z.ZodObject<{
|
|
25
|
+
uuid: z.ZodString;
|
|
26
|
+
taskCode: z.ZodNullable<z.ZodString>;
|
|
27
|
+
title: z.ZodString;
|
|
28
|
+
description: z.ZodNullable<z.ZodString>;
|
|
29
|
+
rewardAmount: z.ZodString;
|
|
30
|
+
maxCompletions: z.ZodNumber;
|
|
31
|
+
type: z.ZodEnum<typeof TaskType>;
|
|
32
|
+
visibility: z.ZodObject<{
|
|
33
|
+
unregistered: z.ZodEnum<typeof import("./task-visibility.schema").UnregisteredSegmentAccess>;
|
|
34
|
+
registered: z.ZodEnum<typeof import("./task-visibility.schema").TaskSegmentAccess>;
|
|
35
|
+
verified: z.ZodEnum<typeof import("./task-visibility.schema").TaskSegmentAccess>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
order: z.ZodNumber;
|
|
38
|
+
status: z.ZodEnum<typeof TaskDefinitionStatus>;
|
|
39
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
40
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
41
|
+
createdAt: z.ZodString;
|
|
42
|
+
updatedAt: z.ZodString;
|
|
43
|
+
}, z.core.$strip>>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
export declare const CreateTaskDefinitionRequestSchema: z.ZodObject<{
|
|
46
|
+
taskCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
title: z.ZodString;
|
|
48
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
rewardBalanceTypeId: z.ZodString;
|
|
50
|
+
rewardAmount: z.ZodString;
|
|
51
|
+
maxCompletions: z.ZodDefault<z.ZodNumber>;
|
|
52
|
+
type: z.ZodEnum<typeof TaskType>;
|
|
53
|
+
visibility: z.ZodObject<{
|
|
54
|
+
unregistered: z.ZodEnum<typeof import("./task-visibility.schema").UnregisteredSegmentAccess>;
|
|
55
|
+
registered: z.ZodEnum<typeof import("./task-visibility.schema").TaskSegmentAccess>;
|
|
56
|
+
verified: z.ZodEnum<typeof import("./task-visibility.schema").TaskSegmentAccess>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
59
|
+
status: z.ZodDefault<z.ZodEnum<typeof TaskDefinitionStatus>>;
|
|
60
|
+
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>>;
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
export declare const UpdateTaskDefinitionRequestSchema: z.ZodObject<{
|
|
64
|
+
taskCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
title: z.ZodOptional<z.ZodString>;
|
|
66
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
rewardBalanceTypeId: z.ZodOptional<z.ZodString>;
|
|
68
|
+
rewardAmount: z.ZodOptional<z.ZodString>;
|
|
69
|
+
maxCompletions: z.ZodOptional<z.ZodNumber>;
|
|
70
|
+
type: z.ZodOptional<z.ZodEnum<typeof TaskType>>;
|
|
71
|
+
visibility: z.ZodOptional<z.ZodObject<{
|
|
72
|
+
unregistered: z.ZodEnum<typeof import("./task-visibility.schema").UnregisteredSegmentAccess>;
|
|
73
|
+
registered: z.ZodEnum<typeof import("./task-visibility.schema").TaskSegmentAccess>;
|
|
74
|
+
verified: z.ZodEnum<typeof import("./task-visibility.schema").TaskSegmentAccess>;
|
|
75
|
+
}, z.core.$strip>>;
|
|
76
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
status: z.ZodOptional<z.ZodEnum<typeof TaskDefinitionStatus>>;
|
|
78
|
+
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>>;
|
|
80
|
+
}, z.core.$strict>;
|