@purpleschool/gptbot 0.19.18-stage-2 → 0.19.18-stage-2-apple
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/api/controllers/http/payment.d.ts +0 -1
- package/build/api/controllers/http/payment.js +0 -1
- package/build/api/controllers/http/subscription.d.ts +0 -1
- package/build/api/controllers/http/subscription.js +0 -1
- package/build/api/partner-code-routes.d.ts +0 -31
- package/build/api/partner-code-routes.js +1 -33
- package/build/api/routes.d.ts +0 -6
- package/build/api/routes.js +0 -7
- package/build/commands/agents/agent-dialog/find-agent-dialogs.command.d.ts +0 -1
- package/build/commands/agents/agent-dialog/get-agent-dialog-by-id.command.d.ts +0 -1
- package/build/commands/agents/agent-dialog/rename-agent-dialog.command.d.ts +0 -1
- package/build/commands/agents/agent-dialog/update-agent-dialog-status.command.d.ts +0 -1
- package/build/commands/agents/agent-lead/create-agent-lead.command.d.ts +0 -1
- package/build/commands/agents/agent-lead/find-agent-leads.command.d.ts +0 -1
- package/build/commands/agents/agent-lead/get-agent-lead-by-id.command.d.ts +0 -1
- package/build/commands/agents/agent-lead/update-agent-lead.command.d.ts +0 -1
- package/build/commands/agents/agent-lead-form/upsert-agent-lead-form.command.js +1 -4
- package/build/commands/agents/agents/activate-agent.command.d.ts +0 -1
- package/build/commands/agents/agents/create-agent.command.d.ts +0 -2
- package/build/commands/agents/agents/create-agent.command.js +0 -1
- package/build/commands/agents/agents/find-agents.command.d.ts +0 -1
- package/build/commands/agents/agents/get-agent-aggregate.command.d.ts +0 -1
- package/build/commands/agents/agents/get-agent-by-id.command.d.ts +0 -1
- package/build/commands/agents/agents/stop-agent.command.d.ts +0 -1
- package/build/commands/agents/agents/update-agent.command.d.ts +0 -2
- package/build/commands/agents/agents/update-agent.command.js +0 -1
- package/build/commands/auth/register-user.command.d.ts +0 -1
- package/build/commands/auth/register-user.command.js +0 -2
- package/build/commands/auth/vk-login.command.d.ts +0 -1
- package/build/commands/auth/vk-login.command.js +0 -2
- package/build/commands/auth/yandex-login.command.d.ts +0 -1
- package/build/commands/auth/yandex-login.command.js +0 -2
- package/build/commands/partner-codes/index.d.ts +3 -50
- package/build/commands/partner-codes/index.js +3 -28
- package/build/commands/payment/index.d.ts +0 -1
- package/build/commands/payment/index.js +0 -1
- package/build/commands/subscription/downgrade-subscription.command.d.ts +5 -28
- package/build/commands/subscription/downgrade-subscription.command.js +9 -32
- package/build/commands/subscription/get-subscriptions-summary.command.d.ts +0 -32
- package/build/commands/subscription/get-subscriptions-summary.command.js +0 -2
- package/build/commands/subscription/index.d.ts +0 -1
- package/build/commands/subscription/index.js +0 -1
- package/build/commands/user/get-me.command.d.ts +0 -3
- package/build/commands/user/get-me.command.js +0 -1
- package/build/helpers/image-generation/calculate-gpt-image-2-price-with-margin.helper.d.ts +62 -0
- package/build/helpers/image-generation/calculate-gpt-image-2-price-with-margin.helper.js +137 -0
- package/build/models/agents/agent-aggregate.schema.d.ts +0 -1
- package/build/models/agents/agent-dialog-lead.schema.d.ts +0 -1
- package/build/models/agents/agent-dialog-lead.schema.js +0 -1
- package/build/models/agents/agent-lead-find-result.schema.d.ts +0 -1
- package/build/models/agents/agent-lead-form-field.schema.js +3 -8
- package/build/models/agents/agent-lead.schema.d.ts +0 -1
- package/build/models/agents/agent-lead.schema.js +0 -1
- package/build/models/agents/agent.schema.d.ts +0 -1
- package/build/models/agents/agent.schema.js +0 -1
- package/build/models/agents/dialog-find-result.schema.d.ts +0 -1
- package/build/models/agents/dialog-with-messages.schema.d.ts +0 -1
- package/build/models/agents/dialog.schema.d.ts +0 -1
- package/build/models/index.d.ts +0 -1
- package/build/models/index.js +0 -1
- package/build/models/partner-codes/index.d.ts +0 -4
- package/build/models/partner-codes/index.js +0 -4
- package/build/models/partner-codes/partner-codes.schema.d.ts +2 -78
- package/build/models/partner-codes/partner-codes.schema.js +5 -73
- package/package.json +1 -1
- package/build/commands/partner-codes/administration.d.ts +0 -650
- package/build/commands/partner-codes/administration.js +0 -138
- package/build/commands/payment/get-purchase-history.command.d.ts +0 -90
- package/build/commands/payment/get-purchase-history.command.js +0 -22
- package/build/commands/subscription/payment-incident-diagnostics.d.ts +0 -445
- package/build/commands/subscription/payment-incident-diagnostics.js +0 -173
- package/build/models/partner-codes/partner-administration.schema.d.ts +0 -183
- package/build/models/partner-codes/partner-administration.schema.js +0 -72
- package/build/models/partner-codes/partner-cabinet-context.schema.d.ts +0 -24
- package/build/models/partner-codes/partner-cabinet-context.schema.js +0 -8
- package/build/models/partner-codes/partner-cabinet.schema.d.ts +0 -362
- package/build/models/partner-codes/partner-cabinet.schema.js +0 -84
- package/build/models/partner-codes/partner-leak-create.schema.d.ts +0 -6
- package/build/models/partner-codes/partner-leak-create.schema.js +0 -8
- package/build/models/partner-registration-context.schema.d.ts +0 -3
- package/build/models/partner-registration-context.schema.js +0 -6
- package/build/models/purchase-history.schema.d.ts +0 -112
- package/build/models/purchase-history.schema.js +0 -38
|
@@ -13,7 +13,6 @@ export declare const SUBSCRIPTION_ROUTES: {
|
|
|
13
13
|
readonly GET_AVAILABLE_DOWNGRADES: 'available-downgrades';
|
|
14
14
|
readonly UPGRADE: 'upgrade';
|
|
15
15
|
readonly DOWNGRADE: 'downgrade';
|
|
16
|
-
readonly DOWNGRADE_STATUS: (operationId: string) => string;
|
|
17
16
|
readonly FREE: 'free';
|
|
18
17
|
readonly SUMMARY: 'summary';
|
|
19
18
|
readonly RECOVER_PAST_DUE: (uuid: string) => string;
|
|
@@ -16,7 +16,6 @@ exports.SUBSCRIPTION_ROUTES = {
|
|
|
16
16
|
GET_AVAILABLE_DOWNGRADES: 'available-downgrades',
|
|
17
17
|
UPGRADE: 'upgrade',
|
|
18
18
|
DOWNGRADE: 'downgrade',
|
|
19
|
-
DOWNGRADE_STATUS: (operationId) => `downgrade-operations/${operationId}`,
|
|
20
19
|
FREE: 'free',
|
|
21
20
|
SUMMARY: 'summary',
|
|
22
21
|
RECOVER_PAST_DUE: (uuid) => `${uuid}/recover-past-due`,
|
|
@@ -1,50 +1,19 @@
|
|
|
1
1
|
export declare const PARTNER_CODE_CONTROLLER: 'private/partner-codes';
|
|
2
2
|
export declare const PARTNER_CODE_PUBLIC_CONTROLLER: 'public/activation-codes';
|
|
3
3
|
export declare const PARTNER_CODE_ADMIN_CONTROLLER: 'private/admin/partner-codes';
|
|
4
|
-
export declare const PARTNER_CODE_ADMIN_ROUTES: {
|
|
5
|
-
readonly CATALOG: 'catalog';
|
|
6
|
-
readonly COMPANIES: 'companies';
|
|
7
|
-
readonly COMPANY: (partnerId: string) => string;
|
|
8
|
-
readonly DISABLE: (partnerId: string) => string;
|
|
9
|
-
readonly ENABLE: (partnerId: string) => string;
|
|
10
|
-
readonly MEMBERSHIPS: (partnerId: string) => string;
|
|
11
|
-
readonly MEMBERSHIP: (partnerId: string, userId: string) => string;
|
|
12
|
-
readonly OFFERS: (partnerId: string) => string;
|
|
13
|
-
readonly OFFER: (partnerId: string, offerId: string) => string;
|
|
14
|
-
readonly BATCHES: (partnerId: string) => string;
|
|
15
|
-
readonly BATCH: (partnerId: string, batchId: string) => string;
|
|
16
|
-
readonly CODES: (partnerId: string, batchId: string) => string;
|
|
17
|
-
readonly EXPORT: (partnerId: string, batchId: string) => string;
|
|
18
|
-
readonly EXPORTS: (partnerId: string, batchId: string) => string;
|
|
19
|
-
readonly REVOKE_BATCH: (partnerId: string, batchId: string) => string;
|
|
20
|
-
readonly REVOKE_CODE: (partnerId: string, codeId: string) => string;
|
|
21
|
-
readonly SEARCH: 'codes/search';
|
|
22
|
-
readonly REPORT: (partnerId: string) => string;
|
|
23
|
-
readonly REPORT_CSV: (partnerId: string) => string;
|
|
24
|
-
readonly REPORT_PERIODS: (partnerId: string) => string;
|
|
25
|
-
readonly CLOSE: 'periods/close';
|
|
26
|
-
readonly LEAKS: 'leaks';
|
|
27
|
-
};
|
|
28
4
|
export declare const PARTNER_CODE_ROUTES: {
|
|
29
|
-
readonly ME: 'me';
|
|
30
5
|
readonly OFFERS: 'offers';
|
|
31
6
|
readonly BATCHES: 'batches';
|
|
32
7
|
readonly BATCH: (uuid: string) => string;
|
|
33
8
|
readonly CODES: (uuid: string) => string;
|
|
34
9
|
readonly EXPORT: (uuid: string) => string;
|
|
35
|
-
readonly EXPORTS: (uuid: string) => string;
|
|
36
10
|
readonly EXPORT_CHALLENGE: 'exports/challenge';
|
|
37
11
|
readonly EXPORT_VERIFY: 'exports/verify';
|
|
38
12
|
readonly REPORT: 'report';
|
|
39
13
|
readonly REPORT_CSV: 'report/csv';
|
|
40
|
-
readonly REPORT_PERIODS: 'report/periods';
|
|
41
14
|
readonly INVITES: 'invites';
|
|
42
|
-
readonly MEMBERS: 'members';
|
|
43
|
-
readonly MEMBER: (uuid: string) => string;
|
|
44
|
-
readonly INVITE_READ: 'invites/read';
|
|
45
15
|
readonly INVITE_ACCEPT: 'invites/accept';
|
|
46
16
|
readonly INVITE_REVOKE: 'invites/revoke';
|
|
47
|
-
readonly INVITE_RESEND: 'invites/resend';
|
|
48
17
|
readonly LEAKS: 'leaks';
|
|
49
18
|
readonly CHECK: 'check';
|
|
50
19
|
readonly ACTIVATE: 'activate';
|
|
@@ -1,55 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PARTNER_CODE_ROUTES = exports.
|
|
3
|
+
exports.PARTNER_CODE_ROUTES = exports.PARTNER_CODE_ADMIN_CONTROLLER = exports.PARTNER_CODE_PUBLIC_CONTROLLER = exports.PARTNER_CODE_CONTROLLER = void 0;
|
|
4
4
|
// Declarations for the audience owners only. Core registers no HTTP controllers/endpoints.
|
|
5
5
|
exports.PARTNER_CODE_CONTROLLER = 'private/partner-codes';
|
|
6
6
|
exports.PARTNER_CODE_PUBLIC_CONTROLLER = 'public/activation-codes';
|
|
7
7
|
exports.PARTNER_CODE_ADMIN_CONTROLLER = 'private/admin/partner-codes';
|
|
8
|
-
// ADMIN role and current core authorization; no partner OTP or checkout for issue/export.
|
|
9
|
-
exports.PARTNER_CODE_ADMIN_ROUTES = {
|
|
10
|
-
CATALOG: 'catalog',
|
|
11
|
-
COMPANIES: 'companies',
|
|
12
|
-
COMPANY: (partnerId) => `companies/${partnerId}`,
|
|
13
|
-
DISABLE: (partnerId) => `companies/${partnerId}/disable`,
|
|
14
|
-
ENABLE: (partnerId) => `companies/${partnerId}/enable`,
|
|
15
|
-
MEMBERSHIPS: (partnerId) => `companies/${partnerId}/memberships`,
|
|
16
|
-
MEMBERSHIP: (partnerId, userId) => `companies/${partnerId}/memberships/${userId}`,
|
|
17
|
-
OFFERS: (partnerId) => `companies/${partnerId}/offers`,
|
|
18
|
-
OFFER: (partnerId, offerId) => `companies/${partnerId}/offers/${offerId}`,
|
|
19
|
-
BATCHES: (partnerId) => `companies/${partnerId}/batches`,
|
|
20
|
-
BATCH: (partnerId, batchId) => `companies/${partnerId}/batches/${batchId}`,
|
|
21
|
-
CODES: (partnerId, batchId) => `companies/${partnerId}/batches/${batchId}/codes`,
|
|
22
|
-
EXPORT: (partnerId, batchId) => `companies/${partnerId}/batches/${batchId}/export`,
|
|
23
|
-
EXPORTS: (partnerId, batchId) => `companies/${partnerId}/batches/${batchId}/exports`,
|
|
24
|
-
REVOKE_BATCH: (partnerId, batchId) => `companies/${partnerId}/batches/${batchId}/revoke`,
|
|
25
|
-
REVOKE_CODE: (partnerId, codeId) => `companies/${partnerId}/codes/${codeId}/revoke`,
|
|
26
|
-
SEARCH: 'codes/search',
|
|
27
|
-
REPORT: (partnerId) => `companies/${partnerId}/report`,
|
|
28
|
-
REPORT_CSV: (partnerId) => `companies/${partnerId}/report/csv`,
|
|
29
|
-
REPORT_PERIODS: (partnerId) => `companies/${partnerId}/report/periods`,
|
|
30
|
-
CLOSE: 'periods/close',
|
|
31
|
-
LEAKS: 'leaks',
|
|
32
|
-
};
|
|
33
8
|
exports.PARTNER_CODE_ROUTES = {
|
|
34
|
-
ME: 'me',
|
|
35
9
|
OFFERS: 'offers',
|
|
36
10
|
BATCHES: 'batches',
|
|
37
11
|
BATCH: (uuid) => `batches/${uuid}`,
|
|
38
12
|
CODES: (uuid) => `batches/${uuid}/codes`,
|
|
39
13
|
EXPORT: (uuid) => `batches/${uuid}/export`,
|
|
40
|
-
EXPORTS: (uuid) => `batches/${uuid}/exports`,
|
|
41
14
|
EXPORT_CHALLENGE: 'exports/challenge',
|
|
42
15
|
EXPORT_VERIFY: 'exports/verify',
|
|
43
16
|
REPORT: 'report',
|
|
44
17
|
REPORT_CSV: 'report/csv',
|
|
45
|
-
REPORT_PERIODS: 'report/periods',
|
|
46
18
|
INVITES: 'invites',
|
|
47
|
-
MEMBERS: 'members',
|
|
48
|
-
MEMBER: (uuid) => `members/${uuid}`,
|
|
49
|
-
INVITE_READ: 'invites/read',
|
|
50
19
|
INVITE_ACCEPT: 'invites/accept',
|
|
51
20
|
INVITE_REVOKE: 'invites/revoke',
|
|
52
|
-
INVITE_RESEND: 'invites/resend',
|
|
53
21
|
LEAKS: 'leaks',
|
|
54
22
|
CHECK: 'check',
|
|
55
23
|
ACTIVATE: 'activate',
|
package/build/api/routes.d.ts
CHANGED
|
@@ -4,10 +4,6 @@ export declare const REST_API: {
|
|
|
4
4
|
readonly GET: "/api/private/onboarding";
|
|
5
5
|
readonly ACK: "/api/private/onboarding/notifications/ack";
|
|
6
6
|
};
|
|
7
|
-
readonly ACTIVATION_CODES: {
|
|
8
|
-
readonly CHECK: "/api/public/activation-codes/check";
|
|
9
|
-
readonly ACTIVATE: "/api/public/activation-codes/activate";
|
|
10
|
-
};
|
|
11
7
|
readonly APP_LOGIN: {
|
|
12
8
|
readonly CODE: "/api/app-login/code";
|
|
13
9
|
readonly REDEEM: "/api/app-login/redeem";
|
|
@@ -290,7 +286,6 @@ export declare const REST_API: {
|
|
|
290
286
|
readonly CREATE: "/api/subscription/private";
|
|
291
287
|
readonly UPGRADE: (uuid: string) => string;
|
|
292
288
|
readonly DOWNGRADE: (uuid: string) => string;
|
|
293
|
-
readonly DOWNGRADE_STATUS: (operationId: string) => string;
|
|
294
289
|
readonly GET_AVAILABLE_UPGRADES: "/api/subscription/private/available-upgrades";
|
|
295
290
|
readonly GET_AVAILABLE_DOWNGRADES: "/api/subscription/private/available-downgrades";
|
|
296
291
|
readonly SUMMARY: "/api/subscription/private/summary";
|
|
@@ -984,7 +979,6 @@ export declare const REST_API: {
|
|
|
984
979
|
};
|
|
985
980
|
readonly PAYMENT: {
|
|
986
981
|
readonly HISTORY: "/api/payment/history";
|
|
987
|
-
readonly PURCHASE_HISTORY: "/api/payment/purchase-history";
|
|
988
982
|
readonly REFUND: "/api/payment/refund";
|
|
989
983
|
readonly FIND_BY_CRITERIA: "/api/payment/criteria";
|
|
990
984
|
};
|
package/build/api/routes.js
CHANGED
|
@@ -36,17 +36,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.REST_API = exports.ROOT = void 0;
|
|
37
37
|
const constants_1 = require("../constants");
|
|
38
38
|
const CONTROLLERS = __importStar(require("./controllers"));
|
|
39
|
-
const partner_code_routes_1 = require("./partner-code-routes");
|
|
40
39
|
exports.ROOT = '/api';
|
|
41
40
|
exports.REST_API = {
|
|
42
41
|
ONBOARDING_PRIVATE: {
|
|
43
42
|
GET: `${exports.ROOT}/${CONTROLLERS.ONBOARDING_PRIVATE_CONTROLLER}`,
|
|
44
43
|
ACK: `${exports.ROOT}/${CONTROLLERS.ONBOARDING_PRIVATE_CONTROLLER}/${CONTROLLERS.ONBOARDING_ROUTES.ACK}`,
|
|
45
44
|
},
|
|
46
|
-
ACTIVATION_CODES: {
|
|
47
|
-
CHECK: `${exports.ROOT}/${partner_code_routes_1.PARTNER_CODE_PUBLIC_CONTROLLER}/${partner_code_routes_1.PARTNER_CODE_ROUTES.CHECK}`,
|
|
48
|
-
ACTIVATE: `${exports.ROOT}/${partner_code_routes_1.PARTNER_CODE_PUBLIC_CONTROLLER}/${partner_code_routes_1.PARTNER_CODE_ROUTES.ACTIVATE}`,
|
|
49
|
-
},
|
|
50
45
|
APP_LOGIN: {
|
|
51
46
|
CODE: `${exports.ROOT}/${CONTROLLERS.APP_LOGIN_CONTROLLER}/${CONTROLLERS.APP_LOGIN_ROUTES.CODE}`,
|
|
52
47
|
REDEEM: `${exports.ROOT}/${CONTROLLERS.APP_LOGIN_CONTROLLER}/${CONTROLLERS.APP_LOGIN_ROUTES.REDEEM}`,
|
|
@@ -329,7 +324,6 @@ exports.REST_API = {
|
|
|
329
324
|
CREATE: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}`,
|
|
330
325
|
UPGRADE: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${uuid}/${CONTROLLERS.SUBSCRIPTION_ROUTES.UPGRADE}`,
|
|
331
326
|
DOWNGRADE: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${uuid}/${CONTROLLERS.SUBSCRIPTION_ROUTES.DOWNGRADE}`,
|
|
332
|
-
DOWNGRADE_STATUS: (operationId) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.DOWNGRADE_STATUS(operationId)}`,
|
|
333
327
|
GET_AVAILABLE_UPGRADES: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET_AVAILABLE_UPGRADES}`,
|
|
334
328
|
GET_AVAILABLE_DOWNGRADES: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET_AVAILABLE_DOWNGRADES}`,
|
|
335
329
|
SUMMARY: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.SUMMARY}`,
|
|
@@ -1023,7 +1017,6 @@ exports.REST_API = {
|
|
|
1023
1017
|
},
|
|
1024
1018
|
PAYMENT: {
|
|
1025
1019
|
HISTORY: `${exports.ROOT}/${CONTROLLERS.PAYMENT_CONTROLLER}/${CONTROLLERS.PAYMENT_ROUTES.HISTORY}`,
|
|
1026
|
-
PURCHASE_HISTORY: `${exports.ROOT}/${CONTROLLERS.PAYMENT_CONTROLLER}/${CONTROLLERS.PAYMENT_ROUTES.PURCHASE_HISTORY}`,
|
|
1027
1020
|
REFUND: `${exports.ROOT}/${CONTROLLERS.PAYMENT_CONTROLLER}/${CONTROLLERS.PAYMENT_ROUTES.REFUND}`,
|
|
1028
1021
|
FIND_BY_CRITERIA: `${exports.ROOT}/${CONTROLLERS.PAYMENT_CONTROLLER}/${CONTROLLERS.PAYMENT_ROUTES.FIND_BY_CRITERIA}`,
|
|
1029
1022
|
},
|
|
@@ -45,7 +45,6 @@ export declare namespace FindAgentDialogsCommand {
|
|
|
45
45
|
dialogId: z.ZodUUID;
|
|
46
46
|
leadFormId: z.ZodUUID;
|
|
47
47
|
data: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
48
|
-
fieldLabels: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
49
48
|
isDeleted: z.ZodBoolean;
|
|
50
49
|
createdAt: z.ZodDate;
|
|
51
50
|
updatedAt: z.ZodDate;
|
|
@@ -36,7 +36,6 @@ export declare namespace GetAgentDialogByIdCommand {
|
|
|
36
36
|
dialogId: z.ZodUUID;
|
|
37
37
|
leadFormId: z.ZodUUID;
|
|
38
38
|
data: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
39
|
-
fieldLabels: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
40
39
|
isDeleted: z.ZodBoolean;
|
|
41
40
|
createdAt: z.ZodDate;
|
|
42
41
|
updatedAt: z.ZodDate;
|
|
@@ -38,7 +38,6 @@ export declare namespace RenameAgentDialogCommand {
|
|
|
38
38
|
dialogId: z.ZodUUID;
|
|
39
39
|
leadFormId: z.ZodUUID;
|
|
40
40
|
data: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
41
|
-
fieldLabels: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
42
41
|
isDeleted: z.ZodBoolean;
|
|
43
42
|
createdAt: z.ZodDate;
|
|
44
43
|
updatedAt: z.ZodDate;
|
|
@@ -41,7 +41,6 @@ export declare namespace UpdateAgentDialogStatusCommand {
|
|
|
41
41
|
dialogId: z.ZodUUID;
|
|
42
42
|
leadFormId: z.ZodUUID;
|
|
43
43
|
data: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
44
|
-
fieldLabels: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
45
44
|
isDeleted: z.ZodBoolean;
|
|
46
45
|
createdAt: z.ZodDate;
|
|
47
46
|
updatedAt: z.ZodDate;
|
|
@@ -12,7 +12,6 @@ export declare namespace CreateAgentLeadCommand {
|
|
|
12
12
|
dialogId: z.ZodUUID;
|
|
13
13
|
leadFormId: z.ZodUUID;
|
|
14
14
|
data: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
15
|
-
fieldLabels: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
16
15
|
isDeleted: z.ZodBoolean;
|
|
17
16
|
createdAt: z.ZodDate;
|
|
18
17
|
updatedAt: z.ZodDate;
|
|
@@ -10,7 +10,6 @@ export declare namespace FindAgentLeadsCommand {
|
|
|
10
10
|
dialogId: z.ZodUUID;
|
|
11
11
|
leadFormId: z.ZodUUID;
|
|
12
12
|
data: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
13
|
-
fieldLabels: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
14
13
|
isDeleted: z.ZodBoolean;
|
|
15
14
|
createdAt: z.ZodDate;
|
|
16
15
|
updatedAt: z.ZodDate;
|
|
@@ -10,7 +10,6 @@ export declare namespace GetAgentLeadByIdCommand {
|
|
|
10
10
|
dialogId: z.ZodUUID;
|
|
11
11
|
leadFormId: z.ZodUUID;
|
|
12
12
|
data: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
13
|
-
fieldLabels: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
14
13
|
isDeleted: z.ZodBoolean;
|
|
15
14
|
createdAt: z.ZodDate;
|
|
16
15
|
updatedAt: z.ZodDate;
|
|
@@ -16,7 +16,6 @@ export declare namespace UpdateAgentLeadCommand {
|
|
|
16
16
|
dialogId: z.ZodUUID;
|
|
17
17
|
leadFormId: z.ZodUUID;
|
|
18
18
|
data: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
19
|
-
fieldLabels: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
20
19
|
isDeleted: z.ZodBoolean;
|
|
21
20
|
createdAt: z.ZodDate;
|
|
22
21
|
updatedAt: z.ZodDate;
|
|
@@ -10,10 +10,7 @@ var UpsertAgentLeadFormCommand;
|
|
|
10
10
|
agentId: zod_1.z.uuid(),
|
|
11
11
|
});
|
|
12
12
|
UpsertAgentLeadFormCommand.RequestBodySchema = zod_1.z.object({
|
|
13
|
-
fields: zod_1.z
|
|
14
|
-
.array(agent_lead_form_field_schema_1.AgentLeadFormFieldSchema)
|
|
15
|
-
.max(24)
|
|
16
|
-
.refine((fields) => new Set(fields.map((field) => field.key)).size === fields.length, 'Ключи полей должны быть уникальны'),
|
|
13
|
+
fields: zod_1.z.array(agent_lead_form_field_schema_1.AgentLeadFormFieldSchema),
|
|
17
14
|
collectionTrigger: zod_1.z.string().nullable(),
|
|
18
15
|
});
|
|
19
16
|
UpsertAgentLeadFormCommand.ResponseSchema = zod_1.z.object({
|
|
@@ -23,7 +23,6 @@ export declare namespace ActivateAgentCommand {
|
|
|
23
23
|
}, z.core.$strip>;
|
|
24
24
|
avatar: z.ZodNullable<z.ZodString>;
|
|
25
25
|
greetingPhrase: z.ZodNullable<z.ZodString>;
|
|
26
|
-
transferPhrase: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
27
26
|
instructions: z.ZodNullable<z.ZodString>;
|
|
28
27
|
aiModelId: z.ZodUUID;
|
|
29
28
|
status: z.ZodEnum<typeof import("../../..").AGENT_STATUS>;
|
|
@@ -6,7 +6,6 @@ export declare namespace CreateAgentCommand {
|
|
|
6
6
|
aiModelId: z.ZodUUID;
|
|
7
7
|
avatarFileId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
8
8
|
greetingPhrase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
-
transferPhrase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
9
|
}, z.core.$strip>;
|
|
11
10
|
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
12
11
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -28,7 +27,6 @@ export declare namespace CreateAgentCommand {
|
|
|
28
27
|
}, z.core.$strip>;
|
|
29
28
|
avatar: z.ZodNullable<z.ZodString>;
|
|
30
29
|
greetingPhrase: z.ZodNullable<z.ZodString>;
|
|
31
|
-
transferPhrase: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
32
30
|
instructions: z.ZodNullable<z.ZodString>;
|
|
33
31
|
aiModelId: z.ZodUUID;
|
|
34
32
|
status: z.ZodEnum<typeof import("../../..").AGENT_STATUS>;
|
|
@@ -11,7 +11,6 @@ var CreateAgentCommand;
|
|
|
11
11
|
aiModelId: zod_1.z.uuid(),
|
|
12
12
|
avatarFileId: zod_1.z.uuid().nullable().optional(),
|
|
13
13
|
greetingPhrase: zod_1.z.string().nullable().optional(),
|
|
14
|
-
transferPhrase: zod_1.z.string().trim().max(2000).nullable().optional(),
|
|
15
14
|
});
|
|
16
15
|
CreateAgentCommand.ResponseSchema = zod_1.z.object({
|
|
17
16
|
data: agent_schema_1.AgentSchema,
|
|
@@ -27,7 +27,6 @@ export declare namespace FindAgentsCommand {
|
|
|
27
27
|
}, z.core.$strip>;
|
|
28
28
|
avatar: z.ZodNullable<z.ZodString>;
|
|
29
29
|
greetingPhrase: z.ZodNullable<z.ZodString>;
|
|
30
|
-
transferPhrase: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
31
30
|
instructions: z.ZodNullable<z.ZodString>;
|
|
32
31
|
aiModelId: z.ZodUUID;
|
|
33
32
|
status: z.ZodEnum<typeof import("../../..").AGENT_STATUS>;
|
|
@@ -32,7 +32,6 @@ export declare namespace GetAgentAggregateCommand {
|
|
|
32
32
|
}, z.core.$strip>;
|
|
33
33
|
avatar: z.ZodNullable<z.ZodString>;
|
|
34
34
|
greetingPhrase: z.ZodNullable<z.ZodString>;
|
|
35
|
-
transferPhrase: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
36
35
|
instructions: z.ZodNullable<z.ZodString>;
|
|
37
36
|
aiModelId: z.ZodUUID;
|
|
38
37
|
status: z.ZodEnum<typeof import("../../..").AGENT_STATUS>;
|
|
@@ -23,7 +23,6 @@ export declare namespace GetAgentByIdCommand {
|
|
|
23
23
|
}, z.core.$strip>;
|
|
24
24
|
avatar: z.ZodNullable<z.ZodString>;
|
|
25
25
|
greetingPhrase: z.ZodNullable<z.ZodString>;
|
|
26
|
-
transferPhrase: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
27
26
|
instructions: z.ZodNullable<z.ZodString>;
|
|
28
27
|
aiModelId: z.ZodUUID;
|
|
29
28
|
status: z.ZodEnum<typeof import("../../..").AGENT_STATUS>;
|
|
@@ -23,7 +23,6 @@ export declare namespace StopAgentCommand {
|
|
|
23
23
|
}, z.core.$strip>;
|
|
24
24
|
avatar: z.ZodNullable<z.ZodString>;
|
|
25
25
|
greetingPhrase: z.ZodNullable<z.ZodString>;
|
|
26
|
-
transferPhrase: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
27
26
|
instructions: z.ZodNullable<z.ZodString>;
|
|
28
27
|
aiModelId: z.ZodUUID;
|
|
29
28
|
status: z.ZodEnum<typeof import("../../..").AGENT_STATUS>;
|
|
@@ -22,7 +22,6 @@ export declare namespace UpdateAgentCommand {
|
|
|
22
22
|
}, z.core.$strip>>;
|
|
23
23
|
avatarFileId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
24
24
|
greetingPhrase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
-
transferPhrase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
25
|
instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
26
|
aiModelId: z.ZodOptional<z.ZodUUID>;
|
|
28
27
|
isHumanHelp: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -50,7 +49,6 @@ export declare namespace UpdateAgentCommand {
|
|
|
50
49
|
}, z.core.$strip>;
|
|
51
50
|
avatar: z.ZodNullable<z.ZodString>;
|
|
52
51
|
greetingPhrase: z.ZodNullable<z.ZodString>;
|
|
53
|
-
transferPhrase: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
54
52
|
instructions: z.ZodNullable<z.ZodString>;
|
|
55
53
|
aiModelId: z.ZodUUID;
|
|
56
54
|
status: z.ZodEnum<typeof AGENT_STATUS>;
|
|
@@ -18,7 +18,6 @@ var UpdateAgentCommand;
|
|
|
18
18
|
icons: icon_variants_schema_1.IconVariantsSchema.optional(),
|
|
19
19
|
avatarFileId: zod_1.z.uuid().nullable().optional(),
|
|
20
20
|
greetingPhrase: zod_1.z.string().nullable().optional(),
|
|
21
|
-
transferPhrase: zod_1.z.string().trim().max(2000).nullable().optional(),
|
|
22
21
|
instructions: zod_1.z.string().nullable().optional(),
|
|
23
22
|
aiModelId: zod_1.z.uuid().optional(),
|
|
24
23
|
isHumanHelp: zod_1.z.boolean().optional(),
|
|
@@ -15,7 +15,6 @@ export declare namespace RegisterUserCommand {
|
|
|
15
15
|
utmContent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
16
16
|
utmTerm: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17
17
|
}, z.core.$strip>>;
|
|
18
|
-
partnerRegistrationContext: z.ZodOptional<z.ZodString>;
|
|
19
18
|
marketingConsent: z.ZodDefault<z.ZodBoolean>;
|
|
20
19
|
}, z.core.$strip>;
|
|
21
20
|
type Request = z.infer<typeof RequestSchema>;
|
|
@@ -3,13 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RegisterUserCommand = void 0;
|
|
4
4
|
const models_1 = require("../../models");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
|
-
const partner_registration_context_schema_1 = require("../../models/partner-registration-context.schema");
|
|
7
6
|
var RegisterUserCommand;
|
|
8
7
|
(function (RegisterUserCommand) {
|
|
9
8
|
RegisterUserCommand.RequestSchema = models_1.UserSchema.pick({ email: true, password: true })
|
|
10
9
|
.extend({
|
|
11
10
|
utm: models_1.UtmSchema.optional(),
|
|
12
|
-
partnerRegistrationContext: partner_registration_context_schema_1.PartnerRegistrationContextSchema.optional(),
|
|
13
11
|
marketingConsent: zod_1.z.boolean().default(false),
|
|
14
12
|
})
|
|
15
13
|
.extend(models_1.UserReferralsSchema.shape)
|
|
@@ -11,7 +11,6 @@ export declare namespace VKLoginCommand {
|
|
|
11
11
|
device_id: z.ZodString;
|
|
12
12
|
state: z.ZodString;
|
|
13
13
|
marketingConsent: z.ZodDefault<z.ZodBoolean>;
|
|
14
|
-
partnerRegistrationContext: z.ZodOptional<z.ZodString>;
|
|
15
14
|
}, z.core.$strip>;
|
|
16
15
|
type Request = z.infer<typeof RequestSchema>;
|
|
17
16
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VKLoginCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const models_1 = require("../../models");
|
|
6
|
-
const partner_registration_context_schema_1 = require("../../models/partner-registration-context.schema");
|
|
7
6
|
var VKLoginCommand;
|
|
8
7
|
(function (VKLoginCommand) {
|
|
9
8
|
VKLoginCommand.RequestSchema = zod_1.z
|
|
@@ -13,7 +12,6 @@ var VKLoginCommand;
|
|
|
13
12
|
device_id: zod_1.z.string(),
|
|
14
13
|
state: zod_1.z.string(),
|
|
15
14
|
marketingConsent: zod_1.z.boolean().default(false),
|
|
16
|
-
partnerRegistrationContext: partner_registration_context_schema_1.PartnerRegistrationContextSchema.optional(),
|
|
17
15
|
})
|
|
18
16
|
.extend(models_1.UserReferralsSchema.shape)
|
|
19
17
|
.refine((data) => {
|
|
@@ -9,7 +9,6 @@ export declare namespace YandexLoginCommand {
|
|
|
9
9
|
code: z.ZodString;
|
|
10
10
|
code_verifier: z.ZodString;
|
|
11
11
|
marketingConsent: z.ZodDefault<z.ZodBoolean>;
|
|
12
|
-
partnerRegistrationContext: z.ZodOptional<z.ZodString>;
|
|
13
12
|
}, z.core.$strip>;
|
|
14
13
|
type Request = z.infer<typeof RequestSchema>;
|
|
15
14
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.YandexLoginCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const models_1 = require("../../models");
|
|
6
|
-
const partner_registration_context_schema_1 = require("../../models/partner-registration-context.schema");
|
|
7
6
|
var YandexLoginCommand;
|
|
8
7
|
(function (YandexLoginCommand) {
|
|
9
8
|
YandexLoginCommand.RequestSchema = zod_1.z
|
|
@@ -11,7 +10,6 @@ var YandexLoginCommand;
|
|
|
11
10
|
code: zod_1.z.string(),
|
|
12
11
|
code_verifier: zod_1.z.string(),
|
|
13
12
|
marketingConsent: zod_1.z.boolean().default(false),
|
|
14
|
-
partnerRegistrationContext: partner_registration_context_schema_1.PartnerRegistrationContextSchema.optional(),
|
|
15
13
|
})
|
|
16
14
|
.extend(models_1.UserReferralsSchema.shape)
|
|
17
15
|
.refine((data) => {
|