@back23/promptly-sdk 2.7.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 +20 -13
- package/dist/index.d.ts +20 -13
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -477,6 +477,21 @@ interface OrderItem {
|
|
|
477
477
|
total: number;
|
|
478
478
|
options?: Record<string, string>;
|
|
479
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
|
+
}
|
|
480
495
|
interface Order {
|
|
481
496
|
id: number;
|
|
482
497
|
member_id?: number;
|
|
@@ -493,23 +508,15 @@ interface Order {
|
|
|
493
508
|
payment_status: PaymentStatus;
|
|
494
509
|
payment_status_label?: string;
|
|
495
510
|
paid_at?: string;
|
|
496
|
-
shipping_name: string;
|
|
497
|
-
shipping_phone: string;
|
|
498
|
-
shipping_zipcode: string;
|
|
499
|
-
shipping_address: string;
|
|
500
|
-
shipping_address_detail?: string;
|
|
501
|
-
shipping_memo?: string;
|
|
502
|
-
shipping_company?: string;
|
|
503
|
-
tracking_number?: string;
|
|
504
511
|
shipped_at?: string;
|
|
505
512
|
delivered_at?: string;
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
513
|
+
can_cancel?: boolean;
|
|
514
|
+
shipping?: OrderShipping;
|
|
515
|
+
orderer?: OrderOrderer;
|
|
509
516
|
items?: OrderItem[];
|
|
510
517
|
payment?: Payment;
|
|
511
518
|
created_at: string;
|
|
512
|
-
updated_at
|
|
519
|
+
updated_at?: string;
|
|
513
520
|
}
|
|
514
521
|
interface CreateOrderData {
|
|
515
522
|
orderer_name: string;
|
|
@@ -1625,4 +1632,4 @@ declare class Promptly {
|
|
|
1625
1632
|
getApiKey(): string | null;
|
|
1626
1633
|
}
|
|
1627
1634
|
|
|
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 };
|
|
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
|
@@ -477,6 +477,21 @@ interface OrderItem {
|
|
|
477
477
|
total: number;
|
|
478
478
|
options?: Record<string, string>;
|
|
479
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
|
+
}
|
|
480
495
|
interface Order {
|
|
481
496
|
id: number;
|
|
482
497
|
member_id?: number;
|
|
@@ -493,23 +508,15 @@ interface Order {
|
|
|
493
508
|
payment_status: PaymentStatus;
|
|
494
509
|
payment_status_label?: string;
|
|
495
510
|
paid_at?: string;
|
|
496
|
-
shipping_name: string;
|
|
497
|
-
shipping_phone: string;
|
|
498
|
-
shipping_zipcode: string;
|
|
499
|
-
shipping_address: string;
|
|
500
|
-
shipping_address_detail?: string;
|
|
501
|
-
shipping_memo?: string;
|
|
502
|
-
shipping_company?: string;
|
|
503
|
-
tracking_number?: string;
|
|
504
511
|
shipped_at?: string;
|
|
505
512
|
delivered_at?: string;
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
513
|
+
can_cancel?: boolean;
|
|
514
|
+
shipping?: OrderShipping;
|
|
515
|
+
orderer?: OrderOrderer;
|
|
509
516
|
items?: OrderItem[];
|
|
510
517
|
payment?: Payment;
|
|
511
518
|
created_at: string;
|
|
512
|
-
updated_at
|
|
519
|
+
updated_at?: string;
|
|
513
520
|
}
|
|
514
521
|
interface CreateOrderData {
|
|
515
522
|
orderer_name: string;
|
|
@@ -1625,4 +1632,4 @@ declare class Promptly {
|
|
|
1625
1632
|
getApiKey(): string | null;
|
|
1626
1633
|
}
|
|
1627
1634
|
|
|
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 };
|
|
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 };
|