@back23/promptly-sdk 2.6.0 → 2.8.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/dist/index.d.mts +41 -17
- package/dist/index.d.ts +41 -17
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -393,6 +393,7 @@ interface Product {
|
|
|
393
393
|
options?: ProductOption[];
|
|
394
394
|
variants?: ProductVariant[];
|
|
395
395
|
weight?: number;
|
|
396
|
+
shipping_fee?: number;
|
|
396
397
|
meta?: Record<string, any>;
|
|
397
398
|
sort_order: number;
|
|
398
399
|
discount_percent?: number;
|
|
@@ -419,22 +420,38 @@ interface CartItem {
|
|
|
419
420
|
variant_id?: number;
|
|
420
421
|
product?: Product;
|
|
421
422
|
variant?: ProductVariant;
|
|
423
|
+
product_name?: string;
|
|
424
|
+
variant_name?: string;
|
|
425
|
+
thumbnail?: string;
|
|
422
426
|
quantity: number;
|
|
423
427
|
price: number;
|
|
428
|
+
subtotal?: number;
|
|
429
|
+
shipping_fee?: number;
|
|
430
|
+
in_stock?: boolean;
|
|
424
431
|
options?: Record<string, string>;
|
|
425
|
-
created_at
|
|
426
|
-
updated_at
|
|
432
|
+
created_at?: string;
|
|
433
|
+
updated_at?: string;
|
|
434
|
+
}
|
|
435
|
+
interface CartShippingInfo {
|
|
436
|
+
is_free: boolean;
|
|
437
|
+
free_shipping_applied?: boolean;
|
|
438
|
+
remaining_for_free?: number | null;
|
|
439
|
+
message?: string | null;
|
|
440
|
+
notice?: string | null;
|
|
427
441
|
}
|
|
428
442
|
interface Cart {
|
|
429
443
|
id: number;
|
|
430
444
|
member_id?: number;
|
|
431
445
|
session_id?: string;
|
|
432
446
|
items: CartItem[];
|
|
447
|
+
subtotal: number;
|
|
448
|
+
shipping_fee: number;
|
|
433
449
|
total: number;
|
|
434
450
|
total_quantity: number;
|
|
435
451
|
item_count: number;
|
|
436
|
-
|
|
437
|
-
|
|
452
|
+
shipping_info?: CartShippingInfo;
|
|
453
|
+
created_at?: string;
|
|
454
|
+
updated_at?: string;
|
|
438
455
|
}
|
|
439
456
|
interface AddToCartData {
|
|
440
457
|
product_id: number;
|
|
@@ -460,6 +477,21 @@ interface OrderItem {
|
|
|
460
477
|
total: number;
|
|
461
478
|
options?: Record<string, string>;
|
|
462
479
|
}
|
|
480
|
+
interface OrderShipping {
|
|
481
|
+
name: string;
|
|
482
|
+
phone: string;
|
|
483
|
+
zipcode?: string;
|
|
484
|
+
address: string;
|
|
485
|
+
address_detail?: string;
|
|
486
|
+
memo?: string;
|
|
487
|
+
company?: string;
|
|
488
|
+
tracking_number?: string;
|
|
489
|
+
}
|
|
490
|
+
interface OrderOrderer {
|
|
491
|
+
name: string;
|
|
492
|
+
email: string;
|
|
493
|
+
phone: string;
|
|
494
|
+
}
|
|
463
495
|
interface Order {
|
|
464
496
|
id: number;
|
|
465
497
|
member_id?: number;
|
|
@@ -476,23 +508,15 @@ interface Order {
|
|
|
476
508
|
payment_status: PaymentStatus;
|
|
477
509
|
payment_status_label?: string;
|
|
478
510
|
paid_at?: string;
|
|
479
|
-
shipping_name: string;
|
|
480
|
-
shipping_phone: string;
|
|
481
|
-
shipping_zipcode: string;
|
|
482
|
-
shipping_address: string;
|
|
483
|
-
shipping_address_detail?: string;
|
|
484
|
-
shipping_memo?: string;
|
|
485
|
-
shipping_company?: string;
|
|
486
|
-
tracking_number?: string;
|
|
487
511
|
shipped_at?: string;
|
|
488
512
|
delivered_at?: string;
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
513
|
+
can_cancel?: boolean;
|
|
514
|
+
shipping?: OrderShipping;
|
|
515
|
+
orderer?: OrderOrderer;
|
|
492
516
|
items?: OrderItem[];
|
|
493
517
|
payment?: Payment;
|
|
494
518
|
created_at: string;
|
|
495
|
-
updated_at
|
|
519
|
+
updated_at?: string;
|
|
496
520
|
}
|
|
497
521
|
interface CreateOrderData {
|
|
498
522
|
orderer_name: string;
|
|
@@ -1608,4 +1632,4 @@ declare class Promptly {
|
|
|
1608
1632
|
getApiKey(): string | null;
|
|
1609
1633
|
}
|
|
1610
1634
|
|
|
1611
|
-
export { type AddToCartData, type ApiError, type ApiResponse, type ApplyCouponData, type AuthResponse, type AvailableDatesParams, type AvailableSlotsParams, type BlogListParams, type BlogPost, type Board, type BoardComment, type BoardListParams, type BoardPost, type Cart, type CartItem, type Comment, type CommentCreateData, type CommentDeleteData, type CommentListParams, type CommentListResponse, type CommentUpdateData, type Coupon, type CouponType, type CouponValidation, type CreateCommentData, type CreateEntityData, type CreateEntityRecordData, type CreateOrderData, type CreatePostData, type CreateReservationData, type CreateReservationResult, type CustomEntity, type EntityField, type EntityListParams, type EntityRecord, type EntitySchema, type ForgotPasswordData, type Form, type FormField, type FormFieldOption, type FormFieldType, type FormFieldValidation, type FormListParams, type FormSettings, type FormSubmission, type ListParams, type ListResponse, type LoginCredentials, type Media, type Member, type Order, type OrderItem, type OrderListParams, type OrderStatus, type PaginatedResponse, type PaginationMeta, type Payment, type PaymentCancelData, type PaymentConfirmData, type PaymentMethod, type PaymentReadyData, type PaymentStatus, type PostListParams, type Product, type ProductCategory, type ProductListParams, type ProductOption, type ProductOptionValue, type ProductStatus, type ProductVariant, Promptly, type PromptlyConfig, PromptlyError, type RegisterData, type Reservation, type ReservationListParams, type ReservationService, type ReservationSettings, type ReservationSlot, type ReservationStaff, type ReservationStaffSummary, type ResetPasswordData, type SocialAuthUrl, type SocialProvider, type SubmissionListParams, type SubmitFormData, type UpdateCartItemData, type UpdateCommentData, type UpdateEntityData, type UpdateEntityRecordData, type UpdatePostData, type UpdateProfileData, Promptly as default };
|
|
1635
|
+
export { type AddToCartData, type ApiError, type ApiResponse, type ApplyCouponData, type AuthResponse, type AvailableDatesParams, type AvailableSlotsParams, type BlogListParams, type BlogPost, type Board, type BoardComment, type BoardListParams, type BoardPost, type Cart, type CartItem, type CartShippingInfo, type Comment, type CommentCreateData, type CommentDeleteData, type CommentListParams, type CommentListResponse, type CommentUpdateData, type Coupon, type CouponType, type CouponValidation, type CreateCommentData, type CreateEntityData, type CreateEntityRecordData, type CreateOrderData, type CreatePostData, type CreateReservationData, type CreateReservationResult, type CustomEntity, type EntityField, type EntityListParams, type EntityRecord, type EntitySchema, type ForgotPasswordData, type Form, type FormField, type FormFieldOption, type FormFieldType, type FormFieldValidation, type FormListParams, type FormSettings, type FormSubmission, type ListParams, type ListResponse, type LoginCredentials, type Media, type Member, type Order, type OrderItem, type OrderListParams, type OrderOrderer, type OrderShipping, type OrderStatus, type PaginatedResponse, type PaginationMeta, type Payment, type PaymentCancelData, type PaymentConfirmData, type PaymentMethod, type PaymentReadyData, type PaymentStatus, type PostListParams, type Product, type ProductCategory, type ProductListParams, type ProductOption, type ProductOptionValue, type ProductStatus, type ProductVariant, Promptly, type PromptlyConfig, PromptlyError, type RegisterData, type Reservation, type ReservationListParams, type ReservationService, type ReservationSettings, type ReservationSlot, type ReservationStaff, type ReservationStaffSummary, type ResetPasswordData, type SocialAuthUrl, type SocialProvider, type SubmissionListParams, type SubmitFormData, type UpdateCartItemData, type UpdateCommentData, type UpdateEntityData, type UpdateEntityRecordData, type UpdatePostData, type UpdateProfileData, Promptly as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -393,6 +393,7 @@ interface Product {
|
|
|
393
393
|
options?: ProductOption[];
|
|
394
394
|
variants?: ProductVariant[];
|
|
395
395
|
weight?: number;
|
|
396
|
+
shipping_fee?: number;
|
|
396
397
|
meta?: Record<string, any>;
|
|
397
398
|
sort_order: number;
|
|
398
399
|
discount_percent?: number;
|
|
@@ -419,22 +420,38 @@ interface CartItem {
|
|
|
419
420
|
variant_id?: number;
|
|
420
421
|
product?: Product;
|
|
421
422
|
variant?: ProductVariant;
|
|
423
|
+
product_name?: string;
|
|
424
|
+
variant_name?: string;
|
|
425
|
+
thumbnail?: string;
|
|
422
426
|
quantity: number;
|
|
423
427
|
price: number;
|
|
428
|
+
subtotal?: number;
|
|
429
|
+
shipping_fee?: number;
|
|
430
|
+
in_stock?: boolean;
|
|
424
431
|
options?: Record<string, string>;
|
|
425
|
-
created_at
|
|
426
|
-
updated_at
|
|
432
|
+
created_at?: string;
|
|
433
|
+
updated_at?: string;
|
|
434
|
+
}
|
|
435
|
+
interface CartShippingInfo {
|
|
436
|
+
is_free: boolean;
|
|
437
|
+
free_shipping_applied?: boolean;
|
|
438
|
+
remaining_for_free?: number | null;
|
|
439
|
+
message?: string | null;
|
|
440
|
+
notice?: string | null;
|
|
427
441
|
}
|
|
428
442
|
interface Cart {
|
|
429
443
|
id: number;
|
|
430
444
|
member_id?: number;
|
|
431
445
|
session_id?: string;
|
|
432
446
|
items: CartItem[];
|
|
447
|
+
subtotal: number;
|
|
448
|
+
shipping_fee: number;
|
|
433
449
|
total: number;
|
|
434
450
|
total_quantity: number;
|
|
435
451
|
item_count: number;
|
|
436
|
-
|
|
437
|
-
|
|
452
|
+
shipping_info?: CartShippingInfo;
|
|
453
|
+
created_at?: string;
|
|
454
|
+
updated_at?: string;
|
|
438
455
|
}
|
|
439
456
|
interface AddToCartData {
|
|
440
457
|
product_id: number;
|
|
@@ -460,6 +477,21 @@ interface OrderItem {
|
|
|
460
477
|
total: number;
|
|
461
478
|
options?: Record<string, string>;
|
|
462
479
|
}
|
|
480
|
+
interface OrderShipping {
|
|
481
|
+
name: string;
|
|
482
|
+
phone: string;
|
|
483
|
+
zipcode?: string;
|
|
484
|
+
address: string;
|
|
485
|
+
address_detail?: string;
|
|
486
|
+
memo?: string;
|
|
487
|
+
company?: string;
|
|
488
|
+
tracking_number?: string;
|
|
489
|
+
}
|
|
490
|
+
interface OrderOrderer {
|
|
491
|
+
name: string;
|
|
492
|
+
email: string;
|
|
493
|
+
phone: string;
|
|
494
|
+
}
|
|
463
495
|
interface Order {
|
|
464
496
|
id: number;
|
|
465
497
|
member_id?: number;
|
|
@@ -476,23 +508,15 @@ interface Order {
|
|
|
476
508
|
payment_status: PaymentStatus;
|
|
477
509
|
payment_status_label?: string;
|
|
478
510
|
paid_at?: string;
|
|
479
|
-
shipping_name: string;
|
|
480
|
-
shipping_phone: string;
|
|
481
|
-
shipping_zipcode: string;
|
|
482
|
-
shipping_address: string;
|
|
483
|
-
shipping_address_detail?: string;
|
|
484
|
-
shipping_memo?: string;
|
|
485
|
-
shipping_company?: string;
|
|
486
|
-
tracking_number?: string;
|
|
487
511
|
shipped_at?: string;
|
|
488
512
|
delivered_at?: string;
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
513
|
+
can_cancel?: boolean;
|
|
514
|
+
shipping?: OrderShipping;
|
|
515
|
+
orderer?: OrderOrderer;
|
|
492
516
|
items?: OrderItem[];
|
|
493
517
|
payment?: Payment;
|
|
494
518
|
created_at: string;
|
|
495
|
-
updated_at
|
|
519
|
+
updated_at?: string;
|
|
496
520
|
}
|
|
497
521
|
interface CreateOrderData {
|
|
498
522
|
orderer_name: string;
|
|
@@ -1608,4 +1632,4 @@ declare class Promptly {
|
|
|
1608
1632
|
getApiKey(): string | null;
|
|
1609
1633
|
}
|
|
1610
1634
|
|
|
1611
|
-
export { type AddToCartData, type ApiError, type ApiResponse, type ApplyCouponData, type AuthResponse, type AvailableDatesParams, type AvailableSlotsParams, type BlogListParams, type BlogPost, type Board, type BoardComment, type BoardListParams, type BoardPost, type Cart, type CartItem, type Comment, type CommentCreateData, type CommentDeleteData, type CommentListParams, type CommentListResponse, type CommentUpdateData, type Coupon, type CouponType, type CouponValidation, type CreateCommentData, type CreateEntityData, type CreateEntityRecordData, type CreateOrderData, type CreatePostData, type CreateReservationData, type CreateReservationResult, type CustomEntity, type EntityField, type EntityListParams, type EntityRecord, type EntitySchema, type ForgotPasswordData, type Form, type FormField, type FormFieldOption, type FormFieldType, type FormFieldValidation, type FormListParams, type FormSettings, type FormSubmission, type ListParams, type ListResponse, type LoginCredentials, type Media, type Member, type Order, type OrderItem, type OrderListParams, type OrderStatus, type PaginatedResponse, type PaginationMeta, type Payment, type PaymentCancelData, type PaymentConfirmData, type PaymentMethod, type PaymentReadyData, type PaymentStatus, type PostListParams, type Product, type ProductCategory, type ProductListParams, type ProductOption, type ProductOptionValue, type ProductStatus, type ProductVariant, Promptly, type PromptlyConfig, PromptlyError, type RegisterData, type Reservation, type ReservationListParams, type ReservationService, type ReservationSettings, type ReservationSlot, type ReservationStaff, type ReservationStaffSummary, type ResetPasswordData, type SocialAuthUrl, type SocialProvider, type SubmissionListParams, type SubmitFormData, type UpdateCartItemData, type UpdateCommentData, type UpdateEntityData, type UpdateEntityRecordData, type UpdatePostData, type UpdateProfileData, Promptly as default };
|
|
1635
|
+
export { type AddToCartData, type ApiError, type ApiResponse, type ApplyCouponData, type AuthResponse, type AvailableDatesParams, type AvailableSlotsParams, type BlogListParams, type BlogPost, type Board, type BoardComment, type BoardListParams, type BoardPost, type Cart, type CartItem, type CartShippingInfo, type Comment, type CommentCreateData, type CommentDeleteData, type CommentListParams, type CommentListResponse, type CommentUpdateData, type Coupon, type CouponType, type CouponValidation, type CreateCommentData, type CreateEntityData, type CreateEntityRecordData, type CreateOrderData, type CreatePostData, type CreateReservationData, type CreateReservationResult, type CustomEntity, type EntityField, type EntityListParams, type EntityRecord, type EntitySchema, type ForgotPasswordData, type Form, type FormField, type FormFieldOption, type FormFieldType, type FormFieldValidation, type FormListParams, type FormSettings, type FormSubmission, type ListParams, type ListResponse, type LoginCredentials, type Media, type Member, type Order, type OrderItem, type OrderListParams, type OrderOrderer, type OrderShipping, type OrderStatus, type PaginatedResponse, type PaginationMeta, type Payment, type PaymentCancelData, type PaymentConfirmData, type PaymentMethod, type PaymentReadyData, type PaymentStatus, type PostListParams, type Product, type ProductCategory, type ProductListParams, type ProductOption, type ProductOptionValue, type ProductStatus, type ProductVariant, Promptly, type PromptlyConfig, PromptlyError, type RegisterData, type Reservation, type ReservationListParams, type ReservationService, type ReservationSettings, type ReservationSlot, type ReservationStaff, type ReservationStaffSummary, type ResetPasswordData, type SocialAuthUrl, type SocialProvider, type SubmissionListParams, type SubmitFormData, type UpdateCartItemData, type UpdateCommentData, type UpdateEntityData, type UpdateEntityRecordData, type UpdatePostData, type UpdateProfileData, Promptly as default };
|