@01.software/sdk 0.19.0 → 0.21.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/README.md +3 -3
- package/dist/{const-CkhnGqnb.d.cts → const-BApEF1Hu.d.cts} +2 -2
- package/dist/{const-B9oeZoDy.d.ts → const-BNJRuk3V.d.ts} +2 -2
- package/dist/index.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -16
- package/dist/index.d.ts +26 -16
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-DfQct8Dj.d.cts → payload-types-D7lnu9By.d.cts} +98 -42
- package/dist/{payload-types-DfQct8Dj.d.ts → payload-types-D7lnu9By.d.ts} +98 -42
- package/dist/realtime.d.cts +2 -2
- package/dist/realtime.d.ts +2 -2
- package/dist/ui/canvas.cjs +33 -34
- package/dist/ui/canvas.cjs.map +1 -1
- package/dist/ui/canvas.d.cts +26 -1
- package/dist/ui/canvas.d.ts +26 -1
- package/dist/ui/canvas.js +33 -34
- package/dist/ui/canvas.js.map +1 -1
- package/dist/ui/form.d.cts +1 -1
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/video.d.cts +1 -1
- package/dist/ui/video.d.ts +1 -1
- package/dist/{webhook-CJq7v5Da.d.cts → webhook-C4BwXP5T.d.cts} +2 -2
- package/dist/{webhook-CKqXQInG.d.ts → webhook-C6vne8Ve.d.ts} +2 -2
- package/dist/webhook.d.cts +3 -3
- package/dist/webhook.d.ts +3 -3
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { O as Order, a as Cart, b as CartItem, P as Product, c as OrderItem$1, T as Transaction, d as Fulfillment, R as Return } from './payload-types-
|
|
2
|
-
export { A as Article, e as ArticleAuthor, f as ArticleCategory, g as ArticleTag, D as Document, I as Image, h as Post, i as PostCategory, j as ProductVariant, k as Tenant, V as Video } from './payload-types-
|
|
1
|
+
import { O as Order, a as Cart, b as CartItem, P as Product, c as OrderItem$1, T as Transaction, d as Fulfillment, R as Return } from './payload-types-D7lnu9By.cjs';
|
|
2
|
+
export { A as Article, e as ArticleAuthor, f as ArticleCategory, g as ArticleTag, D as Document, I as Image, h as Post, i as PostCategory, j as ProductVariant, k as Tenant, V as Video } from './payload-types-D7lnu9By.cjs';
|
|
3
3
|
import { Sort, Where } from 'payload';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import { QueryClient, InfiniteData } from '@tanstack/react-query';
|
|
6
6
|
import { Metadata } from 'next';
|
|
7
|
-
import { C as CollectionType } from './webhook-
|
|
8
|
-
export { d as CUSTOMER_PASSWORD_RESET_OPERATION, g as CustomerAuthWebhookEvent, h as CustomerAuthWebhookHandlers, e as CustomerPasswordResetWebhookData, f as CustomerPasswordResetWebhookEvent, a as WebhookEvent, b as WebhookHandler, W as WebhookOperation, c as WebhookOptions, k as createCustomerAuthWebhookHandler, m as createTypedWebhookHandler, l as handleWebhook, j as isCustomerPasswordResetWebhookEvent, i as isValidWebhookEvent } from './webhook-
|
|
9
|
-
import { P as PublicCollection } from './const-
|
|
10
|
-
export { a as COLLECTIONS, C as Collection, I as INTERNAL_COLLECTIONS } from './const-
|
|
7
|
+
import { C as CollectionType } from './webhook-C4BwXP5T.cjs';
|
|
8
|
+
export { d as CUSTOMER_PASSWORD_RESET_OPERATION, g as CustomerAuthWebhookEvent, h as CustomerAuthWebhookHandlers, e as CustomerPasswordResetWebhookData, f as CustomerPasswordResetWebhookEvent, a as WebhookEvent, b as WebhookHandler, W as WebhookOperation, c as WebhookOptions, k as createCustomerAuthWebhookHandler, m as createTypedWebhookHandler, l as handleWebhook, j as isCustomerPasswordResetWebhookEvent, i as isValidWebhookEvent } from './webhook-C4BwXP5T.cjs';
|
|
9
|
+
import { P as PublicCollection } from './const-BApEF1Hu.cjs';
|
|
10
|
+
export { a as COLLECTIONS, C as Collection, I as INTERNAL_COLLECTIONS } from './const-BApEF1Hu.cjs';
|
|
11
11
|
export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-D7HtUpqt.cjs';
|
|
12
12
|
export { b as IMAGE_SIZES, I as ImageData, a as ImagePalette, f as ImagePlaceholderOptions, d as getImageLqip, e as getImagePalette, h as getImagePlaceholderStyle, c as getImageSrcSet, g as getImageUrl } from './image-TT8lTsk5.cjs';
|
|
13
13
|
export { e as VideoGifOptions, V as VideoThumbnailOptions, a as getVideoGif, c as getVideoMp4Url, d as getVideoStoryboard, b as getVideoStreamUrl, g as getVideoThumbnail } from './video-DbLL8yuc.cjs';
|
|
@@ -1045,11 +1045,30 @@ type UpdateOrderParams = {
|
|
|
1045
1045
|
orderNumber: string;
|
|
1046
1046
|
status: Order['status'];
|
|
1047
1047
|
};
|
|
1048
|
+
type TransactionStatus = 'pending' | 'paid' | 'failed' | 'canceled';
|
|
1048
1049
|
type UpdateTransactionParams = {
|
|
1049
1050
|
pgPaymentId: string;
|
|
1050
|
-
status:
|
|
1051
|
+
status: TransactionStatus;
|
|
1051
1052
|
paymentMethod?: string;
|
|
1052
1053
|
receiptUrl?: string;
|
|
1054
|
+
paymentKey?: string;
|
|
1055
|
+
amount?: number;
|
|
1056
|
+
};
|
|
1057
|
+
type RestockAction = 'return_to_stock' | 'discard';
|
|
1058
|
+
type ReturnWithRefundItem = {
|
|
1059
|
+
orderItem: string | number;
|
|
1060
|
+
quantity: number;
|
|
1061
|
+
restockAction?: RestockAction;
|
|
1062
|
+
};
|
|
1063
|
+
type ReturnWithRefundParams = {
|
|
1064
|
+
orderNumber: string;
|
|
1065
|
+
reason?: ReturnReason;
|
|
1066
|
+
reasonDetail?: string;
|
|
1067
|
+
returnItems: ReturnWithRefundItem[];
|
|
1068
|
+
refundAmount: number;
|
|
1069
|
+
pgPaymentId: string;
|
|
1070
|
+
paymentKey?: string;
|
|
1071
|
+
refundReceiptUrl?: string;
|
|
1053
1072
|
};
|
|
1054
1073
|
type CheckoutParams = {
|
|
1055
1074
|
cartId: string;
|
|
@@ -1101,15 +1120,6 @@ type UpdateReturnParams = {
|
|
|
1101
1120
|
returnId: string;
|
|
1102
1121
|
status: 'processing' | 'approved' | 'rejected' | 'completed';
|
|
1103
1122
|
};
|
|
1104
|
-
type ReturnWithRefundParams = {
|
|
1105
|
-
orderNumber: string;
|
|
1106
|
-
reason?: ReturnReason;
|
|
1107
|
-
reasonDetail?: string;
|
|
1108
|
-
returnItems: ReturnItem[];
|
|
1109
|
-
refundAmount: number;
|
|
1110
|
-
pgPaymentId: string;
|
|
1111
|
-
refundReceiptUrl?: string;
|
|
1112
|
-
};
|
|
1113
1123
|
declare class OrderApi extends BaseApi {
|
|
1114
1124
|
constructor(options: OrderApiOptions);
|
|
1115
1125
|
createOrder(params: CreateOrderParams): Promise<Order>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { O as Order, a as Cart, b as CartItem, P as Product, c as OrderItem$1, T as Transaction, d as Fulfillment, R as Return } from './payload-types-
|
|
2
|
-
export { A as Article, e as ArticleAuthor, f as ArticleCategory, g as ArticleTag, D as Document, I as Image, h as Post, i as PostCategory, j as ProductVariant, k as Tenant, V as Video } from './payload-types-
|
|
1
|
+
import { O as Order, a as Cart, b as CartItem, P as Product, c as OrderItem$1, T as Transaction, d as Fulfillment, R as Return } from './payload-types-D7lnu9By.js';
|
|
2
|
+
export { A as Article, e as ArticleAuthor, f as ArticleCategory, g as ArticleTag, D as Document, I as Image, h as Post, i as PostCategory, j as ProductVariant, k as Tenant, V as Video } from './payload-types-D7lnu9By.js';
|
|
3
3
|
import { Sort, Where } from 'payload';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import { QueryClient, InfiniteData } from '@tanstack/react-query';
|
|
6
6
|
import { Metadata } from 'next';
|
|
7
|
-
import { C as CollectionType } from './webhook-
|
|
8
|
-
export { d as CUSTOMER_PASSWORD_RESET_OPERATION, g as CustomerAuthWebhookEvent, h as CustomerAuthWebhookHandlers, e as CustomerPasswordResetWebhookData, f as CustomerPasswordResetWebhookEvent, a as WebhookEvent, b as WebhookHandler, W as WebhookOperation, c as WebhookOptions, k as createCustomerAuthWebhookHandler, m as createTypedWebhookHandler, l as handleWebhook, j as isCustomerPasswordResetWebhookEvent, i as isValidWebhookEvent } from './webhook-
|
|
9
|
-
import { P as PublicCollection } from './const-
|
|
10
|
-
export { a as COLLECTIONS, C as Collection, I as INTERNAL_COLLECTIONS } from './const-
|
|
7
|
+
import { C as CollectionType } from './webhook-C6vne8Ve.js';
|
|
8
|
+
export { d as CUSTOMER_PASSWORD_RESET_OPERATION, g as CustomerAuthWebhookEvent, h as CustomerAuthWebhookHandlers, e as CustomerPasswordResetWebhookData, f as CustomerPasswordResetWebhookEvent, a as WebhookEvent, b as WebhookHandler, W as WebhookOperation, c as WebhookOptions, k as createCustomerAuthWebhookHandler, m as createTypedWebhookHandler, l as handleWebhook, j as isCustomerPasswordResetWebhookEvent, i as isValidWebhookEvent } from './webhook-C6vne8Ve.js';
|
|
9
|
+
import { P as PublicCollection } from './const-BNJRuk3V.js';
|
|
10
|
+
export { a as COLLECTIONS, C as Collection, I as INTERNAL_COLLECTIONS } from './const-BNJRuk3V.js';
|
|
11
11
|
export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-D7HtUpqt.js';
|
|
12
12
|
export { b as IMAGE_SIZES, I as ImageData, a as ImagePalette, f as ImagePlaceholderOptions, d as getImageLqip, e as getImagePalette, h as getImagePlaceholderStyle, c as getImageSrcSet, g as getImageUrl } from './image-TT8lTsk5.js';
|
|
13
13
|
export { e as VideoGifOptions, V as VideoThumbnailOptions, a as getVideoGif, c as getVideoMp4Url, d as getVideoStoryboard, b as getVideoStreamUrl, g as getVideoThumbnail } from './video-DbLL8yuc.js';
|
|
@@ -1045,11 +1045,30 @@ type UpdateOrderParams = {
|
|
|
1045
1045
|
orderNumber: string;
|
|
1046
1046
|
status: Order['status'];
|
|
1047
1047
|
};
|
|
1048
|
+
type TransactionStatus = 'pending' | 'paid' | 'failed' | 'canceled';
|
|
1048
1049
|
type UpdateTransactionParams = {
|
|
1049
1050
|
pgPaymentId: string;
|
|
1050
|
-
status:
|
|
1051
|
+
status: TransactionStatus;
|
|
1051
1052
|
paymentMethod?: string;
|
|
1052
1053
|
receiptUrl?: string;
|
|
1054
|
+
paymentKey?: string;
|
|
1055
|
+
amount?: number;
|
|
1056
|
+
};
|
|
1057
|
+
type RestockAction = 'return_to_stock' | 'discard';
|
|
1058
|
+
type ReturnWithRefundItem = {
|
|
1059
|
+
orderItem: string | number;
|
|
1060
|
+
quantity: number;
|
|
1061
|
+
restockAction?: RestockAction;
|
|
1062
|
+
};
|
|
1063
|
+
type ReturnWithRefundParams = {
|
|
1064
|
+
orderNumber: string;
|
|
1065
|
+
reason?: ReturnReason;
|
|
1066
|
+
reasonDetail?: string;
|
|
1067
|
+
returnItems: ReturnWithRefundItem[];
|
|
1068
|
+
refundAmount: number;
|
|
1069
|
+
pgPaymentId: string;
|
|
1070
|
+
paymentKey?: string;
|
|
1071
|
+
refundReceiptUrl?: string;
|
|
1053
1072
|
};
|
|
1054
1073
|
type CheckoutParams = {
|
|
1055
1074
|
cartId: string;
|
|
@@ -1101,15 +1120,6 @@ type UpdateReturnParams = {
|
|
|
1101
1120
|
returnId: string;
|
|
1102
1121
|
status: 'processing' | 'approved' | 'rejected' | 'completed';
|
|
1103
1122
|
};
|
|
1104
|
-
type ReturnWithRefundParams = {
|
|
1105
|
-
orderNumber: string;
|
|
1106
|
-
reason?: ReturnReason;
|
|
1107
|
-
reasonDetail?: string;
|
|
1108
|
-
returnItems: ReturnItem[];
|
|
1109
|
-
refundAmount: number;
|
|
1110
|
-
pgPaymentId: string;
|
|
1111
|
-
refundReceiptUrl?: string;
|
|
1112
|
-
};
|
|
1113
1123
|
declare class OrderApi extends BaseApi {
|
|
1114
1124
|
constructor(options: OrderApiOptions);
|
|
1115
1125
|
createOrder(params: CreateOrderParams): Promise<Order>;
|