@back23/promptly-sdk 2.6.0 → 2.7.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 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: string;
426
- updated_at: string;
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
- created_at: string;
437
- updated_at: string;
452
+ shipping_info?: CartShippingInfo;
453
+ created_at?: string;
454
+ updated_at?: string;
438
455
  }
439
456
  interface AddToCartData {
440
457
  product_id: number;
@@ -1608,4 +1625,4 @@ declare class Promptly {
1608
1625
  getApiKey(): string | null;
1609
1626
  }
1610
1627
 
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 };
1628
+ 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 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: string;
426
- updated_at: string;
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
- created_at: string;
437
- updated_at: string;
452
+ shipping_info?: CartShippingInfo;
453
+ created_at?: string;
454
+ updated_at?: string;
438
455
  }
439
456
  interface AddToCartData {
440
457
  product_id: number;
@@ -1608,4 +1625,4 @@ declare class Promptly {
1608
1625
  getApiKey(): string | null;
1609
1626
  }
1610
1627
 
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 };
1628
+ 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 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@back23/promptly-sdk",
3
- "version": "2.6.0",
3
+ "version": "2.7.0",
4
4
  "description": "Promptly AI CMS SDK for JavaScript/TypeScript",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",