@lyxa.ai/core 1.4.273 → 1.4.275
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/dist/libraries/index.d.ts +2 -0
- package/dist/libraries/index.js +4 -0
- package/dist/libraries/index.js.map +1 -1
- package/dist/libraries/mongo/models/copy-product-job.model.d.ts +4 -3
- package/dist/libraries/mongo/models/copy-product-job.model.js +10 -5
- package/dist/libraries/mongo/models/copy-product-job.model.js.map +1 -1
- package/dist/libraries/trpc/middlewares/auth.d.ts +1 -1
- package/dist/libraries/trpc/middlewares/createRoleProtectedProcedure.d.ts +1 -1
- package/dist/libraries/trpc/middlewares/phone-verified.d.ts +1 -1
- package/dist/libraries/trpc/middlewares/publicUserDecoder.d.ts +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/dist/types/utilities/validation/common-validation.d.ts +12 -12
- package/package.json +1 -1
|
@@ -16,6 +16,7 @@ import { LyxaLoggerKit } from './logger-kit';
|
|
|
16
16
|
import { ICloudStorage, StorageProvider } from './cloud-storage';
|
|
17
17
|
import { LyxaFcmService } from './notification/lyxa-fcm.service';
|
|
18
18
|
import { GoogleTranslateService } from './google-translate';
|
|
19
|
+
import { TransliterationService } from './transliteration/transliteration-service';
|
|
19
20
|
export declare class LibraryManager {
|
|
20
21
|
getLogger(): LyxaLogger;
|
|
21
22
|
getGoogleTranslateService(): GoogleTranslateService;
|
|
@@ -38,4 +39,5 @@ export declare class LibraryManager {
|
|
|
38
39
|
getBullMQService(): BullMQService;
|
|
39
40
|
getCashSettlementService(): CashSettlementService;
|
|
40
41
|
getBOBService(): BOBService;
|
|
42
|
+
getTranliterationService(): TransliterationService;
|
|
41
43
|
}
|
package/dist/libraries/index.js
CHANGED
|
@@ -26,6 +26,7 @@ const logger_kit_1 = require("./logger-kit");
|
|
|
26
26
|
const cloud_storage_1 = require("./cloud-storage");
|
|
27
27
|
const lyxa_fcm_service_1 = require("./notification/lyxa-fcm.service");
|
|
28
28
|
const google_translate_1 = require("./google-translate");
|
|
29
|
+
const transliteration_service_1 = require("./transliteration/transliteration-service");
|
|
29
30
|
let LibraryManager = class LibraryManager {
|
|
30
31
|
getLogger() {
|
|
31
32
|
return typedi_1.Container.get(logger_1.LyxaLogger);
|
|
@@ -90,6 +91,9 @@ let LibraryManager = class LibraryManager {
|
|
|
90
91
|
getBOBService() {
|
|
91
92
|
return typedi_1.Container.get(cash_settlement_1.BOBService);
|
|
92
93
|
}
|
|
94
|
+
getTranliterationService() {
|
|
95
|
+
return typedi_1.Container.get(transliteration_service_1.TransliterationService);
|
|
96
|
+
}
|
|
93
97
|
};
|
|
94
98
|
exports.LibraryManager = LibraryManager;
|
|
95
99
|
exports.LibraryManager = LibraryManager = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"/","sources":["libraries/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,mCAA4C;AAC5C,qCAAyC;AACzC,qCAAsC;AACtC,6CAAsD;AACtD,uCAAiD;AACjD,mCAAuC;AACvC,mDAAuD;AACvD,qCAAyC;AACzC,yCAA6C;AAC7C,kDAAoD;AACpD,+BAAmC;AACnC,+CAAyD;AACzD,8EAAyE;AACzE,8DAAyD;AACzD,uDAAsE;AACtE,6CAA6C;AAC7C,mDAAsF;AACtF,sEAAiE;AACjE,yDAA4D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"/","sources":["libraries/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,mCAA4C;AAC5C,qCAAyC;AACzC,qCAAsC;AACtC,6CAAsD;AACtD,uCAAiD;AACjD,mCAAuC;AACvC,mDAAuD;AACvD,qCAAyC;AACzC,yCAA6C;AAC7C,kDAAoD;AACpD,+BAAmC;AACnC,+CAAyD;AACzD,8EAAyE;AACzE,8DAAyD;AACzD,uDAAsE;AACtE,6CAA6C;AAC7C,mDAAsF;AACtF,sEAAiE;AACjE,yDAA4D;AAC5D,uFAAm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CAAC,OAAO,GAAG,IAAI,CAAC,uBAAuB,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IACrG,CAAC;IACM,aAAa;QACnB,OAAO,kBAAS,CAAC,GAAG,CAAC,gBAAU,CAAC,CAAC;IAClC,CAAC;IACM,wBAAwB;QAC9B,OAAO,kBAAS,CAAC,GAAG,CAAC,gCAAqB,CAAC,CAAC;IAC7C,CAAC;IAEM,iBAAiB;QACvB,OAAO,kBAAS,CAAC,GAAG,CAAC,iCAAc,CAAC,CAAC;IACtC,CAAC;IAEM,aAAa;QACnB,OAAO,kBAAS,CAAC,GAAG,CAAC,yCAAkB,CAAC,CAAC;IAC1C,CAAC;IACM,gBAAgB;QACtB,OAAO,kBAAS,CAAC,GAAG,CAAC,+BAAa,CAAC,CAAC;IACrC,CAAC;IACM,wBAAwB;QAC9B,OAAO,kBAAS,CAAC,GAAG,CAAC,uCAAqB,CAAC,CAAC;IAC7C,CAAC;IACM,aAAa;QACnB,OAAO,kBAAS,CAAC,GAAG,CAAC,4BAAU,CAAC,CAAC;IAClC,CAAC;IACM,wBAAwB;QAC9B,OAAO,kBAAS,CAAC,GAAG,CAAC,gDAAsB,CAAC,CAAC;IAC9C,CAAC;CACD,CAAA;AAvEY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,gBAAO,GAAE;GACG,cAAc,CAuE1B","sourcesContent":["import { Container, Service } from 'typedi';\nimport { TwilioService } from './twilio';\nimport { LyxaLogger } from './logger';\nimport { MicroServiceDispatcher } from './dispatcher';\nimport { SecretManagerService } from './secrets';\nimport { RedisService } from './redis';\nimport { ConfigurationService } from './configuration';\nimport { UploadService } from './upload';\nimport { FirebaseService } from './firebase';\nimport { TokenRepository } from './auth/repository';\nimport { MapService } from './map';\nimport { CachedSettingsService } from './cache/settings';\nimport { FirebaseFcmService } from './notification/firebase-fcm.service';\nimport { BullMQService } from './bullmq/bull-mq-service';\nimport { BOBService, CashSettlementService } from './cash-settlement';\nimport { LyxaLoggerKit } from './logger-kit';\nimport { CloudStorageFactory, ICloudStorage, StorageProvider } from './cloud-storage';\nimport { LyxaFcmService } from './notification/lyxa-fcm.service';\nimport { GoogleTranslateService } from './google-translate';\nimport { TransliterationService } from './transliteration/transliteration-service';\n\n@Service()\nexport class LibraryManager {\n\tpublic getLogger(): LyxaLogger {\n\t\treturn Container.get(LyxaLogger);\n\t}\n\tpublic getGoogleTranslateService() {\n\t\treturn Container.get(GoogleTranslateService);\n\t}\n\tpublic getLoggerKit(): LyxaLoggerKit {\n\t\treturn Container.get(LyxaLoggerKit);\n\t}\n\tpublic getMicroServiceDispatcher(): MicroServiceDispatcher {\n\t\treturn Container.get(MicroServiceDispatcher);\n\t}\n\tpublic getTwilioService(): TwilioService {\n\t\treturn Container.get(TwilioService);\n\t}\n\tpublic getSecretsService(): SecretManagerService {\n\t\treturn Container.get(SecretManagerService);\n\t}\n\tpublic getRedisService(): RedisService {\n\t\treturn Container.get(RedisService);\n\t}\n\tpublic getConfigurationService(): ConfigurationService {\n\t\treturn Container.get(ConfigurationService);\n\t}\n\tpublic getFirebaseService(): FirebaseService {\n\t\treturn Container.get(FirebaseService);\n\t}\n\tpublic getAuthTokenRepository(): TokenRepository {\n\t\treturn Container.get(TokenRepository);\n\t}\n\tpublic getGlobalUploadService(): UploadService {\n\t\treturn new UploadService();\n\t}\n\tpublic getTenetUploadService(): UploadService {\n\t\treturn new UploadService('lyxa-' + this.getConfigurationService().options.tenet);\n\t}\n\n\tpublic getGlobalStorageService(provider?: StorageProvider): ICloudStorage {\n\t\treturn CloudStorageFactory.create(undefined, provider);\n\t}\n\n\tpublic getTenetStorageService(provider?: StorageProvider): ICloudStorage {\n\t\treturn CloudStorageFactory.create('lyxa-' + this.getConfigurationService().options.tenet, provider);\n\t}\n\tpublic getMapService(): MapService {\n\t\treturn Container.get(MapService);\n\t}\n\tpublic getCachedSettingsService(): CachedSettingsService {\n\t\treturn Container.get(CachedSettingsService);\n\t}\n\n\tpublic getLyxaFcmService(): LyxaFcmService {\n\t\treturn Container.get(LyxaFcmService);\n\t}\n\n\tpublic getFCMService(): FirebaseFcmService {\n\t\treturn Container.get(FirebaseFcmService);\n\t}\n\tpublic getBullMQService(): BullMQService {\n\t\treturn Container.get(BullMQService);\n\t}\n\tpublic getCashSettlementService(): CashSettlementService {\n\t\treturn Container.get(CashSettlementService);\n\t}\n\tpublic getBOBService(): BOBService {\n\t\treturn Container.get(BOBService);\n\t}\n\tpublic getTranliterationService(): TransliterationService {\n\t\treturn Container.get(TransliterationService);\n\t}\n}\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ref } from '@typegoose/typegoose';
|
|
2
2
|
import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
|
|
3
3
|
import { Shop } from './shop.model';
|
|
4
4
|
import { UploadState } from '../../../utilities/enum';
|
|
5
5
|
export declare class CopyProductJob extends TimeStamps {
|
|
6
|
-
jobId
|
|
6
|
+
jobId?: string;
|
|
7
7
|
sourceShop: Ref<Shop>;
|
|
8
8
|
targetShop: Ref<Shop>;
|
|
9
9
|
state?: UploadState;
|
|
@@ -11,10 +11,11 @@ export declare class CopyProductJob extends TimeStamps {
|
|
|
11
11
|
totalCategories?: number;
|
|
12
12
|
totalAttributes?: number;
|
|
13
13
|
totalProducts?: number;
|
|
14
|
+
totalAddons?: number;
|
|
14
15
|
copiedCategories?: number;
|
|
15
16
|
copiedAttributes?: number;
|
|
16
17
|
copiedProducts?: number;
|
|
17
|
-
|
|
18
|
+
copiedAddons?: number;
|
|
18
19
|
error?: any;
|
|
19
20
|
completedAt?: Date;
|
|
20
21
|
}
|
|
@@ -23,16 +23,17 @@ let CopyProductJob = class CopyProductJob extends defaultClasses_1.TimeStamps {
|
|
|
23
23
|
totalCategories;
|
|
24
24
|
totalAttributes;
|
|
25
25
|
totalProducts;
|
|
26
|
+
totalAddons;
|
|
26
27
|
copiedCategories;
|
|
27
28
|
copiedAttributes;
|
|
28
29
|
copiedProducts;
|
|
29
|
-
|
|
30
|
+
copiedAddons;
|
|
30
31
|
error;
|
|
31
32
|
completedAt;
|
|
32
33
|
};
|
|
33
34
|
exports.CopyProductJob = CopyProductJob;
|
|
34
35
|
__decorate([
|
|
35
|
-
(0, typegoose_1.prop)({
|
|
36
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
36
37
|
__metadata("design:type", String)
|
|
37
38
|
], CopyProductJob.prototype, "jobId", void 0);
|
|
38
39
|
__decorate([
|
|
@@ -63,6 +64,10 @@ __decorate([
|
|
|
63
64
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
64
65
|
__metadata("design:type", Number)
|
|
65
66
|
], CopyProductJob.prototype, "totalProducts", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
69
|
+
__metadata("design:type", Number)
|
|
70
|
+
], CopyProductJob.prototype, "totalAddons", void 0);
|
|
66
71
|
__decorate([
|
|
67
72
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
68
73
|
__metadata("design:type", Number)
|
|
@@ -76,9 +81,9 @@ __decorate([
|
|
|
76
81
|
__metadata("design:type", Number)
|
|
77
82
|
], CopyProductJob.prototype, "copiedProducts", void 0);
|
|
78
83
|
__decorate([
|
|
79
|
-
(0, typegoose_1.prop)({ type:
|
|
80
|
-
__metadata("design:type",
|
|
81
|
-
], CopyProductJob.prototype, "
|
|
84
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
85
|
+
__metadata("design:type", Number)
|
|
86
|
+
], CopyProductJob.prototype, "copiedAddons", void 0);
|
|
82
87
|
__decorate([
|
|
83
88
|
(0, typegoose_1.prop)({ type: typegoose_1.mongoose.Schema.Types.Mixed }),
|
|
84
89
|
__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-product-job.model.js","sourceRoot":"/","sources":["libraries/mongo/models/copy-product-job.model.ts"],"names":[],"mappings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wBAAY,EAAC;QACb,aAAa,EAAE,EAAE,UAAU,EAAE,iBAAiB,EAAE;QAChD,OAAO,EAAE,EAAE,UAAU,EAAE,oBAAQ,CAAC,KAAK,EAAE;KACvC,CAAC;GACW,cAAc,CA6C1B","sourcesContent":["import { modelOptions, mongoose, prop, Ref, Severity } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { Shop } from './shop.model';\nimport { UploadState } from '../../../utilities/enum';\n\n@modelOptions({\n\tschemaOptions: { collection: 'copyProductJobs' },\n\toptions: { allowMixed: Severity.ALLOW },\n})\nexport class CopyProductJob extends TimeStamps {\n\t@prop({ type: String })\n\tpublic jobId?: string;\n\n\t@prop({ required: true, ref: () => Shop })\n\tpublic sourceShop!: Ref<Shop>;\n\n\t@prop({ required: true, ref: () => Shop })\n\tpublic targetShop!: Ref<Shop>;\n\n\t@prop({ type: String, enum: UploadState, default: UploadState.ACTIVE })\n\tpublic state?: UploadState;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic progress?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic totalCategories?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic totalAttributes?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic totalProducts?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic totalAddons?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic copiedCategories?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic copiedAttributes?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic copiedProducts?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic copiedAddons?: number;\n\n\t@prop({ type: mongoose.Schema.Types.Mixed })\n\tpublic error?: any;\n\n\t@prop({ type: Date })\n\tpublic completedAt?: Date;\n}\n"]}
|
|
@@ -5,9 +5,9 @@ interface AuthOptions {
|
|
|
5
5
|
autoRefresh?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare function createAuthenticatedProcedure(options: AuthOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
|
|
8
|
-
req: import("http").IncomingMessage;
|
|
9
8
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
10
9
|
tokenType: TokenType | undefined;
|
|
10
|
+
req: import("http").IncomingMessage;
|
|
11
11
|
requestId: string | undefined;
|
|
12
12
|
entity: import("../context").EntityContext | undefined;
|
|
13
13
|
usedRefreshToken: boolean | undefined;
|
|
@@ -4,9 +4,9 @@ interface RoleProtectedOptions {
|
|
|
4
4
|
allowedRoles: string[];
|
|
5
5
|
}
|
|
6
6
|
export declare function createRoleProtectedProcedure(options: RoleProtectedOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
|
|
7
|
-
req: import("http").IncomingMessage;
|
|
8
7
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
9
8
|
tokenType: import("../../auth").TokenType | undefined;
|
|
9
|
+
req: import("http").IncomingMessage;
|
|
10
10
|
requestId: string | undefined;
|
|
11
11
|
entity: import("../context").EntityContext | undefined;
|
|
12
12
|
usedRefreshToken: boolean | undefined;
|
|
@@ -3,9 +3,9 @@ interface PhoneVerifiedOptions {
|
|
|
3
3
|
entityTypes: AuthEntityType[];
|
|
4
4
|
}
|
|
5
5
|
export declare function createPhoneVerifiedProcedure(options: PhoneVerifiedOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
|
|
6
|
-
req: import("http").IncomingMessage;
|
|
7
6
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
8
7
|
tokenType: import("../../auth").TokenType | undefined;
|
|
8
|
+
req: import("http").IncomingMessage;
|
|
9
9
|
requestId: string | undefined;
|
|
10
10
|
entity: import("../context").EntityContext | undefined;
|
|
11
11
|
usedRefreshToken: boolean | undefined;
|
|
@@ -5,9 +5,9 @@ interface AuthOptions {
|
|
|
5
5
|
autoRefresh?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare function publicUserDecoder(options: AuthOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
|
|
8
|
-
req: import("http").IncomingMessage;
|
|
9
8
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
10
9
|
tokenType: TokenType | undefined;
|
|
10
|
+
req: import("http").IncomingMessage;
|
|
11
11
|
requestId: string | undefined;
|
|
12
12
|
entity: import("../context").EntityContext | undefined;
|
|
13
13
|
usedRefreshToken: boolean | undefined;
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED
|
@@ -26,8 +26,8 @@ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
|
|
|
26
26
|
searchFields?: string[] | undefined;
|
|
27
27
|
} | undefined;
|
|
28
28
|
sort?: Record<string, 1 | -1> | undefined;
|
|
29
|
-
populate?: any;
|
|
30
29
|
select?: Record<string, 0 | 1> | undefined;
|
|
30
|
+
populate?: any;
|
|
31
31
|
query?: Record<string, any> | undefined;
|
|
32
32
|
}, {
|
|
33
33
|
search?: {
|
|
@@ -36,8 +36,8 @@ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
|
|
|
36
36
|
} | undefined;
|
|
37
37
|
sort?: Record<string, 1 | -1> | undefined;
|
|
38
38
|
size?: number | undefined;
|
|
39
|
-
populate?: any;
|
|
40
39
|
select?: Record<string, 0 | 1> | undefined;
|
|
40
|
+
populate?: any;
|
|
41
41
|
query?: Record<string, any> | undefined;
|
|
42
42
|
page?: number | undefined;
|
|
43
43
|
}>>;
|
|
@@ -736,12 +736,12 @@ export declare const GetByIdInputSchema: z.ZodObject<{
|
|
|
736
736
|
populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
|
|
737
737
|
}, "strip", z.ZodTypeAny, {
|
|
738
738
|
_id: import("mongoose").Types.ObjectId;
|
|
739
|
-
populate?: any;
|
|
740
739
|
select?: Record<string, 0 | 1> | undefined;
|
|
740
|
+
populate?: any;
|
|
741
741
|
}, {
|
|
742
742
|
_id: string | import("mongoose").Types.ObjectId;
|
|
743
|
-
populate?: any;
|
|
744
743
|
select?: Record<string, 0 | 1> | undefined;
|
|
744
|
+
populate?: any;
|
|
745
745
|
}>;
|
|
746
746
|
export type GetByIdInputDTO = DTO<typeof GetByIdInputSchema>;
|
|
747
747
|
export declare const GetProductByIdInputSchema: z.ZodObject<{
|
|
@@ -754,12 +754,12 @@ export declare const GetProductByIdInputSchema: z.ZodObject<{
|
|
|
754
754
|
_id: import("mongoose").Types.ObjectId;
|
|
755
755
|
withAttributeHiddenItems: boolean;
|
|
756
756
|
withAddonsHiddenItems: boolean;
|
|
757
|
-
populate?: any;
|
|
758
757
|
select?: Record<string, 0 | 1> | undefined;
|
|
758
|
+
populate?: any;
|
|
759
759
|
}, {
|
|
760
760
|
_id: string | import("mongoose").Types.ObjectId;
|
|
761
|
-
populate?: any;
|
|
762
761
|
select?: Record<string, 0 | 1> | undefined;
|
|
762
|
+
populate?: any;
|
|
763
763
|
withAttributeHiddenItems?: boolean | undefined;
|
|
764
764
|
withAddonsHiddenItems?: boolean | undefined;
|
|
765
765
|
}>;
|
|
@@ -773,15 +773,15 @@ export declare const GetOrderByIdInputSchema: z.ZodObject<{
|
|
|
773
773
|
userOrderCompletionScope: z.ZodOptional<z.ZodNativeEnum<typeof UserOrderCompletionScope>>;
|
|
774
774
|
}, "strip", z.ZodTypeAny, {
|
|
775
775
|
_id: import("mongoose").Types.ObjectId;
|
|
776
|
-
populate?: any;
|
|
777
776
|
select?: Record<string, 0 | 1> | undefined;
|
|
777
|
+
populate?: any;
|
|
778
778
|
groupByCategories?: boolean | undefined;
|
|
779
779
|
getParentCategory?: boolean | undefined;
|
|
780
780
|
userOrderCompletionScope?: UserOrderCompletionScope | undefined;
|
|
781
781
|
}, {
|
|
782
782
|
_id: string | import("mongoose").Types.ObjectId;
|
|
783
|
-
populate?: any;
|
|
784
783
|
select?: Record<string, 0 | 1> | undefined;
|
|
784
|
+
populate?: any;
|
|
785
785
|
groupByCategories?: boolean | undefined;
|
|
786
786
|
getParentCategory?: boolean | undefined;
|
|
787
787
|
userOrderCompletionScope?: UserOrderCompletionScope | undefined;
|
|
@@ -791,11 +791,11 @@ export declare const GetByTokenInputSchema: z.ZodOptional<z.ZodObject<{
|
|
|
791
791
|
select: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>>;
|
|
792
792
|
populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
|
|
793
793
|
}, "strip", z.ZodTypeAny, {
|
|
794
|
-
populate?: any;
|
|
795
794
|
select?: Record<string, 0 | 1> | undefined;
|
|
796
|
-
}, {
|
|
797
795
|
populate?: any;
|
|
796
|
+
}, {
|
|
798
797
|
select?: Record<string, 0 | 1> | undefined;
|
|
798
|
+
populate?: any;
|
|
799
799
|
}>>;
|
|
800
800
|
export type GetByTokenInputDTO = DTO<typeof GetByTokenInputSchema>;
|
|
801
801
|
export declare const GetOneQuerySchema: z.ZodObject<{
|
|
@@ -803,12 +803,12 @@ export declare const GetOneQuerySchema: z.ZodObject<{
|
|
|
803
803
|
select: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>>;
|
|
804
804
|
populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
|
|
805
805
|
}, "strip", z.ZodTypeAny, {
|
|
806
|
-
populate?: any;
|
|
807
806
|
select?: Record<string, 0 | 1> | undefined;
|
|
807
|
+
populate?: any;
|
|
808
808
|
query?: Record<string, any> | undefined;
|
|
809
809
|
}, {
|
|
810
|
-
populate?: any;
|
|
811
810
|
select?: Record<string, 0 | 1> | undefined;
|
|
811
|
+
populate?: any;
|
|
812
812
|
query?: Record<string, any> | undefined;
|
|
813
813
|
}>;
|
|
814
814
|
export type GetOneQueryDTO = DTO<typeof GetOneQuerySchema>;
|