@customafk/lunas-api-sdk 0.0.57 → 0.0.59
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/index.d.cts +95 -11
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +95 -11
- package/dist/index.d.mts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -68,6 +68,7 @@ declare enum EProductStatus {
|
|
|
68
68
|
declare enum EProductInventoryStatus {
|
|
69
69
|
IN_STOCK = 'in_stock',
|
|
70
70
|
OUT_OF_STOCK = 'out_of_stock',
|
|
71
|
+
ORDER = 'order',
|
|
71
72
|
PREORDER = 'preorder',
|
|
72
73
|
}
|
|
73
74
|
declare enum ECartStatus {
|
|
@@ -2677,7 +2678,6 @@ declare const _func: () => {
|
|
|
2677
2678
|
createdAt: Date;
|
|
2678
2679
|
updatedAt: Date;
|
|
2679
2680
|
id: string;
|
|
2680
|
-
orderUuid: string;
|
|
2681
2681
|
paymentType: "DEPOSIT" | "FULL_PAYMENT" | "PARTIAL_PAYMENT" | "FEE" | "ADJUSTMENT" | "OTHER";
|
|
2682
2682
|
orderStatus: "CANCELLED" | "CAPTURED" | "AUTHENTICATION_NOT_NEEDED";
|
|
2683
2683
|
orderAmount: number;
|
|
@@ -2686,6 +2686,13 @@ declare const _func: () => {
|
|
|
2686
2686
|
authenticationStatus: string | null;
|
|
2687
2687
|
signature: string;
|
|
2688
2688
|
checkoutUrl: string;
|
|
2689
|
+
order: {
|
|
2690
|
+
name: string | null;
|
|
2691
|
+
uuid: string;
|
|
2692
|
+
status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
|
|
2693
|
+
orderType: "ORDER" | "IN-STOCK";
|
|
2694
|
+
orderCode: string;
|
|
2695
|
+
};
|
|
2689
2696
|
}[];
|
|
2690
2697
|
pagination: {
|
|
2691
2698
|
page: number;
|
|
@@ -2782,10 +2789,11 @@ declare const _func: () => {
|
|
|
2782
2789
|
height: number | null;
|
|
2783
2790
|
dimensionUnit: string | null;
|
|
2784
2791
|
createdBy: string;
|
|
2792
|
+
productLink: string | null;
|
|
2785
2793
|
quantity: number | null;
|
|
2786
2794
|
country: string | null;
|
|
2787
|
-
productStatus:
|
|
2788
|
-
inventoryStatus:
|
|
2795
|
+
productStatus: "draft" | "review" | "published" | "cancelled";
|
|
2796
|
+
inventoryStatus: "order" | "in_stock" | "out_of_stock" | "preorder" | null;
|
|
2789
2797
|
rating: number | null;
|
|
2790
2798
|
totalRating: number | null;
|
|
2791
2799
|
ratingCount: unknown;
|
|
@@ -3025,10 +3033,11 @@ declare const _func: () => {
|
|
|
3025
3033
|
createdBy: string;
|
|
3026
3034
|
shortDescription: string | null;
|
|
3027
3035
|
richDescription: unknown;
|
|
3036
|
+
productLink: string | null;
|
|
3028
3037
|
quantity: number | null;
|
|
3029
3038
|
country: string | null;
|
|
3030
|
-
productStatus:
|
|
3031
|
-
inventoryStatus:
|
|
3039
|
+
productStatus: "draft" | "review" | "published" | "cancelled";
|
|
3040
|
+
inventoryStatus: "order" | "in_stock" | "out_of_stock" | "preorder" | null;
|
|
3032
3041
|
rating: number | null;
|
|
3033
3042
|
totalRating: number | null;
|
|
3034
3043
|
ratingCount: unknown;
|
|
@@ -3231,8 +3240,8 @@ declare const _func: () => {
|
|
|
3231
3240
|
createdBy: string;
|
|
3232
3241
|
quantity: number | null;
|
|
3233
3242
|
country: string | null;
|
|
3234
|
-
productStatus:
|
|
3235
|
-
inventoryStatus:
|
|
3243
|
+
productStatus: "draft" | "review" | "published" | "cancelled";
|
|
3244
|
+
inventoryStatus: "order" | "in_stock" | "out_of_stock" | "preorder" | null;
|
|
3236
3245
|
preOrderStartDate: Date | null;
|
|
3237
3246
|
preOrderEndDate: Date | null;
|
|
3238
3247
|
releaseDate: Date | null;
|
|
@@ -3314,8 +3323,8 @@ declare const _func: () => {
|
|
|
3314
3323
|
retailCost: number | null;
|
|
3315
3324
|
quantity: number | null;
|
|
3316
3325
|
country: string | null;
|
|
3317
|
-
productStatus:
|
|
3318
|
-
inventoryStatus:
|
|
3326
|
+
productStatus: "draft" | "review" | "published" | "cancelled";
|
|
3327
|
+
inventoryStatus: "order" | "in_stock" | "out_of_stock" | "preorder" | null;
|
|
3319
3328
|
medias: {
|
|
3320
3329
|
mediaUuid: string;
|
|
3321
3330
|
isThumbnail: boolean | null;
|
|
@@ -3348,6 +3357,7 @@ declare const _func: () => {
|
|
|
3348
3357
|
patch: (body?: {
|
|
3349
3358
|
name?: string | undefined;
|
|
3350
3359
|
description?: string | null | undefined;
|
|
3360
|
+
productLink?: string | null | undefined;
|
|
3351
3361
|
standardCost?: number | null | undefined;
|
|
3352
3362
|
quantity?: number | null | undefined;
|
|
3353
3363
|
country?: ECountry | undefined;
|
|
@@ -3680,7 +3690,7 @@ declare const _func: () => {
|
|
|
3680
3690
|
createdBy: string;
|
|
3681
3691
|
name: string;
|
|
3682
3692
|
slug: string;
|
|
3683
|
-
productStatus:
|
|
3693
|
+
productStatus: "draft" | "review" | "published" | "cancelled";
|
|
3684
3694
|
createdAt: Date | null;
|
|
3685
3695
|
updatedAt: Date | null;
|
|
3686
3696
|
};
|
|
@@ -4353,6 +4363,79 @@ declare const _func: () => {
|
|
|
4353
4363
|
}>>;
|
|
4354
4364
|
};
|
|
4355
4365
|
};
|
|
4366
|
+
transactions: {
|
|
4367
|
+
get: (options?: {
|
|
4368
|
+
headers?: {} | undefined;
|
|
4369
|
+
query?: {
|
|
4370
|
+
search?: string | undefined;
|
|
4371
|
+
limit?: number | undefined;
|
|
4372
|
+
page?: number | undefined;
|
|
4373
|
+
} | undefined;
|
|
4374
|
+
fetch?: RequestInit | undefined;
|
|
4375
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
4376
|
+
200: {
|
|
4377
|
+
success: false;
|
|
4378
|
+
statusCode: number;
|
|
4379
|
+
data: null;
|
|
4380
|
+
message: string;
|
|
4381
|
+
error: TResponseError;
|
|
4382
|
+
meta: TResponseMeta;
|
|
4383
|
+
} | {
|
|
4384
|
+
success: true;
|
|
4385
|
+
statusCode: number;
|
|
4386
|
+
data: {
|
|
4387
|
+
data: {
|
|
4388
|
+
id: string;
|
|
4389
|
+
paymentId: string;
|
|
4390
|
+
paymentMethod: string;
|
|
4391
|
+
transactionId: string;
|
|
4392
|
+
transactionType: "PAYMENT" | "REFUND" | null;
|
|
4393
|
+
transactionDate: string;
|
|
4394
|
+
transactionStatus: "APPROVED" | "DECLINED";
|
|
4395
|
+
transactionAmount: string;
|
|
4396
|
+
payment: {
|
|
4397
|
+
createdAt: Date;
|
|
4398
|
+
updatedAt: Date;
|
|
4399
|
+
id: string;
|
|
4400
|
+
paymentType: "DEPOSIT" | "FULL_PAYMENT" | "PARTIAL_PAYMENT" | "FEE" | "ADJUSTMENT" | "OTHER";
|
|
4401
|
+
orderStatus: "CANCELLED" | "CAPTURED" | "AUTHENTICATION_NOT_NEEDED";
|
|
4402
|
+
orderAmount: number;
|
|
4403
|
+
orderCurrency: string;
|
|
4404
|
+
orderDescription: string;
|
|
4405
|
+
checkoutUrl: string;
|
|
4406
|
+
order: {
|
|
4407
|
+
name: string | null;
|
|
4408
|
+
uuid: string;
|
|
4409
|
+
status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
|
|
4410
|
+
orderType: "ORDER" | "IN-STOCK";
|
|
4411
|
+
orderCode: string;
|
|
4412
|
+
};
|
|
4413
|
+
};
|
|
4414
|
+
}[];
|
|
4415
|
+
pagination: {
|
|
4416
|
+
page: number;
|
|
4417
|
+
limit: number;
|
|
4418
|
+
total: number;
|
|
4419
|
+
totalPages: number;
|
|
4420
|
+
hasNextPage: boolean;
|
|
4421
|
+
hasPreviousPage: boolean;
|
|
4422
|
+
};
|
|
4423
|
+
};
|
|
4424
|
+
message: null;
|
|
4425
|
+
error: null;
|
|
4426
|
+
meta: TResponseMeta;
|
|
4427
|
+
};
|
|
4428
|
+
422: {
|
|
4429
|
+
type: "validation";
|
|
4430
|
+
on: string;
|
|
4431
|
+
summary?: string;
|
|
4432
|
+
message?: string;
|
|
4433
|
+
found?: unknown;
|
|
4434
|
+
property?: string;
|
|
4435
|
+
expected?: string;
|
|
4436
|
+
};
|
|
4437
|
+
}>>;
|
|
4438
|
+
};
|
|
4356
4439
|
};
|
|
4357
4440
|
};
|
|
4358
4441
|
client: {
|
|
@@ -4730,10 +4813,11 @@ declare const _func: () => {
|
|
|
4730
4813
|
transaction_amount: string;
|
|
4731
4814
|
transaction_currency: string;
|
|
4732
4815
|
};
|
|
4816
|
+
agreement: any;
|
|
4733
4817
|
customer: {
|
|
4734
4818
|
id: string;
|
|
4735
4819
|
customer_id: string;
|
|
4736
|
-
};
|
|
4820
|
+
} | null;
|
|
4737
4821
|
}, options?: {
|
|
4738
4822
|
headers?: {} | undefined;
|
|
4739
4823
|
query?: {} | undefined;
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":["app","EMediaEntityType","EMimeType","EWeightUnit","EDimensionUnit","ECountry","ERole","EProvider","EProductStatus","EProductInventoryStatus","ECartStatus","ECartType","TResponsePagination","TResponseError","TResponseMeta","TResponse","T","TPayloadJwt","AppType"],"sources":["../../app/src/types.d.ts","../src/utils.ts"],"sourcesContent":["import type { app } from '.';\n\nexport enum EMediaEntityType {\n PRODUCT = 'product',\n EXTRA_PRODUCT = 'extra_product',\n VARIANT = 'variant',\n CATEGORY = 'category',\n BRAND = 'brand',\n BLOG_POST = 'blog_post',\n SERIES = 'series',\n}\n\nexport enum EMimeType {\n IMAGE_WEBP = 'image/webp',\n IMAGE_JPEG = 'image/jpeg',\n IMAGE_JPG = 'image/jpg',\n IMAGE_PNG = 'image/png',\n IMAGE_GIF = 'image/gif',\n IMAGE_AVIF = 'image/avif',\n IMAGE_SVG = 'image/svg+xml',\n}\n\nexport enum EWeightUnit {\n KG = 'kg',\n G = 'g',\n LB = 'lb',\n OZ = 'oz',\n}\n\nexport enum EDimensionUnit {\n CM = 'cm',\n M = 'm',\n INCH = 'inch',\n FT = 'ft',\n}\n\nexport enum ECountry {\n VIETNAM = 'Vietnam',\n USA = 'USA',\n JAPAN = 'Japan',\n KOREA = 'Korea',\n CHINA = 'China',\n TAIWAN = 'Taiwan',\n THAILAND = 'Thailand',\n MALAYSIA = 'Malaysia',\n SINGAPORE = 'Singapore',\n INDONESIA = 'Indonesia',\n}\n\nexport enum ERole {\n SUPER_ADMIN = 'SUPER_ADMIN',\n ADMIN = 'ADMIN',\n MODERATOR = 'MODERATOR',\n STAFF = 'STAFF',\n EDITOR = 'EDITOR',\n VIEWER = 'VIEWER',\n USER = 'USER',\n}\n\nexport enum EProvider {\n BASIC = 'BASIC',\n FACEBOOK = 'FACEBOOK',\n GOOGLE = 'GOOGLE',\n GITHUB = 'GITHUB',\n TWITTER = 'TWITTER',\n}\n\nexport enum EProductStatus {\n DRAFT = 'draft',\n REVIEW = 'review',\n PUBLISHED = 'published',\n CANCELLED = 'cancelled',\n}\n\nexport enum EProductInventoryStatus {\n IN_STOCK = 'in_stock',\n OUT_OF_STOCK = 'out_of_stock',\n PREORDER = 'preorder',\n}\n\nexport enum ECartStatus {\n ACTIVE = 'active',\n COMPLETED = 'completed',\n ABANDONED = 'abandoned',\n EXPIRED = 'expired',\n}\n\nexport enum ECartType {\n IN_STOCK = 'in_stock',\n ORDER = 'order',\n}\n\nexport type TResponsePagination = {\n page: number;\n limit: number;\n total: number;\n totalPages: number;\n hasNextPage: boolean;\n hasPreviousPage: boolean;\n};\n\nexport type TResponseError = {\n statusCode: number;\n message: string;\n reference?: string | null;\n fields?: {\n [key: string]: string[] | string;\n };\n};\n\nexport type TResponseMeta = {\n version: string;\n timestamp: string;\n path: string;\n pagination?: TResponsePagination;\n};\n\nexport type TResponse<T> = T extends string\n ?\n | {\n success: true;\n statusCode: number;\n data: null;\n message: string;\n error: null;\n meta: TResponseMeta;\n }\n | {\n success: false;\n statusCode: number;\n data: null;\n message: string;\n error: TResponseError;\n meta: TResponseMeta;\n }\n :\n | {\n success: true;\n statusCode: number;\n data: T;\n message: null;\n error: null;\n meta: TResponseMeta;\n }\n | {\n success: false;\n statusCode: number;\n data: null;\n message: string;\n error: TResponseError;\n meta: TResponseMeta;\n };\n\nexport type TPayloadJwt = {\n uuid: string;\n role: string;\n};\n\nexport type AppType = typeof app;\n"],"mappings":";;;aAEYC,gBAAAA;EAAZ,OAAYA,GAAAA,SAAAA;EAUZ,aAAYC,GAAS,eAAA;EAUrB,OAAYC,GAAAA,SAAW;EAOvB,QAAYC,GAAAA,UAAc;EAO1B,KAAYC,GAAAA,OAAQ;EAapB,SAAYC,GAAK,WAAA;EAUjB,MAAYC,GAAAA,QAAS;AAQrB;AAaYG,aApEAR,SAAAA;EA2EZ,UAAYS,GAAAA,YAAS;EAKrB,UAAYC,GAAAA,YAAmB;EAS/B,SAAYC,GAAAA,WAAc;EAS1B,SAAYC,GAAAA,WAAa;EAOzB,SAAYC,GAAAA,WAASC;EAAMA,UAAAA,GAAAA,YAAAA;EAQXF,SAAAA,GAAAA,eAAAA;;AAcAE,aArHJb,WAAAA;EAwHIW,EAAAA,GAAAA,IAAAA;EAOCD,CAAAA,GAAAA,GAAAA;EACDC,EAAAA,GAAAA,IAAAA;EAAa,EAAA,GAAA,IAAA;;aAzHjBV,cAAAA;EC1BwB,EAa9B,GAAA,IAAA;;;;;aDoBMC,QAAAA;;;;;;;;;;;;aAaAC,KAAAA;;;;;;;;;aAUAC,SAAAA;;;;;;;aAQAC,cAAAA;;;;;;aAOAC,uBAAAA;;;;;aAMAC,WAAAA;;;;;;aAOAC,SAAAA;;;;KAKAC,mBAAAA;;;;;;;;KASAC,cAAAA;;;;;;;;KASAC,aAAAA;;;;eAIGF;;KAGHG,eAAeC;;;;;;QAQXF;;;;;;SAOCD;QACDC;;;;QAMAE;;;QAGAF;;;;;;SAOCD;QACDC;;;;AApJhB,cCcM,KDdMb,E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B,QAAQ,WAAW;KAGhB,MAAA;;WAEM,KAAK,MAAA,CAAO;;cAGV,SAAA;;;;;eAQS;;0BAGI,wBAAwB;qBAC7B,wBAAwB;4BACjB;kCACM;8DAC4B;;;;;;;;KA6G3B;aAab;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAMA;YAID;;;;mBASF,YAAY,QAAQ;MACpC,QAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":["app","EMediaEntityType","EMimeType","EWeightUnit","EDimensionUnit","ECountry","ERole","EProvider","EProductStatus","EProductInventoryStatus","ECartStatus","ECartType","TResponsePagination","TResponseError","TResponseMeta","TResponse","T","TPayloadJwt","AppType"],"sources":["../../app/src/types.d.ts","../src/utils.ts"],"sourcesContent":["import type { app } from '.';\n\nexport enum EMediaEntityType {\n PRODUCT = 'product',\n EXTRA_PRODUCT = 'extra_product',\n VARIANT = 'variant',\n CATEGORY = 'category',\n BRAND = 'brand',\n BLOG_POST = 'blog_post',\n SERIES = 'series',\n}\n\nexport enum EMimeType {\n IMAGE_WEBP = 'image/webp',\n IMAGE_JPEG = 'image/jpeg',\n IMAGE_JPG = 'image/jpg',\n IMAGE_PNG = 'image/png',\n IMAGE_GIF = 'image/gif',\n IMAGE_AVIF = 'image/avif',\n IMAGE_SVG = 'image/svg+xml',\n}\n\nexport enum EWeightUnit {\n KG = 'kg',\n G = 'g',\n LB = 'lb',\n OZ = 'oz',\n}\n\nexport enum EDimensionUnit {\n CM = 'cm',\n M = 'm',\n INCH = 'inch',\n FT = 'ft',\n}\n\nexport enum ECountry {\n VIETNAM = 'Vietnam',\n USA = 'USA',\n JAPAN = 'Japan',\n KOREA = 'Korea',\n CHINA = 'China',\n TAIWAN = 'Taiwan',\n THAILAND = 'Thailand',\n MALAYSIA = 'Malaysia',\n SINGAPORE = 'Singapore',\n INDONESIA = 'Indonesia',\n}\n\nexport enum ERole {\n SUPER_ADMIN = 'SUPER_ADMIN',\n ADMIN = 'ADMIN',\n MODERATOR = 'MODERATOR',\n STAFF = 'STAFF',\n EDITOR = 'EDITOR',\n VIEWER = 'VIEWER',\n USER = 'USER',\n}\n\nexport enum EProvider {\n BASIC = 'BASIC',\n FACEBOOK = 'FACEBOOK',\n GOOGLE = 'GOOGLE',\n GITHUB = 'GITHUB',\n TWITTER = 'TWITTER',\n}\n\nexport enum EProductStatus {\n DRAFT = 'draft',\n REVIEW = 'review',\n PUBLISHED = 'published',\n CANCELLED = 'cancelled',\n}\n\nexport enum EProductInventoryStatus {\n IN_STOCK = 'in_stock',\n OUT_OF_STOCK = 'out_of_stock',\n ORDER = 'order',\n PREORDER = 'preorder',\n}\n\nexport enum ECartStatus {\n ACTIVE = 'active',\n COMPLETED = 'completed',\n ABANDONED = 'abandoned',\n EXPIRED = 'expired',\n}\n\nexport enum ECartType {\n IN_STOCK = 'in_stock',\n ORDER = 'order',\n}\n\nexport type TResponsePagination = {\n page: number;\n limit: number;\n total: number;\n totalPages: number;\n hasNextPage: boolean;\n hasPreviousPage: boolean;\n};\n\nexport type TResponseError = {\n statusCode: number;\n message: string;\n reference?: string | null;\n fields?: {\n [key: string]: string[] | string;\n };\n};\n\nexport type TResponseMeta = {\n version: string;\n timestamp: string;\n path: string;\n pagination?: TResponsePagination;\n};\n\nexport type TResponse<T> = T extends string\n ?\n | {\n success: true;\n statusCode: number;\n data: null;\n message: string;\n error: null;\n meta: TResponseMeta;\n }\n | {\n success: false;\n statusCode: number;\n data: null;\n message: string;\n error: TResponseError;\n meta: TResponseMeta;\n }\n :\n | {\n success: true;\n statusCode: number;\n data: T;\n message: null;\n error: null;\n meta: TResponseMeta;\n }\n | {\n success: false;\n statusCode: number;\n data: null;\n message: string;\n error: TResponseError;\n meta: TResponseMeta;\n };\n\nexport type TPayloadJwt = {\n uuid: string;\n role: string;\n};\n\nexport type AppType = typeof app;\n"],"mappings":";;;aAEYC,gBAAAA;EAAZ,OAAYA,GAAAA,SAAAA;EAUZ,aAAYC,GAAS,eAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAxKE,OAAA,GAAU,kBAAkB;KAErB,KAAA,GAAQ,MAAA,CAAO,KACzB,QAAQ,WAAW;KAGhB,MAAA;;WAEM,KAAK,MAAA,CAAO;;cAGV,SAAA;;;;;eAQS;;0BAGI,wBAAwB;qBAC7B,wBAAwB;4BACjB;kCACM;8DAC4B;;;;;;;;KA6G3B;aAab;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAMA;YAID;;;;mBASF,YAAY,QAAQ;MACpC,QAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -68,6 +68,7 @@ declare enum EProductStatus {
|
|
|
68
68
|
declare enum EProductInventoryStatus {
|
|
69
69
|
IN_STOCK = 'in_stock',
|
|
70
70
|
OUT_OF_STOCK = 'out_of_stock',
|
|
71
|
+
ORDER = 'order',
|
|
71
72
|
PREORDER = 'preorder',
|
|
72
73
|
}
|
|
73
74
|
declare enum ECartStatus {
|
|
@@ -2677,7 +2678,6 @@ declare const _func: () => {
|
|
|
2677
2678
|
createdAt: Date;
|
|
2678
2679
|
updatedAt: Date;
|
|
2679
2680
|
id: string;
|
|
2680
|
-
orderUuid: string;
|
|
2681
2681
|
paymentType: "DEPOSIT" | "FULL_PAYMENT" | "PARTIAL_PAYMENT" | "FEE" | "ADJUSTMENT" | "OTHER";
|
|
2682
2682
|
orderStatus: "CANCELLED" | "CAPTURED" | "AUTHENTICATION_NOT_NEEDED";
|
|
2683
2683
|
orderAmount: number;
|
|
@@ -2686,6 +2686,13 @@ declare const _func: () => {
|
|
|
2686
2686
|
authenticationStatus: string | null;
|
|
2687
2687
|
signature: string;
|
|
2688
2688
|
checkoutUrl: string;
|
|
2689
|
+
order: {
|
|
2690
|
+
name: string | null;
|
|
2691
|
+
uuid: string;
|
|
2692
|
+
status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
|
|
2693
|
+
orderType: "ORDER" | "IN-STOCK";
|
|
2694
|
+
orderCode: string;
|
|
2695
|
+
};
|
|
2689
2696
|
}[];
|
|
2690
2697
|
pagination: {
|
|
2691
2698
|
page: number;
|
|
@@ -2782,10 +2789,11 @@ declare const _func: () => {
|
|
|
2782
2789
|
height: number | null;
|
|
2783
2790
|
dimensionUnit: string | null;
|
|
2784
2791
|
createdBy: string;
|
|
2792
|
+
productLink: string | null;
|
|
2785
2793
|
quantity: number | null;
|
|
2786
2794
|
country: string | null;
|
|
2787
|
-
productStatus:
|
|
2788
|
-
inventoryStatus:
|
|
2795
|
+
productStatus: "draft" | "review" | "published" | "cancelled";
|
|
2796
|
+
inventoryStatus: "order" | "in_stock" | "out_of_stock" | "preorder" | null;
|
|
2789
2797
|
rating: number | null;
|
|
2790
2798
|
totalRating: number | null;
|
|
2791
2799
|
ratingCount: unknown;
|
|
@@ -3025,10 +3033,11 @@ declare const _func: () => {
|
|
|
3025
3033
|
createdBy: string;
|
|
3026
3034
|
shortDescription: string | null;
|
|
3027
3035
|
richDescription: unknown;
|
|
3036
|
+
productLink: string | null;
|
|
3028
3037
|
quantity: number | null;
|
|
3029
3038
|
country: string | null;
|
|
3030
|
-
productStatus:
|
|
3031
|
-
inventoryStatus:
|
|
3039
|
+
productStatus: "draft" | "review" | "published" | "cancelled";
|
|
3040
|
+
inventoryStatus: "order" | "in_stock" | "out_of_stock" | "preorder" | null;
|
|
3032
3041
|
rating: number | null;
|
|
3033
3042
|
totalRating: number | null;
|
|
3034
3043
|
ratingCount: unknown;
|
|
@@ -3231,8 +3240,8 @@ declare const _func: () => {
|
|
|
3231
3240
|
createdBy: string;
|
|
3232
3241
|
quantity: number | null;
|
|
3233
3242
|
country: string | null;
|
|
3234
|
-
productStatus:
|
|
3235
|
-
inventoryStatus:
|
|
3243
|
+
productStatus: "draft" | "review" | "published" | "cancelled";
|
|
3244
|
+
inventoryStatus: "order" | "in_stock" | "out_of_stock" | "preorder" | null;
|
|
3236
3245
|
preOrderStartDate: Date | null;
|
|
3237
3246
|
preOrderEndDate: Date | null;
|
|
3238
3247
|
releaseDate: Date | null;
|
|
@@ -3314,8 +3323,8 @@ declare const _func: () => {
|
|
|
3314
3323
|
retailCost: number | null;
|
|
3315
3324
|
quantity: number | null;
|
|
3316
3325
|
country: string | null;
|
|
3317
|
-
productStatus:
|
|
3318
|
-
inventoryStatus:
|
|
3326
|
+
productStatus: "draft" | "review" | "published" | "cancelled";
|
|
3327
|
+
inventoryStatus: "order" | "in_stock" | "out_of_stock" | "preorder" | null;
|
|
3319
3328
|
medias: {
|
|
3320
3329
|
mediaUuid: string;
|
|
3321
3330
|
isThumbnail: boolean | null;
|
|
@@ -3348,6 +3357,7 @@ declare const _func: () => {
|
|
|
3348
3357
|
patch: (body?: {
|
|
3349
3358
|
name?: string | undefined;
|
|
3350
3359
|
description?: string | null | undefined;
|
|
3360
|
+
productLink?: string | null | undefined;
|
|
3351
3361
|
standardCost?: number | null | undefined;
|
|
3352
3362
|
quantity?: number | null | undefined;
|
|
3353
3363
|
country?: ECountry | undefined;
|
|
@@ -3680,7 +3690,7 @@ declare const _func: () => {
|
|
|
3680
3690
|
createdBy: string;
|
|
3681
3691
|
name: string;
|
|
3682
3692
|
slug: string;
|
|
3683
|
-
productStatus:
|
|
3693
|
+
productStatus: "draft" | "review" | "published" | "cancelled";
|
|
3684
3694
|
createdAt: Date | null;
|
|
3685
3695
|
updatedAt: Date | null;
|
|
3686
3696
|
};
|
|
@@ -4353,6 +4363,79 @@ declare const _func: () => {
|
|
|
4353
4363
|
}>>;
|
|
4354
4364
|
};
|
|
4355
4365
|
};
|
|
4366
|
+
transactions: {
|
|
4367
|
+
get: (options?: {
|
|
4368
|
+
headers?: {} | undefined;
|
|
4369
|
+
query?: {
|
|
4370
|
+
search?: string | undefined;
|
|
4371
|
+
limit?: number | undefined;
|
|
4372
|
+
page?: number | undefined;
|
|
4373
|
+
} | undefined;
|
|
4374
|
+
fetch?: RequestInit | undefined;
|
|
4375
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
4376
|
+
200: {
|
|
4377
|
+
success: false;
|
|
4378
|
+
statusCode: number;
|
|
4379
|
+
data: null;
|
|
4380
|
+
message: string;
|
|
4381
|
+
error: TResponseError;
|
|
4382
|
+
meta: TResponseMeta;
|
|
4383
|
+
} | {
|
|
4384
|
+
success: true;
|
|
4385
|
+
statusCode: number;
|
|
4386
|
+
data: {
|
|
4387
|
+
data: {
|
|
4388
|
+
id: string;
|
|
4389
|
+
paymentId: string;
|
|
4390
|
+
paymentMethod: string;
|
|
4391
|
+
transactionId: string;
|
|
4392
|
+
transactionType: "PAYMENT" | "REFUND" | null;
|
|
4393
|
+
transactionDate: string;
|
|
4394
|
+
transactionStatus: "APPROVED" | "DECLINED";
|
|
4395
|
+
transactionAmount: string;
|
|
4396
|
+
payment: {
|
|
4397
|
+
createdAt: Date;
|
|
4398
|
+
updatedAt: Date;
|
|
4399
|
+
id: string;
|
|
4400
|
+
paymentType: "DEPOSIT" | "FULL_PAYMENT" | "PARTIAL_PAYMENT" | "FEE" | "ADJUSTMENT" | "OTHER";
|
|
4401
|
+
orderStatus: "CANCELLED" | "CAPTURED" | "AUTHENTICATION_NOT_NEEDED";
|
|
4402
|
+
orderAmount: number;
|
|
4403
|
+
orderCurrency: string;
|
|
4404
|
+
orderDescription: string;
|
|
4405
|
+
checkoutUrl: string;
|
|
4406
|
+
order: {
|
|
4407
|
+
name: string | null;
|
|
4408
|
+
uuid: string;
|
|
4409
|
+
status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
|
|
4410
|
+
orderType: "ORDER" | "IN-STOCK";
|
|
4411
|
+
orderCode: string;
|
|
4412
|
+
};
|
|
4413
|
+
};
|
|
4414
|
+
}[];
|
|
4415
|
+
pagination: {
|
|
4416
|
+
page: number;
|
|
4417
|
+
limit: number;
|
|
4418
|
+
total: number;
|
|
4419
|
+
totalPages: number;
|
|
4420
|
+
hasNextPage: boolean;
|
|
4421
|
+
hasPreviousPage: boolean;
|
|
4422
|
+
};
|
|
4423
|
+
};
|
|
4424
|
+
message: null;
|
|
4425
|
+
error: null;
|
|
4426
|
+
meta: TResponseMeta;
|
|
4427
|
+
};
|
|
4428
|
+
422: {
|
|
4429
|
+
type: "validation";
|
|
4430
|
+
on: string;
|
|
4431
|
+
summary?: string;
|
|
4432
|
+
message?: string;
|
|
4433
|
+
found?: unknown;
|
|
4434
|
+
property?: string;
|
|
4435
|
+
expected?: string;
|
|
4436
|
+
};
|
|
4437
|
+
}>>;
|
|
4438
|
+
};
|
|
4356
4439
|
};
|
|
4357
4440
|
};
|
|
4358
4441
|
client: {
|
|
@@ -4730,10 +4813,11 @@ declare const _func: () => {
|
|
|
4730
4813
|
transaction_amount: string;
|
|
4731
4814
|
transaction_currency: string;
|
|
4732
4815
|
};
|
|
4816
|
+
agreement: any;
|
|
4733
4817
|
customer: {
|
|
4734
4818
|
id: string;
|
|
4735
4819
|
customer_id: string;
|
|
4736
|
-
};
|
|
4820
|
+
} | null;
|
|
4737
4821
|
}, options?: {
|
|
4738
4822
|
headers?: {} | undefined;
|
|
4739
4823
|
query?: {} | undefined;
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":["app","EMediaEntityType","EMimeType","EWeightUnit","EDimensionUnit","ECountry","ERole","EProvider","EProductStatus","EProductInventoryStatus","ECartStatus","ECartType","TResponsePagination","TResponseError","TResponseMeta","TResponse","T","TPayloadJwt","AppType"],"sources":["../../app/src/types.d.ts","../src/utils.ts"],"sourcesContent":["import type { app } from '.';\n\nexport enum EMediaEntityType {\n PRODUCT = 'product',\n EXTRA_PRODUCT = 'extra_product',\n VARIANT = 'variant',\n CATEGORY = 'category',\n BRAND = 'brand',\n BLOG_POST = 'blog_post',\n SERIES = 'series',\n}\n\nexport enum EMimeType {\n IMAGE_WEBP = 'image/webp',\n IMAGE_JPEG = 'image/jpeg',\n IMAGE_JPG = 'image/jpg',\n IMAGE_PNG = 'image/png',\n IMAGE_GIF = 'image/gif',\n IMAGE_AVIF = 'image/avif',\n IMAGE_SVG = 'image/svg+xml',\n}\n\nexport enum EWeightUnit {\n KG = 'kg',\n G = 'g',\n LB = 'lb',\n OZ = 'oz',\n}\n\nexport enum EDimensionUnit {\n CM = 'cm',\n M = 'm',\n INCH = 'inch',\n FT = 'ft',\n}\n\nexport enum ECountry {\n VIETNAM = 'Vietnam',\n USA = 'USA',\n JAPAN = 'Japan',\n KOREA = 'Korea',\n CHINA = 'China',\n TAIWAN = 'Taiwan',\n THAILAND = 'Thailand',\n MALAYSIA = 'Malaysia',\n SINGAPORE = 'Singapore',\n INDONESIA = 'Indonesia',\n}\n\nexport enum ERole {\n SUPER_ADMIN = 'SUPER_ADMIN',\n ADMIN = 'ADMIN',\n MODERATOR = 'MODERATOR',\n STAFF = 'STAFF',\n EDITOR = 'EDITOR',\n VIEWER = 'VIEWER',\n USER = 'USER',\n}\n\nexport enum EProvider {\n BASIC = 'BASIC',\n FACEBOOK = 'FACEBOOK',\n GOOGLE = 'GOOGLE',\n GITHUB = 'GITHUB',\n TWITTER = 'TWITTER',\n}\n\nexport enum EProductStatus {\n DRAFT = 'draft',\n REVIEW = 'review',\n PUBLISHED = 'published',\n CANCELLED = 'cancelled',\n}\n\nexport enum EProductInventoryStatus {\n IN_STOCK = 'in_stock',\n OUT_OF_STOCK = 'out_of_stock',\n PREORDER = 'preorder',\n}\n\nexport enum ECartStatus {\n ACTIVE = 'active',\n COMPLETED = 'completed',\n ABANDONED = 'abandoned',\n EXPIRED = 'expired',\n}\n\nexport enum ECartType {\n IN_STOCK = 'in_stock',\n ORDER = 'order',\n}\n\nexport type TResponsePagination = {\n page: number;\n limit: number;\n total: number;\n totalPages: number;\n hasNextPage: boolean;\n hasPreviousPage: boolean;\n};\n\nexport type TResponseError = {\n statusCode: number;\n message: string;\n reference?: string | null;\n fields?: {\n [key: string]: string[] | string;\n };\n};\n\nexport type TResponseMeta = {\n version: string;\n timestamp: string;\n path: string;\n pagination?: TResponsePagination;\n};\n\nexport type TResponse<T> = T extends string\n ?\n | {\n success: true;\n statusCode: number;\n data: null;\n message: string;\n error: null;\n meta: TResponseMeta;\n }\n | {\n success: false;\n statusCode: number;\n data: null;\n message: string;\n error: TResponseError;\n meta: TResponseMeta;\n }\n :\n | {\n success: true;\n statusCode: number;\n data: T;\n message: null;\n error: null;\n meta: TResponseMeta;\n }\n | {\n success: false;\n statusCode: number;\n data: null;\n message: string;\n error: TResponseError;\n meta: TResponseMeta;\n };\n\nexport type TPayloadJwt = {\n uuid: string;\n role: string;\n};\n\nexport type AppType = typeof app;\n"],"mappings":";;;aAEYC,gBAAAA;EAAZ,OAAYA,GAAAA,SAAAA;EAUZ,aAAYC,GAAS,eAAA;EAUrB,OAAYC,GAAAA,SAAW;EAOvB,QAAYC,GAAAA,UAAc;EAO1B,KAAYC,GAAAA,OAAQ;EAapB,SAAYC,GA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAxKE,OAAA,GAAU,kBAAkB;KAErB,KAAA,GAAQ,MAAA,CAAO,KACzB,QAAQ,WAAW;KAGhB,MAAA;;WAEM,KAAK,MAAA,CAAO;;cAGV,SAAA;;;;;eAQS;;0BAGI,wBAAwB;qBAC7B,wBAAwB;4BACjB;kCACM;8DAC4B;;;;;;;;KA6G3B;aAab;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAMA;YAID;;;;mBASF,YAAY,QAAQ;MACpC,QAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":["app","EMediaEntityType","EMimeType","EWeightUnit","EDimensionUnit","ECountry","ERole","EProvider","EProductStatus","EProductInventoryStatus","ECartStatus","ECartType","TResponsePagination","TResponseError","TResponseMeta","TResponse","T","TPayloadJwt","AppType"],"sources":["../../app/src/types.d.ts","../src/utils.ts"],"sourcesContent":["import type { app } from '.';\n\nexport enum EMediaEntityType {\n PRODUCT = 'product',\n EXTRA_PRODUCT = 'extra_product',\n VARIANT = 'variant',\n CATEGORY = 'category',\n BRAND = 'brand',\n BLOG_POST = 'blog_post',\n SERIES = 'series',\n}\n\nexport enum EMimeType {\n IMAGE_WEBP = 'image/webp',\n IMAGE_JPEG = 'image/jpeg',\n IMAGE_JPG = 'image/jpg',\n IMAGE_PNG = 'image/png',\n IMAGE_GIF = 'image/gif',\n IMAGE_AVIF = 'image/avif',\n IMAGE_SVG = 'image/svg+xml',\n}\n\nexport enum EWeightUnit {\n KG = 'kg',\n G = 'g',\n LB = 'lb',\n OZ = 'oz',\n}\n\nexport enum EDimensionUnit {\n CM = 'cm',\n M = 'm',\n INCH = 'inch',\n FT = 'ft',\n}\n\nexport enum ECountry {\n VIETNAM = 'Vietnam',\n USA = 'USA',\n JAPAN = 'Japan',\n KOREA = 'Korea',\n CHINA = 'China',\n TAIWAN = 'Taiwan',\n THAILAND = 'Thailand',\n MALAYSIA = 'Malaysia',\n SINGAPORE = 'Singapore',\n INDONESIA = 'Indonesia',\n}\n\nexport enum ERole {\n SUPER_ADMIN = 'SUPER_ADMIN',\n ADMIN = 'ADMIN',\n MODERATOR = 'MODERATOR',\n STAFF = 'STAFF',\n EDITOR = 'EDITOR',\n VIEWER = 'VIEWER',\n USER = 'USER',\n}\n\nexport enum EProvider {\n BASIC = 'BASIC',\n FACEBOOK = 'FACEBOOK',\n GOOGLE = 'GOOGLE',\n GITHUB = 'GITHUB',\n TWITTER = 'TWITTER',\n}\n\nexport enum EProductStatus {\n DRAFT = 'draft',\n REVIEW = 'review',\n PUBLISHED = 'published',\n CANCELLED = 'cancelled',\n}\n\nexport enum EProductInventoryStatus {\n IN_STOCK = 'in_stock',\n OUT_OF_STOCK = 'out_of_stock',\n ORDER = 'order',\n PREORDER = 'preorder',\n}\n\nexport enum ECartStatus {\n ACTIVE = 'active',\n COMPLETED = 'completed',\n ABANDONED = 'abandoned',\n EXPIRED = 'expired',\n}\n\nexport enum ECartType {\n IN_STOCK = 'in_stock',\n ORDER = 'order',\n}\n\nexport type TResponsePagination = {\n page: number;\n limit: number;\n total: number;\n totalPages: number;\n hasNextPage: boolean;\n hasPreviousPage: boolean;\n};\n\nexport type TResponseError = {\n statusCode: number;\n message: string;\n reference?: string | null;\n fields?: {\n [key: string]: string[] | string;\n };\n};\n\nexport type TResponseMeta = {\n version: string;\n timestamp: string;\n path: string;\n pagination?: TResponsePagination;\n};\n\nexport type TResponse<T> = T extends string\n ?\n | {\n success: true;\n statusCode: number;\n data: null;\n message: string;\n error: null;\n meta: TResponseMeta;\n }\n | {\n success: false;\n statusCode: number;\n data: null;\n message: string;\n error: TResponseError;\n meta: TResponseMeta;\n }\n :\n | {\n success: true;\n statusCode: number;\n data: T;\n message: null;\n error: null;\n meta: TResponseMeta;\n }\n | {\n success: false;\n statusCode: number;\n data: null;\n message: string;\n error: TResponseError;\n meta: TResponseMeta;\n };\n\nexport type TPayloadJwt = {\n uuid: string;\n role: string;\n};\n\nexport type AppType = typeof app;\n"],"mappings":";;;aAEYC,gBAAAA;EAAZ,OAAYA,GAAAA,SAAAA;EAUZ,aAAYC,GAAS,eAAA;EAUrB,OAAYC,GAAAA,SAAW;EAOvB,QAAYC,GAAAA,UAAc;EAO1B,KAAYC,GAAAA,OAAQ;EAapB,SAAYC,GAAK,WAAA;EAUjB,MAAYC,GAAAA,QAAS;AAQrB;AAcYG,aArEAR,SAAAA;EA4EZ,UAAYS,GAAAA,YAAS;EAKrB,UAAYC,GAAAA,YAAmB;EAS/B,SAAYC,GAAAA,WAAc;EAS1B,SAAYC,GAAAA,WAAa;EAOzB,SAAYC,GAAAA,WAASC;EAAMA,UAAAA,GAAAA,YAAAA;EAQXF,SAAAA,GAAAA,eAAAA;;AAcAE,aAtHJb,WAAAA;EAyHIW,EAAAA,GAAAA,IAAAA;EAOCD,CAAAA,GAAAA,GAA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