expo-backend-types 0.22.0-EXPO-251-EB-Whatsapp.3 → 0.22.0-EXPO-288-EB-Imagenes.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/dist/src/event/dto/event.dto.js +1 -1
- package/dist/src/event/dto/get-all-event.dto.d.ts +160 -160
- package/dist/src/event/dto/get-by-id-event.dto.d.ts +48 -48
- package/dist/src/event/dto/update-event.dto.d.ts +20 -20
- package/dist/src/i18n/es.d.ts +18 -44
- package/dist/src/i18n/es.js +18 -44
- package/dist/src/i18n/es.js.map +1 -1
- package/dist/src/image/dto/delete-image.dto.d.ts +18 -0
- package/dist/src/image/dto/delete-image.dto.js +12 -0
- package/dist/src/image/dto/image.dto.d.ts +24 -0
- package/dist/src/image/dto/image.dto.js +18 -0
- package/dist/src/image/dto/update-image.dto.d.ts +18 -0
- package/dist/src/image/dto/update-image.dto.js +15 -0
- package/dist/src/image/exports.d.ts +3 -0
- package/dist/src/{csv → image}/exports.js +3 -3
- package/dist/src/location/dto/find-all-location.dto.d.ts +16 -16
- package/dist/src/message/dto/message.dto.d.ts +2 -2
- package/dist/src/message/exports.d.ts +0 -4
- package/dist/src/message/exports.js +0 -4
- package/dist/src/profile/dto/find-all-profile.dto.d.ts +86 -86
- package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +124 -124
- package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +52 -52
- package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +64 -64
- package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +84 -84
- package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +72 -72
- package/dist/src/profile/dto/update-profile.dto.d.ts +4 -4
- package/dist/types/prisma-schema/default.d.ts +1 -1
- package/dist/types/prisma-schema/edge.d.ts +1 -1
- package/dist/types/prisma-schema/edge.js +11 -7
- package/dist/types/prisma-schema/index-browser.js +7 -4
- package/dist/types/prisma-schema/index.d.ts +803 -1034
- package/dist/types/prisma-schema/index.js +11 -7
- package/dist/types/prisma-schema/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
- package/dist/types/prisma-schema/package.json +14 -1
- package/dist/types/prisma-schema/runtime/edge-esm.js +21 -18
- package/dist/types/prisma-schema/runtime/edge.js +21 -18
- package/dist/types/prisma-schema/runtime/index-browser.js +1 -1
- package/dist/types/prisma-schema/runtime/library.d.ts +297 -87
- package/dist/types/prisma-schema/runtime/library.js +64 -61
- package/dist/types/prisma-schema/runtime/react-native.js +31 -28
- package/dist/types/prisma-schema/runtime/wasm.js +22 -19
- package/dist/types/prisma-schema/wasm.d.ts +1 -1
- package/dist/types/prisma-schema/wasm.js +7 -4
- package/dist/types/schema.d.ts +30 -145
- package/package.json +5 -7
- package/dist/src/csv/dto/csv.dto.d.ts +0 -18
- package/dist/src/csv/dto/csv.dto.js +0 -17
- package/dist/src/csv/dto/download-all-tables.dto.d.ts +0 -23
- package/dist/src/csv/dto/download-all-tables.dto.js +0 -19
- package/dist/src/csv/dto/download-profiles.dto.d.ts +0 -18
- package/dist/src/csv/dto/download-profiles.dto.js +0 -15
- package/dist/src/csv/exports.d.ts +0 -3
- package/dist/src/message/dto/create-template.dto.d.ts +0 -93
- package/dist/src/message/dto/create-template.dto.js +0 -24
- package/dist/src/message/dto/find-template-by-id.dto.d.ts +0 -245
- package/dist/src/message/dto/find-template-by-id.dto.js +0 -23
- package/dist/src/message/dto/find-templates.dto.d.ts +0 -109
- package/dist/src/message/dto/find-templates.dto.js +0 -20
- package/dist/src/message/dto/template.dto.d.ts +0 -154
- package/dist/src/message/dto/template.dto.js +0 -63
@@ -1 +1 @@
|
|
1
|
-
export * from
|
1
|
+
export * from "./index"
|
@@ -7,6 +7,7 @@ const {
|
|
7
7
|
makeStrictEnum,
|
8
8
|
Public,
|
9
9
|
getRuntime,
|
10
|
+
skip
|
10
11
|
} = require('./runtime/index-browser.js')
|
11
12
|
|
12
13
|
|
@@ -16,12 +17,12 @@ exports.Prisma = Prisma
|
|
16
17
|
exports.$Enums = {}
|
17
18
|
|
18
19
|
/**
|
19
|
-
* Prisma Client JS version: 5.
|
20
|
-
* Query Engine version:
|
20
|
+
* Prisma Client JS version: 5.22.0
|
21
|
+
* Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2
|
21
22
|
*/
|
22
23
|
Prisma.prismaVersion = {
|
23
|
-
client: "5.
|
24
|
-
engine: "
|
24
|
+
client: "5.22.0",
|
25
|
+
engine: "605197351a3c8bdd595af2d2a9bc3025bca48ea2"
|
25
26
|
}
|
26
27
|
|
27
28
|
Prisma.PrismaClientKnownRequestError = () => {
|
@@ -108,6 +109,8 @@ Prisma.NullTypes = {
|
|
108
109
|
AnyNull: objectEnumValues.classes.AnyNull
|
109
110
|
}
|
110
111
|
|
112
|
+
|
113
|
+
|
111
114
|
/**
|
112
115
|
* Enums
|
113
116
|
*/
|
package/dist/types/schema.d.ts
CHANGED
@@ -703,39 +703,7 @@ export interface paths {
|
|
703
703
|
patch: operations["ProfileController_update"];
|
704
704
|
trace?: never;
|
705
705
|
};
|
706
|
-
"/
|
707
|
-
parameters: {
|
708
|
-
query?: never;
|
709
|
-
header?: never;
|
710
|
-
path?: never;
|
711
|
-
cookie?: never;
|
712
|
-
};
|
713
|
-
get: operations["CsvController_downloadProfiles"];
|
714
|
-
put?: never;
|
715
|
-
post?: never;
|
716
|
-
delete?: never;
|
717
|
-
options?: never;
|
718
|
-
head?: never;
|
719
|
-
patch?: never;
|
720
|
-
trace?: never;
|
721
|
-
};
|
722
|
-
"/csv/download-all-tables": {
|
723
|
-
parameters: {
|
724
|
-
query?: never;
|
725
|
-
header?: never;
|
726
|
-
path?: never;
|
727
|
-
cookie?: never;
|
728
|
-
};
|
729
|
-
get: operations["CsvController_downloadAllTables"];
|
730
|
-
put?: never;
|
731
|
-
post?: never;
|
732
|
-
delete?: never;
|
733
|
-
options?: never;
|
734
|
-
head?: never;
|
735
|
-
patch?: never;
|
736
|
-
trace?: never;
|
737
|
-
};
|
738
|
-
"/message/create-template": {
|
706
|
+
"/image/update/{id}": {
|
739
707
|
parameters: {
|
740
708
|
query?: never;
|
741
709
|
header?: never;
|
@@ -744,40 +712,24 @@ export interface paths {
|
|
744
712
|
};
|
745
713
|
get?: never;
|
746
714
|
put?: never;
|
747
|
-
post: operations["MessageController_createTemplate"];
|
748
|
-
delete?: never;
|
749
|
-
options?: never;
|
750
|
-
head?: never;
|
751
|
-
patch?: never;
|
752
|
-
trace?: never;
|
753
|
-
};
|
754
|
-
"/message/templates": {
|
755
|
-
parameters: {
|
756
|
-
query?: never;
|
757
|
-
header?: never;
|
758
|
-
path?: never;
|
759
|
-
cookie?: never;
|
760
|
-
};
|
761
|
-
get: operations["MessageController_findTemplates"];
|
762
|
-
put?: never;
|
763
715
|
post?: never;
|
764
716
|
delete?: never;
|
765
717
|
options?: never;
|
766
718
|
head?: never;
|
767
|
-
patch
|
719
|
+
patch: operations["ImageController_updateImage"];
|
768
720
|
trace?: never;
|
769
721
|
};
|
770
|
-
"/
|
722
|
+
"/image/delete/{id}": {
|
771
723
|
parameters: {
|
772
724
|
query?: never;
|
773
725
|
header?: never;
|
774
726
|
path?: never;
|
775
727
|
cookie?: never;
|
776
728
|
};
|
777
|
-
get
|
729
|
+
get?: never;
|
778
730
|
put?: never;
|
779
731
|
post?: never;
|
780
|
-
delete
|
732
|
+
delete: operations["ImageController_deleteImage"];
|
781
733
|
options?: never;
|
782
734
|
head?: never;
|
783
735
|
patch?: never;
|
@@ -1885,27 +1837,11 @@ export interface components {
|
|
1885
1837
|
};
|
1886
1838
|
tags?: string[];
|
1887
1839
|
};
|
1888
|
-
|
1889
|
-
password: string;
|
1890
|
-
};
|
1891
|
-
StreamableFile: Record<string, never>;
|
1892
|
-
DownloadAllTablesDto: {
|
1893
|
-
password: string;
|
1894
|
-
};
|
1895
|
-
Buffer: Record<string, never>;
|
1896
|
-
CreateTemplateDto: {
|
1897
|
-
name: string;
|
1898
|
-
content: string;
|
1899
|
-
buttons: string[];
|
1900
|
-
};
|
1901
|
-
CreateTemplateResponseDto: {
|
1840
|
+
UpdateImageResponseDto: {
|
1902
1841
|
message: string;
|
1903
1842
|
};
|
1904
|
-
|
1905
|
-
|
1906
|
-
};
|
1907
|
-
FindTemplateByIdResponseDto: {
|
1908
|
-
template: unknown;
|
1843
|
+
DeleteImageResponseDto: {
|
1844
|
+
message: string;
|
1909
1845
|
};
|
1910
1846
|
};
|
1911
1847
|
responses: never;
|
@@ -3336,28 +3272,26 @@ export interface operations {
|
|
3336
3272
|
};
|
3337
3273
|
};
|
3338
3274
|
};
|
3339
|
-
|
3275
|
+
ImageController_updateImage: {
|
3340
3276
|
parameters: {
|
3341
3277
|
query?: never;
|
3342
3278
|
header?: never;
|
3343
|
-
path
|
3344
|
-
|
3345
|
-
};
|
3346
|
-
requestBody: {
|
3347
|
-
content: {
|
3348
|
-
"application/json": components["schemas"]["DownloadProfilesDto"];
|
3279
|
+
path: {
|
3280
|
+
id: string;
|
3349
3281
|
};
|
3282
|
+
cookie?: never;
|
3350
3283
|
};
|
3284
|
+
requestBody?: never;
|
3351
3285
|
responses: {
|
3352
|
-
|
3286
|
+
200: {
|
3353
3287
|
headers: {
|
3354
3288
|
[name: string]: unknown;
|
3355
3289
|
};
|
3356
3290
|
content: {
|
3357
|
-
"application/json": components["schemas"]["
|
3291
|
+
"application/json": components["schemas"]["UpdateImageResponseDto"];
|
3358
3292
|
};
|
3359
3293
|
};
|
3360
|
-
|
3294
|
+
409: {
|
3361
3295
|
headers: {
|
3362
3296
|
[name: string]: unknown;
|
3363
3297
|
};
|
@@ -3365,30 +3299,7 @@ export interface operations {
|
|
3365
3299
|
"application/json": components["schemas"]["ErrorDto"];
|
3366
3300
|
};
|
3367
3301
|
};
|
3368
|
-
|
3369
|
-
headers: {
|
3370
|
-
[name: string]: unknown;
|
3371
|
-
};
|
3372
|
-
content: {
|
3373
|
-
"application/json": components["schemas"]["StreamableFile"];
|
3374
|
-
};
|
3375
|
-
};
|
3376
|
-
};
|
3377
|
-
};
|
3378
|
-
CsvController_downloadAllTables: {
|
3379
|
-
parameters: {
|
3380
|
-
query?: never;
|
3381
|
-
header?: never;
|
3382
|
-
path?: never;
|
3383
|
-
cookie?: never;
|
3384
|
-
};
|
3385
|
-
requestBody: {
|
3386
|
-
content: {
|
3387
|
-
"application/json": components["schemas"]["DownloadAllTablesDto"];
|
3388
|
-
};
|
3389
|
-
};
|
3390
|
-
responses: {
|
3391
|
-
409: {
|
3302
|
+
422: {
|
3392
3303
|
headers: {
|
3393
3304
|
[name: string]: unknown;
|
3394
3305
|
};
|
@@ -3396,75 +3307,49 @@ export interface operations {
|
|
3396
3307
|
"application/json": components["schemas"]["ErrorDto"];
|
3397
3308
|
};
|
3398
3309
|
};
|
3399
|
-
|
3310
|
+
500: {
|
3400
3311
|
headers: {
|
3401
3312
|
[name: string]: unknown;
|
3402
3313
|
};
|
3403
3314
|
content: {
|
3404
|
-
"application/json": components["schemas"]["
|
3315
|
+
"application/json": components["schemas"]["ErrorDto"];
|
3405
3316
|
};
|
3406
3317
|
};
|
3407
3318
|
};
|
3408
3319
|
};
|
3409
|
-
|
3320
|
+
ImageController_deleteImage: {
|
3410
3321
|
parameters: {
|
3411
3322
|
query?: never;
|
3412
3323
|
header?: never;
|
3413
|
-
path
|
3414
|
-
|
3415
|
-
};
|
3416
|
-
requestBody: {
|
3417
|
-
content: {
|
3418
|
-
"application/json": components["schemas"]["CreateTemplateDto"];
|
3324
|
+
path: {
|
3325
|
+
id: string;
|
3419
3326
|
};
|
3327
|
+
cookie?: never;
|
3420
3328
|
};
|
3329
|
+
requestBody?: never;
|
3421
3330
|
responses: {
|
3422
|
-
|
3331
|
+
200: {
|
3423
3332
|
headers: {
|
3424
3333
|
[name: string]: unknown;
|
3425
3334
|
};
|
3426
3335
|
content: {
|
3427
|
-
"application/json": components["schemas"]["
|
3336
|
+
"application/json": components["schemas"]["DeleteImageResponseDto"];
|
3428
3337
|
};
|
3429
3338
|
};
|
3430
|
-
|
3431
|
-
};
|
3432
|
-
MessageController_findTemplates: {
|
3433
|
-
parameters: {
|
3434
|
-
query?: never;
|
3435
|
-
header?: never;
|
3436
|
-
path?: never;
|
3437
|
-
cookie?: never;
|
3438
|
-
};
|
3439
|
-
requestBody?: never;
|
3440
|
-
responses: {
|
3441
|
-
200: {
|
3339
|
+
404: {
|
3442
3340
|
headers: {
|
3443
3341
|
[name: string]: unknown;
|
3444
3342
|
};
|
3445
3343
|
content: {
|
3446
|
-
"application/json": components["schemas"]["
|
3344
|
+
"application/json": components["schemas"]["ErrorDto"];
|
3447
3345
|
};
|
3448
3346
|
};
|
3449
|
-
|
3450
|
-
};
|
3451
|
-
MessageController_findTemplateById: {
|
3452
|
-
parameters: {
|
3453
|
-
query?: never;
|
3454
|
-
header?: never;
|
3455
|
-
path: {
|
3456
|
-
id: string;
|
3457
|
-
};
|
3458
|
-
cookie?: never;
|
3459
|
-
};
|
3460
|
-
requestBody?: never;
|
3461
|
-
responses: {
|
3462
|
-
200: {
|
3347
|
+
500: {
|
3463
3348
|
headers: {
|
3464
3349
|
[name: string]: unknown;
|
3465
3350
|
};
|
3466
3351
|
content: {
|
3467
|
-
"application/json": components["schemas"]["
|
3352
|
+
"application/json": components["schemas"]["ErrorDto"];
|
3468
3353
|
};
|
3469
3354
|
};
|
3470
3355
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "expo-backend-types",
|
3
|
-
"version": "0.22.0-EXPO-
|
3
|
+
"version": "0.22.0-EXPO-288-EB-Imagenes.1",
|
4
4
|
"description": "",
|
5
5
|
"author": "Expo",
|
6
6
|
"private": false,
|
@@ -44,18 +44,15 @@
|
|
44
44
|
"@nestjs/jwt": "^10.2.0",
|
45
45
|
"@nestjs/platform-express": "^10.0.0",
|
46
46
|
"@nestjs/swagger": "^7.3.1",
|
47
|
-
"@prisma/client": "^5.
|
47
|
+
"@prisma/client": "^5.22.0",
|
48
48
|
"bcrypt": "^5.1.1",
|
49
49
|
"class-transformer": "^0.5.1",
|
50
50
|
"class-validator": "^0.14.1",
|
51
51
|
"country-state-city": "^3.2.1",
|
52
52
|
"date-fns": "^4.1.0",
|
53
|
-
"exceljs": "^4.4.0",
|
54
|
-
"fast-csv": "^5.0.2",
|
55
53
|
"i18n-js": "^4.4.3",
|
56
54
|
"json-to-pretty-yaml": "^1.2.2",
|
57
|
-
"
|
58
|
-
"openapi3-ts": "^4.4.0",
|
55
|
+
"multer": "^1.4.5-lts.1",
|
59
56
|
"patch-package": "^8.0.0",
|
60
57
|
"reflect-metadata": "^0.2.0",
|
61
58
|
"string-comparison": "^1.3.0",
|
@@ -73,6 +70,7 @@
|
|
73
70
|
"@types/jest": "^29.5.2",
|
74
71
|
"@types/json-to-pretty-yaml": "^1.2.1",
|
75
72
|
"@types/luxon": "^3.4.2",
|
73
|
+
"@types/multer": "^1.4.12",
|
76
74
|
"@types/node": "^20.3.1",
|
77
75
|
"@types/supertest": "^6.0.0",
|
78
76
|
"@typescript-eslint/eslint-plugin": "^8.8.0",
|
@@ -88,7 +86,7 @@
|
|
88
86
|
"luxon": "^3.5.0",
|
89
87
|
"openapi-typescript": "^7.0.0-rc.0",
|
90
88
|
"prettier": "^3.0.0",
|
91
|
-
"prisma": "^5.
|
89
|
+
"prisma": "^5.22.0",
|
92
90
|
"source-map-support": "^0.5.21",
|
93
91
|
"supertest": "^6.3.3",
|
94
92
|
"ts-jest": "^29.1.0",
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { z } from 'zod';
|
2
|
-
export declare const csvDownloadSchema: z.ZodObject<{
|
3
|
-
password: z.ZodString;
|
4
|
-
}, "strip", z.ZodTypeAny, {
|
5
|
-
password: string;
|
6
|
-
}, {
|
7
|
-
password: string;
|
8
|
-
}>;
|
9
|
-
declare const CsvDownloadDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
10
|
-
password: z.ZodString;
|
11
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
12
|
-
password: string;
|
13
|
-
}, {
|
14
|
-
password: string;
|
15
|
-
}>>;
|
16
|
-
export declare class CsvDownloadDto extends CsvDownloadDto_base {
|
17
|
-
}
|
18
|
-
export {};
|
@@ -1,17 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CsvDownloadDto = exports.csvDownloadSchema = void 0;
|
4
|
-
const translate_1 = require("../../i18n/translate");
|
5
|
-
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
6
|
-
const zod_1 = require("zod");
|
7
|
-
exports.csvDownloadSchema = zod_1.z.object({
|
8
|
-
password: zod_1.z
|
9
|
-
.string({
|
10
|
-
required_error: (0, translate_1.translate)('model.csv.password.required'),
|
11
|
-
})
|
12
|
-
.min(1, (0, translate_1.translate)('model.csv.password.empty')),
|
13
|
-
});
|
14
|
-
class CsvDownloadDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.csvDownloadSchema) {
|
15
|
-
}
|
16
|
-
exports.CsvDownloadDto = CsvDownloadDto;
|
17
|
-
//# sourceMappingURL=csv.dto.js.map
|
@@ -1,23 +0,0 @@
|
|
1
|
-
/// <reference types="node" />
|
2
|
-
import { z } from 'zod';
|
3
|
-
export declare const downloadAllTablesSchema: z.ZodObject<{
|
4
|
-
password: z.ZodString;
|
5
|
-
}, "strip", z.ZodTypeAny, {
|
6
|
-
password: string;
|
7
|
-
}, {
|
8
|
-
password: string;
|
9
|
-
}>;
|
10
|
-
declare const DownloadAllTablesDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
11
|
-
password: z.ZodString;
|
12
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
13
|
-
password: string;
|
14
|
-
}, {
|
15
|
-
password: string;
|
16
|
-
}>>;
|
17
|
-
export declare class DownloadAllTablesDto extends DownloadAllTablesDto_base {
|
18
|
-
}
|
19
|
-
export declare const downloadAllTablesResponseSchema: z.ZodType<Buffer, z.ZodTypeDef, Buffer>;
|
20
|
-
declare const DownloadAllTablesResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodType<Buffer, z.ZodTypeDef, Buffer>>;
|
21
|
-
export declare class DownloadAllTablesResponseDto extends DownloadAllTablesResponseDto_base {
|
22
|
-
}
|
23
|
-
export {};
|
@@ -1,19 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DownloadAllTablesResponseDto = exports.downloadAllTablesResponseSchema = exports.DownloadAllTablesDto = exports.downloadAllTablesSchema = void 0;
|
4
|
-
const translate_1 = require("../../i18n/translate");
|
5
|
-
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
6
|
-
const zod_1 = require("zod");
|
7
|
-
exports.downloadAllTablesSchema = zod_1.z.object({
|
8
|
-
password: zod_1.z
|
9
|
-
.string({ required_error: (0, translate_1.translate)('model.csv.password.required') })
|
10
|
-
.min(1, (0, translate_1.translate)('model.csv.password.empty')),
|
11
|
-
});
|
12
|
-
class DownloadAllTablesDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.downloadAllTablesSchema) {
|
13
|
-
}
|
14
|
-
exports.DownloadAllTablesDto = DownloadAllTablesDto;
|
15
|
-
exports.downloadAllTablesResponseSchema = zod_1.z.instanceof(Buffer);
|
16
|
-
class DownloadAllTablesResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.downloadAllTablesResponseSchema) {
|
17
|
-
}
|
18
|
-
exports.DownloadAllTablesResponseDto = DownloadAllTablesResponseDto;
|
19
|
-
//# sourceMappingURL=download-all-tables.dto.js.map
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { z } from 'zod';
|
2
|
-
export declare const downloadProfilesSchema: z.ZodObject<{
|
3
|
-
password: z.ZodString;
|
4
|
-
}, "strip", z.ZodTypeAny, {
|
5
|
-
password: string;
|
6
|
-
}, {
|
7
|
-
password: string;
|
8
|
-
}>;
|
9
|
-
declare const DownloadProfilesDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
10
|
-
password: z.ZodString;
|
11
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
12
|
-
password: string;
|
13
|
-
}, {
|
14
|
-
password: string;
|
15
|
-
}>>;
|
16
|
-
export declare class DownloadProfilesDto extends DownloadProfilesDto_base {
|
17
|
-
}
|
18
|
-
export {};
|
@@ -1,15 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DownloadProfilesDto = exports.downloadProfilesSchema = void 0;
|
4
|
-
const translate_1 = require("../../i18n/translate");
|
5
|
-
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
6
|
-
const zod_1 = require("zod");
|
7
|
-
exports.downloadProfilesSchema = zod_1.z.object({
|
8
|
-
password: zod_1.z
|
9
|
-
.string({ required_error: (0, translate_1.translate)('model.csv.password.required') })
|
10
|
-
.min(1, (0, translate_1.translate)('model.csv.password.empty')),
|
11
|
-
});
|
12
|
-
class DownloadProfilesDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.downloadProfilesSchema) {
|
13
|
-
}
|
14
|
-
exports.DownloadProfilesDto = DownloadProfilesDto;
|
15
|
-
//# sourceMappingURL=download-profiles.dto.js.map
|
@@ -1,93 +0,0 @@
|
|
1
|
-
import z from 'zod';
|
2
|
-
export declare const createTemplateSchema: z.ZodObject<Pick<{
|
3
|
-
name: z.ZodEffects<z.ZodString, string, string>;
|
4
|
-
content: z.ZodString;
|
5
|
-
buttons: z.ZodArray<z.ZodString, "many">;
|
6
|
-
id: z.ZodString;
|
7
|
-
status: z.ZodNativeEnum<{
|
8
|
-
APRROVED: "APRROVED";
|
9
|
-
PENDING: "PENDING";
|
10
|
-
REJECTED: "REJECTED";
|
11
|
-
}>;
|
12
|
-
language: z.ZodString;
|
13
|
-
components: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
14
|
-
type: z.ZodLiteral<"BODY">;
|
15
|
-
text: z.ZodString;
|
16
|
-
}, "strip", z.ZodTypeAny, {
|
17
|
-
type: "BODY";
|
18
|
-
text: string;
|
19
|
-
}, {
|
20
|
-
type: "BODY";
|
21
|
-
text: string;
|
22
|
-
}>, z.ZodObject<{
|
23
|
-
type: z.ZodLiteral<"BUTTONS">;
|
24
|
-
buttons: z.ZodArray<z.ZodObject<{
|
25
|
-
text: z.ZodString;
|
26
|
-
type: z.ZodLiteral<"QUICK_REPLY">;
|
27
|
-
}, "strip", z.ZodTypeAny, {
|
28
|
-
type: "QUICK_REPLY";
|
29
|
-
text: string;
|
30
|
-
}, {
|
31
|
-
type: "QUICK_REPLY";
|
32
|
-
text: string;
|
33
|
-
}>, "many">;
|
34
|
-
}, "strip", z.ZodTypeAny, {
|
35
|
-
type: "BUTTONS";
|
36
|
-
buttons: {
|
37
|
-
type: "QUICK_REPLY";
|
38
|
-
text: string;
|
39
|
-
}[];
|
40
|
-
}, {
|
41
|
-
type: "BUTTONS";
|
42
|
-
buttons: {
|
43
|
-
type: "QUICK_REPLY";
|
44
|
-
text: string;
|
45
|
-
}[];
|
46
|
-
}>]>, "many">;
|
47
|
-
category: z.ZodNativeEnum<{
|
48
|
-
MARKETING: "MARKETING";
|
49
|
-
UTILITY: "UTILITY";
|
50
|
-
AUTHENTICATION: "AUTHENTICATION";
|
51
|
-
}>;
|
52
|
-
allow_category_change: z.ZodBoolean;
|
53
|
-
}, "name" | "content" | "buttons">, "strip", z.ZodTypeAny, {
|
54
|
-
name: string;
|
55
|
-
content: string;
|
56
|
-
buttons: string[];
|
57
|
-
}, {
|
58
|
-
name: string;
|
59
|
-
content: string;
|
60
|
-
buttons: string[];
|
61
|
-
}>;
|
62
|
-
declare const CreateTemplateDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
63
|
-
name: z.ZodEffects<z.ZodString, string, string>;
|
64
|
-
content: z.ZodString;
|
65
|
-
buttons: z.ZodArray<z.ZodString, "many">;
|
66
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
67
|
-
name: string;
|
68
|
-
content: string;
|
69
|
-
buttons: string[];
|
70
|
-
}, {
|
71
|
-
name: string;
|
72
|
-
content: string;
|
73
|
-
buttons: string[];
|
74
|
-
}>>;
|
75
|
-
export declare class CreateTemplateDto extends CreateTemplateDto_base {
|
76
|
-
}
|
77
|
-
export declare const createTemplateResponseSchema: z.ZodObject<{
|
78
|
-
message: z.ZodString;
|
79
|
-
}, "strip", z.ZodTypeAny, {
|
80
|
-
message: string;
|
81
|
-
}, {
|
82
|
-
message: string;
|
83
|
-
}>;
|
84
|
-
declare const CreateTemplateResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
85
|
-
message: z.ZodString;
|
86
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
87
|
-
message: string;
|
88
|
-
}, {
|
89
|
-
message: string;
|
90
|
-
}>>;
|
91
|
-
export declare class CreateTemplateResponseDto extends CreateTemplateResponseDto_base {
|
92
|
-
}
|
93
|
-
export {};
|
@@ -1,24 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.CreateTemplateResponseDto = exports.createTemplateResponseSchema = exports.CreateTemplateDto = exports.createTemplateSchema = void 0;
|
7
|
-
const template_dto_1 = require("./template.dto");
|
8
|
-
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
9
|
-
const zod_1 = __importDefault(require("zod"));
|
10
|
-
exports.createTemplateSchema = template_dto_1.templateSchema.pick({
|
11
|
-
name: true,
|
12
|
-
content: true,
|
13
|
-
buttons: true,
|
14
|
-
});
|
15
|
-
class CreateTemplateDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createTemplateSchema) {
|
16
|
-
}
|
17
|
-
exports.CreateTemplateDto = CreateTemplateDto;
|
18
|
-
exports.createTemplateResponseSchema = zod_1.default.object({
|
19
|
-
message: zod_1.default.string(),
|
20
|
-
});
|
21
|
-
class CreateTemplateResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createTemplateResponseSchema) {
|
22
|
-
}
|
23
|
-
exports.CreateTemplateResponseDto = CreateTemplateResponseDto;
|
24
|
-
//# sourceMappingURL=create-template.dto.js.map
|