@gigapay-dev/contracts 3.12.0 → 3.13.0
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/domains/collections/commands.d.ts +228 -0
- package/build/domains/collections/commands.d.ts.map +1 -0
- package/build/domains/collections/commands.js +61 -0
- package/build/domains/collections/commands.js.map +1 -0
- package/build/domains/collections/dtos.d.ts +168 -0
- package/build/domains/collections/dtos.d.ts.map +1 -0
- package/build/domains/collections/dtos.js +41 -0
- package/build/domains/collections/dtos.js.map +1 -0
- package/build/domains/collections/index.d.ts +278 -0
- package/build/domains/collections/index.d.ts.map +1 -0
- package/build/domains/collections/index.js +27 -0
- package/build/domains/collections/index.js.map +1 -0
- package/build/domains/collections/queries.d.ts +364 -0
- package/build/domains/collections/queries.d.ts.map +1 -0
- package/build/domains/collections/queries.js +42 -0
- package/build/domains/collections/queries.js.map +1 -0
- package/build/index.d.ts +275 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +3 -0
- package/build/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CollectionQueries = exports.GetAdminCollectionEndpoint = exports.ListAdminCollectionsEndpoint = exports.GetCollectionBySlugEndpoint = exports.CollectionProductsQuerySchema = exports.CollectionSortSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("../../shared/common");
|
|
6
|
+
const money_1 = require("../../shared/money");
|
|
7
|
+
const dtos_1 = require("./dtos");
|
|
8
|
+
exports.CollectionSortSchema = zod_1.z.enum(["manual", "popular"]);
|
|
9
|
+
exports.CollectionProductsQuerySchema = zod_1.z.object({
|
|
10
|
+
sort: exports.CollectionSortSchema.default("manual"),
|
|
11
|
+
skip: zod_1.z.coerce.number().int().nonnegative().default(0),
|
|
12
|
+
take: zod_1.z.coerce.number().int().positive().max(100).default(20),
|
|
13
|
+
currency: money_1.CurrencySchema.default("RUB"),
|
|
14
|
+
});
|
|
15
|
+
exports.GetCollectionBySlugEndpoint = {
|
|
16
|
+
method: "GET",
|
|
17
|
+
path: "/api/collections/:slug",
|
|
18
|
+
params: common_1.SlugParamSchema,
|
|
19
|
+
query: exports.CollectionProductsQuerySchema,
|
|
20
|
+
response: dtos_1.CollectionPageSchema,
|
|
21
|
+
};
|
|
22
|
+
exports.ListAdminCollectionsEndpoint = {
|
|
23
|
+
method: "GET",
|
|
24
|
+
path: "/api/admin/collections",
|
|
25
|
+
response: zod_1.z.array(dtos_1.AdminCollectionListItemSchema),
|
|
26
|
+
requiresAuth: true,
|
|
27
|
+
requiresAdmin: true,
|
|
28
|
+
};
|
|
29
|
+
exports.GetAdminCollectionEndpoint = {
|
|
30
|
+
method: "GET",
|
|
31
|
+
path: "/api/admin/collections/:id",
|
|
32
|
+
params: common_1.IdParamSchema,
|
|
33
|
+
response: dtos_1.AdminCollectionSchema,
|
|
34
|
+
requiresAuth: true,
|
|
35
|
+
requiresAdmin: true,
|
|
36
|
+
};
|
|
37
|
+
exports.CollectionQueries = {
|
|
38
|
+
getBySlug: exports.GetCollectionBySlugEndpoint,
|
|
39
|
+
adminList: exports.ListAdminCollectionsEndpoint,
|
|
40
|
+
adminGetById: exports.GetAdminCollectionEndpoint,
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=queries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queries.js","sourceRoot":"","sources":["../../../src/domains/collections/queries.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,gDAAqE;AACrE,8CAAoD;AAEpD,iCAAoG;AAEvF,QAAA,oBAAoB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC;AAGrD,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,IAAI,EAAE,4BAAoB,CAAC,OAAO,CAAC,QAAQ,CAAC;IAC5C,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IACtD,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7D,QAAQ,EAAE,sBAAc,CAAC,OAAO,CAAC,KAAK,CAAC;CACvC,CAAC,CAAC;AAGU,QAAA,2BAA2B,GAAG;IAC1C,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,wBAAwB;IAC9B,MAAM,EAAE,wBAAe;IACvB,KAAK,EAAE,qCAA6B;IACpC,QAAQ,EAAE,2BAAoB;CACM,CAAC;AAEzB,QAAA,4BAA4B,GAAG;IAC3C,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,wBAAwB;IAC9B,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,oCAA6B,CAAC;IAChD,YAAY,EAAE,IAAI;IAClB,aAAa,EAAE,IAAI;CACiB,CAAC;AAEzB,QAAA,0BAA0B,GAAG;IACzC,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,4BAA4B;IAClC,MAAM,EAAE,sBAAa;IACrB,QAAQ,EAAE,4BAAqB;IAC/B,YAAY,EAAE,IAAI;IAClB,aAAa,EAAE,IAAI;CACiB,CAAC;AAEzB,QAAA,iBAAiB,GAAG;IAChC,SAAS,EAAE,mCAA2B;IACtC,SAAS,EAAE,oCAA4B;IACvC,YAAY,EAAE,kCAA0B;CAC/B,CAAC"}
|
package/build/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from "./domains/auth";
|
|
|
3
3
|
export * from "./domains/users";
|
|
4
4
|
export * from "./domains/orders";
|
|
5
5
|
export * from "./domains/catalog";
|
|
6
|
+
export * from "./domains/collections";
|
|
6
7
|
export * from "./domains/products";
|
|
7
8
|
export * from "./domains/payments";
|
|
8
9
|
export * from "./domains/promo-codes";
|
|
@@ -804,6 +805,280 @@ export declare const AllEndpoints: {
|
|
|
804
805
|
}, import("zod/v4/core").$strip>;
|
|
805
806
|
};
|
|
806
807
|
};
|
|
808
|
+
readonly collections: {
|
|
809
|
+
readonly create: {
|
|
810
|
+
readonly method: "POST";
|
|
811
|
+
readonly path: "/api/admin/collections";
|
|
812
|
+
readonly request: import("zod").ZodObject<{
|
|
813
|
+
slug: import("zod").ZodString;
|
|
814
|
+
name: import("zod").ZodString;
|
|
815
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
816
|
+
imageUrl: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
817
|
+
isActive: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
818
|
+
}, import("zod/v4/core").$strip>;
|
|
819
|
+
readonly response: import("zod").ZodObject<{
|
|
820
|
+
id: import("zod").ZodNumber;
|
|
821
|
+
slug: import("zod").ZodString;
|
|
822
|
+
name: import("zod").ZodString;
|
|
823
|
+
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
824
|
+
imageUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
825
|
+
isActive: import("zod").ZodBoolean;
|
|
826
|
+
createdAt: import("zod").ZodString;
|
|
827
|
+
updatedAt: import("zod").ZodString;
|
|
828
|
+
version: import("zod").ZodNumber;
|
|
829
|
+
}, import("zod/v4/core").$strip>;
|
|
830
|
+
readonly requiresAuth: true;
|
|
831
|
+
readonly requiresAdmin: true;
|
|
832
|
+
};
|
|
833
|
+
readonly update: {
|
|
834
|
+
readonly method: "PATCH";
|
|
835
|
+
readonly path: "/api/admin/collections/:id";
|
|
836
|
+
readonly params: import("zod").ZodObject<{
|
|
837
|
+
id: import("zod").ZodCoercedNumber<unknown>;
|
|
838
|
+
}, import("zod/v4/core").$strip>;
|
|
839
|
+
readonly request: import("zod").ZodObject<{
|
|
840
|
+
slug: import("zod").ZodOptional<import("zod").ZodString>;
|
|
841
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
842
|
+
description: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
843
|
+
imageUrl: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodURL>>;
|
|
844
|
+
isActive: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
845
|
+
}, import("zod/v4/core").$strip>;
|
|
846
|
+
readonly response: import("zod").ZodObject<{
|
|
847
|
+
id: import("zod").ZodNumber;
|
|
848
|
+
slug: import("zod").ZodString;
|
|
849
|
+
name: import("zod").ZodString;
|
|
850
|
+
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
851
|
+
imageUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
852
|
+
isActive: import("zod").ZodBoolean;
|
|
853
|
+
createdAt: import("zod").ZodString;
|
|
854
|
+
updatedAt: import("zod").ZodString;
|
|
855
|
+
version: import("zod").ZodNumber;
|
|
856
|
+
}, import("zod/v4/core").$strip>;
|
|
857
|
+
readonly requiresAuth: true;
|
|
858
|
+
readonly requiresAdmin: true;
|
|
859
|
+
};
|
|
860
|
+
readonly replaceProducts: {
|
|
861
|
+
readonly method: "PUT";
|
|
862
|
+
readonly path: "/api/admin/collections/:id/products";
|
|
863
|
+
readonly params: import("zod").ZodObject<{
|
|
864
|
+
id: import("zod").ZodCoercedNumber<unknown>;
|
|
865
|
+
}, import("zod/v4/core").$strip>;
|
|
866
|
+
readonly request: import("zod").ZodObject<{
|
|
867
|
+
productIds: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
868
|
+
}, import("zod/v4/core").$strip>;
|
|
869
|
+
readonly response: import("zod").ZodObject<{
|
|
870
|
+
id: import("zod").ZodNumber;
|
|
871
|
+
slug: import("zod").ZodString;
|
|
872
|
+
name: import("zod").ZodString;
|
|
873
|
+
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
874
|
+
imageUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
875
|
+
isActive: import("zod").ZodBoolean;
|
|
876
|
+
createdAt: import("zod").ZodString;
|
|
877
|
+
updatedAt: import("zod").ZodString;
|
|
878
|
+
version: import("zod").ZodNumber;
|
|
879
|
+
products: import("zod").ZodArray<import("zod").ZodObject<{
|
|
880
|
+
productId: import("zod").ZodNumber;
|
|
881
|
+
collectionId: import("zod").ZodNumber;
|
|
882
|
+
sortOrder: import("zod").ZodNumber;
|
|
883
|
+
product: import("zod").ZodObject<{
|
|
884
|
+
id: import("zod").ZodNumber;
|
|
885
|
+
slug: import("zod").ZodString;
|
|
886
|
+
title: import("zod").ZodString;
|
|
887
|
+
status: import("zod").ZodEnum<{
|
|
888
|
+
OUT_OF_STOCK: "OUT_OF_STOCK";
|
|
889
|
+
ACTIVE: "ACTIVE";
|
|
890
|
+
DRAFT: "DRAFT";
|
|
891
|
+
ARCHIVED: "ARCHIVED";
|
|
892
|
+
}>;
|
|
893
|
+
}, import("zod/v4/core").$strip>;
|
|
894
|
+
}, import("zod/v4/core").$strip>>;
|
|
895
|
+
}, import("zod/v4/core").$strip>;
|
|
896
|
+
readonly requiresAuth: true;
|
|
897
|
+
readonly requiresAdmin: true;
|
|
898
|
+
};
|
|
899
|
+
readonly delete: {
|
|
900
|
+
readonly method: "DELETE";
|
|
901
|
+
readonly path: "/api/admin/collections/:id";
|
|
902
|
+
readonly params: import("zod").ZodObject<{
|
|
903
|
+
id: import("zod").ZodCoercedNumber<unknown>;
|
|
904
|
+
}, import("zod/v4/core").$strip>;
|
|
905
|
+
readonly response: import("zod").ZodObject<{
|
|
906
|
+
ok: import("zod").ZodLiteral<true>;
|
|
907
|
+
}, import("zod/v4/core").$strip>;
|
|
908
|
+
readonly requiresAuth: true;
|
|
909
|
+
readonly requiresAdmin: true;
|
|
910
|
+
};
|
|
911
|
+
readonly getBySlug: {
|
|
912
|
+
readonly method: "GET";
|
|
913
|
+
readonly path: "/api/collections/:slug";
|
|
914
|
+
readonly params: import("zod").ZodObject<{
|
|
915
|
+
slug: import("zod").ZodString;
|
|
916
|
+
}, import("zod/v4/core").$strip>;
|
|
917
|
+
readonly query: import("zod").ZodObject<{
|
|
918
|
+
sort: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
919
|
+
manual: "manual";
|
|
920
|
+
popular: "popular";
|
|
921
|
+
}>>;
|
|
922
|
+
skip: import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
|
|
923
|
+
take: import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
|
|
924
|
+
currency: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
925
|
+
USD: "USD";
|
|
926
|
+
RUB: "RUB";
|
|
927
|
+
UAH: "UAH";
|
|
928
|
+
KZT: "KZT";
|
|
929
|
+
}>>;
|
|
930
|
+
}, import("zod/v4/core").$strip>;
|
|
931
|
+
readonly response: import("zod").ZodObject<{
|
|
932
|
+
collection: import("zod").ZodObject<{
|
|
933
|
+
id: import("zod").ZodNumber;
|
|
934
|
+
slug: import("zod").ZodString;
|
|
935
|
+
name: import("zod").ZodString;
|
|
936
|
+
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
937
|
+
imageUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
938
|
+
isActive: import("zod").ZodBoolean;
|
|
939
|
+
createdAt: import("zod").ZodString;
|
|
940
|
+
updatedAt: import("zod").ZodString;
|
|
941
|
+
version: import("zod").ZodNumber;
|
|
942
|
+
}, import("zod/v4/core").$strip>;
|
|
943
|
+
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
944
|
+
id: import("zod").ZodNumber;
|
|
945
|
+
slug: import("zod").ZodString;
|
|
946
|
+
title: import("zod").ZodString;
|
|
947
|
+
type: import("zod").ZodEnum<{
|
|
948
|
+
GAME_KEY: "GAME_KEY";
|
|
949
|
+
GAME_GIFT: "GAME_GIFT";
|
|
950
|
+
TOPUP: "TOPUP";
|
|
951
|
+
SUBSCRIPTION: "SUBSCRIPTION";
|
|
952
|
+
IN_GAME_ITEM: "IN_GAME_ITEM";
|
|
953
|
+
DLC: "DLC";
|
|
954
|
+
CURRENCY: "CURRENCY";
|
|
955
|
+
VOUCHER: "VOUCHER";
|
|
956
|
+
}>;
|
|
957
|
+
status: import("zod").ZodEnum<{
|
|
958
|
+
OUT_OF_STOCK: "OUT_OF_STOCK";
|
|
959
|
+
ACTIVE: "ACTIVE";
|
|
960
|
+
DRAFT: "DRAFT";
|
|
961
|
+
ARCHIVED: "ARCHIVED";
|
|
962
|
+
}>;
|
|
963
|
+
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
964
|
+
shortDescription: import("zod").ZodNullable<import("zod").ZodString>;
|
|
965
|
+
coverImageUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
966
|
+
basePrice: import("zod").ZodObject<{
|
|
967
|
+
usd: import("zod").ZodString;
|
|
968
|
+
rub: import("zod").ZodString;
|
|
969
|
+
uah: import("zod").ZodString;
|
|
970
|
+
kzt: import("zod").ZodString;
|
|
971
|
+
}, import("zod/v4/core").$strip>;
|
|
972
|
+
popularityScore: import("zod").ZodNumber;
|
|
973
|
+
seo: import("zod").ZodObject<{
|
|
974
|
+
metaTitle: import("zod").ZodString;
|
|
975
|
+
metaDescription: import("zod").ZodString;
|
|
976
|
+
ogImageUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
977
|
+
canonicalPath: import("zod").ZodString;
|
|
978
|
+
breadcrumb: import("zod").ZodArray<import("zod").ZodObject<{
|
|
979
|
+
id: import("zod").ZodNumber;
|
|
980
|
+
slug: import("zod").ZodString;
|
|
981
|
+
name: import("zod").ZodString;
|
|
982
|
+
}, import("zod/v4/core").$strip>>;
|
|
983
|
+
}, import("zod/v4/core").$strip>;
|
|
984
|
+
variants: import("zod").ZodArray<import("zod").ZodObject<{
|
|
985
|
+
id: import("zod").ZodNumber;
|
|
986
|
+
name: import("zod").ZodString;
|
|
987
|
+
sku: import("zod").ZodString;
|
|
988
|
+
imageUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
989
|
+
price: import("zod").ZodObject<{
|
|
990
|
+
usd: import("zod").ZodString;
|
|
991
|
+
rub: import("zod").ZodString;
|
|
992
|
+
uah: import("zod").ZodString;
|
|
993
|
+
kzt: import("zod").ZodString;
|
|
994
|
+
}, import("zod/v4/core").$strip>;
|
|
995
|
+
deliveryType: import("zod").ZodEnum<{
|
|
996
|
+
AUTOMATIC: "AUTOMATIC";
|
|
997
|
+
MANUAL: "MANUAL";
|
|
998
|
+
BOT: "BOT";
|
|
999
|
+
}>;
|
|
1000
|
+
desslyServiceType: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
1001
|
+
VOUCHER: "VOUCHER";
|
|
1002
|
+
STEAM_TOPUP: "STEAM_TOPUP";
|
|
1003
|
+
STEAM_GIFT: "STEAM_GIFT";
|
|
1004
|
+
MOBILE_REFILL: "MOBILE_REFILL";
|
|
1005
|
+
CRYPTO_REFILL: "CRYPTO_REFILL";
|
|
1006
|
+
}>>;
|
|
1007
|
+
isActive: import("zod").ZodBoolean;
|
|
1008
|
+
}, import("zod/v4/core").$strip>>;
|
|
1009
|
+
media: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1010
|
+
id: import("zod").ZodNumber;
|
|
1011
|
+
type: import("zod").ZodEnum<{
|
|
1012
|
+
IMAGE: "IMAGE";
|
|
1013
|
+
VIDEO: "VIDEO";
|
|
1014
|
+
}>;
|
|
1015
|
+
url: import("zod").ZodString;
|
|
1016
|
+
thumbnailUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1017
|
+
sortOrder: import("zod").ZodNumber;
|
|
1018
|
+
}, import("zod/v4/core").$strip>>;
|
|
1019
|
+
}, import("zod/v4/core").$strip>>;
|
|
1020
|
+
total: import("zod").ZodNumber;
|
|
1021
|
+
skip: import("zod").ZodNumber;
|
|
1022
|
+
take: import("zod").ZodNumber;
|
|
1023
|
+
}, import("zod/v4/core").$strip>;
|
|
1024
|
+
};
|
|
1025
|
+
readonly adminList: {
|
|
1026
|
+
readonly method: "GET";
|
|
1027
|
+
readonly path: "/api/admin/collections";
|
|
1028
|
+
readonly response: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1029
|
+
id: import("zod").ZodNumber;
|
|
1030
|
+
slug: import("zod").ZodString;
|
|
1031
|
+
name: import("zod").ZodString;
|
|
1032
|
+
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1033
|
+
imageUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1034
|
+
isActive: import("zod").ZodBoolean;
|
|
1035
|
+
createdAt: import("zod").ZodString;
|
|
1036
|
+
updatedAt: import("zod").ZodString;
|
|
1037
|
+
version: import("zod").ZodNumber;
|
|
1038
|
+
_count: import("zod").ZodObject<{
|
|
1039
|
+
products: import("zod").ZodNumber;
|
|
1040
|
+
}, import("zod/v4/core").$strip>;
|
|
1041
|
+
}, import("zod/v4/core").$strip>>;
|
|
1042
|
+
readonly requiresAuth: true;
|
|
1043
|
+
readonly requiresAdmin: true;
|
|
1044
|
+
};
|
|
1045
|
+
readonly adminGetById: {
|
|
1046
|
+
readonly method: "GET";
|
|
1047
|
+
readonly path: "/api/admin/collections/:id";
|
|
1048
|
+
readonly params: import("zod").ZodObject<{
|
|
1049
|
+
id: import("zod").ZodCoercedNumber<unknown>;
|
|
1050
|
+
}, import("zod/v4/core").$strip>;
|
|
1051
|
+
readonly response: import("zod").ZodObject<{
|
|
1052
|
+
id: import("zod").ZodNumber;
|
|
1053
|
+
slug: import("zod").ZodString;
|
|
1054
|
+
name: import("zod").ZodString;
|
|
1055
|
+
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1056
|
+
imageUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1057
|
+
isActive: import("zod").ZodBoolean;
|
|
1058
|
+
createdAt: import("zod").ZodString;
|
|
1059
|
+
updatedAt: import("zod").ZodString;
|
|
1060
|
+
version: import("zod").ZodNumber;
|
|
1061
|
+
products: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1062
|
+
productId: import("zod").ZodNumber;
|
|
1063
|
+
collectionId: import("zod").ZodNumber;
|
|
1064
|
+
sortOrder: import("zod").ZodNumber;
|
|
1065
|
+
product: import("zod").ZodObject<{
|
|
1066
|
+
id: import("zod").ZodNumber;
|
|
1067
|
+
slug: import("zod").ZodString;
|
|
1068
|
+
title: import("zod").ZodString;
|
|
1069
|
+
status: import("zod").ZodEnum<{
|
|
1070
|
+
OUT_OF_STOCK: "OUT_OF_STOCK";
|
|
1071
|
+
ACTIVE: "ACTIVE";
|
|
1072
|
+
DRAFT: "DRAFT";
|
|
1073
|
+
ARCHIVED: "ARCHIVED";
|
|
1074
|
+
}>;
|
|
1075
|
+
}, import("zod/v4/core").$strip>;
|
|
1076
|
+
}, import("zod/v4/core").$strip>>;
|
|
1077
|
+
}, import("zod/v4/core").$strip>;
|
|
1078
|
+
readonly requiresAuth: true;
|
|
1079
|
+
readonly requiresAdmin: true;
|
|
1080
|
+
};
|
|
1081
|
+
};
|
|
807
1082
|
readonly products: {
|
|
808
1083
|
readonly create: {
|
|
809
1084
|
readonly method: "POST";
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAaf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC;AAE/C,MAAM,MAAM,SAAS,GAAG,MAAM,YAAY,CAAC;AAC3C,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,SAAS,IAAI,MAAM,YAAY,CAAC,CAAC,CAAC,CAAC;AACrE,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,SAAS,EAAE,CAAC,SAAS,WAAW,CAAC,CAAC,CAAC,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
package/build/index.js
CHANGED
|
@@ -20,6 +20,7 @@ __exportStar(require("./domains/auth"), exports);
|
|
|
20
20
|
__exportStar(require("./domains/users"), exports);
|
|
21
21
|
__exportStar(require("./domains/orders"), exports);
|
|
22
22
|
__exportStar(require("./domains/catalog"), exports);
|
|
23
|
+
__exportStar(require("./domains/collections"), exports);
|
|
23
24
|
__exportStar(require("./domains/products"), exports);
|
|
24
25
|
__exportStar(require("./domains/payments"), exports);
|
|
25
26
|
__exportStar(require("./domains/promo-codes"), exports);
|
|
@@ -31,6 +32,7 @@ const auth_1 = require("./domains/auth");
|
|
|
31
32
|
const users_1 = require("./domains/users");
|
|
32
33
|
const orders_1 = require("./domains/orders");
|
|
33
34
|
const catalog_1 = require("./domains/catalog");
|
|
35
|
+
const collections_1 = require("./domains/collections");
|
|
34
36
|
const products_1 = require("./domains/products");
|
|
35
37
|
const payments_1 = require("./domains/payments");
|
|
36
38
|
const promo_codes_1 = require("./domains/promo-codes");
|
|
@@ -43,6 +45,7 @@ exports.AllEndpoints = {
|
|
|
43
45
|
users: users_1.UsersEndpoints,
|
|
44
46
|
orders: orders_1.OrderEndpoints,
|
|
45
47
|
catalog: catalog_1.CatalogEndpoints,
|
|
48
|
+
collections: collections_1.CollectionEndpoints,
|
|
46
49
|
products: products_1.ProductEndpoints,
|
|
47
50
|
payments: payments_1.PaymentEndpoints,
|
|
48
51
|
promoCodes: promo_codes_1.PromoCodeEndpoints,
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,iDAA+B;AAC/B,kDAAgC;AAChC,mDAAiC;AACjC,oDAAkC;AAClC,qDAAmC;AACnC,qDAAmC;AACnC,wDAAsC;AACtC,kDAAgC;AAChC,mDAAiC;AACjC,kDAAgC;AAChC,sDAAoC;AAEpC,yCAA+C;AAC/C,2CAAiD;AACjD,6CAAkD;AAClD,+CAAqD;AACrD,iDAAsD;AACtD,iDAAsD;AACtD,uDAA2D;AAC3D,2CAAiD;AACjD,6CAAmD;AACnD,2CAAiD;AACjD,mDAAyD;AAE5C,QAAA,YAAY,GAAG;IAC3B,IAAI,EAAE,oBAAa;IACnB,KAAK,EAAE,sBAAc;IACrB,MAAM,EAAE,uBAAc;IACtB,OAAO,EAAE,0BAAgB;IACzB,QAAQ,EAAE,2BAAgB;IAC1B,QAAQ,EAAE,2BAAgB;IAC1B,UAAU,EAAE,gCAAkB;IAC9B,KAAK,EAAE,sBAAc;IACrB,MAAM,EAAE,wBAAe;IACvB,KAAK,EAAE,sBAAc;IACrB,SAAS,EAAE,8BAAkB;CACpB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,iDAA+B;AAC/B,kDAAgC;AAChC,mDAAiC;AACjC,oDAAkC;AAClC,wDAAsC;AACtC,qDAAmC;AACnC,qDAAmC;AACnC,wDAAsC;AACtC,kDAAgC;AAChC,mDAAiC;AACjC,kDAAgC;AAChC,sDAAoC;AAEpC,yCAA+C;AAC/C,2CAAiD;AACjD,6CAAkD;AAClD,+CAAqD;AACrD,uDAA4D;AAC5D,iDAAsD;AACtD,iDAAsD;AACtD,uDAA2D;AAC3D,2CAAiD;AACjD,6CAAmD;AACnD,2CAAiD;AACjD,mDAAyD;AAE5C,QAAA,YAAY,GAAG;IAC3B,IAAI,EAAE,oBAAa;IACnB,KAAK,EAAE,sBAAc;IACrB,MAAM,EAAE,uBAAc;IACtB,OAAO,EAAE,0BAAgB;IACzB,WAAW,EAAE,iCAAmB;IAChC,QAAQ,EAAE,2BAAgB;IAC1B,QAAQ,EAAE,2BAAgB;IAC1B,UAAU,EAAE,gCAAkB;IAC9B,KAAK,EAAE,sBAAc;IACrB,MAAM,EAAE,wBAAe;IACvB,KAAK,EAAE,sBAAc;IACrB,SAAS,EAAE,8BAAkB;CACpB,CAAC"}
|
package/package.json
CHANGED