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